diff --git a/main.js b/main.js index 7e4b9433..3c41297d 100644 --- a/main.js +++ b/main.js @@ -23971,65 +23971,95 @@ function add_css$3() { function get_each_context$4(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } function get_each_context_1$4(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } function get_each_context_2$1(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } function get_each_context_3(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[30] = list[i]; - child_ctx[32] = i; + child_ctx[34] = list[i]; + child_ctx[36] = i; return child_ctx; } function get_each_context_4(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } function get_each_context_5(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } function get_each_context_6(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[23] = list[i]; + child_ctx[27] = list[i]; return child_ctx; } -// (100:6) {#each ["up", "same", "down"] as dir} +function get_each_context_7(ctx, list, i) { + const child_ctx = ctx.slice(); + child_ctx[27] = list[i]; + return child_ctx; +} + +// (87:4) {#each DIRECTIONS as dir} +function create_each_block_7(ctx) { + let td; + let t_value = ARROW_DIRECTIONS[/*dir*/ ctx[27]] + ""; + let t; + + return { + c() { + td = element("td"); + t = text(t_value); + attr(td, "class", "svelte-rb5mhu"); + }, + m(target, anchor) { + insert(target, td, anchor); + append(td, t); + }, + p: noop$1, + d(detaching) { + if (detaching) detach(td); + } + }; +} + +// (99:6) {#each DIRECTIONS as dir} function create_each_block_6(ctx) { let td; - let t_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Merged.nodes.length + ""; + let t_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Merged.nodes.length + ""; let t; let td_aria_label_value; let mounted; let dispose; function click_handler() { - return /*click_handler*/ ctx[4](/*i*/ ctx[32], /*dir*/ ctx[23]); + return /*click_handler*/ ctx[5](/*i*/ ctx[36], /*dir*/ ctx[27]); } return { c() { td = element("td"); t = text(t_value); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Merged.nodesStr); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Merged.nodesStr); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24052,24 +24082,25 @@ function create_each_block_6(ctx) { }; } -// (132:6) {#each ["up", "same", "down"] as dir} +// (118:6) {#each DIRECTIONS as dir} function create_each_block_5(ctx) { let td; - let t_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Merged.edges.length + ""; + let t_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Merged.edges.length + ""; let t; let td_aria_label_value; let mounted; let dispose; function click_handler_2() { - return /*click_handler_2*/ ctx[6](/*i*/ ctx[32], /*dir*/ ctx[23]); + return /*click_handler_2*/ ctx[8](/*i*/ ctx[36], /*dir*/ ctx[27]); } return { c() { td = element("td"); t = text(t_value); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Merged.edgesStr); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Merged.edgesStr); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24092,24 +24123,25 @@ function create_each_block_5(ctx) { }; } -// (164:6) {#each ["up", "same", "down"] as dir} +// (137:6) {#each DIRECTIONS as dir} function create_each_block_4(ctx) { let td; - let t_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Implied.edges.length + ""; + let t_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Implied.edges.length + ""; let t; let td_aria_label_value; let mounted; let dispose; function click_handler_4() { - return /*click_handler_4*/ ctx[8](/*i*/ ctx[32], /*dir*/ ctx[23]); + return /*click_handler_4*/ ctx[11](/*i*/ ctx[36], /*dir*/ ctx[27]); } return { c() { td = element("td"); t = text(t_value); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[32]][/*dir*/ ctx[23]].Implied.edgesStr); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1][/*i*/ ctx[36]][/*dir*/ ctx[27]].Implied.edgesStr); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24132,24 +24164,18 @@ function create_each_block_4(ctx) { }; } -// (94:2) {#each userHierarchies as hier, i} +// (93:2) {#each userHierarchies as hier, i} function create_each_block_3(ctx) { let tr0; let td0; - let t0_value = /*hierStrs*/ ctx[2][/*i*/ ctx[32]] + ""; + let t0_value = /*hierStrs*/ ctx[3][/*i*/ ctx[36]] + ""; let t0; let t1; let td1; let t3; let t4; let td2; - - let t5_value = [ - .../*data*/ ctx[1][/*i*/ ctx[32]].up.Merged.nodes, - .../*data*/ ctx[1][/*i*/ ctx[32]].same.Merged.nodes, - .../*data*/ ctx[1][/*i*/ ctx[32]].down.Merged.nodes - ].length + ""; - + let t5_value = lodash.sum(DIRECTIONS.map(func)) + ""; let t5; let td2_aria_label_value; let t6; @@ -24158,13 +24184,7 @@ function create_each_block_3(ctx) { let t8; let t9; let td4; - - let t10_value = [ - .../*data*/ ctx[1][/*i*/ ctx[32]].up.Merged.edges, - .../*data*/ ctx[1][/*i*/ ctx[32]].same.Merged.edges, - .../*data*/ ctx[1][/*i*/ ctx[32]].down.Merged.edges - ].length + ""; - + let t10_value = lodash.sum(DIRECTIONS.map(func_1)) + ""; let t10; let td4_aria_label_value; let t11; @@ -24173,48 +24193,54 @@ function create_each_block_3(ctx) { let t13; let t14; let td6; - - let t15_value = [ - .../*data*/ ctx[1][/*i*/ ctx[32]].up.Implied.edges, - .../*data*/ ctx[1][/*i*/ ctx[32]].same.Implied.edges, - .../*data*/ ctx[1][/*i*/ ctx[32]].down.Implied.edges - ].length + ""; - + let t15_value = lodash.sum(DIRECTIONS.map(func_2)) + ""; let t15; let td6_aria_label_value; let mounted; let dispose; - let each_value_6 = ["up", "same", "down"]; + let each_value_6 = DIRECTIONS; let each_blocks_2 = []; - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_value_6.length; i += 1) { each_blocks_2[i] = create_each_block_6(get_each_context_6(ctx, each_value_6, i)); } + function func(...args) { + return /*func*/ ctx[6](/*i*/ ctx[36], ...args); + } + function click_handler_1() { - return /*click_handler_1*/ ctx[5](/*i*/ ctx[32]); + return /*click_handler_1*/ ctx[7](/*i*/ ctx[36]); } - let each_value_5 = ["up", "same", "down"]; + let each_value_5 = DIRECTIONS; let each_blocks_1 = []; - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_value_5.length; i += 1) { each_blocks_1[i] = create_each_block_5(get_each_context_5(ctx, each_value_5, i)); } + function func_1(...args) { + return /*func_1*/ ctx[9](/*i*/ ctx[36], ...args); + } + function click_handler_3() { - return /*click_handler_3*/ ctx[7](/*i*/ ctx[32]); + return /*click_handler_3*/ ctx[10](/*i*/ ctx[36]); } - let each_value_4 = ["up", "same", "down"]; + let each_value_4 = DIRECTIONS; let each_blocks = []; - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_value_4.length; i += 1) { each_blocks[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i)); } + function func_2(...args) { + return /*func_2*/ ctx[12](/*i*/ ctx[36], ...args); + } + function click_handler_5() { - return /*click_handler_5*/ ctx[9](/*i*/ ctx[32]); + return /*click_handler_5*/ ctx[13](/*i*/ ctx[36]); } return { @@ -24227,7 +24253,7 @@ function create_each_block_3(ctx) { td1.textContent = "Nodes"; t3 = space(); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks_2.length; i += 1) { each_blocks_2[i].c(); } @@ -24240,7 +24266,7 @@ function create_each_block_3(ctx) { td3.textContent = "Real Edges"; t8 = space(); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks_1.length; i += 1) { each_blocks_1[i].c(); } @@ -24253,7 +24279,7 @@ function create_each_block_3(ctx) { td5.textContent = "Implied Edges"; t13 = space(); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks.length; i += 1) { each_blocks[i].c(); } @@ -24263,31 +24289,16 @@ function create_each_block_3(ctx) { attr(td0, "rowspan", "3"); attr(td0, "class", "svelte-rb5mhu"); attr(td1, "class", "svelte-rb5mhu"); - - attr(td2, "aria-label", td2_aria_label_value = [ - /*data*/ ctx[1][/*i*/ ctx[32]].up.Merged.nodesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].same.Merged.nodesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].down.Merged.nodesStr - ].join("\n")); - + attr(td2, "aria-label-position", "left"); + attr(td2, "aria-label", td2_aria_label_value = /*cellStr*/ ctx[2](/*i*/ ctx[36], "Merged", "nodesStr")); attr(td2, "class", "svelte-rb5mhu"); attr(td3, "class", "svelte-rb5mhu"); - - attr(td4, "aria-label", td4_aria_label_value = [ - /*data*/ ctx[1][/*i*/ ctx[32]].up.Merged.edgesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].same.Merged.edgesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].down.Merged.edgesStr - ].join("\n")); - + attr(td4, "aria-label-position", "left"); + attr(td4, "aria-label", td4_aria_label_value = /*cellStr*/ ctx[2](/*i*/ ctx[36], "Merged", "edgesStr")); attr(td4, "class", "svelte-rb5mhu"); attr(td5, "class", "svelte-rb5mhu"); - - attr(td6, "aria-label", td6_aria_label_value = [ - /*data*/ ctx[1][/*i*/ ctx[32]].up.Implied.edgesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].same.Implied.edgesStr, - /*data*/ ctx[1][/*i*/ ctx[32]].down.Implied.edgesStr - ].join("\n")); - + attr(td6, "aria-label-position", "left"); + attr(td6, "aria-label", td6_aria_label_value = /*cellStr*/ ctx[2](/*i*/ ctx[36], "Implied", "edgesStr")); attr(td6, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24298,7 +24309,7 @@ function create_each_block_3(ctx) { append(tr0, td1); append(tr0, t3); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks_2.length; i += 1) { each_blocks_2[i].m(tr0, null); } @@ -24310,7 +24321,7 @@ function create_each_block_3(ctx) { append(tr1, td3); append(tr1, t8); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks_1.length; i += 1) { each_blocks_1[i].m(tr1, null); } @@ -24322,7 +24333,7 @@ function create_each_block_3(ctx) { append(tr2, td5); append(tr2, t13); - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_blocks.length; i += 1) { each_blocks[i].m(tr2, null); } @@ -24344,10 +24355,10 @@ function create_each_block_3(ctx) { ctx = new_ctx; if (dirty[0] & /*data*/ 2) { - each_value_6 = ["up", "same", "down"]; + each_value_6 = DIRECTIONS; let i; - for (i = 0; i < 3; i += 1) { + for (i = 0; i < each_value_6.length; i += 1) { const child_ctx = get_each_context_6(ctx, each_value_6, i); if (each_blocks_2[i]) { @@ -24359,16 +24370,18 @@ function create_each_block_3(ctx) { } } - for (; i < 3; i += 1) { + for (; i < each_blocks_2.length; i += 1) { each_blocks_2[i].d(1); } + + each_blocks_2.length = each_value_6.length; } if (dirty[0] & /*data*/ 2) { - each_value_5 = ["up", "same", "down"]; + each_value_5 = DIRECTIONS; let i; - for (i = 0; i < 3; i += 1) { + for (i = 0; i < each_value_5.length; i += 1) { const child_ctx = get_each_context_5(ctx, each_value_5, i); if (each_blocks_1[i]) { @@ -24380,16 +24393,18 @@ function create_each_block_3(ctx) { } } - for (; i < 3; i += 1) { + for (; i < each_blocks_1.length; i += 1) { each_blocks_1[i].d(1); } + + each_blocks_1.length = each_value_5.length; } if (dirty[0] & /*data*/ 2) { - each_value_4 = ["up", "same", "down"]; + each_value_4 = DIRECTIONS; let i; - for (i = 0; i < 3; i += 1) { + for (i = 0; i < each_value_4.length; i += 1) { const child_ctx = get_each_context_4(ctx, each_value_4, i); if (each_blocks[i]) { @@ -24401,9 +24416,11 @@ function create_each_block_3(ctx) { } } - for (; i < 3; i += 1) { + for (; i < each_blocks.length; i += 1) { each_blocks[i].d(1); } + + each_blocks.length = each_value_4.length; } }, d(detaching) { @@ -24421,26 +24438,26 @@ function create_each_block_3(ctx) { }; } -// (198:4) {#each ["up", "same", "down"] as dir} +// (158:4) {#each DIRECTIONS as dir} function create_each_block_2$1(ctx) { let td; - let t0_value = lodash.sum(/*data*/ ctx[1].map(func)) + ""; + let t0_value = lodash.sum(/*data*/ ctx[1].map(func_3)) + ""; let t0; let t1; let td_aria_label_value; let mounted; let dispose; - function func(...args) { - return /*func*/ ctx[10](/*dir*/ ctx[23], ...args); + function func_3(...args) { + return /*func_3*/ ctx[14](/*dir*/ ctx[27], ...args); } - function func_1(...args) { - return /*func_1*/ ctx[11](/*dir*/ ctx[23], ...args); + function func_4(...args) { + return /*func_4*/ ctx[15](/*dir*/ ctx[27], ...args); } function click_handler_6() { - return /*click_handler_6*/ ctx[12](/*dir*/ ctx[23]); + return /*click_handler_6*/ ctx[16](/*dir*/ ctx[27]); } return { @@ -24448,7 +24465,8 @@ function create_each_block_2$1(ctx) { td = element("td"); t0 = text(t0_value); t1 = space(); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_1).join("\n")); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_4).join("\n")); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24472,26 +24490,26 @@ function create_each_block_2$1(ctx) { }; } -// (237:4) {#each ["up", "same", "down"] as dir} +// (199:4) {#each DIRECTIONS as dir} function create_each_block_1$4(ctx) { let td; - let t0_value = lodash.sum(/*data*/ ctx[1].map(func_2)) + ""; + let t0_value = lodash.sum(/*data*/ ctx[1].map(func_5)) + ""; let t0; let t1; let td_aria_label_value; let mounted; let dispose; - function func_2(...args) { - return /*func_2*/ ctx[13](/*dir*/ ctx[23], ...args); + function func_5(...args) { + return /*func_5*/ ctx[17](/*dir*/ ctx[27], ...args); } - function func_3(...args) { - return /*func_3*/ ctx[14](/*dir*/ ctx[23], ...args); + function func_6(...args) { + return /*func_6*/ ctx[18](/*dir*/ ctx[27], ...args); } function click_handler_7() { - return /*click_handler_7*/ ctx[15](/*dir*/ ctx[23]); + return /*click_handler_7*/ ctx[19](/*dir*/ ctx[27]); } return { @@ -24499,7 +24517,8 @@ function create_each_block_1$4(ctx) { td = element("td"); t0 = text(t0_value); t1 = space(); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_3).join("\n")); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_6).join("\n")); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24523,26 +24542,26 @@ function create_each_block_1$4(ctx) { }; } -// (272:4) {#each ["up", "same", "down"] as dir} +// (236:4) {#each DIRECTIONS as dir} function create_each_block$4(ctx) { let td; - let t0_value = lodash.sum(/*data*/ ctx[1].map(func_4)) + ""; + let t0_value = lodash.sum(/*data*/ ctx[1].map(func_7)) + ""; let t0; let t1; let td_aria_label_value; let mounted; let dispose; - function func_4(...args) { - return /*func_4*/ ctx[16](/*dir*/ ctx[23], ...args); + function func_7(...args) { + return /*func_7*/ ctx[20](/*dir*/ ctx[27], ...args); } - function func_5(...args) { - return /*func_5*/ ctx[17](/*dir*/ ctx[23], ...args); + function func_8(...args) { + return /*func_8*/ ctx[21](/*dir*/ ctx[27], ...args); } function click_handler_8() { - return /*click_handler_8*/ ctx[18](/*dir*/ ctx[23]); + return /*click_handler_8*/ ctx[22](/*dir*/ ctx[27]); } return { @@ -24550,7 +24569,8 @@ function create_each_block$4(ctx) { td = element("td"); t0 = text(t0_value); t1 = space(); - attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_5).join("\n")); + attr(td, "aria-label-position", "left"); + attr(td, "aria-label", td_aria_label_value = /*data*/ ctx[1].map(func_8).join("\n")); attr(td, "class", "svelte-rb5mhu"); }, m(target, anchor) { @@ -24577,23 +24597,41 @@ function create_each_block$4(ctx) { function create_fragment$4(ctx) { let table; let thead; + let tr0; + let th0; + let t1; + let th1; + let t2; let t3; let tr1; + let td0; + let t4; + let td1; + let t6; + let t7; + let td2; + let t9; + let t10; + let tr2; + let td3; + let t12; + let td4; let t14; let t15; - let tr2; - let td6; - let t17; - let td7; - let t19; - let t20; let tr3; - let td8; - let t22; - let t23; + let td5; + let t17; + let t18; let tr4; - let td9; - let t25; + let td6; + let t20; + let each_value_7 = DIRECTIONS; + let each_blocks_4 = []; + + for (let i = 0; i < each_value_7.length; i += 1) { + each_blocks_4[i] = create_each_block_7(get_each_context_7(ctx, each_value_7, i)); + } + let each_value_3 = /*userHierarchies*/ ctx[0]; let each_blocks_3 = []; @@ -24601,24 +24639,24 @@ function create_fragment$4(ctx) { each_blocks_3[i] = create_each_block_3(get_each_context_3(ctx, each_value_3, i)); } - let each_value_2 = ["up", "same", "down"]; + let each_value_2 = DIRECTIONS; let each_blocks_2 = []; - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_value_2.length; i += 1) { each_blocks_2[i] = create_each_block_2$1(get_each_context_2$1(ctx, each_value_2, i)); } - let each_value_1 = ["up", "same", "down"]; + let each_value_1 = DIRECTIONS; let each_blocks_1 = []; - for (let i = 0; i < 3; i += 1) { + for (let i = 0; i < each_value_1.length; i += 1) { each_blocks_1[i] = create_each_block_1$4(get_each_context_1$4(ctx, each_value_1, i)); } - let each_value = ["up", "same", "down"]; + let each_value = DIRECTIONS; let each_blocks = []; - for (let i = 0; i < 3; i += 1) { + 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)); } @@ -24626,108 +24664,162 @@ function create_fragment$4(ctx) { c() { table = element("table"); thead = element("thead"); - - thead.innerHTML = `