inline-style-editor 1.2.0 → 1.2.1

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.
@@ -2070,7 +2070,7 @@ function get_each_context_5(ctx, list, i) {
2070
2070
  return child_ctx;
2071
2071
  }
2072
2072
 
2073
- // (388:4) {#if targetsToSearch.length > 1}
2073
+ // (387:4) {#if targetsToSearch.length > 1}
2074
2074
  function create_if_block_7(ctx) {
2075
2075
  let div;
2076
2076
  let b;
@@ -2135,7 +2135,7 @@ function create_if_block_7(ctx) {
2135
2135
  };
2136
2136
  }
2137
2137
 
2138
- // (391:8) {#each targetsToSearch as target, elemIndex}
2138
+ // (390:8) {#each targetsToSearch as target, elemIndex}
2139
2139
  function create_each_block_5(ctx) {
2140
2140
  let span;
2141
2141
  let t0;
@@ -2182,7 +2182,7 @@ function create_each_block_5(ctx) {
2182
2182
  };
2183
2183
  }
2184
2184
 
2185
- // (400:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2185
+ // (399:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2186
2186
  function create_each_block_4(ctx) {
2187
2187
  let span;
2188
2188
  let t_value = /*ruleName*/ ctx[75] + "";
@@ -2231,7 +2231,7 @@ function create_each_block_4(ctx) {
2231
2231
  };
2232
2232
  }
2233
2233
 
2234
- // (411:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2234
+ // (410:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2235
2235
  function create_if_block_6(ctx) {
2236
2236
  let span;
2237
2237
  let t0_value = /*type*/ ctx[72] + "";
@@ -2277,10 +2277,10 @@ function create_if_block_6(ctx) {
2277
2277
  };
2278
2278
  }
2279
2279
 
2280
- // (409:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2280
+ // (408:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2281
2281
  function create_each_block_3(ctx) {
2282
2282
  let if_block_anchor;
2283
- let if_block = (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[7] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) && create_if_block_6(ctx);
2283
+ let if_block = (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[16] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[15]) && create_if_block_6(ctx);
2284
2284
 
2285
2285
  return {
2286
2286
  c() {
@@ -2292,7 +2292,7 @@ function create_each_block_3(ctx) {
2292
2292
  insert(target, if_block_anchor, anchor);
2293
2293
  },
2294
2294
  p(ctx, dirty) {
2295
- if (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[7] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) {
2295
+ if (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[16] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[15]) {
2296
2296
  if (if_block) {
2297
2297
  if_block.p(ctx, dirty);
2298
2298
  } else {
@@ -2312,12 +2312,12 @@ function create_each_block_3(ctx) {
2312
2312
  };
2313
2313
  }
2314
2314
 
2315
- // (416:4) {#if allTypes[selectedElemIndex]}
2315
+ // (415:4) {#if allTypes[selectedElemIndex]}
2316
2316
  function create_if_block(ctx) {
2317
2317
  let div;
2318
2318
  let t;
2319
2319
  let current;
2320
- let each_value = Object.entries(/*propsByType*/ ctx[13]);
2320
+ let each_value = Object.entries(/*propsByType*/ ctx[12]);
2321
2321
  let each_blocks = [];
2322
2322
 
2323
2323
  for (let i = 0; i < each_value.length; i += 1) {
@@ -2328,7 +2328,7 @@ function create_if_block(ctx) {
2328
2328
  each_blocks[i] = null;
2329
2329
  });
2330
2330
 
2331
- let if_block = /*currentRule*/ ctx[7] === 'inline' && /*bringableToFront*/ ctx[15][/*selectedElemIndex*/ ctx[4]] !== null && create_if_block_1(ctx);
2331
+ let if_block = /*currentRule*/ ctx[16] === 'inline' && /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] !== null && create_if_block_1(ctx);
2332
2332
 
2333
2333
  return {
2334
2334
  c() {
@@ -2354,8 +2354,8 @@ function create_if_block(ctx) {
2354
2354
  current = true;
2355
2355
  },
2356
2356
  p(ctx, dirty) {
2357
- if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp, deleteProp*/ 1335296) {
2358
- each_value = Object.entries(/*propsByType*/ ctx[13]);
2357
+ if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp, deleteProp*/ 1323008) {
2358
+ each_value = Object.entries(/*propsByType*/ ctx[12]);
2359
2359
  let i;
2360
2360
 
2361
2361
  for (i = 0; i < each_value.length; i += 1) {
@@ -2381,7 +2381,7 @@ function create_if_block(ctx) {
2381
2381
  check_outros();
2382
2382
  }
2383
2383
 
2384
- if (/*currentRule*/ ctx[7] === 'inline' && /*bringableToFront*/ ctx[15][/*selectedElemIndex*/ ctx[4]] !== null) {
2384
+ if (/*currentRule*/ ctx[16] === 'inline' && /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] !== null) {
2385
2385
  if (if_block) {
2386
2386
  if_block.p(ctx, dirty);
2387
2387
  } else {
@@ -2420,7 +2420,7 @@ function create_if_block(ctx) {
2420
2420
  };
2421
2421
  }
2422
2422
 
2423
- // (427:16) {:else}
2423
+ // (426:16) {:else}
2424
2424
  function create_else_block(ctx) {
2425
2425
  let span;
2426
2426
  let t_value = /*selectedName*/ ctx[63] + "";
@@ -2436,7 +2436,7 @@ function create_else_block(ctx) {
2436
2436
  append(span, t);
2437
2437
  },
2438
2438
  p(ctx, dirty) {
2439
- if (dirty[0] & /*propsByType*/ 8192 && t_value !== (t_value = /*selectedName*/ ctx[63] + "")) set_data(t, t_value);
2439
+ if (dirty[0] & /*propsByType*/ 4096 && t_value !== (t_value = /*selectedName*/ ctx[63] + "")) set_data(t, t_value);
2440
2440
  },
2441
2441
  d(detaching) {
2442
2442
  if (detaching) detach(span);
@@ -2444,7 +2444,7 @@ function create_else_block(ctx) {
2444
2444
  };
2445
2445
  }
2446
2446
 
2447
- // (421:16) {#if choices.props.length > 1}
2447
+ // (420:16) {#if choices.props.length > 1}
2448
2448
  function create_if_block_5(ctx) {
2449
2449
  let div;
2450
2450
  let select;
@@ -2486,7 +2486,7 @@ function create_if_block_5(ctx) {
2486
2486
  p(new_ctx, dirty) {
2487
2487
  ctx = new_ctx;
2488
2488
 
2489
- if (dirty[0] & /*propsByType*/ 8192) {
2489
+ if (dirty[0] & /*propsByType*/ 4096) {
2490
2490
  each_value_2 = /*choices*/ ctx[62].props;
2491
2491
  let i;
2492
2492
 
@@ -2518,7 +2518,7 @@ function create_if_block_5(ctx) {
2518
2518
  };
2519
2519
  }
2520
2520
 
2521
- // (423:24) {#each choices.props as propName, i}
2521
+ // (422:24) {#each choices.props as propName, i}
2522
2522
  function create_each_block_2(ctx) {
2523
2523
  let option;
2524
2524
  let t0_value = /*propName*/ ctx[69] + "";
@@ -2541,9 +2541,9 @@ function create_each_block_2(ctx) {
2541
2541
  append(option, t1);
2542
2542
  },
2543
2543
  p(ctx, dirty) {
2544
- if (dirty[0] & /*propsByType*/ 8192 && t0_value !== (t0_value = /*propName*/ ctx[69] + "")) set_data(t0, t0_value);
2544
+ if (dirty[0] & /*propsByType*/ 4096 && t0_value !== (t0_value = /*propName*/ ctx[69] + "")) set_data(t0, t0_value);
2545
2545
 
2546
- if (dirty[0] & /*propsByType*/ 8192 && option_selected_value !== (option_selected_value = /*i*/ ctx[71] === /*choices*/ ctx[62].selected)) {
2546
+ if (dirty[0] & /*propsByType*/ 4096 && option_selected_value !== (option_selected_value = /*i*/ ctx[71] === /*choices*/ ctx[62].selected)) {
2547
2547
  option.selected = option_selected_value;
2548
2548
  }
2549
2549
  },
@@ -2553,7 +2553,7 @@ function create_each_block_2(ctx) {
2553
2553
  };
2554
2554
  }
2555
2555
 
2556
- // (446:46)
2556
+ // (445:46)
2557
2557
  function create_if_block_4(ctx) {
2558
2558
  let colorpicker;
2559
2559
  let current;
@@ -2564,7 +2564,7 @@ function create_if_block_4(ctx) {
2564
2564
 
2565
2565
  colorpicker = new ColorPicker$1({
2566
2566
  props: {
2567
- value: /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value,
2567
+ value: /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value,
2568
2568
  onChange: func
2569
2569
  }
2570
2570
  });
@@ -2580,8 +2580,8 @@ function create_if_block_4(ctx) {
2580
2580
  p(new_ctx, dirty) {
2581
2581
  ctx = new_ctx;
2582
2582
  const colorpicker_changes = {};
2583
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value;
2584
- if (dirty[0] & /*propsByType*/ 8192) colorpicker_changes.onChange = func;
2583
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value;
2584
+ if (dirty[0] & /*propsByType*/ 4096) colorpicker_changes.onChange = func;
2585
2585
  colorpicker.$set(colorpicker_changes);
2586
2586
  },
2587
2587
  i(local) {
@@ -2599,12 +2599,12 @@ function create_if_block_4(ctx) {
2599
2599
  };
2600
2600
  }
2601
2601
 
2602
- // (440:47)
2602
+ // (439:47)
2603
2603
  function create_if_block_3(ctx) {
2604
2604
  let select;
2605
2605
  let mounted;
2606
2606
  let dispose;
2607
- let each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].choices();
2607
+ let each_value_1 = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].choices();
2608
2608
  let each_blocks = [];
2609
2609
 
2610
2610
  for (let i = 0; i < each_value_1.length; i += 1) {
@@ -2638,8 +2638,8 @@ function create_if_block_3(ctx) {
2638
2638
  p(new_ctx, dirty) {
2639
2639
  ctx = new_ctx;
2640
2640
 
2641
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) {
2642
- each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].choices();
2641
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288) {
2642
+ each_value_1 = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].choices();
2643
2643
  let i;
2644
2644
 
2645
2645
  for (i = 0; i < each_value_1.length; i += 1) {
@@ -2672,7 +2672,7 @@ function create_if_block_3(ctx) {
2672
2672
  };
2673
2673
  }
2674
2674
 
2675
- // (431:16) {#if propType === 'slider'}
2675
+ // (430:16) {#if propType === 'slider'}
2676
2676
  function create_if_block_2(ctx) {
2677
2677
  let input;
2678
2678
  let input_min_value;
@@ -2681,7 +2681,7 @@ function create_if_block_2(ctx) {
2681
2681
  let input_value_value;
2682
2682
  let t0;
2683
2683
  let span;
2684
- let t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].displayed + "";
2684
+ let t1_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].displayed + "";
2685
2685
  let t1;
2686
2686
  let mounted;
2687
2687
  let dispose;
@@ -2697,10 +2697,10 @@ function create_if_block_2(ctx) {
2697
2697
  span = element("span");
2698
2698
  t1 = text(t1_value);
2699
2699
  attr(input, "type", "range");
2700
- attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].min);
2701
- attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].max);
2702
- attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].step || 1);
2703
- input.value = input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value;
2700
+ attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].min);
2701
+ attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].max);
2702
+ attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].step || 1);
2703
+ input.value = input_value_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value;
2704
2704
  attr(span, "class", "current-value");
2705
2705
  },
2706
2706
  m(target, anchor) {
@@ -2717,23 +2717,23 @@ function create_if_block_2(ctx) {
2717
2717
  p(new_ctx, dirty) {
2718
2718
  ctx = new_ctx;
2719
2719
 
2720
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].min)) {
2720
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].min)) {
2721
2721
  attr(input, "min", input_min_value);
2722
2722
  }
2723
2723
 
2724
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].max)) {
2724
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].max)) {
2725
2725
  attr(input, "max", input_max_value);
2726
2726
  }
2727
2727
 
2728
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_step_value !== (input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].step || 1)) {
2728
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_step_value !== (input_step_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].step || 1)) {
2729
2729
  attr(input, "step", input_step_value);
2730
2730
  }
2731
2731
 
2732
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value)) {
2732
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value)) {
2733
2733
  input.value = input_value_value;
2734
2734
  }
2735
2735
 
2736
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].displayed + "")) set_data(t1, t1_value);
2736
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].displayed + "")) set_data(t1, t1_value);
2737
2737
  },
2738
2738
  i: noop$1,
2739
2739
  o: noop$1,
@@ -2747,7 +2747,7 @@ function create_if_block_2(ctx) {
2747
2747
  };
2748
2748
  }
2749
2749
 
2750
- // (442:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2750
+ // (441:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2751
2751
  function create_each_block_1(ctx) {
2752
2752
  let option;
2753
2753
  let t_value = /*choice*/ ctx[66] + "";
@@ -2759,7 +2759,7 @@ function create_each_block_1(ctx) {
2759
2759
  c() {
2760
2760
  option = element("option");
2761
2761
  t = text(t_value);
2762
- option.selected = option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value || null;
2762
+ option.selected = option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value || null;
2763
2763
  option.__value = option_value_value = " " + /*choice*/ ctx[66] + " ";
2764
2764
  option.value = option.__value;
2765
2765
  },
@@ -2768,13 +2768,13 @@ function create_each_block_1(ctx) {
2768
2768
  append(option, t);
2769
2769
  },
2770
2770
  p(ctx, dirty) {
2771
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t_value !== (t_value = /*choice*/ ctx[66] + "")) set_data(t, t_value);
2771
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && t_value !== (t_value = /*choice*/ ctx[66] + "")) set_data(t, t_value);
2772
2772
 
2773
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_selected_value !== (option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[63]].value || null)) {
2773
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && option_selected_value !== (option_selected_value = /*choice*/ ctx[66] == /*allCurrentPropDefs*/ ctx[13][/*selectedName*/ ctx[63]].value || null)) {
2774
2774
  option.selected = option_selected_value;
2775
2775
  }
2776
2776
 
2777
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[66] + " ")) {
2777
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 12288 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[66] + " ")) {
2778
2778
  option.__value = option_value_value;
2779
2779
  option.value = option.__value;
2780
2780
  }
@@ -2785,7 +2785,7 @@ function create_each_block_1(ctx) {
2785
2785
  };
2786
2786
  }
2787
2787
 
2788
- // (418:8) {#each Object.entries(propsByType) as [propType, choices]}
2788
+ // (417:8) {#each Object.entries(propsByType) as [propType, choices]}
2789
2789
  function create_each_block(ctx) {
2790
2790
  let div;
2791
2791
  let t0;
@@ -2926,7 +2926,7 @@ function create_each_block(ctx) {
2926
2926
  };
2927
2927
  }
2928
2928
 
2929
- // (454:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2929
+ // (453:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2930
2930
  function create_if_block_1(ctx) {
2931
2931
  let div;
2932
2932
  let mounted;
@@ -2937,7 +2937,7 @@ function create_if_block_1(ctx) {
2937
2937
  div = element("div");
2938
2938
  div.textContent = "Bring to front";
2939
2939
  attr(div, "class", "btn");
2940
- toggle_class(div, "active", /*bringableToFront*/ ctx[15][/*selectedElemIndex*/ ctx[4]] === true);
2940
+ toggle_class(div, "active", /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] === true);
2941
2941
  },
2942
2942
  m(target, anchor) {
2943
2943
  insert(target, div, anchor);
@@ -2948,8 +2948,8 @@ function create_if_block_1(ctx) {
2948
2948
  }
2949
2949
  },
2950
2950
  p(ctx, dirty) {
2951
- if (dirty[0] & /*bringableToFront, selectedElemIndex*/ 32784) {
2952
- toggle_class(div, "active", /*bringableToFront*/ ctx[15][/*selectedElemIndex*/ ctx[4]] === true);
2951
+ if (dirty[0] & /*bringableToFront, selectedElemIndex*/ 16400) {
2952
+ toggle_class(div, "active", /*bringableToFront*/ ctx[14][/*selectedElemIndex*/ ctx[4]] === true);
2953
2953
  }
2954
2954
  },
2955
2955
  d(detaching) {
@@ -3039,7 +3039,7 @@ function create_fragment(ctx) {
3039
3039
  t10 = space();
3040
3040
  if (if_block1) if_block1.c();
3041
3041
  set_style(div0, "position", "absolute");
3042
- attr(path, "d", /*pathWithHoles*/ ctx[11]);
3042
+ attr(path, "d", /*pathWithHoles*/ ctx[10]);
3043
3043
  attr(clipPath, "id", "overlay-clip");
3044
3044
  attr(clipPath, "clip-rule", "evenodd");
3045
3045
  attr(rect, "y", "0");
@@ -3051,8 +3051,8 @@ function create_fragment(ctx) {
3051
3051
  attr(svg, "version", "1.1");
3052
3052
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
3053
3053
  attr(svg, "xmlns:xlink", "http://www.w3.org/1999/xlink");
3054
- attr(svg, "width", svg_width_value = /*pageDimensions*/ ctx[12].width);
3055
- attr(svg, "height", svg_height_value = /*pageDimensions*/ ctx[12].height);
3054
+ attr(svg, "width", svg_width_value = /*pageDimensions*/ ctx[11].width);
3055
+ attr(svg, "height", svg_height_value = /*pageDimensions*/ ctx[11].height);
3056
3056
  attr(div1, "class", "close-button");
3057
3057
  attr(div2, "class", "select-tab");
3058
3058
  attr(div3, "class", "select-tab");
@@ -3105,15 +3105,15 @@ function create_fragment(ctx) {
3105
3105
  }
3106
3106
  },
3107
3107
  p(ctx, dirty) {
3108
- if (!current || dirty[0] & /*pathWithHoles*/ 2048) {
3109
- attr(path, "d", /*pathWithHoles*/ ctx[11]);
3108
+ if (!current || dirty[0] & /*pathWithHoles*/ 1024) {
3109
+ attr(path, "d", /*pathWithHoles*/ ctx[10]);
3110
3110
  }
3111
3111
 
3112
- if (!current || dirty[0] & /*pageDimensions*/ 4096 && svg_width_value !== (svg_width_value = /*pageDimensions*/ ctx[12].width)) {
3112
+ if (!current || dirty[0] & /*pageDimensions*/ 2048 && svg_width_value !== (svg_width_value = /*pageDimensions*/ ctx[11].width)) {
3113
3113
  attr(svg, "width", svg_width_value);
3114
3114
  }
3115
3115
 
3116
- if (!current || dirty[0] & /*pageDimensions*/ 4096 && svg_height_value !== (svg_height_value = /*pageDimensions*/ ctx[12].height)) {
3116
+ if (!current || dirty[0] & /*pageDimensions*/ 2048 && svg_height_value !== (svg_height_value = /*pageDimensions*/ ctx[11].height)) {
3117
3117
  attr(svg, "height", svg_height_value);
3118
3118
  }
3119
3119
 
@@ -3153,7 +3153,7 @@ function create_fragment(ctx) {
3153
3153
  each_blocks_1.length = each_value_4.length;
3154
3154
  }
3155
3155
 
3156
- if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule, hasDisplayedCustom*/ 65752) {
3156
+ if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule, hasDisplayedCustom*/ 98392) {
3157
3157
  each_value_3 = /*allTypes*/ ctx[3][/*selectedElemIndex*/ ctx[4]] || [];
3158
3158
  let i;
3159
3159
 
@@ -3393,8 +3393,6 @@ function instance($$self, $$props, $$invalidate) {
3393
3393
  let allCurrentPropDefs = {}; // propName => selectorDef
3394
3394
  let bringableToFront = []; // null = not bringable, true = bringable, false = was bringed
3395
3395
  let hasDisplayedCustom = false;
3396
-
3397
- // $: curType = allTypes[selectedElemIndex]?.[selectedTypeIndex];
3398
3396
  let curType;
3399
3397
 
3400
3398
  onMount(() => {
@@ -3450,7 +3448,7 @@ function instance($$self, $$props, $$invalidate) {
3450
3448
  }
3451
3449
  });
3452
3450
 
3453
- $$invalidate(13, propsByType = Object.entries(_allCurrentPropDefs).reduce(
3451
+ $$invalidate(12, propsByType = Object.entries(_allCurrentPropDefs).reduce(
3454
3452
  (byType, [propName, selectorDef]) => {
3455
3453
  const selectorType = selectorDef.type;
3456
3454
  if (!(selectorType in byType)) byType[selectorType] = { selected: 0, props: [propName] }; else byType[selectorType].props.push(propName);
@@ -3459,7 +3457,7 @@ function instance($$self, $$props, $$invalidate) {
3459
3457
  {}
3460
3458
  ));
3461
3459
 
3462
- $$invalidate(14, allCurrentPropDefs = _allCurrentPropDefs);
3460
+ $$invalidate(13, allCurrentPropDefs = _allCurrentPropDefs);
3463
3461
  updateHelpers();
3464
3462
  }
3465
3463
 
@@ -3547,17 +3545,17 @@ function instance($$self, $$props, $$invalidate) {
3547
3545
  $$invalidate(4, selectedElemIndex = 0);
3548
3546
  $$invalidate(5, selectedRuleIndex = 0);
3549
3547
  $$invalidate(6, selectedTypeIndex = 0);
3550
- $$invalidate(15, bringableToFront = []);
3548
+ $$invalidate(14, bringableToFront = []);
3551
3549
  $$invalidate(3, allTypes = []);
3552
3550
  $$invalidate(2, allRules = []);
3553
3551
  $$invalidate(1, targetsToSearch = [el, ...getAdditionalElems(el)]);
3554
3552
  $$invalidate(3, allTypes = getEditableTypes(targetsToSearch));
3555
- $$invalidate(16, hasDisplayedCustom = false);
3553
+ $$invalidate(15, hasDisplayedCustom = false);
3556
3554
  $$invalidate(2, allRules = getMatchedCSSRules(targetsToSearch));
3557
3555
 
3558
3556
  for (let def of Object.values(customProps)) {
3559
3557
  if (def.getter(el) !== null) {
3560
- $$invalidate(16, hasDisplayedCustom = true);
3558
+ $$invalidate(15, hasDisplayedCustom = true);
3561
3559
  break;
3562
3560
  }
3563
3561
  }
@@ -3573,9 +3571,9 @@ function instance($$self, $$props, $$invalidate) {
3573
3571
  }
3574
3572
 
3575
3573
  function close() {
3576
- $$invalidate(9, self.style.display = "none", self);
3577
- $$invalidate(10, helperElemWrapper.style.display = "none", helperElemWrapper);
3578
- $$invalidate(11, pathWithHoles = '');
3574
+ $$invalidate(8, self.style.display = "none", self);
3575
+ $$invalidate(9, helperElemWrapper.style.display = "none", helperElemWrapper);
3576
+ $$invalidate(10, pathWithHoles = '');
3579
3577
  }
3580
3578
 
3581
3579
  function isOpened() {
@@ -3595,10 +3593,10 @@ function instance($$self, $$props, $$invalidate) {
3595
3593
  ? pageDimensions.height - 450
3596
3594
  : y + 10;
3597
3595
 
3598
- $$invalidate(9, self.style.left = x + "px", self);
3599
- $$invalidate(9, self.style.top = y + "px", self);
3600
- $$invalidate(10, helperElemWrapper.style.display = "block", helperElemWrapper);
3601
- $$invalidate(9, self.style.display = "block", self);
3596
+ $$invalidate(8, self.style.left = x + "px", self);
3597
+ $$invalidate(8, self.style.top = y + "px", self);
3598
+ $$invalidate(9, helperElemWrapper.style.display = "block", helperElemWrapper);
3599
+ $$invalidate(8, self.style.display = "block", self);
3602
3600
  }
3603
3601
 
3604
3602
  async function updateHelpers() {
@@ -3612,7 +3610,7 @@ function instance($$self, $$props, $$invalidate) {
3612
3610
  }
3613
3611
 
3614
3612
  const boundingBoxes = matching.map(el => getBoundingBoxInfos(el, 10));
3615
- $$invalidate(11, pathWithHoles = computeContours(boundingBoxes, pageDimensions));
3613
+ $$invalidate(10, pathWithHoles = computeContours(boundingBoxes, pageDimensions));
3616
3614
  }
3617
3615
 
3618
3616
  function _updateProp(propName, val, suffix) {
@@ -3627,8 +3625,8 @@ function instance($$self, $$props, $$invalidate) {
3627
3625
  }
3628
3626
  } else currentRule.style.setProperty(propName, finalValue);
3629
3627
 
3630
- $$invalidate(14, allCurrentPropDefs[propName].value = val, allCurrentPropDefs);
3631
- $$invalidate(14, allCurrentPropDefs[propName].displayed = finalValue, allCurrentPropDefs);
3628
+ $$invalidate(13, allCurrentPropDefs[propName].value = val, allCurrentPropDefs);
3629
+ $$invalidate(13, allCurrentPropDefs[propName].displayed = finalValue, allCurrentPropDefs);
3632
3630
  onStyleChanged(currentElement, currentRule, propName, finalValue);
3633
3631
  updateHelpers();
3634
3632
  }
@@ -3642,7 +3640,7 @@ function instance($$self, $$props, $$invalidate) {
3642
3640
  const marginTop = parseInt(bodyStyle.marginTop);
3643
3641
  const marginBottom = parseInt(bodyStyle.marginBottom);
3644
3642
 
3645
- $$invalidate(12, pageDimensions = {
3643
+ $$invalidate(11, pageDimensions = {
3646
3644
  width: document.body.offsetWidth + marginLeft + marginRight,
3647
3645
  height: document.body.offsetHeight + marginTop + marginBottom
3648
3646
  });
@@ -3660,7 +3658,7 @@ function instance($$self, $$props, $$invalidate) {
3660
3658
  }
3661
3659
 
3662
3660
  function bringToFront() {
3663
- $$invalidate(15, bringableToFront[selectedElemIndex] = false, bringableToFront);
3661
+ $$invalidate(14, bringableToFront[selectedElemIndex] = false, bringableToFront);
3664
3662
  currentElement.parentNode.appendChild(currentElement);
3665
3663
  }
3666
3664
 
@@ -3687,14 +3685,14 @@ function instance($$self, $$props, $$invalidate) {
3687
3685
  function div0_binding($$value) {
3688
3686
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3689
3687
  positionAnchor = $$value;
3690
- $$invalidate(8, positionAnchor);
3688
+ $$invalidate(7, positionAnchor);
3691
3689
  });
3692
3690
  }
3693
3691
 
3694
3692
  function svg_binding($$value) {
3695
3693
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3696
3694
  helperElemWrapper = $$value;
3697
- $$invalidate(10, helperElemWrapper);
3695
+ $$invalidate(9, helperElemWrapper);
3698
3696
  });
3699
3697
  }
3700
3698
 
@@ -3712,7 +3710,7 @@ function instance($$self, $$props, $$invalidate) {
3712
3710
  };
3713
3711
 
3714
3712
  const change_handler = async (choices, each_value, each_index, e) => {
3715
- $$invalidate(13, each_value[each_index][1].selected = e.target.value, propsByType);
3713
+ $$invalidate(12, each_value[each_index][1].selected = e.target.value, propsByType);
3716
3714
  await tick();
3717
3715
  };
3718
3716
 
@@ -3724,7 +3722,7 @@ function instance($$self, $$props, $$invalidate) {
3724
3722
  function div4_binding($$value) {
3725
3723
  binding_callbacks[$$value ? 'unshift' : 'push'](() => {
3726
3724
  self = $$value;
3727
- $$invalidate(9, self);
3725
+ $$invalidate(8, self);
3728
3726
  });
3729
3727
  }
3730
3728
 
@@ -3749,7 +3747,7 @@ function instance($$self, $$props, $$invalidate) {
3749
3747
  }
3750
3748
 
3751
3749
  if ($$self.$$.dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex*/ 52) {
3752
- $$invalidate(7, currentRule = allRules[selectedElemIndex]?.[selectedRuleIndex]);
3750
+ $$invalidate(16, currentRule = allRules[selectedElemIndex]?.[selectedRuleIndex]);
3753
3751
  }
3754
3752
 
3755
3753
  if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 536871000) {
@@ -3760,9 +3758,9 @@ function instance($$self, $$props, $$invalidate) {
3760
3758
  }
3761
3759
  }
3762
3760
 
3763
- if ($$self.$$.dirty[0] & /*curType, currentRule*/ 536871040) {
3761
+ if ($$self.$$.dirty[0] & /*curType, selectedRuleIndex, selectedElemIndex*/ 536870960) {
3764
3762
  {
3765
- if (curType && currentRule) {
3763
+ if (curType || selectedRuleIndex || selectedElemIndex) {
3766
3764
  initAndGroup();
3767
3765
  }
3768
3766
  }
@@ -3777,7 +3775,6 @@ function instance($$self, $$props, $$invalidate) {
3777
3775
  selectedElemIndex,
3778
3776
  selectedRuleIndex,
3779
3777
  selectedTypeIndex,
3780
- currentRule,
3781
3778
  positionAnchor,
3782
3779
  self,
3783
3780
  helperElemWrapper,
@@ -3787,6 +3784,7 @@ function instance($$self, $$props, $$invalidate) {
3787
3784
  allCurrentPropDefs,
3788
3785
  bringableToFront,
3789
3786
  hasDisplayedCustom,
3787
+ currentRule,
3790
3788
  overlayClicked,
3791
3789
  updateProp,
3792
3790
  bringToFront,