qcobjects 2.5.142-beta → 2.6.2

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.
@@ -283,9 +283,9 @@ var init_platform = __esm({
283
283
  return r;
284
284
  })(name);
285
285
  }, "_require_");
286
- is_phonegap = /* @__PURE__ */ function() {
286
+ is_phonegap = /* @__PURE__ */ (function() {
287
287
  return typeof cordova !== "undefined";
288
- }();
288
+ })();
289
289
  }
290
290
  });
291
291
 
@@ -405,7 +405,7 @@ var init_DOMCreateElement = __esm({
405
405
  });
406
406
  }
407
407
  if (Array.isArray(children)) {
408
- children.filter((child) => child instanceof Node).forEach((child) => {
408
+ children.filter(((child) => child instanceof Node)).forEach((child) => {
409
409
  element.appendChild(child);
410
410
  });
411
411
  } else if (children instanceof Node) {
@@ -436,9 +436,9 @@ var init_introspection = __esm({
436
436
  "src/introspection.ts"() {
437
437
  "use strict";
438
438
  _protected_code_ = /* @__PURE__ */ __name((_) => {
439
- const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : function() {
439
+ const __oldtoString = typeof _.prototype !== "undefined" ? _.prototype.toString : (function() {
440
440
  return "";
441
- };
441
+ });
442
442
  if (typeof _.prototype !== "undefined") {
443
443
  _.prototype.toString = function() {
444
444
  const _protected_symbols = [
@@ -1226,27 +1226,31 @@ var init_Base64 = __esm({
1226
1226
  });
1227
1227
 
1228
1228
  // src/basePath.ts
1229
- import process2 from "node:process";
1230
1229
  var _basePath_, setBasePath;
1231
1230
  var init_basePath = __esm({
1232
1231
  "src/basePath.ts"() {
1233
1232
  "use strict";
1234
1233
  init_platform();
1235
- _basePath_ = function() {
1234
+ _basePath_ = (function() {
1236
1235
  let _basePath = "";
1237
1236
  if (isBrowser) {
1238
1237
  const baseURI = document.baseURI.split("?")[0].split("/");
1239
1238
  baseURI.pop();
1240
1239
  _basePath = baseURI.join("/") + "/";
1241
1240
  } else {
1242
- if (typeof process2 !== "undefined") {
1243
- _basePath = `${process2.cwd()}/`;
1244
- } else {
1241
+ try {
1242
+ const nodeProcess = __require("node:process");
1243
+ if (typeof nodeProcess !== "undefined") {
1244
+ _basePath = `${nodeProcess.cwd()}/`;
1245
+ } else {
1246
+ _basePath = "";
1247
+ }
1248
+ } catch {
1245
1249
  _basePath = "";
1246
1250
  }
1247
1251
  }
1248
1252
  return _basePath;
1249
- }();
1253
+ })();
1250
1254
  setBasePath = /* @__PURE__ */ __name((value) => {
1251
1255
  _basePath_ = value;
1252
1256
  }, "setBasePath");
@@ -1483,14 +1487,14 @@ var init_CONFIG = __esm({
1483
1487
  }
1484
1488
  let _conf;
1485
1489
  try {
1486
- _conf = function(config) {
1490
+ _conf = (function(config) {
1487
1491
  if (config._CONFIG_ENC === null) {
1488
1492
  config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
1489
1493
  }
1490
1494
  const _protectedEnc = config._CONFIG_ENC.valueOf();
1491
1495
  const _protectedConf = config._CONFIG?.valueOf();
1492
1496
  return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
1493
- }(ConfigSettings.instance);
1497
+ })(ConfigSettings.instance);
1494
1498
  } catch (e) {
1495
1499
  _conf = {};
1496
1500
  console.error(e);
@@ -1503,14 +1507,14 @@ var init_CONFIG = __esm({
1503
1507
  get(name, _default) {
1504
1508
  let _value;
1505
1509
  try {
1506
- const _conf = function(config) {
1510
+ const _conf = (function(config) {
1507
1511
  if (config._CONFIG_ENC === null) {
1508
1512
  config._CONFIG_ENC = _Crypt.encrypt(_DataStringify({}), _secretKey);
1509
1513
  }
1510
1514
  const _protectedEnc = config._CONFIG_ENC.valueOf();
1511
1515
  const _protectedConf = config._CONFIG.valueOf();
1512
1516
  return _CastProps(_protectedConf, _DecryptObject(_protectedEnc));
1513
- }(ConfigSettings.instance);
1517
+ })(ConfigSettings.instance);
1514
1518
  if (typeof _conf[name] !== "undefined") {
1515
1519
  _value = _conf[name];
1516
1520
  }
@@ -4052,7 +4056,6 @@ var init_defaultProcessors = __esm({
4052
4056
  });
4053
4057
 
4054
4058
  // src/findPackageNodePath.ts
4055
- import fs from "node:fs";
4056
4059
  var findPackageNodePath;
4057
4060
  var init_findPackageNodePath = __esm({
4058
4061
  "src/findPackageNodePath.ts"() {
@@ -4065,6 +4068,7 @@ var init_findPackageNodePath = __esm({
4065
4068
  let sdkPath = null;
4066
4069
  if (!isBrowser) {
4067
4070
  try {
4071
+ const fs = __require("node:fs");
4068
4072
  let sdkPaths = [
4069
4073
  `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
4070
4074
  `${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
@@ -4347,11 +4351,11 @@ var init_ArrayCollection = __esm({
4347
4351
  }, 0);
4348
4352
  }
4349
4353
  sortBy(propName, sortAsc) {
4350
- const sort_function = sortAsc ? function(prev, current) {
4354
+ const sort_function = sortAsc ? (function(prev, current) {
4351
4355
  return current[propName] < prev[propName] ? 1 : -1;
4352
- } : function(prev, current) {
4356
+ }) : (function(prev, current) {
4353
4357
  return current[propName] > prev[propName] ? 1 : -1;
4354
- };
4358
+ });
4355
4359
  return this.sort(sort_function);
4356
4360
  }
4357
4361
  matrix(length, fillValue) {
@@ -4418,7 +4422,7 @@ var init_ArrayCollection = __esm({
4418
4422
  const self2 = this;
4419
4423
  let _index = 0;
4420
4424
  self2.source = New(ClassFactory("ArrayList"), source);
4421
- for (const _k in self2.source) {
4425
+ for (const _k of Object.keys(self2.source)) {
4422
4426
  if (!isNaN(_k)) {
4423
4427
  logger.debug("binding " + _k.toString());
4424
4428
  (function(_pname) {
@@ -4485,7 +4489,7 @@ var init_Tag = __esm({
4485
4489
  findElements(elementName) {
4486
4490
  const _o = New(ClassFactory("TagElements"));
4487
4491
  if (isBrowser) {
4488
- for (const _k in this) {
4492
+ for (const _k of Object.keys(this)) {
4489
4493
  if (typeof _k === "number" && typeof this[_k] !== "function" && Object.hasOwn(this[_k], "subelements")) {
4490
4494
  _o.push(this[_k].subelements(elementName));
4491
4495
  }
@@ -4703,7 +4707,7 @@ var require_MainProcess = __commonJS({
4703
4707
  init_globalSettings();
4704
4708
  init_loadSDK();
4705
4709
  init_range();
4706
- (/* @__PURE__ */ __name(function __qcobjects__(_top2) {
4710
+ (/* @__PURE__ */ __name((function __qcobjects__(_top2) {
4707
4711
  if (typeof Object.defineProperty !== "undefined" && typeof _top2 !== "undefined") {
4708
4712
  try {
4709
4713
  Object.defineProperty(_top2, "__qcobjects__", {
@@ -4876,11 +4880,11 @@ var require_MainProcess = __commonJS({
4876
4880
  _protected_code_(Array.max);
4877
4881
  _protected_code_(Array.prototype.max);
4878
4882
  Array.prototype.sortBy = function(propName, sortAsc = true) {
4879
- const sort_function = sortAsc ? function(prev, current) {
4883
+ const sort_function = sortAsc ? (function(prev, current) {
4880
4884
  return current[propName] < prev[propName] ? 1 : -1;
4881
- } : function(prev, current) {
4885
+ }) : (function(prev, current) {
4882
4886
  return current[propName] > prev[propName] ? 1 : -1;
4883
- };
4887
+ });
4884
4888
  return this.sort(sort_function);
4885
4889
  };
4886
4890
  Array.sortBy = function(a, propName, sortAsc = true) {
@@ -5051,7 +5055,7 @@ var require_MainProcess = __commonJS({
5051
5055
  }
5052
5056
  })(isBrowser);
5053
5057
  }
5054
- }, "__qcobjects__"))(_top);
5058
+ }), "__qcobjects__"))(_top);
5055
5059
  }
5056
5060
  });
5057
5061
 
@@ -5439,7 +5443,7 @@ var SourceJS = class extends InheritClass {
5439
5443
  const context = this;
5440
5444
  try {
5441
5445
  document.getElementsByTagName(context.containerTag)[0].appendChild(
5442
- function(s, url, context2) {
5446
+ (function(s, url, context2) {
5443
5447
  s.type = context2.type;
5444
5448
  s.src = url;
5445
5449
  s.crossOrigin = Object.hasOwn(context2, "crossOrigin") ? context2.crossOrigin : "anonymous";
@@ -5459,7 +5463,7 @@ var SourceJS = class extends InheritClass {
5459
5463
  };
5460
5464
  context2.body = s;
5461
5465
  return s;
5462
- }.call(
5466
+ }).call(
5463
5467
  this,
5464
5468
  _DOMCreateElement("script"),
5465
5469
  this.external ? this.url : this.basePath + this.url,
@@ -5522,7 +5526,7 @@ var SourceCSS = class extends InheritClass {
5522
5526
  const context = this;
5523
5527
  if (isBrowser) {
5524
5528
  window.document.getElementsByTagName("head")[0].appendChild(
5525
- function(s, url, context2) {
5529
+ (function(s, url, context2) {
5526
5530
  s.type = "text/css";
5527
5531
  s.rel = "stylesheet";
5528
5532
  s.href = url;
@@ -5535,7 +5539,7 @@ var SourceCSS = class extends InheritClass {
5535
5539
  s.onload = context2.done;
5536
5540
  context2.body = s;
5537
5541
  return s;
5538
- }.call(
5542
+ }).call(
5539
5543
  this,
5540
5544
  _DOMCreateElement("link"),
5541
5545
  this.external ? this.url : this.basePath + this.url,