@magic-xpa/gui 4.800.0 → 4.801.0-dev481.224
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-gui.umd.js +0 -87
- package/bundles/magic-xpa-gui.umd.js.map +1 -1
- package/bundles/magic-xpa-gui.umd.min.js +1 -1
- package/bundles/magic-xpa-gui.umd.min.js.map +1 -1
- package/esm2015/src/management/data/RecordUtils.js +3 -89
- package/esm2015/src/management/gui/MgControlBase.js +1 -3
- package/fesm2015/magic-xpa-gui.js +1 -88
- package/fesm2015/magic-xpa-gui.js.map +1 -1
- package/package.json +2 -2
- package/src/management/data/RecordUtils.d.ts +0 -3
- package/src/management/gui/MgControlBase.d.ts +0 -2
|
@@ -8136,91 +8136,6 @@
|
|
|
8136
8136
|
return RecordUtils.byteStreamToString(new mscorelib.StringBuilder(stream));
|
|
8137
8137
|
};
|
|
8138
8138
|
RecordUtils.serializeItemVal = function (itemVal, itemAttr, cellAttr, toBase64) {
|
|
8139
|
-
if (arguments.length === 2)
|
|
8140
|
-
return RecordUtils.serializeItemVal_0(itemVal, itemAttr);
|
|
8141
|
-
else
|
|
8142
|
-
return RecordUtils.serializeItemVal_1(itemVal, itemAttr, cellAttr, toBase64);
|
|
8143
|
-
};
|
|
8144
|
-
RecordUtils.serializeItemVal_0 = function (itemVal, itemAttr) {
|
|
8145
|
-
mscorelib.Debug.Assert(itemVal !== null);
|
|
8146
|
-
var valueSize;
|
|
8147
|
-
var tmpBufLen = mscorelib.NString.Empty;
|
|
8148
|
-
var tmpBuf = null;
|
|
8149
|
-
var contentWithLength = null;
|
|
8150
|
-
var pos = 0;
|
|
8151
|
-
var fldValLen = 0;
|
|
8152
|
-
var tempItemVal = mscorelib.NString.Empty;
|
|
8153
|
-
var noOfPackets = 0;
|
|
8154
|
-
var tmpNoOfPackets = null;
|
|
8155
|
-
var tmpStrNoOfPackets = mscorelib.NString.Empty;
|
|
8156
|
-
switch (itemAttr) {
|
|
8157
|
-
case utils.StorageAttribute.NUMERIC:
|
|
8158
|
-
case utils.StorageAttribute.DATE:
|
|
8159
|
-
case utils.StorageAttribute.TIME:
|
|
8160
|
-
var numType = new NUM_TYPE(itemVal);
|
|
8161
|
-
tmpBuf = utils.Misc.ToByteArray(numType.Data);
|
|
8162
|
-
break;
|
|
8163
|
-
case utils.StorageAttribute.BOOLEAN:
|
|
8164
|
-
tmpBuf = GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal);
|
|
8165
|
-
break;
|
|
8166
|
-
case utils.StorageAttribute.ALPHA:
|
|
8167
|
-
itemVal = utils.StrUtil.rtrim(itemVal);
|
|
8168
|
-
valueSize = utils.UtilStrByteMode.lenB(itemVal).toString(16).toUpperCase();
|
|
8169
|
-
for (var j = 0; j < 4 - valueSize.length; j++)
|
|
8170
|
-
tmpBufLen += "0";
|
|
8171
|
-
tmpBufLen += valueSize;
|
|
8172
|
-
tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
|
|
8173
|
-
tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
|
|
8174
|
-
tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
|
|
8175
|
-
break;
|
|
8176
|
-
case utils.StorageAttribute.UNICODE:
|
|
8177
|
-
itemVal = utils.StrUtil.rtrim(itemVal);
|
|
8178
|
-
valueSize = (itemVal.length.toString(16)).toUpperCase();
|
|
8179
|
-
for (var j = 0; j < 4 - valueSize.length; j++)
|
|
8180
|
-
tmpBufLen += "0";
|
|
8181
|
-
tmpBufLen += valueSize;
|
|
8182
|
-
tmpBuf = new Uint8Array(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length + GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal).length);
|
|
8183
|
-
tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), 0);
|
|
8184
|
-
tmpBuf.set(GuiEnvironment.Environment.GetEncoding().GetBytes(itemVal), GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
|
|
8185
|
-
break;
|
|
8186
|
-
case utils.StorageAttribute.BLOB:
|
|
8187
|
-
pos = 0;
|
|
8188
|
-
fldValLen = mscorelib.ISO_8859_1_Encoding.ISO_8859_1.GetByteCount(itemVal);
|
|
8189
|
-
noOfPackets = Math.floor(fldValLen / 0xFFFF);
|
|
8190
|
-
tmpBufLen = "FFFF";
|
|
8191
|
-
tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen);
|
|
8192
|
-
for (var i = 0; i < noOfPackets; i++) {
|
|
8193
|
-
tempItemVal = itemVal.substr(pos, 0xFFFF);
|
|
8194
|
-
pos += 0xFFFF;
|
|
8195
|
-
var tempItemValBytes = mscorelib.ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
|
|
8196
|
-
contentWithLength = new Uint8Array(tmpNoOfPackets.length + tempItemValBytes.length);
|
|
8197
|
-
contentWithLength.set(tmpNoOfPackets);
|
|
8198
|
-
contentWithLength.set(tempItemValBytes, tmpNoOfPackets.length);
|
|
8199
|
-
}
|
|
8200
|
-
var lastPacketSize = fldValLen % 0xFFFF;
|
|
8201
|
-
if (lastPacketSize > 0) {
|
|
8202
|
-
tempItemVal = itemVal.substr(pos, (fldValLen) - (pos));
|
|
8203
|
-
var tempItemValBytes = mscorelib.ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal);
|
|
8204
|
-
tmpBufLen = mscorelib.NString.Format(String.fromCharCode(tempItemValBytes.length), "X4");
|
|
8205
|
-
var tempContentWithLength = new Uint8Array(contentWithLength.length +
|
|
8206
|
-
GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length +
|
|
8207
|
-
mscorelib.ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal).length);
|
|
8208
|
-
tempContentWithLength.set(contentWithLength);
|
|
8209
|
-
tempContentWithLength.set(GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen), contentWithLength.length);
|
|
8210
|
-
tempContentWithLength.set(mscorelib.ISO_8859_1_Encoding.ISO_8859_1.GetBytes(tempItemVal), contentWithLength.length + GuiEnvironment.Environment.GetEncoding().GetBytes(tmpBufLen).length);
|
|
8211
|
-
contentWithLength = tempContentWithLength;
|
|
8212
|
-
noOfPackets++;
|
|
8213
|
-
}
|
|
8214
|
-
tmpStrNoOfPackets = mscorelib.NString.Format(String.fromCharCode(noOfPackets), "D4");
|
|
8215
|
-
tmpNoOfPackets = GuiEnvironment.Environment.GetEncoding().GetBytes(tmpStrNoOfPackets);
|
|
8216
|
-
tmpBuf = new Uint8Array(contentWithLength.length + tmpNoOfPackets.length);
|
|
8217
|
-
tmpBuf.set(tmpNoOfPackets);
|
|
8218
|
-
tmpBuf.set(contentWithLength, tmpNoOfPackets.length);
|
|
8219
|
-
break;
|
|
8220
|
-
}
|
|
8221
|
-
return tmpBuf;
|
|
8222
|
-
};
|
|
8223
|
-
RecordUtils.serializeItemVal_1 = function (itemVal, itemAttr, cellAttr, toBase64) {
|
|
8224
8139
|
mscorelib.Debug.Assert(itemVal != null);
|
|
8225
8140
|
var significantNumSize = GuiEnvironment.Environment.GetSignificantNumSize() * 2;
|
|
8226
8141
|
var valueSize;
|
|
@@ -13933,8 +13848,6 @@
|
|
|
13933
13848
|
_this._ditIdx = 0;
|
|
13934
13849
|
_this._linkedControls = null;
|
|
13935
13850
|
_this._field = null;
|
|
13936
|
-
_this._nodeIdField = null;
|
|
13937
|
-
_this._nodeParentIdField = null;
|
|
13938
13851
|
_this._picStr = null;
|
|
13939
13852
|
_this._choiceDisps = null;
|
|
13940
13853
|
_this._choiceLayerList = null;
|