@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.
Files changed (55) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/carousel-component_2.cjs.entry.js +392 -419
  3. package/dist/cjs/general-slider-navigation.cjs.js +17 -11
  4. package/dist/cjs/index-88d9137e.js +1269 -0
  5. package/dist/cjs/loader.cjs.js +7 -13
  6. package/dist/collection/collection-manifest.json +4 -4
  7. package/dist/collection/components/carousel-component/carousel-component.css +0 -2
  8. package/dist/collection/components/carousel-component/carousel-component.js +360 -400
  9. package/dist/collection/components/general-slider-navigation/general-slider-navigation.js +293 -310
  10. package/dist/collection/components/general-slider-navigation/index.js +1 -0
  11. package/dist/collection/utils/locale.utils.js +56 -56
  12. package/dist/collection/utils/utils.js +39 -39
  13. package/dist/esm/app-globals-0f993ce5.js +3 -0
  14. package/dist/esm/carousel-component_2.entry.js +392 -419
  15. package/dist/esm/general-slider-navigation.js +14 -11
  16. package/dist/esm/index-c749968b.js +1242 -0
  17. package/dist/esm/loader.js +7 -13
  18. package/dist/general-slider-navigation/general-slider-navigation.esm.js +1 -1
  19. package/dist/general-slider-navigation/p-8c0cd4b3.js +2 -0
  20. package/dist/general-slider-navigation/p-c1626bea.entry.js +1 -0
  21. package/dist/general-slider-navigation/p-e1255160.js +1 -0
  22. package/dist/stencil.config.dev.js +17 -0
  23. package/dist/stencil.config.js +14 -19
  24. 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
  25. 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
  26. package/dist/types/components/carousel-component/carousel-component.d.ts +70 -77
  27. package/dist/types/components/general-slider-navigation/general-slider-navigation.d.ts +54 -54
  28. package/dist/types/components/general-slider-navigation/index.d.ts +1 -0
  29. package/dist/types/components.d.ts +0 -16
  30. package/dist/types/stencil-public-runtime.d.ts +142 -33
  31. package/loader/cdn.js +1 -3
  32. package/loader/index.cjs.js +1 -3
  33. package/loader/index.d.ts +13 -1
  34. package/loader/index.es2017.js +1 -3
  35. package/loader/index.js +1 -3
  36. package/loader/package.json +1 -0
  37. package/package.json +8 -1
  38. package/dist/cjs/index-d69ac031.js +0 -1269
  39. package/dist/components/carousel-component.d.ts +0 -11
  40. package/dist/components/carousel-component.js +0 -6
  41. package/dist/components/carousel-component2.js +0 -386
  42. package/dist/components/general-slider-navigation.d.ts +0 -11
  43. package/dist/components/general-slider-navigation.js +0 -144
  44. package/dist/components/index.d.ts +0 -26
  45. package/dist/components/index.js +0 -1
  46. package/dist/esm/index-a33109c0.js +0 -1243
  47. package/dist/esm/polyfills/core-js.js +0 -11
  48. package/dist/esm/polyfills/css-shim.js +0 -1
  49. package/dist/esm/polyfills/dom.js +0 -79
  50. package/dist/esm/polyfills/es5-html-element.js +0 -1
  51. package/dist/esm/polyfills/index.js +0 -34
  52. package/dist/esm/polyfills/system.js +0 -6
  53. package/dist/general-slider-navigation/p-6da4364f.entry.js +0 -1
  54. package/dist/general-slider-navigation/p-734ecc50.js +0 -1
  55. 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 { Component, h, State, Element, Prop, Watch } from '@stencil/core';
2
- import { checkDeviceType, isMobile } from '../../utils/utils';
3
- import { getTranslations, translate } from '../../utils/locale.utils';
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
- 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
- * Show bullet navigation under slides
16
- */
17
- this.bulletNavigation = true;
18
- /**
19
- * Language of the widget
20
- */
21
- this.language = 'en';
22
- /**
23
- * Translation via url
24
- */
25
- this.translationUrl = '';
26
- this.currIndex = 0;
27
- this.device = '';
28
- this.stylingAppends = false;
29
- this.userAgent = window.navigator.userAgent;
30
- this.isMobile = isMobile(this.userAgent);
31
- this.touchStartX = 0;
32
- this.touchEndX = 0;
33
- this.setClientStylingURL = () => {
34
- let url = new URL(this.clientStylingUrl);
35
- let cssFile = document.createElement('style');
36
- fetch(url.href)
37
- .then((res) => res.text())
38
- .then((data) => {
39
- cssFile.innerHTML = data;
40
- setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
41
- })
42
- .catch((err) => {
43
- console.log('error ', err);
44
- });
45
- };
46
- this.setClientStyling = () => {
47
- let sheet = document.createElement('style');
48
- sheet.innerHTML = this.clientStyling;
49
- this.stylingContainer.prepend(sheet);
50
- };
51
- this.moveSliderIndex = (index) => {
52
- if (index < 1)
53
- index = this.sliderData.length;
54
- if (index > this.sliderData.length)
55
- index = 1;
56
- this.currIndex = index;
57
- if (this.sliderElement) {
58
- this.sliderElement.style.transform = this.getSliderTransformStyle();
59
- }
60
- };
61
- this.handleTouchStart = (event) => {
62
- this.touchStartX = event.changedTouches[0].screenX;
63
- };
64
- this.handleTouchEnd = (event) => {
65
- this.touchEndX = event.changedTouches[0].screenX;
66
- this.handleSwipe();
67
- };
68
- this.navigationTo = (url, target, isExternal) => {
69
- window.postMessage({ type: 'NavigateTo', path: url, target: target || null, externalLink: isExternal || false }, window.location.href);
70
- };
71
- this.changeSlider = (index) => {
72
- if (index > this.currIndex - 1) {
73
- this.next();
74
- }
75
- else if (index < this.currIndex - 1) {
76
- this.prev();
77
- }
78
- };
79
- this.setImage = (image) => {
80
- let source = '';
81
- this.device = checkDeviceType();
82
- switch (this.device) {
83
- case 'mobile':
84
- source = image.srcMobile;
85
- break;
86
- case 'tablet':
87
- source = image.srcTablet;
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
- componentDidLoad() {
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
- init() {
118
- this.moveSliderIndex(Math.ceil(this.sliderData.length / 2));
119
- this.bindEvents();
120
- if (this.slideTimer > 0) {
121
- this.timer();
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
- calcInnerWidth() {
125
- const parent = this.el.parentElement;
126
- // Check if the parent element exists and then get its width
127
- if (parent) {
128
- this.innerWidth = parent.offsetWidth;
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
- else {
131
- this.innerWidth = window.innerWidth;
150
+ timer() {
151
+ this.clearTimer();
152
+ this.interval = setInterval(() => {
153
+ this.moveSliderIndex(++this.currIndex);
154
+ }, this.slideTimer * 1000);
132
155
  }
133
- this.resize();
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
- else {
140
- this.width = Math.max(this.innerWidth * 0.1, this.sliderDesktopWidth);
159
+ clearTimer() {
160
+ if (this.interval) {
161
+ clearInterval(this.interval);
162
+ }
141
163
  }
142
- this.totalWidth = this.width * this.sliderData.length;
143
- //this is where the margin gap between slides is calculated with the animation
144
- this.margin = -5;
145
- const children = this.sliderElement.children;
146
- for (let i = 0; i < children.length; i++) {
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
- if (this.sliderElement) {
152
- this.sliderElement.style.transform = this.getSliderTransformStyle();
170
+ next() {
171
+ this.moveSliderIndex(++this.currIndex);
172
+ if (this.slideTimer > 0) {
173
+ this.timer();
174
+ }
153
175
  }
154
- }
155
- timer() {
156
- this.clearTimer();
157
- this.interval = setInterval(() => {
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
- prev() {
170
- this.moveSliderIndex(--this.currIndex);
171
- if (this.slideTimer > 0) {
172
- this.timer();
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
- next() {
176
- this.moveSliderIndex(++this.currIndex);
177
- if (this.slideTimer > 0) {
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
- bindEvents() {
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
- if (this.touchEndX > this.touchStartX) {
191
- this.prev();
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
- getTransformStyle(index) {
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
- 'CarouselSliderItem': true,
217
- 'CarouselSliderItemActive': isActive,
218
- }, onClick: this.changeSlider.bind(this, index) },
219
- h("div", { class: "Item3dFrame", style: { backgroundSize: 'cover', backgroundPosition: 'center', backgroundImage: `url(${this.setImage(item.image)})`, transform: this.getTransformStyle(index) } },
220
- h("div", { class: "ItemSection" },
221
- h("div", { class: "TopSection" },
222
- h("button", { onClick: () => {
223
- if (isActive) {
224
- this.navigationTo(item.url, item.targetType, item.externalLink);
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
- }, style: buttonStyle, class: "JoinButton" },
227
- h("span", null, translate('joinNow', this.language)),
228
- h("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
229
- h("path", { d: "M5 3L10 8L5 13", stroke: "white", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))),
230
- h("hr", { class: "Divider" }),
231
- h("div", { class: "BottomSection" },
232
- h("h3", null, item.title.toUpperCase()))))));
233
- }))),
234
- this.bulletNavigation ? this.renderNavigation() : null)));
235
- }
236
- static get is() { return "carousel-component"; }
237
- static get encapsulation() { return "shadow"; }
238
- static get originalStyleUrls() { return {
239
- "$": ["carousel-component.scss"]
240
- }; }
241
- static get styleUrls() { return {
242
- "$": ["carousel-component.css"]
243
- }; }
244
- static get properties() { return {
245
- "clientStyling": {
246
- "type": "string",
247
- "mutable": false,
248
- "complexType": {
249
- "original": "string",
250
- "resolved": "string",
251
- "references": {}
252
- },
253
- "required": false,
254
- "optional": false,
255
- "docs": {
256
- "tags": [],
257
- "text": "Client custom styling via inline style"
258
- },
259
- "attribute": "client-styling",
260
- "reflect": true,
261
- "defaultValue": "''"
262
- },
263
- "clientStylingUrl": {
264
- "type": "string",
265
- "mutable": false,
266
- "complexType": {
267
- "original": "string",
268
- "resolved": "string",
269
- "references": {}
270
- },
271
- "required": false,
272
- "optional": false,
273
- "docs": {
274
- "tags": [],
275
- "text": "Client custom styling via url"
276
- },
277
- "attribute": "client-styling-url",
278
- "reflect": true,
279
- "defaultValue": "''"
280
- },
281
- "sliderData": {
282
- "type": "unknown",
283
- "mutable": false,
284
- "complexType": {
285
- "original": "Array<any>",
286
- "resolved": "any[]",
287
- "references": {
288
- "Array": {
289
- "location": "global"
290
- }
291
- }
292
- },
293
- "required": false,
294
- "optional": false,
295
- "docs": {
296
- "tags": [],
297
- "text": "Endpoint URL for the source of data"
298
- }
299
- },
300
- "bulletNavigation": {
301
- "type": "boolean",
302
- "mutable": false,
303
- "complexType": {
304
- "original": "boolean",
305
- "resolved": "boolean",
306
- "references": {}
307
- },
308
- "required": false,
309
- "optional": false,
310
- "docs": {
311
- "tags": [],
312
- "text": "Show bullet navigation under slides"
313
- },
314
- "attribute": "bullet-navigation",
315
- "reflect": true,
316
- "defaultValue": "true"
317
- },
318
- "language": {
319
- "type": "string",
320
- "mutable": false,
321
- "complexType": {
322
- "original": "string",
323
- "resolved": "string",
324
- "references": {}
325
- },
326
- "required": false,
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
  }