@voyantjs/products-ui 0.16.0 → 0.18.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/LICENSE +201 -109
- package/README.md +11 -0
- package/dist/components/option-unit-dialog.d.ts.map +1 -1
- package/dist/components/option-unit-dialog.js +7 -3
- package/dist/components/option-unit-form.d.ts.map +1 -1
- package/dist/components/option-unit-form.js +16 -9
- package/dist/components/product-category-combobox.d.ts.map +1 -1
- package/dist/components/product-category-combobox.js +6 -4
- package/dist/components/product-category-dialog.d.ts.map +1 -1
- package/dist/components/product-category-dialog.js +7 -3
- package/dist/components/product-category-form.d.ts.map +1 -1
- package/dist/components/product-category-form.js +8 -4
- package/dist/components/product-category-list.d.ts.map +1 -1
- package/dist/components/product-category-list.js +11 -5
- package/dist/components/product-day-dialog.d.ts.map +1 -1
- package/dist/components/product-day-dialog.js +7 -3
- package/dist/components/product-day-form.d.ts.map +1 -1
- package/dist/components/product-day-form.js +9 -3
- package/dist/components/product-itinerary-dialog.d.ts.map +1 -1
- package/dist/components/product-itinerary-dialog.js +13 -5
- package/dist/components/product-media-dialog.d.ts.map +1 -1
- package/dist/components/product-media-dialog.js +7 -3
- package/dist/components/product-media-form.d.ts.map +1 -1
- package/dist/components/product-media-form.js +16 -7
- package/dist/components/product-media-section.d.ts.map +1 -1
- package/dist/components/product-media-section.js +19 -11
- package/dist/components/product-option-dialog.d.ts.map +1 -1
- package/dist/components/product-option-dialog.js +7 -3
- package/dist/components/product-option-form.d.ts.map +1 -1
- package/dist/components/product-option-form.js +11 -8
- package/dist/components/product-options-section.d.ts.map +1 -1
- package/dist/components/product-options-section.js +17 -13
- package/dist/components/product-tag-dialog.d.ts.map +1 -1
- package/dist/components/product-tag-dialog.js +7 -3
- package/dist/components/product-tag-form.d.ts.map +1 -1
- package/dist/components/product-tag-form.js +7 -3
- package/dist/components/product-tag-list.d.ts.map +1 -1
- package/dist/components/product-tag-list.js +9 -5
- package/dist/components/product-type-combobox.d.ts +1 -1
- package/dist/components/product-type-combobox.d.ts.map +1 -1
- package/dist/components/product-type-combobox.js +6 -2
- package/dist/components/product-version-dialog.d.ts.map +1 -1
- package/dist/components/product-version-dialog.js +5 -3
- package/dist/components/product-versions-section.d.ts.map +1 -1
- package/dist/components/product-versions-section.js +7 -2
- package/dist/i18n/en.d.ts +402 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +401 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +402 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +826 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +402 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +401 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/package.json +35 -14
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
export const productsUiEn = {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: "Cancel",
|
|
4
|
+
saveChanges: "Save changes",
|
|
5
|
+
create: "Create",
|
|
6
|
+
add: "Add",
|
|
7
|
+
loading: "Loading...",
|
|
8
|
+
none: "—",
|
|
9
|
+
previous: "Previous",
|
|
10
|
+
next: "Next",
|
|
11
|
+
page: "Page",
|
|
12
|
+
active: "Active",
|
|
13
|
+
inactive: "Inactive",
|
|
14
|
+
mediaTypeLabels: {
|
|
15
|
+
image: "Image",
|
|
16
|
+
video: "Video",
|
|
17
|
+
document: "Document",
|
|
18
|
+
},
|
|
19
|
+
optionUnitTypeLabels: {
|
|
20
|
+
person: "Person",
|
|
21
|
+
group: "Group",
|
|
22
|
+
room: "Room",
|
|
23
|
+
vehicle: "Vehicle",
|
|
24
|
+
service: "Service",
|
|
25
|
+
other: "Other",
|
|
26
|
+
},
|
|
27
|
+
optionStatusLabels: {
|
|
28
|
+
draft: "Draft",
|
|
29
|
+
active: "Active",
|
|
30
|
+
archived: "Archived",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
comboboxes: {
|
|
34
|
+
productCategory: {
|
|
35
|
+
placeholder: "Search parent category...",
|
|
36
|
+
empty: "No product categories found.",
|
|
37
|
+
},
|
|
38
|
+
productType: {
|
|
39
|
+
placeholder: "Search product types...",
|
|
40
|
+
empty: "No product types found.",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
productCategoryDialog: {
|
|
44
|
+
titles: {
|
|
45
|
+
create: "New product category",
|
|
46
|
+
edit: "Edit product category",
|
|
47
|
+
},
|
|
48
|
+
descriptions: {
|
|
49
|
+
create: "Create a category for organizing your product catalog.",
|
|
50
|
+
edit: "Update category hierarchy, slug, and active state.",
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
productCategoryForm: {
|
|
54
|
+
fields: {
|
|
55
|
+
name: "Name",
|
|
56
|
+
slug: "Slug",
|
|
57
|
+
parentCategory: "Parent category",
|
|
58
|
+
description: "Description",
|
|
59
|
+
sortOrder: "Sort order",
|
|
60
|
+
active: "Active",
|
|
61
|
+
},
|
|
62
|
+
placeholders: {
|
|
63
|
+
name: "Adventure",
|
|
64
|
+
slug: "adventure",
|
|
65
|
+
parentCategory: "Search parent category...",
|
|
66
|
+
description: "Category description...",
|
|
67
|
+
},
|
|
68
|
+
validation: {
|
|
69
|
+
nameRequired: "Category name is required.",
|
|
70
|
+
slugRequired: "Category slug is required.",
|
|
71
|
+
saveFailed: "Failed to save product category.",
|
|
72
|
+
},
|
|
73
|
+
actions: {
|
|
74
|
+
createCategory: "Create category",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
productCategoryList: {
|
|
78
|
+
searchPlaceholder: "Search product categories...",
|
|
79
|
+
addCategory: "Add category",
|
|
80
|
+
columns: {
|
|
81
|
+
name: "Name",
|
|
82
|
+
slug: "Slug",
|
|
83
|
+
parent: "Parent",
|
|
84
|
+
status: "Status",
|
|
85
|
+
actions: "Actions",
|
|
86
|
+
},
|
|
87
|
+
loadingError: "Failed to load product categories.",
|
|
88
|
+
empty: "No product categories found.",
|
|
89
|
+
edit: "Edit",
|
|
90
|
+
delete: "Delete",
|
|
91
|
+
deleteConfirm: "Delete this product category?",
|
|
92
|
+
showingSummary: "Showing {count} of {total}",
|
|
93
|
+
},
|
|
94
|
+
productTagDialog: {
|
|
95
|
+
titles: {
|
|
96
|
+
create: "New product tag",
|
|
97
|
+
edit: "Edit product tag",
|
|
98
|
+
},
|
|
99
|
+
descriptions: {
|
|
100
|
+
create: "Create a reusable tag for filtering and classification.",
|
|
101
|
+
edit: "Update the tag used to label and filter products.",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
productTagForm: {
|
|
105
|
+
fields: {
|
|
106
|
+
name: "Name",
|
|
107
|
+
},
|
|
108
|
+
placeholders: {
|
|
109
|
+
name: "Family Friendly",
|
|
110
|
+
},
|
|
111
|
+
validation: {
|
|
112
|
+
nameRequired: "Tag name is required.",
|
|
113
|
+
saveFailed: "Failed to save product tag.",
|
|
114
|
+
},
|
|
115
|
+
actions: {
|
|
116
|
+
createTag: "Create tag",
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
productTagList: {
|
|
120
|
+
searchPlaceholder: "Search product tags...",
|
|
121
|
+
addTag: "Add tag",
|
|
122
|
+
columns: {
|
|
123
|
+
name: "Name",
|
|
124
|
+
actions: "Actions",
|
|
125
|
+
},
|
|
126
|
+
loadingError: "Failed to load product tags.",
|
|
127
|
+
empty: "No product tags found.",
|
|
128
|
+
edit: "Edit",
|
|
129
|
+
delete: "Delete",
|
|
130
|
+
deleteConfirm: "Delete this product tag?",
|
|
131
|
+
showingSummary: "Showing {count} of {total}",
|
|
132
|
+
},
|
|
133
|
+
productMediaDialog: {
|
|
134
|
+
titles: {
|
|
135
|
+
create: "Add media",
|
|
136
|
+
edit: "Edit media",
|
|
137
|
+
},
|
|
138
|
+
descriptions: {
|
|
139
|
+
create: "Register a product or day-level media item by URL.",
|
|
140
|
+
edit: "Update metadata, sorting, and cover behavior for this media item.",
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
productMediaForm: {
|
|
144
|
+
fields: {
|
|
145
|
+
mediaType: "Media type",
|
|
146
|
+
name: "Name",
|
|
147
|
+
url: "URL",
|
|
148
|
+
storageKey: "Storage key",
|
|
149
|
+
mimeType: "MIME type",
|
|
150
|
+
fileSize: "File size",
|
|
151
|
+
sortOrder: "Sort order",
|
|
152
|
+
coverMedia: "Cover media",
|
|
153
|
+
altText: "Alt text",
|
|
154
|
+
},
|
|
155
|
+
placeholders: {
|
|
156
|
+
name: "Hero image",
|
|
157
|
+
url: "https://example.com/media/hero.jpg",
|
|
158
|
+
mimeType: "image/jpeg",
|
|
159
|
+
altText: "Short accessibility description",
|
|
160
|
+
},
|
|
161
|
+
validation: {
|
|
162
|
+
nameRequired: "Media name is required.",
|
|
163
|
+
urlRequired: "Media URL is required.",
|
|
164
|
+
saveFailed: "Failed to save media.",
|
|
165
|
+
},
|
|
166
|
+
actions: {
|
|
167
|
+
addMedia: "Add media",
|
|
168
|
+
saveMedia: "Save media",
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
productMediaSection: {
|
|
172
|
+
titles: {
|
|
173
|
+
media: "Media",
|
|
174
|
+
dayMedia: "Day media",
|
|
175
|
+
},
|
|
176
|
+
descriptions: {
|
|
177
|
+
media: "Manage product-level media assets and cover selection.",
|
|
178
|
+
dayMedia: "Manage media attached to this itinerary day.",
|
|
179
|
+
},
|
|
180
|
+
actions: {
|
|
181
|
+
upload: "Upload",
|
|
182
|
+
addMedia: "Add media",
|
|
183
|
+
markCover: "Mark as cover",
|
|
184
|
+
edit: "Edit",
|
|
185
|
+
delete: "Delete",
|
|
186
|
+
},
|
|
187
|
+
loadingError: "Failed to load media.",
|
|
188
|
+
empty: "No media items configured yet.",
|
|
189
|
+
uploadFailed: "Failed to upload media.",
|
|
190
|
+
deleteConfirm: "Delete this media item?",
|
|
191
|
+
coverBadge: "Cover",
|
|
192
|
+
columns: {
|
|
193
|
+
name: "Name",
|
|
194
|
+
type: "Type",
|
|
195
|
+
url: "URL",
|
|
196
|
+
sort: "Sort",
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
productDayDialog: {
|
|
200
|
+
titles: {
|
|
201
|
+
create: "Add itinerary day",
|
|
202
|
+
edit: "Edit itinerary day",
|
|
203
|
+
},
|
|
204
|
+
descriptions: {
|
|
205
|
+
create: "Create a structured day in the product itinerary.",
|
|
206
|
+
edit: "Update the title, location, and overview for this day.",
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
productDayForm: {
|
|
210
|
+
fields: {
|
|
211
|
+
dayNumber: "Day number",
|
|
212
|
+
location: "Location",
|
|
213
|
+
title: "Title",
|
|
214
|
+
description: "Description",
|
|
215
|
+
},
|
|
216
|
+
placeholders: {
|
|
217
|
+
location: "Dubrovnik",
|
|
218
|
+
title: "Arrival in Dubrovnik",
|
|
219
|
+
description: "Overview and activities for this day",
|
|
220
|
+
},
|
|
221
|
+
validation: {
|
|
222
|
+
dayNumberMin: "Day number must be at least 1.",
|
|
223
|
+
saveFailed: "Failed to save day.",
|
|
224
|
+
},
|
|
225
|
+
actions: {
|
|
226
|
+
addDay: "Add day",
|
|
227
|
+
saveDay: "Save day",
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
productItineraryDialog: {
|
|
231
|
+
titles: {
|
|
232
|
+
create: "New itinerary",
|
|
233
|
+
edit: "Rename itinerary",
|
|
234
|
+
},
|
|
235
|
+
descriptions: {
|
|
236
|
+
create: "Add another itinerary variant for this product.",
|
|
237
|
+
edit: "Update the itinerary name and default state.",
|
|
238
|
+
},
|
|
239
|
+
fields: {
|
|
240
|
+
name: "Name",
|
|
241
|
+
defaultItinerary: "Set as default itinerary",
|
|
242
|
+
notesDefaultLocked: "This is the default. Set another itinerary as default to change it.",
|
|
243
|
+
notesFirstDefault: "The first itinerary is automatically the default.",
|
|
244
|
+
},
|
|
245
|
+
placeholders: {
|
|
246
|
+
name: "e.g. Main itinerary, Family variant",
|
|
247
|
+
},
|
|
248
|
+
validation: {
|
|
249
|
+
nameRequired: "Name is required",
|
|
250
|
+
saveFailed: "Failed to save itinerary.",
|
|
251
|
+
},
|
|
252
|
+
actions: {
|
|
253
|
+
createItinerary: "Create itinerary",
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
optionUnitDialog: {
|
|
257
|
+
titles: {
|
|
258
|
+
create: "New option unit",
|
|
259
|
+
edit: "Edit option unit",
|
|
260
|
+
},
|
|
261
|
+
descriptions: {
|
|
262
|
+
create: "Create a selectable unit under this option.",
|
|
263
|
+
edit: "Update unit constraints, quantity limits, and occupancy rules.",
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
optionUnitForm: {
|
|
267
|
+
fields: {
|
|
268
|
+
name: "Name",
|
|
269
|
+
code: "Code",
|
|
270
|
+
unitType: "Unit type",
|
|
271
|
+
sortOrder: "Sort order",
|
|
272
|
+
minQuantity: "Min quantity",
|
|
273
|
+
maxQuantity: "Max quantity",
|
|
274
|
+
minAge: "Min age",
|
|
275
|
+
maxAge: "Max age",
|
|
276
|
+
occupancyMin: "Occupancy min",
|
|
277
|
+
occupancyMax: "Occupancy max",
|
|
278
|
+
description: "Description",
|
|
279
|
+
required: "Required",
|
|
280
|
+
hidden: "Hidden",
|
|
281
|
+
},
|
|
282
|
+
placeholders: {
|
|
283
|
+
name: "Adult",
|
|
284
|
+
code: "adult",
|
|
285
|
+
description: "Optional unit description",
|
|
286
|
+
},
|
|
287
|
+
validation: {
|
|
288
|
+
nameRequired: "Unit name is required.",
|
|
289
|
+
saveFailed: "Failed to save option unit.",
|
|
290
|
+
},
|
|
291
|
+
actions: {
|
|
292
|
+
createUnit: "Create unit",
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
productVersionDialog: {
|
|
296
|
+
title: "Create version snapshot",
|
|
297
|
+
description: "Save the current product state, including itinerary and option structure, as a new version.",
|
|
298
|
+
fields: {
|
|
299
|
+
notes: "Notes",
|
|
300
|
+
},
|
|
301
|
+
placeholders: {
|
|
302
|
+
notes: "What changed in this version?",
|
|
303
|
+
},
|
|
304
|
+
validation: {
|
|
305
|
+
saveFailed: "Failed to create version snapshot.",
|
|
306
|
+
},
|
|
307
|
+
actions: {
|
|
308
|
+
createVersion: "Create version",
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
productVersionsSection: {
|
|
312
|
+
titles: {
|
|
313
|
+
default: "Versions",
|
|
314
|
+
},
|
|
315
|
+
descriptions: {
|
|
316
|
+
default: "Create and browse immutable product snapshots.",
|
|
317
|
+
},
|
|
318
|
+
actions: {
|
|
319
|
+
createVersion: "Create version",
|
|
320
|
+
},
|
|
321
|
+
loadingError: "Failed to load product versions.",
|
|
322
|
+
empty: "No version snapshots created yet.",
|
|
323
|
+
versionLabel: "Version",
|
|
324
|
+
},
|
|
325
|
+
productOptionDialog: {
|
|
326
|
+
titles: {
|
|
327
|
+
create: "New option",
|
|
328
|
+
edit: "Edit option",
|
|
329
|
+
},
|
|
330
|
+
descriptions: {
|
|
331
|
+
create: "Create a reusable option under this product.",
|
|
332
|
+
edit: "Update option availability, ordering, and default behavior.",
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
productOptionForm: {
|
|
336
|
+
fields: {
|
|
337
|
+
name: "Name",
|
|
338
|
+
code: "Code",
|
|
339
|
+
description: "Description",
|
|
340
|
+
status: "Status",
|
|
341
|
+
sortOrder: "Sort order",
|
|
342
|
+
availableFrom: "Available from",
|
|
343
|
+
availableTo: "Available to",
|
|
344
|
+
defaultOption: "Default option",
|
|
345
|
+
},
|
|
346
|
+
placeholders: {
|
|
347
|
+
name: "Single room",
|
|
348
|
+
code: "single-room",
|
|
349
|
+
description: "Optional option description",
|
|
350
|
+
availableFrom: "Select start date",
|
|
351
|
+
availableTo: "Select end date",
|
|
352
|
+
},
|
|
353
|
+
validation: {
|
|
354
|
+
nameRequired: "Option name is required.",
|
|
355
|
+
saveFailed: "Failed to save product option.",
|
|
356
|
+
},
|
|
357
|
+
actions: {
|
|
358
|
+
createOption: "Create option",
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
productOptionsSection: {
|
|
362
|
+
titles: {
|
|
363
|
+
default: "Options and units",
|
|
364
|
+
units: "Units",
|
|
365
|
+
},
|
|
366
|
+
descriptions: {
|
|
367
|
+
default: "Manage option variants and the units available under each option.",
|
|
368
|
+
units: "Configure the selectable units that belong to this option.",
|
|
369
|
+
},
|
|
370
|
+
actions: {
|
|
371
|
+
addOption: "Add option",
|
|
372
|
+
addUnit: "Add unit",
|
|
373
|
+
duplicate: "Duplicate option",
|
|
374
|
+
edit: "Edit",
|
|
375
|
+
delete: "Delete",
|
|
376
|
+
},
|
|
377
|
+
loadingError: {
|
|
378
|
+
options: "Failed to load product options.",
|
|
379
|
+
units: "Failed to load option units.",
|
|
380
|
+
},
|
|
381
|
+
empty: {
|
|
382
|
+
options: "No options configured for this product.",
|
|
383
|
+
units: "No units configured for this option.",
|
|
384
|
+
},
|
|
385
|
+
deleteConfirm: {
|
|
386
|
+
option: 'Delete option "{name}" and all its units?',
|
|
387
|
+
unit: 'Delete unit "{name}"?',
|
|
388
|
+
},
|
|
389
|
+
columns: {
|
|
390
|
+
unitType: "Type",
|
|
391
|
+
unitName: "Name",
|
|
392
|
+
quantity: "Quantity",
|
|
393
|
+
age: "Age",
|
|
394
|
+
occupancy: "Occupancy",
|
|
395
|
+
actions: "Actions",
|
|
396
|
+
},
|
|
397
|
+
badges: {
|
|
398
|
+
defaultOption: "Default",
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { productsUiEn } from "./en";
|
|
2
|
+
export type { ProductsUiMessages } from "./messages";
|
|
3
|
+
export { getProductsUiI18n, type ProductsUiMessageOverrides, ProductsUiMessagesProvider, productsUiMessageDefinitions, resolveProductsUiMessages, useProductsUiI18n, useProductsUiI18nOrDefault, useProductsUiMessages, useProductsUiMessagesOrDefault, } from "./provider";
|
|
4
|
+
export { productsUiRo } from "./ro";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EACL,iBAAiB,EACjB,KAAK,0BAA0B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { productsUiEn } from "./en";
|
|
2
|
+
export { getProductsUiI18n, ProductsUiMessagesProvider, productsUiMessageDefinitions, resolveProductsUiMessages, useProductsUiI18n, useProductsUiI18nOrDefault, useProductsUiMessages, useProductsUiMessagesOrDefault, } from "./provider";
|
|
3
|
+
export { productsUiRo } from "./ro";
|