@hiai-gg/docsmint 0.7.6 → 0.8.2
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 +46 -113
- package/dist/backend/index.js +860 -132
- package/dist/backend-account-runtime-cleanup.js +2 -0
- package/dist/backend-api-key-facade.js +2 -0
- package/dist/backend-pipeline-cancellation.js +2 -0
- package/dist/client.d.ts +4 -3
- package/dist/client.js +9 -6
- package/dist/frontend/{CategoryDialog-D_xFSWGh.js → CategoryDialog-B6zqtwE6.js} +2 -2
- package/dist/frontend/{ConfirmDialog-Cfq3D2Di.js → ConfirmDialog-Dk7wwcj9.js} +1 -1
- package/dist/frontend/{CreateSnapshotDialog-BHODxZWK.js → CreateSnapshotDialog-BPYjO1qN.js} +2 -2
- package/dist/frontend/{DatePicker-CZyCnQ1q.js → DatePicker-SiGLx9yh.js} +46 -46
- package/dist/frontend/{DeleteDialog-DaJOO6SB.js → DeleteDialog-D1jox8h1.js} +2 -2
- package/dist/frontend/{FolderNode-C_91NlEO.js → FolderNode-BG4l6I5C.js} +100 -99
- package/dist/frontend/{HiAiEditor-DtUGbQg6.js → HiAiEditor-BpmzvTCP.js} +977 -1008
- package/dist/frontend/{SettingsDialog-BlIZqk2-.js → SettingsDialog-2d6ZA4Ze.js} +3 -3
- package/dist/frontend/Sidebar-Db_ffhAb.js +2149 -0
- package/dist/frontend/{TagCreateDialog-BlGz4O9Z.js → TagCreateDialog-C5j3H49u.js} +2 -2
- package/dist/frontend/app-shell.js +3 -3
- 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/extensions.js +1 -1
- package/dist/frontend/components/editor/markdown-toggle.js +1 -1
- 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 +2 -2
- package/dist/frontend/components/settings.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/dashboard.js +1034 -1034
- package/dist/frontend/{dialog-tHAH3-9M.js → dialog-DC97Hnxo.js} +1 -1
- package/dist/frontend/dist-BLpDfrDC.js +316 -0
- package/dist/frontend/dist-D7zL6zdU.js +40 -0
- package/dist/frontend/{dist-Cg1BpNS7.js → dist-qd_OnyUC.js} +492 -516
- package/dist/frontend/dropdown-menu-COZwS7c0.js +493 -0
- package/dist/frontend/editorExtensions-Cu__YKW7.js +158 -0
- package/dist/frontend/ellipsis-vertical-CObXWXZW.js +41 -0
- package/dist/frontend/frontend.css +1 -1
- package/dist/frontend/{editorExtensions-B-mKiWqq.js → lib-DYgslUw1.js} +6782 -6935
- package/dist/frontend/loader-circle-DnyUzAmN.js +25 -0
- package/dist/frontend/{markdown-CMij27Gg.js → markdown-Co8ZAKf4.js} +2 -1
- package/dist/frontend/search.js +2 -2
- package/dist/frontend/{confirm-dialog-BFTxjLv-.js → share-context-DooXPYKd.js} +2 -3
- package/dist/frontend/theme.js +1 -1
- package/dist/frontend/{theme.svelte-Bzitjfh9.js → theme.svelte-gLPpG6eU.js} +1 -0
- package/dist/frontend-ssr/app-shell.js +3 -3
- package/dist/frontend-ssr/assets/{FolderNode-CClgk8BL.js → FolderNode-CscMQ9sf.js} +2 -1
- package/dist/frontend-ssr/assets/{HiAiEditor-_-m7MJDd.js → HiAiEditor-DCpulE6N.js} +4 -50
- package/dist/frontend-ssr/assets/{SettingsDialog-BdvHRAxF.js → SettingsDialog-CpPxZahd.js} +1 -1
- package/dist/frontend-ssr/assets/{Sidebar-B3Saqn0O.js → Sidebar-BJ1XZ1DH.js} +7 -5
- package/dist/frontend-ssr/assets/dist-CshZmNmp.js +50 -0
- package/dist/frontend-ssr/assets/dist-DqeAICTy.js +300 -0
- package/dist/frontend-ssr/assets/{dropdown-menu-CdEpn_LT.js → dropdown-menu--acO7nXs.js} +1 -94
- package/dist/frontend-ssr/assets/ellipsis-vertical-BErUuhWg.js +96 -0
- package/dist/frontend-ssr/assets/{markdown-MhPwNWrC.js → markdown-Co31-Tl2.js} +1 -1
- package/dist/frontend-ssr/assets/{confirm-dialog-DeOR0SnQ.js → share-context-BvXQrIIH.js} +0 -1
- package/dist/frontend-ssr/assets/{theme.svelte-shZrSxz8.js → theme.svelte-CGgnJc3k.js} +1 -0
- 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/extensions.js +1 -1
- package/dist/frontend-ssr/components/editor/markdown-toggle.js +1 -1
- 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/settings.js +1 -1
- package/dist/frontend-ssr/components/sidebar.js +1 -1
- package/dist/frontend-ssr/dashboard.js +6 -4
- package/dist/frontend-ssr/search.js +1 -1
- package/dist/frontend-ssr/theme.js +1 -1
- package/dist/lifecycle-runtime.js +42 -4
- package/dist/mcp-cli.js +9 -6
- package/dist/mcp-server.js +9 -6
- package/dist/types.d.ts +12 -0
- package/package.json +1 -1
- package/packages/cli/src/index.ts +1 -1
- package/packages/db/src/schema.ts +2 -0
- package/server.json +2 -2
- package/skills/docsmint-document-manager/SKILL.md +2 -2
- package/dist/frontend/Sidebar-BVGm5BRR.js +0 -2147
- package/dist/frontend/dropdown-menu-AJYeFPHu.js +0 -530
- package/dist/frontend-ssr/assets/{DatePicker-TZVeMZ2S.js → DatePicker-CCylVH0q.js} +12 -12
- package/dist/frontend-ssr/assets/{editorExtensions-qNlZVP98.js → editorExtensions-rhletNji.js} +1 -1
|
@@ -284,6 +284,8 @@ var documentPipelineRuns = pgTable("document_pipeline_runs", {
|
|
|
284
284
|
completedBatches: integer("completed_batches").notNull().default(0),
|
|
285
285
|
failedBatches: integer("failed_batches").notNull().default(0),
|
|
286
286
|
errorCode: text("error_code"),
|
|
287
|
+
graphErrorCode: text("graph_error_code"),
|
|
288
|
+
summarizeErrorCode: text("summarize_error_code"),
|
|
287
289
|
attempts: integer("attempts").notNull().default(0),
|
|
288
290
|
requestedAt: timestamp("requested_at").defaultNow().notNull(),
|
|
289
291
|
startedAt: timestamp("started_at"),
|
|
@@ -284,6 +284,8 @@ var documentPipelineRuns = pgTable("document_pipeline_runs", {
|
|
|
284
284
|
completedBatches: integer("completed_batches").notNull().default(0),
|
|
285
285
|
failedBatches: integer("failed_batches").notNull().default(0),
|
|
286
286
|
errorCode: text("error_code"),
|
|
287
|
+
graphErrorCode: text("graph_error_code"),
|
|
288
|
+
summarizeErrorCode: text("summarize_error_code"),
|
|
287
289
|
attempts: integer("attempts").notNull().default(0),
|
|
288
290
|
requestedAt: timestamp("requested_at").defaultNow().notNull(),
|
|
289
291
|
startedAt: timestamp("started_at"),
|
|
@@ -284,6 +284,8 @@ var documentPipelineRuns = pgTable("document_pipeline_runs", {
|
|
|
284
284
|
completedBatches: integer("completed_batches").notNull().default(0),
|
|
285
285
|
failedBatches: integer("failed_batches").notNull().default(0),
|
|
286
286
|
errorCode: text("error_code"),
|
|
287
|
+
graphErrorCode: text("graph_error_code"),
|
|
288
|
+
summarizeErrorCode: text("summarize_error_code"),
|
|
287
289
|
attempts: integer("attempts").notNull().default(0),
|
|
288
290
|
requestedAt: timestamp("requested_at").defaultNow().notNull(),
|
|
289
291
|
startedAt: timestamp("started_at"),
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* DocsMint REST API client.
|
|
3
3
|
*
|
|
4
4
|
* Bun-native `fetch` wrapper. All authenticated requests send
|
|
5
5
|
* `Authorization: Bearer <apiKey>`. Non-OK responses throw
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* failures (502 / 503 / 504 / timeout / network reset) are retried
|
|
8
8
|
* with exponential backoff up to `config.retries` attempts.
|
|
9
9
|
*/
|
|
10
|
-
import type { DocsApiKeyCreated, DocsApiKeyListResponse, DocsAttachment, DocsAttachmentConfirmInput, DocsAttachmentListResponse, DocsAttachmentPresignInput, DocsAttachmentPresignResponse, DocsCategory, DocsCategoryInput, DocsCategoryUpdate, DocsDocument, DocsDocumentCreateInput, DocsDocumentCursorPage, DocsDocumentIndexRefresh, DocsDocumentIndexStatus, DocsDocumentKnowledgeSummary, DocsDocumentListResponse, DocsDocumentPipeline, DocsDocumentUpdateInput, DocsFolder, DocsFolderCreateInput, DocsFolderUpdateInput, DocsGraphEntitiesResponse, DocsGraphRelatedResponse, DocsGraphSearchResponse, DocsHealthResponse, DocsRequestContext, DocsSearchOptions, DocsSearchResponse, DocsSearchSuggestItem, DocsSharedContent, DocsShareLink, DocsShareListResponse, DocsShareRole, DocsTag, DocsVersion, DocsVersionDiff } from "./types.js";
|
|
10
|
+
import type { DocsApiKeyCreated, DocsApiKeyListResponse, DocsAttachment, DocsAttachmentConfirmInput, DocsAttachmentListResponse, DocsAttachmentPresignInput, DocsAttachmentPresignResponse, DocsCategory, DocsCategoryInput, DocsCategoryUpdate, DocsDocument, DocsDocumentCreateInput, DocsDocumentCursorPage, DocsDocumentIndexRefresh, DocsDocumentIndexStatus, DocsDocumentKnowledgeSummary, DocsDocumentListResponse, DocsDocumentPipeline, DocsPipelineWarningRetry, DocsDocumentUpdateInput, DocsFolder, DocsFolderCreateInput, DocsFolderUpdateInput, DocsGraphEntitiesResponse, DocsGraphRelatedResponse, DocsGraphSearchResponse, DocsHealthResponse, DocsRequestContext, DocsSearchOptions, DocsSearchResponse, DocsSearchSuggestItem, DocsSharedContent, DocsShareLink, DocsShareListResponse, DocsShareRole, DocsTag, DocsVersion, DocsVersionDiff } from "./types.js";
|
|
11
11
|
export interface DocsClientConfig {
|
|
12
|
-
/** Base URL of the
|
|
12
|
+
/** Base URL of the DocsMint API, e.g. `http://localhost:50700`. */
|
|
13
13
|
baseUrl: string;
|
|
14
14
|
/** Bearer token used as `Authorization: Bearer <apiKey>`. */
|
|
15
15
|
apiKey?: string;
|
|
@@ -89,6 +89,7 @@ export declare class DocsClient {
|
|
|
89
89
|
}, context?: DocsRequestContext): Promise<DocsDocumentCursorPage>;
|
|
90
90
|
duplicateDoc(id: string, context?: DocsRequestContext): Promise<DocsDocument>;
|
|
91
91
|
getDocumentPipeline(id: string, context?: DocsRequestContext): Promise<DocsDocumentPipeline>;
|
|
92
|
+
retryDocumentPipelineWarnings(id: string, context?: DocsRequestContext): Promise<DocsPipelineWarningRetry>;
|
|
92
93
|
getDocumentKnowledgeSummary(id: string, context?: DocsRequestContext): Promise<DocsDocumentKnowledgeSummary>;
|
|
93
94
|
getDocumentIndexStatus(id: string, context?: DocsRequestContext): Promise<DocsDocumentIndexStatus>;
|
|
94
95
|
refreshDocumentIndex(id: string, context?: DocsRequestContext): Promise<DocsDocumentIndexRefresh>;
|
package/dist/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* DocsMint REST API client.
|
|
3
3
|
*
|
|
4
4
|
* Bun-native `fetch` wrapper. All authenticated requests send
|
|
5
5
|
* `Authorization: Bearer <apiKey>`. Non-OK responses throw
|
|
@@ -18,7 +18,7 @@ export class DocsApiError extends Error {
|
|
|
18
18
|
url;
|
|
19
19
|
requestId;
|
|
20
20
|
constructor(status, body, message, metadata, code) {
|
|
21
|
-
super(message ?? `
|
|
21
|
+
super(message ?? `DocsMint API error ${status}`);
|
|
22
22
|
this.name = "DocsApiError";
|
|
23
23
|
this.status = status;
|
|
24
24
|
this.code = code ?? DocsApiError.codeFromBody(status, body);
|
|
@@ -65,7 +65,7 @@ export class DocsNetworkError extends Error {
|
|
|
65
65
|
export class DocsTimeoutError extends DocsNetworkError {
|
|
66
66
|
timeout;
|
|
67
67
|
constructor(timeout, options) {
|
|
68
|
-
super(`
|
|
68
|
+
super(`DocsMint request timed out after ${timeout}ms`, options);
|
|
69
69
|
this.name = "DocsTimeoutError";
|
|
70
70
|
this.timeout = timeout;
|
|
71
71
|
}
|
|
@@ -153,6 +153,9 @@ export class DocsClient {
|
|
|
153
153
|
async getDocumentPipeline(id, context) {
|
|
154
154
|
return this.request("GET", `/api/documents/${encodeURIComponent(id)}/pipeline`, undefined, context);
|
|
155
155
|
}
|
|
156
|
+
async retryDocumentPipelineWarnings(id, context) {
|
|
157
|
+
return this.request("POST", `/api/documents/${encodeURIComponent(id)}/pipeline/retry-warnings`, undefined, context);
|
|
158
|
+
}
|
|
156
159
|
async getDocumentKnowledgeSummary(id, context) {
|
|
157
160
|
return this.request("GET", `/api/documents/${encodeURIComponent(id)}/knowledge-summary`, undefined, context);
|
|
158
161
|
}
|
|
@@ -587,7 +590,7 @@ export class DocsClient {
|
|
|
587
590
|
"message" in body &&
|
|
588
591
|
typeof body.message === "string"
|
|
589
592
|
? body.message
|
|
590
|
-
: `
|
|
593
|
+
: `DocsMint API error ${res.status}`;
|
|
591
594
|
return new DocsApiError(res.status, body, message, {
|
|
592
595
|
url: res.url || undefined,
|
|
593
596
|
requestId: res.headers.get("x-request-id") ?? undefined,
|
|
@@ -595,12 +598,12 @@ export class DocsClient {
|
|
|
595
598
|
}
|
|
596
599
|
wrapNetworkError(err, requestId) {
|
|
597
600
|
if (err instanceof Error) {
|
|
598
|
-
return new DocsNetworkError(`
|
|
601
|
+
return new DocsNetworkError(`DocsMint network error: ${err.message}`, {
|
|
599
602
|
cause: err,
|
|
600
603
|
requestId,
|
|
601
604
|
});
|
|
602
605
|
}
|
|
603
|
-
return new DocsNetworkError(`
|
|
606
|
+
return new DocsNetworkError(`DocsMint network error: ${String(err)}`, {
|
|
604
607
|
requestId,
|
|
605
608
|
});
|
|
606
609
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./circle-check-hWC-HeKu.js";
|
|
2
2
|
import { t } from "./copy-4H99lwAQ.js";
|
|
3
|
-
import { n } from "./
|
|
3
|
+
import { t as n } from "./loader-circle-DnyUzAmN.js";
|
|
4
4
|
import { t as r } from "./action_cancel-Cuxsznzz.js";
|
|
5
5
|
import { t as i } from "./action_create-CtBQrRuj.js";
|
|
6
6
|
import { t as a } from "./action_delete-BXBIzvn0.js";
|
|
7
7
|
import { t as o } from "./action_save-BRN2Z_GP.js";
|
|
8
8
|
import { a as s, c, i as l, l as u, n as d, o as f, r as p, s as m, t as h, u as g } from "./categories_update_error-4aSI8PTr.js";
|
|
9
9
|
import { a as _ } from "./route-context-DYQlUfzL.js";
|
|
10
|
-
import { a as ee, i as v, n as te, o as ne, r as re, s as y, t as ie } from "./dialog-
|
|
10
|
+
import { a as ee, i as v, n as te, o as ne, r as re, s as y, t as ie } from "./dialog-DC97Hnxo.js";
|
|
11
11
|
import { t as ae } from "./input-CrlYAH2S.js";
|
|
12
12
|
import { t as b } from "./label-B0syEfns.js";
|
|
13
13
|
import { a as oe, n as se, o as ce, r as x, s as le, t as ue } from "./api-keys-DIwAdYkg.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./dialog-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./dialog-DC97Hnxo.js";
|
|
2
2
|
import { t as s } from "./textarea-l_gRXsrH.js";
|
|
3
3
|
import "svelte/internal/disclose-version";
|
|
4
4
|
import * as c from "svelte/internal/client";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as e } from "./loader-circle-DnyUzAmN.js";
|
|
2
2
|
import { t } from "./action_cancel-Cuxsznzz.js";
|
|
3
3
|
import { a as n, c as r, d as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "./version_snapshot_label_placeholder-DrMikux0.js";
|
|
4
4
|
import { a as p } from "./route-context-DYQlUfzL.js";
|
|
5
|
-
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./dialog-
|
|
5
|
+
import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./dialog-DC97Hnxo.js";
|
|
6
6
|
import { t as x } from "./input-CrlYAH2S.js";
|
|
7
7
|
import { n as S, t as C } from "./client-GbtOH90i.js";
|
|
8
8
|
import { t as w } from "./textarea-l_gRXsrH.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./Icon-y7xxAIC6.js";
|
|
2
2
|
import { n as t } from "./folder-BAX6qBYy.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { C as n, S as r, T as i, _ as a, a as o, b as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, o as g, p as _, r as v, s as ee, t as te, u as y, v as ne, w as b, x, y as S } from "./weekday_we-C5H_M-df.js";
|
|
4
|
+
import { t as C } from "./dist-qd_OnyUC.js";
|
|
5
5
|
import { t as w } from "./utils-B4LKx7VS.js";
|
|
6
6
|
import { X as T, Z as E, et as D, w as O } from "./popper-layer-force-mount-BAYjg6Pp.js";
|
|
7
7
|
import "svelte/internal/disclose-version";
|
|
@@ -166,8 +166,17 @@ function U(e, t) {
|
|
|
166
166
|
}), k.append(e, c), k.pop();
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
|
-
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/
|
|
170
|
-
var W =
|
|
169
|
+
//#region ../node_modules/.bun/@hiai-gg+hiai-ui@0.1.3+2be6617fd6e54084/node_modules/@hiai-gg/hiai-ui/dist/components/ui/badge/index.js
|
|
170
|
+
var W = C({
|
|
171
|
+
base: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
172
|
+
variants: { variant: {
|
|
173
|
+
default: "border-transparent bg-primary text-primary-foreground shadow",
|
|
174
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
175
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
|
|
176
|
+
outline: "text-foreground"
|
|
177
|
+
} },
|
|
178
|
+
defaultVariants: { variant: "default" }
|
|
179
|
+
}), G = /* @__PURE__ */ new Set([
|
|
171
180
|
"$$slots",
|
|
172
181
|
"$$events",
|
|
173
182
|
"$$legacy",
|
|
@@ -175,15 +184,15 @@ var W = /* @__PURE__ */ new Set([
|
|
|
175
184
|
"class",
|
|
176
185
|
"variant",
|
|
177
186
|
"children"
|
|
178
|
-
]),
|
|
179
|
-
function
|
|
187
|
+
]), K = k.from_html("<div><!></div>");
|
|
188
|
+
function q(e, t) {
|
|
180
189
|
k.push(t, !0);
|
|
181
|
-
let n = k.prop(t, "ref", 15, null), r = k.prop(t, "variant", 3, "default"), i = k.rest_props(t,
|
|
182
|
-
var a =
|
|
190
|
+
let n = k.prop(t, "ref", 15, null), r = k.prop(t, "variant", 3, "default"), i = k.rest_props(t, G);
|
|
191
|
+
var a = K();
|
|
183
192
|
k.attribute_effect(a, (e) => ({
|
|
184
193
|
class: e,
|
|
185
194
|
...i
|
|
186
|
-
}), [() => w(
|
|
195
|
+
}), [() => w(W({ variant: r() }), t.class)]);
|
|
187
196
|
var o = k.child(a), s = (e) => {
|
|
188
197
|
var n = k.comment(), r = k.first_child(n);
|
|
189
198
|
k.snippet(r, () => t.children), k.append(e, n);
|
|
@@ -193,40 +202,31 @@ function K(e, t) {
|
|
|
193
202
|
}), k.reset(a), k.bind_this(a, (e) => n(e), () => n()), k.append(e, a), k.pop();
|
|
194
203
|
}
|
|
195
204
|
//#endregion
|
|
196
|
-
//#region
|
|
197
|
-
var
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
|
202
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground shadow",
|
|
203
|
-
outline: "text-foreground"
|
|
204
|
-
} },
|
|
205
|
-
defaultVariants: { variant: "default" }
|
|
206
|
-
}), J = k.from_html("<span class=\"dp-weekday svelte-zmry26\"> </span>"), Y = k.from_html("<span class=\"dp-empty svelte-zmry26\"></span>"), X = k.from_html("<button type=\"button\"> </button>"), re = k.from_html("<button type=\"button\" class=\"dp-clear svelte-zmry26\"> </button>"), ie = k.from_html("<div class=\"dp-popover svelte-zmry26\" role=\"dialog\"><div class=\"dp-header svelte-zmry26\"><button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button> <span class=\"dp-title svelte-zmry26\"> </span> <button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button></div> <div class=\"dp-weekdays svelte-zmry26\"></div> <div class=\"dp-grid svelte-zmry26\"></div> <!></div>"), ae = k.from_html("<div class=\"datepicker svelte-zmry26\"><button type=\"button\" aria-haspopup=\"dialog\" class=\"dp-trigger svelte-zmry26\"><!> <span> </span></button> <!></div>");
|
|
207
|
-
function Z(e, n) {
|
|
208
|
-
k.push(n, !0);
|
|
209
|
-
let w = k.prop(n, "value", 15, ""), T = k.prop(n, "ariaLabel", 19, () => a()), E = k.prop(n, "placeholder", 19, () => i()), D = k.state(!1), O = k.state(null), A = [
|
|
210
|
-
_(),
|
|
205
|
+
//#region src/lib/components/DatePicker.svelte
|
|
206
|
+
var J = k.from_html("<span class=\"dp-weekday svelte-zmry26\"> </span>"), Y = k.from_html("<span class=\"dp-empty svelte-zmry26\"></span>"), X = k.from_html("<button type=\"button\"> </button>"), re = k.from_html("<button type=\"button\" class=\"dp-clear svelte-zmry26\"> </button>"), ie = k.from_html("<div class=\"dp-popover svelte-zmry26\" role=\"dialog\"><div class=\"dp-header svelte-zmry26\"><button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button> <span class=\"dp-title svelte-zmry26\"> </span> <button type=\"button\" class=\"dp-nav svelte-zmry26\"><!></button></div> <div class=\"dp-weekdays svelte-zmry26\"></div> <div class=\"dp-grid svelte-zmry26\"></div> <!></div>"), ae = k.from_html("<div class=\"datepicker svelte-zmry26\"><button type=\"button\" aria-haspopup=\"dialog\" class=\"dp-trigger svelte-zmry26\"><!> <span> </span></button> <!></div>");
|
|
207
|
+
function Z(e, C) {
|
|
208
|
+
k.push(C, !0);
|
|
209
|
+
let w = k.prop(C, "value", 15, ""), T = k.prop(C, "ariaLabel", 19, () => i()), E = k.prop(C, "placeholder", 19, () => r()), D = k.state(!1), O = k.state(null), A = [
|
|
211
210
|
g(),
|
|
211
|
+
h(),
|
|
212
212
|
te(),
|
|
213
213
|
v(),
|
|
214
|
-
y(),
|
|
215
|
-
s(),
|
|
216
|
-
p()
|
|
217
|
-
], j = [
|
|
218
|
-
d(),
|
|
219
|
-
o(),
|
|
220
214
|
ee(),
|
|
221
|
-
|
|
215
|
+
o(),
|
|
216
|
+
f()
|
|
217
|
+
], j = [
|
|
222
218
|
u(),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
m(),
|
|
227
|
-
ne(),
|
|
219
|
+
a(),
|
|
220
|
+
_(),
|
|
221
|
+
s(),
|
|
228
222
|
l(),
|
|
229
|
-
|
|
223
|
+
m(),
|
|
224
|
+
d(),
|
|
225
|
+
S(),
|
|
226
|
+
p(),
|
|
227
|
+
y(),
|
|
228
|
+
c(),
|
|
229
|
+
ne()
|
|
230
230
|
];
|
|
231
231
|
function M(e) {
|
|
232
232
|
return String(e).padStart(2, "0");
|
|
@@ -260,10 +260,10 @@ function Z(e, n) {
|
|
|
260
260
|
return k.get(z) !== null && k.get(z).y === k.get(L) && k.get(z).m === k.get(R) && k.get(z).d === e;
|
|
261
261
|
}
|
|
262
262
|
function U(e) {
|
|
263
|
-
w(`${k.get(L)}-${M(k.get(R) + 1)}-${M(e)}`), k.set(D, !1),
|
|
263
|
+
w(`${k.get(L)}-${M(k.get(R) + 1)}-${M(e)}`), k.set(D, !1), C.onchange?.();
|
|
264
264
|
}
|
|
265
265
|
function W() {
|
|
266
|
-
w(""), k.set(D, !1),
|
|
266
|
+
w(""), k.set(D, !1), C.onchange?.();
|
|
267
267
|
}
|
|
268
268
|
function G() {
|
|
269
269
|
k.get(R) === 0 ? (k.set(R, 11), k.set(L, k.get(L) - 1)) : k.set(R, k.get(R) - 1);
|
|
@@ -288,7 +288,7 @@ function Z(e, n) {
|
|
|
288
288
|
var $ = k.sibling(Q, 2), oe = k.only_child($, !0);
|
|
289
289
|
k.reset(Z);
|
|
290
290
|
var se = k.sibling(Z, 2), ce = (e) => {
|
|
291
|
-
var
|
|
291
|
+
var r = ie(), i = k.child(r), a = k.child(i);
|
|
292
292
|
P(k.child(a), { class: "size-4" }), k.reset(a);
|
|
293
293
|
var o = k.sibling(a, 2), s = k.only_child(o), c = k.sibling(o, 2), l = k.child(c);
|
|
294
294
|
t(l, { class: "size-4" }), k.reset(c), k.reset(i);
|
|
@@ -319,20 +319,20 @@ function Z(e, n) {
|
|
|
319
319
|
}), k.reset(d);
|
|
320
320
|
var f = k.sibling(d, 2), p = (e) => {
|
|
321
321
|
var t = re(), n = k.only_child(t, !0);
|
|
322
|
-
k.template_effect((e) => k.set_text(n, e), [() =>
|
|
322
|
+
k.template_effect((e) => k.set_text(n, e), [() => b()]), k.delegated("click", t, W), k.append(e, t);
|
|
323
323
|
};
|
|
324
324
|
k.if(f, (e) => {
|
|
325
325
|
w() && e(p);
|
|
326
|
-
}), k.reset(
|
|
327
|
-
k.set_attribute(
|
|
328
|
-
}, [() =>
|
|
326
|
+
}), k.reset(r), k.template_effect((e, t) => {
|
|
327
|
+
k.set_attribute(r, "aria-label", T()), k.set_attribute(a, "aria-label", e), k.set_text(s, `${j[k.get(R)] ?? ""} ${k.get(L) ?? ""}`), k.set_attribute(c, "aria-label", t);
|
|
328
|
+
}, [() => x(), () => n()]), k.delegated("click", a, G), k.delegated("click", c, K), k.append(e, r);
|
|
329
329
|
};
|
|
330
330
|
k.if(se, (e) => {
|
|
331
331
|
k.get(D) && e(ce);
|
|
332
332
|
}), k.reset(q), k.bind_this(q, (e) => k.set(O, e), () => k.get(O)), k.template_effect(() => {
|
|
333
|
-
k.set_attribute(Z, "id",
|
|
333
|
+
k.set_attribute(Z, "id", C.id), k.set_attribute(Z, "aria-label", T()), k.set_attribute(Z, "aria-expanded", k.get(D)), k.set_class($, 1, k.clsx(w() ? "" : "dp-placeholder"), "svelte-zmry26"), k.set_text(oe, w() || E());
|
|
334
334
|
}), k.delegated("click", Z, () => k.set(D, !k.get(D))), k.append(e, q), k.pop();
|
|
335
335
|
}
|
|
336
336
|
k.delegate(["click"]);
|
|
337
337
|
//#endregion
|
|
338
|
-
export { P as a, F as i,
|
|
338
|
+
export { P as a, F as i, q as n, N as o, U as r, Z as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./circle-check-hWC-HeKu.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./dialog-
|
|
2
|
+
import { t } from "./loader-circle-DnyUzAmN.js";
|
|
3
|
+
import { a as n, i as r, n as i, o as a, r as o, s, t as c } from "./dialog-DC97Hnxo.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as l from "svelte/internal/client";
|
|
6
6
|
//#region src/lib/components/DeleteDialog.svelte
|