@alfadocs/ui-kit-debug 1.118.0 → 1.119.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/_chunks/bill-line-table-DUMEHnQ4.js +1754 -0
- package/dist/_chunks/bill-line-table-DUMEHnQ4.js.map +1 -0
- package/dist/_chunks/{calendar-appointment-editor-dialog-BEmBcb61.js → calendar-appointment-editor-dialog-rw02sXGw.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-BEmBcb61.js.map → calendar-appointment-editor-dialog-rw02sXGw.js.map} +1 -1
- package/dist/_chunks/{compact-editor-fields-6sTWRLtf.js → compact-editor-fields-cP6yh7xv.js} +3 -3
- package/dist/_chunks/{compact-editor-fields-6sTWRLtf.js.map → compact-editor-fields-cP6yh7xv.js.map} +1 -1
- package/dist/_chunks/counts-BXtzNv_G.js +92 -0
- package/dist/_chunks/counts-BXtzNv_G.js.map +1 -0
- package/dist/_chunks/{data-grid-DiBSbN2Y.js → data-grid-Bbf8t4z3.js} +2 -2
- package/dist/_chunks/{data-grid-DiBSbN2Y.js.map → data-grid-Bbf8t4z3.js.map} +1 -1
- package/dist/_chunks/{default-tabs-CD285u0C.js → default-tabs-Cxkw1Ws0.js} +332 -368
- package/dist/_chunks/default-tabs-Cxkw1Ws0.js.map +1 -0
- package/dist/_chunks/{document-scanner-5p-Uu8dy.js → document-scanner-CETscDea.js} +2 -2
- package/dist/_chunks/{document-scanner-5p-Uu8dy.js.map → document-scanner-CETscDea.js.map} +1 -1
- package/dist/_chunks/file-code-Cf-_gSzd.js +23 -0
- package/dist/_chunks/file-code-Cf-_gSzd.js.map +1 -0
- package/dist/_chunks/{file-manager-CV1_GtjC.js → file-manager-DNq-sEsy.js} +2 -2
- package/dist/_chunks/{file-manager-CV1_GtjC.js.map → file-manager-DNq-sEsy.js.map} +1 -1
- package/dist/_chunks/{file-upload-CxjCs7TX.js → file-upload-DQc0LsBM.js} +385 -311
- package/dist/_chunks/file-upload-DQc0LsBM.js.map +1 -0
- package/dist/_chunks/invoice-upload-list-CsFsRgbt.js +952 -0
- package/dist/_chunks/invoice-upload-list-CsFsRgbt.js.map +1 -0
- package/dist/_chunks/maps-MpMxTBov.js +63 -0
- package/dist/_chunks/maps-MpMxTBov.js.map +1 -0
- package/dist/_chunks/{notes-panel-CHR-Jv6N.js → notes-panel-BOwlTz2-.js} +2 -2
- package/dist/_chunks/{notes-panel-CHR-Jv6N.js.map → notes-panel-BOwlTz2-.js.map} +1 -1
- package/dist/_chunks/package-plus-CTecQK3x.js +25 -0
- package/dist/_chunks/package-plus-CTecQK3x.js.map +1 -0
- package/dist/_chunks/{public-footer-CB7ruuLI.js → public-footer-C8UIzqLJ.js} +326 -243
- package/dist/_chunks/public-footer-C8UIzqLJ.js.map +1 -0
- package/dist/_chunks/{radiograph-panel.agent-9jwXlOXB.js → radiograph-panel.agent-Dcv16n7u.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-9jwXlOXB.js.map → radiograph-panel.agent-Dcv16n7u.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CMPA5Wgy.js → rich-text-editor-BLEdXJ0l.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CMPA5Wgy.js.map → rich-text-editor-BLEdXJ0l.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-bh7fn_Px.js → signed-out-frame-fUf7tqs3.js} +2 -2
- package/dist/_chunks/{signed-out-frame-bh7fn_Px.js.map → signed-out-frame-fUf7tqs3.js.map} +1 -1
- package/dist/_chunks/{task-editor-WdDCqbIL.js → task-editor-Czcx9B-3.js} +2 -2
- package/dist/_chunks/{task-editor-WdDCqbIL.js.map → task-editor-Czcx9B-3.js.map} +1 -1
- package/dist/_chunks/{toolbar-z8vXnpXz.js → toolbar-DoKcoE2q.js} +2 -2
- package/dist/_chunks/{toolbar-z8vXnpXz.js.map → toolbar-DoKcoE2q.js.map} +1 -1
- package/dist/_chunks/types-BrJRsnSG.js +291 -0
- package/dist/_chunks/types-BrJRsnSG.js.map +1 -0
- package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js +255 -0
- package/dist/_chunks/warehouse-load-summary-D88M4Ii7.js.map +1 -0
- package/dist/agent-catalog.json +360 -14
- package/dist/agent-i18n/en.json +31 -2
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/warehouse-load/counts.d.ts +82 -0
- package/dist/components/_shared/warehouse-load/counts.d.ts.map +1 -0
- package/dist/components/_shared/warehouse-load/index.d.ts +4 -0
- package/dist/components/_shared/warehouse-load/index.d.ts.map +1 -0
- package/dist/components/_shared/warehouse-load/maps.d.ts +67 -0
- package/dist/components/_shared/warehouse-load/maps.d.ts.map +1 -0
- package/dist/components/_shared/warehouse-load/types.d.ts +18 -0
- package/dist/components/_shared/warehouse-load/types.d.ts.map +1 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts +2 -0
- package/dist/components/bill-line-table/bill-line-table.columns.d.ts.map +1 -1
- package/dist/components/bill-line-table/bill-line-table.d.ts.map +1 -1
- package/dist/components/bill-line-table/bill-line-table.header.d.ts +7 -0
- package/dist/components/bill-line-table/bill-line-table.header.d.ts.map +1 -0
- package/dist/components/bill-line-table/bill-line-table.model.d.ts +10 -1
- package/dist/components/bill-line-table/bill-line-table.model.d.ts.map +1 -1
- package/dist/components/bill-line-table/bill-line-table.types.d.ts +66 -1
- package/dist/components/bill-line-table/bill-line-table.types.d.ts.map +1 -1
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts +12 -0
- package/dist/components/bill-line-table/bill-line-table.variants.d.ts.map +1 -1
- package/dist/components/bill-line-table/index.d.ts +2 -2
- package/dist/components/bill-line-table/index.d.ts.map +1 -1
- package/dist/components/bill-line-table/index.js +10 -8
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/data-grid/data-grid.variants.d.ts +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/file-upload.d.ts +30 -1
- package/dist/components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/flag/flag-view.d.ts +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/invoice-upload/index.d.ts +5 -0
- package/dist/components/invoice-upload/index.d.ts.map +1 -0
- package/dist/components/invoice-upload/index.js +7 -0
- package/dist/components/invoice-upload/index.js.map +1 -0
- package/dist/components/invoice-upload/invoice-upload.agent.d.ts +4 -0
- package/dist/components/invoice-upload/invoice-upload.agent.d.ts.map +1 -0
- package/dist/components/invoice-upload/invoice-upload.d.ts +3 -0
- package/dist/components/invoice-upload/invoice-upload.d.ts.map +1 -0
- package/dist/components/invoice-upload/types.d.ts +72 -0
- package/dist/components/invoice-upload/types.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/cells.d.ts +36 -0
- package/dist/components/invoice-upload-list/cells.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/columns.d.ts +14 -0
- package/dist/components/invoice-upload-list/columns.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/handle.d.ts +18 -0
- package/dist/components/invoice-upload-list/handle.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/index.d.ts +5 -0
- package/dist/components/invoice-upload-list/index.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/index.js +10 -0
- package/dist/components/invoice-upload-list/index.js.map +1 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.agent.d.ts +4 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.agent.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.d.ts +10 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.variants.d.ts +28 -0
- package/dist/components/invoice-upload-list/invoice-upload-list.variants.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/model.d.ts +40 -0
- package/dist/components/invoice-upload-list/model.d.ts.map +1 -0
- package/dist/components/invoice-upload-list/types.d.ts +154 -0
- package/dist/components/invoice-upload-list/types.d.ts.map +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-footer/public-footer.d.ts +24 -0
- package/dist/components/public-footer/public-footer.d.ts.map +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/warehouse-load-summary/index.d.ts +4 -0
- package/dist/components/warehouse-load-summary/index.d.ts.map +1 -0
- package/dist/components/warehouse-load-summary/index.js +6 -0
- package/dist/components/warehouse-load-summary/index.js.map +1 -0
- package/dist/components/warehouse-load-summary/model.d.ts +8 -0
- package/dist/components/warehouse-load-summary/model.d.ts.map +1 -0
- package/dist/components/warehouse-load-summary/types.d.ts +50 -0
- package/dist/components/warehouse-load-summary/types.d.ts.map +1 -0
- package/dist/components/warehouse-load-summary/warehouse-load-summary.agent.d.ts +4 -0
- package/dist/components/warehouse-load-summary/warehouse-load-summary.agent.d.ts.map +1 -0
- package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts +7 -0
- package/dist/components/warehouse-load-summary/warehouse-load-summary.d.ts.map +1 -0
- package/dist/core.css +1 -1
- package/dist/i18n/locales/ar.d.ts +203 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +197 -4
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +203 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +201 -4
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +203 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +201 -4
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +203 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +203 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +203 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +199 -4
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +203 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +199 -4
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +203 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +197 -4
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +203 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +197 -4
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +203 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +197 -4
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +203 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +197 -4
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +203 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +197 -4
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +203 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +199 -4
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +203 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +197 -4
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +203 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +197 -4
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +203 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +199 -4
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +203 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +197 -4
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +203 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +197 -4
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +203 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +197 -4
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +1189 -1173
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +207 -4
- package/dist/locales/de.json +207 -4
- package/dist/locales/el.json +207 -4
- package/dist/locales/en.json +203 -0
- package/dist/locales/es.json +207 -4
- package/dist/locales/fr.json +207 -4
- package/dist/locales/hi.json +207 -4
- package/dist/locales/it.json +207 -4
- package/dist/locales/ja.json +207 -4
- package/dist/locales/nl.json +207 -4
- package/dist/locales/pl.json +207 -4
- package/dist/locales/pt.json +207 -4
- package/dist/locales/ro.json +207 -4
- package/dist/locales/ru.json +207 -4
- package/dist/locales/sq.json +207 -4
- package/dist/locales/sv.json +207 -4
- package/dist/locales/tr.json +207 -4
- package/dist/locales/zh.json +207 -4
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +13 -1
- package/dist/_chunks/bill-line-table-vCnVo7_a.js +0 -1565
- package/dist/_chunks/bill-line-table-vCnVo7_a.js.map +0 -1
- package/dist/_chunks/default-tabs-CD285u0C.js.map +0 -1
- package/dist/_chunks/file-upload-CxjCs7TX.js.map +0 -1
- package/dist/_chunks/public-footer-CB7ruuLI.js.map +0 -1
|
@@ -1,51 +1,35 @@
|
|
|
1
1
|
import { jsxs as T, jsx as l, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { useId as
|
|
2
|
+
import { useId as Pe, useMemo as M, createElement as mt, forwardRef as ft, useRef as K, useState as yt, useImperativeHandle as ht, useCallback as gt } from "react";
|
|
3
3
|
import { useTranslation as v } from "react-i18next";
|
|
4
|
-
import { u as
|
|
5
|
-
import { D as
|
|
6
|
-
import { D as N } from "./toolbar-
|
|
7
|
-
import { I as
|
|
4
|
+
import { u as Tt } from "./registry-DvAUVLHh.js";
|
|
5
|
+
import { D as St, e as vt } from "./data-grid-Bbf8t4z3.js";
|
|
6
|
+
import { D as N } from "./toolbar-DoKcoE2q.js";
|
|
7
|
+
import { I as wt } from "./icon-button-group-BKtkVZ1W.js";
|
|
8
8
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
9
|
-
import { b as
|
|
10
|
-
import { R as
|
|
11
|
-
import { V as
|
|
12
|
-
import { B as
|
|
9
|
+
import { b as It, a as kt } from "./accessible-target-D3j6F-AG.js";
|
|
10
|
+
import { R as Nt } from "./row-actions-Dpf9CrCP.js";
|
|
11
|
+
import { V as Ee } from "./visually-hidden-BHxEUGyT.js";
|
|
12
|
+
import { B as Lt } from "./badge-BUk4RjTS.js";
|
|
13
13
|
import { B as Ot } from "./button-DohK_Ak_.js";
|
|
14
|
-
import { I as
|
|
15
|
-
import { I as
|
|
14
|
+
import { I as At } from "./icon-button-S8_weU3g.js";
|
|
15
|
+
import { I as _t } from "./info-tip-C-MPkShR.js";
|
|
16
16
|
import { M as oe } from "./money-OE6_oDPH.js";
|
|
17
17
|
import { P as F } from "./popover-CN5IsOeS.js";
|
|
18
|
-
import { a as
|
|
19
|
-
import { decimalToNumber as
|
|
20
|
-
import { f as
|
|
21
|
-
import { I as
|
|
22
|
-
import { A as
|
|
23
|
-
import { A as
|
|
24
|
-
import { i as
|
|
25
|
-
import { F as
|
|
26
|
-
import {
|
|
18
|
+
import { a as Dt } from "./format-number-DdzqwMs1.js";
|
|
19
|
+
import { decimalToNumber as Ct } from "../decimal/index.js";
|
|
20
|
+
import { f as Rt } from "./intl-locale-FWh-Y5_3.js";
|
|
21
|
+
import { I as Pt } from "./info-CGn22peZ.js";
|
|
22
|
+
import { A as Et } from "./arrow-down-left-DECv-dJt.js";
|
|
23
|
+
import { A as Bt } from "./arrow-up-right-C2v_MKsK.js";
|
|
24
|
+
import { i as xt } from "./is-development-CLUAnsU7.js";
|
|
25
|
+
import { F as Be } from "./file-text-5yv6r2ls.js";
|
|
26
|
+
import { F as xe } from "./file-code-Cf-_gSzd.js";
|
|
27
|
+
import { P as Ft } from "./package-plus-CTecQK3x.js";
|
|
27
28
|
import { P as Wt } from "./pencil-B1sKKyuT.js";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
* @license lucide-react v1.22.0 - ISC
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the ISC license.
|
|
35
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
const Vt = [
|
|
38
|
-
[
|
|
39
|
-
"path",
|
|
40
|
-
{
|
|
41
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
42
|
-
key: "1oefj6"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
["path", { d: "M14 2v5a1 1 0 0 0 1 1h5", key: "wfsgrz" }],
|
|
46
|
-
["path", { d: "M10 12.5 8 15l2 2.5", key: "1tg20x" }],
|
|
47
|
-
["path", { d: "m14 12.5 2 2.5-2 2.5", key: "yinavb" }]
|
|
48
|
-
], Fe = le("file-code", Vt);
|
|
29
|
+
import { c as Mt } from "./createLucideIcon-DhHxpK9K.js";
|
|
30
|
+
import { C as Ut } from "./circle-off-DuT9pVy2.js";
|
|
31
|
+
import { U as Kt } from "./undo-2-EBxWjj1W.js";
|
|
32
|
+
import { T as Vt } from "./trash-2-uumy3fy1.js";
|
|
49
33
|
/**
|
|
50
34
|
* @license lucide-react v1.22.0 - ISC
|
|
51
35
|
*
|
|
@@ -64,34 +48,14 @@ const zt = [
|
|
|
64
48
|
["path", { d: "m2 16 6 6", key: "1pfhp9" }],
|
|
65
49
|
["circle", { cx: "16", cy: "9", r: "2.9", key: "1n0dlu" }],
|
|
66
50
|
["circle", { cx: "6", cy: "5", r: "3", key: "151irh" }]
|
|
67
|
-
], jt =
|
|
68
|
-
/**
|
|
69
|
-
* @license lucide-react v1.22.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/
|
|
74
|
-
const qt = [
|
|
75
|
-
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
76
|
-
["path", { d: "M16 17h6", key: "1ook5g" }],
|
|
77
|
-
["path", { d: "M19 14v6", key: "1ckrd5" }],
|
|
78
|
-
[
|
|
79
|
-
"path",
|
|
80
|
-
{
|
|
81
|
-
d: "M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955",
|
|
82
|
-
key: "28k6lz"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
["path", { d: "M3.29 7 12 12l8.71-5", key: "19ckod" }],
|
|
86
|
-
["path", { d: "m7.5 4.27 8.997 5.148", key: "9yrvtv" }]
|
|
87
|
-
], $t = le("package-plus", qt), Ht = ["number", "date", "counterparty", "amount"], Yt = ["incoming", "outgoing"], Zt = [
|
|
51
|
+
], jt = Mt("hand-coins", zt), qt = ["number", "date", "counterparty", "amount"], Ht = ["incoming", "outgoing"], $t = [
|
|
88
52
|
"paid",
|
|
89
53
|
"partiallyPaid",
|
|
90
54
|
"unpaid",
|
|
91
55
|
"overdue",
|
|
92
56
|
"writtenOff",
|
|
93
57
|
"noPaymentDue"
|
|
94
|
-
],
|
|
58
|
+
], Yt = [
|
|
95
59
|
"notSent",
|
|
96
60
|
"sending",
|
|
97
61
|
"pending",
|
|
@@ -100,7 +64,7 @@ const qt = [
|
|
|
100
64
|
"notDelivered",
|
|
101
65
|
"rejected",
|
|
102
66
|
"received"
|
|
103
|
-
],
|
|
67
|
+
], Zt = ["notLoaded", "toReview", "loaded"], Gt = ["full", "partial", "credit", "proforma", "other"], Xt = [25, 50, 100], Qt = [
|
|
104
68
|
"date",
|
|
105
69
|
"direction",
|
|
106
70
|
"counterparty",
|
|
@@ -108,7 +72,7 @@ const qt = [
|
|
|
108
72
|
"paymentStatus",
|
|
109
73
|
"sdiStatus",
|
|
110
74
|
"warehouseStatus"
|
|
111
|
-
],
|
|
75
|
+
], Jt = /* @__PURE__ */ new Set([
|
|
112
76
|
"date",
|
|
113
77
|
"direction",
|
|
114
78
|
"amount",
|
|
@@ -133,7 +97,7 @@ const qt = [
|
|
|
133
97
|
"sdiEntryDate",
|
|
134
98
|
"relationType",
|
|
135
99
|
"insurance"
|
|
136
|
-
]),
|
|
100
|
+
]), Fe = { masked: !0 };
|
|
137
101
|
function C(e, t) {
|
|
138
102
|
throw new Error(`${e}: ${t}`);
|
|
139
103
|
}
|
|
@@ -157,15 +121,15 @@ const W = (e) => ({
|
|
|
157
121
|
},
|
|
158
122
|
required: ["type", "dateFrom", "dateTo"],
|
|
159
123
|
additionalProperties: !1
|
|
160
|
-
},
|
|
124
|
+
}, O = {
|
|
161
125
|
type: "boolean",
|
|
162
126
|
description: "true = yes, false = no; leave the key out for either."
|
|
163
|
-
},
|
|
127
|
+
}, We = {
|
|
164
128
|
type: "object",
|
|
165
129
|
additionalProperties: !1,
|
|
166
130
|
properties: {
|
|
167
131
|
date: ee,
|
|
168
|
-
direction: W(
|
|
132
|
+
direction: W(Ht),
|
|
169
133
|
amount: {
|
|
170
134
|
type: "object",
|
|
171
135
|
description: "Amount in major units (12.50), as on the platform form.",
|
|
@@ -179,38 +143,38 @@ const W = (e) => ({
|
|
|
179
143
|
required: ["type"],
|
|
180
144
|
additionalProperties: !1
|
|
181
145
|
},
|
|
182
|
-
paymentStatus: W(
|
|
183
|
-
sdiStatus: W(
|
|
184
|
-
warehouseStatus: W(
|
|
146
|
+
paymentStatus: W($t),
|
|
147
|
+
sdiStatus: W(Yt),
|
|
148
|
+
warehouseStatus: W(Zt),
|
|
185
149
|
datePreset: { enum: ["today", "thisMonth", "thisYear"] },
|
|
186
|
-
type: W(
|
|
150
|
+
type: W(Gt),
|
|
187
151
|
number: { type: "string" },
|
|
188
152
|
prefix: { type: "string" },
|
|
189
|
-
withInsuranceNet:
|
|
190
|
-
withVat:
|
|
191
|
-
withTaxAtSource:
|
|
192
|
-
withWelfareFundContribution:
|
|
193
|
-
withUnpaidAmount:
|
|
194
|
-
writtenOff:
|
|
195
|
-
taxOfficeNotification:
|
|
196
|
-
receivedFromSdi:
|
|
197
|
-
sentToSdi:
|
|
198
|
-
selfBill:
|
|
153
|
+
withInsuranceNet: O,
|
|
154
|
+
withVat: O,
|
|
155
|
+
withTaxAtSource: O,
|
|
156
|
+
withWelfareFundContribution: O,
|
|
157
|
+
withUnpaidAmount: O,
|
|
158
|
+
writtenOff: O,
|
|
159
|
+
taxOfficeNotification: O,
|
|
160
|
+
receivedFromSdi: O,
|
|
161
|
+
sentToSdi: O,
|
|
162
|
+
selfBill: O,
|
|
199
163
|
liabilityDate: ee,
|
|
200
164
|
sdiEntryDate: ee,
|
|
201
165
|
relationType: { enum: ["patient", "company", "operator"] },
|
|
202
166
|
insurance: { type: "string" }
|
|
203
167
|
}
|
|
204
|
-
},
|
|
205
|
-
Object.keys(
|
|
168
|
+
}, ei = new Set(
|
|
169
|
+
Object.keys(We.properties)
|
|
206
170
|
);
|
|
207
|
-
function
|
|
171
|
+
function ti(e) {
|
|
208
172
|
const t = { ...e.getFilter() };
|
|
209
173
|
if (!e.getFeatures().privacyMode)
|
|
210
174
|
return t;
|
|
211
175
|
const a = {};
|
|
212
176
|
for (const [s, c] of Object.entries(t))
|
|
213
|
-
a[s] =
|
|
177
|
+
a[s] = Jt.has(s) ? c : Fe;
|
|
214
178
|
return a;
|
|
215
179
|
}
|
|
216
180
|
const V = {
|
|
@@ -218,7 +182,7 @@ const V = {
|
|
|
218
182
|
properties: { id: { type: "string", description: "A bill id (rows)." } },
|
|
219
183
|
required: ["id"],
|
|
220
184
|
additionalProperties: !1
|
|
221
|
-
},
|
|
185
|
+
}, ii = {
|
|
222
186
|
id: "bill-table",
|
|
223
187
|
capabilities: [
|
|
224
188
|
"select_multiple",
|
|
@@ -264,7 +228,7 @@ const V = {
|
|
|
264
228
|
type: "object",
|
|
265
229
|
descriptionKey: "ui.agent.billTable.state.filter",
|
|
266
230
|
description: "The active filters. Under privacy mode, filters that can point at a person read { masked: true }.",
|
|
267
|
-
read: (e) =>
|
|
231
|
+
read: (e) => ti(e)
|
|
268
232
|
},
|
|
269
233
|
quickFilter: {
|
|
270
234
|
type: "'' | { masked: true }",
|
|
@@ -272,7 +236,7 @@ const V = {
|
|
|
272
236
|
description: "Empty when no quick search is set; otherwise { masked: true }, since the text may be a name. Set it with set_quick_filter.",
|
|
273
237
|
// Masked in both modes: a person's name typed here must not reach
|
|
274
238
|
// agent state, privacy mode or not.
|
|
275
|
-
read: (e) => e.getQuickFilter() === "" ? "" :
|
|
239
|
+
read: (e) => e.getQuickFilter() === "" ? "" : Fe
|
|
276
240
|
},
|
|
277
241
|
currentPage: {
|
|
278
242
|
type: "number",
|
|
@@ -356,7 +320,7 @@ const V = {
|
|
|
356
320
|
argsSchema: {
|
|
357
321
|
type: "object",
|
|
358
322
|
properties: {
|
|
359
|
-
colId: { enum: [...
|
|
323
|
+
colId: { enum: [...qt] },
|
|
360
324
|
sort: { enum: ["asc", "desc"] }
|
|
361
325
|
},
|
|
362
326
|
required: ["colId", "sort"],
|
|
@@ -382,7 +346,7 @@ const V = {
|
|
|
382
346
|
argsType: "{ model: BillTableFilterModel }",
|
|
383
347
|
argsSchema: {
|
|
384
348
|
type: "object",
|
|
385
|
-
properties: { model:
|
|
349
|
+
properties: { model: We },
|
|
386
350
|
required: ["model"],
|
|
387
351
|
additionalProperties: !1
|
|
388
352
|
},
|
|
@@ -406,7 +370,7 @@ const V = {
|
|
|
406
370
|
description: "Replace the filters. The host fetches the first page again.",
|
|
407
371
|
invoke: (e, t) => {
|
|
408
372
|
for (const a of Object.keys(t.model))
|
|
409
|
-
|
|
373
|
+
ei.has(a) || C("UNKNOWN_FILTER", `"${a}" is not a bill filter.`);
|
|
410
374
|
e.setFilter(t.model);
|
|
411
375
|
}
|
|
412
376
|
},
|
|
@@ -455,7 +419,7 @@ const V = {
|
|
|
455
419
|
argsType: "{ size: 25 | 50 | 100 }",
|
|
456
420
|
argsSchema: {
|
|
457
421
|
type: "object",
|
|
458
|
-
properties: { size: { enum: [...
|
|
422
|
+
properties: { size: { enum: [...Xt] } },
|
|
459
423
|
required: ["size"],
|
|
460
424
|
additionalProperties: !1
|
|
461
425
|
},
|
|
@@ -482,7 +446,7 @@ const V = {
|
|
|
482
446
|
argsSchema: {
|
|
483
447
|
type: "object",
|
|
484
448
|
properties: {
|
|
485
|
-
id: { enum: [...
|
|
449
|
+
id: { enum: [...Qt] },
|
|
486
450
|
visible: { type: "boolean" }
|
|
487
451
|
},
|
|
488
452
|
required: ["id", "visible"],
|
|
@@ -600,7 +564,7 @@ const V = {
|
|
|
600
564
|
description: "Opaque bill id on each row (DataGrid). Act through the handle, not the DOM."
|
|
601
565
|
}
|
|
602
566
|
}
|
|
603
|
-
},
|
|
567
|
+
}, ai = w("ds:w-full ds:min-w-0", {
|
|
604
568
|
variants: {
|
|
605
569
|
height: {
|
|
606
570
|
auto: "ds:block",
|
|
@@ -621,22 +585,22 @@ const V = {
|
|
|
621
585
|
}
|
|
622
586
|
), j = w(
|
|
623
587
|
"type-meta ds:text-[color:var(--muted-foreground)]"
|
|
624
|
-
),
|
|
588
|
+
), le = w(
|
|
625
589
|
"ds:inline-flex ds:min-w-0 ds:max-w-full ds:items-center ds:gap-[var(--spacing-xs)]"
|
|
626
|
-
),
|
|
590
|
+
), ni = w(
|
|
627
591
|
"ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
628
|
-
),
|
|
592
|
+
), oi = w(
|
|
629
593
|
"ds:block ds:min-w-0 ds:max-w-full ds:truncate"
|
|
630
|
-
),
|
|
594
|
+
), li = w([
|
|
631
595
|
"ds:max-w-full ds:[--primary:var(--primary-readable)] ds:[--primary-hover:var(--primary-readable-hover)]",
|
|
632
596
|
"ds:[tr[data-selected]_&]:[--primary:var(--primary-readable-hover)]",
|
|
633
597
|
"ds:data-[component=button]:sm:before:block",
|
|
634
|
-
|
|
635
|
-
]),
|
|
598
|
+
It
|
|
599
|
+
]), ri = w("ds:font-medium"), si = w(
|
|
636
600
|
"ds:mt-[var(--spacing-sm)] ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
637
|
-
),
|
|
601
|
+
), di = w(
|
|
638
602
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]"
|
|
639
|
-
),
|
|
603
|
+
), ci = w("ds:m-0", {
|
|
640
604
|
variants: {
|
|
641
605
|
tone: {
|
|
642
606
|
muted: "ds:text-[color:var(--muted-foreground)]",
|
|
@@ -644,24 +608,24 @@ const V = {
|
|
|
644
608
|
}
|
|
645
609
|
},
|
|
646
610
|
defaultVariants: { tone: "muted" }
|
|
647
|
-
}),
|
|
611
|
+
}), ui = w(
|
|
648
612
|
"ds:m-0 ds:grid ds:grid-cols-[1fr_auto] ds:items-baseline ds:gap-x-[var(--spacing-md)] ds:gap-y-[var(--spacing-2xs)]"
|
|
649
|
-
),
|
|
613
|
+
), pi = w(
|
|
650
614
|
"ds:m-0 ds:text-[color:var(--muted-foreground)]"
|
|
651
|
-
),
|
|
615
|
+
), bi = w("ds:m-0 ds:text-end"), H = ["incoming", "outgoing"], xa = [
|
|
652
616
|
"full",
|
|
653
617
|
"partial",
|
|
654
618
|
"credit",
|
|
655
619
|
"proforma",
|
|
656
620
|
"other"
|
|
657
|
-
],
|
|
621
|
+
], mi = [
|
|
658
622
|
"paid",
|
|
659
623
|
"partiallyPaid",
|
|
660
624
|
"unpaid",
|
|
661
625
|
"overdue",
|
|
662
626
|
"writtenOff",
|
|
663
627
|
"noPaymentDue"
|
|
664
|
-
],
|
|
628
|
+
], fi = [
|
|
665
629
|
"notApplicable",
|
|
666
630
|
"notSent",
|
|
667
631
|
"sending",
|
|
@@ -671,7 +635,7 @@ const V = {
|
|
|
671
635
|
"notDelivered",
|
|
672
636
|
"rejected",
|
|
673
637
|
"received"
|
|
674
|
-
],
|
|
638
|
+
], yi = [
|
|
675
639
|
"notLoaded",
|
|
676
640
|
"toReview",
|
|
677
641
|
"loaded"
|
|
@@ -679,7 +643,7 @@ const V = {
|
|
|
679
643
|
"patient",
|
|
680
644
|
"person",
|
|
681
645
|
"company"
|
|
682
|
-
],
|
|
646
|
+
], Me = [
|
|
683
647
|
"open",
|
|
684
648
|
"downloadPdf",
|
|
685
649
|
"downloadXml",
|
|
@@ -696,7 +660,7 @@ const V = {
|
|
|
696
660
|
"paymentAutomation",
|
|
697
661
|
"noPermission",
|
|
698
662
|
"inProgress"
|
|
699
|
-
],
|
|
663
|
+
], hi = [
|
|
700
664
|
"number",
|
|
701
665
|
"date",
|
|
702
666
|
"direction",
|
|
@@ -706,7 +670,7 @@ const V = {
|
|
|
706
670
|
"sdiStatus",
|
|
707
671
|
"warehouseStatus",
|
|
708
672
|
"actions"
|
|
709
|
-
],
|
|
673
|
+
], Ue = [
|
|
710
674
|
"number",
|
|
711
675
|
"date",
|
|
712
676
|
"counterparty",
|
|
@@ -726,47 +690,47 @@ const V = {
|
|
|
726
690
|
"bills-to-pay",
|
|
727
691
|
"bills-to-collect",
|
|
728
692
|
"bills-to-load"
|
|
729
|
-
],
|
|
693
|
+
], gi = "accounting-bills", Ti = [
|
|
730
694
|
{ colId: "date", sort: "desc" }
|
|
731
|
-
],
|
|
732
|
-
function
|
|
695
|
+
], Le = [25, 50, 100], $ = 2, _ = { source: "user" }, te = { source: "api" };
|
|
696
|
+
function Si(e) {
|
|
733
697
|
return e.counterparty !== null && e.counterparty.kind !== "company";
|
|
734
698
|
}
|
|
735
|
-
function
|
|
736
|
-
return Number.isSafeInteger(e) ?
|
|
699
|
+
function vi(e) {
|
|
700
|
+
return Number.isSafeInteger(e) ? Ct({ units: e, scale: $ }) : null;
|
|
737
701
|
}
|
|
738
|
-
const Oe = /* @__PURE__ */ new Map(),
|
|
739
|
-
function
|
|
740
|
-
const a =
|
|
702
|
+
const Oe = /* @__PURE__ */ new Map(), wi = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
703
|
+
function Ke(e, t) {
|
|
704
|
+
const a = wi.exec(e);
|
|
741
705
|
if (!a) return e;
|
|
742
706
|
const [, s, c, b] = a, i = new Date(
|
|
743
707
|
Date.UTC(Number(s), Number(c) - 1, Number(b))
|
|
744
708
|
);
|
|
745
709
|
if (Number.isNaN(i.getTime())) return e;
|
|
746
|
-
const n =
|
|
710
|
+
const n = Rt(t);
|
|
747
711
|
let o = Oe.get(n);
|
|
748
712
|
return o || (o = new Intl.DateTimeFormat(n, {
|
|
749
713
|
dateStyle: "medium",
|
|
750
714
|
timeZone: "UTC"
|
|
751
715
|
}), Oe.set(n, o)), o.format(i);
|
|
752
716
|
}
|
|
753
|
-
const
|
|
754
|
-
function
|
|
755
|
-
return
|
|
717
|
+
const Ii = new Set(Ue);
|
|
718
|
+
function ki(e) {
|
|
719
|
+
return Ii.has(e);
|
|
756
720
|
}
|
|
757
721
|
function ae(e) {
|
|
758
722
|
const t = [];
|
|
759
723
|
for (const a of e)
|
|
760
|
-
|
|
724
|
+
ki(a.colId) && t.push({ colId: a.colId, sort: a.sort });
|
|
761
725
|
return t;
|
|
762
726
|
}
|
|
763
|
-
function
|
|
727
|
+
function Ve(e) {
|
|
764
728
|
return e.map((t) => `${t.colId}:${t.sort}`).join("|");
|
|
765
729
|
}
|
|
766
|
-
function
|
|
767
|
-
return t &&
|
|
730
|
+
function Ni(e, t) {
|
|
731
|
+
return t && Ve(e) === t.key ? t.raw : e;
|
|
768
732
|
}
|
|
769
|
-
const
|
|
733
|
+
const Li = {
|
|
770
734
|
open: "onOpen",
|
|
771
735
|
downloadPdf: "onDownload",
|
|
772
736
|
downloadXml: "onDownload",
|
|
@@ -777,29 +741,29 @@ const Oi = {
|
|
|
777
741
|
undoWriteOff: "onWriteOff",
|
|
778
742
|
delete: "onDelete"
|
|
779
743
|
};
|
|
780
|
-
function
|
|
781
|
-
return typeof e[
|
|
744
|
+
function re(e, t) {
|
|
745
|
+
return typeof e[Li[t]] == "function";
|
|
782
746
|
}
|
|
783
|
-
function
|
|
747
|
+
function ze(e) {
|
|
784
748
|
return typeof e.disabled == "string" ? e.disabled : "host";
|
|
785
749
|
}
|
|
786
|
-
function
|
|
750
|
+
function Oi(e, t, a, s) {
|
|
787
751
|
const c = {};
|
|
788
|
-
for (const b of
|
|
752
|
+
for (const b of Me) {
|
|
789
753
|
const i = e.actions[b];
|
|
790
|
-
i === void 0 || !
|
|
754
|
+
i === void 0 || !re(t, b) || (c[b] = a && i !== "enabled" && typeof i.disabled != "string" ? { disabled: { text: s } } : i);
|
|
791
755
|
}
|
|
792
756
|
return c;
|
|
793
757
|
}
|
|
794
|
-
function
|
|
758
|
+
function Ai(e, t) {
|
|
795
759
|
const a = {};
|
|
796
|
-
for (const s of
|
|
760
|
+
for (const s of Me) {
|
|
797
761
|
const c = e.actions[s];
|
|
798
|
-
c === void 0 || !
|
|
762
|
+
c === void 0 || !re(t, s) || (a[s] = c === "enabled" ? "enabled" : { disabled: ze(c) });
|
|
799
763
|
}
|
|
800
764
|
return a;
|
|
801
765
|
}
|
|
802
|
-
function
|
|
766
|
+
function _i(e, t) {
|
|
803
767
|
var s, c;
|
|
804
768
|
const a = {
|
|
805
769
|
id: e.id,
|
|
@@ -812,11 +776,11 @@ function Ci(e, t) {
|
|
|
812
776
|
paymentStatus: e.paymentStatus,
|
|
813
777
|
sdiStatus: e.sdiStatus,
|
|
814
778
|
warehouseStatus: e.warehouseStatus ?? null,
|
|
815
|
-
actions:
|
|
779
|
+
actions: Ai(e, t)
|
|
816
780
|
};
|
|
817
781
|
return ((c = e.counterparty) == null ? void 0 : c.kind) === "company" && (a.counterpartyName = e.counterparty.name), a;
|
|
818
782
|
}
|
|
819
|
-
const
|
|
783
|
+
const je = {
|
|
820
784
|
paid: { key: "billTable.paymentStatus.paid", en: "Paid", variant: "success" },
|
|
821
785
|
partiallyPaid: {
|
|
822
786
|
key: "billTable.paymentStatus.partiallyPaid",
|
|
@@ -843,7 +807,7 @@ const qe = {
|
|
|
843
807
|
en: "No payment due",
|
|
844
808
|
variant: "neutral"
|
|
845
809
|
}
|
|
846
|
-
},
|
|
810
|
+
}, qe = {
|
|
847
811
|
notSent: {
|
|
848
812
|
key: "billTable.sdiStatus.notSent",
|
|
849
813
|
en: "Not sent",
|
|
@@ -903,12 +867,12 @@ const qe = {
|
|
|
903
867
|
}, Y = {
|
|
904
868
|
incoming: { key: "billTable.direction.incoming", en: "Incoming" },
|
|
905
869
|
outgoing: { key: "billTable.direction.outgoing", en: "Outgoing" }
|
|
906
|
-
},
|
|
870
|
+
}, Di = {
|
|
907
871
|
partial: { key: "billTable.type.partial", en: "Deposit" },
|
|
908
872
|
credit: { key: "billTable.type.credit", en: "Credit note" },
|
|
909
873
|
proforma: { key: "billTable.type.proforma", en: "Pro forma" },
|
|
910
874
|
other: { key: "billTable.type.other", en: "Other document" }
|
|
911
|
-
},
|
|
875
|
+
}, Ci = {
|
|
912
876
|
downloadPdf: { key: "billTable.action.downloadPdf", en: "Download PDF" },
|
|
913
877
|
downloadXml: { key: "billTable.action.downloadXml", en: "Download XML" },
|
|
914
878
|
loadIntoWarehouse: {
|
|
@@ -926,7 +890,7 @@ const qe = {
|
|
|
926
890
|
},
|
|
927
891
|
undoWriteOff: { key: "billTable.action.undoWriteOff", en: "Undo write-off" },
|
|
928
892
|
delete: { key: "billTable.action.delete", en: "Delete" }
|
|
929
|
-
},
|
|
893
|
+
}, $e = {
|
|
930
894
|
alreadyLoaded: {
|
|
931
895
|
key: "billTable.disabledReason.alreadyLoaded",
|
|
932
896
|
en: "This bill is already in the warehouse."
|
|
@@ -951,7 +915,7 @@ const qe = {
|
|
|
951
915
|
key: "billTable.disabledReason.inProgress",
|
|
952
916
|
en: "Already in progress."
|
|
953
917
|
}
|
|
954
|
-
},
|
|
918
|
+
}, Ri = {
|
|
955
919
|
csv: { key: "billTable.export.csv", en: "CSV" },
|
|
956
920
|
csvDetailed: {
|
|
957
921
|
key: "billTable.export.csvDetailed",
|
|
@@ -968,22 +932,22 @@ const qe = {
|
|
|
968
932
|
en: "ZIP of electronic invoices received from SDI (XML)"
|
|
969
933
|
}
|
|
970
934
|
};
|
|
971
|
-
function
|
|
935
|
+
function Pi({
|
|
972
936
|
row: e,
|
|
973
937
|
openHintId: t,
|
|
974
938
|
onOpen: a,
|
|
975
939
|
hideHostText: s
|
|
976
940
|
}) {
|
|
977
|
-
const { t: c } = v("ui"), b =
|
|
941
|
+
const { t: c } = v("ui"), b = Pe(), i = e.actions.open;
|
|
978
942
|
let n = null;
|
|
979
943
|
if (e.type !== "full") {
|
|
980
|
-
const d =
|
|
944
|
+
const d = Di[e.type];
|
|
981
945
|
n = c(d.key, d.en);
|
|
982
946
|
}
|
|
983
947
|
let o = null;
|
|
984
948
|
if (i !== void 0 && i !== "enabled")
|
|
985
949
|
if (typeof i.disabled == "string") {
|
|
986
|
-
const d =
|
|
950
|
+
const d = $e[i.disabled];
|
|
987
951
|
o = c(d.key, d.en);
|
|
988
952
|
} else
|
|
989
953
|
o = s ? c(
|
|
@@ -991,12 +955,12 @@ function Bi({
|
|
|
991
955
|
"Not available (reason hidden in privacy mode)"
|
|
992
956
|
) : i.disabled.text;
|
|
993
957
|
return /* @__PURE__ */ T("span", { className: q(), children: [
|
|
994
|
-
i === void 0 ? /* @__PURE__ */ l("span", { className:
|
|
958
|
+
i === void 0 ? /* @__PURE__ */ l("span", { className: ri(), children: e.number }) : /* @__PURE__ */ l(
|
|
995
959
|
Ot,
|
|
996
960
|
{
|
|
997
961
|
intent: "link",
|
|
998
962
|
size: "sm",
|
|
999
|
-
className:
|
|
963
|
+
className: li(),
|
|
1000
964
|
"aria-describedby": o ? `${t} ${b}` : t,
|
|
1001
965
|
"aria-disabled": o ? !0 : void 0,
|
|
1002
966
|
onClick: (d) => {
|
|
@@ -1013,30 +977,30 @@ function Bi({
|
|
|
1013
977
|
n ? /* @__PURE__ */ l("span", { className: j(), children: n }) : null
|
|
1014
978
|
] });
|
|
1015
979
|
}
|
|
1016
|
-
function
|
|
980
|
+
function Ei({ day: e }) {
|
|
1017
981
|
const { i18n: t } = v("ui");
|
|
1018
|
-
return /* @__PURE__ */ l("span", { children:
|
|
982
|
+
return /* @__PURE__ */ l("span", { children: Ke(e, t.language) });
|
|
1019
983
|
}
|
|
1020
|
-
function
|
|
1021
|
-
return /* @__PURE__ */ l(e === "incoming" ?
|
|
984
|
+
function Ye({ direction: e }) {
|
|
985
|
+
return /* @__PURE__ */ l(e === "incoming" ? Et : Bt, { "aria-hidden": "true", className: ni() });
|
|
1022
986
|
}
|
|
1023
|
-
function
|
|
987
|
+
function Ze({ direction: e }) {
|
|
1024
988
|
const { t } = v("ui"), a = Y[e];
|
|
1025
|
-
return /* @__PURE__ */ T("span", { className:
|
|
1026
|
-
/* @__PURE__ */ l(
|
|
989
|
+
return /* @__PURE__ */ T("span", { className: le(), children: [
|
|
990
|
+
/* @__PURE__ */ l(Ye, { direction: e }),
|
|
1027
991
|
/* @__PURE__ */ l("span", { children: t(a.key, a.en) })
|
|
1028
992
|
] });
|
|
1029
993
|
}
|
|
1030
|
-
function
|
|
994
|
+
function Bi({
|
|
1031
995
|
counterparty: e
|
|
1032
996
|
}) {
|
|
1033
997
|
const { t } = v("ui");
|
|
1034
998
|
return e === null ? /* @__PURE__ */ l("span", { className: j(), children: t("billTable.counterparty.none", "No counterparty") }) : /* @__PURE__ */ T("span", { className: q(), children: [
|
|
1035
|
-
/* @__PURE__ */ l("span", { dir: "auto", className:
|
|
999
|
+
/* @__PURE__ */ l("span", { dir: "auto", className: oi(), children: e.name }),
|
|
1036
1000
|
e.deleted ? /* @__PURE__ */ l("span", { className: j(), children: t("billTable.counterparty.deleted", "Deleted") }) : null
|
|
1037
1001
|
] });
|
|
1038
1002
|
}
|
|
1039
|
-
function
|
|
1003
|
+
function xi({
|
|
1040
1004
|
amountMinor: e,
|
|
1041
1005
|
currency: t
|
|
1042
1006
|
}) {
|
|
@@ -1046,51 +1010,51 @@ function Wi({
|
|
|
1046
1010
|
size: "sm",
|
|
1047
1011
|
value: e,
|
|
1048
1012
|
currency: t,
|
|
1049
|
-
scale:
|
|
1013
|
+
scale: $
|
|
1050
1014
|
}
|
|
1051
1015
|
);
|
|
1052
1016
|
}
|
|
1053
|
-
function
|
|
1017
|
+
function se({
|
|
1054
1018
|
label: e,
|
|
1055
1019
|
variant: t
|
|
1056
1020
|
}) {
|
|
1057
|
-
return /* @__PURE__ */ l(
|
|
1021
|
+
return /* @__PURE__ */ l(Lt, { size: "sm", variant: t, withDot: !0, children: e });
|
|
1058
1022
|
}
|
|
1059
|
-
const
|
|
1023
|
+
const Fi = /* @__PURE__ */ new Set([
|
|
1060
1024
|
"unpaid",
|
|
1061
1025
|
"partiallyPaid",
|
|
1062
1026
|
"overdue"
|
|
1063
1027
|
]);
|
|
1064
|
-
function
|
|
1028
|
+
function Wi({
|
|
1065
1029
|
status: e,
|
|
1066
1030
|
nextDueDate: t
|
|
1067
1031
|
}) {
|
|
1068
|
-
const { t: a, i18n: s } = v("ui"), c =
|
|
1032
|
+
const { t: a, i18n: s } = v("ui"), c = je[e];
|
|
1069
1033
|
return /* @__PURE__ */ T("span", { className: q(), children: [
|
|
1070
|
-
/* @__PURE__ */ l(
|
|
1071
|
-
t &&
|
|
1072
|
-
date:
|
|
1034
|
+
/* @__PURE__ */ l(se, { label: a(c.key, c.en), variant: c.variant }),
|
|
1035
|
+
t && Fi.has(e) ? /* @__PURE__ */ l("span", { className: j(), children: a("billTable.paymentStatus.due", "Due {{date}}", {
|
|
1036
|
+
date: Ke(t, s.language)
|
|
1073
1037
|
}) }) : null
|
|
1074
1038
|
] });
|
|
1075
1039
|
}
|
|
1076
|
-
function
|
|
1040
|
+
function Mi({ status: e }) {
|
|
1077
1041
|
const { t } = v("ui");
|
|
1078
1042
|
if (e === "notApplicable") return null;
|
|
1079
|
-
const a =
|
|
1080
|
-
return /* @__PURE__ */ l(
|
|
1043
|
+
const a = qe[e];
|
|
1044
|
+
return /* @__PURE__ */ l(se, { label: t(a.key, a.en), variant: a.variant });
|
|
1081
1045
|
}
|
|
1082
|
-
function
|
|
1046
|
+
function Ui({
|
|
1083
1047
|
status: e
|
|
1084
1048
|
}) {
|
|
1085
1049
|
const { t } = v("ui");
|
|
1086
1050
|
if (e === null) return null;
|
|
1087
1051
|
const a = He[e];
|
|
1088
|
-
return /* @__PURE__ */ l(
|
|
1052
|
+
return /* @__PURE__ */ l(se, { label: t(a.key, a.en), variant: a.variant });
|
|
1089
1053
|
}
|
|
1090
|
-
function
|
|
1054
|
+
function Ki() {
|
|
1091
1055
|
const { t: e } = v("ui");
|
|
1092
1056
|
return /* @__PURE__ */ l(
|
|
1093
|
-
|
|
1057
|
+
_t,
|
|
1094
1058
|
{
|
|
1095
1059
|
size: "sm",
|
|
1096
1060
|
content: e(
|
|
@@ -1106,34 +1070,34 @@ function B({
|
|
|
1106
1070
|
currency: a
|
|
1107
1071
|
}) {
|
|
1108
1072
|
return /* @__PURE__ */ T(ne, { children: [
|
|
1109
|
-
/* @__PURE__ */ l("dt", { className:
|
|
1110
|
-
/* @__PURE__ */ l("dd", { className:
|
|
1073
|
+
/* @__PURE__ */ l("dt", { className: pi(), children: e }),
|
|
1074
|
+
/* @__PURE__ */ l("dd", { className: bi(), children: /* @__PURE__ */ l(
|
|
1111
1075
|
oe,
|
|
1112
1076
|
{
|
|
1113
1077
|
size: "sm",
|
|
1114
1078
|
value: t,
|
|
1115
1079
|
currency: a,
|
|
1116
|
-
scale:
|
|
1080
|
+
scale: $
|
|
1117
1081
|
}
|
|
1118
1082
|
) })
|
|
1119
1083
|
] });
|
|
1120
1084
|
}
|
|
1121
|
-
function
|
|
1085
|
+
function Vi({
|
|
1122
1086
|
totals: e,
|
|
1123
1087
|
currency: t
|
|
1124
1088
|
}) {
|
|
1125
1089
|
const { t: a, i18n: s } = v("ui");
|
|
1126
|
-
return /* @__PURE__ */ l("div", { className:
|
|
1090
|
+
return /* @__PURE__ */ l("div", { className: si(), children: H.map((c) => {
|
|
1127
1091
|
const b = e[c];
|
|
1128
|
-
return b ? /* @__PURE__ */ T("div", { className:
|
|
1129
|
-
/* @__PURE__ */ T("p", { className:
|
|
1130
|
-
/* @__PURE__ */ l(
|
|
1092
|
+
return b ? /* @__PURE__ */ T("div", { className: di(), children: [
|
|
1093
|
+
/* @__PURE__ */ T("p", { className: ci({ tone: "strong" }), children: [
|
|
1094
|
+
/* @__PURE__ */ l(Ze, { direction: c }),
|
|
1131
1095
|
/* @__PURE__ */ l("span", { children: a("billTable.totals.count", "{{formatted}} bills", {
|
|
1132
1096
|
count: b.count,
|
|
1133
|
-
formatted:
|
|
1097
|
+
formatted: Dt(b.count, s.language)
|
|
1134
1098
|
}) })
|
|
1135
1099
|
] }),
|
|
1136
|
-
/* @__PURE__ */ T("dl", { className:
|
|
1100
|
+
/* @__PURE__ */ T("dl", { className: ui(), children: [
|
|
1137
1101
|
/* @__PURE__ */ l(
|
|
1138
1102
|
B,
|
|
1139
1103
|
{
|
|
@@ -1186,22 +1150,22 @@ function ji({
|
|
|
1186
1150
|
] }, c) : null;
|
|
1187
1151
|
}) });
|
|
1188
1152
|
}
|
|
1189
|
-
function
|
|
1153
|
+
function zi({
|
|
1190
1154
|
totals: e,
|
|
1191
1155
|
currency: t
|
|
1192
1156
|
}) {
|
|
1193
1157
|
const { t: a } = v("ui"), s = a("billTable.totals.breakdown", "Totals breakdown");
|
|
1194
|
-
return /* @__PURE__ */ T("span", { className:
|
|
1158
|
+
return /* @__PURE__ */ T("span", { className: le(), children: [
|
|
1195
1159
|
/* @__PURE__ */ l("span", { children: a("dataTable.totalRow", "Total") }),
|
|
1196
1160
|
/* @__PURE__ */ T(F, { children: [
|
|
1197
1161
|
/* @__PURE__ */ l(F.Trigger, { asChild: !0, children: /* @__PURE__ */ l(
|
|
1198
|
-
|
|
1162
|
+
At,
|
|
1199
1163
|
{
|
|
1200
1164
|
intent: "ghost",
|
|
1201
1165
|
size: "sm",
|
|
1202
|
-
icon: /* @__PURE__ */ l(
|
|
1166
|
+
icon: /* @__PURE__ */ l(Pt, { "aria-hidden": "true" }),
|
|
1203
1167
|
"aria-label": s,
|
|
1204
|
-
className:
|
|
1168
|
+
className: kt
|
|
1205
1169
|
}
|
|
1206
1170
|
) }),
|
|
1207
1171
|
/* @__PURE__ */ T(F.Content, { side: "top", align: "start", size: "md", children: [
|
|
@@ -1210,12 +1174,12 @@ function qi({
|
|
|
1210
1174
|
"billTable.totals.scope",
|
|
1211
1175
|
"Every bill that matches the filters, on all pages."
|
|
1212
1176
|
) }),
|
|
1213
|
-
/* @__PURE__ */ l(
|
|
1177
|
+
/* @__PURE__ */ l(Vi, { totals: e, currency: t })
|
|
1214
1178
|
] })
|
|
1215
1179
|
] })
|
|
1216
1180
|
] });
|
|
1217
1181
|
}
|
|
1218
|
-
function
|
|
1182
|
+
function Ae({
|
|
1219
1183
|
totals: e,
|
|
1220
1184
|
field: t,
|
|
1221
1185
|
currency: a
|
|
@@ -1227,14 +1191,14 @@ function _e({
|
|
|
1227
1191
|
className: q({
|
|
1228
1192
|
align: t === "grossMinor" ? "end" : "start"
|
|
1229
1193
|
}),
|
|
1230
|
-
children:
|
|
1194
|
+
children: H.map((c) => {
|
|
1231
1195
|
const b = e[c];
|
|
1232
1196
|
if (!b) return null;
|
|
1233
1197
|
const i = Y[c], n = s(i.key, i.en);
|
|
1234
|
-
return /* @__PURE__ */ T("span", { className:
|
|
1235
|
-
/* @__PURE__ */ l(
|
|
1198
|
+
return /* @__PURE__ */ T("span", { className: le(), children: [
|
|
1199
|
+
/* @__PURE__ */ l(Ye, { direction: c }),
|
|
1236
1200
|
t === "grossMinor" ? /* @__PURE__ */ l("span", { children: n }) : /* @__PURE__ */ T(ne, { children: [
|
|
1237
|
-
/* @__PURE__ */ l(
|
|
1201
|
+
/* @__PURE__ */ l(Ee, { children: n }),
|
|
1238
1202
|
/* @__PURE__ */ l("span", { children: s("billTable.totals.unpaid", "Unpaid") })
|
|
1239
1203
|
] }),
|
|
1240
1204
|
/* @__PURE__ */ l(
|
|
@@ -1243,7 +1207,7 @@ function _e({
|
|
|
1243
1207
|
size: "sm",
|
|
1244
1208
|
value: b[t],
|
|
1245
1209
|
currency: a,
|
|
1246
|
-
scale:
|
|
1210
|
+
scale: $
|
|
1247
1211
|
}
|
|
1248
1212
|
)
|
|
1249
1213
|
] }, c);
|
|
@@ -1251,15 +1215,15 @@ function _e({
|
|
|
1251
1215
|
}
|
|
1252
1216
|
);
|
|
1253
1217
|
}
|
|
1254
|
-
const
|
|
1218
|
+
const ji = [
|
|
1255
1219
|
"inRange",
|
|
1256
1220
|
"greaterThanOrEqual",
|
|
1257
1221
|
"lessThanOrEqual",
|
|
1258
1222
|
"equals"
|
|
1259
|
-
],
|
|
1223
|
+
], qi = fi.filter(
|
|
1260
1224
|
(e) => e !== "notApplicable"
|
|
1261
1225
|
);
|
|
1262
|
-
function
|
|
1226
|
+
function Hi({
|
|
1263
1227
|
currency: e,
|
|
1264
1228
|
showWarehouseStatus: t,
|
|
1265
1229
|
sortableColumns: a,
|
|
@@ -1275,10 +1239,10 @@ function Yi({
|
|
|
1275
1239
|
const h = Y[r];
|
|
1276
1240
|
return o(h.key, h.en);
|
|
1277
1241
|
}, S = (r) => {
|
|
1278
|
-
const h =
|
|
1242
|
+
const h = je[r];
|
|
1279
1243
|
return o(h.key, h.en);
|
|
1280
1244
|
}, I = (r) => {
|
|
1281
|
-
const h =
|
|
1245
|
+
const h = qe[r];
|
|
1282
1246
|
return o(h.key, h.en);
|
|
1283
1247
|
}, k = (r) => {
|
|
1284
1248
|
const h = He[r];
|
|
@@ -1300,7 +1264,7 @@ function Yi({
|
|
|
1300
1264
|
exportValue: (r) => r.number,
|
|
1301
1265
|
sort: y.has("number") ? "text" : void 0,
|
|
1302
1266
|
cell: (r) => /* @__PURE__ */ l(
|
|
1303
|
-
|
|
1267
|
+
Pi,
|
|
1304
1268
|
{
|
|
1305
1269
|
row: r,
|
|
1306
1270
|
openHintId: b,
|
|
@@ -1308,7 +1272,7 @@ function Yi({
|
|
|
1308
1272
|
hideHostText: c
|
|
1309
1273
|
}
|
|
1310
1274
|
),
|
|
1311
|
-
footer: s ? /* @__PURE__ */ l(
|
|
1275
|
+
footer: s ? /* @__PURE__ */ l(zi, { totals: s, currency: e }) : void 0
|
|
1312
1276
|
},
|
|
1313
1277
|
{
|
|
1314
1278
|
id: "date",
|
|
@@ -1322,7 +1286,7 @@ function Yi({
|
|
|
1322
1286
|
// One request per range: the server filters on Apply.
|
|
1323
1287
|
filter: { kind: "dateRange", commitMode: "apply" },
|
|
1324
1288
|
search: !1,
|
|
1325
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1289
|
+
cell: (r) => /* @__PURE__ */ l(Ei, { day: r.date })
|
|
1326
1290
|
},
|
|
1327
1291
|
{
|
|
1328
1292
|
id: "direction",
|
|
@@ -1333,10 +1297,10 @@ function Yi({
|
|
|
1333
1297
|
exportValue: (r) => P(r.direction),
|
|
1334
1298
|
filter: {
|
|
1335
1299
|
kind: "select",
|
|
1336
|
-
options: f(
|
|
1300
|
+
options: f(H, P)
|
|
1337
1301
|
},
|
|
1338
1302
|
search: !1,
|
|
1339
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1303
|
+
cell: (r) => /* @__PURE__ */ l(Ze, { direction: r.direction })
|
|
1340
1304
|
},
|
|
1341
1305
|
{
|
|
1342
1306
|
id: "counterparty",
|
|
@@ -1351,8 +1315,8 @@ function Yi({
|
|
|
1351
1315
|
// the server query (DataGrid's whole-column privacy rule).
|
|
1352
1316
|
sort: y.has("counterparty") ? "text" : void 0,
|
|
1353
1317
|
// Patients and other people are masked; companies stay visible.
|
|
1354
|
-
privacy: { mode: "mask", appliesTo:
|
|
1355
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1318
|
+
privacy: { mode: "mask", appliesTo: Si },
|
|
1319
|
+
cell: (r) => /* @__PURE__ */ l(Bi, { counterparty: r.counterparty })
|
|
1356
1320
|
},
|
|
1357
1321
|
{
|
|
1358
1322
|
id: "amount",
|
|
@@ -1360,7 +1324,7 @@ function Yi({
|
|
|
1360
1324
|
align: "end",
|
|
1361
1325
|
size: 136,
|
|
1362
1326
|
value: (r) => r.amountMinor,
|
|
1363
|
-
exportValue: (r) =>
|
|
1327
|
+
exportValue: (r) => vi(r.amountMinor),
|
|
1364
1328
|
sort: y.has("amount") ? "number" : void 0,
|
|
1365
1329
|
sortDescFirst: !0,
|
|
1366
1330
|
// A currency NumberInput in the table currency. Bounds are MAJOR
|
|
@@ -1370,13 +1334,13 @@ function Yi({
|
|
|
1370
1334
|
kind: "number",
|
|
1371
1335
|
mode: "currency",
|
|
1372
1336
|
currency: e,
|
|
1373
|
-
operators:
|
|
1337
|
+
operators: ji,
|
|
1374
1338
|
defaultOperator: "inRange"
|
|
1375
1339
|
},
|
|
1376
1340
|
search: !1,
|
|
1377
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1341
|
+
cell: (r) => /* @__PURE__ */ l(xi, { amountMinor: r.amountMinor, currency: e }),
|
|
1378
1342
|
footer: s ? /* @__PURE__ */ l(
|
|
1379
|
-
|
|
1343
|
+
Ae,
|
|
1380
1344
|
{
|
|
1381
1345
|
totals: s,
|
|
1382
1346
|
field: "grossMinor",
|
|
@@ -1393,18 +1357,18 @@ function Yi({
|
|
|
1393
1357
|
exportValue: (r) => S(r.paymentStatus),
|
|
1394
1358
|
filter: {
|
|
1395
1359
|
kind: "select",
|
|
1396
|
-
options: f(
|
|
1360
|
+
options: f(mi, S)
|
|
1397
1361
|
},
|
|
1398
1362
|
search: !1,
|
|
1399
1363
|
cell: (r) => /* @__PURE__ */ l(
|
|
1400
|
-
|
|
1364
|
+
Wi,
|
|
1401
1365
|
{
|
|
1402
1366
|
status: r.paymentStatus,
|
|
1403
1367
|
nextDueDate: r.nextDueDate ?? null
|
|
1404
1368
|
}
|
|
1405
1369
|
),
|
|
1406
1370
|
footer: s ? /* @__PURE__ */ l(
|
|
1407
|
-
|
|
1371
|
+
Ae,
|
|
1408
1372
|
{
|
|
1409
1373
|
totals: s,
|
|
1410
1374
|
field: "unpaidMinor",
|
|
@@ -1415,17 +1379,17 @@ function Yi({
|
|
|
1415
1379
|
{
|
|
1416
1380
|
id: "sdiStatus",
|
|
1417
1381
|
header: o("billTable.column.sdiStatus", "SDI status"),
|
|
1418
|
-
headerTip: /* @__PURE__ */ l(
|
|
1382
|
+
headerTip: /* @__PURE__ */ l(Ki, {}),
|
|
1419
1383
|
size: 168,
|
|
1420
1384
|
responsiveTier: 3,
|
|
1421
1385
|
value: (r) => r.sdiStatus === "notApplicable" ? null : r.sdiStatus,
|
|
1422
1386
|
exportValue: (r) => r.sdiStatus === "notApplicable" ? "" : I(r.sdiStatus),
|
|
1423
1387
|
filter: {
|
|
1424
1388
|
kind: "select",
|
|
1425
|
-
options: f(
|
|
1389
|
+
options: f(qi, I)
|
|
1426
1390
|
},
|
|
1427
1391
|
search: !1,
|
|
1428
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1392
|
+
cell: (r) => /* @__PURE__ */ l(Mi, { status: r.sdiStatus })
|
|
1429
1393
|
}
|
|
1430
1394
|
];
|
|
1431
1395
|
return t && u.push({
|
|
@@ -1437,13 +1401,13 @@ function Yi({
|
|
|
1437
1401
|
exportValue: (r) => r.warehouseStatus ? k(r.warehouseStatus) : "",
|
|
1438
1402
|
filter: {
|
|
1439
1403
|
kind: "select",
|
|
1440
|
-
options: f(
|
|
1404
|
+
options: f(yi, k)
|
|
1441
1405
|
},
|
|
1442
1406
|
search: !1,
|
|
1443
|
-
cell: (r) => /* @__PURE__ */ l(
|
|
1407
|
+
cell: (r) => /* @__PURE__ */ l(Ui, { status: r.warehouseStatus ?? null })
|
|
1444
1408
|
}), u.push({
|
|
1445
1409
|
id: "actions",
|
|
1446
|
-
header: /* @__PURE__ */ l(
|
|
1410
|
+
header: /* @__PURE__ */ l(Ee, { children: m }),
|
|
1447
1411
|
headerLabel: m,
|
|
1448
1412
|
pin: "end",
|
|
1449
1413
|
size: 64,
|
|
@@ -1458,7 +1422,7 @@ function Yi({
|
|
|
1458
1422
|
// group named by reference ("Actions, A12"), never by row data in an
|
|
1459
1423
|
// attribute. A row that offers no menu item renders no button.
|
|
1460
1424
|
cell: (r, h) => /* @__PURE__ */ l(
|
|
1461
|
-
|
|
1425
|
+
Nt,
|
|
1462
1426
|
{
|
|
1463
1427
|
row: r,
|
|
1464
1428
|
actions: n,
|
|
@@ -1483,25 +1447,25 @@ function z(e, t) {
|
|
|
1483
1447
|
throw new Error(`${e}: ${t}`);
|
|
1484
1448
|
}
|
|
1485
1449
|
function ie(e) {
|
|
1486
|
-
|
|
1450
|
+
xt() && console.warn(`[BillTable] ${e}`);
|
|
1487
1451
|
}
|
|
1488
|
-
const
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1452
|
+
const $i = new Set(hi);
|
|
1453
|
+
function Yi(e) {
|
|
1454
|
+
return $i.has(e);
|
|
1491
1455
|
}
|
|
1492
|
-
function
|
|
1456
|
+
function _e(e) {
|
|
1493
1457
|
return new Set(
|
|
1494
1458
|
e.getColumns().filter((t) => t.masked === !0).map((t) => t.id)
|
|
1495
1459
|
);
|
|
1496
1460
|
}
|
|
1497
|
-
function
|
|
1461
|
+
function Zi(e, t) {
|
|
1498
1462
|
const a = () => e.current, s = () => t.current;
|
|
1499
1463
|
function c(i) {
|
|
1500
1464
|
return s().rows.find((o) => o.id === i) ?? z("UNKNOWN_ROW", `no bill "${i}" on the current page.`);
|
|
1501
1465
|
}
|
|
1502
1466
|
function b(i, n) {
|
|
1503
1467
|
const o = c(i), { callbacks: d } = s(), y = o.actions[n];
|
|
1504
|
-
return (y === void 0 || !
|
|
1468
|
+
return (y === void 0 || !re(d, n)) && z("ACTION_UNAVAILABLE", `bill "${i}" does not offer ${n}.`), y !== "enabled" && z("ACTION_DISABLED", ze(y)), { row: o, callbacks: d };
|
|
1505
1469
|
}
|
|
1506
1470
|
return {
|
|
1507
1471
|
getFeatures() {
|
|
@@ -1516,10 +1480,10 @@ function Xi(e, t) {
|
|
|
1516
1480
|
sorting: [],
|
|
1517
1481
|
filters: {},
|
|
1518
1482
|
quickFilter: "",
|
|
1519
|
-
pagination: { pageIndex: 0, pageSize:
|
|
1483
|
+
pagination: { pageIndex: 0, pageSize: St },
|
|
1520
1484
|
privacyMode: n
|
|
1521
1485
|
};
|
|
1522
|
-
const o =
|
|
1486
|
+
const o = _e(i), d = { ...i.getFilter() };
|
|
1523
1487
|
for (const y of Object.keys(d))
|
|
1524
1488
|
o.has(y) && delete d[y];
|
|
1525
1489
|
return {
|
|
@@ -1538,7 +1502,7 @@ function Xi(e, t) {
|
|
|
1538
1502
|
setSort(i) {
|
|
1539
1503
|
const n = a();
|
|
1540
1504
|
if (!n) return;
|
|
1541
|
-
const { sortableColumns: o } = s().features, d =
|
|
1505
|
+
const { sortableColumns: o } = s().features, d = _e(n);
|
|
1542
1506
|
for (const y of i) {
|
|
1543
1507
|
if (!o.includes(y.colId)) {
|
|
1544
1508
|
ie(`setSort: the server does not sort "${y.colId}".`);
|
|
@@ -1614,7 +1578,7 @@ function Xi(e, t) {
|
|
|
1614
1578
|
if (!i) return [];
|
|
1615
1579
|
const { privacyMode: n } = s().features, o = [];
|
|
1616
1580
|
for (const d of i.getColumns())
|
|
1617
|
-
|
|
1581
|
+
Yi(d.id) && o.push({
|
|
1618
1582
|
id: d.id,
|
|
1619
1583
|
label: d.label,
|
|
1620
1584
|
visible: d.visible,
|
|
@@ -1646,12 +1610,12 @@ function Xi(e, t) {
|
|
|
1646
1610
|
/* ---- rows (agent-safe projection) ---- */
|
|
1647
1611
|
getRowSummaries() {
|
|
1648
1612
|
const { rows: i, callbacks: n } = s();
|
|
1649
|
-
return i.map((o) =>
|
|
1613
|
+
return i.map((o) => _i(o, n));
|
|
1650
1614
|
},
|
|
1651
1615
|
/* ---- row actions ---- */
|
|
1652
1616
|
getRowActions(i) {
|
|
1653
1617
|
const n = c(i), { callbacks: o, features: d, hiddenReasonText: y } = s();
|
|
1654
|
-
return
|
|
1618
|
+
return Oi(
|
|
1655
1619
|
n,
|
|
1656
1620
|
o,
|
|
1657
1621
|
d.privacyMode,
|
|
@@ -1687,7 +1651,7 @@ function Xi(e, t) {
|
|
|
1687
1651
|
}
|
|
1688
1652
|
};
|
|
1689
1653
|
}
|
|
1690
|
-
const
|
|
1654
|
+
const Gi = {
|
|
1691
1655
|
downloadPdf: "downloads",
|
|
1692
1656
|
downloadXml: "downloads",
|
|
1693
1657
|
loadIntoWarehouse: "warehouse",
|
|
@@ -1697,7 +1661,7 @@ const Qi = {
|
|
|
1697
1661
|
undoWriteOff: "bill",
|
|
1698
1662
|
delete: "delete"
|
|
1699
1663
|
};
|
|
1700
|
-
function
|
|
1664
|
+
function Xi({
|
|
1701
1665
|
callbacksRef: e,
|
|
1702
1666
|
available: t,
|
|
1703
1667
|
privacyMode: a
|
|
@@ -1718,19 +1682,19 @@ function Ji({
|
|
|
1718
1682
|
const u = f.actions[m];
|
|
1719
1683
|
if (!(u === void 0 || u === "enabled")) {
|
|
1720
1684
|
if (typeof u.disabled == "string") {
|
|
1721
|
-
const r =
|
|
1685
|
+
const r = $e[u.disabled];
|
|
1722
1686
|
return s(r.key, r.en);
|
|
1723
1687
|
}
|
|
1724
1688
|
return a ? y : u.disabled.text;
|
|
1725
1689
|
}
|
|
1726
1690
|
}, S = (f, m, u, r = "default") => {
|
|
1727
|
-
const h =
|
|
1691
|
+
const h = Ci[f];
|
|
1728
1692
|
return {
|
|
1729
1693
|
// Developer constant: React key and `data-action-id`, never row data.
|
|
1730
1694
|
id: f,
|
|
1731
1695
|
// Design 3.6 menu group: the menu draws a separator between groups.
|
|
1732
|
-
section:
|
|
1733
|
-
icon:
|
|
1696
|
+
section: Gi[f],
|
|
1697
|
+
icon: mt(m, { "aria-hidden": !0 }),
|
|
1734
1698
|
label: s(h.key, h.en),
|
|
1735
1699
|
onClick: u,
|
|
1736
1700
|
variant: r,
|
|
@@ -1745,7 +1709,7 @@ function Ji({
|
|
|
1745
1709
|
return c && k.push(
|
|
1746
1710
|
S(
|
|
1747
1711
|
"downloadPdf",
|
|
1748
|
-
|
|
1712
|
+
Be,
|
|
1749
1713
|
(f) => {
|
|
1750
1714
|
var m, u;
|
|
1751
1715
|
return (u = (m = I()).onDownload) == null ? void 0 : u.call(m, f, "pdf", _);
|
|
@@ -1753,7 +1717,7 @@ function Ji({
|
|
|
1753
1717
|
),
|
|
1754
1718
|
S(
|
|
1755
1719
|
"downloadXml",
|
|
1756
|
-
|
|
1720
|
+
xe,
|
|
1757
1721
|
(f) => {
|
|
1758
1722
|
var m, u;
|
|
1759
1723
|
return (u = (m = I()).onDownload) == null ? void 0 : u.call(m, f, "xml", _);
|
|
@@ -1762,7 +1726,7 @@ function Ji({
|
|
|
1762
1726
|
), b && k.push(
|
|
1763
1727
|
S(
|
|
1764
1728
|
"loadIntoWarehouse",
|
|
1765
|
-
|
|
1729
|
+
Ft,
|
|
1766
1730
|
(f) => {
|
|
1767
1731
|
var m, u;
|
|
1768
1732
|
return (u = (m = I()).onLoadIntoWarehouse) == null ? void 0 : u.call(m, f, {
|
|
@@ -1790,7 +1754,7 @@ function Ji({
|
|
|
1790
1754
|
), o && k.push(
|
|
1791
1755
|
S(
|
|
1792
1756
|
"writeOff",
|
|
1793
|
-
|
|
1757
|
+
Ut,
|
|
1794
1758
|
(f) => {
|
|
1795
1759
|
var m, u;
|
|
1796
1760
|
return (u = (m = I()).onWriteOff) == null ? void 0 : u.call(m, f, !1, _);
|
|
@@ -1798,7 +1762,7 @@ function Ji({
|
|
|
1798
1762
|
),
|
|
1799
1763
|
S(
|
|
1800
1764
|
"undoWriteOff",
|
|
1801
|
-
|
|
1765
|
+
Kt,
|
|
1802
1766
|
(f) => {
|
|
1803
1767
|
var m, u;
|
|
1804
1768
|
return (u = (m = I()).onWriteOff) == null ? void 0 : u.call(m, f, !0, _);
|
|
@@ -1807,7 +1771,7 @@ function Ji({
|
|
|
1807
1771
|
), d && k.push(
|
|
1808
1772
|
S(
|
|
1809
1773
|
"delete",
|
|
1810
|
-
|
|
1774
|
+
Vt,
|
|
1811
1775
|
(f) => {
|
|
1812
1776
|
var m, u;
|
|
1813
1777
|
return (u = (m = I()).onDelete) == null ? void 0 : u.call(m, f, _);
|
|
@@ -1827,7 +1791,7 @@ function Ji({
|
|
|
1827
1791
|
a
|
|
1828
1792
|
]);
|
|
1829
1793
|
}
|
|
1830
|
-
const
|
|
1794
|
+
const Qi = [], Ji = (e) => e.id, ea = (e) => e.number, ta = ft(
|
|
1831
1795
|
function(t, a) {
|
|
1832
1796
|
const {
|
|
1833
1797
|
/* data */
|
|
@@ -1839,8 +1803,8 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
1839
1803
|
query: n,
|
|
1840
1804
|
defaultQuery: o,
|
|
1841
1805
|
onQueryChange: d,
|
|
1842
|
-
sortableColumns: y =
|
|
1843
|
-
pageSizeOptions: P =
|
|
1806
|
+
sortableColumns: y = Ue,
|
|
1807
|
+
pageSizeOptions: P = Le,
|
|
1844
1808
|
/* selection */
|
|
1845
1809
|
selectable: S = !0,
|
|
1846
1810
|
selection: I,
|
|
@@ -1848,54 +1812,54 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
1848
1812
|
onSelectionChange: f,
|
|
1849
1813
|
/* columns */
|
|
1850
1814
|
showWarehouseStatus: m = !1,
|
|
1851
|
-
gridId: u =
|
|
1815
|
+
gridId: u = gi,
|
|
1852
1816
|
persistColumnState: r = !0,
|
|
1853
1817
|
/* row actions */
|
|
1854
1818
|
onOpen: h,
|
|
1855
1819
|
onDownload: L,
|
|
1856
1820
|
onLoadIntoWarehouse: x,
|
|
1857
|
-
onEdit:
|
|
1858
|
-
onRecordPayment:
|
|
1859
|
-
onWriteOff:
|
|
1860
|
-
onDelete:
|
|
1821
|
+
onEdit: de,
|
|
1822
|
+
onRecordPayment: ce,
|
|
1823
|
+
onWriteOff: ue,
|
|
1824
|
+
onDelete: pe,
|
|
1861
1825
|
/* bulk and list actions */
|
|
1862
1826
|
onBulkDownload: Z,
|
|
1863
|
-
listDownloads:
|
|
1864
|
-
onListDownload:
|
|
1865
|
-
onRefresh:
|
|
1827
|
+
listDownloads: be = Qi,
|
|
1828
|
+
onListDownload: me,
|
|
1829
|
+
onRefresh: fe,
|
|
1866
1830
|
/* toolbar */
|
|
1867
|
-
toolbarStart:
|
|
1868
|
-
extraFilterLabels:
|
|
1831
|
+
toolbarStart: Ge,
|
|
1832
|
+
extraFilterLabels: ye,
|
|
1869
1833
|
/* states */
|
|
1870
|
-
status:
|
|
1871
|
-
error:
|
|
1872
|
-
onCreateBill:
|
|
1873
|
-
headingLevel:
|
|
1834
|
+
status: he = "ready",
|
|
1835
|
+
error: A,
|
|
1836
|
+
onCreateBill: ge,
|
|
1837
|
+
headingLevel: Te,
|
|
1874
1838
|
/* privacy and layout */
|
|
1875
1839
|
privacyMode: E = !1,
|
|
1876
|
-
caption:
|
|
1877
|
-
density:
|
|
1878
|
-
height:
|
|
1840
|
+
caption: Xe,
|
|
1841
|
+
density: Qe = "default",
|
|
1842
|
+
height: Se = "auto",
|
|
1879
1843
|
/* DOM: naming goes to the grid's scroll region */
|
|
1880
|
-
className:
|
|
1881
|
-
"aria-label":
|
|
1882
|
-
"aria-labelledby":
|
|
1883
|
-
"aria-describedby":
|
|
1884
|
-
...
|
|
1885
|
-
} = t, { t: p } = v("ui"),
|
|
1844
|
+
className: Je,
|
|
1845
|
+
"aria-label": et,
|
|
1846
|
+
"aria-labelledby": tt,
|
|
1847
|
+
"aria-describedby": it,
|
|
1848
|
+
...at
|
|
1849
|
+
} = t, { t: p } = v("ui"), ve = Pe(), G = K(null), X = {
|
|
1886
1850
|
onOpen: h,
|
|
1887
1851
|
onDownload: L,
|
|
1888
1852
|
onLoadIntoWarehouse: x,
|
|
1889
|
-
onEdit:
|
|
1890
|
-
onRecordPayment:
|
|
1891
|
-
onWriteOff:
|
|
1892
|
-
onDelete:
|
|
1853
|
+
onEdit: de,
|
|
1854
|
+
onRecordPayment: ce,
|
|
1855
|
+
onWriteOff: ue,
|
|
1856
|
+
onDelete: pe
|
|
1893
1857
|
}, Q = K(X);
|
|
1894
1858
|
Q.current = X;
|
|
1895
|
-
const
|
|
1859
|
+
const nt = p(
|
|
1896
1860
|
"billTable.disabledReason.privacyHidden",
|
|
1897
1861
|
"Not available (reason hidden in privacy mode)"
|
|
1898
|
-
),
|
|
1862
|
+
), we = {
|
|
1899
1863
|
rows: s,
|
|
1900
1864
|
callbacks: X,
|
|
1901
1865
|
features: {
|
|
@@ -1903,19 +1867,19 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
1903
1867
|
privacyMode: E,
|
|
1904
1868
|
showWarehouseStatus: m,
|
|
1905
1869
|
sortableColumns: [...y],
|
|
1906
|
-
status:
|
|
1870
|
+
status: he
|
|
1907
1871
|
},
|
|
1908
|
-
hiddenReasonText:
|
|
1909
|
-
},
|
|
1910
|
-
|
|
1911
|
-
const [U] =
|
|
1912
|
-
|
|
1913
|
-
const
|
|
1914
|
-
var
|
|
1872
|
+
hiddenReasonText: nt
|
|
1873
|
+
}, Ie = K(we);
|
|
1874
|
+
Ie.current = we;
|
|
1875
|
+
const [U] = yt(() => Zi(G, Ie));
|
|
1876
|
+
ht(a, () => U, [U]), Tt(ii, U, u);
|
|
1877
|
+
const ke = K(null), ot = (g) => {
|
|
1878
|
+
var Ne;
|
|
1915
1879
|
const D = ae(g.sorting);
|
|
1916
|
-
|
|
1917
|
-
key:
|
|
1918
|
-
raw: ae(((
|
|
1880
|
+
ke.current = {
|
|
1881
|
+
key: Ve(D),
|
|
1882
|
+
raw: ae(((Ne = G.current) == null ? void 0 : Ne.getSort()) ?? g.sorting)
|
|
1919
1883
|
}, d == null || d({
|
|
1920
1884
|
sorting: D,
|
|
1921
1885
|
// Column models and host keys; DataGrid evaluates none of them in
|
|
@@ -1925,12 +1889,12 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
1925
1889
|
pagination: { ...g.pagination },
|
|
1926
1890
|
privacyMode: E
|
|
1927
1891
|
});
|
|
1928
|
-
},
|
|
1892
|
+
}, lt = n ? Ni(n.sorting, ke.current) : void 0, J = P.join(","), rt = M(
|
|
1929
1893
|
() => ({
|
|
1930
|
-
pageSizeOptions: J === "" ?
|
|
1894
|
+
pageSizeOptions: J === "" ? Le : J.split(",").map(Number)
|
|
1931
1895
|
}),
|
|
1932
1896
|
[J]
|
|
1933
|
-
),
|
|
1897
|
+
), st = M(() => ({ ...{
|
|
1934
1898
|
datePreset: p("billTable.filter.datePreset", "Period"),
|
|
1935
1899
|
type: p("billTable.filter.type", "Type"),
|
|
1936
1900
|
number: p("billTable.filter.number", "Number"),
|
|
@@ -1975,34 +1939,34 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
1975
1939
|
"billTable.filter.personalAssistant",
|
|
1976
1940
|
"Personal assistant"
|
|
1977
1941
|
)
|
|
1978
|
-
}, ...
|
|
1942
|
+
}, ...ye }), [p, ye]), dt = Xi({
|
|
1979
1943
|
callbacksRef: Q,
|
|
1980
1944
|
available: {
|
|
1981
1945
|
download: !!L,
|
|
1982
1946
|
loadIntoWarehouse: !!x,
|
|
1983
|
-
edit: !!
|
|
1984
|
-
recordPayment: !!
|
|
1985
|
-
writeOff: !!
|
|
1986
|
-
delete: !!
|
|
1947
|
+
edit: !!de,
|
|
1948
|
+
recordPayment: !!ce,
|
|
1949
|
+
writeOff: !!ue,
|
|
1950
|
+
delete: !!pe
|
|
1987
1951
|
},
|
|
1988
1952
|
privacyMode: E
|
|
1989
|
-
}),
|
|
1953
|
+
}), ct = gt((g) => {
|
|
1990
1954
|
Q.current.onOpen(g, _);
|
|
1991
|
-
}, []),
|
|
1955
|
+
}, []), ut = Hi({
|
|
1992
1956
|
currency: b,
|
|
1993
1957
|
showWarehouseStatus: m,
|
|
1994
1958
|
sortableColumns: y,
|
|
1995
1959
|
totals: i,
|
|
1996
1960
|
privacyMode: E,
|
|
1997
|
-
openHintId:
|
|
1998
|
-
onOpenRow:
|
|
1999
|
-
rowActions:
|
|
2000
|
-
}),
|
|
1961
|
+
openHintId: ve,
|
|
1962
|
+
onOpenRow: ct,
|
|
1963
|
+
rowActions: dt
|
|
1964
|
+
}), pt = H.map((g) => {
|
|
2001
1965
|
const D = Y[g];
|
|
2002
1966
|
return { value: g, label: p(D.key, D.en) };
|
|
2003
|
-
}),
|
|
1967
|
+
}), bt = /* @__PURE__ */ T(N, { children: [
|
|
2004
1968
|
/* @__PURE__ */ T(N.FilterBar, { children: [
|
|
2005
|
-
|
|
1969
|
+
Ge,
|
|
2006
1970
|
/* @__PURE__ */ l(
|
|
2007
1971
|
N.QuickSearch,
|
|
2008
1972
|
{
|
|
@@ -2019,7 +1983,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2019
1983
|
label: p("billTable.column.direction", "Direction"),
|
|
2020
1984
|
options: [
|
|
2021
1985
|
{ value: null, label: p("dataTable.selectFilter.all", "All") },
|
|
2022
|
-
...
|
|
1986
|
+
...pt
|
|
2023
1987
|
]
|
|
2024
1988
|
}
|
|
2025
1989
|
),
|
|
@@ -2031,7 +1995,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2031
1995
|
N.BulkAction,
|
|
2032
1996
|
{
|
|
2033
1997
|
label: p("billTable.bulk.downloadPdf", "Download PDFs"),
|
|
2034
|
-
icon: /* @__PURE__ */ l(
|
|
1998
|
+
icon: /* @__PURE__ */ l(Be, { "aria-hidden": "true" }),
|
|
2035
1999
|
onAction: ({ selectedRowIds: g }) => Z([...g], "pdf")
|
|
2036
2000
|
}
|
|
2037
2001
|
),
|
|
@@ -2039,17 +2003,17 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2039
2003
|
N.BulkAction,
|
|
2040
2004
|
{
|
|
2041
2005
|
label: p("billTable.bulk.downloadXml", "Download XML files"),
|
|
2042
|
-
icon: /* @__PURE__ */ l(
|
|
2006
|
+
icon: /* @__PURE__ */ l(xe, { "aria-hidden": "true" }),
|
|
2043
2007
|
onAction: ({ selectedRowIds: g }) => Z([...g], "xml")
|
|
2044
2008
|
}
|
|
2045
2009
|
)
|
|
2046
2010
|
] }) : null,
|
|
2047
2011
|
/* @__PURE__ */ T(
|
|
2048
|
-
|
|
2012
|
+
wt,
|
|
2049
2013
|
{
|
|
2050
2014
|
"aria-label": p("dataTable.tableActions", "Table actions"),
|
|
2051
2015
|
children: [
|
|
2052
|
-
|
|
2016
|
+
be.length > 0 && me ? (
|
|
2053
2017
|
// Today's list downloads apply the query to every matching
|
|
2054
2018
|
// bill on the server; DataGrid's built-in CSV, Excel and PDF
|
|
2055
2019
|
// would export one page, so only custom items are offered.
|
|
@@ -2057,14 +2021,14 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2057
2021
|
N.ExportMenu,
|
|
2058
2022
|
{
|
|
2059
2023
|
label: p("billTable.export.menu", "Download list"),
|
|
2060
|
-
children:
|
|
2061
|
-
const D =
|
|
2024
|
+
children: be.map((g) => {
|
|
2025
|
+
const D = Ri[g];
|
|
2062
2026
|
return /* @__PURE__ */ l(
|
|
2063
2027
|
N.ExportMenu.Item,
|
|
2064
2028
|
{
|
|
2065
2029
|
format: "custom",
|
|
2066
2030
|
label: p(D.key, D.en),
|
|
2067
|
-
onExport: () =>
|
|
2031
|
+
onExport: () => me(g, U.getQuery())
|
|
2068
2032
|
},
|
|
2069
2033
|
g
|
|
2070
2034
|
);
|
|
@@ -2072,7 +2036,7 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2072
2036
|
}
|
|
2073
2037
|
)
|
|
2074
2038
|
) : null,
|
|
2075
|
-
|
|
2039
|
+
fe ? /* @__PURE__ */ l(N.Refresh, { onRefresh: fe }) : null,
|
|
2076
2040
|
/* @__PURE__ */ l(N.ColumnToggle, {})
|
|
2077
2041
|
]
|
|
2078
2042
|
}
|
|
@@ -2084,39 +2048,39 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2084
2048
|
{
|
|
2085
2049
|
"data-component": "bill-table",
|
|
2086
2050
|
"data-component-id": u,
|
|
2087
|
-
className:
|
|
2088
|
-
...
|
|
2051
|
+
className: ai({ height: Se, className: Je }),
|
|
2052
|
+
...at,
|
|
2089
2053
|
children: [
|
|
2090
|
-
/* @__PURE__ */ l("span", { hidden: !0, id:
|
|
2054
|
+
/* @__PURE__ */ l("span", { hidden: !0, id: ve, children: p("billTable.open", "Open bill") }),
|
|
2091
2055
|
/* @__PURE__ */ l(
|
|
2092
|
-
|
|
2056
|
+
vt,
|
|
2093
2057
|
{
|
|
2094
2058
|
ref: G,
|
|
2095
|
-
columns:
|
|
2059
|
+
columns: ut,
|
|
2096
2060
|
rows: s,
|
|
2097
|
-
getRowId:
|
|
2098
|
-
caption:
|
|
2099
|
-
"aria-label":
|
|
2100
|
-
"aria-labelledby":
|
|
2101
|
-
"aria-describedby":
|
|
2061
|
+
getRowId: Ji,
|
|
2062
|
+
caption: Xe ?? p("billTable.caption", "Bills"),
|
|
2063
|
+
"aria-label": et,
|
|
2064
|
+
"aria-labelledby": tt,
|
|
2065
|
+
"aria-describedby": it,
|
|
2102
2066
|
gridId: u,
|
|
2103
2067
|
registerAgent: !1,
|
|
2104
2068
|
persistColumnState: r,
|
|
2105
2069
|
dataMode: "server",
|
|
2106
2070
|
rowCount: c,
|
|
2107
|
-
sorting:
|
|
2108
|
-
defaultSorting: (o == null ? void 0 : o.sorting) ??
|
|
2071
|
+
sorting: lt,
|
|
2072
|
+
defaultSorting: (o == null ? void 0 : o.sorting) ?? Ti,
|
|
2109
2073
|
filters: n == null ? void 0 : n.filters,
|
|
2110
2074
|
defaultFilters: o == null ? void 0 : o.filters,
|
|
2111
2075
|
quickFilter: n == null ? void 0 : n.quickFilter,
|
|
2112
2076
|
defaultQuickFilter: o == null ? void 0 : o.quickFilter,
|
|
2113
2077
|
page: n == null ? void 0 : n.pagination,
|
|
2114
2078
|
defaultPage: o == null ? void 0 : o.pagination,
|
|
2115
|
-
onQueryChange:
|
|
2116
|
-
filterLabels:
|
|
2079
|
+
onQueryChange: ot,
|
|
2080
|
+
filterLabels: st,
|
|
2117
2081
|
multiSort: !1,
|
|
2118
2082
|
maxSortLevels: 1,
|
|
2119
|
-
pagination:
|
|
2083
|
+
pagination: rt,
|
|
2120
2084
|
selectionMode: S ? "multiple" : "none",
|
|
2121
2085
|
rowSelection: I,
|
|
2122
2086
|
defaultRowSelection: k,
|
|
@@ -2126,14 +2090,14 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2126
2090
|
clearSelectionOnFilterChange: !0,
|
|
2127
2091
|
columnResizing: !0,
|
|
2128
2092
|
responsiveColumns: !0,
|
|
2129
|
-
getRowLabel:
|
|
2093
|
+
getRowLabel: ea,
|
|
2130
2094
|
rowLabelPrivacySafe: !0,
|
|
2131
|
-
status:
|
|
2095
|
+
status: he,
|
|
2132
2096
|
error: {
|
|
2133
|
-
title: (
|
|
2134
|
-
description:
|
|
2135
|
-
onRetry:
|
|
2136
|
-
headingLevel:
|
|
2097
|
+
title: (A == null ? void 0 : A.title) ?? p("billTable.error.title", "The bills could not be loaded"),
|
|
2098
|
+
description: A == null ? void 0 : A.description,
|
|
2099
|
+
onRetry: A == null ? void 0 : A.onRetry,
|
|
2100
|
+
headingLevel: Te
|
|
2137
2101
|
},
|
|
2138
2102
|
empty: {
|
|
2139
2103
|
title: p("billTable.empty.title", "No bills yet"),
|
|
@@ -2141,19 +2105,19 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2141
2105
|
"billTable.empty.description",
|
|
2142
2106
|
"Bills you create, or receive from SDI, appear here."
|
|
2143
2107
|
),
|
|
2144
|
-
action:
|
|
2108
|
+
action: ge ? {
|
|
2145
2109
|
label: p("billTable.empty.action", "Add bill"),
|
|
2146
|
-
onClick:
|
|
2110
|
+
onClick: ge
|
|
2147
2111
|
} : void 0,
|
|
2148
|
-
headingLevel:
|
|
2112
|
+
headingLevel: Te,
|
|
2149
2113
|
noResultsTitle: p(
|
|
2150
2114
|
"billTable.empty.noResultsTitle",
|
|
2151
2115
|
"No bills match your filters"
|
|
2152
2116
|
)
|
|
2153
2117
|
},
|
|
2154
|
-
toolbar:
|
|
2155
|
-
density:
|
|
2156
|
-
height:
|
|
2118
|
+
toolbar: bt,
|
|
2119
|
+
density: Qe,
|
|
2120
|
+
height: Se,
|
|
2157
2121
|
privacyMode: E
|
|
2158
2122
|
}
|
|
2159
2123
|
)
|
|
@@ -2162,12 +2126,12 @@ const ea = [], ta = (e) => e.id, ia = (e) => e.number, aa = yt(
|
|
|
2162
2126
|
);
|
|
2163
2127
|
}
|
|
2164
2128
|
);
|
|
2165
|
-
|
|
2166
|
-
const
|
|
2129
|
+
ta.displayName = "BillTable";
|
|
2130
|
+
const De = ["incoming"], Ce = ["outgoing"], Re = [
|
|
2167
2131
|
"unpaid",
|
|
2168
2132
|
"partiallyPaid",
|
|
2169
2133
|
"overdue"
|
|
2170
|
-
],
|
|
2134
|
+
], ia = ["received"], aa = ["notLoaded", "toReview"];
|
|
2171
2135
|
function Ka({
|
|
2172
2136
|
withWarehouse: e = !1
|
|
2173
2137
|
} = {}) {
|
|
@@ -2191,21 +2155,21 @@ function Ka({
|
|
|
2191
2155
|
{
|
|
2192
2156
|
id: "bills-incoming",
|
|
2193
2157
|
label: t("billTable.tabs.incoming", "Incoming"),
|
|
2194
|
-
filterModel: { direction: { type: "set", values: [...
|
|
2158
|
+
filterModel: { direction: { type: "set", values: [...De] } },
|
|
2195
2159
|
userNamed: !1
|
|
2196
2160
|
},
|
|
2197
2161
|
{
|
|
2198
2162
|
id: "bills-outgoing",
|
|
2199
2163
|
label: t("billTable.tabs.outgoing", "Outgoing"),
|
|
2200
|
-
filterModel: { direction: { type: "set", values: [...
|
|
2164
|
+
filterModel: { direction: { type: "set", values: [...Ce] } },
|
|
2201
2165
|
userNamed: !1
|
|
2202
2166
|
},
|
|
2203
2167
|
{
|
|
2204
2168
|
id: "bills-to-pay",
|
|
2205
2169
|
label: t("billTable.tabs.toPay", "To pay"),
|
|
2206
2170
|
filterModel: {
|
|
2207
|
-
direction: { type: "set", values: [...
|
|
2208
|
-
paymentStatus: { type: "set", values: [...
|
|
2171
|
+
direction: { type: "set", values: [...De] },
|
|
2172
|
+
paymentStatus: { type: "set", values: [...Re] }
|
|
2209
2173
|
},
|
|
2210
2174
|
userNamed: !1
|
|
2211
2175
|
},
|
|
@@ -2213,8 +2177,8 @@ function Ka({
|
|
|
2213
2177
|
id: "bills-to-collect",
|
|
2214
2178
|
label: t("billTable.tabs.toCollect", "To collect"),
|
|
2215
2179
|
filterModel: {
|
|
2216
|
-
direction: { type: "set", values: [...
|
|
2217
|
-
paymentStatus: { type: "set", values: [...
|
|
2180
|
+
direction: { type: "set", values: [...Ce] },
|
|
2181
|
+
paymentStatus: { type: "set", values: [...Re] }
|
|
2218
2182
|
},
|
|
2219
2183
|
userNamed: !1
|
|
2220
2184
|
}
|
|
@@ -2223,8 +2187,8 @@ function Ka({
|
|
|
2223
2187
|
id: "bills-to-load",
|
|
2224
2188
|
label: t("billTable.tabs.toLoad", "To load into warehouse"),
|
|
2225
2189
|
filterModel: {
|
|
2226
|
-
sdiStatus: { type: "set", values: [...
|
|
2227
|
-
warehouseStatus: { type: "set", values: [...
|
|
2190
|
+
sdiStatus: { type: "set", values: [...ia] },
|
|
2191
|
+
warehouseStatus: { type: "set", values: [...aa] }
|
|
2228
2192
|
},
|
|
2229
2193
|
userNamed: !1
|
|
2230
2194
|
}), a;
|
|
@@ -2233,18 +2197,18 @@ function Ka({
|
|
|
2233
2197
|
export {
|
|
2234
2198
|
Wa as B,
|
|
2235
2199
|
Fa as a,
|
|
2236
|
-
|
|
2200
|
+
H as b,
|
|
2237
2201
|
Ma as c,
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2202
|
+
mi as d,
|
|
2203
|
+
Me as e,
|
|
2204
|
+
fi as f,
|
|
2205
|
+
hi as g,
|
|
2242
2206
|
Ua as h,
|
|
2243
|
-
|
|
2207
|
+
Ue as i,
|
|
2244
2208
|
xa as j,
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2209
|
+
yi as k,
|
|
2210
|
+
ta as l,
|
|
2211
|
+
ii as m,
|
|
2248
2212
|
Ka as u
|
|
2249
2213
|
};
|
|
2250
|
-
//# sourceMappingURL=default-tabs-
|
|
2214
|
+
//# sourceMappingURL=default-tabs-Cxkw1Ws0.js.map
|