@voyantjs/bookings-ui 0.88.0 → 0.90.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.
|
@@ -226,7 +226,7 @@ export function BookingBillingDialog({ open, onOpenChange, booking, onSuccess, }
|
|
|
226
226
|
form.setValue("contactPartyType", "company", { shouldDirty: true });
|
|
227
227
|
form.setValue("contactFirstName", organization.name, { shouldDirty: true });
|
|
228
228
|
form.setValue("contactLastName", "", { shouldDirty: true });
|
|
229
|
-
form.setValue("contactTaxId", organization.
|
|
229
|
+
form.setValue("contactTaxId", organization.taxId ?? "", { shouldDirty: true });
|
|
230
230
|
form.setValue("contactEmail", "", { shouldDirty: true, shouldValidate: true });
|
|
231
231
|
form.setValue("contactPhone", "", { shouldDirty: true });
|
|
232
232
|
setSelectedPersonId("");
|
|
@@ -276,7 +276,7 @@ export function BookingBillingDialog({ open, onOpenChange, booking, onSuccess, }
|
|
|
276
276
|
const organization = organizationsMap.get(id);
|
|
277
277
|
if (!organization)
|
|
278
278
|
return null;
|
|
279
|
-
return (_jsx(ComboboxItem, { value: organization.id, children: _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "truncate font-medium", children: organization.name }), organization.
|
|
279
|
+
return (_jsx(ComboboxItem, { value: organization.id, children: _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "truncate font-medium", children: organization.name }), organization.taxId ? (_jsx("span", { className: "truncate text-xs text-muted-foreground", children: organization.taxId })) : null] }) }, organization.id));
|
|
280
280
|
} }) })] })] })) : (_jsxs(Combobox, { items: people.map((person) => person.id), value: selectedPersonId || null, inputValue: personInputValue, autoHighlight: true, itemToStringLabel: (id) => formatPerson(peopleMap.get(id) ?? cachedPeopleRef.current.get(id)) || id, itemToStringValue: (id) => id, onInputValueChange: (next) => {
|
|
281
281
|
setPersonInputValue(next);
|
|
282
282
|
setPersonSearch(next);
|
|
@@ -683,7 +683,7 @@ export function BookingCreateForm({ onCreated, defaultProductId, defaultSlotId,
|
|
|
683
683
|
: billingOrganizationRecord
|
|
684
684
|
? {
|
|
685
685
|
contactPartyType: "company",
|
|
686
|
-
contactTaxId: billingOrganizationRecord.
|
|
686
|
+
contactTaxId: billingOrganizationRecord.taxId,
|
|
687
687
|
contactFirstName: billingOrganizationRecord.name,
|
|
688
688
|
contactLastName: null,
|
|
689
689
|
contactEmail: null,
|
|
@@ -136,7 +136,7 @@ export function BookingBillingContextCard({ booking, onPersonOpen, onOrganizatio
|
|
|
136
136
|
"";
|
|
137
137
|
const email = booking.contactEmail ?? person?.email ?? null;
|
|
138
138
|
const phone = booking.contactPhone ?? person?.phone ?? null;
|
|
139
|
-
const taxId = booking.contactTaxId ?? organization?.
|
|
139
|
+
const taxId = booking.contactTaxId ?? organization?.taxId ?? null;
|
|
140
140
|
const address = [
|
|
141
141
|
booking.contactAddressLine1,
|
|
142
142
|
booking.contactAddressLine2,
|
|
@@ -154,7 +154,7 @@ export function BookingListFiltersPopover({ open, onOpenChange, activeFilterCoun
|
|
|
154
154
|
setSelectedOrganization(match);
|
|
155
155
|
}
|
|
156
156
|
markChanged();
|
|
157
|
-
}, items: organizations, selectedItem: selectedOrganization, getKey: (organization) => organization.id, getLabel: (organization) => organization.name, getSecondary: (organization) => organization.
|
|
157
|
+
}, items: organizations, selectedItem: selectedOrganization, getKey: (organization) => organization.id, getLabel: (organization) => organization.name, getSecondary: (organization) => organization.taxId ?? undefined, onSearchChange: setOrganizationSearch, placeholder: filterMessages.organization, emptyText: filterMessages.organizationEmpty })] }), _jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { htmlFor: "bookings-filter-date", children: filterMessages.dateRangeLabel }), _jsx(DateRangePicker, { value: dateRange, onChange: (value) => {
|
|
158
158
|
onDateRangeChange(value);
|
|
159
159
|
markChanged();
|
|
160
160
|
}, placeholder: filterMessages.dateRange, clearable: true, className: "w-full" })] }), _jsxs("div", { className: "flex flex-col gap-1.5", children: [_jsx(Label, { children: filterMessages.paxLabel }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Input, { type: "number", min: 0, placeholder: filterMessages.paxMin, value: paxMin, onChange: (event) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,25 +52,25 @@
|
|
|
52
52
|
"react-dom": "^19.0.0",
|
|
53
53
|
"react-hook-form": "^7.60.0",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/availability-react": "0.
|
|
56
|
-
"@voyantjs/bookings": "0.
|
|
57
|
-
"@voyantjs/bookings-react": "0.
|
|
58
|
-
"@voyantjs/catalog": "0.
|
|
59
|
-
"@voyantjs/catalog-react": "0.
|
|
60
|
-
"@voyantjs/crm-
|
|
61
|
-
"@voyantjs/
|
|
62
|
-
"@voyantjs/
|
|
63
|
-
"@voyantjs/
|
|
64
|
-
"@voyantjs/
|
|
65
|
-
"@voyantjs/
|
|
66
|
-
"@voyantjs/
|
|
67
|
-
"@voyantjs/
|
|
68
|
-
"@voyantjs/
|
|
69
|
-
"@voyantjs/
|
|
55
|
+
"@voyantjs/availability-react": "0.90.0",
|
|
56
|
+
"@voyantjs/bookings": "0.90.0",
|
|
57
|
+
"@voyantjs/bookings-react": "0.90.0",
|
|
58
|
+
"@voyantjs/catalog": "0.90.0",
|
|
59
|
+
"@voyantjs/catalog-react": "0.90.0",
|
|
60
|
+
"@voyantjs/crm-ui": "0.90.0",
|
|
61
|
+
"@voyantjs/extras-react": "0.90.0",
|
|
62
|
+
"@voyantjs/finance-react": "0.90.0",
|
|
63
|
+
"@voyantjs/identity-react": "0.90.0",
|
|
64
|
+
"@voyantjs/legal-react": "0.90.0",
|
|
65
|
+
"@voyantjs/pricing-react": "0.90.0",
|
|
66
|
+
"@voyantjs/products-react": "0.90.0",
|
|
67
|
+
"@voyantjs/suppliers-react": "0.90.0",
|
|
68
|
+
"@voyantjs/ui": "0.90.0",
|
|
69
|
+
"@voyantjs/crm-react": "0.90.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"sonner": "^2.0.7",
|
|
73
|
-
"@voyantjs/i18n": "0.
|
|
73
|
+
"@voyantjs/i18n": "0.90.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@tanstack/react-query": "^5.100.11",
|
|
@@ -85,21 +85,21 @@
|
|
|
85
85
|
"typescript": "^6.0.2",
|
|
86
86
|
"vitest": "^4.1.2",
|
|
87
87
|
"zod": "^4.3.6",
|
|
88
|
-
"@voyantjs/availability-react": "0.
|
|
89
|
-
"@voyantjs/bookings": "0.
|
|
90
|
-
"@voyantjs/bookings-react": "0.
|
|
91
|
-
"@voyantjs/catalog": "0.
|
|
92
|
-
"@voyantjs/catalog-react": "0.
|
|
93
|
-
"@voyantjs/crm-react": "0.
|
|
94
|
-
"@voyantjs/crm-ui": "0.
|
|
95
|
-
"@voyantjs/extras-react": "0.
|
|
96
|
-
"@voyantjs/finance-react": "0.
|
|
97
|
-
"@voyantjs/identity-react": "0.
|
|
98
|
-
"@voyantjs/legal-react": "0.
|
|
99
|
-
"@voyantjs/pricing-react": "0.
|
|
100
|
-
"@voyantjs/products-react": "0.
|
|
101
|
-
"@voyantjs/suppliers-react": "0.
|
|
102
|
-
"@voyantjs/ui": "0.
|
|
88
|
+
"@voyantjs/availability-react": "0.90.0",
|
|
89
|
+
"@voyantjs/bookings": "0.90.0",
|
|
90
|
+
"@voyantjs/bookings-react": "0.90.0",
|
|
91
|
+
"@voyantjs/catalog": "0.90.0",
|
|
92
|
+
"@voyantjs/catalog-react": "0.90.0",
|
|
93
|
+
"@voyantjs/crm-react": "0.90.0",
|
|
94
|
+
"@voyantjs/crm-ui": "0.90.0",
|
|
95
|
+
"@voyantjs/extras-react": "0.90.0",
|
|
96
|
+
"@voyantjs/finance-react": "0.90.0",
|
|
97
|
+
"@voyantjs/identity-react": "0.90.0",
|
|
98
|
+
"@voyantjs/legal-react": "0.90.0",
|
|
99
|
+
"@voyantjs/pricing-react": "0.90.0",
|
|
100
|
+
"@voyantjs/products-react": "0.90.0",
|
|
101
|
+
"@voyantjs/suppliers-react": "0.90.0",
|
|
102
|
+
"@voyantjs/ui": "0.90.0",
|
|
103
103
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
104
104
|
},
|
|
105
105
|
"files": [
|