@hiai-gg/docsmint 0.7.0 → 0.7.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/README.md +97 -103
- package/dist/backend/index.js +2 -2
- package/dist/frontend/CategoryDialog-bQKMpVFD.js +631 -0
- package/dist/frontend/ConfirmDialog-DF7kgkyq.js +139 -0
- package/dist/frontend/CreateSnapshotDialog-CojnWChs.js +222 -0
- package/dist/frontend/{DatePicker-DsoepNdb.js → DatePicker-7FAbIOGg.js} +4 -4
- package/dist/frontend/DeleteDialog-BIlqRb1u.js +179 -0
- package/dist/frontend/{FolderNode-CNwi0ySr.js → FolderNode-Cf443LBa.js} +2 -2
- package/dist/frontend/{HiAiEditor-B1EDGsnA.js → HiAiEditor-CMZ-eL8s.js} +961 -955
- package/dist/frontend/SettingsDialog-DatuxOVX.js +980 -0
- package/dist/frontend/{ShareDialog-wGTXuXFE.js → ShareDialog-Bwz2y3Le.js} +2 -2
- package/dist/frontend/Sidebar-C_t5RrOJ.js +2101 -0
- package/dist/frontend/TagCreateDialog-Ch21yuWV.js +266 -0
- package/dist/frontend/app-shell.d.ts +3 -1
- package/dist/frontend/app-shell.js +155 -152
- package/dist/frontend/components/category-dialog.js +1 -1
- package/dist/frontend/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend/components/delete-dialog.js +1 -1
- package/dist/frontend/components/editor/compact-editor.js +1 -1
- package/dist/frontend/components/editor/document-editor.js +1 -1
- package/dist/frontend/components/editor/document-title.js +1 -1
- package/dist/frontend/components/editor/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend/components/editor/markdown.js +1 -1
- package/dist/frontend/components/folder-node.js +1 -1
- package/dist/frontend/components/save-as-dialog.js +232 -227
- package/dist/frontend/components/settings.js +1 -1
- package/dist/frontend/components/share-dialog.js +1 -1
- package/dist/frontend/components/sidebar.js +1 -1
- package/dist/frontend/components/tag-create-dialog.js +1 -1
- package/dist/frontend/components/version-history.js +3 -3
- package/dist/frontend/confirm-dialog-8T6vsWL7.js +265 -0
- package/dist/frontend/dashboard.js +600 -592
- package/dist/frontend/dialog-CiSwD-_v.js +253 -0
- package/dist/frontend/{dropdown-menu-BXIl2E26.js → dropdown-menu-Bi5Iipwf.js} +6 -6
- package/dist/frontend/editor-content-sanitizer-CC_A8aaI.js +112 -0
- package/dist/frontend/{editorExtensions-BmINh76i.js → editorExtensions--HusV819.js} +3356 -3423
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/i18n.js +1 -1
- package/dist/frontend/{input-eHFb2qiL.js → input-N9dNSOWF.js} +2 -2
- package/dist/frontend/{label-_I1iiaNU.js → label-CK72_fw8.js} +2 -2
- package/dist/frontend/{markdown-A5xji16P.js → markdown-H6QB53zu.js} +1 -1
- package/dist/frontend/messages-DTRe4U2V.js +1093 -0
- package/dist/frontend/search.js +3 -3
- package/dist/frontend/{select-value-CtMyrvDJ.js → select-value-BD1DToYs.js} +6 -6
- package/dist/frontend/shared-document.js +95 -92
- package/dist/frontend/{textarea-2eslfANY.js → textarea-pl_fDBre.js} +2 -2
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/theme.svelte-DG3RS7wv.js +101 -0
- package/dist/frontend/{utils-CDBqTgoV.js → utils-CMQRlxbx.js} +1 -1
- package/dist/frontend-ssr/app-shell.js +9 -5
- package/dist/frontend-ssr/assets/CategoryDialog-DsXe54EF.js +608 -0
- package/dist/frontend-ssr/assets/ConfirmDialog-DrH653ua.js +136 -0
- package/dist/frontend-ssr/assets/{CreateSnapshotDialog-BZ45odvJ.js → CreateSnapshotDialog-D3-PjXVr.js} +93 -88
- package/dist/frontend-ssr/assets/{DatePicker-CPtl6W5E.js → DatePicker-C9suIA1S.js} +4 -4
- package/dist/frontend-ssr/assets/DeleteDialog-DxtMrS1O.js +159 -0
- package/dist/frontend-ssr/assets/{FolderNode-D9kgJG9d.js → FolderNode-ChD10Elp.js} +2 -2
- package/dist/frontend-ssr/assets/{HiAiEditor-DOd2MXjD.js → HiAiEditor-2X3Uyg1B.js} +60 -54
- package/dist/frontend-ssr/assets/{SettingsDialog-CIVbMKmf.js → SettingsDialog-DDy0hN8x.js} +373 -361
- package/dist/frontend-ssr/assets/{ShareDialog-D2UNUbF7.js → ShareDialog-BwW_wF4G.js} +2 -2
- package/dist/frontend-ssr/assets/{Sidebar-Bb-k2R-Z.js → Sidebar-Dy-5gXOf.js} +170 -129
- package/dist/frontend-ssr/assets/{TagCreateDialog-6Gk7L3D-.js → TagCreateDialog-BPzgOaX8.js} +94 -89
- package/dist/frontend-ssr/assets/{confirm-dialog-B9MVS_bF.js → confirm-dialog-wYC07DPx.js} +109 -89
- package/dist/frontend-ssr/assets/{dialog-1SB5neow.js → dialog-ClcuF7nD.js} +47 -12
- package/dist/frontend-ssr/assets/{dropdown-menu-DqoOkdqB.js → dropdown-menu-BKMGVNLL.js} +6 -6
- package/dist/frontend-ssr/assets/editor-content-sanitizer-Gjm93iR-.js +145 -0
- package/dist/frontend-ssr/assets/{editorExtensions-BwGeSPuX.js → editorExtensions-qNlZVP98.js} +2 -88
- package/dist/frontend-ssr/assets/{input-Df-QP3Km.js → input-DcDR8L8M.js} +2 -2
- package/dist/frontend-ssr/assets/{label-CbUOUz6L.js → label-Cz0_svJx.js} +2 -2
- package/dist/frontend-ssr/assets/{markdown-CB8DZ-LT.js → markdown-MhPwNWrC.js} +1 -1
- package/dist/frontend-ssr/assets/{messages-BAQzILs4.js → messages-B1TjVIH8.js} +2 -2
- package/dist/frontend-ssr/assets/{select-value-CXEDWrZg.js → select-value-CaDktvDW.js} +6 -6
- package/dist/frontend-ssr/assets/{textarea-CHh8NuSS.js → textarea-BGrjPOgU.js} +2 -2
- package/dist/frontend-ssr/assets/theme.svelte-CN3BUhJG.js +136 -0
- package/dist/frontend-ssr/assets/{utils-DtX0ta7y.js → utils-Cg_R05dR.js} +1 -1
- package/dist/frontend-ssr/components/category-dialog.js +1 -1
- package/dist/frontend-ssr/components/create-snapshot-dialog.js +1 -1
- package/dist/frontend-ssr/components/delete-dialog.js +1 -1
- package/dist/frontend-ssr/components/editor/compact-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-editor.js +1 -1
- package/dist/frontend-ssr/components/editor/document-title.js +1 -1
- package/dist/frontend-ssr/components/editor/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +2 -2
- package/dist/frontend-ssr/components/editor/markdown.js +1 -1
- package/dist/frontend-ssr/components/folder-node.js +1 -1
- package/dist/frontend-ssr/components/save-as-dialog.js +177 -172
- package/dist/frontend-ssr/components/settings.js +1 -1
- package/dist/frontend-ssr/components/share-dialog.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/components/tag-create-dialog.js +1 -1
- package/dist/frontend-ssr/components/version-history.js +3 -3
- package/dist/frontend-ssr/dashboard.js +102 -95
- package/dist/frontend-ssr/i18n.js +1 -1
- package/dist/frontend-ssr/search.js +3 -3
- package/dist/frontend-ssr/shared-document.js +3 -0
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/mcp-cli.js +1 -1
- package/dist/mcp-server.js +1 -1
- package/package.json +1 -1
- package/packages/cli/src/index.ts +4 -3
- package/server.json +43 -6
- package/dist/frontend/CategoryDialog-C67_TXf0.js +0 -626
- package/dist/frontend/ConfirmDialog-_LlrA--f.js +0 -134
- package/dist/frontend/CreateSnapshotDialog-BmCRpOMv.js +0 -217
- package/dist/frontend/DeleteDialog-L1A3FhMM.js +0 -174
- package/dist/frontend/SettingsDialog-AP42xOGg.js +0 -969
- package/dist/frontend/Sidebar-lKQT3dEf.js +0 -2060
- package/dist/frontend/TagCreateDialog-su8BhLzS.js +0 -261
- package/dist/frontend/confirm-dialog-BG8y2Pum.js +0 -250
- package/dist/frontend/dialog-C2iKObEu.js +0 -213
- package/dist/frontend/messages-DIovIZrK.js +0 -1093
- package/dist/frontend/theme.svelte-DKfCy12k.js +0 -49
- package/dist/frontend-ssr/assets/CategoryDialog-BGuHTb3K.js +0 -603
- package/dist/frontend-ssr/assets/ConfirmDialog-D1BDXXll.js +0 -131
- package/dist/frontend-ssr/assets/DeleteDialog-oHT_p_vG.js +0 -154
- package/dist/frontend-ssr/assets/theme.svelte-Co0-ssaD.js +0 -67
|
@@ -1,273 +1,278 @@
|
|
|
1
1
|
import { t as e } from "../chevron-down-C2ft7XUV.js";
|
|
2
2
|
import { t } from "../FolderTreeSelector-BMB1MS9N.js";
|
|
3
3
|
import { n } from "../dist-DQa_OHOa.js";
|
|
4
|
-
import { ir as r, rr as i } from "../messages-
|
|
4
|
+
import { ir as r, rr as i } from "../messages-DTRe4U2V.js";
|
|
5
5
|
import { a } from "../route-context-DYQlUfzL.js";
|
|
6
|
-
import { a as o, i as s, n as c, o as l, r as u,
|
|
7
|
-
import { t as
|
|
8
|
-
import { i as
|
|
9
|
-
import { a as
|
|
10
|
-
import { s as
|
|
11
|
-
import { d as
|
|
6
|
+
import { a as o, i as s, n as c, o as l, r as u, s as d, t as f } from "../dialog-CiSwD-_v.js";
|
|
7
|
+
import { t as p } from "../label-CK72_fw8.js";
|
|
8
|
+
import { i as m } from "../categories-X7gK8azc.js";
|
|
9
|
+
import { a as h, i as g, n as _, r as v, t as y } from "../select-value-BD1DToYs.js";
|
|
10
|
+
import { s as b } from "../folders-ONG03Dkv.js";
|
|
11
|
+
import { d as x } from "../subfolders-refresh-store.svelte-DxP21a1c.js";
|
|
12
12
|
import "svelte/internal/disclose-version";
|
|
13
|
-
import * as
|
|
13
|
+
import * as S from "svelte/internal/client";
|
|
14
14
|
//#region src/lib/components/SaveAsDialog.svelte
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
let
|
|
19
|
-
Root:
|
|
20
|
-
Content:
|
|
21
|
-
Item:
|
|
22
|
-
Trigger:
|
|
23
|
-
Value:
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
var C = S.from_html("<!> <!>", 1), w = S.from_html("<div class=\"flex items-center justify-center py-6\"><!></div>"), T = S.from_html("<p class=\"text-sm text-destructive\" role=\"alert\"> </p>"), E = S.from_html("<form class=\"space-y-4 py-2\"><!> <div class=\"space-y-2\"><!> <input id=\"save-as-title\" type=\"text\" placeholder=\"Enter new document title\" required=\"\" class=\"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\"/></div> <div class=\"space-y-2\"><!> <!></div> <div class=\"space-y-2\"><!> <!></div></form>"), D = S.from_html("<!> ", 1), O = S.from_html("<!> <!> <!>", 1);
|
|
16
|
+
function k(k, A) {
|
|
17
|
+
S.push(A, !0);
|
|
18
|
+
let j = {
|
|
19
|
+
Root: h,
|
|
20
|
+
Content: g,
|
|
21
|
+
Item: v,
|
|
22
|
+
Trigger: _,
|
|
23
|
+
Value: y
|
|
24
|
+
}, M = a(), N = S.prop(A, "open", 15, !1), P = S.prop(A, "initialTitle", 3, ""), F = S.prop(A, "initialParentId", 3, null), I = S.prop(A, "initialCategoryId", 3, null), L = S.state(S.proxy([])), R = S.state(S.proxy([])), z = S.state(!1), B = S.state(!1), V = S.state(null), H = S.state(""), U = S.state(null), W = S.state(void 0);
|
|
25
|
+
S.user_effect(() => {
|
|
26
|
+
N() && (S.set(H, P() ? `${P()} (Copy)` : "Untitled (Copy)", !0), S.set(U, F()), S.set(W, I() || "null", !0), S.set(V, null), G());
|
|
27
27
|
});
|
|
28
|
-
async function
|
|
29
|
-
|
|
28
|
+
async function G() {
|
|
29
|
+
S.set(z, !0);
|
|
30
30
|
try {
|
|
31
|
-
let [e, t] = await Promise.all([
|
|
32
|
-
|
|
31
|
+
let [e, t] = await Promise.all([m(M.fetch), b(null, !0, M.fetch)]);
|
|
32
|
+
S.set(R, e, !0), S.set(L, t, !0);
|
|
33
33
|
} catch (e) {
|
|
34
|
-
console.error("Failed to load SaveAsDialog options", e),
|
|
34
|
+
console.error("Failed to load SaveAsDialog options", e), S.set(V, "Failed to load folders or categories");
|
|
35
35
|
} finally {
|
|
36
|
-
|
|
36
|
+
S.set(z, !1);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
async function
|
|
40
|
-
if (e?.preventDefault(), !
|
|
41
|
-
|
|
39
|
+
async function K(e) {
|
|
40
|
+
if (e?.preventDefault(), !S.get(H).trim()) {
|
|
41
|
+
S.set(V, "Title cannot be empty");
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
if (!
|
|
45
|
-
|
|
44
|
+
if (!S.get(B)) {
|
|
45
|
+
S.set(B, !0);
|
|
46
46
|
try {
|
|
47
|
-
if (
|
|
48
|
-
let e =
|
|
49
|
-
await
|
|
47
|
+
if (A.onSave) {
|
|
48
|
+
let e = S.get(U) === "" || S.get(U) === "null" ? null : S.get(U), t = S.get(W) === "" || S.get(W) === "null" || S.get(W) === void 0 ? null : S.get(W);
|
|
49
|
+
await A.onSave(S.get(H).trim(), e, t);
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
x(), N(!1);
|
|
52
52
|
} catch (e) {
|
|
53
|
-
console.error("Failed to duplicate item", e),
|
|
53
|
+
console.error("Failed to duplicate item", e), S.set(V, e instanceof Error ? e.message : "Failed to duplicate item", !0);
|
|
54
54
|
} finally {
|
|
55
|
-
|
|
55
|
+
S.set(B, !1);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function q() {
|
|
60
|
+
S.get(B) || (N(!1), A.onClose?.());
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
l(k, {
|
|
63
63
|
onOpenChange: (e) => {
|
|
64
|
-
e ||
|
|
64
|
+
e || q();
|
|
65
65
|
},
|
|
66
66
|
get open() {
|
|
67
|
-
return
|
|
67
|
+
return N();
|
|
68
68
|
},
|
|
69
69
|
set open(e) {
|
|
70
|
-
|
|
70
|
+
N(e);
|
|
71
71
|
},
|
|
72
|
-
children: (a,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
d(r, {
|
|
72
|
+
children: (a, l) => {
|
|
73
|
+
o(a, {
|
|
74
|
+
children: (a, o) => {
|
|
75
|
+
var l = O(), m = S.first_child(l);
|
|
76
|
+
c(m, {
|
|
78
77
|
children: (e, t) => {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
var n = C(), r = S.first_child(n);
|
|
79
|
+
f(r, {
|
|
80
|
+
children: (e, t) => {
|
|
81
|
+
S.next();
|
|
82
|
+
var n = S.text("Save as Copy");
|
|
83
|
+
S.append(e, n);
|
|
84
|
+
},
|
|
85
|
+
$$slots: { default: !0 }
|
|
86
|
+
}), s(S.sibling(r, 2), {
|
|
87
|
+
children: (e, t) => {
|
|
88
|
+
S.next();
|
|
89
|
+
var n = S.text("Create a copy of this document with a new title, folder, and category.");
|
|
90
|
+
S.append(e, n);
|
|
91
|
+
},
|
|
92
|
+
$$slots: { default: !0 }
|
|
93
|
+
}), S.append(e, n);
|
|
82
94
|
},
|
|
83
95
|
$$slots: { default: !0 }
|
|
84
|
-
})
|
|
96
|
+
});
|
|
97
|
+
var h = S.sibling(m, 2), g = (e) => {
|
|
98
|
+
var t = w();
|
|
99
|
+
n(S.child(t), { class: "size-6 animate-spin text-muted-foreground" }), S.reset(t), S.append(e, t);
|
|
100
|
+
}, _ = (n) => {
|
|
101
|
+
var r = E(), i = S.child(r), a = (e) => {
|
|
102
|
+
var t = T(), n = S.child(t, !0);
|
|
103
|
+
S.reset(t), S.template_effect(() => S.set_text(n, S.get(V))), S.append(e, t);
|
|
104
|
+
};
|
|
105
|
+
S.if(i, (e) => {
|
|
106
|
+
S.get(V) && e(a);
|
|
107
|
+
});
|
|
108
|
+
var o = S.sibling(i, 2), s = S.child(o);
|
|
109
|
+
p(s, {
|
|
110
|
+
for: "save-as-title",
|
|
111
|
+
children: (e, t) => {
|
|
112
|
+
S.next();
|
|
113
|
+
var n = S.text("New Title");
|
|
114
|
+
S.append(e, n);
|
|
115
|
+
},
|
|
116
|
+
$$slots: { default: !0 }
|
|
117
|
+
});
|
|
118
|
+
var c = S.sibling(s, 2);
|
|
119
|
+
S.remove_input_defaults(c), S.reset(o);
|
|
120
|
+
var l = S.sibling(o, 2), u = S.child(l);
|
|
121
|
+
p(u, {
|
|
122
|
+
children: (e, t) => {
|
|
123
|
+
S.next();
|
|
124
|
+
var n = S.text("Parent Folder");
|
|
125
|
+
S.append(e, n);
|
|
126
|
+
},
|
|
127
|
+
$$slots: { default: !0 }
|
|
128
|
+
}), t(S.sibling(u, 2), {
|
|
129
|
+
get folders() {
|
|
130
|
+
return S.get(L);
|
|
131
|
+
},
|
|
132
|
+
get selectedId() {
|
|
133
|
+
return S.get(U);
|
|
134
|
+
},
|
|
135
|
+
set selectedId(e) {
|
|
136
|
+
S.set(U, e, !0);
|
|
137
|
+
}
|
|
138
|
+
}), S.reset(l);
|
|
139
|
+
var d = S.sibling(l, 2), f = S.child(d);
|
|
140
|
+
p(f, {
|
|
141
|
+
for: "save-as-category",
|
|
142
|
+
children: (e, t) => {
|
|
143
|
+
S.next();
|
|
144
|
+
var n = S.text("Category");
|
|
145
|
+
S.append(e, n);
|
|
146
|
+
},
|
|
147
|
+
$$slots: { default: !0 }
|
|
148
|
+
});
|
|
149
|
+
var m = S.sibling(f, 2);
|
|
150
|
+
S.component(m, () => j.Root, (t, n) => {
|
|
151
|
+
n(t, {
|
|
152
|
+
type: "single",
|
|
153
|
+
get value() {
|
|
154
|
+
return S.get(W);
|
|
155
|
+
},
|
|
156
|
+
set value(e) {
|
|
157
|
+
S.set(W, e, !0);
|
|
158
|
+
},
|
|
159
|
+
children: (t, n) => {
|
|
160
|
+
var r = C(), i = S.first_child(r);
|
|
161
|
+
S.component(i, () => j.Trigger, (t, n) => {
|
|
162
|
+
n(t, {
|
|
163
|
+
class: "w-full text-foreground flex items-center justify-between bg-background border border-input px-3 py-2 text-sm rounded-md shadow-sm",
|
|
164
|
+
children: (t, n) => {
|
|
165
|
+
var r = C(), i = S.first_child(r);
|
|
166
|
+
S.component(i, () => j.Value, (e, t) => {
|
|
167
|
+
t(e, {
|
|
168
|
+
placeholder: "Select a category...",
|
|
169
|
+
children: (e, t) => {
|
|
170
|
+
S.next();
|
|
171
|
+
var n = S.text();
|
|
172
|
+
S.template_effect((e) => S.set_text(n, e), [() => S.get(W) && S.get(W) !== "null" ? S.get(R).find((e) => e.id === S.get(W))?.name ?? "Uncategorized" : "Uncategorized"]), S.append(e, n);
|
|
173
|
+
},
|
|
174
|
+
$$slots: { default: !0 }
|
|
175
|
+
});
|
|
176
|
+
}), e(S.sibling(i, 2), { class: "size-4 opacity-50" }), S.append(t, r);
|
|
177
|
+
},
|
|
178
|
+
$$slots: { default: !0 }
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
var a = S.sibling(i, 2);
|
|
182
|
+
S.component(a, () => j.Content, (e, t) => {
|
|
183
|
+
t(e, {
|
|
184
|
+
class: "w-[var(--bits-select-trigger-width)]",
|
|
185
|
+
children: (e, t) => {
|
|
186
|
+
var n = C(), r = S.first_child(n);
|
|
187
|
+
S.component(r, () => j.Item, (e, t) => {
|
|
188
|
+
t(e, {
|
|
189
|
+
value: "null",
|
|
190
|
+
children: (e, t) => {
|
|
191
|
+
S.next();
|
|
192
|
+
var n = S.text("Uncategorized");
|
|
193
|
+
S.append(e, n);
|
|
194
|
+
},
|
|
195
|
+
$$slots: { default: !0 }
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
var i = S.sibling(r, 2);
|
|
199
|
+
S.each(i, 17, () => S.get(R), (e) => e.id, (e, t) => {
|
|
200
|
+
var n = S.comment(), r = S.first_child(n);
|
|
201
|
+
S.component(r, () => j.Item, (e, n) => {
|
|
202
|
+
n(e, {
|
|
203
|
+
get value() {
|
|
204
|
+
return S.get(t).id;
|
|
205
|
+
},
|
|
206
|
+
children: (e, n) => {
|
|
207
|
+
S.next();
|
|
208
|
+
var r = S.text();
|
|
209
|
+
S.template_effect(() => S.set_text(r, S.get(t).name)), S.append(e, r);
|
|
210
|
+
},
|
|
211
|
+
$$slots: { default: !0 }
|
|
212
|
+
});
|
|
213
|
+
}), S.append(e, n);
|
|
214
|
+
}), S.append(e, n);
|
|
215
|
+
},
|
|
216
|
+
$$slots: { default: !0 }
|
|
217
|
+
});
|
|
218
|
+
}), S.append(t, r);
|
|
219
|
+
},
|
|
220
|
+
$$slots: { default: !0 }
|
|
221
|
+
});
|
|
222
|
+
}), S.reset(d), S.reset(r), S.event("submit", r, K), S.bind_value(c, () => S.get(H), (e) => S.set(H, e)), S.append(n, r);
|
|
223
|
+
};
|
|
224
|
+
S.if(h, (e) => {
|
|
225
|
+
S.get(z) ? e(g) : e(_, -1);
|
|
226
|
+
}), u(S.sibling(h, 2), {
|
|
227
|
+
class: "mt-4",
|
|
85
228
|
children: (e, t) => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var t = w(), n = x.child(t, !0);
|
|
101
|
-
x.reset(t), x.template_effect(() => x.set_text(n, x.get(B))), x.append(e, t);
|
|
102
|
-
};
|
|
103
|
-
x.if(i, (e) => {
|
|
104
|
-
x.get(B) && e(a);
|
|
105
|
-
});
|
|
106
|
-
var o = x.sibling(i, 2), s = x.child(o);
|
|
107
|
-
f(s, {
|
|
108
|
-
for: "save-as-title",
|
|
109
|
-
children: (e, t) => {
|
|
110
|
-
x.next();
|
|
111
|
-
var n = x.text("New Title");
|
|
112
|
-
x.append(e, n);
|
|
113
|
-
},
|
|
114
|
-
$$slots: { default: !0 }
|
|
115
|
-
});
|
|
116
|
-
var c = x.sibling(s, 2);
|
|
117
|
-
x.remove_input_defaults(c), x.reset(o);
|
|
118
|
-
var l = x.sibling(o, 2), u = x.child(l);
|
|
119
|
-
f(u, {
|
|
120
|
-
children: (e, t) => {
|
|
121
|
-
x.next();
|
|
122
|
-
var n = x.text("Parent Folder");
|
|
123
|
-
x.append(e, n);
|
|
124
|
-
},
|
|
125
|
-
$$slots: { default: !0 }
|
|
126
|
-
}), t(x.sibling(u, 2), {
|
|
127
|
-
get folders() {
|
|
128
|
-
return x.get(I);
|
|
129
|
-
},
|
|
130
|
-
get selectedId() {
|
|
131
|
-
return x.get(H);
|
|
132
|
-
},
|
|
133
|
-
set selectedId(e) {
|
|
134
|
-
x.set(H, e, !0);
|
|
135
|
-
}
|
|
136
|
-
}), x.reset(l);
|
|
137
|
-
var d = x.sibling(l, 2), p = x.child(d);
|
|
138
|
-
f(p, {
|
|
139
|
-
for: "save-as-category",
|
|
140
|
-
children: (e, t) => {
|
|
141
|
-
x.next();
|
|
142
|
-
var n = x.text("Category");
|
|
143
|
-
x.append(e, n);
|
|
144
|
-
},
|
|
145
|
-
$$slots: { default: !0 }
|
|
146
|
-
});
|
|
147
|
-
var m = x.sibling(p, 2);
|
|
148
|
-
x.component(m, () => A.Root, (t, n) => {
|
|
149
|
-
n(t, {
|
|
150
|
-
type: "single",
|
|
151
|
-
get value() {
|
|
152
|
-
return x.get(U);
|
|
153
|
-
},
|
|
154
|
-
set value(e) {
|
|
155
|
-
x.set(U, e, !0);
|
|
156
|
-
},
|
|
157
|
-
children: (t, n) => {
|
|
158
|
-
var r = S(), i = x.first_child(r);
|
|
159
|
-
x.component(i, () => A.Trigger, (t, n) => {
|
|
160
|
-
n(t, {
|
|
161
|
-
class: "w-full text-foreground flex items-center justify-between bg-background border border-input px-3 py-2 text-sm rounded-md shadow-sm",
|
|
162
|
-
children: (t, n) => {
|
|
163
|
-
var r = S(), i = x.first_child(r);
|
|
164
|
-
x.component(i, () => A.Value, (e, t) => {
|
|
165
|
-
t(e, {
|
|
166
|
-
placeholder: "Select a category...",
|
|
167
|
-
children: (e, t) => {
|
|
168
|
-
x.next();
|
|
169
|
-
var n = x.text();
|
|
170
|
-
x.template_effect((e) => x.set_text(n, e), [() => x.get(U) && x.get(U) !== "null" ? x.get(L).find((e) => e.id === x.get(U))?.name ?? "Uncategorized" : "Uncategorized"]), x.append(e, n);
|
|
171
|
-
},
|
|
172
|
-
$$slots: { default: !0 }
|
|
173
|
-
});
|
|
174
|
-
}), e(x.sibling(i, 2), { class: "size-4 opacity-50" }), x.append(t, r);
|
|
175
|
-
},
|
|
176
|
-
$$slots: { default: !0 }
|
|
177
|
-
});
|
|
229
|
+
var a = C(), o = S.first_child(a);
|
|
230
|
+
d(o, {
|
|
231
|
+
variant: "outline",
|
|
232
|
+
type: "button",
|
|
233
|
+
onclick: q,
|
|
234
|
+
get disabled() {
|
|
235
|
+
return S.get(B);
|
|
236
|
+
},
|
|
237
|
+
children: (e, t) => {
|
|
238
|
+
S.next();
|
|
239
|
+
var n = S.text();
|
|
240
|
+
S.template_effect((e) => S.set_text(n, e), [() => i()]), S.append(e, n);
|
|
241
|
+
},
|
|
242
|
+
$$slots: { default: !0 }
|
|
178
243
|
});
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
244
|
+
var s = S.sibling(o, 2);
|
|
245
|
+
{
|
|
246
|
+
let e = S.derived(() => S.get(B) || S.get(z));
|
|
247
|
+
d(s, {
|
|
248
|
+
type: "button",
|
|
249
|
+
onclick: K,
|
|
250
|
+
get disabled() {
|
|
251
|
+
return S.get(e);
|
|
252
|
+
},
|
|
183
253
|
children: (e, t) => {
|
|
184
|
-
var
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
x.next();
|
|
190
|
-
var n = x.text("Uncategorized");
|
|
191
|
-
x.append(e, n);
|
|
192
|
-
},
|
|
193
|
-
$$slots: { default: !0 }
|
|
194
|
-
});
|
|
254
|
+
var i = D(), a = S.first_child(i), o = (e) => {
|
|
255
|
+
n(e, { class: "mr-1 size-4 animate-spin" });
|
|
256
|
+
};
|
|
257
|
+
S.if(a, (e) => {
|
|
258
|
+
S.get(B) && e(o);
|
|
195
259
|
});
|
|
196
|
-
var
|
|
197
|
-
|
|
198
|
-
var n = x.comment(), r = x.first_child(n);
|
|
199
|
-
x.component(r, () => A.Item, (e, n) => {
|
|
200
|
-
n(e, {
|
|
201
|
-
get value() {
|
|
202
|
-
return x.get(t).id;
|
|
203
|
-
},
|
|
204
|
-
children: (e, n) => {
|
|
205
|
-
x.next();
|
|
206
|
-
var r = x.text();
|
|
207
|
-
x.template_effect(() => x.set_text(r, x.get(t).name)), x.append(e, r);
|
|
208
|
-
},
|
|
209
|
-
$$slots: { default: !0 }
|
|
210
|
-
});
|
|
211
|
-
}), x.append(e, n);
|
|
212
|
-
}), x.append(e, n);
|
|
260
|
+
var s = S.sibling(a);
|
|
261
|
+
S.template_effect((e) => S.set_text(s, ` ${e ?? ""}`), [() => r()]), S.append(e, i);
|
|
213
262
|
},
|
|
214
263
|
$$slots: { default: !0 }
|
|
215
264
|
});
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
$$slots: { default: !0 }
|
|
219
|
-
});
|
|
220
|
-
}), x.reset(d), x.reset(r), x.event("submit", r, G), x.bind_value(c, () => x.get(V), (e) => x.set(V, e)), x.append(n, r);
|
|
221
|
-
};
|
|
222
|
-
x.if(h, (e) => {
|
|
223
|
-
x.get(R) ? e(g) : e(_, -1);
|
|
224
|
-
}), u(x.sibling(h, 2), {
|
|
225
|
-
class: "mt-4",
|
|
226
|
-
children: (e, t) => {
|
|
227
|
-
var a = S(), o = x.first_child(a);
|
|
228
|
-
l(o, {
|
|
229
|
-
variant: "outline",
|
|
230
|
-
type: "button",
|
|
231
|
-
onclick: K,
|
|
232
|
-
get disabled() {
|
|
233
|
-
return x.get(z);
|
|
234
|
-
},
|
|
235
|
-
children: (e, t) => {
|
|
236
|
-
x.next();
|
|
237
|
-
var n = x.text();
|
|
238
|
-
x.template_effect((e) => x.set_text(n, e), [() => i()]), x.append(e, n);
|
|
265
|
+
}
|
|
266
|
+
S.append(e, a);
|
|
239
267
|
},
|
|
240
268
|
$$slots: { default: !0 }
|
|
241
|
-
});
|
|
242
|
-
var s = x.sibling(o, 2);
|
|
243
|
-
{
|
|
244
|
-
let e = x.derived(() => x.get(z) || x.get(R));
|
|
245
|
-
l(s, {
|
|
246
|
-
type: "button",
|
|
247
|
-
onclick: G,
|
|
248
|
-
get disabled() {
|
|
249
|
-
return x.get(e);
|
|
250
|
-
},
|
|
251
|
-
children: (e, t) => {
|
|
252
|
-
var i = E(), a = x.first_child(i), o = (e) => {
|
|
253
|
-
n(e, { class: "mr-1 size-4 animate-spin" });
|
|
254
|
-
};
|
|
255
|
-
x.if(a, (e) => {
|
|
256
|
-
x.get(z) && e(o);
|
|
257
|
-
});
|
|
258
|
-
var s = x.sibling(a);
|
|
259
|
-
x.template_effect((e) => x.set_text(s, ` ${e ?? ""}`), [() => r()]), x.append(e, i);
|
|
260
|
-
},
|
|
261
|
-
$$slots: { default: !0 }
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
x.append(e, a);
|
|
269
|
+
}), S.append(a, l);
|
|
265
270
|
},
|
|
266
271
|
$$slots: { default: !0 }
|
|
267
|
-
})
|
|
272
|
+
});
|
|
268
273
|
},
|
|
269
274
|
$$slots: { default: !0 }
|
|
270
|
-
}),
|
|
275
|
+
}), S.pop();
|
|
271
276
|
}
|
|
272
277
|
//#endregion
|
|
273
|
-
export {
|
|
278
|
+
export { k as SaveAsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../SettingsDialog-
|
|
1
|
+
import { t as e } from "../SettingsDialog-DatuxOVX.js";
|
|
2
2
|
export { e as SettingsDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ShareDialog-
|
|
1
|
+
import { t as e } from "../ShareDialog-Bwz2y3Le.js";
|
|
2
2
|
export { e as ShareDialog };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../Sidebar-
|
|
1
|
+
import { t as e } from "../Sidebar-C_t5RrOJ.js";
|
|
2
2
|
export { e as Sidebar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../TagCreateDialog-
|
|
1
|
+
import { t as e } from "../TagCreateDialog-Ch21yuWV.js";
|
|
2
2
|
export { e as TagCreateDialog };
|
|
@@ -4,11 +4,11 @@ import { t as n } from "../clock-Dz86E4Kz.js";
|
|
|
4
4
|
import { t as r } from "../rotate-ccw-ta4NosZ0.js";
|
|
5
5
|
import { t as i } from "../circle-check-BrqfiQH1.js";
|
|
6
6
|
import { n as a } from "../dist-DQa_OHOa.js";
|
|
7
|
-
import { $t as o, E as s, Jn as c, Kn as l, Qt as u, Xt as ee, Yn as d, Yt as f, Zt as p, cn as m, dn as h, fn as g, ln as _, or as v, qn as y, rr as b, un as x } from "../messages-
|
|
7
|
+
import { $t as o, E as s, Jn as c, Kn as l, Qt as u, Xt as ee, Yn as d, Yt as f, Zt as p, cn as m, dn as h, fn as g, ln as _, or as v, qn as y, rr as b, un as x } from "../messages-DTRe4U2V.js";
|
|
8
8
|
import { a as S } from "../route-context-DYQlUfzL.js";
|
|
9
9
|
import { n as C, t as w } from "../client-GbtOH90i.js";
|
|
10
|
-
import { t as te } from "../ConfirmDialog-
|
|
11
|
-
import { t as T } from "../CreateSnapshotDialog-
|
|
10
|
+
import { t as te } from "../ConfirmDialog-DF7kgkyq.js";
|
|
11
|
+
import { t as T } from "../CreateSnapshotDialog-CojnWChs.js";
|
|
12
12
|
import "svelte/internal/disclose-version";
|
|
13
13
|
import * as E from "svelte/internal/client";
|
|
14
14
|
import "svelte/internal/flags/legacy";
|