@everymatrix/casino-slider
Advanced tools
Comparing version 0.0.65 to 0.0.66
@@ -468,38 +468,3 @@ (function (global, factory) { | ||
// (68:0) {#if linkDown == 'true'} | ||
function create_if_block_1(ctx) { | ||
let link; | ||
const block = { | ||
c: function create() { | ||
link = element("link"); | ||
attr_dev(link, "rel", "stylesheet"); | ||
attr_dev(link, "href", /*clientstylingurl*/ ctx[3]); | ||
add_location(link, file, 68, 2, 1930); | ||
}, | ||
m: function mount(target, anchor) { | ||
insert_dev(target, link, anchor); | ||
}, | ||
p: function update(ctx, dirty) { | ||
if (dirty & /*clientstylingurl*/ 8) { | ||
attr_dev(link, "href", /*clientstylingurl*/ ctx[3]); | ||
} | ||
}, | ||
d: function destroy(detaching) { | ||
if (detaching) detach_dev(link); | ||
} | ||
}; | ||
dispatch_dev("SvelteRegisterBlock", { | ||
block, | ||
id: create_if_block_1.name, | ||
type: "if", | ||
source: "(68:0) {#if linkDown == 'true'}", | ||
ctx | ||
}); | ||
return block; | ||
} | ||
// (84:8) {:else} | ||
// (74:10) {:else} | ||
function create_else_block(ctx) { | ||
@@ -545,3 +510,3 @@ let t0_value = /*item*/ ctx[20].name + ""; | ||
type: "else", | ||
source: "(84:8) {:else}", | ||
source: "(74:10) {:else}", | ||
ctx | ||
@@ -553,3 +518,3 @@ }); | ||
// (82:8) {#if location === 'headerMain'} | ||
// (72:10) {#if location === 'headerMain'} | ||
function create_if_block(ctx) { | ||
@@ -566,3 +531,3 @@ let a; | ||
attr_dev(a, "href", a_href_value = /*item*/ ctx[20].path); | ||
add_location(a, file, 82, 10, 2631); | ||
add_location(a, file, 72, 12, 2565); | ||
}, | ||
@@ -589,3 +554,3 @@ m: function mount(target, anchor) { | ||
type: "if", | ||
source: "(82:8) {#if location === 'headerMain'}", | ||
source: "(72:10) {#if location === 'headerMain'}", | ||
ctx | ||
@@ -597,3 +562,3 @@ }); | ||
// (80:4) {#each sliderdata as item, index (item.id)} | ||
// (70:6) {#each sliderdata as item, index (item.id)} | ||
function create_each_block(key_1, ctx) { | ||
@@ -625,4 +590,4 @@ let li; | ||
attr_dev(li, "class", "CarouselItem"); | ||
toggle_class(li, "active", /*active*/ ctx[5] == /*index*/ ctx[22]); | ||
add_location(li, file, 80, 6, 2480); | ||
toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[22]); | ||
add_location(li, file, 70, 8, 2410); | ||
this.first = li; | ||
@@ -655,4 +620,4 @@ }, | ||
if (dirty & /*active, sliderdata*/ 33) { | ||
toggle_class(li, "active", /*active*/ ctx[5] == /*index*/ ctx[22]); | ||
if (dirty & /*active, sliderdata*/ 17) { | ||
toggle_class(li, "active", /*active*/ ctx[4] == /*index*/ ctx[22]); | ||
} | ||
@@ -672,3 +637,3 @@ }, | ||
type: "each", | ||
source: "(80:4) {#each sliderdata as item, index (item.id)}", | ||
source: "(70:6) {#each sliderdata as item, index (item.id)}", | ||
ctx | ||
@@ -681,3 +646,3 @@ }); | ||
function create_fragment(ctx) { | ||
let t0; | ||
let div3; | ||
let div2; | ||
@@ -687,7 +652,7 @@ let div0; | ||
let path0; | ||
let t1; | ||
let t0; | ||
let ul; | ||
let each_blocks = []; | ||
let each_1_lookup = new Map(); | ||
let t2; | ||
let t1; | ||
let div1; | ||
@@ -699,3 +664,2 @@ let svg1; | ||
let dispose; | ||
let if_block = /*linkDown*/ ctx[6] == "true" && create_if_block_1(ctx); | ||
let each_value = /*sliderdata*/ ctx[0]; | ||
@@ -714,4 +678,3 @@ validate_each_argument(each_value); | ||
c: function create() { | ||
if (if_block) if_block.c(); | ||
t0 = space(); | ||
div3 = element("div"); | ||
div2 = element("div"); | ||
@@ -721,3 +684,3 @@ div0 = element("div"); | ||
path0 = svg_element("path"); | ||
t1 = space(); | ||
t0 = space(); | ||
ul = element("ul"); | ||
@@ -729,3 +692,3 @@ | ||
t2 = space(); | ||
t1 = space(); | ||
div1 = element("div"); | ||
@@ -739,3 +702,3 @@ svg1 = svg_element("svg"); | ||
attr_dev(path0, "d", "M15 19l-7-7 7-7"); | ||
add_location(path0, file, 74, 6, 2257); | ||
add_location(path0, file, 64, 8, 2177); | ||
attr_dev(svg0, "fill", "none"); | ||
@@ -745,7 +708,7 @@ attr_dev(svg0, "stroke", "currentColor"); | ||
attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg"); | ||
add_location(svg0, file, 73, 4, 2156); | ||
add_location(svg0, file, 63, 6, 2074); | ||
attr_dev(div0, "class", "CarouselLeftArrow"); | ||
add_location(div0, file, 72, 2, 2088); | ||
add_location(div0, file, 62, 4, 2004); | ||
attr_dev(ul, "class", "CarouselItems"); | ||
add_location(ul, file, 78, 2, 2378); | ||
add_location(ul, file, 68, 4, 2304); | ||
attr_dev(path1, "stroke-linecap", "round"); | ||
@@ -755,3 +718,3 @@ attr_dev(path1, "stroke-linejoin", "round"); | ||
attr_dev(path1, "d", "M9 5l7 7-7 7"); | ||
add_location(path1, file, 92, 6, 2987); | ||
add_location(path1, file, 82, 8, 2939); | ||
attr_dev(svg1, "fill", "none"); | ||
@@ -761,5 +724,5 @@ attr_dev(svg1, "stroke", "currentColor"); | ||
attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg"); | ||
add_location(svg1, file, 91, 4, 2886); | ||
add_location(svg1, file, 81, 6, 2836); | ||
attr_dev(div1, "class", "CarouselRightArrow"); | ||
add_location(div1, file, 90, 2, 2816); | ||
add_location(div1, file, 80, 4, 2764); | ||
@@ -770,3 +733,4 @@ attr_dev(div2, "class", div2_class_value = "CarouselContainer " + (/*location*/ ctx[2] === "headerMain" | ||
add_location(div2, file, 71, 0, 1985); | ||
add_location(div2, file, 61, 2, 1899); | ||
add_location(div3, file, 60, 0, 1856); | ||
}, | ||
@@ -777,9 +741,8 @@ l: function claim(nodes) { | ||
m: function mount(target, anchor) { | ||
if (if_block) if_block.m(target, anchor); | ||
insert_dev(target, t0, anchor); | ||
insert_dev(target, div2, anchor); | ||
insert_dev(target, div3, anchor); | ||
append_dev(div3, div2); | ||
append_dev(div2, div0); | ||
append_dev(div0, svg0); | ||
append_dev(svg0, path0); | ||
append_dev(div2, t1); | ||
append_dev(div2, t0); | ||
append_dev(div2, ul); | ||
@@ -792,6 +755,7 @@ | ||
/*ul_binding*/ ctx[14](ul); | ||
append_dev(div2, t2); | ||
append_dev(div2, t1); | ||
append_dev(div2, div1); | ||
append_dev(div1, svg1); | ||
append_dev(svg1, path1); | ||
/*div3_binding*/ ctx[16](div3); | ||
@@ -808,16 +772,3 @@ if (!mounted) { | ||
p: function update(ctx, [dirty]) { | ||
if (/*linkDown*/ ctx[6] == "true") { | ||
if (if_block) { | ||
if_block.p(ctx, dirty); | ||
} else { | ||
if_block = create_if_block_1(ctx); | ||
if_block.c(); | ||
if_block.m(t0.parentNode, t0); | ||
} | ||
} else if (if_block) { | ||
if_block.d(1); | ||
if_block = null; | ||
} | ||
if (dirty & /*active, sliderdata, handleClick, location, favoritesnumber*/ 167) { | ||
if (dirty & /*active, sliderdata, handleClick, location, favoritesnumber*/ 87) { | ||
each_value = /*sliderdata*/ ctx[0]; | ||
@@ -838,5 +789,3 @@ validate_each_argument(each_value); | ||
d: function destroy(detaching) { | ||
if (if_block) if_block.d(detaching); | ||
if (detaching) detach_dev(t0); | ||
if (detaching) detach_dev(div2); | ||
if (detaching) detach_dev(div3); | ||
@@ -848,2 +797,3 @@ for (let i = 0; i < each_blocks.length; i += 1) { | ||
/*ul_binding*/ ctx[14](null); | ||
/*div3_binding*/ ctx[16](null); | ||
mounted = false; | ||
@@ -881,3 +831,3 @@ run_all(dispose); | ||
let handleClick = (itemId, index) => { | ||
$$invalidate(5, active = index); | ||
$$invalidate(4, active = index); | ||
window.postMessage({ type: onclickeventname, itemId, index }, window.location.href); | ||
@@ -888,3 +838,3 @@ }; | ||
if (e.data && e.data.type == "SetSliderIndex") { | ||
$$invalidate(5, active = e.data.categoryData | ||
$$invalidate(4, active = e.data.categoryData | ||
? sliderdata.map(e => { | ||
@@ -914,20 +864,15 @@ return e.id; | ||
let linkDown = false; | ||
const setClientStylingURL = () => { | ||
$$invalidate(6, linkDown = true); | ||
}; /*return new Promise(( resolve, reject ) => { | ||
let link = document.createElement('link'); | ||
let cssFile = document.createElement("style"); | ||
cssFile.innerHTML = `@import ${clientstylingurl}`; | ||
link.rel = 'stylesheet'; | ||
link.href = clientstylingurl; | ||
fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => { | ||
cssFile.innerHTML = data; | ||
customStylingContainer.appendChild(link); | ||
setTimeout(() => { | ||
customStylingContainer.appendChild(cssFile); | ||
}); | ||
}); | ||
}; | ||
link.onload = () => { | ||
resolve(); | ||
console.log( 'CSS has loaded!' ); | ||
}; | ||
});*/ | ||
onMount(() => { | ||
@@ -960,3 +905,3 @@ window.addEventListener("message", messageHandler, false); | ||
carousel = $$value; | ||
$$invalidate(4, carousel); | ||
$$invalidate(3, carousel); | ||
}); | ||
@@ -967,9 +912,16 @@ } | ||
function div3_binding($$value) { | ||
binding_callbacks[$$value ? "unshift" : "push"](() => { | ||
customStylingContainer = $$value; | ||
$$invalidate(5, customStylingContainer); | ||
}); | ||
} | ||
$$self.$$set = $$props => { | ||
if ("sliderdata" in $$props) $$invalidate(0, sliderdata = $$props.sliderdata); | ||
if ("onclickeventname" in $$props) $$invalidate(10, onclickeventname = $$props.onclickeventname); | ||
if ("onclickeventname" in $$props) $$invalidate(9, onclickeventname = $$props.onclickeventname); | ||
if ("favoritesnumber" in $$props) $$invalidate(1, favoritesnumber = $$props.favoritesnumber); | ||
if ("location" in $$props) $$invalidate(2, location = $$props.location); | ||
if ("clientstyling" in $$props) $$invalidate(11, clientstyling = $$props.clientstyling); | ||
if ("clientstylingurl" in $$props) $$invalidate(3, clientstylingurl = $$props.clientstylingurl); | ||
if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling); | ||
if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl); | ||
}; | ||
@@ -993,3 +945,2 @@ | ||
setClientStyling, | ||
linkDown, | ||
setClientStylingURL | ||
@@ -1000,14 +951,13 @@ }); | ||
if ("sliderdata" in $$props) $$invalidate(0, sliderdata = $$props.sliderdata); | ||
if ("onclickeventname" in $$props) $$invalidate(10, onclickeventname = $$props.onclickeventname); | ||
if ("onclickeventname" in $$props) $$invalidate(9, onclickeventname = $$props.onclickeventname); | ||
if ("favoritesnumber" in $$props) $$invalidate(1, favoritesnumber = $$props.favoritesnumber); | ||
if ("location" in $$props) $$invalidate(2, location = $$props.location); | ||
if ("clientstyling" in $$props) $$invalidate(11, clientstyling = $$props.clientstyling); | ||
if ("clientstylingurl" in $$props) $$invalidate(3, clientstylingurl = $$props.clientstylingurl); | ||
if ("carousel" in $$props) $$invalidate(4, carousel = $$props.carousel); | ||
if ("active" in $$props) $$invalidate(5, active = $$props.active); | ||
if ("customStylingContainer" in $$props) customStylingContainer = $$props.customStylingContainer; | ||
if ("handleClick" in $$props) $$invalidate(7, handleClick = $$props.handleClick); | ||
if ("scrollLeft" in $$props) $$invalidate(8, scrollLeft = $$props.scrollLeft); | ||
if ("scrollRight" in $$props) $$invalidate(9, scrollRight = $$props.scrollRight); | ||
if ("linkDown" in $$props) $$invalidate(6, linkDown = $$props.linkDown); | ||
if ("clientstyling" in $$props) $$invalidate(10, clientstyling = $$props.clientstyling); | ||
if ("clientstylingurl" in $$props) $$invalidate(11, clientstylingurl = $$props.clientstylingurl); | ||
if ("carousel" in $$props) $$invalidate(3, carousel = $$props.carousel); | ||
if ("active" in $$props) $$invalidate(4, active = $$props.active); | ||
if ("customStylingContainer" in $$props) $$invalidate(5, customStylingContainer = $$props.customStylingContainer); | ||
if ("handleClick" in $$props) $$invalidate(6, handleClick = $$props.handleClick); | ||
if ("scrollLeft" in $$props) $$invalidate(7, scrollLeft = $$props.scrollLeft); | ||
if ("scrollRight" in $$props) $$invalidate(8, scrollRight = $$props.scrollRight); | ||
}; | ||
@@ -1020,7 +970,7 @@ | ||
$$self.$$.update = () => { | ||
if ($$self.$$.dirty & /*clientstyling*/ 2048) { | ||
if ($$self.$$.dirty & /*clientstyling*/ 1024) { | ||
clientstyling && setClientStyling(); | ||
} | ||
if ($$self.$$.dirty & /*clientstylingurl*/ 8) { | ||
if ($$self.$$.dirty & /*clientstylingurl*/ 2048) { | ||
clientstylingurl && setClientStylingURL(); | ||
@@ -1034,6 +984,5 @@ } | ||
location, | ||
clientstylingurl, | ||
carousel, | ||
active, | ||
linkDown, | ||
customStylingContainer, | ||
handleClick, | ||
@@ -1044,6 +993,8 @@ scrollLeft, | ||
clientstyling, | ||
clientstylingurl, | ||
click_handler, | ||
click_handler_1, | ||
ul_binding, | ||
click_handler_2 | ||
click_handler_2, | ||
div3_binding | ||
]; | ||
@@ -1069,7 +1020,7 @@ } | ||
sliderdata: 0, | ||
onclickeventname: 10, | ||
onclickeventname: 9, | ||
favoritesnumber: 1, | ||
location: 2, | ||
clientstyling: 11, | ||
clientstylingurl: 3 | ||
clientstyling: 10, | ||
clientstylingurl: 11 | ||
} | ||
@@ -1111,3 +1062,3 @@ ); | ||
get onclickeventname() { | ||
return this.$$.ctx[10]; | ||
return this.$$.ctx[9]; | ||
} | ||
@@ -1139,3 +1090,3 @@ | ||
get clientstyling() { | ||
return this.$$.ctx[11]; | ||
return this.$$.ctx[10]; | ||
} | ||
@@ -1149,3 +1100,3 @@ | ||
get clientstylingurl() { | ||
return this.$$.ctx[3]; | ||
return this.$$.ctx[11]; | ||
} | ||
@@ -1152,0 +1103,0 @@ |
{ | ||
"name": "@everymatrix/casino-slider", | ||
"version": "0.0.65", | ||
"version": "0.0.66", | ||
"main": "dist/casino-slider.js", | ||
@@ -39,3 +39,3 @@ "svelte": "src/index.ts", | ||
}, | ||
"gitHead": "1bec696c33eb78126780abcc4baf15b11d43834a" | ||
"gitHead": "8fee6dfe514564edb5e0f5d78f413b16143c7262" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
135069
1114
1