@netless/fastboard-ui 0.3.22-beta.1 → 0.3.22-beta.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.js +152 -195
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +152 -195
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +152 -195
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/Fastboard/Fastboard.svelte +1 -23
- package/src/components/Toolbar/Toolbar.svelte +15 -2
- package/src/helpers/index.ts +8 -20
package/dist/index.svelte.mjs
CHANGED
|
@@ -4768,10 +4768,7 @@ function create_fragment50(ctx) {
|
|
|
4768
4768
|
}
|
|
4769
4769
|
var i18n = {
|
|
4770
4770
|
en: { redo: "Redo", undo: "Undo" },
|
|
4771
|
-
"zh-CN": {
|
|
4772
|
-
redo: "\u91CD\u505A",
|
|
4773
|
-
undo: "\u64A4\u9500"
|
|
4774
|
-
}
|
|
4771
|
+
"zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
|
|
4775
4772
|
};
|
|
4776
4773
|
var name = "fastboard-redo-undo";
|
|
4777
4774
|
function instance50($$self, $$props, $$invalidate) {
|
|
@@ -5462,11 +5459,7 @@ var i18n2 = {
|
|
|
5462
5459
|
next: "Next Page",
|
|
5463
5460
|
add: "Add Page"
|
|
5464
5461
|
},
|
|
5465
|
-
"zh-CN": {
|
|
5466
|
-
prev: "\u4E0A\u4E00\u9875",
|
|
5467
|
-
next: "\u4E0B\u4E00\u9875",
|
|
5468
|
-
add: "\u6DFB\u52A0\u9875\u9762"
|
|
5469
|
-
}
|
|
5462
|
+
"zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
|
|
5470
5463
|
};
|
|
5471
5464
|
var name2 = "fastboard-page-control";
|
|
5472
5465
|
function instance51($$self, $$props, $$invalidate) {
|
|
@@ -6155,11 +6148,7 @@ var i18n3 = {
|
|
|
6155
6148
|
minus: "Zoom Out",
|
|
6156
6149
|
reset: "Reset"
|
|
6157
6150
|
},
|
|
6158
|
-
"zh-CN": {
|
|
6159
|
-
plus: "\u653E\u5927",
|
|
6160
|
-
minus: "\u7F29\u5C0F",
|
|
6161
|
-
reset: "\u91CD\u7F6E"
|
|
6162
|
-
}
|
|
6151
|
+
"zh-CN": { plus: "\u653E\u5927", minus: "\u7F29\u5C0F", reset: "\u91CD\u7F6E" }
|
|
6163
6152
|
};
|
|
6164
6153
|
var scales = [
|
|
6165
6154
|
0.3,
|
|
@@ -12477,15 +12466,15 @@ function create_fragment68(ctx) {
|
|
|
12477
12466
|
props: {
|
|
12478
12467
|
app: (
|
|
12479
12468
|
/*app*/
|
|
12480
|
-
ctx[
|
|
12469
|
+
ctx[1]
|
|
12481
12470
|
),
|
|
12482
12471
|
theme: (
|
|
12483
12472
|
/*theme*/
|
|
12484
|
-
ctx[
|
|
12473
|
+
ctx[2]
|
|
12485
12474
|
),
|
|
12486
12475
|
language: (
|
|
12487
12476
|
/*language*/
|
|
12488
|
-
ctx[
|
|
12477
|
+
ctx[3]
|
|
12489
12478
|
),
|
|
12490
12479
|
disabled: (
|
|
12491
12480
|
/*disabled*/
|
|
@@ -12517,14 +12506,14 @@ function create_fragment68(ctx) {
|
|
|
12517
12506
|
),
|
|
12518
12507
|
colors: (
|
|
12519
12508
|
/*colors*/
|
|
12520
|
-
ctx[
|
|
12509
|
+
ctx[0]
|
|
12521
12510
|
)
|
|
12522
12511
|
}
|
|
12523
12512
|
});
|
|
12524
12513
|
function select_block_type(ctx2, dirty) {
|
|
12525
12514
|
if (
|
|
12526
12515
|
/*collapsed*/
|
|
12527
|
-
ctx2[
|
|
12516
|
+
ctx2[4]
|
|
12528
12517
|
)
|
|
12529
12518
|
return create_if_block15;
|
|
12530
12519
|
return create_else_block14;
|
|
@@ -12545,7 +12534,7 @@ function create_fragment68(ctx) {
|
|
|
12545
12534
|
path1 = svg_element("path");
|
|
12546
12535
|
if_block.c();
|
|
12547
12536
|
attr(div0, "class", div0_class_value = name6 + "-contents " + /*theme*/
|
|
12548
|
-
ctx[
|
|
12537
|
+
ctx[2]);
|
|
12549
12538
|
set_style(
|
|
12550
12539
|
div0,
|
|
12551
12540
|
"height",
|
|
@@ -12567,14 +12556,14 @@ function create_fragment68(ctx) {
|
|
|
12567
12556
|
attr(svg, "stroke-width", "2");
|
|
12568
12557
|
attr(svg, "viewBox", "0 0 32 120");
|
|
12569
12558
|
attr(label, "class", label_class_value = name6 + "-handler " + /*theme*/
|
|
12570
|
-
ctx[
|
|
12559
|
+
ctx[2]);
|
|
12571
12560
|
attr(div1, "class", div1_class_value = name6 + " " + /*theme*/
|
|
12572
|
-
ctx[
|
|
12561
|
+
ctx[2]);
|
|
12573
12562
|
toggle_class(
|
|
12574
12563
|
div1,
|
|
12575
12564
|
"collapsed",
|
|
12576
12565
|
/*collapsed*/
|
|
12577
|
-
ctx[
|
|
12566
|
+
ctx[4]
|
|
12578
12567
|
);
|
|
12579
12568
|
},
|
|
12580
12569
|
m(target, anchor) {
|
|
@@ -12585,7 +12574,7 @@ function create_fragment68(ctx) {
|
|
|
12585
12574
|
append(div1, label);
|
|
12586
12575
|
append(label, input);
|
|
12587
12576
|
input.checked = /*collapsed*/
|
|
12588
|
-
ctx[
|
|
12577
|
+
ctx[4];
|
|
12589
12578
|
append(label, t1);
|
|
12590
12579
|
append(label, svg);
|
|
12591
12580
|
append(svg, path0);
|
|
@@ -12613,17 +12602,17 @@ function create_fragment68(ctx) {
|
|
|
12613
12602
|
p(ctx2, [dirty]) {
|
|
12614
12603
|
const contents_changes = {};
|
|
12615
12604
|
if (dirty & /*app*/
|
|
12616
|
-
|
|
12605
|
+
2)
|
|
12617
12606
|
contents_changes.app = /*app*/
|
|
12618
|
-
ctx2[
|
|
12607
|
+
ctx2[1];
|
|
12619
12608
|
if (dirty & /*theme*/
|
|
12620
|
-
|
|
12609
|
+
4)
|
|
12621
12610
|
contents_changes.theme = /*theme*/
|
|
12622
|
-
ctx2[
|
|
12611
|
+
ctx2[2];
|
|
12623
12612
|
if (dirty & /*language*/
|
|
12624
|
-
|
|
12613
|
+
8)
|
|
12625
12614
|
contents_changes.language = /*language*/
|
|
12626
|
-
ctx2[
|
|
12615
|
+
ctx2[3];
|
|
12627
12616
|
if (dirty & /*disabled*/
|
|
12628
12617
|
1024)
|
|
12629
12618
|
contents_changes.disabled = /*disabled*/
|
|
@@ -12649,13 +12638,13 @@ function create_fragment68(ctx) {
|
|
|
12649
12638
|
contents_changes.hide_apps = /*hide_apps*/
|
|
12650
12639
|
ctx2[5];
|
|
12651
12640
|
if (dirty & /*colors*/
|
|
12652
|
-
|
|
12641
|
+
1)
|
|
12653
12642
|
contents_changes.colors = /*colors*/
|
|
12654
|
-
ctx2[
|
|
12643
|
+
ctx2[0];
|
|
12655
12644
|
contents.$set(contents_changes);
|
|
12656
12645
|
if (!current || dirty & /*theme*/
|
|
12657
|
-
|
|
12658
|
-
ctx2[
|
|
12646
|
+
4 && div0_class_value !== (div0_class_value = name6 + "-contents " + /*theme*/
|
|
12647
|
+
ctx2[2])) {
|
|
12659
12648
|
attr(div0, "class", div0_class_value);
|
|
12660
12649
|
}
|
|
12661
12650
|
if (dirty & /*scrollable, computed_height*/
|
|
@@ -12671,9 +12660,9 @@ function create_fragment68(ctx) {
|
|
|
12671
12660
|
);
|
|
12672
12661
|
}
|
|
12673
12662
|
if (dirty & /*collapsed*/
|
|
12674
|
-
|
|
12663
|
+
16) {
|
|
12675
12664
|
input.checked = /*collapsed*/
|
|
12676
|
-
ctx2[
|
|
12665
|
+
ctx2[4];
|
|
12677
12666
|
}
|
|
12678
12667
|
if (current_block_type === (current_block_type = select_block_type(ctx2)) && if_block) {
|
|
12679
12668
|
if_block.p(ctx2, dirty);
|
|
@@ -12686,22 +12675,22 @@ function create_fragment68(ctx) {
|
|
|
12686
12675
|
}
|
|
12687
12676
|
}
|
|
12688
12677
|
if (!current || dirty & /*theme*/
|
|
12689
|
-
|
|
12690
|
-
ctx2[
|
|
12678
|
+
4 && label_class_value !== (label_class_value = name6 + "-handler " + /*theme*/
|
|
12679
|
+
ctx2[2])) {
|
|
12691
12680
|
attr(label, "class", label_class_value);
|
|
12692
12681
|
}
|
|
12693
12682
|
if (!current || dirty & /*theme*/
|
|
12694
|
-
|
|
12695
|
-
ctx2[
|
|
12683
|
+
4 && div1_class_value !== (div1_class_value = name6 + " " + /*theme*/
|
|
12684
|
+
ctx2[2])) {
|
|
12696
12685
|
attr(div1, "class", div1_class_value);
|
|
12697
12686
|
}
|
|
12698
12687
|
if (!current || dirty & /*theme, collapsed*/
|
|
12699
|
-
|
|
12688
|
+
20) {
|
|
12700
12689
|
toggle_class(
|
|
12701
12690
|
div1,
|
|
12702
12691
|
"collapsed",
|
|
12703
12692
|
/*collapsed*/
|
|
12704
|
-
ctx2[
|
|
12693
|
+
ctx2[4]
|
|
12705
12694
|
);
|
|
12706
12695
|
}
|
|
12707
12696
|
},
|
|
@@ -12735,7 +12724,6 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
12735
12724
|
let placement;
|
|
12736
12725
|
let items;
|
|
12737
12726
|
let hide_apps;
|
|
12738
|
-
let colors2;
|
|
12739
12727
|
let $container_height;
|
|
12740
12728
|
let $scroll_height;
|
|
12741
12729
|
let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(18, $phase = $$value)), phase);
|
|
@@ -12746,6 +12734,7 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
12746
12734
|
let { theme = "light" } = $$props;
|
|
12747
12735
|
let { language = "en" } = $$props;
|
|
12748
12736
|
let { config = {} } = $$props;
|
|
12737
|
+
let { colors: colors2 = void 0 } = $$props;
|
|
12749
12738
|
const extra_height = (32 + 4 + 4) * 2;
|
|
12750
12739
|
let collapsed = config.collapsed;
|
|
12751
12740
|
let container_height = writable(0);
|
|
@@ -12754,26 +12743,28 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
12754
12743
|
component_subscribe($$self, scroll_height, (value) => $$invalidate(17, $scroll_height = value));
|
|
12755
12744
|
function input_change_handler() {
|
|
12756
12745
|
collapsed = this.checked;
|
|
12757
|
-
$$invalidate(
|
|
12746
|
+
$$invalidate(4, collapsed);
|
|
12758
12747
|
}
|
|
12759
12748
|
$$self.$$set = ($$props2) => {
|
|
12760
12749
|
if ("app" in $$props2)
|
|
12761
|
-
$$invalidate(
|
|
12750
|
+
$$invalidate(1, app = $$props2.app);
|
|
12762
12751
|
if ("theme" in $$props2)
|
|
12763
|
-
$$invalidate(
|
|
12752
|
+
$$invalidate(2, theme = $$props2.theme);
|
|
12764
12753
|
if ("language" in $$props2)
|
|
12765
|
-
$$invalidate(
|
|
12754
|
+
$$invalidate(3, language = $$props2.language);
|
|
12766
12755
|
if ("config" in $$props2)
|
|
12767
12756
|
$$invalidate(15, config = $$props2.config);
|
|
12757
|
+
if ("colors" in $$props2)
|
|
12758
|
+
$$invalidate(0, colors2 = $$props2.colors);
|
|
12768
12759
|
};
|
|
12769
12760
|
$$self.$$.update = () => {
|
|
12770
|
-
var _a;
|
|
12761
|
+
var _a, _b;
|
|
12771
12762
|
if ($$self.$$.dirty & /*app*/
|
|
12772
|
-
|
|
12763
|
+
2) {
|
|
12773
12764
|
$$subscribe_writable($$invalidate(12, writable2 = app == null ? void 0 : app.writable));
|
|
12774
12765
|
}
|
|
12775
12766
|
if ($$self.$$.dirty & /*app*/
|
|
12776
|
-
|
|
12767
|
+
2) {
|
|
12777
12768
|
$$subscribe_phase($$invalidate(11, phase = app == null ? void 0 : app.phase));
|
|
12778
12769
|
}
|
|
12779
12770
|
if ($$self.$$.dirty & /*$writable, $phase*/
|
|
@@ -12800,17 +12791,28 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
12800
12791
|
32768) {
|
|
12801
12792
|
$$invalidate(5, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
12802
12793
|
}
|
|
12803
|
-
if ($$self.$$.dirty & /*config*/
|
|
12804
|
-
|
|
12805
|
-
|
|
12794
|
+
if ($$self.$$.dirty & /*app, colors, config*/
|
|
12795
|
+
32771) {
|
|
12796
|
+
if ((app == null ? void 0 : app.manager) && (app == null ? void 0 : app.manager.room)) {
|
|
12797
|
+
if (colors2 && !((_b = config.colors) == null ? void 0 : _b.length)) {
|
|
12798
|
+
const floatBarOptions = app == null ? void 0 : app.manager.room.floatBarOptions;
|
|
12799
|
+
if (floatBarOptions.colors) {
|
|
12800
|
+
$$invalidate(0, colors2 = floatBarOptions.colors);
|
|
12801
|
+
}
|
|
12802
|
+
} else {
|
|
12803
|
+
$$invalidate(0, colors2 = config.colors);
|
|
12804
|
+
}
|
|
12805
|
+
} else {
|
|
12806
|
+
$$invalidate(0, colors2 = default_colors);
|
|
12807
|
+
}
|
|
12806
12808
|
}
|
|
12807
12809
|
};
|
|
12808
12810
|
return [
|
|
12811
|
+
colors2,
|
|
12809
12812
|
app,
|
|
12810
12813
|
theme,
|
|
12811
12814
|
language,
|
|
12812
12815
|
collapsed,
|
|
12813
|
-
colors2,
|
|
12814
12816
|
hide_apps,
|
|
12815
12817
|
items,
|
|
12816
12818
|
placement,
|
|
@@ -12833,10 +12835,11 @@ var Toolbar = class extends SvelteComponent {
|
|
|
12833
12835
|
constructor(options) {
|
|
12834
12836
|
super();
|
|
12835
12837
|
init(this, options, instance68, create_fragment68, safe_not_equal, {
|
|
12836
|
-
app:
|
|
12837
|
-
theme:
|
|
12838
|
-
language:
|
|
12839
|
-
config: 15
|
|
12838
|
+
app: 1,
|
|
12839
|
+
theme: 2,
|
|
12840
|
+
language: 3,
|
|
12841
|
+
config: 15,
|
|
12842
|
+
colors: 0
|
|
12840
12843
|
});
|
|
12841
12844
|
}
|
|
12842
12845
|
};
|
|
@@ -13782,11 +13785,7 @@ var i18n6 = {
|
|
|
13782
13785
|
pause: "Pause",
|
|
13783
13786
|
speed: "Speed"
|
|
13784
13787
|
},
|
|
13785
|
-
"zh-CN": {
|
|
13786
|
-
play: "\u64AD\u653E",
|
|
13787
|
-
pause: "\u6682\u505C",
|
|
13788
|
-
speed: "\u901F\u5EA6"
|
|
13789
|
-
}
|
|
13788
|
+
"zh-CN": { play: "\u64AD\u653E", pause: "\u6682\u505C", speed: "\u901F\u5EA6" }
|
|
13790
13789
|
};
|
|
13791
13790
|
function format(ms) {
|
|
13792
13791
|
const s = Math.floor(ms / 1e3);
|
|
@@ -14198,19 +14197,19 @@ function create_if_block_32(ctx) {
|
|
|
14198
14197
|
props: {
|
|
14199
14198
|
app: (
|
|
14200
14199
|
/*app*/
|
|
14201
|
-
ctx[
|
|
14200
|
+
ctx[0]
|
|
14202
14201
|
),
|
|
14203
14202
|
theme: (
|
|
14204
14203
|
/*theme*/
|
|
14205
|
-
ctx[
|
|
14204
|
+
ctx[1]
|
|
14206
14205
|
),
|
|
14207
14206
|
language: (
|
|
14208
14207
|
/*language*/
|
|
14209
|
-
ctx[
|
|
14208
|
+
ctx[2]
|
|
14210
14209
|
),
|
|
14211
14210
|
config: (
|
|
14212
14211
|
/*config*/
|
|
14213
|
-
ctx[
|
|
14212
|
+
ctx[3].toolbar || {}
|
|
14214
14213
|
)
|
|
14215
14214
|
}
|
|
14216
14215
|
});
|
|
@@ -14225,21 +14224,21 @@ function create_if_block_32(ctx) {
|
|
|
14225
14224
|
p(ctx2, dirty) {
|
|
14226
14225
|
const toolbar_changes = {};
|
|
14227
14226
|
if (dirty & /*app*/
|
|
14228
|
-
|
|
14227
|
+
1)
|
|
14229
14228
|
toolbar_changes.app = /*app*/
|
|
14230
|
-
ctx2[
|
|
14229
|
+
ctx2[0];
|
|
14231
14230
|
if (dirty & /*theme*/
|
|
14232
|
-
|
|
14231
|
+
2)
|
|
14233
14232
|
toolbar_changes.theme = /*theme*/
|
|
14234
|
-
ctx2[
|
|
14233
|
+
ctx2[1];
|
|
14235
14234
|
if (dirty & /*language*/
|
|
14236
|
-
|
|
14235
|
+
4)
|
|
14237
14236
|
toolbar_changes.language = /*language*/
|
|
14238
|
-
ctx2[
|
|
14237
|
+
ctx2[2];
|
|
14239
14238
|
if (dirty & /*config*/
|
|
14240
|
-
|
|
14239
|
+
8)
|
|
14241
14240
|
toolbar_changes.config = /*config*/
|
|
14242
|
-
ctx2[
|
|
14241
|
+
ctx2[3].toolbar || {};
|
|
14243
14242
|
toolbar.$set(toolbar_changes);
|
|
14244
14243
|
},
|
|
14245
14244
|
i(local) {
|
|
@@ -14264,15 +14263,15 @@ function create_if_block_23(ctx) {
|
|
|
14264
14263
|
props: {
|
|
14265
14264
|
app: (
|
|
14266
14265
|
/*app*/
|
|
14267
|
-
ctx[
|
|
14266
|
+
ctx[0]
|
|
14268
14267
|
),
|
|
14269
14268
|
theme: (
|
|
14270
14269
|
/*theme*/
|
|
14271
|
-
ctx[
|
|
14270
|
+
ctx[1]
|
|
14272
14271
|
),
|
|
14273
14272
|
language: (
|
|
14274
14273
|
/*language*/
|
|
14275
|
-
ctx[
|
|
14274
|
+
ctx[2]
|
|
14276
14275
|
)
|
|
14277
14276
|
}
|
|
14278
14277
|
});
|
|
@@ -14287,17 +14286,17 @@ function create_if_block_23(ctx) {
|
|
|
14287
14286
|
p(ctx2, dirty) {
|
|
14288
14287
|
const redoundo_changes = {};
|
|
14289
14288
|
if (dirty & /*app*/
|
|
14290
|
-
|
|
14289
|
+
1)
|
|
14291
14290
|
redoundo_changes.app = /*app*/
|
|
14292
|
-
ctx2[
|
|
14291
|
+
ctx2[0];
|
|
14293
14292
|
if (dirty & /*theme*/
|
|
14294
|
-
|
|
14293
|
+
2)
|
|
14295
14294
|
redoundo_changes.theme = /*theme*/
|
|
14296
|
-
ctx2[
|
|
14295
|
+
ctx2[1];
|
|
14297
14296
|
if (dirty & /*language*/
|
|
14298
|
-
|
|
14297
|
+
4)
|
|
14299
14298
|
redoundo_changes.language = /*language*/
|
|
14300
|
-
ctx2[
|
|
14299
|
+
ctx2[2];
|
|
14301
14300
|
redoundo.$set(redoundo_changes);
|
|
14302
14301
|
},
|
|
14303
14302
|
i(local) {
|
|
@@ -14322,15 +14321,15 @@ function create_if_block_14(ctx) {
|
|
|
14322
14321
|
props: {
|
|
14323
14322
|
app: (
|
|
14324
14323
|
/*app*/
|
|
14325
|
-
ctx[
|
|
14324
|
+
ctx[0]
|
|
14326
14325
|
),
|
|
14327
14326
|
theme: (
|
|
14328
14327
|
/*theme*/
|
|
14329
|
-
ctx[
|
|
14328
|
+
ctx[1]
|
|
14330
14329
|
),
|
|
14331
14330
|
language: (
|
|
14332
14331
|
/*language*/
|
|
14333
|
-
ctx[
|
|
14332
|
+
ctx[2]
|
|
14334
14333
|
)
|
|
14335
14334
|
}
|
|
14336
14335
|
});
|
|
@@ -14345,17 +14344,17 @@ function create_if_block_14(ctx) {
|
|
|
14345
14344
|
p(ctx2, dirty) {
|
|
14346
14345
|
const zoomcontrol_changes = {};
|
|
14347
14346
|
if (dirty & /*app*/
|
|
14348
|
-
|
|
14347
|
+
1)
|
|
14349
14348
|
zoomcontrol_changes.app = /*app*/
|
|
14350
|
-
ctx2[
|
|
14349
|
+
ctx2[0];
|
|
14351
14350
|
if (dirty & /*theme*/
|
|
14352
|
-
|
|
14351
|
+
2)
|
|
14353
14352
|
zoomcontrol_changes.theme = /*theme*/
|
|
14354
|
-
ctx2[
|
|
14353
|
+
ctx2[1];
|
|
14355
14354
|
if (dirty & /*language*/
|
|
14356
|
-
|
|
14355
|
+
4)
|
|
14357
14356
|
zoomcontrol_changes.language = /*language*/
|
|
14358
|
-
ctx2[
|
|
14357
|
+
ctx2[2];
|
|
14359
14358
|
zoomcontrol.$set(zoomcontrol_changes);
|
|
14360
14359
|
},
|
|
14361
14360
|
i(local) {
|
|
@@ -14380,15 +14379,15 @@ function create_if_block18(ctx) {
|
|
|
14380
14379
|
props: {
|
|
14381
14380
|
app: (
|
|
14382
14381
|
/*app*/
|
|
14383
|
-
ctx[
|
|
14382
|
+
ctx[0]
|
|
14384
14383
|
),
|
|
14385
14384
|
theme: (
|
|
14386
14385
|
/*theme*/
|
|
14387
|
-
ctx[
|
|
14386
|
+
ctx[1]
|
|
14388
14387
|
),
|
|
14389
14388
|
language: (
|
|
14390
14389
|
/*language*/
|
|
14391
|
-
ctx[
|
|
14390
|
+
ctx[2]
|
|
14392
14391
|
)
|
|
14393
14392
|
}
|
|
14394
14393
|
});
|
|
@@ -14403,17 +14402,17 @@ function create_if_block18(ctx) {
|
|
|
14403
14402
|
p(ctx2, dirty) {
|
|
14404
14403
|
const pagecontrol_changes = {};
|
|
14405
14404
|
if (dirty & /*app*/
|
|
14406
|
-
|
|
14405
|
+
1)
|
|
14407
14406
|
pagecontrol_changes.app = /*app*/
|
|
14408
|
-
ctx2[
|
|
14407
|
+
ctx2[0];
|
|
14409
14408
|
if (dirty & /*theme*/
|
|
14410
|
-
|
|
14409
|
+
2)
|
|
14411
14410
|
pagecontrol_changes.theme = /*theme*/
|
|
14412
|
-
ctx2[
|
|
14411
|
+
ctx2[1];
|
|
14413
14412
|
if (dirty & /*language*/
|
|
14414
|
-
|
|
14413
|
+
4)
|
|
14415
14414
|
pagecontrol_changes.language = /*language*/
|
|
14416
|
-
ctx2[
|
|
14415
|
+
ctx2[2];
|
|
14417
14416
|
pagecontrol.$set(pagecontrol_changes);
|
|
14418
14417
|
},
|
|
14419
14418
|
i(local) {
|
|
@@ -14448,19 +14447,19 @@ function create_fragment71(ctx) {
|
|
|
14448
14447
|
let dispose;
|
|
14449
14448
|
let if_block0 = (
|
|
14450
14449
|
/*config*/
|
|
14451
|
-
((_a = ctx[
|
|
14450
|
+
((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx)
|
|
14452
14451
|
);
|
|
14453
14452
|
let if_block1 = (
|
|
14454
14453
|
/*config*/
|
|
14455
|
-
((_b = ctx[
|
|
14454
|
+
((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx)
|
|
14456
14455
|
);
|
|
14457
14456
|
let if_block2 = (
|
|
14458
14457
|
/*config*/
|
|
14459
|
-
((_c = ctx[
|
|
14458
|
+
((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_14(ctx)
|
|
14460
14459
|
);
|
|
14461
14460
|
let if_block3 = (
|
|
14462
14461
|
/*config*/
|
|
14463
|
-
((_d = ctx[
|
|
14462
|
+
((_d = ctx[3].page_control) == null ? void 0 : _d.enable) !== false && create_if_block18(ctx)
|
|
14464
14463
|
);
|
|
14465
14464
|
return {
|
|
14466
14465
|
c() {
|
|
@@ -14484,7 +14483,7 @@ function create_fragment71(ctx) {
|
|
|
14484
14483
|
if_block3.c();
|
|
14485
14484
|
attr(div0, "class", name9 + "-view");
|
|
14486
14485
|
attr(div1, "class", div1_class_value = name9 + "-" + /*config*/
|
|
14487
|
-
(((_a2 = ctx[
|
|
14486
|
+
(((_a2 = ctx[3].toolbar) == null ? void 0 : _a2.placement) || "left"));
|
|
14488
14487
|
toggle_class(div1, "hidden", !/*toolbar_has_items*/
|
|
14489
14488
|
ctx[6] || !/*layout*/
|
|
14490
14489
|
(ctx[5] === "visible" || /*layout*/
|
|
@@ -14505,12 +14504,12 @@ function create_fragment71(ctx) {
|
|
|
14505
14504
|
);
|
|
14506
14505
|
attr(div4, "class", name9 + "-root");
|
|
14507
14506
|
toggle_class(div4, "loading", !/*app*/
|
|
14508
|
-
ctx[
|
|
14507
|
+
ctx[0]);
|
|
14509
14508
|
},
|
|
14510
14509
|
m(target, anchor) {
|
|
14511
14510
|
insert(target, div4, anchor);
|
|
14512
14511
|
append(div4, div0);
|
|
14513
|
-
ctx[
|
|
14512
|
+
ctx[16](div0);
|
|
14514
14513
|
append(div4, t0);
|
|
14515
14514
|
append(div4, div1);
|
|
14516
14515
|
if (if_block0)
|
|
@@ -14542,12 +14541,12 @@ function create_fragment71(ctx) {
|
|
|
14542
14541
|
var _a2, _b2, _c2, _d2, _e;
|
|
14543
14542
|
if (
|
|
14544
14543
|
/*config*/
|
|
14545
|
-
((_a2 = ctx2[
|
|
14544
|
+
((_a2 = ctx2[3].toolbar) == null ? void 0 : _a2.enable) !== false
|
|
14546
14545
|
) {
|
|
14547
14546
|
if (if_block0) {
|
|
14548
14547
|
if_block0.p(ctx2, dirty);
|
|
14549
14548
|
if (dirty & /*config*/
|
|
14550
|
-
|
|
14549
|
+
8) {
|
|
14551
14550
|
transition_in(if_block0, 1);
|
|
14552
14551
|
}
|
|
14553
14552
|
} else {
|
|
@@ -14564,12 +14563,12 @@ function create_fragment71(ctx) {
|
|
|
14564
14563
|
check_outros();
|
|
14565
14564
|
}
|
|
14566
14565
|
if (!current || dirty & /*config*/
|
|
14567
|
-
|
|
14568
|
-
(((_b2 = ctx2[
|
|
14566
|
+
8 && div1_class_value !== (div1_class_value = name9 + "-" + /*config*/
|
|
14567
|
+
(((_b2 = ctx2[3].toolbar) == null ? void 0 : _b2.placement) || "left"))) {
|
|
14569
14568
|
attr(div1, "class", div1_class_value);
|
|
14570
14569
|
}
|
|
14571
14570
|
if (!current || dirty & /*config, toolbar_has_items, layout*/
|
|
14572
|
-
|
|
14571
|
+
104) {
|
|
14573
14572
|
toggle_class(div1, "hidden", !/*toolbar_has_items*/
|
|
14574
14573
|
ctx2[6] || !/*layout*/
|
|
14575
14574
|
(ctx2[5] === "visible" || /*layout*/
|
|
@@ -14577,12 +14576,12 @@ function create_fragment71(ctx) {
|
|
|
14577
14576
|
}
|
|
14578
14577
|
if (
|
|
14579
14578
|
/*config*/
|
|
14580
|
-
((_c2 = ctx2[
|
|
14579
|
+
((_c2 = ctx2[3].redo_undo) == null ? void 0 : _c2.enable) !== false
|
|
14581
14580
|
) {
|
|
14582
14581
|
if (if_block1) {
|
|
14583
14582
|
if_block1.p(ctx2, dirty);
|
|
14584
14583
|
if (dirty & /*config*/
|
|
14585
|
-
|
|
14584
|
+
8) {
|
|
14586
14585
|
transition_in(if_block1, 1);
|
|
14587
14586
|
}
|
|
14588
14587
|
} else {
|
|
@@ -14600,12 +14599,12 @@ function create_fragment71(ctx) {
|
|
|
14600
14599
|
}
|
|
14601
14600
|
if (
|
|
14602
14601
|
/*config*/
|
|
14603
|
-
((_d2 = ctx2[
|
|
14602
|
+
((_d2 = ctx2[3].zoom_control) == null ? void 0 : _d2.enable) !== false
|
|
14604
14603
|
) {
|
|
14605
14604
|
if (if_block2) {
|
|
14606
14605
|
if_block2.p(ctx2, dirty);
|
|
14607
14606
|
if (dirty & /*config*/
|
|
14608
|
-
|
|
14607
|
+
8) {
|
|
14609
14608
|
transition_in(if_block2, 1);
|
|
14610
14609
|
}
|
|
14611
14610
|
} else {
|
|
@@ -14632,12 +14631,12 @@ function create_fragment71(ctx) {
|
|
|
14632
14631
|
}
|
|
14633
14632
|
if (
|
|
14634
14633
|
/*config*/
|
|
14635
|
-
((_e = ctx2[
|
|
14634
|
+
((_e = ctx2[3].page_control) == null ? void 0 : _e.enable) !== false
|
|
14636
14635
|
) {
|
|
14637
14636
|
if (if_block3) {
|
|
14638
14637
|
if_block3.p(ctx2, dirty);
|
|
14639
14638
|
if (dirty & /*config*/
|
|
14640
|
-
|
|
14639
|
+
8) {
|
|
14641
14640
|
transition_in(if_block3, 1);
|
|
14642
14641
|
}
|
|
14643
14642
|
} else {
|
|
@@ -14663,9 +14662,9 @@ function create_fragment71(ctx) {
|
|
|
14663
14662
|
);
|
|
14664
14663
|
}
|
|
14665
14664
|
if (!current || dirty & /*app*/
|
|
14666
|
-
|
|
14665
|
+
1) {
|
|
14667
14666
|
toggle_class(div4, "loading", !/*app*/
|
|
14668
|
-
ctx2[
|
|
14667
|
+
ctx2[0]);
|
|
14669
14668
|
}
|
|
14670
14669
|
},
|
|
14671
14670
|
i(local) {
|
|
@@ -14687,7 +14686,7 @@ function create_fragment71(ctx) {
|
|
|
14687
14686
|
d(detaching) {
|
|
14688
14687
|
if (detaching)
|
|
14689
14688
|
detach(div4);
|
|
14690
|
-
ctx[
|
|
14689
|
+
ctx[16](null);
|
|
14691
14690
|
if (if_block0)
|
|
14692
14691
|
if_block0.d();
|
|
14693
14692
|
if (if_block1)
|
|
@@ -14703,15 +14702,13 @@ function create_fragment71(ctx) {
|
|
|
14703
14702
|
}
|
|
14704
14703
|
var name9 = "fastboard";
|
|
14705
14704
|
function instance71($$self, $$props, $$invalidate) {
|
|
14706
|
-
let manager;
|
|
14707
|
-
let room;
|
|
14708
14705
|
let writable2;
|
|
14709
14706
|
let boxState;
|
|
14710
14707
|
let focusedApp;
|
|
14711
14708
|
let toolbar_has_items;
|
|
14712
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(
|
|
14713
|
-
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(
|
|
14714
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
14709
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(13, $focusedApp = $$value)), focusedApp);
|
|
14710
|
+
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(14, $boxState = $$value)), boxState);
|
|
14711
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(15, $writable = $$value)), writable2);
|
|
14715
14712
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
14716
14713
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
14717
14714
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -14720,7 +14717,6 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
14720
14717
|
let { language = "en" } = $$props;
|
|
14721
14718
|
let { containerRef = void 0 } = $$props;
|
|
14722
14719
|
let { config = {} } = $$props;
|
|
14723
|
-
let { colors: colors2 = void 0 } = $$props;
|
|
14724
14720
|
const AppsShowToolbar = ["DocsViewer", "Slide"];
|
|
14725
14721
|
let container;
|
|
14726
14722
|
let layout = "hidden";
|
|
@@ -14747,58 +14743,31 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
14747
14743
|
}
|
|
14748
14744
|
$$self.$$set = ($$props2) => {
|
|
14749
14745
|
if ("app" in $$props2)
|
|
14750
|
-
$$invalidate(
|
|
14746
|
+
$$invalidate(0, app = $$props2.app);
|
|
14751
14747
|
if ("theme" in $$props2)
|
|
14752
|
-
$$invalidate(
|
|
14748
|
+
$$invalidate(1, theme = $$props2.theme);
|
|
14753
14749
|
if ("language" in $$props2)
|
|
14754
|
-
$$invalidate(
|
|
14750
|
+
$$invalidate(2, language = $$props2.language);
|
|
14755
14751
|
if ("containerRef" in $$props2)
|
|
14756
|
-
$$invalidate(
|
|
14752
|
+
$$invalidate(11, containerRef = $$props2.containerRef);
|
|
14757
14753
|
if ("config" in $$props2)
|
|
14758
|
-
$$invalidate(
|
|
14759
|
-
if ("colors" in $$props2)
|
|
14760
|
-
$$invalidate(11, colors2 = $$props2.colors);
|
|
14754
|
+
$$invalidate(3, config = $$props2.config);
|
|
14761
14755
|
};
|
|
14762
14756
|
$$self.$$.update = () => {
|
|
14763
14757
|
if ($$self.$$.dirty & /*app*/
|
|
14764
|
-
|
|
14765
|
-
$$invalidate(15, manager = app == null ? void 0 : app.manager);
|
|
14766
|
-
}
|
|
14767
|
-
if ($$self.$$.dirty & /*app*/
|
|
14768
|
-
2) {
|
|
14769
|
-
$$invalidate(14, room = app == null ? void 0 : app.manager.room);
|
|
14770
|
-
}
|
|
14771
|
-
if ($$self.$$.dirty & /*manager, room, config, colors*/
|
|
14772
|
-
51201) {
|
|
14773
|
-
if (manager && room) {
|
|
14774
|
-
const floatBarOptions = room.floatBarOptions;
|
|
14775
|
-
if (floatBarOptions.colors) {
|
|
14776
|
-
$$invalidate(11, colors2 = floatBarOptions.colors);
|
|
14777
|
-
}
|
|
14778
|
-
if (config == null ? void 0 : config.toolbar) {
|
|
14779
|
-
const _colors = config.toolbar.colors;
|
|
14780
|
-
if (!_colors && colors2) {
|
|
14781
|
-
$$invalidate(0, config = __spreadProps(__spreadValues({}, config), {
|
|
14782
|
-
toolbar: __spreadProps(__spreadValues({}, config.toolbar), { colors: colors2 })
|
|
14783
|
-
}));
|
|
14784
|
-
}
|
|
14785
|
-
}
|
|
14786
|
-
}
|
|
14787
|
-
}
|
|
14788
|
-
if ($$self.$$.dirty & /*app*/
|
|
14789
|
-
2) {
|
|
14758
|
+
1) {
|
|
14790
14759
|
$$subscribe_writable($$invalidate(9, writable2 = app == null ? void 0 : app.writable));
|
|
14791
14760
|
}
|
|
14792
14761
|
if ($$self.$$.dirty & /*app*/
|
|
14793
|
-
|
|
14762
|
+
1) {
|
|
14794
14763
|
$$subscribe_boxState($$invalidate(8, boxState = app == null ? void 0 : app.boxState));
|
|
14795
14764
|
}
|
|
14796
14765
|
if ($$self.$$.dirty & /*app*/
|
|
14797
|
-
|
|
14766
|
+
1) {
|
|
14798
14767
|
$$subscribe_focusedApp($$invalidate(7, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
14799
14768
|
}
|
|
14800
14769
|
if ($$self.$$.dirty & /*$writable, $boxState, $focusedApp*/
|
|
14801
|
-
|
|
14770
|
+
57344) {
|
|
14802
14771
|
if (!$writable) {
|
|
14803
14772
|
$$invalidate(5, layout = "hidden");
|
|
14804
14773
|
} else if ($boxState === "maximized") {
|
|
@@ -14812,15 +14781,15 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
14812
14781
|
}
|
|
14813
14782
|
}
|
|
14814
14783
|
if ($$self.$$.dirty & /*config*/
|
|
14815
|
-
|
|
14784
|
+
8) {
|
|
14816
14785
|
$$invalidate(6, toolbar_has_items = !config.toolbar || !config.toolbar.items || !config.toolbar.apps || config.toolbar.items.length > 0 || config.toolbar.apps.enable !== false);
|
|
14817
14786
|
}
|
|
14818
14787
|
if ($$self.$$.dirty & /*app, container*/
|
|
14819
|
-
|
|
14788
|
+
17) {
|
|
14820
14789
|
try {
|
|
14821
14790
|
if (app && container) {
|
|
14822
14791
|
app.bindContainer(container);
|
|
14823
|
-
$$invalidate(
|
|
14792
|
+
$$invalidate(12, mounted = true);
|
|
14824
14793
|
}
|
|
14825
14794
|
} catch (err) {
|
|
14826
14795
|
console.error("[fastboard] An error occurred while binding container");
|
|
@@ -14828,17 +14797,17 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
14828
14797
|
}
|
|
14829
14798
|
}
|
|
14830
14799
|
if ($$self.$$.dirty & /*app, theme, mounted*/
|
|
14831
|
-
|
|
14800
|
+
4099) {
|
|
14832
14801
|
if (app && theme && mounted) {
|
|
14833
14802
|
app.manager.setPrefersColorScheme(theme);
|
|
14834
14803
|
}
|
|
14835
14804
|
}
|
|
14836
14805
|
};
|
|
14837
14806
|
return [
|
|
14838
|
-
config,
|
|
14839
14807
|
app,
|
|
14840
14808
|
theme,
|
|
14841
14809
|
language,
|
|
14810
|
+
config,
|
|
14842
14811
|
container,
|
|
14843
14812
|
layout,
|
|
14844
14813
|
toolbar_has_items,
|
|
@@ -14846,11 +14815,8 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
14846
14815
|
boxState,
|
|
14847
14816
|
writable2,
|
|
14848
14817
|
focus_me,
|
|
14849
|
-
colors2,
|
|
14850
14818
|
containerRef,
|
|
14851
14819
|
mounted,
|
|
14852
|
-
room,
|
|
14853
|
-
manager,
|
|
14854
14820
|
$focusedApp,
|
|
14855
14821
|
$boxState,
|
|
14856
14822
|
$writable,
|
|
@@ -14861,12 +14827,11 @@ var Fastboard = class extends SvelteComponent {
|
|
|
14861
14827
|
constructor(options) {
|
|
14862
14828
|
super();
|
|
14863
14829
|
init(this, options, instance71, create_fragment71, not_equal, {
|
|
14864
|
-
app:
|
|
14865
|
-
theme:
|
|
14866
|
-
language:
|
|
14867
|
-
containerRef:
|
|
14868
|
-
config:
|
|
14869
|
-
colors: 11
|
|
14830
|
+
app: 0,
|
|
14831
|
+
theme: 1,
|
|
14832
|
+
language: 2,
|
|
14833
|
+
containerRef: 11,
|
|
14834
|
+
config: 3
|
|
14870
14835
|
});
|
|
14871
14836
|
}
|
|
14872
14837
|
};
|
|
@@ -14888,15 +14853,11 @@ function createUI(app, div) {
|
|
|
14888
14853
|
if (fastboard) {
|
|
14889
14854
|
fastboard.$destroy();
|
|
14890
14855
|
}
|
|
14891
|
-
if (
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
props.config = __spreadProps(__spreadValues({}, props.config), {
|
|
14895
|
-
toolbar: __spreadProps(__spreadValues({}, props.config.toolbar), {
|
|
14896
|
-
colors: colors2
|
|
14897
|
-
})
|
|
14898
|
-
});
|
|
14856
|
+
if (colors2 && (props == null ? void 0 : props.config) && !((_a = props.config.toolbar) == null ? void 0 : _a.colors)) {
|
|
14857
|
+
if (!(props == null ? void 0 : props.config.toolbar)) {
|
|
14858
|
+
props.config.toolbar = {};
|
|
14899
14859
|
}
|
|
14860
|
+
props.config.toolbar.colors = colors2;
|
|
14900
14861
|
}
|
|
14901
14862
|
fastboard = new Fastboard_default({ target: div2, props: __spreadValues({ app }, props) });
|
|
14902
14863
|
return ui;
|
|
@@ -14904,15 +14865,11 @@ function createUI(app, div) {
|
|
|
14904
14865
|
update(props) {
|
|
14905
14866
|
var _a;
|
|
14906
14867
|
if (fastboard && props) {
|
|
14907
|
-
if (
|
|
14908
|
-
|
|
14909
|
-
|
|
14910
|
-
props.config = __spreadProps(__spreadValues({}, props.config), {
|
|
14911
|
-
toolbar: __spreadProps(__spreadValues({}, props.config.toolbar), {
|
|
14912
|
-
colors: colors2
|
|
14913
|
-
})
|
|
14914
|
-
});
|
|
14868
|
+
if (colors2 && (props == null ? void 0 : props.config) && !((_a = props.config.toolbar) == null ? void 0 : _a.colors)) {
|
|
14869
|
+
if (!(props == null ? void 0 : props.config.toolbar)) {
|
|
14870
|
+
props.config.toolbar = {};
|
|
14915
14871
|
}
|
|
14872
|
+
props.config.toolbar.colors = colors2;
|
|
14916
14873
|
}
|
|
14917
14874
|
fastboard.$set(props);
|
|
14918
14875
|
}
|