qcobjects 2.4.28-beta → 2.4.30-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/QCObjects.js +49 -22
- package/VERSION +1 -1
- package/package.json +1 -1
package/QCObjects.js
CHANGED
|
@@ -706,9 +706,9 @@
|
|
|
706
706
|
var ret = "";
|
|
707
707
|
if (typeof o === "function" && Object.hasOwnProperty.call(o, "name") && o.name !== "") {
|
|
708
708
|
ret = o.name;
|
|
709
|
-
} else if (typeof o.constructor === "function" && o.constructor.name !== "") {
|
|
709
|
+
} else if (typeof o !== "undefined" && typeof o.constructor === "function" && o.constructor.name !== "") {
|
|
710
710
|
ret = o.constructor.name;
|
|
711
|
-
} else if (typeof o.constructor === "object") {
|
|
711
|
+
} else if (typeof o !== "undefined" && typeof o.constructor === "object") {
|
|
712
712
|
ret = o.constructor.toString().replace(/\[(.*?)\]/g, "$1").split(" ").slice(1).join("");
|
|
713
713
|
}
|
|
714
714
|
return ret;
|
|
@@ -784,10 +784,10 @@
|
|
|
784
784
|
&& o_c.constructor.name !== "":
|
|
785
785
|
_ret_ = o_c.constructor.name;
|
|
786
786
|
break;
|
|
787
|
-
case (!!o_c.__classType) && o_c.__classType !== "":
|
|
787
|
+
case (!!o_c && !!o_c.__classType) && o_c.__classType !== "":
|
|
788
788
|
_ret_ = o_c.__classType;
|
|
789
789
|
break;
|
|
790
|
-
case (!!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
|
|
790
|
+
case (!!o_c && !!o_c.__definition) && (!!o_c.__definition.__classType) && o_c.__definition.__classType !== "":
|
|
791
791
|
_ret_ = o_c.__definition.__classType;
|
|
792
792
|
break;
|
|
793
793
|
default:
|
|
@@ -810,6 +810,35 @@
|
|
|
810
810
|
|| typeof obj === typeName))?(true):(false);
|
|
811
811
|
};
|
|
812
812
|
|
|
813
|
+
|
|
814
|
+
var __make_global__ = function (f) {
|
|
815
|
+
if (typeof f !== "undefined") {
|
|
816
|
+
if (isBrowser) {
|
|
817
|
+
try {
|
|
818
|
+
_top[f.name] = f;
|
|
819
|
+
window[f.name] = f;
|
|
820
|
+
} catch (e) {}
|
|
821
|
+
} else if (typeof global !== "undefined") {
|
|
822
|
+
if (!Object.hasOwnProperty.call(global,f.name)) {
|
|
823
|
+
global[f.name] = f;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
var __register_class__ = function (_class_) {
|
|
831
|
+
var name = _class_.name;
|
|
832
|
+
_QC_CLASSES[name] = _class_;
|
|
833
|
+
_top[name] = _QC_CLASSES[name];
|
|
834
|
+
return _top[name];
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
var RegisterClass = function (_class_) {
|
|
838
|
+
return __register_class__(_class_);
|
|
839
|
+
}
|
|
840
|
+
__make_global__ (RegisterClass);
|
|
841
|
+
|
|
813
842
|
/**
|
|
814
843
|
* Creates new object class of another object
|
|
815
844
|
*
|
|
@@ -1139,19 +1168,9 @@
|
|
|
1139
1168
|
return "New(QCObjectsClassName, args) { [QCObjects native code] }";
|
|
1140
1169
|
};
|
|
1141
1170
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
try {
|
|
1146
|
-
_top[f.name] = f;
|
|
1147
|
-
window[f.name] = f;
|
|
1148
|
-
} catch (e) {}
|
|
1149
|
-
} else if (typeof global !== "undefined") {
|
|
1150
|
-
if (!Object.hasOwnProperty.call(global,f.name)) {
|
|
1151
|
-
global[f.name] = f;
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1171
|
+
|
|
1172
|
+
var Export = function (f) {
|
|
1173
|
+
return __make_global__(f);
|
|
1155
1174
|
};
|
|
1156
1175
|
Export.prototype.toString = function() {
|
|
1157
1176
|
return "Export(function or symbol) { [QCObjects native code] }";
|
|
@@ -1493,7 +1512,12 @@
|
|
|
1493
1512
|
}
|
|
1494
1513
|
_QC_PACKAGES[namespace] = classes;
|
|
1495
1514
|
}
|
|
1496
|
-
|
|
1515
|
+
if (Object.hasOwnProperty.call(_QC_PACKAGES,namespace)){
|
|
1516
|
+
_QC_PACKAGES[namespace].map(function (_class_){
|
|
1517
|
+
__register_class__(_class_);
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
return (Object.hasOwnProperty.call(_QC_PACKAGES,namespace))?(_QC_PACKAGES[namespace]):(undefined);
|
|
1497
1521
|
};
|
|
1498
1522
|
Package.prototype.toString = function() {
|
|
1499
1523
|
return "Package(namespace, classes) { [QCObjects native code] }";
|
|
@@ -1764,7 +1788,7 @@
|
|
|
1764
1788
|
} else {
|
|
1765
1789
|
global.onload = _Ready;
|
|
1766
1790
|
}
|
|
1767
|
-
Class("InheritClass",
|
|
1791
|
+
Class("InheritClass", class {}, {});
|
|
1768
1792
|
|
|
1769
1793
|
/**
|
|
1770
1794
|
* Dynamic Data Objects Class
|
|
@@ -1961,7 +1985,7 @@
|
|
|
1961
1985
|
}
|
|
1962
1986
|
}
|
|
1963
1987
|
};
|
|
1964
|
-
Class ("Component",
|
|
1988
|
+
Class ("Component", ClassFactory("InheritClass"), {
|
|
1965
1989
|
domain: domain,
|
|
1966
1990
|
basePath: basePath,
|
|
1967
1991
|
templateURI: "",
|
|
@@ -2597,6 +2621,7 @@
|
|
|
2597
2621
|
|
|
2598
2622
|
}
|
|
2599
2623
|
});
|
|
2624
|
+
|
|
2600
2625
|
_top._bindroute_.__assigned=false;
|
|
2601
2626
|
|
|
2602
2627
|
(_methods_)(ClassFactory("Component")).map(function (__c__){(_protected_code_)(__c__);});
|
|
@@ -3586,7 +3611,7 @@
|
|
|
3586
3611
|
):("")
|
|
3587
3612
|
);
|
|
3588
3613
|
var __classDefinition = ClassFactory(__componentClassName);
|
|
3589
|
-
var __tplsource_prop_set = (__componentClassName !== "Component" && (typeof __classDefinition.tplsource === "string" && __classDefinition.tplsource !== "") ) ? (true) : (false);
|
|
3614
|
+
var __tplsource_prop_set = (__componentClassName !== "Component" && ((typeof __classDefinition !== "undefined" && typeof __classDefinition.tplsource === "string") && __classDefinition.tplsource !== "") ) ? (true) : (false);
|
|
3590
3615
|
var tplsource = (__tplsource_attr_not_set && __tplsource_prop_set) ? (__classDefinition.tplsource) : ((__tplsource_attr_not_set)?("default"):(components[_c].getAttribute("template-source")));
|
|
3591
3616
|
logger.debug (`template source for ${_componentName} is ${tplsource} `);
|
|
3592
3617
|
logger.debug (`type for ${_componentName} is ${__getType__(__classDefinition)} `);
|
|
@@ -4257,7 +4282,9 @@
|
|
|
4257
4282
|
}
|
|
4258
4283
|
_transition_.component.body.style.display = "block";
|
|
4259
4284
|
_transition_.effects.map(function (effectClassName,eff){
|
|
4260
|
-
var
|
|
4285
|
+
var __effectClass__ = ClassFactory(effectClassName);
|
|
4286
|
+
var effectObj = new __effectClass__();
|
|
4287
|
+
var effectClassMethod = effectObj.apply;
|
|
4261
4288
|
var args = [_transition_.component.body].concat(Object.values(
|
|
4262
4289
|
{
|
|
4263
4290
|
alphaFrom,
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.30-beta
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.30-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": "QCObjects.js",
|
|
6
6
|
"license": "LGPL-3.0",
|