@vtmn/svelte
Advanced tools
Comparing version 0.5.1 to 0.5.3
@@ -61,4 +61,3 @@ (function (global, factory) { | ||
} | ||
function update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) { | ||
const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn); | ||
function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) { | ||
if (slot_changes) { | ||
@@ -69,2 +68,13 @@ const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); | ||
} | ||
function get_all_dirty_from_scope($$scope) { | ||
if ($$scope.ctx.length > 32) { | ||
const dirty = []; | ||
const length = $$scope.ctx.length / 32; | ||
for (let i = 0; i < length; i++) { | ||
dirty[i] = -1; | ||
} | ||
return dirty; | ||
} | ||
return -1; | ||
} | ||
function exclude_internal_props(props) { | ||
@@ -391,3 +401,3 @@ const result = {}; | ||
/* src/components/VtmnButton.svelte generated by Svelte v3.40.1 */ | ||
/* src/components/VtmnButton.svelte generated by Svelte v3.41.0 */ | ||
@@ -437,3 +447,12 @@ function create_if_block_2(ctx) { | ||
if (default_slot.p && (!current || dirty & /*$$scope*/ 64)) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[6], !current ? -1 : dirty, null, null); | ||
update_slot_base( | ||
default_slot, | ||
default_slot_template, | ||
ctx, | ||
/*$$scope*/ ctx[6], | ||
!current | ||
? get_all_dirty_from_scope(/*$$scope*/ ctx[6]) | ||
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[6], dirty, null), | ||
null | ||
); | ||
} | ||
@@ -570,2 +589,3 @@ } | ||
if (if_block2) if_block2.m(button, null); | ||
if (button.autofocus) button.focus(); | ||
current = true; | ||
@@ -572,0 +592,0 @@ }, |
@@ -61,4 +61,3 @@ (function (global, factory) { | ||
} | ||
function update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) { | ||
const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn); | ||
function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) { | ||
if (slot_changes) { | ||
@@ -69,2 +68,13 @@ const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); | ||
} | ||
function get_all_dirty_from_scope($$scope) { | ||
if ($$scope.ctx.length > 32) { | ||
const dirty = []; | ||
const length = $$scope.ctx.length / 32; | ||
for (let i = 0; i < length; i++) { | ||
dirty[i] = -1; | ||
} | ||
return dirty; | ||
} | ||
return -1; | ||
} | ||
function exclude_internal_props(props) { | ||
@@ -369,3 +379,3 @@ const result = {}; | ||
/* src/components/VtmnLink.svelte generated by Svelte v3.40.1 */ | ||
/* src/components/VtmnLink.svelte generated by Svelte v3.41.0 */ | ||
@@ -415,3 +425,12 @@ function create_fragment(ctx) { | ||
if (default_slot.p && (!current || dirty & /*$$scope*/ 16)) { | ||
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[4], !current ? -1 : dirty, null, null); | ||
update_slot_base( | ||
default_slot, | ||
default_slot_template, | ||
ctx, | ||
/*$$scope*/ ctx[4], | ||
!current | ||
? get_all_dirty_from_scope(/*$$scope*/ ctx[4]) | ||
: get_slot_changes(default_slot_template, /*$$scope*/ ctx[4], dirty, null), | ||
null | ||
); | ||
} | ||
@@ -418,0 +437,0 @@ } |
@@ -334,3 +334,3 @@ (function (global, factory) { | ||
/* src/components/VtmnTextInput.svelte generated by Svelte v3.40.1 */ | ||
/* src/components/VtmnTextInput.svelte generated by Svelte v3.41.0 */ | ||
@@ -403,2 +403,3 @@ function create_if_block_2(ctx) { | ||
append(div, input); | ||
if (input.autofocus) input.focus(); | ||
append(div, t); | ||
@@ -457,2 +458,3 @@ append(div, span); | ||
insert(target, textarea, anchor); | ||
if (textarea.autofocus) textarea.focus(); | ||
}, | ||
@@ -459,0 +461,0 @@ p(ctx, dirty) { |
{ | ||
"name": "@vtmn/svelte", | ||
"version": "0.5.1", | ||
"version": "0.5.3", | ||
"description": "Decathlon Design System - Vitamin Svelte library", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"rollup-plugin-svelte": "^7.1.0", | ||
"svelte": "3.40.1", | ||
"svelte": "3.41.0", | ||
"svelte-preprocess": "4.7.4" | ||
@@ -53,3 +53,3 @@ }, | ||
], | ||
"gitHead": "03669ad732047733785fce57d0f23deade71c11f" | ||
"gitHead": "1b0e7241bb2e1c4a0d4f4e05eb8bdfb41bc50d4f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151275
4065