@wisemen/wise-invoicing-web 0.2.0 → 0.3.1
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-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
- package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-Dub07ybW.js} +1373 -1217
- package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
- package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-DgtUB45R.js} +20 -13
- package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-BxNfC6yO.js} +90 -90
- package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-D0j8qqK-.js} +2 -2
- package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-Cuhs9sRn.js} +26 -26
- package/dist/DunningCaseDetailViewDataProvider-ou1FfNWQ.js +439 -0
- package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView--zaPD0-c.js} +255 -203
- package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-BpUDbbSH.js} +5 -4
- package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-Co4oLFtZ.js} +83 -72
- package/dist/InvoiceApprovalOutOfSyncIndicator-H6H7kjAE.js +45 -0
- package/dist/InvoiceApprovalOverviewView-Bw-6rkon.js +814 -0
- package/dist/InvoiceApprovalStatusBadge-IyzJ--TJ.js +127 -0
- package/dist/InvoiceApproveDialogDataProvider-8G-11W1e.js +377 -0
- package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-B9gul2ei.js} +750 -692
- package/dist/InvoiceOverviewViewDataProvider-5KgIdhfL.js +1892 -0
- package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-5sJ-u_gT.js} +10 -4
- package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-BLVXDPv6.js} +3 -3
- package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-CnhYazmB.js} +3 -3
- package/dist/InvoicePublicProFormaPdfViewDataProvider-CcvGISK6.js +47 -0
- package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
- package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
- package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
- package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +2 -1
- package/dist/client/types.gen.d.ts +114 -31
- package/dist/client/zod.gen.d.ts +343 -78
- package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
- package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
- package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
- package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
- package/dist/{dist-Cxdm09Lp.js → dist-BQbaoN5W.js} +144 -96
- package/dist/{dist-CoztMdYH.js → dist-CGZBUnWK.js} +62 -62
- package/dist/{dist-boJIIxnT.js → dist-Cdbpkd3Y.js} +1 -1
- package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
- package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
- package/dist/index.d.ts +56 -22
- package/dist/index.js +193 -201
- package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
- package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
- package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
- package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
- package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
- package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-BDLs7W9m.js} +128 -51
- package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
- package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
- package/dist/libs/i18n.lib.d.ts +56 -22
- package/dist/locales/en-US.json.d.ts +44 -27
- package/dist/locales/nl-BE.json.d.ts +44 -27
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
- package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
- package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
- package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
- package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
- package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
- package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
- package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
- package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
- package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
- package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
- package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
- package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
- package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
- package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
- package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
- package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
- package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
- package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
- package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
- package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
- package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
- package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
- package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
- package/package.json +3 -3
- package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
- package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
- package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
- package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
- package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
- package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
- package/dist/customerUuid.model-GUFYq3O2.js +0 -5
- package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as s } from "./dist-
|
|
1
|
+
import { J as e, S as t, V as n, Y as r, a as i, j as a, n as o } from "./dist-BQbaoN5W.js";
|
|
2
|
+
import { n as s } from "./dist-Cdbpkd3Y.js";
|
|
3
3
|
import c from "zod";
|
|
4
4
|
import { useI18n as l } from "vue-i18n";
|
|
5
5
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, inject as v, mergeProps as y, normalizeClass as ee, onUnmounted as te, openBlock as b, provide as ne, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as re, toDisplayString as ie, unref as w, useId as ae, watch as oe, withCtx as T } from "vue";
|
|
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_03a6160facfdab48591f0fceaa1735a8/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) {
|
|
@@ -45,27 +45,27 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
45
45
|
__name: "FiltersActiveBadgeBase",
|
|
46
46
|
props: { filter: {} },
|
|
47
47
|
setup(e) {
|
|
48
|
-
let t = e,
|
|
48
|
+
let t = e, r = l(), { clearFilter: i } = A(), o = k({
|
|
49
49
|
id: `clear-filter-${t.filter.key}`,
|
|
50
|
-
name: () =>
|
|
50
|
+
name: () => r.t("component.filters.remove_filter"),
|
|
51
51
|
execute: () => {
|
|
52
52
|
i(t.filter.key);
|
|
53
53
|
},
|
|
54
54
|
group: {
|
|
55
55
|
name: () => t.filter.label,
|
|
56
|
-
category: () =>
|
|
56
|
+
category: () => r.t("component.filters.action_category"),
|
|
57
57
|
priority: Ne.HOVER
|
|
58
58
|
},
|
|
59
|
-
icon: () =>
|
|
59
|
+
icon: () => a,
|
|
60
60
|
keyboardShortcut: { key: "Backspace" }
|
|
61
61
|
});
|
|
62
|
-
return (e,
|
|
62
|
+
return (e, r) => (b(), f(w(ce), { actions: [w(o)] }, {
|
|
63
63
|
default: T(() => [h("div", ze, [C(e.$slots, "default"), t.filter.isPersistent === !0 ? p("", !0) : (b(), m(u, { key: 0 }, [g(w(ke), { orientation: "vertical" }), g(w(E), {
|
|
64
|
-
action: w(
|
|
64
|
+
action: w(o),
|
|
65
65
|
"is-current-context-only": !0
|
|
66
66
|
}, {
|
|
67
67
|
default: T(({ keyboardShortcut: e, label: t }) => [g(w(Ee), {
|
|
68
|
-
icon: w(
|
|
68
|
+
icon: w(n),
|
|
69
69
|
"keyboard-shortcut": e,
|
|
70
70
|
label: t,
|
|
71
71
|
size: "xs",
|
|
@@ -183,9 +183,9 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
183
183
|
until: {}
|
|
184
184
|
},
|
|
185
185
|
emits: ["navigate"],
|
|
186
|
-
setup(e, { emit:
|
|
187
|
-
let
|
|
188
|
-
let { from: e, until: t } =
|
|
186
|
+
setup(e, { emit: n }) {
|
|
187
|
+
let r = e, a = n, { actionGroup: s } = A(), c = l(), f = d(() => {
|
|
188
|
+
let { from: e, until: t } = r;
|
|
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,69 +208,69 @@ 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 (r.from === null) {
|
|
212
|
+
a("navigate", t, t);
|
|
213
213
|
return;
|
|
214
214
|
}
|
|
215
|
-
let n =
|
|
215
|
+
let n = r.from, i = r.until ?? n;
|
|
216
216
|
switch (f.value) {
|
|
217
217
|
case "day": {
|
|
218
218
|
let t = n.add({ days: e });
|
|
219
|
-
|
|
219
|
+
a("navigate", t, t);
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
case "week":
|
|
223
|
-
|
|
223
|
+
a("navigate", n.add({ weeks: e }), i.add({ weeks: e }));
|
|
224
224
|
break;
|
|
225
225
|
case "month": {
|
|
226
226
|
let t = n.add({ months: e });
|
|
227
|
-
|
|
227
|
+
a("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
|
+
a("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 = i.since(n, { largestUnit: "day" }).days + 1;
|
|
240
|
+
a("navigate", n.add({ days: e * t }), i.add({ days: e * t }));
|
|
241
241
|
break;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
let y = k({
|
|
246
|
-
id: `${
|
|
246
|
+
id: `${r.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: () => t,
|
|
252
252
|
keyboardShortcut: { key: "ArrowLeft" }
|
|
253
253
|
}), ee = k({
|
|
254
|
-
id: `${
|
|
254
|
+
id: `${r.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: () => o,
|
|
260
260
|
keyboardShortcut: { key: "ArrowRight" }
|
|
261
261
|
});
|
|
262
262
|
return Pe(k({
|
|
263
|
-
id: `${
|
|
263
|
+
id: `${r.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
|
+
a("navigate", e, e);
|
|
269
269
|
},
|
|
270
270
|
group: s,
|
|
271
|
-
icon: () =>
|
|
271
|
+
icon: () => i,
|
|
272
272
|
keyboardShortcut: { key: "T" }
|
|
273
|
-
})), (e,
|
|
273
|
+
})), (e, n) => (b(), m(u, null, [
|
|
274
274
|
g(w(E), {
|
|
275
275
|
action: w(y),
|
|
276
276
|
"is-current-context-only": !1
|
|
@@ -284,8 +284,8 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
284
284
|
"aria-label": e,
|
|
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
|
-
onClick:
|
|
288
|
-
}, [g(w(
|
|
287
|
+
onClick: n[0] ||= (e) => v(-1)
|
|
288
|
+
}, [g(w(t), { class: "size-3.5 text-primary" })], 8, He)]),
|
|
289
289
|
_: 2
|
|
290
290
|
}, 1024)]),
|
|
291
291
|
_: 2
|
|
@@ -299,17 +299,17 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
|
|
|
299
299
|
action: w(ee),
|
|
300
300
|
"is-current-context-only": !1
|
|
301
301
|
}, {
|
|
302
|
-
default: T(({ label: e, keyboardShortcut:
|
|
302
|
+
default: T(({ label: e, keyboardShortcut: t }) => [g(w(le), {
|
|
303
303
|
label: e,
|
|
304
|
-
"keyboard-shortcut":
|
|
304
|
+
"keyboard-shortcut": t
|
|
305
305
|
}, {
|
|
306
306
|
default: T(() => [g(w(D), null, {
|
|
307
307
|
default: T(() => [h("button", {
|
|
308
308
|
"aria-label": e,
|
|
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
|
-
onClick:
|
|
312
|
-
}, [g(w(
|
|
311
|
+
onClick: n[1] ||= (e) => v(1)
|
|
312
|
+
}, [g(w(o), { class: "size-3.5 text-primary" })], 8, Ue)]),
|
|
313
313
|
_: 2
|
|
314
314
|
}, 1024)]),
|
|
315
315
|
_: 2
|
|
@@ -950,43 +950,43 @@ var qt = /* @__PURE__ */ _({
|
|
|
950
950
|
},
|
|
951
951
|
emits: ["submit"],
|
|
952
952
|
setup(e, { emit: t }) {
|
|
953
|
-
let
|
|
954
|
-
schema: c.object({ value: c.number().min(
|
|
953
|
+
let r = e, i = t, 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
|
-
|
|
957
|
-
operator:
|
|
956
|
+
i("submit", {
|
|
957
|
+
operator: r.initialValue.operator,
|
|
958
958
|
value: e.value
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
}), u = s.register("value",
|
|
961
|
+
}), u = s.register("value", r.initialValue.value);
|
|
962
962
|
return (e, t) => (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
|
-
for: w(
|
|
974
|
+
for: w(o),
|
|
975
975
|
class: "sr-only"
|
|
976
|
-
}, ie(
|
|
977
|
-
id: w(
|
|
978
|
-
"format-options":
|
|
979
|
-
placeholder:
|
|
976
|
+
}, ie(r.filter.label), 9, Yt), g(w(De), y(w(Ae)(w(u)), {
|
|
977
|
+
id: w(o),
|
|
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(
|
|
989
|
-
label: w(
|
|
988
|
+
icon: w(n),
|
|
989
|
+
label: w(a).t("component.filters_number_dialog.clear"),
|
|
990
990
|
size: "xs",
|
|
991
991
|
variant: "tertiary",
|
|
992
992
|
class: "mr-xs",
|
|
@@ -1001,7 +1001,7 @@ var qt = /* @__PURE__ */ _({
|
|
|
1001
1001
|
_: 1
|
|
1002
1002
|
}),
|
|
1003
1003
|
g(w(he), null, {
|
|
1004
|
-
default: T(() => [g(w(ge), { label: w(
|
|
1004
|
+
default: T(() => [g(w(ge), { label: w(a).t("component.filters_number_dialog.cancel") }, null, 8, ["label"]), g(w(ye), { label: w(a).t("component.filters_number_dialog.set_filter") }, null, 8, ["label"])]),
|
|
1005
1005
|
_: 1
|
|
1006
1006
|
})
|
|
1007
1007
|
]),
|
|
@@ -1174,7 +1174,7 @@ function sn(e) {
|
|
|
1174
1174
|
name: () => t.t("component.filters.clear_filters"),
|
|
1175
1175
|
execute: () => re(),
|
|
1176
1176
|
group: e.actionGroup,
|
|
1177
|
-
icon: () =>
|
|
1177
|
+
icon: () => a,
|
|
1178
1178
|
keyboardShortcut: {
|
|
1179
1179
|
key: "F",
|
|
1180
1180
|
shift: !0
|
|
@@ -1184,7 +1184,7 @@ function sn(e) {
|
|
|
1184
1184
|
name: () => t.t("component.filters.add_filters"),
|
|
1185
1185
|
forceAsRootMenu: !0,
|
|
1186
1186
|
group: e.actionGroup,
|
|
1187
|
-
icon: () =>
|
|
1187
|
+
icon: () => r,
|
|
1188
1188
|
nameAsParent: t.t("component.filters_dropdown_menu.filter"),
|
|
1189
1189
|
searchSubActionsConfig: {
|
|
1190
1190
|
minLength: 99,
|
|
@@ -1196,7 +1196,7 @@ function sn(e) {
|
|
|
1196
1196
|
name: () => t.t("component.filters.clear_filters"),
|
|
1197
1197
|
execute: () => re(),
|
|
1198
1198
|
group: e.actionGroup,
|
|
1199
|
-
icon: () =>
|
|
1199
|
+
icon: () => a,
|
|
1200
1200
|
keyboardShortcut: {
|
|
1201
1201
|
key: "F",
|
|
1202
1202
|
shift: !0
|
|
@@ -2418,12 +2418,12 @@ function fr(e) {
|
|
|
2418
2418
|
var pr = /* @__PURE__ */ _({
|
|
2419
2419
|
__name: "FiltersDropdownMenu",
|
|
2420
2420
|
setup(e) {
|
|
2421
|
-
let t = l(), { action: n } = A(),
|
|
2421
|
+
let t = l(), { action: n } = A(), i = x(!1);
|
|
2422
2422
|
return dr("F", () => {
|
|
2423
|
-
|
|
2424
|
-
}), (e,
|
|
2425
|
-
"is-open":
|
|
2426
|
-
"onUpdate:isOpen":
|
|
2423
|
+
i.value = !0;
|
|
2424
|
+
}), (e, a) => (b(), f(w(se), {
|
|
2425
|
+
"is-open": i.value,
|
|
2426
|
+
"onUpdate:isOpen": a[0] ||= (e) => i.value = e,
|
|
2427
2427
|
"parent-action": w(n),
|
|
2428
2428
|
"popover-collision-padding": 10,
|
|
2429
2429
|
"is-current-context-only": !1,
|
|
@@ -2432,7 +2432,7 @@ var pr = /* @__PURE__ */ _({
|
|
|
2432
2432
|
}, {
|
|
2433
2433
|
default: T(() => [g(w(ue), {
|
|
2434
2434
|
"keyboard-shortcut": { key: "F" },
|
|
2435
|
-
"icon-left": w(
|
|
2435
|
+
"icon-left": w(r),
|
|
2436
2436
|
label: w(t).t("component.filters_dropdown_menu.filter"),
|
|
2437
2437
|
"tooltip-label": w(t).t("component.filters_dropdown_menu.add_filter"),
|
|
2438
2438
|
variant: "secondary"
|
|
@@ -2,7 +2,7 @@ import e from "zod";
|
|
|
2
2
|
import { useI18n as t } from "vue-i18n";
|
|
3
3
|
import { computed as n, ref as r } from "vue";
|
|
4
4
|
import { Temporal as i } from "temporal-polyfill";
|
|
5
|
-
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-dates@1.1.0_temporal-polyfill@0.3.2_vue-i18n@11.4.8_vue@3.5.
|
|
5
|
+
//#region ../../../node_modules/.pnpm/@wisemen+vue-core-dates@1.1.0_temporal-polyfill@0.3.2_vue-i18n@11.4.8_vue@3.5.42_typesc_04df45ac11a613e7f392b23bc31cbaf9/node_modules/@wisemen/vue-core-dates/dist/index.js
|
|
6
6
|
var a = class {
|
|
7
7
|
static getCurrentLocale() {
|
|
8
8
|
let e = typeof navigator < "u" ? navigator.language : void 0;
|
|
@@ -33,33 +33,35 @@ var i = /* @__PURE__ */ function(e) {
|
|
|
33
33
|
}({}), y = /* @__PURE__ */ function(e) {
|
|
34
34
|
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;
|
|
35
35
|
}({}), b = /* @__PURE__ */ function(e) {
|
|
36
|
-
return e
|
|
36
|
+
return e[e._1 = 1] = "_1", e[e._2 = 2] = "_2", e;
|
|
37
37
|
}({}), x = /* @__PURE__ */ function(e) {
|
|
38
|
-
return e.
|
|
38
|
+
return e.CREATED_AT = "created_at", e.ISSUED_ON = "issued_on", e.SEQUENCE = "sequence", e.CUSTOMER = "customer", e.NET_AMOUNT = "netAmount", e;
|
|
39
39
|
}({}), S = /* @__PURE__ */ function(e) {
|
|
40
|
-
return e
|
|
40
|
+
return e.INCLUDE = "include", e.EXCLUDE = "exclude", e;
|
|
41
41
|
}({}), C = /* @__PURE__ */ function(e) {
|
|
42
|
-
return e.
|
|
42
|
+
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;
|
|
43
43
|
}({}), w = /* @__PURE__ */ function(e) {
|
|
44
|
-
return e.
|
|
44
|
+
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;
|
|
45
45
|
}({}), T = /* @__PURE__ */ function(e) {
|
|
46
|
-
return e.
|
|
46
|
+
return e.USER = "user", e.SERVICE = "service", e.SYSTEM = "system", e;
|
|
47
47
|
}({}), E = /* @__PURE__ */ function(e) {
|
|
48
|
-
return e.
|
|
48
|
+
return e.ACTOR = "actor", e.CUSTOMER = "customer", e.INVOICE = "invoice", e.CREDIT_NOTE = "credit_note", e.APPROVAL = "approval", e.ATTACHMENT = "attachment", e;
|
|
49
49
|
}({}), D = /* @__PURE__ */ function(e) {
|
|
50
|
-
return e.
|
|
50
|
+
return e.MANUAL = "manual", e.EXACT = "exact", e;
|
|
51
51
|
}({}), O = /* @__PURE__ */ function(e) {
|
|
52
|
-
return e.
|
|
52
|
+
return e.PERCENTAGE = "percentage", e.AMOUNT = "amount", e;
|
|
53
53
|
}({}), k = /* @__PURE__ */ function(e) {
|
|
54
|
-
return e.
|
|
54
|
+
return e.INVOICE = "invoice", e.INVOICE_LINE = "invoice-line", e.INVOICE_LINE_GROUP = "invoice-line-group", e;
|
|
55
55
|
}({}), A = /* @__PURE__ */ function(e) {
|
|
56
|
+
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;
|
|
57
|
+
}({}), j = /* @__PURE__ */ function(e) {
|
|
56
58
|
return e.AFTER_APPROVAL_REQUEST = "after_approval_request", e.AFTER_LAST_REMINDER = "after_last_reminder", e;
|
|
57
|
-
}({}),
|
|
58
|
-
function
|
|
59
|
+
}({}), M = t("{title}");
|
|
60
|
+
function N(e) {
|
|
59
61
|
if (!e.includes("{title}")) throw Error("Template must include {title}");
|
|
60
|
-
|
|
62
|
+
M.value = e;
|
|
61
63
|
}
|
|
62
|
-
function
|
|
64
|
+
function P() {
|
|
63
65
|
let i = t(document.title);
|
|
64
66
|
function a(e) {
|
|
65
67
|
r(() => n(e), (e) => {
|
|
@@ -67,12 +69,12 @@ function N() {
|
|
|
67
69
|
}, { immediate: !0 });
|
|
68
70
|
}
|
|
69
71
|
return r(i, (e) => {
|
|
70
|
-
document.title =
|
|
72
|
+
document.title = M.value.replace("{title}", e);
|
|
71
73
|
}, { immediate: !0 }), {
|
|
72
74
|
title: e(i),
|
|
73
75
|
set: a,
|
|
74
|
-
setTemplate:
|
|
76
|
+
setTemplate: N
|
|
75
77
|
};
|
|
76
78
|
}
|
|
77
79
|
//#endregion
|
|
78
|
-
export {
|
|
80
|
+
export { D as C, m as D, c as E, f as O, i as S, g as T, v as _, C as a, o as b, s as c, a as d, p as f, y as g, S as h, w as i, x as k, k as l, O as m, T as n, b as o, l as p, E as r, j as s, P as t, A as u, h as v, _ as w, u as x, d as y };
|