@everymatrix/casino-slider 0.0.315 → 0.0.318
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-slider",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.318",
|
4
4
|
"main": "dist/casino-slider.js",
|
5
5
|
"svelte": "src/index.ts",
|
6
6
|
"scripts": {
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"publishConfig": {
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "1eada1959a0f3cecaf9cbbb82243d5082534330e"
|
40
40
|
}
|
package/rollup.config.js
CHANGED
package/src/CasinoSlider.svelte
CHANGED
@@ -7,7 +7,6 @@
|
|
7
7
|
import { _, addNewMessages, setLocale, setupI18n } from './i18n';
|
8
8
|
import { CasinoSlider } from './translations';
|
9
9
|
|
10
|
-
export let sliderdata:Array<any> = [];
|
11
10
|
export let onclickeventname:string = 'defaultEvent';
|
12
11
|
export let actionevent:string = 'defaultEvent';
|
13
12
|
export let favoritesnumber:string = '0';
|
@@ -19,7 +18,7 @@
|
|
19
18
|
export let isprimarymenu:boolean = false;
|
20
19
|
export let issecondarymenu:boolean = false;
|
21
20
|
export let lang:string = '';
|
22
|
-
export let activeindex:string
|
21
|
+
export let activeindex:string;
|
23
22
|
|
24
23
|
setupI18n({ withLocale: 'en', translations: {}});
|
25
24
|
|
@@ -33,11 +32,13 @@
|
|
33
32
|
let carousel:any;
|
34
33
|
let activeIndex:number;
|
35
34
|
let customStylingContainer:HTMLElement;
|
35
|
+
let sliderdata:Array<any> = [];
|
36
36
|
|
37
37
|
// Clicking on the slider item will trigger this method and send a postmessage on window
|
38
38
|
// @TODO itemId type fix
|
39
39
|
let handleClick = (item:any, index:number):void => {
|
40
40
|
activeIndex = index;
|
41
|
+
activeIndex = activeIndex;
|
41
42
|
|
42
43
|
window.postMessage({ type: actionevent, itemId: item.id, index, item }, window.location.href);
|
43
44
|
};
|
@@ -99,7 +100,7 @@
|
|
99
100
|
}
|
100
101
|
})
|
101
102
|
|
102
|
-
$:
|
103
|
+
$: activeindex && setActiveIndex();
|
103
104
|
$: clientstyling && setClientStyling();
|
104
105
|
$: clientstylingurl && setClientStylingURL();
|
105
106
|
$: lang && setActiveLanguage();
|