@everymatrix/general-slider 1.53.0 → 1.53.11
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-slider.cjs.entry.js +39 -9
- package/dist/cjs/general-slider.cjs.js +2 -2
- package/dist/cjs/{index-d1f313c2.js → index-d0f0bcf6.js} +166 -71
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/general-slider/general-slider.js +58 -8
- package/dist/esm/general-slider.entry.js +39 -9
- package/dist/esm/general-slider.js +3 -3
- package/dist/esm/{index-d5dd9b7c.js → index-217672e1.js} +166 -71
- package/dist/esm/loader.js +2 -2
- package/dist/general-slider/general-slider.esm.js +1 -1
- package/dist/general-slider/{p-89af433b.entry.js → p-e8b3e5f4.entry.js} +1 -1
- package/dist/general-slider/p-f26efc36.js +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/general-slider/p-825871b1.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/general-slider/.stencil/packages/stencil/general-slider/stencil.config.dev.d.ts +0 -2
|
@@ -1,27 +1,57 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class GeneralSlider {
|
|
3
3
|
constructor() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Prev: null,
|
|
8
|
-
Next: null
|
|
9
|
-
};
|
|
10
|
-
this.xDown = null;
|
|
11
|
-
this.yDown = null;
|
|
4
|
+
/**
|
|
5
|
+
* Slide Count
|
|
6
|
+
*/
|
|
12
7
|
this.slideNumber = 3;
|
|
8
|
+
/**
|
|
9
|
+
* Slides to show
|
|
10
|
+
*/
|
|
13
11
|
this.slideShow = 3;
|
|
12
|
+
/**
|
|
13
|
+
* Display the arrow icon
|
|
14
|
+
*/
|
|
14
15
|
this.showArrow = true;
|
|
16
|
+
/**
|
|
17
|
+
* Display the button
|
|
18
|
+
*/
|
|
15
19
|
this.showButton = false;
|
|
20
|
+
/**
|
|
21
|
+
* Auto Slide
|
|
22
|
+
*/
|
|
16
23
|
this.autoSlide = false;
|
|
24
|
+
/**
|
|
25
|
+
* Auto Slide loop time
|
|
26
|
+
*/
|
|
17
27
|
this.loopTime = 1;
|
|
28
|
+
/**
|
|
29
|
+
* Auto fill the Item height
|
|
30
|
+
*/
|
|
18
31
|
this.autoItemHeight = false;
|
|
32
|
+
/**
|
|
33
|
+
* Client custom styling via inline styles
|
|
34
|
+
*/
|
|
19
35
|
this.clientStyling = '';
|
|
36
|
+
/**
|
|
37
|
+
* Client custom styling via url
|
|
38
|
+
*/
|
|
20
39
|
this.clientStylingUrl = '';
|
|
40
|
+
/**
|
|
41
|
+
* Current page of slider
|
|
42
|
+
*/
|
|
21
43
|
this.currentPage = 0;
|
|
22
44
|
this.currentSlideNumber = 0;
|
|
23
45
|
this.slidesCount = 0;
|
|
24
46
|
this.limitStylingAppends = false;
|
|
47
|
+
this.slides = null;
|
|
48
|
+
this.slideWidth = 0;
|
|
49
|
+
this.controls = {
|
|
50
|
+
Prev: null,
|
|
51
|
+
Next: null
|
|
52
|
+
};
|
|
53
|
+
this.xDown = null;
|
|
54
|
+
this.yDown = null;
|
|
25
55
|
}
|
|
26
56
|
slide(next) {
|
|
27
57
|
this.sliderEl.classList.remove('Static');
|
|
@@ -222,6 +252,8 @@ export class GeneralSlider {
|
|
|
222
252
|
"tags": [],
|
|
223
253
|
"text": "Slide Count"
|
|
224
254
|
},
|
|
255
|
+
"getter": false,
|
|
256
|
+
"setter": false,
|
|
225
257
|
"attribute": "slide-number",
|
|
226
258
|
"reflect": false,
|
|
227
259
|
"defaultValue": "3"
|
|
@@ -240,6 +272,8 @@ export class GeneralSlider {
|
|
|
240
272
|
"tags": [],
|
|
241
273
|
"text": "Slides to show"
|
|
242
274
|
},
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
243
277
|
"attribute": "slide-show",
|
|
244
278
|
"reflect": false,
|
|
245
279
|
"defaultValue": "3"
|
|
@@ -258,6 +292,8 @@ export class GeneralSlider {
|
|
|
258
292
|
"tags": [],
|
|
259
293
|
"text": "Display the arrow icon"
|
|
260
294
|
},
|
|
295
|
+
"getter": false,
|
|
296
|
+
"setter": false,
|
|
261
297
|
"attribute": "show-arrow",
|
|
262
298
|
"reflect": false,
|
|
263
299
|
"defaultValue": "true"
|
|
@@ -276,6 +312,8 @@ export class GeneralSlider {
|
|
|
276
312
|
"tags": [],
|
|
277
313
|
"text": "Display the button"
|
|
278
314
|
},
|
|
315
|
+
"getter": false,
|
|
316
|
+
"setter": false,
|
|
279
317
|
"attribute": "show-button",
|
|
280
318
|
"reflect": false,
|
|
281
319
|
"defaultValue": "false"
|
|
@@ -294,6 +332,8 @@ export class GeneralSlider {
|
|
|
294
332
|
"tags": [],
|
|
295
333
|
"text": "Auto Slide"
|
|
296
334
|
},
|
|
335
|
+
"getter": false,
|
|
336
|
+
"setter": false,
|
|
297
337
|
"attribute": "auto-slide",
|
|
298
338
|
"reflect": false,
|
|
299
339
|
"defaultValue": "false"
|
|
@@ -312,6 +352,8 @@ export class GeneralSlider {
|
|
|
312
352
|
"tags": [],
|
|
313
353
|
"text": "Auto Slide loop time"
|
|
314
354
|
},
|
|
355
|
+
"getter": false,
|
|
356
|
+
"setter": false,
|
|
315
357
|
"attribute": "loop-time",
|
|
316
358
|
"reflect": false,
|
|
317
359
|
"defaultValue": "1"
|
|
@@ -330,6 +372,8 @@ export class GeneralSlider {
|
|
|
330
372
|
"tags": [],
|
|
331
373
|
"text": "Auto fill the Item height"
|
|
332
374
|
},
|
|
375
|
+
"getter": false,
|
|
376
|
+
"setter": false,
|
|
333
377
|
"attribute": "auto-item-height",
|
|
334
378
|
"reflect": false,
|
|
335
379
|
"defaultValue": "false"
|
|
@@ -348,6 +392,8 @@ export class GeneralSlider {
|
|
|
348
392
|
"tags": [],
|
|
349
393
|
"text": "Client custom styling via inline styles"
|
|
350
394
|
},
|
|
395
|
+
"getter": false,
|
|
396
|
+
"setter": false,
|
|
351
397
|
"attribute": "client-styling",
|
|
352
398
|
"reflect": false,
|
|
353
399
|
"defaultValue": "''"
|
|
@@ -366,6 +412,8 @@ export class GeneralSlider {
|
|
|
366
412
|
"tags": [],
|
|
367
413
|
"text": "Client custom styling via url"
|
|
368
414
|
},
|
|
415
|
+
"getter": false,
|
|
416
|
+
"setter": false,
|
|
369
417
|
"attribute": "client-styling-url",
|
|
370
418
|
"reflect": false,
|
|
371
419
|
"defaultValue": "''"
|
|
@@ -384,6 +432,8 @@ export class GeneralSlider {
|
|
|
384
432
|
"tags": [],
|
|
385
433
|
"text": "Current page of slider"
|
|
386
434
|
},
|
|
435
|
+
"getter": false,
|
|
436
|
+
"setter": false,
|
|
387
437
|
"attribute": "current-page",
|
|
388
438
|
"reflect": false,
|
|
389
439
|
"defaultValue": "0"
|
|
@@ -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-217672e1.js';
|
|
2
2
|
|
|
3
3
|
const generalSliderCss = ":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}.SliderList.Static{transition-duration:0ms}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emw--color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emw--tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";
|
|
4
4
|
const GeneralSliderStyle0 = generalSliderCss;
|
|
@@ -6,27 +6,57 @@ const GeneralSliderStyle0 = generalSliderCss;
|
|
|
6
6
|
const GeneralSlider = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Prev: null,
|
|
13
|
-
Next: null
|
|
14
|
-
};
|
|
15
|
-
this.xDown = null;
|
|
16
|
-
this.yDown = null;
|
|
9
|
+
/**
|
|
10
|
+
* Slide Count
|
|
11
|
+
*/
|
|
17
12
|
this.slideNumber = 3;
|
|
13
|
+
/**
|
|
14
|
+
* Slides to show
|
|
15
|
+
*/
|
|
18
16
|
this.slideShow = 3;
|
|
17
|
+
/**
|
|
18
|
+
* Display the arrow icon
|
|
19
|
+
*/
|
|
19
20
|
this.showArrow = true;
|
|
21
|
+
/**
|
|
22
|
+
* Display the button
|
|
23
|
+
*/
|
|
20
24
|
this.showButton = false;
|
|
25
|
+
/**
|
|
26
|
+
* Auto Slide
|
|
27
|
+
*/
|
|
21
28
|
this.autoSlide = false;
|
|
29
|
+
/**
|
|
30
|
+
* Auto Slide loop time
|
|
31
|
+
*/
|
|
22
32
|
this.loopTime = 1;
|
|
33
|
+
/**
|
|
34
|
+
* Auto fill the Item height
|
|
35
|
+
*/
|
|
23
36
|
this.autoItemHeight = false;
|
|
37
|
+
/**
|
|
38
|
+
* Client custom styling via inline styles
|
|
39
|
+
*/
|
|
24
40
|
this.clientStyling = '';
|
|
41
|
+
/**
|
|
42
|
+
* Client custom styling via url
|
|
43
|
+
*/
|
|
25
44
|
this.clientStylingUrl = '';
|
|
45
|
+
/**
|
|
46
|
+
* Current page of slider
|
|
47
|
+
*/
|
|
26
48
|
this.currentPage = 0;
|
|
27
49
|
this.currentSlideNumber = 0;
|
|
28
50
|
this.slidesCount = 0;
|
|
29
51
|
this.limitStylingAppends = false;
|
|
52
|
+
this.slides = null;
|
|
53
|
+
this.slideWidth = 0;
|
|
54
|
+
this.controls = {
|
|
55
|
+
Prev: null,
|
|
56
|
+
Next: null
|
|
57
|
+
};
|
|
58
|
+
this.xDown = null;
|
|
59
|
+
this.yDown = null;
|
|
30
60
|
}
|
|
31
61
|
slide(next) {
|
|
32
62
|
this.sliderEl.classList.remove('Static');
|
|
@@ -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-217672e1.js';
|
|
2
|
+
export { s as setNonce } from './index-217672e1.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.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|