@wisemen/wise-invoicing-web 0.2.0 → 0.3.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.
Files changed (117) hide show
  1. package/dist/{ApprovalReminderSettingsViewDataProvider-D-qXZrPT.js → ApprovalReminderSettingsViewDataProvider-DwtfyQpx.js} +4 -4
  2. package/dist/{BillingDocumentDetailViewDataProvider-DDdtlW-2.js → BillingDocumentDetailViewDataProvider-TJUwMhtn.js} +1373 -1217
  3. package/dist/BillingDocumentDetailViewDataProvider.css +1 -1
  4. package/dist/{BillingDocumentPdf-ehdFB6mr.js → BillingDocumentPdf-PU9Ldfhs.js} +20 -13
  5. package/dist/{CreditNoteDetailViewDataProvider-11a-JO3H.js → CreditNoteDetailViewDataProvider-DOPmal5D.js} +89 -89
  6. package/dist/{CreditNotePdfViewDataProvider-bfeaya3P.js → CreditNotePdfViewDataProvider-BH7MaReQ.js} +2 -2
  7. package/dist/{CustomFieldValueText-CZQXGE5F.js → CustomFieldValueText-BjRVovZL.js} +25 -25
  8. package/dist/DunningCaseDetailViewDataProvider-CW8ijY3H.js +439 -0
  9. package/dist/{DunningCaseOverviewView-y_bCmi5j.js → DunningCaseOverviewView-Cfo-4VIw.js} +255 -203
  10. package/dist/{DunningCaseReminderPdfViewDataProvider-DNODfED_.js → DunningCaseReminderPdfViewDataProvider-Dr-CS_VQ.js} +4 -3
  11. package/dist/{DunningCaseSendDialog-BPXcqit5.js → DunningCaseSendDialog-BYFXJYMM.js} +83 -72
  12. package/dist/InvoiceApprovalOutOfSyncIndicator-CP2GLaeh.js +45 -0
  13. package/dist/InvoiceApprovalOverviewView-Cjdu9iZC.js +814 -0
  14. package/dist/InvoiceApprovalStatusBadge-CcX8agTF.js +127 -0
  15. package/dist/InvoiceApproveDialogDataProvider-4wNAetBn.js +377 -0
  16. package/dist/{InvoiceDetailViewDataProvider-BYeaaQzL.js → InvoiceDetailViewDataProvider-C9O3hXGo.js} +750 -692
  17. package/dist/InvoiceOverviewViewDataProvider-DBdw7FvZ.js +1892 -0
  18. package/dist/{InvoicePdfView-BJRTg_TH.js → InvoicePdfView-CvU9bRVd.js} +10 -4
  19. package/dist/{InvoicePdfViewDataProvider-CwI_uGm3.js → InvoicePdfViewDataProvider-CFjHQ58K.js} +3 -3
  20. package/dist/{InvoicePublicPdfViewDataProvider-uZUfsr5K.js → InvoicePublicPdfViewDataProvider-DDv-LdBU.js} +3 -3
  21. package/dist/InvoicePublicProFormaPdfViewDataProvider-BTjJnELb.js +47 -0
  22. package/dist/{InvoicingFileUploadProvider-D9Xk4rQM.js → InvoicingFileUploadProvider-Kcq7kSSt.js} +2 -2
  23. package/dist/{IssuerSettingsViewDataProvider-CGRa8F-2.js → IssuerSettingsViewDataProvider-BuSIVnIl.js} +3 -3
  24. package/dist/{ReminderSettingsViewDataProvider-1ucp3z2T.js → ReminderSettingsViewDataProvider-CH7gSXnj.js} +100 -102
  25. package/dist/{api.util-C_kMGlJN.js → api.util-CkIRZS3h.js} +985 -930
  26. package/dist/{billingDocumentDetail.transformer-Da6_-Hv9.js → billingDocumentDetail.transformer-Bfd8geNo.js} +5 -7
  27. package/dist/client/index.d.ts +2 -2
  28. package/dist/client/sdk.gen.d.ts +2 -1
  29. package/dist/client/types.gen.d.ts +114 -31
  30. package/dist/client/zod.gen.d.ts +343 -78
  31. package/dist/composables/sending-refetch/sendingRefetch.composable.d.ts +7 -0
  32. package/dist/composables/sending-refetch/sendingRefetch.composable.spec.d.ts +1 -0
  33. package/dist/{creditNoteDetail.query-DLR7L0Ep.js → creditNoteDetail.query-tLnfqsEB.js} +27 -27
  34. package/dist/customerUuid.model-ClN4Vi9n.js +18 -0
  35. package/dist/{dist-Cxdm09Lp.js → dist-BD7Allff.js} +143 -95
  36. package/dist/{dist-CoztMdYH.js → dist-D5agTXFI.js} +61 -61
  37. package/dist/{documentTitle.composable-DsBbzhXN.js → documentTitle.composable-CRJjS6p-.js} +19 -17
  38. package/dist/{i18n.lib-Cvr8pcDw.js → i18n.lib--mzprLMR.js} +88 -54
  39. package/dist/index.d.ts +56 -22
  40. package/dist/index.js +193 -201
  41. package/dist/{invoice.service-DEEA9mal.js → invoice.service-B1w16_Md.js} +184 -172
  42. package/dist/{invoiceApproval.service-DvL3LliM.js → invoiceApproval.service-BHAJmFkU.js} +8 -8
  43. package/dist/{invoiceApprovalStatus.util-3Zh10Pj8.js → invoiceApprovalStatus.util-DohOKR4q.js} +42 -38
  44. package/dist/invoiceCustomer.service-DpVfpQUD.js +39 -0
  45. package/dist/{invoiceDetail.query-CRoH_SgM.js → invoiceDetail.query-CfyNSXLS.js} +1 -1
  46. package/dist/{invoiceDeliveryStatus.util-nCsqDypY.js → invoiceIndexCache.util-jHsrFwcA.js} +128 -51
  47. package/dist/{invoicingConfig.composable-rxjGK882.js → invoicingConfig.composable-COn1rKRf.js} +2 -2
  48. package/dist/{issuerSettings.query-Dc5gsaEm.js → issuerSettings.query-CDFk2GiP.js} +3 -2
  49. package/dist/libs/i18n.lib.d.ts +56 -22
  50. package/dist/locales/en-US.json.d.ts +44 -27
  51. package/dist/locales/nl-BE.json.d.ts +44 -27
  52. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.model.d.ts +8 -1
  53. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.d.ts +12 -0
  54. package/dist/models/billing-document/activity-log/billingDocumentActivityLog.util.spec.d.ts +1 -0
  55. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -6
  56. package/dist/modules/dunning-case/api/mutations/dunningCaseReminderRetry.mutation.d.ts +4 -0
  57. package/dist/modules/dunning-case/api/services/dunningCase.service.d.ts +2 -1
  58. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +5 -0
  59. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +0 -4
  60. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +0 -1
  61. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +1 -0
  62. package/dist/modules/dunning-case/use-cases/overview/components/DunningCaseOverviewActionsCell.vue.d.ts +2 -0
  63. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.d.ts +2 -2
  64. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverview.composable.spec.d.ts +1 -0
  65. package/dist/modules/dunning-case/use-cases/overview/composables/dunningCaseOverviewTableColumns.composable.d.ts +1 -0
  66. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +0 -4
  67. package/dist/modules/dunning-case/use-cases/send/dialogs/DunningCaseBulkSendDialog.vue.d.ts +2 -1
  68. package/dist/modules/dunning-case/use-cases/settings/components/ReminderLadderRow.vue.d.ts +4 -4
  69. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.d.ts +2 -2
  70. package/dist/modules/dunning-case/use-cases/settings/composables/reminderLadder.composable.spec.d.ts +1 -0
  71. package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +8 -0
  72. package/dist/modules/invoice/api/queries/invoicePublicProFormaDetail.query.d.ts +2 -0
  73. package/dist/modules/invoice/api/query-keys/invoice.queryKeys.d.ts +6 -0
  74. package/dist/modules/invoice/api/services/invoice.service.d.ts +1 -0
  75. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +4 -2
  76. package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.spec.d.ts +1 -0
  77. package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +8 -0
  78. package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +1 -0
  79. package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +2 -3
  80. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.model.d.ts +2 -9
  81. package/dist/modules/invoice/models/invoice/invoiceApprovalStatus.util.d.ts +4 -2
  82. package/dist/modules/invoice/models/invoice/payment/invoicePaymentCreate.transformer.spec.d.ts +1 -0
  83. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.transformer.d.ts +2 -1
  84. package/dist/modules/invoice/routes/invoice.routes.d.ts +4 -0
  85. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +1 -0
  86. package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialogDataProvider.vue.d.ts +13 -0
  87. package/dist/modules/invoice/use-cases/detail/dialogs/InvoicePaymentDeleteDialog.vue.d.ts +13 -0
  88. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewDataTableFilters.composable.d.ts +2 -3
  89. package/dist/modules/invoice/use-cases/overview/composables/invoiceOverviewSelection.composable.d.ts +11 -9
  90. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkActionDialog.vue.d.ts +2 -2
  91. package/dist/modules/invoice/use-cases/overview/dialogs/InvoiceOverviewBulkSendApprovalDialog.vue.d.ts +3 -1
  92. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.d.ts +7 -4
  93. package/dist/modules/invoice/use-cases/overview/utils/invoiceOverviewBulkActionFeedback.util.spec.d.ts +1 -0
  94. package/dist/modules/invoice/use-cases/pdf/components/BillingDocumentPdf.vue.d.ts +1 -0
  95. package/dist/modules/invoice/use-cases/pdf/components/InvoicePdfWatermark.vue.d.ts +4 -1
  96. package/dist/modules/invoice/use-cases/pdf/views/InvoicePdfView.vue.d.ts +1 -0
  97. package/dist/modules/invoice/use-cases/pdf/views/InvoicePublicProFormaPdfViewDataProvider.vue.d.ts +3 -0
  98. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +2 -0
  99. package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.spec.d.ts +1 -0
  100. package/dist/modules/invoice-approval/models/invoiceApprovalIndex.transformer.spec.d.ts +1 -0
  101. package/dist/modules/invoice-approval/models/invoiceApprovalIndexQueryParams.transformer.spec.d.ts +1 -0
  102. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverview.composable.d.ts +5 -6
  103. package/dist/modules/invoice-approval/use-cases/overview/composables/invoiceApprovalOverviewFilters.composable.d.ts +0 -5
  104. package/dist/modules/settings/models/issuer-settings/issuerSettings.model.d.ts +1 -0
  105. package/dist/{reminderConfig.query-snaHQmrY.js → reminderConfig.query-DSO0ekC_.js} +112 -105
  106. package/dist/routes/invoicingPublicRoutes.composable.d.ts +4 -0
  107. package/dist/style.css +1 -1
  108. package/dist/ui/billing-document/sidebar/BillingDocumentDetailSidebarActivityApprovalDetails.vue.d.ts +7 -0
  109. package/package.json +2 -2
  110. package/dist/DunningCaseDetailViewDataProvider-DC-ziMoO.js +0 -409
  111. package/dist/InvoiceApprovalOverviewView-DZ14mi4L.js +0 -870
  112. package/dist/InvoiceApprovalStatusBadge-U-dW2hR4.js +0 -161
  113. package/dist/InvoiceApproveDialog-2LXneG2r.js +0 -308
  114. package/dist/InvoiceOverviewBulkSendApprovalDialog-99dfuN4i.js +0 -318
  115. package/dist/InvoiceOverviewViewDataProvider-CZIQeftL.js +0 -1620
  116. package/dist/customerUuid.model-GUFYq3O2.js +0 -5
  117. package/dist/modules/invoice-approval/actions/invoiceApprovalUnmarkAsNeedsApproval.action.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { K as e, a as t, b as n, k as r, n as i, q as a, z as o } from "./dist-Cxdm09Lp.js";
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-BD7Allff.js";
2
2
  import { n as s } from "./dist-boJIIxnT.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.2_02c94a8c9ac255b840f2603ac9f74c0b/node_modules/@wisemen/vue-core-filters/dist/index.js
9
+ //#region ../../../node_modules/.pnpm/@wisemen+vue-core-filters@10.0.2_460b4e576474f0159503382111cc6f0f/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, n = l(), { clearFilter: i } = A(), a = k({
48
+ let t = e, r = l(), { clearFilter: i } = A(), o = k({
49
49
  id: `clear-filter-${t.filter.key}`,
50
- name: () => n.t("component.filters.remove_filter"),
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: () => n.t("component.filters.action_category"),
56
+ category: () => r.t("component.filters.action_category"),
57
57
  priority: Ne.HOVER
58
58
  },
59
- icon: () => r,
59
+ icon: () => a,
60
60
  keyboardShortcut: { key: "Backspace" }
61
61
  });
62
- return (e, n) => (b(), f(w(ce), { actions: [w(a)] }, {
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(a),
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(o),
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: r }) {
187
- let a = e, o = r, { actionGroup: s } = A(), c = l(), f = d(() => {
188
- let { from: e, until: t } = a;
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 (a.from === null) {
212
- o("navigate", t, t);
211
+ if (r.from === null) {
212
+ a("navigate", t, t);
213
213
  return;
214
214
  }
215
- let n = a.from, r = a.until ?? 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
- o("navigate", t, t);
219
+ a("navigate", t, t);
220
220
  break;
221
221
  }
222
222
  case "week":
223
- o("navigate", n.add({ weeks: e }), r.add({ weeks: e }));
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
- o("navigate", t, t.add({ months: 1 }).add({ days: -1 }));
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
- o("navigate", t, t.with({
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 = r.since(n, { largestUnit: "day" }).days + 1;
240
- o("navigate", n.add({ days: e * t }), r.add({ days: e * t }));
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: `${a.filterId}-previous`,
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: () => n,
251
+ icon: () => t,
252
252
  keyboardShortcut: { key: "ArrowLeft" }
253
253
  }), ee = k({
254
- id: `${a.filterId}-next`,
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: () => i,
259
+ icon: () => o,
260
260
  keyboardShortcut: { key: "ArrowRight" }
261
261
  });
262
262
  return Pe(k({
263
- id: `${a.filterId}-today`,
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
- o("navigate", e, e);
268
+ a("navigate", e, e);
269
269
  },
270
270
  group: s,
271
- icon: () => t,
271
+ icon: () => i,
272
272
  keyboardShortcut: { key: "T" }
273
- })), (e, t) => (b(), m(u, null, [
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: t[0] ||= (e) => v(-1)
288
- }, [g(w(n), { class: "size-3.5 text-primary" })], 8, He)]),
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: n }) => [g(w(le), {
302
+ default: T(({ label: e, keyboardShortcut: t }) => [g(w(le), {
303
303
  label: e,
304
- "keyboard-shortcut": n
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: t[1] ||= (e) => v(1)
312
- }, [g(w(i), { class: "size-3.5 text-primary" })], 8, Ue)]),
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 n = e, r = t, i = l(), a = ae(), s = Fe({
954
- schema: c.object({ value: c.number().min(n.filter.min ?? -(2 ** 53 - 1)).max(n.filter.max ?? 2 ** 53 - 1).nullable() }),
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
- r("submit", {
957
- operator: n.initialValue.operator,
956
+ i("submit", {
957
+ operator: r.initialValue.operator,
958
958
  value: e.value
959
959
  });
960
960
  }
961
- }), u = s.register("value", n.initialValue.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: n.filter.label,
968
+ title: r.filter.label,
969
969
  "hide-description": !0,
970
- description: n.filter.label
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(a),
974
+ for: w(o),
975
975
  class: "sr-only"
976
- }, ie(n.filter.label), 9, Yt), g(w(De), y(w(Ae)(w(u)), {
977
- id: w(a),
978
- "format-options": n.filter.formatOptions,
979
- placeholder: n.filter.placeholder ?? w(i).t("component.filters_number_dialog.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(() => [n.filter.customUnit === void 0 ? p("", !0) : (b(), f(w(O), {
981
+ right: T(() => [r.filter.customUnit === void 0 ? p("", !0) : (b(), f(w(O), {
982
982
  key: 0,
983
- text: n.filter.customUnit,
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(o),
989
- label: w(i).t("component.filters_number_dialog.clear"),
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(i).t("component.filters_number_dialog.cancel") }, null, 8, ["label"]), g(w(ye), { label: w(i).t("component.filters_number_dialog.set_filter") }, null, 8, ["label"])]),
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: () => r,
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: () => a,
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: () => r,
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(), r = x(!1);
2421
+ let t = l(), { action: n } = A(), i = x(!1);
2422
2422
  return dr("F", () => {
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,
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(a),
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"
@@ -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.CREATED_AT = "created_at", e.ISSUED_ON = "issued_on", e.SEQUENCE = "sequence", e.CUSTOMER = "customer", e.NET_AMOUNT = "netAmount", e;
36
+ return e[e._1 = 1] = "_1", e[e._2 = 2] = "_2", e;
37
37
  }({}), x = /* @__PURE__ */ function(e) {
38
- return e.INCLUDE = "include", e.EXCLUDE = "exclude", 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[e._1 = 1] = "_1", e[e._2 = 2] = "_2", e;
40
+ return e.INCLUDE = "include", e.EXCLUDE = "exclude", e;
41
41
  }({}), C = /* @__PURE__ */ function(e) {
42
- 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_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.CREDIT_NOTE_CREATED = "credit-note-created", e.CREDIT_NOTE_UPDATED = "credit-note-updated", e.CUSTOMER_UPDATED = "customer-updated", 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.USER = "user", e.SERVICE = "service", e.SYSTEM = "system", 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.ACTOR = "actor", e.CUSTOMER = "customer", e.INVOICE = "invoice", e.CREDIT_NOTE = "credit_note", e.APPROVAL = "approval", e;
46
+ return e.USER = "user", e.SERVICE = "service", e.SYSTEM = "system", e;
47
47
  }({}), E = /* @__PURE__ */ function(e) {
48
- return e.MANUAL = "manual", e.EXACT = "exact", 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.PERCENTAGE = "percentage", e.AMOUNT = "amount", e;
50
+ return e.MANUAL = "manual", e.EXACT = "exact", e;
51
51
  }({}), O = /* @__PURE__ */ function(e) {
52
- return e.INVOICE = "invoice", e.INVOICE_LINE = "invoice-line", e.INVOICE_LINE_GROUP = "invoice-line-group", e;
52
+ return e.PERCENTAGE = "percentage", e.AMOUNT = "amount", e;
53
53
  }({}), k = /* @__PURE__ */ function(e) {
54
- 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;
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
- }({}), j = t("{title}");
58
- function M(e) {
59
+ }({}), M = t("{title}");
60
+ function N(e) {
59
61
  if (!e.includes("{title}")) throw Error("Template must include {title}");
60
- j.value = e;
62
+ M.value = e;
61
63
  }
62
- function N() {
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 = j.value.replace("{title}", e);
72
+ document.title = M.value.replace("{title}", e);
71
73
  }, { immediate: !0 }), {
72
74
  title: e(i),
73
75
  set: a,
74
- setTemplate: M
76
+ setTemplate: N
75
77
  };
76
78
  }
77
79
  //#endregion
78
- export { _ as C, f as D, m as E, b as O, E as S, c as T, h as _, S as a, u as b, O as c, p as d, l as f, v as g, y as h, C as i, k as l, x as m, w as n, A as o, D as p, T as r, s, N as t, a as u, d as v, g as w, i as x, o as y };
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 };