@magic-xpa/utils 4.702.0-dev472.353 → 4.800.0-dev000.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/magic-xpa-utils.umd.js +285 -1225
- package/bundles/magic-xpa-utils.umd.js.map +1 -1
- package/bundles/magic-xpa-utils.umd.min.js +1 -1
- package/bundles/magic-xpa-utils.umd.min.js.map +1 -1
- package/esm2015/index.js +1 -1
- package/esm2015/magic-xpa-utils.js +1 -4
- package/esm2015/src/Base64.js +1 -46
- package/esm2015/src/ChoiceUtils.js +1 -13
- package/esm2015/src/Constants.js +2 -14
- package/esm2015/src/DateTimeUtils.js +1 -2
- package/esm2015/src/DateUtil.js +1 -13
- package/esm2015/src/InternalInterface.js +4 -8
- package/esm2015/src/JSON_Utils.js +1 -1
- package/esm2015/src/Logger.js +2 -81
- package/esm2015/src/MagicConstants.js +1 -1
- package/esm2015/src/Misc.js +1 -60
- package/esm2015/src/MsgInterface.js +1 -1
- package/esm2015/src/PICInterface.js +20 -31
- package/esm2015/src/PlatformUtils.js +2 -2
- package/esm2015/src/Queue.js +1 -9
- package/esm2015/src/Randomizer.js +1 -1
- package/esm2015/src/RequestInfo.js +1 -4
- package/esm2015/src/Rtf.js +15 -199
- package/esm2015/src/StorageAttribute.js +1 -33
- package/esm2015/src/StrUtil.js +0 -0
- package/esm2015/src/SyncExecutionHelper.js +1 -16
- package/esm2015/src/UtilDateJpn.js +9 -89
- package/esm2015/src/UtilImeJpn.js +3 -32
- package/esm2015/src/UtilStrByteMode.js +15 -288
- package/esm2015/src/XMLConstants.js +1 -12
- package/esm2015/src/Xml/XmlParser.js +3 -100
- package/esm2015/src/enums.js +1 -1
- package/fesm2015/magic-xpa-utils.js +72 -1224
- package/fesm2015/magic-xpa-utils.js.map +1 -1
- package/magic-xpa-utils.d.ts +0 -3
- package/package.json +2 -2
- package/src/InternalInterface.d.ts +1 -1
- package/src/StrUtil.d.ts +0 -1
|
@@ -1,84 +1,33 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@magic-xpa/mscorelib'), require('util'), require('xml2js')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@magic-xpa/utils', ['exports', '@magic-xpa/mscorelib', 'util', 'xml2js'], factory) :
|
|
4
|
-
(global = global || self, factory((global[
|
|
5
|
-
}(this, (function (exports, mscorelib, util, xml2js) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["magic-xpa"] = global["magic-xpa"] || {}, global["magic-xpa"].utils = {}), global.mscorelib, global.util, global.xml2js));
|
|
5
|
+
})(this, (function (exports, mscorelib, util, xml2js) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/// <summary>JPN: DBCS support
|
|
8
7
|
var UtilStrByteMode = /** @class */ (function () {
|
|
9
8
|
function UtilStrByteMode() {
|
|
10
9
|
}
|
|
11
|
-
/// <summary> Checks the environment whether it is running on DBCS environment
|
|
12
|
-
/// Returns true if the language code for the current default Locale is
|
|
13
|
-
/// DBCS language (in non-Unicode encoding).
|
|
14
|
-
///
|
|
15
|
-
/// </summary>
|
|
16
|
-
/// <returns> true if DBCS, or false if SBCS
|
|
17
|
-
/// </returns>
|
|
18
10
|
UtilStrByteMode.isLocaleDefLangDBCS = function () {
|
|
19
11
|
return UtilStrByteMode._bLocaleDefLangJPN || UtilStrByteMode._bLocaleDefLangCHN || UtilStrByteMode._bLocaleDefLangKOR;
|
|
20
12
|
};
|
|
21
|
-
/// <summary> Checks whether the language code for the current default Locale
|
|
22
|
-
/// is JAPANESE.
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
/// <returns> true if JAPANESE, or false if not
|
|
26
|
-
/// </returns>
|
|
27
13
|
UtilStrByteMode.isLocaleDefLangJPN = function () {
|
|
28
14
|
return UtilStrByteMode._bLocaleDefLangJPN;
|
|
29
15
|
};
|
|
30
|
-
/// <summary> Checks whether the language code for the current default Locale
|
|
31
|
-
/// is KOREAN.
|
|
32
|
-
///
|
|
33
|
-
/// </summary>
|
|
34
|
-
/// <returns> true if KOREAN, or false if not
|
|
35
|
-
/// </returns>
|
|
36
16
|
UtilStrByteMode.isLocaleDefLangKOR = function () {
|
|
37
17
|
return UtilStrByteMode._bLocaleDefLangKOR;
|
|
38
18
|
};
|
|
39
19
|
UtilStrByteMode.isKoreanCharacter = function (c) {
|
|
40
|
-
return (44032 <=
|
|
41
|
-
};
|
|
42
|
-
/// <summary> Length of String
|
|
43
|
-
/// Returns the number of bytes (in default encoding).
|
|
44
|
-
///
|
|
45
|
-
/// </summary>
|
|
46
|
-
/// <param name="strVal:">string (in Unicode)
|
|
47
|
-
/// </param>
|
|
48
|
-
/// <returns> the number of bytes (in default encoding)
|
|
49
|
-
///
|
|
50
|
-
/// Example: lenB("abXYc")
|
|
51
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
52
|
-
/// 7.
|
|
53
|
-
/// </returns>
|
|
20
|
+
return (44032 <= c && c <= 55203) || (4352 <= c && c <= 4607) || (12592 <= c && c <= 12687) || (43360 <= c && c <= 43391) || (55216 <= c && c <= 55295);
|
|
21
|
+
};
|
|
54
22
|
UtilStrByteMode.lenB = function (strVal) {
|
|
55
|
-
// convert to byte[] by default-encoding
|
|
56
23
|
return UtilStrByteMode.Encoding.GetByteCount(strVal);
|
|
57
24
|
};
|
|
58
|
-
/// <summary> Substring of String
|
|
59
|
-
/// Extracts a specified number of characters (a substring) from a string.
|
|
60
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
61
|
-
///
|
|
62
|
-
/// </summary>
|
|
63
|
-
/// <param name="strVal:">string (in Unicode)
|
|
64
|
-
/// </param>
|
|
65
|
-
/// <param name="ofs:">starting position (byte) of the substring
|
|
66
|
-
/// </param>
|
|
67
|
-
/// <param name="len:">number of bytes to be extracted (i.e. bytes of substring)
|
|
68
|
-
/// </param>
|
|
69
|
-
/// <returns> substring
|
|
70
|
-
///
|
|
71
|
-
/// Example: midB("abXYc", 2, 4)
|
|
72
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
73
|
-
/// "bX ".
|
|
74
|
-
/// </returns>
|
|
75
25
|
UtilStrByteMode.midB = function (strVal, ofs, len) {
|
|
76
|
-
var intValidMaxIndex = -1;
|
|
77
|
-
var intValidMinIndex = -1;
|
|
78
|
-
var bHeadSpace = false;
|
|
79
|
-
var bEndSpace = false;
|
|
26
|
+
var intValidMaxIndex = -1;
|
|
27
|
+
var intValidMinIndex = -1;
|
|
28
|
+
var bHeadSpace = false;
|
|
29
|
+
var bEndSpace = false;
|
|
80
30
|
var strRet;
|
|
81
|
-
// check and modify ofs & len
|
|
82
31
|
if (len <= 0)
|
|
83
32
|
return "";
|
|
84
33
|
if (ofs <= 0) {
|
|
@@ -92,7 +41,6 @@
|
|
|
92
41
|
var LenMax = intByteLength - ofs;
|
|
93
42
|
if (LenMax < len)
|
|
94
43
|
len = LenMax;
|
|
95
|
-
// set MinIndex and MaxIndex for substring
|
|
96
44
|
intByteLength = 0;
|
|
97
45
|
for (var intIndex = 0; intIndex < strVal.length; intIndex = intIndex + 1) {
|
|
98
46
|
var s = strVal.substr(intIndex, 1);
|
|
@@ -120,9 +68,7 @@
|
|
|
120
68
|
}
|
|
121
69
|
}
|
|
122
70
|
}
|
|
123
|
-
// prepare for substring
|
|
124
71
|
var strbufAddingBuf = new mscorelib.StringBuilder(len);
|
|
125
|
-
// execute Mid
|
|
126
72
|
if (bHeadSpace) {
|
|
127
73
|
strbufAddingBuf.Append(' ');
|
|
128
74
|
}
|
|
@@ -136,39 +82,9 @@
|
|
|
136
82
|
strbufAddingBuf = null;
|
|
137
83
|
return strRet;
|
|
138
84
|
};
|
|
139
|
-
/// <summary> Get Characters from Left of String
|
|
140
|
-
/// Returns a specified number of bytes from the left side of a string.
|
|
141
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
142
|
-
///
|
|
143
|
-
/// </summary>
|
|
144
|
-
/// <param name="strVal:">string (in Unicode)
|
|
145
|
-
/// </param>
|
|
146
|
-
/// <param name="len:">number of bytes to be retured
|
|
147
|
-
/// </param>
|
|
148
|
-
/// <returns> output string
|
|
149
|
-
///
|
|
150
|
-
/// Example: leftB("abXYc", 4)
|
|
151
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
152
|
-
/// "abX".
|
|
153
|
-
/// </returns>
|
|
154
85
|
UtilStrByteMode.leftB = function (strVal, len) {
|
|
155
86
|
return UtilStrByteMode.midB(strVal, 0, len);
|
|
156
87
|
};
|
|
157
|
-
/// <summary> Get Characters from Right of String
|
|
158
|
-
/// Returns a specified number of bytes from the right side of a string.
|
|
159
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
160
|
-
///
|
|
161
|
-
/// </summary>
|
|
162
|
-
/// <param name="strVal:">string (in Unicode)
|
|
163
|
-
/// </param>
|
|
164
|
-
/// <param name="len:">number of bytes to be retured
|
|
165
|
-
/// </param>
|
|
166
|
-
/// <returns> output string
|
|
167
|
-
///
|
|
168
|
-
/// Example: rightB("abXYc", 4)
|
|
169
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
170
|
-
/// " Yc".
|
|
171
|
-
/// </returns>
|
|
172
88
|
UtilStrByteMode.rightB = function (strVal, len) {
|
|
173
89
|
var byteFldsValLen = UtilStrByteMode.lenB(strVal);
|
|
174
90
|
if (len < 0) {
|
|
@@ -180,27 +96,6 @@
|
|
|
180
96
|
}
|
|
181
97
|
return UtilStrByteMode.midB(strVal, ofs, len);
|
|
182
98
|
};
|
|
183
|
-
/// <summary> Insert String
|
|
184
|
-
/// Inserts one string into another.
|
|
185
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
186
|
-
///
|
|
187
|
-
/// </summary>
|
|
188
|
-
/// <param name="strTarget:">A string that represents the target string.
|
|
189
|
-
/// </param>
|
|
190
|
-
/// <param name="strSource:">A string that represents the source string.
|
|
191
|
-
/// </param>
|
|
192
|
-
/// <param name="ofs:">A number that represents the starting position (byte) in
|
|
193
|
-
/// the target.
|
|
194
|
-
/// </param>
|
|
195
|
-
/// <param name="len:">A number that represents the number of bytes from the
|
|
196
|
-
/// source that will be inserted into the target.
|
|
197
|
-
/// </param>
|
|
198
|
-
/// <returns> output string
|
|
199
|
-
///
|
|
200
|
-
/// Example: insB("abXYc", "de", 4, 1)
|
|
201
|
-
/// Where 'a', 'b', 'c', 'd' and 'e' are SBCS, and 'X' and 'Y' are DBCS,
|
|
202
|
-
/// it returns "ab d Yc".
|
|
203
|
-
/// </returns>
|
|
204
99
|
UtilStrByteMode.insB = function (strTarget, strSource, ofs, len) {
|
|
205
100
|
if (ofs < 0) {
|
|
206
101
|
ofs = 0;
|
|
@@ -227,24 +122,6 @@
|
|
|
227
122
|
strbufRetVal.Append(UtilStrByteMode.rightB(strTarget, intTargetLenB - ofs));
|
|
228
123
|
return strbufRetVal.ToString();
|
|
229
124
|
};
|
|
230
|
-
/// <summary> Delete Characters
|
|
231
|
-
/// Delete characters from a string.
|
|
232
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
233
|
-
///
|
|
234
|
-
/// </summary>
|
|
235
|
-
/// <param name="strVal:">string (in Unicode)
|
|
236
|
-
/// </param>
|
|
237
|
-
/// <param name="ofs:">The position (byte) of the first character to be deleted.
|
|
238
|
-
/// </param>
|
|
239
|
-
/// <param name="len:">The number of characters to be deleted, beginning with
|
|
240
|
-
/// position start and proceeding rightward.
|
|
241
|
-
/// </param>
|
|
242
|
-
/// <returns> output string
|
|
243
|
-
///
|
|
244
|
-
/// Example: delB("abXYc", 2, 4)
|
|
245
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
246
|
-
/// "a c".
|
|
247
|
-
/// </returns>
|
|
248
125
|
UtilStrByteMode.delB = function (strVal, ofs, len) {
|
|
249
126
|
if (ofs < 0) {
|
|
250
127
|
ofs = 0;
|
|
@@ -276,55 +153,16 @@
|
|
|
276
153
|
}
|
|
277
154
|
return strRet;
|
|
278
155
|
};
|
|
279
|
-
/// <summary> In-String Search
|
|
280
|
-
/// Returns a number that represents the first position (byte) of a
|
|
281
|
-
/// substring within a string.
|
|
282
|
-
///
|
|
283
|
-
/// </summary>
|
|
284
|
-
/// <param name="strTarget:">string (in Unicode)
|
|
285
|
-
/// </param>
|
|
286
|
-
/// <param name="strSearch:">string which will be the search argument in string
|
|
287
|
-
/// </param>
|
|
288
|
-
/// <returns> number, 0 if not found
|
|
289
|
-
///
|
|
290
|
-
/// Example: instrB("abXYc", "Y")
|
|
291
|
-
/// Where 'a', 'b' and 'c' are SBCS, and 'X' and 'Y' are DBCS, it returns
|
|
292
|
-
/// 5.
|
|
293
|
-
/// </returns>
|
|
294
156
|
UtilStrByteMode.instrB = function (strTarget, strSearch) {
|
|
295
157
|
if (strSearch.length === 0) {
|
|
296
|
-
// nothing to look for
|
|
297
158
|
return 0;
|
|
298
159
|
}
|
|
299
160
|
var ofs = strTarget.indexOf(strSearch);
|
|
300
161
|
if (ofs < 0) {
|
|
301
|
-
// not found
|
|
302
162
|
return 0;
|
|
303
163
|
}
|
|
304
164
|
return UtilStrByteMode.lenB(strTarget.substr(0, ofs)) + 1;
|
|
305
165
|
};
|
|
306
|
-
/// <summary> Replace Substring Within a String (Byte Mode)
|
|
307
|
-
/// Replaces a substring within a string with another substring.
|
|
308
|
-
/// If a DBCS character is divided in two, it will be replace to a space.
|
|
309
|
-
///
|
|
310
|
-
/// </summary>
|
|
311
|
-
/// <param name="strTarget:">target string where the replacement will take place.
|
|
312
|
-
/// </param>
|
|
313
|
-
/// <param name="strOrigin:">string that provides the substring to be copied to
|
|
314
|
-
/// target.
|
|
315
|
-
/// </param>
|
|
316
|
-
/// <param name="ofs:">the first position (byte) in the target string that will
|
|
317
|
-
/// receive the substring from origin.
|
|
318
|
-
/// </param>
|
|
319
|
-
/// <param name="len:">the number of bytes that will be moved from origin to
|
|
320
|
-
/// target, starting from the leftmost character of origin.
|
|
321
|
-
/// </param>
|
|
322
|
-
/// <returns> string containing modified target string
|
|
323
|
-
///
|
|
324
|
-
/// Example: repB("abXYc", "de", 4, 2)
|
|
325
|
-
/// Where 'a', 'b', 'c', 'd' and 'e' are SBCS, and 'X' and 'Y' are DBCS,
|
|
326
|
-
/// it returns "ab de c".
|
|
327
|
-
/// </returns>
|
|
328
166
|
UtilStrByteMode.repB = function (strTarget, strOrigin, ofs, len) {
|
|
329
167
|
var strbufAddingBuf = new mscorelib.StringBuilder();
|
|
330
168
|
if (ofs < 0) {
|
|
@@ -347,33 +185,12 @@
|
|
|
347
185
|
if (intRightLen > 0) {
|
|
348
186
|
strbufAddingBuf.Append(UtilStrByteMode.rightB(strTarget, intRightLen));
|
|
349
187
|
}
|
|
350
|
-
// add blanks to the end
|
|
351
188
|
intAddSpaceLen = len - UtilStrByteMode.lenB(strOrigin);
|
|
352
189
|
for (; intAddSpaceLen > 0; intAddSpaceLen--) {
|
|
353
190
|
strbufAddingBuf.Append(' ');
|
|
354
191
|
}
|
|
355
192
|
return strbufAddingBuf.ToString();
|
|
356
193
|
};
|
|
357
|
-
/// <summary> Replace Substring Within a String (Character Mode)
|
|
358
|
-
/// Replaces a substring within a string with another substring.
|
|
359
|
-
///
|
|
360
|
-
/// </summary>
|
|
361
|
-
/// <param name="strTarget:">target string where the replacement will take place.
|
|
362
|
-
/// </param>
|
|
363
|
-
/// <param name="strOrigin:">string that provides the substring to be copied to
|
|
364
|
-
/// target.
|
|
365
|
-
/// </param>
|
|
366
|
-
/// <param name="ofs:">the first position (character) in the target string that
|
|
367
|
-
/// will receive the substring from origin.
|
|
368
|
-
/// </param>
|
|
369
|
-
/// <param name="len:">the number of characters that will be moved from origin
|
|
370
|
-
/// to target, starting from the leftmost character of origin.
|
|
371
|
-
/// </param>
|
|
372
|
-
/// <returns> string containing modified target string
|
|
373
|
-
///
|
|
374
|
-
/// Example: repB("abXYc", "de", 4, 2)
|
|
375
|
-
/// Whether each character is SBCS or DBCS, it returns "abXde".
|
|
376
|
-
/// </returns>
|
|
377
194
|
UtilStrByteMode.repC = function (strTarget, strOrigin, ofs, len) {
|
|
378
195
|
var strbufAddingBuf = new mscorelib.StringBuilder();
|
|
379
196
|
if (ofs < 0) {
|
|
@@ -388,7 +205,6 @@
|
|
|
388
205
|
len = 0;
|
|
389
206
|
}
|
|
390
207
|
strbufAddingBuf.Append(strTarget.substr(0, ofs));
|
|
391
|
-
// add blanks between strTarget and strOrigin
|
|
392
208
|
var intAddSpaceLen = ofs - strTarget.length;
|
|
393
209
|
for (; intAddSpaceLen > 0; intAddSpaceLen--)
|
|
394
210
|
strbufAddingBuf.Append(' ');
|
|
@@ -402,18 +218,9 @@
|
|
|
402
218
|
}
|
|
403
219
|
return strbufAddingBuf.ToString();
|
|
404
220
|
};
|
|
405
|
-
/// <summary> Checks whether a character is 1 byte (halfwidth) or not (fullwidth)
|
|
406
|
-
/// Returns true if the character is represented by 1 byte in non-Unicode
|
|
407
|
-
/// encoding.
|
|
408
|
-
/// </summary>
|
|
409
|
-
/// <param name="letter:">a character to be checked.
|
|
410
|
-
/// </param>
|
|
411
|
-
/// <returns> true if the character is halfwidth (SBCS), or false if it is
|
|
412
|
-
/// fullwidth (DBCS).
|
|
413
|
-
/// </returns>
|
|
414
221
|
UtilStrByteMode.isHalfWidth = function (str) {
|
|
415
222
|
var letter = str.charCodeAt(0);
|
|
416
|
-
if (32 <=
|
|
223
|
+
if (32 <= letter && letter <= 126) {
|
|
417
224
|
return true;
|
|
418
225
|
}
|
|
419
226
|
else {
|
|
@@ -423,33 +230,18 @@
|
|
|
423
230
|
}
|
|
424
231
|
return false;
|
|
425
232
|
};
|
|
426
|
-
/// <summary> Checks whether a character is halfwidth digit letter
|
|
427
|
-
/// Do not use "Character.isDigit" which cannot distinguish between
|
|
428
|
-
/// halfwidth digit letter(SBCS) and fullwidth difit letter(DBCS).
|
|
429
|
-
/// </summary>
|
|
430
|
-
/// <param name="letter:">a character to be checked.
|
|
431
|
-
/// </param>
|
|
432
|
-
/// <returns> true if the character is halfwidth digit letter, or
|
|
433
|
-
/// false if it is DBCS or not digit letter.
|
|
434
|
-
/// </returns>
|
|
435
233
|
UtilStrByteMode.isDigit = function (letter) {
|
|
436
|
-
return 48 <=
|
|
437
|
-
};
|
|
438
|
-
/// <summary>Checks whether a character is one of those supported for # Alpha Mask</summary>
|
|
439
|
-
/// <param name="letter:">a character to be checked.
|
|
440
|
-
/// </param>
|
|
441
|
-
/// <returns> true if the character is halfwidth digit letter, or
|
|
442
|
-
/// false if it is DBCS or not digit letter.
|
|
443
|
-
/// </returns>
|
|
234
|
+
return 48 <= letter.charCodeAt(0) && letter.charCodeAt(0) <= 57;
|
|
235
|
+
};
|
|
444
236
|
UtilStrByteMode.asNumeric = function (letter) {
|
|
445
237
|
var result;
|
|
446
238
|
switch (letter.charCodeAt(0)) {
|
|
447
|
-
case 42:
|
|
448
|
-
case 43:
|
|
449
|
-
case 44:
|
|
450
|
-
case 45:
|
|
451
|
-
case 46:
|
|
452
|
-
case 47:
|
|
239
|
+
case 42:
|
|
240
|
+
case 43:
|
|
241
|
+
case 44:
|
|
242
|
+
case 45:
|
|
243
|
+
case 46:
|
|
244
|
+
case 47:
|
|
453
245
|
result = true;
|
|
454
246
|
break;
|
|
455
247
|
default:
|
|
@@ -458,47 +250,12 @@
|
|
|
458
250
|
}
|
|
459
251
|
return result;
|
|
460
252
|
};
|
|
461
|
-
/// <summary> Converts a position for the 1st string (Source) to a position for
|
|
462
|
-
/// the 2nd string (Dest).
|
|
463
|
-
/// If a double byte character exists in the strings, the position for the
|
|
464
|
-
/// Source could be different from the position for the Dest.
|
|
465
|
-
/// (DBCS Support)
|
|
466
|
-
///
|
|
467
|
-
/// </summary>
|
|
468
|
-
/// <param name="strSource:">Source string
|
|
469
|
-
/// </param>
|
|
470
|
-
/// <param name="strDest:">Dest string
|
|
471
|
-
/// </param>
|
|
472
|
-
/// <param name="pos:">position in the Source string
|
|
473
|
-
/// </param>
|
|
474
|
-
/// <param name="isAdvance:">advance or retreat the ret pos if a DBCS char is split
|
|
475
|
-
/// </param>
|
|
476
|
-
/// <returns> position in the Dest string
|
|
477
|
-
///
|
|
478
|
-
/// Example: convPos("abcYZ", "YZabc", 4)
|
|
479
|
-
/// It returns 4, if the all characters in the strings are SBCS.
|
|
480
|
-
///
|
|
481
|
-
/// If 'a', 'b' and 'c' are SBCS, and 'Y' and 'Z' are DBCS, it
|
|
482
|
-
/// returns 3.
|
|
483
|
-
/// pos
|
|
484
|
-
/// Unicode index 0 1 2 3 [4]
|
|
485
|
-
/// +-------------+
|
|
486
|
-
/// Source string |a|b|c| Y | Z |
|
|
487
|
-
/// +-------------+
|
|
488
|
-
/// ANSI index 0 1 2 3 4[5]6
|
|
489
|
-
/// +-------------+
|
|
490
|
-
/// Dest string | Y | Z |a|b|c|
|
|
491
|
-
/// +-------------+
|
|
492
|
-
/// Unicode index 0 1 2[3]4
|
|
493
|
-
/// ret
|
|
494
|
-
/// </returns>
|
|
495
253
|
UtilStrByteMode.convPos = function (strSource, strDest, pos, isAdvance) {
|
|
496
254
|
var retPos;
|
|
497
255
|
if (pos < 0)
|
|
498
256
|
return 0;
|
|
499
257
|
if (pos > strSource.length)
|
|
500
258
|
pos = strSource.length;
|
|
501
|
-
// add blanks to the Dest string if it is shorter than the Src string
|
|
502
259
|
var diffLen = UtilStrByteMode.lenB(strSource) - UtilStrByteMode.lenB(strDest);
|
|
503
260
|
if (diffLen > 0) {
|
|
504
261
|
var stringBuilder = new mscorelib.StringBuilder(strDest);
|
|
@@ -509,23 +266,11 @@
|
|
|
509
266
|
var byteSource = UtilStrByteMode.Encoding.GetBytes(strSource.substr(0, pos));
|
|
510
267
|
var strLeftB = UtilStrByteMode.leftB(strDest, byteSource.length);
|
|
511
268
|
retPos = strLeftB.length;
|
|
512
|
-
if (!isAdvance && retPos > 0 && strLeftB.charCodeAt(retPos - 1) === 32
|
|
269
|
+
if (!isAdvance && retPos > 0 && strLeftB.charCodeAt(retPos - 1) === 32 && strDest.charCodeAt(retPos - 1) !== 32) {
|
|
513
270
|
retPos = retPos - 1;
|
|
514
271
|
}
|
|
515
272
|
return retPos;
|
|
516
273
|
};
|
|
517
|
-
/// <summary> return the number of characters of picture which corresponds to
|
|
518
|
-
/// given string.
|
|
519
|
-
/// </summary>
|
|
520
|
-
/// <param name="str:">given string
|
|
521
|
-
/// </param>
|
|
522
|
-
/// <param name="picture:">picture
|
|
523
|
-
/// </param>
|
|
524
|
-
/// <returns> minimal length of picture
|
|
525
|
-
/// Example: getMinLenPicture("ZZ20/11/", "JJJJYY/MM/DD") [ZZ is DBCS]
|
|
526
|
-
/// It returns 10.
|
|
527
|
-
/// </returns>
|
|
528
|
-
/// (DBCS Support)
|
|
529
274
|
UtilStrByteMode.getMinLenPicture = function (str, picture) {
|
|
530
275
|
var len = 0;
|
|
531
276
|
if (UtilStrByteMode.lenB(picture) - UtilStrByteMode.lenB(str) > 0) {
|
|
@@ -535,18 +280,6 @@
|
|
|
535
280
|
len = picture.length;
|
|
536
281
|
return len;
|
|
537
282
|
};
|
|
538
|
-
/// <summary>
|
|
539
|
-
/// </summary> Compares two specified strings in the DBCS sort order and returns an integer
|
|
540
|
-
/// that indicates their relative position.
|
|
541
|
-
/// <param name="str1:">The first string to compare.
|
|
542
|
-
/// </param>
|
|
543
|
-
/// <param name="str2:">The second string to compare.
|
|
544
|
-
/// </param>
|
|
545
|
-
/// <returns>an integer that indicates the lexical relationship between the two strings.
|
|
546
|
-
/// -1: str1 is less than str2.
|
|
547
|
-
/// 0: str1 equals str2.
|
|
548
|
-
/// 1: str1 is greater than str2.
|
|
549
|
-
/// </returns>
|
|
550
283
|
UtilStrByteMode.strcmp = function (str1, str2) {
|
|
551
284
|
var array1 = UtilStrByteMode.Encoding.GetBytes(str1);
|
|
552
285
|
var array2 = UtilStrByteMode.Encoding.GetBytes(str2);
|
|
@@ -568,22 +301,15 @@
|
|
|
568
301
|
return UtilStrByteMode;
|
|
569
302
|
}());
|
|
570
303
|
UtilStrByteMode.Encoding = mscorelib.Encoding.UTF8;
|
|
571
|
-
// TODO : need to check what to do with CultureInfo
|
|
572
304
|
UtilStrByteMode.strNavigatorLang = window.navigator.language;
|
|
573
305
|
UtilStrByteMode._bLocaleDefLangJPN = UtilStrByteMode.strNavigatorLang.startsWith('ja');
|
|
574
306
|
UtilStrByteMode._bLocaleDefLangCHN = UtilStrByteMode.strNavigatorLang.startsWith('zh');
|
|
575
307
|
UtilStrByteMode._bLocaleDefLangKOR = UtilStrByteMode.strNavigatorLang.startsWith('ko');
|
|
576
308
|
|
|
577
|
-
//@dynamic
|
|
578
309
|
var Rtf_SYMBOL = /** @class */ (function () {
|
|
579
|
-
/* index into property table if kwd == kwdProp */
|
|
580
|
-
/* index into destination table if kwd == kwdDest */
|
|
581
|
-
/* character to print if kwd == kwdChar */
|
|
582
310
|
function Rtf_SYMBOL(keyWord, kwd, idxInRgprop) {
|
|
583
311
|
this.szKeyword = null;
|
|
584
|
-
/* RTF keyword */
|
|
585
312
|
this.kwd = null;
|
|
586
|
-
/* base action to take */
|
|
587
313
|
this.idxInRgprop = null;
|
|
588
314
|
this.szKeyword = keyWord;
|
|
589
315
|
this.kwd = kwd;
|
|
@@ -591,12 +317,9 @@
|
|
|
591
317
|
}
|
|
592
318
|
return Rtf_SYMBOL;
|
|
593
319
|
}());
|
|
594
|
-
// @dynamic
|
|
595
320
|
var Rtf_PROP = /** @class */ (function () {
|
|
596
|
-
/* structure containing value */
|
|
597
321
|
function Rtf_PROP(actn, prop) {
|
|
598
322
|
this.actn = null;
|
|
599
|
-
/* size of value */
|
|
600
323
|
this.prop = null;
|
|
601
324
|
this.actn = actn;
|
|
602
325
|
this.prop = prop;
|
|
@@ -610,23 +333,27 @@
|
|
|
610
333
|
}
|
|
611
334
|
return Rtf_StackSave;
|
|
612
335
|
}());
|
|
336
|
+
exports.Rtf_KWD = void 0;
|
|
613
337
|
(function (Rtf_KWD) {
|
|
614
338
|
Rtf_KWD[Rtf_KWD["CHAR"] = 0] = "CHAR";
|
|
615
339
|
Rtf_KWD[Rtf_KWD["DEST"] = 1] = "DEST";
|
|
616
340
|
Rtf_KWD[Rtf_KWD["PROP"] = 2] = "PROP";
|
|
617
341
|
Rtf_KWD[Rtf_KWD["SPEC"] = 3] = "SPEC";
|
|
618
342
|
})(exports.Rtf_KWD || (exports.Rtf_KWD = {}));
|
|
343
|
+
exports.Rtf_PROPTYPE = void 0;
|
|
619
344
|
(function (Rtf_PROPTYPE) {
|
|
620
345
|
Rtf_PROPTYPE[Rtf_PROPTYPE["CHP"] = 0] = "CHP";
|
|
621
346
|
Rtf_PROPTYPE[Rtf_PROPTYPE["PAP"] = 1] = "PAP";
|
|
622
347
|
Rtf_PROPTYPE[Rtf_PROPTYPE["SEP"] = 2] = "SEP";
|
|
623
348
|
Rtf_PROPTYPE[Rtf_PROPTYPE["DOP"] = 3] = "DOP";
|
|
624
349
|
})(exports.Rtf_PROPTYPE || (exports.Rtf_PROPTYPE = {}));
|
|
350
|
+
exports.Rtf_ACTN = void 0;
|
|
625
351
|
(function (Rtf_ACTN) {
|
|
626
352
|
Rtf_ACTN[Rtf_ACTN["SPEC"] = 0] = "SPEC";
|
|
627
353
|
Rtf_ACTN[Rtf_ACTN["BYTE"] = 1] = "BYTE";
|
|
628
354
|
Rtf_ACTN[Rtf_ACTN["WORD"] = 2] = "WORD";
|
|
629
355
|
})(exports.Rtf_ACTN || (exports.Rtf_ACTN = {}));
|
|
356
|
+
exports.Rtf_IPFN = void 0;
|
|
630
357
|
(function (Rtf_IPFN) {
|
|
631
358
|
Rtf_IPFN[Rtf_IPFN["BIN"] = 0] = "BIN";
|
|
632
359
|
Rtf_IPFN[Rtf_IPFN["HEX"] = 1] = "HEX";
|
|
@@ -637,11 +364,13 @@
|
|
|
637
364
|
Rtf_IPFN[Rtf_IPFN["CHARSET"] = 6] = "CHARSET";
|
|
638
365
|
Rtf_IPFN[Rtf_IPFN["UNICODE"] = 7] = "UNICODE";
|
|
639
366
|
})(exports.Rtf_IPFN || (exports.Rtf_IPFN = {}));
|
|
367
|
+
exports.Rtf_IDEST = void 0;
|
|
640
368
|
(function (Rtf_IDEST) {
|
|
641
369
|
Rtf_IDEST[Rtf_IDEST["PICT"] = 0] = "PICT";
|
|
642
370
|
Rtf_IDEST[Rtf_IDEST["COLOR"] = 1] = "COLOR";
|
|
643
371
|
Rtf_IDEST[Rtf_IDEST["SKIP"] = 2] = "SKIP";
|
|
644
372
|
})(exports.Rtf_IDEST || (exports.Rtf_IDEST = {}));
|
|
373
|
+
exports.Rtf_IPROP = void 0;
|
|
645
374
|
(function (Rtf_IPROP) {
|
|
646
375
|
Rtf_IPROP[Rtf_IPROP["BOLD"] = 0] = "BOLD";
|
|
647
376
|
Rtf_IPROP[Rtf_IPROP["ITALIC"] = 1] = "ITALIC";
|
|
@@ -677,12 +406,14 @@
|
|
|
677
406
|
Rtf_IPROP[Rtf_IPROP["XA_BULLET"] = 31] = "XA_BULLET";
|
|
678
407
|
Rtf_IPROP[Rtf_IPROP["MAX"] = 32] = "MAX";
|
|
679
408
|
})(exports.Rtf_IPROP || (exports.Rtf_IPROP = {}));
|
|
409
|
+
exports.Rtf_RDS = void 0;
|
|
680
410
|
(function (Rtf_RDS) {
|
|
681
411
|
Rtf_RDS[Rtf_RDS["NORM"] = 0] = "NORM";
|
|
682
412
|
Rtf_RDS[Rtf_RDS["COLOR"] = 1] = "COLOR";
|
|
683
413
|
Rtf_RDS[Rtf_RDS["SKIP"] = 2] = "SKIP";
|
|
684
414
|
Rtf_RDS[Rtf_RDS["NEW"] = 3] = "NEW";
|
|
685
415
|
})(exports.Rtf_RDS || (exports.Rtf_RDS = {}));
|
|
416
|
+
exports.Rtf_ErrorRtf = void 0;
|
|
686
417
|
(function (Rtf_ErrorRtf) {
|
|
687
418
|
Rtf_ErrorRtf[Rtf_ErrorRtf["OK"] = 0] = "OK";
|
|
688
419
|
Rtf_ErrorRtf[Rtf_ErrorRtf["STACK_UNDERFLOW"] = 1] = "STACK_UNDERFLOW";
|
|
@@ -694,15 +425,6 @@
|
|
|
694
425
|
Rtf_ErrorRtf[Rtf_ErrorRtf["END_OF_FILE"] = 7] = "END_OF_FILE";
|
|
695
426
|
Rtf_ErrorRtf[Rtf_ErrorRtf["BUFFER_TOO_SMALL"] = 8] = "BUFFER_TOO_SMALL";
|
|
696
427
|
})(exports.Rtf_ErrorRtf || (exports.Rtf_ErrorRtf = {}));
|
|
697
|
-
// TODO :
|
|
698
|
-
// Rtf_RtfChar should actually be enum.
|
|
699
|
-
// But computed string values are not allowed to be defined in enum.
|
|
700
|
-
// So, we cannot have String.fromCharCode(XXX).
|
|
701
|
-
// We have 2 options:
|
|
702
|
-
// 1. Convert this enum into a class with all static readonly items.
|
|
703
|
-
// 2. Keep it as enum with numeric values (char codes).
|
|
704
|
-
// Going with #1 now, since @2 makes the code ugly.
|
|
705
|
-
// Will evalaute later if required.
|
|
706
428
|
var Rtf_RtfChar = /** @class */ (function () {
|
|
707
429
|
function Rtf_RtfChar() {
|
|
708
430
|
}
|
|
@@ -720,6 +442,7 @@
|
|
|
720
442
|
Rtf_RtfChar.OPENINGBRACE = '{';
|
|
721
443
|
Rtf_RtfChar.CLOSINGBRACE = '}';
|
|
722
444
|
Rtf_RtfChar.BACKSLASH = '\\';
|
|
445
|
+
exports.Rtf_RIS = void 0;
|
|
723
446
|
(function (Rtf_RIS) {
|
|
724
447
|
Rtf_RIS[Rtf_RIS["NORM"] = 0] = "NORM";
|
|
725
448
|
Rtf_RIS[Rtf_RIS["BIN"] = 1] = "BIN";
|
|
@@ -727,8 +450,6 @@
|
|
|
727
450
|
Rtf_RIS[Rtf_RIS["UNICODE"] = 3] = "UNICODE";
|
|
728
451
|
})(exports.Rtf_RIS || (exports.Rtf_RIS = {}));
|
|
729
452
|
var Rtf = /** @class */ (function () {
|
|
730
|
-
/// <summary> Constructor
|
|
731
|
-
/// </summary>
|
|
732
453
|
function Rtf() {
|
|
733
454
|
this._group = 0;
|
|
734
455
|
this._cbBin = 0;
|
|
@@ -757,13 +478,6 @@
|
|
|
757
478
|
this.setCodePageTable();
|
|
758
479
|
}
|
|
759
480
|
}
|
|
760
|
-
/// <summary> Checks if the blob has a Rtf data or not
|
|
761
|
-
///
|
|
762
|
-
/// </summary>
|
|
763
|
-
/// <param name="str">
|
|
764
|
-
/// </param>
|
|
765
|
-
/// <returns>
|
|
766
|
-
/// </returns>
|
|
767
481
|
Rtf.isRtf = function (str) {
|
|
768
482
|
var isRtf = false;
|
|
769
483
|
if (str !== null && str.startsWith(this.RTF_PREFIX)) {
|
|
@@ -771,17 +485,6 @@
|
|
|
771
485
|
}
|
|
772
486
|
return isRtf;
|
|
773
487
|
};
|
|
774
|
-
/// <summary> Converts Rtf Text to Plain Text
|
|
775
|
-
/// Step 1: Isolate RTF keywords and send them to ParseKeyword; Push and pop state at the start and end of
|
|
776
|
-
/// RTF groups Send text to ParseChar for further processing.
|
|
777
|
-
///
|
|
778
|
-
/// </summary>
|
|
779
|
-
/// <param name="rtfTxt">
|
|
780
|
-
/// </param>
|
|
781
|
-
/// <param name="outputTxt">
|
|
782
|
-
/// </param>
|
|
783
|
-
/// <returns>
|
|
784
|
-
/// </returns>
|
|
785
488
|
Rtf.prototype.toTxt = function (rtfTxt, outputTxt) {
|
|
786
489
|
var cNibble = 2;
|
|
787
490
|
var b = 0;
|
|
@@ -807,7 +510,6 @@
|
|
|
807
510
|
this._index++;
|
|
808
511
|
if (this._group < 0)
|
|
809
512
|
return exports.Rtf_ErrorRtf.STACK_UNDERFLOW;
|
|
810
|
-
/* if we're parsing binary data, handle it directly */
|
|
811
513
|
if (this._internalState === exports.Rtf_RIS.BIN) {
|
|
812
514
|
if ((ec = this.ParseChar(blobChar, outputTxt)) !== exports.Rtf_ErrorRtf.OK)
|
|
813
515
|
return ec;
|
|
@@ -830,22 +532,16 @@
|
|
|
830
532
|
return ec;
|
|
831
533
|
break;
|
|
832
534
|
case Rtf_RtfChar.LF:
|
|
833
|
-
case Rtf_RtfChar.CR:
|
|
535
|
+
case Rtf_RtfChar.CR:
|
|
834
536
|
if (this._processCrlfSpecial) {
|
|
835
|
-
/* Once we reach the 0x0a while ProcessCRLFSpecial_, reset the ProcessCRLFSpecial_ */
|
|
836
537
|
if (blobChar === Rtf_RtfChar.LF) {
|
|
837
538
|
this._processCrlfSpecial = false;
|
|
838
539
|
}
|
|
839
540
|
}
|
|
840
541
|
else {
|
|
841
|
-
/*---------------------------------------------------------------*/
|
|
842
|
-
/* skip new lines coming only from the RTF header 1/1/98 - #2390 */
|
|
843
|
-
/*---------------------------------------------------------------*/
|
|
844
|
-
/* Skip the LF (0x0a) if we are not in the ProcessCRLFSpecial_ */
|
|
845
542
|
if (blobChar === Rtf_RtfChar.LF || (blobChar === Rtf_RtfChar.CR && skipNewline && !this._outputOnce))
|
|
846
543
|
break;
|
|
847
544
|
}
|
|
848
|
-
/* falls through */
|
|
849
545
|
default:
|
|
850
546
|
if (blobChar !== Rtf_RtfChar.CR)
|
|
851
547
|
skipNewline = false;
|
|
@@ -859,7 +555,6 @@
|
|
|
859
555
|
this._internalState = exports.Rtf_RIS.NORM;
|
|
860
556
|
}
|
|
861
557
|
else {
|
|
862
|
-
/* parsing hex data */
|
|
863
558
|
if (this._internalState !== exports.Rtf_RIS.HEX)
|
|
864
559
|
return exports.Rtf_ErrorRtf.ASSERTION;
|
|
865
560
|
b = b << 4;
|
|
@@ -881,22 +576,18 @@
|
|
|
881
576
|
if (cNibble === 0) {
|
|
882
577
|
if (UtilStrByteMode.isLocaleDefLangDBCS()) {
|
|
883
578
|
charset = this.getCharset(this._fontNum);
|
|
884
|
-
// leading byte of a double-byte character
|
|
885
579
|
if (!skipParseChar && Rtf.is1stByte(b, charset)) {
|
|
886
580
|
dbcsBytes[0] = b;
|
|
887
581
|
dbcsBytes[1] = 0;
|
|
888
582
|
skipParseChar = true;
|
|
889
583
|
}
|
|
890
584
|
else {
|
|
891
|
-
// trailing byte of a double-byte character
|
|
892
585
|
if (skipParseChar && Rtf.is2ndByte(b, charset))
|
|
893
586
|
dbcsBytes[1] = b;
|
|
894
|
-
// single-byte character
|
|
895
587
|
else {
|
|
896
588
|
dbcsBytes[0] = b;
|
|
897
589
|
dbcsBytes[1] = 0;
|
|
898
590
|
}
|
|
899
|
-
// convert DBCS to Unicode
|
|
900
591
|
codePage = this.getCodePage(charset);
|
|
901
592
|
var workStr = mscorelib.Encoding.GetEncoding(codePage).GetString(dbcsBytes, 0, 2);
|
|
902
593
|
b = workStr.charCodeAt(0);
|
|
@@ -912,36 +603,19 @@
|
|
|
912
603
|
this._internalState = exports.Rtf_RIS.NORM;
|
|
913
604
|
}
|
|
914
605
|
}
|
|
915
|
-
/* end else (ris != risNorm) */
|
|
916
606
|
break;
|
|
917
607
|
}
|
|
918
|
-
/* switch */
|
|
919
608
|
}
|
|
920
|
-
/* else (ris != risBin) */
|
|
921
609
|
}
|
|
922
|
-
/* while */
|
|
923
610
|
if (this._group < 0)
|
|
924
611
|
return exports.Rtf_ErrorRtf.STACK_UNDERFLOW;
|
|
925
612
|
if (this._group > 0)
|
|
926
613
|
return exports.Rtf_ErrorRtf.UNMATCHED_BRACE;
|
|
927
|
-
/*-------------------------------------------------------------------*/
|
|
928
|
-
/* Eliminate suffix of carrige return + line feed */
|
|
929
|
-
/* (Check last characters - just in case format is not the expected) */
|
|
930
|
-
/*-------------------------------------------------------------------*/
|
|
931
614
|
currPos = outputTxt.Length;
|
|
932
615
|
if (currPos >= 3 && (outputTxt.get_Item(currPos - 3) === Rtf_RtfChar.CR && outputTxt.get_Item(currPos - 2) === Rtf_RtfChar.LF && outputTxt.get_Item(currPos - 1) === Rtf_RtfChar.CR || outputTxt.get_Item(currPos - 3) === Rtf_RtfChar.LF && outputTxt.get_Item(currPos - 2) === Rtf_RtfChar.CR && outputTxt.get_Item(currPos - 1) === Rtf_RtfChar.CR))
|
|
933
616
|
outputTxt.Remove(currPos - 3, 3);
|
|
934
617
|
return exports.Rtf_ErrorRtf.OK;
|
|
935
618
|
};
|
|
936
|
-
/// <summary> Route the character to the appropriate destination stream.
|
|
937
|
-
///
|
|
938
|
-
/// </summary>
|
|
939
|
-
/// <param name="ch">
|
|
940
|
-
/// </param>
|
|
941
|
-
/// <param name="outputTxt">
|
|
942
|
-
/// </param>
|
|
943
|
-
/// <returns>
|
|
944
|
-
/// </returns>
|
|
945
619
|
Rtf.prototype.ParseChar = function (ch, outputTxt) {
|
|
946
620
|
var ret = exports.Rtf_ErrorRtf.OK;
|
|
947
621
|
if (this._internalState === exports.Rtf_RIS.BIN && --this._cbBin <= 0) {
|
|
@@ -949,28 +623,14 @@
|
|
|
949
623
|
}
|
|
950
624
|
if (this._destState === exports.Rtf_RDS.SKIP) {
|
|
951
625
|
}
|
|
952
|
-
/* Toss this character. */
|
|
953
626
|
else if (this._destState === exports.Rtf_RDS.NORM) {
|
|
954
|
-
/* Output a character. Properties are valid at this point. */
|
|
955
627
|
ret = this.PrintChar(ch, outputTxt);
|
|
956
628
|
}
|
|
957
629
|
else {
|
|
958
|
-
/* handle other destinations.... */
|
|
959
630
|
}
|
|
960
631
|
return ret;
|
|
961
632
|
};
|
|
962
|
-
/// <summary> Send a character to the output file.
|
|
963
|
-
///
|
|
964
|
-
/// </summary>
|
|
965
|
-
/// <param name="ch">
|
|
966
|
-
/// </param>
|
|
967
|
-
/// <param name="outputTxt">
|
|
968
|
-
/// </param>
|
|
969
|
-
/// <returns>
|
|
970
|
-
/// </returns>
|
|
971
633
|
Rtf.prototype.PrintChar = function (ch, outputTxt) {
|
|
972
|
-
/* Allow carrige return + line feed in text, but remove bullet sign */
|
|
973
|
-
/*------------------------------------------------------------------*/
|
|
974
634
|
if ((ch >= ' ' || ch === Rtf_RtfChar.CR || ch === Rtf_RtfChar.LF) && ch !== String.fromCharCode(183)) {
|
|
975
635
|
outputTxt.Append(ch);
|
|
976
636
|
}
|
|
@@ -979,11 +639,6 @@
|
|
|
979
639
|
}
|
|
980
640
|
return exports.Rtf_ErrorRtf.OK;
|
|
981
641
|
};
|
|
982
|
-
/// <summary> Save relevant info on a linked list of SAVE structures.
|
|
983
|
-
///
|
|
984
|
-
/// </summary>
|
|
985
|
-
/// <returns>
|
|
986
|
-
/// </returns>
|
|
987
642
|
Rtf.prototype.PushState = function () {
|
|
988
643
|
var stackSave = new Rtf_StackSave();
|
|
989
644
|
if (stackSave === null) {
|
|
@@ -996,11 +651,6 @@
|
|
|
996
651
|
this._group++;
|
|
997
652
|
return exports.Rtf_ErrorRtf.OK;
|
|
998
653
|
};
|
|
999
|
-
/// <summary> Always restore relevant info from the top of the SAVE list.
|
|
1000
|
-
///
|
|
1001
|
-
/// </summary>
|
|
1002
|
-
/// <returns>
|
|
1003
|
-
/// </returns>
|
|
1004
654
|
Rtf.prototype.PopState = function () {
|
|
1005
655
|
var savedPop = this._stack.pop();
|
|
1006
656
|
if (savedPop === null) {
|
|
@@ -1011,15 +661,6 @@
|
|
|
1011
661
|
this._group--;
|
|
1012
662
|
return exports.Rtf_ErrorRtf.OK;
|
|
1013
663
|
};
|
|
1014
|
-
/// <summary> Step 2: get a control word (and its associated value) and call TranslateKeyword to dispatch the control.
|
|
1015
|
-
///
|
|
1016
|
-
/// </summary>
|
|
1017
|
-
/// <param name="rtfTxt">
|
|
1018
|
-
/// </param>
|
|
1019
|
-
/// <param name="outputTxt">
|
|
1020
|
-
/// </param>
|
|
1021
|
-
/// <returns>
|
|
1022
|
-
/// </returns>
|
|
1023
664
|
Rtf.prototype.ParseKeyword = function (rtfTxt, outputTxt) {
|
|
1024
665
|
var ch;
|
|
1025
666
|
var fNeg = false;
|
|
@@ -1028,7 +669,6 @@
|
|
|
1028
669
|
if ((ch = rtfTxt[this._index++]) === String.fromCharCode(0)) {
|
|
1029
670
|
return exports.Rtf_ErrorRtf.END_OF_FILE;
|
|
1030
671
|
}
|
|
1031
|
-
/* a control symbol; no delimiter. */
|
|
1032
672
|
if (!mscorelib.NChar.IsLetter(ch)) {
|
|
1033
673
|
szKeyword = szKeyword + ch;
|
|
1034
674
|
return this.TranslateKeyword(szKeyword, outputTxt);
|
|
@@ -1050,13 +690,6 @@
|
|
|
1050
690
|
if (ch !== ' ')
|
|
1051
691
|
this._index--;
|
|
1052
692
|
if (szKeyword === Rtf.CHAR_PAR) {
|
|
1053
|
-
/* if we get a RTF sequence of \par[0xd][0xa], ie a \par kwd followed */
|
|
1054
|
-
/* immidiately by the CR and LF, then ignore the \par kwd. otherwise */
|
|
1055
|
-
/* we will translate the \par - which translates to a LF (0xa) and also */
|
|
1056
|
-
/* the following 0x0d is translated to 0x0a, thus resulting in TWO LF's */
|
|
1057
|
-
/* being inserted instead of just one LF. So by skipping [\par] and */
|
|
1058
|
-
/* translating only the [0xd 0xa] will result in only one LF appearing */
|
|
1059
|
-
/* - which is the desired behaviour */
|
|
1060
693
|
if (rtfTxt[this._index] === Rtf_RtfChar.CR && rtfTxt[this._index + 1] === Rtf_RtfChar.LF)
|
|
1061
694
|
this._processCrlfSpecial = true;
|
|
1062
695
|
}
|
|
@@ -1067,37 +700,22 @@
|
|
|
1067
700
|
return this.TranslateKeyword(szKeyword, outputTxt);
|
|
1068
701
|
}
|
|
1069
702
|
};
|
|
1070
|
-
/// <summary> Step 3. Search rgsymRtf for szKeyword and evaluate it appropriately.
|
|
1071
|
-
///
|
|
1072
|
-
/// </summary>
|
|
1073
|
-
/// <param name="szKeyword">
|
|
1074
|
-
/// </param>
|
|
1075
|
-
/// <param name="outputTxt">
|
|
1076
|
-
/// </param>
|
|
1077
|
-
/// <returns>
|
|
1078
|
-
/// </returns>
|
|
1079
703
|
Rtf.prototype.TranslateKeyword = function (szKeyword, outputTxt) {
|
|
1080
704
|
var result = exports.Rtf_ErrorRtf.OK;
|
|
1081
705
|
var isym;
|
|
1082
|
-
/* search for szKeyword in rgsymRtf */
|
|
1083
706
|
for (isym = 0; isym < Rtf.rgsymRtf.length; isym++) {
|
|
1084
707
|
if (szKeyword === Rtf.rgsymRtf[isym].szKeyword) {
|
|
1085
708
|
break;
|
|
1086
709
|
}
|
|
1087
710
|
}
|
|
1088
|
-
/* control word not found */
|
|
1089
711
|
if (isym === Rtf.rgsymRtf.length) {
|
|
1090
712
|
if (this._skipDestIfUnk) {
|
|
1091
|
-
/* if this is a new destination */
|
|
1092
713
|
this._destState = exports.Rtf_RDS.SKIP;
|
|
1093
|
-
/* skip the destination */
|
|
1094
714
|
}
|
|
1095
|
-
/* else just discard it */
|
|
1096
715
|
this._skipDestIfUnk = false;
|
|
1097
716
|
}
|
|
1098
717
|
else {
|
|
1099
718
|
result = exports.Rtf_ErrorRtf.BAD_TABLE;
|
|
1100
|
-
/* found it! use kwd and idxInRgprop to determine what to do with it. */
|
|
1101
719
|
this._skipDestIfUnk = false;
|
|
1102
720
|
if (Rtf.rgsymRtf[isym].kwd === exports.Rtf_KWD.PROP) {
|
|
1103
721
|
result = this.validateProp(Rtf.rgsymRtf[isym].idxInRgprop);
|
|
@@ -1114,21 +732,11 @@
|
|
|
1114
732
|
}
|
|
1115
733
|
return result;
|
|
1116
734
|
};
|
|
1117
|
-
/// <summary> Validate the property identified by _iprop_ to the value _val_.
|
|
1118
|
-
/// previously called Applypropchange
|
|
1119
|
-
/// </summary>
|
|
1120
|
-
/// <param name="iprop">
|
|
1121
|
-
/// </param>
|
|
1122
|
-
/// <returns>
|
|
1123
|
-
/// </returns>
|
|
1124
735
|
Rtf.prototype.validateProp = function (iprop) {
|
|
1125
736
|
var ret = exports.Rtf_ErrorRtf.OK;
|
|
1126
737
|
if (this._destState === exports.Rtf_RDS.SKIP) {
|
|
1127
|
-
/* If we're skipping text, */
|
|
1128
738
|
return ret;
|
|
1129
|
-
/* don't do anything. */
|
|
1130
739
|
}
|
|
1131
|
-
/* validate prop */
|
|
1132
740
|
if (Rtf.rgprop[iprop].prop !== exports.Rtf_PROPTYPE.DOP && Rtf.rgprop[iprop].prop !== exports.Rtf_PROPTYPE.SEP &&
|
|
1133
741
|
Rtf.rgprop[iprop].prop !== exports.Rtf_PROPTYPE.PAP && Rtf.rgprop[iprop].prop !== exports.Rtf_PROPTYPE.CHP &&
|
|
1134
742
|
Rtf.rgprop[iprop].actn !== exports.Rtf_ACTN.SPEC) {
|
|
@@ -1139,35 +747,18 @@
|
|
|
1139
747
|
}
|
|
1140
748
|
return ret;
|
|
1141
749
|
};
|
|
1142
|
-
/// <summary> Change to the destination state.
|
|
1143
|
-
/// previously called ChangeDest
|
|
1144
|
-
/// </summary>
|
|
1145
|
-
/// <returns>
|
|
1146
|
-
/// </returns>
|
|
1147
750
|
Rtf.prototype.changeDestState = function () {
|
|
1148
751
|
if (this._destState === exports.Rtf_RDS.SKIP) {
|
|
1149
|
-
/* if we're skipping text, */
|
|
1150
752
|
return exports.Rtf_ErrorRtf.OK;
|
|
1151
|
-
/* don't do anything */
|
|
1152
753
|
}
|
|
1153
754
|
this._destState = exports.Rtf_RDS.SKIP;
|
|
1154
|
-
/* when in doubt, skip it... */
|
|
1155
755
|
return exports.Rtf_ErrorRtf.OK;
|
|
1156
756
|
};
|
|
1157
|
-
/// <summary> Evaluate an RTF control that needs special processing.
|
|
1158
|
-
///
|
|
1159
|
-
/// </summary>
|
|
1160
|
-
/// <param name="ipfn">
|
|
1161
|
-
/// </param>
|
|
1162
|
-
/// <returns>
|
|
1163
|
-
/// </returns>
|
|
1164
757
|
Rtf.prototype.ParseSpecialKeyword = function (ipfn) {
|
|
1165
758
|
var ret = exports.Rtf_ErrorRtf.OK;
|
|
1166
759
|
if (!UtilStrByteMode.isLocaleDefLangDBCS()) {
|
|
1167
760
|
if (this._destState === exports.Rtf_RDS.SKIP && ipfn !== exports.Rtf_IPFN.BIN) {
|
|
1168
|
-
/* if we're skipping, and it's not */
|
|
1169
761
|
return ret;
|
|
1170
|
-
/* the \bin keyword, ignore it. */
|
|
1171
762
|
}
|
|
1172
763
|
if (ipfn === exports.Rtf_IPFN.FONT || ipfn === exports.Rtf_IPFN.CHARSET || ipfn === exports.Rtf_IPFN.UNICODE) {
|
|
1173
764
|
return ret;
|
|
@@ -1221,15 +812,6 @@
|
|
|
1221
812
|
}
|
|
1222
813
|
return ret;
|
|
1223
814
|
};
|
|
1224
|
-
/// <summary> Checks if the byte is within the trailing byte range.
|
|
1225
|
-
///
|
|
1226
|
-
/// </summary>
|
|
1227
|
-
/// <param name="dbcsBytes">
|
|
1228
|
-
/// </param>
|
|
1229
|
-
/// <param name="charset">
|
|
1230
|
-
/// </param>
|
|
1231
|
-
/// <returns>
|
|
1232
|
-
/// </returns>
|
|
1233
815
|
Rtf.is2ndByte = function (dbcsBytes, charset) {
|
|
1234
816
|
var ret = false;
|
|
1235
817
|
if (dbcsBytes > 255)
|
|
@@ -1248,35 +830,21 @@
|
|
|
1248
830
|
}
|
|
1249
831
|
return ret;
|
|
1250
832
|
};
|
|
1251
|
-
/// <summary> Create a hashtable of codepage associated with charset.
|
|
1252
|
-
///
|
|
1253
|
-
/// </summary>
|
|
1254
|
-
/// <param>
|
|
1255
|
-
/// <returns>
|
|
1256
|
-
/// </returns>
|
|
1257
833
|
Rtf.prototype.setCodePageTable = function () {
|
|
1258
|
-
|
|
1259
|
-
this._codePageTable.set_Item(
|
|
1260
|
-
this._codePageTable.set_Item(
|
|
1261
|
-
this._codePageTable.set_Item(
|
|
1262
|
-
this._codePageTable.set_Item(
|
|
1263
|
-
this._codePageTable.set_Item(
|
|
1264
|
-
this._codePageTable.set_Item(
|
|
1265
|
-
this._codePageTable.set_Item(
|
|
1266
|
-
this._codePageTable.set_Item(
|
|
1267
|
-
this._codePageTable.set_Item(
|
|
1268
|
-
this._codePageTable.set_Item(
|
|
1269
|
-
this._codePageTable.set_Item(
|
|
1270
|
-
this._codePageTable.set_Item(
|
|
1271
|
-
|
|
1272
|
-
};
|
|
1273
|
-
/// <summary> Get codepage corresponding to the specified charset.
|
|
1274
|
-
///
|
|
1275
|
-
/// </summary>
|
|
1276
|
-
/// <param name="charset">
|
|
1277
|
-
/// </param>
|
|
1278
|
-
/// <returns>
|
|
1279
|
-
/// </returns>
|
|
834
|
+
this._codePageTable.set_Item(0, 1252);
|
|
835
|
+
this._codePageTable.set_Item(128, 932);
|
|
836
|
+
this._codePageTable.set_Item(129, 949);
|
|
837
|
+
this._codePageTable.set_Item(134, 936);
|
|
838
|
+
this._codePageTable.set_Item(136, 950);
|
|
839
|
+
this._codePageTable.set_Item(161, 1253);
|
|
840
|
+
this._codePageTable.set_Item(162, 1254);
|
|
841
|
+
this._codePageTable.set_Item(177, 1255);
|
|
842
|
+
this._codePageTable.set_Item(178, 1256);
|
|
843
|
+
this._codePageTable.set_Item(186, 1257);
|
|
844
|
+
this._codePageTable.set_Item(204, 1251);
|
|
845
|
+
this._codePageTable.set_Item(222, 874);
|
|
846
|
+
this._codePageTable.set_Item(238, 1250);
|
|
847
|
+
};
|
|
1280
848
|
Rtf.prototype.getCodePage = function (charset) {
|
|
1281
849
|
var codePage = 0;
|
|
1282
850
|
if (this._codePageTable.ContainsKey(charset)) {
|
|
@@ -1284,13 +852,6 @@
|
|
|
1284
852
|
}
|
|
1285
853
|
return codePage;
|
|
1286
854
|
};
|
|
1287
|
-
/// <summary> Get charset corresponding to the specified font index.
|
|
1288
|
-
///
|
|
1289
|
-
/// </summary>
|
|
1290
|
-
/// <param name="font">
|
|
1291
|
-
/// </param>
|
|
1292
|
-
/// <returns>
|
|
1293
|
-
/// </returns>
|
|
1294
855
|
Rtf.prototype.getCharset = function (font) {
|
|
1295
856
|
var charset = 0;
|
|
1296
857
|
if (this._charsetTable.ContainsKey(font)) {
|
|
@@ -1302,7 +863,6 @@
|
|
|
1302
863
|
}());
|
|
1303
864
|
Rtf.RTF_PREFIX = "{\\rtf";
|
|
1304
865
|
Rtf.CHAR_PAR = "par";
|
|
1305
|
-
/* Property descriptions */
|
|
1306
866
|
Rtf.rgprop = [
|
|
1307
867
|
new Rtf_PROP(exports.Rtf_ACTN.BYTE, exports.Rtf_PROPTYPE.CHP), new Rtf_PROP(exports.Rtf_ACTN.BYTE, exports.Rtf_PROPTYPE.CHP),
|
|
1308
868
|
new Rtf_PROP(exports.Rtf_ACTN.BYTE, exports.Rtf_PROPTYPE.CHP), new Rtf_PROP(exports.Rtf_ACTN.BYTE, exports.Rtf_PROPTYPE.CHP),
|
|
@@ -1320,7 +880,6 @@
|
|
|
1320
880
|
new Rtf_PROP(exports.Rtf_ACTN.BYTE, exports.Rtf_PROPTYPE.PAP), new Rtf_PROP(exports.Rtf_ACTN.SPEC, exports.Rtf_PROPTYPE.PAP),
|
|
1321
881
|
new Rtf_PROP(exports.Rtf_ACTN.SPEC, exports.Rtf_PROPTYPE.CHP), new Rtf_PROP(exports.Rtf_ACTN.SPEC, exports.Rtf_PROPTYPE.SEP)
|
|
1322
882
|
];
|
|
1323
|
-
/* Keyword descriptions */
|
|
1324
883
|
Rtf.rgsymRtf = [
|
|
1325
884
|
new Rtf_SYMBOL("b", exports.Rtf_KWD.PROP, exports.Rtf_IPROP.BOLD), new Rtf_SYMBOL("ul", exports.Rtf_KWD.PROP, exports.Rtf_IPROP.UNDERLINE),
|
|
1326
885
|
new Rtf_SYMBOL("i", exports.Rtf_KWD.PROP, exports.Rtf_IPROP.ITALIC), new Rtf_SYMBOL("li", exports.Rtf_KWD.PROP, exports.Rtf_IPROP.LEFT_IND),
|
|
@@ -1380,7 +939,6 @@
|
|
|
1380
939
|
var StrUtil = /** @class */ (function () {
|
|
1381
940
|
function StrUtil() {
|
|
1382
941
|
}
|
|
1383
|
-
/// <summary> trim the end of the string</summary>
|
|
1384
942
|
StrUtil.mem_trim = function (str, len) {
|
|
1385
943
|
var result;
|
|
1386
944
|
if (len > 0) {
|
|
@@ -1415,15 +973,6 @@
|
|
|
1415
973
|
}
|
|
1416
974
|
StrUtil.memcpy_1(dest, destCount, src, scrCountOrSrcCount, count);
|
|
1417
975
|
};
|
|
1418
|
-
/// <summary>
|
|
1419
|
-
/// copy part of string into another string, like memcpy of C, but 4 string only
|
|
1420
|
-
/// </summary>
|
|
1421
|
-
/// <param name = "dest">string</param>
|
|
1422
|
-
/// <param name = "destCount">of counter start from in destignation string</param>
|
|
1423
|
-
/// <param name = "src">string</param>
|
|
1424
|
-
/// <param name = "scrCount">of counter start from in source string</param>
|
|
1425
|
-
/// <param name = "count"></param>
|
|
1426
|
-
/// <returns> new value of destignation string</returns>
|
|
1427
976
|
StrUtil.memcpy_0 = function (dest, destCount, src, scrCount, count) {
|
|
1428
977
|
var stringBuilder = new mscorelib.StringBuilder(dest.substr(0, destCount));
|
|
1429
978
|
if (scrCount + count < src.length) {
|
|
@@ -1450,14 +999,6 @@
|
|
|
1450
999
|
}
|
|
1451
1000
|
StrUtil.memset_1(dest, destCount, inVal, counter);
|
|
1452
1001
|
};
|
|
1453
|
-
/// <summary>
|
|
1454
|
-
/// insert to string chars n times
|
|
1455
|
-
/// </summary>
|
|
1456
|
-
/// <param name = "dest">string</param>
|
|
1457
|
-
/// <param name = "destCount">of counter start from in destignation string to start insertion of char from</param>
|
|
1458
|
-
/// <param name = "inVal">2 insert</param>
|
|
1459
|
-
/// <param name = "counter">- number of times to insert the char</param>
|
|
1460
|
-
/// <returns> new value of destignation string</returns>
|
|
1461
1002
|
StrUtil.memset_0 = function (dest, destCount, inVal, counter) {
|
|
1462
1003
|
var first = new mscorelib.StringBuilder(dest.substr(0, destCount));
|
|
1463
1004
|
while (counter > 0) {
|
|
@@ -1486,29 +1027,14 @@
|
|
|
1486
1027
|
}
|
|
1487
1028
|
return result;
|
|
1488
1029
|
};
|
|
1489
|
-
/*******************************/
|
|
1490
|
-
/// <summary>
|
|
1491
|
-
/// Reverses string values.
|
|
1492
|
-
/// </summary>
|
|
1493
|
-
/// <param name="text">The StringBuilder object containing the string to be reversed.</param>
|
|
1494
|
-
/// <returns>The reversed string contained in a StringBuilder object.</returns>
|
|
1495
1030
|
StrUtil.ReverseString = function (text) {
|
|
1496
|
-
// TODO: use string.Reverse()
|
|
1497
1031
|
var array = mscorelib.NString.ToCharArray(text.ToString());
|
|
1498
1032
|
array.reverse();
|
|
1499
1033
|
return new mscorelib.StringBuilder(mscorelib.NString.FromChars(array));
|
|
1500
1034
|
};
|
|
1501
|
-
/// <summary> remove spaces from the right side of string</summary>
|
|
1502
|
-
/// <param name="str">the string to trim
|
|
1503
|
-
/// </param>
|
|
1504
1035
|
StrUtil.rtrim = function (str) {
|
|
1505
1036
|
return StrUtil.rtrimWithNull(str, false);
|
|
1506
1037
|
};
|
|
1507
|
-
/// <summary> remove spaces and/or Null chars from the right side of string</summary>
|
|
1508
|
-
/// <param name="str">the string to trim
|
|
1509
|
-
/// </param>
|
|
1510
|
-
/// <param name="trimNullChars">Whether to remove NULL characters or not
|
|
1511
|
-
/// </param>
|
|
1512
1038
|
StrUtil.rtrimWithNull = function (str, trimNullChars) {
|
|
1513
1039
|
var result;
|
|
1514
1040
|
if (typeof str === "undefined" || str === null || str.length === 0) {
|
|
@@ -1517,7 +1043,7 @@
|
|
|
1517
1043
|
else {
|
|
1518
1044
|
var idx = str.length - 1;
|
|
1519
1045
|
if (trimNullChars) {
|
|
1520
|
-
while (idx >= 0 && (str[idx] === ' ' || str[idx] === String.fromCharCode(0)
|
|
1046
|
+
while (idx >= 0 && (str[idx] === ' ' || str[idx] === String.fromCharCode(0))) {
|
|
1521
1047
|
idx = idx - 1;
|
|
1522
1048
|
}
|
|
1523
1049
|
}
|
|
@@ -1536,9 +1062,6 @@
|
|
|
1536
1062
|
}
|
|
1537
1063
|
return result;
|
|
1538
1064
|
};
|
|
1539
|
-
/// <summary> remove spaces from the left side of string</summary>
|
|
1540
|
-
/// <param name="str">the string to trim
|
|
1541
|
-
/// </param>
|
|
1542
1065
|
StrUtil.ltrim = function (str) {
|
|
1543
1066
|
var length = str.length;
|
|
1544
1067
|
var i = 0;
|
|
@@ -1547,7 +1070,7 @@
|
|
|
1547
1070
|
result = str;
|
|
1548
1071
|
}
|
|
1549
1072
|
else {
|
|
1550
|
-
while (i < length && str[i] === ' '
|
|
1073
|
+
while (i < length && str[i] === ' ') {
|
|
1551
1074
|
i = i + 1;
|
|
1552
1075
|
}
|
|
1553
1076
|
if (i > 0) {
|
|
@@ -1557,16 +1080,6 @@
|
|
|
1557
1080
|
}
|
|
1558
1081
|
return result;
|
|
1559
1082
|
};
|
|
1560
|
-
/// <summary>This function for Deleting String from end & start of input
|
|
1561
|
-
/// String
|
|
1562
|
-
/// </summary>
|
|
1563
|
-
/// <param name="str">String , which can include strToDelete spaces on input
|
|
1564
|
-
/// </param>
|
|
1565
|
-
/// <param name="strToDelete">need delete this String from start/end of str.
|
|
1566
|
-
/// </param>
|
|
1567
|
-
/// <returns> String without strToDelete on end & start,
|
|
1568
|
-
/// or 'null' if Sting hasn't not characters inside
|
|
1569
|
-
/// </returns>
|
|
1570
1083
|
StrUtil.DeleteStringsFromEnds = function (str, strToDelete) {
|
|
1571
1084
|
if (str.startsWith(strToDelete)) {
|
|
1572
1085
|
str = str.substr(strToDelete.length);
|
|
@@ -1583,11 +1096,6 @@
|
|
|
1583
1096
|
}
|
|
1584
1097
|
return result;
|
|
1585
1098
|
};
|
|
1586
|
-
/// <summary> pad a string with trailing spaces up to the given length</summary>
|
|
1587
|
-
/// <param name="str">the string to pad
|
|
1588
|
-
/// </param>
|
|
1589
|
-
/// <param name="len">the expected length after padding
|
|
1590
|
-
/// </param>
|
|
1591
1099
|
StrUtil.padStr = function (str, len) {
|
|
1592
1100
|
var padLen = len - str.length;
|
|
1593
1101
|
if (padLen > 0) {
|
|
@@ -1601,67 +1109,9 @@
|
|
|
1601
1109
|
}
|
|
1602
1110
|
return str;
|
|
1603
1111
|
};
|
|
1604
|
-
/// <summary> this method will serve as a string tokenizer instead of using the c# split method
|
|
1605
|
-
/// since there are diffrences btween java tokenizer and c# split
|
|
1606
|
-
/// the implimentation given by the conversion tool is not Sufficient
|
|
1607
|
-
/// </summary>
|
|
1608
|
-
/// <param name="source">- the source string to be converted
|
|
1609
|
-
/// </param>
|
|
1610
|
-
/// <param name="delim">- the string of delimiters used to split the string (each character in the String is a delimiter
|
|
1611
|
-
/// </param>
|
|
1612
|
-
/// <returns> array of token according which is the same as string tokenizer in java
|
|
1613
|
-
/// </returns>
|
|
1614
1112
|
StrUtil.tokenize = function (source, delim) {
|
|
1615
|
-
// It is mentioned in the comment that we should not use String.Split()
|
|
1616
|
-
// because its behavior is different than Java's tokenizer.
|
|
1617
|
-
// So, we were suppose to use our own implementation (the commented code below).
|
|
1618
|
-
// But all these years, we were calling XmlParser.getToken() which was actually
|
|
1619
|
-
// using String.Split(). And we didn't face any problem.
|
|
1620
|
-
// So, it seems that we do not have problem in using String.Split().
|
|
1621
|
-
// But now, we can improve the performance here...
|
|
1622
|
-
// XmlParser.getTokens() was getting a String[] using String.Split().
|
|
1623
|
-
// It was then creating a List<String> from this String[] and was returning it to
|
|
1624
|
-
// tokenize().
|
|
1625
|
-
// tokenize() was again converting this List<String> back to String[].
|
|
1626
|
-
// So why not call String.Split() directly?
|
|
1627
1113
|
return source.split(delim);
|
|
1628
|
-
|
|
1629
|
-
String [] tokens = null;
|
|
1630
|
-
|
|
1631
|
-
char [] delimArry = delim.toCharArray();
|
|
1632
|
-
|
|
1633
|
-
//since java discards delimiters from the start and end of the string and c# does not
|
|
1634
|
-
//we need to remove them manually
|
|
1635
|
-
// source = source.TrimEnd(delimArry);
|
|
1636
|
-
// source = source.TrimStart(delimArry);
|
|
1637
|
-
source = source.trim();
|
|
1638
|
-
|
|
1639
|
-
//now that we have remove starting and ending delimiters we can split
|
|
1640
|
-
tokens = source.Split(delimArry);
|
|
1641
|
-
|
|
1642
|
-
/*
|
|
1643
|
-
* only one problem: if we have two Subsequent delimiters for example :
|
|
1644
|
-
* the delimiter is ';' and the string is: "first;;second;third"
|
|
1645
|
-
* then in java String tokenizer will give us only 3 tokens :first,second and third
|
|
1646
|
-
* while is c# split wethod will return 4 tokens: first,empty string,second and third
|
|
1647
|
-
* we need to deal with that
|
|
1648
|
-
*/
|
|
1649
|
-
/*
|
|
1650
|
-
List res = new List();
|
|
1651
|
-
for (int i = 0 ; i < tokens.length; i++)
|
|
1652
|
-
{
|
|
1653
|
-
if (tokens[i] != "" )
|
|
1654
|
-
res.addItem(tokens[i]);
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
return (String [])(res.getAllItems (String.class));*/
|
|
1658
|
-
};
|
|
1659
|
-
/// <summary>
|
|
1660
|
-
/// translate from string to hexa dump char by char
|
|
1661
|
-
/// </summary>
|
|
1662
|
-
/// <param name = "string">to translate it to the byte stream</param>
|
|
1663
|
-
/// <param name = "minLength">the minimal length of hexa digits for each char</param>
|
|
1664
|
-
/// <returns> the byte stream in form of string</returns>
|
|
1114
|
+
};
|
|
1665
1115
|
StrUtil.stringToHexaDump = function (str, minLength) {
|
|
1666
1116
|
var stringBuilder = new mscorelib.StringBuilder(str.length * minLength);
|
|
1667
1117
|
for (var indx = 0; indx < str.length; indx = indx + 1) {
|
|
@@ -1680,11 +1130,6 @@
|
|
|
1680
1130
|
}
|
|
1681
1131
|
return StrUtil.searchAndReplace_1(str, from, to);
|
|
1682
1132
|
};
|
|
1683
|
-
/// <summary> replace every appearance of 'from' in 'str' with 'to'</summary>
|
|
1684
|
-
/// <param name="str">the working base source string </param>
|
|
1685
|
-
/// <param name="from">the string to replace </param>
|
|
1686
|
-
/// <param name="to">the string use instead 'from' </param>
|
|
1687
|
-
/// <returns> modified String </returns>
|
|
1688
1133
|
StrUtil.searchAndReplace_0 = function (str, from, to) {
|
|
1689
1134
|
var lastSubStr = 0;
|
|
1690
1135
|
var startSubStr;
|
|
@@ -1705,11 +1150,6 @@
|
|
|
1705
1150
|
}
|
|
1706
1151
|
return result;
|
|
1707
1152
|
};
|
|
1708
|
-
/// <summary> replace every appearance of strings of 'from' in 'str' with the according string in 'to'</summary>
|
|
1709
|
-
/// <param name="str">the working base source string </param>
|
|
1710
|
-
/// <param name="from">the string to replace </param>
|
|
1711
|
-
/// <param name="to">the string use instead 'from' </param>
|
|
1712
|
-
/// <returns> modified String </returns>
|
|
1713
1153
|
StrUtil.searchAndReplace_1 = function (str, from, to) {
|
|
1714
1154
|
var lastSubStr = 0;
|
|
1715
1155
|
var sarIndex = 0;
|
|
@@ -1734,14 +1174,6 @@
|
|
|
1734
1174
|
result = tmpBuf.ToString();
|
|
1735
1175
|
return result;
|
|
1736
1176
|
};
|
|
1737
|
-
/// <summary> this functions is for use by the searchAndReplace() function -
|
|
1738
|
-
/// searches the offset of the strings from the array in the given string
|
|
1739
|
-
/// and returns the minimum offset found and sets the index of the found string
|
|
1740
|
-
/// to SARindex
|
|
1741
|
-
/// </summary>
|
|
1742
|
-
/// <param name="str">the string to search in </param>
|
|
1743
|
-
/// <param name="strings">an array of strings to search for </param>
|
|
1744
|
-
/// <param name="offset">where to start the search </param>
|
|
1745
1177
|
StrUtil.indexOf = function (str, strings, offset, SARindex) {
|
|
1746
1178
|
var minOffset = -1;
|
|
1747
1179
|
for (var i = 0; i < strings.length; i = i + 1) {
|
|
@@ -1769,15 +1201,6 @@
|
|
|
1769
1201
|
}
|
|
1770
1202
|
return result;
|
|
1771
1203
|
};
|
|
1772
|
-
/// <summary> replace tokens in user string by vector values </summary>
|
|
1773
|
-
/// <param name="userString">- user buffer like "User %d, %d string"
|
|
1774
|
-
/// </param>
|
|
1775
|
-
/// <param name="token">- token used in user string - i.e. "%d"
|
|
1776
|
-
/// </param>
|
|
1777
|
-
/// <param name="occurrence">- number of token where replace will take part (1 for first occurrence)
|
|
1778
|
-
/// </param>
|
|
1779
|
-
/// <param name="value">- value to be inserted insted of token
|
|
1780
|
-
/// </param>
|
|
1781
1204
|
StrUtil.replaceStringTokens = function (userString, token, occurrence, val) {
|
|
1782
1205
|
var tokenLen = token.length;
|
|
1783
1206
|
var currPosition = 0;
|
|
@@ -1800,12 +1223,6 @@
|
|
|
1800
1223
|
}
|
|
1801
1224
|
StrUtil.makePrintableTokens_1(source, type);
|
|
1802
1225
|
};
|
|
1803
|
-
/// <summary>
|
|
1804
|
-
/// converts special characters in a token to a printable format
|
|
1805
|
-
/// </summary>
|
|
1806
|
-
/// <param name = "source">a token </param>
|
|
1807
|
-
/// <param name = "type">type of conversion: STR_2_HTML, SEQ_2_HTML, HTML_2_SEQ, HTML_2_STR, SEQ_2_STR </param>
|
|
1808
|
-
/// <returns> token with converted special characters </returns>
|
|
1809
1226
|
StrUtil.makePrintableTokens_0 = function (source, type) {
|
|
1810
1227
|
var escStr = [
|
|
1811
1228
|
"\\", "-", ","
|
|
@@ -1839,11 +1256,6 @@
|
|
|
1839
1256
|
}
|
|
1840
1257
|
return result;
|
|
1841
1258
|
};
|
|
1842
|
-
/// <summary>
|
|
1843
|
-
/// converts special characters in a tokens collection to a printable format
|
|
1844
|
-
/// </summary>
|
|
1845
|
-
/// <param name = "source">vector of strings before tokenaizer </param>
|
|
1846
|
-
/// <param name = "type">type of conversion: STR_2_HTML, SEQ_2_HTML, HTML_2_SEQ, HTML_2_STR </param>
|
|
1847
1259
|
StrUtil.makePrintableTokens_1 = function (source, type) {
|
|
1848
1260
|
if (source !== null) {
|
|
1849
1261
|
var length = source.length;
|
|
@@ -1853,12 +1265,6 @@
|
|
|
1853
1265
|
}
|
|
1854
1266
|
}
|
|
1855
1267
|
};
|
|
1856
|
-
/// <summary>
|
|
1857
|
-
/// change non-printable characters like "new line" and "line feed" to their
|
|
1858
|
-
/// printable representation
|
|
1859
|
-
/// </summary>
|
|
1860
|
-
/// <param name = "source">is the string with non-printable characters </param>
|
|
1861
|
-
/// <returns> the new string where all the non-printable characters are converted </returns>
|
|
1862
1268
|
StrUtil.makePrintable = function (source) {
|
|
1863
1269
|
var from = [
|
|
1864
1270
|
"\n", "\r", "'", "\\", "\"", "\0"
|
|
@@ -1868,12 +1274,6 @@
|
|
|
1868
1274
|
];
|
|
1869
1275
|
return StrUtil.searchAndReplace(source, from, to);
|
|
1870
1276
|
};
|
|
1871
|
-
/// <summary>
|
|
1872
|
-
/// change non-printable characters like "new line" and "line feed" to their
|
|
1873
|
-
/// printable representation (simplified version for range error message)
|
|
1874
|
-
/// </summary>
|
|
1875
|
-
/// <param name = "source">is the string with non-printable characters </param>
|
|
1876
|
-
/// <returns> the new string where all the non-printable characters are converted </returns>
|
|
1877
1277
|
StrUtil.makePrintable2 = function (source) {
|
|
1878
1278
|
var from = [
|
|
1879
1279
|
"\n", "\r", "\0"
|
|
@@ -1883,21 +1283,10 @@
|
|
|
1883
1283
|
];
|
|
1884
1284
|
return StrUtil.searchAndReplace(source, from, to);
|
|
1885
1285
|
};
|
|
1886
|
-
/// <summary>
|
|
1887
|
-
///
|
|
1888
|
-
/// </summary>
|
|
1889
|
-
/// <param name="s"></param>
|
|
1890
|
-
/// <param name="len"></param>
|
|
1891
|
-
/// <returns></returns>
|
|
1892
1286
|
StrUtil.ZstringMake = function (s, len) {
|
|
1893
1287
|
len = StrUtil.mem_trim(s, len);
|
|
1894
1288
|
return s.substr(0, len);
|
|
1895
1289
|
};
|
|
1896
|
-
/// <summary>(public)
|
|
1897
|
-
/// returns plain text from rtf text
|
|
1898
|
-
/// </summary>
|
|
1899
|
-
/// <param name="rtfText">refer to the summary</param>
|
|
1900
|
-
/// <returns>refer to the summary</returns>
|
|
1901
1290
|
StrUtil.GetPlainTextfromRtf = function (rtfText) {
|
|
1902
1291
|
if (Rtf.isRtf(rtfText)) {
|
|
1903
1292
|
var rtf = new Rtf();
|
|
@@ -1907,12 +1296,6 @@
|
|
|
1907
1296
|
}
|
|
1908
1297
|
return rtfText;
|
|
1909
1298
|
};
|
|
1910
|
-
/// <summary>
|
|
1911
|
-
/// Returns true if the string arrays str1 & str2 are equal
|
|
1912
|
-
/// </summary>
|
|
1913
|
-
/// <param name="str1"></param>
|
|
1914
|
-
/// <param name="str2"></param>
|
|
1915
|
-
/// <returns></returns>
|
|
1916
1299
|
StrUtil.StringsArraysEqual = function (str1, str2) {
|
|
1917
1300
|
var result;
|
|
1918
1301
|
if (str1 === null && str2 === null) {
|
|
@@ -1939,12 +1322,6 @@
|
|
|
1939
1322
|
}
|
|
1940
1323
|
return result;
|
|
1941
1324
|
};
|
|
1942
|
-
/// <summary>
|
|
1943
|
-
/// The code is copied from tsk_open_bnd_wild and SearchAndReplaceWildChars
|
|
1944
|
-
/// The refactoring is not performed for backwards compatibility
|
|
1945
|
-
/// The code replaces special charachters :* ? with recieved filler
|
|
1946
|
-
/// </summary>
|
|
1947
|
-
/// <returns></returns>
|
|
1948
1325
|
StrUtil.SearchAndReplaceWildChars = function (buf, len, filler) {
|
|
1949
1326
|
buf = mscorelib.NString.PadRight(buf, len);
|
|
1950
1327
|
var escChar = false;
|
|
@@ -1955,7 +1332,6 @@
|
|
|
1955
1332
|
case ('\\'):
|
|
1956
1333
|
{
|
|
1957
1334
|
var isNextCharWild = true;
|
|
1958
|
-
//If next char is not wild , then copy '\', if this is first char.
|
|
1959
1335
|
if ((i + 1 < len) && (buf[i + 1] != '*' && buf[i + 1] != '\\'))
|
|
1960
1336
|
isNextCharWild = false;
|
|
1961
1337
|
if (escChar || !isNextCharWild)
|
|
@@ -1985,22 +1361,12 @@
|
|
|
1985
1361
|
var text = tmpBuf.ToString();
|
|
1986
1362
|
return mscorelib.NString.TrimEnd(mscorelib.NString.TrimEnd(text, ['\0']));
|
|
1987
1363
|
};
|
|
1988
|
-
/// <summary>
|
|
1989
|
-
/// Remove the task path delimiter from the error string.
|
|
1990
|
-
/// </summary>
|
|
1991
|
-
/// <param name = "source">string with delimiter </param>
|
|
1992
|
-
/// <returns> string for console error </returns>
|
|
1993
1364
|
StrUtil.getConsoleErorString = function (source) {
|
|
1994
1365
|
var consoleErorString = "";
|
|
1995
1366
|
if (!util.isNullOrUndefined(source))
|
|
1996
1367
|
consoleErorString = this.searchAndReplace(source, TASK_PATH_DELIMITER, "");
|
|
1997
1368
|
return consoleErorString;
|
|
1998
1369
|
};
|
|
1999
|
-
/// <summary>
|
|
2000
|
-
/// Remove the task path from the error string.
|
|
2001
|
-
/// </summary>
|
|
2002
|
-
/// <param name = "source">string with delimiter </param>
|
|
2003
|
-
/// <returns> string for console error </returns>
|
|
2004
1370
|
StrUtil.getMsgBoxErorString = function (source) {
|
|
2005
1371
|
var tokens;
|
|
2006
1372
|
var msgBoxErorString = new mscorelib.StringBuilder("");
|
|
@@ -2017,27 +1383,13 @@
|
|
|
2017
1383
|
}());
|
|
2018
1384
|
StrUtil._paddingSpaces = null;
|
|
2019
1385
|
|
|
2020
|
-
// In order to convert some functionality to Visual C#, the Java Language Conversion Assistant
|
|
2021
|
-
/// <summary>
|
|
2022
|
-
/// Contains conversion support elements such as classes, interfaces and static methods.
|
|
2023
|
-
/// </summary>
|
|
2024
1386
|
var Misc = /** @class */ (function () {
|
|
2025
1387
|
function Misc() {
|
|
2026
1388
|
}
|
|
2027
|
-
/// <summary>
|
|
2028
|
-
/// Writes the exception stack trace to the received stream
|
|
2029
|
-
/// </summary>
|
|
2030
|
-
/// <param name="throwable">Exception to obtain information from</param>
|
|
2031
|
-
/// <param name="stream">Output sream used to write to</param>
|
|
2032
1389
|
Misc.WriteStackTrace = function (throwable) {
|
|
2033
1390
|
console.log(throwable.Message);
|
|
2034
1391
|
console.log(throwable.StackTrace);
|
|
2035
1392
|
};
|
|
2036
|
-
/// <summary>
|
|
2037
|
-
/// Receives a byte array and returns it transformed in an byte array
|
|
2038
|
-
/// </summary>
|
|
2039
|
-
/// <param name="byteArray">Byte array to process</param>
|
|
2040
|
-
/// <returns>The transformed array</returns>
|
|
2041
1393
|
Misc.ToSByteArray = function (byteArray) {
|
|
2042
1394
|
var sbyteArray = null;
|
|
2043
1395
|
if (byteArray !== null) {
|
|
@@ -2048,11 +1400,6 @@
|
|
|
2048
1400
|
}
|
|
2049
1401
|
return sbyteArray;
|
|
2050
1402
|
};
|
|
2051
|
-
/// <summary>
|
|
2052
|
-
/// Receives sbyte array and returns it transformed in a byte array
|
|
2053
|
-
/// </summary>
|
|
2054
|
-
/// <param name="sbyteArray">sbyte array to process</param>
|
|
2055
|
-
/// <returns>The transformed array</returns>
|
|
2056
1403
|
Misc.ToByteArray = function (sbyteArray) {
|
|
2057
1404
|
var byteArray = null;
|
|
2058
1405
|
if (sbyteArray !== null) {
|
|
@@ -2063,11 +1410,6 @@
|
|
|
2063
1410
|
}
|
|
2064
1411
|
return byteArray;
|
|
2065
1412
|
};
|
|
2066
|
-
/// <summary> Compares number of bytes in two byte arrays</summary>
|
|
2067
|
-
/// <param name="source"></param>
|
|
2068
|
-
/// <param name="destination"></param>
|
|
2069
|
-
/// <param name="numberOfBytes"></param>
|
|
2070
|
-
/// <returns> boolen true if equal</returns>
|
|
2071
1413
|
Misc.CompareByteArray = function (source, destination, numberOfBytes) {
|
|
2072
1414
|
if (source.length >= numberOfBytes && destination.length >= numberOfBytes) {
|
|
2073
1415
|
for (var len = 0; len < numberOfBytes; len++) {
|
|
@@ -2079,13 +1421,6 @@
|
|
|
2079
1421
|
return false;
|
|
2080
1422
|
return true;
|
|
2081
1423
|
};
|
|
2082
|
-
/// <summary>
|
|
2083
|
-
/// Performs an unsigned bitwise right shift with the specified number
|
|
2084
|
-
/// </summary>
|
|
2085
|
-
/// <param name="number">Number to operate on</param>
|
|
2086
|
-
/// <param name="bits">Ammount of bits to shift</param>
|
|
2087
|
-
/// <returns>The resulting number from the shift operation</returns>
|
|
2088
|
-
// TODO: instead of calling URShift(number, bits), we can use((uint)number) >> bits.
|
|
2089
1424
|
Misc.URShift = function (number, bits) {
|
|
2090
1425
|
var result;
|
|
2091
1426
|
if (number >= 0) {
|
|
@@ -2096,20 +1431,9 @@
|
|
|
2096
1431
|
}
|
|
2097
1432
|
return result;
|
|
2098
1433
|
};
|
|
2099
|
-
/// <summary>
|
|
2100
|
-
/// get system's time in milliseconds
|
|
2101
|
-
/// </summary>
|
|
2102
|
-
/// <returns></returns>
|
|
2103
1434
|
Misc.getSystemMilliseconds = function () {
|
|
2104
|
-
// TODO - check if we need this adjustment
|
|
2105
1435
|
return Math.floor((mscorelib.DateTime.Now.Ticks - 621355968000000000) / 10000);
|
|
2106
1436
|
};
|
|
2107
|
-
/// <summary>
|
|
2108
|
-
/// Compares 2 int arrays
|
|
2109
|
-
/// </summary>
|
|
2110
|
-
/// <param name="arrayOne"></param>
|
|
2111
|
-
/// <param name="arrayTwo"></param>
|
|
2112
|
-
/// <returns>true if arrays are equal else false</returns>
|
|
2113
1437
|
Misc.CompareIntArrays = function (arrayOne, arrayTwo) {
|
|
2114
1438
|
var areEqual = false;
|
|
2115
1439
|
if (arrayOne === arrayTwo) {
|
|
@@ -2129,11 +1453,6 @@
|
|
|
2129
1453
|
}
|
|
2130
1454
|
return areEqual;
|
|
2131
1455
|
};
|
|
2132
|
-
/// <summary>
|
|
2133
|
-
/// Returns the comma separated string for the values passed in int array.
|
|
2134
|
-
/// </summary>
|
|
2135
|
-
/// <param name="values">Integer array</param>
|
|
2136
|
-
/// <returns>comma separated string</returns>
|
|
2137
1456
|
Misc.GetCommaSeperatedString = function (intArray) {
|
|
2138
1457
|
var temp = new mscorelib.StringBuilder();
|
|
2139
1458
|
for (var val = 0; val < intArray.length; val = val + 1) {
|
|
@@ -2145,11 +1464,6 @@
|
|
|
2145
1464
|
}
|
|
2146
1465
|
return temp.ToString();
|
|
2147
1466
|
};
|
|
2148
|
-
/// <summary>
|
|
2149
|
-
/// Returns int array out of comma separated string
|
|
2150
|
-
/// </summary>
|
|
2151
|
-
/// <param name="value">comma separated string</param>
|
|
2152
|
-
/// <returns>Integer array</returns>
|
|
2153
1467
|
Misc.GetIntArray = function (commaSeparatedValue) {
|
|
2154
1468
|
var intArray = new Array(0);
|
|
2155
1469
|
if (!mscorelib.NString.IsNullOrEmpty(commaSeparatedValue)) {
|
|
@@ -2180,24 +1494,9 @@
|
|
|
2180
1494
|
else
|
|
2181
1495
|
return Base64.encode_2(strOrData);
|
|
2182
1496
|
};
|
|
2183
|
-
/// <summary> This method encodes the given string using the base64-encoding
|
|
2184
|
-
/// specified in RFC-2045 (Section 6.8). It's used for example in the
|
|
2185
|
-
/// "Basic" authorization scheme.
|
|
2186
|
-
/// </summary>
|
|
2187
|
-
/// <param name="str">the string </param>
|
|
2188
|
-
/// <param name="encoding"> Environment.Encoding </param>
|
|
2189
|
-
/// <returns> the base64-encoded str </returns>
|
|
2190
1497
|
Base64.encode_0 = function (str, encoding) {
|
|
2191
1498
|
return Base64.encode(str, false, encoding);
|
|
2192
1499
|
};
|
|
2193
|
-
/// <summary> Encodes string using the base64-encoding.
|
|
2194
|
-
/// If isUseEnvCharset is true, use the specific charset when converting
|
|
2195
|
-
/// string to byte array. (DBCS support)
|
|
2196
|
-
/// </summary>
|
|
2197
|
-
/// <param name="str">the string </param>
|
|
2198
|
-
/// <param name="isUseEnvCharset"> </param>
|
|
2199
|
-
/// <param name="encoding"> Environment.Encoding </param>
|
|
2200
|
-
/// <returns> the base64-encoded str </returns>
|
|
2201
1500
|
Base64.encode_1 = function (str, isUseEnvCharset, encoding) {
|
|
2202
1501
|
var result;
|
|
2203
1502
|
if (str === null) {
|
|
@@ -2221,18 +1520,12 @@
|
|
|
2221
1520
|
}
|
|
2222
1521
|
return result;
|
|
2223
1522
|
};
|
|
2224
|
-
/// <summary> This method encodes the given byte[] using the base64-encoding
|
|
2225
|
-
/// specified in RFC-2045 (Section 6.8).
|
|
2226
|
-
/// </summary>
|
|
2227
|
-
/// <param name="data">the data </param>
|
|
2228
|
-
/// <returns> the base64-encoded data </returns>
|
|
2229
1523
|
Base64.encode_2 = function (data) {
|
|
2230
1524
|
if (data === null)
|
|
2231
1525
|
return null;
|
|
2232
1526
|
var dest = new Uint8Array(Math.floor((data.length + 2) / 3) * 4);
|
|
2233
1527
|
var sidx = 0;
|
|
2234
1528
|
var didx = 0;
|
|
2235
|
-
// 3-byte to 4-byte conversion + 0-63 to ASCII printable conversion
|
|
2236
1529
|
while (sidx < data.length - 2) {
|
|
2237
1530
|
dest[didx++] = Base64._base64EncMap[Misc.URShift(data[sidx], 2) & 63];
|
|
2238
1531
|
dest[didx++] = Base64._base64EncMap[(Misc.URShift(data[sidx + 1], 4) & 15) | (data[sidx] << 4 & 63)];
|
|
@@ -2250,7 +1543,6 @@
|
|
|
2250
1543
|
dest[didx++] = Base64._base64EncMap[data[sidx] << 4 & 63];
|
|
2251
1544
|
}
|
|
2252
1545
|
}
|
|
2253
|
-
// add padding
|
|
2254
1546
|
while (didx < dest.length) {
|
|
2255
1547
|
dest[didx] = 61;
|
|
2256
1548
|
didx = didx + 1;
|
|
@@ -2265,20 +1557,9 @@
|
|
|
2265
1557
|
else
|
|
2266
1558
|
return Base64.decode_2(strOrData);
|
|
2267
1559
|
};
|
|
2268
|
-
/// <summary> This method decodes the given string using the base64-encoding
|
|
2269
|
-
/// specified in RFC-2045 (Section 6.8).
|
|
2270
|
-
/// </summary>
|
|
2271
|
-
/// <param name="str">the base64-encoded string. </param>
|
|
2272
|
-
/// <returns> the decoded str.</returns>
|
|
2273
1560
|
Base64.decode_0 = function (str) {
|
|
2274
1561
|
return Base64.decode(str, null);
|
|
2275
1562
|
};
|
|
2276
|
-
/// <summary> This method decodes the given string using the base64-encoding
|
|
2277
|
-
/// specified in RFC-2045 (Section 6.8).
|
|
2278
|
-
/// </summary>
|
|
2279
|
-
/// <param name="str">the base64-encoded string. </param>
|
|
2280
|
-
/// <param name="encoding">Environment.Encoding or null.</param>
|
|
2281
|
-
/// <returns> the decoded str.</returns>
|
|
2282
1563
|
Base64.decode_1 = function (str, encoding) {
|
|
2283
1564
|
var result;
|
|
2284
1565
|
if (str === null) {
|
|
@@ -2302,11 +1583,6 @@
|
|
|
2302
1583
|
}
|
|
2303
1584
|
return result;
|
|
2304
1585
|
};
|
|
2305
|
-
/// <summary> This method decodes the given byte[] using the base64-encoding
|
|
2306
|
-
/// specified in RFC-2045 (Section 6.8).
|
|
2307
|
-
/// </summary>
|
|
2308
|
-
/// <param name="data">the base64-encoded data.</param>
|
|
2309
|
-
/// <returns> the decoded <var>data</va
|
|
2310
1586
|
Base64.decode_2 = function (data) {
|
|
2311
1587
|
if (data === null)
|
|
2312
1588
|
return null;
|
|
@@ -2315,11 +1591,9 @@
|
|
|
2315
1591
|
tail = tail - 1;
|
|
2316
1592
|
}
|
|
2317
1593
|
var dest = new Uint8Array(tail - Math.floor(data.length / 4));
|
|
2318
|
-
// ASCII printable to 0-63 conversion
|
|
2319
1594
|
for (var idx = 0; idx < data.length; idx = idx + 1) {
|
|
2320
1595
|
data[idx] = Base64._base64DecMap[data[idx]];
|
|
2321
1596
|
}
|
|
2322
|
-
// 4-byte to 3-byte conversion
|
|
2323
1597
|
var sidx = 0;
|
|
2324
1598
|
var didx;
|
|
2325
1599
|
for (didx = 0; didx < dest.length - 2; didx = didx + 3) {
|
|
@@ -2334,7 +1608,6 @@
|
|
|
2334
1608
|
dest[didx] = (((data[sidx + 1] << 4) & 255) | (Misc.URShift(data[sidx + 2], 2) & 15));
|
|
2335
1609
|
return dest;
|
|
2336
1610
|
};
|
|
2337
|
-
/// <summary> decoded and return an hex representation of the data</summary>
|
|
2338
1611
|
Base64.decodeToHex = function (str) {
|
|
2339
1612
|
if (str === null)
|
|
2340
1613
|
return null;
|
|
@@ -2342,13 +1615,9 @@
|
|
|
2342
1615
|
return str;
|
|
2343
1616
|
return StrUtil.stringToHexaDump(Base64.decode(str), 2);
|
|
2344
1617
|
};
|
|
2345
|
-
/// <summary> decodes a string to byte array</summary>
|
|
2346
1618
|
Base64.decodeToByte = function (str) {
|
|
2347
1619
|
if (str === null)
|
|
2348
1620
|
return null;
|
|
2349
|
-
// QCR 740918 if we have and empty expression it is sent from the server as empty string
|
|
2350
|
-
// and changed locally to a string with one blank either way they are not valid base64 encoded
|
|
2351
|
-
// string and should not be decoded.
|
|
2352
1621
|
if (str === "" || str === " ")
|
|
2353
1622
|
return new Uint8Array(0);
|
|
2354
1623
|
try {
|
|
@@ -2382,18 +1651,6 @@
|
|
|
2382
1651
|
var ChoiceUtils = /** @class */ (function () {
|
|
2383
1652
|
function ChoiceUtils() {
|
|
2384
1653
|
}
|
|
2385
|
-
/// <summary>
|
|
2386
|
-
/// init the display Value from string
|
|
2387
|
-
/// </summary>
|
|
2388
|
-
/// <param name = "choiceDispStr">the all substring separated with comma.
|
|
2389
|
-
/// The behavior:
|
|
2390
|
-
/// a. when have "\" before char a-z need to ignore the \ put the a-z char
|
|
2391
|
-
/// b. when "\," -> ","
|
|
2392
|
-
/// c. when "\-" -> "-"
|
|
2393
|
-
/// d. when "\\" -> "\"
|
|
2394
|
-
/// e. when "\\\\" -> "\\"
|
|
2395
|
-
/// the display can be all string. and we don't need to check validation according to the dataType(as we do in Link
|
|
2396
|
-
/// </param>
|
|
2397
1654
|
ChoiceUtils.GetDisplayListFromString = function (choiceDispStr, removeAccelerators, shouldMakePrintable, shouldTrimOptions) {
|
|
2398
1655
|
var fromHelp = new Array("\\\\", "\\-", "\\,");
|
|
2399
1656
|
var toHelp = new Array("XX", "XX", "XX");
|
|
@@ -2471,20 +1728,16 @@
|
|
|
2471
1728
|
return ChoiceUtils;
|
|
2472
1729
|
}());
|
|
2473
1730
|
|
|
2474
|
-
//This class contains all the constants which are used in MgxpaRIA.exe as well as in MgGui.dll.
|
|
2475
1731
|
var Constants = /** @class */ (function () {
|
|
2476
1732
|
function Constants() {
|
|
2477
1733
|
}
|
|
2478
1734
|
return Constants;
|
|
2479
1735
|
}());
|
|
2480
|
-
/// <summary> Null Arithmetic values</summary>
|
|
2481
1736
|
Constants.NULL_ARITH_NULLIFY = 'N';
|
|
2482
1737
|
Constants.NULL_ARITH_USE_DEF = 'U';
|
|
2483
|
-
/// <summary> select program : select mode property</summary>
|
|
2484
1738
|
Constants.SELPRG_MODE_BEFORE = 'B';
|
|
2485
1739
|
Constants.SELPRG_MODE_AFTER = 'A';
|
|
2486
1740
|
Constants.SELPRG_MODE_PROMPT = 'P';
|
|
2487
|
-
/// <summary> move in View</summary>
|
|
2488
1741
|
Constants.MOVE_UNIT_TABLE = 'T';
|
|
2489
1742
|
Constants.MOVE_UNIT_PAGE = 'P';
|
|
2490
1743
|
Constants.MOVE_UNIT_ROW = 'R';
|
|
@@ -2498,7 +1751,6 @@
|
|
|
2498
1751
|
Constants.MOVE_DIRECTION_FIRST_SON = 'F';
|
|
2499
1752
|
Constants.MOVE_DIRECTION_NEXT_SIBLING = 'X';
|
|
2500
1753
|
Constants.MOVE_DIRECTION_PREV_SIBLING = 'V';
|
|
2501
|
-
/// <summary> refresh types for a task form</summary>
|
|
2502
1754
|
Constants.TASK_REFRESH_FORM = 'F';
|
|
2503
1755
|
Constants.TASK_REFRESH_TABLE = 'T';
|
|
2504
1756
|
Constants.TASK_REFRESH_TREE_AND_FORM = 'R';
|
|
@@ -2509,15 +1761,12 @@
|
|
|
2509
1761
|
Constants.TASK_MODE_CREATE = 'C';
|
|
2510
1762
|
Constants.TASK_MODE_DELETE = 'D';
|
|
2511
1763
|
Constants.TASK_MODE_NONE = ' ';
|
|
2512
|
-
/// <summary> task level</summary>
|
|
2513
1764
|
Constants.TASK_LEVEL_NONE = ' ';
|
|
2514
1765
|
Constants.TASK_LEVEL_TASK = 'T';
|
|
2515
1766
|
Constants.TASK_LEVEL_RECORD = 'R';
|
|
2516
1767
|
Constants.TASK_LEVEL_CONTROL = 'C';
|
|
2517
|
-
/// <summary> special records constants</summary>
|
|
2518
1768
|
Constants.MG_DATAVIEW_FIRST_RECORD = mscorelib.Int32.MinValue;
|
|
2519
1769
|
Constants.MG_DATAVIEW_LAST_RECORD = mscorelib.Int32.MaxValue;
|
|
2520
|
-
/// <summary> action states for keyboard mapping</summary>
|
|
2521
1770
|
Constants.ACT_STT_TBL_SCREEN_MODE = 0x0001;
|
|
2522
1771
|
Constants.ACT_STT_TBL_LEFT_TO_RIGHT = 0x0002;
|
|
2523
1772
|
Constants.ACT_STT_TBL_SCREEN_TOP = 0x0004;
|
|
@@ -2532,17 +1781,13 @@
|
|
|
2532
1781
|
Constants.ACT_STT_EDT_EDITING = 0x0800;
|
|
2533
1782
|
Constants.ACT_STT_TREE_PARK = 0x1000;
|
|
2534
1783
|
Constants.ACT_STT_TREE_EDITING = 0x2000;
|
|
2535
|
-
Constants.ForwardSlashWebUsage = "web";
|
|
1784
|
+
Constants.ForwardSlashWebUsage = "web";
|
|
2536
1785
|
Constants.HTTP_PROTOCOL = "http://";
|
|
2537
1786
|
Constants.HTTPS_PROTOCOL = "https://";
|
|
2538
1787
|
Constants.FILE_PROTOCOL = "file://";
|
|
2539
|
-
/// <summary>threads constants</summary>
|
|
2540
1788
|
Constants.MG_GUI_THREAD = "MG_GUI_THREAD";
|
|
2541
1789
|
Constants.MG_WORK_THREAD = "MG_WORK_THREAD";
|
|
2542
1790
|
Constants.MG_TIMER_THREAD = "MG_TIMER_THREAD";
|
|
2543
|
-
/// <summary>
|
|
2544
|
-
/// property name for the runtime designer
|
|
2545
|
-
/// </summary>
|
|
2546
1791
|
Constants.ConfigurationFilePropertyName = "Configuration file";
|
|
2547
1792
|
Constants.WinPropText = "Text";
|
|
2548
1793
|
Constants.WinPropLayer = "Layer";
|
|
@@ -2577,12 +1822,9 @@
|
|
|
2577
1822
|
XMLConstants.MG_TAG_TASK = "task";
|
|
2578
1823
|
XMLConstants.MG_TAG_TASK_END = "/task";
|
|
2579
1824
|
XMLConstants.MG_TAG_RECOMPUTE = "recompute";
|
|
2580
|
-
//TODO: this class contains the constants which are used for XML parsing.
|
|
2581
|
-
//Check if we can move it to Util.dll
|
|
2582
1825
|
XMLConstants.MG_ATTR_VB_VIEW_ROWIDX = "db_view_rowidx";
|
|
2583
1826
|
XMLConstants.MG_ATTR_CONTROL_ISN = "controlIsn";
|
|
2584
1827
|
XMLConstants.MG_HOR_ALIGMENT_IS_INHERITED = "horizontalAlignmentIsFromSystemDefault";
|
|
2585
|
-
// MainHeaders
|
|
2586
1828
|
XMLConstants.MAX_PATH = 260;
|
|
2587
1829
|
XMLConstants.FILE_NAME_SIZE = XMLConstants.MAX_PATH + 1;
|
|
2588
1830
|
XMLConstants.CDATA_START = "<![CDATA[";
|
|
@@ -2668,13 +1910,11 @@
|
|
|
2668
1910
|
XMLConstants.MG_ATTR_IS_GUI_THREAD_EXECUTION = "isGuiThreadExecution";
|
|
2669
1911
|
XMLConstants.MG_TAG_TASKDEFINITIONID_ENTRY = "taskDefinitionId";
|
|
2670
1912
|
XMLConstants.MG_TAG_OBJECT_REFERENCE = "objectRef";
|
|
2671
|
-
//Help types
|
|
2672
1913
|
XMLConstants.MG_ATTR_HLP_TYP_TOOLTIP = "T";
|
|
2673
1914
|
XMLConstants.MG_ATTR_HLP_TYP_PROMPT = "P";
|
|
2674
1915
|
XMLConstants.MG_ATTR_HLP_TYP_URL = "U";
|
|
2675
1916
|
XMLConstants.MG_ATTR_HLP_TYP_INTERNAL = "I";
|
|
2676
1917
|
XMLConstants.MG_ATTR_HLP_TYP_WINDOWS = "W";
|
|
2677
|
-
//Internal help attributes.
|
|
2678
1918
|
XMLConstants.MG_ATTR_INTERNAL_HELP_TYPE = "type";
|
|
2679
1919
|
XMLConstants.MG_ATTR_INTERNAL_HELP_NAME = "name";
|
|
2680
1920
|
XMLConstants.MG_ATTR_INTERNAL_HELP_FRAMEX = "framex";
|
|
@@ -2689,26 +1929,20 @@
|
|
|
2689
1929
|
XMLConstants.MG_ATTR_INTERNAL_TITLE_BAR = "titlebar";
|
|
2690
1930
|
XMLConstants.MG_ATTR_INTERNAL_HELP_SYSTEM_MENU = "sysmenu";
|
|
2691
1931
|
XMLConstants.MG_ATTR_INTERNAL_HELP_FONT_TABLE_INDEX = "fonttableindex";
|
|
2692
|
-
//Windows help attributes.
|
|
2693
1932
|
XMLConstants.MG_ATTR_WINDOWS_HELP_FILE = "file";
|
|
2694
1933
|
XMLConstants.MG_ATTR_WINDOWS_HELP_COMMAND = "command";
|
|
2695
1934
|
XMLConstants.MG_ATTR_WINDOWS_HELP_KEY = "key";
|
|
2696
|
-
//Print data attributes.
|
|
2697
1935
|
XMLConstants.MG_TAG_PRINT_DATA = "Print_data";
|
|
2698
1936
|
XMLConstants.MG_TAG_PRINT_DATA_END = "/Print_data";
|
|
2699
1937
|
XMLConstants.MG_TAG_RECORD = "Record";
|
|
2700
1938
|
XMLConstants.MG_TAG_RECORD_END = "/Record";
|
|
2701
|
-
//Custom Validators attributes.
|
|
2702
1939
|
XMLConstants.MG_TAG_CUSTOM_VALIDATORS = "CustomValidators";
|
|
2703
1940
|
XMLConstants.MG_TAG_CUSTOM_VALIDATORS_END = "/CustomValidators";
|
|
2704
1941
|
XMLConstants.MG_TAG_CUSTOM_VALIDATOR = "CustomValidator";
|
|
2705
|
-
// date/time formats for DateTimeUtils
|
|
2706
|
-
//TODO: isolate to a different file?
|
|
2707
1942
|
XMLConstants.ERROR_LOG_TIME_FORMAT = "HH:mm:ss.S";
|
|
2708
1943
|
XMLConstants.ERROR_LOG_DATE_FORMAT = "DD/MM/YYYY";
|
|
2709
1944
|
XMLConstants.HTTP_ERROR_TIME_FORMAT = "HH:mm:ss";
|
|
2710
1945
|
XMLConstants.CACHED_DATE_TIME_FORMAT = "DD/MM/YYYY HH:mm:ss";
|
|
2711
|
-
//webs constants
|
|
2712
1946
|
XMLConstants.MG_TAG_WS_READ_REQUEST = "Read";
|
|
2713
1947
|
XMLConstants.MG_TAG_WS_CREATE_REQUEST = "Create";
|
|
2714
1948
|
XMLConstants.MG_TAG_WS_CREATE_REQUEST_END = "/Create";
|
|
@@ -2741,7 +1975,6 @@
|
|
|
2741
1975
|
var DateTimeUtils = /** @class */ (function () {
|
|
2742
1976
|
function DateTimeUtils() {
|
|
2743
1977
|
}
|
|
2744
|
-
/// <summary> returns the number in a 2 digit string
|
|
2745
1978
|
DateTimeUtils.int2str = function (n) {
|
|
2746
1979
|
return (n > 9) ? n.toString() : ("0" + n);
|
|
2747
1980
|
};
|
|
@@ -2794,17 +2027,11 @@
|
|
|
2794
2027
|
return DateTimeUtils;
|
|
2795
2028
|
}());
|
|
2796
2029
|
|
|
2797
|
-
/// <summary>
|
|
2798
|
-
/// An interface to define the constantes used by the Picture mechanism.
|
|
2799
|
-
/// </summary>
|
|
2800
2030
|
var PICInterface = /** @class */ (function () {
|
|
2801
2031
|
function PICInterface() {
|
|
2802
2032
|
}
|
|
2803
2033
|
return PICInterface;
|
|
2804
2034
|
}());
|
|
2805
|
-
//--------------------------------------------------------------------------
|
|
2806
|
-
// TEMP!
|
|
2807
|
-
//--------------------------------------------------------------------------
|
|
2808
2035
|
PICInterface.PIC_X = 1;
|
|
2809
2036
|
PICInterface.PIC_U = 2;
|
|
2810
2037
|
PICInterface.PIC_L = 3;
|
|
@@ -2822,32 +2049,30 @@
|
|
|
2822
2049
|
PICInterface.PIC_MMT = 15;
|
|
2823
2050
|
PICInterface.PIC_SS = 16;
|
|
2824
2051
|
PICInterface.PIC_PM = 17;
|
|
2825
|
-
PICInterface.PIC_HYYYYY = 18;
|
|
2826
|
-
PICInterface.PIC_HL = 19;
|
|
2827
|
-
PICInterface.PIC_HDD = 20;
|
|
2828
|
-
PICInterface.PIC_MS = 21;
|
|
2829
|
-
PICInterface.PIC_LOCAL = 23;
|
|
2052
|
+
PICInterface.PIC_HYYYYY = 18;
|
|
2053
|
+
PICInterface.PIC_HL = 19;
|
|
2054
|
+
PICInterface.PIC_HDD = 20;
|
|
2055
|
+
PICInterface.PIC_MS = 21;
|
|
2056
|
+
PICInterface.PIC_LOCAL = 23;
|
|
2830
2057
|
PICInterface.PIC_MAX_MSK_LEN = 100;
|
|
2831
|
-
|
|
2832
|
-
PICInterface.
|
|
2833
|
-
PICInterface.
|
|
2834
|
-
PICInterface.
|
|
2835
|
-
PICInterface.
|
|
2836
|
-
PICInterface.
|
|
2837
|
-
|
|
2838
|
-
PICInterface.
|
|
2839
|
-
PICInterface.
|
|
2840
|
-
PICInterface.
|
|
2841
|
-
PICInterface.PIC_S = PICInterface.PIC_LOCAL + 8; // SBCS only
|
|
2842
|
-
PICInterface.PIC_MAX_OP = 31; // is reserved for DLL"s picture
|
|
2058
|
+
PICInterface.PIC_JY1 = PICInterface.PIC_LOCAL + 0;
|
|
2059
|
+
PICInterface.PIC_JY2 = PICInterface.PIC_LOCAL + 1;
|
|
2060
|
+
PICInterface.PIC_JY4 = PICInterface.PIC_LOCAL + 2;
|
|
2061
|
+
PICInterface.PIC_YJ = PICInterface.PIC_LOCAL + 3;
|
|
2062
|
+
PICInterface.PIC_BB = PICInterface.PIC_LOCAL + 4;
|
|
2063
|
+
PICInterface.PIC_J = PICInterface.PIC_LOCAL + 5;
|
|
2064
|
+
PICInterface.PIC_T = PICInterface.PIC_LOCAL + 6;
|
|
2065
|
+
PICInterface.PIC_G = PICInterface.PIC_LOCAL + 7;
|
|
2066
|
+
PICInterface.PIC_S = PICInterface.PIC_LOCAL + 8;
|
|
2067
|
+
PICInterface.PIC_MAX_OP = 31;
|
|
2843
2068
|
PICInterface.NULL_CHAR = -1;
|
|
2844
2069
|
PICInterface.DB_STR_MAX = 255;
|
|
2845
|
-
PICInterface.DAYSINFOURCENT = 146097;
|
|
2846
|
-
PICInterface.DAYSINCENTURY = 36524;
|
|
2847
|
-
PICInterface.DAYSINFOURYEAR = 1461;
|
|
2070
|
+
PICInterface.DAYSINFOURCENT = 146097;
|
|
2071
|
+
PICInterface.DAYSINCENTURY = 36524;
|
|
2072
|
+
PICInterface.DAYSINFOURYEAR = 1461;
|
|
2848
2073
|
PICInterface.DAYSINYEAR = 365;
|
|
2849
2074
|
PICInterface.DAYSINMONTH = 31;
|
|
2850
|
-
PICInterface.DATE_BUDDHIST_GAP = 543;
|
|
2075
|
+
PICInterface.DATE_BUDDHIST_GAP = 543;
|
|
2851
2076
|
PICInterface.DEFAULT_DATE = "693961";
|
|
2852
2077
|
PICInterface.DEFAULT_TIME = "0";
|
|
2853
2078
|
PICInterface.date_day_tab = [
|
|
@@ -2859,9 +2084,6 @@
|
|
|
2859
2084
|
PICInterface.date_dow_str = [
|
|
2860
2085
|
" ", "Sunday ", "Monday ", "Tuesday ", "Wednesday ", "Thursday ", "Friday ", "Saturday "
|
|
2861
2086
|
];
|
|
2862
|
-
//public final static readonly int DEF_century = 1920;
|
|
2863
|
-
//public final static readonly Nchar DEF_date_mode = 'E';
|
|
2864
|
-
// vec of pictures that can be given a numeric char only
|
|
2865
2087
|
PICInterface.NumDirective = [
|
|
2866
2088
|
4, 5, 6, 7, 9, 10, 11, 12, 14, 15, 16
|
|
2867
2089
|
];
|
|
@@ -2871,15 +2093,9 @@
|
|
|
2871
2093
|
var DateUtil = /** @class */ (function () {
|
|
2872
2094
|
function DateUtil() {
|
|
2873
2095
|
}
|
|
2874
|
-
/// <summary>
|
|
2875
|
-
/// extract the vector which contains the names of the months, as specified by the
|
|
2876
|
-
/// language CAB
|
|
2877
|
-
/// </summary>
|
|
2878
2096
|
DateUtil.getLocalMonths = function (names) {
|
|
2879
2097
|
var monthLen = DATE_MONTH_LEN;
|
|
2880
|
-
// if it's the first time then access the language CAB and take the values
|
|
2881
2098
|
if (typeof DateUtil._localMonths[0] === "undefined") {
|
|
2882
|
-
//cut the string into separate values
|
|
2883
2099
|
if (names !== null) {
|
|
2884
2100
|
DateUtil._localMonths[0] = PICInterface.date_month_str[0];
|
|
2885
2101
|
for (var i = 1; i < DateUtil._localMonths.length; i = i + 1) {
|
|
@@ -2902,15 +2118,9 @@
|
|
|
2902
2118
|
}
|
|
2903
2119
|
return DateUtil._localMonths;
|
|
2904
2120
|
};
|
|
2905
|
-
/// <summary>
|
|
2906
|
-
/// extract the vector which contains the names of the days, as specified by the
|
|
2907
|
-
/// language CAB
|
|
2908
|
-
/// </summary>
|
|
2909
2121
|
DateUtil.getLocalDays = function (names) {
|
|
2910
2122
|
var dowLen = DATE_DOW_LEN;
|
|
2911
|
-
// if it's the first time then access the language CAB and take the values
|
|
2912
2123
|
if (typeof DateUtil._localDays[0] === "undefined") {
|
|
2913
|
-
//cut the string into separate values
|
|
2914
2124
|
if (names !== null) {
|
|
2915
2125
|
DateUtil._localDays[0] = PICInterface.date_dow_str[0];
|
|
2916
2126
|
for (var i = 1; i < DateUtil._localDays.length; i = i + 1) {
|
|
@@ -2938,10 +2148,12 @@
|
|
|
2938
2148
|
DateUtil._localMonths = new Array(13);
|
|
2939
2149
|
DateUtil._localDays = new Array(8);
|
|
2940
2150
|
|
|
2151
|
+
exports.Logger_MessageDirection = void 0;
|
|
2941
2152
|
(function (Logger_MessageDirection) {
|
|
2942
2153
|
Logger_MessageDirection[Logger_MessageDirection["MessageLeaving"] = 0] = "MessageLeaving";
|
|
2943
2154
|
Logger_MessageDirection[Logger_MessageDirection["MessageEntering"] = 1] = "MessageEntering";
|
|
2944
2155
|
})(exports.Logger_MessageDirection || (exports.Logger_MessageDirection = {}));
|
|
2156
|
+
exports.Logger_LogLevels = void 0;
|
|
2945
2157
|
(function (Logger_LogLevels) {
|
|
2946
2158
|
Logger_LogLevels[Logger_LogLevels["None"] = 0] = "None";
|
|
2947
2159
|
Logger_LogLevels[Logger_LogLevels["RequestInfo"] = 1] = "RequestInfo";
|
|
@@ -2952,18 +2164,22 @@
|
|
|
2952
2164
|
Logger_LogLevels[Logger_LogLevels["Development"] = 6] = "Development";
|
|
2953
2165
|
Logger_LogLevels[Logger_LogLevels["Basic"] = 7] = "Basic";
|
|
2954
2166
|
})(exports.Logger_LogLevels || (exports.Logger_LogLevels = {}));
|
|
2167
|
+
exports.Priority = void 0;
|
|
2955
2168
|
(function (Priority) {
|
|
2956
2169
|
Priority[Priority["LOWEST"] = 1] = "LOWEST";
|
|
2957
2170
|
Priority[Priority["LOW"] = 2] = "LOW";
|
|
2958
2171
|
Priority[Priority["HIGH"] = 3] = "HIGH";
|
|
2959
2172
|
})(exports.Priority || (exports.Priority = {}));
|
|
2173
|
+
exports.TableBehaviour = void 0;
|
|
2960
2174
|
(function (TableBehaviour) {
|
|
2961
2175
|
TableBehaviour[TableBehaviour["LimitedItems"] = 1] = "LimitedItems";
|
|
2962
2176
|
TableBehaviour[TableBehaviour["UnlimitedItems"] = 2] = "UnlimitedItems";
|
|
2963
2177
|
})(exports.TableBehaviour || (exports.TableBehaviour = {}));
|
|
2178
|
+
exports.HttpStatusCode = void 0;
|
|
2964
2179
|
(function (HttpStatusCode) {
|
|
2965
2180
|
HttpStatusCode[HttpStatusCode["Unused"] = 0] = "Unused";
|
|
2966
2181
|
})(exports.HttpStatusCode || (exports.HttpStatusCode = {}));
|
|
2182
|
+
exports.MgControlType = void 0;
|
|
2967
2183
|
(function (MgControlType) {
|
|
2968
2184
|
MgControlType["CTRL_TYPE_NONE"] = "0";
|
|
2969
2185
|
MgControlType["CTRL_TYPE_BUTTON"] = "B";
|
|
@@ -2988,6 +2204,7 @@
|
|
|
2988
2204
|
MgControlType["CTRL_TYPE_FRAME_FORM"] = "U";
|
|
2989
2205
|
MgControlType["CTRL_TYPE_LINE"] = "X";
|
|
2990
2206
|
})(exports.MgControlType || (exports.MgControlType = {}));
|
|
2207
|
+
exports.DitType = void 0;
|
|
2991
2208
|
(function (DitType) {
|
|
2992
2209
|
DitType[DitType["None"] = 1] = "None";
|
|
2993
2210
|
DitType[DitType["Edit"] = 2] = "Edit";
|
|
@@ -3016,11 +2233,13 @@
|
|
|
3016
2233
|
DitType[DitType["Browser"] = 25] = "Browser";
|
|
3017
2234
|
DitType[DitType["Opaque"] = 26] = "Opaque";
|
|
3018
2235
|
})(exports.DitType || (exports.DitType = {}));
|
|
2236
|
+
exports.BorderType = void 0;
|
|
3019
2237
|
(function (BorderType) {
|
|
3020
2238
|
BorderType[BorderType["Thin"] = 1] = "Thin";
|
|
3021
2239
|
BorderType[BorderType["Thick"] = 2] = "Thick";
|
|
3022
2240
|
BorderType[BorderType["NoBorder"] = 3] = "NoBorder";
|
|
3023
2241
|
})(exports.BorderType || (exports.BorderType = {}));
|
|
2242
|
+
exports.GradientStyle = void 0;
|
|
3024
2243
|
(function (GradientStyle) {
|
|
3025
2244
|
GradientStyle[GradientStyle["None"] = 1] = "None";
|
|
3026
2245
|
GradientStyle[GradientStyle["Horizontal"] = 2] = "Horizontal";
|
|
@@ -3039,25 +2258,30 @@
|
|
|
3039
2258
|
GradientStyle[GradientStyle["CornerBottomRight"] = 15] = "CornerBottomRight";
|
|
3040
2259
|
GradientStyle[GradientStyle["Center"] = 16] = "Center";
|
|
3041
2260
|
})(exports.GradientStyle || (exports.GradientStyle = {}));
|
|
2261
|
+
exports.AlignmentTypeHori = void 0;
|
|
3042
2262
|
(function (AlignmentTypeHori) {
|
|
3043
2263
|
AlignmentTypeHori[AlignmentTypeHori["Left"] = 1] = "Left";
|
|
3044
2264
|
AlignmentTypeHori[AlignmentTypeHori["Center"] = 2] = "Center";
|
|
3045
2265
|
AlignmentTypeHori[AlignmentTypeHori["Right"] = 3] = "Right";
|
|
3046
2266
|
})(exports.AlignmentTypeHori || (exports.AlignmentTypeHori = {}));
|
|
2267
|
+
exports.TabbingOrderType = void 0;
|
|
3047
2268
|
(function (TabbingOrderType) {
|
|
3048
2269
|
TabbingOrderType[TabbingOrderType["Automatically"] = 1] = "Automatically";
|
|
3049
2270
|
TabbingOrderType[TabbingOrderType["Manual"] = 2] = "Manual";
|
|
3050
2271
|
})(exports.TabbingOrderType || (exports.TabbingOrderType = {}));
|
|
2272
|
+
exports.AllowedDirectionType = void 0;
|
|
3051
2273
|
(function (AllowedDirectionType) {
|
|
3052
2274
|
AllowedDirectionType[AllowedDirectionType["Both"] = 1] = "Both";
|
|
3053
2275
|
AllowedDirectionType[AllowedDirectionType["Foreword"] = 2] = "Foreword";
|
|
3054
2276
|
AllowedDirectionType[AllowedDirectionType["Backward"] = 3] = "Backward";
|
|
3055
2277
|
})(exports.AllowedDirectionType || (exports.AllowedDirectionType = {}));
|
|
2278
|
+
exports.AlignmentTypeVert = void 0;
|
|
3056
2279
|
(function (AlignmentTypeVert) {
|
|
3057
2280
|
AlignmentTypeVert[AlignmentTypeVert["Top"] = 1] = "Top";
|
|
3058
2281
|
AlignmentTypeVert[AlignmentTypeVert["Center"] = 2] = "Center";
|
|
3059
2282
|
AlignmentTypeVert[AlignmentTypeVert["Bottom"] = 3] = "Bottom";
|
|
3060
2283
|
})(exports.AlignmentTypeVert || (exports.AlignmentTypeVert = {}));
|
|
2284
|
+
exports.HtmlAlignmentType = void 0;
|
|
3061
2285
|
(function (HtmlAlignmentType) {
|
|
3062
2286
|
HtmlAlignmentType[HtmlAlignmentType["TextVertTop"] = 1] = "TextVertTop";
|
|
3063
2287
|
HtmlAlignmentType[HtmlAlignmentType["TextVertCenter"] = 2] = "TextVertCenter";
|
|
@@ -3065,33 +2289,39 @@
|
|
|
3065
2289
|
HtmlAlignmentType[HtmlAlignmentType["TextHoriLeft"] = 4] = "TextHoriLeft";
|
|
3066
2290
|
HtmlAlignmentType[HtmlAlignmentType["TextHoriRight"] = 5] = "TextHoriRight";
|
|
3067
2291
|
})(exports.HtmlAlignmentType || (exports.HtmlAlignmentType = {}));
|
|
2292
|
+
exports.SideType = void 0;
|
|
3068
2293
|
(function (SideType) {
|
|
3069
2294
|
SideType[SideType["Top"] = 1] = "Top";
|
|
3070
2295
|
SideType[SideType["Right"] = 2] = "Right";
|
|
3071
2296
|
SideType[SideType["Bottom"] = 3] = "Bottom";
|
|
3072
2297
|
SideType[SideType["Left"] = 4] = "Left";
|
|
3073
2298
|
})(exports.SideType || (exports.SideType = {}));
|
|
2299
|
+
exports.SelprgMode = void 0;
|
|
3074
2300
|
(function (SelprgMode) {
|
|
3075
2301
|
SelprgMode["Before"] = "B";
|
|
3076
2302
|
SelprgMode["After"] = "A";
|
|
3077
2303
|
SelprgMode["Prompt"] = "P";
|
|
3078
2304
|
})(exports.SelprgMode || (exports.SelprgMode = {}));
|
|
2305
|
+
exports.WinCptn = void 0;
|
|
3079
2306
|
(function (WinCptn) {
|
|
3080
2307
|
WinCptn[WinCptn["Half"] = 1] = "Half";
|
|
3081
2308
|
WinCptn[WinCptn["On"] = 2] = "On";
|
|
3082
2309
|
WinCptn[WinCptn["Off"] = 3] = "Off";
|
|
3083
2310
|
})(exports.WinCptn || (exports.WinCptn = {}));
|
|
2311
|
+
exports.WinHtmlType = void 0;
|
|
3084
2312
|
(function (WinHtmlType) {
|
|
3085
2313
|
WinHtmlType[WinHtmlType["Get"] = 1] = "Get";
|
|
3086
2314
|
WinHtmlType[WinHtmlType["Post"] = 2] = "Post";
|
|
3087
2315
|
WinHtmlType[WinHtmlType["Link"] = 3] = "Link";
|
|
3088
2316
|
})(exports.WinHtmlType || (exports.WinHtmlType = {}));
|
|
2317
|
+
exports.WinUom = void 0;
|
|
3089
2318
|
(function (WinUom) {
|
|
3090
2319
|
WinUom[WinUom["Dlg"] = 1] = "Dlg";
|
|
3091
2320
|
WinUom[WinUom["Mm"] = 2] = "Mm";
|
|
3092
2321
|
WinUom[WinUom["Inch"] = 3] = "Inch";
|
|
3093
2322
|
WinUom[WinUom["Pix"] = 4] = "Pix";
|
|
3094
2323
|
})(exports.WinUom || (exports.WinUom = {}));
|
|
2324
|
+
exports.ControlStyle = void 0;
|
|
3095
2325
|
(function (ControlStyle) {
|
|
3096
2326
|
ControlStyle[ControlStyle["TwoD"] = 1] = "TwoD";
|
|
3097
2327
|
ControlStyle[ControlStyle["ThreeD"] = 2] = "ThreeD";
|
|
@@ -3101,6 +2331,7 @@
|
|
|
3101
2331
|
ControlStyle[ControlStyle["Emboss"] = 6] = "Emboss";
|
|
3102
2332
|
ControlStyle[ControlStyle["NoBorder"] = 7] = "NoBorder";
|
|
3103
2333
|
})(exports.ControlStyle || (exports.ControlStyle = {}));
|
|
2334
|
+
exports.CtrlLineType = void 0;
|
|
3104
2335
|
(function (CtrlLineType) {
|
|
3105
2336
|
CtrlLineType[CtrlLineType["Normal"] = 1] = "Normal";
|
|
3106
2337
|
CtrlLineType[CtrlLineType["Dash"] = 2] = "Dash";
|
|
@@ -3108,30 +2339,36 @@
|
|
|
3108
2339
|
CtrlLineType[CtrlLineType["Dashdot"] = 4] = "Dashdot";
|
|
3109
2340
|
CtrlLineType[CtrlLineType["Dashdotdot"] = 5] = "Dashdotdot";
|
|
3110
2341
|
})(exports.CtrlLineType || (exports.CtrlLineType = {}));
|
|
2342
|
+
exports.CtrlTextType = void 0;
|
|
3111
2343
|
(function (CtrlTextType) {
|
|
3112
2344
|
CtrlTextType[CtrlTextType["Default"] = 1] = "Default";
|
|
3113
2345
|
CtrlTextType[CtrlTextType["Bullet"] = 2] = "Bullet";
|
|
3114
2346
|
CtrlTextType[CtrlTextType["Number"] = 3] = "Number";
|
|
3115
2347
|
})(exports.CtrlTextType || (exports.CtrlTextType = {}));
|
|
2348
|
+
exports.CtrlLineDirection = void 0;
|
|
3116
2349
|
(function (CtrlLineDirection) {
|
|
3117
2350
|
CtrlLineDirection[CtrlLineDirection["Asc"] = 1] = "Asc";
|
|
3118
2351
|
CtrlLineDirection[CtrlLineDirection["Des"] = 2] = "Des";
|
|
3119
2352
|
})(exports.CtrlLineDirection || (exports.CtrlLineDirection = {}));
|
|
2353
|
+
exports.CtrlOleDisplayType = void 0;
|
|
3120
2354
|
(function (CtrlOleDisplayType) {
|
|
3121
2355
|
CtrlOleDisplayType[CtrlOleDisplayType["Icon"] = 1] = "Icon";
|
|
3122
2356
|
CtrlOleDisplayType[CtrlOleDisplayType["Content"] = 2] = "Content";
|
|
3123
2357
|
CtrlOleDisplayType[CtrlOleDisplayType["Any"] = 3] = "Any";
|
|
3124
2358
|
})(exports.CtrlOleDisplayType || (exports.CtrlOleDisplayType = {}));
|
|
2359
|
+
exports.CtrlOleStoreType = void 0;
|
|
3125
2360
|
(function (CtrlOleStoreType) {
|
|
3126
2361
|
CtrlOleStoreType[CtrlOleStoreType["Link"] = 1] = "Link";
|
|
3127
2362
|
CtrlOleStoreType[CtrlOleStoreType["Embeded"] = 2] = "Embeded";
|
|
3128
2363
|
CtrlOleStoreType[CtrlOleStoreType["Any"] = 3] = "Any";
|
|
3129
2364
|
})(exports.CtrlOleStoreType || (exports.CtrlOleStoreType = {}));
|
|
2365
|
+
exports.CtrlButtonType = void 0;
|
|
3130
2366
|
(function (CtrlButtonType) {
|
|
3131
2367
|
CtrlButtonType[CtrlButtonType["Submit"] = 1] = "Submit";
|
|
3132
2368
|
CtrlButtonType[CtrlButtonType["Clear"] = 2] = "Clear";
|
|
3133
2369
|
CtrlButtonType[CtrlButtonType["Default"] = 3] = "Default";
|
|
3134
2370
|
})(exports.CtrlButtonType || (exports.CtrlButtonType = {}));
|
|
2371
|
+
exports.CtrlImageStyle = void 0;
|
|
3135
2372
|
(function (CtrlImageStyle) {
|
|
3136
2373
|
CtrlImageStyle[CtrlImageStyle["Tiled"] = 1] = "Tiled";
|
|
3137
2374
|
CtrlImageStyle[CtrlImageStyle["Copied"] = 2] = "Copied";
|
|
@@ -3139,23 +2376,27 @@
|
|
|
3139
2376
|
CtrlImageStyle[CtrlImageStyle["ScaleFill"] = 4] = "ScaleFill";
|
|
3140
2377
|
CtrlImageStyle[CtrlImageStyle["Distorted"] = 5] = "Distorted";
|
|
3141
2378
|
})(exports.CtrlImageStyle || (exports.CtrlImageStyle = {}));
|
|
2379
|
+
exports.TabControlTabsWidth = void 0;
|
|
3142
2380
|
(function (TabControlTabsWidth) {
|
|
3143
2381
|
TabControlTabsWidth[TabControlTabsWidth["FitToText"] = 1] = "FitToText";
|
|
3144
2382
|
TabControlTabsWidth[TabControlTabsWidth["Fixed"] = 2] = "Fixed";
|
|
3145
2383
|
TabControlTabsWidth[TabControlTabsWidth["FillToRight"] = 3] = "FillToRight";
|
|
3146
2384
|
TabControlTabsWidth[TabControlTabsWidth["FixedInLine"] = 4] = "FixedInLine";
|
|
3147
2385
|
})(exports.TabControlTabsWidth || (exports.TabControlTabsWidth = {}));
|
|
2386
|
+
exports.CheckboxMainStyle = void 0;
|
|
3148
2387
|
(function (CheckboxMainStyle) {
|
|
3149
2388
|
CheckboxMainStyle[CheckboxMainStyle["None"] = 0] = "None";
|
|
3150
2389
|
CheckboxMainStyle[CheckboxMainStyle["Box"] = 1] = "Box";
|
|
3151
2390
|
CheckboxMainStyle[CheckboxMainStyle["Button"] = 2] = "Button";
|
|
3152
2391
|
CheckboxMainStyle[CheckboxMainStyle["Switch"] = 3] = "Switch";
|
|
3153
2392
|
})(exports.CheckboxMainStyle || (exports.CheckboxMainStyle = {}));
|
|
2393
|
+
exports.RbAppearance = void 0;
|
|
3154
2394
|
(function (RbAppearance) {
|
|
3155
2395
|
RbAppearance[RbAppearance["None"] = 0] = "None";
|
|
3156
2396
|
RbAppearance[RbAppearance["Radio"] = 1] = "Radio";
|
|
3157
2397
|
RbAppearance[RbAppearance["Button"] = 2] = "Button";
|
|
3158
2398
|
})(exports.RbAppearance || (exports.RbAppearance = {}));
|
|
2399
|
+
exports.HelpCommand = void 0;
|
|
3159
2400
|
(function (HelpCommand) {
|
|
3160
2401
|
HelpCommand[HelpCommand["Context"] = 1] = "Context";
|
|
3161
2402
|
HelpCommand[HelpCommand["Contents"] = 2] = "Contents";
|
|
@@ -3167,11 +2408,13 @@
|
|
|
3167
2408
|
HelpCommand[HelpCommand["Helponhelp"] = 8] = "Helponhelp";
|
|
3168
2409
|
HelpCommand[HelpCommand["Quit"] = 9] = "Quit";
|
|
3169
2410
|
})(exports.HelpCommand || (exports.HelpCommand = {}));
|
|
2411
|
+
exports.FormExpandType = void 0;
|
|
3170
2412
|
(function (FormExpandType) {
|
|
3171
2413
|
FormExpandType[FormExpandType["None"] = 1] = "None";
|
|
3172
2414
|
FormExpandType[FormExpandType["OnePage"] = 2] = "OnePage";
|
|
3173
2415
|
FormExpandType[FormExpandType["MultiPage"] = 3] = "MultiPage";
|
|
3174
2416
|
})(exports.FormExpandType || (exports.FormExpandType = {}));
|
|
2417
|
+
exports.DitAttribute = void 0;
|
|
3175
2418
|
(function (DitAttribute) {
|
|
3176
2419
|
DitAttribute[DitAttribute["Alpha"] = 1] = "Alpha";
|
|
3177
2420
|
DitAttribute[DitAttribute["Unicode"] = 2] = "Unicode";
|
|
@@ -3182,6 +2425,7 @@
|
|
|
3182
2425
|
DitAttribute[DitAttribute["Memo"] = 7] = "Memo";
|
|
3183
2426
|
DitAttribute[DitAttribute["Blob"] = 8] = "Blob";
|
|
3184
2427
|
})(exports.DitAttribute || (exports.DitAttribute = {}));
|
|
2428
|
+
exports.DspInterface = void 0;
|
|
3185
2429
|
(function (DspInterface) {
|
|
3186
2430
|
DspInterface[DspInterface["Text"] = 1] = "Text";
|
|
3187
2431
|
DspInterface[DspInterface["Gui"] = 2] = "Gui";
|
|
@@ -3192,15 +2436,18 @@
|
|
|
3192
2436
|
DspInterface[DspInterface["Webonline"] = 7] = "Webonline";
|
|
3193
2437
|
DspInterface[DspInterface["Browser"] = 8] = "Browser";
|
|
3194
2438
|
})(exports.DspInterface || (exports.DspInterface = {}));
|
|
2439
|
+
exports.PrgExecPlace = void 0;
|
|
3195
2440
|
(function (PrgExecPlace) {
|
|
3196
2441
|
PrgExecPlace[PrgExecPlace["Before"] = 1] = "Before";
|
|
3197
2442
|
PrgExecPlace[PrgExecPlace["After"] = 2] = "After";
|
|
3198
2443
|
PrgExecPlace[PrgExecPlace["Prompt"] = 3] = "Prompt";
|
|
3199
2444
|
})(exports.PrgExecPlace || (exports.PrgExecPlace = {}));
|
|
2445
|
+
exports.SliderType = void 0;
|
|
3200
2446
|
(function (SliderType) {
|
|
3201
2447
|
SliderType[SliderType["Vertical"] = 1] = "Vertical";
|
|
3202
2448
|
SliderType[SliderType["Horizontal"] = 2] = "Horizontal";
|
|
3203
2449
|
})(exports.SliderType || (exports.SliderType = {}));
|
|
2450
|
+
exports.CtrlButtonTypeGui = void 0;
|
|
3204
2451
|
(function (CtrlButtonTypeGui) {
|
|
3205
2452
|
CtrlButtonTypeGui[CtrlButtonTypeGui["None"] = 0] = "None";
|
|
3206
2453
|
CtrlButtonTypeGui[CtrlButtonTypeGui["Push"] = 1] = "Push";
|
|
@@ -3208,6 +2455,7 @@
|
|
|
3208
2455
|
CtrlButtonTypeGui[CtrlButtonTypeGui["Hypertext"] = 3] = "Hypertext";
|
|
3209
2456
|
CtrlButtonTypeGui[CtrlButtonTypeGui["TextOnImage"] = 4] = "TextOnImage";
|
|
3210
2457
|
})(exports.CtrlButtonTypeGui || (exports.CtrlButtonTypeGui = {}));
|
|
2458
|
+
exports.ImageEffects = void 0;
|
|
3211
2459
|
(function (ImageEffects) {
|
|
3212
2460
|
ImageEffects[ImageEffects["Normal"] = 1] = "Normal";
|
|
3213
2461
|
ImageEffects[ImageEffects["WipeDown"] = 2] = "WipeDown";
|
|
@@ -3231,20 +2479,24 @@
|
|
|
3231
2479
|
ImageEffects[ImageEffects["SpiralIn3"] = 20] = "SpiralIn3";
|
|
3232
2480
|
ImageEffects[ImageEffects["SpiralOut4"] = 21] = "SpiralOut4";
|
|
3233
2481
|
})(exports.ImageEffects || (exports.ImageEffects = {}));
|
|
2482
|
+
exports.CtrlHotspotType = void 0;
|
|
3234
2483
|
(function (CtrlHotspotType) {
|
|
3235
2484
|
CtrlHotspotType[CtrlHotspotType["Square"] = 1] = "Square";
|
|
3236
2485
|
CtrlHotspotType[CtrlHotspotType["Circle"] = 2] = "Circle";
|
|
3237
2486
|
})(exports.CtrlHotspotType || (exports.CtrlHotspotType = {}));
|
|
2487
|
+
exports.SubformType = void 0;
|
|
3238
2488
|
(function (SubformType) {
|
|
3239
2489
|
SubformType[SubformType["Program"] = 1] = "Program";
|
|
3240
2490
|
SubformType[SubformType["Subtask"] = 2] = "Subtask";
|
|
3241
2491
|
SubformType[SubformType["Form"] = 3] = "Form";
|
|
3242
2492
|
SubformType[SubformType["None"] = 4] = "None";
|
|
3243
2493
|
})(exports.SubformType || (exports.SubformType = {}));
|
|
2494
|
+
exports.DatabaseDefinitionType = void 0;
|
|
3244
2495
|
(function (DatabaseDefinitionType) {
|
|
3245
2496
|
DatabaseDefinitionType[DatabaseDefinitionType["String"] = 1] = "String";
|
|
3246
2497
|
DatabaseDefinitionType[DatabaseDefinitionType["Normal"] = 2] = "Normal";
|
|
3247
2498
|
})(exports.DatabaseDefinitionType || (exports.DatabaseDefinitionType = {}));
|
|
2499
|
+
exports.DatabaseOperations = void 0;
|
|
3248
2500
|
(function (DatabaseOperations) {
|
|
3249
2501
|
DatabaseOperations[DatabaseOperations["Insert"] = 1] = "Insert";
|
|
3250
2502
|
DatabaseOperations[DatabaseOperations["Update"] = 2] = "Update";
|
|
@@ -3252,11 +2504,13 @@
|
|
|
3252
2504
|
DatabaseOperations[DatabaseOperations["Where"] = 4] = "Where";
|
|
3253
2505
|
DatabaseOperations[DatabaseOperations["None"] = 5] = "None";
|
|
3254
2506
|
})(exports.DatabaseOperations || (exports.DatabaseOperations = {}));
|
|
2507
|
+
exports.DataTranslation = void 0;
|
|
3255
2508
|
(function (DataTranslation) {
|
|
3256
2509
|
DataTranslation[DataTranslation["Ansi"] = 1] = "Ansi";
|
|
3257
2510
|
DataTranslation[DataTranslation["Oem"] = 2] = "Oem";
|
|
3258
2511
|
DataTranslation[DataTranslation["Unicode"] = 3] = "Unicode";
|
|
3259
2512
|
})(exports.DataTranslation || (exports.DataTranslation = {}));
|
|
2513
|
+
exports.WindowPosition = void 0;
|
|
3260
2514
|
(function (WindowPosition) {
|
|
3261
2515
|
WindowPosition[WindowPosition["Customized"] = 1] = "Customized";
|
|
3262
2516
|
WindowPosition[WindowPosition["DefaultBounds"] = 2] = "DefaultBounds";
|
|
@@ -3266,6 +2520,7 @@
|
|
|
3266
2520
|
WindowPosition[WindowPosition["DefaultLocation"] = 6] = "DefaultLocation";
|
|
3267
2521
|
WindowPosition[WindowPosition["CenteredToWindow"] = 7] = "CenteredToWindow";
|
|
3268
2522
|
})(exports.WindowPosition || (exports.WindowPosition = {}));
|
|
2523
|
+
exports.FldStyle = void 0;
|
|
3269
2524
|
(function (FldStyle) {
|
|
3270
2525
|
FldStyle[FldStyle["None"] = 1] = "None";
|
|
3271
2526
|
FldStyle[FldStyle["Activex"] = 2] = "Activex";
|
|
@@ -3273,19 +2528,23 @@
|
|
|
3273
2528
|
FldStyle[FldStyle["Vector"] = 4] = "Vector";
|
|
3274
2529
|
FldStyle[FldStyle["Dotnet"] = 5] = "Dotnet";
|
|
3275
2530
|
})(exports.FldStyle || (exports.FldStyle = {}));
|
|
2531
|
+
exports.FieldComType = void 0;
|
|
3276
2532
|
(function (FieldComType) {
|
|
3277
2533
|
FieldComType[FieldComType["Obj"] = 1] = "Obj";
|
|
3278
2534
|
FieldComType[FieldComType["Ref"] = 2] = "Ref";
|
|
3279
2535
|
})(exports.FieldComType || (exports.FieldComType = {}));
|
|
2536
|
+
exports.ListboxSelectionMode = void 0;
|
|
3280
2537
|
(function (ListboxSelectionMode) {
|
|
3281
2538
|
ListboxSelectionMode[ListboxSelectionMode["Single"] = 1] = "Single";
|
|
3282
2539
|
ListboxSelectionMode[ListboxSelectionMode["Multiple"] = 2] = "Multiple";
|
|
3283
2540
|
})(exports.ListboxSelectionMode || (exports.ListboxSelectionMode = {}));
|
|
2541
|
+
exports.SplitWindowType = void 0;
|
|
3284
2542
|
(function (SplitWindowType) {
|
|
3285
2543
|
SplitWindowType[SplitWindowType["None"] = 1] = "None";
|
|
3286
2544
|
SplitWindowType[SplitWindowType["Vertical"] = 2] = "Vertical";
|
|
3287
2545
|
SplitWindowType[SplitWindowType["Horizontal"] = 3] = "Horizontal";
|
|
3288
2546
|
})(exports.SplitWindowType || (exports.SplitWindowType = {}));
|
|
2547
|
+
exports.SplitPrimaryDisplay = void 0;
|
|
3289
2548
|
(function (SplitPrimaryDisplay) {
|
|
3290
2549
|
SplitPrimaryDisplay[SplitPrimaryDisplay["Default"] = 1] = "Default";
|
|
3291
2550
|
SplitPrimaryDisplay[SplitPrimaryDisplay["Left"] = 2] = "Left";
|
|
@@ -3293,11 +2552,13 @@
|
|
|
3293
2552
|
SplitPrimaryDisplay[SplitPrimaryDisplay["Top"] = 4] = "Top";
|
|
3294
2553
|
SplitPrimaryDisplay[SplitPrimaryDisplay["Bottom"] = 5] = "Bottom";
|
|
3295
2554
|
})(exports.SplitPrimaryDisplay || (exports.SplitPrimaryDisplay = {}));
|
|
2555
|
+
exports.AutoFit = void 0;
|
|
3296
2556
|
(function (AutoFit) {
|
|
3297
2557
|
AutoFit[AutoFit["None"] = 1] = "None";
|
|
3298
2558
|
AutoFit[AutoFit["AsControl"] = 2] = "AsControl";
|
|
3299
2559
|
AutoFit[AutoFit["AsCalledForm"] = 3] = "AsCalledForm";
|
|
3300
2560
|
})(exports.AutoFit || (exports.AutoFit = {}));
|
|
2561
|
+
exports.WindowType = void 0;
|
|
3301
2562
|
(function (WindowType) {
|
|
3302
2563
|
WindowType[WindowType["Default"] = 1] = "Default";
|
|
3303
2564
|
WindowType[WindowType["Sdi"] = 2] = "Sdi";
|
|
@@ -3314,35 +2575,42 @@
|
|
|
3314
2575
|
WindowType["LogonApplicationWindow"] = "a";
|
|
3315
2576
|
WindowType["TkDockChild"] = "b";
|
|
3316
2577
|
})(exports.WindowType || (exports.WindowType = {}));
|
|
2578
|
+
exports.StartupMode = void 0;
|
|
3317
2579
|
(function (StartupMode) {
|
|
3318
2580
|
StartupMode[StartupMode["Default"] = 1] = "Default";
|
|
3319
2581
|
StartupMode[StartupMode["Maximize"] = 2] = "Maximize";
|
|
3320
2582
|
StartupMode[StartupMode["Minimize"] = 3] = "Minimize";
|
|
3321
2583
|
})(exports.StartupMode || (exports.StartupMode = {}));
|
|
2584
|
+
exports.ColumnUpdateStyle = void 0;
|
|
3322
2585
|
(function (ColumnUpdateStyle) {
|
|
3323
2586
|
ColumnUpdateStyle[ColumnUpdateStyle["Absolute"] = 1] = "Absolute";
|
|
3324
2587
|
ColumnUpdateStyle[ColumnUpdateStyle["Differential"] = 2] = "Differential";
|
|
3325
2588
|
ColumnUpdateStyle[ColumnUpdateStyle["AsTable"] = 3] = "AsTable";
|
|
3326
2589
|
})(exports.ColumnUpdateStyle || (exports.ColumnUpdateStyle = {}));
|
|
2590
|
+
exports.CallUdpConvention = void 0;
|
|
3327
2591
|
(function (CallUdpConvention) {
|
|
3328
2592
|
CallUdpConvention["C"] = "C";
|
|
3329
2593
|
CallUdpConvention["Standard"] = "S";
|
|
3330
2594
|
CallUdpConvention["Fast"] = "F";
|
|
3331
2595
|
})(exports.CallUdpConvention || (exports.CallUdpConvention = {}));
|
|
2596
|
+
exports.CallUDPType = void 0;
|
|
3332
2597
|
(function (CallUDPType) {
|
|
3333
2598
|
CallUDPType["Background"] = "B";
|
|
3334
2599
|
CallUDPType["GUI"] = "G";
|
|
3335
2600
|
})(exports.CallUDPType || (exports.CallUDPType = {}));
|
|
2601
|
+
exports.VerifyMode = void 0;
|
|
3336
2602
|
(function (VerifyMode) {
|
|
3337
2603
|
VerifyMode["Error"] = "E";
|
|
3338
2604
|
VerifyMode["Warning"] = "W";
|
|
3339
2605
|
VerifyMode["Revert"] = "R";
|
|
3340
2606
|
})(exports.VerifyMode || (exports.VerifyMode = {}));
|
|
2607
|
+
exports.VerifyDisplay = void 0;
|
|
3341
2608
|
(function (VerifyDisplay) {
|
|
3342
2609
|
VerifyDisplay["Box"] = "B";
|
|
3343
2610
|
VerifyDisplay["Status"] = "S";
|
|
3344
2611
|
VerifyDisplay["None"] = "N";
|
|
3345
2612
|
})(exports.VerifyDisplay || (exports.VerifyDisplay = {}));
|
|
2613
|
+
exports.VerifyImage = void 0;
|
|
3346
2614
|
(function (VerifyImage) {
|
|
3347
2615
|
VerifyImage["Exclamation"] = "E";
|
|
3348
2616
|
VerifyImage["Critical"] = "C";
|
|
@@ -3350,6 +2618,7 @@
|
|
|
3350
2618
|
VerifyImage["Information"] = "I";
|
|
3351
2619
|
VerifyImage["None"] = "N";
|
|
3352
2620
|
})(exports.VerifyImage || (exports.VerifyImage = {}));
|
|
2621
|
+
exports.VerifyButtons = void 0;
|
|
3353
2622
|
(function (VerifyButtons) {
|
|
3354
2623
|
VerifyButtons["Ok"] = "O";
|
|
3355
2624
|
VerifyButtons["OkCancel"] = "K";
|
|
@@ -3358,21 +2627,25 @@
|
|
|
3358
2627
|
VerifyButtons["YesNo"] = "N";
|
|
3359
2628
|
VerifyButtons["RetryCancel"] = "R";
|
|
3360
2629
|
})(exports.VerifyButtons || (exports.VerifyButtons = {}));
|
|
2630
|
+
exports.CallComOption = void 0;
|
|
3361
2631
|
(function (CallComOption) {
|
|
3362
2632
|
CallComOption[CallComOption["Method"] = 1] = "Method";
|
|
3363
2633
|
CallComOption[CallComOption["GetProp"] = 2] = "GetProp";
|
|
3364
2634
|
CallComOption[CallComOption["SetProp"] = 3] = "SetProp";
|
|
3365
2635
|
})(exports.CallComOption || (exports.CallComOption = {}));
|
|
2636
|
+
exports.CallWsStyle = void 0;
|
|
3366
2637
|
(function (CallWsStyle) {
|
|
3367
2638
|
CallWsStyle[CallWsStyle["Rpc"] = 1] = "Rpc";
|
|
3368
2639
|
CallWsStyle[CallWsStyle["Document"] = 2] = "Document";
|
|
3369
2640
|
})(exports.CallWsStyle || (exports.CallWsStyle = {}));
|
|
2641
|
+
exports.CallOsShow = void 0;
|
|
3370
2642
|
(function (CallOsShow) {
|
|
3371
2643
|
CallOsShow[CallOsShow["Hide"] = 1] = "Hide";
|
|
3372
2644
|
CallOsShow[CallOsShow["Normal"] = 2] = "Normal";
|
|
3373
2645
|
CallOsShow[CallOsShow["Maximize"] = 3] = "Maximize";
|
|
3374
2646
|
CallOsShow[CallOsShow["Minimize"] = 4] = "Minimize";
|
|
3375
2647
|
})(exports.CallOsShow || (exports.CallOsShow = {}));
|
|
2648
|
+
exports.LogicUnit = void 0;
|
|
3376
2649
|
(function (LogicUnit) {
|
|
3377
2650
|
LogicUnit[LogicUnit["Remark"] = 1] = "Remark";
|
|
3378
2651
|
LogicUnit[LogicUnit["Task"] = 2] = "Task";
|
|
@@ -3384,46 +2657,55 @@
|
|
|
3384
2657
|
LogicUnit[LogicUnit["Function"] = 8] = "Function";
|
|
3385
2658
|
LogicUnit[LogicUnit["SeqFlow"] = 9] = "SeqFlow";
|
|
3386
2659
|
})(exports.LogicUnit || (exports.LogicUnit = {}));
|
|
2660
|
+
exports.LogicLevel = void 0;
|
|
3387
2661
|
(function (LogicLevel) {
|
|
3388
2662
|
LogicLevel["Prefix"] = "P";
|
|
3389
2663
|
LogicLevel["Suffix"] = "S";
|
|
3390
2664
|
LogicLevel["Verification"] = "V";
|
|
3391
2665
|
LogicLevel["Change"] = "C";
|
|
3392
2666
|
})(exports.LogicLevel || (exports.LogicLevel = {}));
|
|
2667
|
+
exports.BrkScope = void 0;
|
|
3393
2668
|
(function (BrkScope) {
|
|
3394
2669
|
BrkScope["Task"] = "T";
|
|
3395
2670
|
BrkScope["Subtree"] = "S";
|
|
3396
2671
|
BrkScope["Global"] = "G";
|
|
3397
2672
|
})(exports.BrkScope || (exports.BrkScope = {}));
|
|
2673
|
+
exports.LDir = void 0;
|
|
3398
2674
|
(function (LDir) {
|
|
3399
2675
|
LDir["Default"] = "A";
|
|
3400
2676
|
LDir["Reversed"] = "D";
|
|
3401
2677
|
})(exports.LDir || (exports.LDir = {}));
|
|
2678
|
+
exports.Order = void 0;
|
|
3402
2679
|
(function (Order) {
|
|
3403
2680
|
Order["Ascending"] = "A";
|
|
3404
2681
|
Order["Descending"] = "D";
|
|
3405
2682
|
})(exports.Order || (exports.Order = {}));
|
|
2683
|
+
exports.LnkEval_Cond = void 0;
|
|
3406
2684
|
(function (LnkEval_Cond) {
|
|
3407
2685
|
LnkEval_Cond["Record"] = "R";
|
|
3408
2686
|
LnkEval_Cond["Task"] = "T";
|
|
3409
2687
|
})(exports.LnkEval_Cond || (exports.LnkEval_Cond = {}));
|
|
2688
|
+
exports.Access = void 0;
|
|
3410
2689
|
(function (Access) {
|
|
3411
2690
|
Access["NoAccess"] = " ";
|
|
3412
2691
|
Access["Read"] = "R";
|
|
3413
2692
|
Access["Write"] = "W";
|
|
3414
2693
|
})(exports.Access || (exports.Access = {}));
|
|
2694
|
+
exports.DbShare = void 0;
|
|
3415
2695
|
(function (DbShare) {
|
|
3416
2696
|
DbShare["NoShare"] = " ";
|
|
3417
2697
|
DbShare["Write"] = "W";
|
|
3418
2698
|
DbShare["Read"] = "R";
|
|
3419
2699
|
DbShare["None"] = "N";
|
|
3420
2700
|
})(exports.DbShare || (exports.DbShare = {}));
|
|
2701
|
+
exports.DbOpen = void 0;
|
|
3421
2702
|
(function (DbOpen) {
|
|
3422
2703
|
DbOpen["Normal"] = "N";
|
|
3423
2704
|
DbOpen["Fast"] = "F";
|
|
3424
2705
|
DbOpen["Damaged"] = "D";
|
|
3425
2706
|
DbOpen["Reindex"] = "R";
|
|
3426
2707
|
})(exports.DbOpen || (exports.DbOpen = {}));
|
|
2708
|
+
exports.DbDelUpdMode = void 0;
|
|
3427
2709
|
(function (DbDelUpdMode) {
|
|
3428
2710
|
DbDelUpdMode["Position"] = "P";
|
|
3429
2711
|
DbDelUpdMode["PositionAndSelectedFields"] = "S";
|
|
@@ -3431,10 +2713,12 @@
|
|
|
3431
2713
|
DbDelUpdMode["AsTable"] = "T";
|
|
3432
2714
|
DbDelUpdMode["None"] = "N";
|
|
3433
2715
|
})(exports.DbDelUpdMode || (exports.DbDelUpdMode = {}));
|
|
2716
|
+
exports.RaiseAt = void 0;
|
|
3434
2717
|
(function (RaiseAt) {
|
|
3435
2718
|
RaiseAt[RaiseAt["Container"] = 1] = "Container";
|
|
3436
2719
|
RaiseAt[RaiseAt["TaskInFocus"] = 2] = "TaskInFocus";
|
|
3437
2720
|
})(exports.RaiseAt || (exports.RaiseAt = {}));
|
|
2721
|
+
exports.EngineDirect = void 0;
|
|
3438
2722
|
(function (EngineDirect) {
|
|
3439
2723
|
EngineDirect["None"] = " ";
|
|
3440
2724
|
EngineDirect["AbortTask"] = "A";
|
|
@@ -3445,11 +2729,13 @@
|
|
|
3445
2729
|
EngineDirect["AsStrategy"] = "S";
|
|
3446
2730
|
EngineDirect["Continue"] = "C";
|
|
3447
2731
|
})(exports.EngineDirect || (exports.EngineDirect = {}));
|
|
2732
|
+
exports.FlowDirection = void 0;
|
|
3448
2733
|
(function (FlowDirection) {
|
|
3449
2734
|
FlowDirection["Forward"] = "F";
|
|
3450
2735
|
FlowDirection["Backward"] = "B";
|
|
3451
2736
|
FlowDirection["Combined"] = "C";
|
|
3452
2737
|
})(exports.FlowDirection || (exports.FlowDirection = {}));
|
|
2738
|
+
exports.FlwMode = void 0;
|
|
3453
2739
|
(function (FlwMode) {
|
|
3454
2740
|
FlwMode["Fast"] = "F";
|
|
3455
2741
|
FlwMode["Step"] = "S";
|
|
@@ -3457,16 +2743,19 @@
|
|
|
3457
2743
|
FlwMode["Before"] = "J";
|
|
3458
2744
|
FlwMode["After"] = "Z";
|
|
3459
2745
|
})(exports.FlwMode || (exports.FlwMode = {}));
|
|
2746
|
+
exports.BottomPositionInterval = void 0;
|
|
3460
2747
|
(function (BottomPositionInterval) {
|
|
3461
2748
|
BottomPositionInterval[BottomPositionInterval["NoneRowHeight"] = 1] = "NoneRowHeight";
|
|
3462
2749
|
BottomPositionInterval[BottomPositionInterval["RowHeight"] = 2] = "RowHeight";
|
|
3463
2750
|
})(exports.BottomPositionInterval || (exports.BottomPositionInterval = {}));
|
|
2751
|
+
exports.ExecOn = void 0;
|
|
3464
2752
|
(function (ExecOn) {
|
|
3465
2753
|
ExecOn[ExecOn["None"] = 0] = "None";
|
|
3466
2754
|
ExecOn[ExecOn["Optimized"] = 1] = "Optimized";
|
|
3467
2755
|
ExecOn[ExecOn["Client"] = 2] = "Client";
|
|
3468
2756
|
ExecOn[ExecOn["Server"] = 3] = "Server";
|
|
3469
2757
|
})(exports.ExecOn || (exports.ExecOn = {}));
|
|
2758
|
+
exports.Storage = void 0;
|
|
3470
2759
|
(function (Storage) {
|
|
3471
2760
|
Storage[Storage["AlphaString"] = 1] = "AlphaString";
|
|
3472
2761
|
Storage[Storage["AlphaLstring"] = 2] = "AlphaLstring";
|
|
@@ -3503,6 +2792,7 @@
|
|
|
3503
2792
|
Storage[Storage["AnsiBlob"] = 33] = "AnsiBlob";
|
|
3504
2793
|
Storage[Storage["UnicodeBlob"] = 34] = "UnicodeBlob";
|
|
3505
2794
|
})(exports.Storage || (exports.Storage = {}));
|
|
2795
|
+
exports.StorageAttributeType = void 0;
|
|
3506
2796
|
(function (StorageAttributeType) {
|
|
3507
2797
|
StorageAttributeType["Alpha"] = "A";
|
|
3508
2798
|
StorageAttributeType["Numeric"] = "N";
|
|
@@ -3519,6 +2809,7 @@
|
|
|
3519
2809
|
StorageAttributeType["BlobJava"] = "J";
|
|
3520
2810
|
StorageAttributeType["None"] = " ";
|
|
3521
2811
|
})(exports.StorageAttributeType || (exports.StorageAttributeType = {}));
|
|
2812
|
+
exports.BrkLevel = void 0;
|
|
3522
2813
|
(function (BrkLevel) {
|
|
3523
2814
|
BrkLevel["Task"] = "T";
|
|
3524
2815
|
BrkLevel["Group"] = "G";
|
|
@@ -3535,21 +2826,25 @@
|
|
|
3535
2826
|
BrkLevel["Event"] = "E";
|
|
3536
2827
|
BrkLevel["OPStatOnChange"] = "O";
|
|
3537
2828
|
})(exports.BrkLevel || (exports.BrkLevel = {}));
|
|
2829
|
+
exports.MediaOrientation = void 0;
|
|
3538
2830
|
(function (MediaOrientation) {
|
|
3539
2831
|
MediaOrientation["Portrait"] = "P";
|
|
3540
2832
|
MediaOrientation["Landscape"] = "L";
|
|
3541
2833
|
})(exports.MediaOrientation || (exports.MediaOrientation = {}));
|
|
2834
|
+
exports.MediaFormat = void 0;
|
|
3542
2835
|
(function (MediaFormat) {
|
|
3543
2836
|
MediaFormat["Page"] = "P";
|
|
3544
2837
|
MediaFormat["Line"] = "L";
|
|
3545
2838
|
MediaFormat["None"] = "N";
|
|
3546
2839
|
})(exports.MediaFormat || (exports.MediaFormat = {}));
|
|
2840
|
+
exports.CharacterSet = void 0;
|
|
3547
2841
|
(function (CharacterSet) {
|
|
3548
2842
|
CharacterSet[CharacterSet["Ansi"] = 0] = "Ansi";
|
|
3549
2843
|
CharacterSet[CharacterSet["Oem"] = 1] = "Oem";
|
|
3550
2844
|
CharacterSet[CharacterSet["Unicode"] = 3] = "Unicode";
|
|
3551
2845
|
CharacterSet[CharacterSet["Utf8"] = 4] = "Utf8";
|
|
3552
2846
|
})(exports.CharacterSet || (exports.CharacterSet = {}));
|
|
2847
|
+
exports.MediaAccess = void 0;
|
|
3553
2848
|
(function (MediaAccess) {
|
|
3554
2849
|
MediaAccess["Read"] = "R";
|
|
3555
2850
|
MediaAccess["Write"] = "W";
|
|
@@ -3558,6 +2853,7 @@
|
|
|
3558
2853
|
MediaAccess["AppendFlush"] = "F";
|
|
3559
2854
|
MediaAccess["Create"] = "C";
|
|
3560
2855
|
})(exports.MediaAccess || (exports.MediaAccess = {}));
|
|
2856
|
+
exports.PaperSize = void 0;
|
|
3561
2857
|
(function (PaperSize) {
|
|
3562
2858
|
PaperSize["Default"] = "D";
|
|
3563
2859
|
PaperSize["Letter"] = "L";
|
|
@@ -3590,6 +2886,7 @@
|
|
|
3590
2886
|
PaperSize["Envelope10"] = "0";
|
|
3591
2887
|
PaperSize["Envelope11"] = "1";
|
|
3592
2888
|
})(exports.PaperSize || (exports.PaperSize = {}));
|
|
2889
|
+
exports.PaperSizePdfDisabled = void 0;
|
|
3593
2890
|
(function (PaperSizePdfDisabled) {
|
|
3594
2891
|
PaperSizePdfDisabled["Default"] = "D";
|
|
3595
2892
|
PaperSizePdfDisabled["Letter"] = "L";
|
|
@@ -3608,6 +2905,7 @@
|
|
|
3608
2905
|
PaperSizePdfDisabled["B4"] = "B";
|
|
3609
2906
|
PaperSizePdfDisabled["B5_v"] = "V";
|
|
3610
2907
|
})(exports.PaperSizePdfDisabled || (exports.PaperSizePdfDisabled = {}));
|
|
2908
|
+
exports.PaperSizePdfEnabled = void 0;
|
|
3611
2909
|
(function (PaperSizePdfEnabled) {
|
|
3612
2910
|
PaperSizePdfEnabled["Default"] = "D";
|
|
3613
2911
|
PaperSizePdfEnabled["UserDefined"] = "U";
|
|
@@ -3631,6 +2929,7 @@
|
|
|
3631
2929
|
PaperSizePdfEnabled["Envelope10"] = "0";
|
|
3632
2930
|
PaperSizePdfEnabled["Envelope11"] = "1";
|
|
3633
2931
|
})(exports.PaperSizePdfEnabled || (exports.PaperSizePdfEnabled = {}));
|
|
2932
|
+
exports.Area = void 0;
|
|
3634
2933
|
(function (Area) {
|
|
3635
2934
|
Area["Detail"] = "N";
|
|
3636
2935
|
Area["Header"] = "H";
|
|
@@ -3638,10 +2937,12 @@
|
|
|
3638
2937
|
Area["PageHeader"] = "P";
|
|
3639
2938
|
Area["PageFooter"] = "G";
|
|
3640
2939
|
})(exports.Area || (exports.Area = {}));
|
|
2940
|
+
exports.DisplayTextType = void 0;
|
|
3641
2941
|
(function (DisplayTextType) {
|
|
3642
2942
|
DisplayTextType[DisplayTextType["Edit"] = 0] = "Edit";
|
|
3643
2943
|
DisplayTextType[DisplayTextType["Query"] = 1] = "Query";
|
|
3644
2944
|
})(exports.DisplayTextType || (exports.DisplayTextType = {}));
|
|
2945
|
+
exports.LogicHeaderType = void 0;
|
|
3645
2946
|
(function (LogicHeaderType) {
|
|
3646
2947
|
LogicHeaderType["None"] = " ";
|
|
3647
2948
|
LogicHeaderType["Remark"] = "K";
|
|
@@ -3658,6 +2959,7 @@
|
|
|
3658
2959
|
LogicHeaderType["SubForm"] = "U";
|
|
3659
2960
|
LogicHeaderType["Event"] = "E";
|
|
3660
2961
|
})(exports.LogicHeaderType || (exports.LogicHeaderType = {}));
|
|
2962
|
+
exports.LogicOperationType = void 0;
|
|
3661
2963
|
(function (LogicOperationType) {
|
|
3662
2964
|
LogicOperationType["None"] = "x";
|
|
3663
2965
|
LogicOperationType["Remark"] = " ";
|
|
@@ -3671,6 +2973,7 @@
|
|
|
3671
2973
|
LogicOperationType["Form"] = "F";
|
|
3672
2974
|
LogicOperationType["Variable"] = "V";
|
|
3673
2975
|
})(exports.LogicOperationType || (exports.LogicOperationType = {}));
|
|
2976
|
+
exports.Opr = void 0;
|
|
3674
2977
|
(function (Opr) {
|
|
3675
2978
|
Opr[Opr["Remark"] = 0] = "Remark";
|
|
3676
2979
|
Opr[Opr["SelFld"] = 1] = "SelFld";
|
|
@@ -3688,6 +2991,7 @@
|
|
|
3688
2991
|
Opr[Opr["UserExit"] = 13] = "UserExit";
|
|
3689
2992
|
Opr[Opr["RaiseEvent"] = 14] = "RaiseEvent";
|
|
3690
2993
|
})(exports.Opr || (exports.Opr = {}));
|
|
2994
|
+
exports.DataViewHeaderType = void 0;
|
|
3691
2995
|
(function (DataViewHeaderType) {
|
|
3692
2996
|
DataViewHeaderType["None"] = " ";
|
|
3693
2997
|
DataViewHeaderType["Remark"] = "R";
|
|
@@ -3701,6 +3005,7 @@
|
|
|
3701
3005
|
DataViewHeaderType["LinkOJoin"] = "O";
|
|
3702
3006
|
DataViewHeaderType["EndLink"] = "E";
|
|
3703
3007
|
})(exports.DataViewHeaderType || (exports.DataViewHeaderType = {}));
|
|
3008
|
+
exports.DataViewOperationType = void 0;
|
|
3704
3009
|
(function (DataViewOperationType) {
|
|
3705
3010
|
DataViewOperationType["Remark"] = " ";
|
|
3706
3011
|
DataViewOperationType["Column"] = "C";
|
|
@@ -3708,20 +3013,24 @@
|
|
|
3708
3013
|
DataViewOperationType["Parameter"] = "P";
|
|
3709
3014
|
DataViewOperationType["LinkedColumn"] = "L";
|
|
3710
3015
|
})(exports.DataViewOperationType || (exports.DataViewOperationType = {}));
|
|
3016
|
+
exports.LoadedValues = void 0;
|
|
3711
3017
|
(function (LoadedValues) {
|
|
3712
3018
|
LoadedValues[LoadedValues["None"] = 0] = "None";
|
|
3713
3019
|
LoadedValues[LoadedValues["HeaderOnly"] = 1] = "HeaderOnly";
|
|
3714
3020
|
LoadedValues[LoadedValues["Failed"] = 2] = "Failed";
|
|
3715
3021
|
LoadedValues[LoadedValues["Full"] = 3] = "Full";
|
|
3716
3022
|
})(exports.LoadedValues || (exports.LoadedValues = {}));
|
|
3023
|
+
exports.YesNoValues = void 0;
|
|
3717
3024
|
(function (YesNoValues) {
|
|
3718
3025
|
YesNoValues[YesNoValues["Yes"] = 1] = "Yes";
|
|
3719
3026
|
YesNoValues[YesNoValues["No"] = 0] = "No";
|
|
3720
3027
|
})(exports.YesNoValues || (exports.YesNoValues = {}));
|
|
3028
|
+
exports.TrueFalseValues = void 0;
|
|
3721
3029
|
(function (TrueFalseValues) {
|
|
3722
3030
|
TrueFalseValues[TrueFalseValues["True"] = 1] = "True";
|
|
3723
3031
|
TrueFalseValues[TrueFalseValues["False"] = 0] = "False";
|
|
3724
3032
|
})(exports.TrueFalseValues || (exports.TrueFalseValues = {}));
|
|
3033
|
+
exports.HelpType = void 0;
|
|
3725
3034
|
(function (HelpType) {
|
|
3726
3035
|
HelpType["Internal"] = "I";
|
|
3727
3036
|
HelpType["Prompt"] = "P";
|
|
@@ -3729,10 +3038,12 @@
|
|
|
3729
3038
|
HelpType["Tooltip"] = "T";
|
|
3730
3039
|
HelpType["URL"] = "U";
|
|
3731
3040
|
})(exports.HelpType || (exports.HelpType = {}));
|
|
3041
|
+
exports.NullArithmetic = void 0;
|
|
3732
3042
|
(function (NullArithmetic) {
|
|
3733
3043
|
NullArithmetic[NullArithmetic["Nullify"] = 0] = "Nullify";
|
|
3734
3044
|
NullArithmetic[NullArithmetic["UseDefault"] = 1] = "UseDefault";
|
|
3735
3045
|
})(exports.NullArithmetic || (exports.NullArithmetic = {}));
|
|
3046
|
+
exports.ModelClass = void 0;
|
|
3736
3047
|
(function (ModelClass) {
|
|
3737
3048
|
ModelClass["Help"] = "A";
|
|
3738
3049
|
ModelClass["Field"] = "B";
|
|
@@ -3746,10 +3057,12 @@
|
|
|
3746
3057
|
ModelClass["RCFrame"] = "J";
|
|
3747
3058
|
ModelClass["GuiFrame"] = "K";
|
|
3748
3059
|
})(exports.ModelClass || (exports.ModelClass = {}));
|
|
3060
|
+
exports.CompTypes = void 0;
|
|
3749
3061
|
(function (CompTypes) {
|
|
3750
3062
|
CompTypes["Magicxpa"] = "U";
|
|
3751
3063
|
CompTypes["DotNet"] = "D";
|
|
3752
3064
|
})(exports.CompTypes || (exports.CompTypes = {}));
|
|
3065
|
+
exports.TaskFlow = void 0;
|
|
3753
3066
|
(function (TaskFlow) {
|
|
3754
3067
|
TaskFlow["Undefined"] = "U";
|
|
3755
3068
|
TaskFlow["Online"] = "O";
|
|
@@ -3757,11 +3070,13 @@
|
|
|
3757
3070
|
TaskFlow["Browser"] = "R";
|
|
3758
3071
|
TaskFlow["RichClient"] = "C";
|
|
3759
3072
|
})(exports.TaskFlow || (exports.TaskFlow = {}));
|
|
3073
|
+
exports.RemarkType = void 0;
|
|
3760
3074
|
(function (RemarkType) {
|
|
3761
3075
|
RemarkType[RemarkType["RegularOperation"] = 0] = "RegularOperation";
|
|
3762
3076
|
RemarkType[RemarkType["Dataviewheader"] = 1] = "Dataviewheader";
|
|
3763
3077
|
RemarkType[RemarkType["TaskLogic"] = 2] = "TaskLogic";
|
|
3764
3078
|
})(exports.RemarkType || (exports.RemarkType = {}));
|
|
3079
|
+
exports.VeeMode = void 0;
|
|
3765
3080
|
(function (VeeMode) {
|
|
3766
3081
|
VeeMode["None"] = " ";
|
|
3767
3082
|
VeeMode["Parameter"] = "P";
|
|
@@ -3770,25 +3085,30 @@
|
|
|
3770
3085
|
VeeMode["Column"] = "C";
|
|
3771
3086
|
VeeMode["LinkCol"] = "L";
|
|
3772
3087
|
})(exports.VeeMode || (exports.VeeMode = {}));
|
|
3088
|
+
exports.VeeDiffUpdate = void 0;
|
|
3773
3089
|
(function (VeeDiffUpdate) {
|
|
3774
3090
|
VeeDiffUpdate["AsTable"] = "T";
|
|
3775
3091
|
VeeDiffUpdate["Absolute"] = "N";
|
|
3776
3092
|
VeeDiffUpdate["Differential"] = "Y";
|
|
3777
3093
|
VeeDiffUpdate[VeeDiffUpdate["None"] = 0] = "None";
|
|
3778
3094
|
})(exports.VeeDiffUpdate || (exports.VeeDiffUpdate = {}));
|
|
3095
|
+
exports.VeePartOfDataview = void 0;
|
|
3779
3096
|
(function (VeePartOfDataview) {
|
|
3780
3097
|
VeePartOfDataview["Undefined"] = "U";
|
|
3781
3098
|
})(exports.VeePartOfDataview || (exports.VeePartOfDataview = {}));
|
|
3099
|
+
exports.DataviewType = void 0;
|
|
3782
3100
|
(function (DataviewType) {
|
|
3783
3101
|
DataviewType["MainTable"] = "M";
|
|
3784
3102
|
DataviewType["DSQL"] = "Q";
|
|
3785
3103
|
DataviewType["Declaration"] = "D";
|
|
3786
3104
|
})(exports.DataviewType || (exports.DataviewType = {}));
|
|
3105
|
+
exports.TabbingCycleType = void 0;
|
|
3787
3106
|
(function (TabbingCycleType) {
|
|
3788
3107
|
TabbingCycleType["RemainInCurrentRecord"] = "R";
|
|
3789
3108
|
TabbingCycleType["MoveToNextRecord"] = "N";
|
|
3790
3109
|
TabbingCycleType["MoveToParentTask"] = "P";
|
|
3791
3110
|
})(exports.TabbingCycleType || (exports.TabbingCycleType = {}));
|
|
3111
|
+
exports.LockingStrategy = void 0;
|
|
3792
3112
|
(function (LockingStrategy) {
|
|
3793
3113
|
LockingStrategy["Immediate"] = "I";
|
|
3794
3114
|
LockingStrategy["OnModify"] = "O";
|
|
@@ -3796,6 +3116,7 @@
|
|
|
3796
3116
|
LockingStrategy["BeforeUpdate"] = "B";
|
|
3797
3117
|
LockingStrategy["Minimum"] = "M";
|
|
3798
3118
|
})(exports.LockingStrategy || (exports.LockingStrategy = {}));
|
|
3119
|
+
exports.TransBegin = void 0;
|
|
3799
3120
|
(function (TransBegin) {
|
|
3800
3121
|
TransBegin["Update"] = "U";
|
|
3801
3122
|
TransBegin["Prefix"] = "P";
|
|
@@ -3805,16 +3126,19 @@
|
|
|
3805
3126
|
TransBegin["BeforeTask"] = "T";
|
|
3806
3127
|
TransBegin["Group"] = "G";
|
|
3807
3128
|
})(exports.TransBegin || (exports.TransBegin = {}));
|
|
3129
|
+
exports.ErrStrategy = void 0;
|
|
3808
3130
|
(function (ErrStrategy) {
|
|
3809
3131
|
ErrStrategy["Recover"] = "R";
|
|
3810
3132
|
ErrStrategy["Abort"] = "A";
|
|
3811
3133
|
})(exports.ErrStrategy || (exports.ErrStrategy = {}));
|
|
3134
|
+
exports.CacheStrategy = void 0;
|
|
3812
3135
|
(function (CacheStrategy) {
|
|
3813
3136
|
CacheStrategy["Pos"] = "P";
|
|
3814
3137
|
CacheStrategy["PosData"] = "D";
|
|
3815
3138
|
CacheStrategy["None"] = "N";
|
|
3816
3139
|
CacheStrategy["AsTable"] = "T";
|
|
3817
3140
|
})(exports.CacheStrategy || (exports.CacheStrategy = {}));
|
|
3141
|
+
exports.ExeState = void 0;
|
|
3818
3142
|
(function (ExeState) {
|
|
3819
3143
|
ExeState["Prefix"] = "P";
|
|
3820
3144
|
ExeState["Suffix"] = "S";
|
|
@@ -3825,6 +3149,7 @@
|
|
|
3825
3149
|
ExeState["Verify"] = "V";
|
|
3826
3150
|
ExeState["Change"] = "C";
|
|
3827
3151
|
})(exports.ExeState || (exports.ExeState = {}));
|
|
3152
|
+
exports.TransMode = void 0;
|
|
3828
3153
|
(function (TransMode) {
|
|
3829
3154
|
TransMode["Deferred"] = "D";
|
|
3830
3155
|
TransMode["NestedDeffered"] = "N";
|
|
@@ -3832,11 +3157,13 @@
|
|
|
3832
3157
|
TransMode["WithinActiveTrans"] = "W";
|
|
3833
3158
|
TransMode["None"] = "O";
|
|
3834
3159
|
})(exports.TransMode || (exports.TransMode = {}));
|
|
3160
|
+
exports.PositionUsage = void 0;
|
|
3835
3161
|
(function (PositionUsage) {
|
|
3836
3162
|
PositionUsage["RangeOn"] = "O";
|
|
3837
3163
|
PositionUsage["RangeFrom"] = "F";
|
|
3838
3164
|
PositionUsage["Locate"] = "L";
|
|
3839
3165
|
})(exports.PositionUsage || (exports.PositionUsage = {}));
|
|
3166
|
+
exports.LnkMode = void 0;
|
|
3840
3167
|
(function (LnkMode) {
|
|
3841
3168
|
LnkMode["Query"] = "R";
|
|
3842
3169
|
LnkMode["Write"] = "W";
|
|
@@ -3844,6 +3171,7 @@
|
|
|
3844
3171
|
LnkMode["IJoin"] = "J";
|
|
3845
3172
|
LnkMode["OJoin"] = "O";
|
|
3846
3173
|
})(exports.LnkMode || (exports.LnkMode = {}));
|
|
3174
|
+
exports.InitialMode = void 0;
|
|
3847
3175
|
(function (InitialMode) {
|
|
3848
3176
|
InitialMode["Modify"] = "M";
|
|
3849
3177
|
InitialMode["Create"] = "C";
|
|
@@ -3858,24 +3186,29 @@
|
|
|
3858
3186
|
InitialMode["Options"] = "N";
|
|
3859
3187
|
InitialMode["ByExp"] = "B";
|
|
3860
3188
|
})(exports.InitialMode || (exports.InitialMode = {}));
|
|
3189
|
+
exports.KeyMode = void 0;
|
|
3861
3190
|
(function (KeyMode) {
|
|
3862
3191
|
KeyMode["Normal"] = "N";
|
|
3863
3192
|
KeyMode["Insert"] = "I";
|
|
3864
3193
|
KeyMode["Append"] = "A";
|
|
3865
3194
|
})(exports.KeyMode || (exports.KeyMode = {}));
|
|
3195
|
+
exports.BoxDir = void 0;
|
|
3866
3196
|
(function (BoxDir) {
|
|
3867
3197
|
BoxDir["Vertical"] = "V";
|
|
3868
3198
|
BoxDir["Horizontal"] = "H";
|
|
3869
3199
|
})(exports.BoxDir || (exports.BoxDir = {}));
|
|
3200
|
+
exports.EndMode = void 0;
|
|
3870
3201
|
(function (EndMode) {
|
|
3871
3202
|
EndMode["Before"] = "B";
|
|
3872
3203
|
EndMode["After"] = "A";
|
|
3873
3204
|
EndMode["Immediate"] = "I";
|
|
3874
3205
|
})(exports.EndMode || (exports.EndMode = {}));
|
|
3206
|
+
exports.UniqueTskSort = void 0;
|
|
3875
3207
|
(function (UniqueTskSort) {
|
|
3876
3208
|
UniqueTskSort["AccordingToIndex"] = "A";
|
|
3877
3209
|
UniqueTskSort["Unique"] = "U";
|
|
3878
3210
|
})(exports.UniqueTskSort || (exports.UniqueTskSort = {}));
|
|
3211
|
+
exports.BrkType = void 0;
|
|
3879
3212
|
(function (BrkType) {
|
|
3880
3213
|
BrkType["Prefix"] = "P";
|
|
3881
3214
|
BrkType["Suffix"] = "S";
|
|
@@ -3885,6 +3218,7 @@
|
|
|
3885
3218
|
BrkType["Verify"] = "V";
|
|
3886
3219
|
BrkType["ChoiceChange"] = "C";
|
|
3887
3220
|
})(exports.BrkType || (exports.BrkType = {}));
|
|
3221
|
+
exports.ErrorClassific = void 0;
|
|
3888
3222
|
(function (ErrorClassific) {
|
|
3889
3223
|
ErrorClassific[ErrorClassific["Any"] = 0] = "Any";
|
|
3890
3224
|
ErrorClassific[ErrorClassific["RecLocked"] = 1] = "RecLocked";
|
|
@@ -3955,6 +3289,7 @@
|
|
|
3955
3289
|
ErrorClassific[ErrorClassific["LoginPwd"] = 66] = "LoginPwd";
|
|
3956
3290
|
ErrorClassific[ErrorClassific["None"] = 67] = "None";
|
|
3957
3291
|
})(exports.ErrorClassific || (exports.ErrorClassific = {}));
|
|
3292
|
+
exports.ComponentItemType = void 0;
|
|
3958
3293
|
(function (ComponentItemType) {
|
|
3959
3294
|
ComponentItemType[ComponentItemType["Models"] = 0] = "Models";
|
|
3960
3295
|
ComponentItemType[ComponentItemType["DataSources"] = 1] = "DataSources";
|
|
@@ -3964,32 +3299,38 @@
|
|
|
3964
3299
|
ComponentItemType[ComponentItemType["Events"] = 5] = "Events";
|
|
3965
3300
|
ComponentItemType[ComponentItemType["Functions"] = 6] = "Functions";
|
|
3966
3301
|
})(exports.ComponentItemType || (exports.ComponentItemType = {}));
|
|
3302
|
+
exports.FieldComAlloc = void 0;
|
|
3967
3303
|
(function (FieldComAlloc) {
|
|
3968
3304
|
FieldComAlloc[FieldComAlloc["Auto"] = 1] = "Auto";
|
|
3969
3305
|
FieldComAlloc[FieldComAlloc["None"] = 2] = "None";
|
|
3970
3306
|
})(exports.FieldComAlloc || (exports.FieldComAlloc = {}));
|
|
3307
|
+
exports.BlobContent = void 0;
|
|
3971
3308
|
(function (BlobContent) {
|
|
3972
3309
|
BlobContent["Unknown"] = "0";
|
|
3973
3310
|
BlobContent["Ansi"] = "1";
|
|
3974
3311
|
BlobContent["Unicode"] = "2";
|
|
3975
3312
|
BlobContent["Binary"] = "3";
|
|
3976
3313
|
})(exports.BlobContent || (exports.BlobContent = {}));
|
|
3314
|
+
exports.DBHRowIdentifier = void 0;
|
|
3977
3315
|
(function (DBHRowIdentifier) {
|
|
3978
3316
|
DBHRowIdentifier["RowId"] = "R";
|
|
3979
3317
|
DBHRowIdentifier["Default"] = "D";
|
|
3980
3318
|
DBHRowIdentifier["UniqueKey"] = "U";
|
|
3981
3319
|
})(exports.DBHRowIdentifier || (exports.DBHRowIdentifier = {}));
|
|
3320
|
+
exports.UseSQLCursor = void 0;
|
|
3982
3321
|
(function (UseSQLCursor) {
|
|
3983
3322
|
UseSQLCursor["Yes"] = "Y";
|
|
3984
3323
|
UseSQLCursor["No"] = "N";
|
|
3985
3324
|
UseSQLCursor["Default"] = "D";
|
|
3986
3325
|
})(exports.UseSQLCursor || (exports.UseSQLCursor = {}));
|
|
3326
|
+
exports.DBHCache = void 0;
|
|
3987
3327
|
(function (DBHCache) {
|
|
3988
3328
|
DBHCache["Pos"] = "P";
|
|
3989
3329
|
DBHCache["PosData"] = "D";
|
|
3990
3330
|
DBHCache["None"] = "N";
|
|
3991
3331
|
DBHCache["AsTable"] = "T";
|
|
3992
3332
|
})(exports.DBHCache || (exports.DBHCache = {}));
|
|
3333
|
+
exports.Resident = void 0;
|
|
3993
3334
|
(function (Resident) {
|
|
3994
3335
|
Resident["No"] = "N";
|
|
3995
3336
|
Resident["Immediate"] = "I";
|
|
@@ -3997,17 +3338,20 @@
|
|
|
3997
3338
|
Resident["ImmediateAndClient"] = "C";
|
|
3998
3339
|
Resident["ImmediateAndBrowser"] = "B";
|
|
3999
3340
|
})(exports.Resident || (exports.Resident = {}));
|
|
3341
|
+
exports.CheckExist = void 0;
|
|
4000
3342
|
(function (CheckExist) {
|
|
4001
3343
|
CheckExist["CheckYes"] = "Y";
|
|
4002
3344
|
CheckExist["CheckNo"] = "N";
|
|
4003
3345
|
CheckExist["CheckDB"] = "D";
|
|
4004
3346
|
})(exports.CheckExist || (exports.CheckExist = {}));
|
|
3347
|
+
exports.ValType = void 0;
|
|
4005
3348
|
(function (ValType) {
|
|
4006
3349
|
ValType[ValType["ZString"] = 1] = "ZString";
|
|
4007
3350
|
ValType[ValType["MagicNum"] = 2] = "MagicNum";
|
|
4008
3351
|
ValType[ValType["Boolean"] = 3] = "Boolean";
|
|
4009
3352
|
ValType[ValType["UString"] = 4] = "UString";
|
|
4010
3353
|
})(exports.ValType || (exports.ValType = {}));
|
|
3354
|
+
exports.FldStorage = void 0;
|
|
4011
3355
|
(function (FldStorage) {
|
|
4012
3356
|
FldStorage[FldStorage["AlphaString"] = 1] = "AlphaString";
|
|
4013
3357
|
FldStorage[FldStorage["AlphaLString"] = 2] = "AlphaLString";
|
|
@@ -4044,6 +3388,7 @@
|
|
|
4044
3388
|
FldStorage[FldStorage["AnsiBlob"] = 33] = "AnsiBlob";
|
|
4045
3389
|
FldStorage[FldStorage["UnicodeBlob"] = 34] = "UnicodeBlob";
|
|
4046
3390
|
})(exports.FldStorage || (exports.FldStorage = {}));
|
|
3391
|
+
exports.DriverDB = void 0;
|
|
4047
3392
|
(function (DriverDB) {
|
|
4048
3393
|
DriverDB[DriverDB["Btrv"] = 0] = "Btrv";
|
|
4049
3394
|
DriverDB[DriverDB["Prevesive2000"] = 1] = "Prevesive2000";
|
|
@@ -4066,6 +3411,7 @@
|
|
|
4066
3411
|
DriverDB[DriverDB["Memory"] = 21] = "Memory";
|
|
4067
3412
|
DriverDB[DriverDB["RMCOB"] = 22] = "RMCOB";
|
|
4068
3413
|
})(exports.DriverDB || (exports.DriverDB = {}));
|
|
3414
|
+
exports.ExportType = void 0;
|
|
4069
3415
|
(function (ExportType) {
|
|
4070
3416
|
ExportType["EntireProject"] = "A";
|
|
4071
3417
|
ExportType["Models"] = "E";
|
|
@@ -4077,6 +3423,7 @@
|
|
|
4077
3423
|
ExportType["CompositeResources"] = "O";
|
|
4078
3424
|
ExportType["ApplicationProperties"] = "C";
|
|
4079
3425
|
})(exports.ExportType || (exports.ExportType = {}));
|
|
3426
|
+
exports.TriggerType = void 0;
|
|
4080
3427
|
(function (TriggerType) {
|
|
4081
3428
|
TriggerType["System"] = "S";
|
|
4082
3429
|
TriggerType["Timer"] = "T";
|
|
@@ -4091,6 +3438,7 @@
|
|
|
4091
3438
|
TriggerType["PublicUserEvent"] = "P";
|
|
4092
3439
|
TriggerType["UserFunc"] = "F";
|
|
4093
3440
|
})(exports.TriggerType || (exports.TriggerType = {}));
|
|
3441
|
+
exports.ItemMasks = void 0;
|
|
4094
3442
|
(function (ItemMasks) {
|
|
4095
3443
|
ItemMasks[ItemMasks["Undefined"] = 0] = "Undefined";
|
|
4096
3444
|
ItemMasks[ItemMasks["ActiveInClient"] = 1] = "ActiveInClient";
|
|
@@ -4111,30 +3459,36 @@
|
|
|
4111
3459
|
ItemMasks[ItemMasks["ForceMixExecRichClient"] = 65536] = "ForceMixExecRichClient";
|
|
4112
3460
|
ItemMasks[ItemMasks["ForceUnknownExecRichClient"] = 131072] = "ForceUnknownExecRichClient";
|
|
4113
3461
|
})(exports.ItemMasks || (exports.ItemMasks = {}));
|
|
3462
|
+
exports.UpdateMode = void 0;
|
|
4114
3463
|
(function (UpdateMode) {
|
|
4115
3464
|
UpdateMode["Incremental"] = "I";
|
|
4116
3465
|
UpdateMode["Normal"] = "N";
|
|
4117
3466
|
})(exports.UpdateMode || (exports.UpdateMode = {}));
|
|
3467
|
+
exports.BlockTypes = void 0;
|
|
4118
3468
|
(function (BlockTypes) {
|
|
4119
3469
|
BlockTypes["If"] = "I";
|
|
4120
3470
|
BlockTypes["Else"] = "E";
|
|
4121
3471
|
BlockTypes["EndBlock"] = "N";
|
|
4122
3472
|
BlockTypes["Loop"] = "L";
|
|
4123
3473
|
})(exports.BlockTypes || (exports.BlockTypes = {}));
|
|
3474
|
+
exports.FormOperationType = void 0;
|
|
4124
3475
|
(function (FormOperationType) {
|
|
4125
3476
|
FormOperationType["Input"] = "I";
|
|
4126
3477
|
FormOperationType["Output"] = "O";
|
|
4127
3478
|
})(exports.FormOperationType || (exports.FormOperationType = {}));
|
|
3479
|
+
exports.FormPage = void 0;
|
|
4128
3480
|
(function (FormPage) {
|
|
4129
3481
|
FormPage["Skip"] = "S";
|
|
4130
3482
|
FormPage["Auto"] = "A";
|
|
4131
3483
|
FormPage["Top"] = "T";
|
|
4132
3484
|
})(exports.FormPage || (exports.FormPage = {}));
|
|
3485
|
+
exports.FormDelimiter = void 0;
|
|
4133
3486
|
(function (FormDelimiter) {
|
|
4134
3487
|
FormDelimiter["Column"] = "C";
|
|
4135
3488
|
FormDelimiter["Single"] = "S";
|
|
4136
3489
|
FormDelimiter["Double"] = "D";
|
|
4137
3490
|
})(exports.FormDelimiter || (exports.FormDelimiter = {}));
|
|
3491
|
+
exports.CallOperationMode = void 0;
|
|
4138
3492
|
(function (CallOperationMode) {
|
|
4139
3493
|
CallOperationMode["Program"] = "P";
|
|
4140
3494
|
CallOperationMode["SubTask"] = "T";
|
|
@@ -4148,10 +3502,12 @@
|
|
|
4148
3502
|
CallOperationMode["WebSLite"] = "L";
|
|
4149
3503
|
CallOperationMode[CallOperationMode["DotNet"] = 46] = "DotNet";
|
|
4150
3504
|
})(exports.CallOperationMode || (exports.CallOperationMode = {}));
|
|
3505
|
+
exports.RowType = void 0;
|
|
4151
3506
|
(function (RowType) {
|
|
4152
3507
|
RowType[RowType["Header"] = 1] = "Header";
|
|
4153
3508
|
RowType[RowType["Operation"] = 2] = "Operation";
|
|
4154
3509
|
})(exports.RowType || (exports.RowType = {}));
|
|
3510
|
+
exports.ForceExit = void 0;
|
|
4155
3511
|
(function (ForceExit) {
|
|
4156
3512
|
ForceExit["None"] = "N";
|
|
4157
3513
|
ForceExit["Control"] = "C";
|
|
@@ -4160,6 +3516,7 @@
|
|
|
4160
3516
|
ForceExit["Ignore"] = "I";
|
|
4161
3517
|
ForceExit["Editing"] = "E";
|
|
4162
3518
|
})(exports.ForceExit || (exports.ForceExit = {}));
|
|
3519
|
+
exports.MediaType = void 0;
|
|
4163
3520
|
(function (MediaType) {
|
|
4164
3521
|
MediaType["None"] = "N";
|
|
4165
3522
|
MediaType["GraphicalPrinter"] = "G";
|
|
@@ -4170,14 +3527,17 @@
|
|
|
4170
3527
|
MediaType["XMLDirect"] = "D";
|
|
4171
3528
|
MediaType["Variable"] = "V";
|
|
4172
3529
|
})(exports.MediaType || (exports.MediaType = {}));
|
|
3530
|
+
exports.OSType = void 0;
|
|
4173
3531
|
(function (OSType) {
|
|
4174
3532
|
OSType["Android"] = "A";
|
|
4175
3533
|
OSType["IOS"] = "I";
|
|
4176
3534
|
})(exports.OSType || (exports.OSType = {}));
|
|
3535
|
+
exports.APGMode = void 0;
|
|
4177
3536
|
(function (APGMode) {
|
|
4178
3537
|
APGMode["Execute"] = "E";
|
|
4179
3538
|
APGMode["Generate"] = "G";
|
|
4180
3539
|
})(exports.APGMode || (exports.APGMode = {}));
|
|
3540
|
+
exports.APGOption = void 0;
|
|
4181
3541
|
(function (APGOption) {
|
|
4182
3542
|
APGOption["Browse"] = "B";
|
|
4183
3543
|
APGOption["Export"] = "E";
|
|
@@ -4186,43 +3546,52 @@
|
|
|
4186
3546
|
APGOption["Browser"] = "R";
|
|
4187
3547
|
APGOption["RichClient"] = "H";
|
|
4188
3548
|
})(exports.APGOption || (exports.APGOption = {}));
|
|
3549
|
+
exports.APGDisplayMode = void 0;
|
|
4189
3550
|
(function (APGDisplayMode) {
|
|
4190
3551
|
APGDisplayMode["Line"] = "L";
|
|
4191
3552
|
APGDisplayMode["Screen"] = "S";
|
|
4192
3553
|
APGDisplayMode["None"] = "N";
|
|
4193
3554
|
})(exports.APGDisplayMode || (exports.APGDisplayMode = {}));
|
|
3555
|
+
exports.APGFormSize = void 0;
|
|
4194
3556
|
(function (APGFormSize) {
|
|
4195
3557
|
APGFormSize["AsModel"] = "M";
|
|
4196
3558
|
APGFormSize["AsContent"] = "C";
|
|
4197
3559
|
APGFormSize["AsContentWithinMDI"] = "D";
|
|
4198
3560
|
})(exports.APGFormSize || (exports.APGFormSize = {}));
|
|
3561
|
+
exports.APGType = void 0;
|
|
4199
3562
|
(function (APGType) {
|
|
4200
3563
|
APGType["Single"] = "S";
|
|
4201
3564
|
APGType["Multiple"] = "M";
|
|
4202
3565
|
APGType["Program"] = "P";
|
|
4203
3566
|
})(exports.APGType || (exports.APGType = {}));
|
|
3567
|
+
exports.APGInvokedFrom = void 0;
|
|
4204
3568
|
(function (APGInvokedFrom) {
|
|
4205
3569
|
APGInvokedFrom[APGInvokedFrom["TablesRepository"] = 1] = "TablesRepository";
|
|
4206
3570
|
APGInvokedFrom[APGInvokedFrom["ProgramsRepository"] = 2] = "ProgramsRepository";
|
|
4207
3571
|
})(exports.APGInvokedFrom || (exports.APGInvokedFrom = {}));
|
|
3572
|
+
exports.MgModelType = void 0;
|
|
4208
3573
|
(function (MgModelType) {
|
|
4209
3574
|
MgModelType["Model"] = "M";
|
|
4210
3575
|
MgModelType["Var"] = "V";
|
|
4211
3576
|
})(exports.MgModelType || (exports.MgModelType = {}));
|
|
3577
|
+
exports.CallbackType = void 0;
|
|
4212
3578
|
(function (CallbackType) {
|
|
4213
3579
|
CallbackType[CallbackType["ProgressBar"] = 0] = "ProgressBar";
|
|
4214
3580
|
CallbackType[CallbackType["Import"] = 1] = "Import";
|
|
4215
3581
|
CallbackType[CallbackType["FormEditor"] = 2] = "FormEditor";
|
|
4216
3582
|
CallbackType[CallbackType["CollectionChanges"] = 3] = "CollectionChanges";
|
|
4217
3583
|
})(exports.CallbackType || (exports.CallbackType = {}));
|
|
3584
|
+
exports.Axis = void 0;
|
|
4218
3585
|
(function (Axis) {
|
|
4219
3586
|
Axis[Axis["X"] = 0] = "X";
|
|
4220
3587
|
Axis[Axis["Y"] = 1] = "Y";
|
|
4221
3588
|
})(exports.Axis || (exports.Axis = {}));
|
|
3589
|
+
exports.ModelAttrHelp = void 0;
|
|
4222
3590
|
(function (ModelAttrHelp) {
|
|
4223
3591
|
ModelAttrHelp["Internal"] = "A";
|
|
4224
3592
|
ModelAttrHelp["Windows"] = "B";
|
|
4225
3593
|
})(exports.ModelAttrHelp || (exports.ModelAttrHelp = {}));
|
|
3594
|
+
exports.ModelAttrField = void 0;
|
|
4226
3595
|
(function (ModelAttrField) {
|
|
4227
3596
|
ModelAttrField["Alpha"] = "A";
|
|
4228
3597
|
ModelAttrField["Numeric"] = "C";
|
|
@@ -4236,6 +3605,7 @@
|
|
|
4236
3605
|
ModelAttrField["Vector"] = "J";
|
|
4237
3606
|
ModelAttrField["DotNet"] = "K";
|
|
4238
3607
|
})(exports.ModelAttrField || (exports.ModelAttrField = {}));
|
|
3608
|
+
exports.ModelAttrGui0 = void 0;
|
|
4239
3609
|
(function (ModelAttrGui0) {
|
|
4240
3610
|
ModelAttrGui0["Form"] = "A";
|
|
4241
3611
|
ModelAttrGui0["Edit"] = "B";
|
|
@@ -4257,6 +3627,7 @@
|
|
|
4257
3627
|
ModelAttrGui0["Subform"] = "S";
|
|
4258
3628
|
ModelAttrGui0["Browser"] = "O";
|
|
4259
3629
|
})(exports.ModelAttrGui0 || (exports.ModelAttrGui0 = {}));
|
|
3630
|
+
exports.ModelAttrGui1 = void 0;
|
|
4260
3631
|
(function (ModelAttrGui1) {
|
|
4261
3632
|
ModelAttrGui1["Form"] = "A";
|
|
4262
3633
|
ModelAttrGui1["Edit"] = "B";
|
|
@@ -4267,12 +3638,14 @@
|
|
|
4267
3638
|
ModelAttrGui1["Image"] = "G";
|
|
4268
3639
|
ModelAttrGui1["Redit"] = "H";
|
|
4269
3640
|
})(exports.ModelAttrGui1 || (exports.ModelAttrGui1 = {}));
|
|
3641
|
+
exports.ModelAttrText = void 0;
|
|
4270
3642
|
(function (ModelAttrText) {
|
|
4271
3643
|
ModelAttrText["Form"] = "A";
|
|
4272
3644
|
ModelAttrText["Edit"] = "B";
|
|
4273
3645
|
ModelAttrText["Static"] = "C";
|
|
4274
3646
|
ModelAttrText["Line"] = "D";
|
|
4275
3647
|
})(exports.ModelAttrText || (exports.ModelAttrText = {}));
|
|
3648
|
+
exports.ModelAttrRichClient = void 0;
|
|
4276
3649
|
(function (ModelAttrRichClient) {
|
|
4277
3650
|
ModelAttrRichClient["Form"] = "A";
|
|
4278
3651
|
ModelAttrRichClient["Edit"] = "B";
|
|
@@ -4291,14 +3664,17 @@
|
|
|
4291
3664
|
ModelAttrRichClient["Browser"] = "O";
|
|
4292
3665
|
ModelAttrRichClient["Line"] = "Q";
|
|
4293
3666
|
})(exports.ModelAttrRichClient || (exports.ModelAttrRichClient = {}));
|
|
3667
|
+
exports.ModelAttrFramesetForm = void 0;
|
|
4294
3668
|
(function (ModelAttrFramesetForm) {
|
|
4295
3669
|
ModelAttrFramesetForm["Form"] = "A";
|
|
4296
3670
|
ModelAttrFramesetForm["Frame"] = "B";
|
|
4297
3671
|
})(exports.ModelAttrFramesetForm || (exports.ModelAttrFramesetForm = {}));
|
|
3672
|
+
exports.ModelAttRichClientFrameSet = void 0;
|
|
4298
3673
|
(function (ModelAttRichClientFrameSet) {
|
|
4299
3674
|
ModelAttRichClientFrameSet["Form"] = "A";
|
|
4300
3675
|
ModelAttRichClientFrameSet["Frame"] = "B";
|
|
4301
3676
|
})(exports.ModelAttRichClientFrameSet || (exports.ModelAttRichClientFrameSet = {}));
|
|
3677
|
+
exports.ModelAttrBrowser = void 0;
|
|
4302
3678
|
(function (ModelAttrBrowser) {
|
|
4303
3679
|
ModelAttrBrowser["Form"] = "A";
|
|
4304
3680
|
ModelAttrBrowser["Edit"] = "B";
|
|
@@ -4314,63 +3690,77 @@
|
|
|
4314
3690
|
ModelAttrBrowser["Iframe"] = "L";
|
|
4315
3691
|
ModelAttrBrowser["Opaque"] = "M";
|
|
4316
3692
|
})(exports.ModelAttrBrowser || (exports.ModelAttrBrowser = {}));
|
|
3693
|
+
exports.ModelAttGuiFrame = void 0;
|
|
4317
3694
|
(function (ModelAttGuiFrame) {
|
|
4318
3695
|
ModelAttGuiFrame["Form"] = "A";
|
|
4319
3696
|
ModelAttGuiFrame["Frame"] = "B";
|
|
4320
3697
|
})(exports.ModelAttGuiFrame || (exports.ModelAttGuiFrame = {}));
|
|
3698
|
+
exports.ModelAttMerge = void 0;
|
|
4321
3699
|
(function (ModelAttMerge) {
|
|
4322
3700
|
ModelAttMerge["Form"] = "A";
|
|
4323
3701
|
})(exports.ModelAttMerge || (exports.ModelAttMerge = {}));
|
|
3702
|
+
exports.DbhKeyMode = void 0;
|
|
4324
3703
|
(function (DbhKeyMode) {
|
|
4325
3704
|
DbhKeyMode["Unique"] = "S";
|
|
4326
3705
|
DbhKeyMode["NonUnique"] = "N";
|
|
4327
3706
|
})(exports.DbhKeyMode || (exports.DbhKeyMode = {}));
|
|
3707
|
+
exports.DbhKeyDirection = void 0;
|
|
4328
3708
|
(function (DbhKeyDirection) {
|
|
4329
3709
|
DbhKeyDirection["OneWay"] = "A";
|
|
4330
3710
|
DbhKeyDirection["TwoWay"] = "B";
|
|
4331
3711
|
})(exports.DbhKeyDirection || (exports.DbhKeyDirection = {}));
|
|
3712
|
+
exports.DbhKeyRangeMode = void 0;
|
|
4332
3713
|
(function (DbhKeyRangeMode) {
|
|
4333
3714
|
DbhKeyRangeMode["Quick"] = "Q";
|
|
4334
3715
|
DbhKeyRangeMode["Full"] = "F";
|
|
4335
3716
|
})(exports.DbhKeyRangeMode || (exports.DbhKeyRangeMode = {}));
|
|
3717
|
+
exports.DbhKeyIndexType = void 0;
|
|
4336
3718
|
(function (DbhKeyIndexType) {
|
|
4337
3719
|
DbhKeyIndexType["Real"] = "R";
|
|
4338
3720
|
DbhKeyIndexType["Virtual"] = "V";
|
|
4339
3721
|
})(exports.DbhKeyIndexType || (exports.DbhKeyIndexType = {}));
|
|
3722
|
+
exports.DbhSegmentDirection = void 0;
|
|
4340
3723
|
(function (DbhSegmentDirection) {
|
|
4341
3724
|
DbhSegmentDirection["Ascending"] = "A";
|
|
4342
3725
|
DbhSegmentDirection["Descending"] = "D";
|
|
4343
3726
|
})(exports.DbhSegmentDirection || (exports.DbhSegmentDirection = {}));
|
|
3727
|
+
exports.ChoiceControlStyle = void 0;
|
|
4344
3728
|
(function (ChoiceControlStyle) {
|
|
4345
3729
|
ChoiceControlStyle[ChoiceControlStyle["ListBox"] = 1] = "ListBox";
|
|
4346
3730
|
ChoiceControlStyle[ChoiceControlStyle["ComboBox"] = 2] = "ComboBox";
|
|
4347
3731
|
ChoiceControlStyle[ChoiceControlStyle["Tab"] = 3] = "Tab";
|
|
4348
3732
|
ChoiceControlStyle[ChoiceControlStyle["RadioButton"] = 4] = "RadioButton";
|
|
4349
3733
|
})(exports.ChoiceControlStyle || (exports.ChoiceControlStyle = {}));
|
|
3734
|
+
exports.Recursion = void 0;
|
|
4350
3735
|
(function (Recursion) {
|
|
4351
3736
|
Recursion[Recursion["None"] = 0] = "None";
|
|
4352
3737
|
Recursion[Recursion["First"] = 1] = "First";
|
|
4353
3738
|
Recursion[Recursion["Second"] = 2] = "Second";
|
|
4354
3739
|
Recursion[Recursion["FirstOpen"] = 3] = "FirstOpen";
|
|
4355
3740
|
})(exports.Recursion || (exports.Recursion = {}));
|
|
3741
|
+
exports.ViewSelectType = void 0;
|
|
4356
3742
|
(function (ViewSelectType) {
|
|
4357
3743
|
ViewSelectType[ViewSelectType["IncludeInView"] = 0] = "IncludeInView";
|
|
4358
3744
|
ViewSelectType[ViewSelectType["ExcludeFromView"] = 1] = "ExcludeFromView";
|
|
4359
3745
|
})(exports.ViewSelectType || (exports.ViewSelectType = {}));
|
|
3746
|
+
exports.RangeMode = void 0;
|
|
4360
3747
|
(function (RangeMode) {
|
|
4361
3748
|
RangeMode["From"] = "F";
|
|
4362
3749
|
RangeMode["To"] = "T";
|
|
4363
3750
|
RangeMode["Equal"] = "E";
|
|
4364
3751
|
})(exports.RangeMode || (exports.RangeMode = {}));
|
|
3752
|
+
exports.TableType = void 0;
|
|
4365
3753
|
(function (TableType) {
|
|
4366
3754
|
TableType["Table"] = "T";
|
|
4367
3755
|
TableType["View"] = "V";
|
|
4368
3756
|
TableType["Undefined"] = "U";
|
|
4369
3757
|
})(exports.TableType || (exports.TableType = {}));
|
|
3758
|
+
exports.DatabaseDataType = void 0;
|
|
4370
3759
|
(function (DatabaseDataType) {
|
|
4371
3760
|
DatabaseDataType["XmlDataSource"] = "X";
|
|
4372
3761
|
DatabaseDataType["DatabaseDataSource"] = "D";
|
|
4373
3762
|
})(exports.DatabaseDataType || (exports.DatabaseDataType = {}));
|
|
3763
|
+
exports.LogicHeaderAction = void 0;
|
|
4374
3764
|
(function (LogicHeaderAction) {
|
|
4375
3765
|
LogicHeaderAction[LogicHeaderAction["None"] = 0] = "None";
|
|
4376
3766
|
LogicHeaderAction[LogicHeaderAction["CreateVariableChangeParameters"] = 1] = "CreateVariableChangeParameters";
|
|
@@ -4378,6 +3768,7 @@
|
|
|
4378
3768
|
LogicHeaderAction[LogicHeaderAction["ReplaceVariableChangeParameters"] = 3] = "ReplaceVariableChangeParameters";
|
|
4379
3769
|
LogicHeaderAction[LogicHeaderAction["CreateEventParameters"] = 4] = "CreateEventParameters";
|
|
4380
3770
|
})(exports.LogicHeaderAction || (exports.LogicHeaderAction = {}));
|
|
3771
|
+
exports.DatabaseFilters = void 0;
|
|
4381
3772
|
(function (DatabaseFilters) {
|
|
4382
3773
|
DatabaseFilters["EnvironmentDatabaseAll"] = "A";
|
|
4383
3774
|
DatabaseFilters["EnvironmentDatabaseSql"] = "S";
|
|
@@ -4387,40 +3778,48 @@
|
|
|
4387
3778
|
DatabaseFilters["EnvironmentDatabaseOnly"] = "O";
|
|
4388
3779
|
DatabaseFilters["EnvironmentDatabaseCanLoadDefinitionAndXml"] = "G";
|
|
4389
3780
|
})(exports.DatabaseFilters || (exports.DatabaseFilters = {}));
|
|
3781
|
+
exports.FieldViewModelType = void 0;
|
|
4390
3782
|
(function (FieldViewModelType) {
|
|
4391
3783
|
FieldViewModelType[FieldViewModelType["DataSource"] = 0] = "DataSource";
|
|
4392
3784
|
FieldViewModelType[FieldViewModelType["DataView"] = 1] = "DataView";
|
|
4393
3785
|
FieldViewModelType[FieldViewModelType["Logic"] = 2] = "Logic";
|
|
4394
3786
|
})(exports.FieldViewModelType || (exports.FieldViewModelType = {}));
|
|
3787
|
+
exports.SourceContextType = void 0;
|
|
4395
3788
|
(function (SourceContextType) {
|
|
4396
3789
|
SourceContextType["CurrentContext"] = "C";
|
|
4397
3790
|
SourceContextType["MainContext"] = "M";
|
|
4398
3791
|
})(exports.SourceContextType || (exports.SourceContextType = {}));
|
|
3792
|
+
exports.ViewRefreshMode = void 0;
|
|
4399
3793
|
(function (ViewRefreshMode) {
|
|
4400
3794
|
ViewRefreshMode[ViewRefreshMode["None"] = 0] = "None";
|
|
4401
3795
|
ViewRefreshMode[ViewRefreshMode["CurrentLocation"] = 1] = "CurrentLocation";
|
|
4402
3796
|
ViewRefreshMode[ViewRefreshMode["UseTaskLocate"] = 2] = "UseTaskLocate";
|
|
4403
3797
|
ViewRefreshMode[ViewRefreshMode["FirstRecord"] = 3] = "FirstRecord";
|
|
4404
3798
|
})(exports.ViewRefreshMode || (exports.ViewRefreshMode = {}));
|
|
3799
|
+
exports.LineManipulationType = void 0;
|
|
4405
3800
|
(function (LineManipulationType) {
|
|
4406
3801
|
LineManipulationType[LineManipulationType["None"] = 0] = "None";
|
|
4407
3802
|
LineManipulationType[LineManipulationType["RepeatEntries"] = 1] = "RepeatEntries";
|
|
4408
3803
|
LineManipulationType[LineManipulationType["MoveEntries"] = 2] = "MoveEntries";
|
|
4409
3804
|
LineManipulationType[LineManipulationType["OverwriteCurrent"] = 3] = "OverwriteCurrent";
|
|
4410
3805
|
})(exports.LineManipulationType || (exports.LineManipulationType = {}));
|
|
3806
|
+
exports.DataViewOutputType = void 0;
|
|
4411
3807
|
(function (DataViewOutputType) {
|
|
4412
3808
|
DataViewOutputType["Xml"] = "X";
|
|
4413
3809
|
DataViewOutputType["ClientFile"] = "C";
|
|
4414
3810
|
})(exports.DataViewOutputType || (exports.DataViewOutputType = {}));
|
|
3811
|
+
exports.UndoRedoAction = void 0;
|
|
4415
3812
|
(function (UndoRedoAction) {
|
|
4416
3813
|
UndoRedoAction[UndoRedoAction["Undo"] = 0] = "Undo";
|
|
4417
3814
|
UndoRedoAction[UndoRedoAction["Redo"] = 1] = "Redo";
|
|
4418
3815
|
})(exports.UndoRedoAction || (exports.UndoRedoAction = {}));
|
|
3816
|
+
exports.OrientationLock = void 0;
|
|
4419
3817
|
(function (OrientationLock) {
|
|
4420
3818
|
OrientationLock[OrientationLock["No"] = 1] = "No";
|
|
4421
3819
|
OrientationLock[OrientationLock["Portrait"] = 2] = "Portrait";
|
|
4422
3820
|
OrientationLock[OrientationLock["Landscape"] = 3] = "Landscape";
|
|
4423
3821
|
})(exports.OrientationLock || (exports.OrientationLock = {}));
|
|
3822
|
+
exports.EnterAnimation = void 0;
|
|
4424
3823
|
(function (EnterAnimation) {
|
|
4425
3824
|
EnterAnimation[EnterAnimation["Default"] = 1] = "Default";
|
|
4426
3825
|
EnterAnimation[EnterAnimation["Left"] = 2] = "Left";
|
|
@@ -4431,6 +3830,7 @@
|
|
|
4431
3830
|
EnterAnimation[EnterAnimation["Fade"] = 7] = "Fade";
|
|
4432
3831
|
EnterAnimation[EnterAnimation["None"] = 8] = "None";
|
|
4433
3832
|
})(exports.EnterAnimation || (exports.EnterAnimation = {}));
|
|
3833
|
+
exports.ExitAnimation = void 0;
|
|
4434
3834
|
(function (ExitAnimation) {
|
|
4435
3835
|
ExitAnimation[ExitAnimation["Default"] = 1] = "Default";
|
|
4436
3836
|
ExitAnimation[ExitAnimation["Left"] = 2] = "Left";
|
|
@@ -4441,6 +3841,7 @@
|
|
|
4441
3841
|
ExitAnimation[ExitAnimation["Fade"] = 7] = "Fade";
|
|
4442
3842
|
ExitAnimation[ExitAnimation["None"] = 8] = "None";
|
|
4443
3843
|
})(exports.ExitAnimation || (exports.ExitAnimation = {}));
|
|
3844
|
+
exports.KeyboardTypes = void 0;
|
|
4444
3845
|
(function (KeyboardTypes) {
|
|
4445
3846
|
KeyboardTypes[KeyboardTypes["Default"] = 1] = "Default";
|
|
4446
3847
|
KeyboardTypes[KeyboardTypes["Numeric"] = 2] = "Numeric";
|
|
@@ -4450,6 +3851,7 @@
|
|
|
4450
3851
|
KeyboardTypes[KeyboardTypes["NamePhonePad"] = 6] = "NamePhonePad";
|
|
4451
3852
|
KeyboardTypes[KeyboardTypes["Email"] = 7] = "Email";
|
|
4452
3853
|
})(exports.KeyboardTypes || (exports.KeyboardTypes = {}));
|
|
3854
|
+
exports.KeyboardReturnKeys = void 0;
|
|
4453
3855
|
(function (KeyboardReturnKeys) {
|
|
4454
3856
|
KeyboardReturnKeys[KeyboardReturnKeys["Default"] = 1] = "Default";
|
|
4455
3857
|
KeyboardReturnKeys[KeyboardReturnKeys["Go"] = 2] = "Go";
|
|
@@ -4458,11 +3860,13 @@
|
|
|
4458
3860
|
KeyboardReturnKeys[KeyboardReturnKeys["Search"] = 5] = "Search";
|
|
4459
3861
|
KeyboardReturnKeys[KeyboardReturnKeys["Done"] = 6] = "Done";
|
|
4460
3862
|
})(exports.KeyboardReturnKeys || (exports.KeyboardReturnKeys = {}));
|
|
3863
|
+
exports.OpenEditDialog = void 0;
|
|
4461
3864
|
(function (OpenEditDialog) {
|
|
4462
3865
|
OpenEditDialog[OpenEditDialog["Default"] = 1] = "Default";
|
|
4463
3866
|
OpenEditDialog[OpenEditDialog["Yes"] = 2] = "Yes";
|
|
4464
3867
|
OpenEditDialog[OpenEditDialog["No"] = 3] = "No";
|
|
4465
3868
|
})(exports.OpenEditDialog || (exports.OpenEditDialog = {}));
|
|
3869
|
+
exports.FrameLayoutTypes = void 0;
|
|
4466
3870
|
(function (FrameLayoutTypes) {
|
|
4467
3871
|
FrameLayoutTypes[FrameLayoutTypes["TwoFramesHorizontal"] = 7901] = "TwoFramesHorizontal";
|
|
4468
3872
|
FrameLayoutTypes[FrameLayoutTypes["TwoFramesVertical"] = 7902] = "TwoFramesVertical";
|
|
@@ -4471,16 +3875,19 @@
|
|
|
4471
3875
|
FrameLayoutTypes[FrameLayoutTypes["ThreeFramesTop"] = 7905] = "ThreeFramesTop";
|
|
4472
3876
|
FrameLayoutTypes[FrameLayoutTypes["ThreeFramesLeft"] = 7906] = "ThreeFramesLeft";
|
|
4473
3877
|
})(exports.FrameLayoutTypes || (exports.FrameLayoutTypes = {}));
|
|
3878
|
+
exports.LineDirection = void 0;
|
|
4474
3879
|
(function (LineDirection) {
|
|
4475
3880
|
LineDirection[LineDirection["Horizontal"] = 0] = "Horizontal";
|
|
4476
3881
|
LineDirection[LineDirection["Vertical"] = 1] = "Vertical";
|
|
4477
3882
|
LineDirection[LineDirection["NESW"] = 2] = "NESW";
|
|
4478
3883
|
LineDirection[LineDirection["NWSE"] = 3] = "NWSE";
|
|
4479
3884
|
})(exports.LineDirection || (exports.LineDirection = {}));
|
|
3885
|
+
exports.ScrollBarThumbType = void 0;
|
|
4480
3886
|
(function (ScrollBarThumbType) {
|
|
4481
3887
|
ScrollBarThumbType[ScrollBarThumbType["Incremental"] = 1] = "Incremental";
|
|
4482
3888
|
ScrollBarThumbType[ScrollBarThumbType["Absolute"] = 2] = "Absolute";
|
|
4483
3889
|
})(exports.ScrollBarThumbType || (exports.ScrollBarThumbType = {}));
|
|
3890
|
+
exports.StorageAttribute = void 0;
|
|
4484
3891
|
(function (StorageAttribute) {
|
|
4485
3892
|
StorageAttribute["NONE"] = " ";
|
|
4486
3893
|
StorageAttribute["ALPHA"] = "A";
|
|
@@ -4495,6 +3902,7 @@
|
|
|
4495
3902
|
StorageAttribute["SKIP"] = "0";
|
|
4496
3903
|
StorageAttribute["DOTNET"] = "E";
|
|
4497
3904
|
})(exports.StorageAttribute || (exports.StorageAttribute = {}));
|
|
3905
|
+
exports.NotifyCollectionChangedAction = void 0;
|
|
4498
3906
|
(function (NotifyCollectionChangedAction) {
|
|
4499
3907
|
NotifyCollectionChangedAction[NotifyCollectionChangedAction["Add"] = 0] = "Add";
|
|
4500
3908
|
NotifyCollectionChangedAction[NotifyCollectionChangedAction["Remove"] = 1] = "Remove";
|
|
@@ -4503,7 +3911,6 @@
|
|
|
4503
3911
|
NotifyCollectionChangedAction[NotifyCollectionChangedAction["Reset"] = 4] = "Reset";
|
|
4504
3912
|
})(exports.NotifyCollectionChangedAction || (exports.NotifyCollectionChangedAction = {}));
|
|
4505
3913
|
|
|
4506
|
-
/// <summary> this interface defines the internal events codes</summary>
|
|
4507
3914
|
var InternalInterface = /** @class */ (function () {
|
|
4508
3915
|
function InternalInterface() {
|
|
4509
3916
|
}
|
|
@@ -4778,7 +4185,6 @@
|
|
|
4778
4185
|
InternalInterface.MG_ACT_SERVER_TERMINATION = 420;
|
|
4779
4186
|
InternalInterface.MG_ACT_SUBFORM_REFRESH = 432;
|
|
4780
4187
|
InternalInterface.MG_ACT_CONTEXT_MENU = 439;
|
|
4781
|
-
InternalInterface.MG_ACT_DEFAULT_BUTTON = 459;
|
|
4782
4188
|
InternalInterface.MG_ACT_NEXT_RT_WINDOW = 462;
|
|
4783
4189
|
InternalInterface.MG_ACT_PREV_RT_WINDOW = 463;
|
|
4784
4190
|
InternalInterface.MG_ACT_EMPTY_DATAVIEW = 521;
|
|
@@ -4812,8 +4218,8 @@
|
|
|
4812
4218
|
InternalInterface.MG_ACT_CRELINE_ABOVE = 634;
|
|
4813
4219
|
InternalInterface.MG_ACT_CONTEXT_TERMINATION = 635;
|
|
4814
4220
|
InternalInterface.MG_ACT_CONTEXT_TIMEOUT_RESET = 636;
|
|
4815
|
-
InternalInterface.
|
|
4816
|
-
|
|
4221
|
+
InternalInterface.MG_ACT_CONTEXT_REMOVE = 647;
|
|
4222
|
+
InternalInterface.MG_ACT_TOT_CNT = 648;
|
|
4817
4223
|
InternalInterface.MG_ACT_TASK_PREFIX = 1001;
|
|
4818
4224
|
InternalInterface.MG_ACT_TASK_SUFFIX = 1002;
|
|
4819
4225
|
InternalInterface.MG_ACT_REC_PREFIX = 1003;
|
|
@@ -4830,7 +4236,6 @@
|
|
|
4830
4236
|
InternalInterface.MG_ACT_CYCLE_NEXT_DELETE_REC = 1018;
|
|
4831
4237
|
InternalInterface.MG_ACT_COMPUTE = 1020;
|
|
4832
4238
|
InternalInterface.MG_ACT_DUMMY = 1111;
|
|
4833
|
-
// INTERNAL EVENTS for WebClient
|
|
4834
4239
|
InternalInterface.MG_ACT_CTRL_FOCUS = 2001;
|
|
4835
4240
|
InternalInterface.MG_ACT_CTRL_MOUSEUP = 2002;
|
|
4836
4241
|
InternalInterface.MG_ACT_CTRL_KEYDOWN = 2003;
|
|
@@ -4840,13 +4245,12 @@
|
|
|
4840
4245
|
InternalInterface.MG_ACT_ROW_DATA_CURR_PAGE = 2007;
|
|
4841
4246
|
InternalInterface.MG_ACT_DV_TO_GUI = 2008;
|
|
4842
4247
|
InternalInterface.MG_ACT_DISABLE_EVENTS = 2010;
|
|
4843
|
-
// toggle insert is temp 539 , it should match the code in online once it will be created.
|
|
4844
4248
|
InternalInterface.MG_ACT_TOGGLE_INSERT = 2011;
|
|
4845
4249
|
InternalInterface.MG_ACT_INCREMENTAL_LOCATE = 2017;
|
|
4846
4250
|
InternalInterface.MG_ACT_MOVE_TO_FIRST_CTRL = 2018;
|
|
4847
4251
|
InternalInterface.MG_ACT_SET_EXTERNAL_VALUE = 2019;
|
|
4848
4252
|
InternalInterface.MG_ACT_CTRL_FOCUS_ON_NON_MAGIC_CONTROL = 2020;
|
|
4849
|
-
InternalInterface.MG_ACT_FETCH_RECORDS_AHEAD_FROM_SERVER = 2021;
|
|
4253
|
+
InternalInterface.MG_ACT_FETCH_RECORDS_AHEAD_FROM_SERVER = 2021;
|
|
4850
4254
|
|
|
4851
4255
|
var JSON_Utils = /** @class */ (function () {
|
|
4852
4256
|
function JSON_Utils() {
|
|
@@ -4862,7 +4266,7 @@
|
|
|
4862
4266
|
}
|
|
4863
4267
|
OSEnvironment.getStackTrace = function () {
|
|
4864
4268
|
var ex = new mscorelib.Exception();
|
|
4865
|
-
ex.errorLevel++;
|
|
4269
|
+
ex.errorLevel++;
|
|
4866
4270
|
return ex.StackTrace;
|
|
4867
4271
|
};
|
|
4868
4272
|
return OSEnvironment;
|
|
@@ -4870,9 +4274,6 @@
|
|
|
4870
4274
|
OSEnvironment.EolSeq = "\n";
|
|
4871
4275
|
OSEnvironment.TabSeq = "\t";
|
|
4872
4276
|
|
|
4873
|
-
/// <summary>
|
|
4874
|
-
/// The class is responsible to maintain the Request information while sending a request to server
|
|
4875
|
-
/// </summary>
|
|
4876
4277
|
var RequestInfo = /** @class */ (function () {
|
|
4877
4278
|
function RequestInfo() {
|
|
4878
4279
|
this.runtimeTaskTree = new mscorelib.List();
|
|
@@ -4899,21 +4300,15 @@
|
|
|
4899
4300
|
return RequestInfo;
|
|
4900
4301
|
}());
|
|
4901
4302
|
|
|
4303
|
+
exports.LogType = void 0;
|
|
4902
4304
|
(function (LogType) {
|
|
4903
4305
|
LogType[LogType["info"] = 1] = "info";
|
|
4904
4306
|
LogType[LogType["warning"] = 2] = "warning";
|
|
4905
4307
|
LogType[LogType["error"] = 3] = "error";
|
|
4906
4308
|
})(exports.LogType || (exports.LogType = {}));
|
|
4907
|
-
/// <summary>
|
|
4908
|
-
/// Logger class will take care of client side logging . It will check for various log levels and accordingly will write messages in log file.
|
|
4909
|
-
/// </summary>
|
|
4910
|
-
//@dynamic
|
|
4911
4309
|
var Logger = /** @class */ (function () {
|
|
4912
4310
|
function Logger() {
|
|
4913
|
-
this.LogLevel = 0;
|
|
4914
|
-
/// <summary>
|
|
4915
|
-
/// While writing the error messages in the file play the beep.
|
|
4916
|
-
/// </summary>
|
|
4311
|
+
this.LogLevel = 0;
|
|
4917
4312
|
this.ShouldBeep = false;
|
|
4918
4313
|
}
|
|
4919
4314
|
Object.defineProperty(Logger, "Instance", {
|
|
@@ -4929,26 +4324,10 @@
|
|
|
4929
4324
|
enumerable: false,
|
|
4930
4325
|
configurable: true
|
|
4931
4326
|
});
|
|
4932
|
-
/// <summary>
|
|
4933
|
-
/// Initialize logger
|
|
4934
|
-
/// </summary>
|
|
4935
|
-
/// <param name="logLevel"></param>
|
|
4936
|
-
/// <param name="internalLogSync"></param>
|
|
4937
4327
|
Logger.prototype.Initialize = function (logLevel, internalLogSync, shouldBeep) {
|
|
4938
4328
|
try {
|
|
4939
|
-
// let logSync: LogSyncMode = LogSyncMode.Session;
|
|
4940
4329
|
this.LogLevel = logLevel;
|
|
4941
4330
|
this.ShouldBeep = shouldBeep;
|
|
4942
|
-
// TODO: implement
|
|
4943
|
-
// String strLogSync = internalLogSync;
|
|
4944
|
-
// if (!string.IsNullOrEmpty(strLogSync))
|
|
4945
|
-
// {
|
|
4946
|
-
// if (strLogSync.StartsWith("M", StringComparison.CurrentCultureIgnoreCase))
|
|
4947
|
-
// logSync = LogSyncMode.Message;
|
|
4948
|
-
// else if (strLogSync.StartsWith("F", StringComparison.CurrentCultureIgnoreCase))
|
|
4949
|
-
// logSync = LogSyncMode.Flush;
|
|
4950
|
-
// }
|
|
4951
|
-
//
|
|
4952
4331
|
}
|
|
4953
4332
|
catch (e) {
|
|
4954
4333
|
this.WriteDevToLog("ClientManager.init(): " + e.Message);
|
|
@@ -4972,9 +4351,6 @@
|
|
|
4972
4351
|
Logger.prototype.ShouldLogExtendedServerRelatedMessages = function () {
|
|
4973
4352
|
return (Logger.Instance.ShouldLog(exports.Logger_LogLevels.ServerMessages) || Logger.Instance.ShouldLog(exports.Logger_LogLevels.Support) || Logger.Instance.ShouldLog(exports.Logger_LogLevels.Development)) && this.LogLevel !== exports.Logger_LogLevels.Basic;
|
|
4974
4353
|
};
|
|
4975
|
-
/// <summary></summary>
|
|
4976
|
-
/// <param name="msg"></param>
|
|
4977
|
-
/// <param name="openIfNecessary">open the log file if not opened yet</param>
|
|
4978
4354
|
Logger.prototype.WriteToLog = function (msg, openIfNecessary, logType) {
|
|
4979
4355
|
if (logType === void 0) { logType = exports.LogType.info; }
|
|
4980
4356
|
if (this.LogLevel > exports.Logger_LogLevels.None || openIfNecessary) {
|
|
@@ -4991,26 +4367,16 @@
|
|
|
4991
4367
|
}
|
|
4992
4368
|
}
|
|
4993
4369
|
};
|
|
4994
|
-
/// <summary>
|
|
4995
|
-
/// write a server access to the log
|
|
4996
|
-
/// </summary>
|
|
4997
|
-
/// <param name="msg">the message to write to the log</param>
|
|
4998
4370
|
Logger.prototype.WriteServerToLog = function (msg) {
|
|
4999
4371
|
if (this.ShouldLogServerRelatedMessages()) {
|
|
5000
4372
|
this.WriteToLog(mscorelib.NString.Format("Server, Thread={0}: ", mscorelib.Thread.CurrentThread.ManagedThreadId) + msg, false, exports.LogType.info);
|
|
5001
4373
|
}
|
|
5002
4374
|
};
|
|
5003
|
-
/// <summary>
|
|
5004
|
-
/// write a server access to the log, including the content
|
|
5005
|
-
/// </summary>
|
|
5006
|
-
/// <param name="msg">the message to write to the log</param>
|
|
5007
4375
|
Logger.prototype.WriteServerMessagesToLog = function (msg) {
|
|
5008
4376
|
if (this.ShouldLogExtendedServerRelatedMessages()) {
|
|
5009
4377
|
this.WriteToLog("Server#: " + msg, false, exports.LogType.info);
|
|
5010
4378
|
}
|
|
5011
4379
|
};
|
|
5012
|
-
/// <summary>Write a QC message to the log</summary>
|
|
5013
|
-
/// <param name="msg">the message to write to the log</param>
|
|
5014
4380
|
Logger.prototype.WriteSupportToLog = function (msg, skipLine) {
|
|
5015
4381
|
if (this.LogLevel >= exports.Logger_LogLevels.Support && this.LogLevel !== exports.Logger_LogLevels.Basic) {
|
|
5016
4382
|
if (skipLine) {
|
|
@@ -5021,31 +4387,16 @@
|
|
|
5021
4387
|
}
|
|
5022
4388
|
}
|
|
5023
4389
|
};
|
|
5024
|
-
/// <summary>
|
|
5025
|
-
/// write a performance message to the log
|
|
5026
|
-
/// </summary>
|
|
5027
|
-
/// <param name="msg">the message to write to the log</param>
|
|
5028
4390
|
Logger.prototype.WriteGuiToLog = function (msg) {
|
|
5029
4391
|
if (this.LogLevel >= exports.Logger_LogLevels.Gui && this.LogLevel !== exports.Logger_LogLevels.Basic) {
|
|
5030
4392
|
this.WriteToLog(msg, false, exports.LogType.info);
|
|
5031
4393
|
}
|
|
5032
4394
|
};
|
|
5033
|
-
/// <summary>
|
|
5034
|
-
/// write a developer message to the log
|
|
5035
|
-
/// </summary>
|
|
5036
|
-
/// <param name="msg">the message to write to the log</param>
|
|
5037
4395
|
Logger.prototype.WriteDevToLog = function (msg) {
|
|
5038
4396
|
if (this.LogLevel >= exports.Logger_LogLevels.Development && this.LogLevel !== exports.Logger_LogLevels.Basic) {
|
|
5039
4397
|
this.WriteToLog("DEV: " + msg, false, exports.LogType.info);
|
|
5040
4398
|
}
|
|
5041
4399
|
};
|
|
5042
|
-
/// <summary>
|
|
5043
|
-
/// Writes a basic level entry to log
|
|
5044
|
-
/// </summary>
|
|
5045
|
-
/// <param name="messageDirection">message direction relative to the current module (RIA client). Can be either MessageEntering or MessageLeaving</param>
|
|
5046
|
-
/// <param name="statusCode">HTTP status code</param>
|
|
5047
|
-
/// <param name="contentLength">length of the http message</param>
|
|
5048
|
-
/// <param name="httpHeaders">HTTP headers</param>
|
|
5049
4400
|
Logger.prototype.WriteBasicToLog = function (messageDirection, contextID, sessionCounter, clientID, serverID, responseTime, statusCode, httpHeaders, contentLength) {
|
|
5050
4401
|
if (this.LogLevel === exports.Logger_LogLevels.Basic) {
|
|
5051
4402
|
var text = httpHeaders;
|
|
@@ -5053,8 +4404,6 @@
|
|
|
5053
4404
|
text = mscorelib.NString.Replace(text, "\r\n", "|");
|
|
5054
4405
|
var arg_E4_0 = "RIA,{0}_{1},{2},{3},{4},{5},-,{6},{7},{8},{9},{10},{11}";
|
|
5055
4406
|
var expr_3E = new Array(12);
|
|
5056
|
-
// TODO : need to check How to handle Process class.
|
|
5057
|
-
// expr_3E[0] = Process.GetCurrentProcess().Id;
|
|
5058
4407
|
expr_3E[1] = mscorelib.Thread.CurrentThread.ManagedThreadId;
|
|
5059
4408
|
expr_3E[2] = new Date().toISOString();
|
|
5060
4409
|
expr_3E[3] = ((messageDirection === exports.Logger_MessageDirection.MessageLeaving) ? "MSGL" : "MSGE");
|
|
@@ -5073,37 +4422,14 @@
|
|
|
5073
4422
|
console.log(value);
|
|
5074
4423
|
}
|
|
5075
4424
|
};
|
|
5076
|
-
/// <summary>
|
|
5077
|
-
/// Writes request information to log
|
|
5078
|
-
/// </summary>
|
|
5079
|
-
/// <param name="clientSession">The clientSession object to be logged</param>
|
|
5080
4425
|
Logger.prototype.WriteRequestInfoToLog = function (requestInfo, extraMessageStr) {
|
|
5081
4426
|
if (this.LogLevel === exports.Logger_LogLevels.RequestInfo) {
|
|
5082
|
-
// Chrome debugger automatically recomputes logged objects.
|
|
5083
|
-
// Hence, clone the requestInfo object to print the details at the time of logging
|
|
5084
4427
|
console.log(extraMessageStr, RequestInfo.clone(requestInfo));
|
|
5085
4428
|
}
|
|
5086
4429
|
};
|
|
5087
|
-
/// <summary>
|
|
5088
|
-
/// Writes a request exception basic level entry to log
|
|
5089
|
-
/// </summary>
|
|
5090
|
-
/// <param name="contextID"></param>
|
|
5091
|
-
/// <param name="sessionCounter"></param>
|
|
5092
|
-
/// <param name="clientID"></param>
|
|
5093
|
-
/// <param name="serverID"></param>
|
|
5094
|
-
/// <param name="ex">the logged exception</param>
|
|
5095
4430
|
Logger.prototype.WriteBasicErrorToLog = function (contextID, sessionCounter, clientID, serverID, ex) {
|
|
5096
4431
|
mscorelib.Debug.Assert(this.LogLevel === exports.Logger_LogLevels.Basic);
|
|
5097
|
-
|
|
5098
|
-
// let value: string = NString.Format("RIA,{0}_{1},{2},{3},{4},{5},-,{6},{7},-,-,-,{8} {9}", [
|
|
5099
|
-
// Process.GetCurrentProcess().Id, Thread.CurrentThread.ManagedThreadId, DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ"), "RES", contextID, sessionCounter, clientID, serverID, ex.GetType(), ex.Message
|
|
5100
|
-
// ]);
|
|
5101
|
-
// NConsole.WriteLine(value);
|
|
5102
|
-
};
|
|
5103
|
-
/// <summary>
|
|
5104
|
-
/// Write an error to the log
|
|
5105
|
-
/// </summary>
|
|
5106
|
-
/// <param name="msg">the message to write to the log</param>
|
|
4432
|
+
};
|
|
5107
4433
|
Logger.prototype.WriteErrorToLog = function (msg) {
|
|
5108
4434
|
this.WriteToLog("MagicWeb [ERROR]: " + StrUtil.getConsoleErorString(msg), true, exports.LogType.error);
|
|
5109
4435
|
};
|
|
@@ -5183,20 +4509,19 @@
|
|
|
5183
4509
|
}
|
|
5184
4510
|
this.WriteToLog(stringBuilder.ToString(), true);
|
|
5185
4511
|
};
|
|
5186
|
-
/// <summary>
|
|
5187
|
-
/// Flush the log writer.
|
|
5188
|
-
/// </summary>
|
|
5189
4512
|
Logger.prototype.Flush = function () {
|
|
5190
4513
|
};
|
|
5191
4514
|
return Logger;
|
|
5192
4515
|
}());
|
|
5193
4516
|
Logger.instance = null;
|
|
5194
4517
|
|
|
4518
|
+
exports.MagicProperties = void 0;
|
|
5195
4519
|
(function (MagicProperties) {
|
|
5196
4520
|
MagicProperties["LineDivider"] = "line_divider";
|
|
5197
4521
|
MagicProperties["ImageFile"] = "image_file";
|
|
5198
4522
|
MagicProperties["Wallpaper"] = "wallpaper";
|
|
5199
4523
|
})(exports.MagicProperties || (exports.MagicProperties = {}));
|
|
4524
|
+
exports.BindingLevel = void 0;
|
|
5200
4525
|
(function (BindingLevel) {
|
|
5201
4526
|
BindingLevel[BindingLevel["Control"] = 1] = "Control";
|
|
5202
4527
|
BindingLevel[BindingLevel["Character"] = 2] = "Character";
|
|
@@ -5396,14 +4721,11 @@
|
|
|
5396
4721
|
new DefaultMsgDetails("STR_MOBILE_TAB_CONTROL_LAYER_0", "Controls cannot be linked to layer 0 of the tab control."), new DefaultMsgDetails("STR_MOBILE_TAB_DISPLAY_LIST_ERROR", "The number of entries in the Display List property must be zero or match the number of entries in the Items List property."), new DefaultMsgDetails("RC_ERROR_ARG_TYPE_STRING_NUMBER_MISMATCH", "The number of characters in the argument type string does not match the number of total arguments"), new DefaultMsgDetails("RC_ERROR_ILLEGAL_ARG_ATTR_TYPE", "Illegal argument attribute type"), new DefaultMsgDetails("RC_ERROR_ILLEGAL_RETURN_VAL_ATTR_TYPE", "Illegal return value attribute type"), new DefaultMsgDetails("STR_ERR_WEBCLIENT_PROGRAM_RELOADED", "Changes were done at the server side. Browser will be refreshed in order to get the latest changes."), new DefaultMsgDetails("STR_ERR_EXECUTED_PROGRAM_CHANGED", "Executed program changed at the server side. Browser will be refreshed in order to get the latest changes.")
|
|
5397
4722
|
];
|
|
5398
4723
|
|
|
5399
|
-
/// <summary> implementation of a general queue</summary>
|
|
5400
4724
|
var Queue = /** @class */ (function () {
|
|
5401
|
-
/// <summary> </summary>
|
|
5402
4725
|
function Queue() {
|
|
5403
4726
|
this._queueVec = null;
|
|
5404
4727
|
this._queueVec = new mscorelib.List();
|
|
5405
4728
|
}
|
|
5406
|
-
/// <summary> returns the first object in the queue</summary>
|
|
5407
4729
|
Queue.prototype.get = function () {
|
|
5408
4730
|
var returnValue = null;
|
|
5409
4731
|
if (this._queueVec.length > 0) {
|
|
@@ -5412,20 +4734,15 @@
|
|
|
5412
4734
|
}
|
|
5413
4735
|
return returnValue;
|
|
5414
4736
|
};
|
|
5415
|
-
/// <summary> add an object to the end of the queue</summary>
|
|
5416
|
-
/// <param name="obj">the object to add
|
|
5417
4737
|
Queue.prototype.put = function (obj) {
|
|
5418
4738
|
this._queueVec.push(obj);
|
|
5419
4739
|
};
|
|
5420
|
-
/// <summary> remove all the objects from the queue</summary>
|
|
5421
4740
|
Queue.prototype.clear = function () {
|
|
5422
4741
|
this._queueVec.Clear();
|
|
5423
4742
|
};
|
|
5424
|
-
/// <summary> returns true if the queue is empty</summary>
|
|
5425
4743
|
Queue.prototype.isEmpty = function () {
|
|
5426
4744
|
return this._queueVec.length === 0;
|
|
5427
4745
|
};
|
|
5428
|
-
/// <summary> returns size of the queue</summary>
|
|
5429
4746
|
Queue.prototype.Size = function () {
|
|
5430
4747
|
return this._queueVec.length;
|
|
5431
4748
|
};
|
|
@@ -5469,17 +4786,9 @@
|
|
|
5469
4786
|
Randomizer._mul = 0.0;
|
|
5470
4787
|
Randomizer._seed = 0.0;
|
|
5471
4788
|
|
|
5472
|
-
/// <summary>
|
|
5473
|
-
/// type checking for enum 'StorageAttribute'
|
|
5474
|
-
/// </summary>
|
|
5475
4789
|
var StorageAttributeCheck = /** @class */ (function () {
|
|
5476
4790
|
function StorageAttributeCheck() {
|
|
5477
4791
|
}
|
|
5478
|
-
/// <summary>
|
|
5479
|
-
/// is the both types belong to the same inner data types
|
|
5480
|
-
/// </summary>
|
|
5481
|
-
/// <param name = "type1">data type</param>
|
|
5482
|
-
/// <param name = "type2">data type</param>
|
|
5483
4792
|
StorageAttributeCheck.isTheSameType = function (type1, type2) {
|
|
5484
4793
|
return type1 === type2 || (StorageAttributeCheck.isTypeNumeric(type1) && StorageAttributeCheck.isTypeNumeric(type2)) || (StorageAttributeCheck.isTypeLogical(type1) && StorageAttributeCheck.isTypeLogical(type2)) || (StorageAttributeCheck.IsTypeAlphaOrUnicode(type1) && StorageAttributeCheck.IsTypeAlphaOrUnicode(type2)) || (StorageAttributeCheck.isTypeBlob(type1) && StorageAttributeCheck.isTypeBlob(type2)) || (StorageAttributeCheck.isTypeDotNet(type1) && StorageAttributeCheck.isTypeDotNet(type2));
|
|
5485
4794
|
};
|
|
@@ -5489,36 +4798,18 @@
|
|
|
5489
4798
|
StorageAttributeCheck.isTypeAlpha = function (type) {
|
|
5490
4799
|
return type === exports.StorageAttribute.ALPHA || type === exports.StorageAttribute.MEMO;
|
|
5491
4800
|
};
|
|
5492
|
-
/// <summary>
|
|
5493
|
-
/// is the both types belong to the NUMERIC inner type
|
|
5494
|
-
/// </summary>
|
|
5495
4801
|
StorageAttributeCheck.isTypeNumeric = function (type) {
|
|
5496
4802
|
return type === exports.StorageAttribute.DATE || type === exports.StorageAttribute.TIME || type === exports.StorageAttribute.NUMERIC;
|
|
5497
4803
|
};
|
|
5498
|
-
/// <summary>
|
|
5499
|
-
/// is the both types belong to the LOGICAL inner type
|
|
5500
|
-
/// </summary>
|
|
5501
4804
|
StorageAttributeCheck.isTypeLogical = function (type) {
|
|
5502
4805
|
return type === exports.StorageAttribute.BOOLEAN;
|
|
5503
4806
|
};
|
|
5504
|
-
/// <summary>
|
|
5505
|
-
/// is the type is DOTNET
|
|
5506
|
-
/// </summary>
|
|
5507
4807
|
StorageAttributeCheck.isTypeDotNet = function (type) {
|
|
5508
4808
|
return type === exports.StorageAttribute.DOTNET;
|
|
5509
4809
|
};
|
|
5510
|
-
/// <summary>
|
|
5511
|
-
/// is the type ALPHA or UNICODE
|
|
5512
|
-
/// </summary>
|
|
5513
|
-
/// <param name = "type">data type</param>
|
|
5514
4810
|
StorageAttributeCheck.IsTypeAlphaOrUnicode = function (type) {
|
|
5515
4811
|
return type === exports.StorageAttribute.ALPHA || type === exports.StorageAttribute.UNICODE;
|
|
5516
4812
|
};
|
|
5517
|
-
/// <summary>
|
|
5518
|
-
/// is the inner type ALPHA or UNICODE
|
|
5519
|
-
/// </summary>
|
|
5520
|
-
/// <param name = "type1">data type</param>
|
|
5521
|
-
/// <param name = "type2">data type</param>
|
|
5522
4813
|
StorageAttributeCheck.StorageFldAlphaOrUnicode = function (type1, type2) {
|
|
5523
4814
|
return StorageAttributeCheck.IsTypeAlphaOrUnicode(type1) && StorageAttributeCheck.IsTypeAlphaOrUnicode(type2);
|
|
5524
4815
|
};
|
|
@@ -5534,12 +4825,6 @@
|
|
|
5534
4825
|
return ((type1AlphaOrUnicode && type2Blob) || (type2AlphaOrUnicode && type1Blob));
|
|
5535
4826
|
}
|
|
5536
4827
|
};
|
|
5537
|
-
/// <summary>
|
|
5538
|
-
/// Check if types are compatible or not.
|
|
5539
|
-
/// </summary>
|
|
5540
|
-
/// <param name="sourceAttribute"></param>
|
|
5541
|
-
/// <param name="destinationAttribute"></param>
|
|
5542
|
-
/// <returns></returns>
|
|
5543
4828
|
StorageAttributeCheck.IsTypeCompatibile = function (sourceAttribute, destinationAttribute) {
|
|
5544
4829
|
var isTypeCompatible = false;
|
|
5545
4830
|
switch (sourceAttribute) {
|
|
@@ -5585,20 +4870,11 @@
|
|
|
5585
4870
|
return StorageAttributeCheck;
|
|
5586
4871
|
}());
|
|
5587
4872
|
|
|
5588
|
-
/// <summary>
|
|
5589
|
-
/// Helper class for synchronized execution.
|
|
5590
|
-
/// It works by creating a promise and then waiting for the promise to be completed
|
|
5591
|
-
/// </summary>
|
|
5592
|
-
// @dynamic
|
|
5593
4873
|
var SyncExecutionHelper = /** @class */ (function () {
|
|
5594
4874
|
function SyncExecutionHelper() {
|
|
5595
|
-
// resolver is caller when promise is fullfilled
|
|
5596
4875
|
this.resolver = null;
|
|
5597
4876
|
}
|
|
5598
4877
|
Object.defineProperty(SyncExecutionHelper, "Instance", {
|
|
5599
|
-
/// <summary>
|
|
5600
|
-
/// get instance of SyncExecutionHelper
|
|
5601
|
-
/// </summary>
|
|
5602
4878
|
get: function () {
|
|
5603
4879
|
if (SyncExecutionHelper._instance === null)
|
|
5604
4880
|
SyncExecutionHelper._instance = new SyncExecutionHelper();
|
|
@@ -5607,9 +4883,6 @@
|
|
|
5607
4883
|
enumerable: false,
|
|
5608
4884
|
configurable: true
|
|
5609
4885
|
});
|
|
5610
|
-
/// <summary>
|
|
5611
|
-
/// To wait, create a promise and add wait for it to complete
|
|
5612
|
-
/// </summary>
|
|
5613
4886
|
SyncExecutionHelper.prototype.Wait = function () {
|
|
5614
4887
|
var _this = this;
|
|
5615
4888
|
Logger.Instance.WriteDevToLog("SyncExecutionHelper.Wait()");
|
|
@@ -5617,9 +4890,6 @@
|
|
|
5617
4890
|
_this.resolver = resolve;
|
|
5618
4891
|
}).then();
|
|
5619
4892
|
};
|
|
5620
|
-
/// <summary>
|
|
5621
|
-
/// To resume call the resolver
|
|
5622
|
-
/// </summary>
|
|
5623
4893
|
SyncExecutionHelper.prototype.Pulse = function () {
|
|
5624
4894
|
var resolver = this.resolver;
|
|
5625
4895
|
if (resolver != null) {
|
|
@@ -5641,13 +4911,6 @@
|
|
|
5641
4911
|
var IDX_DOY = 3;
|
|
5642
4912
|
var UtilDateJpn = /** @class */ (function () {
|
|
5643
4913
|
function UtilDateJpn() {
|
|
5644
|
-
/// <summary>
|
|
5645
|
-
/// JPN: Japanese date picture support
|
|
5646
|
-
/// Utility Class for Japanese date
|
|
5647
|
-
/// </summary>
|
|
5648
|
-
/// <author> Toshiro Nakayoshi (MSJ)
|
|
5649
|
-
/// </author>
|
|
5650
|
-
// ---- gengo (the name of an era) ---------------------------------------
|
|
5651
4914
|
this.MaxGengo = MAX_GENGO;
|
|
5652
4915
|
}
|
|
5653
4916
|
UtilDateJpn.getInstance = function () {
|
|
@@ -5673,18 +4936,6 @@
|
|
|
5673
4936
|
}
|
|
5674
4937
|
return UtilDateJpn.JmonthStr[month];
|
|
5675
4938
|
};
|
|
5676
|
-
/// <summary>
|
|
5677
|
-
/// Convert a year (A.D.) into Japanese year of an era
|
|
5678
|
-
/// This method is modeled after "date_jpn_year_ofs" function in
|
|
5679
|
-
/// "\mglocal\jpn\jpndate_jpn.cpp".
|
|
5680
|
-
/// </summary>
|
|
5681
|
-
/// <param name = "intYear:">year (A.D.)
|
|
5682
|
-
/// </param>
|
|
5683
|
-
/// <param name = "intDoy:">DOY
|
|
5684
|
-
/// </param>
|
|
5685
|
-
/// <returns> year of an era.
|
|
5686
|
-
/// if either param is invalid, it returns 0.
|
|
5687
|
-
/// </returns>
|
|
5688
4939
|
UtilDateJpn.prototype.date_jpn_year_ofs = function (intYear, intDoy) {
|
|
5689
4940
|
var result;
|
|
5690
4941
|
if (intYear < 1 || intDoy < 1) {
|
|
@@ -5702,20 +4953,6 @@
|
|
|
5702
4953
|
}
|
|
5703
4954
|
return result;
|
|
5704
4955
|
};
|
|
5705
|
-
/// <summary>
|
|
5706
|
-
/// Convert a year (A.D.) into a name of a Japanese era
|
|
5707
|
-
/// This method is modeled after "date_jpn_yr_2_a" function in
|
|
5708
|
-
/// "\mglocal\jpn\jpndate_jpn.cpp".
|
|
5709
|
-
/// </summary>
|
|
5710
|
-
/// <param name = "intYear:">year (A.D.)
|
|
5711
|
-
/// </param>
|
|
5712
|
-
/// <param name = "intDoy:">DOY
|
|
5713
|
-
/// </param>
|
|
5714
|
-
/// <param name = "isKanji:">return a full name (true) or the first letter (false).
|
|
5715
|
-
/// </param>
|
|
5716
|
-
/// <returns> name of an era
|
|
5717
|
-
/// if either param is invalid, it returns "?".
|
|
5718
|
-
/// </returns>
|
|
5719
4956
|
UtilDateJpn.prototype.date_jpn_yr_2_a = function (intYear, intDoy, isKanji) {
|
|
5720
4957
|
var num;
|
|
5721
4958
|
if (intYear < 1 || intDoy < 1) {
|
|
@@ -5739,17 +4976,6 @@
|
|
|
5739
4976
|
}
|
|
5740
4977
|
return result;
|
|
5741
4978
|
};
|
|
5742
|
-
/// <summary>
|
|
5743
|
-
/// Get the first year (A.D.) of a specified Japanese era
|
|
5744
|
-
/// This method is modeled after "date_jpn_yr_4_a" function in
|
|
5745
|
-
/// "\mglocal\jpn\jpndate_jpn.cpp".
|
|
5746
|
-
/// </summary>
|
|
5747
|
-
/// <param name = "ucp_str:">name of a specified Japanese era
|
|
5748
|
-
/// </param>
|
|
5749
|
-
/// <param name = "s_len:">length (the number of bytes) of ucp_str
|
|
5750
|
-
/// </param>
|
|
5751
|
-
/// <returns> year (A.D.)
|
|
5752
|
-
/// </returns>
|
|
5753
4979
|
UtilDateJpn.prototype.date_jpn_yr_4_a = function (ucp_str, s_len) {
|
|
5754
4980
|
var i = this.MaxGengo - 1;
|
|
5755
4981
|
if (s_len > 0) {
|
|
@@ -5788,17 +5014,6 @@
|
|
|
5788
5014
|
}
|
|
5789
5015
|
return result;
|
|
5790
5016
|
};
|
|
5791
|
-
/// <summary>
|
|
5792
|
-
/// Get the name of an era in date string
|
|
5793
|
-
/// </summary>
|
|
5794
|
-
/// <param name = "strDate:">string of input strDate
|
|
5795
|
-
/// </param>
|
|
5796
|
-
/// <param name = "strPicture:">string of picture
|
|
5797
|
-
/// </param>
|
|
5798
|
-
/// <param name = "intStartPos:">start position to search
|
|
5799
|
-
/// </param>
|
|
5800
|
-
/// <returns> name of an era
|
|
5801
|
-
/// </returns>
|
|
5802
5017
|
UtilDateJpn.getEraNameStrInDate = function (strDate, strPicture, intStartPos) {
|
|
5803
5018
|
var result = null;
|
|
5804
5019
|
var intPicIdxOfs = 0;
|
|
@@ -5817,7 +5032,6 @@
|
|
|
5817
5032
|
intLetters = 2;
|
|
5818
5033
|
}
|
|
5819
5034
|
else {
|
|
5820
|
-
// If "strDate" contains DBCS, the position of "strPicture" has to skip next index.
|
|
5821
5035
|
if (i < strDate.length) {
|
|
5822
5036
|
if (!UtilStrByteMode.isHalfWidth(strDate[i]) && UtilStrByteMode.isHalfWidth(strPicture[i + intPicIdxOfs])) {
|
|
5823
5037
|
intPicIdxOfs = intPicIdxOfs + 1;
|
|
@@ -5829,19 +5043,10 @@
|
|
|
5829
5043
|
}
|
|
5830
5044
|
}
|
|
5831
5045
|
result = strDate.substr(i, intLetters);
|
|
5832
|
-
break;
|
|
5046
|
+
break;
|
|
5833
5047
|
}
|
|
5834
5048
|
return result;
|
|
5835
5049
|
};
|
|
5836
|
-
/// <summary>
|
|
5837
|
-
/// Get the length of the name of an era in picture
|
|
5838
|
-
/// </summary>
|
|
5839
|
-
/// <param name = "strPicture">string of picture
|
|
5840
|
-
/// </param>
|
|
5841
|
-
/// <param name = "intStartPos">start position to search
|
|
5842
|
-
/// </param>
|
|
5843
|
-
/// <returns> length of the name (the number of bytes)
|
|
5844
|
-
/// </returns>
|
|
5845
5050
|
UtilDateJpn.getEraNameLenInPicture = function (strPicture, intStartPos) {
|
|
5846
5051
|
var intLetters = 0;
|
|
5847
5052
|
for (var i = intStartPos; i < strPicture.length; i = i + 1) {
|
|
@@ -5864,15 +5069,6 @@
|
|
|
5864
5069
|
}
|
|
5865
5070
|
return intLetters;
|
|
5866
5071
|
};
|
|
5867
|
-
/// <summary>
|
|
5868
|
-
/// Get the start year of an era in picture
|
|
5869
|
-
/// </summary>
|
|
5870
|
-
/// <param name = "strDate:">string of input strDate
|
|
5871
|
-
/// </param>
|
|
5872
|
-
/// <param name = "strPicture:">string of picture
|
|
5873
|
-
/// </param>
|
|
5874
|
-
/// <returns> start year of the era
|
|
5875
|
-
/// </returns>
|
|
5876
5072
|
UtilDateJpn.prototype.getStartYearOfEra = function (strDate, strPicture) {
|
|
5877
5073
|
var eraNameStrInDate = UtilDateJpn.getEraNameStrInDate(strDate, strPicture, 0);
|
|
5878
5074
|
var result;
|
|
@@ -5891,13 +5087,7 @@
|
|
|
5891
5087
|
}
|
|
5892
5088
|
return result;
|
|
5893
5089
|
};
|
|
5894
|
-
/// <summary> Add extra Gengo data into the Gengo tables</summary>
|
|
5895
|
-
/// <param name="strExtraGengo:">
|
|
5896
|
-
/// </param>
|
|
5897
|
-
/// <returns>
|
|
5898
|
-
/// </returns>
|
|
5899
5090
|
UtilDateJpn.prototype.addExtraGengo = function (strExtraGengo) {
|
|
5900
|
-
// e.g. strExtraGengo = "2012/04/01,092,AaABCD;2013/04/01,091,WwWXYZ;"
|
|
5901
5091
|
var strGengoInfo = strExtraGengo.split(';');
|
|
5902
5092
|
for (var i = 0; i < strGengoInfo.length; i = i + 1) {
|
|
5903
5093
|
if (strGengoInfo[i].length > 0) {
|
|
@@ -5905,13 +5095,13 @@
|
|
|
5905
5095
|
if (strTok.length === 3 && strTok[0].length > 0 && strTok[1].length > 0 && strTok[2].length > 0) {
|
|
5906
5096
|
var strDate = strTok[0].split('/');
|
|
5907
5097
|
if (strDate.length === 3 && strDate[0].length > 0 && strDate[1].length > 0 && strDate[2].length > 0) {
|
|
5908
|
-
UtilDateJpn.GengoStr[MAX_GENGO + i][0] = strTok[2].substr(0, 1);
|
|
5909
|
-
UtilDateJpn.GengoStr[MAX_GENGO + i][1] = strTok[2].substr(1, 1);
|
|
5910
|
-
UtilDateJpn.GengoStr[MAX_GENGO + i][2] = strTok[2].substr(2);
|
|
5911
|
-
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][0] = mscorelib.NNumber.Parse(strDate[0]);
|
|
5912
|
-
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][1] = mscorelib.NNumber.Parse(strDate[1]);
|
|
5913
|
-
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][2] = mscorelib.NNumber.Parse(strDate[2]);
|
|
5914
|
-
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][3] = mscorelib.NNumber.Parse(strTok[1]);
|
|
5098
|
+
UtilDateJpn.GengoStr[MAX_GENGO + i][0] = strTok[2].substr(0, 1);
|
|
5099
|
+
UtilDateJpn.GengoStr[MAX_GENGO + i][1] = strTok[2].substr(1, 1);
|
|
5100
|
+
UtilDateJpn.GengoStr[MAX_GENGO + i][2] = strTok[2].substr(2);
|
|
5101
|
+
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][0] = mscorelib.NNumber.Parse(strDate[0]);
|
|
5102
|
+
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][1] = mscorelib.NNumber.Parse(strDate[1]);
|
|
5103
|
+
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][2] = mscorelib.NNumber.Parse(strDate[2]);
|
|
5104
|
+
UtilDateJpn.StartDayOfGengo[MAX_GENGO + i][3] = mscorelib.NNumber.Parse(strTok[1]);
|
|
5915
5105
|
this.MaxGengo++;
|
|
5916
5106
|
}
|
|
5917
5107
|
}
|
|
@@ -5950,70 +5140,42 @@
|
|
|
5950
5140
|
[0, 0, 0, 0]
|
|
5951
5141
|
];
|
|
5952
5142
|
|
|
5953
|
-
/// <summary>JPN: IME support
|
|
5954
|
-
/// Utility Class for Input Method Editor
|
|
5955
|
-
/// </summary>
|
|
5956
|
-
/// <author> Toshiro Nakayoshi (MSJ)
|
|
5957
|
-
/// </author>
|
|
5958
5143
|
var UtilImeJpn = /** @class */ (function () {
|
|
5959
5144
|
function UtilImeJpn() {
|
|
5960
5145
|
this.ImeAutoOff = false;
|
|
5961
5146
|
this.StrImeRead = null;
|
|
5962
5147
|
}
|
|
5963
|
-
/// <summary> check if the IME mode is within valid range
|
|
5964
|
-
/// </summary>
|
|
5965
|
-
/// <param name="imeMode">(IME mode in Magic)
|
|
5966
|
-
/// </param>
|
|
5967
|
-
/// <returns> bool
|
|
5968
|
-
/// </returns>
|
|
5969
5148
|
UtilImeJpn.prototype.isValid = function (imeMode) {
|
|
5970
5149
|
return (0 <= imeMode && imeMode <= 9) || imeMode === 15 || imeMode === 10;
|
|
5971
5150
|
};
|
|
5972
|
-
/// <summary> convert the input method editor mode
|
|
5973
|
-
/// </summary>
|
|
5974
|
-
/// <param name="imeMode">(IME mode in Magic)
|
|
5975
|
-
/// </param>
|
|
5976
|
-
/// <returns> imeConvMode (IME conversion mode in imm32.lib)
|
|
5977
|
-
/// </returns>
|
|
5978
5151
|
UtilImeJpn.imeMode2imeConvMode = function (imeMode) {
|
|
5979
5152
|
var result;
|
|
5980
5153
|
switch (imeMode) {
|
|
5981
|
-
// IME_ZEN_HIRAGANA_ROMAN
|
|
5982
5154
|
case 1:
|
|
5983
5155
|
result = 25;
|
|
5984
5156
|
break;
|
|
5985
|
-
// IME_ZEN_HIRAGANA
|
|
5986
5157
|
case 2:
|
|
5987
5158
|
result = 9;
|
|
5988
5159
|
break;
|
|
5989
|
-
// IME_ZEN_KATAKANA_ROMAN
|
|
5990
5160
|
case 3:
|
|
5991
5161
|
result = 27;
|
|
5992
5162
|
break;
|
|
5993
|
-
// IME_ZEN_KATAKANA
|
|
5994
5163
|
case 4:
|
|
5995
5164
|
result = 11;
|
|
5996
5165
|
break;
|
|
5997
|
-
// IME_HAN_KATAKANA_ROMAN
|
|
5998
5166
|
case 5:
|
|
5999
5167
|
result = 19;
|
|
6000
5168
|
break;
|
|
6001
|
-
// IME_HAN_KATAKANA
|
|
6002
5169
|
case 6:
|
|
6003
5170
|
result = 3;
|
|
6004
5171
|
break;
|
|
6005
|
-
// IME_ZEN_ALPHANUMERIC
|
|
6006
5172
|
case 7:
|
|
6007
5173
|
result = 8;
|
|
6008
5174
|
break;
|
|
6009
|
-
// IME_HAN_ALPHANUMERIC
|
|
6010
5175
|
case 8:
|
|
6011
5176
|
case 9:
|
|
6012
5177
|
result = 0;
|
|
6013
5178
|
break;
|
|
6014
|
-
// case 0:
|
|
6015
|
-
// case IME_DISABLE:
|
|
6016
|
-
// case IME_FORCE_OFF:
|
|
6017
5179
|
default:
|
|
6018
5180
|
result = 256;
|
|
6019
5181
|
break;
|
|
@@ -6030,29 +5192,18 @@
|
|
|
6030
5192
|
UtilImeJpn.IME_CMODE_NOCONVERSION = 256;
|
|
6031
5193
|
UtilImeJpn.IME_NOT_INITIALIZED = -1;
|
|
6032
5194
|
UtilImeJpn.IME_ZEN_HIRAGANA_ROMAN = 1;
|
|
6033
|
-
UtilImeJpn.IME_FORCE_OFF = 15;
|
|
6034
|
-
|
|
6035
|
-
UtilImeJpn.IME_DISABLE = 10; // to completely disable IME (even not allowing to change the mode)
|
|
5195
|
+
UtilImeJpn.IME_FORCE_OFF = 15;
|
|
5196
|
+
UtilImeJpn.IME_DISABLE = 10;
|
|
6036
5197
|
|
|
6037
|
-
/// <summary> a helper class for the parsing of the XML</summary>
|
|
6038
5198
|
var XmlParser = /** @class */ (function () {
|
|
6039
|
-
/// <summary>
|
|
6040
|
-
///
|
|
6041
|
-
/// </summary>
|
|
6042
|
-
/// <param name="data"></param>
|
|
6043
5199
|
function XmlParser(data) {
|
|
6044
5200
|
if (data === void 0) { data = mscorelib.NString.Empty; }
|
|
6045
5201
|
this._currIndex = 0;
|
|
6046
5202
|
this._xmLdata = "";
|
|
6047
|
-
this._history = new mscorelib.List();
|
|
5203
|
+
this._history = new mscorelib.List();
|
|
6048
5204
|
this.setXMLdata(data);
|
|
6049
5205
|
this.setCurrIndex(0);
|
|
6050
5206
|
}
|
|
6051
|
-
/// <summary> parse a string according to a set of delimiters and return the result in a vector</summary>
|
|
6052
|
-
/// <param name="str">the String which need be parted </param>
|
|
6053
|
-
/// <param name="delimiter">the delimiter which part different parts of str </param>
|
|
6054
|
-
/// <param name="isMagicXML">is needed tokenizer working on Magic XML, so the "=" sign will be delited in the end of every first token </param>
|
|
6055
|
-
/// <returns> tmpVector dynamically array, which consist tokens in every element, every token is String </returns>
|
|
6056
5207
|
XmlParser.getTokens = function (str, delimiter, isMagicXML) {
|
|
6057
5208
|
if (isMagicXML === void 0) { isMagicXML = true; }
|
|
6058
5209
|
var tokensVec = new mscorelib.List();
|
|
@@ -6062,22 +5213,17 @@
|
|
|
6062
5213
|
}
|
|
6063
5214
|
var strTok = str.split(delimiter.charAt(0));
|
|
6064
5215
|
for (var i = 0; i < strTok.length; i = i + 1) {
|
|
6065
|
-
// Split in C# creates a last empty string token if the source string ends with
|
|
6066
|
-
// the delimiter or if the string is empty (as opposed to Java that will ignore it)
|
|
6067
|
-
// therefore we have to break this loop if such case occurs.
|
|
6068
5216
|
if (isMagicXML && i === strTok.length - 1 && strTok.length % 2 === 1) {
|
|
6069
5217
|
break;
|
|
6070
5218
|
}
|
|
6071
5219
|
token = strTok[i];
|
|
6072
5220
|
if (isMagicXML) {
|
|
6073
|
-
// the 1st token in the pair comes with "=", remove it.
|
|
6074
5221
|
if (i % 2 === 0) {
|
|
6075
5222
|
token = token.trim();
|
|
6076
5223
|
if (token.endsWith("=")) {
|
|
6077
5224
|
token = token.substr(0, token.length - 1);
|
|
6078
5225
|
}
|
|
6079
5226
|
}
|
|
6080
|
-
// 2nd token in the pair can be an empty string, in that case set it to " ".
|
|
6081
5227
|
else if (token === "")
|
|
6082
5228
|
token = " ";
|
|
6083
5229
|
}
|
|
@@ -6087,11 +5233,6 @@
|
|
|
6087
5233
|
}
|
|
6088
5234
|
return tokensVec;
|
|
6089
5235
|
};
|
|
6090
|
-
/// <summary>unscape from:
|
|
6091
|
-
/// {"&",\\, \q, \o, \l, \g, \e, \\r, \\n}, to:
|
|
6092
|
-
/// {"&", \, ", ', <, >, =, \r, \n}
|
|
6093
|
-
/// <param name="str">String to be converted</param>
|
|
6094
|
-
/// <returns>unescaped string</returns>
|
|
6095
5236
|
XmlParser.unescape = function (str) {
|
|
6096
5237
|
var unescapedString = new mscorelib.StringBuilder(str.length);
|
|
6097
5238
|
for (var i = 0; i < str.length; i++) {
|
|
@@ -6128,11 +5269,6 @@
|
|
|
6128
5269
|
}
|
|
6129
5270
|
return (unescapedString.ToString());
|
|
6130
5271
|
};
|
|
6131
|
-
/// <summary>escape from:
|
|
6132
|
-
/// {\, ", ', <, >, =, \r, \n}, to:
|
|
6133
|
-
/// {\\, \q, \0, \l, \g, \e, \\r, \\n}
|
|
6134
|
-
/// <param name="str">String to be converted</param>
|
|
6135
|
-
/// <returns>escaped string</returns>
|
|
6136
5272
|
XmlParser.escape = function (str) {
|
|
6137
5273
|
var escapedString = new mscorelib.StringBuilder(str.length * 2);
|
|
6138
5274
|
for (var i = 0; i < str.length; i++) {
|
|
@@ -6168,23 +5304,15 @@
|
|
|
6168
5304
|
}
|
|
6169
5305
|
return (escapedString.ToString());
|
|
6170
5306
|
};
|
|
6171
|
-
/// <summary>
|
|
6172
|
-
/// here we only need to take care of "&" so that Sax parser will be able to handle url
|
|
6173
|
-
/// </summary>
|
|
6174
|
-
/// <param name="str"></param>
|
|
6175
|
-
/// <returns></returns>
|
|
6176
5307
|
XmlParser.escapeUrl = function (str) {
|
|
6177
5308
|
return mscorelib.NString.Replace(str, "&", "&");
|
|
6178
5309
|
};
|
|
6179
|
-
/// <summary>get next tag name from current index in XML string</summary>
|
|
6180
|
-
/// <returns> next tag name </returns>
|
|
6181
5310
|
XmlParser.prototype.getNextTag = function () {
|
|
6182
5311
|
if (this._xmLdata.length - this._currIndex <= 1) {
|
|
6183
|
-
return null;
|
|
5312
|
+
return null;
|
|
6184
5313
|
}
|
|
6185
5314
|
for (var tmpIndx = this._currIndex + 1; tmpIndx < this._xmLdata.length; tmpIndx++) {
|
|
6186
5315
|
var tmpChar = this._xmLdata[tmpIndx];
|
|
6187
|
-
// a letter starts an element and ends with " ". "/" starts an element closing and ends with '>'.
|
|
6188
5316
|
if (mscorelib.NChar.IsLetter(tmpChar) || tmpChar === '/') {
|
|
6189
5317
|
var endOfTag = mscorelib.NString.IndexOfAny(this._xmLdata, XmlParser.endOfNameChar, tmpIndx, this._xmLdata.length - tmpIndx);
|
|
6190
5318
|
if (endOfTag === -1)
|
|
@@ -6195,34 +5323,25 @@
|
|
|
6195
5323
|
}
|
|
6196
5324
|
return null;
|
|
6197
5325
|
};
|
|
6198
|
-
/// <summary>Substring of XMLstring</summary>
|
|
6199
|
-
/// <returns> substring of XML string -from currIndex to endContext </returns>
|
|
6200
5326
|
XmlParser.prototype.getXMLsubstring = function (endContext) {
|
|
6201
5327
|
return this._xmLdata.substr(this._currIndex, endContext - this._currIndex);
|
|
6202
5328
|
};
|
|
6203
|
-
/// <summary>get current element value</summary>
|
|
6204
|
-
/// <returns> element's value </returns>
|
|
6205
5329
|
XmlParser.prototype.GetCurrentElementValue = function () {
|
|
6206
5330
|
this.setCurrIndex2EndOfTag();
|
|
6207
5331
|
var endContext = this.getXMLdata().indexOf(XMLConstants.TAG_OPEN, this.getCurrIndex());
|
|
6208
|
-
// read value of xml element
|
|
6209
5332
|
var value = this.getXMLsubstring(endContext);
|
|
6210
5333
|
this.setCurrIndex2EndOfTag();
|
|
6211
5334
|
return value;
|
|
6212
5335
|
};
|
|
6213
|
-
/// <summary>set current index (on parsing time) to the end of current tag</summary>
|
|
6214
5336
|
XmlParser.prototype.setCurrIndex2EndOfTag = function () {
|
|
6215
5337
|
this._currIndex = this._xmLdata.indexOf(XMLConstants.TAG_CLOSE, this._currIndex) + 1;
|
|
6216
5338
|
};
|
|
6217
|
-
/// <summary>get int from string at parsing time</summary>
|
|
6218
5339
|
XmlParser.getInt = function (valueStr) {
|
|
6219
5340
|
return mscorelib.NNumber.Parse(valueStr.trim());
|
|
6220
5341
|
};
|
|
6221
|
-
/// <summary>get boolean from string at parsing time</summary>
|
|
6222
5342
|
XmlParser.getBoolean = function (valueStr) {
|
|
6223
5343
|
return valueStr[0] === '1';
|
|
6224
5344
|
};
|
|
6225
|
-
/// <summary>get/set functions 4 XMLstring & currIndex, for parser</summary>
|
|
6226
5345
|
XmlParser.prototype.getCurrIndex = function () {
|
|
6227
5346
|
return this._currIndex;
|
|
6228
5347
|
};
|
|
@@ -6243,81 +5362,46 @@
|
|
|
6243
5362
|
this.setCurrIndex(0);
|
|
6244
5363
|
}
|
|
6245
5364
|
};
|
|
6246
|
-
/// <summary>
|
|
6247
|
-
/// prepare the parser to read from the newXmlString
|
|
6248
|
-
/// </summary>
|
|
6249
|
-
/// <param name="newXmlString"></param>
|
|
6250
5365
|
XmlParser.prototype.PrepareFormReadString = function (newXmlString) {
|
|
6251
5366
|
this.setXMLdata(newXmlString);
|
|
6252
5367
|
this.setCurrIndex(0);
|
|
6253
5368
|
};
|
|
6254
|
-
/// <summary> push the current parsing information into the history stack</summary>
|
|
6255
5369
|
XmlParser.prototype.push = function () {
|
|
6256
5370
|
this._history.push(this._currIndex);
|
|
6257
5371
|
this._history.push(this._xmLdata);
|
|
6258
5372
|
};
|
|
6259
|
-
/// <summary> restore the previous parsing information from the history stack</summary>
|
|
6260
5373
|
XmlParser.prototype.pop = function () {
|
|
6261
5374
|
var count = this._history.length;
|
|
6262
5375
|
this._xmLdata = this._history.get_Item(count - 1);
|
|
6263
5376
|
this._currIndex = this._history.get_Item(count - 2);
|
|
6264
5377
|
this._history.SetSize(count - 2);
|
|
6265
5378
|
};
|
|
6266
|
-
/// <summary>gets a table cache xml and set the xmlparser data and index accordingly</summary>
|
|
6267
5379
|
XmlParser.prototype.loadTableCacheData = function (data) {
|
|
6268
5380
|
this.setXMLdata(data);
|
|
6269
5381
|
this.setCurrIndex(0);
|
|
6270
5382
|
};
|
|
6271
|
-
/// <summary>
|
|
6272
|
-
/// Reads the XML from the element at the current position until the end of
|
|
6273
|
-
/// the element, returning the contents as a string. This allows deferring the
|
|
6274
|
-
/// processing of an element until the time is right to do so.<br/>
|
|
6275
|
-
/// The returned string contains the element tag itself. For example:<br/>
|
|
6276
|
-
/// - Assuming that the current element is 'element1', with 2 'innerElement' elements, the
|
|
6277
|
-
/// resulting string will look like this:<br/>
|
|
6278
|
-
/// <element1>
|
|
6279
|
-
/// <innerelement/>
|
|
6280
|
-
/// <innerelement/>
|
|
6281
|
-
/// </element1>
|
|
6282
|
-
///
|
|
6283
|
-
/// This makes the result valid for processing by this XML parser.
|
|
6284
|
-
/// </summary>
|
|
6285
|
-
/// <returns></returns>
|
|
6286
5383
|
XmlParser.prototype.ReadToEndOfCurrentElement = function () {
|
|
6287
|
-
// Get the current tag according to the value of _currIndex.
|
|
6288
5384
|
var currentTag = this.getNextTag();
|
|
6289
5385
|
var currentTagIndex = this._xmLdata.indexOf(XMLConstants.TAG_OPEN + currentTag, this.getCurrIndex());
|
|
6290
|
-
// Find the end of the element's block in the XML.
|
|
6291
|
-
// find next open tag
|
|
6292
5386
|
var nextOpenTagIndex = this._xmLdata.indexOf(XMLConstants.TAG_OPEN, currentTagIndex + 1);
|
|
6293
5387
|
if (nextOpenTagIndex === -1)
|
|
6294
5388
|
nextOpenTagIndex = this._xmLdata.length;
|
|
6295
|
-
// find a close tag BEFORE the next open tag
|
|
6296
5389
|
var elementEndIndex = mscorelib.NString.IndexOf(this._xmLdata, XMLConstants.TAG_TERM, this.getCurrIndex(), nextOpenTagIndex - this.getCurrIndex());
|
|
6297
5390
|
if (elementEndIndex === -1)
|
|
6298
|
-
// close tag was not found in range - we have inner elements, look for the full close tag
|
|
6299
5391
|
elementEndIndex = this._xmLdata.indexOf("/" + currentTag, this.getCurrIndex()) + currentTag.length + XMLConstants.TAG_TERM.length;
|
|
6300
5392
|
else
|
|
6301
5393
|
elementEndIndex = elementEndIndex + XMLConstants.TAG_TERM.length;
|
|
6302
|
-
// Copy the element data so it can be returned.
|
|
6303
5394
|
var elementBlock = this.getXMLsubstring(elementEndIndex);
|
|
6304
|
-
// Move the parser to the end of the element block.
|
|
6305
5395
|
this.setCurrIndex(elementEndIndex);
|
|
6306
5396
|
return elementBlock;
|
|
6307
5397
|
};
|
|
6308
5398
|
XmlParser.prototype.ReadContentOfCurrentElement = function () {
|
|
6309
|
-
// Get the current tag according to the value of _currIndex.
|
|
6310
5399
|
var currentTag = this.getNextTag();
|
|
6311
|
-
// Find the end of the element's block in the XML.
|
|
6312
5400
|
var elementEndIndex = this._xmLdata.indexOf("</" + currentTag + ">", this.getCurrIndex());
|
|
6313
5401
|
if (elementEndIndex === -1)
|
|
6314
|
-
// Can't find the end of the current element - either XML is faulty or the element is empty.
|
|
6315
5402
|
return mscorelib.NString.Empty;
|
|
6316
|
-
// Move to the end of the opening tag
|
|
6317
5403
|
this.setCurrIndex2EndOfTag();
|
|
6318
|
-
// Copy the content of the element (from the end of the opening tag to the beginning of the closing tag).
|
|
6319
5404
|
var elementBlock = this.getXMLsubstring(elementEndIndex);
|
|
6320
|
-
// Move the parser to the end of the element block.
|
|
6321
5405
|
this.setCurrIndex(elementEndIndex);
|
|
6322
5406
|
this.setCurrIndex2EndOfTag();
|
|
6323
5407
|
return elementBlock;
|
|
@@ -6328,29 +5412,9 @@
|
|
|
6328
5412
|
}
|
|
6329
5413
|
return this.ToString_1(headCharCount, tailCharCount);
|
|
6330
5414
|
};
|
|
6331
|
-
/// <summary>
|
|
6332
|
-
/// Generates a string that visualizes the XML parser state (e.g. for debug watch list.)<br/>
|
|
6333
|
-
/// The method will show the XML data, trimming it to 20 characters before the
|
|
6334
|
-
/// current position (_currIndex) and up to 50 characters after the current position.
|
|
6335
|
-
/// The current position itself will be marked with a marker that looks like:
|
|
6336
|
-
/// |-{current index}-| <br/>
|
|
6337
|
-
/// The marker will be placed immediately before _xmlData[_currIndex].
|
|
6338
|
-
/// </summary>
|
|
6339
|
-
/// <returns></returns>
|
|
6340
5415
|
XmlParser.prototype.ToString_0 = function () {
|
|
6341
5416
|
return this.toString(20, 50);
|
|
6342
5417
|
};
|
|
6343
|
-
/// <summary>
|
|
6344
|
-
/// Generates a string that visualizes the XML parser state (e.g. for debug watch list.)<br/>
|
|
6345
|
-
/// The method will show the XML data, trimming it to headCharCount characters before the
|
|
6346
|
-
/// current position (_currIndex) and up to tailCharCount characters after the current position.
|
|
6347
|
-
/// The current position itself will be marked with a marker that looks like:
|
|
6348
|
-
/// |-{current index}-| <br/>
|
|
6349
|
-
/// The marker will be placed immediately before _xmlData[_currIndex].
|
|
6350
|
-
/// </summary>
|
|
6351
|
-
/// <param name="headCharCount">Number of characters to show before the current position marker.</param>
|
|
6352
|
-
/// <param name="tailCharCount">Number of characters to show after the current position marker.</param>
|
|
6353
|
-
/// <returns></returns>
|
|
6354
5418
|
XmlParser.prototype.ToString_1 = function (headCharCount, tailCharCount) {
|
|
6355
5419
|
var markerPosition = Math.min(this._currIndex, this._xmLdata.length);
|
|
6356
5420
|
var segmentStartIndex = Math.max(0, markerPosition - headCharCount);
|
|
@@ -6379,10 +5443,6 @@
|
|
|
6379
5443
|
}());
|
|
6380
5444
|
XmlParser.endOfNameChar = [' ', '>'];
|
|
6381
5445
|
|
|
6382
|
-
/**
|
|
6383
|
-
* Generated bundle index. Do not edit.
|
|
6384
|
-
*/
|
|
6385
|
-
|
|
6386
5446
|
exports.Base64 = Base64;
|
|
6387
5447
|
exports.ChoiceUtils = ChoiceUtils;
|
|
6388
5448
|
exports.Constants = Constants;
|
|
@@ -6417,5 +5477,5 @@
|
|
|
6417
5477
|
|
|
6418
5478
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6419
5479
|
|
|
6420
|
-
}))
|
|
5480
|
+
}));
|
|
6421
5481
|
//# sourceMappingURL=magic-xpa-utils.umd.js.map
|