@flowselections/floriday-klanten-module 1.0.88 → 1.0.91
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-lib/components/fs-ui/ColumnsMenu.d.ts +14 -0
- package/dist-lib/components/fs-ui/ColumnsMenu.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/ColumnsMenu.js +31 -0
- package/dist-lib/components/fs-ui/DataTable.d.ts +32 -5
- package/dist-lib/components/fs-ui/DataTable.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/DataTable.js +22 -6
- package/dist-lib/components/fs-ui/FilterChips.d.ts +10 -1
- package/dist-lib/components/fs-ui/FilterChips.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/FilterChips.js +7 -3
- package/dist-lib/components/fs-ui/FiltersPanel.d.ts +14 -0
- package/dist-lib/components/fs-ui/FiltersPanel.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/FiltersPanel.js +9 -0
- package/dist-lib/components/fs-ui/InlineAlert.d.ts +3 -4
- package/dist-lib/components/fs-ui/InlineAlert.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/InlineAlert.js +10 -16
- package/dist-lib/components/fs-ui/KpiRow.d.ts +1 -1
- package/dist-lib/components/fs-ui/KpiRow.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/KpiRow.js +2 -2
- package/dist-lib/components/fs-ui/NoticeBar.d.ts +18 -0
- package/dist-lib/components/fs-ui/NoticeBar.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/NoticeBar.js +37 -0
- package/dist-lib/components/fs-ui/PageHeader.d.ts +13 -3
- package/dist-lib/components/fs-ui/PageHeader.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/PageHeader.js +9 -3
- package/dist-lib/components/fs-ui/PillTabs.d.ts +5 -3
- package/dist-lib/components/fs-ui/PillTabs.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/PillTabs.js +26 -9
- package/dist-lib/components/fs-ui/RowMenu.d.ts +13 -0
- package/dist-lib/components/fs-ui/RowMenu.d.ts.map +1 -0
- package/dist-lib/components/fs-ui/RowMenu.js +9 -0
- package/dist-lib/components/fs-ui/SearchInput.d.ts +2 -2
- package/dist-lib/components/fs-ui/SearchInput.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/SearchInput.js +11 -7
- package/dist-lib/components/fs-ui/Toolbar.d.ts +11 -2
- package/dist-lib/components/fs-ui/Toolbar.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/Toolbar.js +12 -3
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts +5 -2
- package/dist-lib/components/fs-ui/UpdatedAt.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/UpdatedAt.js +7 -3
- package/dist-lib/components/fs-ui/index.d.ts +7 -3
- package/dist-lib/components/fs-ui/index.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/index.js +7 -3
- package/dist-lib/components/fs-ui/shortcuts.d.ts.map +1 -1
- package/dist-lib/components/fs-ui/shortcuts.js +7 -8
- package/dist-lib/components/klanten/BackLink.js +1 -1
- package/dist-lib/components/klanten/BewerkKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/BewerkKlant.js +3 -2
- package/dist-lib/components/klanten/ExternalCacheBanner.d.ts.map +1 -1
- package/dist-lib/components/klanten/ExternalCacheBanner.js +2 -2
- package/dist-lib/components/klanten/GroupedKlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/GroupedKlantDetail.js +5 -4
- package/dist-lib/components/klanten/ImportKlanten.d.ts.map +1 -1
- package/dist-lib/components/klanten/ImportKlanten.js +6 -2
- package/dist-lib/components/klanten/KlantDetail.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetail.js +16 -4
- package/dist-lib/components/klanten/KlantDetailLayout.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantDetailLayout.js +5 -2
- package/dist-lib/components/klanten/KlantFormulier.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantFormulier.js +48 -40
- package/dist-lib/components/klanten/KlantenOverzicht.d.ts.map +1 -1
- package/dist-lib/components/klanten/KlantenOverzicht.js +103 -96
- package/dist-lib/components/klanten/NetwerkPagina.d.ts.map +1 -1
- package/dist-lib/components/klanten/NetwerkPagina.js +5 -4
- package/dist-lib/components/klanten/NieuweKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/NieuweKlant.js +2 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlant.d.ts.map +1 -1
- package/dist-lib/components/klanten/OvernemenTwinfieldKlant.js +3 -2
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupFormPage.js +4 -3
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.d.ts.map +1 -1
- package/dist-lib/components/klanten/pricegroups/PriceGroupsPage.js +8 -3
- package/dist-lib/integrations/supabase/types.d.ts +76 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/format-date.d.ts +2 -2
- package/dist-lib/lib/format-date.d.ts.map +1 -1
- package/dist-lib/lib/format-date.js +15 -7
- package/dist-lib/lib/labels.d.ts +36 -0
- package/dist-lib/lib/labels.d.ts.map +1 -0
- package/dist-lib/lib/labels.js +49 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function formatDate(v: string | number | Date | null | undefined): string;
|
|
2
|
-
export declare function formatDateTime(v: string | number | Date | null | undefined): string;
|
|
1
|
+
export declare function formatDate(v: string | number | Date | null | undefined, now?: Date): string;
|
|
2
|
+
export declare function formatDateTime(v: string | number | Date | null | undefined, now?: Date): string;
|
|
3
3
|
//# sourceMappingURL=format-date.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-date.d.ts","sourceRoot":"","sources":["../../src/lib/format-date.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"format-date.d.ts","sourceRoot":"","sources":["../../src/lib/format-date.ts"],"names":[],"mappings":"AAWA,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,GAAE,IAAiB,GAAG,MAAM,CAKvG;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,GAAE,IAAiB,GAAG,MAAM,CAM3G"}
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Datums zoals in Verkooporders: "di 3 nov", met tijd "di 3 nov 08:00";
|
|
2
|
+
// alleen een ander jaar krijgt het jaartal erbij.
|
|
2
3
|
function toDate(v) {
|
|
3
4
|
if (v == null || v === "")
|
|
4
5
|
return null;
|
|
5
6
|
const d = v instanceof Date ? v : new Date(typeof v === "string" && /^\d{4}-\d{2}-\d{2}$/.test(v) ? `${v}T00:00:00` : v);
|
|
6
7
|
return Number.isNaN(d.getTime()) ? null : d;
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
+
const DAYS = ["zo", "ma", "di", "wo", "do", "vr", "za"];
|
|
10
|
+
const MONTHS = ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec"];
|
|
11
|
+
export function formatDate(v, now = new Date()) {
|
|
9
12
|
const d = toDate(v);
|
|
10
|
-
|
|
13
|
+
if (!d)
|
|
14
|
+
return "—";
|
|
15
|
+
const base = `${DAYS[d.getDay()]} ${d.getDate()} ${MONTHS[d.getMonth()]}`;
|
|
16
|
+
return d.getFullYear() === now.getFullYear() ? base : `${base} ${d.getFullYear()}`;
|
|
11
17
|
}
|
|
12
|
-
export function formatDateTime(v) {
|
|
18
|
+
export function formatDateTime(v, now = new Date()) {
|
|
13
19
|
const d = toDate(v);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
if (!d)
|
|
21
|
+
return "—";
|
|
22
|
+
const hh = String(d.getHours()).padStart(2, "0");
|
|
23
|
+
const mm = String(d.getMinutes()).padStart(2, "0");
|
|
24
|
+
return `${formatDate(d, now)} ${hh}:${mm}`;
|
|
17
25
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const LABELS: {
|
|
2
|
+
readonly provider: {
|
|
3
|
+
readonly local: "Eigen klant";
|
|
4
|
+
readonly floriday: "Floriday";
|
|
5
|
+
readonly twinfield: "Boekhouding";
|
|
6
|
+
readonly exact: "Boekhouding";
|
|
7
|
+
};
|
|
8
|
+
readonly providerLinked: {
|
|
9
|
+
readonly floriday: "Gekoppeld met Floriday";
|
|
10
|
+
readonly twinfield: "Gekoppeld met de boekhouding";
|
|
11
|
+
readonly exact: "Gekoppeld met de boekhouding";
|
|
12
|
+
readonly local: "Eigen klant";
|
|
13
|
+
};
|
|
14
|
+
readonly customerStatus: {
|
|
15
|
+
readonly active: "Actief";
|
|
16
|
+
readonly inactive: "Inactief";
|
|
17
|
+
readonly missing: "Niet meer in de boekhouding";
|
|
18
|
+
readonly overdue: "Achterstallig";
|
|
19
|
+
readonly invoice_incomplete: "Factuuradres onvolledig";
|
|
20
|
+
};
|
|
21
|
+
readonly paymentTone: {
|
|
22
|
+
readonly invoice: "Factuur";
|
|
23
|
+
readonly cash: "Contant";
|
|
24
|
+
readonly provider: "Via koppeling";
|
|
25
|
+
};
|
|
26
|
+
readonly pushStatus: {
|
|
27
|
+
readonly pending: "Wacht op verzending";
|
|
28
|
+
readonly processing: "Bezig met versturen";
|
|
29
|
+
readonly done: "Verstuurd naar de boekhouding";
|
|
30
|
+
readonly failed: "Lukt niet, probeer opnieuw";
|
|
31
|
+
readonly deferred: "Wacht op de boekhouding";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export type LabelGroup = keyof typeof LABELS;
|
|
35
|
+
export declare function label(group: LabelGroup, value: string | null | undefined): string;
|
|
36
|
+
//# sourceMappingURL=labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/lib/labels.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCT,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,MAAM,CAAC;AAI7C,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAWjF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Eén vertaalbestand voor waarden uit de database naar Nederlandse tekst in beeld.
|
|
2
|
+
// Onbekende waarden tonen "Overig"; de ruwe waarde gaat alleen naar console.warn.
|
|
3
|
+
export const LABELS = {
|
|
4
|
+
provider: {
|
|
5
|
+
local: "Eigen klant",
|
|
6
|
+
floriday: "Floriday",
|
|
7
|
+
twinfield: "Boekhouding",
|
|
8
|
+
exact: "Boekhouding",
|
|
9
|
+
},
|
|
10
|
+
providerLinked: {
|
|
11
|
+
floriday: "Gekoppeld met Floriday",
|
|
12
|
+
twinfield: "Gekoppeld met de boekhouding",
|
|
13
|
+
exact: "Gekoppeld met de boekhouding",
|
|
14
|
+
local: "Eigen klant",
|
|
15
|
+
},
|
|
16
|
+
customerStatus: {
|
|
17
|
+
active: "Actief",
|
|
18
|
+
inactive: "Inactief",
|
|
19
|
+
missing: "Niet meer in de boekhouding",
|
|
20
|
+
overdue: "Achterstallig",
|
|
21
|
+
invoice_incomplete: "Factuuradres onvolledig",
|
|
22
|
+
},
|
|
23
|
+
paymentTone: {
|
|
24
|
+
invoice: "Factuur",
|
|
25
|
+
cash: "Contant",
|
|
26
|
+
provider: "Via koppeling",
|
|
27
|
+
},
|
|
28
|
+
pushStatus: {
|
|
29
|
+
pending: "Wacht op verzending",
|
|
30
|
+
processing: "Bezig met versturen",
|
|
31
|
+
done: "Verstuurd naar de boekhouding",
|
|
32
|
+
failed: "Lukt niet, probeer opnieuw",
|
|
33
|
+
deferred: "Wacht op de boekhouding",
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
const warned = new Set();
|
|
37
|
+
export function label(group, value) {
|
|
38
|
+
const key = String(value ?? "").trim().toLowerCase();
|
|
39
|
+
const map = LABELS[group];
|
|
40
|
+
const hit = map[key];
|
|
41
|
+
if (hit)
|
|
42
|
+
return hit;
|
|
43
|
+
const tag = `${group}:${key}`;
|
|
44
|
+
if (!warned.has(tag)) {
|
|
45
|
+
warned.add(tag);
|
|
46
|
+
console.warn(`[klanten] onbekende waarde voor ${group}:`, value);
|
|
47
|
+
}
|
|
48
|
+
return "Overig";
|
|
49
|
+
}
|