@everymatrix/general-slider-navigation 1.44.0 → 1.45.2
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/carousel-component_2.cjs.entry.js +392 -419
- package/dist/cjs/general-slider-navigation.cjs.js +17 -11
- package/dist/cjs/index-88d9137e.js +1269 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/carousel-component/carousel-component.css +0 -2
- package/dist/collection/components/carousel-component/carousel-component.js +360 -400
- package/dist/collection/components/general-slider-navigation/general-slider-navigation.js +293 -310
- package/dist/collection/components/general-slider-navigation/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +56 -56
- package/dist/collection/utils/utils.js +39 -39
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/carousel-component_2.entry.js +392 -419
- package/dist/esm/general-slider-navigation.js +14 -11
- package/dist/esm/index-c749968b.js +1242 -0
- package/dist/esm/loader.js +7 -13
- package/dist/general-slider-navigation/general-slider-navigation.esm.js +1 -1
- package/dist/general-slider-navigation/p-8c0cd4b3.js +2 -0
- package/dist/general-slider-navigation/p-c1626bea.entry.js +1 -0
- package/dist/general-slider-navigation/p-e1255160.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider-navigation/.stencil/packages/stencil/general-slider-navigation/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/general-slider-navigation/.stencil/packages/stencil/general-slider-navigation/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/carousel-component/carousel-component.d.ts +70 -77
- package/dist/types/components/general-slider-navigation/general-slider-navigation.d.ts +54 -54
- package/dist/types/components/general-slider-navigation/index.d.ts +1 -0
- package/dist/types/components.d.ts +0 -16
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-d69ac031.js +0 -1269
- package/dist/components/carousel-component.d.ts +0 -11
- package/dist/components/carousel-component.js +0 -6
- package/dist/components/carousel-component2.js +0 -386
- package/dist/components/general-slider-navigation.d.ts +0 -11
- package/dist/components/general-slider-navigation.js +0 -144
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-a33109c0.js +0 -1243
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/general-slider-navigation/p-6da4364f.entry.js +0 -1
- package/dist/general-slider-navigation/p-734ecc50.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-slider-navigation/.stencil/packages/general-slider-navigation/stencil.config.d.ts +0 -2
|
@@ -1,421 +1,381 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { checkDeviceType, isMobile } from
|
|
3
|
-
import { getTranslations, translate } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { checkDeviceType, isMobile } from "../../utils/utils";
|
|
3
|
+
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
4
4
|
export class CarouselComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
this.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
break;
|
|
89
|
-
case 'desktop':
|
|
90
|
-
source = image.srcDesktop;
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
return source;
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
handleNewTranslations() {
|
|
97
|
-
getTranslations(this.translationUrl);
|
|
98
|
-
}
|
|
99
|
-
async componentWillLoad() {
|
|
100
|
-
if (this.translationUrl.length > 2) {
|
|
101
|
-
await getTranslations(this.translationUrl);
|
|
5
|
+
constructor() {
|
|
6
|
+
this.userAgent = window.navigator.userAgent;
|
|
7
|
+
this.isMobile = isMobile(this.userAgent);
|
|
8
|
+
this.touchStartX = 0;
|
|
9
|
+
this.touchEndX = 0;
|
|
10
|
+
this.setClientStylingURL = () => {
|
|
11
|
+
let url = new URL(this.clientStylingUrl);
|
|
12
|
+
let cssFile = document.createElement('style');
|
|
13
|
+
fetch(url.href)
|
|
14
|
+
.then((res) => res.text())
|
|
15
|
+
.then((data) => {
|
|
16
|
+
cssFile.innerHTML = data;
|
|
17
|
+
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
18
|
+
})
|
|
19
|
+
.catch((err) => {
|
|
20
|
+
console.log('error ', err);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
this.setClientStyling = () => {
|
|
24
|
+
let sheet = document.createElement('style');
|
|
25
|
+
sheet.innerHTML = this.clientStyling;
|
|
26
|
+
this.stylingContainer.prepend(sheet);
|
|
27
|
+
};
|
|
28
|
+
this.moveSliderIndex = (index) => {
|
|
29
|
+
if (index < 1)
|
|
30
|
+
index = this.sliderData.length;
|
|
31
|
+
if (index > this.sliderData.length)
|
|
32
|
+
index = 1;
|
|
33
|
+
this.currIndex = index;
|
|
34
|
+
if (this.sliderElement) {
|
|
35
|
+
this.sliderElement.style.transform = this.getSliderTransformStyle();
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
this.handleTouchStart = (event) => {
|
|
39
|
+
this.touchStartX = event.changedTouches[0].screenX;
|
|
40
|
+
};
|
|
41
|
+
this.handleTouchEnd = (event) => {
|
|
42
|
+
this.touchEndX = event.changedTouches[0].screenX;
|
|
43
|
+
this.handleSwipe();
|
|
44
|
+
};
|
|
45
|
+
this.navigationTo = (url, target, isExternal) => {
|
|
46
|
+
window.postMessage({ type: 'NavigateTo', path: url, target: target || null, externalLink: isExternal || false }, window.location.href);
|
|
47
|
+
};
|
|
48
|
+
this.changeSlider = (index) => {
|
|
49
|
+
if (index > this.currIndex - 1) {
|
|
50
|
+
this.next();
|
|
51
|
+
}
|
|
52
|
+
else if (index < this.currIndex - 1) {
|
|
53
|
+
this.prev();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.setImage = (image) => {
|
|
57
|
+
let source = '';
|
|
58
|
+
this.device = checkDeviceType();
|
|
59
|
+
switch (this.device) {
|
|
60
|
+
case 'mobile':
|
|
61
|
+
source = image.srcMobile;
|
|
62
|
+
break;
|
|
63
|
+
case 'tablet':
|
|
64
|
+
source = image.srcTablet;
|
|
65
|
+
break;
|
|
66
|
+
case 'desktop':
|
|
67
|
+
source = image.srcDesktop;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return source;
|
|
71
|
+
};
|
|
72
|
+
this.clientStyling = '';
|
|
73
|
+
this.clientStylingUrl = '';
|
|
74
|
+
this.sliderData = undefined;
|
|
75
|
+
this.bulletNavigation = true;
|
|
76
|
+
this.language = 'en';
|
|
77
|
+
this.slideTimer = undefined;
|
|
78
|
+
this.translationUrl = '';
|
|
79
|
+
this.currIndex = 0;
|
|
80
|
+
this.width = undefined;
|
|
81
|
+
this.height = undefined;
|
|
82
|
+
this.margin = undefined;
|
|
83
|
+
this.sliderElement = undefined;
|
|
84
|
+
this.totalWidth = undefined;
|
|
85
|
+
this.device = '';
|
|
86
|
+
this.stylingAppends = false;
|
|
87
|
+
this.innerWidth = undefined;
|
|
102
88
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
this.init();
|
|
106
|
-
this.calcInnerWidth();
|
|
107
|
-
}
|
|
108
|
-
componentDidRender() {
|
|
109
|
-
if (!this.stylingAppends && this.stylingContainer) {
|
|
110
|
-
if (this.clientStyling)
|
|
111
|
-
this.setClientStyling();
|
|
112
|
-
if (this.clientStylingUrl)
|
|
113
|
-
this.setClientStylingURL();
|
|
114
|
-
this.stylingAppends = true;
|
|
89
|
+
handleNewTranslations() {
|
|
90
|
+
getTranslations(this.translationUrl);
|
|
115
91
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
92
|
+
async componentWillLoad() {
|
|
93
|
+
if (this.translationUrl.length > 2) {
|
|
94
|
+
await getTranslations(this.translationUrl);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
componentDidLoad() {
|
|
98
|
+
this.init();
|
|
99
|
+
this.calcInnerWidth();
|
|
100
|
+
}
|
|
101
|
+
componentDidRender() {
|
|
102
|
+
if (!this.stylingAppends && this.stylingContainer) {
|
|
103
|
+
if (this.clientStyling)
|
|
104
|
+
this.setClientStyling();
|
|
105
|
+
if (this.clientStylingUrl)
|
|
106
|
+
this.setClientStylingURL();
|
|
107
|
+
this.stylingAppends = true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
init() {
|
|
111
|
+
this.moveSliderIndex(Math.floor(this.sliderData.length / 2));
|
|
112
|
+
this.bindEvents();
|
|
113
|
+
if (this.slideTimer > 0) {
|
|
114
|
+
this.timer();
|
|
115
|
+
}
|
|
122
116
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
117
|
+
calcInnerWidth() {
|
|
118
|
+
const parent = this.el.parentElement;
|
|
119
|
+
// Check if the parent element exists and then get its width
|
|
120
|
+
if (parent) {
|
|
121
|
+
this.innerWidth = parent.offsetWidth;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
this.innerWidth = window.innerWidth;
|
|
125
|
+
}
|
|
126
|
+
this.resize();
|
|
127
|
+
}
|
|
128
|
+
resize() {
|
|
129
|
+
if (this.isMobile) {
|
|
130
|
+
this.width = Math.max(innerWidth * 0.3, 200);
|
|
131
|
+
this.height = window.innerHeight * 0.40;
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
this.width = this.innerWidth > 1200 ? Math.max(this.innerWidth * 0.1, 300) : Math.max(this.innerWidth * 0.2, 200);
|
|
135
|
+
this.height = window.innerHeight * 0.55;
|
|
136
|
+
}
|
|
137
|
+
this.totalWidth = this.width * this.sliderData.length;
|
|
138
|
+
//this is where the margin gap between slides is calculated with the animation
|
|
139
|
+
this.margin = -5;
|
|
140
|
+
const children = this.sliderElement.children;
|
|
141
|
+
for (let i = 0; i < children.length; i++) {
|
|
142
|
+
const item = children[i];
|
|
143
|
+
item.style.margin = `0 ${this.margin}px`;
|
|
144
|
+
item.style.width = `${this.width - (this.margin * 2)}px`;
|
|
145
|
+
}
|
|
146
|
+
if (this.sliderElement) {
|
|
147
|
+
this.sliderElement.style.transform = this.getSliderTransformStyle();
|
|
148
|
+
}
|
|
129
149
|
}
|
|
130
|
-
|
|
131
|
-
|
|
150
|
+
timer() {
|
|
151
|
+
this.clearTimer();
|
|
152
|
+
this.interval = setInterval(() => {
|
|
153
|
+
this.moveSliderIndex(++this.currIndex);
|
|
154
|
+
}, this.slideTimer * 1000);
|
|
132
155
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
resize() {
|
|
136
|
-
if (this.isMobile) {
|
|
137
|
-
this.width = Math.max(innerWidth * 0.3, this.sliderMobileWidth);
|
|
156
|
+
disconnectedCallback() {
|
|
157
|
+
this.clearTimer();
|
|
138
158
|
}
|
|
139
|
-
|
|
140
|
-
|
|
159
|
+
clearTimer() {
|
|
160
|
+
if (this.interval) {
|
|
161
|
+
clearInterval(this.interval);
|
|
162
|
+
}
|
|
141
163
|
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
const item = children[i];
|
|
148
|
-
item.style.margin = `0 ${this.margin}px`;
|
|
149
|
-
item.style.width = `${this.width - (this.margin * 2)}px`;
|
|
164
|
+
prev() {
|
|
165
|
+
this.moveSliderIndex(--this.currIndex);
|
|
166
|
+
if (this.slideTimer > 0) {
|
|
167
|
+
this.timer();
|
|
168
|
+
}
|
|
150
169
|
}
|
|
151
|
-
|
|
152
|
-
|
|
170
|
+
next() {
|
|
171
|
+
this.moveSliderIndex(++this.currIndex);
|
|
172
|
+
if (this.slideTimer > 0) {
|
|
173
|
+
this.timer();
|
|
174
|
+
}
|
|
153
175
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
this.moveSliderIndex(++this.currIndex);
|
|
159
|
-
}, this.slideTimer * 1000);
|
|
160
|
-
}
|
|
161
|
-
disconnectedCallback() {
|
|
162
|
-
this.clearTimer();
|
|
163
|
-
}
|
|
164
|
-
clearTimer() {
|
|
165
|
-
if (this.interval) {
|
|
166
|
-
clearInterval(this.interval);
|
|
176
|
+
bindEvents() {
|
|
177
|
+
window.onresize = () => this.resize();
|
|
178
|
+
this.el.addEventListener('touchstart', this.handleTouchStart, false);
|
|
179
|
+
this.el.addEventListener('touchend', this.handleTouchEnd, false);
|
|
167
180
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
181
|
+
handleSwipe() {
|
|
182
|
+
if (this.touchEndX < this.touchStartX) {
|
|
183
|
+
this.next();
|
|
184
|
+
}
|
|
185
|
+
if (this.touchEndX > this.touchStartX) {
|
|
186
|
+
this.prev();
|
|
187
|
+
}
|
|
173
188
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
this.timer();
|
|
189
|
+
getTransformStyle(index) {
|
|
190
|
+
const perspective = index === this.currIndex - 1 ? '1200px' : '900px';
|
|
191
|
+
const rotateY = index < this.currIndex - 1 ? '20deg' : '-20deg';
|
|
192
|
+
return index === this.currIndex - 1 ? `perspective(${perspective})` : `perspective(${perspective}) rotateY(${rotateY})`;
|
|
179
193
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
window.onresize = () => this.resize();
|
|
183
|
-
this.el.addEventListener('touchstart', this.handleTouchStart, false);
|
|
184
|
-
this.el.addEventListener('touchend', this.handleTouchEnd, false);
|
|
185
|
-
}
|
|
186
|
-
handleSwipe() {
|
|
187
|
-
if (this.touchEndX < this.touchStartX) {
|
|
188
|
-
this.next();
|
|
194
|
+
getSliderTransformStyle() {
|
|
195
|
+
return `translate3d(${((this.currIndex * -this.width) + (this.width / 2) + this.innerWidth / 2)}px, 0, 0)`;
|
|
189
196
|
}
|
|
190
|
-
|
|
191
|
-
|
|
197
|
+
renderNavigation() {
|
|
198
|
+
return (h("div", { class: "CarouselNavigation" }, this.sliderData.map((_item, index) => (h("div", { class: {
|
|
199
|
+
'CarouselNavigationBullet': true,
|
|
200
|
+
'CarouselNavigationBulletActive': index === this.currIndex - 1,
|
|
201
|
+
}, onClick: this.moveSliderIndex.bind(this, index + 1) })))));
|
|
192
202
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
const perspective = index === this.currIndex - 1 ? '1200px' : '900px';
|
|
196
|
-
const rotateY = index < this.currIndex - 1 ? '20deg' : '-20deg';
|
|
197
|
-
return index === this.currIndex - 1 ? `perspective(${perspective})` : `perspective(${perspective}) rotateY(${rotateY})`;
|
|
198
|
-
}
|
|
199
|
-
getSliderTransformStyle() {
|
|
200
|
-
return `translate3d(${((this.currIndex * -this.width) + (this.width / 2) + this.innerWidth / 2)}px, 0, 0)`;
|
|
201
|
-
}
|
|
202
|
-
renderNavigation() {
|
|
203
|
-
return (h("div", { class: "CarouselNavigation" }, this.sliderData.map((_item, index) => (h("div", { class: {
|
|
204
|
-
'CarouselNavigationBullet': true,
|
|
205
|
-
'CarouselNavigationBulletActive': index === this.currIndex - 1,
|
|
206
|
-
}, onClick: this.moveSliderIndex.bind(this, index + 1) })))));
|
|
207
|
-
}
|
|
208
|
-
render() {
|
|
209
|
-
return (h("div", { ref: el => this.stylingContainer = el },
|
|
210
|
-
h("div", { class: "Carousel" },
|
|
211
|
-
h("div", { class: "CarouselBody" },
|
|
212
|
-
h("div", { class: "CarouselSlider", ref: el => this.sliderElement = el, style: { width: `${this.totalWidth}px`, transform: this.getSliderTransformStyle() } }, this.sliderData.map((item, index) => {
|
|
203
|
+
render() {
|
|
204
|
+
return (h("div", { key: '09a6305f1745c24ac709c50cdb18218c5dd616d1', ref: el => this.stylingContainer = el }, h("div", { key: '1b61677ab956428b710c16b7bf71d5919e9aadf5', class: "Carousel" }, h("div", { key: '8f0c4f36f45695ee7c15c2435a39ded15abd39bf', class: "CarouselBody" }, h("div", { key: '341403c4164c1c24f39f050f37cc42b1cefee512', class: "CarouselSlider", ref: el => this.sliderElement = el, style: { width: `${this.totalWidth}px`, transform: this.getSliderTransformStyle() } }, this.sliderData.map((item, index) => {
|
|
213
205
|
const isActive = index === this.currIndex - 1;
|
|
214
206
|
const buttonStyle = !isActive ? { cursor: 'unset' } : {};
|
|
207
|
+
const activeItemHeight = !isActive ? { height: `${this.height - 70}px` } : { height: `${this.height}px` };
|
|
215
208
|
return (h("div", { class: {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
209
|
+
'CarouselSliderItem': true,
|
|
210
|
+
'CarouselSliderItemActive': isActive,
|
|
211
|
+
}, onClick: this.changeSlider.bind(this, index), style: activeItemHeight }, h("div", { class: "Item3dFrame", style: { backgroundSize: 'cover', backgroundPosition: 'center', backgroundImage: `url(${this.setImage(item.image)})`, transform: this.getTransformStyle(index) } }, h("div", { class: "ItemSection" }, h("div", { class: "TopSection" }, h("button", { onClick: () => {
|
|
212
|
+
if (isActive) {
|
|
213
|
+
this.navigationTo(item.url, item.targetType, item.externalLink);
|
|
214
|
+
}
|
|
215
|
+
}, style: buttonStyle, class: "JoinButton" }, h("span", null, translate('joinNow', this.language)), h("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M5 3L10 8L5 13", stroke: "white", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), h("hr", { class: "Divider" }), h("div", { class: "BottomSection" }, h("h3", null, item.title.toUpperCase()))))));
|
|
216
|
+
}))), this.bulletNavigation ? this.renderNavigation() : null)));
|
|
217
|
+
}
|
|
218
|
+
static get is() { return "carousel-component"; }
|
|
219
|
+
static get encapsulation() { return "shadow"; }
|
|
220
|
+
static get originalStyleUrls() {
|
|
221
|
+
return {
|
|
222
|
+
"$": ["carousel-component.scss"]
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
static get styleUrls() {
|
|
226
|
+
return {
|
|
227
|
+
"$": ["carousel-component.css"]
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
static get properties() {
|
|
231
|
+
return {
|
|
232
|
+
"clientStyling": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "string",
|
|
237
|
+
"resolved": "string",
|
|
238
|
+
"references": {}
|
|
239
|
+
},
|
|
240
|
+
"required": false,
|
|
241
|
+
"optional": false,
|
|
242
|
+
"docs": {
|
|
243
|
+
"tags": [],
|
|
244
|
+
"text": "Client custom styling via inline style"
|
|
245
|
+
},
|
|
246
|
+
"attribute": "client-styling",
|
|
247
|
+
"reflect": true,
|
|
248
|
+
"defaultValue": "''"
|
|
249
|
+
},
|
|
250
|
+
"clientStylingUrl": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"mutable": false,
|
|
253
|
+
"complexType": {
|
|
254
|
+
"original": "string",
|
|
255
|
+
"resolved": "string",
|
|
256
|
+
"references": {}
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"optional": false,
|
|
260
|
+
"docs": {
|
|
261
|
+
"tags": [],
|
|
262
|
+
"text": "Client custom styling via url"
|
|
263
|
+
},
|
|
264
|
+
"attribute": "client-styling-url",
|
|
265
|
+
"reflect": true,
|
|
266
|
+
"defaultValue": "''"
|
|
267
|
+
},
|
|
268
|
+
"sliderData": {
|
|
269
|
+
"type": "unknown",
|
|
270
|
+
"mutable": false,
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "Array<any>",
|
|
273
|
+
"resolved": "any[]",
|
|
274
|
+
"references": {
|
|
275
|
+
"Array": {
|
|
276
|
+
"location": "global",
|
|
277
|
+
"id": "global::Array"
|
|
225
278
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
"optional": false,
|
|
328
|
-
"docs": {
|
|
329
|
-
"tags": [],
|
|
330
|
-
"text": "Language of the widget"
|
|
331
|
-
},
|
|
332
|
-
"attribute": "language",
|
|
333
|
-
"reflect": true,
|
|
334
|
-
"defaultValue": "'en'"
|
|
335
|
-
},
|
|
336
|
-
"slideTimer": {
|
|
337
|
-
"type": "number",
|
|
338
|
-
"mutable": false,
|
|
339
|
-
"complexType": {
|
|
340
|
-
"original": "number",
|
|
341
|
-
"resolved": "number",
|
|
342
|
-
"references": {}
|
|
343
|
-
},
|
|
344
|
-
"required": false,
|
|
345
|
-
"optional": false,
|
|
346
|
-
"docs": {
|
|
347
|
-
"tags": [],
|
|
348
|
-
"text": "Timer for auto sliding"
|
|
349
|
-
},
|
|
350
|
-
"attribute": "slide-timer",
|
|
351
|
-
"reflect": true
|
|
352
|
-
},
|
|
353
|
-
"translationUrl": {
|
|
354
|
-
"type": "string",
|
|
355
|
-
"mutable": false,
|
|
356
|
-
"complexType": {
|
|
357
|
-
"original": "string",
|
|
358
|
-
"resolved": "string",
|
|
359
|
-
"references": {}
|
|
360
|
-
},
|
|
361
|
-
"required": false,
|
|
362
|
-
"optional": false,
|
|
363
|
-
"docs": {
|
|
364
|
-
"tags": [],
|
|
365
|
-
"text": "Translation via url"
|
|
366
|
-
},
|
|
367
|
-
"attribute": "translation-url",
|
|
368
|
-
"reflect": true,
|
|
369
|
-
"defaultValue": "''"
|
|
370
|
-
},
|
|
371
|
-
"sliderMobileWidth": {
|
|
372
|
-
"type": "number",
|
|
373
|
-
"mutable": false,
|
|
374
|
-
"complexType": {
|
|
375
|
-
"original": "number",
|
|
376
|
-
"resolved": "number",
|
|
377
|
-
"references": {}
|
|
378
|
-
},
|
|
379
|
-
"required": false,
|
|
380
|
-
"optional": false,
|
|
381
|
-
"docs": {
|
|
382
|
-
"tags": [],
|
|
383
|
-
"text": "Mobile width for sliders"
|
|
384
|
-
},
|
|
385
|
-
"attribute": "slider-mobile-width",
|
|
386
|
-
"reflect": true
|
|
387
|
-
},
|
|
388
|
-
"sliderDesktopWidth": {
|
|
389
|
-
"type": "number",
|
|
390
|
-
"mutable": false,
|
|
391
|
-
"complexType": {
|
|
392
|
-
"original": "number",
|
|
393
|
-
"resolved": "number",
|
|
394
|
-
"references": {}
|
|
395
|
-
},
|
|
396
|
-
"required": false,
|
|
397
|
-
"optional": false,
|
|
398
|
-
"docs": {
|
|
399
|
-
"tags": [],
|
|
400
|
-
"text": "Desktop width for sliders"
|
|
401
|
-
},
|
|
402
|
-
"attribute": "slider-desktop-width",
|
|
403
|
-
"reflect": true
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": false,
|
|
282
|
+
"optional": false,
|
|
283
|
+
"docs": {
|
|
284
|
+
"tags": [],
|
|
285
|
+
"text": "Endpoint URL for the source of data"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"bulletNavigation": {
|
|
289
|
+
"type": "boolean",
|
|
290
|
+
"mutable": false,
|
|
291
|
+
"complexType": {
|
|
292
|
+
"original": "boolean",
|
|
293
|
+
"resolved": "boolean",
|
|
294
|
+
"references": {}
|
|
295
|
+
},
|
|
296
|
+
"required": false,
|
|
297
|
+
"optional": false,
|
|
298
|
+
"docs": {
|
|
299
|
+
"tags": [],
|
|
300
|
+
"text": "Show bullet navigation under slides"
|
|
301
|
+
},
|
|
302
|
+
"attribute": "bullet-navigation",
|
|
303
|
+
"reflect": true,
|
|
304
|
+
"defaultValue": "true"
|
|
305
|
+
},
|
|
306
|
+
"language": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Language of the widget"
|
|
319
|
+
},
|
|
320
|
+
"attribute": "language",
|
|
321
|
+
"reflect": true,
|
|
322
|
+
"defaultValue": "'en'"
|
|
323
|
+
},
|
|
324
|
+
"slideTimer": {
|
|
325
|
+
"type": "number",
|
|
326
|
+
"mutable": false,
|
|
327
|
+
"complexType": {
|
|
328
|
+
"original": "number",
|
|
329
|
+
"resolved": "number",
|
|
330
|
+
"references": {}
|
|
331
|
+
},
|
|
332
|
+
"required": false,
|
|
333
|
+
"optional": false,
|
|
334
|
+
"docs": {
|
|
335
|
+
"tags": [],
|
|
336
|
+
"text": "Timer for auto sliding"
|
|
337
|
+
},
|
|
338
|
+
"attribute": "slide-timer",
|
|
339
|
+
"reflect": true
|
|
340
|
+
},
|
|
341
|
+
"translationUrl": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"mutable": false,
|
|
344
|
+
"complexType": {
|
|
345
|
+
"original": "string",
|
|
346
|
+
"resolved": "string",
|
|
347
|
+
"references": {}
|
|
348
|
+
},
|
|
349
|
+
"required": false,
|
|
350
|
+
"optional": false,
|
|
351
|
+
"docs": {
|
|
352
|
+
"tags": [],
|
|
353
|
+
"text": "Translation via url"
|
|
354
|
+
},
|
|
355
|
+
"attribute": "translation-url",
|
|
356
|
+
"reflect": true,
|
|
357
|
+
"defaultValue": "''"
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
static get states() {
|
|
362
|
+
return {
|
|
363
|
+
"currIndex": {},
|
|
364
|
+
"width": {},
|
|
365
|
+
"height": {},
|
|
366
|
+
"margin": {},
|
|
367
|
+
"sliderElement": {},
|
|
368
|
+
"totalWidth": {},
|
|
369
|
+
"device": {},
|
|
370
|
+
"stylingAppends": {},
|
|
371
|
+
"innerWidth": {}
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
static get elementRef() { return "el"; }
|
|
375
|
+
static get watchers() {
|
|
376
|
+
return [{
|
|
377
|
+
"propName": "translationUrl",
|
|
378
|
+
"methodName": "handleNewTranslations"
|
|
379
|
+
}];
|
|
404
380
|
}
|
|
405
|
-
}; }
|
|
406
|
-
static get states() { return {
|
|
407
|
-
"currIndex": {},
|
|
408
|
-
"width": {},
|
|
409
|
-
"margin": {},
|
|
410
|
-
"sliderElement": {},
|
|
411
|
-
"totalWidth": {},
|
|
412
|
-
"device": {},
|
|
413
|
-
"stylingAppends": {},
|
|
414
|
-
"innerWidth": {}
|
|
415
|
-
}; }
|
|
416
|
-
static get elementRef() { return "el"; }
|
|
417
|
-
static get watchers() { return [{
|
|
418
|
-
"propName": "translationUrl",
|
|
419
|
-
"methodName": "handleNewTranslations"
|
|
420
|
-
}]; }
|
|
421
381
|
}
|