@netless/fastboard-ui 0.3.2-canary.4 → 0.3.2
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.
- package/dist/index.d.ts +9 -2
- package/dist/index.js +310 -229
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +310 -229
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +310 -229
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/behaviors/apps.ts +4 -0
- package/src/components/Fastboard/Fastboard.svelte +1 -1
- package/src/components/Toolbar/Toolbar.svelte +14 -2
- package/src/components/Toolbar/Toolbar.svelte.d.ts +2 -1
- package/src/components/Toolbar/components/Contents.svelte +6 -3
- package/src/typings.ts +7 -1
package/dist/index.mjs
CHANGED
|
@@ -5691,6 +5691,10 @@ var AppsInToolbar = class {
|
|
|
5691
5691
|
this._data = this._data.filter((item) => !filter(item));
|
|
5692
5692
|
this._listeners.forEach((fn) => fn(this._data));
|
|
5693
5693
|
}
|
|
5694
|
+
clear() {
|
|
5695
|
+
this._data.length = 0;
|
|
5696
|
+
this._listeners.forEach((fn) => fn(this._data));
|
|
5697
|
+
}
|
|
5694
5698
|
};
|
|
5695
5699
|
var apps = new AppsInToolbar([
|
|
5696
5700
|
{
|
|
@@ -6754,20 +6758,20 @@ var Shapes_default = Shapes;
|
|
|
6754
6758
|
// src/components/Toolbar/components/Contents.svelte
|
|
6755
6759
|
function get_each_context4(ctx, list, i) {
|
|
6756
6760
|
const child_ctx = ctx.slice();
|
|
6757
|
-
child_ctx[
|
|
6758
|
-
const constants_0 = child_ctx[
|
|
6759
|
-
child_ctx[
|
|
6760
|
-
child_ctx[
|
|
6761
|
-
child_ctx[
|
|
6762
|
-
child_ctx[
|
|
6763
|
-
const constants_1 = child_ctx[
|
|
6764
|
-
child_ctx[
|
|
6761
|
+
child_ctx[41] = list[i];
|
|
6762
|
+
const constants_0 = child_ctx[41];
|
|
6763
|
+
child_ctx[42] = constants_0.icon;
|
|
6764
|
+
child_ctx[43] = constants_0.label;
|
|
6765
|
+
child_ctx[44] = constants_0.kind;
|
|
6766
|
+
child_ctx[45] = constants_0.onClick;
|
|
6767
|
+
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[44]];
|
|
6768
|
+
child_ctx[46] = constants_1;
|
|
6765
6769
|
return child_ctx;
|
|
6766
6770
|
}
|
|
6767
|
-
function
|
|
6771
|
+
function create_if_block_8(ctx) {
|
|
6768
6772
|
let button;
|
|
6769
6773
|
let current;
|
|
6770
|
-
const button_spread_levels = [{ class: "scroll-up" }, ctx[
|
|
6774
|
+
const button_spread_levels = [{ class: "scroll-up" }, ctx[15]];
|
|
6771
6775
|
let button_props = {
|
|
6772
6776
|
$$slots: { default: [create_default_slot_9] },
|
|
6773
6777
|
$$scope: { ctx }
|
|
@@ -6776,7 +6780,7 @@ function create_if_block_7(ctx) {
|
|
|
6776
6780
|
button_props = assign(button_props, button_spread_levels[i]);
|
|
6777
6781
|
}
|
|
6778
6782
|
button = new Button_default({ props: button_props });
|
|
6779
|
-
button.$on("click", ctx[
|
|
6783
|
+
button.$on("click", ctx[22]);
|
|
6780
6784
|
return {
|
|
6781
6785
|
c() {
|
|
6782
6786
|
create_component(button.$$.fragment);
|
|
@@ -6786,8 +6790,8 @@ function create_if_block_7(ctx) {
|
|
|
6786
6790
|
current = true;
|
|
6787
6791
|
},
|
|
6788
6792
|
p(ctx2, dirty) {
|
|
6789
|
-
const button_changes = dirty[0] &
|
|
6790
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6793
|
+
const button_changes = dirty[0] & 32768 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[15])]) : {};
|
|
6794
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
6791
6795
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6792
6796
|
}
|
|
6793
6797
|
button.$set(button_changes);
|
|
@@ -6873,7 +6877,7 @@ function create_else_block_5(ctx) {
|
|
|
6873
6877
|
}
|
|
6874
6878
|
};
|
|
6875
6879
|
}
|
|
6876
|
-
function
|
|
6880
|
+
function create_if_block_7(ctx) {
|
|
6877
6881
|
let icons_clickfilled;
|
|
6878
6882
|
let current;
|
|
6879
6883
|
icons_clickfilled = new Icons_default.ClickFilled({
|
|
@@ -6913,10 +6917,10 @@ function create_default_slot_8(ctx) {
|
|
|
6913
6917
|
let if_block;
|
|
6914
6918
|
let if_block_anchor;
|
|
6915
6919
|
let current;
|
|
6916
|
-
const if_block_creators = [
|
|
6920
|
+
const if_block_creators = [create_if_block_7, create_else_block_5];
|
|
6917
6921
|
const if_blocks = [];
|
|
6918
6922
|
function select_block_type(ctx2, dirty) {
|
|
6919
|
-
if (ctx2[
|
|
6923
|
+
if (ctx2[8] === "clicker")
|
|
6920
6924
|
return 0;
|
|
6921
6925
|
return 1;
|
|
6922
6926
|
}
|
|
@@ -7004,7 +7008,7 @@ function create_else_block_4(ctx) {
|
|
|
7004
7008
|
}
|
|
7005
7009
|
};
|
|
7006
7010
|
}
|
|
7007
|
-
function
|
|
7011
|
+
function create_if_block_6(ctx) {
|
|
7008
7012
|
let icons_selectorfilled;
|
|
7009
7013
|
let current;
|
|
7010
7014
|
icons_selectorfilled = new Icons_default.SelectorFilled({
|
|
@@ -7044,10 +7048,10 @@ function create_default_slot_7(ctx) {
|
|
|
7044
7048
|
let if_block;
|
|
7045
7049
|
let if_block_anchor;
|
|
7046
7050
|
let current;
|
|
7047
|
-
const if_block_creators = [
|
|
7051
|
+
const if_block_creators = [create_if_block_6, create_else_block_4];
|
|
7048
7052
|
const if_blocks = [];
|
|
7049
7053
|
function select_block_type_1(ctx2, dirty) {
|
|
7050
|
-
if (ctx2[
|
|
7054
|
+
if (ctx2[8] === "selector")
|
|
7051
7055
|
return 0;
|
|
7052
7056
|
return 1;
|
|
7053
7057
|
}
|
|
@@ -7135,7 +7139,7 @@ function create_else_block_3(ctx) {
|
|
|
7135
7139
|
}
|
|
7136
7140
|
};
|
|
7137
7141
|
}
|
|
7138
|
-
function
|
|
7142
|
+
function create_if_block_5(ctx) {
|
|
7139
7143
|
let icons_pencilfilled;
|
|
7140
7144
|
let current;
|
|
7141
7145
|
icons_pencilfilled = new Icons_default.PencilFilled({
|
|
@@ -7175,10 +7179,10 @@ function create_default_slot_6(ctx) {
|
|
|
7175
7179
|
let if_block;
|
|
7176
7180
|
let if_block_anchor;
|
|
7177
7181
|
let current;
|
|
7178
|
-
const if_block_creators = [
|
|
7182
|
+
const if_block_creators = [create_if_block_5, create_else_block_3];
|
|
7179
7183
|
const if_blocks = [];
|
|
7180
7184
|
function select_block_type_2(ctx2, dirty) {
|
|
7181
|
-
if (ctx2[
|
|
7185
|
+
if (ctx2[8] === "pencil")
|
|
7182
7186
|
return 0;
|
|
7183
7187
|
return 1;
|
|
7184
7188
|
}
|
|
@@ -7266,7 +7270,7 @@ function create_else_block_2(ctx) {
|
|
|
7266
7270
|
}
|
|
7267
7271
|
};
|
|
7268
7272
|
}
|
|
7269
|
-
function
|
|
7273
|
+
function create_if_block_4(ctx) {
|
|
7270
7274
|
let icons_textfilled;
|
|
7271
7275
|
let current;
|
|
7272
7276
|
icons_textfilled = new Icons_default.TextFilled({
|
|
@@ -7306,10 +7310,10 @@ function create_default_slot_53(ctx) {
|
|
|
7306
7310
|
let if_block;
|
|
7307
7311
|
let if_block_anchor;
|
|
7308
7312
|
let current;
|
|
7309
|
-
const if_block_creators = [
|
|
7313
|
+
const if_block_creators = [create_if_block_4, create_else_block_2];
|
|
7310
7314
|
const if_blocks = [];
|
|
7311
7315
|
function select_block_type_3(ctx2, dirty) {
|
|
7312
|
-
if (ctx2[
|
|
7316
|
+
if (ctx2[8] === "text")
|
|
7313
7317
|
return 0;
|
|
7314
7318
|
return 1;
|
|
7315
7319
|
}
|
|
@@ -7368,7 +7372,7 @@ function create_else_block_12(ctx) {
|
|
|
7368
7372
|
let switch_instance;
|
|
7369
7373
|
let switch_instance_anchor;
|
|
7370
7374
|
let current;
|
|
7371
|
-
var switch_value = shapesIcon[ctx[
|
|
7375
|
+
var switch_value = shapesIcon[ctx[10]];
|
|
7372
7376
|
function switch_props(ctx2) {
|
|
7373
7377
|
return { props: { theme: ctx2[1] } };
|
|
7374
7378
|
}
|
|
@@ -7392,7 +7396,7 @@ function create_else_block_12(ctx) {
|
|
|
7392
7396
|
const switch_instance_changes = {};
|
|
7393
7397
|
if (dirty[0] & 2)
|
|
7394
7398
|
switch_instance_changes.theme = ctx2[1];
|
|
7395
|
-
if (switch_value !== (switch_value = shapesIcon[ctx2[
|
|
7399
|
+
if (switch_value !== (switch_value = shapesIcon[ctx2[10]])) {
|
|
7396
7400
|
if (switch_instance) {
|
|
7397
7401
|
group_outros();
|
|
7398
7402
|
const old_component = switch_instance;
|
|
@@ -7433,11 +7437,11 @@ function create_else_block_12(ctx) {
|
|
|
7433
7437
|
}
|
|
7434
7438
|
};
|
|
7435
7439
|
}
|
|
7436
|
-
function
|
|
7440
|
+
function create_if_block_3(ctx) {
|
|
7437
7441
|
let switch_instance;
|
|
7438
7442
|
let switch_instance_anchor;
|
|
7439
7443
|
let current;
|
|
7440
|
-
var switch_value = shapesIconActive[ctx[
|
|
7444
|
+
var switch_value = shapesIconActive[ctx[10]];
|
|
7441
7445
|
function switch_props(ctx2) {
|
|
7442
7446
|
return {
|
|
7443
7447
|
props: { theme: ctx2[1], active: true }
|
|
@@ -7463,7 +7467,7 @@ function create_if_block_2(ctx) {
|
|
|
7463
7467
|
const switch_instance_changes = {};
|
|
7464
7468
|
if (dirty[0] & 2)
|
|
7465
7469
|
switch_instance_changes.theme = ctx2[1];
|
|
7466
|
-
if (switch_value !== (switch_value = shapesIconActive[ctx2[
|
|
7470
|
+
if (switch_value !== (switch_value = shapesIconActive[ctx2[10]])) {
|
|
7467
7471
|
if (switch_instance) {
|
|
7468
7472
|
group_outros();
|
|
7469
7473
|
const old_component = switch_instance;
|
|
@@ -7509,10 +7513,10 @@ function create_default_slot_43(ctx) {
|
|
|
7509
7513
|
let if_block;
|
|
7510
7514
|
let if_block_anchor;
|
|
7511
7515
|
let current;
|
|
7512
|
-
const if_block_creators = [
|
|
7516
|
+
const if_block_creators = [create_if_block_3, create_else_block_12];
|
|
7513
7517
|
const if_blocks = [];
|
|
7514
7518
|
function select_block_type_4(ctx2, dirty) {
|
|
7515
|
-
if (ctx2[
|
|
7519
|
+
if (ctx2[8] === ctx2[10] || ctx2[8] === "shape" && ctx2[7] === ctx2[10])
|
|
7516
7520
|
return 0;
|
|
7517
7521
|
return 1;
|
|
7518
7522
|
}
|
|
@@ -7600,7 +7604,7 @@ function create_else_block6(ctx) {
|
|
|
7600
7604
|
}
|
|
7601
7605
|
};
|
|
7602
7606
|
}
|
|
7603
|
-
function
|
|
7607
|
+
function create_if_block_2(ctx) {
|
|
7604
7608
|
let icons_eraserfilled;
|
|
7605
7609
|
let current;
|
|
7606
7610
|
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
@@ -7640,10 +7644,10 @@ function create_default_slot_34(ctx) {
|
|
|
7640
7644
|
let if_block;
|
|
7641
7645
|
let if_block_anchor;
|
|
7642
7646
|
let current;
|
|
7643
|
-
const if_block_creators = [
|
|
7647
|
+
const if_block_creators = [create_if_block_2, create_else_block6];
|
|
7644
7648
|
const if_blocks = [];
|
|
7645
7649
|
function select_block_type_5(ctx2, dirty) {
|
|
7646
|
-
if (ctx2[
|
|
7650
|
+
if (ctx2[8] === "eraser")
|
|
7647
7651
|
return 0;
|
|
7648
7652
|
return 1;
|
|
7649
7653
|
}
|
|
@@ -7731,6 +7735,60 @@ function create_default_slot_24(ctx) {
|
|
|
7731
7735
|
}
|
|
7732
7736
|
};
|
|
7733
7737
|
}
|
|
7738
|
+
function create_if_block_12(ctx) {
|
|
7739
|
+
let button;
|
|
7740
|
+
let current;
|
|
7741
|
+
const button_spread_levels = [
|
|
7742
|
+
{ class: "apps" },
|
|
7743
|
+
ctx[15],
|
|
7744
|
+
{ content: ctx[9].apps },
|
|
7745
|
+
{ menu: ctx[14] },
|
|
7746
|
+
{ menu_placement: "right-end" }
|
|
7747
|
+
];
|
|
7748
|
+
let button_props = {
|
|
7749
|
+
$$slots: { default: [create_default_slot_14] },
|
|
7750
|
+
$$scope: { ctx }
|
|
7751
|
+
};
|
|
7752
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7753
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
7754
|
+
}
|
|
7755
|
+
button = new Button_default({ props: button_props });
|
|
7756
|
+
return {
|
|
7757
|
+
c() {
|
|
7758
|
+
create_component(button.$$.fragment);
|
|
7759
|
+
},
|
|
7760
|
+
m(target, anchor) {
|
|
7761
|
+
mount_component(button, target, anchor);
|
|
7762
|
+
current = true;
|
|
7763
|
+
},
|
|
7764
|
+
p(ctx2, dirty) {
|
|
7765
|
+
const button_changes = dirty[0] & 49664 ? get_spread_update(button_spread_levels, [
|
|
7766
|
+
button_spread_levels[0],
|
|
7767
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7768
|
+
dirty[0] & 512 && { content: ctx2[9].apps },
|
|
7769
|
+
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
7770
|
+
button_spread_levels[4]
|
|
7771
|
+
]) : {};
|
|
7772
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
7773
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7774
|
+
}
|
|
7775
|
+
button.$set(button_changes);
|
|
7776
|
+
},
|
|
7777
|
+
i(local) {
|
|
7778
|
+
if (current)
|
|
7779
|
+
return;
|
|
7780
|
+
transition_in(button.$$.fragment, local);
|
|
7781
|
+
current = true;
|
|
7782
|
+
},
|
|
7783
|
+
o(local) {
|
|
7784
|
+
transition_out(button.$$.fragment, local);
|
|
7785
|
+
current = false;
|
|
7786
|
+
},
|
|
7787
|
+
d(detaching) {
|
|
7788
|
+
destroy_component(button, detaching);
|
|
7789
|
+
}
|
|
7790
|
+
};
|
|
7791
|
+
}
|
|
7734
7792
|
function create_default_slot_14(ctx) {
|
|
7735
7793
|
let icons_apps;
|
|
7736
7794
|
let current;
|
|
@@ -7777,7 +7835,7 @@ function create_if_block6(ctx) {
|
|
|
7777
7835
|
$$scope: { ctx }
|
|
7778
7836
|
}
|
|
7779
7837
|
});
|
|
7780
|
-
button.$on("click", ctx[
|
|
7838
|
+
button.$on("click", ctx[23]);
|
|
7781
7839
|
return {
|
|
7782
7840
|
c() {
|
|
7783
7841
|
create_component(button.$$.fragment);
|
|
@@ -7792,7 +7850,7 @@ function create_if_block6(ctx) {
|
|
|
7792
7850
|
button_changes.theme = ctx2[1];
|
|
7793
7851
|
if (dirty[0] & 8)
|
|
7794
7852
|
button_changes.disabled = ctx2[3];
|
|
7795
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7853
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
7796
7854
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7797
7855
|
}
|
|
7798
7856
|
button.$set(button_changes);
|
|
@@ -7854,7 +7912,7 @@ function create_each_block4(ctx) {
|
|
|
7854
7912
|
let img_title_value;
|
|
7855
7913
|
let t0;
|
|
7856
7914
|
let span;
|
|
7857
|
-
let t1_value = ctx[
|
|
7915
|
+
let t1_value = ctx[43] + "";
|
|
7858
7916
|
let t1;
|
|
7859
7917
|
let span_class_value;
|
|
7860
7918
|
let t2;
|
|
@@ -7873,17 +7931,17 @@ function create_each_block4(ctx) {
|
|
|
7873
7931
|
t1 = text(t1_value);
|
|
7874
7932
|
t2 = space();
|
|
7875
7933
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
|
|
7876
|
-
if (!src_url_equal(img.src, img_src_value = ctx[
|
|
7934
|
+
if (!src_url_equal(img.src, img_src_value = ctx[42]))
|
|
7877
7935
|
attr(img, "src", img_src_value);
|
|
7878
|
-
attr(img, "alt", img_alt_value = ctx[
|
|
7879
|
-
attr(img, "title", img_title_value = ctx[
|
|
7936
|
+
attr(img, "alt", img_alt_value = ctx[44]);
|
|
7937
|
+
attr(img, "title", img_title_value = ctx[43]);
|
|
7880
7938
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
|
|
7881
|
-
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[
|
|
7882
|
-
attr(button, "title", button_title_value = ctx[
|
|
7883
|
-
attr(button, "data-app-kind", button_data_app_kind_value = ctx[
|
|
7884
|
-
button.disabled = button_disabled_value = ctx[
|
|
7885
|
-
toggle_class(button, "is-loading", ctx[
|
|
7886
|
-
toggle_class(button, "is-failed", ctx[
|
|
7939
|
+
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1]);
|
|
7940
|
+
attr(button, "title", button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""));
|
|
7941
|
+
attr(button, "data-app-kind", button_data_app_kind_value = ctx[41].kind);
|
|
7942
|
+
button.disabled = button_disabled_value = ctx[46] && ctx[46].status !== "idle";
|
|
7943
|
+
toggle_class(button, "is-loading", ctx[46] && ctx[46].status === "loading");
|
|
7944
|
+
toggle_class(button, "is-failed", ctx[46] && ctx[46].status === "failed");
|
|
7887
7945
|
},
|
|
7888
7946
|
m(target, anchor) {
|
|
7889
7947
|
insert(target, button, anchor);
|
|
@@ -7894,8 +7952,8 @@ function create_each_block4(ctx) {
|
|
|
7894
7952
|
append(button, t2);
|
|
7895
7953
|
if (!mounted) {
|
|
7896
7954
|
dispose = listen(button, "click", function() {
|
|
7897
|
-
if (is_function(ctx[0] && ctx[
|
|
7898
|
-
(ctx[0] && ctx[
|
|
7955
|
+
if (is_function(ctx[0] && ctx[45].bind(null, ctx[0])))
|
|
7956
|
+
(ctx[0] && ctx[45].bind(null, ctx[0])).apply(this, arguments);
|
|
7899
7957
|
});
|
|
7900
7958
|
mounted = true;
|
|
7901
7959
|
}
|
|
@@ -7905,37 +7963,37 @@ function create_each_block4(ctx) {
|
|
|
7905
7963
|
if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
|
|
7906
7964
|
attr(img, "class", img_class_value);
|
|
7907
7965
|
}
|
|
7908
|
-
if (dirty[0] &
|
|
7966
|
+
if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[42])) {
|
|
7909
7967
|
attr(img, "src", img_src_value);
|
|
7910
7968
|
}
|
|
7911
|
-
if (dirty[0] &
|
|
7969
|
+
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[44])) {
|
|
7912
7970
|
attr(img, "alt", img_alt_value);
|
|
7913
7971
|
}
|
|
7914
|
-
if (dirty[0] &
|
|
7972
|
+
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[43])) {
|
|
7915
7973
|
attr(img, "title", img_title_value);
|
|
7916
7974
|
}
|
|
7917
|
-
if (dirty[0] &
|
|
7975
|
+
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[43] + ""))
|
|
7918
7976
|
set_data(t1, t1_value);
|
|
7919
7977
|
if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
|
|
7920
7978
|
attr(span, "class", span_class_value);
|
|
7921
7979
|
}
|
|
7922
|
-
if (dirty[0] &
|
|
7980
|
+
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[44] + " " + ctx[1])) {
|
|
7923
7981
|
attr(button, "class", button_class_value);
|
|
7924
7982
|
}
|
|
7925
|
-
if (dirty[0] &
|
|
7983
|
+
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[43] + (ctx[46] && ctx[46].reason ? ": " + ctx[46].reason : ""))) {
|
|
7926
7984
|
attr(button, "title", button_title_value);
|
|
7927
7985
|
}
|
|
7928
|
-
if (dirty[0] &
|
|
7986
|
+
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[41].kind)) {
|
|
7929
7987
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
7930
7988
|
}
|
|
7931
|
-
if (dirty[0] &
|
|
7989
|
+
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[46] && ctx[46].status !== "idle")) {
|
|
7932
7990
|
button.disabled = button_disabled_value;
|
|
7933
7991
|
}
|
|
7934
|
-
if (dirty[0] &
|
|
7935
|
-
toggle_class(button, "is-loading", ctx[
|
|
7992
|
+
if (dirty[0] & 1572866) {
|
|
7993
|
+
toggle_class(button, "is-loading", ctx[46] && ctx[46].status === "loading");
|
|
7936
7994
|
}
|
|
7937
|
-
if (dirty[0] &
|
|
7938
|
-
toggle_class(button, "is-failed", ctx[
|
|
7995
|
+
if (dirty[0] & 1572866) {
|
|
7996
|
+
toggle_class(button, "is-failed", ctx[46] && ctx[46].status === "failed");
|
|
7939
7997
|
}
|
|
7940
7998
|
},
|
|
7941
7999
|
d(detaching) {
|
|
@@ -7963,7 +8021,6 @@ function create_fragment55(ctx) {
|
|
|
7963
8021
|
let t6;
|
|
7964
8022
|
let button6;
|
|
7965
8023
|
let t7;
|
|
7966
|
-
let button7;
|
|
7967
8024
|
let div0_class_value;
|
|
7968
8025
|
let scrollHeight_action;
|
|
7969
8026
|
let scrollTop_action;
|
|
@@ -8003,11 +8060,11 @@ function create_fragment55(ctx) {
|
|
|
8003
8060
|
let current;
|
|
8004
8061
|
let mounted;
|
|
8005
8062
|
let dispose;
|
|
8006
|
-
let if_block0 = ctx[5] &&
|
|
8063
|
+
let if_block0 = ctx[5] && create_if_block_8(ctx);
|
|
8007
8064
|
const button0_spread_levels = [
|
|
8008
8065
|
{ class: "clicker" },
|
|
8009
|
-
ctx[
|
|
8010
|
-
{ content: ctx[
|
|
8066
|
+
ctx[15],
|
|
8067
|
+
{ content: ctx[18].clicker }
|
|
8011
8068
|
];
|
|
8012
8069
|
let button0_props = {
|
|
8013
8070
|
$$slots: { default: [create_default_slot_8] },
|
|
@@ -8017,11 +8074,11 @@ function create_fragment55(ctx) {
|
|
|
8017
8074
|
button0_props = assign(button0_props, button0_spread_levels[i]);
|
|
8018
8075
|
}
|
|
8019
8076
|
button0 = new Button_default({ props: button0_props });
|
|
8020
|
-
button0.$on("click", ctx[
|
|
8077
|
+
button0.$on("click", ctx[24]);
|
|
8021
8078
|
const button1_spread_levels = [
|
|
8022
8079
|
{ class: "selector" },
|
|
8023
|
-
ctx[
|
|
8024
|
-
{ content: ctx[
|
|
8080
|
+
ctx[15],
|
|
8081
|
+
{ content: ctx[18].selector }
|
|
8025
8082
|
];
|
|
8026
8083
|
let button1_props = {
|
|
8027
8084
|
$$slots: { default: [create_default_slot_7] },
|
|
@@ -8031,12 +8088,12 @@ function create_fragment55(ctx) {
|
|
|
8031
8088
|
button1_props = assign(button1_props, button1_spread_levels[i]);
|
|
8032
8089
|
}
|
|
8033
8090
|
button1 = new Button_default({ props: button1_props });
|
|
8034
|
-
button1.$on("click", ctx[
|
|
8091
|
+
button1.$on("click", ctx[25]);
|
|
8035
8092
|
const button2_spread_levels = [
|
|
8036
8093
|
{ class: "pencil" },
|
|
8037
|
-
ctx[
|
|
8038
|
-
{ content: ctx[
|
|
8039
|
-
{ menu: ctx[
|
|
8094
|
+
ctx[15],
|
|
8095
|
+
{ content: ctx[18].pencil },
|
|
8096
|
+
{ menu: ctx[11] }
|
|
8040
8097
|
];
|
|
8041
8098
|
let button2_props = {
|
|
8042
8099
|
$$slots: { default: [create_default_slot_6] },
|
|
@@ -8046,12 +8103,12 @@ function create_fragment55(ctx) {
|
|
|
8046
8103
|
button2_props = assign(button2_props, button2_spread_levels[i]);
|
|
8047
8104
|
}
|
|
8048
8105
|
button2 = new Button_default({ props: button2_props });
|
|
8049
|
-
button2.$on("click", ctx[
|
|
8106
|
+
button2.$on("click", ctx[26]);
|
|
8050
8107
|
const button3_spread_levels = [
|
|
8051
8108
|
{ class: "text" },
|
|
8052
|
-
ctx[
|
|
8053
|
-
{ content: ctx[
|
|
8054
|
-
{ menu: ctx[
|
|
8109
|
+
ctx[15],
|
|
8110
|
+
{ content: ctx[18].text },
|
|
8111
|
+
{ menu: ctx[12] }
|
|
8055
8112
|
];
|
|
8056
8113
|
let button3_props = {
|
|
8057
8114
|
$$slots: { default: [create_default_slot_53] },
|
|
@@ -8061,12 +8118,12 @@ function create_fragment55(ctx) {
|
|
|
8061
8118
|
button3_props = assign(button3_props, button3_spread_levels[i]);
|
|
8062
8119
|
}
|
|
8063
8120
|
button3 = new Button_default({ props: button3_props });
|
|
8064
|
-
button3.$on("click", ctx[
|
|
8121
|
+
button3.$on("click", ctx[27]);
|
|
8065
8122
|
const button4_spread_levels = [
|
|
8066
8123
|
{ class: "shapes" },
|
|
8067
|
-
ctx[
|
|
8068
|
-
{ content: ctx[
|
|
8069
|
-
{ menu: ctx[
|
|
8124
|
+
ctx[15],
|
|
8125
|
+
{ content: ctx[9].shapes },
|
|
8126
|
+
{ menu: ctx[13] }
|
|
8070
8127
|
];
|
|
8071
8128
|
let button4_props = {
|
|
8072
8129
|
$$slots: { default: [create_default_slot_43] },
|
|
@@ -8076,8 +8133,8 @@ function create_fragment55(ctx) {
|
|
|
8076
8133
|
button4_props = assign(button4_props, button4_spread_levels[i]);
|
|
8077
8134
|
}
|
|
8078
8135
|
button4 = new Button_default({ props: button4_props });
|
|
8079
|
-
button4.$on("click", ctx[
|
|
8080
|
-
const button5_spread_levels = [{ class: "eraser" }, ctx[
|
|
8136
|
+
button4.$on("click", ctx[28]);
|
|
8137
|
+
const button5_spread_levels = [{ class: "eraser" }, ctx[15], { content: ctx[18].eraser }];
|
|
8081
8138
|
let button5_props = {
|
|
8082
8139
|
$$slots: { default: [create_default_slot_34] },
|
|
8083
8140
|
$$scope: { ctx }
|
|
@@ -8086,8 +8143,8 @@ function create_fragment55(ctx) {
|
|
|
8086
8143
|
button5_props = assign(button5_props, button5_spread_levels[i]);
|
|
8087
8144
|
}
|
|
8088
8145
|
button5 = new Button_default({ props: button5_props });
|
|
8089
|
-
button5.$on("click", ctx[
|
|
8090
|
-
const button6_spread_levels = [{ class: "clear" }, ctx[
|
|
8146
|
+
button5.$on("click", ctx[29]);
|
|
8147
|
+
const button6_spread_levels = [{ class: "clear" }, ctx[15], { content: ctx[9].clear }];
|
|
8091
8148
|
let button6_props = {
|
|
8092
8149
|
$$slots: { default: [create_default_slot_24] },
|
|
8093
8150
|
$$scope: { ctx }
|
|
@@ -8096,23 +8153,9 @@ function create_fragment55(ctx) {
|
|
|
8096
8153
|
button6_props = assign(button6_props, button6_spread_levels[i]);
|
|
8097
8154
|
}
|
|
8098
8155
|
button6 = new Button_default({ props: button6_props });
|
|
8099
|
-
button6.$on("click", ctx[
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
ctx[14],
|
|
8103
|
-
{ content: ctx[8].apps },
|
|
8104
|
-
{ menu: ctx[13] },
|
|
8105
|
-
{ menu_placement: "right-end" }
|
|
8106
|
-
];
|
|
8107
|
-
let button7_props = {
|
|
8108
|
-
$$slots: { default: [create_default_slot_14] },
|
|
8109
|
-
$$scope: { ctx }
|
|
8110
|
-
};
|
|
8111
|
-
for (let i = 0; i < button7_spread_levels.length; i += 1) {
|
|
8112
|
-
button7_props = assign(button7_props, button7_spread_levels[i]);
|
|
8113
|
-
}
|
|
8114
|
-
button7 = new Button_default({ props: button7_props });
|
|
8115
|
-
let if_block1 = ctx[5] && create_if_block6(ctx);
|
|
8156
|
+
button6.$on("click", ctx[30]);
|
|
8157
|
+
let if_block1 = !ctx[6] && create_if_block_12(ctx);
|
|
8158
|
+
let if_block2 = ctx[5] && create_if_block6(ctx);
|
|
8116
8159
|
strokewidth0 = new StrokeWidth_default({
|
|
8117
8160
|
props: {
|
|
8118
8161
|
app: ctx[0],
|
|
@@ -8156,7 +8199,7 @@ function create_fragment55(ctx) {
|
|
|
8156
8199
|
disabled: ctx[3]
|
|
8157
8200
|
}
|
|
8158
8201
|
});
|
|
8159
|
-
let each_value = ctx[
|
|
8202
|
+
let each_value = ctx[19];
|
|
8160
8203
|
let each_blocks = [];
|
|
8161
8204
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
8162
8205
|
each_blocks[i] = create_each_block4(get_each_context4(ctx, each_value, i));
|
|
@@ -8181,10 +8224,11 @@ function create_fragment55(ctx) {
|
|
|
8181
8224
|
t6 = space();
|
|
8182
8225
|
create_component(button6.$$.fragment);
|
|
8183
8226
|
t7 = space();
|
|
8184
|
-
create_component(button7.$$.fragment);
|
|
8185
|
-
t8 = space();
|
|
8186
8227
|
if (if_block1)
|
|
8187
8228
|
if_block1.c();
|
|
8229
|
+
t8 = space();
|
|
8230
|
+
if (if_block2)
|
|
8231
|
+
if_block2.c();
|
|
8188
8232
|
t9 = space();
|
|
8189
8233
|
div8 = element("div");
|
|
8190
8234
|
div2 = element("div");
|
|
@@ -8221,7 +8265,7 @@ function create_fragment55(ctx) {
|
|
|
8221
8265
|
attr(div5, "class", div5_class_value = name5 + "-panel-divider");
|
|
8222
8266
|
attr(div6, "class", div6_class_value = name5 + "-panel shapes");
|
|
8223
8267
|
attr(div7, "class", div7_class_value = name5 + "-panel apps");
|
|
8224
|
-
set_style(div7, "--n", ctx[
|
|
8268
|
+
set_style(div7, "--n", ctx[19].length);
|
|
8225
8269
|
attr(div8, "class", div8_class_value = name5 + "-panel-wrapper");
|
|
8226
8270
|
set_style(div8, "display", "none");
|
|
8227
8271
|
},
|
|
@@ -8244,10 +8288,11 @@ function create_fragment55(ctx) {
|
|
|
8244
8288
|
append(div0, t6);
|
|
8245
8289
|
mount_component(button6, div0, null);
|
|
8246
8290
|
append(div0, t7);
|
|
8247
|
-
mount_component(button7, div0, null);
|
|
8248
|
-
insert(target, t8, anchor);
|
|
8249
8291
|
if (if_block1)
|
|
8250
|
-
if_block1.m(
|
|
8292
|
+
if_block1.m(div0, null);
|
|
8293
|
+
insert(target, t8, anchor);
|
|
8294
|
+
if (if_block2)
|
|
8295
|
+
if_block2.m(target, anchor);
|
|
8251
8296
|
insert(target, t9, anchor);
|
|
8252
8297
|
insert(target, div8, anchor);
|
|
8253
8298
|
append(div8, div2);
|
|
@@ -8256,11 +8301,11 @@ function create_fragment55(ctx) {
|
|
|
8256
8301
|
append(div2, div1);
|
|
8257
8302
|
append(div2, t11);
|
|
8258
8303
|
mount_component(strokecolor0, div2, null);
|
|
8259
|
-
ctx[
|
|
8304
|
+
ctx[35](div2);
|
|
8260
8305
|
append(div8, t12);
|
|
8261
8306
|
append(div8, div3);
|
|
8262
8307
|
mount_component(textcolor, div3, null);
|
|
8263
|
-
ctx[
|
|
8308
|
+
ctx[36](div3);
|
|
8264
8309
|
append(div8, t13);
|
|
8265
8310
|
append(div8, div6);
|
|
8266
8311
|
mount_component(shapes2, div6, null);
|
|
@@ -8272,18 +8317,18 @@ function create_fragment55(ctx) {
|
|
|
8272
8317
|
append(div6, div5);
|
|
8273
8318
|
append(div6, t17);
|
|
8274
8319
|
mount_component(strokecolor1, div6, null);
|
|
8275
|
-
ctx[
|
|
8320
|
+
ctx[37](div6);
|
|
8276
8321
|
append(div8, t18);
|
|
8277
8322
|
append(div8, div7);
|
|
8278
8323
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
8279
8324
|
each_blocks[i].m(div7, null);
|
|
8280
8325
|
}
|
|
8281
|
-
ctx[
|
|
8326
|
+
ctx[38](div7);
|
|
8282
8327
|
current = true;
|
|
8283
8328
|
if (!mounted) {
|
|
8284
8329
|
dispose = [
|
|
8285
8330
|
action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
|
|
8286
|
-
action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[
|
|
8331
|
+
action_destroyer(scrollTop_action = scrollTop.call(null, div0, ctx[21]))
|
|
8287
8332
|
];
|
|
8288
8333
|
mounted = true;
|
|
8289
8334
|
}
|
|
@@ -8296,7 +8341,7 @@ function create_fragment55(ctx) {
|
|
|
8296
8341
|
transition_in(if_block0, 1);
|
|
8297
8342
|
}
|
|
8298
8343
|
} else {
|
|
8299
|
-
if_block0 =
|
|
8344
|
+
if_block0 = create_if_block_8(ctx2);
|
|
8300
8345
|
if_block0.c();
|
|
8301
8346
|
transition_in(if_block0, 1);
|
|
8302
8347
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -8308,99 +8353,83 @@ function create_fragment55(ctx) {
|
|
|
8308
8353
|
});
|
|
8309
8354
|
check_outros();
|
|
8310
8355
|
}
|
|
8311
|
-
const button0_changes = dirty[0] &
|
|
8356
|
+
const button0_changes = dirty[0] & 294912 ? get_spread_update(button0_spread_levels, [
|
|
8312
8357
|
button0_spread_levels[0],
|
|
8313
|
-
dirty[0] &
|
|
8314
|
-
dirty[0] &
|
|
8358
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8359
|
+
dirty[0] & 262144 && { content: ctx2[18].clicker }
|
|
8315
8360
|
]) : {};
|
|
8316
|
-
if (dirty[0] &
|
|
8361
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8317
8362
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8318
8363
|
}
|
|
8319
8364
|
button0.$set(button0_changes);
|
|
8320
|
-
const button1_changes = dirty[0] &
|
|
8365
|
+
const button1_changes = dirty[0] & 294912 ? get_spread_update(button1_spread_levels, [
|
|
8321
8366
|
button1_spread_levels[0],
|
|
8322
|
-
dirty[0] &
|
|
8323
|
-
dirty[0] &
|
|
8367
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8368
|
+
dirty[0] & 262144 && { content: ctx2[18].selector }
|
|
8324
8369
|
]) : {};
|
|
8325
|
-
if (dirty[0] &
|
|
8370
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8326
8371
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8327
8372
|
}
|
|
8328
8373
|
button1.$set(button1_changes);
|
|
8329
|
-
const button2_changes = dirty[0] &
|
|
8374
|
+
const button2_changes = dirty[0] & 296960 ? get_spread_update(button2_spread_levels, [
|
|
8330
8375
|
button2_spread_levels[0],
|
|
8331
|
-
dirty[0] &
|
|
8332
|
-
dirty[0] &
|
|
8333
|
-
dirty[0] &
|
|
8376
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8377
|
+
dirty[0] & 262144 && { content: ctx2[18].pencil },
|
|
8378
|
+
dirty[0] & 2048 && { menu: ctx2[11] }
|
|
8334
8379
|
]) : {};
|
|
8335
|
-
if (dirty[0] &
|
|
8380
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8336
8381
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8337
8382
|
}
|
|
8338
8383
|
button2.$set(button2_changes);
|
|
8339
|
-
const button3_changes = dirty[0] &
|
|
8384
|
+
const button3_changes = dirty[0] & 299008 ? get_spread_update(button3_spread_levels, [
|
|
8340
8385
|
button3_spread_levels[0],
|
|
8341
|
-
dirty[0] &
|
|
8342
|
-
dirty[0] &
|
|
8343
|
-
dirty[0] &
|
|
8386
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8387
|
+
dirty[0] & 262144 && { content: ctx2[18].text },
|
|
8388
|
+
dirty[0] & 4096 && { menu: ctx2[12] }
|
|
8344
8389
|
]) : {};
|
|
8345
|
-
if (dirty[0] &
|
|
8390
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8346
8391
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8347
8392
|
}
|
|
8348
8393
|
button3.$set(button3_changes);
|
|
8349
|
-
const button4_changes = dirty[0] &
|
|
8394
|
+
const button4_changes = dirty[0] & 41472 ? get_spread_update(button4_spread_levels, [
|
|
8350
8395
|
button4_spread_levels[0],
|
|
8351
|
-
dirty[0] &
|
|
8352
|
-
dirty[0] &
|
|
8353
|
-
dirty[0] &
|
|
8396
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8397
|
+
dirty[0] & 512 && { content: ctx2[9].shapes },
|
|
8398
|
+
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
8354
8399
|
]) : {};
|
|
8355
|
-
if (dirty[0] &
|
|
8400
|
+
if (dirty[0] & 1410 | dirty[1] & 262144) {
|
|
8356
8401
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8357
8402
|
}
|
|
8358
8403
|
button4.$set(button4_changes);
|
|
8359
|
-
const button5_changes = dirty[0] &
|
|
8404
|
+
const button5_changes = dirty[0] & 294912 ? get_spread_update(button5_spread_levels, [
|
|
8360
8405
|
button5_spread_levels[0],
|
|
8361
|
-
dirty[0] &
|
|
8362
|
-
dirty[0] &
|
|
8406
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8407
|
+
dirty[0] & 262144 && { content: ctx2[18].eraser }
|
|
8363
8408
|
]) : {};
|
|
8364
|
-
if (dirty[0] &
|
|
8409
|
+
if (dirty[0] & 258 | dirty[1] & 262144) {
|
|
8365
8410
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8366
8411
|
}
|
|
8367
8412
|
button5.$set(button5_changes);
|
|
8368
|
-
const button6_changes = dirty[0] &
|
|
8413
|
+
const button6_changes = dirty[0] & 33280 ? get_spread_update(button6_spread_levels, [
|
|
8369
8414
|
button6_spread_levels[0],
|
|
8370
|
-
dirty[0] &
|
|
8371
|
-
dirty[0] &
|
|
8415
|
+
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8416
|
+
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
8372
8417
|
]) : {};
|
|
8373
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
8418
|
+
if (dirty[0] & 2 | dirty[1] & 262144) {
|
|
8374
8419
|
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8375
8420
|
}
|
|
8376
8421
|
button6.$set(button6_changes);
|
|
8377
|
-
|
|
8378
|
-
button7_spread_levels[0],
|
|
8379
|
-
dirty[0] & 16384 && get_spread_object(ctx2[14]),
|
|
8380
|
-
dirty[0] & 256 && { content: ctx2[8].apps },
|
|
8381
|
-
dirty[0] & 8192 && { menu: ctx2[13] },
|
|
8382
|
-
button7_spread_levels[4]
|
|
8383
|
-
]) : {};
|
|
8384
|
-
if (dirty[0] & 2 | dirty[1] & 131072) {
|
|
8385
|
-
button7_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8386
|
-
}
|
|
8387
|
-
button7.$set(button7_changes);
|
|
8388
|
-
if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
|
|
8389
|
-
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8390
|
-
if (dirty[0] & 32) {
|
|
8391
|
-
toggle_class(div0, "scrollable", ctx2[5]);
|
|
8392
|
-
}
|
|
8393
|
-
if (ctx2[5]) {
|
|
8422
|
+
if (!ctx2[6]) {
|
|
8394
8423
|
if (if_block1) {
|
|
8395
8424
|
if_block1.p(ctx2, dirty);
|
|
8396
|
-
if (dirty[0] &
|
|
8425
|
+
if (dirty[0] & 64) {
|
|
8397
8426
|
transition_in(if_block1, 1);
|
|
8398
8427
|
}
|
|
8399
8428
|
} else {
|
|
8400
|
-
if_block1 =
|
|
8429
|
+
if_block1 = create_if_block_12(ctx2);
|
|
8401
8430
|
if_block1.c();
|
|
8402
8431
|
transition_in(if_block1, 1);
|
|
8403
|
-
if_block1.m(
|
|
8432
|
+
if_block1.m(div0, null);
|
|
8404
8433
|
}
|
|
8405
8434
|
} else if (if_block1) {
|
|
8406
8435
|
group_outros();
|
|
@@ -8409,6 +8438,30 @@ function create_fragment55(ctx) {
|
|
|
8409
8438
|
});
|
|
8410
8439
|
check_outros();
|
|
8411
8440
|
}
|
|
8441
|
+
if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
|
|
8442
|
+
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8443
|
+
if (dirty[0] & 32) {
|
|
8444
|
+
toggle_class(div0, "scrollable", ctx2[5]);
|
|
8445
|
+
}
|
|
8446
|
+
if (ctx2[5]) {
|
|
8447
|
+
if (if_block2) {
|
|
8448
|
+
if_block2.p(ctx2, dirty);
|
|
8449
|
+
if (dirty[0] & 32) {
|
|
8450
|
+
transition_in(if_block2, 1);
|
|
8451
|
+
}
|
|
8452
|
+
} else {
|
|
8453
|
+
if_block2 = create_if_block6(ctx2);
|
|
8454
|
+
if_block2.c();
|
|
8455
|
+
transition_in(if_block2, 1);
|
|
8456
|
+
if_block2.m(t9.parentNode, t9);
|
|
8457
|
+
}
|
|
8458
|
+
} else if (if_block2) {
|
|
8459
|
+
group_outros();
|
|
8460
|
+
transition_out(if_block2, 1, 1, () => {
|
|
8461
|
+
if_block2 = null;
|
|
8462
|
+
});
|
|
8463
|
+
check_outros();
|
|
8464
|
+
}
|
|
8412
8465
|
const strokewidth0_changes = {};
|
|
8413
8466
|
if (dirty[0] & 1)
|
|
8414
8467
|
strokewidth0_changes.app = ctx2[0];
|
|
@@ -8459,8 +8512,8 @@ function create_fragment55(ctx) {
|
|
|
8459
8512
|
if (dirty[0] & 8)
|
|
8460
8513
|
strokecolor1_changes.disabled = ctx2[3];
|
|
8461
8514
|
strokecolor1.$set(strokecolor1_changes);
|
|
8462
|
-
if (dirty[0] &
|
|
8463
|
-
each_value = ctx2[
|
|
8515
|
+
if (dirty[0] & 1572867) {
|
|
8516
|
+
each_value = ctx2[19];
|
|
8464
8517
|
let i;
|
|
8465
8518
|
for (i = 0; i < each_value.length; i += 1) {
|
|
8466
8519
|
const child_ctx = get_each_context4(ctx2, each_value, i);
|
|
@@ -8477,8 +8530,8 @@ function create_fragment55(ctx) {
|
|
|
8477
8530
|
}
|
|
8478
8531
|
each_blocks.length = each_value.length;
|
|
8479
8532
|
}
|
|
8480
|
-
if (!current || dirty[0] &
|
|
8481
|
-
set_style(div7, "--n", ctx2[
|
|
8533
|
+
if (!current || dirty[0] & 524288) {
|
|
8534
|
+
set_style(div7, "--n", ctx2[19].length);
|
|
8482
8535
|
}
|
|
8483
8536
|
},
|
|
8484
8537
|
i(local) {
|
|
@@ -8492,8 +8545,8 @@ function create_fragment55(ctx) {
|
|
|
8492
8545
|
transition_in(button4.$$.fragment, local);
|
|
8493
8546
|
transition_in(button5.$$.fragment, local);
|
|
8494
8547
|
transition_in(button6.$$.fragment, local);
|
|
8495
|
-
transition_in(button7.$$.fragment, local);
|
|
8496
8548
|
transition_in(if_block1);
|
|
8549
|
+
transition_in(if_block2);
|
|
8497
8550
|
transition_in(strokewidth0.$$.fragment, local);
|
|
8498
8551
|
transition_in(strokecolor0.$$.fragment, local);
|
|
8499
8552
|
transition_in(textcolor.$$.fragment, local);
|
|
@@ -8511,8 +8564,8 @@ function create_fragment55(ctx) {
|
|
|
8511
8564
|
transition_out(button4.$$.fragment, local);
|
|
8512
8565
|
transition_out(button5.$$.fragment, local);
|
|
8513
8566
|
transition_out(button6.$$.fragment, local);
|
|
8514
|
-
transition_out(button7.$$.fragment, local);
|
|
8515
8567
|
transition_out(if_block1);
|
|
8568
|
+
transition_out(if_block2);
|
|
8516
8569
|
transition_out(strokewidth0.$$.fragment, local);
|
|
8517
8570
|
transition_out(strokecolor0.$$.fragment, local);
|
|
8518
8571
|
transition_out(textcolor.$$.fragment, local);
|
|
@@ -8535,26 +8588,27 @@ function create_fragment55(ctx) {
|
|
|
8535
8588
|
destroy_component(button4);
|
|
8536
8589
|
destroy_component(button5);
|
|
8537
8590
|
destroy_component(button6);
|
|
8538
|
-
|
|
8591
|
+
if (if_block1)
|
|
8592
|
+
if_block1.d();
|
|
8539
8593
|
if (detaching)
|
|
8540
8594
|
detach(t8);
|
|
8541
|
-
if (
|
|
8542
|
-
|
|
8595
|
+
if (if_block2)
|
|
8596
|
+
if_block2.d(detaching);
|
|
8543
8597
|
if (detaching)
|
|
8544
8598
|
detach(t9);
|
|
8545
8599
|
if (detaching)
|
|
8546
8600
|
detach(div8);
|
|
8547
8601
|
destroy_component(strokewidth0);
|
|
8548
8602
|
destroy_component(strokecolor0);
|
|
8549
|
-
ctx[34](null);
|
|
8550
|
-
destroy_component(textcolor);
|
|
8551
8603
|
ctx[35](null);
|
|
8604
|
+
destroy_component(textcolor);
|
|
8605
|
+
ctx[36](null);
|
|
8552
8606
|
destroy_component(shapes2);
|
|
8553
8607
|
destroy_component(strokewidth1);
|
|
8554
8608
|
destroy_component(strokecolor1);
|
|
8555
|
-
ctx[36](null);
|
|
8556
|
-
destroy_each(each_blocks, detaching);
|
|
8557
8609
|
ctx[37](null);
|
|
8610
|
+
destroy_each(each_blocks, detaching);
|
|
8611
|
+
ctx[38](null);
|
|
8558
8612
|
mounted = false;
|
|
8559
8613
|
run_all(dispose);
|
|
8560
8614
|
}
|
|
@@ -8571,11 +8625,11 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8571
8625
|
let status;
|
|
8572
8626
|
let max_scroll;
|
|
8573
8627
|
let $top;
|
|
8574
|
-
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(
|
|
8575
|
-
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(
|
|
8628
|
+
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(33, $scroll_height = $$value)), scroll_height);
|
|
8629
|
+
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(34, $memberState = $$value)), memberState);
|
|
8576
8630
|
let $apps;
|
|
8577
|
-
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(
|
|
8578
|
-
component_subscribe($$self, apps, ($$value) => $$invalidate(
|
|
8631
|
+
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(20, $status = $$value)), status);
|
|
8632
|
+
component_subscribe($$self, apps, ($$value) => $$invalidate(19, $apps = $$value));
|
|
8579
8633
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
8580
8634
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
8581
8635
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -8587,6 +8641,7 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8587
8641
|
$$subscribe_scroll_height();
|
|
8588
8642
|
let { computed_height = 0 } = $$props;
|
|
8589
8643
|
let { scrollable = false } = $$props;
|
|
8644
|
+
let { hide_apps = false } = $$props;
|
|
8590
8645
|
let last_shape = "rectangle";
|
|
8591
8646
|
let pencil_panel;
|
|
8592
8647
|
let text_panel;
|
|
@@ -8594,7 +8649,7 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8594
8649
|
let apps_panel;
|
|
8595
8650
|
let btn_props;
|
|
8596
8651
|
let top = writable(0);
|
|
8597
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
8652
|
+
component_subscribe($$self, top, (value) => $$invalidate(40, $top = value));
|
|
8598
8653
|
function scroll_up() {
|
|
8599
8654
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
8600
8655
|
}
|
|
@@ -8629,25 +8684,25 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8629
8684
|
function div2_binding($$value) {
|
|
8630
8685
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8631
8686
|
pencil_panel = $$value;
|
|
8632
|
-
$$invalidate(
|
|
8687
|
+
$$invalidate(11, pencil_panel);
|
|
8633
8688
|
});
|
|
8634
8689
|
}
|
|
8635
8690
|
function div3_binding($$value) {
|
|
8636
8691
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8637
8692
|
text_panel = $$value;
|
|
8638
|
-
$$invalidate(
|
|
8693
|
+
$$invalidate(12, text_panel);
|
|
8639
8694
|
});
|
|
8640
8695
|
}
|
|
8641
8696
|
function div6_binding($$value) {
|
|
8642
8697
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8643
8698
|
shapes_panel = $$value;
|
|
8644
|
-
$$invalidate(
|
|
8699
|
+
$$invalidate(13, shapes_panel);
|
|
8645
8700
|
});
|
|
8646
8701
|
}
|
|
8647
8702
|
function div7_binding($$value) {
|
|
8648
8703
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
8649
8704
|
apps_panel = $$value;
|
|
8650
|
-
$$invalidate(
|
|
8705
|
+
$$invalidate(14, apps_panel);
|
|
8651
8706
|
});
|
|
8652
8707
|
}
|
|
8653
8708
|
$$self.$$set = ($$props2) => {
|
|
@@ -8662,14 +8717,16 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8662
8717
|
if ("scroll_height" in $$props2)
|
|
8663
8718
|
$$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
|
|
8664
8719
|
if ("computed_height" in $$props2)
|
|
8665
|
-
$$invalidate(
|
|
8720
|
+
$$invalidate(31, computed_height = $$props2.computed_height);
|
|
8666
8721
|
if ("scrollable" in $$props2)
|
|
8667
8722
|
$$invalidate(5, scrollable = $$props2.scrollable);
|
|
8723
|
+
if ("hide_apps" in $$props2)
|
|
8724
|
+
$$invalidate(6, hide_apps = $$props2.hide_apps);
|
|
8668
8725
|
};
|
|
8669
8726
|
$$self.$$.update = () => {
|
|
8670
8727
|
if ($$self.$$.dirty[0] & 10) {
|
|
8671
8728
|
$:
|
|
8672
|
-
$$invalidate(
|
|
8729
|
+
$$invalidate(15, btn_props = {
|
|
8673
8730
|
name: name5,
|
|
8674
8731
|
theme,
|
|
8675
8732
|
disabled,
|
|
@@ -8678,15 +8735,15 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8678
8735
|
}
|
|
8679
8736
|
if ($$self.$$.dirty[0] & 4) {
|
|
8680
8737
|
$:
|
|
8681
|
-
$$invalidate(
|
|
8738
|
+
$$invalidate(9, t = i18n4[language]);
|
|
8682
8739
|
}
|
|
8683
8740
|
if ($$self.$$.dirty[0] & 1) {
|
|
8684
8741
|
$:
|
|
8685
|
-
$$invalidate(
|
|
8742
|
+
$$invalidate(32, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
8686
8743
|
}
|
|
8687
|
-
if ($$self.$$.dirty[0] &
|
|
8744
|
+
if ($$self.$$.dirty[0] & 512 | $$self.$$.dirty[1] & 2) {
|
|
8688
8745
|
$:
|
|
8689
|
-
$$invalidate(
|
|
8746
|
+
$$invalidate(18, c = {
|
|
8690
8747
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
8691
8748
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
8692
8749
|
pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
|
|
@@ -8696,29 +8753,29 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8696
8753
|
}
|
|
8697
8754
|
if ($$self.$$.dirty[0] & 1) {
|
|
8698
8755
|
$:
|
|
8699
|
-
$$subscribe_memberState($$invalidate(
|
|
8756
|
+
$$subscribe_memberState($$invalidate(17, memberState = app == null ? void 0 : app.memberState));
|
|
8700
8757
|
}
|
|
8701
|
-
if ($$self.$$.dirty[1] &
|
|
8758
|
+
if ($$self.$$.dirty[1] & 8) {
|
|
8702
8759
|
$:
|
|
8703
|
-
$$invalidate(
|
|
8760
|
+
$$invalidate(8, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
8704
8761
|
}
|
|
8705
|
-
if ($$self.$$.dirty[1] &
|
|
8762
|
+
if ($$self.$$.dirty[1] & 8) {
|
|
8706
8763
|
$:
|
|
8707
|
-
$$invalidate(
|
|
8764
|
+
$$invalidate(7, shape = $memberState == null ? void 0 : $memberState.shapeType);
|
|
8708
8765
|
}
|
|
8709
8766
|
if ($$self.$$.dirty[0] & 1) {
|
|
8710
8767
|
$:
|
|
8711
|
-
$$subscribe_status($$invalidate(
|
|
8768
|
+
$$subscribe_status($$invalidate(16, status = app == null ? void 0 : app.appsStatus));
|
|
8712
8769
|
}
|
|
8713
|
-
if ($$self.$$.dirty[0] &
|
|
8770
|
+
if ($$self.$$.dirty[0] & 384) {
|
|
8714
8771
|
$:
|
|
8715
8772
|
if (applianceShapes.includes(appliance)) {
|
|
8716
|
-
$$invalidate(
|
|
8773
|
+
$$invalidate(10, last_shape = appliance);
|
|
8717
8774
|
} else if (shape) {
|
|
8718
|
-
$$invalidate(
|
|
8775
|
+
$$invalidate(10, last_shape = shape);
|
|
8719
8776
|
}
|
|
8720
8777
|
}
|
|
8721
|
-
if ($$self.$$.dirty[0] &
|
|
8778
|
+
if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 5) {
|
|
8722
8779
|
$:
|
|
8723
8780
|
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
8724
8781
|
}
|
|
@@ -8730,6 +8787,7 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8730
8787
|
disabled,
|
|
8731
8788
|
scroll_height,
|
|
8732
8789
|
scrollable,
|
|
8790
|
+
hide_apps,
|
|
8733
8791
|
shape,
|
|
8734
8792
|
appliance,
|
|
8735
8793
|
t,
|
|
@@ -8773,8 +8831,9 @@ var Contents = class extends SvelteComponent {
|
|
|
8773
8831
|
language: 2,
|
|
8774
8832
|
disabled: 3,
|
|
8775
8833
|
scroll_height: 4,
|
|
8776
|
-
computed_height:
|
|
8777
|
-
scrollable: 5
|
|
8834
|
+
computed_height: 31,
|
|
8835
|
+
scrollable: 5,
|
|
8836
|
+
hide_apps: 6
|
|
8778
8837
|
}, null, [-1, -1]);
|
|
8779
8838
|
}
|
|
8780
8839
|
};
|
|
@@ -8866,10 +8925,11 @@ function create_fragment56(ctx) {
|
|
|
8866
8925
|
app: ctx[0],
|
|
8867
8926
|
theme: ctx[1],
|
|
8868
8927
|
language: ctx[2],
|
|
8869
|
-
disabled: ctx[
|
|
8870
|
-
scroll_height: ctx[
|
|
8871
|
-
computed_height: ctx[
|
|
8872
|
-
scrollable: ctx[
|
|
8928
|
+
disabled: ctx[7],
|
|
8929
|
+
scroll_height: ctx[10],
|
|
8930
|
+
computed_height: ctx[6],
|
|
8931
|
+
scrollable: ctx[5],
|
|
8932
|
+
hide_apps: ctx[4]
|
|
8873
8933
|
}
|
|
8874
8934
|
});
|
|
8875
8935
|
function select_block_type(ctx2, dirty) {
|
|
@@ -8893,7 +8953,7 @@ function create_fragment56(ctx) {
|
|
|
8893
8953
|
path1 = svg_element("path");
|
|
8894
8954
|
if_block.c();
|
|
8895
8955
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
8896
|
-
set_style(div0, "height", ctx[
|
|
8956
|
+
set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto", false);
|
|
8897
8957
|
attr(input, "type", "checkbox");
|
|
8898
8958
|
attr(path0, "fill", "#fff");
|
|
8899
8959
|
attr(path0, "stroke", "none");
|
|
@@ -8925,8 +8985,8 @@ function create_fragment56(ctx) {
|
|
|
8925
8985
|
current = true;
|
|
8926
8986
|
if (!mounted) {
|
|
8927
8987
|
dispose = [
|
|
8928
|
-
listen(input, "change", ctx[
|
|
8929
|
-
action_destroyer(height_action = height.call(null, div1, ctx[
|
|
8988
|
+
listen(input, "change", ctx[15]),
|
|
8989
|
+
action_destroyer(height_action = height.call(null, div1, ctx[9]))
|
|
8930
8990
|
];
|
|
8931
8991
|
mounted = true;
|
|
8932
8992
|
}
|
|
@@ -8939,18 +8999,20 @@ function create_fragment56(ctx) {
|
|
|
8939
8999
|
contents_changes.theme = ctx2[1];
|
|
8940
9000
|
if (dirty & 4)
|
|
8941
9001
|
contents_changes.language = ctx2[2];
|
|
9002
|
+
if (dirty & 128)
|
|
9003
|
+
contents_changes.disabled = ctx2[7];
|
|
8942
9004
|
if (dirty & 64)
|
|
8943
|
-
contents_changes.
|
|
9005
|
+
contents_changes.computed_height = ctx2[6];
|
|
8944
9006
|
if (dirty & 32)
|
|
8945
|
-
contents_changes.
|
|
9007
|
+
contents_changes.scrollable = ctx2[5];
|
|
8946
9008
|
if (dirty & 16)
|
|
8947
|
-
contents_changes.
|
|
9009
|
+
contents_changes.hide_apps = ctx2[4];
|
|
8948
9010
|
contents.$set(contents_changes);
|
|
8949
9011
|
if (!current || dirty & 2 && div0_class_value !== (div0_class_value = name6 + "-contents " + ctx2[1])) {
|
|
8950
9012
|
attr(div0, "class", div0_class_value);
|
|
8951
9013
|
}
|
|
8952
|
-
if (dirty &
|
|
8953
|
-
set_style(div0, "height", ctx2[
|
|
9014
|
+
if (dirty & 96) {
|
|
9015
|
+
set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto", false);
|
|
8954
9016
|
}
|
|
8955
9017
|
if (dirty & 8) {
|
|
8956
9018
|
input.checked = ctx2[3];
|
|
@@ -9001,19 +9063,21 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9001
9063
|
let disabled;
|
|
9002
9064
|
let computed_height;
|
|
9003
9065
|
let scrollable;
|
|
9066
|
+
let hide_apps;
|
|
9004
9067
|
let $container_height;
|
|
9005
9068
|
let $scroll_height;
|
|
9006
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
9069
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
|
|
9007
9070
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
9008
9071
|
let { app = null } = $$props;
|
|
9009
9072
|
let { theme = "light" } = $$props;
|
|
9010
9073
|
let { language = "en" } = $$props;
|
|
9074
|
+
let { config = {} } = $$props;
|
|
9011
9075
|
const extra_height = (32 + 4 + 4) * 2;
|
|
9012
9076
|
let collapsed = false;
|
|
9013
9077
|
let container_height = writable(0);
|
|
9014
|
-
component_subscribe($$self, container_height, (value) => $$invalidate(
|
|
9078
|
+
component_subscribe($$self, container_height, (value) => $$invalidate(12, $container_height = value));
|
|
9015
9079
|
let scroll_height = writable(0);
|
|
9016
|
-
component_subscribe($$self, scroll_height, (value) => $$invalidate(
|
|
9080
|
+
component_subscribe($$self, scroll_height, (value) => $$invalidate(13, $scroll_height = value));
|
|
9017
9081
|
function input_change_handler() {
|
|
9018
9082
|
collapsed = this.checked;
|
|
9019
9083
|
$$invalidate(3, collapsed);
|
|
@@ -9025,23 +9089,30 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9025
9089
|
$$invalidate(1, theme = $$props2.theme);
|
|
9026
9090
|
if ("language" in $$props2)
|
|
9027
9091
|
$$invalidate(2, language = $$props2.language);
|
|
9092
|
+
if ("config" in $$props2)
|
|
9093
|
+
$$invalidate(11, config = $$props2.config);
|
|
9028
9094
|
};
|
|
9029
9095
|
$$self.$$.update = () => {
|
|
9096
|
+
var _a;
|
|
9030
9097
|
if ($$self.$$.dirty & 1) {
|
|
9031
9098
|
$:
|
|
9032
|
-
$$subscribe_writable($$invalidate(
|
|
9099
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
9033
9100
|
}
|
|
9034
|
-
if ($$self.$$.dirty &
|
|
9101
|
+
if ($$self.$$.dirty & 16384) {
|
|
9102
|
+
$:
|
|
9103
|
+
$$invalidate(7, disabled = !$writable);
|
|
9104
|
+
}
|
|
9105
|
+
if ($$self.$$.dirty & 12288) {
|
|
9035
9106
|
$:
|
|
9036
|
-
$$invalidate(6,
|
|
9107
|
+
$$invalidate(6, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
9037
9108
|
}
|
|
9038
|
-
if ($$self.$$.dirty &
|
|
9109
|
+
if ($$self.$$.dirty & 12288) {
|
|
9039
9110
|
$:
|
|
9040
|
-
$$invalidate(5,
|
|
9111
|
+
$$invalidate(5, scrollable = $scroll_height + extra_height > $container_height);
|
|
9041
9112
|
}
|
|
9042
|
-
if ($$self.$$.dirty &
|
|
9113
|
+
if ($$self.$$.dirty & 2048) {
|
|
9043
9114
|
$:
|
|
9044
|
-
$$invalidate(4,
|
|
9115
|
+
$$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
9045
9116
|
}
|
|
9046
9117
|
};
|
|
9047
9118
|
return [
|
|
@@ -9049,12 +9120,14 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9049
9120
|
theme,
|
|
9050
9121
|
language,
|
|
9051
9122
|
collapsed,
|
|
9123
|
+
hide_apps,
|
|
9052
9124
|
scrollable,
|
|
9053
9125
|
computed_height,
|
|
9054
9126
|
disabled,
|
|
9055
9127
|
writable2,
|
|
9056
9128
|
container_height,
|
|
9057
9129
|
scroll_height,
|
|
9130
|
+
config,
|
|
9058
9131
|
$container_height,
|
|
9059
9132
|
$scroll_height,
|
|
9060
9133
|
$writable,
|
|
@@ -9064,7 +9137,12 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9064
9137
|
var Toolbar = class extends SvelteComponent {
|
|
9065
9138
|
constructor(options) {
|
|
9066
9139
|
super();
|
|
9067
|
-
init(this, options, instance56, create_fragment56, safe_not_equal, {
|
|
9140
|
+
init(this, options, instance56, create_fragment56, safe_not_equal, {
|
|
9141
|
+
app: 0,
|
|
9142
|
+
theme: 1,
|
|
9143
|
+
language: 2,
|
|
9144
|
+
config: 11
|
|
9145
|
+
});
|
|
9068
9146
|
}
|
|
9069
9147
|
};
|
|
9070
9148
|
var Toolbar_default = Toolbar;
|
|
@@ -10138,7 +10216,8 @@ function create_if_block_32(ctx) {
|
|
|
10138
10216
|
props: {
|
|
10139
10217
|
app: ctx[0],
|
|
10140
10218
|
theme: ctx[1],
|
|
10141
|
-
language: ctx[2]
|
|
10219
|
+
language: ctx[2],
|
|
10220
|
+
config: ctx[3].toolbar
|
|
10142
10221
|
}
|
|
10143
10222
|
});
|
|
10144
10223
|
return {
|
|
@@ -10157,6 +10236,8 @@ function create_if_block_32(ctx) {
|
|
|
10157
10236
|
toolbar_changes.theme = ctx2[1];
|
|
10158
10237
|
if (dirty & 4)
|
|
10159
10238
|
toolbar_changes.language = ctx2[2];
|
|
10239
|
+
if (dirty & 8)
|
|
10240
|
+
toolbar_changes.config = ctx2[3].toolbar;
|
|
10160
10241
|
toolbar.$set(toolbar_changes);
|
|
10161
10242
|
},
|
|
10162
10243
|
i(local) {
|