@everymatrix/general-tutorial-slider 1.0.69

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 (44) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tutorial-slider.cjs.entry.js +310 -0
  3. package/dist/cjs/general-tutorial-slider.cjs.js +25 -0
  4. package/dist/cjs/index-42afbd98.js +1243 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/collection/collection-manifest.json +12 -0
  8. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.css +166 -0
  9. package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +482 -0
  10. package/dist/collection/components/general-tutorial-slider/index.js +1 -0
  11. package/dist/collection/index.js +1 -0
  12. package/dist/collection/utils/locale.utils.js +40 -0
  13. package/dist/collection/utils/utils.js +39 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/general-tutorial-slider.entry.js +306 -0
  16. package/dist/esm/general-tutorial-slider.js +20 -0
  17. package/dist/esm/index-a6815b2c.js +1216 -0
  18. package/dist/esm/index.js +1 -0
  19. package/dist/esm/loader.js +11 -0
  20. package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -0
  21. package/dist/general-tutorial-slider/index.esm.js +0 -0
  22. package/dist/general-tutorial-slider/p-20615b59.entry.js +1 -0
  23. package/dist/general-tutorial-slider/p-87756a93.js +2 -0
  24. package/dist/general-tutorial-slider/p-e1255160.js +1 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/general-tutorial-slider/general-tutorial-slider.d.ts +90 -0
  32. package/dist/types/components/general-tutorial-slider/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +141 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +1 -0
  37. package/dist/types/utils/utils.d.ts +9 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-42afbd98.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
11
+ return index.bootstrapLazy([["general-tutorial-slider.cjs",[[1,"general-tutorial-slider",{"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"cmsEnv":[513,"cms-env"],"showSliderDots":[516,"show-slider-dots"],"showSliderArrows":[516,"show-slider-arrows"],"showSliderArrowsMobile":[516,"show-slider-arrows-mobile"],"enableAutoScroll":[516,"enable-auto-scroll"],"intervalPeriod":[514,"interval-period"],"scrollItems":[520,"scroll-items"],"itemsPerPage":[514,"items-per-page"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"activeIndex":[32],"tutorialElementWidth":[32]},null,{"cmsEndpoint":["watchEndpoint"],"language":["watchEndpoint"]}]]]], options);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/general-tutorial-slider/general-tutorial-slider.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.20.0",
8
+ "typescriptVersion": "5.5.3"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,166 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .GeneralTutorialSliderError {
6
+ display: flex;
7
+ justify-content: center;
8
+ flex-direction: column;
9
+ }
10
+ .GeneralTutorialSliderError.TitleError {
11
+ color: red;
12
+ }
13
+
14
+ main {
15
+ width: 100%;
16
+ overflow: hidden;
17
+ }
18
+
19
+ .TutorialWrapper {
20
+ width: 100%;
21
+ display: flex;
22
+ flex: 0 0 auto;
23
+ justify-content: center;
24
+ flex-direction: column;
25
+ overflow: auto;
26
+ }
27
+
28
+ .TutorialContent {
29
+ display: flex;
30
+ justify-content: center;
31
+ flex-direction: row;
32
+ }
33
+
34
+ .TutorialItems {
35
+ display: flex;
36
+ transition: transform 0.4s ease-in-out;
37
+ transform: translateX(0px);
38
+ }
39
+
40
+ .TutorialItem {
41
+ flex: 0 0 auto;
42
+ display: flex;
43
+ flex-direction: column;
44
+ justify-content: flex-start;
45
+ align-items: center;
46
+ color: #000;
47
+ background-color: #f5f5f5;
48
+ border-radius: 5px;
49
+ user-select: none;
50
+ }
51
+ .TutorialItem .ItemTitle {
52
+ padding: 25px 15px;
53
+ font-size: 18px;
54
+ font-weight: 600;
55
+ color: var(--emfe-w-color-secondary, #FD2839);
56
+ }
57
+ .TutorialItem .ItemImage {
58
+ overflow: hidden;
59
+ }
60
+ .TutorialItem .ItemImage img, .TutorialItem .ItemImage video {
61
+ height: auto;
62
+ width: 450px;
63
+ }
64
+ .TutorialItem .ItemDescription {
65
+ font-size: 14px;
66
+ padding: 25px 15px;
67
+ font-weight: 400;
68
+ color: #000;
69
+ }
70
+
71
+ .SliderNavButton {
72
+ border: 0px;
73
+ width: 25px;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ }
78
+ .SliderNavButton svg {
79
+ width: 20px;
80
+ stroke: var(--emfe-w-color-secondary, #FD2839);
81
+ }
82
+
83
+ .DisabledArrow svg {
84
+ opacity: 0.2;
85
+ stroke: var(--emfe-w-color-secondary, #FD2839);
86
+ pointer-events: none;
87
+ }
88
+
89
+ .DotsWrapper {
90
+ width: 100%;
91
+ margin: 0 auto;
92
+ margin-top: 20px;
93
+ height: 30px;
94
+ }
95
+ .DotsWrapper ul.Dots {
96
+ display: flex;
97
+ justify-content: center;
98
+ padding: 0;
99
+ }
100
+ .DotsWrapper ul.Dots li {
101
+ height: 10px;
102
+ width: 10px;
103
+ background: #ccc;
104
+ border-radius: 50%;
105
+ margin-left: 3px;
106
+ margin-right: 3px;
107
+ list-style: none;
108
+ cursor: pointer;
109
+ }
110
+ .DotsWrapper ul.Dots li:hover {
111
+ background: #bbb;
112
+ }
113
+ .DotsWrapper ul.Dots li.active {
114
+ border: solid 1px var(--emfe-w-color-secondary, #FD2839);
115
+ background: var(--emfe-w-color-secondary, #FD2839);
116
+ }
117
+ .DotsWrapper ul.Dots li.default {
118
+ border: solid 1px var(--emfe-w-color-secondary, #FD2839);
119
+ background-color: #FFF;
120
+ }
121
+
122
+ @container (max-width: 475px) {
123
+ @media screen and (orientation: landscape) {
124
+ .TutorialItem {
125
+ width: 100%;
126
+ }
127
+ }
128
+ main {
129
+ height: 90cqh;
130
+ }
131
+ .TutorialItems {
132
+ height: inherit;
133
+ }
134
+ .TutorialItem {
135
+ min-width: 100%;
136
+ max-height: 800px;
137
+ overflow: auto;
138
+ display: flex;
139
+ flex-direction: column;
140
+ justify-content: flex-start;
141
+ align-items: center;
142
+ color: #000;
143
+ background-color: #f5f5f5;
144
+ border-radius: 5px;
145
+ user-select: none;
146
+ }
147
+ .TutorialItem .ItemTitle {
148
+ padding: 25px 15px;
149
+ font-size: 18px;
150
+ font-weight: 600;
151
+ color: var(--emfe-w-color-secondary, #FD2839);
152
+ }
153
+ .TutorialItem .ItemImage {
154
+ min-height: 200px;
155
+ }
156
+ .TutorialItem .ItemImage img, .TutorialItem .ItemImage video {
157
+ height: auto;
158
+ width: 100%;
159
+ }
160
+ .TutorialItem .ItemDescription {
161
+ font-size: 14px;
162
+ padding: 25px 15px;
163
+ font-weight: 400;
164
+ color: #000;
165
+ }
166
+ }
@@ -0,0 +1,482 @@
1
+ import { h } from "@stencil/core";
2
+ import { translate } from "../../utils/locale.utils";
3
+ import { isMobile, getDevicePlatform } from "../../utils/utils";
4
+ export class GeneralTutorialSlider {
5
+ constructor() {
6
+ this.userAgent = window.navigator.userAgent;
7
+ this.isMobile = isMobile(this.userAgent);
8
+ this.allElementsWidth = 0;
9
+ this.xDown = null;
10
+ this.yDown = null;
11
+ this.resizeHandler = () => {
12
+ this.recalculateItemsPerPage();
13
+ };
14
+ this.orientationChangeHandler = () => {
15
+ setTimeout(() => {
16
+ this.recalculateItemsPerPage();
17
+ }, 10);
18
+ };
19
+ this.setClientStyling = () => {
20
+ let sheet = document.createElement('style');
21
+ sheet.innerHTML = this.clientStyling;
22
+ this.stylingContainer.prepend(sheet);
23
+ };
24
+ this.setClientStylingURL = () => {
25
+ let url = new URL(this.clientStylingUrl);
26
+ let cssFile = document.createElement('style');
27
+ fetch(url.href)
28
+ .then((res) => res.text())
29
+ .then((data) => {
30
+ cssFile.innerHTML = data;
31
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
32
+ })
33
+ .catch((err) => {
34
+ console.log('error ', err);
35
+ });
36
+ };
37
+ this.clientStyling = '';
38
+ this.clientStylingUrl = '';
39
+ this.language = 'en';
40
+ this.cmsEndpoint = undefined;
41
+ this.userRoles = 'everyone';
42
+ this.cmsEnv = 'stage';
43
+ this.showSliderDots = true;
44
+ this.showSliderArrows = true;
45
+ this.showSliderArrowsMobile = false;
46
+ this.enableAutoScroll = false;
47
+ this.intervalPeriod = 5000;
48
+ this.scrollItems = 1;
49
+ this.itemsPerPage = 1;
50
+ this.hasErrors = false;
51
+ this.limitStylingAppends = false;
52
+ this.isLoading = true;
53
+ this.activeIndex = 0;
54
+ this.tutorialElementWidth = 0;
55
+ }
56
+ watchEndpoint(newValue, oldValue) {
57
+ if (newValue && newValue != oldValue && this.cmsEndpoint) {
58
+ this.getGeneralTutorialSlider().then((tutorialContent) => {
59
+ this.tutorialData = tutorialContent;
60
+ });
61
+ }
62
+ }
63
+ connectedCallback() {
64
+ window.screen.orientation.addEventListener('change', this.orientationChangeHandler);
65
+ }
66
+ componentWillLoad() {
67
+ if (this.cmsEndpoint && this.language) {
68
+ return this.getGeneralTutorialSlider().then((tutorialContent) => {
69
+ this.tutorialData = tutorialContent;
70
+ });
71
+ }
72
+ }
73
+ componentDidLoad() {
74
+ window.addEventListener('resize', this.resizeHandler);
75
+ }
76
+ componentDidRender() {
77
+ this.el.addEventListener('touchstart', this.handleTouchStart.bind(this), { passive: true });
78
+ this.el.addEventListener('touchmove', this.handleTouchMove.bind(this), { passive: true });
79
+ this.recalculateItemsPerPage();
80
+ // start custom styling area
81
+ if (!this.limitStylingAppends && this.stylingContainer) {
82
+ if (this.clientStyling)
83
+ this.setClientStyling();
84
+ if (this.clientStylingUrl)
85
+ this.setClientStylingURL();
86
+ this.limitStylingAppends = true;
87
+ }
88
+ // end custom styling area
89
+ }
90
+ componentDidUpdate() {
91
+ this.recalculateItemsPerPage();
92
+ }
93
+ disconnectedCallback() {
94
+ this.el.removeEventListener('touchstart', this.handleTouchStart);
95
+ this.el.removeEventListener('touchmove', this.handleTouchMove);
96
+ window.screen.orientation.removeEventListener('change', this.orientationChangeHandler);
97
+ window.removeEventListener('resize', this.resizeHandler);
98
+ }
99
+ getGeneralTutorialSlider() {
100
+ let url = new URL(`${this.cmsEndpoint}/${this.language}/slider-onboarding`);
101
+ url.searchParams.append('env', this.cmsEnv);
102
+ url.searchParams.append('userRoles', this.userRoles);
103
+ url.searchParams.append('device', getDevicePlatform());
104
+ return new Promise((resolve, reject) => {
105
+ this.isLoading = true;
106
+ fetch(url.href)
107
+ .then((res) => res.json())
108
+ .then((tutorialContent) => {
109
+ resolve(tutorialContent);
110
+ }).catch((err) => {
111
+ console.error(err);
112
+ this.hasErrors = true;
113
+ reject(err);
114
+ }).finally(() => {
115
+ this.isLoading = false;
116
+ });
117
+ });
118
+ }
119
+ move(direction) {
120
+ this.setActive(this.activeIndex + direction);
121
+ }
122
+ ;
123
+ //calculate itemsperpage by tutorials length to avoid empty in the tutorials end
124
+ recalculateItemsPerPage() {
125
+ if (!this.tutorialsElement)
126
+ return;
127
+ this.tutorialElementWidth = this.tutorialsElement.clientWidth;
128
+ this.allElementsWidth = (this.tutorialData.length - 1) * this.tutorialElementWidth;
129
+ }
130
+ ;
131
+ goTo(index) {
132
+ let diff = this.activeIndex - index;
133
+ if (diff > 0) {
134
+ for (let i = 0; i < diff; i++) {
135
+ this.move(-1);
136
+ }
137
+ }
138
+ else {
139
+ for (let i = 0; i > diff; i--) {
140
+ this.move(1);
141
+ }
142
+ }
143
+ }
144
+ handleTouchStart(evt) {
145
+ const firstTouch = this.getTouches(evt)[0];
146
+ this.xDown = firstTouch.clientX;
147
+ this.yDown = firstTouch.clientY;
148
+ }
149
+ getTouches(evt) {
150
+ return evt.touches || evt.originalEvent.touches;
151
+ }
152
+ handleTouchMove(evt) {
153
+ if (!this.xDown || !this.yDown)
154
+ return;
155
+ let xUp = evt.touches[0].clientX;
156
+ let yUp = evt.touches[0].clientY;
157
+ let xDiff = this.xDown - xUp;
158
+ let yDiff = this.yDown - yUp;
159
+ if (Math.abs(xDiff) > Math.abs(yDiff)) {
160
+ if (xDiff > 0) {
161
+ this.move(1);
162
+ }
163
+ else {
164
+ this.move(-1);
165
+ }
166
+ }
167
+ this.xDown = null;
168
+ this.yDown = null;
169
+ }
170
+ ;
171
+ setActive(index) {
172
+ const maxLength = this.tutorialData.length;
173
+ if (index >= 0) {
174
+ if (index >= maxLength - 1) {
175
+ this.activeIndex = maxLength - 1;
176
+ }
177
+ else {
178
+ this.activeIndex = index;
179
+ }
180
+ }
181
+ else {
182
+ this.activeIndex = 0;
183
+ }
184
+ }
185
+ renderDots() {
186
+ const dots = [];
187
+ for (let index = 0; index < this.tutorialData.length / this.itemsPerPage; index++) {
188
+ dots.push(h("li", { class: index == this.activeIndex ? 'active' : 'default', onClick: () => { this.goTo(index); this.setActive(index); } }));
189
+ }
190
+ return dots;
191
+ }
192
+ render() {
193
+ const styles = {
194
+ transform: `translate(${(this.allElementsWidth / (this.tutorialData.length - 1) * this.activeIndex) * -1}px, 0px)`
195
+ };
196
+ const itemStyle = {
197
+ width: `${this.tutorialElementWidth / this.itemsPerPage}px`
198
+ };
199
+ if (this.hasErrors) {
200
+ return (h("div", { class: "GeneralTutorialSliderError" }, h("div", { class: "TitleError" }, translate('error', this.language))));
201
+ }
202
+ if (!this.isLoading) {
203
+ return (h("div", { ref: el => this.stylingContainer = el }, h("div", { class: "TutorialWrapper" }, h("div", { class: "TutorialContent", ref: (el) => this.slider = el }, ((this.showSliderArrows && !this.isMobile) ||
204
+ (this.showSliderArrowsMobile && this.isMobile)) &&
205
+ h("div", { class: this.activeIndex === 0 ? 'SliderNavButton DisabledArrow' : 'SliderNavButton', onClick: () => this.move(-1) }, h("svg", { fill: "none", stroke: "var(--emfe-w-color-secondary, #FD2839)", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M15 19l-7-7 7-7" }))), h("main", null, h("div", { style: styles, ref: (el) => this.tutorialsElement = el, class: "TutorialItems" }, this.tutorialData.map((data) => {
206
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
207
+ return h("div", { class: "TutorialItem", style: itemStyle }, h("div", { class: "ItemTitle", innerHTML: data === null || data === void 0 ? void 0 : data.title }), ((_a = data === null || data === void 0 ? void 0 : data.media) === null || _a === void 0 ? void 0 : _a.images) ? (h("div", { class: "ItemImage" }, this.isMobile ? (h("img", { src: (_e = (_d = (_c = (_b = data === null || data === void 0 ? void 0 : data.media) === null || _b === void 0 ? void 0 : _b.images[0]) === null || _c === void 0 ? void 0 : _c.sources) === null || _d === void 0 ? void 0 : _d.find((source) => source.media === 'mobile')) === null || _e === void 0 ? void 0 : _e.src, alt: data === null || data === void 0 ? void 0 : data.slug })) : (h("img", { src: (_j = (_h = (_g = (_f = data === null || data === void 0 ? void 0 : data.media) === null || _f === void 0 ? void 0 : _f.images[0]) === null || _g === void 0 ? void 0 : _g.sources) === null || _h === void 0 ? void 0 : _h.find((source) => source.media === 'desktop')) === null || _j === void 0 ? void 0 : _j.src, alt: data === null || data === void 0 ? void 0 : data.slug })))) : ((_k = data === null || data === void 0 ? void 0 : data.media) === null || _k === void 0 ? void 0 : _k.video) ? (h("div", { class: "ItemImage" }, this.isMobile ? (h("video", { controls: true, loop: true, autoplay: true }, h("source", { src: (_p = (_o = (_m = (_l = data === null || data === void 0 ? void 0 : data.media) === null || _l === void 0 ? void 0 : _l.video[0]) === null || _m === void 0 ? void 0 : _m.sources) === null || _o === void 0 ? void 0 : _o.find((source) => source.media === 'mobile')) === null || _p === void 0 ? void 0 : _p.src, type: "video/mp4" }))) : (h("video", { controls: true, loop: true, autoplay: true }, h("source", { src: (_t = (_s = (_r = (_q = data === null || data === void 0 ? void 0 : data.media) === null || _q === void 0 ? void 0 : _q.video[0]) === null || _r === void 0 ? void 0 : _r.sources) === null || _s === void 0 ? void 0 : _s.find((source) => source.media === 'desktop')) === null || _t === void 0 ? void 0 : _t.src, type: "video/mp4" }))))) : null, h("div", { class: "ItemDescription", innerHTML: data === null || data === void 0 ? void 0 : data.content }));
208
+ }))), ((this.showSliderArrows && !this.isMobile) ||
209
+ (this.showSliderArrowsMobile && this.isMobile)) &&
210
+ h("div", { class: this.activeIndex === this.tutorialData.length - 1 ? ' SliderNavButton DisabledArrow disabled' : 'SliderNavButton', onClick: () => this.move(1) }, h("svg", { fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", d: "M9 5l7 7-7 7" }))), h("div", null)), this.showSliderDots &&
211
+ h("div", { class: "DotsWrapper" }, h("ul", { class: "Dots" }, this.renderDots())))));
212
+ }
213
+ }
214
+ static get is() { return "general-tutorial-slider"; }
215
+ static get encapsulation() { return "shadow"; }
216
+ static get originalStyleUrls() {
217
+ return {
218
+ "$": ["general-tutorial-slider.scss"]
219
+ };
220
+ }
221
+ static get styleUrls() {
222
+ return {
223
+ "$": ["general-tutorial-slider.css"]
224
+ };
225
+ }
226
+ static get properties() {
227
+ return {
228
+ "clientStyling": {
229
+ "type": "string",
230
+ "mutable": false,
231
+ "complexType": {
232
+ "original": "string",
233
+ "resolved": "string",
234
+ "references": {}
235
+ },
236
+ "required": false,
237
+ "optional": false,
238
+ "docs": {
239
+ "tags": [],
240
+ "text": "Client custom styling via inline style"
241
+ },
242
+ "attribute": "client-styling",
243
+ "reflect": true,
244
+ "defaultValue": "''"
245
+ },
246
+ "clientStylingUrl": {
247
+ "type": "string",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": false,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": "Client custom styling via url"
259
+ },
260
+ "attribute": "client-styling-url",
261
+ "reflect": true,
262
+ "defaultValue": "''"
263
+ },
264
+ "language": {
265
+ "type": "string",
266
+ "mutable": false,
267
+ "complexType": {
268
+ "original": "string",
269
+ "resolved": "string",
270
+ "references": {}
271
+ },
272
+ "required": false,
273
+ "optional": false,
274
+ "docs": {
275
+ "tags": [],
276
+ "text": "Language of the widget"
277
+ },
278
+ "attribute": "language",
279
+ "reflect": true,
280
+ "defaultValue": "'en'"
281
+ },
282
+ "cmsEndpoint": {
283
+ "type": "string",
284
+ "mutable": false,
285
+ "complexType": {
286
+ "original": "string",
287
+ "resolved": "string",
288
+ "references": {}
289
+ },
290
+ "required": true,
291
+ "optional": false,
292
+ "docs": {
293
+ "tags": [],
294
+ "text": "Endpoint URL for the source of data"
295
+ },
296
+ "attribute": "cms-endpoint",
297
+ "reflect": true
298
+ },
299
+ "userRoles": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "string",
304
+ "resolved": "string",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": false,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "User roles"
312
+ },
313
+ "attribute": "user-roles",
314
+ "reflect": true,
315
+ "defaultValue": "'everyone'"
316
+ },
317
+ "cmsEnv": {
318
+ "type": "string",
319
+ "mutable": false,
320
+ "complexType": {
321
+ "original": "string",
322
+ "resolved": "string",
323
+ "references": {}
324
+ },
325
+ "required": false,
326
+ "optional": false,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": "CMS Endpoint stage"
330
+ },
331
+ "attribute": "cms-env",
332
+ "reflect": true,
333
+ "defaultValue": "'stage'"
334
+ },
335
+ "showSliderDots": {
336
+ "type": "boolean",
337
+ "mutable": false,
338
+ "complexType": {
339
+ "original": "boolean",
340
+ "resolved": "boolean",
341
+ "references": {}
342
+ },
343
+ "required": false,
344
+ "optional": false,
345
+ "docs": {
346
+ "tags": [],
347
+ "text": "Show slider dots"
348
+ },
349
+ "attribute": "show-slider-dots",
350
+ "reflect": true,
351
+ "defaultValue": "true"
352
+ },
353
+ "showSliderArrows": {
354
+ "type": "boolean",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "boolean",
358
+ "resolved": "boolean",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": "Show slider navigate arrows"
366
+ },
367
+ "attribute": "show-slider-arrows",
368
+ "reflect": true,
369
+ "defaultValue": "true"
370
+ },
371
+ "showSliderArrowsMobile": {
372
+ "type": "boolean",
373
+ "mutable": false,
374
+ "complexType": {
375
+ "original": "boolean",
376
+ "resolved": "boolean",
377
+ "references": {}
378
+ },
379
+ "required": false,
380
+ "optional": false,
381
+ "docs": {
382
+ "tags": [],
383
+ "text": "Show slider navigate arrows on mobile"
384
+ },
385
+ "attribute": "show-slider-arrows-mobile",
386
+ "reflect": true,
387
+ "defaultValue": "false"
388
+ },
389
+ "enableAutoScroll": {
390
+ "type": "boolean",
391
+ "mutable": false,
392
+ "complexType": {
393
+ "original": "boolean",
394
+ "resolved": "boolean",
395
+ "references": {}
396
+ },
397
+ "required": false,
398
+ "optional": false,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": "Auto-scroll will only function if it is set to true, and otherwise it will be ignored."
402
+ },
403
+ "attribute": "enable-auto-scroll",
404
+ "reflect": true,
405
+ "defaultValue": "false"
406
+ },
407
+ "intervalPeriod": {
408
+ "type": "number",
409
+ "mutable": false,
410
+ "complexType": {
411
+ "original": "number",
412
+ "resolved": "number",
413
+ "references": {}
414
+ },
415
+ "required": false,
416
+ "optional": false,
417
+ "docs": {
418
+ "tags": [],
419
+ "text": "Set interval period for slider"
420
+ },
421
+ "attribute": "interval-period",
422
+ "reflect": true,
423
+ "defaultValue": "5000"
424
+ },
425
+ "scrollItems": {
426
+ "type": "any",
427
+ "mutable": false,
428
+ "complexType": {
429
+ "original": "any",
430
+ "resolved": "any",
431
+ "references": {}
432
+ },
433
+ "required": false,
434
+ "optional": false,
435
+ "docs": {
436
+ "tags": [],
437
+ "text": "Set the number of slides you wish to display."
438
+ },
439
+ "attribute": "scroll-items",
440
+ "reflect": true,
441
+ "defaultValue": "1"
442
+ },
443
+ "itemsPerPage": {
444
+ "type": "number",
445
+ "mutable": false,
446
+ "complexType": {
447
+ "original": "number",
448
+ "resolved": "number",
449
+ "references": {}
450
+ },
451
+ "required": false,
452
+ "optional": false,
453
+ "docs": {
454
+ "tags": [],
455
+ "text": "Set the number of slides you wish to display."
456
+ },
457
+ "attribute": "items-per-page",
458
+ "reflect": true,
459
+ "defaultValue": "1"
460
+ }
461
+ };
462
+ }
463
+ static get states() {
464
+ return {
465
+ "hasErrors": {},
466
+ "limitStylingAppends": {},
467
+ "isLoading": {},
468
+ "activeIndex": {},
469
+ "tutorialElementWidth": {}
470
+ };
471
+ }
472
+ static get elementRef() { return "el"; }
473
+ static get watchers() {
474
+ return [{
475
+ "propName": "cmsEndpoint",
476
+ "methodName": "watchEndpoint"
477
+ }, {
478
+ "propName": "language",
479
+ "methodName": "watchEndpoint"
480
+ }];
481
+ }
482
+ }
@@ -0,0 +1 @@
1
+ export { GeneralTutorialSlider } from './general-tutorial-slider';
@@ -0,0 +1 @@
1
+ export * from './components';