@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.mjs
CHANGED
|
@@ -9979,28 +9979,9 @@ var ReplayFastboard = class extends SvelteComponent {
|
|
|
9979
9979
|
var ReplayFastboard_default = ReplayFastboard;
|
|
9980
9980
|
|
|
9981
9981
|
// src/components/Fastboard/Fastboard.svelte
|
|
9982
|
-
function
|
|
9983
|
-
let div4;
|
|
9984
|
-
let div0;
|
|
9985
|
-
let div0_class_value;
|
|
9986
|
-
let t0;
|
|
9987
|
-
let div1;
|
|
9982
|
+
function create_if_block_32(ctx) {
|
|
9988
9983
|
let toolbar;
|
|
9989
|
-
let div1_class_value;
|
|
9990
|
-
let t1;
|
|
9991
|
-
let div2;
|
|
9992
|
-
let redoundo;
|
|
9993
|
-
let t2;
|
|
9994
|
-
let zoomcontrol;
|
|
9995
|
-
let div2_class_value;
|
|
9996
|
-
let t3;
|
|
9997
|
-
let div3;
|
|
9998
|
-
let pagecontrol;
|
|
9999
|
-
let div3_class_value;
|
|
10000
|
-
let div4_class_value;
|
|
10001
9984
|
let current;
|
|
10002
|
-
let mounted;
|
|
10003
|
-
let dispose;
|
|
10004
9985
|
toolbar = new Toolbar_default({
|
|
10005
9986
|
props: {
|
|
10006
9987
|
app: ctx[0],
|
|
@@ -10008,6 +9989,42 @@ function create_fragment58(ctx) {
|
|
|
10008
9989
|
language: ctx[2]
|
|
10009
9990
|
}
|
|
10010
9991
|
});
|
|
9992
|
+
return {
|
|
9993
|
+
c() {
|
|
9994
|
+
create_component(toolbar.$$.fragment);
|
|
9995
|
+
},
|
|
9996
|
+
m(target, anchor) {
|
|
9997
|
+
mount_component(toolbar, target, anchor);
|
|
9998
|
+
current = true;
|
|
9999
|
+
},
|
|
10000
|
+
p(ctx2, dirty) {
|
|
10001
|
+
const toolbar_changes = {};
|
|
10002
|
+
if (dirty & 1)
|
|
10003
|
+
toolbar_changes.app = ctx2[0];
|
|
10004
|
+
if (dirty & 2)
|
|
10005
|
+
toolbar_changes.theme = ctx2[1];
|
|
10006
|
+
if (dirty & 4)
|
|
10007
|
+
toolbar_changes.language = ctx2[2];
|
|
10008
|
+
toolbar.$set(toolbar_changes);
|
|
10009
|
+
},
|
|
10010
|
+
i(local) {
|
|
10011
|
+
if (current)
|
|
10012
|
+
return;
|
|
10013
|
+
transition_in(toolbar.$$.fragment, local);
|
|
10014
|
+
current = true;
|
|
10015
|
+
},
|
|
10016
|
+
o(local) {
|
|
10017
|
+
transition_out(toolbar.$$.fragment, local);
|
|
10018
|
+
current = false;
|
|
10019
|
+
},
|
|
10020
|
+
d(detaching) {
|
|
10021
|
+
destroy_component(toolbar, detaching);
|
|
10022
|
+
}
|
|
10023
|
+
};
|
|
10024
|
+
}
|
|
10025
|
+
function create_if_block_23(ctx) {
|
|
10026
|
+
let redoundo;
|
|
10027
|
+
let current;
|
|
10011
10028
|
redoundo = new RedoUndo_default({
|
|
10012
10029
|
props: {
|
|
10013
10030
|
app: ctx[0],
|
|
@@ -10015,6 +10032,42 @@ function create_fragment58(ctx) {
|
|
|
10015
10032
|
language: ctx[2]
|
|
10016
10033
|
}
|
|
10017
10034
|
});
|
|
10035
|
+
return {
|
|
10036
|
+
c() {
|
|
10037
|
+
create_component(redoundo.$$.fragment);
|
|
10038
|
+
},
|
|
10039
|
+
m(target, anchor) {
|
|
10040
|
+
mount_component(redoundo, target, anchor);
|
|
10041
|
+
current = true;
|
|
10042
|
+
},
|
|
10043
|
+
p(ctx2, dirty) {
|
|
10044
|
+
const redoundo_changes = {};
|
|
10045
|
+
if (dirty & 1)
|
|
10046
|
+
redoundo_changes.app = ctx2[0];
|
|
10047
|
+
if (dirty & 2)
|
|
10048
|
+
redoundo_changes.theme = ctx2[1];
|
|
10049
|
+
if (dirty & 4)
|
|
10050
|
+
redoundo_changes.language = ctx2[2];
|
|
10051
|
+
redoundo.$set(redoundo_changes);
|
|
10052
|
+
},
|
|
10053
|
+
i(local) {
|
|
10054
|
+
if (current)
|
|
10055
|
+
return;
|
|
10056
|
+
transition_in(redoundo.$$.fragment, local);
|
|
10057
|
+
current = true;
|
|
10058
|
+
},
|
|
10059
|
+
o(local) {
|
|
10060
|
+
transition_out(redoundo.$$.fragment, local);
|
|
10061
|
+
current = false;
|
|
10062
|
+
},
|
|
10063
|
+
d(detaching) {
|
|
10064
|
+
destroy_component(redoundo, detaching);
|
|
10065
|
+
}
|
|
10066
|
+
};
|
|
10067
|
+
}
|
|
10068
|
+
function create_if_block_14(ctx) {
|
|
10069
|
+
let zoomcontrol;
|
|
10070
|
+
let current;
|
|
10018
10071
|
zoomcontrol = new ZoomControl_default({
|
|
10019
10072
|
props: {
|
|
10020
10073
|
app: ctx[0],
|
|
@@ -10022,6 +10075,42 @@ function create_fragment58(ctx) {
|
|
|
10022
10075
|
language: ctx[2]
|
|
10023
10076
|
}
|
|
10024
10077
|
});
|
|
10078
|
+
return {
|
|
10079
|
+
c() {
|
|
10080
|
+
create_component(zoomcontrol.$$.fragment);
|
|
10081
|
+
},
|
|
10082
|
+
m(target, anchor) {
|
|
10083
|
+
mount_component(zoomcontrol, target, anchor);
|
|
10084
|
+
current = true;
|
|
10085
|
+
},
|
|
10086
|
+
p(ctx2, dirty) {
|
|
10087
|
+
const zoomcontrol_changes = {};
|
|
10088
|
+
if (dirty & 1)
|
|
10089
|
+
zoomcontrol_changes.app = ctx2[0];
|
|
10090
|
+
if (dirty & 2)
|
|
10091
|
+
zoomcontrol_changes.theme = ctx2[1];
|
|
10092
|
+
if (dirty & 4)
|
|
10093
|
+
zoomcontrol_changes.language = ctx2[2];
|
|
10094
|
+
zoomcontrol.$set(zoomcontrol_changes);
|
|
10095
|
+
},
|
|
10096
|
+
i(local) {
|
|
10097
|
+
if (current)
|
|
10098
|
+
return;
|
|
10099
|
+
transition_in(zoomcontrol.$$.fragment, local);
|
|
10100
|
+
current = true;
|
|
10101
|
+
},
|
|
10102
|
+
o(local) {
|
|
10103
|
+
transition_out(zoomcontrol.$$.fragment, local);
|
|
10104
|
+
current = false;
|
|
10105
|
+
},
|
|
10106
|
+
d(detaching) {
|
|
10107
|
+
destroy_component(zoomcontrol, detaching);
|
|
10108
|
+
}
|
|
10109
|
+
};
|
|
10110
|
+
}
|
|
10111
|
+
function create_if_block9(ctx) {
|
|
10112
|
+
let pagecontrol;
|
|
10113
|
+
let current;
|
|
10025
10114
|
pagecontrol = new PageControl_default({
|
|
10026
10115
|
props: {
|
|
10027
10116
|
app: ctx[0],
|
|
@@ -10029,46 +10118,110 @@ function create_fragment58(ctx) {
|
|
|
10029
10118
|
language: ctx[2]
|
|
10030
10119
|
}
|
|
10031
10120
|
});
|
|
10121
|
+
return {
|
|
10122
|
+
c() {
|
|
10123
|
+
create_component(pagecontrol.$$.fragment);
|
|
10124
|
+
},
|
|
10125
|
+
m(target, anchor) {
|
|
10126
|
+
mount_component(pagecontrol, target, anchor);
|
|
10127
|
+
current = true;
|
|
10128
|
+
},
|
|
10129
|
+
p(ctx2, dirty) {
|
|
10130
|
+
const pagecontrol_changes = {};
|
|
10131
|
+
if (dirty & 1)
|
|
10132
|
+
pagecontrol_changes.app = ctx2[0];
|
|
10133
|
+
if (dirty & 2)
|
|
10134
|
+
pagecontrol_changes.theme = ctx2[1];
|
|
10135
|
+
if (dirty & 4)
|
|
10136
|
+
pagecontrol_changes.language = ctx2[2];
|
|
10137
|
+
pagecontrol.$set(pagecontrol_changes);
|
|
10138
|
+
},
|
|
10139
|
+
i(local) {
|
|
10140
|
+
if (current)
|
|
10141
|
+
return;
|
|
10142
|
+
transition_in(pagecontrol.$$.fragment, local);
|
|
10143
|
+
current = true;
|
|
10144
|
+
},
|
|
10145
|
+
o(local) {
|
|
10146
|
+
transition_out(pagecontrol.$$.fragment, local);
|
|
10147
|
+
current = false;
|
|
10148
|
+
},
|
|
10149
|
+
d(detaching) {
|
|
10150
|
+
destroy_component(pagecontrol, detaching);
|
|
10151
|
+
}
|
|
10152
|
+
};
|
|
10153
|
+
}
|
|
10154
|
+
function create_fragment58(ctx) {
|
|
10155
|
+
var _a, _b, _c, _d;
|
|
10156
|
+
let div4;
|
|
10157
|
+
let div0;
|
|
10158
|
+
let div0_class_value;
|
|
10159
|
+
let t0;
|
|
10160
|
+
let div1;
|
|
10161
|
+
let div1_class_value;
|
|
10162
|
+
let t1;
|
|
10163
|
+
let div2;
|
|
10164
|
+
let t2;
|
|
10165
|
+
let div2_class_value;
|
|
10166
|
+
let t3;
|
|
10167
|
+
let div3;
|
|
10168
|
+
let div3_class_value;
|
|
10169
|
+
let div4_class_value;
|
|
10170
|
+
let current;
|
|
10171
|
+
let mounted;
|
|
10172
|
+
let dispose;
|
|
10173
|
+
let if_block0 = ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx);
|
|
10174
|
+
let if_block1 = ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx);
|
|
10175
|
+
let if_block2 = ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_14(ctx);
|
|
10176
|
+
let if_block3 = ((_d = ctx[3].page_control) == null ? void 0 : _d.enable) !== false && create_if_block9(ctx);
|
|
10032
10177
|
return {
|
|
10033
10178
|
c() {
|
|
10034
10179
|
div4 = element("div");
|
|
10035
10180
|
div0 = element("div");
|
|
10036
10181
|
t0 = space();
|
|
10037
10182
|
div1 = element("div");
|
|
10038
|
-
|
|
10183
|
+
if (if_block0)
|
|
10184
|
+
if_block0.c();
|
|
10039
10185
|
t1 = space();
|
|
10040
10186
|
div2 = element("div");
|
|
10041
|
-
|
|
10187
|
+
if (if_block1)
|
|
10188
|
+
if_block1.c();
|
|
10042
10189
|
t2 = space();
|
|
10043
|
-
|
|
10190
|
+
if (if_block2)
|
|
10191
|
+
if_block2.c();
|
|
10044
10192
|
t3 = space();
|
|
10045
10193
|
div3 = element("div");
|
|
10046
|
-
|
|
10194
|
+
if (if_block3)
|
|
10195
|
+
if_block3.c();
|
|
10047
10196
|
attr(div0, "class", div0_class_value = name9 + "-view");
|
|
10048
10197
|
attr(div1, "class", div1_class_value = name9 + "-left");
|
|
10049
|
-
toggle_class(div1, "hidden", !(ctx[
|
|
10198
|
+
toggle_class(div1, "hidden", !(ctx[5] === "visible" || ctx[5] === "toolbar-only"));
|
|
10050
10199
|
attr(div2, "class", div2_class_value = name9 + "-bottom-left");
|
|
10051
|
-
toggle_class(div2, "hidden", ctx[
|
|
10200
|
+
toggle_class(div2, "hidden", ctx[5] !== "visible");
|
|
10052
10201
|
attr(div3, "class", div3_class_value = name9 + "-bottom-right");
|
|
10053
|
-
toggle_class(div3, "hidden", ctx[
|
|
10202
|
+
toggle_class(div3, "hidden", ctx[5] !== "visible");
|
|
10054
10203
|
attr(div4, "class", div4_class_value = name9 + "-root");
|
|
10055
10204
|
toggle_class(div4, "loading", !ctx[0]);
|
|
10056
10205
|
},
|
|
10057
10206
|
m(target, anchor) {
|
|
10058
10207
|
insert(target, div4, anchor);
|
|
10059
10208
|
append(div4, div0);
|
|
10060
|
-
ctx[
|
|
10209
|
+
ctx[13](div0);
|
|
10061
10210
|
append(div4, t0);
|
|
10062
10211
|
append(div4, div1);
|
|
10063
|
-
|
|
10212
|
+
if (if_block0)
|
|
10213
|
+
if_block0.m(div1, null);
|
|
10064
10214
|
append(div4, t1);
|
|
10065
10215
|
append(div4, div2);
|
|
10066
|
-
|
|
10216
|
+
if (if_block1)
|
|
10217
|
+
if_block1.m(div2, null);
|
|
10067
10218
|
append(div2, t2);
|
|
10068
|
-
|
|
10219
|
+
if (if_block2)
|
|
10220
|
+
if_block2.m(div2, null);
|
|
10069
10221
|
append(div4, t3);
|
|
10070
10222
|
append(div4, div3);
|
|
10071
|
-
|
|
10223
|
+
if (if_block3)
|
|
10224
|
+
if_block3.m(div3, null);
|
|
10072
10225
|
current = true;
|
|
10073
10226
|
if (!mounted) {
|
|
10074
10227
|
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
@@ -10076,46 +10229,91 @@ function create_fragment58(ctx) {
|
|
|
10076
10229
|
}
|
|
10077
10230
|
},
|
|
10078
10231
|
p(ctx2, [dirty]) {
|
|
10079
|
-
|
|
10080
|
-
if (
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
|
|
10232
|
+
var _a2, _b2, _c2, _d2;
|
|
10233
|
+
if (((_a2 = ctx2[3].toolbar) == null ? void 0 : _a2.enable) !== false) {
|
|
10234
|
+
if (if_block0) {
|
|
10235
|
+
if_block0.p(ctx2, dirty);
|
|
10236
|
+
if (dirty & 8) {
|
|
10237
|
+
transition_in(if_block0, 1);
|
|
10238
|
+
}
|
|
10239
|
+
} else {
|
|
10240
|
+
if_block0 = create_if_block_32(ctx2);
|
|
10241
|
+
if_block0.c();
|
|
10242
|
+
transition_in(if_block0, 1);
|
|
10243
|
+
if_block0.m(div1, null);
|
|
10244
|
+
}
|
|
10245
|
+
} else if (if_block0) {
|
|
10246
|
+
group_outros();
|
|
10247
|
+
transition_out(if_block0, 1, 1, () => {
|
|
10248
|
+
if_block0 = null;
|
|
10249
|
+
});
|
|
10250
|
+
check_outros();
|
|
10089
10251
|
}
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
redoundo_changes.app = ctx2[0];
|
|
10093
|
-
if (dirty & 2)
|
|
10094
|
-
redoundo_changes.theme = ctx2[1];
|
|
10095
|
-
if (dirty & 4)
|
|
10096
|
-
redoundo_changes.language = ctx2[2];
|
|
10097
|
-
redoundo.$set(redoundo_changes);
|
|
10098
|
-
const zoomcontrol_changes = {};
|
|
10099
|
-
if (dirty & 1)
|
|
10100
|
-
zoomcontrol_changes.app = ctx2[0];
|
|
10101
|
-
if (dirty & 2)
|
|
10102
|
-
zoomcontrol_changes.theme = ctx2[1];
|
|
10103
|
-
if (dirty & 4)
|
|
10104
|
-
zoomcontrol_changes.language = ctx2[2];
|
|
10105
|
-
zoomcontrol.$set(zoomcontrol_changes);
|
|
10106
|
-
if (dirty & 16) {
|
|
10107
|
-
toggle_class(div2, "hidden", ctx2[4] !== "visible");
|
|
10252
|
+
if (dirty & 32) {
|
|
10253
|
+
toggle_class(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
10108
10254
|
}
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10255
|
+
if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
|
|
10256
|
+
if (if_block1) {
|
|
10257
|
+
if_block1.p(ctx2, dirty);
|
|
10258
|
+
if (dirty & 8) {
|
|
10259
|
+
transition_in(if_block1, 1);
|
|
10260
|
+
}
|
|
10261
|
+
} else {
|
|
10262
|
+
if_block1 = create_if_block_23(ctx2);
|
|
10263
|
+
if_block1.c();
|
|
10264
|
+
transition_in(if_block1, 1);
|
|
10265
|
+
if_block1.m(div2, t2);
|
|
10266
|
+
}
|
|
10267
|
+
} else if (if_block1) {
|
|
10268
|
+
group_outros();
|
|
10269
|
+
transition_out(if_block1, 1, 1, () => {
|
|
10270
|
+
if_block1 = null;
|
|
10271
|
+
});
|
|
10272
|
+
check_outros();
|
|
10273
|
+
}
|
|
10274
|
+
if (((_c2 = ctx2[3].zoom_control) == null ? void 0 : _c2.enable) !== false) {
|
|
10275
|
+
if (if_block2) {
|
|
10276
|
+
if_block2.p(ctx2, dirty);
|
|
10277
|
+
if (dirty & 8) {
|
|
10278
|
+
transition_in(if_block2, 1);
|
|
10279
|
+
}
|
|
10280
|
+
} else {
|
|
10281
|
+
if_block2 = create_if_block_14(ctx2);
|
|
10282
|
+
if_block2.c();
|
|
10283
|
+
transition_in(if_block2, 1);
|
|
10284
|
+
if_block2.m(div2, null);
|
|
10285
|
+
}
|
|
10286
|
+
} else if (if_block2) {
|
|
10287
|
+
group_outros();
|
|
10288
|
+
transition_out(if_block2, 1, 1, () => {
|
|
10289
|
+
if_block2 = null;
|
|
10290
|
+
});
|
|
10291
|
+
check_outros();
|
|
10292
|
+
}
|
|
10293
|
+
if (dirty & 32) {
|
|
10294
|
+
toggle_class(div2, "hidden", ctx2[5] !== "visible");
|
|
10295
|
+
}
|
|
10296
|
+
if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
|
|
10297
|
+
if (if_block3) {
|
|
10298
|
+
if_block3.p(ctx2, dirty);
|
|
10299
|
+
if (dirty & 8) {
|
|
10300
|
+
transition_in(if_block3, 1);
|
|
10301
|
+
}
|
|
10302
|
+
} else {
|
|
10303
|
+
if_block3 = create_if_block9(ctx2);
|
|
10304
|
+
if_block3.c();
|
|
10305
|
+
transition_in(if_block3, 1);
|
|
10306
|
+
if_block3.m(div3, null);
|
|
10307
|
+
}
|
|
10308
|
+
} else if (if_block3) {
|
|
10309
|
+
group_outros();
|
|
10310
|
+
transition_out(if_block3, 1, 1, () => {
|
|
10311
|
+
if_block3 = null;
|
|
10312
|
+
});
|
|
10313
|
+
check_outros();
|
|
10314
|
+
}
|
|
10315
|
+
if (dirty & 32) {
|
|
10316
|
+
toggle_class(div3, "hidden", ctx2[5] !== "visible");
|
|
10119
10317
|
}
|
|
10120
10318
|
if (dirty & 1) {
|
|
10121
10319
|
toggle_class(div4, "loading", !ctx2[0]);
|
|
@@ -10124,27 +10322,31 @@ function create_fragment58(ctx) {
|
|
|
10124
10322
|
i(local) {
|
|
10125
10323
|
if (current)
|
|
10126
10324
|
return;
|
|
10127
|
-
transition_in(
|
|
10128
|
-
transition_in(
|
|
10129
|
-
transition_in(
|
|
10130
|
-
transition_in(
|
|
10325
|
+
transition_in(if_block0);
|
|
10326
|
+
transition_in(if_block1);
|
|
10327
|
+
transition_in(if_block2);
|
|
10328
|
+
transition_in(if_block3);
|
|
10131
10329
|
current = true;
|
|
10132
10330
|
},
|
|
10133
10331
|
o(local) {
|
|
10134
|
-
transition_out(
|
|
10135
|
-
transition_out(
|
|
10136
|
-
transition_out(
|
|
10137
|
-
transition_out(
|
|
10332
|
+
transition_out(if_block0);
|
|
10333
|
+
transition_out(if_block1);
|
|
10334
|
+
transition_out(if_block2);
|
|
10335
|
+
transition_out(if_block3);
|
|
10138
10336
|
current = false;
|
|
10139
10337
|
},
|
|
10140
10338
|
d(detaching) {
|
|
10141
10339
|
if (detaching)
|
|
10142
10340
|
detach(div4);
|
|
10143
|
-
ctx[
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10341
|
+
ctx[13](null);
|
|
10342
|
+
if (if_block0)
|
|
10343
|
+
if_block0.d();
|
|
10344
|
+
if (if_block1)
|
|
10345
|
+
if_block1.d();
|
|
10346
|
+
if (if_block2)
|
|
10347
|
+
if_block2.d();
|
|
10348
|
+
if (if_block3)
|
|
10349
|
+
if_block3.d();
|
|
10148
10350
|
mounted = false;
|
|
10149
10351
|
dispose();
|
|
10150
10352
|
}
|
|
@@ -10155,9 +10357,9 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10155
10357
|
let writable2;
|
|
10156
10358
|
let boxState;
|
|
10157
10359
|
let focusedApp;
|
|
10158
|
-
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(
|
|
10159
|
-
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(
|
|
10160
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
10360
|
+
let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(10, $focusedApp = $$value)), focusedApp);
|
|
10361
|
+
let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(11, $boxState = $$value)), boxState);
|
|
10362
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(12, $writable = $$value)), writable2);
|
|
10161
10363
|
$$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
|
|
10162
10364
|
$$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
|
|
10163
10365
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
@@ -10165,6 +10367,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10165
10367
|
let { theme = "light" } = $$props;
|
|
10166
10368
|
let { language = "en" } = $$props;
|
|
10167
10369
|
let { containerRef = void 0 } = $$props;
|
|
10370
|
+
let { config = {} } = $$props;
|
|
10168
10371
|
const AppsShowToolbar = ["DocsViewer", "Slide"];
|
|
10169
10372
|
let container;
|
|
10170
10373
|
let layout = "hidden";
|
|
@@ -10180,7 +10383,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10180
10383
|
function div0_binding($$value) {
|
|
10181
10384
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
10182
10385
|
container = $$value;
|
|
10183
|
-
$$invalidate(
|
|
10386
|
+
$$invalidate(4, container);
|
|
10184
10387
|
});
|
|
10185
10388
|
}
|
|
10186
10389
|
$$self.$$set = ($$props2) => {
|
|
@@ -10191,36 +10394,38 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10191
10394
|
if ("language" in $$props2)
|
|
10192
10395
|
$$invalidate(2, language = $$props2.language);
|
|
10193
10396
|
if ("containerRef" in $$props2)
|
|
10194
|
-
$$invalidate(
|
|
10397
|
+
$$invalidate(9, containerRef = $$props2.containerRef);
|
|
10398
|
+
if ("config" in $$props2)
|
|
10399
|
+
$$invalidate(3, config = $$props2.config);
|
|
10195
10400
|
};
|
|
10196
10401
|
$$self.$$.update = () => {
|
|
10197
10402
|
if ($$self.$$.dirty & 1) {
|
|
10198
10403
|
$:
|
|
10199
|
-
$$subscribe_writable($$invalidate(
|
|
10404
|
+
$$subscribe_writable($$invalidate(8, writable2 = app == null ? void 0 : app.writable));
|
|
10200
10405
|
}
|
|
10201
10406
|
if ($$self.$$.dirty & 1) {
|
|
10202
10407
|
$:
|
|
10203
|
-
$$subscribe_boxState($$invalidate(
|
|
10408
|
+
$$subscribe_boxState($$invalidate(7, boxState = app == null ? void 0 : app.boxState));
|
|
10204
10409
|
}
|
|
10205
10410
|
if ($$self.$$.dirty & 1) {
|
|
10206
10411
|
$:
|
|
10207
|
-
$$subscribe_focusedApp($$invalidate(
|
|
10412
|
+
$$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
|
|
10208
10413
|
}
|
|
10209
|
-
if ($$self.$$.dirty &
|
|
10414
|
+
if ($$self.$$.dirty & 7168) {
|
|
10210
10415
|
$:
|
|
10211
10416
|
if (!$writable) {
|
|
10212
|
-
$$invalidate(
|
|
10417
|
+
$$invalidate(5, layout = "hidden");
|
|
10213
10418
|
} else if ($boxState === "maximized") {
|
|
10214
10419
|
if ($focusedApp && AppsShowToolbar.some((kind) => ($focusedApp || "").includes(kind))) {
|
|
10215
|
-
$$invalidate(
|
|
10420
|
+
$$invalidate(5, layout = "toolbar-only");
|
|
10216
10421
|
} else {
|
|
10217
|
-
$$invalidate(
|
|
10422
|
+
$$invalidate(5, layout = "hidden");
|
|
10218
10423
|
}
|
|
10219
10424
|
} else {
|
|
10220
|
-
$$invalidate(
|
|
10425
|
+
$$invalidate(5, layout = "visible");
|
|
10221
10426
|
}
|
|
10222
10427
|
}
|
|
10223
|
-
if ($$self.$$.dirty &
|
|
10428
|
+
if ($$self.$$.dirty & 17) {
|
|
10224
10429
|
$:
|
|
10225
10430
|
try {
|
|
10226
10431
|
if (app && container)
|
|
@@ -10241,6 +10446,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
10241
10446
|
app,
|
|
10242
10447
|
theme,
|
|
10243
10448
|
language,
|
|
10449
|
+
config,
|
|
10244
10450
|
container,
|
|
10245
10451
|
layout,
|
|
10246
10452
|
focusedApp,
|
|
@@ -10260,7 +10466,8 @@ var Fastboard = class extends SvelteComponent {
|
|
|
10260
10466
|
app: 0,
|
|
10261
10467
|
theme: 1,
|
|
10262
10468
|
language: 2,
|
|
10263
|
-
containerRef:
|
|
10469
|
+
containerRef: 9,
|
|
10470
|
+
config: 3
|
|
10264
10471
|
});
|
|
10265
10472
|
}
|
|
10266
10473
|
};
|