@wisemen/wise-invoicing-web 0.5.0 → 0.7.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/{ApprovalReminderSettingsViewDataProvider-CD0Seawd.js → ApprovalReminderSettingsViewDataProvider-Dsp3ee3c.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-BgVYrLu8.js → BillingDocumentDetailViewDataProvider-TX-tovKU.js} +1708 -1576
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-LYvPMzYT.js → BillingDocumentPdf-c-7N80u4.js} +266 -205
- package/dist/{CreditNoteDetailViewDataProvider-CpSIbMM2.js → CreditNoteDetailViewDataProvider-BNT0h67Q.js} +196 -189
- package/dist/{CreditNotePdfViewDataProvider-Dtnu9gS3.js → CreditNotePdfViewDataProvider-qgOuhUf_.js} +2 -2
- package/dist/{CustomFieldValueText-DA0aPKwC.js → CustomFieldValueText-BP4bKQh7.js} +68 -38
- package/dist/{DunningCaseDetailViewDataProvider-DutSCkco.js → DunningCaseDetailViewDataProvider-BNByfQTc.js} +13 -13
- package/dist/{DunningCaseOverviewView-D8o4VMQD.js → DunningCaseOverviewView-Dvwaw597.js} +23 -23
- package/dist/{DunningCaseReminderPdfViewDataProvider-I_ZQiAuK.js → DunningCaseReminderPdfViewDataProvider-D1avIVyK.js} +1 -1
- package/dist/{DunningCaseSendDialog-DGg7bXeZ.js → DunningCaseSendDialog-DwB_jFum.js} +17 -17
- package/dist/{InvoiceApprovalOutOfSyncIndicator-AJOQe8j8.js → InvoiceApprovalOutOfSyncIndicator-B_9HLzpt.js} +2 -2
- package/dist/{InvoiceApprovalOverviewView-C4MI4IqD.js → InvoiceApprovalOverviewView-jawT-M1t.js} +213 -213
- package/dist/{InvoiceApprovalStatusBadge-BJ3Q18bf.js → InvoiceApprovalStatusBadge-D6Sr6JmN.js} +4 -4
- package/dist/{InvoiceApproveDialogDataProvider-CMZ0zDZo.js → InvoiceApproveDialogDataProvider-Bwb8bP1e.js} +16 -16
- package/dist/{InvoiceDetailViewDataProvider-k1yIeHYP.js → InvoiceDetailViewDataProvider-B8mMYTQf.js} +648 -642
- package/dist/{InvoiceOverviewViewDataProvider-BrgmweRE.js → InvoiceOverviewViewDataProvider-CLgV-Jcv.js} +501 -501
- package/dist/{InvoicePdfView-CB8gx8TE.js → InvoicePdfView-C518PlHp.js} +2 -2
- package/dist/{InvoicePdfViewDataProvider-Cs4Gqa0h.js → InvoicePdfViewDataProvider-ClfBkHUZ.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-BaSvVJ8W.js → InvoicePublicPdfViewDataProvider-CoXBj3Je.js} +3 -3
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-S3N9E91M.js → InvoicePublicProFormaPdfViewDataProvider-WlVD7sw1.js} +3 -3
- package/dist/{InvoicingFileUploadProvider-BLBjPKqx.js → InvoicingFileUploadProvider-Dl1LvCPm.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-BStn0jFI.js → IssuerSettingsViewDataProvider-CXyyCvoZ.js} +51 -46
- package/dist/PeppolSettingsViewDataProvider-Cptga29B.js +276 -0
- package/dist/{ReminderSettingsViewDataProvider-BotrOSmS.js → ReminderSettingsViewDataProvider-BZgzQIxM.js} +63 -63
- package/dist/{api.util-D6m6OY3_.js → api.util-CR2xLnNj.js} +785 -670
- package/dist/{billingDocumentDetail.transformer-Da-Nt4bI.js → billingDocumentDetail.transformer-D1f6Nv-U.js} +9 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +4 -1
- package/dist/client/types.gen.d.ts +240 -56
- package/dist/client/zod.gen.d.ts +4206 -1343
- package/dist/composables/invoicingConfig.composable.d.ts +12 -0
- package/dist/{creditNoteDetail.query-Yb8TdZNm.js → creditNoteDetail.query-DGeG9_sO.js} +15 -15
- package/dist/{dist-DCbLgB6Y.js → dist-BMzyJZTx.js} +258 -114
- package/dist/{dist-BpDuRYDT.js → dist-DALBiuub.js} +134 -134
- package/dist/{documentTitle.composable-CRJjS6p-.js → documentTitle.composable-RvqrZTBa.js} +28 -26
- package/dist/{download.util-B5Q7KUC9.js → download.util-LyRpGWKA.js} +9 -0
- package/dist/{i18n.lib-DBxdqkbJ.js → i18n.lib-MOiHLIGc.js} +58 -2
- package/dist/index.d.ts +59 -2
- package/dist/index.js +232 -212
- package/dist/{invoice.service-DWDl9XRh.js → invoice.service-Fv4F4aZq.js} +39 -38
- package/dist/{invoiceApproval.service-Fwlxgd9o.js → invoiceApproval.service-DJvXagC7.js} +7 -7
- package/dist/{invoiceApprovalStatus.util-q-zHLdFV.js → invoiceApprovalStatus.util-B98WeAf0.js} +2 -2
- package/dist/{invoiceCustomer.service-DOexR54S.js → invoiceCustomer.service-CDyrtcwH.js} +6 -6
- package/dist/{invoiceDetail.query-B5w0Vlsy.js → invoiceDetail.query-UHE0NCLh.js} +1 -1
- package/dist/{invoiceIndexCache.util-CUlp4R7R.js → invoiceIndexCache.util-CLM7FO6z.js} +3 -3
- package/dist/{invoicingConfig.composable-CaWQMTP1.js → invoicingConfig.composable-UC7tGtBj.js} +14 -10
- package/dist/{issuerSettings.query-BHuLjV9P.js → issuerSettings.query-CoiXblSm.js} +2 -2
- package/dist/libs/i18n.lib.d.ts +56 -0
- package/dist/locales/en-US.json.d.ts +29 -1
- package/dist/locales/nl-BE.json.d.ts +29 -1
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.d.ts +9 -0
- package/dist/models/billing-document/billingDocumentAdvancePayment.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +1 -0
- package/dist/modules/custom-field/components/CustomFieldList.vue.d.ts +0 -1
- package/dist/modules/custom-field/components/customFieldList.spec.d.ts +1 -0
- package/dist/modules/custom-field/components/customFieldTypeIcon.d.ts +16 -0
- package/dist/modules/custom-field/components/customFieldValueText.spec.d.ts +1 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.d.ts +16 -0
- package/dist/modules/custom-field/composables/customFieldReferenceLinks.composable.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.model.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.transformer.spec.d.ts +1 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldDefinition.util.d.ts +6 -0
- package/dist/modules/custom-field/models/custom-field-definition/customFieldViewKey.model.d.ts +9 -0
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.model.d.ts +1 -1
- package/dist/modules/custom-field/models/custom-field-value/customFieldValue.util.d.ts +10 -0
- package/dist/modules/custom-field/test/builders/customFieldDefinition.builder.d.ts +3 -1
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailPaymentsTableColumns.composable.d.ts +1 -1
- package/dist/modules/invoice-delivery/api/mutations/peppolConnectionUpdate.mutation.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/queries/peppolConnection.query.d.ts +1 -0
- package/dist/modules/invoice-delivery/api/query-keys/invoiceDelivery.queryKeys.d.ts +6 -0
- package/dist/modules/invoice-delivery/api/services/peppolConnection.service.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormApiKeyField.vue.d.ts +8 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormCompanyField.vue.d.ts +11 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormEnabledField.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/components/form/PeppolConnectionFormProviderField.vue.d.ts +9 -0
- package/dist/modules/invoice-delivery/index.d.ts +1 -0
- package/dist/modules/invoice-delivery/models/deliveryReason.util.d.ts +6 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.model.d.ts +18 -0
- package/dist/modules/invoice-delivery/models/peppolConnection.transformer.d.ts +9 -0
- package/dist/modules/invoice-delivery/models/peppolConnectionForm.model.d.ts +9 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsView.vue.d.ts +7 -0
- package/dist/modules/invoice-delivery/use-cases/settings/views/PeppolSettingsViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
- package/dist/{reminderConfig.query-C4J6m4ER.js → reminderConfig.query-aRFzY6uZ.js} +22 -22
- package/dist/style.css +1 -1
- package/dist/types/queryKey.type.d.ts +2 -1
- package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +114 -0
- package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +57 -36
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.d.ts +6 -1
- package/dist/ui/customer-invoice-list/composables/customerInvoiceTableColumns.composable.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as e, V as t, a as n, j as r, n as i, ot as a, st as o } from "./dist-BMzyJZTx.js";
|
|
2
2
|
import { n as s } from "./dist-Cdbpkd3Y.js";
|
|
3
3
|
import c from "zod";
|
|
4
4
|
import { useI18n as l } from "vue-i18n";
|
|
@@ -6,7 +6,7 @@ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p
|
|
|
6
6
|
import { UIActionDropdownMenu as se, UIActionFocus as ce, UIActionTooltip as le, UIActionTrigger as E, UIButton as ue, UIClickableElement as D, UIDatePicker as de, UIDateRangePicker as fe, UIDialog as pe, UIDialogBody as me, UIDialogFooter as he, UIDialogFooterCancel as ge, UIDialogFooterPrimary as _e, UIDialogFooterSecondary as ve, UIDialogFooterSubmit as ye, UIDialogHeader as be, UIDropdownMenu as xe, UIDropdownMenuGroup as Se, UIDropdownMenuRadioGroup as Ce, UIDropdownMenuRadioItem as we, UIFormDialog as Te, UIIconButton as Ee, UINumberField as De, UIRowLayout as Oe, UISeparator as ke, UIText as O, toFormField as Ae, useNumberFormat as je, useOverlay as Me } from "@wisemen/vue-core-design-system";
|
|
7
7
|
import { GroupPriority as Ne, createAction as k, useTemporaryActions as Pe } from "@wisemen/vue-core-actions";
|
|
8
8
|
import { useForm as Fe } from "formango";
|
|
9
|
-
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.
|
|
9
|
+
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.2_b3adc0c6747a2a1db9126610f45a22c9/node_modules/@wisemen/vue-core-filters/dist/index.js
|
|
10
10
|
function Ie(e) {
|
|
11
11
|
let t = Symbol(e);
|
|
12
12
|
function n(e) {
|
|
@@ -33,7 +33,7 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
33
33
|
"popover-side": "bottom"
|
|
34
34
|
}, {
|
|
35
35
|
default: T(() => [g(w(Ee), {
|
|
36
|
-
icon: w(
|
|
36
|
+
icon: w(a),
|
|
37
37
|
label: w(t).t("component.filters.add_filter"),
|
|
38
38
|
variant: "tertiary",
|
|
39
39
|
size: "sm"
|
|
@@ -44,30 +44,30 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
44
44
|
}), ze = { class: "flex h-6 items-center rounded-sm border border-secondary select-none" }, j = /* @__PURE__ */ _({
|
|
45
45
|
__name: "FiltersActiveBadgeBase",
|
|
46
46
|
props: { filter: {} },
|
|
47
|
-
setup(
|
|
48
|
-
let
|
|
49
|
-
id: `clear-filter-${
|
|
47
|
+
setup(n) {
|
|
48
|
+
let r = n, i = l(), { clearFilter: a } = A(), o = k({
|
|
49
|
+
id: `clear-filter-${r.filter.key}`,
|
|
50
50
|
name: () => i.t("component.filters.remove_filter"),
|
|
51
51
|
execute: () => {
|
|
52
|
-
a(
|
|
52
|
+
a(r.filter.key);
|
|
53
53
|
},
|
|
54
54
|
group: {
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => r.filter.label,
|
|
56
56
|
category: () => i.t("component.filters.action_category"),
|
|
57
57
|
priority: Ne.HOVER
|
|
58
58
|
},
|
|
59
|
-
icon: () =>
|
|
59
|
+
icon: () => t,
|
|
60
60
|
keyboardShortcut: { key: "Backspace" }
|
|
61
61
|
});
|
|
62
|
-
return (
|
|
63
|
-
default: T(() => [h("div", ze, [C(
|
|
62
|
+
return (t, n) => (b(), f(w(ce), { actions: [w(o)] }, {
|
|
63
|
+
default: T(() => [h("div", ze, [C(t.$slots, "default"), r.filter.isPersistent === !0 ? p("", !0) : (b(), m(u, { key: 0 }, [g(w(ke), { orientation: "vertical" }), g(w(E), {
|
|
64
64
|
action: w(o),
|
|
65
65
|
"is-current-context-only": !0
|
|
66
66
|
}, {
|
|
67
|
-
default: T(({ keyboardShortcut:
|
|
68
|
-
icon: w(
|
|
69
|
-
"keyboard-shortcut":
|
|
70
|
-
label:
|
|
67
|
+
default: T(({ keyboardShortcut: t, label: n }) => [g(w(Ee), {
|
|
68
|
+
icon: w(e),
|
|
69
|
+
"keyboard-shortcut": t,
|
|
70
|
+
label: n,
|
|
71
71
|
size: "xs",
|
|
72
72
|
variant: "tertiary",
|
|
73
73
|
class: "rounded-l-none!"
|
|
@@ -184,8 +184,8 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
184
184
|
},
|
|
185
185
|
emits: ["navigate"],
|
|
186
186
|
setup(e, { emit: t }) {
|
|
187
|
-
let
|
|
188
|
-
let { from: e, until: t } =
|
|
187
|
+
let a = e, o = t, { actionGroup: s } = A(), c = l(), f = d(() => {
|
|
188
|
+
let { from: e, until: t } = a;
|
|
189
189
|
return e === null || t === null || e.equals(t) ? "day" : e.month === 1 && e.day === 1 && t.month === 12 && t.day === 31 && e.year === t.year ? "year" : e.day === 1 && t.equals(e.add({ months: 1 }).add({ days: -1 })) ? "month" : e.add({ days: 6 }).equals(t) ? "week" : "custom";
|
|
190
190
|
}), p = d(() => {
|
|
191
191
|
switch (f.value) {
|
|
@@ -208,76 +208,76 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
208
208
|
});
|
|
209
209
|
function v(e) {
|
|
210
210
|
let t = Temporal.Now.plainDateISO();
|
|
211
|
-
if (
|
|
212
|
-
|
|
211
|
+
if (a.from === null) {
|
|
212
|
+
o("navigate", t, t);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
let n =
|
|
215
|
+
let n = a.from, r = a.until ?? n;
|
|
216
216
|
switch (f.value) {
|
|
217
217
|
case "day": {
|
|
218
218
|
let t = n.add({ days: e });
|
|
219
|
-
|
|
219
|
+
o("navigate", t, t);
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
case "week":
|
|
223
|
-
|
|
223
|
+
o("navigate", n.add({ weeks: e }), r.add({ weeks: e }));
|
|
224
224
|
break;
|
|
225
225
|
case "month": {
|
|
226
226
|
let t = n.add({ months: e });
|
|
227
|
-
|
|
227
|
+
o("navigate", t, t.add({ months: 1 }).add({ days: -1 }));
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
230
|
case "year": {
|
|
231
231
|
let t = n.add({ years: e });
|
|
232
|
-
|
|
232
|
+
o("navigate", t, t.with({
|
|
233
233
|
day: 31,
|
|
234
234
|
month: 12
|
|
235
235
|
}));
|
|
236
236
|
break;
|
|
237
237
|
}
|
|
238
238
|
case "custom": {
|
|
239
|
-
let t =
|
|
240
|
-
|
|
239
|
+
let t = r.since(n, { largestUnit: "day" }).days + 1;
|
|
240
|
+
o("navigate", n.add({ days: e * t }), r.add({ days: e * t }));
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
let y = k({
|
|
246
|
-
id: `${
|
|
246
|
+
id: `${a.filterId}-previous`,
|
|
247
247
|
isApplicable: (e) => e.menuType === void 0,
|
|
248
248
|
name: () => p.value,
|
|
249
249
|
execute: () => v(-1),
|
|
250
250
|
group: s,
|
|
251
|
-
icon: () =>
|
|
251
|
+
icon: () => r,
|
|
252
252
|
keyboardShortcut: { key: "ArrowLeft" }
|
|
253
253
|
}), ee = k({
|
|
254
|
-
id: `${
|
|
254
|
+
id: `${a.filterId}-next`,
|
|
255
255
|
isApplicable: (e) => e.menuType === void 0,
|
|
256
256
|
name: () => _.value,
|
|
257
257
|
execute: () => v(1),
|
|
258
258
|
group: s,
|
|
259
|
-
icon: () =>
|
|
259
|
+
icon: () => i,
|
|
260
260
|
keyboardShortcut: { key: "ArrowRight" }
|
|
261
261
|
});
|
|
262
262
|
return Pe(k({
|
|
263
|
-
id: `${
|
|
263
|
+
id: `${a.filterId}-today`,
|
|
264
264
|
isApplicable: (e) => e.menuType === void 0,
|
|
265
265
|
name: () => c.t("component.filters_date_navigation.today"),
|
|
266
266
|
execute: () => {
|
|
267
267
|
let e = Temporal.Now.plainDateISO();
|
|
268
|
-
|
|
268
|
+
o("navigate", e, e);
|
|
269
269
|
},
|
|
270
270
|
group: s,
|
|
271
|
-
icon: () =>
|
|
271
|
+
icon: () => n,
|
|
272
272
|
keyboardShortcut: { key: "T" }
|
|
273
273
|
})), (e, t) => (b(), m(u, null, [
|
|
274
274
|
g(w(E), {
|
|
275
275
|
action: w(y),
|
|
276
276
|
"is-current-context-only": !1
|
|
277
277
|
}, {
|
|
278
|
-
default: T(({ label: e, keyboardShortcut:
|
|
278
|
+
default: T(({ label: e, keyboardShortcut: n }) => [g(w(le), {
|
|
279
279
|
label: e,
|
|
280
|
-
"keyboard-shortcut":
|
|
280
|
+
"keyboard-shortcut": n
|
|
281
281
|
}, {
|
|
282
282
|
default: T(() => [g(w(D), null, {
|
|
283
283
|
default: T(() => [h("button", {
|
|
@@ -285,7 +285,7 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
285
285
|
type: "button",
|
|
286
286
|
class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
|
|
287
287
|
onClick: t[0] ||= (e) => v(-1)
|
|
288
|
-
}, [g(w(
|
|
288
|
+
}, [g(w(r), { class: "size-3.5 text-primary" })], 8, He)]),
|
|
289
289
|
_: 2
|
|
290
290
|
}, 1024)]),
|
|
291
291
|
_: 2
|
|
@@ -309,7 +309,7 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
309
309
|
type: "button",
|
|
310
310
|
class: "flex h-full w-4 shrink-0 items-center justify-center rounded-none! hover:bg-fg-primary/2 dark:hover:bg-fg-primary/5",
|
|
311
311
|
onClick: t[1] ||= (e) => v(1)
|
|
312
|
-
}, [g(w(
|
|
312
|
+
}, [g(w(i), { class: "size-3.5 text-primary" })], 8, Ue)]),
|
|
313
313
|
_: 2
|
|
314
314
|
}, 1024)]),
|
|
315
315
|
_: 2
|
|
@@ -949,48 +949,48 @@ var qt = /* @__PURE__ */ _({
|
|
|
949
949
|
initialValue: {}
|
|
950
950
|
},
|
|
951
951
|
emits: ["submit"],
|
|
952
|
-
setup(
|
|
953
|
-
let
|
|
954
|
-
schema: c.object({ value: c.number().min(
|
|
952
|
+
setup(t, { emit: n }) {
|
|
953
|
+
let r = t, i = n, a = l(), o = ae(), s = Fe({
|
|
954
|
+
schema: c.object({ value: c.number().min(r.filter.min ?? -(2 ** 53 - 1)).max(r.filter.max ?? 2 ** 53 - 1).nullable() }),
|
|
955
955
|
onSubmit: (e) => {
|
|
956
956
|
i("submit", {
|
|
957
|
-
operator:
|
|
957
|
+
operator: r.initialValue.operator,
|
|
958
958
|
value: e.value
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
}), u = s.register("value",
|
|
962
|
-
return (
|
|
961
|
+
}), u = s.register("value", r.initialValue.value);
|
|
962
|
+
return (t, n) => (b(), f(w(Te), {
|
|
963
963
|
form: w(s),
|
|
964
964
|
size: "xxs"
|
|
965
965
|
}, {
|
|
966
966
|
default: T(() => [
|
|
967
967
|
g(w(be), {
|
|
968
|
-
title:
|
|
968
|
+
title: r.filter.label,
|
|
969
969
|
"hide-description": !0,
|
|
970
|
-
description:
|
|
970
|
+
description: r.filter.label
|
|
971
971
|
}, null, 8, ["title", "description"]),
|
|
972
972
|
g(w(me), null, {
|
|
973
973
|
default: T(() => [h("label", {
|
|
974
974
|
for: w(o),
|
|
975
975
|
class: "sr-only"
|
|
976
|
-
}, ie(
|
|
976
|
+
}, ie(r.filter.label), 9, Yt), g(w(De), y(w(Ae)(w(u)), {
|
|
977
977
|
id: w(o),
|
|
978
|
-
"format-options":
|
|
979
|
-
placeholder:
|
|
978
|
+
"format-options": r.filter.formatOptions,
|
|
979
|
+
placeholder: r.filter.placeholder ?? w(a).t("component.filters_number_dialog.placeholder")
|
|
980
980
|
}), {
|
|
981
|
-
right: T(() => [
|
|
981
|
+
right: T(() => [r.filter.customUnit === void 0 ? p("", !0) : (b(), f(w(O), {
|
|
982
982
|
key: 0,
|
|
983
|
-
text:
|
|
983
|
+
text: r.filter.customUnit,
|
|
984
984
|
truncate: !1,
|
|
985
985
|
class: "mr-sm text-xs text-tertiary"
|
|
986
986
|
}, null, 8, ["text"])), w(u).value.value === null ? p("", !0) : (b(), f(w(Ee), {
|
|
987
987
|
key: 1,
|
|
988
|
-
icon: w(
|
|
988
|
+
icon: w(e),
|
|
989
989
|
label: w(a).t("component.filters_number_dialog.clear"),
|
|
990
990
|
size: "xs",
|
|
991
991
|
variant: "tertiary",
|
|
992
992
|
class: "mr-xs",
|
|
993
|
-
onClick:
|
|
993
|
+
onClick: n[0] ||= (e) => w(u).setValue(null)
|
|
994
994
|
}, null, 8, ["icon", "label"]))]),
|
|
995
995
|
_: 1
|
|
996
996
|
}, 16, [
|
|
@@ -1052,39 +1052,39 @@ function an(e) {
|
|
|
1052
1052
|
function on(e) {
|
|
1053
1053
|
return typeof e == "object" && !!e && "items" in e && "pagination" in e;
|
|
1054
1054
|
}
|
|
1055
|
-
function sn(
|
|
1056
|
-
let
|
|
1057
|
-
switch (
|
|
1055
|
+
function sn(e) {
|
|
1056
|
+
let n = l(), r = Me(), i = r.create(Xt), a = r.create(qt), s = r.create(Jt), c = ae(), u = x(ee()), f = x(null), p = x(/* @__PURE__ */ new Set()), m = e.filters.map((t) => {
|
|
1057
|
+
switch (t.type) {
|
|
1058
1058
|
case "multi-select":
|
|
1059
1059
|
case "multi-autocomplete": return {
|
|
1060
1060
|
action: k({
|
|
1061
|
-
id:
|
|
1062
|
-
name:
|
|
1063
|
-
group:
|
|
1064
|
-
icon: () =>
|
|
1061
|
+
id: t.key,
|
|
1062
|
+
name: t.label,
|
|
1063
|
+
group: e.actionGroup,
|
|
1064
|
+
icon: () => t.icon ?? null,
|
|
1065
1065
|
multiSelectSubActions: !0,
|
|
1066
1066
|
parentScoreInfluence: "none",
|
|
1067
1067
|
searchSubActionsConfig: {
|
|
1068
1068
|
minLength: 1,
|
|
1069
|
-
placeholder:
|
|
1069
|
+
placeholder: n.t("component.filters_listbox.filter_placeholder")
|
|
1070
1070
|
},
|
|
1071
|
-
subActions: async (
|
|
1072
|
-
let n = await
|
|
1073
|
-
id: K.stringify(
|
|
1074
|
-
name:
|
|
1071
|
+
subActions: async (e) => {
|
|
1072
|
+
let n = await t.options(e.searchInput, e.getPaginationOffsetForSubActionId), r = on(n) ? n.items : n, i = u.value[t.key].value, a = (e.getPaginationOffsetForSubActionId(t.key) === null ? [...i, ...r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))] : r.filter((e) => !i.some((t) => K.stringify(t) === K.stringify(e)))).map((e) => k({
|
|
1073
|
+
id: K.stringify(e),
|
|
1074
|
+
name: t.displayFn(e),
|
|
1075
1075
|
execute: () => {
|
|
1076
|
-
let n = u.value[
|
|
1077
|
-
r.some((
|
|
1076
|
+
let n = u.value[t.key], r = n.value;
|
|
1077
|
+
r.some((t) => K.stringify(t) === K.stringify(e)) ? u.value[t.key] = {
|
|
1078
1078
|
...n,
|
|
1079
|
-
value: r.filter((
|
|
1080
|
-
} : u.value[
|
|
1079
|
+
value: r.filter((t) => K.stringify(t) !== K.stringify(e))
|
|
1080
|
+
} : u.value[t.key] = {
|
|
1081
1081
|
...n,
|
|
1082
|
-
value: [...r,
|
|
1082
|
+
value: [...r, e]
|
|
1083
1083
|
};
|
|
1084
1084
|
},
|
|
1085
1085
|
parentScoreInfluence: "direct",
|
|
1086
|
-
selected: () => u.value[
|
|
1087
|
-
skipFilterScoring:
|
|
1086
|
+
selected: () => u.value[t.key].value.some((t) => K.stringify(t) === K.stringify(e)),
|
|
1087
|
+
skipFilterScoring: t.type === "multi-autocomplete" && !i.some((t) => K.stringify(t) === K.stringify(e))
|
|
1088
1088
|
}));
|
|
1089
1089
|
return on(n) ? {
|
|
1090
1090
|
actions: a,
|
|
@@ -1092,111 +1092,111 @@ function sn(n) {
|
|
|
1092
1092
|
} : a;
|
|
1093
1093
|
}
|
|
1094
1094
|
}),
|
|
1095
|
-
key:
|
|
1095
|
+
key: t.key
|
|
1096
1096
|
};
|
|
1097
1097
|
case "boolean": return {
|
|
1098
1098
|
action: k({
|
|
1099
|
-
id:
|
|
1100
|
-
name:
|
|
1101
|
-
disabledReason: () => u.value[
|
|
1099
|
+
id: t.key,
|
|
1100
|
+
name: t.entityLabel,
|
|
1101
|
+
disabledReason: () => u.value[t.key] === null ? null : n.t("component.filters.boolean_filter_already_active"),
|
|
1102
1102
|
execute: () => {
|
|
1103
|
-
u.value[
|
|
1103
|
+
u.value[t.key] = !0;
|
|
1104
1104
|
},
|
|
1105
|
-
group:
|
|
1106
|
-
icon: () =>
|
|
1105
|
+
group: e.actionGroup,
|
|
1106
|
+
icon: () => t.icon ?? null,
|
|
1107
1107
|
parentScoreInfluence: "none"
|
|
1108
1108
|
}),
|
|
1109
|
-
key:
|
|
1109
|
+
key: t.key,
|
|
1110
1110
|
searchSubActionsConfig: { placeholder: "Filter..." }
|
|
1111
1111
|
};
|
|
1112
1112
|
case "number": return {
|
|
1113
1113
|
action: k({
|
|
1114
|
-
id:
|
|
1115
|
-
name:
|
|
1114
|
+
id: t.key,
|
|
1115
|
+
name: t.label,
|
|
1116
1116
|
execute: () => {
|
|
1117
|
-
|
|
1118
|
-
filter:
|
|
1119
|
-
initialValue: u.value[
|
|
1120
|
-
onSubmit: (
|
|
1121
|
-
u.value[
|
|
1117
|
+
i.open({
|
|
1118
|
+
filter: t,
|
|
1119
|
+
initialValue: u.value[t.key],
|
|
1120
|
+
onSubmit: (e) => {
|
|
1121
|
+
u.value[t.key] = e, i.close();
|
|
1122
1122
|
}
|
|
1123
1123
|
});
|
|
1124
1124
|
},
|
|
1125
|
-
group:
|
|
1126
|
-
icon: () =>
|
|
1125
|
+
group: e.actionGroup,
|
|
1126
|
+
icon: () => t.icon ?? null,
|
|
1127
1127
|
parentScoreInfluence: "none"
|
|
1128
1128
|
}),
|
|
1129
|
-
key:
|
|
1129
|
+
key: t.key
|
|
1130
1130
|
};
|
|
1131
1131
|
case "date": return {
|
|
1132
1132
|
action: k({
|
|
1133
|
-
id:
|
|
1134
|
-
name:
|
|
1133
|
+
id: t.key,
|
|
1134
|
+
name: t.label,
|
|
1135
1135
|
execute: () => {
|
|
1136
|
-
|
|
1137
|
-
filter:
|
|
1138
|
-
initialValue: u.value[
|
|
1139
|
-
onSubmit: (
|
|
1140
|
-
u.value[
|
|
1136
|
+
a.open({
|
|
1137
|
+
filter: t,
|
|
1138
|
+
initialValue: u.value[t.key],
|
|
1139
|
+
onSubmit: (e) => {
|
|
1140
|
+
u.value[t.key] = e, a.close();
|
|
1141
1141
|
}
|
|
1142
1142
|
});
|
|
1143
1143
|
},
|
|
1144
|
-
group:
|
|
1145
|
-
icon: () =>
|
|
1144
|
+
group: e.actionGroup,
|
|
1145
|
+
icon: () => t.icon ?? null,
|
|
1146
1146
|
parentScoreInfluence: "none"
|
|
1147
1147
|
}),
|
|
1148
|
-
key:
|
|
1148
|
+
key: t.key
|
|
1149
1149
|
};
|
|
1150
1150
|
case "date-range": return {
|
|
1151
1151
|
action: k({
|
|
1152
|
-
id:
|
|
1153
|
-
name:
|
|
1152
|
+
id: t.key,
|
|
1153
|
+
name: t.label,
|
|
1154
1154
|
execute: () => {
|
|
1155
1155
|
s.open({
|
|
1156
|
-
filter:
|
|
1157
|
-
initialValue: u.value[
|
|
1158
|
-
onSubmit: (
|
|
1159
|
-
u.value[
|
|
1156
|
+
filter: t,
|
|
1157
|
+
initialValue: u.value[t.key],
|
|
1158
|
+
onSubmit: (e) => {
|
|
1159
|
+
u.value[t.key] = e, s.close();
|
|
1160
1160
|
}
|
|
1161
1161
|
});
|
|
1162
1162
|
},
|
|
1163
|
-
group:
|
|
1164
|
-
icon: () =>
|
|
1163
|
+
group: e.actionGroup,
|
|
1164
|
+
icon: () => t.icon ?? null,
|
|
1165
1165
|
parentScoreInfluence: "none"
|
|
1166
1166
|
}),
|
|
1167
|
-
key:
|
|
1167
|
+
key: t.key
|
|
1168
1168
|
};
|
|
1169
1169
|
default: throw Error("Unsupported filter type");
|
|
1170
1170
|
}
|
|
1171
1171
|
}), h = k({
|
|
1172
1172
|
id: "clear-filters",
|
|
1173
1173
|
isApplicable: (e) => p.value.size > 0 && e.menuType !== "contextualMenu",
|
|
1174
|
-
name: () =>
|
|
1174
|
+
name: () => n.t("component.filters.clear_filters"),
|
|
1175
1175
|
execute: () => re(),
|
|
1176
|
-
group:
|
|
1177
|
-
icon: () =>
|
|
1176
|
+
group: e.actionGroup,
|
|
1177
|
+
icon: () => t,
|
|
1178
1178
|
keyboardShortcut: {
|
|
1179
1179
|
key: "F",
|
|
1180
1180
|
shift: !0
|
|
1181
1181
|
}
|
|
1182
1182
|
}), g = k({
|
|
1183
1183
|
id: c,
|
|
1184
|
-
name: () =>
|
|
1184
|
+
name: () => n.t("component.filters.add_filters"),
|
|
1185
1185
|
forceAsRootMenu: !0,
|
|
1186
|
-
group:
|
|
1187
|
-
icon: () =>
|
|
1188
|
-
nameAsParent:
|
|
1186
|
+
group: e.actionGroup,
|
|
1187
|
+
icon: () => o,
|
|
1188
|
+
nameAsParent: n.t("component.filters_dropdown_menu.filter"),
|
|
1189
1189
|
searchSubActionsConfig: {
|
|
1190
1190
|
minLength: 99,
|
|
1191
|
-
placeholder:
|
|
1191
|
+
placeholder: n.t("component.filters.add_filter_placeholder")
|
|
1192
1192
|
},
|
|
1193
1193
|
subActions: () => [...m.map((e) => e.action), k({
|
|
1194
1194
|
id: "add-filters-action-clear-filters",
|
|
1195
1195
|
isApplicable: (e) => p.value.size === 0 || e.menuType !== "contextualMenu" || e.metadata.filters?.hideClearAll === !0 ? !1 : e.searchInput.trim().length === 0,
|
|
1196
|
-
name: () =>
|
|
1196
|
+
name: () => n.t("component.filters.clear_filters"),
|
|
1197
1197
|
execute: () => re(),
|
|
1198
|
-
group:
|
|
1199
|
-
icon: () =>
|
|
1198
|
+
group: e.actionGroup,
|
|
1199
|
+
icon: () => t,
|
|
1200
1200
|
keyboardShortcut: {
|
|
1201
1201
|
key: "F",
|
|
1202
1202
|
shift: !0
|
|
@@ -1209,7 +1209,7 @@ function sn(n) {
|
|
|
1209
1209
|
action: ne(e.key)
|
|
1210
1210
|
})).sort((e, t) => (e.isPersistent === !0 ? 0 : 1) - (t.isPersistent === !0 ? 0 : 1)));
|
|
1211
1211
|
oe(u, () => {
|
|
1212
|
-
for (let
|
|
1212
|
+
for (let t of e.filters) v(t.key) ? p.value.add(t.key) : p.value.delete(t.key);
|
|
1213
1213
|
}, {
|
|
1214
1214
|
deep: !0,
|
|
1215
1215
|
immediate: !0
|
|
@@ -1233,7 +1233,7 @@ function sn(n) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
1235
|
function ee() {
|
|
1236
|
-
return
|
|
1236
|
+
return e.filters.reduce((e, t) => (e[t.key] = t.defaultValue ?? te(t.key), e), {});
|
|
1237
1237
|
}
|
|
1238
1238
|
function te(e) {
|
|
1239
1239
|
switch (b(e).type) {
|
|
@@ -1260,8 +1260,8 @@ function sn(n) {
|
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
|
-
function b(
|
|
1264
|
-
return
|
|
1263
|
+
function b(t) {
|
|
1264
|
+
return e.filters.find((e) => e.key === t);
|
|
1265
1265
|
}
|
|
1266
1266
|
function ne(e) {
|
|
1267
1267
|
return m.find((t) => t.key === e).action;
|
|
@@ -1273,12 +1273,12 @@ function sn(n) {
|
|
|
1273
1273
|
b(e).isPersistent !== !0 && (t && !y(e) || (u.value[e] = te(e), p.value.delete(e)));
|
|
1274
1274
|
}
|
|
1275
1275
|
function re() {
|
|
1276
|
-
for (let
|
|
1276
|
+
for (let t of e.filters) t.isPersistent !== !0 && (u.value[t.key] = te(t.key), p.value.delete(t.key));
|
|
1277
1277
|
}
|
|
1278
1278
|
Pe(h);
|
|
1279
1279
|
let ie = {
|
|
1280
1280
|
action: g,
|
|
1281
|
-
actionGroup:
|
|
1281
|
+
actionGroup: e.actionGroup,
|
|
1282
1282
|
activeFilters: _,
|
|
1283
1283
|
clearAll: re,
|
|
1284
1284
|
clearFilter: C,
|
|
@@ -2418,13 +2418,13 @@ function fr(e) {
|
|
|
2418
2418
|
var pr = /* @__PURE__ */ _({
|
|
2419
2419
|
__name: "FiltersDropdownMenu",
|
|
2420
2420
|
setup(e) {
|
|
2421
|
-
let
|
|
2421
|
+
let t = l(), { action: n } = A(), r = x(!1);
|
|
2422
2422
|
return dr("F", () => {
|
|
2423
|
-
|
|
2424
|
-
}), (e,
|
|
2425
|
-
"is-open":
|
|
2426
|
-
"onUpdate:isOpen":
|
|
2427
|
-
"parent-action": w(
|
|
2423
|
+
r.value = !0;
|
|
2424
|
+
}), (e, i) => (b(), f(w(se), {
|
|
2425
|
+
"is-open": r.value,
|
|
2426
|
+
"onUpdate:isOpen": i[0] ||= (e) => r.value = e,
|
|
2427
|
+
"parent-action": w(n),
|
|
2428
2428
|
"popover-collision-padding": 10,
|
|
2429
2429
|
"is-current-context-only": !1,
|
|
2430
2430
|
"popover-align": "start",
|
|
@@ -2432,9 +2432,9 @@ var pr = /* @__PURE__ */ _({
|
|
|
2432
2432
|
}, {
|
|
2433
2433
|
default: T(() => [g(w(ue), {
|
|
2434
2434
|
"keyboard-shortcut": { key: "F" },
|
|
2435
|
-
"icon-left": w(
|
|
2436
|
-
label: w(
|
|
2437
|
-
"tooltip-label": w(
|
|
2435
|
+
"icon-left": w(o),
|
|
2436
|
+
label: w(t).t("component.filters_dropdown_menu.filter"),
|
|
2437
|
+
"tooltip-label": w(t).t("component.filters_dropdown_menu.add_filter"),
|
|
2438
2438
|
variant: "secondary"
|
|
2439
2439
|
}, null, 8, [
|
|
2440
2440
|
"icon-left",
|
|
@@ -17,51 +17,53 @@ var i = /* @__PURE__ */ function(e) {
|
|
|
17
17
|
}({}), d = /* @__PURE__ */ function(e) {
|
|
18
18
|
return e.DRAFT = "draft", e.READY = "ready", e.FINALIZED = "finalized", e;
|
|
19
19
|
}({}), f = /* @__PURE__ */ function(e) {
|
|
20
|
-
return e.
|
|
20
|
+
return e.TEXT = "text", e.TEXT_ARRAY = "text_array", e.NUMBER = "number", e.BOOLEAN = "boolean", e.TIMESTAMP = "timestamp", e.DATE = "date", e.SINGLE_SELECT = "single_select", e.MULTI_SELECT = "multi_select", e.MONETARY = "monetary", e.REFERENCE = "reference", e;
|
|
21
21
|
}({}), p = /* @__PURE__ */ function(e) {
|
|
22
|
-
return e.
|
|
22
|
+
return e._0 = "0", e._6 = "6", e._12 = "12", e._21 = "21", e;
|
|
23
23
|
}({}), m = /* @__PURE__ */ function(e) {
|
|
24
|
-
return e.
|
|
24
|
+
return e.PERCENTAGE = "percentage", e.AMOUNT = "amount", e;
|
|
25
25
|
}({}), h = /* @__PURE__ */ function(e) {
|
|
26
|
-
return e.
|
|
26
|
+
return e.PIECE = "piece", e.HOUR = "hour", e.DAY = "day", e.KILOMETER = "kilometer", e.KILOGRAM = "kilogram", e.METER = "meter", e.CUBIC_METER = "cubic_meter", e.SQUARE_METER = "square_meter", e.LITRE = "litre", e;
|
|
27
27
|
}({}), g = /* @__PURE__ */ function(e) {
|
|
28
|
-
return e.
|
|
28
|
+
return e.UNSENT = "unsent", e.PROCESSING = "processing", e.SENT = "sent", e.VIEWED = "viewed", e.FAILED = "failed", e;
|
|
29
29
|
}({}), _ = /* @__PURE__ */ function(e) {
|
|
30
|
-
return e.
|
|
30
|
+
return e.UNPAID = "unpaid", e.PARTIALLY_PAID = "partially_paid", e.PAID = "paid", e.OVERPAID = "overpaid", e.CREDITED = "credited", e.SETTLED = "settled", e;
|
|
31
31
|
}({}), v = /* @__PURE__ */ function(e) {
|
|
32
|
-
return e.
|
|
32
|
+
return e.AFTER_LAST_REMINDER = "after_last_reminder", e.AFTER_DUE_DATE = "after_due_date", e;
|
|
33
33
|
}({}), y = /* @__PURE__ */ function(e) {
|
|
34
|
-
return e.
|
|
34
|
+
return e.APPROVED = "approved", e.REJECTED = "rejected", e.REQUESTED = "requested", e.EXPIRED = "expired", e;
|
|
35
35
|
}({}), b = /* @__PURE__ */ function(e) {
|
|
36
|
-
return e
|
|
36
|
+
return e.INCORRECT_PRICE = "incorrect_price", e.INCORRECT_QUANTITY = "incorrect_quantity", e.INCORRECT_CUSTOMER_OR_REFERENCE_DATA = "incorrect_customer_or_reference_data", e.WORK_NOT_FULLY_DELIVERED = "work_not_fully_delivered", e.MISSING_OR_INCORRECT_ATTACHMENT = "missing_or_incorrect_attachment", e.MISSING_OR_INCORRECT_PO_REFERENCE = "missing_or_incorrect_po_reference", e.OTHER = "other", e;
|
|
37
37
|
}({}), x = /* @__PURE__ */ function(e) {
|
|
38
|
-
return e
|
|
38
|
+
return e[e._1 = 1] = "_1", e[e._2 = 2] = "_2", e;
|
|
39
39
|
}({}), S = /* @__PURE__ */ function(e) {
|
|
40
|
-
return e.
|
|
40
|
+
return e.CREATED_AT = "created_at", e.ISSUED_ON = "issued_on", e.SEQUENCE = "sequence", e.CUSTOMER = "customer", e.NET_AMOUNT = "netAmount", e;
|
|
41
41
|
}({}), C = /* @__PURE__ */ function(e) {
|
|
42
|
-
return e.
|
|
42
|
+
return e.INCLUDE = "include", e.EXCLUDE = "exclude", e;
|
|
43
43
|
}({}), w = /* @__PURE__ */ function(e) {
|
|
44
|
-
return e.
|
|
44
|
+
return e.NO_APPROVAL_REQUIRED = "no_approval_required", e.AWAITING_APPROVAL = "awaiting_approval", e.REMINDER_1 = "reminder_1", e.REMINDER_2 = "reminder_2", e.APPROVED = "approved", e.REJECTED = "rejected", e.EXPIRED = "expired", e;
|
|
45
45
|
}({}), T = /* @__PURE__ */ function(e) {
|
|
46
|
-
return e.
|
|
46
|
+
return e.INVOICE_CREATED = "invoice-created", e.INVOICE_UPDATED = "invoice-updated", e.INVOICE_FINALIZED = "invoice-finalized", e.INVOICE_SENT = "invoice-sent", e.INVOICE_REMINDER_SENT = "invoice-reminder-sent", e.INVOICE_DUPLICATED = "invoice-duplicated", e.INVOICE_MARKED_AS_READY = "invoice-marked-as-ready", e.INVOICE_MARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-marked-as-prior-approval-required", e.INVOICE_UNMARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-unmarked-as-prior-approval-required", e.INVOICE_MARKED_AS_PAID = "invoice-marked-as-paid", e.INVOICE_PAYMENT_CREATED = "invoice-payment-created", e.INVOICE_PAYMENT_DELETED = "invoice-payment-deleted", e.INVOICE_APPROVAL_SENT = "invoice-approval-sent", e.INVOICE_APPROVAL_APPROVED = "invoice-approval-approved", e.INVOICE_APPROVAL_REJECTED = "invoice-approval-rejected", e.INVOICE_APPROVAL_CANCELLED = "invoice-approval-cancelled", e.INVOICE_APPROVAL_EXPIRED = "invoice-approval-expired", e.INVOICE_APPROVAL_REMINDER_SENT = "invoice-approval-reminder-sent", e.INVOICE_FINALIZATION_BLOCKED = "invoice-finalization-blocked", e.DUNNING_CASE_REMINDER_SENT = "dunning-case-reminder-sent", e.CREDIT_NOTE_CREATED = "credit-note-created", e.CREDIT_NOTE_UPDATED = "credit-note-updated", e.CUSTOMER_UPDATED = "customer-updated", e;
|
|
47
47
|
}({}), E = /* @__PURE__ */ function(e) {
|
|
48
|
-
return e.
|
|
48
|
+
return e.USER = "user", e.SERVICE = "service", e.SYSTEM = "system", e;
|
|
49
49
|
}({}), D = /* @__PURE__ */ function(e) {
|
|
50
|
-
return e.
|
|
50
|
+
return e.ACTOR = "actor", e.CUSTOMER = "customer", e.INVOICE = "invoice", e.CREDIT_NOTE = "credit_note", e.APPROVAL = "approval", e.ATTACHMENT = "attachment", e;
|
|
51
51
|
}({}), O = /* @__PURE__ */ function(e) {
|
|
52
|
-
return e.
|
|
52
|
+
return e.MANUAL = "manual", e.EXACT = "exact", e;
|
|
53
53
|
}({}), k = /* @__PURE__ */ function(e) {
|
|
54
|
-
return e.
|
|
54
|
+
return e.PERCENTAGE = "percentage", e.AMOUNT = "amount", e;
|
|
55
55
|
}({}), A = /* @__PURE__ */ function(e) {
|
|
56
|
-
return e.
|
|
56
|
+
return e.INVOICE = "invoice", e.INVOICE_LINE = "invoice-line", e.INVOICE_LINE_GROUP = "invoice-line-group", e;
|
|
57
57
|
}({}), j = /* @__PURE__ */ function(e) {
|
|
58
58
|
return e.AFTER_APPROVAL_REQUEST = "after_approval_request", e.AFTER_LAST_REMINDER = "after_last_reminder", e;
|
|
59
|
-
}({}), M =
|
|
60
|
-
|
|
59
|
+
}({}), M = /* @__PURE__ */ function(e) {
|
|
60
|
+
return e.SOLUZ = "soluz", e;
|
|
61
|
+
}({}), N = t("{title}");
|
|
62
|
+
function P(e) {
|
|
61
63
|
if (!e.includes("{title}")) throw Error("Template must include {title}");
|
|
62
|
-
|
|
64
|
+
N.value = e;
|
|
63
65
|
}
|
|
64
|
-
function
|
|
66
|
+
function F() {
|
|
65
67
|
let i = t(document.title);
|
|
66
68
|
function a(e) {
|
|
67
69
|
r(() => n(e), (e) => {
|
|
@@ -69,12 +71,12 @@ function P() {
|
|
|
69
71
|
}, { immediate: !0 });
|
|
70
72
|
}
|
|
71
73
|
return r(i, (e) => {
|
|
72
|
-
document.title =
|
|
74
|
+
document.title = N.value.replace("{title}", e);
|
|
73
75
|
}, { immediate: !0 }), {
|
|
74
76
|
title: e(i),
|
|
75
77
|
set: a,
|
|
76
|
-
setTemplate:
|
|
78
|
+
setTemplate: P
|
|
77
79
|
};
|
|
78
80
|
}
|
|
79
81
|
//#endregion
|
|
80
|
-
export {
|
|
82
|
+
export { S as A, O as C, c as D, _ as E, h as O, i as S, v as T, y as _, w as a, o as b, s as c, a as d, m as f, b as g, C as h, T as i, p as k, A as l, k as m, E as n, x as o, l as p, D as r, j as s, F as t, f as u, g as v, M as w, u as x, d as y };
|