qcobjects-sdk 2.4.60 → 2.4.62

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.
Files changed (77) hide show
  1. package/.dockerignore +98 -1
  2. package/.eslintignore +1 -2
  3. package/.github/workflows/static.yml +91 -0
  4. package/VERSION +1 -1
  5. package/config.json +4 -0
  6. package/package.json +31 -9
  7. package/src/QCObjects-SDK.d.ts +26 -0
  8. package/src/QCObjects-SDK.ts +108 -0
  9. package/src/index.d.ts +1 -1
  10. package/src/index.mts +2 -0
  11. package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +1 -0
  12. package/src/js/{org.qcobjects.cloud.auth.session.data.js → org.qcobjects.cloud.auth.session.data.ts} +28 -22
  13. package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +2 -0
  14. package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +128 -0
  15. package/src/js/org.qcobjects.components.d.ts +10 -0
  16. package/src/js/org.qcobjects.components.grid.d.ts +3 -0
  17. package/src/js/org.qcobjects.components.grid.ts +95 -0
  18. package/src/js/org.qcobjects.components.list.d.ts +3 -0
  19. package/src/js/org.qcobjects.components.list.ts +83 -0
  20. package/src/js/org.qcobjects.components.notifications.d.ts +1 -0
  21. package/src/js/org.qcobjects.components.notifications.ts +191 -0
  22. package/src/js/org.qcobjects.components.slider.d.ts +1 -0
  23. package/src/js/{org.qcobjects.components.slider.js → org.qcobjects.components.slider.ts} +8 -6
  24. package/src/js/org.qcobjects.components.splashscreen.d.ts +28 -0
  25. package/src/js/org.qcobjects.components.splashscreen.ts +680 -0
  26. package/src/js/org.qcobjects.components.ts +336 -0
  27. package/src/js/org.qcobjects.controllers.d.ts +1 -0
  28. package/src/js/org.qcobjects.controllers.form.d.ts +1 -0
  29. package/src/js/{org.qcobjects.controllers.form.js → org.qcobjects.controllers.form.ts} +57 -59
  30. package/src/js/org.qcobjects.controllers.grid.d.ts +1 -0
  31. package/src/js/{org.qcobjects.controllers.grid.js → org.qcobjects.controllers.grid.ts} +102 -97
  32. package/src/js/org.qcobjects.controllers.list.d.ts +1 -0
  33. package/src/js/{org.qcobjects.controllers.list.js → org.qcobjects.controllers.list.ts} +86 -76
  34. package/src/js/org.qcobjects.controllers.slider.d.ts +1 -0
  35. package/src/js/org.qcobjects.controllers.slider.ts +158 -0
  36. package/src/js/org.qcobjects.controllers.swagger.d.ts +1 -0
  37. package/src/js/{org.qcobjects.controllers.swagger.js → org.qcobjects.controllers.swagger.ts} +13 -14
  38. package/src/js/{org.qcobjects.controllers.js → org.qcobjects.controllers.ts} +3 -6
  39. package/src/js/org.qcobjects.effects.d.ts +20 -0
  40. package/src/js/org.qcobjects.effects.ts +430 -0
  41. package/src/js/org.qcobjects.i18n_messages.d.ts +1 -0
  42. package/src/js/{org.qcobjects.i18n_messages.js → org.qcobjects.i18n_messages.ts} +36 -27
  43. package/src/js/org.qcobjects.modal.controllers.d.ts +1 -0
  44. package/src/js/{org.qcobjects.modal.controllers.js → org.qcobjects.modal.controllers.ts} +5 -6
  45. package/src/js/org.qcobjects.modal.effects.d.ts +1 -0
  46. package/src/js/{org.qcobjects.modal.effects.js → org.qcobjects.modal.effects.ts} +4 -1
  47. package/src/js/org.qcobjects.models.d.ts +1 -0
  48. package/src/js/{org.qcobjects.models.js → org.qcobjects.models.ts} +3 -24
  49. package/src/js/org.qcobjects.tools.canvas.d.ts +1 -0
  50. package/src/js/{org.qcobjects.tools.canvas.js → org.qcobjects.tools.canvas.ts} +14 -11
  51. package/src/js/org.qcobjects.tools.d.ts +1 -0
  52. package/src/js/org.qcobjects.tools.layouts.d.ts +1 -0
  53. package/src/js/org.qcobjects.tools.layouts.ts +85 -0
  54. package/src/js/{org.qcobjects.tools.js → org.qcobjects.tools.ts} +19 -11
  55. package/src/js/org.qcobjects.views.d.ts +1 -0
  56. package/src/js/{org.qcobjects.views.js → org.qcobjects.views.ts} +3 -5
  57. package/tsconfig.json +1 -1
  58. package/-m +0 -1
  59. package/src/QCObjects-SDK.js +0 -148
  60. package/src/index.mjs +0 -2
  61. package/src/js/org.qcobjects.cloud.auth.session.usertoken.js +0 -116
  62. package/src/js/org.qcobjects.components.grid.js +0 -65
  63. package/src/js/org.qcobjects.components.js +0 -276
  64. package/src/js/org.qcobjects.components.list.js +0 -59
  65. package/src/js/org.qcobjects.components.notifications.js +0 -190
  66. package/src/js/org.qcobjects.components.splashscreen.js +0 -645
  67. package/src/js/org.qcobjects.controllers.slider.js +0 -154
  68. package/src/js/org.qcobjects.effects.js +0 -345
  69. package/src/js/org.qcobjects.tools.layouts.js +0 -79
  70. /package/{css → src/css}/base-modal.css +0 -0
  71. /package/{css → src/css}/basic-layout-embedded-nav.css +0 -0
  72. /package/{css → src/css}/basic-layout.css +0 -0
  73. /package/{css → src/css}/components/horizontal-list.css +0 -0
  74. /package/{css → src/css}/components/list.css +0 -0
  75. /package/{css → src/css}/components/splashscreen.css +0 -0
  76. /package/{css → src/css}/modal.css +0 -0
  77. /package/src/{index.cjs → index.cts} +0 -0
@@ -1,3 +1,5 @@
1
+ import { Package, InheritClass, CONFIG, Import } from "qcobjects";
2
+
1
3
  /**
2
4
  * QCObjects SDK 2.4
3
5
  * ________________
@@ -22,43 +24,50 @@
22
24
  * Everyone is permitted to copy and distribute verbatim copies of this
23
25
  * license document, but changing it is not allowed.
24
26
  */
25
- (function (global) {
27
+ (function (global:any) {
26
28
  "use strict";
27
- Package("org.qcobjects.i18n_messages", [
28
29
 
29
- class i18n_messages extends InheritClass {
30
+ // eslint-disable-next-line camelcase
31
+ class i18n_messages extends InheritClass {
30
32
 
31
- constructor({
32
- messages = []
33
- }) {
34
- super({
35
- messages
36
- });
37
- if (CONFIG.get("use_i18n")) {
38
- CONFIG.set("lang", "en");
39
- if (!global.get("i18n")) {
40
- global.set("i18n", {
41
- messages: messages
42
- });
43
- } else {
44
- global.set("i18n", {
45
- messages: global.get("i18n").messages.concat(messages)
46
- });
47
- }
33
+ constructor({
34
+ messages = []
35
+ }) {
36
+ super({
37
+ messages
38
+ });
39
+ if (CONFIG.get("use_i18n", false)) {
40
+ CONFIG.set("lang", "en");
41
+ if (!global.get("i18n")) {
42
+ global.set("i18n", {
43
+ messages
44
+ });
45
+ } else {
46
+ global.set("i18n", {
47
+ messages: global.get("i18n").messages.concat(messages)
48
+ });
48
49
  }
49
-
50
50
  }
51
51
 
52
- _load_i18n_packages_() {
53
- return CONFIG.get("i18n_languages", []).map((i18n_packagename) => {
54
- Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
55
- });
56
- }
52
+ }
57
53
 
54
+ _load_i18n_packages_() {
55
+ // eslint-disable-next-line array-callback-return, camelcase
56
+ return CONFIG.get("i18n_languages", []).map((i18n_packagename: any) => {
57
+ // eslint-disable-next-line camelcase
58
+ Import(`org.quickcorp.i18n_messages.${i18n_packagename}`);
59
+ });
58
60
  }
61
+
62
+ }
63
+
64
+ Package("org.qcobjects.i18n_messages", [
65
+ // eslint-disable-next-line camelcase
66
+ i18n_messages
59
67
  ]);
68
+ // eslint-disable-next-line new-cap
60
69
  (new i18n_messages({}))._load_i18n_packages_();
61
- }).call(null, (typeof module === "object" && typeof module.exports === "object") ? (
70
+ })((typeof module === "object" && typeof module.exports === "object") ? (
62
71
  module.exports = (typeof globalThis !== "undefined"
63
72
  ? globalThis
64
73
  : typeof self !== "undefined"
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,6 @@
1
+ import { Package, Controller } from "qcobjects";
2
+ import { ModalComponent } from "./org.qcobjects.components";
3
+
1
4
  /**
2
5
  * QCObjects SDK 2.4
3
6
  * ________________
@@ -28,12 +31,8 @@ Package("org.qcobjects.modal.controllers",[
28
31
 
29
32
  class ModalController extends Controller {
30
33
 
31
- constructor ({component, dependencies = []}) {
32
- super({component, dependencies});
33
- }
34
-
35
34
  done (){
36
- var component = this.component;
35
+ const component = this.component as typeof ModalComponent;
37
36
  component.body.innerHTML = component.body.innerHTML.replace("/{{content}}/g",component.submodal.template);
38
37
 
39
38
  }
@@ -42,4 +41,4 @@ Package("org.qcobjects.modal.controllers",[
42
41
 
43
42
  ]);
44
43
 
45
- }).call(null);
44
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,6 @@
1
+ import { Package } from "qcobjects";
2
+ import { Fade, Move } from "./org.qcobjects.effects";
3
+
1
4
  /**
2
5
  * QCObjects SDK 2.4
3
6
  * ________________
@@ -45,4 +48,4 @@
45
48
 
46
49
  ]);
47
50
 
48
- }).call(null);
51
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ import { Package, VO } from "qcobjects";
2
+
1
3
  /**
2
4
  * QCObjects SDK 2.4
3
5
  * ________________
@@ -28,31 +30,8 @@
28
30
 
29
31
  class Contact extends VO {
30
32
 
31
- constructor({
32
- first_name = "",
33
- last_name = "",
34
- address = "",
35
- postalCode = "",
36
- city = "",
37
- country = "",
38
- email = "",
39
- phone = ""
40
- }) {
41
- super({
42
- first_name,
43
- last_name,
44
- address,
45
- postalCode,
46
- city,
47
- country,
48
- email,
49
- phone
50
- });
51
-
52
- }
53
-
54
33
  }
55
34
 
56
35
  ]);
57
36
 
58
- }).call(null);
37
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -23,28 +23,31 @@
23
23
  * license document, but changing it is not allowed.
24
24
  */
25
25
  "use strict";
26
+
27
+ import { Package, InheritClass } from "qcobjects";
28
+
26
29
  (function() {
27
30
  Package("org.qcobjects.tools.canvas",[
28
31
 
29
32
  class CanvasTool extends InheritClass {
30
33
 
31
- drawImageFilled (img, canvas, zoom=1, px=0, py=0){
34
+ drawImageFilled (img:HTMLImageElement, canvas:HTMLCanvasElement, zoom=1, px=0, py=0){
32
35
  // get the scale
33
- var scale = Math.max(canvas.width / img.width, canvas.height / img.height);
36
+ let scale = Math.max(canvas.width / img.width, canvas.height / img.height);
34
37
  scale = scale*zoom;
35
38
  // get the top left position of the image
36
- var x = (canvas.width / 2) - (img.width / 2) * scale;
37
- var y = (canvas.height / 2) - (img.height / 2) * scale;
38
- var ctx = canvas.getContext("2d");
39
- ctx.drawImage(img, (px+x), (py+y), img.width * scale, img.height * scale);
39
+ const x = (canvas.width / 2) - (img.width / 2) * scale;
40
+ const y = (canvas.height / 2) - (img.height / 2) * scale;
41
+ const ctx = canvas.getContext("2d");
42
+ ctx?.drawImage(img, (px+x), (py+y), img.width * scale, img.height * scale);
40
43
  }
41
44
 
42
- getImageResized (img, width, height, resizedImage, zoom=1, px=0, py=0){
43
- var canvas = document.createElement("canvas");
45
+ getImageResized (img:HTMLImageElement, width:number, height:number, resizedImage:HTMLImageElement, zoom=1, px=0, py=0){
46
+ const canvas = document.createElement("canvas");
44
47
  canvas.width = width;
45
48
  canvas.height = height;
46
- canvas.style.width = width;
47
- canvas.style.height = height;
49
+ canvas.style.width = width.toString();
50
+ canvas.style.height = height.toString();
48
51
  this.drawImageFilled(img,canvas,zoom,px,py);
49
52
  resizedImage.src = canvas.toDataURL("image/png");
50
53
  return canvas;
@@ -53,4 +56,4 @@
53
56
  }
54
57
  ]);
55
58
 
56
- }).call(null);
59
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,85 @@
1
+ /* eslint-disable array-callback-return */
2
+ /**
3
+ * QCObjects SDK 2.4
4
+ * ________________
5
+ *
6
+ * Author: Jean Machuca <correojean@gmail.com>
7
+ *
8
+ * Cross Browser Javascript Framework for MVC Patterns
9
+ * QuickCorp/QCObjects is licensed under the
10
+ * GNU Lesser General Public License v3.0
11
+ * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
12
+ *
13
+ * Permissions of this copyleft license are conditioned on making available
14
+ * complete source code of licensed works and modifications under the same
15
+ * license or the GNU GPLv3. Copyright and license notices must be preserved.
16
+ * Contributors provide an express grant of patent rights. However, a larger
17
+ * work using the licensed work through interfaces provided by the licensed
18
+ * work may be distributed under different terms and without source code for
19
+ * the larger work.
20
+ *
21
+ * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
22
+ *
23
+ * Everyone is permitted to copy and distribute verbatim copies of this
24
+ * license document, but changing it is not allowed.
25
+ */
26
+ "use strict";
27
+
28
+ import { CONFIG, InheritClass, New, Package, SourceCSS, Tag } from "qcobjects";
29
+ import { Fade, MoveXInFromLeft, MoveXInFromRight, MoveYInFromBottom } from "./org.qcobjects.effects";
30
+
31
+ (function() {
32
+ Package("org.qcobjects.tools.layouts",[
33
+
34
+ class BasicLayout extends InheritClass {
35
+ dependencies:any[] = [];
36
+
37
+ constructor ({component = null, dependencies = []}) {
38
+ super({component, dependencies});
39
+ }
40
+
41
+ load (){
42
+ this.dependencies.push(New(SourceCSS,{
43
+ external:!(CONFIG.get("useLocalSDK",false)),
44
+ url:(CONFIG.get("useLocalSDK",false))?("css/basic-layout.css"):(CONFIG.get("remoteSDKPath",false)+"css/basic-layout.css")
45
+ }));
46
+ }
47
+
48
+ coloredBorder (){
49
+ /*
50
+ * A helper function to visualize the layout borders
51
+ * Usage: BasicLayout.coloredBorder()
52
+ */
53
+ setTimeout(function (){
54
+ Tag("nav").map((element:HTMLElement)=>{element.style.border="20px solid #3333";});
55
+ Tag("nav").map((element:HTMLElement)=>{element.style.backgroundColor="#129999";});
56
+ Tag("component>footer").map((element:HTMLElement)=>{element.style.background="#876";});
57
+ Tag("component>div").map((element:HTMLElement)=>{element.style.border="3px dashed #fff";});
58
+ Tag("component>section").map((element:HTMLElement)=>{element.style.border="3px solid #000";});
59
+ Tag("component>section").map((element:HTMLElement)=>{element.style.backgroundColor="#fffaaa";});
60
+
61
+ Tag("component>article").map((element:HTMLElement)=>{element.style.border="3px dotted #000";});
62
+ Tag("component>header").map((element:HTMLElement)=>{element.style.background="#789";});
63
+ Tag("component>footer").map((element:HTMLElement)=>{element.style.background="#876";});
64
+ Tag("component>article:nth-child(1)").map((element:HTMLElement)=>{element.style.border="1px solid #444";});
65
+ Tag("component>article:nth-child(1)").map((element:HTMLElement)=>{element.style.backgroundColor="#555aaa";});
66
+ Tag("component>article:nth-child(2)").map((element:HTMLElement)=>{element.style.backgroundColor="#aaa333";});
67
+ Tag("component>article:nth-child(3)").map((element:HTMLElement)=>{element.style.backgroundColor="#54da82";});
68
+ Tag("*").map((element:HTMLElement)=>{element.style.color="#fff";});
69
+
70
+
71
+ Tag("component>article").map((element:HTMLElement)=>Fade.apply(element,0,1));
72
+ Tag("component>footer").map((element:HTMLElement)=>Fade.apply(element,0,1));
73
+ Tag("component>header").map((element:HTMLElement)=>Fade.apply(element,0,1));
74
+ Tag("nav").map((element:HTMLElement)=>{element.style.display="block";element.style.width=element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString() ;MoveXInFromLeft.apply(element);});
75
+ Tag("component>article").map((element:HTMLElement)=>{element.style.display="block";element.style.height=element.offsetParent?.scrollHeight.toString() || element.clientHeight.toString();MoveYInFromBottom.apply(element);});
76
+ Tag("component>article:nth-child(2)").map((element:HTMLElement)=>{element.style.display="block";element.style.width=element.offsetParent?.scrollWidth.toString() || element.clientWidth.toString();MoveXInFromRight.apply(element);});
77
+ },300);
78
+ }
79
+
80
+
81
+ }
82
+
83
+ ]);
84
+
85
+ })();
@@ -23,13 +23,20 @@
23
23
  * license document, but changing it is not allowed.
24
24
  */
25
25
  "use strict";
26
+
27
+ import { Timer, Package, logger } from "qcobjects";
28
+
26
29
  (function() {
27
30
  Package("org.qcobjects.tools",[
28
31
 
29
32
  class Process extends Timer {
33
+ alive:boolean;
34
+ steps:any[] = [];
35
+ currentStep = 0;
30
36
 
31
- constructor ({steps = [], currentStep = 0}) {
32
- super({steps, currentStep});
37
+ constructor ({steps = [], currentStep = 0, alive = false}) {
38
+ super({steps, currentStep, alive});
39
+ this.alive = alive;
33
40
 
34
41
  }
35
42
 
@@ -38,23 +45,24 @@
38
45
  }
39
46
 
40
47
  start (){
41
- var process = this;
42
- process.alive=true;
48
+ this.alive=true;
43
49
  this.thread({
44
50
  duration: this.duration,
45
- timing(timeFraction) {
46
- process.currentStep+=1;
47
- process.map(function (p){
48
- if (typeof p == "function"){
49
- Promise.resolve().then(
51
+ timing: (timeFraction:number) => {
52
+ this.currentStep+=1;
53
+ this.steps.map((p:()=> void):Promise<void> | undefined => {
54
+ let _ret_;
55
+ if (typeof p === "function"){
56
+ _ret_ = Promise.resolve().then(
50
57
  function (){
51
58
  p.call(process);
52
59
  });
53
60
  }
61
+ return _ret_;
54
62
  });
55
63
  return timeFraction;
56
64
  },
57
- draw(progress) {
65
+ intervalInterceptor(progress:number) {
58
66
  logger.debug("process execution progress: "+progress.toString());
59
67
  }
60
68
  });
@@ -63,4 +71,4 @@
63
71
 
64
72
  ]);
65
73
 
66
- }).call(null);
74
+ })();
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,5 @@
1
+ import { Package, View } from "qcobjects";
2
+
1
3
  /**
2
4
  * QCObjects SDK 2.4
3
5
  * ________________
@@ -28,13 +30,9 @@ Package("org.qcobjects.views",[
28
30
 
29
31
  class GridView extends View {
30
32
 
31
- constructor ({component = null, dependencies = []}){
32
- super({component, dependencies});
33
-
34
- }
35
33
 
36
34
  }
37
35
 
38
36
  ]);
39
37
 
40
- }).call(null);
38
+ })();
package/tsconfig.json CHANGED
@@ -5,6 +5,6 @@
5
5
  "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
6
6
  "outDir": "build", /* Specify an output folder for all emitted files. */
7
7
  },
8
- "include": ["src/**/*.ts"],
8
+ "include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.cts"],
9
9
  "exclude": ["src/**/*.spec.js", "src/*.js"]
10
10
  }
package/-m DELETED
@@ -1 +0,0 @@
1
- 0.0.2
@@ -1,148 +0,0 @@
1
- /**
2
- * QCObjects SDK 2.4
3
- * ________________
4
- *
5
- * Author: Jean Machuca <correojean@gmail.com>
6
- *
7
- * Cross Browser Javascript Framework for MVC Patterns
8
- * QuickCorp/QCObjects is licensed under the
9
- * GNU Lesser General Public License v3.0
10
- * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
11
- *
12
- * Permissions of this copyleft license are conditioned on making available
13
- * complete source code of licensed works and modifications under the same
14
- * license or the GNU GPLv3. Copyright and license notices must be preserved.
15
- * Contributors provide an express grant of patent rights. However, a larger
16
- * work using the licensed work through interfaces provided by the licensed
17
- * work may be distributed under different terms and without source code for
18
- * the larger work.
19
- *
20
- * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
21
- *
22
- * Everyone is permitted to copy and distribute verbatim copies of this
23
- * license document, but changing it is not allowed.
24
- */
25
- (function __qcobjects_sdk__ (_top) {
26
- "use strict";
27
- if (typeof Object.defineProperty !== "undefined" && typeof _top !== "undefined"){
28
- try {
29
- Object.defineProperty(_top,"__qcobjects_sdk__", {
30
- enumerable: true,
31
- configurable: false,
32
- writable: false,
33
- value: __qcobjects_sdk__,
34
- });
35
- } catch (e){
36
- if (typeof _top.__qcobjects_sdk__ !== "undefined"){
37
- _top.__qcobjects_sdk__.__loaded__ = true;
38
- }
39
- }
40
- }
41
-
42
- if (typeof _top.__qcobjects_sdk__.__loaded__ === "undefined"){
43
- _top.__qcobjects_sdk__.__loaded__ = true;
44
- if (typeof _top === "undefined"){
45
- throw Error("Top context empty: It should either global, module or window");
46
- }
47
- var global = _top;
48
- _top.global = global;
49
- var isBrowser = typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self;
50
- var isNodeCommonJS = (typeof module !== "undefined") ? (true): (false);
51
- var remoteImportsPath = CONFIG.get("remoteImportsPath");
52
- var relativeImportPath = CONFIG.get("relativeImportPath");
53
- var external = (!CONFIG.get("useLocalSDK")) ? (true) : (false);
54
- if (external && !isNodeCommonJS) {
55
- CONFIG.set("remoteImportsPath", "https://sdk.qcobjects.dev/v2.4/src/js/");
56
- } else {
57
- CONFIG.set("relativeImportPath", "qcobjects-sdk/src/js/");
58
- }
59
- if (typeof _top._DOMCreateElement === "undefined") {
60
- _top._DOMCreateElement = function (elementName) {
61
- var _ret_;
62
- if (isBrowser) {
63
- _ret_ = document.createElement(elementName);
64
- } else {
65
- _ret_ = {};
66
- }
67
- return _ret_;
68
- };
69
- }
70
- const __start__ = GlobalSettings.__start__.bind(_top);
71
-
72
- var _imports_;
73
- if (isBrowser && !isNodeCommonJS) {
74
- _imports_ = [
75
- Import("org.qcobjects.i18n_messages", function () {}, external),
76
- Import("org.qcobjects.models", function () {}, external),
77
- Import("org.qcobjects.components", function () {}, external),
78
- Import("org.qcobjects.components.grid", function () {}, external),
79
- Import("org.qcobjects.components.list", function () {}, external),
80
- Import("org.qcobjects.components.slider", function () {}, external),
81
- Import("org.qcobjects.components.notifications", function () {}, external),
82
- Import("org.qcobjects.components.splashscreen", function () {}, external),
83
- Import("org.qcobjects.controllers", function () {}, external),
84
- Import("org.qcobjects.controllers.grid", function () {}, external),
85
- Import("org.qcobjects.controllers.list", function () {}, external),
86
- Import("org.qcobjects.controllers.slider", function () {}, external),
87
- Import("org.qcobjects.controllers.form", function () {}, external),
88
- Import("org.qcobjects.controllers.swagger", function () {}, external),
89
- Import("org.qcobjects.effects", function () {}, external),
90
- Import("org.qcobjects.modal.controllers", function () {}, external),
91
- Import("org.qcobjects.views", function () {}, external),
92
- Import("org.qcobjects.tools.canvas", function () {}, external),
93
- Import("org.qcobjects.tools.layouts", function () {}, external),
94
- Import("org.qcobjects.cloud.auth.session.usertoken", function () {}, external),
95
- Import("org.qcobjects.cloud.auth.session.data", function () {}, external)
96
- ];
97
- } else if (typeof require !== "undefined") {
98
- // non-browsers environment
99
- _imports_ = [
100
- new Promise ((resolve, reject)=> {
101
- require("qcobjects-sdk/js/org.qcobjects.i18n_messages");
102
- require("qcobjects-sdk/js/org.qcobjects.models");
103
- require("qcobjects-sdk/js/org.qcobjects.components");
104
- require("qcobjects-sdk/js/org.qcobjects.components.grid");
105
- require("qcobjects-sdk/js/org.qcobjects.components.list");
106
- require("qcobjects-sdk/js/org.qcobjects.components.slider");
107
- require("qcobjects-sdk/js/org.qcobjects.components.notifications");
108
- require("qcobjects-sdk/js/org.qcobjects.components.splashscreen");
109
- require("qcobjects-sdk/js/org.qcobjects.controllers");
110
- require("qcobjects-sdk/js/org.qcobjects.controllers.grid");
111
- require("qcobjects-sdk/js/org.qcobjects.controllers.list");
112
- require("qcobjects-sdk/js/org.qcobjects.controllers.slider");
113
- require("qcobjects-sdk/js/org.qcobjects.controllers.form");
114
- require("qcobjects-sdk/js/org.qcobjects.controllers.swagger");
115
- require("qcobjects-sdk/js/org.qcobjects.effects");
116
- require("qcobjects-sdk/js/org.qcobjects.modal.controllers");
117
- require("qcobjects-sdk/js/org.qcobjects.views");
118
- require("qcobjects-sdk/js/org.qcobjects.tools.canvas");
119
- require("qcobjects-sdk/js/org.qcobjects.tools.layouts");
120
- require("qcobjects-sdk/js/org.qcobjects.cloud.auth.session.usertoken");
121
- require("qcobjects-sdk/js/org.qcobjects.cloud.auth.session.data");
122
- resolve()
123
- })
124
- ]
125
-
126
- }
127
- _top._sdk_ = Promise.all(_imports_).then(()=>{
128
- CONFIG.set("useSDK", true);
129
- CONFIG.set("remoteImportsPath", remoteImportsPath);
130
- CONFIG.set("relativeImportPath", relativeImportPath);
131
- __start__();
132
- });
133
-
134
- }
135
-
136
- }).call(null, (typeof module === "object" && typeof module.exports === "object") ? (
137
- module.exports = (typeof globalThis !== "undefined"
138
- ? globalThis
139
- : typeof self !== "undefined"
140
- ? self
141
- : typeof window !== "undefined"
142
- ? window
143
- : typeof global !== "undefined"
144
- ? global
145
- : {})
146
- ) : ((typeof global === "object") ? (global) : (
147
- (typeof window === "object") ? (window) : ({})
148
- )));
package/src/index.mjs DELETED
@@ -1,2 +0,0 @@
1
- import sdk from "./QCObjects-SDK";
2
- export default sdk;