framework7-svelte 6.3.9 → 6.3.10

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.
@@ -22,7 +22,7 @@ const get_list_slot_context = ctx => ({});
22
22
  const get_before_list_slot_changes = dirty => ({});
23
23
  const get_before_list_slot_context = ctx => ({});
24
24
 
25
- // (211:0) {:else}
25
+ // (217:0) {:else}
26
26
  function create_else_block_1(ctx) {
27
27
  let div;
28
28
  let t0;
@@ -162,7 +162,7 @@ function create_else_block_1(ctx) {
162
162
  };
163
163
  }
164
164
 
165
- // (190:0) {#if form}
165
+ // (196:0) {#if form}
166
166
  function create_if_block(ctx) {
167
167
  let form_1;
168
168
  let t0;
@@ -311,7 +311,7 @@ function create_if_block(ctx) {
311
311
  };
312
312
  }
313
313
 
314
- // (226:4) {:else}
314
+ // (232:4) {:else}
315
315
  function create_else_block_2(ctx) {
316
316
  let current;
317
317
  const default_slot_template = /*#slots*/ ctx[44].default;
@@ -350,7 +350,7 @@ function create_else_block_2(ctx) {
350
350
  };
351
351
  }
352
352
 
353
- // (221:4) {#if hasUlSlots && ul}
353
+ // (227:4) {#if hasUlSlots && ul}
354
354
  function create_if_block_2(ctx) {
355
355
  let ul_1;
356
356
  let t;
@@ -414,7 +414,7 @@ function create_if_block_2(ctx) {
414
414
  };
415
415
  }
416
416
 
417
- // (206:4) {:else}
417
+ // (212:4) {:else}
418
418
  function create_else_block(ctx) {
419
419
  let current;
420
420
  const default_slot_template = /*#slots*/ ctx[44].default;
@@ -453,7 +453,7 @@ function create_else_block(ctx) {
453
453
  };
454
454
  }
455
455
 
456
- // (201:4) {#if hasUlSlots && ul}
456
+ // (207:4) {#if hasUlSlots && ul}
457
457
  function create_if_block_1(ctx) {
458
458
  let ul_1;
459
459
  let t;
@@ -668,6 +668,11 @@ function instance($$self, $$props, $$invalidate) {
668
668
  emit("sortableSort", [sortData]);
669
669
  }
670
670
 
671
+ function onSortableMove(listItemEl, listEl) {
672
+ if (listEl !== el) return;
673
+ emit("sortableMove", [listEl]);
674
+ }
675
+
671
676
  useTab(() => el, emit);
672
677
 
673
678
  onMount(() => {
@@ -675,6 +680,7 @@ function instance($$self, $$props, $$invalidate) {
675
680
  app.f7.on("sortableEnable", onSortableEnable);
676
681
  app.f7.on("sortableDisable", onSortableDisable);
677
682
  app.f7.on("sortableSort", onSortableSort);
683
+ app.f7.on("sortableMove", onSortableMove);
678
684
  if (!virtualList) return;
679
685
  const vlParams = virtualListParams || {};
680
686
  if (!vlParams.renderItem && !vlParams.renderExternal) return;
@@ -711,6 +717,7 @@ function instance($$self, $$props, $$invalidate) {
711
717
  app.f7.off("sortableEnable", onSortableEnable);
712
718
  app.f7.off("sortableDisable", onSortableDisable);
713
719
  app.f7.off("sortableSort", onSortableSort);
720
+ app.f7.off("sortableMove", onSortableMove);
714
721
 
715
722
  if (f7VirtualList && f7VirtualList.destroy) {
716
723
  f7VirtualList.destroy();
@@ -733,7 +740,7 @@ function instance($$self, $$props, $$invalidate) {
733
740
  }
734
741
 
735
742
  $$self.$$set = $$new_props => {
736
- $$invalidate(52, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
743
+ $$invalidate(53, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
737
744
  $$invalidate(7, $$restProps = compute_rest_props($$props, omit_props_names));
738
745
  if ("class" in $$new_props) $$invalidate(8, className = $$new_props.class);
739
746
  if ("ul" in $$new_props) $$invalidate(0, ul = $$new_props.ul);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Svelte 6.3.9
2
+ * Framework7 Svelte 6.3.10
3
3
  * Build full featured iOS & Android apps using Framework7 & Svelte
4
4
  * https://framework7.io/svelte/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: November 18, 2021
10
+ * Released on: December 8, 2021
11
11
  */
12
12
  "use strict";
13
13
 
@@ -55,6 +55,7 @@ interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
55
55
  onSortableEnable ?: (...args: any[]) => void;
56
56
  onSortableDisable ?: (...args: any[]) => void;
57
57
  onSortableSort ?: (sortData?: any) => void;
58
+ onSortableMove ?: (itemEl?: any) => void;
58
59
  onTabShow ?: (el?: HTMLElement) => void;
59
60
  onTabHide ?: (el?: HTMLElement) => void;
60
61
  }
@@ -63,7 +64,7 @@ interface ListProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap['div
63
64
 
64
65
  class List extends SvelteComponentTyped<
65
66
  ListProps,
66
- { submit: CustomEvent<void>; sortableEnable: CustomEvent<void>; sortableDisable: CustomEvent<void>; sortableSort: CustomEvent<void>; virtualItemBeforeInsert: CustomEvent<void>; virtualBeforeClear: CustomEvent<void>; virtualItemsBeforeInsert: CustomEvent<void>; virtualItemsAfterInsert: CustomEvent<void>; },
67
+ { submit: CustomEvent<void>; sortableEnable: CustomEvent<void>; sortableDisable: CustomEvent<void>; sortableSort: CustomEvent<void>; sortableMove: CustomEvent<void>; virtualItemBeforeInsert: CustomEvent<void>; virtualBeforeClear: CustomEvent<void>; virtualItemsBeforeInsert: CustomEvent<void>; virtualItemsAfterInsert: CustomEvent<void>; },
67
68
  { 'before-list' : {}; 'list' : {}; 'default' : {}; 'after-list' : {}; }
68
69
  > {}
69
70
 
@@ -45,7 +45,7 @@ const get_list_slot_context = ctx => ({});
45
45
  const get_before_list_slot_changes = dirty => ({});
46
46
  const get_before_list_slot_context = ctx => ({});
47
47
 
48
- // (211:0) {:else}
48
+ // (217:0) {:else}
49
49
  function create_else_block_1(ctx) {
50
50
  let div;
51
51
  let t0;
@@ -185,7 +185,7 @@ function create_else_block_1(ctx) {
185
185
  };
186
186
  }
187
187
 
188
- // (190:0) {#if form}
188
+ // (196:0) {#if form}
189
189
  function create_if_block(ctx) {
190
190
  let form_1;
191
191
  let t0;
@@ -334,7 +334,7 @@ function create_if_block(ctx) {
334
334
  };
335
335
  }
336
336
 
337
- // (226:4) {:else}
337
+ // (232:4) {:else}
338
338
  function create_else_block_2(ctx) {
339
339
  let current;
340
340
  const default_slot_template = /*#slots*/ ctx[44].default;
@@ -373,7 +373,7 @@ function create_else_block_2(ctx) {
373
373
  };
374
374
  }
375
375
 
376
- // (221:4) {#if hasUlSlots && ul}
376
+ // (227:4) {#if hasUlSlots && ul}
377
377
  function create_if_block_2(ctx) {
378
378
  let ul_1;
379
379
  let t;
@@ -437,7 +437,7 @@ function create_if_block_2(ctx) {
437
437
  };
438
438
  }
439
439
 
440
- // (206:4) {:else}
440
+ // (212:4) {:else}
441
441
  function create_else_block(ctx) {
442
442
  let current;
443
443
  const default_slot_template = /*#slots*/ ctx[44].default;
@@ -476,7 +476,7 @@ function create_else_block(ctx) {
476
476
  };
477
477
  }
478
478
 
479
- // (201:4) {#if hasUlSlots && ul}
479
+ // (207:4) {#if hasUlSlots && ul}
480
480
  function create_if_block_1(ctx) {
481
481
  let ul_1;
482
482
  let t;
@@ -691,6 +691,11 @@ function instance($$self, $$props, $$invalidate) {
691
691
  emit("sortableSort", [sortData]);
692
692
  }
693
693
 
694
+ function onSortableMove(listItemEl, listEl) {
695
+ if (listEl !== el) return;
696
+ emit("sortableMove", [listEl]);
697
+ }
698
+
694
699
  useTab(() => el, emit);
695
700
 
696
701
  onMount(() => {
@@ -698,6 +703,7 @@ function instance($$self, $$props, $$invalidate) {
698
703
  app.f7.on("sortableEnable", onSortableEnable);
699
704
  app.f7.on("sortableDisable", onSortableDisable);
700
705
  app.f7.on("sortableSort", onSortableSort);
706
+ app.f7.on("sortableMove", onSortableMove);
701
707
  if (!virtualList) return;
702
708
  const vlParams = virtualListParams || {};
703
709
  if (!vlParams.renderItem && !vlParams.renderExternal) return;
@@ -734,6 +740,7 @@ function instance($$self, $$props, $$invalidate) {
734
740
  app.f7.off("sortableEnable", onSortableEnable);
735
741
  app.f7.off("sortableDisable", onSortableDisable);
736
742
  app.f7.off("sortableSort", onSortableSort);
743
+ app.f7.off("sortableMove", onSortableMove);
737
744
 
738
745
  if (f7VirtualList && f7VirtualList.destroy) {
739
746
  f7VirtualList.destroy();
@@ -756,7 +763,7 @@ function instance($$self, $$props, $$invalidate) {
756
763
  }
757
764
 
758
765
  $$self.$$set = $$new_props => {
759
- $$invalidate(52, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
766
+ $$invalidate(53, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
760
767
  $$invalidate(7, $$restProps = compute_rest_props($$props, omit_props_names));
761
768
  if ("class" in $$new_props) $$invalidate(8, className = $$new_props.class);
762
769
  if ("ul" in $$new_props) $$invalidate(0, ul = $$new_props.ul);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Svelte 6.3.9
2
+ * Framework7 Svelte 6.3.10
3
3
  * Build full featured iOS & Android apps using Framework7 & Svelte
4
4
  * https://framework7.io/svelte/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: November 18, 2021
10
+ * Released on: December 8, 2021
11
11
  */
12
12
  import Framework7Svelte from './shared/plugin';
13
13
  import { f7, f7ready, theme, app } from './shared/f7';
@@ -131,6 +131,10 @@
131
131
  if (listEl !== el) return;
132
132
  emit('sortableSort', [sortData]);
133
133
  }
134
+ function onSortableMove(listItemEl, listEl) {
135
+ if (listEl !== el) return;
136
+ emit('sortableMove', [listEl]);
137
+ }
134
138
 
135
139
  useTab(() => el, emit);
136
140
 
@@ -139,6 +143,7 @@
139
143
  app.f7.on('sortableEnable', onSortableEnable);
140
144
  app.f7.on('sortableDisable', onSortableDisable);
141
145
  app.f7.on('sortableSort', onSortableSort);
146
+ app.f7.on('sortableMove', onSortableMove);
142
147
 
143
148
  if (!virtualList) return;
144
149
  const vlParams = virtualListParams || {};
@@ -178,6 +183,7 @@
178
183
  app.f7.off('sortableEnable', onSortableEnable);
179
184
  app.f7.off('sortableDisable', onSortableDisable);
180
185
  app.f7.off('sortableSort', onSortableSort);
186
+ app.f7.off('sortableMove', onSortableMove);
181
187
 
182
188
  if (f7VirtualList && f7VirtualList.destroy) {
183
189
  f7VirtualList.destroy();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-svelte",
3
- "version": "6.3.9",
3
+ "version": "6.3.10",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Svelte",
5
5
  "main": "cjs/framework7-svelte.js",
6
6
  "module": "esm/framework7-svelte.js",