qcobjects 2.5.112-beta → 2.5.114-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 +1 -1
- package/build/QCObjects.js +3 -2
- package/build/findPackageNodePath.js +10 -11
- package/build/make_global.js +7 -13
- package/build/platform.js +3 -2
- package/build/top.js +1 -1
- package/package.json +1 -1
- package/public/browser/QCObjects.js +64 -52
- package/public/browser/QCObjects.js.map +4 -4
- package/public/cjs/QCObjects.cjs +65 -52
- package/public/cjs/QCObjects.cjs.map +4 -4
- package/public/esm/QCObjects.mjs +66 -50
- package/public/esm/QCObjects.mjs.map +4 -4
- package/public/types/index.d.ts +13 -12
- package/src/QCObjects.ts +2 -1
- package/src/make_global.ts +11 -13
- package/src/top.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.114-beta
|
package/build/QCObjects.js
CHANGED
|
@@ -52,9 +52,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
52
52
|
return result;
|
|
53
53
|
};
|
|
54
54
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55
|
-
exports.
|
|
56
|
-
exports.QCObjects = 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 = void 0;
|
|
55
|
+
exports.ComponentURI = 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.__top__ = exports.AssignPolyfill = void 0;
|
|
56
|
+
exports.QCObjects = 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 = void 0;
|
|
57
57
|
exports.AssignPolyfill = __importStar(require("./assign"));
|
|
58
|
+
exports.__top__ = __importStar(require("./top"));
|
|
58
59
|
var top_1 = require("./top");
|
|
59
60
|
Object.defineProperty(exports, "_top", { enumerable: true, get: function () { return top_1._top; } });
|
|
60
61
|
Object.defineProperty(exports, "resetTop", { enumerable: true, get: function () { return top_1.resetTop; } });
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.findPackageNodePath = void 0;
|
|
4
|
+
const _import_1 = require("./_import_");
|
|
7
5
|
const CONFIG_1 = require("./CONFIG");
|
|
8
6
|
const Export_1 = require("./Export");
|
|
9
7
|
const Logger_1 = require("./Logger");
|
|
10
8
|
const platform_1 = require("./platform");
|
|
11
|
-
const node_fs_1 = __importDefault(require("node:fs"));
|
|
12
9
|
const findPackageNodePath = function (packagename) {
|
|
13
10
|
let sdkPath = null;
|
|
14
11
|
if (!platform_1.isBrowser) {
|
|
15
|
-
|
|
12
|
+
let fs;
|
|
13
|
+
(async () => {
|
|
14
|
+
fs = await (0, _import_1._import_)("node:fs");
|
|
15
|
+
})().then(() => {
|
|
16
16
|
let sdkPaths = [
|
|
17
17
|
`${CONFIG_1.CONFIG.get("projectPath")}${CONFIG_1.CONFIG.get("relativeImportPath")}`,
|
|
18
18
|
`${CONFIG_1.CONFIG.get("basePath")}${CONFIG_1.CONFIG.get("relativeImportPath")}`,
|
|
@@ -28,7 +28,7 @@ const findPackageNodePath = function (packagename) {
|
|
|
28
28
|
""
|
|
29
29
|
].concat(module.paths);
|
|
30
30
|
sdkPaths = sdkPaths.filter(p => {
|
|
31
|
-
return (
|
|
31
|
+
return (fs).existsSync(p + "/" + packagename);
|
|
32
32
|
});
|
|
33
33
|
if (sdkPaths.length > 0) {
|
|
34
34
|
sdkPath = sdkPaths[0];
|
|
@@ -38,11 +38,10 @@ const findPackageNodePath = function (packagename) {
|
|
|
38
38
|
sdkPath = "";
|
|
39
39
|
Logger_1.logger.info(`${packagename} is not in a standard path.`);
|
|
40
40
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
41
|
+
})
|
|
42
|
+
.catch((e) => {
|
|
43
|
+
throw new Error(e);
|
|
44
|
+
});
|
|
46
45
|
}
|
|
47
46
|
return sdkPath;
|
|
48
47
|
};
|
package/build/make_global.js
CHANGED
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.__make_global__ = void 0;
|
|
4
|
-
const platform_1 = require("./platform");
|
|
5
4
|
const top_1 = require("./top");
|
|
6
5
|
const __make_global__ = function (f) {
|
|
7
|
-
if (
|
|
8
|
-
if (
|
|
9
|
-
|
|
10
|
-
top_1._top[f.name] = f;
|
|
11
|
-
window[f.name] = f;
|
|
12
|
-
}
|
|
13
|
-
catch (e) {
|
|
14
|
-
throw Error(`An error ocurred: ${e}`);
|
|
15
|
-
}
|
|
6
|
+
if (!!f && !!f.name) {
|
|
7
|
+
if (typeof top_1._top !== "undefined" && typeof f !== "undefined" && top_1._top !== null && !Object.hasOwn(top_1._top, f.name)) {
|
|
8
|
+
(0, top_1.set)(f.name, f);
|
|
16
9
|
}
|
|
17
10
|
else if (typeof global !== "undefined") {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
global[f.name] = f;
|
|
12
|
+
}
|
|
13
|
+
else if (typeof globalThis !== "undefined") {
|
|
14
|
+
globalThis[f.name] = f;
|
|
21
15
|
}
|
|
22
16
|
}
|
|
23
17
|
};
|
package/build/platform.js
CHANGED
|
@@ -13,8 +13,9 @@ const _require_ = (name) => {
|
|
|
13
13
|
return (exports.isDeno) ? ((0, exports.deno_require)(name)) : (((name) => {
|
|
14
14
|
let r;
|
|
15
15
|
try {
|
|
16
|
-
(
|
|
17
|
-
.
|
|
16
|
+
(async () => {
|
|
17
|
+
r = await (0, _import_1._import_)(name);
|
|
18
|
+
})().then((m) => {
|
|
18
19
|
r = (m && m.default) || m;
|
|
19
20
|
})
|
|
20
21
|
.catch((e) => {
|
package/build/top.js
CHANGED
|
@@ -8,7 +8,7 @@ exports._top = ((typeof module !== "undefined" && typeof module.exports !== "und
|
|
|
8
8
|
(typeof global !== "undefined" && global) ||
|
|
9
9
|
(typeof globalThis !== "undefined" && globalThis) ||
|
|
10
10
|
(typeof window !== "undefined" && window) ||
|
|
11
|
-
(typeof self !== "undefined" && self) ||
|
|
11
|
+
(typeof self !== "undefined" && self !== null && self) ||
|
|
12
12
|
this);
|
|
13
13
|
exports._top.lastCache = undefined;
|
|
14
14
|
exports.componentsStack = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.114-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",
|
|
@@ -85,6 +85,41 @@ var global = (() => {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
|
|
88
|
+
// src/make_global.ts
|
|
89
|
+
var __make_global__;
|
|
90
|
+
var init_make_global = __esm({
|
|
91
|
+
"src/make_global.ts"() {
|
|
92
|
+
"use strict";
|
|
93
|
+
init_top();
|
|
94
|
+
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
95
|
+
if (!!f && !!f.name) {
|
|
96
|
+
if (typeof _top !== "undefined" && typeof f !== "undefined" && _top !== null && !Object.hasOwn(_top, f.name)) {
|
|
97
|
+
set(f.name, f);
|
|
98
|
+
} else if (typeof global !== "undefined") {
|
|
99
|
+
global[f.name] = f;
|
|
100
|
+
} else if (typeof globalThis !== "undefined") {
|
|
101
|
+
globalThis[f.name] = f;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}, "__make_global__");
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// src/Export.ts
|
|
109
|
+
var Export;
|
|
110
|
+
var init_Export = __esm({
|
|
111
|
+
"src/Export.ts"() {
|
|
112
|
+
"use strict";
|
|
113
|
+
init_make_global();
|
|
114
|
+
Export = /* @__PURE__ */ __name(function(f) {
|
|
115
|
+
return __make_global__(f);
|
|
116
|
+
}, "Export");
|
|
117
|
+
Export.prototype.toString = function() {
|
|
118
|
+
return "Export(function or symbol) { [QCObjects native code] }";
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
88
123
|
// src/_import_.ts
|
|
89
124
|
async function _import_(name) {
|
|
90
125
|
logger.debug(`Importing ${name}...`);
|
|
@@ -129,7 +164,9 @@ var global = (() => {
|
|
|
129
164
|
return isDeno ? deno_require(name) : ((name2) => {
|
|
130
165
|
let r;
|
|
131
166
|
try {
|
|
132
|
-
|
|
167
|
+
(async () => {
|
|
168
|
+
r = await _import_(name2);
|
|
169
|
+
})().then((m) => {
|
|
133
170
|
r = m && m.default || m;
|
|
134
171
|
}).catch((e) => {
|
|
135
172
|
logger.warn(`An error ocurred: ${e}`);
|
|
@@ -147,47 +184,6 @@ var global = (() => {
|
|
|
147
184
|
}
|
|
148
185
|
});
|
|
149
186
|
|
|
150
|
-
// src/make_global.ts
|
|
151
|
-
var __make_global__;
|
|
152
|
-
var init_make_global = __esm({
|
|
153
|
-
"src/make_global.ts"() {
|
|
154
|
-
"use strict";
|
|
155
|
-
init_platform();
|
|
156
|
-
init_top();
|
|
157
|
-
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
158
|
-
if (typeof f !== "undefined") {
|
|
159
|
-
if (isBrowser) {
|
|
160
|
-
try {
|
|
161
|
-
_top[f.name] = f;
|
|
162
|
-
window[f.name] = f;
|
|
163
|
-
} catch (e) {
|
|
164
|
-
throw Error(`An error ocurred: ${e}`);
|
|
165
|
-
}
|
|
166
|
-
} else if (typeof global !== "undefined") {
|
|
167
|
-
if (!Object.hasOwn(global, f.name)) {
|
|
168
|
-
global[f.name] = f;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, "__make_global__");
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
// src/Export.ts
|
|
177
|
-
var Export;
|
|
178
|
-
var init_Export = __esm({
|
|
179
|
-
"src/Export.ts"() {
|
|
180
|
-
"use strict";
|
|
181
|
-
init_make_global();
|
|
182
|
-
Export = /* @__PURE__ */ __name(function(f) {
|
|
183
|
-
return __make_global__(f);
|
|
184
|
-
}, "Export");
|
|
185
|
-
Export.prototype.toString = function() {
|
|
186
|
-
return "Export(function or symbol) { [QCObjects native code] }";
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
|
|
191
187
|
// src/Logger.ts
|
|
192
188
|
var Logger, logger;
|
|
193
189
|
var init_Logger = __esm({
|
|
@@ -2281,9 +2277,9 @@ var global = (() => {
|
|
|
2281
2277
|
} else {
|
|
2282
2278
|
logger.debug("Loading the component as a local file in server...");
|
|
2283
2279
|
const _directLoad = /* @__PURE__ */ __name(function() {
|
|
2284
|
-
const
|
|
2280
|
+
const fs = _require_("fs");
|
|
2285
2281
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
2286
|
-
|
|
2282
|
+
fs.readFile(component2.url, _componentLoaded);
|
|
2287
2283
|
}, "_directLoad");
|
|
2288
2284
|
if (component2.cached) {
|
|
2289
2285
|
logger.debug("USING CACHE FOR COMPONENT: " + component2.name);
|
|
@@ -3776,6 +3772,17 @@ var global = (() => {
|
|
|
3776
3772
|
});
|
|
3777
3773
|
|
|
3778
3774
|
// src/top.ts
|
|
3775
|
+
var top_exports = {};
|
|
3776
|
+
__export(top_exports, {
|
|
3777
|
+
_top: () => _top,
|
|
3778
|
+
buildComponentsStack: () => buildComponentsStack,
|
|
3779
|
+
componentsStack: () => componentsStack,
|
|
3780
|
+
configService: () => configService,
|
|
3781
|
+
get: () => get,
|
|
3782
|
+
resetTop: () => resetTop,
|
|
3783
|
+
set: () => set,
|
|
3784
|
+
setConfigService: () => setConfigService
|
|
3785
|
+
});
|
|
3779
3786
|
var _top, componentsStack, resetTop, buildComponentsStack, configService, setConfigService, set, get;
|
|
3780
3787
|
var init_top = __esm({
|
|
3781
3788
|
"src/top.ts"() {
|
|
@@ -3783,7 +3790,7 @@ var global = (() => {
|
|
|
3783
3790
|
init_ComponentFactory();
|
|
3784
3791
|
init_Cast();
|
|
3785
3792
|
init_globalSettings();
|
|
3786
|
-
_top = typeof module !== "undefined" && typeof module.exports !== "undefined" && module.exports || typeof global !== "undefined" && global || typeof globalThis !== "undefined" && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self || void 0;
|
|
3793
|
+
_top = typeof module !== "undefined" && typeof module.exports !== "undefined" && module.exports || typeof global !== "undefined" && global || typeof globalThis !== "undefined" && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self !== null && self || void 0;
|
|
3787
3794
|
_top.lastCache = void 0;
|
|
3788
3795
|
componentsStack = [];
|
|
3789
3796
|
resetTop = /* @__PURE__ */ __name(() => {
|
|
@@ -4332,19 +4339,22 @@ var global = (() => {
|
|
|
4332
4339
|
});
|
|
4333
4340
|
|
|
4334
4341
|
// src/findPackageNodePath.ts
|
|
4335
|
-
var
|
|
4342
|
+
var findPackageNodePath;
|
|
4336
4343
|
var init_findPackageNodePath = __esm({
|
|
4337
4344
|
"src/findPackageNodePath.ts"() {
|
|
4338
4345
|
"use strict";
|
|
4346
|
+
init_import();
|
|
4339
4347
|
init_CONFIG();
|
|
4340
4348
|
init_Export();
|
|
4341
4349
|
init_Logger();
|
|
4342
4350
|
init_platform();
|
|
4343
|
-
import_node_fs = __toESM(__require("node:fs"));
|
|
4344
4351
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4345
4352
|
let sdkPath = null;
|
|
4346
4353
|
if (!isBrowser) {
|
|
4347
|
-
|
|
4354
|
+
let fs;
|
|
4355
|
+
(async () => {
|
|
4356
|
+
fs = await _import_("node:fs");
|
|
4357
|
+
})().then(() => {
|
|
4348
4358
|
let sdkPaths = [
|
|
4349
4359
|
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
|
|
4350
4360
|
`${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
|
|
@@ -4360,7 +4370,7 @@ var global = (() => {
|
|
|
4360
4370
|
""
|
|
4361
4371
|
].concat(module.paths);
|
|
4362
4372
|
sdkPaths = sdkPaths.filter((p) => {
|
|
4363
|
-
return
|
|
4373
|
+
return fs.existsSync(p + "/" + packagename);
|
|
4364
4374
|
});
|
|
4365
4375
|
if (sdkPaths.length > 0) {
|
|
4366
4376
|
sdkPath = sdkPaths[0];
|
|
@@ -4369,9 +4379,9 @@ var global = (() => {
|
|
|
4369
4379
|
sdkPath = "";
|
|
4370
4380
|
logger.info(`${packagename} is not in a standard path.`);
|
|
4371
4381
|
}
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
|
-
}
|
|
4382
|
+
}).catch((e) => {
|
|
4383
|
+
throw new Error(e);
|
|
4384
|
+
});
|
|
4375
4385
|
}
|
|
4376
4386
|
return sdkPath;
|
|
4377
4387
|
}, "findPackageNodePath");
|
|
@@ -5108,6 +5118,7 @@ var global = (() => {
|
|
|
5108
5118
|
__is_raw_class__: () => __is_raw_class__,
|
|
5109
5119
|
__make_global__: () => __make_global__,
|
|
5110
5120
|
__to_number: () => __to_number,
|
|
5121
|
+
__top__: () => top_exports,
|
|
5111
5122
|
_buildComponentsFromElements_: () => _buildComponentsFromElements_,
|
|
5112
5123
|
_fireAsyncLoad: () => _fireAsyncLoad,
|
|
5113
5124
|
_methods_: () => _methods_,
|
|
@@ -5142,6 +5153,7 @@ var global = (() => {
|
|
|
5142
5153
|
});
|
|
5143
5154
|
var AssignPolyfill = __toESM(require_assign());
|
|
5144
5155
|
init_top();
|
|
5156
|
+
init_top();
|
|
5145
5157
|
init_PrimaryCollections();
|
|
5146
5158
|
init_DataStringify();
|
|
5147
5159
|
init_DOMCreateElement();
|