@mulmoclaude/accounting-plugin 1.2.2 → 2.0.0
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/dist/server/bodyFields.d.ts +10 -3
- package/dist/server/bodyFields.d.ts.map +1 -1
- package/dist/server/io.d.ts.map +1 -1
- package/dist/server/journal.d.ts +5 -5
- package/dist/server/journal.d.ts.map +1 -1
- package/dist/server/report.d.ts +2 -2
- package/dist/server/report.d.ts.map +1 -1
- package/dist/server/router.d.ts.map +1 -1
- package/dist/server/service.d.ts +24 -24
- package/dist/server/service.d.ts.map +1 -1
- package/dist/server/snapshotCache.d.ts.map +1 -1
- package/dist/server/timeSeries.d.ts +1 -1
- package/dist/server/timeSeries.d.ts.map +1 -1
- package/dist/server.cjs +74 -55
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +74 -55
- package/dist/server.js.map +1 -1
- package/dist/shared/fiscalYear.d.ts.map +1 -1
- package/dist/shared/types.d.ts +14 -14
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/{shared-xYPtGNvH.js → shared-BZAAF-I4.js} +8 -9
- package/dist/shared-BZAAF-I4.js.map +1 -0
- package/dist/{shared-KHOWwwiZ.cjs → shared-BpFVwa6Y.cjs} +8 -9
- package/dist/shared-BpFVwa6Y.cjs.map +1 -0
- package/dist/shared.cjs +1 -1
- package/dist/shared.js +1 -1
- package/dist/style.css +10 -10
- package/dist/vue/View.vue.d.ts.map +1 -1
- package/dist/vue/api.d.ts +16 -16
- package/dist/vue/api.d.ts.map +1 -1
- package/dist/vue/components/AccountEditor.vue.d.ts +2 -2
- package/dist/vue/components/AccountRow.vue.d.ts +2 -2
- package/dist/vue/components/AccountsList.vue.d.ts +2 -2
- package/dist/vue/components/AccountsModal.vue.d.ts +2 -2
- package/dist/vue/components/BalanceSheet.vue.d.ts +1 -1
- package/dist/vue/components/BookSettings.vue.d.ts +4 -4
- package/dist/vue/components/BookSettings.vue.d.ts.map +1 -1
- package/dist/vue/components/BookSwitcher.vue.d.ts +3 -3
- package/dist/vue/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/vue/components/DateRangePicker.vue.d.ts.map +1 -1
- package/dist/vue/components/JournalEntryForm.vue.d.ts +4 -4
- package/dist/vue/components/JournalEntryForm.vue.d.ts.map +1 -1
- package/dist/vue/components/JournalList.vue.d.ts +6 -6
- package/dist/vue/components/JournalList.vue.d.ts.map +1 -1
- package/dist/vue/components/Ledger.vue.d.ts +3 -3
- package/dist/vue/components/Ledger.vue.d.ts.map +1 -1
- package/dist/vue/components/NewBookForm.vue.d.ts +2 -2
- package/dist/vue/components/OpeningBalancesForm.vue.d.ts +1 -1
- package/dist/vue/components/OpeningBalancesForm.vue.d.ts.map +1 -1
- package/dist/vue/components/ProfitLoss.vue.d.ts +3 -3
- package/dist/vue/components/ProfitLoss.vue.d.ts.map +1 -1
- package/dist/vue.cjs +22 -12
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js +22 -12
- package/dist/vue.js.map +1 -1
- package/package.json +5 -5
- package/dist/shared-KHOWwwiZ.cjs.map +0 -1
- package/dist/shared-xYPtGNvH.js.map +0 -1
package/dist/vue/api.d.ts
CHANGED
|
@@ -6,32 +6,32 @@ export interface OpenAppPayload {
|
|
|
6
6
|
/** `null` when the workspace has zero books — the View renders the
|
|
7
7
|
* empty state and prompts for book creation. */
|
|
8
8
|
bookId: string | null;
|
|
9
|
-
initialTab?: string;
|
|
9
|
+
initialTab?: string | undefined;
|
|
10
10
|
}
|
|
11
11
|
export declare function getBooks(): Promise<ApiResult<{
|
|
12
12
|
books: BookSummary[];
|
|
13
13
|
}>>;
|
|
14
14
|
export declare function createBook(input: {
|
|
15
15
|
name: string;
|
|
16
|
-
currency?: string;
|
|
17
|
-
country?: SupportedCountryCode;
|
|
16
|
+
currency?: string | undefined;
|
|
17
|
+
country?: SupportedCountryCode | undefined;
|
|
18
18
|
/** Closing month 1-12 — required at the form boundary, but the
|
|
19
19
|
* server silently defaults an absent value to 12 (December). */
|
|
20
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
20
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
21
21
|
}): Promise<ApiResult<{
|
|
22
22
|
book: BookSummary;
|
|
23
23
|
}>>;
|
|
24
24
|
export declare function updateBook(input: {
|
|
25
25
|
bookId: string;
|
|
26
|
-
name?: string;
|
|
26
|
+
name?: string | undefined;
|
|
27
27
|
/** Pass `""` to explicitly clear the country (server treats it as
|
|
28
28
|
* the "drop the field" sentinel). Any other value must be one of
|
|
29
29
|
* the curated `SupportedCountryCode`s. */
|
|
30
|
-
country?: SupportedCountryCode | "";
|
|
30
|
+
country?: SupportedCountryCode | "" | undefined;
|
|
31
31
|
/** Closing month 1-12 — pure metadata, only changes how the
|
|
32
32
|
* date-range shortcuts resolve. No "clear" path; absence leaves the
|
|
33
33
|
* existing value untouched. */
|
|
34
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
34
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
35
35
|
}): Promise<ApiResult<{
|
|
36
36
|
book: BookSummary;
|
|
37
37
|
}>>;
|
|
@@ -51,12 +51,12 @@ export declare function upsertAccount(account: Account, bookId: string): Promise
|
|
|
51
51
|
export interface AddEntriesItemInput {
|
|
52
52
|
date: string;
|
|
53
53
|
lines: JournalLine[];
|
|
54
|
-
memo?: string;
|
|
54
|
+
memo?: string | undefined;
|
|
55
55
|
/** When set, marks this entry as the replacement posted via the
|
|
56
56
|
* "edit" flow. The caller is expected to have voided
|
|
57
57
|
* `replacesEntryId` separately just before this call — there is
|
|
58
58
|
* no atomic transaction. */
|
|
59
|
-
replacesEntryId?: string;
|
|
59
|
+
replacesEntryId?: string | undefined;
|
|
60
60
|
}
|
|
61
61
|
export declare function addEntries(input: {
|
|
62
62
|
bookId: string;
|
|
@@ -70,7 +70,7 @@ export declare function addEntries(input: {
|
|
|
70
70
|
}>>;
|
|
71
71
|
export declare function voidEntry(input: {
|
|
72
72
|
entryId: string;
|
|
73
|
-
reason?: string;
|
|
73
|
+
reason?: string | undefined;
|
|
74
74
|
bookId: string;
|
|
75
75
|
}): Promise<ApiResult<{
|
|
76
76
|
bookId: string;
|
|
@@ -78,9 +78,9 @@ export declare function voidEntry(input: {
|
|
|
78
78
|
markerEntry: JournalEntry;
|
|
79
79
|
}>>;
|
|
80
80
|
export declare function getJournalEntries(input: {
|
|
81
|
-
from?: string;
|
|
82
|
-
to?: string;
|
|
83
|
-
accountCode?: string;
|
|
81
|
+
from?: string | undefined;
|
|
82
|
+
to?: string | undefined;
|
|
83
|
+
accountCode?: string | undefined;
|
|
84
84
|
bookId: string;
|
|
85
85
|
}): Promise<ApiResult<{
|
|
86
86
|
bookId: string;
|
|
@@ -94,7 +94,7 @@ export declare function getOpeningBalances(bookId: string): Promise<ApiResult<{
|
|
|
94
94
|
export declare function setOpeningBalances(input: {
|
|
95
95
|
asOfDate: string;
|
|
96
96
|
lines: JournalLine[];
|
|
97
|
-
memo?: string;
|
|
97
|
+
memo?: string | undefined;
|
|
98
98
|
bookId: string;
|
|
99
99
|
}): Promise<ApiResult<{
|
|
100
100
|
bookId: string;
|
|
@@ -131,7 +131,7 @@ export interface TimeSeriesInput {
|
|
|
131
131
|
to: string;
|
|
132
132
|
/** Required when metric === "accountBalance"; forbidden otherwise.
|
|
133
133
|
* The server returns a 400 either way. */
|
|
134
|
-
accountCode?: string;
|
|
134
|
+
accountCode?: string | undefined;
|
|
135
135
|
}
|
|
136
136
|
export interface TimeSeriesResult {
|
|
137
137
|
bookId: string;
|
|
@@ -139,7 +139,7 @@ export interface TimeSeriesResult {
|
|
|
139
139
|
granularity: TimeSeriesGranularity;
|
|
140
140
|
from: string;
|
|
141
141
|
to: string;
|
|
142
|
-
accountCode?: string;
|
|
142
|
+
accountCode?: string | undefined;
|
|
143
143
|
points: TimeSeriesPoint[];
|
|
144
144
|
}
|
|
145
145
|
export declare function getTimeSeries(input: TimeSeriesInput): Promise<ApiResult<TimeSeriesResult>>;
|
package/dist/vue/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/vue/api.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;AAMnB,YAAY,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,SAAS,EACT,UAAU,EACV,YAAY,GACb,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB;qDACiD;IACjD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/vue/api.ts"],"names":[],"mappings":"AAUA,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,E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,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC,CAE1G"}
|
|
@@ -11,8 +11,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
cancel: () => any;
|
|
12
12
|
save: (draft: AccountDraft) => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
onCancel?: (
|
|
15
|
-
onSave?: (
|
|
14
|
+
onCancel?: () => any;
|
|
15
|
+
onSave?: (draft: AccountDraft) => any;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
export default _default;
|
|
@@ -6,8 +6,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
6
6
|
edit: () => any;
|
|
7
7
|
toggleActive: () => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onEdit?: (
|
|
10
|
-
onToggleActive?: (
|
|
9
|
+
onEdit?: () => any;
|
|
10
|
+
onToggleActive?: () => any;
|
|
11
11
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
12
|
declare const _default: typeof __VLS_export;
|
|
13
13
|
export default _default;
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
7
7
|
changed: () => any;
|
|
8
8
|
selectAccount: (code: string) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onChanged?: (
|
|
11
|
-
onSelectAccount?: (
|
|
10
|
+
onChanged?: () => any;
|
|
11
|
+
onSelectAccount?: (code: string) => any;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -7,8 +7,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
7
7
|
close: () => any;
|
|
8
8
|
changed: () => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
-
onClose?: (
|
|
11
|
-
onChanged?: (
|
|
10
|
+
onClose?: () => any;
|
|
11
|
+
onChanged?: () => any;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -6,7 +6,7 @@ type __VLS_Props = {
|
|
|
6
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
7
|
selectAccount: (code: string) => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onSelectAccount?: (
|
|
9
|
+
onSelectAccount?: (code: string) => any;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
export default _default;
|
|
@@ -3,15 +3,15 @@ type __VLS_Props = {
|
|
|
3
3
|
bookId: string;
|
|
4
4
|
bookName: string;
|
|
5
5
|
currency: string;
|
|
6
|
-
country?: SupportedCountryCode;
|
|
7
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
6
|
+
country?: SupportedCountryCode | undefined;
|
|
7
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
"books-changed": () => any;
|
|
11
11
|
deleted: (bookName: string) => any;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
"onBooks-changed"?: (
|
|
14
|
-
onDeleted?: (
|
|
13
|
+
"onBooks-changed"?: () => any;
|
|
14
|
+
onDeleted?: (bookName: string) => any;
|
|
15
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
17
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/BookSettings.vue"],"names":[],"mappings":"AA2SA,OAAO,EAIL,KAAK,oBAAoB,EAIzB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BookSettings.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/BookSettings.vue"],"names":[],"mappings":"AA2SA,OAAO,EAIL,KAAK,oBAAoB,EAIzB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CAC3C,CAAC;AAkiBF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -8,9 +8,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
8
8
|
"books-changed": () => any;
|
|
9
9
|
"book-created": (book: BookSummary) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
"onUpdate:modelValue"?: (
|
|
12
|
-
"onBooks-changed"?: (
|
|
13
|
-
"onBook-created"?: (
|
|
11
|
+
"onUpdate:modelValue"?: (bookId: string) => any;
|
|
12
|
+
"onBooks-changed"?: () => any;
|
|
13
|
+
"onBook-created"?: (book: BookSummary) => any;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
@@ -7,12 +7,12 @@ type __VLS_Props = {
|
|
|
7
7
|
* absent the Lifetime option is hidden from the menu. The opening
|
|
8
8
|
* gate prevents the tabs that mount this picker from rendering
|
|
9
9
|
* before an opening exists, so in normal use this stays defined. */
|
|
10
|
-
openingDate?: string;
|
|
10
|
+
openingDate?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
"update:modelValue": (args_0: DateRange) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: (
|
|
15
|
+
"onUpdate:modelValue"?: (args_0: DateRange) => any;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/DateRangePicker.vue"],"names":[],"mappings":"AA+JA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,SAAS,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;yEAIqE;IACrE,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DateRangePicker.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/DateRangePicker.vue"],"names":[],"mappings":"AA+JA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AAItB,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,SAAS,CAAC;IACtB,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;yEAIqE;IACrE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAsNF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -4,15 +4,15 @@ type __VLS_Props = {
|
|
|
4
4
|
bookId: string;
|
|
5
5
|
accounts: Account[];
|
|
6
6
|
currency: string;
|
|
7
|
-
country?: SupportedCountryCode;
|
|
8
|
-
entryToEdit?: JournalEntry | null;
|
|
7
|
+
country?: SupportedCountryCode | undefined;
|
|
8
|
+
entryToEdit?: JournalEntry | null | undefined;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
11
|
cancel: () => any;
|
|
12
12
|
submitted: () => any;
|
|
13
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
onCancel?: (
|
|
15
|
-
onSubmitted?: (
|
|
14
|
+
onCancel?: () => any;
|
|
15
|
+
onSubmitted?: () => any;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JournalEntryForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalEntryForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JournalEntryForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalEntryForm.vue"],"names":[],"mappings":"AAkgBA,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,YAAY,EAAoB,MAAM,QAAQ,CAAC;AAClG,OAAO,EAAkE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAOzH,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC3C,WAAW,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAkzBF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -4,26 +4,26 @@ type __VLS_Props = {
|
|
|
4
4
|
bookId: string;
|
|
5
5
|
accounts: Account[];
|
|
6
6
|
currency: string;
|
|
7
|
-
country?: SupportedCountryCode;
|
|
7
|
+
country?: SupportedCountryCode | undefined;
|
|
8
8
|
version: number;
|
|
9
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
9
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
10
10
|
/** Opening-balance date for the active book — drives the "Lifetime"
|
|
11
11
|
* shortcut in the date picker (from = openingDate, to = today).
|
|
12
12
|
* When absent, the picker hides Lifetime; "All" still works. */
|
|
13
|
-
openingDate?: string;
|
|
13
|
+
openingDate?: string | undefined;
|
|
14
14
|
/** Entry id to auto-expand and scroll into view. Surfaced by the
|
|
15
15
|
* parent when an `addEntries` tool result lands so the user sees
|
|
16
16
|
* the freshly-posted row highlighted. Captured into
|
|
17
17
|
* `pendingPreselectId` and consumed once the entry actually
|
|
18
18
|
* appears in the fetched list — refetch can race the prop. */
|
|
19
|
-
preselectEntryId?: string;
|
|
19
|
+
preselectEntryId?: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
22
|
editOpening: () => any;
|
|
23
23
|
preselectConsumed: () => any;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onEditOpening?: (
|
|
26
|
-
onPreselectConsumed?: (
|
|
25
|
+
onEditOpening?: () => any;
|
|
26
|
+
onPreselectConsumed?: () => any;
|
|
27
27
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
29
29
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JournalList.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalList.vue"],"names":[],"mappings":"AA6iBA,OAAO,EAAgC,KAAK,OAAO,EAA8D,MAAM,QAAQ,CAAC;AAChI,OAAO,EAA8E,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAQzJ,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"JournalList.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/JournalList.vue"],"names":[],"mappings":"AA6iBA,OAAO,EAAgC,KAAK,OAAO,EAA8D,MAAM,QAAQ,CAAC;AAChI,OAAO,EAA8E,KAAK,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAQzJ,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;qEAEiE;IACjE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;;mEAI+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAmgCF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -5,15 +5,15 @@ type __VLS_Props = {
|
|
|
5
5
|
accounts: Account[];
|
|
6
6
|
currency: string;
|
|
7
7
|
version: number;
|
|
8
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
8
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
9
9
|
/** Opening-balance date for the active book — drives the "Lifetime"
|
|
10
10
|
* shortcut in the date picker (from = openingDate, to = today).
|
|
11
11
|
* When absent, the picker hides Lifetime; "All" still works. */
|
|
12
|
-
openingDate?: string;
|
|
12
|
+
openingDate?: string | undefined;
|
|
13
13
|
/** Optional account to preselect (Accounts tab → click). Updates
|
|
14
14
|
* via the watcher below — assigning to the local `accountCode`
|
|
15
15
|
* ref keeps the dropdown's v-model authoritative for user edits. */
|
|
16
|
-
preselectAccountCode?: string;
|
|
16
|
+
preselectAccountCode?: string | undefined;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ledger.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/Ledger.vue"],"names":[],"mappings":"AAkNA,OAAO,EAAa,KAAK,OAAO,EAAkC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAA0G,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAO1J,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Ledger.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/Ledger.vue"],"names":[],"mappings":"AAkNA,OAAO,EAAa,KAAK,OAAO,EAAkC,MAAM,QAAQ,CAAC;AACjF,OAAO,EAA0G,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAO1J,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;qEAEiE;IACjE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;yEAEqE;IACrE,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C,CAAC;AAmZF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -8,8 +8,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
8
8
|
cancel: () => any;
|
|
9
9
|
created: (book: BookSummary) => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onCancel?: (
|
|
12
|
-
onCreated?: (
|
|
11
|
+
onCancel?: () => any;
|
|
12
|
+
onCreated?: (book: BookSummary) => any;
|
|
13
13
|
}>, {
|
|
14
14
|
firstRun: boolean;
|
|
15
15
|
cancelable: boolean;
|
|
@@ -8,7 +8,7 @@ type __VLS_Props = {
|
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
submitted: () => any;
|
|
10
10
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
-
onSubmitted?: (
|
|
11
|
+
onSubmitted?: () => any;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpeningBalancesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/OpeningBalancesForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpeningBalancesForm.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/OpeningBalancesForm.vue"],"names":[],"mappings":"AAkSA,OAAO,EAA0C,KAAK,OAAO,EAAuC,MAAM,QAAQ,CAAC;AAQnH,KAAK,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AA0gB9F,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -3,16 +3,16 @@ type __VLS_Props = {
|
|
|
3
3
|
bookId: string;
|
|
4
4
|
currency: string;
|
|
5
5
|
version: number;
|
|
6
|
-
fiscalYearEnd?: FiscalYearEnd;
|
|
6
|
+
fiscalYearEnd?: FiscalYearEnd | undefined;
|
|
7
7
|
/** Opening-balance date for the active book — drives the "Lifetime"
|
|
8
8
|
* shortcut in the date picker (from = openingDate, to = today).
|
|
9
9
|
* When absent, the picker hides Lifetime; "All" still works. */
|
|
10
|
-
openingDate?: string;
|
|
10
|
+
openingDate?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
selectAccount: (code: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
onSelectAccount?: (
|
|
15
|
+
onSelectAccount?: (code: string) => any;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfitLoss.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/ProfitLoss.vue"],"names":[],"mappings":"AAqKA,OAAO,EAA0G,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAM1J,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfitLoss.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/ProfitLoss.vue"],"names":[],"mappings":"AAqKA,OAAO,EAA0G,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAM1J,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC1C;;qEAEiE;IACjE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAkYF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/vue.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shared = require("./shared-
|
|
2
|
+
const require_shared = require("./shared-BpFVwa6Y.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _mulmoclaude_core_plugin_vue_i18n = require("@mulmoclaude/core/plugin-vue/i18n");
|
|
5
5
|
//#region src/vue/hostContext.ts
|
|
@@ -2235,7 +2235,7 @@ function isValidAccountCode(code) {
|
|
|
2235
2235
|
}
|
|
2236
2236
|
function typeForCode(code) {
|
|
2237
2237
|
if (!isValidAccountCode(code)) return null;
|
|
2238
|
-
const leading = Number.parseInt(code
|
|
2238
|
+
const leading = Number.parseInt(code.charAt(0), 10);
|
|
2239
2239
|
return require_shared.ACCOUNT_TYPES.find((type) => ACCOUNT_TYPE_PREFIX[type] === leading) ?? null;
|
|
2240
2240
|
}
|
|
2241
2241
|
function codeMatchesType(code, type) {
|
|
@@ -3234,7 +3234,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
3234
3234
|
};
|
|
3235
3235
|
//#endregion
|
|
3236
3236
|
//#region src/vue/components/JournalEntryForm.vue
|
|
3237
|
-
var JournalEntryForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(JournalEntryForm_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
3237
|
+
var JournalEntryForm_default = /*#__PURE__*/ _plugin_vue_export_helper_default(JournalEntryForm_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d5dcae53"]]);
|
|
3238
3238
|
//#endregion
|
|
3239
3239
|
//#region src/vue/components/JournalList.vue?vue&type=script&setup=true&lang.ts
|
|
3240
3240
|
var _hoisted_1$8 = { class: "flex flex-col h-full gap-3" };
|
|
@@ -3666,7 +3666,7 @@ var JournalList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
3666
3666
|
]);
|
|
3667
3667
|
};
|
|
3668
3668
|
}
|
|
3669
|
-
}), [["__scopeId", "data-v-
|
|
3669
|
+
}), [["__scopeId", "data-v-8ec9519f"]]);
|
|
3670
3670
|
//#endregion
|
|
3671
3671
|
//#region src/vue/components/OpeningBalancesForm.vue?vue&type=script&setup=true&lang.ts
|
|
3672
3672
|
var _hoisted_1$7 = { class: "flex items-center justify-between gap-2" };
|
|
@@ -3757,12 +3757,21 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3757
3757
|
credit: null
|
|
3758
3758
|
};
|
|
3759
3759
|
}
|
|
3760
|
+
const accountRows = (0, vue.computed)(() => bsAccounts.value.flatMap((account) => {
|
|
3761
|
+
const row = rows.value[account.code];
|
|
3762
|
+
return row ? [{
|
|
3763
|
+
account,
|
|
3764
|
+
row
|
|
3765
|
+
}] : [];
|
|
3766
|
+
}));
|
|
3760
3767
|
function onDebitInput(code) {
|
|
3761
3768
|
const row = rows.value[code];
|
|
3769
|
+
if (!row) return;
|
|
3762
3770
|
if (row.debit !== null && row.debit !== 0) row.credit = null;
|
|
3763
3771
|
}
|
|
3764
3772
|
function onCreditInput(code) {
|
|
3765
3773
|
const row = rows.value[code];
|
|
3774
|
+
if (!row) return;
|
|
3766
3775
|
if (row.credit !== null && row.credit !== 0) row.debit = null;
|
|
3767
3776
|
}
|
|
3768
3777
|
const imbalance = (0, vue.computed)(() => {
|
|
@@ -3882,7 +3891,7 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3882
3891
|
(0, vue.createElementVNode)("th", _hoisted_11$5, (0, vue.toDisplayString)((0, vue.unref)(t)("pluginAccounting.entryForm.accountLabel")), 1),
|
|
3883
3892
|
(0, vue.createElementVNode)("th", _hoisted_12$5, (0, vue.toDisplayString)((0, vue.unref)(t)("pluginAccounting.entryForm.debitLabel")), 1),
|
|
3884
3893
|
(0, vue.createElementVNode)("th", _hoisted_13$5, (0, vue.toDisplayString)((0, vue.unref)(t)("pluginAccounting.entryForm.creditLabel")), 1)
|
|
3885
|
-
])]), (0, vue.createElementVNode)("tbody", null, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(
|
|
3894
|
+
])]), (0, vue.createElementVNode)("tbody", null, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(accountRows.value, ({ account, row }) => {
|
|
3886
3895
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tr", {
|
|
3887
3896
|
key: account.code,
|
|
3888
3897
|
class: "border-b border-gray-100"
|
|
@@ -3893,7 +3902,7 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3893
3902
|
(0, vue.createElementVNode)("span", _hoisted_16$4, (0, vue.toDisplayString)(account.type), 1)
|
|
3894
3903
|
]),
|
|
3895
3904
|
(0, vue.createElementVNode)("td", _hoisted_17$4, [(0, vue.withDirectives)((0, vue.createElementVNode)("input", {
|
|
3896
|
-
"onUpdate:modelValue": ($event) =>
|
|
3905
|
+
"onUpdate:modelValue": ($event) => row.debit = $event,
|
|
3897
3906
|
type: "number",
|
|
3898
3907
|
step: step.value,
|
|
3899
3908
|
min: "0",
|
|
@@ -3902,12 +3911,12 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3902
3911
|
onInput: ($event) => onDebitInput(account.code)
|
|
3903
3912
|
}, null, 40, _hoisted_18$4), [[
|
|
3904
3913
|
vue.vModelText,
|
|
3905
|
-
|
|
3914
|
+
row.debit,
|
|
3906
3915
|
void 0,
|
|
3907
3916
|
{ number: true }
|
|
3908
3917
|
]])]),
|
|
3909
3918
|
(0, vue.createElementVNode)("td", _hoisted_19$4, [(0, vue.withDirectives)((0, vue.createElementVNode)("input", {
|
|
3910
|
-
"onUpdate:modelValue": ($event) =>
|
|
3919
|
+
"onUpdate:modelValue": ($event) => row.credit = $event,
|
|
3911
3920
|
type: "number",
|
|
3912
3921
|
step: step.value,
|
|
3913
3922
|
min: "0",
|
|
@@ -3916,7 +3925,7 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3916
3925
|
onInput: ($event) => onCreditInput(account.code)
|
|
3917
3926
|
}, null, 40, _hoisted_20$4), [[
|
|
3918
3927
|
vue.vModelText,
|
|
3919
|
-
|
|
3928
|
+
row.credit,
|
|
3920
3929
|
void 0,
|
|
3921
3930
|
{ number: true }
|
|
3922
3931
|
]])])
|
|
@@ -3942,7 +3951,7 @@ var OpeningBalancesForm_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
|
|
|
3942
3951
|
}, null, 8, ["book-id", "accounts"])) : (0, vue.createCommentVNode)("", true)], 64);
|
|
3943
3952
|
};
|
|
3944
3953
|
}
|
|
3945
|
-
}), [["__scopeId", "data-v-
|
|
3954
|
+
}), [["__scopeId", "data-v-eb577d9f"]]);
|
|
3946
3955
|
//#endregion
|
|
3947
3956
|
//#region src/vue/components/AccountsList.vue?vue&type=script&setup=true&lang.ts
|
|
3948
3957
|
var _hoisted_1$6 = {
|
|
@@ -5002,10 +5011,11 @@ var View_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
5002
5011
|
const { version: bookVersion } = useAccountingChannel(activeBookId);
|
|
5003
5012
|
useAccountingBooksChannel(() => void refetchBooks());
|
|
5004
5013
|
function pickInitialBookId() {
|
|
5005
|
-
|
|
5014
|
+
const [firstBook] = books.value;
|
|
5015
|
+
if (!firstBook) return null;
|
|
5006
5016
|
const requested = initialPayload.value.bookId;
|
|
5007
5017
|
if (requested && books.value.some((book) => book.id === requested)) return requested;
|
|
5008
|
-
return
|
|
5018
|
+
return firstBook.id;
|
|
5009
5019
|
}
|
|
5010
5020
|
async function refetchBooks() {
|
|
5011
5021
|
loadingBooks.value = true;
|