@voyant-travel/operations-react 0.9.0 → 0.11.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/availability/components/availability-dialogs/shared.d.ts +9 -1
- package/dist/availability/components/availability-dialogs/shared.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/shared.js +2 -2
- package/dist/availability/components/availability-dialogs/slot-dialog.d.ts.map +1 -1
- package/dist/availability/components/availability-dialogs/slot-dialog.js +57 -3
- package/dist/availability/i18n/provider.d.ts +24 -0
- package/dist/availability/i18n/provider.d.ts.map +1 -1
- package/dist/places/hooks/use-property-group-mutation.d.ts +3 -3
- package/dist/places/hooks/use-property-group.d.ts +1 -1
- package/dist/places/hooks/use-property-groups.d.ts +1 -1
- package/dist/places/query-options.d.ts +8 -8
- package/dist/places/schemas.d.ts +3 -3
- package/package.json +9 -9
|
@@ -45,10 +45,16 @@ interface SlotDialogMessages {
|
|
|
45
45
|
validationDateRequired: string;
|
|
46
46
|
validationStartsAtRequired: string;
|
|
47
47
|
validationTimezoneRequired: string;
|
|
48
|
+
validationOptionRequired: string;
|
|
49
|
+
validationOptionsUnavailable: string;
|
|
48
50
|
editTitle: string;
|
|
49
51
|
newTitle: string;
|
|
50
52
|
productLabel: string;
|
|
51
53
|
selectProductPlaceholder: string;
|
|
54
|
+
optionLabel: string;
|
|
55
|
+
selectOptionPlaceholder: string;
|
|
56
|
+
noOption: string;
|
|
57
|
+
defaultOptionSuffix: string;
|
|
52
58
|
ruleLabel: string;
|
|
53
59
|
optionalRulePlaceholder: string;
|
|
54
60
|
noRule: string;
|
|
@@ -154,6 +160,7 @@ export type AvailabilityStartTimeSubmitPayload = {
|
|
|
154
160
|
};
|
|
155
161
|
export type AvailabilitySlotSubmitPayload = {
|
|
156
162
|
productId: string;
|
|
163
|
+
optionId: string | null;
|
|
157
164
|
availabilityRuleId: string | null;
|
|
158
165
|
startTimeId: string | null;
|
|
159
166
|
dateLocal: string;
|
|
@@ -201,12 +208,13 @@ export declare function SwitchField({ title, description, checked, onCheckedChan
|
|
|
201
208
|
checked: boolean;
|
|
202
209
|
onCheckedChange: (checked: boolean) => void;
|
|
203
210
|
}): import("react/jsx-runtime").JSX.Element;
|
|
204
|
-
export declare function DialogActions({ cancel, save, create, isEditing, isSubmitting, onCancel, }: {
|
|
211
|
+
export declare function DialogActions({ cancel, save, create, isEditing, isSubmitting, disabled, onCancel, }: {
|
|
205
212
|
cancel: string;
|
|
206
213
|
save: string;
|
|
207
214
|
create: string;
|
|
208
215
|
isEditing: boolean;
|
|
209
216
|
isSubmitting: boolean;
|
|
217
|
+
disabled?: boolean;
|
|
210
218
|
onCancel: () => void;
|
|
211
219
|
}): import("react/jsx-runtime").JSX.Element;
|
|
212
220
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/availability/components/availability-dialogs/shared.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAExE,UAAU,kBAAkB;IAC1B,yBAAyB,EAAE,MAAM,CAAA;IACjC,0BAA0B,EAAE,MAAM,CAAA;IAClC,4BAA4B,EAAE,MAAM,CAAA;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,wBAAwB,EAAE,MAAM,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,yBAAyB,EAAE,MAAM,CAAA;IACjC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,6BAA6B,EAAE,MAAM,CAAA;IACrC,WAAW,EAAE,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S,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,UAE5E;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,aAAa,GACd,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC9C,2CAsBA;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,eAAe,GAChB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C,2CAUA;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,IAAI,EACJ,MAAM,EACN,SAAS,EACT,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,2CAYA"}
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/availability/components/availability-dialogs/shared.tsx"],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EACR,KAAK,EACL,aAAa,GACd,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;CAC9C,2CAsBA;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,OAAO,EACP,eAAe,GAChB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;CAC5C,2CAUA;AAED,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,IAAI,EACJ,MAAM,EACN,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB,2CAYA"}
|
|
@@ -11,6 +11,6 @@ export function ProductSelect({ label, placeholder, products, value, onValueChan
|
|
|
11
11
|
export function SwitchField({ title, description, checked, onCheckedChange, }) {
|
|
12
12
|
return (_jsxs("div", { className: "flex items-center justify-between rounded-md border px-3 py-2", children: [_jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium", children: title }), _jsx("p", { className: "text-xs text-muted-foreground", children: description })] }), _jsx(Switch, { checked: checked, onCheckedChange: onCheckedChange })] }));
|
|
13
13
|
}
|
|
14
|
-
export function DialogActions({ cancel, save, create, isEditing, isSubmitting, onCancel, }) {
|
|
15
|
-
return (_jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: onCancel, children: cancel }), _jsxs(Button, { type: "submit", disabled: isSubmitting, children: [isSubmitting && _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }), isEditing ? save : create] })] }));
|
|
14
|
+
export function DialogActions({ cancel, save, create, isEditing, isSubmitting, disabled, onCancel, }) {
|
|
15
|
+
return (_jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: onCancel, children: cancel }), _jsxs(Button, { type: "submit", disabled: isSubmitting || disabled, children: [isSubmitting && _jsx(Loader2, { className: "mr-2 h-4 w-4 animate-spin" }), isEditing ? save : create] })] }));
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slot-dialog.d.ts","sourceRoot":"","sources":["../../../../src/availability/components/availability-dialogs/slot-dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slot-dialog.d.ts","sourceRoot":"","sources":["../../../../src/availability/components/availability-dialogs/slot-dialog.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,aAAa,EACd,MAAM,gBAAgB,CAAA;AAUvB,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAGlC,KAAK,aAAa,EAEnB,MAAM,aAAa,CAAA;AA0CpB,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,QAAQ,EAAE,0BAA0B,CAAA;IACpC,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,IAAI,CAAC,EAAE,mBAAmB,CAAA;IAC1B,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,KAAK,EAAE,mBAAmB,EAAE,CAAA;IAC5B,UAAU,EAAE,wBAAwB,EAAE,CAAA;IACtC,QAAQ,EAAE,CAAC,OAAO,EAAE,6BAA6B,EAAE,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC3F,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,2CAwXA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useProductOptions } from "@voyant-travel/inventory-react";
|
|
3
4
|
import { Dialog, DialogBody, DialogContent, DialogHeader, DialogTitle, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Textarea, } from "@voyant-travel/ui/components";
|
|
4
5
|
import { DatePicker } from "@voyant-travel/ui/components/date-picker";
|
|
5
6
|
import { DateTimePicker } from "@voyant-travel/ui/components/date-time-picker";
|
|
6
|
-
import { useEffect } from "react";
|
|
7
|
+
import { useEffect, useMemo } from "react";
|
|
7
8
|
import { useForm } from "react-hook-form";
|
|
8
9
|
import { z } from "zod/v4";
|
|
9
10
|
import { zodResolver } from "../../form-resolver.js";
|
|
@@ -12,6 +13,7 @@ import { DialogActions, ProductSelect, SwitchField, } from "./shared.js";
|
|
|
12
13
|
function getSlotFormSchema(messages) {
|
|
13
14
|
return z.object({
|
|
14
15
|
productId: z.string().min(1, messages.dialogs.slot.validationProductRequired),
|
|
16
|
+
optionId: z.string().optional(),
|
|
15
17
|
availabilityRuleId: z.string().optional(),
|
|
16
18
|
startTimeId: z.string().optional(),
|
|
17
19
|
dateLocal: z.string().min(1, messages.dialogs.slot.validationDateRequired),
|
|
@@ -48,6 +50,7 @@ export function AvailabilitySlotDialog(props) {
|
|
|
48
50
|
resolver: zodResolver(slotFormSchema),
|
|
49
51
|
defaultValues: {
|
|
50
52
|
productId: "",
|
|
53
|
+
optionId: NONE_VALUE,
|
|
51
54
|
availabilityRuleId: NONE_VALUE,
|
|
52
55
|
startTimeId: NONE_VALUE,
|
|
53
56
|
dateLocal: "",
|
|
@@ -70,6 +73,7 @@ export function AvailabilitySlotDialog(props) {
|
|
|
70
73
|
if (props.open && props.slot) {
|
|
71
74
|
form.reset({
|
|
72
75
|
productId: props.slot.productId,
|
|
76
|
+
optionId: props.slot.optionId ?? NONE_VALUE,
|
|
73
77
|
availabilityRuleId: props.slot.availabilityRuleId ?? NONE_VALUE,
|
|
74
78
|
startTimeId: props.slot.startTimeId ?? NONE_VALUE,
|
|
75
79
|
dateLocal: props.slot.dateLocal,
|
|
@@ -98,9 +102,49 @@ export function AvailabilitySlotDialog(props) {
|
|
|
98
102
|
const filteredRules = props.rules.filter((rule) => rule.productId === selectedProductId);
|
|
99
103
|
const filteredStartTimes = props.startTimes.filter((startTime) => startTime.productId === selectedProductId);
|
|
100
104
|
const isEditing = Boolean(props.slot);
|
|
105
|
+
// A departure's price is derived from its option's rate plans, so the slot
|
|
106
|
+
// needs to point at one of the product's options. Load the selected product's
|
|
107
|
+
// active options so the operator can pick (and repair) the linkage (#2059).
|
|
108
|
+
const optionsQuery = useProductOptions({
|
|
109
|
+
productId: selectedProductId || undefined,
|
|
110
|
+
status: "active",
|
|
111
|
+
limit: 100,
|
|
112
|
+
enabled: Boolean(selectedProductId),
|
|
113
|
+
});
|
|
114
|
+
const productOptions = useMemo(() => {
|
|
115
|
+
const rows = optionsQuery.data?.data ?? [];
|
|
116
|
+
return [...rows].sort((a, b) => a.sortOrder - b.sortOrder || a.name.localeCompare(b.name));
|
|
117
|
+
}, [optionsQuery.data]);
|
|
118
|
+
const productHasOptions = productOptions.length > 0;
|
|
119
|
+
// Options are only *known* once the query for the selected product succeeds.
|
|
120
|
+
// Until then `productOptions` is empty for an unrelated reason (loading/error),
|
|
121
|
+
// so we must not treat the product as option-less.
|
|
122
|
+
const optionsResolved = !selectedProductId || optionsQuery.isSuccess;
|
|
101
123
|
const onSubmit = async (values) => {
|
|
124
|
+
const resolvedOptionId = values.optionId === NONE_VALUE ? null : (values.optionId ?? null);
|
|
125
|
+
// Guard against an unpriceable slot. When no explicit option is chosen we
|
|
126
|
+
// must be sure the product genuinely has none — block while the options
|
|
127
|
+
// query is still loading/errored so the race can't slip a null option past
|
|
128
|
+
// the required-option check (#2059).
|
|
129
|
+
if (!resolvedOptionId) {
|
|
130
|
+
if (!optionsResolved) {
|
|
131
|
+
form.setError("optionId", {
|
|
132
|
+
type: "manual",
|
|
133
|
+
message: slotMessages.validationOptionsUnavailable,
|
|
134
|
+
});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (productHasOptions) {
|
|
138
|
+
form.setError("optionId", {
|
|
139
|
+
type: "manual",
|
|
140
|
+
message: slotMessages.validationOptionRequired,
|
|
141
|
+
});
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
102
145
|
await props.onSubmit({
|
|
103
146
|
productId: values.productId,
|
|
147
|
+
optionId: resolvedOptionId,
|
|
104
148
|
availabilityRuleId: values.availabilityRuleId === NONE_VALUE ? null : (values.availabilityRuleId ?? null),
|
|
105
149
|
startTimeId: values.startTimeId === NONE_VALUE ? null : (values.startTimeId ?? null),
|
|
106
150
|
dateLocal: values.dateLocal,
|
|
@@ -120,7 +164,17 @@ export function AvailabilitySlotDialog(props) {
|
|
|
120
164
|
}, { isEditing, id: props.slot?.id });
|
|
121
165
|
props.onSuccess();
|
|
122
166
|
};
|
|
123
|
-
return (_jsx(Dialog, { open: props.open, onOpenChange: props.onOpenChange, children: _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? slotMessages.editTitle : slotMessages.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsx(ProductSelect, { label: slotMessages.productLabel, placeholder: slotMessages.selectProductPlaceholder, products: props.products, value: form.watch("productId"), onValueChange: (value) =>
|
|
167
|
+
return (_jsx(Dialog, { open: props.open, onOpenChange: props.onOpenChange, children: _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? slotMessages.editTitle : slotMessages.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsx(ProductSelect, { label: slotMessages.productLabel, placeholder: slotMessages.selectProductPlaceholder, products: props.products, value: form.watch("productId"), onValueChange: (value) => {
|
|
168
|
+
form.setValue("productId", value ?? "");
|
|
169
|
+
// The previously selected option belongs to the old product.
|
|
170
|
+
form.setValue("optionId", NONE_VALUE);
|
|
171
|
+
form.clearErrors("optionId");
|
|
172
|
+
} }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.optionLabel }), _jsxs(Select, { value: form.watch("optionId") ?? NONE_VALUE, onValueChange: (value) => {
|
|
173
|
+
form.setValue("optionId", value ?? NONE_VALUE);
|
|
174
|
+
form.clearErrors("optionId");
|
|
175
|
+
}, children: [_jsx(SelectTrigger, { className: "w-full", disabled: !selectedProductId, children: _jsx(SelectValue, { placeholder: slotMessages.selectOptionPlaceholder }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: NONE_VALUE, children: slotMessages.noOption }), productOptions.map((option) => (_jsx(SelectItem, { value: option.id, children: option.isDefault
|
|
176
|
+
? `${option.name} (${slotMessages.defaultOptionSuffix})`
|
|
177
|
+
: option.name }, option.id)))] })] }), form.formState.errors.optionId ? (_jsx("p", { className: "text-destructive text-sm", children: form.formState.errors.optionId.message })) : null] }), _jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.ruleLabel }), _jsxs(Select, { value: form.watch("availabilityRuleId") ?? NONE_VALUE, onValueChange: (value) => form.setValue("availabilityRuleId", value ?? NONE_VALUE), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, { placeholder: slotMessages.optionalRulePlaceholder }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: NONE_VALUE, children: slotMessages.noRule }), filteredRules.map((rule) => (_jsxs(SelectItem, { value: rule.id, children: [rule.timezone, " \u00B7 ", rule.recurrenceRule] }, rule.id)))] })] })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.startTimeLabel }), _jsxs(Select, { value: form.watch("startTimeId") ?? NONE_VALUE, onValueChange: (value) => form.setValue("startTimeId", value ?? NONE_VALUE), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, { placeholder: slotMessages.optionalStartTimePlaceholder }) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: NONE_VALUE, children: slotMessages.noStartTime }), filteredStartTimes.map((startTime) => (_jsx(SelectItem, { value: startTime.id, children: startTime.label ?? startTime.startTimeLocal }, startTime.id)))] })] })] })] }), _jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.dateLabel }), _jsx(DatePicker, { value: form.watch("dateLocal") || null, onChange: (nextValue) => form.setValue("dateLocal", nextValue ?? "", {
|
|
124
178
|
shouldDirty: true,
|
|
125
179
|
shouldValidate: true,
|
|
126
180
|
}) })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.timezoneLabel }), _jsx(Input, { ...form.register("timezone"), placeholder: slotMessages.timezonePlaceholder })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.startsAtLabel }), _jsx(DateTimePicker, { value: form.watch("startsAt") || null, onChange: (nextValue) => form.setValue("startsAt", nextValue ?? "", {
|
|
@@ -134,5 +188,5 @@ export function AvailabilitySlotDialog(props) {
|
|
|
134
188
|
closed: props.messages.statusClosed,
|
|
135
189
|
sold_out: props.messages.statusSoldOut,
|
|
136
190
|
cancelled: props.messages.statusCancelled,
|
|
137
|
-
}[option.value] }, option.value))) })] })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.unlimitedLabel }), _jsxs(Select, { items: booleanOptions, value: String(form.watch("unlimited")), onValueChange: (value) => form.setValue("unlimited", value === "true"), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: booleanOptions.map((option) => (_jsx(SelectItem, { value: option.value, children: option.value === "true" ? slotMessages.yes : slotMessages.no }, option.value))) })] })] })] }), _jsxs("div", { className: "grid grid-cols-3 gap-4", children: [_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.initialPaxLabel }), _jsx(Input, { ...form.register("initialPax"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingPaxLabel }), _jsx(Input, { ...form.register("remainingPax"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingResourcesLabel }), _jsx(Input, { ...form.register("remainingResources"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.initialPickupsLabel }), _jsx(Input, { ...form.register("initialPickups"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingPickupsLabel }), _jsx(Input, { ...form.register("remainingPickups"), type: "number", min: 0 })] })] }), _jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsx(SwitchField, { title: slotMessages.pastCutoffTitle, description: slotMessages.pastCutoffDescription, checked: form.watch("pastCutoff"), onCheckedChange: (checked) => form.setValue("pastCutoff", checked) }), _jsx(SwitchField, { title: slotMessages.tooEarlyTitle, description: slotMessages.tooEarlyDescription, checked: form.watch("tooEarly"), onCheckedChange: (checked) => form.setValue("tooEarly", checked) })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.notesLabel }), _jsx(Textarea, { ...form.register("notes"), placeholder: slotMessages.notesPlaceholder })] })] }), _jsx(DialogActions, { cancel: slotMessages.cancel, save: slotMessages.save, create: slotMessages.create, isEditing: isEditing, isSubmitting: form.formState.isSubmitting, onCancel: () => props.onOpenChange(false) })] })] }) }));
|
|
191
|
+
}[option.value] }, option.value))) })] })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.unlimitedLabel }), _jsxs(Select, { items: booleanOptions, value: String(form.watch("unlimited")), onValueChange: (value) => form.setValue("unlimited", value === "true"), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: booleanOptions.map((option) => (_jsx(SelectItem, { value: option.value, children: option.value === "true" ? slotMessages.yes : slotMessages.no }, option.value))) })] })] })] }), _jsxs("div", { className: "grid grid-cols-3 gap-4", children: [_jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.initialPaxLabel }), _jsx(Input, { ...form.register("initialPax"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingPaxLabel }), _jsx(Input, { ...form.register("remainingPax"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingResourcesLabel }), _jsx(Input, { ...form.register("remainingResources"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.initialPickupsLabel }), _jsx(Input, { ...form.register("initialPickups"), type: "number", min: 0 })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.remainingPickupsLabel }), _jsx(Input, { ...form.register("remainingPickups"), type: "number", min: 0 })] })] }), _jsxs("div", { className: "grid grid-cols-2 gap-4", children: [_jsx(SwitchField, { title: slotMessages.pastCutoffTitle, description: slotMessages.pastCutoffDescription, checked: form.watch("pastCutoff"), onCheckedChange: (checked) => form.setValue("pastCutoff", checked) }), _jsx(SwitchField, { title: slotMessages.tooEarlyTitle, description: slotMessages.tooEarlyDescription, checked: form.watch("tooEarly"), onCheckedChange: (checked) => form.setValue("tooEarly", checked) })] }), _jsxs("div", { className: "grid gap-2", children: [_jsx(Label, { children: slotMessages.notesLabel }), _jsx(Textarea, { ...form.register("notes"), placeholder: slotMessages.notesPlaceholder })] })] }), _jsx(DialogActions, { cancel: slotMessages.cancel, save: slotMessages.save, create: slotMessages.create, isEditing: isEditing, isSubmitting: form.formState.isSubmitting, disabled: Boolean(selectedProductId) && optionsQuery.isLoading, onCancel: () => props.onOpenChange(false) })] })] }) }));
|
|
138
192
|
}
|
|
@@ -221,10 +221,16 @@ export declare const availabilityUiEn: {
|
|
|
221
221
|
validationDateRequired: string;
|
|
222
222
|
validationStartsAtRequired: string;
|
|
223
223
|
validationTimezoneRequired: string;
|
|
224
|
+
validationOptionRequired: string;
|
|
225
|
+
validationOptionsUnavailable: string;
|
|
224
226
|
editTitle: string;
|
|
225
227
|
newTitle: string;
|
|
226
228
|
productLabel: string;
|
|
227
229
|
selectProductPlaceholder: string;
|
|
230
|
+
optionLabel: string;
|
|
231
|
+
selectOptionPlaceholder: string;
|
|
232
|
+
noOption: string;
|
|
233
|
+
defaultOptionSuffix: string;
|
|
228
234
|
ruleLabel: string;
|
|
229
235
|
optionalRulePlaceholder: string;
|
|
230
236
|
noRule: string;
|
|
@@ -709,10 +715,16 @@ export declare const availabilityUiRo: {
|
|
|
709
715
|
validationDateRequired: string;
|
|
710
716
|
validationStartsAtRequired: string;
|
|
711
717
|
validationTimezoneRequired: string;
|
|
718
|
+
validationOptionRequired: string;
|
|
719
|
+
validationOptionsUnavailable: string;
|
|
712
720
|
editTitle: string;
|
|
713
721
|
newTitle: string;
|
|
714
722
|
productLabel: string;
|
|
715
723
|
selectProductPlaceholder: string;
|
|
724
|
+
optionLabel: string;
|
|
725
|
+
selectOptionPlaceholder: string;
|
|
726
|
+
noOption: string;
|
|
727
|
+
defaultOptionSuffix: string;
|
|
716
728
|
ruleLabel: string;
|
|
717
729
|
optionalRulePlaceholder: string;
|
|
718
730
|
noRule: string;
|
|
@@ -1198,10 +1210,16 @@ export declare const availabilityUiMessageDefinitions: {
|
|
|
1198
1210
|
validationDateRequired: string;
|
|
1199
1211
|
validationStartsAtRequired: string;
|
|
1200
1212
|
validationTimezoneRequired: string;
|
|
1213
|
+
validationOptionRequired: string;
|
|
1214
|
+
validationOptionsUnavailable: string;
|
|
1201
1215
|
editTitle: string;
|
|
1202
1216
|
newTitle: string;
|
|
1203
1217
|
productLabel: string;
|
|
1204
1218
|
selectProductPlaceholder: string;
|
|
1219
|
+
optionLabel: string;
|
|
1220
|
+
selectOptionPlaceholder: string;
|
|
1221
|
+
noOption: string;
|
|
1222
|
+
defaultOptionSuffix: string;
|
|
1205
1223
|
ruleLabel: string;
|
|
1206
1224
|
optionalRulePlaceholder: string;
|
|
1207
1225
|
noRule: string;
|
|
@@ -1686,10 +1704,16 @@ export declare const availabilityUiMessageDefinitions: {
|
|
|
1686
1704
|
validationDateRequired: string;
|
|
1687
1705
|
validationStartsAtRequired: string;
|
|
1688
1706
|
validationTimezoneRequired: string;
|
|
1707
|
+
validationOptionRequired: string;
|
|
1708
|
+
validationOptionsUnavailable: string;
|
|
1689
1709
|
editTitle: string;
|
|
1690
1710
|
newTitle: string;
|
|
1691
1711
|
productLabel: string;
|
|
1692
1712
|
selectProductPlaceholder: string;
|
|
1713
|
+
optionLabel: string;
|
|
1714
|
+
selectOptionPlaceholder: string;
|
|
1715
|
+
noOption: string;
|
|
1716
|
+
defaultOptionSuffix: string;
|
|
1693
1717
|
ruleLabel: string;
|
|
1694
1718
|
optionalRulePlaceholder: string;
|
|
1695
1719
|
noRule: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/availability/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,yBAAyB,EAIzB,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,wBAAwB,GAAG,CAAC,OAAO,yBAAyB,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,CAAA;AAErF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,GAAG;IAC9D,IAAI,E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;AAE1E,wBAAgB,8BAA8B,6CAE7C;AAED,wBAAgB,kCAAkC,2BAEjD"}
|
|
@@ -4,7 +4,7 @@ export type CreatePropertyGroupInput = z.input<typeof insertPropertyGroupSchema>
|
|
|
4
4
|
export type UpdatePropertyGroupInput = z.input<typeof updatePropertyGroupSchema>;
|
|
5
5
|
export declare function usePropertyGroupMutation(): {
|
|
6
6
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
|
-
groupType: "other" | "brand" | "
|
|
7
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
8
8
|
status: "active" | "inactive" | "archived";
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
@@ -18,7 +18,7 @@ export declare function usePropertyGroupMutation(): {
|
|
|
18
18
|
}, Error, {
|
|
19
19
|
name: string;
|
|
20
20
|
parentGroupId?: string | null | undefined;
|
|
21
|
-
groupType?: "other" | "brand" | "
|
|
21
|
+
groupType?: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster" | undefined;
|
|
22
22
|
status?: "active" | "inactive" | "archived" | undefined;
|
|
23
23
|
code?: string | null | undefined;
|
|
24
24
|
brandName?: string | null | undefined;
|
|
@@ -28,7 +28,7 @@ export declare function usePropertyGroupMutation(): {
|
|
|
28
28
|
metadata?: Record<string, unknown> | null | undefined;
|
|
29
29
|
}, unknown>;
|
|
30
30
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
31
|
-
groupType: "other" | "brand" | "
|
|
31
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
32
32
|
status: "active" | "inactive" | "archived";
|
|
33
33
|
name: string;
|
|
34
34
|
id: string;
|
|
@@ -2,7 +2,7 @@ export interface UsePropertyGroupOptions {
|
|
|
2
2
|
enabled?: boolean;
|
|
3
3
|
}
|
|
4
4
|
export declare function usePropertyGroup(id: string | null | undefined, options?: UsePropertyGroupOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
-
groupType: "other" | "brand" | "
|
|
5
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
6
6
|
status: "active" | "inactive" | "archived";
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
@@ -4,7 +4,7 @@ export interface UsePropertyGroupsOptions extends PropertyGroupsListFilters {
|
|
|
4
4
|
}
|
|
5
5
|
export declare function usePropertyGroups(options?: UsePropertyGroupsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
6
|
data: {
|
|
7
|
-
groupType: "other" | "brand" | "
|
|
7
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
8
8
|
status: "active" | "inactive" | "archived";
|
|
9
9
|
name: string;
|
|
10
10
|
id: string;
|
|
@@ -567,7 +567,7 @@ export declare function getPropertyQueryOptions(client: FetchWithValidationOptio
|
|
|
567
567
|
};
|
|
568
568
|
export declare function getPropertyGroupsQueryOptions(client: FetchWithValidationOptions, options?: UsePropertyGroupsOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
569
569
|
data: {
|
|
570
|
-
groupType: "other" | "brand" | "
|
|
570
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
571
571
|
status: "active" | "inactive" | "archived";
|
|
572
572
|
name: string;
|
|
573
573
|
id: string;
|
|
@@ -584,7 +584,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
584
584
|
offset: number;
|
|
585
585
|
}, Error, {
|
|
586
586
|
data: {
|
|
587
|
-
groupType: "other" | "brand" | "
|
|
587
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
588
588
|
status: "active" | "inactive" | "archived";
|
|
589
589
|
name: string;
|
|
590
590
|
id: string;
|
|
@@ -602,7 +602,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
602
602
|
}, readonly ["facilities", "property-groups", import("./query-keys.js").PropertyGroupsListFilters]>, "queryFn"> & {
|
|
603
603
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
604
604
|
data: {
|
|
605
|
-
groupType: "other" | "brand" | "
|
|
605
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
606
606
|
status: "active" | "inactive" | "archived";
|
|
607
607
|
name: string;
|
|
608
608
|
id: string;
|
|
@@ -622,7 +622,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
622
622
|
queryKey: readonly ["facilities", "property-groups", import("./query-keys.js").PropertyGroupsListFilters] & {
|
|
623
623
|
[dataTagSymbol]: {
|
|
624
624
|
data: {
|
|
625
|
-
groupType: "other" | "brand" | "
|
|
625
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
626
626
|
status: "active" | "inactive" | "archived";
|
|
627
627
|
name: string;
|
|
628
628
|
id: string;
|
|
@@ -642,7 +642,7 @@ export declare function getPropertyGroupsQueryOptions(client: FetchWithValidatio
|
|
|
642
642
|
};
|
|
643
643
|
};
|
|
644
644
|
export declare function getPropertyGroupQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
645
|
-
groupType: "other" | "brand" | "
|
|
645
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
646
646
|
status: "active" | "inactive" | "archived";
|
|
647
647
|
name: string;
|
|
648
648
|
id: string;
|
|
@@ -654,7 +654,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
654
654
|
notes: string | null;
|
|
655
655
|
metadata?: Record<string, unknown> | null | undefined;
|
|
656
656
|
}, Error, {
|
|
657
|
-
groupType: "other" | "brand" | "
|
|
657
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
658
658
|
status: "active" | "inactive" | "archived";
|
|
659
659
|
name: string;
|
|
660
660
|
id: string;
|
|
@@ -667,7 +667,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
667
667
|
metadata?: Record<string, unknown> | null | undefined;
|
|
668
668
|
}, readonly ["facilities", "property-groups", string]>, "queryFn"> & {
|
|
669
669
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
670
|
-
groupType: "other" | "brand" | "
|
|
670
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
671
671
|
status: "active" | "inactive" | "archived";
|
|
672
672
|
name: string;
|
|
673
673
|
id: string;
|
|
@@ -682,7 +682,7 @@ export declare function getPropertyGroupQueryOptions(client: FetchWithValidation
|
|
|
682
682
|
} & {
|
|
683
683
|
queryKey: readonly ["facilities", "property-groups", string] & {
|
|
684
684
|
[dataTagSymbol]: {
|
|
685
|
-
groupType: "other" | "brand" | "
|
|
685
|
+
groupType: "other" | "brand" | "collection" | "chain" | "management_company" | "portfolio" | "cluster";
|
|
686
686
|
status: "active" | "inactive" | "archived";
|
|
687
687
|
name: string;
|
|
688
688
|
id: string;
|
package/dist/places/schemas.d.ts
CHANGED
|
@@ -326,9 +326,9 @@ export declare const propertyGroupRecordSchema: z.ZodObject<{
|
|
|
326
326
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
327
327
|
other: "other";
|
|
328
328
|
brand: "brand";
|
|
329
|
+
collection: "collection";
|
|
329
330
|
chain: "chain";
|
|
330
331
|
management_company: "management_company";
|
|
331
|
-
collection: "collection";
|
|
332
332
|
portfolio: "portfolio";
|
|
333
333
|
cluster: "cluster";
|
|
334
334
|
}>>;
|
|
@@ -370,9 +370,9 @@ export declare const propertyGroupListResponse: z.ZodObject<{
|
|
|
370
370
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
371
371
|
other: "other";
|
|
372
372
|
brand: "brand";
|
|
373
|
+
collection: "collection";
|
|
373
374
|
chain: "chain";
|
|
374
375
|
management_company: "management_company";
|
|
375
|
-
collection: "collection";
|
|
376
376
|
portfolio: "portfolio";
|
|
377
377
|
cluster: "cluster";
|
|
378
378
|
}>>;
|
|
@@ -400,9 +400,9 @@ export declare const propertyGroupSingleResponse: z.ZodObject<{
|
|
|
400
400
|
groupType: z.ZodDefault<z.ZodEnum<{
|
|
401
401
|
other: "other";
|
|
402
402
|
brand: "brand";
|
|
403
|
+
collection: "collection";
|
|
403
404
|
chain: "chain";
|
|
404
405
|
management_company: "management_company";
|
|
405
|
-
collection: "collection";
|
|
406
406
|
portfolio: "portfolio";
|
|
407
407
|
cluster: "cluster";
|
|
408
408
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/operations-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -248,9 +248,9 @@
|
|
|
248
248
|
"sonner": "^2.0.7",
|
|
249
249
|
"zod": "^4.0.0",
|
|
250
250
|
"@voyant-travel/admin": "^0.114.0",
|
|
251
|
-
"@voyant-travel/bookings-react": "^0.
|
|
252
|
-
"@voyant-travel/operations": "^0.2.
|
|
253
|
-
"@voyant-travel/inventory-react": "^0.
|
|
251
|
+
"@voyant-travel/bookings-react": "^0.130.0",
|
|
252
|
+
"@voyant-travel/operations": "^0.2.3",
|
|
253
|
+
"@voyant-travel/inventory-react": "^0.12.0",
|
|
254
254
|
"@voyant-travel/ui": "^0.108.0"
|
|
255
255
|
},
|
|
256
256
|
"peerDependenciesMeta": {
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
282
|
"dependencies": {
|
|
283
|
-
"@voyant-travel/i18n": "^0.107.
|
|
283
|
+
"@voyant-travel/i18n": "^0.107.2",
|
|
284
284
|
"@voyant-travel/react": "^0.104.1"
|
|
285
285
|
},
|
|
286
286
|
"devDependencies": {
|
|
@@ -297,10 +297,10 @@
|
|
|
297
297
|
"vitest": "^4.1.2",
|
|
298
298
|
"zod": "^4.3.6",
|
|
299
299
|
"@voyant-travel/admin": "^0.114.0",
|
|
300
|
-
"@voyant-travel/bookings-react": "^0.
|
|
301
|
-
"@voyant-travel/i18n": "^0.107.
|
|
302
|
-
"@voyant-travel/operations": "^0.2.
|
|
303
|
-
"@voyant-travel/inventory-react": "^0.
|
|
300
|
+
"@voyant-travel/bookings-react": "^0.130.0",
|
|
301
|
+
"@voyant-travel/i18n": "^0.107.2",
|
|
302
|
+
"@voyant-travel/operations": "^0.2.3",
|
|
303
|
+
"@voyant-travel/inventory-react": "^0.12.0",
|
|
304
304
|
"@voyant-travel/react": "^0.104.1",
|
|
305
305
|
"@voyant-travel/ui": "^0.108.0",
|
|
306
306
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|