@netless/fastboard-ui 0.3.2-canary.2 → 0.3.2-canary.3
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 +23 -1
- package/dist/index.js +305 -98
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +305 -98
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +307 -98
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Fastboard/Fastboard.svelte +14 -5
- package/src/components/Fastboard/Fastboard.svelte.ts +2 -1
- package/src/index.ts +1 -1
- package/src/typings.ts +15 -0
package/dist/index.svelte.mjs
CHANGED
|
@@ -10213,10 +10213,12 @@ import {
|
|
|
10213
10213
|
append as append57,
|
|
10214
10214
|
attr as attr58,
|
|
10215
10215
|
binding_callbacks as binding_callbacks4,
|
|
10216
|
+
check_outros as check_outros6,
|
|
10216
10217
|
create_component as create_component10,
|
|
10217
10218
|
destroy_component as destroy_component10,
|
|
10218
10219
|
detach as detach57,
|
|
10219
10220
|
element as element14,
|
|
10221
|
+
group_outros as group_outros6,
|
|
10220
10222
|
init as init58,
|
|
10221
10223
|
insert as insert57,
|
|
10222
10224
|
listen as listen8,
|
|
@@ -10230,28 +10232,9 @@ import {
|
|
|
10230
10232
|
transition_out as transition_out12
|
|
10231
10233
|
} from "svelte/internal";
|
|
10232
10234
|
import { onMount as onMount2 } from "svelte";
|
|
10233
|
-
function
|
|
10234
|
-
let div4;
|
|
10235
|
-
let div0;
|
|
10236
|
-
let div0_class_value;
|
|
10237
|
-
let t0;
|
|
10238
|
-
let div1;
|
|
10235
|
+
function create_if_block_32(ctx) {
|
|
10239
10236
|
let toolbar;
|
|
10240
|
-
let div1_class_value;
|
|
10241
|
-
let t1;
|
|
10242
|
-
let div2;
|
|
10243
|
-
let redoundo;
|
|
10244
|
-
let t2;
|
|
10245
|
-
let zoomcontrol;
|
|
10246
|
-
let div2_class_value;
|
|
10247
|
-
let t3;
|
|
10248
|
-
let div3;
|
|
10249
|
-
let pagecontrol;
|
|
10250
|
-
let div3_class_value;
|
|
10251
|
-
let div4_class_value;
|
|
10252
10237
|
let current;
|
|
10253
|
-
let mounted;
|
|
10254
|
-
let dispose;
|
|
10255
10238
|
toolbar = new Toolbar_default({
|
|
10256
10239
|
props: {
|
|
10257
10240
|
app: ctx[0],
|
|
@@ -10259,6 +10242,42 @@ function create_fragment58(ctx) {
|
|
|
10259
10242
|
language: ctx[2]
|
|
10260
10243
|
}
|
|
10261
10244
|
});
|
|
10245
|
+
return {
|
|
10246
|
+
c() {
|
|
10247
|
+
create_component10(toolbar.$$.fragment);
|
|
10248
|
+
},
|
|
10249
|
+
m(target, anchor) {
|
|
10250
|
+
mount_component10(toolbar, target, anchor);
|
|
10251
|
+
current = true;
|
|
10252
|
+
},
|
|
10253
|
+
p(ctx2, dirty) {
|
|
10254
|
+
const toolbar_changes = {};
|
|
10255
|
+
if (dirty & 1)
|
|
10256
|
+
toolbar_changes.app = ctx2[0];
|
|
10257
|
+
if (dirty & 2)
|
|
10258
|
+
toolbar_changes.theme = ctx2[1];
|
|
10259
|
+
if (dirty & 4)
|
|
10260
|
+
toolbar_changes.language = ctx2[2];
|
|
10261
|
+
toolbar.$set(toolbar_changes);
|
|
10262
|
+
},
|
|
10263
|
+
i(local) {
|
|
10264
|
+
if (current)
|
|
10265
|
+
return;
|
|
10266
|
+
transition_in12(toolbar.$$.fragment, local);
|
|
10267
|
+
current = true;
|
|
10268
|
+
},
|
|
10269
|
+
o(local) {
|
|
10270
|
+
transition_out12(toolbar.$$.fragment, local);
|
|
10271
|
+
current = false;
|
|
10272
|
+
},
|
|
10273
|
+
d(detaching) {
|
|
10274
|
+
destroy_component10(toolbar, detaching);
|
|
10275
|
+
}
|
|
10276
|
+
};
|
|
10277
|
+
}
|
|
10278
|
+
function create_if_block_23(ctx) {
|
|
10279
|
+
let redoundo;
|
|
10280
|
+
let current;
|
|
10262
10281
|
redoundo = new RedoUndo_default({
|
|
10263
10282
|
props: {
|
|
10264
10283
|
app: ctx[0],
|
|
@@ -10266,6 +10285,42 @@ function create_fragment58(ctx) {
|
|
|
10266
10285
|
language: ctx[2]
|
|
10267
10286
|
}
|
|
10268
10287
|
});
|
|
10288
|
+
return {
|
|
10289
|
+
c() {
|
|
10290
|
+
create_component10(redoundo.$$.fragment);
|
|
10291
|
+
},
|
|
10292
|
+
m(target, anchor) {
|
|
10293
|
+
mount_component10(redoundo, target, anchor);
|
|
10294
|
+
current = true;
|
|
10295
|
+
},
|
|
10296
|
+
p(ctx2, dirty) {
|
|
10297
|
+
const redoundo_changes = {};
|
|
10298
|
+
if (dirty & 1)
|
|
10299
|
+
redoundo_changes.app = ctx2[0];
|
|
10300
|
+
if (dirty & 2)
|
|
10301
|
+
redoundo_changes.theme = ctx2[1];
|
|
10302
|
+
if (dirty & 4)
|
|
10303
|
+
redoundo_changes.language = ctx2[2];
|
|
10304
|
+
redoundo.$set(redoundo_changes);
|
|
10305
|
+
},
|
|
10306
|
+
i(local) {
|
|
10307
|
+
if (current)
|
|
10308
|
+
return;
|
|
10309
|
+
transition_in12(redoundo.$$.fragment, local);
|
|
10310
|
+
current = true;
|
|
10311
|
+
},
|
|
10312
|
+
o(local) {
|
|
10313
|
+
transition_out12(redoundo.$$.fragment, local);
|
|
10314
|
+
current = false;
|
|
10315
|
+
},
|
|
10316
|
+
d(detaching) {
|
|
10317
|
+
destroy_component10(redoundo, detaching);
|
|
10318
|
+
}
|
|
10319
|
+
};
|
|
10320
|
+
}
|
|
10321
|
+
function create_if_block_14(ctx) {
|
|
10322
|
+
let zoomcontrol;
|
|
10323
|
+
let current;
|
|
10269
10324
|
zoomcontrol = new ZoomControl_default({
|
|
10270
10325
|
props: {
|
|
10271
10326
|
app: ctx[0],
|
|
@@ -10273,6 +10328,42 @@ function create_fragment58(ctx) {
|
|
|
10273
10328
|
language: ctx[2]
|
|
10274
10329
|
}
|
|
10275
10330
|
});
|
|
10331
|
+
return {
|
|
10332
|
+
c() {
|
|
10333
|
+
create_component10(zoomcontrol.$$.fragment);
|
|
10334
|
+
},
|
|
10335
|
+
m(target, anchor) {
|
|
10336
|
+
mount_component10(zoomcontrol, target, anchor);
|
|
10337
|
+
current = true;
|
|
10338
|
+
},
|
|
10339
|
+
p(ctx2, dirty) {
|
|
10340
|
+
const zoomcontrol_changes = {};
|
|
10341
|
+
if (dirty & 1)
|
|
10342
|
+
zoomcontrol_changes.app = ctx2[0];
|
|
10343
|
+
if (dirty & 2)
|
|
10344
|
+
zoomcontrol_changes.theme = ctx2[1];
|
|
10345
|
+
if (dirty & 4)
|
|
10346
|
+
zoomcontrol_changes.language = ctx2[2];
|
|
10347
|
+
zoomcontrol.$set(zoomcontrol_changes);
|
|
10348
|
+
},
|
|
10349
|
+
i(local) {
|
|
10350
|
+
if (current)
|
|
10351
|
+
return;
|
|
10352
|
+
transition_in12(zoomcontrol.$$.fragment, local);
|
|
10353
|
+
current = true;
|
|
10354
|
+
},
|
|
10355
|
+
o(local) {
|
|
10356
|
+
transition_out12(zoomcontrol.$$.fragment, local);
|
|
10357
|
+
current = false;
|
|
10358
|
+
},
|
|
10359
|
+
d(detaching) {
|
|
10360
|
+
destroy_component10(zoomcontrol, detaching);
|
|
10361
|
+
}
|
|
10362
|
+
};
|
|
10363
|
+
}
|
|
10364
|
+
function create_if_block9(ctx) {
|
|
10365
|
+
let pagecontrol;
|
|
10366
|
+
let current;
|
|
10276
10367
|
pagecontrol = new PageControl_default({
|
|
10277
10368
|
props: {
|
|
10278
10369
|
app: ctx[0],
|
|
@@ -10280,46 +10371,110 @@ function create_fragment58(ctx) {
|
|
|
10280
10371
|
language: ctx[2]
|
|
10281
10372
|
}
|
|
10282
10373
|
});
|
|
10374
|
+
return {
|
|
10375
|
+
c() {
|
|
10376
|
+
create_component10(pagecontrol.$$.fragment);
|
|
10377
|
+
},
|
|
10378
|
+
m(target, anchor) {
|
|
10379
|
+
mount_component10(pagecontrol, target, anchor);
|
|
10380
|
+
current = true;
|
|
10381
|
+
},
|
|
10382
|
+
p(ctx2, dirty) {
|
|
10383
|
+
const pagecontrol_changes = {};
|
|
10384
|
+
if (dirty & 1)
|
|
10385
|
+
pagecontrol_changes.app = ctx2[0];
|
|
10386
|
+
if (dirty & 2)
|
|
10387
|
+
pagecontrol_changes.theme = ctx2[1];
|
|
10388
|
+
if (dirty & 4)
|
|
10389
|
+
pagecontrol_changes.language = ctx2[2];
|
|
10390
|
+
pagecontrol.$set(pagecontrol_changes);
|
|
10391
|
+
},
|
|
10392
|
+
i(local) {
|
|
10393
|
+
if (current)
|
|
10394
|
+
return;
|
|
10395
|
+
transition_in12(pagecontrol.$$.fragment, local);
|
|
10396
|
+
current = true;
|
|
10397
|
+
},
|
|
10398
|
+
o(local) {
|
|
10399
|
+
transition_out12(pagecontrol.$$.fragment, local);
|
|
10400
|
+
current = false;
|
|
10401
|
+
},
|
|
10402
|
+
d(detaching) {
|
|
10403
|
+
destroy_component10(pagecontrol, detaching);
|
|
10404
|
+
}
|
|
10405
|
+
};
|
|
10406
|
+
}
|
|
10407
|
+
function create_fragment58(ctx) {
|
|
10408
|
+
var _a, _b, _c, _d;
|
|
10409
|
+
let div4;
|
|
10410
|
+
let div0;
|
|
10411
|
+
let div0_class_value;
|
|
10412
|
+
let t0;
|
|
10413
|
+
let div1;
|
|
10414
|
+
let div1_class_value;
|
|
10415
|
+
let t1;
|
|
10416
|
+
let div2;
|
|
10417
|
+
let t2;
|
|
10418
|
+
let div2_class_value;
|
|
10419
|
+
let t3;
|
|
10420
|
+
let div3;
|
|
10421
|
+
let div3_class_value;
|
|
10422
|
+
let div4_class_value;
|
|
10423
|
+
let current;
|
|
10424
|
+
let mounted;
|
|
10425
|
+
let dispose;
|
|
10426
|
+
let if_block0 = ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx);
|
|
10427
|
+
let if_block1 = ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx);
|
|
10428
|
+
let if_block2 = ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_14(ctx);
|
|
10429
|
+
let if_block3 = ((_d = ctx[3].page_control) == null ? void 0 : _d.enable) !== false && create_if_block9(ctx);
|
|
10283
10430
|
return {
|
|
10284
10431
|
c() {
|
|
10285
10432
|
div4 = element14("div");
|
|
10286
10433
|
div0 = element14("div");
|
|
10287
10434
|
t0 = space11();
|
|
10288
10435
|
div1 = element14("div");
|
|
10289
|
-
|
|
10436
|
+
if (if_block0)
|
|
10437
|
+
if_block0.c();
|
|
10290
10438
|
t1 = space11();
|
|
10291
10439
|
div2 = element14("div");
|
|
10292
|
-
|
|
10440
|
+
if (if_block1)
|
|
10441
|
+
if_block1.c();
|
|
10293
10442
|
t2 = space11();
|
|
10294
|
-
|
|
10443
|
+
if (if_block2)
|
|
10444
|
+
if_block2.c();
|
|
10295
10445
|
t3 = space11();
|
|
10296
10446
|
div3 = element14("div");
|
|
10297
|
-
|
|
10447
|
+
if (if_block3)
|
|
10448
|
+
if_block3.c();
|
|
10298
10449
|
attr58(div0, "class", div0_class_value = name9 + "-view");
|
|
10299
10450
|
attr58(div1, "class", div1_class_value = name9 + "-left");
|
|
10300
|
-
toggle_class51(div1, "hidden", !(ctx[
|
|
10451
|
+
toggle_class51(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
|
|
10301
10452
|
attr58(div2, "class", div2_class_value = name9 + "-bottom-left");
|
|
10302
|
-
toggle_class51(div2, "hidden", ctx[
|
|
10453
|
+
toggle_class51(div2, "hidden", ctx[5] !== "visible");
|
|
10303
10454
|
attr58(div3, "class", div3_class_value = name9 + "-bottom-right");
|
|
10304
|
-
toggle_class51(div3, "hidden", ctx[
|
|
10455
|
+
toggle_class51(div3, "hidden", ctx[5] !== "visible");
|
|
10305
10456
|
attr58(div4, "class", div4_class_value = name9 + "-root");
|
|
10306
10457
|
toggle_class51(div4, "loading", !ctx[0]);
|
|
10307
10458
|
},
|
|
10308
10459
|
m(target, anchor) {
|
|
10309
10460
|
insert57(target, div4, anchor);
|
|
10310
10461
|
append57(div4, div0);
|
|
10311
|
-
ctx[
|
|
10462
|
+
ctx[13](div0);
|
|
10312
10463
|
append57(div4, t0);
|
|
10313
10464
|
append57(div4, div1);
|
|
10314
|
-
|
|
10465
|
+
if (if_block0)
|
|
10466
|
+
if_block0.m(div1, null);
|
|
10315
10467
|
append57(div4, t1);
|
|
10316
10468
|
append57(div4, div2);
|
|
10317
|
-
|
|
10469
|
+
if (if_block1)
|
|
10470
|
+
if_block1.m(div2, null);
|
|
10318
10471
|
append57(div2, t2);
|
|
10319
|
-
|
|
10472
|
+
if (if_block2)
|
|
10473
|
+
if_block2.m(div2, null);
|
|
10320
10474
|
append57(div4, t3);
|
|
10321
10475
|
append57(div4, div3);
|
|
10322
|
-
|
|
10476
|
+
if (if_block3)
|
|
10477
|
+
if_block3.m(div3, null);
|
|
10323
10478
|
current = true;
|
|
10324
10479
|
if (!mounted) {
|
|
10325
10480
|
dispose = listen8(div0, "touchstart", tippy_hide_all, true);
|
|
@@ -10327,46 +10482,91 @@ function create_fragment58(ctx) {
|
|
|
10327
10482
|
}
|
|
10328
10483
|
},
|
|
10329
10484
|
p(ctx2, [dirty]) {
|
|
10330
|
-
|
|
10331
|
-
if (
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10485
|
+
var _a2, _b2, _c2, _d2;
|
|
10486
|
+
if (((_a2 = ctx2[3].toolbar) == null ? void 0 : _a2.enable) !== false) {
|
|
10487
|
+
if (if_block0) {
|
|
10488
|
+
if_block0.p(ctx2, dirty);
|
|
10489
|
+
if (dirty & 8) {
|
|
10490
|
+
transition_in12(if_block0, 1);
|
|
10491
|
+
}
|
|
10492
|
+
} else {
|
|
10493
|
+
if_block0 = create_if_block_32(ctx2);
|
|
10494
|
+
if_block0.c();
|
|
10495
|
+
transition_in12(if_block0, 1);
|
|
10496
|
+
if_block0.m(div1, null);
|
|
10497
|
+
}
|
|
10498
|
+
} else if (if_block0) {
|
|
10499
|
+
group_outros6();
|
|
10500
|
+
transition_out12(if_block0, 1, 1, () => {
|
|
10501
|
+
if_block0 = null;
|
|
10502
|
+
});
|
|
10503
|
+
check_outros6();
|
|
10340
10504
|
}
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
redoundo_changes.app = ctx2[0];
|
|
10344
|
-
if (dirty & 2)
|
|
10345
|
-
redoundo_changes.theme = ctx2[1];
|
|
10346
|
-
if (dirty & 4)
|
|
10347
|
-
redoundo_changes.language = ctx2[2];
|
|
10348
|
-
redoundo.$set(redoundo_changes);
|
|
10349
|
-
const zoomcontrol_changes = {};
|
|
10350
|
-
if (dirty & 1)
|
|
10351
|
-
zoomcontrol_changes.app = ctx2[0];
|
|
10352
|
-
if (dirty & 2)
|
|
10353
|
-
zoomcontrol_changes.theme = ctx2[1];
|
|
10354
|
-
if (dirty & 4)
|
|
10355
|
-
zoomcontrol_changes.language = ctx2[2];
|
|
10356
|
-
zoomcontrol.$set(zoomcontrol_changes);
|
|
10357
|
-
if (dirty & 16) {
|
|
10358
|
-
toggle_class51(div2, "hidden", ctx2[4] !== "visible");
|
|
10505
|
+
if (dirty & 32) {
|
|
10506
|
+
toggle_class51(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
10359
10507
|
}
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10508
|
+
if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
|
|
10509
|
+
if (if_block1) {
|
|
10510
|
+
if_block1.p(ctx2, dirty);
|
|
10511
|
+
if (dirty & 8) {
|
|
10512
|
+
transition_in12(if_block1, 1);
|
|
10513
|
+
}
|
|
10514
|
+
} else {
|
|
10515
|
+
if_block1 = create_if_block_23(ctx2);
|
|
10516
|
+
if_block1.c();
|
|
10517
|
+
transition_in12(if_block1, 1);
|
|
10518
|
+
if_block1.m(div2, t2);
|
|
10519
|
+
}
|
|
10520
|
+
} else if (if_block1) {
|
|
10521
|
+
group_outros6();
|
|
10522
|
+
transition_out12(if_block1, 1, 1, () => {
|
|
10523
|
+
if_block1 = null;
|
|
10524
|
+
});
|
|
10525
|
+
check_outros6();
|
|
10526
|
+
}
|
|
10527
|
+
if (((_c2 = ctx2[3].zoom_control) == null ? void 0 : _c2.enable) !== false) {
|
|
10528
|
+
if (if_block2) {
|
|
10529
|
+
if_block2.p(ctx2, dirty);
|
|
10530
|
+
if (dirty & 8) {
|
|
10531
|
+
transition_in12(if_block2, 1);
|
|
10532
|
+
}
|
|
10533
|
+
} else {
|
|
10534
|
+
if_block2 = create_if_block_14(ctx2);
|
|
10535
|
+
if_block2.c();
|
|
10536
|
+
transition_in12(if_block2, 1);
|
|
10537
|
+
if_block2.m(div2, null);
|
|
10538
|
+
}
|
|
10539
|
+
} else if (if_block2) {
|
|
10540
|
+
group_outros6();
|
|
10541
|
+
transition_out12(if_block2, 1, 1, () => {
|
|
10542
|
+
if_block2 = null;
|
|
10543
|
+
});
|
|
10544
|
+
check_outros6();
|
|
10545
|
+
}
|
|
10546
|
+
if (dirty & 32) {
|
|
10547
|
+
toggle_class51(div2, "hidden", ctx2[5] !== "visible");
|
|
10548
|
+
}
|
|
10549
|
+
if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
|
|
10550
|
+
if (if_block3) {
|
|
10551
|
+
if_block3.p(ctx2, dirty);
|
|
10552
|
+
if (dirty & 8) {
|
|
10553
|
+
transition_in12(if_block3, 1);
|
|
10554
|
+
}
|
|
10555
|
+
} else {
|
|
10556
|
+
if_block3 = create_if_block9(ctx2);
|
|
10557
|
+
if_block3.c();
|
|
10558
|
+
transition_in12(if_block3, 1);
|
|
10559
|
+
if_block3.m(div3, null);
|
|
10560
|
+
}
|
|
10561
|
+
} else if (if_block3) {
|
|
10562
|
+
group_outros6();
|
|
10563
|
+
transition_out12(if_block3, 1, 1, () => {
|
|
10564
|
+
if_block3 = null;
|
|
10565
|
+
});
|
|
10566
|
+
check_outros6();
|
|
10567
|
+
}
|
|
10568
|
+
if (dirty & 32) {
|
|
10569
|
+
toggle_class51(div3, "hidden", ctx2[5] !== "visible");
|
|
10370
10570
|
}
|
|
10371
10571
|
if (dirty & 1) {
|
|
10372
10572
|
toggle_class51(div4, "loading", !ctx2[0]);
|
|
@@ -10375,27 +10575,31 @@ function create_fragment58(ctx) {
|
|
|
10375
10575
|
i(local) {
|
|
10376
10576
|
if (current)
|
|
10377
10577
|
return;
|
|
10378
|
-
transition_in12(
|
|
10379
|
-
transition_in12(
|
|
10380
|
-
transition_in12(
|
|
10381
|
-
transition_in12(
|
|
10578
|
+
transition_in12(if_block0);
|
|
10579
|
+
transition_in12(if_block1);
|
|
10580
|
+
transition_in12(if_block2);
|
|
10581
|
+
transition_in12(if_block3);
|
|
10382
10582
|
current = true;
|
|
10383
10583
|
},
|
|
10384
10584
|
o(local) {
|
|
10385
|
-
transition_out12(
|
|
10386
|
-
transition_out12(
|
|
10387
|
-
transition_out12(
|
|
10388
|
-
transition_out12(
|
|
10585
|
+
transition_out12(if_block0);
|
|
10586
|
+
transition_out12(if_block1);
|
|
10587
|
+
transition_out12(if_block2);
|
|
10588
|
+
transition_out12(if_block3);
|
|
10389
10589
|
current = false;
|
|
10390
10590
|
},
|
|
10391
10591
|
d(detaching) {
|
|
10392
10592
|
if (detaching)
|
|
10393
10593
|
detach57(div4);
|
|
10394
|
-
ctx[
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10594
|
+
ctx[13](null);
|
|
10595
|
+
if (if_block0)
|
|
10596
|
+
if_block0.d();
|
|
10597
|
+
if (if_block1)
|
|
10598
|
+
if_block1.d();
|
|
10599
|
+
if (if_block2)
|
|
10600
|
+
if_block2.d();
|
|
10601
|
+
if (if_block3)
|
|
10602
|
+
if_block3.d();
|
|
10399
10603
|
mounted = false;
|
|
10400
10604
|
dispose();
|
|
10401
10605
|
}
|
|
@@ -10406,9 +10610,9 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10406
10610
|
let writable2;
|
|
10407
10611
|
let boxState;
|
|
10408
10612
|
let focusedApp;
|
|
10409
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop56, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe10(focusedApp, ($$value) => $$invalidate(
|
|
10410
|
-
let $boxState, $$unsubscribe_boxState = noop56, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe10(boxState, ($$value) => $$invalidate(
|
|
10411
|
-
let $writable, $$unsubscribe_writable = noop56, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe10(writable2, ($$value) => $$invalidate(
|
|
10613
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop56, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe10(focusedApp, ($$value) => $$invalidate(10, $focusedApp = $$value)), focusedApp);
|
|
10614
|
+
let $boxState, $$unsubscribe_boxState = noop56, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe10(boxState, ($$value) => $$invalidate(11, $boxState = $$value)), boxState);
|
|
10615
|
+
let $writable, $$unsubscribe_writable = noop56, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe10(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
|
|
10412
10616
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
10413
10617
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
10414
10618
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -10416,6 +10620,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10416
10620
|
let { theme = "light" } = $$props;
|
|
10417
10621
|
let { language = "en" } = $$props;
|
|
10418
10622
|
let { containerRef = void 0 } = $$props;
|
|
10623
|
+
let { config = {} } = $$props;
|
|
10419
10624
|
const AppsShowToolbar = ["DocsViewer", "Slide"];
|
|
10420
10625
|
let container;
|
|
10421
10626
|
let layout = "hidden";
|
|
@@ -10431,7 +10636,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10431
10636
|
function div0_binding($$value) {
|
|
10432
10637
|
binding_callbacks4[$$value ? "unshift" : "push"](() => {
|
|
10433
10638
|
container = $$value;
|
|
10434
|
-
$$invalidate(
|
|
10639
|
+
$$invalidate(4, container);
|
|
10435
10640
|
});
|
|
10436
10641
|
}
|
|
10437
10642
|
$$self.$$set = ($$props2) => {
|
|
@@ -10442,36 +10647,38 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10442
10647
|
if ("language" in $$props2)
|
|
10443
10648
|
$$invalidate(2, language = $$props2.language);
|
|
10444
10649
|
if ("containerRef" in $$props2)
|
|
10445
|
-
$$invalidate(
|
|
10650
|
+
$$invalidate(9, containerRef = $$props2.containerRef);
|
|
10651
|
+
if ("config" in $$props2)
|
|
10652
|
+
$$invalidate(3, config = $$props2.config);
|
|
10446
10653
|
};
|
|
10447
10654
|
$$self.$$.update = () => {
|
|
10448
10655
|
if ($$self.$$.dirty & 1) {
|
|
10449
10656
|
$:
|
|
10450
|
-
$$subscribe_writable($$invalidate(
|
|
10657
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
10451
10658
|
}
|
|
10452
10659
|
if ($$self.$$.dirty & 1) {
|
|
10453
10660
|
$:
|
|
10454
|
-
$$subscribe_boxState($$invalidate(
|
|
10661
|
+
$$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
|
|
10455
10662
|
}
|
|
10456
10663
|
if ($$self.$$.dirty & 1) {
|
|
10457
10664
|
$:
|
|
10458
|
-
$$subscribe_focusedApp($$invalidate(
|
|
10665
|
+
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10459
10666
|
}
|
|
10460
|
-
if ($$self.$$.dirty &
|
|
10667
|
+
if ($$self.$$.dirty & 7168) {
|
|
10461
10668
|
$:
|
|
10462
10669
|
if (!$writable) {
|
|
10463
|
-
$$invalidate(
|
|
10670
|
+
$$invalidate(5, layout = "hidden");
|
|
10464
10671
|
} else if ($boxState === "maximized") {
|
|
10465
10672
|
if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
|
|
10466
|
-
$$invalidate(
|
|
10673
|
+
$$invalidate(5, layout = "toolbar-only");
|
|
10467
10674
|
} else {
|
|
10468
|
-
$$invalidate(
|
|
10675
|
+
$$invalidate(5, layout = "hidden");
|
|
10469
10676
|
}
|
|
10470
10677
|
} else {
|
|
10471
|
-
$$invalidate(
|
|
10678
|
+
$$invalidate(5, layout = "visible");
|
|
10472
10679
|
}
|
|
10473
10680
|
}
|
|
10474
|
-
if ($$self.$$.dirty &
|
|
10681
|
+
if ($$self.$$.dirty & 17) {
|
|
10475
10682
|
$:
|
|
10476
10683
|
try {
|
|
10477
10684
|
if (app && container)
|
|
@@ -10492,6 +10699,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10492
10699
|
app,
|
|
10493
10700
|
theme,
|
|
10494
10701
|
language,
|
|
10702
|
+
config,
|
|
10495
10703
|
container,
|
|
10496
10704
|
layout,
|
|
10497
10705
|
focusedApp,
|
|
@@ -10511,7 +10719,8 @@ var Fastboard = class extends SvelteComponent58 {
|
|
|
10511
10719
|
app: 0,
|
|
10512
10720
|
theme: 1,
|
|
10513
10721
|
language: 2,
|
|
10514
|
-
containerRef:
|
|
10722
|
+
containerRef: 9,
|
|
10723
|
+
config: 3
|
|
10515
10724
|
});
|
|
10516
10725
|
}
|
|
10517
10726
|
};
|