@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.
Files changed (64) hide show
  1. package/LICENSE +201 -109
  2. package/README.md +11 -0
  3. package/dist/components/option-unit-dialog.d.ts.map +1 -1
  4. package/dist/components/option-unit-dialog.js +7 -3
  5. package/dist/components/option-unit-form.d.ts.map +1 -1
  6. package/dist/components/option-unit-form.js +16 -9
  7. package/dist/components/product-category-combobox.d.ts.map +1 -1
  8. package/dist/components/product-category-combobox.js +6 -4
  9. package/dist/components/product-category-dialog.d.ts.map +1 -1
  10. package/dist/components/product-category-dialog.js +7 -3
  11. package/dist/components/product-category-form.d.ts.map +1 -1
  12. package/dist/components/product-category-form.js +8 -4
  13. package/dist/components/product-category-list.d.ts.map +1 -1
  14. package/dist/components/product-category-list.js +11 -5
  15. package/dist/components/product-day-dialog.d.ts.map +1 -1
  16. package/dist/components/product-day-dialog.js +7 -3
  17. package/dist/components/product-day-form.d.ts.map +1 -1
  18. package/dist/components/product-day-form.js +9 -3
  19. package/dist/components/product-itinerary-dialog.d.ts.map +1 -1
  20. package/dist/components/product-itinerary-dialog.js +13 -5
  21. package/dist/components/product-media-dialog.d.ts.map +1 -1
  22. package/dist/components/product-media-dialog.js +7 -3
  23. package/dist/components/product-media-form.d.ts.map +1 -1
  24. package/dist/components/product-media-form.js +16 -7
  25. package/dist/components/product-media-section.d.ts.map +1 -1
  26. package/dist/components/product-media-section.js +19 -11
  27. package/dist/components/product-option-dialog.d.ts.map +1 -1
  28. package/dist/components/product-option-dialog.js +7 -3
  29. package/dist/components/product-option-form.d.ts.map +1 -1
  30. package/dist/components/product-option-form.js +11 -8
  31. package/dist/components/product-options-section.d.ts.map +1 -1
  32. package/dist/components/product-options-section.js +17 -13
  33. package/dist/components/product-tag-dialog.d.ts.map +1 -1
  34. package/dist/components/product-tag-dialog.js +7 -3
  35. package/dist/components/product-tag-form.d.ts.map +1 -1
  36. package/dist/components/product-tag-form.js +7 -3
  37. package/dist/components/product-tag-list.d.ts.map +1 -1
  38. package/dist/components/product-tag-list.js +9 -5
  39. package/dist/components/product-type-combobox.d.ts +1 -1
  40. package/dist/components/product-type-combobox.d.ts.map +1 -1
  41. package/dist/components/product-type-combobox.js +6 -2
  42. package/dist/components/product-version-dialog.d.ts.map +1 -1
  43. package/dist/components/product-version-dialog.js +5 -3
  44. package/dist/components/product-versions-section.d.ts.map +1 -1
  45. package/dist/components/product-versions-section.js +7 -2
  46. package/dist/i18n/en.d.ts +402 -0
  47. package/dist/i18n/en.d.ts.map +1 -0
  48. package/dist/i18n/en.js +401 -0
  49. package/dist/i18n/index.d.ts +5 -0
  50. package/dist/i18n/index.d.ts.map +1 -0
  51. package/dist/i18n/index.js +3 -0
  52. package/dist/i18n/messages.d.ts +402 -0
  53. package/dist/i18n/messages.d.ts.map +1 -0
  54. package/dist/i18n/messages.js +1 -0
  55. package/dist/i18n/provider.d.ts +826 -0
  56. package/dist/i18n/provider.d.ts.map +1 -0
  57. package/dist/i18n/provider.js +44 -0
  58. package/dist/i18n/ro.d.ts +402 -0
  59. package/dist/i18n/ro.d.ts.map +1 -0
  60. package/dist/i18n/ro.js +401 -0
  61. package/dist/index.d.ts +2 -0
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/index.js +1 -0
  64. package/package.json +35 -14
@@ -0,0 +1,826 @@
1
+ import { type LocaleMessageOverrides, type PackageI18nValue } from "@voyantjs/i18n";
2
+ import type { ReactNode } from "react";
3
+ import type { ProductsUiMessages } from "./messages";
4
+ export declare const productsUiMessageDefinitions: {
5
+ en: {
6
+ common: {
7
+ cancel: string;
8
+ saveChanges: string;
9
+ create: string;
10
+ add: string;
11
+ loading: string;
12
+ none: string;
13
+ previous: string;
14
+ next: string;
15
+ page: string;
16
+ active: string;
17
+ inactive: string;
18
+ mediaTypeLabels: {
19
+ image: string;
20
+ video: string;
21
+ document: string;
22
+ };
23
+ optionUnitTypeLabels: {
24
+ person: string;
25
+ group: string;
26
+ room: string;
27
+ vehicle: string;
28
+ service: string;
29
+ other: string;
30
+ };
31
+ optionStatusLabels: {
32
+ draft: string;
33
+ active: string;
34
+ archived: string;
35
+ };
36
+ };
37
+ comboboxes: {
38
+ productCategory: {
39
+ placeholder: string;
40
+ empty: string;
41
+ };
42
+ productType: {
43
+ placeholder: string;
44
+ empty: string;
45
+ };
46
+ };
47
+ productCategoryDialog: {
48
+ titles: {
49
+ create: string;
50
+ edit: string;
51
+ };
52
+ descriptions: {
53
+ create: string;
54
+ edit: string;
55
+ };
56
+ };
57
+ productCategoryForm: {
58
+ fields: {
59
+ name: string;
60
+ slug: string;
61
+ parentCategory: string;
62
+ description: string;
63
+ sortOrder: string;
64
+ active: string;
65
+ };
66
+ placeholders: {
67
+ name: string;
68
+ slug: string;
69
+ parentCategory: string;
70
+ description: string;
71
+ };
72
+ validation: {
73
+ nameRequired: string;
74
+ slugRequired: string;
75
+ saveFailed: string;
76
+ };
77
+ actions: {
78
+ createCategory: string;
79
+ };
80
+ };
81
+ productCategoryList: {
82
+ searchPlaceholder: string;
83
+ addCategory: string;
84
+ columns: {
85
+ name: string;
86
+ slug: string;
87
+ parent: string;
88
+ status: string;
89
+ actions: string;
90
+ };
91
+ loadingError: string;
92
+ empty: string;
93
+ edit: string;
94
+ delete: string;
95
+ deleteConfirm: string;
96
+ showingSummary: string;
97
+ };
98
+ productTagDialog: {
99
+ titles: {
100
+ create: string;
101
+ edit: string;
102
+ };
103
+ descriptions: {
104
+ create: string;
105
+ edit: string;
106
+ };
107
+ };
108
+ productTagForm: {
109
+ fields: {
110
+ name: string;
111
+ };
112
+ placeholders: {
113
+ name: string;
114
+ };
115
+ validation: {
116
+ nameRequired: string;
117
+ saveFailed: string;
118
+ };
119
+ actions: {
120
+ createTag: string;
121
+ };
122
+ };
123
+ productTagList: {
124
+ searchPlaceholder: string;
125
+ addTag: string;
126
+ columns: {
127
+ name: string;
128
+ actions: string;
129
+ };
130
+ loadingError: string;
131
+ empty: string;
132
+ edit: string;
133
+ delete: string;
134
+ deleteConfirm: string;
135
+ showingSummary: string;
136
+ };
137
+ productMediaDialog: {
138
+ titles: {
139
+ create: string;
140
+ edit: string;
141
+ };
142
+ descriptions: {
143
+ create: string;
144
+ edit: string;
145
+ };
146
+ };
147
+ productMediaForm: {
148
+ fields: {
149
+ mediaType: string;
150
+ name: string;
151
+ url: string;
152
+ storageKey: string;
153
+ mimeType: string;
154
+ fileSize: string;
155
+ sortOrder: string;
156
+ coverMedia: string;
157
+ altText: string;
158
+ };
159
+ placeholders: {
160
+ name: string;
161
+ url: string;
162
+ mimeType: string;
163
+ altText: string;
164
+ };
165
+ validation: {
166
+ nameRequired: string;
167
+ urlRequired: string;
168
+ saveFailed: string;
169
+ };
170
+ actions: {
171
+ addMedia: string;
172
+ saveMedia: string;
173
+ };
174
+ };
175
+ productMediaSection: {
176
+ titles: {
177
+ media: string;
178
+ dayMedia: string;
179
+ };
180
+ descriptions: {
181
+ media: string;
182
+ dayMedia: string;
183
+ };
184
+ actions: {
185
+ upload: string;
186
+ addMedia: string;
187
+ markCover: string;
188
+ edit: string;
189
+ delete: string;
190
+ };
191
+ loadingError: string;
192
+ empty: string;
193
+ uploadFailed: string;
194
+ deleteConfirm: string;
195
+ coverBadge: string;
196
+ columns: {
197
+ name: string;
198
+ type: string;
199
+ url: string;
200
+ sort: string;
201
+ };
202
+ };
203
+ productDayDialog: {
204
+ titles: {
205
+ create: string;
206
+ edit: string;
207
+ };
208
+ descriptions: {
209
+ create: string;
210
+ edit: string;
211
+ };
212
+ };
213
+ productDayForm: {
214
+ fields: {
215
+ dayNumber: string;
216
+ location: string;
217
+ title: string;
218
+ description: string;
219
+ };
220
+ placeholders: {
221
+ location: string;
222
+ title: string;
223
+ description: string;
224
+ };
225
+ validation: {
226
+ dayNumberMin: string;
227
+ saveFailed: string;
228
+ };
229
+ actions: {
230
+ addDay: string;
231
+ saveDay: string;
232
+ };
233
+ };
234
+ productItineraryDialog: {
235
+ titles: {
236
+ create: string;
237
+ edit: string;
238
+ };
239
+ descriptions: {
240
+ create: string;
241
+ edit: string;
242
+ };
243
+ fields: {
244
+ name: string;
245
+ defaultItinerary: string;
246
+ notesDefaultLocked: string;
247
+ notesFirstDefault: string;
248
+ };
249
+ placeholders: {
250
+ name: string;
251
+ };
252
+ validation: {
253
+ nameRequired: string;
254
+ saveFailed: string;
255
+ };
256
+ actions: {
257
+ createItinerary: string;
258
+ };
259
+ };
260
+ optionUnitDialog: {
261
+ titles: {
262
+ create: string;
263
+ edit: string;
264
+ };
265
+ descriptions: {
266
+ create: string;
267
+ edit: string;
268
+ };
269
+ };
270
+ optionUnitForm: {
271
+ fields: {
272
+ name: string;
273
+ code: string;
274
+ unitType: string;
275
+ sortOrder: string;
276
+ minQuantity: string;
277
+ maxQuantity: string;
278
+ minAge: string;
279
+ maxAge: string;
280
+ occupancyMin: string;
281
+ occupancyMax: string;
282
+ description: string;
283
+ required: string;
284
+ hidden: string;
285
+ };
286
+ placeholders: {
287
+ name: string;
288
+ code: string;
289
+ description: string;
290
+ };
291
+ validation: {
292
+ nameRequired: string;
293
+ saveFailed: string;
294
+ };
295
+ actions: {
296
+ createUnit: string;
297
+ };
298
+ };
299
+ productVersionDialog: {
300
+ title: string;
301
+ description: string;
302
+ fields: {
303
+ notes: string;
304
+ };
305
+ placeholders: {
306
+ notes: string;
307
+ };
308
+ validation: {
309
+ saveFailed: string;
310
+ };
311
+ actions: {
312
+ createVersion: string;
313
+ };
314
+ };
315
+ productVersionsSection: {
316
+ titles: {
317
+ default: string;
318
+ };
319
+ descriptions: {
320
+ default: string;
321
+ };
322
+ actions: {
323
+ createVersion: string;
324
+ };
325
+ loadingError: string;
326
+ empty: string;
327
+ versionLabel: string;
328
+ };
329
+ productOptionDialog: {
330
+ titles: {
331
+ create: string;
332
+ edit: string;
333
+ };
334
+ descriptions: {
335
+ create: string;
336
+ edit: string;
337
+ };
338
+ };
339
+ productOptionForm: {
340
+ fields: {
341
+ name: string;
342
+ code: string;
343
+ description: string;
344
+ status: string;
345
+ sortOrder: string;
346
+ availableFrom: string;
347
+ availableTo: string;
348
+ defaultOption: string;
349
+ };
350
+ placeholders: {
351
+ name: string;
352
+ code: string;
353
+ description: string;
354
+ availableFrom: string;
355
+ availableTo: string;
356
+ };
357
+ validation: {
358
+ nameRequired: string;
359
+ saveFailed: string;
360
+ };
361
+ actions: {
362
+ createOption: string;
363
+ };
364
+ };
365
+ productOptionsSection: {
366
+ titles: {
367
+ default: string;
368
+ units: string;
369
+ };
370
+ descriptions: {
371
+ default: string;
372
+ units: string;
373
+ };
374
+ actions: {
375
+ addOption: string;
376
+ addUnit: string;
377
+ duplicate: string;
378
+ edit: string;
379
+ delete: string;
380
+ };
381
+ loadingError: {
382
+ options: string;
383
+ units: string;
384
+ };
385
+ empty: {
386
+ options: string;
387
+ units: string;
388
+ };
389
+ deleteConfirm: {
390
+ option: string;
391
+ unit: string;
392
+ };
393
+ columns: {
394
+ unitType: string;
395
+ unitName: string;
396
+ quantity: string;
397
+ age: string;
398
+ occupancy: string;
399
+ actions: string;
400
+ };
401
+ badges: {
402
+ defaultOption: string;
403
+ };
404
+ };
405
+ };
406
+ ro: {
407
+ common: {
408
+ cancel: string;
409
+ saveChanges: string;
410
+ create: string;
411
+ add: string;
412
+ loading: string;
413
+ none: string;
414
+ previous: string;
415
+ next: string;
416
+ page: string;
417
+ active: string;
418
+ inactive: string;
419
+ mediaTypeLabels: {
420
+ image: string;
421
+ video: string;
422
+ document: string;
423
+ };
424
+ optionUnitTypeLabels: {
425
+ person: string;
426
+ group: string;
427
+ room: string;
428
+ vehicle: string;
429
+ service: string;
430
+ other: string;
431
+ };
432
+ optionStatusLabels: {
433
+ draft: string;
434
+ active: string;
435
+ archived: string;
436
+ };
437
+ };
438
+ comboboxes: {
439
+ productCategory: {
440
+ placeholder: string;
441
+ empty: string;
442
+ };
443
+ productType: {
444
+ placeholder: string;
445
+ empty: string;
446
+ };
447
+ };
448
+ productCategoryDialog: {
449
+ titles: {
450
+ create: string;
451
+ edit: string;
452
+ };
453
+ descriptions: {
454
+ create: string;
455
+ edit: string;
456
+ };
457
+ };
458
+ productCategoryForm: {
459
+ fields: {
460
+ name: string;
461
+ slug: string;
462
+ parentCategory: string;
463
+ description: string;
464
+ sortOrder: string;
465
+ active: string;
466
+ };
467
+ placeholders: {
468
+ name: string;
469
+ slug: string;
470
+ parentCategory: string;
471
+ description: string;
472
+ };
473
+ validation: {
474
+ nameRequired: string;
475
+ slugRequired: string;
476
+ saveFailed: string;
477
+ };
478
+ actions: {
479
+ createCategory: string;
480
+ };
481
+ };
482
+ productCategoryList: {
483
+ searchPlaceholder: string;
484
+ addCategory: string;
485
+ columns: {
486
+ name: string;
487
+ slug: string;
488
+ parent: string;
489
+ status: string;
490
+ actions: string;
491
+ };
492
+ loadingError: string;
493
+ empty: string;
494
+ edit: string;
495
+ delete: string;
496
+ deleteConfirm: string;
497
+ showingSummary: string;
498
+ };
499
+ productTagDialog: {
500
+ titles: {
501
+ create: string;
502
+ edit: string;
503
+ };
504
+ descriptions: {
505
+ create: string;
506
+ edit: string;
507
+ };
508
+ };
509
+ productTagForm: {
510
+ fields: {
511
+ name: string;
512
+ };
513
+ placeholders: {
514
+ name: string;
515
+ };
516
+ validation: {
517
+ nameRequired: string;
518
+ saveFailed: string;
519
+ };
520
+ actions: {
521
+ createTag: string;
522
+ };
523
+ };
524
+ productTagList: {
525
+ searchPlaceholder: string;
526
+ addTag: string;
527
+ columns: {
528
+ name: string;
529
+ actions: string;
530
+ };
531
+ loadingError: string;
532
+ empty: string;
533
+ edit: string;
534
+ delete: string;
535
+ deleteConfirm: string;
536
+ showingSummary: string;
537
+ };
538
+ productMediaDialog: {
539
+ titles: {
540
+ create: string;
541
+ edit: string;
542
+ };
543
+ descriptions: {
544
+ create: string;
545
+ edit: string;
546
+ };
547
+ };
548
+ productMediaForm: {
549
+ fields: {
550
+ mediaType: string;
551
+ name: string;
552
+ url: string;
553
+ storageKey: string;
554
+ mimeType: string;
555
+ fileSize: string;
556
+ sortOrder: string;
557
+ coverMedia: string;
558
+ altText: string;
559
+ };
560
+ placeholders: {
561
+ name: string;
562
+ url: string;
563
+ mimeType: string;
564
+ altText: string;
565
+ };
566
+ validation: {
567
+ nameRequired: string;
568
+ urlRequired: string;
569
+ saveFailed: string;
570
+ };
571
+ actions: {
572
+ addMedia: string;
573
+ saveMedia: string;
574
+ };
575
+ };
576
+ productMediaSection: {
577
+ titles: {
578
+ media: string;
579
+ dayMedia: string;
580
+ };
581
+ descriptions: {
582
+ media: string;
583
+ dayMedia: string;
584
+ };
585
+ actions: {
586
+ upload: string;
587
+ addMedia: string;
588
+ markCover: string;
589
+ edit: string;
590
+ delete: string;
591
+ };
592
+ loadingError: string;
593
+ empty: string;
594
+ uploadFailed: string;
595
+ deleteConfirm: string;
596
+ coverBadge: string;
597
+ columns: {
598
+ name: string;
599
+ type: string;
600
+ url: string;
601
+ sort: string;
602
+ };
603
+ };
604
+ productDayDialog: {
605
+ titles: {
606
+ create: string;
607
+ edit: string;
608
+ };
609
+ descriptions: {
610
+ create: string;
611
+ edit: string;
612
+ };
613
+ };
614
+ productDayForm: {
615
+ fields: {
616
+ dayNumber: string;
617
+ location: string;
618
+ title: string;
619
+ description: string;
620
+ };
621
+ placeholders: {
622
+ location: string;
623
+ title: string;
624
+ description: string;
625
+ };
626
+ validation: {
627
+ dayNumberMin: string;
628
+ saveFailed: string;
629
+ };
630
+ actions: {
631
+ addDay: string;
632
+ saveDay: string;
633
+ };
634
+ };
635
+ productItineraryDialog: {
636
+ titles: {
637
+ create: string;
638
+ edit: string;
639
+ };
640
+ descriptions: {
641
+ create: string;
642
+ edit: string;
643
+ };
644
+ fields: {
645
+ name: string;
646
+ defaultItinerary: string;
647
+ notesDefaultLocked: string;
648
+ notesFirstDefault: string;
649
+ };
650
+ placeholders: {
651
+ name: string;
652
+ };
653
+ validation: {
654
+ nameRequired: string;
655
+ saveFailed: string;
656
+ };
657
+ actions: {
658
+ createItinerary: string;
659
+ };
660
+ };
661
+ optionUnitDialog: {
662
+ titles: {
663
+ create: string;
664
+ edit: string;
665
+ };
666
+ descriptions: {
667
+ create: string;
668
+ edit: string;
669
+ };
670
+ };
671
+ optionUnitForm: {
672
+ fields: {
673
+ name: string;
674
+ code: string;
675
+ unitType: string;
676
+ sortOrder: string;
677
+ minQuantity: string;
678
+ maxQuantity: string;
679
+ minAge: string;
680
+ maxAge: string;
681
+ occupancyMin: string;
682
+ occupancyMax: string;
683
+ description: string;
684
+ required: string;
685
+ hidden: string;
686
+ };
687
+ placeholders: {
688
+ name: string;
689
+ code: string;
690
+ description: string;
691
+ };
692
+ validation: {
693
+ nameRequired: string;
694
+ saveFailed: string;
695
+ };
696
+ actions: {
697
+ createUnit: string;
698
+ };
699
+ };
700
+ productVersionDialog: {
701
+ title: string;
702
+ description: string;
703
+ fields: {
704
+ notes: string;
705
+ };
706
+ placeholders: {
707
+ notes: string;
708
+ };
709
+ validation: {
710
+ saveFailed: string;
711
+ };
712
+ actions: {
713
+ createVersion: string;
714
+ };
715
+ };
716
+ productVersionsSection: {
717
+ titles: {
718
+ default: string;
719
+ };
720
+ descriptions: {
721
+ default: string;
722
+ };
723
+ actions: {
724
+ createVersion: string;
725
+ };
726
+ loadingError: string;
727
+ empty: string;
728
+ versionLabel: string;
729
+ };
730
+ productOptionDialog: {
731
+ titles: {
732
+ create: string;
733
+ edit: string;
734
+ };
735
+ descriptions: {
736
+ create: string;
737
+ edit: string;
738
+ };
739
+ };
740
+ productOptionForm: {
741
+ fields: {
742
+ name: string;
743
+ code: string;
744
+ description: string;
745
+ status: string;
746
+ sortOrder: string;
747
+ availableFrom: string;
748
+ availableTo: string;
749
+ defaultOption: string;
750
+ };
751
+ placeholders: {
752
+ name: string;
753
+ code: string;
754
+ description: string;
755
+ availableFrom: string;
756
+ availableTo: string;
757
+ };
758
+ validation: {
759
+ nameRequired: string;
760
+ saveFailed: string;
761
+ };
762
+ actions: {
763
+ createOption: string;
764
+ };
765
+ };
766
+ productOptionsSection: {
767
+ titles: {
768
+ default: string;
769
+ units: string;
770
+ };
771
+ descriptions: {
772
+ default: string;
773
+ units: string;
774
+ };
775
+ actions: {
776
+ addOption: string;
777
+ addUnit: string;
778
+ duplicate: string;
779
+ edit: string;
780
+ delete: string;
781
+ };
782
+ loadingError: {
783
+ options: string;
784
+ units: string;
785
+ };
786
+ empty: {
787
+ options: string;
788
+ units: string;
789
+ };
790
+ deleteConfirm: {
791
+ option: string;
792
+ unit: string;
793
+ };
794
+ columns: {
795
+ unitType: string;
796
+ unitName: string;
797
+ quantity: string;
798
+ age: string;
799
+ occupancy: string;
800
+ actions: string;
801
+ };
802
+ badges: {
803
+ defaultOption: string;
804
+ };
805
+ };
806
+ };
807
+ };
808
+ export type ProductsUiMessageOverrides = LocaleMessageOverrides<ProductsUiMessages>;
809
+ export declare function resolveProductsUiMessages({ locale, overrides, }: {
810
+ locale: string | null | undefined;
811
+ overrides?: ProductsUiMessageOverrides | null;
812
+ }): ProductsUiMessages;
813
+ export declare function getProductsUiI18n({ locale, overrides, }: {
814
+ locale?: string | null | undefined;
815
+ overrides?: ProductsUiMessageOverrides | null;
816
+ }): PackageI18nValue<ProductsUiMessages>;
817
+ export declare function ProductsUiMessagesProvider({ children, locale, overrides, }: {
818
+ children: ReactNode;
819
+ locale: string | null | undefined;
820
+ overrides?: ProductsUiMessageOverrides | null;
821
+ }): import("react/jsx-runtime").JSX.Element;
822
+ export declare const useProductsUiI18n: () => PackageI18nValue<ProductsUiMessages>;
823
+ export declare const useProductsUiMessages: () => ProductsUiMessages;
824
+ export declare function useProductsUiI18nOrDefault(): PackageI18nValue<ProductsUiMessages>;
825
+ export declare function useProductsUiMessagesOrDefault(): ProductsUiMessages;
826
+ //# sourceMappingURL=provider.d.ts.map