qcobjects 2.5.123-beta → 2.5.124-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.124-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; } });
@@ -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
@@ -3,5 +3,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const QCObjects_js_1 = __importDefault(require("./QCObjects.js"));
7
- module.exports = QCObjects_js_1.default;
6
+ const qcobjects_js_1 = __importDefault(require("./qcobjects.js"));
7
+ module.exports = qcobjects_js_1.default;
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 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects",
3
- "version": "2.5.123-beta",
3
+ "version": "2.5.124-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")) {
@@ -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,
@@ -5152,6 +5151,7 @@ var global = (() => {
5152
5151
  is_a: () => is_a,
5153
5152
  is_phonegap: () => is_phonegap,
5154
5153
  logger: () => logger,
5154
+ qcobjects: () => qcobjects,
5155
5155
  range: () => range,
5156
5156
  ready: () => ready,
5157
5157
  resetTop: () => resetTop,
@@ -5164,7 +5164,7 @@ var global = (() => {
5164
5164
  });
5165
5165
  var AssignPolyfill = __toESM(require_assign());
5166
5166
  init_top();
5167
- var QCObjects = __toESM(require_MainProcess());
5167
+ var qcobjects = __toESM(require_MainProcess());
5168
5168
  init_top();
5169
5169
  init_PrimaryCollections();
5170
5170
  init_DataStringify();
@@ -6120,7 +6120,7 @@ var global = (() => {
6120
6120
  if (!componentWidget.hasAttribute("shadowed")) {
6121
6121
  componentBody.setAttribute("shadowed", "true");
6122
6122
  }
6123
- __enabled__atributes__.map(function(attributeName) {
6123
+ __enabled__atributes__.forEach((attributeName) => {
6124
6124
  if (componentWidget.hasAttribute(attributeName)) {
6125
6125
  componentBody.setAttribute(attributeName, componentWidget?.getAttribute(attributeName));
6126
6126
  componentWidget.removeAttribute(attributeName);
@@ -6131,11 +6131,11 @@ var global = (() => {
6131
6131
  }).map(function(a) {
6132
6132
  return a.split("-")[1];
6133
6133
  });
6134
- data_attributenames.map(function(_attribute_name_) {
6134
+ data_attributenames.forEach(function(_attribute_name_) {
6135
6135
  componentBody.setAttribute("data-" + _attribute_name_, componentWidget?.getAttribute("data-" + _attribute_name_));
6136
6136
  componentWidget.removeAttribute("data-" + _attribute_name_);
6137
6137
  });
6138
- [...componentWidget.children].map(function(element) {
6138
+ [...componentWidget.children].forEach((element) => {
6139
6139
  componentBody.appendChild(element.cloneNode(true));
6140
6140
  element.remove();
6141
6141
  });