@everymatrix/general-tutorial-slider 1.54.12 → 1.55.0
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/dist/cjs/general-tutorial-slider.cjs.entry.js +19 -54
- package/dist/cjs/general-tutorial-slider.cjs.js +2 -2
- package/dist/cjs/{index-bfd21506.js → index-e91cd3ca.js} +77 -180
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/general-tutorial-slider/general-tutorial-slider.js +18 -79
- package/dist/esm/general-tutorial-slider.entry.js +19 -54
- package/dist/esm/general-tutorial-slider.js +3 -3
- package/dist/esm/{index-b8731ee9.js → index-8f6f886a.js} +77 -180
- package/dist/esm/loader.js +2 -2
- package/dist/general-tutorial-slider/general-tutorial-slider.esm.js +1 -1
- package/dist/general-tutorial-slider/p-61e877f0.entry.js +1 -0
- package/dist/general-tutorial-slider/p-f4302c55.js +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/general-tutorial-slider/p-a5407119.entry.js +0 -1
- package/dist/general-tutorial-slider/p-e2d02089.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/packages/stencil/general-tutorial-slider/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/general-tutorial-slider/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -3,59 +3,6 @@ import { translate } from "../../utils/locale.utils";
|
|
|
3
3
|
import { isMobile, getDevicePlatform } from "../../utils/utils";
|
|
4
4
|
export class GeneralTutorialSlider {
|
|
5
5
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Client custom styling via inline style
|
|
8
|
-
*/
|
|
9
|
-
this.clientStyling = '';
|
|
10
|
-
/**
|
|
11
|
-
* Client custom styling via url
|
|
12
|
-
*/
|
|
13
|
-
this.clientStylingUrl = '';
|
|
14
|
-
/**
|
|
15
|
-
* Language of the widget
|
|
16
|
-
*/
|
|
17
|
-
this.language = 'en';
|
|
18
|
-
/**
|
|
19
|
-
* User roles
|
|
20
|
-
*/
|
|
21
|
-
this.userRoles = 'everyone';
|
|
22
|
-
/**
|
|
23
|
-
* CMS Endpoint stage
|
|
24
|
-
*/
|
|
25
|
-
this.cmsEnv = 'stage';
|
|
26
|
-
/**
|
|
27
|
-
* Show slider dots
|
|
28
|
-
*/
|
|
29
|
-
this.showSliderDots = true;
|
|
30
|
-
/**
|
|
31
|
-
* Show slider navigate arrows
|
|
32
|
-
*/
|
|
33
|
-
this.showSliderArrows = true;
|
|
34
|
-
/**
|
|
35
|
-
* Show slider navigate arrows on mobile
|
|
36
|
-
*/
|
|
37
|
-
this.showSliderArrowsMobile = false;
|
|
38
|
-
/**
|
|
39
|
-
* Auto-scroll will only function if it is set to true, and otherwise it will be ignored.
|
|
40
|
-
*/
|
|
41
|
-
this.enableAutoScroll = false;
|
|
42
|
-
/**
|
|
43
|
-
* Set interval period for slider
|
|
44
|
-
*/
|
|
45
|
-
this.intervalPeriod = 5000;
|
|
46
|
-
/**
|
|
47
|
-
* Set the number of slides you wish to display.
|
|
48
|
-
*/
|
|
49
|
-
this.scrollItems = 1;
|
|
50
|
-
/**
|
|
51
|
-
* Set the number of slides you wish to display.
|
|
52
|
-
*/
|
|
53
|
-
this.itemsPerPage = 1;
|
|
54
|
-
this.hasErrors = false;
|
|
55
|
-
this.limitStylingAppends = false;
|
|
56
|
-
this.isLoading = true;
|
|
57
|
-
this.activeIndex = 0;
|
|
58
|
-
this.tutorialElementWidth = 0;
|
|
59
6
|
this.userAgent = window.navigator.userAgent;
|
|
60
7
|
this.isMobile = isMobile(this.userAgent);
|
|
61
8
|
this.allElementsWidth = 0;
|
|
@@ -87,6 +34,24 @@ export class GeneralTutorialSlider {
|
|
|
87
34
|
console.log('error ', err);
|
|
88
35
|
});
|
|
89
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;
|
|
90
55
|
}
|
|
91
56
|
watchEndpoint(newValue, oldValue) {
|
|
92
57
|
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
@@ -274,8 +239,6 @@ export class GeneralTutorialSlider {
|
|
|
274
239
|
"tags": [],
|
|
275
240
|
"text": "Client custom styling via inline style"
|
|
276
241
|
},
|
|
277
|
-
"getter": false,
|
|
278
|
-
"setter": false,
|
|
279
242
|
"attribute": "client-styling",
|
|
280
243
|
"reflect": true,
|
|
281
244
|
"defaultValue": "''"
|
|
@@ -294,8 +257,6 @@ export class GeneralTutorialSlider {
|
|
|
294
257
|
"tags": [],
|
|
295
258
|
"text": "Client custom styling via url"
|
|
296
259
|
},
|
|
297
|
-
"getter": false,
|
|
298
|
-
"setter": false,
|
|
299
260
|
"attribute": "client-styling-url",
|
|
300
261
|
"reflect": true,
|
|
301
262
|
"defaultValue": "''"
|
|
@@ -314,8 +275,6 @@ export class GeneralTutorialSlider {
|
|
|
314
275
|
"tags": [],
|
|
315
276
|
"text": "Language of the widget"
|
|
316
277
|
},
|
|
317
|
-
"getter": false,
|
|
318
|
-
"setter": false,
|
|
319
278
|
"attribute": "language",
|
|
320
279
|
"reflect": true,
|
|
321
280
|
"defaultValue": "'en'"
|
|
@@ -334,8 +293,6 @@ export class GeneralTutorialSlider {
|
|
|
334
293
|
"tags": [],
|
|
335
294
|
"text": "Endpoint URL for the source of data"
|
|
336
295
|
},
|
|
337
|
-
"getter": false,
|
|
338
|
-
"setter": false,
|
|
339
296
|
"attribute": "cms-endpoint",
|
|
340
297
|
"reflect": true
|
|
341
298
|
},
|
|
@@ -353,8 +310,6 @@ export class GeneralTutorialSlider {
|
|
|
353
310
|
"tags": [],
|
|
354
311
|
"text": "User roles"
|
|
355
312
|
},
|
|
356
|
-
"getter": false,
|
|
357
|
-
"setter": false,
|
|
358
313
|
"attribute": "user-roles",
|
|
359
314
|
"reflect": true,
|
|
360
315
|
"defaultValue": "'everyone'"
|
|
@@ -373,8 +328,6 @@ export class GeneralTutorialSlider {
|
|
|
373
328
|
"tags": [],
|
|
374
329
|
"text": "CMS Endpoint stage"
|
|
375
330
|
},
|
|
376
|
-
"getter": false,
|
|
377
|
-
"setter": false,
|
|
378
331
|
"attribute": "cms-env",
|
|
379
332
|
"reflect": true,
|
|
380
333
|
"defaultValue": "'stage'"
|
|
@@ -393,8 +346,6 @@ export class GeneralTutorialSlider {
|
|
|
393
346
|
"tags": [],
|
|
394
347
|
"text": "Show slider dots"
|
|
395
348
|
},
|
|
396
|
-
"getter": false,
|
|
397
|
-
"setter": false,
|
|
398
349
|
"attribute": "show-slider-dots",
|
|
399
350
|
"reflect": true,
|
|
400
351
|
"defaultValue": "true"
|
|
@@ -413,8 +364,6 @@ export class GeneralTutorialSlider {
|
|
|
413
364
|
"tags": [],
|
|
414
365
|
"text": "Show slider navigate arrows"
|
|
415
366
|
},
|
|
416
|
-
"getter": false,
|
|
417
|
-
"setter": false,
|
|
418
367
|
"attribute": "show-slider-arrows",
|
|
419
368
|
"reflect": true,
|
|
420
369
|
"defaultValue": "true"
|
|
@@ -433,8 +382,6 @@ export class GeneralTutorialSlider {
|
|
|
433
382
|
"tags": [],
|
|
434
383
|
"text": "Show slider navigate arrows on mobile"
|
|
435
384
|
},
|
|
436
|
-
"getter": false,
|
|
437
|
-
"setter": false,
|
|
438
385
|
"attribute": "show-slider-arrows-mobile",
|
|
439
386
|
"reflect": true,
|
|
440
387
|
"defaultValue": "false"
|
|
@@ -453,8 +400,6 @@ export class GeneralTutorialSlider {
|
|
|
453
400
|
"tags": [],
|
|
454
401
|
"text": "Auto-scroll will only function if it is set to true, and otherwise it will be ignored."
|
|
455
402
|
},
|
|
456
|
-
"getter": false,
|
|
457
|
-
"setter": false,
|
|
458
403
|
"attribute": "enable-auto-scroll",
|
|
459
404
|
"reflect": true,
|
|
460
405
|
"defaultValue": "false"
|
|
@@ -473,8 +418,6 @@ export class GeneralTutorialSlider {
|
|
|
473
418
|
"tags": [],
|
|
474
419
|
"text": "Set interval period for slider"
|
|
475
420
|
},
|
|
476
|
-
"getter": false,
|
|
477
|
-
"setter": false,
|
|
478
421
|
"attribute": "interval-period",
|
|
479
422
|
"reflect": true,
|
|
480
423
|
"defaultValue": "5000"
|
|
@@ -493,8 +436,6 @@ export class GeneralTutorialSlider {
|
|
|
493
436
|
"tags": [],
|
|
494
437
|
"text": "Set the number of slides you wish to display."
|
|
495
438
|
},
|
|
496
|
-
"getter": false,
|
|
497
|
-
"setter": false,
|
|
498
439
|
"attribute": "scroll-items",
|
|
499
440
|
"reflect": true,
|
|
500
441
|
"defaultValue": "1"
|
|
@@ -513,8 +454,6 @@ export class GeneralTutorialSlider {
|
|
|
513
454
|
"tags": [],
|
|
514
455
|
"text": "Set the number of slides you wish to display."
|
|
515
456
|
},
|
|
516
|
-
"getter": false,
|
|
517
|
-
"setter": false,
|
|
518
457
|
"attribute": "items-per-page",
|
|
519
458
|
"reflect": true,
|
|
520
459
|
"defaultValue": "1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-8f6f886a.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -86,59 +86,6 @@ const GeneralTutorialSliderStyle0 = generalTutorialSliderCss;
|
|
|
86
86
|
const GeneralTutorialSlider = class {
|
|
87
87
|
constructor(hostRef) {
|
|
88
88
|
registerInstance(this, hostRef);
|
|
89
|
-
/**
|
|
90
|
-
* Client custom styling via inline style
|
|
91
|
-
*/
|
|
92
|
-
this.clientStyling = '';
|
|
93
|
-
/**
|
|
94
|
-
* Client custom styling via url
|
|
95
|
-
*/
|
|
96
|
-
this.clientStylingUrl = '';
|
|
97
|
-
/**
|
|
98
|
-
* Language of the widget
|
|
99
|
-
*/
|
|
100
|
-
this.language = 'en';
|
|
101
|
-
/**
|
|
102
|
-
* User roles
|
|
103
|
-
*/
|
|
104
|
-
this.userRoles = 'everyone';
|
|
105
|
-
/**
|
|
106
|
-
* CMS Endpoint stage
|
|
107
|
-
*/
|
|
108
|
-
this.cmsEnv = 'stage';
|
|
109
|
-
/**
|
|
110
|
-
* Show slider dots
|
|
111
|
-
*/
|
|
112
|
-
this.showSliderDots = true;
|
|
113
|
-
/**
|
|
114
|
-
* Show slider navigate arrows
|
|
115
|
-
*/
|
|
116
|
-
this.showSliderArrows = true;
|
|
117
|
-
/**
|
|
118
|
-
* Show slider navigate arrows on mobile
|
|
119
|
-
*/
|
|
120
|
-
this.showSliderArrowsMobile = false;
|
|
121
|
-
/**
|
|
122
|
-
* Auto-scroll will only function if it is set to true, and otherwise it will be ignored.
|
|
123
|
-
*/
|
|
124
|
-
this.enableAutoScroll = false;
|
|
125
|
-
/**
|
|
126
|
-
* Set interval period for slider
|
|
127
|
-
*/
|
|
128
|
-
this.intervalPeriod = 5000;
|
|
129
|
-
/**
|
|
130
|
-
* Set the number of slides you wish to display.
|
|
131
|
-
*/
|
|
132
|
-
this.scrollItems = 1;
|
|
133
|
-
/**
|
|
134
|
-
* Set the number of slides you wish to display.
|
|
135
|
-
*/
|
|
136
|
-
this.itemsPerPage = 1;
|
|
137
|
-
this.hasErrors = false;
|
|
138
|
-
this.limitStylingAppends = false;
|
|
139
|
-
this.isLoading = true;
|
|
140
|
-
this.activeIndex = 0;
|
|
141
|
-
this.tutorialElementWidth = 0;
|
|
142
89
|
this.userAgent = window.navigator.userAgent;
|
|
143
90
|
this.isMobile = isMobile(this.userAgent);
|
|
144
91
|
this.allElementsWidth = 0;
|
|
@@ -170,6 +117,24 @@ const GeneralTutorialSlider = class {
|
|
|
170
117
|
console.log('error ', err);
|
|
171
118
|
});
|
|
172
119
|
};
|
|
120
|
+
this.clientStyling = '';
|
|
121
|
+
this.clientStylingUrl = '';
|
|
122
|
+
this.language = 'en';
|
|
123
|
+
this.cmsEndpoint = undefined;
|
|
124
|
+
this.userRoles = 'everyone';
|
|
125
|
+
this.cmsEnv = 'stage';
|
|
126
|
+
this.showSliderDots = true;
|
|
127
|
+
this.showSliderArrows = true;
|
|
128
|
+
this.showSliderArrowsMobile = false;
|
|
129
|
+
this.enableAutoScroll = false;
|
|
130
|
+
this.intervalPeriod = 5000;
|
|
131
|
+
this.scrollItems = 1;
|
|
132
|
+
this.itemsPerPage = 1;
|
|
133
|
+
this.hasErrors = false;
|
|
134
|
+
this.limitStylingAppends = false;
|
|
135
|
+
this.isLoading = true;
|
|
136
|
+
this.activeIndex = 0;
|
|
137
|
+
this.tutorialElementWidth = 0;
|
|
173
138
|
}
|
|
174
139
|
watchEndpoint(newValue, oldValue) {
|
|
175
140
|
if (newValue && newValue != oldValue && this.cmsEndpoint) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-8f6f886a.js';
|
|
2
|
+
export { s as setNonce } from './index-8f6f886a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|