qcobjects-sdk 2.4.64 → 2.5.105-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.
Files changed (144) hide show
  1. package/.github/workflows/npmpublish-beta.yml +4 -2
  2. package/.github/workflows/npmpublish-lts.yml +4 -2
  3. package/.github/workflows/npmpublish-main.yml +5 -3
  4. package/VERSION +1 -1
  5. package/build/QCObjects-SDK.js +83 -41
  6. package/build/index.js +17 -7
  7. package/build/js/org.qcobjects.base.components.js +75 -0
  8. package/build/js/org.qcobjects.cloud.auth.session.data.js +98 -101
  9. package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +68 -80
  10. package/build/js/org.qcobjects.components.grid.js +35 -53
  11. package/build/js/org.qcobjects.components.js +145 -237
  12. package/build/js/org.qcobjects.components.list.js +36 -45
  13. package/build/js/org.qcobjects.components.notifications.js +107 -106
  14. package/build/js/org.qcobjects.components.slider.js +183 -169
  15. package/build/js/org.qcobjects.components.splashscreen.js +123 -130
  16. package/build/js/org.qcobjects.controllers.form.js +149 -147
  17. package/build/js/org.qcobjects.controllers.grid.js +226 -215
  18. package/build/js/org.qcobjects.controllers.js +11 -11
  19. package/build/js/org.qcobjects.controllers.list.js +195 -188
  20. package/build/js/org.qcobjects.controllers.slider.js +101 -106
  21. package/build/js/org.qcobjects.controllers.swagger.js +71 -46
  22. package/build/js/org.qcobjects.effects.base.js +86 -0
  23. package/build/js/org.qcobjects.effects.extended.js +318 -0
  24. package/build/js/org.qcobjects.effects.js +26 -394
  25. package/build/js/org.qcobjects.i18n_messages.js +33 -46
  26. package/build/js/org.qcobjects.modal.controllers.js +16 -15
  27. package/build/js/org.qcobjects.modal.effects.js +23 -28
  28. package/build/js/org.qcobjects.models.js +11 -11
  29. package/build/js/org.qcobjects.tools.canvas.js +28 -27
  30. package/build/js/org.qcobjects.tools.js +10 -3
  31. package/build/js/org.qcobjects.tools.layouts.js +46 -45
  32. package/build/js/org.qcobjects.views.js +11 -11
  33. package/build-esbuild.js +72 -0
  34. package/eslint.config.mjs +88 -0
  35. package/package.json +66 -59
  36. package/postbuild.js +10 -0
  37. package/public/browser/index.js +9902 -0
  38. package/public/browser/index.js.map +7 -0
  39. package/public/cjs/index.cjs +9894 -0
  40. package/public/cjs/index.cjs.map +7 -0
  41. package/public/esm/index.mjs +9894 -0
  42. package/public/esm/index.mjs.map +7 -0
  43. package/public/types/index.d.ts +698 -0
  44. package/spec/helpers/mock-sdk.helper.ts +2 -0
  45. package/spec/mocks/qcobjects-sdk.mock.ts +1 -0
  46. package/spec/support/jasmine.json +7 -4
  47. package/src/QCObjects-SDK.ts +72 -53
  48. package/src/js/org.qcobjects.base.components.ts +83 -0
  49. package/src/js/org.qcobjects.cloud.auth.session.data.ts +98 -99
  50. package/src/js/org.qcobjects.cloud.auth.session.usertoken.ts +72 -92
  51. package/src/js/org.qcobjects.components.grid.ts +31 -58
  52. package/src/js/org.qcobjects.components.list.ts +15 -31
  53. package/src/js/org.qcobjects.components.notifications.ts +12 -12
  54. package/src/js/org.qcobjects.components.slider.ts +182 -171
  55. package/src/js/org.qcobjects.components.splashscreen.ts +31 -39
  56. package/src/js/org.qcobjects.components.ts +151 -261
  57. package/src/js/org.qcobjects.controllers.form.ts +151 -148
  58. package/src/js/org.qcobjects.controllers.grid.ts +226 -222
  59. package/src/js/org.qcobjects.controllers.list.ts +207 -205
  60. package/src/js/org.qcobjects.controllers.slider.ts +120 -125
  61. package/src/js/org.qcobjects.controllers.swagger.ts +51 -51
  62. package/src/js/org.qcobjects.controllers.ts +7 -9
  63. package/src/js/org.qcobjects.effects.base.ts +97 -0
  64. package/src/js/org.qcobjects.effects.extended.ts +350 -0
  65. package/src/js/org.qcobjects.effects.ts +6 -394
  66. package/src/js/org.qcobjects.i18n_messages.ts +37 -51
  67. package/src/js/org.qcobjects.modal.controllers.ts +12 -14
  68. package/src/js/org.qcobjects.modal.effects.ts +22 -18
  69. package/src/js/org.qcobjects.models.ts +8 -11
  70. package/src/js/org.qcobjects.tools.canvas.ts +26 -28
  71. package/src/js/org.qcobjects.tools.layouts.ts +44 -47
  72. package/src/js/org.qcobjects.tools.ts +7 -1
  73. package/src/js/org.qcobjects.views.ts +9 -8
  74. package/src/types/global/index.d.ts +181 -0
  75. package/transpile.js +65 -0
  76. package/tsconfig.d.json +65 -3
  77. package/tsconfig.jasmine.json +64 -0
  78. package/tsconfig.json +71 -7
  79. package/.eslintignore +0 -4
  80. package/.eslintrc.cjs +0 -6
  81. package/build/css/base-modal.css +0 -43
  82. package/build/css/basic-layout-embedded-nav.css +0 -14
  83. package/build/css/basic-layout.css +0 -76
  84. package/build/css/components/horizontal-list.css +0 -64
  85. package/build/css/components/list.css +0 -57
  86. package/build/css/components/splashscreen.css +0 -111
  87. package/build/css/modal.css +0 -46
  88. package/build/index.cjs +0 -4
  89. package/build/index.mjs +0 -2
  90. package/build/templates/components/modalyoulose.tpl.html +0 -3
  91. package/build/templates/components/modalyouwin.tpl.html +0 -4
  92. package/build/templates/components/splashscreen.tpl.html +0 -128
  93. package/build/templates/components/swagger-ui.tpl.html +0 -22
  94. package/public/QCObjects-SDK.js +0 -696
  95. package/public/QCObjects-SDK.js.map +0 -7
  96. package/public/css/base-modal.css +0 -2
  97. package/public/css/base-modal.css.map +0 -7
  98. package/public/css/basic-layout-embedded-nav.css +0 -2
  99. package/public/css/basic-layout-embedded-nav.css.map +0 -7
  100. package/public/css/basic-layout.css +0 -2
  101. package/public/css/basic-layout.css.map +0 -7
  102. package/public/css/components/horizontal-list.css +0 -2
  103. package/public/css/components/horizontal-list.css.map +0 -7
  104. package/public/css/components/list.css +0 -2
  105. package/public/css/components/list.css.map +0 -7
  106. package/public/css/components/splashscreen.css +0 -2
  107. package/public/css/components/splashscreen.css.map +0 -7
  108. package/public/css/modal.css +0 -2
  109. package/public/css/modal.css.map +0 -7
  110. package/public/index.cjs +0 -4
  111. package/public/index.js +0 -27
  112. package/public/index.mjs +0 -2
  113. package/public/templates/components/modalyoulose.tpl.html +0 -3
  114. package/public/templates/components/modalyouwin.tpl.html +0 -4
  115. package/public/templates/components/splashscreen.tpl.html +0 -128
  116. package/public/templates/components/swagger-ui.tpl.html +0 -22
  117. package/src/QCObjects-SDK.d.ts +0 -26
  118. package/src/index.cts +0 -2
  119. package/src/index.d.ts +0 -2
  120. package/src/index.mts +0 -2
  121. package/src/js/org.qcobjects.cloud.auth.session.data.d.ts +0 -1
  122. package/src/js/org.qcobjects.cloud.auth.session.usertoken.d.ts +0 -2
  123. package/src/js/org.qcobjects.components.d.ts +0 -10
  124. package/src/js/org.qcobjects.components.grid.d.ts +0 -3
  125. package/src/js/org.qcobjects.components.list.d.ts +0 -3
  126. package/src/js/org.qcobjects.components.notifications.d.ts +0 -1
  127. package/src/js/org.qcobjects.components.slider.d.ts +0 -1
  128. package/src/js/org.qcobjects.components.splashscreen.d.ts +0 -28
  129. package/src/js/org.qcobjects.controllers.d.ts +0 -1
  130. package/src/js/org.qcobjects.controllers.form.d.ts +0 -1
  131. package/src/js/org.qcobjects.controllers.grid.d.ts +0 -1
  132. package/src/js/org.qcobjects.controllers.list.d.ts +0 -1
  133. package/src/js/org.qcobjects.controllers.slider.d.ts +0 -1
  134. package/src/js/org.qcobjects.controllers.swagger.d.ts +0 -1
  135. package/src/js/org.qcobjects.effects.d.ts +0 -20
  136. package/src/js/org.qcobjects.i18n_messages.d.ts +0 -1
  137. package/src/js/org.qcobjects.modal.controllers.d.ts +0 -1
  138. package/src/js/org.qcobjects.modal.effects.d.ts +0 -1
  139. package/src/js/org.qcobjects.models.d.ts +0 -1
  140. package/src/js/org.qcobjects.tools.canvas.d.ts +0 -1
  141. package/src/js/org.qcobjects.tools.d.ts +0 -1
  142. package/src/js/org.qcobjects.tools.layouts.d.ts +0 -1
  143. package/src/js/org.qcobjects.views.d.ts +0 -1
  144. /package/spec/{testsSpec.js → testsSpec.ts} +0 -0
@@ -1,7 +1,5 @@
1
- import { Package, Component, ComponentParams } from "qcobjects";
2
-
3
1
  /**
4
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
5
3
  * ________________
6
4
  *
7
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -24,72 +22,47 @@ import { Package, Component, ComponentParams } from "qcobjects";
24
22
  * Everyone is permitted to copy and distribute verbatim copies of this
25
23
  * license document, but changing it is not allowed.
26
24
  */
27
- const _top = (typeof module === "object" && typeof module.exports === "object") ? (
28
- module.exports = (typeof globalThis !== "undefined"
29
- ? globalThis
30
- : typeof self !== "undefined"
31
- ? self
32
- : typeof window !== "undefined"
33
- ? window
34
- : typeof global !== "undefined"
35
- ? global
36
- : {})
37
- ) : ((typeof global === "object") ? (global) : (
38
- (typeof window === "object") ? (window) : ({})
39
- ));
40
- (function (global:any) {
41
- "use strict";
25
+ "use strict";
26
+ import { Package, Component } from "qcobjects";
42
27
 
43
- class GridItemComponent extends Component {
44
- name = "grid-item";
45
- shadowed= true;
46
- tplsource= "inline";
47
- template= `
28
+ export class GridItemComponent extends Component {
29
+ name = "grid-item";
30
+ shadowed = true;
31
+ tplsource = "inline";
32
+ template = `
48
33
  <img src="{{image}}" />
49
34
  <p>{{description}}</p>
50
35
  `;
51
36
 
52
- cached= false;
53
-
54
- }
55
-
56
- class GridComponent extends Component {
57
- name= "grid";
58
- cached= false;
59
- view= null;
60
- shadowed= true;
61
- rows= 3;
62
- cols= 3;
63
- templateURI= "";
64
- data= {};
65
- tplsource= "inline";
66
- template= "<p>Loading...</p>";
37
+ cached = false;
67
38
 
68
- constructor (o:ComponentParams){
69
- super(o);
70
- this.body.setAttribute("controllerClass", "DataGridController");
71
- const subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null) ? (this.body.getAttribute("subcomponentClass")) : ("GridItemComponent");
72
- this.body.setAttribute("subcomponentClass", subcomponentClass as string);
39
+ }
73
40
 
74
- }
41
+ export class GridComponent extends Component {
42
+ name = "grid";
43
+ cached = false;
44
+ view = null;
45
+ shadowed = true;
46
+ rows = 3;
47
+ cols = 3;
48
+ templateURI = "";
49
+ data = {};
50
+ tplsource = "inline";
51
+ template = "<p>Loading...</p>";
52
+ body: any;
75
53
 
54
+ constructor(o: any) {
55
+ super(o);
56
+ this.body.setAttribute("controllerClass", "DataGridController");
57
+ const subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null) ? (this.body.getAttribute("subcomponentClass")) : ("GridItemComponent");
58
+ this.body.setAttribute("subcomponentClass", subcomponentClass as string);
76
59
 
77
60
  }
78
61
 
79
- Package("org.qcobjects.components.grid", [
80
- GridComponent,
81
- GridItemComponent
82
- ]);
83
-
84
- global.GridComponent = GridComponent;
85
- global.GridItemComponent = GridItemComponent;
86
-
87
- })(_top);
88
62
 
89
- const GridComponent = (_top as any).GridComponent;
90
- const GridItemComponent = (_top as any).GridItemComponent;
63
+ }
91
64
 
92
- export {
93
- GridComponent,
65
+ Package("org.qcobjects.components.grid", [
66
+ GridComponent,
94
67
  GridItemComponent
95
- };
68
+ ]);
@@ -1,7 +1,5 @@
1
- import { Component, ComponentParams, Package } from "qcobjects";
2
-
3
1
  /**
4
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
5
3
  * ________________
6
4
  *
7
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -24,40 +22,36 @@ import { Component, ComponentParams, Package } from "qcobjects";
24
22
  * Everyone is permitted to copy and distribute verbatim copies of this
25
23
  * license document, but changing it is not allowed.
26
24
  */
27
- const _top = (typeof module === "object" && typeof module.exports === "object") ? (
28
- module.exports = (typeof globalThis !== "undefined"
29
- ? globalThis
30
- : typeof self !== "undefined"
31
- ? self
32
- : typeof window !== "undefined"
33
- ? window
34
- : typeof global !== "undefined"
35
- ? global
36
- : {})
37
- ) : ((typeof global === "object") ? (global) : (
38
- (typeof window === "object") ? (window) : ({})
39
- ));
40
- (function(global:any) {
41
25
  "use strict";
42
- class ListItemComponent extends Component {
26
+ import { Component, Package } from "qcobjects";
27
+
28
+
29
+ export class ListItemComponent extends Component {
43
30
  shadowed= false;
44
31
  tplsource= "inline";
45
32
  template="<a href=\"{{value}}\">{{label}}</a>";
46
33
  cached= false;
47
34
 
48
- constructor (o:ComponentParams){
35
+ constructor (o:any){
49
36
  o.name="list-item";
50
37
  super(o);
51
38
  }
52
39
 
53
40
  }
54
41
 
55
- class ListComponent extends Component {
42
+ export class ListComponent extends Component {
43
+ data!:any;
56
44
  shadowed= true;
57
45
  tplsource= "inline";
58
46
  template= "<p>Loading...</p>";
47
+ body: any;
48
+ shadowRoot: HTMLElement | undefined;
49
+ rows!: string | number | null;
50
+ subcomponents!: never[];
51
+ done: any;
52
+ serviceData: any;
59
53
 
60
- constructor (o:ComponentParams){
54
+ constructor (o:any){
61
55
  o.name = "list";
62
56
  super(o);
63
57
  this.body.setAttribute("controllerClass","ListController");
@@ -71,13 +65,3 @@ Package("org.qcobjects.components.list",[
71
65
  ListItemComponent,
72
66
  ListComponent
73
67
  ]);
74
-
75
- global.ListComponent = ListComponent;
76
- global.ListItemComponent = ListItemComponent;
77
-
78
- })(_top);
79
-
80
- const ListComponent = (_top as any).ListComponent;
81
- const ListItemComponent = (_top as any).ListItemComponent;
82
-
83
- export {ListComponent, ListItemComponent};
@@ -1,8 +1,5 @@
1
- import { Package, Component, _DOMCreateElement, New, _super_, ComponentParams, QCObjectsElement } from "qcobjects";
2
- import { Fade, Move } from "./org.qcobjects.effects";
3
-
4
1
  /**
5
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
6
3
  * ________________
7
4
  *
8
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -25,17 +22,21 @@ import { Fade, Move } from "./org.qcobjects.effects";
25
22
  * Everyone is permitted to copy and distribute verbatim copies of this
26
23
  * license document, but changing it is not allowed.
27
24
  */
28
- (function() {
29
25
  "use strict";
30
- class NotificationComponent extends Component {
26
+ import { Package, Component, _DOMCreateElement, New, _super_ } from "qcobjects";
27
+ import { Fade, Move } from "./org.qcobjects.effects";
28
+
29
+
30
+ export class NotificationComponent extends Component {
31
31
  cached= false;
32
32
  tplsource= "inline";
33
33
  shadowed= false;
34
34
  kinds:string[];
35
+ template: string;
35
36
 
36
- constructor (o:ComponentParams){
37
+ constructor (o:any){
37
38
  o.name= "notification";
38
- o.body = _DOMCreateElement("div") as QCObjectsElement;
39
+ o.body = _DOMCreateElement("div") as HTMLElement;
39
40
  super(o);
40
41
 
41
42
  this.template= `
@@ -110,8 +111,9 @@ class NotificationComponent extends Component {
110
111
  disappearEffect.apply(element);
111
112
  },2000);
112
113
  };
113
- (element as QCObjectsElement).subelements("div.notification_background").map(element=>New(Fade,{duration:500}).apply(element,0,1));
114
- (element as QCObjectsElement).subelements("div.notification").map(element=>_display_(element));
114
+
115
+ (element as any).subelements("div.notification_background").map((element:HTMLElement):any=> {return (new Fade ({duration:500})).apply(element,0,1);} );
116
+ (element as any).subelements("div.notification").map((element:any)=>_display_(element));
115
117
  setTimeout(function (){
116
118
  element.remove();
117
119
  },2200);
@@ -187,5 +189,3 @@ class NotificationComponent extends Component {
187
189
  Package("org.quickcorp.components.notifications", [
188
190
  NotificationComponent
189
191
  ]);
190
-
191
- })();
@@ -1,7 +1,5 @@
1
- import { Package, Component, ComponentParams } from "qcobjects";
2
-
3
1
  /**
4
- * QCObjects SDK 2.4
2
+ * QCObjects SDK 2.5
5
3
  * ________________
6
4
  *
7
5
  * Author: Jean Machuca <correojean@gmail.com>
@@ -24,182 +22,195 @@ import { Package, Component, ComponentParams } from "qcobjects";
24
22
  * Everyone is permitted to copy and distribute verbatim copies of this
25
23
  * license document, but changing it is not allowed.
26
24
  */
27
- (function() {
28
25
  "use strict";
29
- Package("org.qcobjects.components.slider",[
30
-
31
- class SlideListComponent extends Component {
32
- tplsource="inline";
33
- template="<p>Loading...</p>";
34
- name = "slidelist";
35
-
36
- constructor (o:ComponentParams){
37
- super(o);
38
- this.body.setAttribute("controllerClass","DataGridController");
39
- const subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null)?(this.body.getAttribute("subcomponentClass")):("GridItemComponent");
40
- this.body.setAttribute("subcomponentClass",subcomponentClass as string);
41
- }
26
+ import { Package, Component } from "qcobjects";
27
+
28
+ export class SlideListComponent extends Component {
29
+ tplsource = "inline";
30
+ template = "<p>Loading...</p>";
31
+ name = "slidelist";
32
+ body: any;
33
+
34
+ constructor(o: any) {
35
+ super(o);
36
+ this.body.setAttribute("controllerClass", "DataGridController");
37
+ const subcomponentClass = (this.body.getAttribute("subcomponentClass") !== null) ? (this.body.getAttribute("subcomponentClass")) : ("GridItemComponent");
38
+ this.body.setAttribute("subcomponentClass", subcomponentClass as string);
39
+ }
40
+
41
+ }
42
42
 
43
- },
44
-
45
- class SlideItemComponent extends Component {
46
- effectClass = "Fade";
47
- name = "slider_item";
48
-
49
- constructor (o:ComponentParams) {
50
- super(o);
51
- this.data.slideNumber = this.data.__dataIndex+1;
52
- this.template= `
53
- <div class="qcoSlides" style="display:none">
54
- <div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
55
- <img src="{{image}}" alt="{{title}}"/>
56
- <div class="qco-slider__text">
57
- <p>{{label}} <a href="{{link}}">{{category}}</a></p>
58
- </div>
43
+ export class SlideItemComponent extends Component {
44
+ effectClass = "Fade";
45
+ name = "slider_item";
46
+ data: any;
47
+ template: string;
48
+ tplsource: string;
49
+
50
+ constructor(o: any) {
51
+ super(o);
52
+ this.data.slideNumber = this.data.__dataIndex + 1;
53
+ this.template = `
54
+ <div class="qcoSlides" style="display:none">
55
+ <div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
56
+ <img src="{{image}}" alt="{{title}}"/>
57
+ <div class="qco-slider__text">
58
+ <p>{{label}} <a href="{{link}}">{{category}}</a></p>
59
59
  </div>
60
- `;
61
- this.tplsource= "inline";
62
-
60
+ </div>
61
+ `;
62
+ this.tplsource = "inline";
63
+
64
+ }
65
+
66
+ }
67
+
68
+ export class SliderComponent extends Component {
69
+ name = "slider";
70
+ template: string;
71
+ tplsource: string;
72
+ shadowed: boolean;
73
+ data: any;
74
+ body: any;
75
+ __instanceID: any;
76
+
77
+ constructor(o: any) {
78
+ super(o);
79
+ this.template = `
80
+ <style>
81
+ /* Slideshow container */
82
+
83
+ :host a:hover,
84
+ :host a:active,
85
+ :host a:visited {
86
+ color: #ffffff;
63
87
  }
64
88
 
65
- },
66
-
67
- class SliderComponent extends Component {
68
- name = "slider";
69
-
70
- constructor (o:ComponentParams) {
71
- super(o);
72
- this.template= `
73
- <style>
74
- /* Slideshow container */
75
-
76
- :host a:hover,
77
- :host a:active,
78
- :host a:visited {
79
- color: #ffffff;
80
- }
81
-
82
- {
83
- color: #ffffff;
84
- }
85
-
86
- :host .prev {left:0;}
87
- .qco-slider__container {
88
- max-width: 100%;
89
- position: relative;
90
- margin: auto;
91
- height: 300px;
92
- }
93
- :host .qco-slider__container .qcoSlides img {
94
- object-fit: cover;
95
- width: 100%;
96
- height: 300px;
97
- }
98
-
99
- /* Next & previous buttons */
100
- :host .prev,
101
- :host .next {
102
- cursor: pointer;
103
- position: absolute;
104
- top: 50%;
105
- width: auto;
106
- margin-top: -22px;
107
- padding: 16px;
108
- color: white;
109
- font-weight: bold;
110
- font-size: 18px;
111
- transition: 0.6s ease;
112
- border-radius: 0 3px 3px 0;
113
- background-color: rgba(1, 1, 1, 0.1);
114
- }
115
-
116
- /* Position the "next button" to the right */
117
- :host .next {
118
- right: 0;
119
- border-radius: 3px 0 0 3px;
120
- }
121
-
122
- /* On hover, add a black background color with a little bit see-through */
123
- :host .prev:hover,
124
- :host .next:hover {
125
- background-color: rgba(0, 0, 0, 0.8);
126
- }
127
-
128
- /* Caption text */
129
- :host .qco-slider__text {
130
- color: #f2f2f2;
131
- font-size: 15px;
132
- /* padding: 8px 12px;*/
133
- position: absolute;
134
- bottom: 8px;
135
- width: 100%;
136
- text-align: center;
137
- text-shadow: -1px 1px 3px #111111;
138
- background-color: rgba(1,1,1,0.7);
139
- }
140
-
141
- /* Number text (1/3 etc) */
142
- :host .qco-slider__numbertext {
143
- color: #f2f2f2;
144
- text-shadow: 0px 2px 3px #111111;
145
- font-size: 12px;
146
- padding: 8px 12px;
147
- position: absolute;
148
- top: 0;
149
- padding-top: 0;
150
- margin-top: 10px;
151
- }
152
-
153
- /* The dots/bullets/indicators */
154
- :host .qcoSlider__dots {
155
- text-align: center;
156
- margin: 0 auto;
157
- padding: 0;
158
- }
159
- :host .qcoSlider__dots--dot {
160
- cursor: pointer;
161
- height: 10px;
162
- width: 10px;
163
- margin: 0 2px;
164
- background-color: #bbb;
165
- border-radius: 50%;
166
- display: inline-block;
167
- transition: background-color 0.6s ease;
168
- }
169
-
170
- :host .active,
171
- :host .qcoSlider__dots--dot:hover {
172
- background-color: #717171;
173
- }
174
-
175
- :host .qco-slider__container .qcoSlides img {
176
- border-radius: 30px 30px 0px 0px;
177
- }
178
-
179
- </style>
180
-
181
- <div class="qco-slider__container">
182
- <component name="slidelist" componentClass="SlideListComponent" subcomponentClass="SlideItemComponent" serviceClass="{{SERVICE_CLASS}}" ></component>
183
-
184
- <a class="prev" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(-1)">&#10094;</a>
185
- <a class="next" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(1)">&#10095;</a>
186
- </div>
187
- <br>
188
-
189
- <div class="qcoSlider__dots" style="text-align:center">
190
- </div>
191
-
192
- `;
193
- this.tplsource= "inline";
194
- this.shadowed= true;
195
- this.data.SERVICE_CLASS = this.body.getAttribute("serviceClass");
196
- this.data.sliderHandler = "slider_"+this.__instanceID.toString();
197
- this.body.setAttribute("controllerClass","SliderController");
89
+ {
90
+ color: #ffffff;
91
+ }
198
92
 
93
+ :host .prev {left:0;}
94
+ .qco-slider__container {
95
+ max-width: 100%;
96
+ position: relative;
97
+ margin: auto;
98
+ height: 300px;
99
+ }
100
+ :host .qco-slider__container .qcoSlides img {
101
+ object-fit: cover;
102
+ width: 100%;
103
+ height: 300px;
199
104
  }
200
105
 
106
+ /* Next & previous buttons */
107
+ :host .prev,
108
+ :host .next {
109
+ cursor: pointer;
110
+ position: absolute;
111
+ top: 50%;
112
+ width: auto;
113
+ margin-top: -22px;
114
+ padding: 16px;
115
+ color: white;
116
+ font-weight: bold;
117
+ font-size: 18px;
118
+ transition: 0.6s ease;
119
+ border-radius: 0 3px 3px 0;
120
+ background-color: rgba(1, 1, 1, 0.1);
121
+ }
122
+
123
+ /* Position the "next button" to the right */
124
+ :host .next {
125
+ right: 0;
126
+ border-radius: 3px 0 0 3px;
127
+ }
128
+
129
+ /* On hover, add a black background color with a little bit see-through */
130
+ :host .prev:hover,
131
+ :host .next:hover {
132
+ background-color: rgba(0, 0, 0, 0.8);
133
+ }
134
+
135
+ /* Caption text */
136
+ :host .qco-slider__text {
137
+ color: #f2f2f2;
138
+ font-size: 15px;
139
+ /* padding: 8px 12px;*/
140
+ position: absolute;
141
+ bottom: 8px;
142
+ width: 100%;
143
+ text-align: center;
144
+ text-shadow: -1px 1px 3px #111111;
145
+ background-color: rgba(1,1,1,0.7);
146
+ }
147
+
148
+ /* Number text (1/3 etc) */
149
+ :host .qco-slider__numbertext {
150
+ color: #f2f2f2;
151
+ text-shadow: 0px 2px 3px #111111;
152
+ font-size: 12px;
153
+ padding: 8px 12px;
154
+ position: absolute;
155
+ top: 0;
156
+ padding-top: 0;
157
+ margin-top: 10px;
158
+ }
159
+
160
+ /* The dots/bullets/indicators */
161
+ :host .qcoSlider__dots {
162
+ text-align: center;
163
+ margin: 0 auto;
164
+ padding: 0;
165
+ }
166
+ :host .qcoSlider__dots--dot {
167
+ cursor: pointer;
168
+ height: 10px;
169
+ width: 10px;
170
+ margin: 0 2px;
171
+ background-color: #bbb;
172
+ border-radius: 50%;
173
+ display: inline-block;
174
+ transition: background-color 0.6s ease;
175
+ }
176
+
177
+ :host .active,
178
+ :host .qcoSlider__dots--dot:hover {
179
+ background-color: #717171;
180
+ }
181
+
182
+ :host .qco-slider__container .qcoSlides img {
183
+ border-radius: 30px 30px 0px 0px;
184
+ }
185
+
186
+ </style>
187
+
188
+ <div class="qco-slider__container">
189
+ <component name="slidelist" componentClass="SlideListComponent" subcomponentClass="SlideItemComponent" serviceClass="{{SERVICE_CLASS}}" ></component>
190
+
191
+ <a class="prev" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(-1)">&#10094;</a>
192
+ <a class="next" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(1)">&#10095;</a>
193
+ </div>
194
+ <br>
195
+
196
+ <div class="qcoSlider__dots" style="text-align:center">
197
+ </div>
198
+
199
+ `;
200
+ this.tplsource = "inline";
201
+ this.shadowed = true;
202
+ this.data.SERVICE_CLASS = this.body.getAttribute("serviceClass");
203
+ this.data.sliderHandler = "slider_" + this.__instanceID.toString();
204
+ this.body.setAttribute("controllerClass", "SliderController");
205
+
201
206
  }
202
207
 
203
- ]);
208
+ }
209
+
204
210
 
205
- })();
211
+ Package("org.qcobjects.components.slider", [
212
+ SlideListComponent,
213
+ SlideItemComponent,
214
+ SliderComponent
215
+
216
+ ]);