qcobjects 2.5.123-beta → 2.5.125-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.123-beta
1
+ 2.5.125-beta
package/build/Import.js CHANGED
@@ -47,8 +47,8 @@ const Import = function (packagename, ready, external) {
47
47
  const readyImported = function (e) {
48
48
  PrimaryCollections_1._QC_PACKAGES_IMPORTED.push(ready);
49
49
  if (allPackagesImported()) {
50
- PrimaryCollections_1._QC_PACKAGES_IMPORTED.map(function (_imported_) {
51
- PrimaryCollections_1._QC_READY_LISTENERS.push(_imported_);
50
+ PrimaryCollections_1._QC_PACKAGES_IMPORTED.map((_imported_) => {
51
+ return PrimaryCollections_1._QC_READY_LISTENERS.push(_imported_);
52
52
  });
53
53
  }
54
54
  if (platform_1.isBrowser && CONFIG_1.CONFIG.get("removePackageScriptAfterLoading")) {
@@ -44,8 +44,8 @@ class Processor extends InheritClass_1.InheritClass {
44
44
  process(template, component = null) {
45
45
  const processorHandler = (component !== null) ? (component.processorHandler) : ((0, New_1.New)(Processor, { component: null }));
46
46
  if (typeof template === "string") {
47
- Object.keys(processorHandler.processors).map(function (funcName) {
48
- [...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(function (procesorMatch) {
47
+ Object.keys(processorHandler.processors).map((funcName) => {
48
+ return [...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(function (procesorMatch) {
49
49
  const match0 = `$${funcName}(${procesorMatch[1]})`;
50
50
  template = template.replace(match0, processorHandler.execute.bind(processorHandler).call(processorHandler, component, funcName, procesorMatch[1]));
51
51
  return procesorMatch;
@@ -62,11 +62,11 @@ var __importStar = (this && this.__importStar) || (function () {
62
62
  };
63
63
  })();
64
64
  Object.defineProperty(exports, "__esModule", { value: true });
65
- exports._buildComponentsFromElements_ = exports.componentLoader = exports.serviceLoader = exports.captureFalseTouch = exports.Ready = exports.ready = exports._Ready = exports.New = exports.Processor = exports.shortCode = exports._super_ = exports.InheritClass = exports.Class = exports.Export = exports.ClassFactory = exports.Package = exports.isQCObjects_Object = exports.isQCObjects_Class = exports._CastProps = exports._Cast = exports.waitUntil = exports.ComplexStorageCache = exports.is_a = exports.__getType__ = exports.ObjectName = exports.__instanceID = exports.asyncLoad = exports._fireAsyncLoad = exports._LegacyCopy = exports.__is_raw_class__ = exports.subelements = exports.isNodeCommonJS = exports.isBrowser = exports.is_phonegap = exports._require_ = exports.Logger = exports.logger = exports._protected_code_ = exports._methods_ = exports._DOMCreateElement = exports._DataStringify = exports._QC_READY_LISTENERS = exports._QC_PACKAGES_IMPORTED = exports._QC_PACKAGES = exports._QC_CLASSES = exports.resetTop = exports._top = exports.QCObjects = exports.__top__ = exports.AssignPolyfill = void 0;
65
+ exports._buildComponentsFromElements_ = exports.componentLoader = exports.serviceLoader = exports.captureFalseTouch = exports.Ready = exports.ready = exports._Ready = exports.New = exports.Processor = exports.shortCode = exports._super_ = exports.InheritClass = exports.Class = exports.Export = exports.ClassFactory = exports.Package = exports.isQCObjects_Object = exports.isQCObjects_Class = exports._CastProps = exports._Cast = exports.waitUntil = exports.ComplexStorageCache = exports.is_a = exports.__getType__ = exports.ObjectName = exports.__instanceID = exports.asyncLoad = exports._fireAsyncLoad = exports._LegacyCopy = exports.__is_raw_class__ = exports.subelements = exports.isNodeCommonJS = exports.isBrowser = exports.is_phonegap = exports._require_ = exports.Logger = exports.logger = exports._protected_code_ = exports._methods_ = exports._DOMCreateElement = exports._DataStringify = exports._QC_READY_LISTENERS = exports._QC_PACKAGES_IMPORTED = exports._QC_PACKAGES = exports._QC_CLASSES = exports.resetTop = exports._top = exports.qcobjects = exports.__top__ = exports.AssignPolyfill = void 0;
66
66
  exports.set = exports.get = exports.__make_global__ = exports.global = exports.__to_number = exports.getDocumentLayout = exports.findPackageNodePath = exports.Toggle = exports.DDO = exports.ArrayList = exports.ArrayCollection = exports.range = exports._tag_filter_ = exports.Timer = exports.TransitionEffect = exports.Effect = exports.VO = exports.Service = exports.JSONService = exports.ConfigService = exports.View = exports.Controller = exports.CONFIG = exports.RegisterWidgets = exports.RegisterWidget = exports._ComponentWidget_ = exports.RegisterClass = exports.GlobalSettings = exports.SourceCSS = exports.SourceJS = exports.DefaultTemplateHandler = exports._Crypt = exports.Component = exports.BackendMicroservice = exports.Import = exports.TagElements = exports.Tag = exports.setDefaultProcessors = exports.NamespaceRef = exports.ComponentURI = void 0;
67
67
  exports.AssignPolyfill = __importStar(require("./assign"));
68
68
  exports.__top__ = __importStar(require("./top"));
69
- exports.QCObjects = __importStar(require("./MainProcess"));
69
+ exports.qcobjects = __importStar(require("./MainProcess"));
70
70
  var top_1 = require("./top");
71
71
  Object.defineProperty(exports, "_top", { enumerable: true, get: function () { return top_1._top; } });
72
72
  Object.defineProperty(exports, "resetTop", { enumerable: true, get: function () { return top_1.resetTop; } });
@@ -219,4 +219,3 @@ Object.defineProperty(exports, "__make_global__", { enumerable: true, get: funct
219
219
  var top_3 = require("./top");
220
220
  Object.defineProperty(exports, "get", { enumerable: true, get: function () { return top_3.get; } });
221
221
  Object.defineProperty(exports, "set", { enumerable: true, get: function () { return top_3.set; } });
222
- exports.default = {};
@@ -485,7 +485,7 @@ if (platform_1.isBrowser) {
485
485
  if (!componentWidget.hasAttribute("shadowed")) {
486
486
  componentBody.setAttribute("shadowed", "true");
487
487
  }
488
- __enabled__atributes__.map(function (attributeName) {
488
+ __enabled__atributes__.forEach((attributeName) => {
489
489
  if (componentWidget.hasAttribute(attributeName)) {
490
490
  componentBody.setAttribute(attributeName, componentWidget?.getAttribute(attributeName));
491
491
  componentWidget.removeAttribute(attributeName);
@@ -496,11 +496,11 @@ if (platform_1.isBrowser) {
496
496
  }).map(function (a) {
497
497
  return a.split("-")[1];
498
498
  });
499
- data_attributenames.map(function (_attribute_name_) {
499
+ data_attributenames.forEach(function (_attribute_name_) {
500
500
  componentBody.setAttribute("data-" + _attribute_name_, componentWidget?.getAttribute("data-" + _attribute_name_));
501
501
  componentWidget.removeAttribute("data-" + _attribute_name_);
502
502
  });
503
- [...componentWidget.children].map(function (element) {
503
+ [...componentWidget.children].forEach((element) => {
504
504
  componentBody.appendChild(element.cloneNode(true));
505
505
  element.remove();
506
506
  });
package/build/index.cjs CHANGED
@@ -1,7 +1,37 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
5
35
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const QCObjects_js_1 = __importDefault(require("./QCObjects.js"));
7
- module.exports = QCObjects_js_1.default;
36
+ const QCObjects = __importStar(require("./qcobjects.js"));
37
+ module.exports = QCObjects;
package/build/index.js CHANGED
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- const QCObjects = __importStar(require("./QCObjects"));
36
+ const QCObjects = __importStar(require("./qcobjects"));
37
37
  exports.default = QCObjects;
package/build/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import QCObjects from "./QCObjects.js";
1
+ import * as QCObjects from "./qcobjects.js";
2
2
  export default QCObjects;
package/build-esbuild.js CHANGED
@@ -4,7 +4,7 @@ const alias = require("esbuild-plugin-alias");
4
4
  const path = require("path");
5
5
 
6
6
  const baseSettings = {
7
- entryPoints: ["src/QCObjects.ts"], // Your entry file
7
+ entryPoints: ["src/qcobjects.ts"], // Your entry file
8
8
  bundle: true,
9
9
  outdir: "public/cjs", // Output dir
10
10
  format: "cjs", // or "esm" depending on your module system
@@ -32,7 +32,7 @@ const baseSettings = {
32
32
  };
33
33
 
34
34
  const cjsSettings = {...baseSettings,
35
- entryPoints: ["src/QCObjects.ts"], // Your entry file
35
+ entryPoints: ["src/qcobjects.ts"], // Your entry file
36
36
  outdir: "public/cjs", // Output dir
37
37
  format: "cjs", // or "esm" depending on your module system
38
38
  platform: "node", // or "browser" depending on your target environment
@@ -43,7 +43,7 @@ const cjsSettings = {...baseSettings,
43
43
  };
44
44
 
45
45
  const esmSettings = {...baseSettings,
46
- entryPoints: ["src/QCObjects.ts"], // Your entry file
46
+ entryPoints: ["src/qcobjects.ts"], // Your entry file
47
47
  outdir: "public/esm", // Output dir
48
48
  format: "esm", // or "esm" depending on your module system
49
49
  platform: "browser", // or "browser" depending on your target environment
@@ -54,7 +54,7 @@ const esmSettings = {...baseSettings,
54
54
  };
55
55
 
56
56
  const browserSettings = {...baseSettings,
57
- entryPoints: ["src/QCObjects.ts"], // Your entry file
57
+ entryPoints: ["src/qcobjects.ts"], // Your entry file
58
58
  bundle: true,
59
59
  outdir: "public/browser", // Output dir
60
60
  format: "iife", // or "esm" depending on your module system
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.5.123-beta",
3
+ "version": "2.5.125-beta",
4
4
  "description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
5
5
  "main": "public/cjs/QCObjects.cjs",
6
6
  "module": "public/esm/QCObjects.mjs",
@@ -1629,8 +1629,8 @@ var global = (() => {
1629
1629
  process(template, component = null) {
1630
1630
  const processorHandler = component !== null ? component.processorHandler : New(_Processor, { component: null });
1631
1631
  if (typeof template === "string") {
1632
- Object.keys(processorHandler.processors).map(function(funcName) {
1633
- [...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(
1632
+ Object.keys(processorHandler.processors).map((funcName) => {
1633
+ return [...template.matchAll(new RegExp("\\$" + funcName + "\\((.*)\\).*", "g"))].map(
1634
1634
  function(procesorMatch) {
1635
1635
  const match0 = `$${funcName}(${procesorMatch[1]})`;
1636
1636
  template = template.replace(match0, processorHandler.execute.bind(processorHandler).call(processorHandler, component, funcName, procesorMatch[1]));
@@ -4151,8 +4151,8 @@ var global = (() => {
4151
4151
  const readyImported = /* @__PURE__ */ __name(function(e) {
4152
4152
  _QC_PACKAGES_IMPORTED.push(ready2);
4153
4153
  if (allPackagesImported()) {
4154
- _QC_PACKAGES_IMPORTED.map(function(_imported_) {
4155
- _QC_READY_LISTENERS.push(_imported_);
4154
+ _QC_PACKAGES_IMPORTED.map((_imported_) => {
4155
+ return _QC_READY_LISTENERS.push(_imported_);
4156
4156
  });
4157
4157
  }
4158
4158
  if (isBrowser && CONFIG.get("removePackageScriptAfterLoading")) {
@@ -5067,9 +5067,9 @@ var global = (() => {
5067
5067
  }
5068
5068
  });
5069
5069
 
5070
- // src/QCObjects.ts
5071
- var QCObjects_exports = {};
5072
- __export(QCObjects_exports, {
5070
+ // src/qcobjects.ts
5071
+ var qcobjects_exports = {};
5072
+ __export(qcobjects_exports, {
5073
5073
  ArrayCollection: () => ArrayCollection,
5074
5074
  ArrayList: () => ArrayList,
5075
5075
  AssignPolyfill: () => AssignPolyfill,
@@ -5096,7 +5096,6 @@ var global = (() => {
5096
5096
  ObjectName: () => ObjectName,
5097
5097
  Package: () => Package,
5098
5098
  Processor: () => Processor,
5099
- QCObjects: () => QCObjects,
5100
5099
  Ready: () => Ready,
5101
5100
  RegisterClass: () => RegisterClass,
5102
5101
  RegisterWidget: () => RegisterWidget,
@@ -5140,7 +5139,6 @@ var global = (() => {
5140
5139
  asyncLoad: () => asyncLoad,
5141
5140
  captureFalseTouch: () => captureFalseTouch,
5142
5141
  componentLoader: () => componentLoader,
5143
- default: () => QCObjects_default,
5144
5142
  findPackageNodePath: () => findPackageNodePath,
5145
5143
  get: () => get,
5146
5144
  getDocumentLayout: () => getDocumentLayout,
@@ -5152,6 +5150,7 @@ var global = (() => {
5152
5150
  is_a: () => is_a,
5153
5151
  is_phonegap: () => is_phonegap,
5154
5152
  logger: () => logger,
5153
+ qcobjects: () => qcobjects,
5155
5154
  range: () => range,
5156
5155
  ready: () => ready,
5157
5156
  resetTop: () => resetTop,
@@ -5164,7 +5163,7 @@ var global = (() => {
5164
5163
  });
5165
5164
  var AssignPolyfill = __toESM(require_assign());
5166
5165
  init_top();
5167
- var QCObjects = __toESM(require_MainProcess());
5166
+ var qcobjects = __toESM(require_MainProcess());
5168
5167
  init_top();
5169
5168
  init_PrimaryCollections();
5170
5169
  init_DataStringify();
@@ -5411,7 +5410,7 @@ var global = (() => {
5411
5410
  BackendMicroservice
5412
5411
  ]);
5413
5412
 
5414
- // src/QCObjects.ts
5413
+ // src/qcobjects.ts
5415
5414
  init_Component();
5416
5415
  init_Crypt();
5417
5416
 
@@ -5626,7 +5625,7 @@ var global = (() => {
5626
5625
  };
5627
5626
  Package("com.qcobjects", [SourceCSS]);
5628
5627
 
5629
- // src/QCObjects.ts
5628
+ // src/qcobjects.ts
5630
5629
  init_globalSettings();
5631
5630
 
5632
5631
  // src/WidgetsFactory.ts
@@ -6120,7 +6119,7 @@ var global = (() => {
6120
6119
  if (!componentWidget.hasAttribute("shadowed")) {
6121
6120
  componentBody.setAttribute("shadowed", "true");
6122
6121
  }
6123
- __enabled__atributes__.map(function(attributeName) {
6122
+ __enabled__atributes__.forEach((attributeName) => {
6124
6123
  if (componentWidget.hasAttribute(attributeName)) {
6125
6124
  componentBody.setAttribute(attributeName, componentWidget?.getAttribute(attributeName));
6126
6125
  componentWidget.removeAttribute(attributeName);
@@ -6131,11 +6130,11 @@ var global = (() => {
6131
6130
  }).map(function(a) {
6132
6131
  return a.split("-")[1];
6133
6132
  });
6134
- data_attributenames.map(function(_attribute_name_) {
6133
+ data_attributenames.forEach(function(_attribute_name_) {
6135
6134
  componentBody.setAttribute("data-" + _attribute_name_, componentWidget?.getAttribute("data-" + _attribute_name_));
6136
6135
  componentWidget.removeAttribute("data-" + _attribute_name_);
6137
6136
  });
6138
- [...componentWidget.children].map(function(element) {
6137
+ [...componentWidget.children].forEach((element) => {
6139
6138
  componentBody.appendChild(element.cloneNode(true));
6140
6139
  element.remove();
6141
6140
  });
@@ -6175,7 +6174,7 @@ var global = (() => {
6175
6174
  Export(RegisterWidget);
6176
6175
  Export(RegisterWidgets);
6177
6176
 
6178
- // src/QCObjects.ts
6177
+ // src/qcobjects.ts
6179
6178
  init_CONFIG();
6180
6179
 
6181
6180
  // src/Controller.ts
@@ -6277,7 +6276,7 @@ var global = (() => {
6277
6276
  View
6278
6277
  ]);
6279
6278
 
6280
- // src/QCObjects.ts
6279
+ // src/qcobjects.ts
6281
6280
  init_Service();
6282
6281
 
6283
6282
  // src/VO.ts
@@ -6445,7 +6444,7 @@ var global = (() => {
6445
6444
  Timer
6446
6445
  ]);
6447
6446
 
6448
- // src/QCObjects.ts
6447
+ // src/qcobjects.ts
6449
6448
  init_tag_filter();
6450
6449
  init_range();
6451
6450
  init_ArrayCollection();
@@ -6585,7 +6584,7 @@ var global = (() => {
6585
6584
  Toggle
6586
6585
  ]);
6587
6586
 
6588
- // src/QCObjects.ts
6587
+ // src/qcobjects.ts
6589
6588
  init_findPackageNodePath();
6590
6589
 
6591
6590
  // src/DocumentLayout.ts
@@ -6606,12 +6605,11 @@ var global = (() => {
6606
6605
  ].filter((e) => e !== null).pop();
6607
6606
  }, "getDocumentLayout");
6608
6607
 
6609
- // src/QCObjects.ts
6608
+ // src/qcobjects.ts
6610
6609
  init_mathFunctions();
6611
6610
  init_top();
6612
6611
  init_make_global();
6613
6612
  init_top();
6614
- var QCObjects_default = {};
6615
- return __toCommonJS(QCObjects_exports);
6613
+ return __toCommonJS(qcobjects_exports);
6616
6614
  })();
6617
- //# sourceMappingURL=QCObjects.js.map
6615
+ //# sourceMappingURL=qcobjects.js.map