qcobjects 2.4.45 → 2.4.48
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 +16 -2
- package/VERSION +1 -1
- package/package.json +1 -1
- package/spec/testsTypeSpec.js +1 -1
package/QCObjects.js
CHANGED
|
@@ -784,6 +784,9 @@
|
|
|
784
784
|
var __getType__ = function __getType__(o_c) {
|
|
785
785
|
var _ret_ = "";
|
|
786
786
|
switch (true) {
|
|
787
|
+
case __is_raw_class__(o_c) && !!o_c.name:
|
|
788
|
+
_ret_ = o_c.name;
|
|
789
|
+
break;
|
|
787
790
|
case typeof o_c === "object" &&
|
|
788
791
|
(!!o_c.constructor &&
|
|
789
792
|
!!o_c.constructor.name)
|
|
@@ -1514,6 +1517,7 @@
|
|
|
1514
1517
|
}
|
|
1515
1518
|
).map(function (_class_) {
|
|
1516
1519
|
_class_.__definition.__namespace = namespace;
|
|
1520
|
+
_class_.__namespace = namespace;
|
|
1517
1521
|
});
|
|
1518
1522
|
_QC_PACKAGES[namespace] = _QC_PACKAGES[namespace].concat(classes);
|
|
1519
1523
|
} else if (typeof classes !== "undefined") {
|
|
@@ -1524,9 +1528,11 @@
|
|
|
1524
1528
|
}
|
|
1525
1529
|
).map(function (_class_) {
|
|
1526
1530
|
_class_.__definition.__namespace = namespace;
|
|
1531
|
+
_class_.__namespace = namespace;
|
|
1527
1532
|
});
|
|
1528
1533
|
} else if (isQCObjects_Class(classes)) {
|
|
1529
1534
|
classes.__definition.__namespace = namespace;
|
|
1535
|
+
classes.__namespace = namespace;
|
|
1530
1536
|
}
|
|
1531
1537
|
_QC_PACKAGES[namespace] = classes;
|
|
1532
1538
|
}
|
|
@@ -2070,6 +2076,11 @@
|
|
|
2070
2076
|
controller=undefined;
|
|
2071
2077
|
view=undefined;
|
|
2072
2078
|
effect=undefined;
|
|
2079
|
+
method = "GET";
|
|
2080
|
+
data = {};
|
|
2081
|
+
cached= true;
|
|
2082
|
+
__promise__ = null;
|
|
2083
|
+
__namespace = undefined;
|
|
2073
2084
|
|
|
2074
2085
|
constructor ({
|
|
2075
2086
|
templateURI= "",
|
|
@@ -2901,20 +2912,23 @@
|
|
|
2901
2912
|
|
|
2902
2913
|
applyTransitionEffect(effectClassName) {
|
|
2903
2914
|
var _Effect = ClassFactory(effectClassName);
|
|
2915
|
+
if (typeof _Effect === "undefined" ){
|
|
2916
|
+
throw Error (`${effectClassName} not found.`);
|
|
2917
|
+
}
|
|
2904
2918
|
if (typeof _Effect !== "undefined" && is_a(_Effect, "TransitionEffect")) {
|
|
2905
2919
|
this.effect = New(_Effect, {
|
|
2906
2920
|
component: this
|
|
2907
2921
|
});
|
|
2908
2922
|
this.effect.apply(this.effect.defaultParams);
|
|
2909
2923
|
} else {
|
|
2910
|
-
logger.debug(`${__getType__(_Effect)} is not a TransitionEffect`);
|
|
2924
|
+
logger.debug(`${effectClassName} is ${__getType__(_Effect)} but is not a TransitionEffect`);
|
|
2911
2925
|
}
|
|
2912
2926
|
}
|
|
2913
2927
|
|
|
2914
2928
|
applyObserveTransitionEffect(effectClassName) {
|
|
2915
2929
|
if (isBrowser) {
|
|
2916
2930
|
var component = this;
|
|
2917
|
-
var _componentRoot = (component.shadowed) ? (component.shadowRoot) : (component.body);
|
|
2931
|
+
var _componentRoot = (component.shadowed) ? (component.shadowRoot.host) : (component.body);
|
|
2918
2932
|
var _applyEffect_ = function (element) {
|
|
2919
2933
|
component.applyTransitionEffect(effectClassName);
|
|
2920
2934
|
};
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.48
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.48",
|
|
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",
|
package/spec/testsTypeSpec.js
CHANGED
|
@@ -19,7 +19,7 @@ describe("Type Spec", function () {
|
|
|
19
19
|
var main = new CustomMain();
|
|
20
20
|
|
|
21
21
|
expect(__getType__(Main)).toEqual("Main");
|
|
22
|
-
expect(__getType__(CustomMain)).toEqual("
|
|
22
|
+
expect(__getType__(CustomMain)).toEqual("CustomMain");
|
|
23
23
|
expect(__getType__(main)).toEqual("CustomMain");
|
|
24
24
|
logger.debug("Type Test Spec... OK");
|
|
25
25
|
});
|