@voyantjs/bookings-ui 0.52.1 → 0.52.2
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/components/booking-billing-dialog.d.ts +16 -0
- package/dist/components/booking-billing-dialog.d.ts.map +1 -0
- package/dist/components/booking-billing-dialog.js +90 -0
- package/dist/components/booking-create-dialog.d.ts.map +1 -1
- package/dist/components/booking-create-dialog.js +512 -151
- package/dist/components/booking-create-page.js +1 -1
- package/dist/components/booking-document-dialog.d.ts.map +1 -1
- package/dist/components/booking-document-dialog.js +16 -14
- package/dist/components/booking-guarantee-dialog.d.ts.map +1 -1
- package/dist/components/booking-guarantee-dialog.js +10 -8
- package/dist/components/booking-item-dialog.d.ts.map +1 -1
- package/dist/components/booking-item-dialog.js +18 -9
- package/dist/components/booking-item-travelers.d.ts.map +1 -1
- package/dist/components/booking-item-travelers.js +9 -7
- package/dist/components/booking-payment-schedule-dialog.d.ts.map +1 -1
- package/dist/components/booking-payment-schedule-dialog.js +10 -8
- package/dist/components/booking-payment-schedule-list.d.ts.map +1 -1
- package/dist/components/booking-payment-schedule-list.js +32 -3
- package/dist/components/{rooms-stepper-section.d.ts → option-units-stepper-section.d.ts} +17 -9
- package/dist/components/option-units-stepper-section.d.ts.map +1 -0
- package/dist/components/option-units-stepper-section.js +172 -0
- package/dist/components/payment-schedule-section.d.ts +1 -1
- package/dist/components/payment-schedule-section.d.ts.map +1 -1
- package/dist/components/payment-schedule-section.js +5 -11
- package/dist/components/person-picker-section.d.ts +4 -0
- package/dist/components/person-picker-section.d.ts.map +1 -1
- package/dist/components/person-picker-section.js +27 -5
- package/dist/components/price-breakdown-section.d.ts +8 -2
- package/dist/components/price-breakdown-section.d.ts.map +1 -1
- package/dist/components/price-breakdown-section.js +17 -5
- package/dist/components/status-change-dialog.d.ts.map +1 -1
- package/dist/components/status-change-dialog.js +6 -5
- package/dist/components/supplier-status-dialog.d.ts.map +1 -1
- package/dist/components/supplier-status-dialog.js +6 -5
- package/dist/components/traveler-list.d.ts.map +1 -1
- package/dist/components/traveler-list.js +12 -1
- package/dist/components/travelers-section.d.ts +62 -3
- package/dist/components/travelers-section.d.ts.map +1 -1
- package/dist/components/travelers-section.js +290 -23
- package/dist/i18n/en.d.ts +63 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +68 -5
- package/dist/i18n/messages.d.ts +63 -0
- package/dist/i18n/messages.d.ts.map +1 -1
- package/dist/i18n/provider.d.ts +126 -0
- package/dist/i18n/provider.d.ts.map +1 -1
- package/dist/i18n/ro.d.ts +63 -0
- package/dist/i18n/ro.d.ts.map +1 -1
- package/dist/i18n/ro.js +68 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +26 -24
- package/dist/components/rooms-stepper-section.d.ts.map +0 -1
- package/dist/components/rooms-stepper-section.js +0 -111
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,EAEb,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAKvD,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,EAEb,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAKvD,eAAO,MAAM,4BAA4B;;;;;;;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,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,0BAA0B,GAAG,IAAI,CAAA;CAC9C,2CAWA;AAED,eAAO,MAAM,iBAAiB,4CAA4B,CAAA;AAC1D,eAAO,MAAM,qBAAqB,0BAAgC,CAAA;AAElE,wBAAgB,0BAA0B,yCAEzC;AAED,wBAAgB,8BAA8B,uBAE7C;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/i18n/ro.d.ts
CHANGED
|
@@ -357,6 +357,10 @@ export declare const bookingsUiRo: {
|
|
|
357
357
|
createNewOrganization: string;
|
|
358
358
|
createPersonSheetTitle: string;
|
|
359
359
|
createOrganizationSheetTitle: string;
|
|
360
|
+
editPerson: string;
|
|
361
|
+
editOrganization: string;
|
|
362
|
+
editPersonSheetTitle: string;
|
|
363
|
+
editOrganizationSheetTitle: string;
|
|
360
364
|
selectExistingPerson: string;
|
|
361
365
|
personSearchPlaceholder: string;
|
|
362
366
|
personSelectPlaceholder: string;
|
|
@@ -383,6 +387,8 @@ export declare const bookingsUiRo: {
|
|
|
383
387
|
lastName: string;
|
|
384
388
|
email: string;
|
|
385
389
|
role: string;
|
|
390
|
+
category: string;
|
|
391
|
+
dateOfBirth: string;
|
|
386
392
|
roleLead: string;
|
|
387
393
|
roleAdult: string;
|
|
388
394
|
roleChild: string;
|
|
@@ -396,7 +402,24 @@ export declare const bookingsUiRo: {
|
|
|
396
402
|
personEmpty: string;
|
|
397
403
|
createNewPerson: string;
|
|
398
404
|
createPersonSheetTitle: string;
|
|
405
|
+
editPerson: string;
|
|
406
|
+
editPersonSheetTitle: string;
|
|
399
407
|
addBillingPerson: string;
|
|
408
|
+
relatedPeopleHeading: string;
|
|
409
|
+
addRelatedPerson: string;
|
|
410
|
+
};
|
|
411
|
+
relationshipKindLabels: {
|
|
412
|
+
spouse: string;
|
|
413
|
+
partner: string;
|
|
414
|
+
parent: string;
|
|
415
|
+
child: string;
|
|
416
|
+
sibling: string;
|
|
417
|
+
guardian: string;
|
|
418
|
+
ward: string;
|
|
419
|
+
emergency_contact: string;
|
|
420
|
+
friend: string;
|
|
421
|
+
travel_companion: string;
|
|
422
|
+
other: string;
|
|
400
423
|
};
|
|
401
424
|
};
|
|
402
425
|
paymentScheduleSection: {
|
|
@@ -794,6 +817,9 @@ export declare const bookingsUiRo: {
|
|
|
794
817
|
};
|
|
795
818
|
actions: {
|
|
796
819
|
deleteConfirm: string;
|
|
820
|
+
issueDocument: string;
|
|
821
|
+
issueInvoice: string;
|
|
822
|
+
issueProforma: string;
|
|
797
823
|
};
|
|
798
824
|
};
|
|
799
825
|
supplierStatusList: {
|
|
@@ -858,6 +884,24 @@ export declare const bookingsUiRo: {
|
|
|
858
884
|
confirm: string;
|
|
859
885
|
};
|
|
860
886
|
};
|
|
887
|
+
bookingBillingDialog: {
|
|
888
|
+
title: string;
|
|
889
|
+
fields: {
|
|
890
|
+
firstName: string;
|
|
891
|
+
lastName: string;
|
|
892
|
+
email: string;
|
|
893
|
+
phone: string;
|
|
894
|
+
address: string;
|
|
895
|
+
city: string;
|
|
896
|
+
region: string;
|
|
897
|
+
postalCode: string;
|
|
898
|
+
country: string;
|
|
899
|
+
};
|
|
900
|
+
actions: {
|
|
901
|
+
cancel: string;
|
|
902
|
+
save: string;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
861
905
|
bookingGuaranteeDialog: {
|
|
862
906
|
titles: {
|
|
863
907
|
create: string;
|
|
@@ -998,6 +1042,10 @@ export declare const bookingsUiRo: {
|
|
|
998
1042
|
internalNotes: string;
|
|
999
1043
|
confirmAfterCreate: string;
|
|
1000
1044
|
confirmAfterCreateHint: string;
|
|
1045
|
+
createAsDraft: string;
|
|
1046
|
+
createAsDraftHint: string;
|
|
1047
|
+
notifyTraveler: string;
|
|
1048
|
+
notifyTravelerHint: string;
|
|
1001
1049
|
};
|
|
1002
1050
|
placeholders: {
|
|
1003
1051
|
departure: string;
|
|
@@ -1017,6 +1065,8 @@ export declare const bookingsUiRo: {
|
|
|
1017
1065
|
};
|
|
1018
1066
|
actions: {
|
|
1019
1067
|
createDraftBooking: string;
|
|
1068
|
+
createConfirmedBooking: string;
|
|
1069
|
+
createAwaitingPaymentBooking: string;
|
|
1020
1070
|
};
|
|
1021
1071
|
labels: {
|
|
1022
1072
|
currency: string;
|
|
@@ -1025,6 +1075,7 @@ export declare const bookingsUiRo: {
|
|
|
1025
1075
|
createNewPerson: string;
|
|
1026
1076
|
selectExistingPerson: string;
|
|
1027
1077
|
organizationNone: string;
|
|
1078
|
+
billingHeading: string;
|
|
1028
1079
|
addTraveler: string;
|
|
1029
1080
|
travelerHeading: string;
|
|
1030
1081
|
travelerRole: string;
|
|
@@ -1062,6 +1113,15 @@ export declare const bookingsUiRo: {
|
|
|
1062
1113
|
voucherRemainingLabel: string;
|
|
1063
1114
|
voucherInvalidLabel: string;
|
|
1064
1115
|
paymentHeading: string;
|
|
1116
|
+
previewHeading: string;
|
|
1117
|
+
previewEmpty: string;
|
|
1118
|
+
previewProduct: string;
|
|
1119
|
+
previewDeparture: string;
|
|
1120
|
+
previewOptions: string;
|
|
1121
|
+
previewTravelers: string;
|
|
1122
|
+
previewTotal: string;
|
|
1123
|
+
previewLoading: string;
|
|
1124
|
+
previewTravelerUnnamed: string;
|
|
1065
1125
|
paymentModeUnpaid: string;
|
|
1066
1126
|
paymentModeFull: string;
|
|
1067
1127
|
paymentModeAdvance: string;
|
|
@@ -1094,6 +1154,9 @@ export declare const bookingsUiRo: {
|
|
|
1094
1154
|
breakdownOverrideReason: string;
|
|
1095
1155
|
breakdownOverrideReasonPlaceholder: string;
|
|
1096
1156
|
breakdownOverrideReasonRequired: string;
|
|
1157
|
+
breakdownSubtotal: string;
|
|
1158
|
+
breakdownTax: string;
|
|
1159
|
+
breakdownTaxIncluded: string;
|
|
1097
1160
|
};
|
|
1098
1161
|
};
|
|
1099
1162
|
bookingList: {
|
package/dist/i18n/ro.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ro.d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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgxCK,CAAA"}
|
package/dist/i18n/ro.js
CHANGED
|
@@ -357,6 +357,10 @@ export const bookingsUiRo = {
|
|
|
357
357
|
createNewOrganization: "Creeaza nou",
|
|
358
358
|
createPersonSheetTitle: "Creeaza persoana",
|
|
359
359
|
createOrganizationSheetTitle: "Creeaza organizatie",
|
|
360
|
+
editPerson: "Editeaza",
|
|
361
|
+
editOrganization: "Editeaza",
|
|
362
|
+
editPersonSheetTitle: "Editeaza persoana",
|
|
363
|
+
editOrganizationSheetTitle: "Editeaza organizatie",
|
|
360
364
|
selectExistingPerson: "Selecteaza existent",
|
|
361
365
|
personSearchPlaceholder: "Cauta persoane dupa nume sau email...",
|
|
362
366
|
personSelectPlaceholder: "Selecteaza o persoana...",
|
|
@@ -383,6 +387,8 @@ export const bookingsUiRo = {
|
|
|
383
387
|
lastName: "Nume",
|
|
384
388
|
email: "Email",
|
|
385
389
|
role: "Rol",
|
|
390
|
+
category: "Categorie",
|
|
391
|
+
dateOfBirth: "Data nasterii",
|
|
386
392
|
roleLead: "Principal",
|
|
387
393
|
roleAdult: "Adult",
|
|
388
394
|
roleChild: "Copil",
|
|
@@ -396,7 +402,24 @@ export const bookingsUiRo = {
|
|
|
396
402
|
personEmpty: "Nu au fost gasite persoane.",
|
|
397
403
|
createNewPerson: "Creeaza nou",
|
|
398
404
|
createPersonSheetTitle: "Creeaza calator",
|
|
405
|
+
editPerson: "Editeaza",
|
|
406
|
+
editPersonSheetTitle: "Editeaza persoana",
|
|
399
407
|
addBillingPerson: "Adauga platitorul ca participant",
|
|
408
|
+
relatedPeopleHeading: "Din relatiile platitorului",
|
|
409
|
+
addRelatedPerson: "Adauga ca participant",
|
|
410
|
+
},
|
|
411
|
+
relationshipKindLabels: {
|
|
412
|
+
spouse: "Sot/sotie",
|
|
413
|
+
partner: "Partener",
|
|
414
|
+
parent: "Parinte",
|
|
415
|
+
child: "Copil",
|
|
416
|
+
sibling: "Frate/sora",
|
|
417
|
+
guardian: "Tutore",
|
|
418
|
+
ward: "Pupil",
|
|
419
|
+
emergency_contact: "Contact de urgenta",
|
|
420
|
+
friend: "Prieten",
|
|
421
|
+
travel_companion: "Insotitor",
|
|
422
|
+
other: "Altul",
|
|
400
423
|
},
|
|
401
424
|
},
|
|
402
425
|
paymentScheduleSection: {
|
|
@@ -794,6 +817,9 @@ export const bookingsUiRo = {
|
|
|
794
817
|
},
|
|
795
818
|
actions: {
|
|
796
819
|
deleteConfirm: "Stergi aceasta scadenta?",
|
|
820
|
+
issueDocument: "Emite document",
|
|
821
|
+
issueInvoice: "Emite factura",
|
|
822
|
+
issueProforma: "Emite proforma",
|
|
797
823
|
},
|
|
798
824
|
},
|
|
799
825
|
supplierStatusList: {
|
|
@@ -858,6 +884,24 @@ export const bookingsUiRo = {
|
|
|
858
884
|
confirm: "Confirma anularea",
|
|
859
885
|
},
|
|
860
886
|
},
|
|
887
|
+
bookingBillingDialog: {
|
|
888
|
+
title: "Editeaza contactul de facturare",
|
|
889
|
+
fields: {
|
|
890
|
+
firstName: "Prenume",
|
|
891
|
+
lastName: "Nume",
|
|
892
|
+
email: "Email",
|
|
893
|
+
phone: "Telefon",
|
|
894
|
+
address: "Adresa",
|
|
895
|
+
city: "Oras",
|
|
896
|
+
region: "Judet / regiune",
|
|
897
|
+
postalCode: "Cod postal",
|
|
898
|
+
country: "Tara",
|
|
899
|
+
},
|
|
900
|
+
actions: {
|
|
901
|
+
cancel: "Anuleaza",
|
|
902
|
+
save: "Salveaza modificarile",
|
|
903
|
+
},
|
|
904
|
+
},
|
|
861
905
|
bookingGuaranteeDialog: {
|
|
862
906
|
titles: {
|
|
863
907
|
create: "Adauga garantie",
|
|
@@ -996,8 +1040,12 @@ export const bookingsUiRo = {
|
|
|
996
1040
|
fields: {
|
|
997
1041
|
departure: "Plecare",
|
|
998
1042
|
internalNotes: "Note interne",
|
|
999
|
-
confirmAfterCreate: "Confirma
|
|
1000
|
-
confirmAfterCreateHint: "Dupa creare, rezervarea trece in status confirmat.
|
|
1043
|
+
confirmAfterCreate: "Confirma rezervarea dupa creare",
|
|
1044
|
+
confirmAfterCreateHint: "Dupa creare, rezervarea trece in status confirmat.",
|
|
1045
|
+
createAsDraft: "Creeaza ca draft",
|
|
1046
|
+
createAsDraftHint: "Altfel, rezervarea va fi creata cu statusul {status}, in functie de plata marcata ca achitata.",
|
|
1047
|
+
notifyTraveler: "Anunta calatorul",
|
|
1048
|
+
notifyTravelerHint: "Cand este activ, trimite emailul de confirmare si documentele (daca auto-dispatch este configurat). Dezactiveaza pentru confirmare silentioasa.",
|
|
1001
1049
|
},
|
|
1002
1050
|
placeholders: {
|
|
1003
1051
|
departure: "Selecteaza o plecare...",
|
|
@@ -1017,6 +1065,8 @@ export const bookingsUiRo = {
|
|
|
1017
1065
|
},
|
|
1018
1066
|
actions: {
|
|
1019
1067
|
createDraftBooking: "Creeaza rezervare draft",
|
|
1068
|
+
createConfirmedBooking: "Creeaza rezervare confirmata",
|
|
1069
|
+
createAwaitingPaymentBooking: "Creeaza rezervare",
|
|
1020
1070
|
},
|
|
1021
1071
|
labels: {
|
|
1022
1072
|
currency: "EUR",
|
|
@@ -1025,6 +1075,7 @@ export const bookingsUiRo = {
|
|
|
1025
1075
|
createNewPerson: "Creeaza nou",
|
|
1026
1076
|
selectExistingPerson: "Selecteaza existent",
|
|
1027
1077
|
organizationNone: "Fara organizatie",
|
|
1078
|
+
billingHeading: "Facturare",
|
|
1028
1079
|
addTraveler: "Adauga calator",
|
|
1029
1080
|
travelerHeading: "Calatori",
|
|
1030
1081
|
travelerRole: "Rol",
|
|
@@ -1041,9 +1092,9 @@ export const bookingsUiRo = {
|
|
|
1041
1092
|
travelerPersonEmpty: "Nu au fost gasite persoane.",
|
|
1042
1093
|
createPersonSheetTitle: "Creeaza calator",
|
|
1043
1094
|
addBillingPersonAsTraveler: "Adauga platitorul ca participant",
|
|
1044
|
-
roomsHeading: "
|
|
1045
|
-
roomsNoOption: "Selecteaza o optiune pentru
|
|
1046
|
-
roomsNoSlot: "Alege mai intai o plecare pentru a vedea
|
|
1095
|
+
roomsHeading: "Optiuni",
|
|
1096
|
+
roomsNoOption: "Selecteaza o optiune de produs pentru a alege cantitatile.",
|
|
1097
|
+
roomsNoSlot: "Alege mai intai o plecare pentru a vedea unitatile disponibile.",
|
|
1047
1098
|
roomsNoUnits: "Aceasta plecare nu are disponibilitate configurata pe unitati.",
|
|
1048
1099
|
roomsRemaining: "ramase",
|
|
1049
1100
|
roomsUnlimited: "nelimitat",
|
|
@@ -1062,6 +1113,15 @@ export const bookingsUiRo = {
|
|
|
1062
1113
|
voucherRemainingLabel: "Sold ramas:",
|
|
1063
1114
|
voucherInvalidLabel: "Acest voucher nu poate fi aplicat:",
|
|
1064
1115
|
paymentHeading: "Scadentar",
|
|
1116
|
+
previewHeading: "Sumar",
|
|
1117
|
+
previewEmpty: "Fa selectii pentru a vedea sumarul.",
|
|
1118
|
+
previewProduct: "Produs",
|
|
1119
|
+
previewDeparture: "Plecare",
|
|
1120
|
+
previewOptions: "Optiuni",
|
|
1121
|
+
previewTravelers: "Calatori",
|
|
1122
|
+
previewTotal: "Total",
|
|
1123
|
+
previewLoading: "Se incarca…",
|
|
1124
|
+
previewTravelerUnnamed: "Calator fara nume",
|
|
1065
1125
|
paymentModeUnpaid: "Neplatit",
|
|
1066
1126
|
paymentModeFull: "Integral",
|
|
1067
1127
|
paymentModeAdvance: "Avans",
|
|
@@ -1094,6 +1154,9 @@ export const bookingsUiRo = {
|
|
|
1094
1154
|
breakdownOverrideReason: "Motiv suprascriere",
|
|
1095
1155
|
breakdownOverrideReasonPlaceholder: "De ce este acest total diferit?",
|
|
1096
1156
|
breakdownOverrideReasonRequired: "Adauga un motiv pentru totalul manual.",
|
|
1157
|
+
breakdownSubtotal: "Subtotal",
|
|
1158
|
+
breakdownTax: "Taxa",
|
|
1159
|
+
breakdownTaxIncluded: "inclus",
|
|
1097
1160
|
},
|
|
1098
1161
|
},
|
|
1099
1162
|
bookingList: {
|
package/dist/index.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ export { BookingPaymentsSummary, type BookingPaymentsSummaryProps, } from "./com
|
|
|
22
22
|
export { type BookingWorkspaceBulkActionContext, type BookingWorkspaceNavigationItem, BookingWorkspacePage, type BookingWorkspacePageProps, type BookingWorkspacePageSlots, type BookingWorkspaceSection, BookingWorkspaceShell, type BookingWorkspaceShellProps, type BookingWorkspaceSlotContext, useBookingWorkspaceBulkActions, } from "./components/booking-workspace-page.js";
|
|
23
23
|
export { BookingsPage, type BookingsPageProps } from "./components/bookings-page.js";
|
|
24
24
|
export { FileDropzone, type FileDropzoneProps, type UploadedFile, } from "./components/file-dropzone.js";
|
|
25
|
+
export { OptionUnitsStepperSection, type OptionUnitsStepperSectionProps, type OptionUnitsStepperValue, } from "./components/option-units-stepper-section.js";
|
|
25
26
|
export { type PaymentScheduleMode, PaymentScheduleSection, type PaymentScheduleSectionProps, type PaymentScheduleValue, } from "./components/payment-schedule-section.js";
|
|
26
27
|
export { type NewPersonValue, type PersonPickerMode, PersonPickerSection, type PersonPickerSectionProps, type PersonPickerValue, } from "./components/person-picker-section.js";
|
|
27
28
|
export { type PriceBreakdownLine, PriceBreakdownSection, type PriceBreakdownSectionProps, } from "./components/price-breakdown-section.js";
|
|
28
29
|
export { ProductPickerSection, type ProductPickerSectionProps, type ProductPickerValue, } from "./components/product-picker-section.js";
|
|
29
|
-
export { RoomsStepperSection, type RoomsStepperSectionProps, type RoomsStepperValue, } from "./components/rooms-stepper-section.js";
|
|
30
30
|
export { type SharedRoomMode, SharedRoomSection, type SharedRoomSectionProps, type SharedRoomValue, } from "./components/shared-room-section.js";
|
|
31
31
|
export { StatusChangeDialog, type StatusChangeDialogProps, } from "./components/status-change-dialog.js";
|
|
32
32
|
export { SupplierStatusDialog, type SupplierStatusDialogProps, } from "./components/supplier-status-dialog.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,2CAA2C,CAAA;AAClD,OAAO,EACL,yBAAyB,EACzB,KAAK,8BAA8B,GACpC,MAAM,6CAA6C,CAAA;AACpD,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACvF,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,GAC9B,MAAM,uCAAuC,CAAA;AA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,qBAAqB,GAC3B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,aAAa,EAClB,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,GACxB,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACvB,0BAA0B,EAC1B,YAAY,EACZ,4BAA4B,EAC5B,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -22,11 +22,11 @@ export { BookingPaymentsSummary, } from "./components/booking-payments-summary.j
|
|
|
22
22
|
export { BookingWorkspacePage, BookingWorkspaceShell, useBookingWorkspaceBulkActions, } from "./components/booking-workspace-page.js";
|
|
23
23
|
export { BookingsPage } from "./components/bookings-page.js";
|
|
24
24
|
export { FileDropzone, } from "./components/file-dropzone.js";
|
|
25
|
+
export { OptionUnitsStepperSection, } from "./components/option-units-stepper-section.js";
|
|
25
26
|
export { PaymentScheduleSection, } from "./components/payment-schedule-section.js";
|
|
26
27
|
export { PersonPickerSection, } from "./components/person-picker-section.js";
|
|
27
28
|
export { PriceBreakdownSection, } from "./components/price-breakdown-section.js";
|
|
28
29
|
export { ProductPickerSection, } from "./components/product-picker-section.js";
|
|
29
|
-
export { RoomsStepperSection, } from "./components/rooms-stepper-section.js";
|
|
30
30
|
export { SharedRoomSection, } from "./components/shared-room-section.js";
|
|
31
31
|
export { StatusChangeDialog, } from "./components/status-change-dialog.js";
|
|
32
32
|
export { SupplierStatusDialog, } from "./components/supplier-status-dialog.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings-ui",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -51,20 +51,21 @@
|
|
|
51
51
|
"react-dom": "^19.0.0",
|
|
52
52
|
"react-hook-form": "^7.60.0",
|
|
53
53
|
"zod": "^4.3.6",
|
|
54
|
-
"@voyantjs/availability-react": "0.52.
|
|
55
|
-
"@voyantjs/bookings-react": "0.52.
|
|
56
|
-
"@voyantjs/catalog": "0.52.
|
|
57
|
-
"@voyantjs/catalog-react": "0.52.
|
|
58
|
-
"@voyantjs/crm-react": "0.52.
|
|
59
|
-
"@voyantjs/crm-ui": "0.52.
|
|
60
|
-
"@voyantjs/finance-react": "0.52.
|
|
61
|
-
"@voyantjs/
|
|
62
|
-
"@voyantjs/
|
|
63
|
-
"@voyantjs/
|
|
64
|
-
"@voyantjs/
|
|
54
|
+
"@voyantjs/availability-react": "0.52.2",
|
|
55
|
+
"@voyantjs/bookings-react": "0.52.2",
|
|
56
|
+
"@voyantjs/catalog": "0.52.2",
|
|
57
|
+
"@voyantjs/catalog-react": "0.52.2",
|
|
58
|
+
"@voyantjs/crm-react": "0.52.2",
|
|
59
|
+
"@voyantjs/crm-ui": "0.52.2",
|
|
60
|
+
"@voyantjs/finance-react": "0.52.2",
|
|
61
|
+
"@voyantjs/identity-react": "0.52.2",
|
|
62
|
+
"@voyantjs/legal-react": "0.52.2",
|
|
63
|
+
"@voyantjs/products-react": "0.52.2",
|
|
64
|
+
"@voyantjs/suppliers-react": "0.52.2",
|
|
65
|
+
"@voyantjs/ui": "0.52.2"
|
|
65
66
|
},
|
|
66
67
|
"dependencies": {
|
|
67
|
-
"@voyantjs/i18n": "0.52.
|
|
68
|
+
"@voyantjs/i18n": "0.52.2"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -77,18 +78,19 @@
|
|
|
77
78
|
"typescript": "^6.0.2",
|
|
78
79
|
"vitest": "^4.1.2",
|
|
79
80
|
"zod": "^4.3.6",
|
|
80
|
-
"@voyantjs/availability-react": "0.52.
|
|
81
|
-
"@voyantjs/bookings-react": "0.52.
|
|
82
|
-
"@voyantjs/catalog": "0.52.
|
|
83
|
-
"@voyantjs/catalog-react": "0.52.
|
|
84
|
-
"@voyantjs/crm-react": "0.52.
|
|
85
|
-
"@voyantjs/crm-ui": "0.52.
|
|
86
|
-
"@voyantjs/finance-react": "0.52.
|
|
87
|
-
"@voyantjs/
|
|
88
|
-
"@voyantjs/
|
|
89
|
-
"@voyantjs/
|
|
81
|
+
"@voyantjs/availability-react": "0.52.2",
|
|
82
|
+
"@voyantjs/bookings-react": "0.52.2",
|
|
83
|
+
"@voyantjs/catalog": "0.52.2",
|
|
84
|
+
"@voyantjs/catalog-react": "0.52.2",
|
|
85
|
+
"@voyantjs/crm-react": "0.52.2",
|
|
86
|
+
"@voyantjs/crm-ui": "0.52.2",
|
|
87
|
+
"@voyantjs/finance-react": "0.52.2",
|
|
88
|
+
"@voyantjs/identity-react": "0.52.2",
|
|
89
|
+
"@voyantjs/legal-react": "0.52.2",
|
|
90
|
+
"@voyantjs/products-react": "0.52.2",
|
|
91
|
+
"@voyantjs/suppliers-react": "0.52.2",
|
|
90
92
|
"@voyantjs/voyant-typescript-config": "0.1.0",
|
|
91
|
-
"@voyantjs/ui": "0.52.
|
|
93
|
+
"@voyantjs/ui": "0.52.2"
|
|
92
94
|
},
|
|
93
95
|
"files": [
|
|
94
96
|
"dist",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rooms-stepper-section.d.ts","sourceRoot":"","sources":["../../src/components/rooms-stepper-section.tsx"],"names":[],"mappings":"AAgBA,iEAAiE;AACjE,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACnC;AAED,eAAO,MAAM,sBAAsB,EAAE,iBAAsC,CAAA;AAE3E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,iBAAiB,CAAA;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC5C,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAA;IACnD,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,CAAA;CACF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAc,EACd,aAAa,EACb,MAAM,GACP,EAAE,wBAAwB,2CAmI1B"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useQueries } from "@tanstack/react-query";
|
|
4
|
-
import { useSlotUnitAvailability } from "@voyantjs/availability-react";
|
|
5
|
-
import { getOptionUnitsQueryOptions, useProductOptions, useVoyantProductsContext, } from "@voyantjs/products-react";
|
|
6
|
-
import { Button, Label } from "@voyantjs/ui/components";
|
|
7
|
-
import { Minus, Plus } from "lucide-react";
|
|
8
|
-
import * as React from "react";
|
|
9
|
-
import { useBookingsUiMessagesOrDefault } from "../i18n/provider.js";
|
|
10
|
-
export const emptyRoomsStepperValue = { quantities: {} };
|
|
11
|
-
/**
|
|
12
|
-
* Rooms / per-unit stepper for booking-create flows. Drives
|
|
13
|
-
* `GET /v1/availability/slots/:id/unit-availability` from #235 when a
|
|
14
|
-
* departure is selected, and product option-level units before departure
|
|
15
|
-
* selection, so operators can build "2 double rooms and 1 single" drafts.
|
|
16
|
-
*
|
|
17
|
-
* The section only tracks **intent** (how many of each unit the operator
|
|
18
|
-
* wants to book). Actual hold/reservation happens when the parent submits
|
|
19
|
-
* the booking — capacity drops the moment the reservation transaction
|
|
20
|
-
* commits; the next refetch of `useSlotUnitAvailability` reflects it.
|
|
21
|
-
*
|
|
22
|
-
* ### Stepper bounds
|
|
23
|
-
*
|
|
24
|
-
* - Minimum is 0 (operator can deselect).
|
|
25
|
-
* - Maximum is the unit's `remaining` count from the server. Unlimited
|
|
26
|
-
* pools (`remaining === null`) have no upper bound.
|
|
27
|
-
* - The server is the truth: entering `3 doubles` when only 2 remain just
|
|
28
|
-
* disables the "+" button — we don't let the UI submit a request that
|
|
29
|
-
* would 409 at insert time.
|
|
30
|
-
*/
|
|
31
|
-
export function RoomsStepperSection({ value, onChange, productId, slotId, optionId, enabled = true, onUnitsChange, labels, }) {
|
|
32
|
-
const productsClient = useVoyantProductsContext();
|
|
33
|
-
const messages = useBookingsUiMessagesOrDefault();
|
|
34
|
-
const merged = { ...messages.roomsStepperSection.labels, ...labels };
|
|
35
|
-
const availability = useSlotUnitAvailability({ slotId, enabled: enabled && Boolean(slotId) });
|
|
36
|
-
const optionsQuery = useProductOptions({
|
|
37
|
-
productId,
|
|
38
|
-
status: "active",
|
|
39
|
-
limit: 100,
|
|
40
|
-
enabled: enabled && !slotId && Boolean(productId),
|
|
41
|
-
});
|
|
42
|
-
const productOptions = React.useMemo(() => {
|
|
43
|
-
const options = optionsQuery.data?.data ?? [];
|
|
44
|
-
if (!optionId)
|
|
45
|
-
return options;
|
|
46
|
-
const selected = options.find((option) => option.id === optionId);
|
|
47
|
-
const rest = options.filter((option) => option.id !== optionId);
|
|
48
|
-
return selected ? [selected, ...rest] : options;
|
|
49
|
-
}, [optionsQuery.data?.data, optionId]);
|
|
50
|
-
const optionUnitQueries = useQueries({
|
|
51
|
-
queries: productOptions.map((option) => ({
|
|
52
|
-
...getOptionUnitsQueryOptions(productsClient, {
|
|
53
|
-
optionId: option.id,
|
|
54
|
-
limit: 100,
|
|
55
|
-
}),
|
|
56
|
-
enabled: enabled && !slotId && Boolean(productId),
|
|
57
|
-
})),
|
|
58
|
-
});
|
|
59
|
-
const optionUnitRows = React.useMemo(() => {
|
|
60
|
-
const rows = [];
|
|
61
|
-
productOptions.forEach((option, index) => {
|
|
62
|
-
const units = optionUnitQueries[index]?.data?.data ?? [];
|
|
63
|
-
rows.push(...units.map((unit) => optionUnitToStepperUnit(option, unit, units.length)));
|
|
64
|
-
});
|
|
65
|
-
return rows;
|
|
66
|
-
}, [productOptions, optionUnitQueries]);
|
|
67
|
-
const availabilityUnitRows = React.useMemo(() => (availability.data?.data ?? []).map((unit) => ({
|
|
68
|
-
...unit,
|
|
69
|
-
optionId: optionId ?? null,
|
|
70
|
-
})), [availability.data?.data, optionId]);
|
|
71
|
-
const units = slotId ? availabilityUnitRows : optionUnitRows;
|
|
72
|
-
React.useEffect(() => {
|
|
73
|
-
onUnitsChange?.(units);
|
|
74
|
-
}, [onUnitsChange, units]);
|
|
75
|
-
if (!slotId && !productId && !optionId) {
|
|
76
|
-
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border p-3", children: [_jsx(Label, { children: merged.heading }), _jsx("p", { className: "text-xs text-muted-foreground", children: merged.noOption })] }));
|
|
77
|
-
}
|
|
78
|
-
const loaded = slotId
|
|
79
|
-
? availability.isSuccess
|
|
80
|
-
: optionsQuery.isSuccess && optionUnitQueries.every((query) => query.isSuccess);
|
|
81
|
-
if (loaded && units.length === 0) {
|
|
82
|
-
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border p-3", children: [_jsx(Label, { children: merged.heading }), _jsx("p", { className: "text-xs text-muted-foreground", children: merged.noUnits })] }));
|
|
83
|
-
}
|
|
84
|
-
const setQuantity = (unitId, qty) => {
|
|
85
|
-
const next = { ...value.quantities };
|
|
86
|
-
if (qty <= 0) {
|
|
87
|
-
delete next[unitId];
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
next[unitId] = qty;
|
|
91
|
-
}
|
|
92
|
-
onChange({ quantities: next });
|
|
93
|
-
};
|
|
94
|
-
return (_jsxs("div", { className: "flex flex-col gap-2 rounded-md border p-3", children: [_jsx(Label, { children: merged.heading }), _jsx("div", { className: "flex flex-col gap-2", children: units.map((unit) => {
|
|
95
|
-
const qty = value.quantities[unit.optionUnitId] ?? 0;
|
|
96
|
-
const remainingLabel = unit.remaining === null ? merged.unlimited : `${unit.remaining} ${merged.remaining}`;
|
|
97
|
-
const atMax = unit.remaining !== null && qty >= unit.remaining;
|
|
98
|
-
return (_jsxs("div", { className: "flex items-center gap-3 rounded-md border px-3 py-2", children: [_jsxs("div", { className: "flex-1", children: [_jsx("div", { className: "text-sm font-medium", children: unit.unitName }), _jsx("div", { className: "text-xs text-muted-foreground", children: remainingLabel })] }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "h-7 w-7 p-0", onClick: () => setQuantity(unit.optionUnitId, Math.max(0, qty - 1)), disabled: qty <= 0, "aria-label": `${merged.decreaseUnitPrefix} ${unit.unitName}`, children: _jsx(Minus, { className: "h-3.5 w-3.5" }) }), _jsx("span", { className: "min-w-[1.5rem] text-center text-sm tabular-nums", children: qty }), _jsx(Button, { type: "button", variant: "ghost", size: "sm", className: "h-7 w-7 p-0", onClick: () => setQuantity(unit.optionUnitId, qty + 1), disabled: atMax, "aria-label": `${merged.increaseUnitPrefix} ${unit.unitName}`, children: _jsx(Plus, { className: "h-3.5 w-3.5" }) })] })] }, unit.optionUnitId));
|
|
99
|
-
}) })] }));
|
|
100
|
-
}
|
|
101
|
-
function optionUnitToStepperUnit(option, unit, unitCount) {
|
|
102
|
-
return {
|
|
103
|
-
optionId: option.id,
|
|
104
|
-
optionUnitId: unit.id,
|
|
105
|
-
unitName: unitCount === 1 ? option.name : `${option.name} - ${unit.name}`,
|
|
106
|
-
occupancyMax: unit.occupancyMax,
|
|
107
|
-
initial: null,
|
|
108
|
-
reserved: 0,
|
|
109
|
-
remaining: unit.maxQuantity ?? null,
|
|
110
|
-
};
|
|
111
|
-
}
|