@aidc-toolkit/app-extension 1.0.23-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.
Files changed (128) hide show
  1. package/dist/index.cjs +3457 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +1769 -0
  4. package/dist/index.d.ts +1769 -26
  5. package/dist/index.js +3409 -9
  6. package/dist/index.js.map +1 -1
  7. package/package.json +10 -13
  8. package/src/app-extension.ts +3 -10
  9. package/src/app-utility-proxy.ts +5 -4
  10. package/src/descriptor.ts +18 -9
  11. package/src/generator/descriptor.ts +1 -1
  12. package/src/generator/generator.ts +4 -4
  13. package/src/generator/index.ts +2 -2
  14. package/src/generator/locale-resources-generator.ts +14 -10
  15. package/src/gs1/character-set-proxy.ts +18 -8
  16. package/src/gs1/check-proxy.ts +3 -3
  17. package/src/gs1/identifier-proxy.ts +71 -66
  18. package/src/gs1/index.ts +3 -3
  19. package/src/index.ts +9 -9
  20. package/src/lib-proxy.ts +3 -3
  21. package/src/locale/en/locale-resources.ts +9 -0
  22. package/src/locale/fr/locale-resources.ts +9 -0
  23. package/src/locale/i18n.ts +3 -5
  24. package/src/locale/i18next.d.ts +1 -1
  25. package/{dist/types.d.ts → src/type.ts} +11 -39
  26. package/src/utility/character-set-descriptor.ts +1 -1
  27. package/src/utility/character-set-proxy.ts +29 -17
  28. package/src/utility/index.ts +3 -3
  29. package/src/utility/reg-exp-proxy.ts +5 -4
  30. package/src/utility/string-descriptor.ts +1 -1
  31. package/src/utility/string-proxy.ts +2 -2
  32. package/src/utility/transformer-descriptor.ts +1 -1
  33. package/src/utility/transformer-proxy.ts +5 -4
  34. package/tsup.config.ts +3 -0
  35. package/dist/app-extension.d.ts +0 -169
  36. package/dist/app-extension.d.ts.map +0 -1
  37. package/dist/app-extension.js +0 -148
  38. package/dist/app-extension.js.map +0 -1
  39. package/dist/app-utility-proxy.d.ts +0 -66
  40. package/dist/app-utility-proxy.d.ts.map +0 -1
  41. package/dist/app-utility-proxy.js +0 -233
  42. package/dist/app-utility-proxy.js.map +0 -1
  43. package/dist/descriptor.d.ts +0 -172
  44. package/dist/descriptor.d.ts.map +0 -1
  45. package/dist/descriptor.js +0 -174
  46. package/dist/descriptor.js.map +0 -1
  47. package/dist/generator/descriptor.d.ts +0 -107
  48. package/dist/generator/descriptor.d.ts.map +0 -1
  49. package/dist/generator/descriptor.js +0 -2
  50. package/dist/generator/descriptor.js.map +0 -1
  51. package/dist/generator/generator.d.ts +0 -120
  52. package/dist/generator/generator.d.ts.map +0 -1
  53. package/dist/generator/generator.js +0 -213
  54. package/dist/generator/generator.js.map +0 -1
  55. package/dist/generator/index.d.ts +0 -3
  56. package/dist/generator/index.d.ts.map +0 -1
  57. package/dist/generator/index.js +0 -2
  58. package/dist/generator/index.js.map +0 -1
  59. package/dist/gs1/character-set-proxy.d.ts +0 -10
  60. package/dist/gs1/character-set-proxy.d.ts.map +0 -1
  61. package/dist/gs1/character-set-proxy.js +0 -47
  62. package/dist/gs1/character-set-proxy.js.map +0 -1
  63. package/dist/gs1/check-proxy.d.ts +0 -11
  64. package/dist/gs1/check-proxy.d.ts.map +0 -1
  65. package/dist/gs1/check-proxy.js +0 -120
  66. package/dist/gs1/check-proxy.js.map +0 -1
  67. package/dist/gs1/identifier-proxy.d.ts +0 -136
  68. package/dist/gs1/identifier-proxy.d.ts.map +0 -1
  69. package/dist/gs1/identifier-proxy.js +0 -782
  70. package/dist/gs1/identifier-proxy.js.map +0 -1
  71. package/dist/gs1/index.d.ts +0 -4
  72. package/dist/gs1/index.d.ts.map +0 -1
  73. package/dist/gs1/index.js +0 -4
  74. package/dist/gs1/index.js.map +0 -1
  75. package/dist/index.d.ts.map +0 -1
  76. package/dist/lib-proxy.d.ts +0 -135
  77. package/dist/lib-proxy.d.ts.map +0 -1
  78. package/dist/lib-proxy.js +0 -235
  79. package/dist/lib-proxy.js.map +0 -1
  80. package/dist/locale/en/locale-resources.d.ts +0 -617
  81. package/dist/locale/en/locale-resources.d.ts.map +0 -1
  82. package/dist/locale/en/locale-resources.js +0 -616
  83. package/dist/locale/en/locale-resources.js.map +0 -1
  84. package/dist/locale/fr/locale-resources.d.ts +0 -617
  85. package/dist/locale/fr/locale-resources.d.ts.map +0 -1
  86. package/dist/locale/fr/locale-resources.js +0 -616
  87. package/dist/locale/fr/locale-resources.js.map +0 -1
  88. package/dist/locale/i18n.d.ts +0 -27
  89. package/dist/locale/i18n.d.ts.map +0 -1
  90. package/dist/locale/i18n.js +0 -39
  91. package/dist/locale/i18n.js.map +0 -1
  92. package/dist/types.d.ts.map +0 -1
  93. package/dist/types.js +0 -13
  94. package/dist/types.js.map +0 -1
  95. package/dist/utility/character-set-descriptor.d.ts +0 -6
  96. package/dist/utility/character-set-descriptor.d.ts.map +0 -1
  97. package/dist/utility/character-set-descriptor.js +0 -28
  98. package/dist/utility/character-set-descriptor.js.map +0 -1
  99. package/dist/utility/character-set-proxy.d.ts +0 -26
  100. package/dist/utility/character-set-proxy.d.ts.map +0 -1
  101. package/dist/utility/character-set-proxy.js +0 -167
  102. package/dist/utility/character-set-proxy.js.map +0 -1
  103. package/dist/utility/index.d.ts +0 -4
  104. package/dist/utility/index.d.ts.map +0 -1
  105. package/dist/utility/index.js +0 -4
  106. package/dist/utility/index.js.map +0 -1
  107. package/dist/utility/reg-exp-proxy.d.ts +0 -7
  108. package/dist/utility/reg-exp-proxy.d.ts.map +0 -1
  109. package/dist/utility/reg-exp-proxy.js +0 -61
  110. package/dist/utility/reg-exp-proxy.js.map +0 -1
  111. package/dist/utility/string-descriptor.d.ts +0 -4
  112. package/dist/utility/string-descriptor.d.ts.map +0 -1
  113. package/dist/utility/string-descriptor.js +0 -12
  114. package/dist/utility/string-descriptor.js.map +0 -1
  115. package/dist/utility/string-proxy.d.ts +0 -8
  116. package/dist/utility/string-proxy.d.ts.map +0 -1
  117. package/dist/utility/string-proxy.js +0 -12
  118. package/dist/utility/string-proxy.js.map +0 -1
  119. package/dist/utility/transformer-descriptor.d.ts +0 -6
  120. package/dist/utility/transformer-descriptor.d.ts.map +0 -1
  121. package/dist/utility/transformer-descriptor.js +0 -24
  122. package/dist/utility/transformer-descriptor.js.map +0 -1
  123. package/dist/utility/transformer-proxy.d.ts +0 -8
  124. package/dist/utility/transformer-proxy.d.ts.map +0 -1
  125. package/dist/utility/transformer-proxy.js +0 -74
  126. package/dist/utility/transformer-proxy.js.map +0 -1
  127. package/src/generator/logger.ts +0 -45
  128. package/src/types.ts +0 -144
@@ -1,148 +0,0 @@
1
- import { i18nextAppExtension } from "./locale/i18n.js";
2
- /**
3
- * Application extension.
4
- *
5
- * @template TBigInt
6
- * Type to which big integer is mapped.
7
- *
8
- * @template ThrowError
9
- * If true, errors are reported through the throw/catch mechanism.
10
- *
11
- * @template TError
12
- * Error type.
13
- */
14
- export class AppExtension {
15
- /**
16
- * Application version.
17
- */
18
- _version;
19
- /**
20
- * Maximum sequence count supported by application.
21
- */
22
- _maximumSequenceCount;
23
- /**
24
- * If true, errors are reported through the throw/catch mechanism.
25
- */
26
- _throwError;
27
- /**
28
- * Maximum width supported by application.
29
- */
30
- _maximumWidth;
31
- /**
32
- * Maximum height supported by application.
33
- */
34
- _maximumHeight;
35
- /**
36
- * Constructor.
37
- *
38
- * @param version
39
- * Application version.
40
- *
41
- * @param maximumSequenceCount
42
- * Maximum sequence count supported by application.
43
- *
44
- * @param throwError
45
- * If true, errors are reported through the throw/catch mechanism.
46
- */
47
- constructor(version, maximumSequenceCount, throwError) {
48
- this._version = version;
49
- this._maximumSequenceCount = maximumSequenceCount;
50
- this._throwError = throwError;
51
- }
52
- /**
53
- * Get the version.
54
- *
55
- * @returns
56
- * Version.
57
- */
58
- get version() {
59
- return this._version;
60
- }
61
- /**
62
- * Determine if errors are reported through the throw/catch mechanism.
63
- */
64
- get throwError() {
65
- return this._throwError;
66
- }
67
- /**
68
- * Get the maximum width supported by the application.
69
- *
70
- * @returns
71
- * Maximum width supported by the application.
72
- */
73
- async maximumWidth() {
74
- this._maximumWidth ??= await this.getMaximumWidth();
75
- return this._maximumWidth;
76
- }
77
- /**
78
- * Get the maximum height supported by the application.
79
- *
80
- * @returns
81
- * Maximum height supported by the application.
82
- */
83
- async maximumHeight() {
84
- this._maximumHeight ??= await this.getMaximumHeight();
85
- return this._maximumHeight;
86
- }
87
- /**
88
- * Validate a sequence count against the maximum supported by application.
89
- *
90
- * @param sequenceCount
91
- * Sequence count.
92
- */
93
- validateSequenceCount(sequenceCount) {
94
- const absoluteSequenceCount = Math.abs(sequenceCount);
95
- if (absoluteSequenceCount > this._maximumSequenceCount) {
96
- throw new RangeError(i18nextAppExtension.t("AppExtension.sequenceCountMustBeLessThanOrEqualTo", {
97
- sequenceCount: absoluteSequenceCount,
98
- maximumSequenceCount: this._maximumSequenceCount
99
- }));
100
- }
101
- }
102
- /**
103
- * Bind a synchronous method and wrap it in a try/catch for comprehensive error handling.
104
- *
105
- * @param thisArg
106
- * The value to be passed as the `this` parameter to the method.
107
- *
108
- * @param method
109
- * Method to call.
110
- *
111
- * @returns
112
- * Function wrapped around the method.
113
- */
114
- bindSync(thisArg, method) {
115
- const boundMethod = method.bind(thisArg);
116
- return (...args) => {
117
- try {
118
- return boundMethod(...args);
119
- }
120
- catch (e) {
121
- // eslint-disable-next-line no-console -- Necessary for diagnostics.
122
- console.error(e);
123
- this.handleError(e instanceof Error ? e.message : String(e));
124
- }
125
- };
126
- }
127
- /**
128
- * Bind an asynchronous method and wrap it in a try/catch for comprehensive error handling.
129
- *
130
- * @param thisArg
131
- * The value to be passed as the `this` parameter to the method.
132
- *
133
- * @param method
134
- * Method to call.
135
- *
136
- * @returns
137
- * Function wrapped around the method.
138
- */
139
- bindAsync(thisArg, method) {
140
- const boundMethod = method.bind(thisArg);
141
- return async (...args) => await boundMethod(...args).catch((e) => {
142
- // eslint-disable-next-line no-console -- Necessary for diagnostics.
143
- console.error(e);
144
- this.handleError(e instanceof Error ? e.message : String(e));
145
- });
146
- }
147
- }
148
- //# sourceMappingURL=app-extension.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-extension.js","sourceRoot":"","sources":["../src/app-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAWvD;;;;;;;;;;;GAWG;AACH,MAAM,OAAgB,YAAY;IAC9B;;OAEG;IACc,QAAQ,CAAS;IAElC;;OAEG;IACc,qBAAqB,CAAS;IAE/C;;OAEG;IACc,WAAW,CAAa;IAEzC;;OAEG;IACK,aAAa,CAAU;IAE/B;;OAEG;IACK,cAAc,CAAU;IAEhC;;;;;;;;;;;OAWG;IACH,YAAsB,OAAe,EAAE,oBAA4B,EAAE,UAAsB;QACvF,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,qBAAqB,GAAG,oBAAoB,CAAC;QAClD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAClC,CAAC;IAED;;;;;OAKG;IACH,IAAI,OAAO;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY;QACd,IAAI,CAAC,aAAa,KAAK,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAEpD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAUD;;;;;OAKG;IACH,KAAK,CAAC,aAAa;QACf,IAAI,CAAC,cAAc,KAAK,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAEtD,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAmCD;;;;;OAKG;IACH,qBAAqB,CAAC,aAAqB;QACvC,MAAM,qBAAqB,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAEtD,IAAI,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC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,66 +0,0 @@
1
- import { LibProxy } from "./lib-proxy.js";
2
- import { type ErrorExtends, type Matrix, type Nullishable } from "./types.js";
3
- /**
4
- * Application utilities.
5
- */
6
- export declare class AppUtilityProxy<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt> extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt> {
7
- /**
8
- * Get the version.
9
- *
10
- * @returns
11
- * Version.
12
- */
13
- version(): string;
14
- /**
15
- * Provide default values for maximum width and height if required.
16
- *
17
- * @param maximumDimensions
18
- * Maximum dimensions provided to function.
19
- *
20
- * @param invocationContext
21
- * Invocation context.
22
- *
23
- * @returns
24
- * Array of maximum width and maximum height.
25
- */
26
- private defaultMaximums;
27
- /**
28
- * Spill a horizontal matrix vertically to fit within a maximum width and height.
29
- *
30
- * @param hMatrixValues
31
- * Horizontal matrix values. Matrix has length 1 and contains a single array with the values.
32
- *
33
- * @param maximumWidth
34
- * Maximum width.
35
- *
36
- * @param maximumHeight
37
- * Maximum height.
38
- *
39
- * @param invocationContext
40
- * Invocation context.
41
- *
42
- * @returns
43
- * Matrix spilled within maximum width and maximum height.
44
- */
45
- vSpill(hMatrixValues: Matrix<unknown>, maximumWidth: Nullishable<number>, maximumHeight: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
46
- /**
47
- * Spill a vertical matrix horizontally to fit within a maximum width and height.
48
- *
49
- * @param vMatrixValues
50
- * Vertical matrix values. Matrix contains arrays of length 1 with the values.
51
- *
52
- * @param maximumHeight
53
- * Maximum height.
54
- *
55
- * @param maximumWidth
56
- * Maximum width.
57
- *
58
- * @param invocationContext
59
- * Invocation context.
60
- *
61
- * @returns
62
- * Matrix spilled within maximum height and maximum width.
63
- */
64
- hSpill(vMatrixValues: Matrix<unknown>, maximumHeight: Nullishable<number>, maximumWidth: Nullishable<number>, invocationContext: Nullishable<TInvocationContext>): Promise<Matrix<unknown>>;
65
- }
66
- //# sourceMappingURL=app-utility-proxy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-utility-proxy.d.ts","sourceRoot":"","sources":["../src/app-utility-proxy.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,KAAK,YAAY,EAAa,KAAK,MAAM,EAAuB,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AA2C9G;;GAEG;AACH,qBACa,eAAe,CAAC,UAAU,SAAS,OAAO,EAAE,MAAM,SAAS,YAAY,CAAC,UAAU,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAE,SAAQ,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC;IAC5L;;;;;OAKG;IAKH,OAAO,IAAI,MAAM;IAIjB;;;;;;;;;;;OAWG;YACW,eAAe;IA6B7B;;;;;;;;;;;;;;;;;OAiBG;IAMG,MAAM,CACqB,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,EACL,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EAChC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EACzF,iBAAiB,EAAE,WAAW,CAAC,kBAAkB,CAAC,GACnD,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAmD3B;;;;;;;;;;;;;;;;;OAiBG;IAMG,MAAM,CACqB,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,EACJ,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,EACnC,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,EACvF,iBAAiB,EAAE,WAAW,CAAC,kBAAkB,CAAC,GACnD,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;CAoD9B"}
@@ -1,233 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __param = (this && this.__param) || function (paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- };
10
- import { ProxyClass, ProxyMethod, ProxyParameter, Types } from "./descriptor.js";
11
- import { LibProxy } from "./lib-proxy.js";
12
- import { i18nextAppExtension } from "./locale/i18n.js";
13
- import { isNullish } from "./types.js";
14
- const spillMatrix = {
15
- name: "spillMatrix",
16
- type: Types.Any,
17
- isMatrix: true,
18
- isRequired: true
19
- };
20
- const spillMaximumParameterDescriptor = {
21
- name: "spillMaximum",
22
- type: Types.Number,
23
- isMatrix: false,
24
- isRequired: false
25
- };
26
- const spillMaximumWidthParameterDescriptor = {
27
- extendsDescriptor: spillMaximumParameterDescriptor,
28
- sortOrder: 0,
29
- name: "spillMaximumWidth"
30
- };
31
- const spillMaximumHeightParameterDescriptor = {
32
- extendsDescriptor: spillMaximumParameterDescriptor,
33
- sortOrder: 1,
34
- name: "spillMaximumHeight"
35
- };
36
- /**
37
- * Application utilities.
38
- */
39
- let AppUtilityProxy = class AppUtilityProxy extends LibProxy {
40
- /**
41
- * Get the version.
42
- *
43
- * @returns
44
- * Version.
45
- */
46
- version() {
47
- return this.appExtension.version;
48
- }
49
- /**
50
- * Provide default values for maximum width and height if required.
51
- *
52
- * @param maximumDimensions
53
- * Maximum dimensions provided to function.
54
- *
55
- * @param invocationContext
56
- * Invocation context.
57
- *
58
- * @returns
59
- * Array of maximum width and maximum height.
60
- */
61
- async defaultMaximums(maximumDimensions, invocationContext) {
62
- if (isNullish(invocationContext)) {
63
- // Application error; no localization necessary.
64
- throw new Error("Invocation context not provided by application");
65
- }
66
- const maximumWidth = maximumDimensions.width;
67
- const maximumHeight = maximumDimensions.height;
68
- let definedMaximumWidth;
69
- let definedMaximumHeight;
70
- // Skip any extra work if both values are provided.
71
- if (isNullish(maximumWidth) || isNullish(maximumHeight)) {
72
- const sheetAddress = await this.appExtension.getSheetAddress(invocationContext);
73
- definedMaximumWidth = maximumWidth ?? await this.appExtension.maximumWidth() - sheetAddress.columnIndex;
74
- definedMaximumHeight = maximumHeight ?? await this.appExtension.maximumHeight() - sheetAddress.rowIndex;
75
- }
76
- else {
77
- definedMaximumWidth = maximumWidth;
78
- definedMaximumHeight = maximumHeight;
79
- }
80
- return {
81
- width: definedMaximumWidth,
82
- height: definedMaximumHeight
83
- };
84
- }
85
- /**
86
- * Spill a horizontal matrix vertically to fit within a maximum width and height.
87
- *
88
- * @param hMatrixValues
89
- * Horizontal matrix values. Matrix has length 1 and contains a single array with the values.
90
- *
91
- * @param maximumWidth
92
- * Maximum width.
93
- *
94
- * @param maximumHeight
95
- * Maximum height.
96
- *
97
- * @param invocationContext
98
- * Invocation context.
99
- *
100
- * @returns
101
- * Matrix spilled within maximum width and maximum height.
102
- */
103
- async vSpill(hMatrixValues, maximumWidth, maximumHeight, invocationContext) {
104
- let result;
105
- if (hMatrixValues.length !== 1) {
106
- throw new RangeError(i18nextAppExtension.t("Proxy.vSpillMustBeHorizontalArray"));
107
- }
108
- const maximumDimensions = await this.defaultMaximums({
109
- width: maximumWidth,
110
- height: maximumHeight
111
- }, invocationContext);
112
- const hArrayValues = hMatrixValues[0];
113
- const hLength = hArrayValues.length;
114
- const maximumArea = maximumDimensions.width * maximumDimensions.height;
115
- // Lengths 0 and 1 are valid and require no special processing.
116
- if (hLength > 1 && hLength <= maximumArea) {
117
- // Make spill as square as possible.
118
- let spillWidth = Math.min(Math.ceil(Math.sqrt(maximumArea)), maximumDimensions.width);
119
- // Array that has a length of a power of 10 is treated specially.
120
- if (Number.isInteger(Math.log10(hLength))) {
121
- // Try spill width that is a power of 10.
122
- const spillWidth10 = Math.pow(10, Math.floor(Math.log10(spillWidth)));
123
- // Keep default if not enough space for power of 10 matrix.
124
- if (hLength / spillWidth10 <= maximumDimensions.height) {
125
- spillWidth = spillWidth10;
126
- }
127
- }
128
- result = [];
129
- let hStartIndex = 0;
130
- do {
131
- const hEndIndex = hStartIndex + spillWidth;
132
- result.push(hArrayValues.slice(hStartIndex, hEndIndex));
133
- hStartIndex = hEndIndex;
134
- } while (hStartIndex < hLength);
135
- }
136
- else {
137
- // Return matrix unmodified and let application handle spill error if any.
138
- result = hMatrixValues;
139
- }
140
- return result;
141
- }
142
- /**
143
- * Spill a vertical matrix horizontally to fit within a maximum width and height.
144
- *
145
- * @param vMatrixValues
146
- * Vertical matrix values. Matrix contains arrays of length 1 with the values.
147
- *
148
- * @param maximumHeight
149
- * Maximum height.
150
- *
151
- * @param maximumWidth
152
- * Maximum width.
153
- *
154
- * @param invocationContext
155
- * Invocation context.
156
- *
157
- * @returns
158
- * Matrix spilled within maximum height and maximum width.
159
- */
160
- async hSpill(vMatrixValues, maximumHeight, maximumWidth, invocationContext) {
161
- let result;
162
- for (const hArrayValues of vMatrixValues) {
163
- // This test should be necessary only once but account for zero-size matrix and misuse of method.
164
- if (hArrayValues.length !== 1) {
165
- throw new RangeError(i18nextAppExtension.t("Proxy.hSpillMustBeVerticalArray"));
166
- }
167
- }
168
- const maximumDimensions = await this.defaultMaximums({
169
- width: maximumWidth,
170
- height: maximumHeight
171
- }, invocationContext);
172
- const vLength = vMatrixValues.length;
173
- const maximumArea = maximumDimensions.width * maximumDimensions.height;
174
- // Lengths 0 and 1 are valid and require no special processing.
175
- if (vLength > 1 && vLength <= maximumArea) {
176
- // Make spill as square as possible.
177
- let spillHeight = Math.min(Math.ceil(Math.sqrt(maximumArea)), maximumDimensions.height);
178
- // Array that has a length of a power of 10 is treated specially.
179
- if (Number.isInteger(Math.log10(vLength))) {
180
- // Try spill height that is a power of 10.
181
- const spillHeight10 = Math.pow(10, Math.floor(Math.log10(spillHeight)));
182
- // Keep default if not enough space for power of 10 matrix.
183
- if (vLength / spillHeight10 <= maximumDimensions.width) {
184
- spillHeight = spillHeight10;
185
- }
186
- }
187
- result = [];
188
- for (let rowIndex = 0; rowIndex < spillHeight; rowIndex++) {
189
- const row = new Array();
190
- for (let cellIndex = rowIndex; cellIndex < vLength; cellIndex++) {
191
- row.push(vMatrixValues[cellIndex][0]);
192
- }
193
- result.push(row);
194
- }
195
- }
196
- else {
197
- // Return matrix unmodified and let application handle spill error if any.
198
- result = vMatrixValues;
199
- }
200
- return result;
201
- }
202
- };
203
- __decorate([
204
- ProxyMethod({
205
- type: Types.String,
206
- isMatrix: false
207
- })
208
- ], AppUtilityProxy.prototype, "version", null);
209
- __decorate([
210
- ProxyMethod({
211
- requiresContext: true,
212
- type: Types.Any,
213
- isMatrix: true
214
- }),
215
- __param(0, ProxyParameter(spillMatrix)),
216
- __param(1, ProxyParameter(spillMaximumWidthParameterDescriptor)),
217
- __param(2, ProxyParameter(spillMaximumHeightParameterDescriptor))
218
- ], AppUtilityProxy.prototype, "vSpill", null);
219
- __decorate([
220
- ProxyMethod({
221
- requiresContext: true,
222
- type: Types.Any,
223
- isMatrix: true
224
- }),
225
- __param(0, ProxyParameter(spillMatrix)),
226
- __param(1, ProxyParameter(spillMaximumHeightParameterDescriptor)),
227
- __param(2, ProxyParameter(spillMaximumWidthParameterDescriptor))
228
- ], AppUtilityProxy.prototype, "hSpill", null);
229
- AppUtilityProxy = __decorate([
230
- ProxyClass()
231
- ], AppUtilityProxy);
232
- export { AppUtilityProxy };
233
- //# sourceMappingURL=app-utility-proxy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-utility-proxy.js","sourceRoot":"","sources":["../src/app-utility-proxy.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAA4B,UAAU,EAAE,WAAW,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kB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oBAC9D,GAAG,CAAC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC1C,CAAC;gBAED,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,0EAA0E;YAC1E,MAAM,GAAG,aAAa,CAAC;QAC3B,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ,CAAA;AA5MG;IAJC,WAAW,CAAC;QACT,IAAI,EAAE,KAAK,CAAC,MAAM;QAClB,QAAQ,EAAE,KAAK;KAClB,CAAC;8CAGD;AAkEK;IALL,WAAW,CAAC;QACT,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE,KAAK,CAAC,GAAG;QACf,QAAQ,EAAE,IAAI;KACjB,CAAC;IAEG,WAAA,cAAc,CAAC,WAAW,CAAC,CAAA;IAC3B,WAAA,cAAc,CAAC,oCAAoC,CAAC,CAAA;IACpD,WAAA,cAAc,CAAC,qCAAqC,CAAC,CAAA;6CAmDzD;AAyBK;IALL,WAAW,CAAC;QACT,eAAe,EAAE,IAAI;QACrB,IAAI,EAAE,KAAK,CAAC,GAAG;QACf,QAAQ,EAAE,IAAI;KACjB,CAAC;IAEG,WAAA,cAAc,CAAC,WAAW,CAAC,CAAA;IAC3B,WAAA,cAAc,CAAC,qCAAqC,CAAC,CAAA;IACrD,WAAA,cAAc,CAAC,oCAAoC,CAAC,CAAA;6CAqDxD;AAtNQ,eAAe;IAD3B,UAAU,EAAE;GACA,eAAe,CAuN3B"}
@@ -1,172 +0,0 @@
1
- import type { AppExtension } from "./app-extension.js";
2
- import { LibProxy } from "./lib-proxy.js";
3
- import type { ErrorExtends } from "./types.js";
4
- /**
5
- * Core descriptor.
6
- */
7
- interface Descriptor {
8
- readonly name: string;
9
- }
10
- /**
11
- * Types supported by proxy methods.
12
- */
13
- export declare const Types: {
14
- /**
15
- * String.
16
- */
17
- readonly String: 0;
18
- /**
19
- * Number or enumeration.
20
- */
21
- readonly Number: 1;
22
- /**
23
- * Boolean.
24
- */
25
- readonly Boolean: 2;
26
- /**
27
- * Any.
28
- */
29
- readonly Any: 3;
30
- };
31
- /**
32
- * Type.
33
- */
34
- export type Type = typeof Types[keyof typeof Types];
35
- /**
36
- * Type descriptor.
37
- */
38
- interface TypeDescriptor extends Descriptor {
39
- /**
40
- * Type.
41
- */
42
- readonly type: Type;
43
- /**
44
- * True if type is a matrix (method accepts or returns a two-dimensional array).
45
- */
46
- readonly isMatrix: boolean;
47
- }
48
- /**
49
- * Base parameter descriptor; all attributes required.
50
- */
51
- export interface BaseParameterDescriptor extends TypeDescriptor {
52
- /**
53
- * True if required.
54
- */
55
- readonly isRequired: boolean;
56
- }
57
- /**
58
- * Extends parameter descriptor; extends a parameter descriptor and overrides select attributes.
59
- */
60
- export interface ExtendsParameterDescriptor extends Partial<BaseParameterDescriptor> {
61
- /**
62
- * Base parameter descriptor that this one extends.
63
- */
64
- readonly extendsDescriptor: ParameterDescriptor;
65
- /**
66
- * Sort order within base parameter descriptor if applicable.
67
- */
68
- readonly sortOrder?: number;
69
- }
70
- /**
71
- * Parameter descriptor, either base or extends.
72
- */
73
- export type ParameterDescriptor = BaseParameterDescriptor | ExtendsParameterDescriptor;
74
- /**
75
- * Expand a parameter descriptor to its full form with all required attributes.
76
- *
77
- * @param parameterDescriptor
78
- * Parameter descriptor.
79
- *
80
- * @returns
81
- * Parameter descriptor in its full form.
82
- */
83
- export declare function expandParameterDescriptor(parameterDescriptor: ParameterDescriptor): BaseParameterDescriptor;
84
- /**
85
- * Method descriptor.
86
- */
87
- export interface MethodDescriptor extends TypeDescriptor {
88
- /**
89
- * If true, application-specific invocation context is required.
90
- */
91
- readonly requiresContext?: boolean;
92
- /**
93
- * If true, method infix is ignored.
94
- */
95
- readonly ignoreInfix?: boolean;
96
- /**
97
- * String before which method infix appears. If undefined, infix is appended to the method name. Ignored if
98
- * `ignoreInfix` is true.
99
- */
100
- readonly infixBefore?: string;
101
- /**
102
- * Parameter descriptors.
103
- */
104
- readonly parameterDescriptors: readonly ParameterDescriptor[];
105
- }
106
- /**
107
- * Class descriptor.
108
- */
109
- export interface ClassDescriptor extends Descriptor {
110
- /**
111
- * Class namespace. If not provided, class is at the top level.
112
- */
113
- readonly namespace?: string;
114
- /**
115
- * Method infix. If undefined, method name is generated verbatim.
116
- */
117
- readonly methodInfix?: string;
118
- /**
119
- * Replace parameter descriptors for class hierarchies where enumeration parameter descriptors can change.
120
- */
121
- readonly replaceParameterDescriptors?: ReadonlyArray<{
122
- readonly name: string;
123
- readonly replacement: ParameterDescriptor;
124
- }>;
125
- /**
126
- * Method descriptors.
127
- */
128
- readonly methodDescriptors: readonly MethodDescriptor[];
129
- }
130
- /**
131
- * Proxy class type with fixed constructor.
132
- */
133
- type ProxyClassType<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>> = (new (appExtension: AppExtension<ThrowError, TError, TInvocationContext, TBigInt>) => T) & typeof LibProxy;
134
- /**
135
- * Proxy parameter decorator.
136
- *
137
- * @param parameterDescriptor
138
- * Parameter descriptor.
139
- *
140
- * @returns
141
- * Function defining metadata for the parameter.
142
- */
143
- export declare function ProxyParameter<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(parameterDescriptor: ParameterDescriptor): ((target: T, propertyKey: string, parameterIndex: number) => void);
144
- /**
145
- * Proxy method decorator.
146
- *
147
- * @param methodDescriptor
148
- * Method descriptor.
149
- *
150
- * @returns
151
- * Function defining metadata for the method.
152
- */
153
- export declare function ProxyMethod<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(methodDescriptor: Omit<MethodDescriptor, "name" | "parameterDescriptors">): ((target: T, propertyKey: string, propertyDescriptor: PropertyDescriptor) => void);
154
- /**
155
- * Proxy class decorator.
156
- *
157
- * @param classDescriptor
158
- * Class descriptor.
159
- *
160
- * @returns
161
- * Function defining metadata for the class.
162
- */
163
- export declare function ProxyClass<ThrowError extends boolean, TError extends ErrorExtends<ThrowError>, TInvocationContext, TBigInt, T extends LibProxy<ThrowError, TError, TInvocationContext, TBigInt>>(classDescriptor?: Omit<ClassDescriptor, "name" | "methodDescriptors">): ((classType: ProxyClassType<ThrowError, TError, TInvocationContext, TBigInt, T>) => void);
164
- /**
165
- * Get class descriptors.
166
- *
167
- * @returns
168
- * Class descriptors.
169
- */
170
- export declare function getClassDescriptors(): ReadonlyMap<string, ClassDescriptor>;
171
- export {};
172
- //# sourceMappingURL=descriptor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptor.d.ts","sourceRoot":"","sources":["../src/descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,YAAY,CAAC;AAE9D;;GAEG;AACH,UAAU,UAAU;IAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,KAAK;IACd;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEG,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC,MAAM,OAAO,KAAK,CAAC,CAAC;AAEpD;;GAEG;AACH,UAAU,cAAe,SAAQ,UAAU;IACvC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D;;OAEG;IACH,QAA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