@magic-xpa/gui 4.801.0-dev481.222 → 4.801.0-dev481.228

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.
@@ -1,6 +1,6 @@
1
1
  import { __awaiter } from 'tslib';
2
2
  import { Debug, StringBuilder, NString, Int32, List, StackFrame, ApplicationException, Encoding, ISO_8859_1_Encoding, NNumber, NumberStyles, RefParam, DateTime, Hashtable, Exception, NChar, NumberFormatInfo, Stack, Dictionary, StackTrace, NotImplementedException } from '@magic-xpa/mscorelib';
3
- import { OSEnvironment, MgControlType, CtrlButtonTypeGui, CheckboxMainStyle, RbAppearance, UtilStrByteMode, UtilImeJpn, StrUtil, Logger, StorageAttribute, PICInterface, MsgInterface, SEQ_2_HTML, HTML_2_STR, Constants, Randomizer, UtilDateJpn, DateUtil, Misc, Base64, XmlParser, StorageAttributeCheck, XMLConstants, JSON_Utils, ListboxSelectionMode, TransMode, Logger_LogLevels, MagicProperties, ChoiceUtils, SEQ_2_STR, InternalInterface, WindowType, TabbingOrderType, Rtf, HelpType } from '@magic-xpa/utils';
3
+ import { OSEnvironment, MgControlType, CtrlButtonTypeGui, CheckboxMainStyle, RbAppearance, UtilStrByteMode, UtilImeJpn, StrUtil, Logger, StorageAttribute, PICInterface, MsgInterface, SEQ_2_HTML, HTML_2_STR, Constants, Randomizer, UtilDateJpn, DateUtil, Base64, XmlParser, StorageAttributeCheck, XMLConstants, JSON_Utils, ListboxSelectionMode, TransMode, Logger_LogLevels, Misc, MagicProperties, ChoiceUtils, SEQ_2_STR, InternalInterface, WindowType, TabbingOrderType, Rtf, HelpType } from '@magic-xpa/utils';
4
4
  import { isNullOrUndefined } from 'util';
5
5
  import { timer } from 'rxjs';
6
6
 
@@ -7763,91 +7763,6 @@ class RecordUtils {
7763
7763
  return RecordUtils.byteStreamToString(new StringBuilder(stream));
7764
7764
  }
7765
7765
  static serializeItemVal(itemVal, itemAttr, cellAttr, toBase64) {
7766
- if (arguments.length === 2)
7767
- return RecordUtils.serializeItemVal_0(itemVal, itemAttr);
7768
- else
7769
- return RecordUtils.serializeItemVal_1(itemVal, itemAttr, cellAttr, toBase64);
7770
- }
7771
- static serializeItemVal_0(itemVal, itemAttr) {
7772
- Debug.Assert(itemVal !== null);
7773
- let valueSize;
7774
- let tmpBufLen = NString.Empty;
7775
- let tmpBuf = null;
7776
- let contentWithLength = null;
7777
- let pos = 0;
7778
- let fldValLen = 0;
7779
- let tempItemVal = NString.Empty;
7780
- let noOfPackets = 0;
7781
- let tmpNoOfPackets = null;
7782
- let tmpStrNoOfPackets = NString.Empty;
7783
- switch (itemAttr) {
7784
- case StorageAttribute.NUMERIC:
7785
- case StorageAttribute.DATE:
7786
- case StorageAttribute.TIME:
7787
- let numType = new NUM_TYPE(itemVal);
7788
- tmpBuf = Misc.ToByteArray(numType.Data);
7789
- break;
7790
- case StorageAttribute.BOOLEAN:
7791
- tmpBuf = GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal);
7792
- break;
7793
- case StorageAttribute.ALPHA:
7794
- itemVal = StrUtil.rtrim(itemVal);
7795
- valueSize = UtilStrByteMode.lenB(itemVal).toString(16).toUpperCase();
7796
- for (let j = 0; j < 4 - valueSize.length; j++)
7797
- tmpBufLen += "0";
7798
- tmpBufLen += valueSize;
7799
- tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
7800
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
7801
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7802
- break;
7803
- case StorageAttribute.UNICODE:
7804
- itemVal = StrUtil.rtrim(itemVal);
7805
- valueSize = (itemVal.length.toString(16)).toUpperCase();
7806
- for (let j = 0; j < 4 - valueSize.length; j++)
7807
- tmpBufLen += "0";
7808
- tmpBufLen += valueSize;
7809
- tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
7810
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
7811
- tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7812
- break;
7813
- case StorageAttribute.BLOB:
7814
- pos = 0;
7815
- fldValLen = ISO_8859_1_Encoding.ISO_8859_1.GetByteCount(itemVal);
7816
- noOfPackets = Math.floor(fldValLen / 0xFFFF);
7817
- tmpBufLen = "FFFF";
7818
- tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen);
7819
- for (let i = 0; i < noOfPackets; i++) {
7820
- tempItemVal = itemVal.substr(pos, 0xFFFF);
7821
- pos += 0xFFFF;
7822
- let tempItemValBytes = ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
7823
- contentWithLength = new Uint8Array(tmpNoOfPackets.length + tempItemValBytes.length);
7824
- contentWithLength.set(tmpNoOfPackets);
7825
- contentWithLength.set(tempItemValBytes, tmpNoOfPackets.length);
7826
- }
7827
- let lastPacketSize = fldValLen % 0xFFFF;
7828
- if (lastPacketSize > 0) {
7829
- tempItemVal = itemVal.substr(pos, (fldValLen) - (pos));
7830
- let tempItemValBytes = ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
7831
- tmpBufLen = NString.Format(String.fromCharCode(tempItemValBytes.length), "X4");
7832
- let tempContentWithLength = new Uint8Array(contentWithLength.length +
7833
- GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length +
7834
- ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal).length);
7835
- tempContentWithLength.set(contentWithLength);
7836
- tempContentWithLength.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), contentWithLength.length);
7837
- tempContentWithLength.set(ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal), contentWithLength.length + GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
7838
- contentWithLength = tempContentWithLength;
7839
- noOfPackets++;
7840
- }
7841
- tmpStrNoOfPackets = NString.Format(String.fromCharCode(noOfPackets), "D4");
7842
- tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpStrNoOfPackets);
7843
- tmpBuf = new Uint8Array(contentWithLength.length + tmpNoOfPackets.length);
7844
- tmpBuf.set(tmpNoOfPackets);
7845
- tmpBuf.set(contentWithLength, tmpNoOfPackets.length);
7846
- break;
7847
- }
7848
- return tmpBuf;
7849
- }
7850
- static serializeItemVal_1(itemVal, itemAttr, cellAttr, toBase64) {
7851
7766
  Debug.Assert(itemVal != null);
7852
7767
  let significantNumSize = GuiEnvironment.Environment.GetSignificantNumSize() * 2;
7853
7768
  let valueSize;
@@ -13172,8 +13087,6 @@ class MgControlBase extends GuiControlPropertyAdapter {
13172
13087
  this._ditIdx = 0;
13173
13088
  this._linkedControls = null;
13174
13089
  this._field = null;
13175
- this._nodeIdField = null;
13176
- this._nodeParentIdField = null;
13177
13090
  this._picStr = null;
13178
13091
  this._choiceDisps = null;
13179
13092
  this._choiceLayerList = null;