qcobjects-sdk 2.3.30 → 2.3.32

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-SDK.js CHANGED
@@ -26,8 +26,13 @@
26
26
  "use strict";
27
27
  var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
28
28
  var remoteImportsPath = CONFIG.get("remoteImportsPath");
29
+ var relativeImportPath = CONFIG.get("relativeImportPath");
29
30
  var external = (!CONFIG.get("useLocalSDK"))?(true):(false);
30
- CONFIG.set("remoteImportsPath","https://sdk.qcobjects.dev/js/");
31
+ if (external){
32
+ CONFIG.set("remoteImportsPath","https://sdk.qcobjects.dev/js/");
33
+ } else {
34
+ CONFIG.set("relativeImportPath","qcobjects-sdk/js/");
35
+ }
31
36
  if (typeof _top._DOMCreateElement === "undefined"){
32
37
  _top._DOMCreateElement = function (elementName) {
33
38
  var _ret_;
@@ -63,7 +68,7 @@
63
68
  Import("org.qcobjects.tools.canvas",function (){},external),
64
69
  Import("org.qcobjects.tools.layouts",function (){},external),
65
70
  Import("org.qcobjects.cloud.auth.session.usertoken",function (){},external),
66
- Import("org.qcobjects.cloud.auth.session.data",function (){},external)
71
+ Import("org.qcobjects.cloud.auth.session.data",function (){},external)
67
72
  ];
68
73
  } else {
69
74
  // non-browsers environment
@@ -84,7 +89,7 @@
84
89
  _top._sdk_ = Promise.all(_imports_).then(function (){
85
90
  CONFIG.set("useSDK",true);
86
91
  CONFIG.set("remoteImportsPath",remoteImportsPath);
87
-
92
+ CONFIG.set("relativeImportPath",relativeImportPath);
88
93
  _top.__start__();
89
94
 
90
95
  });
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.30
1
+ 2.3.32
@@ -108,6 +108,7 @@ Package("org.quickcorp.components.notifications", [
108
108
  },
109
109
  success(message) {
110
110
  var c = New(NotificationComponent, {
111
+ name: "notification",
111
112
  shadowed: this.shadowed,
112
113
  body: _DOMCreateElement("div"),
113
114
  data: {
@@ -122,6 +123,7 @@ Package("org.quickcorp.components.notifications", [
122
123
  },
123
124
  danger(message) {
124
125
  var c = New(NotificationComponent, {
126
+ name: "notification",
125
127
  shadowed: this.shadowed,
126
128
  body: _DOMCreateElement("div"),
127
129
  data: {
@@ -136,6 +138,7 @@ Package("org.quickcorp.components.notifications", [
136
138
  },
137
139
  info(message) {
138
140
  var c = New(NotificationComponent, {
141
+ name: "notification",
139
142
  shadowed: this.shadowed,
140
143
  body: _DOMCreateElement("div"),
141
144
  data: {
@@ -150,6 +153,7 @@ Package("org.quickcorp.components.notifications", [
150
153
  },
151
154
  warning(message) {
152
155
  var c = New(NotificationComponent, {
156
+ name: "notification",
153
157
  shadowed: this.shadowed,
154
158
  body: _DOMCreateElement("div"),
155
159
  data: {
@@ -1,5 +1,6 @@
1
+ logger.debugEnabled = true;
1
2
  /**
2
- * QCObjects SDK 2.3
3
+ * QCObjects SDK 2.4.0
3
4
  * ________________
4
5
  *
5
6
  * Author: Jean Machuca <correojean@gmail.com>
@@ -31,7 +32,7 @@ Package("org.qcobjects.components.splashscreen",[
31
32
  shadowed: true,
32
33
  _new_: function(o) {
33
34
  var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
34
- var component = this;
35
+ let component = this;
35
36
  var isStartURL = (location.hash === ""
36
37
  && location.pathname === "/" && location.search === "")
37
38
  || CONFIG.get("routingWay") === "hash" && CONFIG.get("start_url","/") === location.hash
@@ -55,9 +56,10 @@ Package("org.qcobjects.components.splashscreen",[
55
56
  var _componentRoot = (component.shadowed)?(component.shadowRoot.host):(component.body);
56
57
  global.componentsStack.filter(c=>c.body.hasAttribute("splashscreen")).map(
57
58
  function (mainComponent){
59
+ logger.debug("Splash Screen of Main Component:",mainComponent.name);
58
60
  mainComponent.splashScreenComponent = component;
59
- var _splash_screen_ = function (){
60
- if (!_splash_screen_.executed){
61
+ function SplashScreenHandler (){
62
+ if (!SplashScreenHandler.executed){
61
63
  var mainComponent = this;
62
64
  var component = mainComponent.splashScreenComponent;
63
65
  var mainElement = (mainComponent.shadowed)?(mainComponent.shadowRoot.host):(mainComponent.body);
@@ -86,10 +88,9 @@ Package("org.qcobjects.components.splashscreen",[
86
88
  _componentRoot.parentElement.remove();
87
89
  }, duration);
88
90
  }
89
- _splash_screen_.executed=true;
90
- };
91
- _splash_screen_.executed=false;
92
- mainComponent.addComponentHelper(_splash_screen_.bind(mainComponent));
91
+ SplashScreenHandler.executed=true;
92
+ }
93
+ mainComponent.addComponentHelper(SplashScreenHandler.bind(mainComponent));
93
94
  }
94
95
  );
95
96
  _helper_.executed=true;
@@ -100,7 +101,7 @@ Package("org.qcobjects.components.splashscreen",[
100
101
  } else {
101
102
  component.body.style.display="none";
102
103
  }
103
- _super_("Component", "_new_").call(this, o);
104
+ _super_("Component", "_new_").call(this,o);
104
105
  }
105
106
  }),
106
107
  Class ("VideoSplashScreenComponent",
@@ -133,20 +134,27 @@ Package("org.qcobjects.components.splashscreen",[
133
134
  background-color: black;
134
135
  }
135
136
  #slot-logo::slotted(img) {
136
- vertical-align: middle;
137
- display: block;
138
- width: 100vw;
139
- left: 0;
140
- margin: 0;
141
- padding: 0;
142
- top: 20vh;
143
- bottom: 20vh;
144
- position: absolute;
145
- z-index: 9999999999;
146
- transform-origin: center;
147
- transform-style: preserve-3d;
148
- filter: blur(0em);
149
- transition: filter 0.5s;
137
+ vertical-align: middle;
138
+ display: block;
139
+ width: 40vw;
140
+ left: 0;
141
+ margin: 0;
142
+ padding: 0;
143
+ z-index: 9999999999;
144
+ transform-origin: center;
145
+ transform-style: preserve-3d;
146
+ filter: blur(0em);
147
+ transition: filter 0.5s;
148
+ max-width: 300px;
149
+ position: absolute;
150
+ top: 50%;
151
+ left: 50%;
152
+ transform: translate(-50%, -50%);
153
+ animation: fadeIn 5s;
154
+ -webkit-animation: fadeIn 5s;
155
+ -moz-animation: fadeIn 5s;
156
+ -o-animation: fadeIn 5s;
157
+ -ms-animation: fadeIn 5s;
150
158
  }
151
159
 
152
160
  :host * {
@@ -221,12 +229,38 @@ Package("org.qcobjects.components.splashscreen",[
221
229
  overflow: hidden;
222
230
  z-index: 0;
223
231
  object-fit: cover;
232
+ filter: brightness(0.3);
224
233
  }
225
234
  .splashscreen,
226
235
  .fullscreen-bg {
227
236
  background-image: url('{{background}}');
228
237
  }
229
238
 
239
+ @keyframes fadeIn {
240
+ 0% {opacity:0;}
241
+ 100% {opacity:1;}
242
+ }
243
+
244
+ @-moz-keyframes fadeIn {
245
+ 0% {opacity:0;}
246
+ 100% {opacity:1;}
247
+ }
248
+
249
+ @-webkit-keyframes fadeIn {
250
+ 0% {opacity:0;}
251
+ 100% {opacity:1;}
252
+ }
253
+
254
+ @-o-keyframes fadeIn {
255
+ 0% {opacity:0;}
256
+ 100% {opacity:1;}
257
+ }
258
+
259
+ @-ms-keyframes fadeIn {
260
+ 0% {opacity:0;}
261
+ 100% {opacity:1;}
262
+ }
263
+
230
264
  </style>
231
265
  <div class="splashscreen">
232
266
  <div class="fullscreen-bg splashcontent">
@@ -379,8 +413,8 @@ Package("org.qcobjects.components.splashscreen",[
379
413
  position: absolute;
380
414
  width: 200px;
381
415
  height: 200px;
382
- background: #fff;
383
- box-shadow: inset 0 0 40px #ccc;
416
+ background: none;
417
+ box-shadow: inset 0 0 40px #fff0;
384
418
  border-radius: 40px;
385
419
  }
386
420
 
@@ -510,6 +544,8 @@ Package("org.qcobjects.components.splashscreen",[
510
544
  width: 100%;
511
545
  height: 100%;
512
546
  background: var(--root-background, transparent);
547
+ background-size: cover;
548
+ background-origin: border-box;
513
549
  }
514
550
 
515
551
  #dice .side.front,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qcobjects-sdk",
3
- "version": "2.3.30",
3
+ "version": "2.3.32",
4
4
  "description": "QCObjects SDK is a set of Controllers, Views and Components that are elementary and useful to assist developers to build applications under MVC patterns using QCObjects, Cross Browser Javascript Framework for MVC Patterns",
5
5
  "main": "QCObjects-SDK.js",
6
6
  "scripts": {
@@ -29,8 +29,8 @@
29
29
  "webcomponents"
30
30
  ],
31
31
  "devDependencies": {
32
- "eslint": "^6.8.0",
33
- "eslint-config-qcobjects": "0.0.11",
32
+ "eslint": "^8.4.0",
33
+ "eslint-config-qcobjects": "^0.0.13",
34
34
  "qcobjects": "^2.3.44"
35
35
  },
36
36
  "author": "Jean Machuca <correojean@gmail.com>",
@@ -43,6 +43,6 @@
43
43
  "jasmine": "^3.6.3"
44
44
  },
45
45
  "peerDependencies": {
46
- "qcobjects": ">= 2.3"
46
+ "qcobjects": ">=2.3"
47
47
  }
48
48
  }