@wisemen/wise-invoicing-web 1.0.0 → 1.2.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 (92) hide show
  1. package/dist/AccountingSettingsViewDataProvider-BtDPqr_P.js +981 -0
  2. package/dist/{ApprovalReminderSettingsViewDataProvider-DyrHExKn.js → ApprovalReminderSettingsViewDataProvider-CuFo2JF5.js} +287 -287
  3. package/dist/{BillingDocumentDetailViewDataProvider-kFzqhrxW.js → BillingDocumentDetailViewDataProvider-qKW6LiRR.js} +1629 -1604
  4. package/dist/{BillingDocumentPdf-Dp6HSypy.js → BillingDocumentPdf-CgnrE4eq.js} +5 -5
  5. package/dist/{DataProvider-BtnD-BzI.js → DataProvider-Dj5ckiN2.js} +6 -9
  6. package/dist/{DunningCaseSendDialog-1S6OD9wd.js → DunningCaseSendDialog-CQ1yvbUt.js} +36 -36
  7. package/dist/{InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js → InvoiceApprovalOutOfSyncIndicator-BeqzoD3H.js} +2 -2
  8. package/dist/{InvoiceApprovalOverviewView-DM_LiO19.js → InvoiceApprovalOverviewView-B0ulYsYy.js} +230 -230
  9. package/dist/{InvoiceApprovalStatusBadge-mbYHYU3x.js → InvoiceApprovalStatusBadge-BZuyVHKk.js} +4 -4
  10. package/dist/{InvoicePdfView-YbDJpTIA.js → InvoicePdfView-BBTa7EaO.js} +2 -2
  11. package/dist/{InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js → InvoicePublicProFormaPdfViewDataProvider-_Tbt2pTv.js} +4 -4
  12. package/dist/{InvoiceRejectDialogDataProvider-yegAlkDB.js → InvoiceRejectDialogDataProvider-ma2UsSzC.js} +33 -33
  13. package/dist/{InvoiceStatusBadge-Bo5PDjEy.js → InvoiceStatusBadge-JIR1gUDL.js} +3 -3
  14. package/dist/{InvoicingFileUploadProvider-DVh22OUB.js → InvoicingFileUploadProvider-B-eq6i9v.js} +14 -14
  15. package/dist/{IssuerSettingsViewDataProvider-BgSFemZr.js → IssuerSettingsViewDataProvider-CHyCCy9K.js} +66 -66
  16. package/dist/{PeppolSettingsViewDataProvider-_Bx0xx9e.js → PeppolSettingsViewDataProvider-j1btvXOf.js} +4 -4
  17. package/dist/{api.util-lGbimoKL.js → api.util-BkwbrwEm.js} +1026 -800
  18. package/dist/billingDocumentDetail.transformer-B-GSRQc0.js +324 -0
  19. package/dist/client/index.d.ts +2 -2
  20. package/dist/client/sdk.gen.d.ts +10 -1
  21. package/dist/client/types.gen.d.ts +452 -1
  22. package/dist/client/zod.gen.d.ts +524 -0
  23. package/dist/composables/invoicingConfig.composable.d.ts +3 -0
  24. package/dist/{creditNoteDetail.query-CqJeWeRV.js → creditNoteDetail.query-Tg4s5B8Q.js} +34 -34
  25. package/dist/{customFieldDefinitionIndex.query-Co7hoMow.js → customFieldDefinitionIndex.query-DtMibcTn.js} +28 -28
  26. package/dist/{deliveryReason.util-ny1rA7Sm.js → deliveryReason.util-BuCD1Fuz.js} +6 -6
  27. package/dist/{dist-CrNFh-CR.js → dist-AbMUaDf-.js} +93 -93
  28. package/dist/{dist-DmVrfBOT.js → dist-DaJ08k0k.js} +231 -119
  29. package/dist/{documentTitle.composable-aTEYXgaZ.js → documentTitle.composable-Bxu0YL71.js} +27 -19
  30. package/dist/{i18n.lib-B1H9r0km.js → i18n.lib-C8TA6PCf.js} +162 -2
  31. package/dist/index.d.ts +160 -0
  32. package/dist/index.js +1576 -1554
  33. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  34. package/dist/{invoice.service-D9ubyWPb.js → invoice.service-BtgRZKrv.js} +152 -151
  35. package/dist/{invoiceApproval.service-BtDIOHIo.js → invoiceApproval.service-DEvaL-MH.js} +22 -21
  36. package/dist/invoiceApprovalStatus.util-NpxAuQ0t.js +83 -0
  37. package/dist/{invoiceCustomer.service-D0AtVrLg.js → invoiceCustomer.service-Cowdna7o.js} +6 -6
  38. package/dist/{invoiceDetail.query-BNL6MkvC.js → invoiceDetail.query-nEhWRrdL.js} +1 -1
  39. package/dist/{invoicingConfig.composable-DEF0lzNP.js → invoicingConfig.composable-CW47czLa.js} +20 -19
  40. package/dist/{issuerSettings.query-Cu-I6OAg.js → issuerSettings.query-CIWw1Zku.js} +27 -27
  41. package/dist/libs/i18n.lib.d.ts +160 -0
  42. package/dist/locales/en-US.json.d.ts +81 -1
  43. package/dist/locales/nl-BE.json.d.ts +81 -1
  44. package/dist/models/billing-document/billingDocumentDetail.model.d.ts +7 -1
  45. package/dist/modules/accounting/api/mutations/accountingConnectionDisconnect.mutation.d.ts +4 -0
  46. package/dist/modules/accounting/api/mutations/accountingPostingProfileUpdate.mutation.d.ts +15 -0
  47. package/dist/modules/accounting/api/mutations/exactAccountingConnect.mutation.d.ts +6 -0
  48. package/dist/modules/accounting/api/queries/accountingConnection.query.d.ts +1 -0
  49. package/dist/modules/accounting/api/queries/exactAuthorizationConfig.query.d.ts +1 -0
  50. package/dist/modules/accounting/api/queries/exactGlAccounts.query.d.ts +3 -0
  51. package/dist/modules/accounting/api/queries/exactJournals.query.d.ts +3 -0
  52. package/dist/modules/accounting/api/query-keys/accounting.queryKeys.d.ts +24 -0
  53. package/dist/modules/accounting/api/services/accountingConnection.service.d.ts +19 -0
  54. package/dist/modules/accounting/components/AccountingPostingProfileFields.vue.d.ts +14 -0
  55. package/dist/modules/accounting/components/AccountingSyncStatusBadge.vue.d.ts +7 -0
  56. package/dist/modules/accounting/components/ExactGlAccountField.vue.d.ts +12 -0
  57. package/dist/modules/accounting/components/ExactLogo.vue.d.ts +3 -0
  58. package/dist/modules/accounting/composables/exactLookupError.composable.d.ts +19 -0
  59. package/dist/modules/accounting/models/accountingConnection.model.d.ts +34 -0
  60. package/dist/modules/accounting/models/accountingConnection.transformer.d.ts +23 -0
  61. package/dist/modules/accounting/models/accountingConnection.transformer.spec.d.ts +1 -0
  62. package/dist/modules/accounting/models/accountingConnectionReadiness.util.d.ts +10 -0
  63. package/dist/modules/accounting/models/accountingConnectionUuid.model.d.ts +3 -0
  64. package/dist/modules/accounting/models/accountingError.util.d.ts +13 -0
  65. package/dist/modules/accounting/models/accountingError.util.spec.d.ts +1 -0
  66. package/dist/modules/accounting/models/accountingPostingProfileForm.model.d.ts +14 -0
  67. package/dist/modules/accounting/models/accountingPostingProfileForm.model.spec.d.ts +1 -0
  68. package/dist/modules/accounting/models/accountingPostingProfileUpdateForm.model.d.ts +17 -0
  69. package/dist/modules/accounting/models/exactAccountingConnectForm.model.d.ts +9 -0
  70. package/dist/modules/accounting/models/exactAccountingConnectForm.model.spec.d.ts +1 -0
  71. package/dist/modules/accounting/models/exactLookupOption.model.d.ts +5 -0
  72. package/dist/modules/accounting/models/exactLookupOption.util.d.ts +4 -0
  73. package/dist/modules/accounting/models/exactRegion.util.d.ts +5 -0
  74. package/dist/modules/accounting/models/exactRegion.util.spec.d.ts +1 -0
  75. package/dist/modules/accounting/routes/accounting.routes.d.ts +9 -0
  76. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionDetails.vue.d.ts +7 -0
  77. package/dist/modules/accounting/use-cases/settings/components/AccountingConnectionNotice.vue.d.ts +11 -0
  78. package/dist/modules/accounting/use-cases/settings/components/AccountingPostingProfileForm.vue.d.ts +8 -0
  79. package/dist/modules/accounting/use-cases/settings/components/ExactAccountingConnectForm.vue.d.ts +12 -0
  80. package/dist/modules/accounting/use-cases/settings/composables/accountingAuthorizationResult.composable.d.ts +5 -0
  81. package/dist/modules/accounting/use-cases/settings/composables/exactConnect.composable.d.ts +11 -0
  82. package/dist/modules/accounting/use-cases/settings/dialogs/AccountingConnectionDisconnectDialog.vue.d.ts +11 -0
  83. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsView.vue.d.ts +9 -0
  84. package/dist/modules/accounting/use-cases/settings/views/AccountingSettingsViewDataProvider.vue.d.ts +3 -0
  85. package/dist/modules/settings/routes/settings.routes.d.ts +7 -0
  86. package/dist/{plainDate.transformer-Bhiz9jW7.js → plainDate.transformer-BxvJpJOv.js} +4 -17
  87. package/dist/{reminderConfig.query-DHMHVOeX.js → reminderConfig.query-nb1P7ufx.js} +38 -37
  88. package/dist/types/queryKey.type.d.ts +3 -2
  89. package/dist/ui/data-provider/DataProvider.vue.d.ts +5 -1
  90. package/package.json +1 -1
  91. package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +0 -319
  92. package/dist/invoiceApprovalStatus.util-Bqq_bILG.js +0 -83
@@ -1,4 +1,4 @@
1
- import { P as e, W as t, a as n, dt as r, n as i, nt as a, ut as o } from "./dist-DmVrfBOT.js";
1
+ import { G as e, P as t, a as n, ht as r, mt as i, n as a, ot as o } from "./dist-DaJ08k0k.js";
2
2
  import { r as s } from "./dist-CyUNvdkD.js";
3
3
  import c from "zod";
4
4
  import { useI18n as l } from "vue-i18n";
@@ -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(o),
36
+ icon: w(i),
37
37
  label: w(t).t("component.filters.add_filter"),
38
38
  variant: "tertiary",
39
39
  size: "sm"
@@ -44,8 +44,8 @@ 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(e) {
48
- let n = e, r = l(), { clearFilter: i } = A(), o = k({
47
+ setup(t) {
48
+ let n = t, r = l(), { clearFilter: i } = A(), a = k({
49
49
  id: `clear-filter-${n.filter.key}`,
50
50
  name: () => r.t("component.filters.remove_filter"),
51
51
  execute: () => {
@@ -56,16 +56,16 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
56
56
  category: () => r.t("component.filters.action_category"),
57
57
  priority: Pe.HOVER
58
58
  },
59
- icon: () => t,
59
+ icon: () => e,
60
60
  keyboardShortcut: { key: "Backspace" }
61
61
  });
62
- return (e, t) => (b(), f(w(ce), { actions: [w(o)] }, {
62
+ return (e, t) => (b(), f(w(ce), { actions: [w(a)] }, {
63
63
  default: T(() => [h("div", ze, [C(e.$slots, "default"), n.filter.isPersistent === !0 ? p("", !0) : (b(), m(u, { key: 0 }, [g(w(ke), { orientation: "vertical" }), g(w(E), {
64
- action: w(o),
64
+ action: w(a),
65
65
  "is-current-context-only": !0
66
66
  }, {
67
67
  default: T(({ keyboardShortcut: e, label: t }) => [g(w(Ee), {
68
- icon: w(a),
68
+ icon: w(o),
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(t, { emit: r }) {
187
- let a = t, o = r, { actionGroup: s } = A(), c = l(), f = d(() => {
188
- let { from: e, until: t } = a;
186
+ setup(e, { emit: r }) {
187
+ let i = e, o = r, { actionGroup: s } = A(), c = l(), f = d(() => {
188
+ let { from: e, until: t } = i;
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,11 +208,11 @@ 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) {
211
+ if (i.from === null) {
212
212
  o("navigate", t, t);
213
213
  return;
214
214
  }
215
- let n = a.from, r = a.until ?? n;
215
+ let n = i.from, r = i.until ?? n;
216
216
  switch (f.value) {
217
217
  case "day": {
218
218
  let t = n.add({ days: e });
@@ -243,24 +243,24 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
243
243
  }
244
244
  }
245
245
  let y = k({
246
- id: `${a.filterId}-previous`,
246
+ id: `${i.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: () => e,
251
+ icon: () => t,
252
252
  keyboardShortcut: { key: "ArrowLeft" }
253
253
  }), ee = k({
254
- id: `${a.filterId}-next`,
254
+ id: `${i.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: () => a,
260
260
  keyboardShortcut: { key: "ArrowRight" }
261
261
  });
262
262
  return Fe(k({
263
- id: `${a.filterId}-today`,
263
+ id: `${i.filterId}-today`,
264
264
  isApplicable: (e) => e.menuType === void 0,
265
265
  name: () => c.t("component.filters_date_navigation.today"),
266
266
  execute: () => {
@@ -270,22 +270,22 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
270
270
  group: s,
271
271
  icon: () => n,
272
272
  keyboardShortcut: { key: "T" }
273
- })), (t, n) => (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
277
277
  }, {
278
- default: T(({ label: t, keyboardShortcut: r }) => [g(w(le), {
279
- label: t,
278
+ default: T(({ label: e, keyboardShortcut: r }) => [g(w(le), {
279
+ label: e,
280
280
  "keyboard-shortcut": r
281
281
  }, {
282
282
  default: T(() => [g(w(D), null, {
283
283
  default: T(() => [h("button", {
284
- "aria-label": t,
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
287
  onClick: n[0] ||= (e) => v(-1)
288
- }, [g(w(e), { class: "size-3.5 text-primary" })], 8, He)]),
288
+ }, [g(w(t), { class: "size-3.5 text-primary" })], 8, He)]),
289
289
  _: 2
290
290
  }, 1024)]),
291
291
  _: 2
@@ -293,7 +293,7 @@ var [Le, A] = Ie("filtersContext"), Re = /* @__PURE__ */ _({
293
293
  _: 1
294
294
  }, 8, ["action"]),
295
295
  g(N),
296
- C(t.$slots, "default"),
296
+ C(e.$slots, "default"),
297
297
  g(N),
298
298
  g(w(E), {
299
299
  action: w(ee),
@@ -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: n[1] ||= (e) => v(1)
312
- }, [g(w(i), { class: "size-3.5 text-primary" })], 8, Ue)]),
312
+ }, [g(w(a), { class: "size-3.5 text-primary" })], 8, Ue)]),
313
313
  _: 2
314
314
  }, 1024)]),
315
315
  _: 2
@@ -942,7 +942,7 @@ var qt = /* @__PURE__ */ _({
942
942
  },
943
943
  emits: ["submit"],
944
944
  setup(e, { emit: t }) {
945
- let n = e, r = t, i = l(), o = ae(), s = Ne({
945
+ let n = e, r = t, i = l(), a = ae(), s = Ne({
946
946
  schema: c.object({ value: c.number().min(n.filter.min ?? -(2 ** 53 - 1)).max(n.filter.max ?? 2 ** 53 - 1).nullable() }),
947
947
  onSubmit: (e) => {
948
948
  r("submit", {
@@ -963,10 +963,10 @@ var qt = /* @__PURE__ */ _({
963
963
  }, null, 8, ["title", "description"]),
964
964
  g(w(me), null, {
965
965
  default: T(() => [h("label", {
966
- for: w(o),
966
+ for: w(a),
967
967
  class: "sr-only"
968
968
  }, ie(n.filter.label), 9, Yt), g(w(De), y(w(Ae)(w(u)), {
969
- id: w(o),
969
+ id: w(a),
970
970
  "format-options": n.filter.formatOptions,
971
971
  placeholder: n.filter.placeholder ?? w(i).t("component.filters_number_dialog.placeholder")
972
972
  }), {
@@ -977,7 +977,7 @@ var qt = /* @__PURE__ */ _({
977
977
  class: "mr-sm text-xs text-tertiary"
978
978
  }, null, 8, ["text"])), w(u).value.value === null ? p("", !0) : (b(), f(w(Ee), {
979
979
  key: 1,
980
- icon: w(a),
980
+ icon: w(o),
981
981
  label: w(i).t("component.filters_number_dialog.clear"),
982
982
  size: "xs",
983
983
  variant: "tertiary",
@@ -1044,39 +1044,39 @@ function an(e) {
1044
1044
  function on(e) {
1045
1045
  return typeof e == "object" && !!e && "items" in e && "pagination" in e;
1046
1046
  }
1047
- function sn(e) {
1048
- let n = l(), i = Me(), a = i.create(Xt), o = i.create(qt), s = i.create(Jt), c = ae(), u = x(ee()), f = x(null), p = x(/* @__PURE__ */ new Set()), m = e.filters.map((t) => {
1049
- switch (t.type) {
1047
+ function sn(t) {
1048
+ let n = l(), i = Me(), a = i.create(Xt), o = i.create(qt), s = i.create(Jt), c = ae(), u = x(ee()), f = x(null), p = x(/* @__PURE__ */ new Set()), m = t.filters.map((e) => {
1049
+ switch (e.type) {
1050
1050
  case "multi-select":
1051
1051
  case "multi-autocomplete": return {
1052
1052
  action: k({
1053
- id: t.key,
1054
- name: t.label,
1055
- group: e.actionGroup,
1056
- icon: () => t.icon ?? null,
1053
+ id: e.key,
1054
+ name: e.label,
1055
+ group: t.actionGroup,
1056
+ icon: () => e.icon ?? null,
1057
1057
  multiSelectSubActions: !0,
1058
1058
  parentScoreInfluence: "none",
1059
1059
  searchSubActionsConfig: {
1060
1060
  minLength: 1,
1061
1061
  placeholder: n.t("component.filters_listbox.filter_placeholder")
1062
1062
  },
1063
- subActions: async (e) => {
1064
- 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({
1065
- id: K.stringify(e),
1066
- name: t.displayFn(e),
1063
+ subActions: async (t) => {
1064
+ let n = await e.options(t.searchInput, t.getPaginationOffsetForSubActionId), r = on(n) ? n.items : n, i = u.value[e.key].value, a = (t.getPaginationOffsetForSubActionId(e.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((t) => k({
1065
+ id: K.stringify(t),
1066
+ name: e.displayFn(t),
1067
1067
  execute: () => {
1068
- let n = u.value[t.key], r = n.value;
1069
- r.some((t) => K.stringify(t) === K.stringify(e)) ? u.value[t.key] = {
1068
+ let n = u.value[e.key], r = n.value;
1069
+ r.some((e) => K.stringify(e) === K.stringify(t)) ? u.value[e.key] = {
1070
1070
  ...n,
1071
- value: r.filter((t) => K.stringify(t) !== K.stringify(e))
1072
- } : u.value[t.key] = {
1071
+ value: r.filter((e) => K.stringify(e) !== K.stringify(t))
1072
+ } : u.value[e.key] = {
1073
1073
  ...n,
1074
- value: [...r, e]
1074
+ value: [...r, t]
1075
1075
  };
1076
1076
  },
1077
1077
  parentScoreInfluence: "direct",
1078
- selected: () => u.value[t.key].value.some((t) => K.stringify(t) === K.stringify(e)),
1079
- skipFilterScoring: t.type === "multi-autocomplete" && !i.some((t) => K.stringify(t) === K.stringify(e))
1078
+ selected: () => u.value[e.key].value.some((e) => K.stringify(e) === K.stringify(t)),
1079
+ skipFilterScoring: e.type === "multi-autocomplete" && !i.some((e) => K.stringify(e) === K.stringify(t))
1080
1080
  }));
1081
1081
  return on(n) ? {
1082
1082
  actions: a,
@@ -1084,79 +1084,79 @@ function sn(e) {
1084
1084
  } : a;
1085
1085
  }
1086
1086
  }),
1087
- key: t.key
1087
+ key: e.key
1088
1088
  };
1089
1089
  case "boolean": return {
1090
1090
  action: k({
1091
- id: t.key,
1092
- name: t.entityLabel,
1093
- disabledReason: () => u.value[t.key] === null ? null : n.t("component.filters.boolean_filter_already_active"),
1091
+ id: e.key,
1092
+ name: e.entityLabel,
1093
+ disabledReason: () => u.value[e.key] === null ? null : n.t("component.filters.boolean_filter_already_active"),
1094
1094
  execute: () => {
1095
- u.value[t.key] = !0;
1095
+ u.value[e.key] = !0;
1096
1096
  },
1097
- group: e.actionGroup,
1098
- icon: () => t.icon ?? null,
1097
+ group: t.actionGroup,
1098
+ icon: () => e.icon ?? null,
1099
1099
  parentScoreInfluence: "none"
1100
1100
  }),
1101
- key: t.key,
1101
+ key: e.key,
1102
1102
  searchSubActionsConfig: { placeholder: "Filter..." }
1103
1103
  };
1104
1104
  case "number": return {
1105
1105
  action: k({
1106
- id: t.key,
1107
- name: t.label,
1106
+ id: e.key,
1107
+ name: e.label,
1108
1108
  execute: () => {
1109
1109
  a.open({
1110
- filter: t,
1111
- initialValue: u.value[t.key],
1112
- onSubmit: (e) => {
1113
- u.value[t.key] = e, a.close();
1110
+ filter: e,
1111
+ initialValue: u.value[e.key],
1112
+ onSubmit: (t) => {
1113
+ u.value[e.key] = t, a.close();
1114
1114
  }
1115
1115
  });
1116
1116
  },
1117
- group: e.actionGroup,
1118
- icon: () => t.icon ?? null,
1117
+ group: t.actionGroup,
1118
+ icon: () => e.icon ?? null,
1119
1119
  parentScoreInfluence: "none"
1120
1120
  }),
1121
- key: t.key
1121
+ key: e.key
1122
1122
  };
1123
1123
  case "date": return {
1124
1124
  action: k({
1125
- id: t.key,
1126
- name: t.label,
1125
+ id: e.key,
1126
+ name: e.label,
1127
1127
  execute: () => {
1128
1128
  o.open({
1129
- filter: t,
1130
- initialValue: u.value[t.key],
1131
- onSubmit: (e) => {
1132
- u.value[t.key] = e, o.close();
1129
+ filter: e,
1130
+ initialValue: u.value[e.key],
1131
+ onSubmit: (t) => {
1132
+ u.value[e.key] = t, o.close();
1133
1133
  }
1134
1134
  });
1135
1135
  },
1136
- group: e.actionGroup,
1137
- icon: () => t.icon ?? null,
1136
+ group: t.actionGroup,
1137
+ icon: () => e.icon ?? null,
1138
1138
  parentScoreInfluence: "none"
1139
1139
  }),
1140
- key: t.key
1140
+ key: e.key
1141
1141
  };
1142
1142
  case "date-range": return {
1143
1143
  action: k({
1144
- id: t.key,
1145
- name: t.label,
1144
+ id: e.key,
1145
+ name: e.label,
1146
1146
  execute: () => {
1147
1147
  s.open({
1148
- filter: t,
1149
- initialValue: u.value[t.key],
1150
- onSubmit: (e) => {
1151
- u.value[t.key] = e, s.close();
1148
+ filter: e,
1149
+ initialValue: u.value[e.key],
1150
+ onSubmit: (t) => {
1151
+ u.value[e.key] = t, s.close();
1152
1152
  }
1153
1153
  });
1154
1154
  },
1155
- group: e.actionGroup,
1156
- icon: () => t.icon ?? null,
1155
+ group: t.actionGroup,
1156
+ icon: () => e.icon ?? null,
1157
1157
  parentScoreInfluence: "none"
1158
1158
  }),
1159
- key: t.key
1159
+ key: e.key
1160
1160
  };
1161
1161
  default: throw Error("Unsupported filter type");
1162
1162
  }
@@ -1165,8 +1165,8 @@ function sn(e) {
1165
1165
  isApplicable: (e) => p.value.size > 0 && e.menuType !== "contextualMenu",
1166
1166
  name: () => n.t("component.filters.clear_filters"),
1167
1167
  execute: () => re(),
1168
- group: e.actionGroup,
1169
- icon: () => t,
1168
+ group: t.actionGroup,
1169
+ icon: () => e,
1170
1170
  keyboardShortcut: {
1171
1171
  key: "F",
1172
1172
  shift: !0
@@ -1175,7 +1175,7 @@ function sn(e) {
1175
1175
  id: c,
1176
1176
  name: () => n.t("component.filters.add_filters"),
1177
1177
  forceAsRootMenu: !0,
1178
- group: e.actionGroup,
1178
+ group: t.actionGroup,
1179
1179
  icon: () => r,
1180
1180
  nameAsParent: n.t("component.filters_dropdown_menu.filter"),
1181
1181
  searchSubActionsConfig: {
@@ -1187,8 +1187,8 @@ function sn(e) {
1187
1187
  isApplicable: (e) => p.value.size === 0 || e.menuType !== "contextualMenu" || e.metadata.filters?.hideClearAll === !0 ? !1 : e.searchInput.trim().length === 0,
1188
1188
  name: () => n.t("component.filters.clear_filters"),
1189
1189
  execute: () => re(),
1190
- group: e.actionGroup,
1191
- icon: () => t,
1190
+ group: t.actionGroup,
1191
+ icon: () => e,
1192
1192
  keyboardShortcut: {
1193
1193
  key: "F",
1194
1194
  shift: !0
@@ -1201,7 +1201,7 @@ function sn(e) {
1201
1201
  action: ne(e.key)
1202
1202
  })).sort((e, t) => (e.isPersistent === !0 ? 0 : 1) - (t.isPersistent === !0 ? 0 : 1)));
1203
1203
  oe(u, () => {
1204
- for (let t of e.filters) v(t.key) ? p.value.add(t.key) : p.value.delete(t.key);
1204
+ for (let e of t.filters) v(e.key) ? p.value.add(e.key) : p.value.delete(e.key);
1205
1205
  }, {
1206
1206
  deep: !0,
1207
1207
  immediate: !0
@@ -1225,7 +1225,7 @@ function sn(e) {
1225
1225
  }
1226
1226
  }
1227
1227
  function ee() {
1228
- return e.filters.reduce((e, t) => (e[t.key] = t.defaultValue ?? te(t.key), e), {});
1228
+ return t.filters.reduce((e, t) => (e[t.key] = t.defaultValue ?? te(t.key), e), {});
1229
1229
  }
1230
1230
  function te(e) {
1231
1231
  switch (b(e).type) {
@@ -1252,8 +1252,8 @@ function sn(e) {
1252
1252
  };
1253
1253
  }
1254
1254
  }
1255
- function b(t) {
1256
- return e.filters.find((e) => e.key === t);
1255
+ function b(e) {
1256
+ return t.filters.find((t) => t.key === e);
1257
1257
  }
1258
1258
  function ne(e) {
1259
1259
  return m.find((t) => t.key === e).action;
@@ -1265,12 +1265,12 @@ function sn(e) {
1265
1265
  b(e).isPersistent !== !0 && (t && !y(e) || (u.value[e] = te(e), p.value.delete(e)));
1266
1266
  }
1267
1267
  function re() {
1268
- for (let t of e.filters) t.isPersistent !== !0 && (u.value[t.key] = te(t.key), p.value.delete(t.key));
1268
+ for (let e of t.filters) e.isPersistent !== !0 && (u.value[e.key] = te(e.key), p.value.delete(e.key));
1269
1269
  }
1270
1270
  Fe(h);
1271
1271
  let ie = {
1272
1272
  action: g,
1273
- actionGroup: e.actionGroup,
1273
+ actionGroup: t.actionGroup,
1274
1274
  activeFilters: _,
1275
1275
  clearAll: re,
1276
1276
  clearFilter: C,