@dirwell/theme-ledger 0.0.3 → 0.0.4
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/README.md +1 -1
- package/dist/client.js +23 -23
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/source/Ledger.svelte +87 -41
- package/dist/styles.css +195 -546
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -695,7 +695,7 @@ function Ledger($$renderer, $$props) {
|
|
|
695
695
|
let virtual = $.derived(() => ready && rows().length > 500);
|
|
696
696
|
let offsets = $.derived(() => {
|
|
697
697
|
const values = [0];
|
|
698
|
-
for (const entry of rows()) values.push(values.at(-1) + (heights.get(entry.id) ??
|
|
698
|
+
for (const entry of rows()) values.push(values.at(-1) + (heights.get(entry.id) ?? 52));
|
|
699
699
|
return values;
|
|
700
700
|
});
|
|
701
701
|
let start = $.derived(() => {
|
|
@@ -853,7 +853,7 @@ function Ledger($$renderer, $$props) {
|
|
|
853
853
|
window.removeEventListener("popstate", onPop);
|
|
854
854
|
};
|
|
855
855
|
});
|
|
856
|
-
$$renderer.push(`<header class="page-header"><div class="wordmark">`);
|
|
856
|
+
$$renderer.push(`<main data-explorer="" data-framework="svelte"${$.attr("aria-busy", busy)}><header class="page-header"><div class="wordmark">`);
|
|
857
857
|
if (header) {
|
|
858
858
|
$$renderer.push("<!--[0-->");
|
|
859
859
|
header($$renderer, { model });
|
|
@@ -870,7 +870,7 @@ function Ledger($$renderer, $$props) {
|
|
|
870
870
|
let crumb = each_array[$$index];
|
|
871
871
|
$$renderer.push(`<!---->/ <a${$.attr("href", crumb.href)}>${$.escape(crumb.name)}</a>`);
|
|
872
872
|
}
|
|
873
|
-
$$renderer.push(`<!--]--></nav></header> <
|
|
873
|
+
$$renderer.push(`<!--]--></nav></header> <div class="toolbar"><label class="search-field">${$.escape(ui().labels.searchDirectory)}<input type="search"${$.attr("placeholder", ui().labels.searchFiles)}${$.attr("value", query)}${$.attr("disabled", !ready || !complete(), true)}/></label> <fieldset${$.attr("disabled", !ready || !complete(), true)}><legend>${$.escape(ui().labels.types)}</legend><!--[-->`);
|
|
874
874
|
const each_array_1 = $.ensure_array_like([
|
|
875
875
|
"directory",
|
|
876
876
|
"file",
|
|
@@ -959,7 +959,7 @@ function Ledger($$renderer, $$props) {
|
|
|
959
959
|
$$renderer.push(`<!--]--> `);
|
|
960
960
|
if (failure === "folder" && retryRequest) $$renderer.push(`<!--[0--><a${$.attr("href", retryRequest[1])}>${$.escape(ui().labels.openNative)}</a>`);
|
|
961
961
|
else $$renderer.push("<!--[-1-->");
|
|
962
|
-
$$renderer.push(`<!--]--> <div class="entry-head"${$.attr("data-custom-columns", Boolean(model.ui?.columns))}${$.attr_style("", { "
|
|
962
|
+
$$renderer.push(`<!--]--> <div class="entry-head"${$.attr("data-custom-columns", Boolean(model.ui?.columns))}${$.attr_style("", { "--dw-entry-columns": model.ui?.columns ? ui().columns.map((column) => column === "name" ? "minmax(0,1fr)" : "minmax(0,12rem)").join(" ") : void 0 })}><!--[-->`);
|
|
963
963
|
const each_array_2 = $.ensure_array_like(ui().columns);
|
|
964
964
|
for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
|
|
965
965
|
let column = each_array_2[$$index_2];
|
|
@@ -975,7 +975,7 @@ function Ledger($$renderer, $$props) {
|
|
|
975
975
|
const each_array_3 = $.ensure_array_like(rows().slice(start(), end()));
|
|
976
976
|
for (let index = 0, $$length = each_array_3.length; index < $$length; index++) {
|
|
977
977
|
let entry = each_array_3[index];
|
|
978
|
-
$$renderer.push(`<li class="entry" data-entry=""${$.attr("data-custom-columns", Boolean(model.ui?.columns))}${$.attr("data-id", entry.id)}${$.attr("data-order", start() + index)}${$.attr("data-active", selected === entry.id)}${$.attr_style("", { "
|
|
978
|
+
$$renderer.push(`<li class="entry" data-entry=""${$.attr("data-custom-columns", Boolean(model.ui?.columns))}${$.attr("data-id", entry.id)}${$.attr("data-order", start() + index)}${$.attr("data-active", selected === entry.id)}${$.attr_style("", { "--dw-entry-columns": model.ui?.columns ? ui().columns.map((column) => column === "name" ? "minmax(0,1fr)" : "minmax(0,12rem)").join(" ") : void 0 })}><!--[-->`);
|
|
979
979
|
const each_array_4 = $.ensure_array_like(ui().columns);
|
|
980
980
|
for (let $$index_3 = 0, $$length = each_array_4.length; $$index_3 < $$length; $$index_3++) {
|
|
981
981
|
let column = each_array_4[$$index_3];
|