diff --git a/.vscode/settings.json b/.vscode/settings.json
index 4fd01b1f..44fd0782 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -22,6 +22,7 @@
"DendronNote",
"Threading",
"RegexNote",
- "NamingNotes"
+ "NamingNotes",
+ "Codeblock"
]
}
\ No newline at end of file
diff --git a/main.js b/main.js
index 9436d107..a433e345 100644
--- a/main.js
+++ b/main.js
@@ -20635,21 +20635,21 @@ class SvelteComponent {
/* src\Components\Checkboxes.svelte generated by Svelte v3.35.0 */
-function add_css$b() {
+function add_css$c() {
var style = element("style");
style.id = "svelte-t4gbbx-style";
style.textContent = ".grid.svelte-t4gbbx{display:grid;grid-template-columns:repeat(auto-fit, minmax(100px, 1fr))}";
append(document.head, style);
}
-function get_each_context$a(ctx, list, i) {
+function get_each_context$b(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[11] = list[i];
return child_ctx;
}
// (42:2) {#each options as option}
-function create_each_block$a(ctx) {
+function create_each_block$b(ctx) {
let div;
let label;
let input;
@@ -20713,7 +20713,7 @@ function create_each_block$a(ctx) {
};
}
-function create_fragment$j(ctx) {
+function create_fragment$k(ctx) {
let div0;
let button;
let t0;
@@ -20727,7 +20727,7 @@ function create_fragment$j(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
+ each_blocks[i] = create_each_block$b(get_each_context$b(ctx, each_value, i));
}
return {
@@ -20770,12 +20770,12 @@ function create_fragment$j(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$a(ctx, each_value, i);
+ const child_ctx = get_each_context$b(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$a(child_ctx);
+ each_blocks[i] = create_each_block$b(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div1, null);
}
@@ -20801,7 +20801,7 @@ function create_fragment$j(ctx) {
};
}
-function instance$j($$self, $$props, $$invalidate) {
+function instance$k($$self, $$props, $$invalidate) {
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
@@ -20900,14 +20900,14 @@ function instance$j($$self, $$props, $$invalidate) {
class Checkboxes extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-t4gbbx-style")) add_css$b();
- init(this, options, instance$j, create_fragment$j, safe_not_equal, { plugin: 4, settingName: 5, options: 0 });
+ if (!document.getElementById("svelte-t4gbbx-style")) add_css$c();
+ init(this, options, instance$k, create_fragment$k, safe_not_equal, { plugin: 4, settingName: 5, options: 0 });
}
}
/* src\Components\KoFi.svelte generated by Svelte v3.35.0 */
-function create_fragment$i(ctx) {
+function create_fragment$j(ctx) {
let script;
let script_src_value;
let t;
@@ -20948,7 +20948,7 @@ function create_fragment$i(ctx) {
};
}
-function instance$i($$self, $$props, $$invalidate) {
+function instance$j($$self, $$props, $$invalidate) {
let button;
var initializeKofi = () => {
@@ -20969,7 +20969,7 @@ function instance$i($$self, $$props, $$invalidate) {
class KoFi extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$i, create_fragment$i, safe_not_equal, {});
+ init(this, options, instance$j, create_fragment$j, safe_not_equal, {});
}
}
@@ -21007,6 +21007,7 @@ const ARROW_DIRECTIONS = {
const RELATIONS = ["Parent", "Sibling", "Child"];
const REAlCLOSED = ["Real", "Closed"];
const ALLUNLINKED = ["All", "No Unlinked"];
+const CODEBLOCK_TYPES = ["tree"];
const blankUserHier = () => {
return { up: [], same: [], down: [], next: [], prev: [] };
};
@@ -22648,7 +22649,7 @@ const dropHash = (tag) => tag.startsWith("#") ? tag.slice(1) : tag;
/* node_modules\svelte-icons\components\IconBase.svelte generated by Svelte v3.35.0 */
-function add_css$a() {
+function add_css$b() {
var style = element("style");
style.id = "svelte-c8tyih-style";
style.textContent = "svg.svelte-c8tyih{stroke:currentColor;fill:currentColor;stroke-width:0;width:100%;height:auto;max-height:100%}";
@@ -22656,7 +22657,7 @@ function add_css$a() {
}
// (18:2) {#if title}
-function create_if_block$6(ctx) {
+function create_if_block$7(ctx) {
let title_1;
let t;
@@ -22678,11 +22679,11 @@ function create_if_block$6(ctx) {
};
}
-function create_fragment$h(ctx) {
+function create_fragment$i(ctx) {
let svg;
let if_block_anchor;
let current;
- let if_block = /*title*/ ctx[0] && create_if_block$6(ctx);
+ let if_block = /*title*/ ctx[0] && create_if_block$7(ctx);
const default_slot_template = /*#slots*/ ctx[3].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
@@ -22712,7 +22713,7 @@ function create_fragment$h(ctx) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
- if_block = create_if_block$6(ctx);
+ if_block = create_if_block$7(ctx);
if_block.c();
if_block.m(svg, if_block_anchor);
}
@@ -22748,7 +22749,7 @@ function create_fragment$h(ctx) {
};
}
-function instance$h($$self, $$props, $$invalidate) {
+function instance$i($$self, $$props, $$invalidate) {
let { $$slots: slots = {}, $$scope } = $$props;
let { title = null } = $$props;
let { viewBox } = $$props;
@@ -22765,8 +22766,8 @@ function instance$h($$self, $$props, $$invalidate) {
class IconBase extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-c8tyih-style")) add_css$a();
- init(this, options, instance$h, create_fragment$h, safe_not_equal, { title: 0, viewBox: 1 });
+ if (!document.getElementById("svelte-c8tyih-style")) add_css$b();
+ init(this, options, instance$i, create_fragment$i, safe_not_equal, { title: 0, viewBox: 1 });
}
}
@@ -22789,7 +22790,7 @@ function create_default_slot$5(ctx) {
};
}
-function create_fragment$g(ctx) {
+function create_fragment$h(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 512 512" }, /*$$props*/ ctx[0]];
@@ -22839,7 +22840,7 @@ function create_fragment$g(ctx) {
};
}
-function instance$g($$self, $$props, $$invalidate) {
+function instance$h($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -22851,7 +22852,7 @@ function instance$g($$self, $$props, $$invalidate) {
class FaListUl extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$g, create_fragment$g, safe_not_equal, {});
+ init(this, options, instance$h, create_fragment$h, safe_not_equal, {});
}
}
@@ -22874,7 +22875,7 @@ function create_default_slot$4(ctx) {
};
}
-function create_fragment$f(ctx) {
+function create_fragment$g(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 448 512" }, /*$$props*/ ctx[0]];
@@ -22924,7 +22925,7 @@ function create_fragment$f(ctx) {
};
}
-function instance$f($$self, $$props, $$invalidate) {
+function instance$g($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -22936,7 +22937,7 @@ function instance$f($$self, $$props, $$invalidate) {
class FaPlus extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$f, create_fragment$f, safe_not_equal, {});
+ init(this, options, instance$g, create_fragment$g, safe_not_equal, {});
}
}
@@ -22959,7 +22960,7 @@ function create_default_slot$3(ctx) {
};
}
-function create_fragment$e(ctx) {
+function create_fragment$f(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 448 512" }, /*$$props*/ ctx[0]];
@@ -23009,7 +23010,7 @@ function create_fragment$e(ctx) {
};
}
-function instance$e($$self, $$props, $$invalidate) {
+function instance$f($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -23021,20 +23022,20 @@ function instance$e($$self, $$props, $$invalidate) {
class FaRegTrashAlt extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$e, create_fragment$e, safe_not_equal, {});
+ init(this, options, instance$f, create_fragment$f, safe_not_equal, {});
}
}
/* src\Components\UserHierarchies.svelte generated by Svelte v3.35.0 */
-function add_css$9() {
+function add_css$a() {
var style = element("style");
style.id = "svelte-5y4abu-style";
style.textContent = "label.BC-Arrow-Label.svelte-5y4abu.svelte-5y4abu{display:inline-block;width:20px !important}div.GA-Buttons.svelte-5y4abu.svelte-5y4abu{padding-bottom:5px}details.BC-Hier-Details.svelte-5y4abu.svelte-5y4abu{border:1px solid var(--background-modifier-border);border-radius:10px;padding:10px 5px 10px 10px;margin-bottom:15px}.BC-Hier-Details.svelte-5y4abu summary.svelte-5y4abu::marker{font-size:10px}.BC-Hier-Details.svelte-5y4abu summary button.svelte-5y4abu{float:right}.icon.svelte-5y4abu.svelte-5y4abu{color:var(--text-normal);display:inline-block;padding-top:3px;width:17px;height:17px}";
append(document.head, style);
}
-function get_each_context$9(ctx, list, i) {
+function get_each_context$a(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[12] = list[i];
child_ctx[14] = i;
@@ -23107,7 +23108,7 @@ function create_each_block_1$7(ctx) {
}
// (61:2) {#each currHiers as hier, i}
-function create_each_block$9(ctx) {
+function create_each_block$a(ctx) {
let details;
let summary;
let t0_value = DIRECTIONS$1.map(func).map(func_1).join(" ") + "";
@@ -23244,7 +23245,7 @@ function create_each_block$9(ctx) {
};
}
-function create_fragment$d(ctx) {
+function create_fragment$e(ctx) {
let div4;
let div3;
let button0;
@@ -23269,7 +23270,7 @@ function create_fragment$d(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
+ each_blocks[i] = create_each_block$a(get_each_context$a(ctx, each_value, i));
}
return {
@@ -23339,12 +23340,12 @@ function create_fragment$d(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$9(ctx, each_value, i);
+ const child_ctx = get_each_context$a(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$9(child_ctx);
+ each_blocks[i] = create_each_block$a(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div4, null);
}
@@ -23384,7 +23385,7 @@ function create_fragment$d(ctx) {
const func_1 = dirFields => `(${dirFields})`;
-function instance$d($$self, $$props, $$invalidate) {
+function instance$e($$self, $$props, $$invalidate) {
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P
@@ -23489,21 +23490,21 @@ function instance$d($$self, $$props, $$invalidate) {
class UserHierarchies extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-5y4abu-style")) add_css$9();
- init(this, options, instance$d, create_fragment$d, safe_not_equal, { plugin: 2 });
+ if (!document.getElementById("svelte-5y4abu-style")) add_css$a();
+ init(this, options, instance$e, create_fragment$e, safe_not_equal, { plugin: 2 });
}
}
/* src\Components\Lists.svelte generated by Svelte v3.35.0 */
-function add_css$8() {
+function add_css$9() {
var style = element("style");
style.id = "svelte-1dlhare-style";
style.textContent = "summary.hier-summary.svelte-1dlhare{color:var(--text-title-h2);font-size:larger}summary.svelte-1dlhare{color:var(--text-title-h3)}h5.BC-header.svelte-1dlhare{color:var(--text-title-h5)}.markdown-preview-view.svelte-1dlhare{padding-left:10px}.internal-link.is-unresolved.svelte-1dlhare{color:var(--text-muted)}";
append(document.head, style);
}
-function get_each_context$8(ctx, list, i) {
+function get_each_context$9(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[9] = list[i];
return child_ctx;
@@ -23528,7 +23529,7 @@ function get_each_context_3$2(ctx, list, i) {
}
// (25:8) {#if square.realItems.length || (settings.showImpliedRelations && square.impliedItems.length)}
-function create_if_block$5(ctx) {
+function create_if_block$6(ctx) {
let details;
let summary;
let t0_value = /*square*/ ctx[12].field + "";
@@ -23536,7 +23537,7 @@ function create_if_block$5(ctx) {
let t1;
let t2;
let if_block0 = /*square*/ ctx[12].realItems.length && create_if_block_3$2(ctx);
- let if_block1 = /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length && create_if_block_1$4(ctx);
+ let if_block1 = /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length && create_if_block_1$5(ctx);
return {
c() {
@@ -23580,7 +23581,7 @@ function create_if_block$5(ctx) {
if (if_block1) {
if_block1.p(ctx, dirty);
} else {
- if_block1 = create_if_block_1$4(ctx);
+ if_block1 = create_if_block_1$5(ctx);
if_block1.c();
if_block1.m(details, null);
}
@@ -23750,7 +23751,7 @@ function create_each_block_3$2(ctx) {
}
// (49:12) {#if settings.showImpliedRelations && square.impliedItems.length}
-function create_if_block_1$4(ctx) {
+function create_if_block_1$5(ctx) {
let t;
let ol;
let ol_start_value;
@@ -23921,7 +23922,7 @@ function create_each_block_2$3(ctx) {
// (24:6) {#each squares as square}
function create_each_block_1$6(ctx) {
let if_block_anchor;
- let if_block = (/*square*/ ctx[12].realItems.length || /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length) && create_if_block$5(ctx);
+ let if_block = (/*square*/ ctx[12].realItems.length || /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length) && create_if_block$6(ctx);
return {
c() {
@@ -23937,7 +23938,7 @@ function create_each_block_1$6(ctx) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
- if_block = create_if_block$5(ctx);
+ if_block = create_if_block$6(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
@@ -23954,7 +23955,7 @@ function create_each_block_1$6(ctx) {
}
// (18:2) {#each filteredSquaresArr as squares}
-function create_each_block$8(ctx) {
+function create_each_block$9(ctx) {
let details;
let summary;
let t0_value = /*squares*/ ctx[9].map(func).join(", ") + "";
@@ -24028,14 +24029,14 @@ function create_each_block$8(ctx) {
};
}
-function create_fragment$c(ctx) {
+function create_fragment$d(ctx) {
let div;
let div_class_value;
let each_value = /*filteredSquaresArr*/ ctx[0];
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
+ each_blocks[i] = create_each_block$9(get_each_context$9(ctx, each_value, i));
}
return {
@@ -24063,12 +24064,12 @@ function create_fragment$c(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$8(ctx, each_value, i);
+ const child_ctx = get_each_context$9(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$8(child_ctx);
+ each_blocks[i] = create_each_block$9(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -24098,7 +24099,7 @@ function create_fragment$c(ctx) {
const func = square => square.field;
-function instance$c($$self, $$props, $$invalidate) {
+function instance$d($$self, $$props, $$invalidate) {
@@ -24136,9 +24137,9 @@ function instance$c($$self, $$props, $$invalidate) {
class Lists extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1dlhare-style")) add_css$8();
+ if (!document.getElementById("svelte-1dlhare-style")) add_css$9();
- init(this, options, instance$c, create_fragment$c, safe_not_equal, {
+ init(this, options, instance$d, create_fragment$d, safe_not_equal, {
filteredSquaresArr: 0,
currFile: 4,
settings: 1,
@@ -24150,14 +24151,14 @@ class Lists extends SvelteComponent {
/* src\Components\Matrix.svelte generated by Svelte v3.35.0 */
-function add_css$7() {
+function add_css$8() {
var style = element("style");
style.id = "svelte-sp0k97-style";
style.textContent = "div.BC-Matrix.svelte-sp0k97.svelte-sp0k97{padding:5px}div.BC-Matrix.svelte-sp0k97>div.svelte-sp0k97{border:3px solid var(--background-modifier-border);border-radius:3px;text-align:center;margin:3px;position:relative;height:fit-content}div.BC-Matrix-square.svelte-sp0k97.svelte-sp0k97{border:1px solid var(--background-modifier-border)}div.BC-Matrix-headers.svelte-sp0k97.svelte-sp0k97{display:flex;justify-content:space-between;align-items:center}.BC-Matrix-header.svelte-sp0k97.svelte-sp0k97{margin:2px;padding:0px 10px}ol.svelte-sp0k97.svelte-sp0k97{margin:3px;padding-left:30px}";
append(document.head, style);
}
-function get_each_context$7(ctx, list, i) {
+function get_each_context$8(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[9] = list[i];
return child_ctx;
@@ -24182,7 +24183,7 @@ function get_each_context_3$1(ctx, list, i) {
}
// (21:8) {#if square.realItems.length || (settings.showImpliedRelations && square.impliedItems.length)}
-function create_if_block$4(ctx) {
+function create_if_block$5(ctx) {
let div1;
let div0;
let h4;
@@ -24193,7 +24194,7 @@ function create_if_block$4(ctx) {
let t3;
let if_block0 = /*settings*/ ctx[1].showRelationType && create_if_block_5(ctx);
let if_block1 = /*square*/ ctx[12].realItems.length && create_if_block_4(ctx);
- let if_block2 = /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length && create_if_block_1$3(ctx);
+ let if_block2 = /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length && create_if_block_1$4(ctx);
return {
c() {
@@ -24256,7 +24257,7 @@ function create_if_block$4(ctx) {
if (if_block2) {
if_block2.p(ctx, dirty);
} else {
- if_block2 = create_if_block_1$3(ctx);
+ if_block2 = create_if_block_1$4(ctx);
if_block2.c();
if_block2.m(div1, null);
}
@@ -24416,7 +24417,7 @@ function create_each_block_3$1(ctx) {
}
// (49:12) {#if settings.showImpliedRelations && square.impliedItems.length}
-function create_if_block_1$3(ctx) {
+function create_if_block_1$4(ctx) {
let div;
let h4;
let t0;
@@ -24641,7 +24642,7 @@ function create_each_block_2$2(ctx) {
// (20:6) {#each squares as square}
function create_each_block_1$5(ctx) {
let if_block_anchor;
- let if_block = (/*square*/ ctx[12].realItems.length || /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length) && create_if_block$4(ctx);
+ let if_block = (/*square*/ ctx[12].realItems.length || /*settings*/ ctx[1].showImpliedRelations && /*square*/ ctx[12].impliedItems.length) && create_if_block$5(ctx);
return {
c() {
@@ -24657,7 +24658,7 @@ function create_each_block_1$5(ctx) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
- if_block = create_if_block$4(ctx);
+ if_block = create_if_block$5(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
@@ -24674,7 +24675,7 @@ function create_each_block_1$5(ctx) {
}
// (18:2) {#each filteredSquaresArr as squares}
-function create_each_block$7(ctx) {
+function create_each_block$8(ctx) {
let div;
let t;
let each_value_1 = /*squares*/ ctx[9];
@@ -24735,14 +24736,14 @@ function create_each_block$7(ctx) {
};
}
-function create_fragment$b(ctx) {
+function create_fragment$c(ctx) {
let div;
let div_class_value;
let each_value = /*filteredSquaresArr*/ ctx[0];
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
+ each_blocks[i] = create_each_block$8(get_each_context$8(ctx, each_value, i));
}
return {
@@ -24770,12 +24771,12 @@ function create_fragment$b(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$7(ctx, each_value, i);
+ const child_ctx = get_each_context$8(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$7(child_ctx);
+ each_blocks[i] = create_each_block$8(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -24803,7 +24804,7 @@ function create_fragment$b(ctx) {
};
}
-function instance$b($$self, $$props, $$invalidate) {
+function instance$c($$self, $$props, $$invalidate) {
@@ -24841,9 +24842,9 @@ function instance$b($$self, $$props, $$invalidate) {
class Matrix extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-sp0k97-style")) add_css$7();
+ if (!document.getElementById("svelte-sp0k97-style")) add_css$8();
- init(this, options, instance$b, create_fragment$b, safe_not_equal, {
+ init(this, options, instance$c, create_fragment$c, safe_not_equal, {
filteredSquaresArr: 0,
currFile: 4,
settings: 1,
@@ -25912,14 +25913,14 @@ class BCSettingTab extends require$$0.PluginSettingTab {
/* src\Components\NextPrev.svelte generated by Svelte v3.35.0 */
-function add_css$6() {
+function add_css$7() {
var style = element("style");
style.id = "svelte-1cqb0v5-style";
style.textContent = ".BC-nexts.svelte-1cqb0v5 div.svelte-1cqb0v5{text-align:right}.BC-right-arrow.svelte-1cqb0v5.svelte-1cqb0v5{padding-left:5px;float:right}.BC-left-arrow.svelte-1cqb0v5.svelte-1cqb0v5{padding-right:5px;float:left}.BC-nexts.svelte-1cqb0v5.svelte-1cqb0v5{border-left:1px solid var(--background-modifier-border)}.BC-prevs.svelte-1cqb0v5.svelte-1cqb0v5{border-right:1px solid var(--background-modifier-border)}.BC-NextPrev-Container.svelte-1cqb0v5.svelte-1cqb0v5{display:grid;grid-template-columns:1fr 1fr}";
append(document.head, style);
}
-function get_each_context$6(ctx, list, i) {
+function get_each_context$7(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[6] = list[i];
return child_ctx;
@@ -25990,7 +25991,7 @@ function create_each_block_1$4(ctx) {
}
// (28:6) {#each next as n}
-function create_each_block$6(ctx) {
+function create_each_block$7(ctx) {
let div;
let t0_value = /*n*/ ctx[6].to + "";
let t0;
@@ -26047,7 +26048,7 @@ function create_each_block$6(ctx) {
};
}
-function create_fragment$a(ctx) {
+function create_fragment$b(ctx) {
let div2;
let div0;
let span0;
@@ -26065,7 +26066,7 @@ function create_fragment$a(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
+ each_blocks[i] = create_each_block$7(get_each_context$7(ctx, each_value, i));
}
return {
@@ -26136,12 +26137,12 @@ function create_fragment$a(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$6(ctx, each_value, i);
+ const child_ctx = get_each_context$7(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$6(child_ctx);
+ each_blocks[i] = create_each_block$7(child_ctx);
each_blocks[i].c();
each_blocks[i].m(span1, null);
}
@@ -26164,7 +26165,7 @@ function create_fragment$a(ctx) {
};
}
-function instance$a($$self, $$props, $$invalidate) {
+function instance$b($$self, $$props, $$invalidate) {
@@ -26188,21 +26189,21 @@ function instance$a($$self, $$props, $$invalidate) {
class NextPrev extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1cqb0v5-style")) add_css$6();
- init(this, options, instance$a, create_fragment$a, safe_not_equal, { app: 0, plugin: 3, next: 1, prev: 2 });
+ if (!document.getElementById("svelte-1cqb0v5-style")) add_css$7();
+ init(this, options, instance$b, create_fragment$b, safe_not_equal, { app: 0, plugin: 3, next: 1, prev: 2 });
}
}
/* src\Components\TrailGrid.svelte generated by Svelte v3.35.0 */
-function add_css$5() {
+function add_css$6() {
var style = element("style");
style.id = "svelte-ybyqyo-style";
style.textContent = "div.BC-trail-grid.svelte-ybyqyo{border:2px solid var(--background-modifier-border);display:grid;align-items:stretch;width:auto;height:auto}div.BC-trail-grid-item.svelte-ybyqyo{display:flex;flex-direction:column;border:1px solid var(--background-modifier-border);align-items:center;justify-content:center;padding:2px;font-size:smaller}div.BC-trail-grid-item.BC-filler.svelte-ybyqyo{opacity:0.7}.dot.svelte-ybyqyo{height:5px;width:5px;border-radius:50%;display:inline-block}";
append(document.head, style);
}
-function get_each_context$5(ctx, list, i) {
+function get_each_context$6(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[21] = list[i];
child_ctx[23] = i;
@@ -26222,7 +26223,7 @@ function get_each_context_2$1(ctx, list, i) {
}
// (81:8) {#if step.value && settings.gridDots}
-function create_if_block$3(ctx) {
+function create_if_block$4(ctx) {
let div;
let each_value_2 = lodash.range(Math.floor(/*wordCounts*/ ctx[2][/*step*/ ctx[24].value] / 1000));
let each_blocks = [];
@@ -26312,7 +26313,7 @@ function create_each_block_1$3(ctx) {
let div1_style_value;
let mounted;
let dispose;
- let if_block = /*step*/ ctx[24].value && /*settings*/ ctx[4].gridDots && create_if_block$3(ctx);
+ let if_block = /*step*/ ctx[24].value && /*settings*/ ctx[4].gridDots && create_if_block$4(ctx);
function click_handler(...args) {
return /*click_handler*/ ctx[9](/*step*/ ctx[24], ...args);
@@ -26379,7 +26380,7 @@ function create_each_block_1$3(ctx) {
}
// (63:2) {#each transposedTrails as col, i}
-function create_each_block$5(ctx) {
+function create_each_block$6(ctx) {
let each_1_anchor;
let each_value_1 = /*allRuns*/ ctx[7][/*i*/ ctx[23]];
let each_blocks = [];
@@ -26434,13 +26435,13 @@ function create_each_block$5(ctx) {
};
}
-function create_fragment$9(ctx) {
+function create_fragment$a(ctx) {
let div;
let each_value = /*transposedTrails*/ ctx[6];
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
+ each_blocks[i] = create_each_block$6(get_each_context$6(ctx, each_value, i));
}
return {
@@ -26468,12 +26469,12 @@ function create_fragment$9(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$5(ctx, each_value, i);
+ const child_ctx = get_each_context$6(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$5(child_ctx);
+ each_blocks[i] = create_each_block$6(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -26499,7 +26500,7 @@ function create_fragment$9(ctx) {
};
}
-function instance$9($$self, $$props, $$invalidate) {
+function instance$a($$self, $$props, $$invalidate) {
let { sortedTrails } = $$props;
@@ -26588,21 +26589,21 @@ function instance$9($$self, $$props, $$invalidate) {
class TrailGrid extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-ybyqyo-style")) add_css$5();
- init(this, options, instance$9, create_fragment$9, safe_not_equal, { sortedTrails: 0, app: 1, plugin: 8 });
+ if (!document.getElementById("svelte-ybyqyo-style")) add_css$6();
+ init(this, options, instance$a, create_fragment$a, safe_not_equal, { sortedTrails: 0, app: 1, plugin: 8 });
}
}
/* src\Components\TrailPath.svelte generated by Svelte v3.35.0 */
-function add_css$4() {
+function add_css$5() {
var style = element("style");
style.id = "svelte-3c1frp-style";
style.textContent = "span.BC-trail-path-container.svelte-3c1frp{display:flex;justify-content:space-between}";
append(document.head, style);
}
-function get_each_context$4(ctx, list, i) {
+function get_each_context$5(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[10] = list[i];
return child_ctx;
@@ -26672,7 +26673,7 @@ function create_else_block$2(ctx) {
}
// (18:8) {#if trail.length === 0}
-function create_if_block_1$2(ctx) {
+function create_if_block_1$3(ctx) {
let span;
return {
@@ -26783,12 +26784,12 @@ function create_each_block_1$2(ctx) {
}
// (16:4) {#each trailsToShow as trail}
-function create_each_block$4(ctx) {
+function create_each_block$5(ctx) {
let div;
let t;
function select_block_type(ctx, dirty) {
- if (/*trail*/ ctx[10].length === 0) return create_if_block_1$2;
+ if (/*trail*/ ctx[10].length === 0) return create_if_block_1$3;
return create_else_block$2;
}
@@ -26827,7 +26828,7 @@ function create_each_block$4(ctx) {
}
// (38:2) {#if sortedTrails.length > 1}
-function create_if_block$2(ctx) {
+function create_if_block$3(ctx) {
let div;
let button;
let t_value = (/*showAll*/ ctx[2] ? "Shortest" : "All") + "";
@@ -26863,7 +26864,7 @@ function create_if_block$2(ctx) {
};
}
-function create_fragment$8(ctx) {
+function create_fragment$9(ctx) {
let span;
let div;
let t;
@@ -26871,10 +26872,10 @@ function create_fragment$8(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
+ each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
}
- let if_block = /*sortedTrails*/ ctx[0].length > 1 && create_if_block$2(ctx);
+ let if_block = /*sortedTrails*/ ctx[0].length > 1 && create_if_block$3(ctx);
return {
c() {
@@ -26907,12 +26908,12 @@ function create_fragment$8(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$4(ctx, each_value, i);
+ const child_ctx = get_each_context$5(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$4(child_ctx);
+ each_blocks[i] = create_each_block$5(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -26929,7 +26930,7 @@ function create_fragment$8(ctx) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
- if_block = create_if_block$2(ctx);
+ if_block = create_if_block$3(ctx);
if_block.c();
if_block.m(span, null);
}
@@ -26948,7 +26949,7 @@ function create_fragment$8(ctx) {
};
}
-function instance$8($$self, $$props, $$invalidate) {
+function instance$9($$self, $$props, $$invalidate) {
let trailsToShow;
@@ -26991,8 +26992,8 @@ function instance$8($$self, $$props, $$invalidate) {
class TrailPath extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-3c1frp-style")) add_css$4();
- init(this, options, instance$8, create_fragment$8, safe_not_equal, { sortedTrails: 0, app: 1, plugin: 6 });
+ if (!document.getElementById("svelte-3c1frp-style")) add_css$5();
+ init(this, options, instance$9, create_fragment$9, safe_not_equal, { sortedTrails: 0, app: 1, plugin: 6 });
}
}
@@ -27015,7 +27016,7 @@ function create_default_slot$2(ctx) {
};
}
-function create_fragment$7(ctx) {
+function create_fragment$8(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 384 512" }, /*$$props*/ ctx[0]];
@@ -27065,7 +27066,7 @@ function create_fragment$7(ctx) {
};
}
-function instance$7($$self, $$props, $$invalidate) {
+function instance$8($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -27077,7 +27078,7 @@ function instance$7($$self, $$props, $$invalidate) {
class FaFire extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$7, create_fragment$7, safe_not_equal, {});
+ init(this, options, instance$8, create_fragment$8, safe_not_equal, {});
}
}
@@ -27100,7 +27101,7 @@ function create_default_slot$1(ctx) {
};
}
-function create_fragment$6(ctx) {
+function create_fragment$7(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 448 512" }, /*$$props*/ ctx[0]];
@@ -27150,7 +27151,7 @@ function create_fragment$6(ctx) {
};
}
-function instance$6($$self, $$props, $$invalidate) {
+function instance$7($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -27162,20 +27163,20 @@ function instance$6($$self, $$props, $$invalidate) {
class FaRegSnowflake extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$6, create_fragment$6, safe_not_equal, {});
+ init(this, options, instance$7, create_fragment$7, safe_not_equal, {});
}
}
/* src\Components\Down.svelte generated by Svelte v3.35.0 */
-function add_css$3() {
+function add_css$4() {
var style = element("style");
style.id = "svelte-1mg8nz0-style";
style.textContent = ".BC-downs.svelte-1mg8nz0{padding-left:5px}pre.svelte-1mg8nz0{display:inline}.is-unresolved.svelte-1mg8nz0{color:var(--text-muted)}.icon.svelte-1mg8nz0{color:var(--text-normal);display:inline-block;padding-top:5px !important;width:20px;height:20px}";
append(document.head, style);
}
-function get_each_context$3(ctx, list, i) {
+function get_each_context$4(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[11] = list[i];
return child_ctx;
@@ -27211,7 +27212,7 @@ function create_else_block$1(ctx) {
}
// (50:4) {#if frozen}
-function create_if_block_1$1(ctx) {
+function create_if_block_1$2(ctx) {
let faregsnowflake;
let current;
faregsnowflake = new FaRegSnowflake({});
@@ -27240,7 +27241,7 @@ function create_if_block_1$1(ctx) {
}
// (68:4) {#if line.length > 1}
-function create_if_block$1(ctx) {
+function create_if_block$2(ctx) {
let div;
let pre;
let t0_value = /*line*/ ctx[11][0] + "-" + "";
@@ -27325,9 +27326,9 @@ function create_if_block$1(ctx) {
}
// (67:2) {#each lines as line}
-function create_each_block$3(ctx) {
+function create_each_block$4(ctx) {
let if_block_anchor;
- let if_block = /*line*/ ctx[11].length > 1 && create_if_block$1(ctx);
+ let if_block = /*line*/ ctx[11].length > 1 && create_if_block$2(ctx);
return {
c() {
@@ -27343,7 +27344,7 @@ function create_each_block$3(ctx) {
if (if_block) {
if_block.p(ctx, dirty);
} else {
- if_block = create_if_block$1(ctx);
+ if_block = create_if_block$2(ctx);
if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor);
}
@@ -27359,7 +27360,7 @@ function create_each_block$3(ctx) {
};
}
-function create_fragment$5(ctx) {
+function create_fragment$6(ctx) {
let div0;
let span;
let current_block_type_index;
@@ -27372,7 +27373,7 @@ function create_fragment$5(ctx) {
let current;
let mounted;
let dispose;
- const if_block_creators = [create_if_block_1$1, create_else_block$1];
+ const if_block_creators = [create_if_block_1$2, create_else_block$1];
const if_blocks = [];
function select_block_type(ctx, dirty) {
@@ -27386,7 +27387,7 @@ function create_fragment$5(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
+ each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
}
return {
@@ -27472,12 +27473,12 @@ function create_fragment$5(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$3(ctx, each_value, i);
+ const child_ctx = get_each_context$4(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$3(child_ctx);
+ each_blocks[i] = create_each_block$4(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div1, null);
}
@@ -27511,7 +27512,7 @@ function create_fragment$5(ctx) {
};
}
-function instance$5($$self, $$props, $$invalidate) {
+function instance$6($$self, $$props, $$invalidate) {
let { plugin } = $$props;
@@ -27582,8 +27583,8 @@ function instance$5($$self, $$props, $$invalidate) {
class Down extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-1mg8nz0-style")) add_css$3();
- init(this, options, instance$5, create_fragment$5, safe_not_equal, { plugin: 0, view: 1 });
+ if (!document.getElementById("svelte-1mg8nz0-style")) add_css$4();
+ init(this, options, instance$6, create_fragment$6, safe_not_equal, { plugin: 0, view: 1 });
}
}
@@ -27640,7 +27641,7 @@ function create_default_slot(ctx) {
};
}
-function create_fragment$4(ctx) {
+function create_fragment$5(ctx) {
let iconbase;
let current;
const iconbase_spread_levels = [{ viewBox: "0 0 192 512" }, /*$$props*/ ctx[0]];
@@ -27690,7 +27691,7 @@ function create_fragment$4(ctx) {
};
}
-function instance$4($$self, $$props, $$invalidate) {
+function instance$5($$self, $$props, $$invalidate) {
$$self.$$set = $$new_props => {
$$invalidate(0, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
};
@@ -27702,27 +27703,27 @@ function instance$4($$self, $$props, $$invalidate) {
class FaInfo extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance$4, create_fragment$4, safe_not_equal, {});
+ init(this, options, instance$5, create_fragment$5, safe_not_equal, {});
}
}
/* src\Components\Ducks.svelte generated by Svelte v3.35.0 */
-function add_css$2() {
+function add_css$3() {
var style = element("style");
style.id = "svelte-gmdm3a-style";
style.textContent = ".icon.svelte-gmdm3a{color:var(--text-normal);display:inline-block;padding-top:5px !important;width:20px;height:20px}";
append(document.head, style);
}
-function get_each_context$2(ctx, list, i) {
+function get_each_context$3(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[13] = list[i];
return child_ctx;
}
// (48:2) {#each ducks as duck}
-function create_each_block$2(ctx) {
+function create_each_block$3(ctx) {
let div;
let a;
let t0_value = /*duck*/ ctx[13] + "";
@@ -27774,7 +27775,7 @@ function create_each_block$2(ctx) {
};
}
-function create_fragment$3(ctx) {
+function create_fragment$4(ctx) {
let div;
let h6;
let t1;
@@ -27795,7 +27796,7 @@ function create_fragment$3(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
+ each_blocks[i] = create_each_block$3(get_each_context$3(ctx, each_value, i));
}
return {
@@ -27874,12 +27875,12 @@ function create_fragment$3(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$2(ctx, each_value, i);
+ const child_ctx = get_each_context$3(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$2(child_ctx);
+ each_blocks[i] = create_each_block$3(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div, null);
}
@@ -27911,7 +27912,7 @@ function create_fragment$3(ctx) {
};
}
-function instance$3($$self, $$props, $$invalidate) {
+function instance$4($$self, $$props, $$invalidate) {
@@ -27969,8 +27970,8 @@ function instance$3($$self, $$props, $$invalidate) {
class Ducks extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-gmdm3a-style")) add_css$2();
- init(this, options, instance$3, create_fragment$3, safe_not_equal, { plugin: 5, app: 0, ducksView: 1 });
+ if (!document.getElementById("svelte-gmdm3a-style")) add_css$3();
+ init(this, options, instance$4, create_fragment$4, safe_not_equal, { plugin: 5, app: 0, ducksView: 1 });
}
}
@@ -28060,7 +28061,7 @@ class FieldSuggestor extends require$$0.EditorSuggest {
/* src\Components\ModifyHNItemComp.svelte generated by Svelte v3.35.0 */
-function add_css$1() {
+function add_css$2() {
var style = element("style");
style.id = "svelte-13g4k7i-style";
style.textContent = "pre.svelte-13g4k7i{display:inline}";
@@ -28156,7 +28157,7 @@ function create_if_block_3(ctx) {
}
// (43:27)
-function create_if_block_1(ctx) {
+function create_if_block_1$1(ctx) {
let div;
let pre;
let t_value = /*buildNewItem*/ ctx[6](/*newItem*/ ctx[5], /*hnItem*/ ctx[2].depth + 4, true) + "";
@@ -28184,7 +28185,7 @@ function create_if_block_1(ctx) {
}
// (37:2) {#if rel === "same"}
-function create_if_block(ctx) {
+function create_if_block$1(ctx) {
let div;
let pre;
let t_value = /*buildNewItem*/ ctx[6](/*newItem*/ ctx[5], /*hnItem*/ ctx[2].depth, true) + "";
@@ -28211,7 +28212,7 @@ function create_if_block(ctx) {
};
}
-function create_fragment$2(ctx) {
+function create_fragment$3(ctx) {
let h5;
let t0;
let t1_value = ARROW_DIRECTIONS[/*rel*/ ctx[0]] + "";
@@ -28242,8 +28243,8 @@ function create_fragment$2(ctx) {
let if_block0 = /*rel*/ ctx[0] === "up" && create_if_block_2(ctx);
function select_block_type_1(ctx, dirty) {
- if (/*rel*/ ctx[0] === "same") return create_if_block;
- if (/*rel*/ ctx[0] === "down") return create_if_block_1;
+ if (/*rel*/ ctx[0] === "same") return create_if_block$1;
+ if (/*rel*/ ctx[0] === "down") return create_if_block_1$1;
}
let current_block_type = select_block_type_1(ctx);
@@ -28389,7 +28390,7 @@ function create_fragment$2(ctx) {
};
}
-function instance$2($$self, $$props, $$invalidate) {
+function instance$3($$self, $$props, $$invalidate) {
let { modal } = $$props;
@@ -28470,9 +28471,9 @@ function instance$2($$self, $$props, $$invalidate) {
class ModifyHNItemComp extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-13g4k7i-style")) add_css$1();
+ if (!document.getElementById("svelte-13g4k7i-style")) add_css$2();
- init(this, options, instance$2, create_fragment$2, safe_not_equal, {
+ init(this, options, instance$3, create_fragment$3, safe_not_equal, {
modal: 1,
settings: 7,
hnItem: 2,
@@ -28641,14 +28642,14 @@ class HierarchyNoteSelectorModal extends require$$0.FuzzySuggestModal {
/* src\Components\Stats.svelte generated by Svelte v3.35.0 */
-function add_css() {
+function add_css$1() {
var style = element("style");
style.id = "svelte-rb5mhu-style";
style.textContent = "table.svelte-rb5mhu{border-collapse:collapse}td.svelte-rb5mhu:first-child{text-align:right}td.svelte-rb5mhu,th.svelte-rb5mhu{padding:3px;border:1px solid var(--background-modifier-border);white-space:pre-line}";
append(document.head, style);
}
-function get_each_context$1(ctx, list, i) {
+function get_each_context$2(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[28] = list[i];
return child_ctx;
@@ -29231,7 +29232,7 @@ function create_each_block_1$1(ctx) {
}
// (251:4) {#each DIRECTIONS as dir}
-function create_each_block$1(ctx) {
+function create_each_block$2(ctx) {
let td;
let t0_value = lodash.sum(/*data*/ ctx[2].map(func_7)) + "";
let t0;
@@ -29282,7 +29283,7 @@ function create_each_block$1(ctx) {
};
}
-function create_fragment$1(ctx) {
+function create_fragment$2(ctx) {
let table;
let thead;
let tr0;
@@ -29348,7 +29349,7 @@ function create_fragment$1(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
+ each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
}
return {
@@ -29594,12 +29595,12 @@ function create_fragment$1(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context$1(ctx, each_value, i);
+ const child_ctx = get_each_context$2(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block$1(child_ctx);
+ each_blocks[i] = create_each_block$2(child_ctx);
each_blocks[i].c();
each_blocks[i].m(tr4, null);
}
@@ -29627,7 +29628,7 @@ function create_fragment$1(ctx) {
};
}
-function instance$1($$self, $$props, $$invalidate) {
+function instance$2($$self, $$props, $$invalidate) {
let { plugin } = $$props;
@@ -29758,8 +29759,8 @@ function instance$1($$self, $$props, $$invalidate) {
class Stats extends SvelteComponent {
constructor(options) {
super();
- if (!document.getElementById("svelte-rb5mhu-style")) add_css();
- init(this, options, instance$1, create_fragment$1, safe_not_equal, { plugin: 0 }, [-1, -1]);
+ if (!document.getElementById("svelte-rb5mhu-style")) add_css$1();
+ init(this, options, instance$2, create_fragment$2, safe_not_equal, { plugin: 0 }, [-1, -1]);
}
}
@@ -51284,7 +51285,7 @@ const treeMap = (graph, app, currFile, modal, width, height) => {
/* src\Components\VisComp.svelte generated by Svelte v3.35.0 */
-function get_each_context(ctx, list, i) {
+function get_each_context$1(ctx, list, i) {
const child_ctx = ctx.slice();
child_ctx[20] = list[i];
child_ctx[21] = list;
@@ -51331,7 +51332,7 @@ function create_each_block_1(ctx) {
}
// (153:2) {#each selectors as selector}
-function create_each_block(ctx) {
+function create_each_block$1(ctx) {
let span;
let t0_value = /*selector*/ ctx[20].text + "";
let t0;
@@ -51423,7 +51424,7 @@ function create_each_block(ctx) {
};
}
-function create_fragment(ctx) {
+function create_fragment$1(ctx) {
let div0;
let t;
let div1;
@@ -51431,7 +51432,7 @@ function create_fragment(ctx) {
let each_blocks = [];
for (let i = 0; i < each_value.length; i += 1) {
- each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
+ each_blocks[i] = create_each_block$1(get_each_context$1(ctx, each_value, i));
}
return {
@@ -51462,12 +51463,12 @@ function create_fragment(ctx) {
let i;
for (i = 0; i < each_value.length; i += 1) {
- const child_ctx = get_each_context(ctx, each_value, i);
+ const child_ctx = get_each_context$1(ctx, each_value, i);
if (each_blocks[i]) {
each_blocks[i].p(child_ctx, dirty);
} else {
- each_blocks[i] = create_each_block(child_ctx);
+ each_blocks[i] = create_each_block$1(child_ctx);
each_blocks[i].c();
each_blocks[i].m(div0, null);
}
@@ -51491,7 +51492,7 @@ function create_fragment(ctx) {
};
}
-function instance($$self, $$props, $$invalidate) {
+function instance$1($$self, $$props, $$invalidate) {
let argArr;
@@ -51649,7 +51650,7 @@ function instance($$self, $$props, $$invalidate) {
class VisComp extends SvelteComponent {
constructor(options) {
super();
- init(this, options, instance, create_fragment, safe_not_equal, { modal: 1, settings: 2 });
+ init(this, options, instance$1, create_fragment$1, safe_not_equal, { modal: 1, settings: 2 });
}
}
@@ -51784,6 +51785,296 @@ class VisModal extends require$$0.Modal {
}
}
+/* src\Components\Tree.svelte generated by Svelte v3.35.0 */
+
+function add_css() {
+ var style = element("style");
+ style.id = "svelte-19hsnmq-style";
+ style.textContent = ".BC-tree.svelte-19hsnmq{padding-left:5px}pre.indent.svelte-19hsnmq{display:inline;background-color:transparent}.is-unresolved.svelte-19hsnmq{color:var(--text-muted)}";
+ append(document.head, style);
+}
+
+function get_each_context(ctx, list, i) {
+ const child_ctx = ctx.slice();
+ child_ctx[21] = list[i];
+ return child_ctx;
+}
+
+// (35:0) {#if title !== "false"}
+function create_if_block_1(ctx) {
+ let h3;
+ let t0;
+ let t1;
+ let t2;
+
+ return {
+ c() {
+ h3 = element("h3");
+ t0 = text(/*dir*/ ctx[1]);
+ t1 = text(" of ");
+ t2 = text(/*basename*/ ctx[4]);
+ },
+ m(target, anchor) {
+ insert(target, h3, anchor);
+ append(h3, t0);
+ append(h3, t1);
+ append(h3, t2);
+ },
+ p(ctx, dirty) {
+ if (dirty & /*dir*/ 2) set_data(t0, /*dir*/ ctx[1]);
+ },
+ d(detaching) {
+ if (detaching) detach(h3);
+ }
+ };
+}
+
+// (40:4) {#if line.length > 1}
+function create_if_block(ctx) {
+ let div;
+ let pre;
+ let t0_value = /*line*/ ctx[21][0] + "-" + "";
+ let t0;
+ let t1;
+ let span;
+ let a;
+ let t2_value = dropDendron(/*line*/ ctx[21][1], /*settings*/ ctx[3]) + "";
+ let t2;
+ let a_class_value;
+ let t3;
+ let div_style_value;
+ let mounted;
+ let dispose;
+
+ function click_handler(...args) {
+ return /*click_handler*/ ctx[9](/*line*/ ctx[21], ...args);
+ }
+
+ return {
+ c() {
+ div = element("div");
+ pre = element("pre");
+ t0 = text(t0_value);
+ t1 = space();
+ span = element("span");
+ a = element("a");
+ t2 = text(t2_value);
+ t3 = space();
+ attr(pre, "class", "indent svelte-19hsnmq");
+
+ attr(a, "class", a_class_value = "internal-link " + (isInVault(/*plugin*/ ctx[0].app, /*line*/ ctx[21][1])
+ ? ""
+ : "is-unresolved") + " svelte-19hsnmq");
+
+ attr(span, "class", "internal-link");
+
+ attr(div, "style", div_style_value = /*settings*/ ctx[3].downViewWrap
+ ? ""
+ : "white-space: nowrap;");
+ },
+ m(target, anchor) {
+ insert(target, div, anchor);
+ append(div, pre);
+ append(pre, t0);
+ append(div, t1);
+ append(div, span);
+ append(span, a);
+ append(a, t2);
+ append(div, t3);
+
+ if (!mounted) {
+ dispose = [
+ listen(span, "click", click_handler),
+ listen(span, "mouseover", mouseover_handler)
+ ];
+
+ mounted = true;
+ }
+ },
+ p(new_ctx, dirty) {
+ ctx = new_ctx;
+
+ if (dirty & /*plugin*/ 1 && a_class_value !== (a_class_value = "internal-link " + (isInVault(/*plugin*/ ctx[0].app, /*line*/ ctx[21][1])
+ ? ""
+ : "is-unresolved") + " svelte-19hsnmq")) {
+ attr(a, "class", a_class_value);
+ }
+ },
+ d(detaching) {
+ if (detaching) detach(div);
+ mounted = false;
+ run_all(dispose);
+ }
+ };
+}
+
+// (39:2) {#each lines as line}
+function create_each_block(ctx) {
+ let if_block_anchor;
+ let if_block = /*line*/ ctx[21].length > 1 && create_if_block(ctx);
+
+ return {
+ c() {
+ if (if_block) if_block.c();
+ if_block_anchor = empty();
+ },
+ m(target, anchor) {
+ if (if_block) if_block.m(target, anchor);
+ insert(target, if_block_anchor, anchor);
+ },
+ p(ctx, dirty) {
+ if (/*line*/ ctx[21].length > 1) if_block.p(ctx, dirty);
+ },
+ d(detaching) {
+ if (if_block) if_block.d(detaching);
+ if (detaching) detach(if_block_anchor);
+ }
+ };
+}
+
+function create_fragment(ctx) {
+ let t;
+ let div;
+ let if_block = /*title*/ ctx[2] !== "false" && create_if_block_1(ctx);
+ let each_value = /*lines*/ ctx[5];
+ let each_blocks = [];
+
+ for (let i = 0; i < each_value.length; i += 1) {
+ each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
+ }
+
+ return {
+ c() {
+ if (if_block) if_block.c();
+ t = space();
+ div = element("div");
+
+ for (let i = 0; i < each_blocks.length; i += 1) {
+ each_blocks[i].c();
+ }
+
+ attr(div, "class", "BC-tree svelte-19hsnmq");
+ },
+ m(target, anchor) {
+ if (if_block) if_block.m(target, anchor);
+ insert(target, t, anchor);
+ insert(target, div, anchor);
+
+ for (let i = 0; i < each_blocks.length; i += 1) {
+ each_blocks[i].m(div, null);
+ }
+ },
+ p(ctx, [dirty]) {
+ if (/*title*/ ctx[2] !== "false") {
+ if (if_block) {
+ if_block.p(ctx, dirty);
+ } else {
+ if_block = create_if_block_1(ctx);
+ if_block.c();
+ if_block.m(t.parentNode, t);
+ }
+ } else if (if_block) {
+ if_block.d(1);
+ if_block = null;
+ }
+
+ if (dirty & /*settings, openOrSwitch, plugin, lines, isInVault, dropDendron*/ 41) {
+ each_value = /*lines*/ ctx[5];
+ let i;
+
+ for (i = 0; i < each_value.length; i += 1) {
+ const child_ctx = get_each_context(ctx, each_value, i);
+
+ if (each_blocks[i]) {
+ each_blocks[i].p(child_ctx, dirty);
+ } else {
+ each_blocks[i] = create_each_block(child_ctx);
+ each_blocks[i].c();
+ each_blocks[i].m(div, null);
+ }
+ }
+
+ for (; i < each_blocks.length; i += 1) {
+ each_blocks[i].d(1);
+ }
+
+ each_blocks.length = each_value.length;
+ }
+ },
+ i: noop,
+ o: noop,
+ d(detaching) {
+ if (if_block) if_block.d(detaching);
+ if (detaching) detach(t);
+ if (detaching) detach(div);
+ destroy_each(each_blocks, detaching);
+ }
+ };
+}
+
+const mouseover_handler = e => {
+
+}; // hoverPreview needs an itemView so it can access `app`...
+// hoverPreview(e, el, line[1])
+
+function instance($$self, $$props, $$invalidate) {
+
+
+
+ let { plugin } = $$props;
+ let { ctx } = $$props;
+ let { el } = $$props;
+ let { dir } = $$props;
+ let { fields } = $$props;
+ let { title } = $$props;
+ const { settings, app, mainG } = plugin;
+ const { sourcePath } = ctx;
+ const currFile = app.metadataCache.getFirstLinkpathDest(sourcePath, "");
+ const { userHiers } = settings;
+ const { basename } = currFile;
+ const oppDir = getOppDir(dir);
+ const upnDown = getSubInDirs(mainG, dir, oppDir);
+ const closed = getReflexiveClosure(upnDown, userHiers);
+ const down = getSubInDirs(closed, dir);
+ const allPaths = dfsAllPaths(down, basename);
+ const index = plugin.createIndex(allPaths, false);
+ loglevel.info({ allPaths, index });
+
+ const lines = index.split("\n").map(line => {
+ const pair = line.split("- ");
+ return [pair[0], pair.slice(1).join("- ")];
+ }).filter(pair => pair[1] !== "");
+
+ const click_handler = async (line, e) => await openOrSwitch(plugin.app, line[1], e);
+
+ $$self.$$set = $$props => {
+ if ("plugin" in $$props) $$invalidate(0, plugin = $$props.plugin);
+ if ("ctx" in $$props) $$invalidate(6, ctx = $$props.ctx);
+ if ("el" in $$props) $$invalidate(7, el = $$props.el);
+ if ("dir" in $$props) $$invalidate(1, dir = $$props.dir);
+ if ("fields" in $$props) $$invalidate(8, fields = $$props.fields);
+ if ("title" in $$props) $$invalidate(2, title = $$props.title);
+ };
+
+ return [plugin, dir, title, settings, basename, lines, ctx, el, fields, click_handler];
+}
+
+class Tree extends SvelteComponent {
+ constructor(options) {
+ super();
+ if (!document.getElementById("svelte-19hsnmq-style")) add_css();
+
+ init(this, options, instance, create_fragment, safe_not_equal, {
+ plugin: 0,
+ ctx: 6,
+ el: 7,
+ dir: 1,
+ fields: 8,
+ title: 2
+ });
+ }
+}
+
class BCPlugin extends require$$0.Plugin {
constructor() {
super(...arguments);
@@ -52221,6 +52512,71 @@ class BCPlugin extends require$$0.Plugin {
});
});
this.addRibbonIcon(addFeatherIcon("tv"), "Breadcrumbs Visualisation", () => new VisModal(this.app, this).open());
+ this.registerMarkdownCodeBlockProcessor("breadcrumbs", (source, el, ctx) => {
+ const { dir, fields, type, title } = this.parseCodeBlockSource(source);
+ const err = this.codeblockError(dir, fields, type);
+ if (err !== "") {
+ el.innerHTML = err;
+ return;
+ }
+ switch (type) {
+ case "tree":
+ new Tree({
+ target: el,
+ props: { plugin: this, dir, fields, ctx, el, title },
+ });
+ break;
+ }
+ });
+ }
+ parseCodeBlockSource(source) {
+ const lines = source.split("\n");
+ const getItem = (type) => {
+ var _a, _b, _c;
+ return (_c = (_b = (_a = lines
+ .find((l) => l.startsWith(`${type}:`))) === null || _a === void 0 ? void 0 : _a.split(":")) === null || _b === void 0 ? void 0 : _b[1]) === null || _c === void 0 ? void 0 : _c.trim();
+ };
+ const dir = getItem("dir");
+ const title = getItem("title");
+ const fields = getItem("fields");
+ const type = getItem("type");
+ return {
+ dir,
+ type,
+ title,
+ fields: fields ? splitAndTrim(fields) : undefined,
+ };
+ }
+ codeblockError(dir, fields, type) {
+ const { userHiers } = this.settings;
+ let err = "";
+ if (!CODEBLOCK_TYPES.includes(type))
+ err += `${type}
is not a valid type. It must be one of: ${CODEBLOCK_TYPES.map((type) => `${type}
`).join(", ")}.`;
+ const validDir = DIRECTIONS$1.includes(dir);
+ if (!validDir)
+ err += `${dir}
is not a valid direction.`;
+ const allFields = getFields(userHiers);
+ fields === null || fields === void 0 ? void 0 : fields.forEach((f) => {
+ if (!allFields.includes(f))
+ err += `${f}
is not a field in your hierarchies.`;
+ });
+ return err === ""
+ ? ""
+ : `${err}
+ A valid example would be:
+
+ type: tree
+ dir: ${validDir ? dir : "down"}
+ ${validDir
+ ? `fields: ${allFields
+ .map((f) => {
+ return { f, dir: getFieldInfo(userHiers, f).fieldDir };
+ })
+ .filter((info) => info.dir === dir)
+ .map((info) => info.f)
+ .join(", ") || "child"}`
+ : ""}
+
`;
}
getActiveTYPEView(type) {
const { constructor } = this.VIEWS.find((view) => view.type === type);
diff --git a/src/Components/Tree.svelte b/src/Components/Tree.svelte
new file mode 100644
index 00000000..fbfb3b91
--- /dev/null
+++ b/src/Components/Tree.svelte
@@ -0,0 +1,93 @@
+
+
+{#if title !== "false"}
+ {line[0] + "-"}+ await openOrSwitch(plugin.app, line[1], e)} + on:mouseover={(e) => { + // hoverPreview needs an itemView so it can access `app`... + // hoverPreview(e, el, line[1]) + }} + > + + {dropDendron(line[1], settings)} + +
${type}
is not a valid type. It must be one of: ${CODEBLOCK_TYPES.map(
+ (type) => `${type}
`
+ ).join(", ")}.`;
+
+ const validDir = DIRECTIONS.includes(dir);
+ if (!validDir) err += `${dir}
is not a valid direction.`;
+
+ const allFields = getFields(userHiers);
+ fields?.forEach((f) => {
+ if (!allFields.includes(f))
+ err += `${f}
is not a field in your hierarchies.`;
+ });
+
+ return err === ""
+ ? ""
+ : `${err}
+ A valid example would be:
+
+ type: tree
+ dir: ${validDir ? dir : "down"}
+ ${
+ validDir
+ ? `fields: ${
+ allFields
+ .map((f) => {
+ return { f, dir: getFieldInfo(userHiers, f).fieldDir };
+ })
+ .filter((info) => info.dir === dir)
+ .map((info) => info.f)
+ .join(", ") || "child"
+ }`
+ : ""
+ }
+
`;
}
writeBCToFile = async (file: TFile) => {