@feedmepos/mf-common 1.26.4 → 1.26.5

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/app.d.ts CHANGED
@@ -1,815 +1,13 @@
1
- import { type App } from "vue";
2
- import type { Router } from "vue-router";
3
- import { FeedMeAuth } from "@feedmepos/auth";
4
- import type { FeedMeI18nOptions } from "@feedmepos/i18n";
5
- import portalShellEnUS from "./locales/portalshell/en-US.json";
6
- import { useCoreStore } from "./store";
7
- import type { FmNamespace } from "@/store";
8
- export declare function initialize(clientId: string, namespace?: FmNamespace): void;
9
- export declare const onAuthStateChanged: typeof FeedMeAuth.onAuthStateChanged;
1
+ export { initialize, onAuthStateChanged, FeedMeAuth } from "./auth";
10
2
  export { baseClientInstance } from "./api";
11
- export { default as FmNavBar } from "./App.vue";
12
- export { useCoreStore, FeedMeAuth };
3
+ export { useCoreStore, FmpUser } from "./store";
13
4
  export { useCountry } from "./utils/country";
14
- export { FmpUser } from "./store";
15
- export { installRouteValidation, Permission, type ValidationManifest, type RouteValidationResult } from "./permission/permission";
16
- export { default as PermissionWrapper } from "./components/PermissionWrapper.vue";
17
- export { withPermission } from "./permission/permission";
18
- export declare const i18nMessages: {
19
- "en-US": {
20
- common: {
21
- yes: string;
22
- no: string;
23
- ok: string;
24
- accept: string;
25
- download: string;
26
- export: string;
27
- import: string;
28
- save: string;
29
- update: string;
30
- cancel: string;
31
- confirm: string;
32
- delete: string;
33
- edit: string;
34
- create: string;
35
- search: string;
36
- filter: string;
37
- sort: string;
38
- refresh: string;
39
- close: string;
40
- back: string;
41
- continue: string;
42
- next: string;
43
- previous: string;
44
- add: string;
45
- remove: string;
46
- select: string;
47
- selectAll: string;
48
- unselectAll: string;
49
- selected: string;
50
- };
51
- portalCommon: {
52
- dismiss: {
53
- title: string;
54
- message: string;
55
- primaryActions: string;
56
- };
57
- };
58
- portalshell: {
59
- menu: {
60
- account: string;
61
- business: string;
62
- myBusiness: string;
63
- manageAccount: string;
64
- country: {
65
- label: string;
66
- au: string;
67
- bn: string;
68
- my: string;
69
- sg: string;
70
- id: string;
71
- th: string;
72
- vn: string;
73
- ph: string;
74
- hk: string;
75
- mo: string;
76
- };
77
- language: string;
78
- logOut: string;
79
- debug: string;
80
- stopDebug: string;
81
- };
82
- apps: {
83
- section: {
84
- switchTo: string;
85
- devSpace: string;
86
- };
87
- actions: {
88
- settings: string;
89
- switchToV2: string;
90
- };
91
- pos: {
92
- label: string;
93
- sublabel: string;
94
- };
95
- connect: {
96
- label: string;
97
- sublabel: string;
98
- };
99
- report: {
100
- label: string;
101
- sublabel: string;
102
- };
103
- inventory: {
104
- label: string;
105
- sublabel: string;
106
- };
107
- brand: {
108
- label: string;
109
- sublabel: string;
110
- };
111
- payment: {
112
- label: string;
113
- sublabel: string;
114
- };
115
- settings: {
116
- label: string;
117
- };
118
- adminSpace: {
119
- label: string;
120
- sublabel: string;
121
- };
122
- };
123
- messages: {
124
- businessCopySuccess: string;
125
- restaurantCopySuccess: string;
126
- loadError: string;
127
- };
128
- selectBusiness: {
129
- title: string;
130
- searchPlaceholder: string;
131
- createBusiness: string;
132
- noBusiness: string;
133
- noBusinessFound: string;
134
- };
135
- myBusiness: {
136
- title: string;
137
- };
138
- debugUser: {
139
- title: string;
140
- subtitle: string;
141
- debug: string;
142
- phoneEmpty: string;
143
- debugFailed: string;
144
- stopDebugTitle: string;
145
- stopDebugMessage: string;
146
- stopDebugFailed: string;
147
- };
148
- logOut: {
149
- title: string;
150
- subtitle: string;
151
- logOut: string;
152
- };
153
- manageAccount: {
154
- title: string;
155
- basicInfo: string;
156
- name: string;
157
- email: string;
158
- phone: string;
159
- password: string;
160
- passwordSubtitle: string;
161
- changePassword: string;
162
- profileUpdated: string;
163
- failedToUpdateProfile: string;
164
- nameRequired: string;
165
- emailRequired: string;
166
- emailInvalid: string;
167
- };
168
- changePassword: {
169
- step1: {
170
- title: string;
171
- subtitle: string;
172
- currentPassword: string;
173
- forgotPassword: string;
174
- passwordConfirmed: string;
175
- passwordConfirmFailed: string;
176
- };
177
- step2: {
178
- title: string;
179
- newPassword: string;
180
- confirmNewPassword: string;
181
- changePassword: string;
182
- passwordChanged: string;
183
- failedToChangePassword: string;
184
- newPasswordRequired: string;
185
- passwordMustBeAtLeast8Characters: string;
186
- useAtLeast8Characters: string;
187
- passwordsDoNotMatch: string;
188
- };
189
- };
190
- customAttributes: {
191
- form: {
192
- key: string;
193
- value: string;
194
- valuePlaceholder: string;
195
- attributeValueMustBeNumber: string;
196
- noCustomAttributes: string;
197
- };
198
- queryBuilder: {
199
- any: string;
200
- noAttributeSettings: string;
201
- };
202
- };
203
- components: {
204
- restaurantSelector: {
205
- allRestaurants: string;
206
- restaurantCount: string;
207
- selectRestaurant: string;
208
- unknownRestaurant: string;
209
- restaurantTaggingFilter: string;
210
- resetFilter: string;
211
- };
212
- itemSelector: {
213
- productsSelected: string;
214
- expandAll: string;
215
- collapseAll: string;
216
- selectAll: string;
217
- };
218
- };
219
- };
220
- };
221
- "zh-CN": {
222
- common: {
223
- yes: string;
224
- no: string;
225
- ok: string;
226
- accept: string;
227
- download: string;
228
- export: string;
229
- import: string;
230
- save: string;
231
- update: string;
232
- cancel: string;
233
- confirm: string;
234
- delete: string;
235
- edit: string;
236
- create: string;
237
- search: string;
238
- filter: string;
239
- sort: string;
240
- refresh: string;
241
- close: string;
242
- back: string;
243
- continue: string;
244
- next: string;
245
- previous: string;
246
- add: string;
247
- remove: string;
248
- select: string;
249
- selectAll: string;
250
- unselectAll: string;
251
- selected: string;
252
- };
253
- portalCommon: {
254
- dismiss: {
255
- title: string;
256
- message: string;
257
- primaryActions: string;
258
- };
259
- };
260
- portalshell: {
261
- menu: {
262
- account: string;
263
- business: string;
264
- myBusiness: string;
265
- manageAccount: string;
266
- country: {
267
- label: string;
268
- au: string;
269
- bn: string;
270
- my: string;
271
- sg: string;
272
- id: string;
273
- th: string;
274
- vn: string;
275
- ph: string;
276
- hk: string;
277
- mo: string;
278
- };
279
- language: string;
280
- logOut: string;
281
- debug: string;
282
- stopDebug: string;
283
- };
284
- apps: {
285
- section: {
286
- switchTo: string;
287
- devSpace: string;
288
- };
289
- actions: {
290
- settings: string;
291
- switchToV2: string;
292
- };
293
- pos: {
294
- label: string;
295
- sublabel: string;
296
- };
297
- connect: {
298
- label: string;
299
- sublabel: string;
300
- };
301
- report: {
302
- label: string;
303
- sublabel: string;
304
- };
305
- inventory: {
306
- label: string;
307
- sublabel: string;
308
- };
309
- brand: {
310
- label: string;
311
- sublabel: string;
312
- };
313
- payment: {
314
- label: string;
315
- sublabel: string;
316
- };
317
- settings: {
318
- label: string;
319
- };
320
- adminSpace: {
321
- label: string;
322
- sublabel: string;
323
- };
324
- };
325
- messages: {
326
- businessCopySuccess: string;
327
- restaurantCopySuccess: string;
328
- };
329
- selectBusiness: {
330
- title: string;
331
- searchPlaceholder: string;
332
- createBusiness: string;
333
- noBusiness: string;
334
- noBusinessFound: string;
335
- };
336
- myBusiness: {
337
- title: string;
338
- };
339
- debugUser: {
340
- title: string;
341
- subtitle: string;
342
- debug: string;
343
- phoneEmpty: string;
344
- debugFailed: string;
345
- stopDebugTitle: string;
346
- stopDebugMessage: string;
347
- stopDebugFailed: string;
348
- };
349
- logOut: {
350
- title: string;
351
- subtitle: string;
352
- logOut: string;
353
- };
354
- manageAccount: {
355
- title: string;
356
- basicInfo: string;
357
- name: string;
358
- email: string;
359
- phone: string;
360
- password: string;
361
- passwordSubtitle: string;
362
- changePassword: string;
363
- profileUpdated: string;
364
- failedToUpdateProfile: string;
365
- nameRequired: string;
366
- emailRequired: string;
367
- emailInvalid: string;
368
- };
369
- changePassword: {
370
- step1: {
371
- title: string;
372
- subtitle: string;
373
- currentPassword: string;
374
- forgotPassword: string;
375
- passwordConfirmed: string;
376
- passwordConfirmFailed: string;
377
- };
378
- step2: {
379
- title: string;
380
- newPassword: string;
381
- confirmNewPassword: string;
382
- changePassword: string;
383
- passwordChanged: string;
384
- failedToChangePassword: string;
385
- newPasswordRequired: string;
386
- passwordMustBeAtLeast8Characters: string;
387
- useAtLeast8Characters: string;
388
- passwordsDoNotMatch: string;
389
- };
390
- };
391
- customAttributes: {
392
- form: {
393
- key: string;
394
- value: string;
395
- valuePlaceholder: string;
396
- attributeValueMustBeNumber: string;
397
- };
398
- queryBuilder: {
399
- any: string;
400
- noAttributeSettings: string;
401
- };
402
- };
403
- components: {
404
- restaurantSelector: {
405
- allRestaurants: string;
406
- restaurantCount: string;
407
- selectRestaurant: string;
408
- unknownRestaurant: string;
409
- restaurantTaggingFilter: string;
410
- resetFilter: string;
411
- };
412
- itemSelector: {
413
- productsSelected: string;
414
- expandAll: string;
415
- collapseAll: string;
416
- selectAll: string;
417
- };
418
- };
419
- };
420
- };
421
- "th-TH": {
422
- common: {
423
- yes: string;
424
- no: string;
425
- ok: string;
426
- accept: string;
427
- download: string;
428
- export: string;
429
- import: string;
430
- save: string;
431
- update: string;
432
- cancel: string;
433
- confirm: string;
434
- delete: string;
435
- edit: string;
436
- create: string;
437
- search: string;
438
- filter: string;
439
- sort: string;
440
- refresh: string;
441
- close: string;
442
- back: string;
443
- continue: string;
444
- next: string;
445
- previous: string;
446
- add: string;
447
- remove: string;
448
- select: string;
449
- selectAll: string;
450
- unselectAll: string;
451
- selected: string;
452
- };
453
- portalCommon: {
454
- dismiss: {
455
- title: string;
456
- message: string;
457
- primaryActions: string;
458
- };
459
- };
460
- portalshell: {
461
- menu: {
462
- account: string;
463
- business: string;
464
- myBusiness: string;
465
- manageAccount: string;
466
- country: {
467
- label: string;
468
- my: string;
469
- sg: string;
470
- id: string;
471
- th: string;
472
- vn: string;
473
- ph: string;
474
- hk: string;
475
- mo: string;
476
- };
477
- language: string;
478
- logOut: string;
479
- debug: string;
480
- stopDebug: string;
481
- };
482
- apps: {
483
- section: {
484
- switchTo: string;
485
- devSpace: string;
486
- };
487
- actions: {
488
- settings: string;
489
- switchToV2: string;
490
- };
491
- pos: {
492
- label: string;
493
- sublabel: string;
494
- };
495
- connect: {
496
- label: string;
497
- sublabel: string;
498
- };
499
- report: {
500
- label: string;
501
- sublabel: string;
502
- };
503
- inventory: {
504
- label: string;
505
- sublabel: string;
506
- };
507
- brand: {
508
- label: string;
509
- sublabel: string;
510
- };
511
- payment: {
512
- label: string;
513
- sublabel: string;
514
- };
515
- settings: {
516
- label: string;
517
- };
518
- adminSpace: {
519
- label: string;
520
- sublabel: string;
521
- };
522
- };
523
- messages: {
524
- businessCopySuccess: string;
525
- restaurantCopySuccess: string;
526
- loadError: string;
527
- };
528
- selectBusiness: {
529
- title: string;
530
- searchPlaceholder: string;
531
- createBusiness: string;
532
- noBusiness: string;
533
- noBusinessFound: string;
534
- };
535
- myBusiness: {
536
- title: string;
537
- };
538
- debugUser: {
539
- title: string;
540
- subtitle: string;
541
- debug: string;
542
- phoneEmpty: string;
543
- debugFailed: string;
544
- stopDebugTitle: string;
545
- stopDebugMessage: string;
546
- stopDebugFailed: string;
547
- };
548
- logOut: {
549
- title: string;
550
- subtitle: string;
551
- logOut: string;
552
- };
553
- manageAccount: {
554
- title: string;
555
- basicInfo: string;
556
- name: string;
557
- email: string;
558
- phone: string;
559
- password: string;
560
- passwordSubtitle: string;
561
- changePassword: string;
562
- profileUpdated: string;
563
- failedToUpdateProfile: string;
564
- nameRequired: string;
565
- emailRequired: string;
566
- emailInvalid: string;
567
- };
568
- changePassword: {
569
- step1: {
570
- title: string;
571
- subtitle: string;
572
- currentPassword: string;
573
- forgotPassword: string;
574
- passwordConfirmed: string;
575
- passwordConfirmFailed: string;
576
- };
577
- step2: {
578
- title: string;
579
- newPassword: string;
580
- confirmNewPassword: string;
581
- changePassword: string;
582
- passwordChanged: string;
583
- failedToChangePassword: string;
584
- newPasswordRequired: string;
585
- passwordMustBeAtLeast8Characters: string;
586
- useAtLeast8Characters: string;
587
- passwordsDoNotMatch: string;
588
- };
589
- };
590
- customAttributes: {
591
- form: {
592
- key: string;
593
- value: string;
594
- valuePlaceholder: string;
595
- attributeValueMustBeNumber: string;
596
- noCustomAttributes: string;
597
- };
598
- queryBuilder: {
599
- any: string;
600
- noAttributeSettings: string;
601
- };
602
- };
603
- components: {
604
- restaurantSelector: {
605
- allRestaurants: string;
606
- restaurantCount: string;
607
- selectRestaurant: string;
608
- unknownRestaurant: string;
609
- restaurantTaggingFilter: string;
610
- resetFilter: string;
611
- };
612
- itemSelector: {
613
- productsSelected: string;
614
- };
615
- };
616
- };
617
- };
618
- };
619
- export { type CommonMessagesSchema } from "./locales/common/types";
620
- export type PortalShellI18nSchema = typeof portalShellEnUS;
621
- export { useI18n } from "@feedmepos/i18n";
622
- export type { FeedMeI18nOptions, I18n, DefineLocaleMessage } from "@feedmepos/i18n";
623
- export declare function createFeedMeI18n(options: FeedMeI18nOptions): import("vue-i18n").I18n<{}, {}, {}, string, boolean>;
624
- export { setEnabledLocales } from "./composables/useLocale";
625
- export { useLocale } from "./composables/useLocale";
626
- export declare function initVueClientMonitoring(app: App<Element>, router: Router, gtm?: {
627
- id: string;
628
- whitelist: string[];
629
- source: string;
630
- env: string;
631
- debug: boolean;
632
- serverMeasurementId: string;
633
- }): void;
634
- export declare function detectLocale(): string;
5
+ export * from "./permissions";
6
+ export * from "./components";
7
+ export * from "./i18n";
8
+ export { initVueClientMonitoring } from "./monitoring";
9
+ export { detectLocale } from "./utils/locale";
635
10
  export { installBusinessQueryStatePlugin } from "./router/query";
636
- export declare const CustomAttributesForm: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
637
- entity: {
638
- type: import("vue").PropType<"restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse">;
639
- required: true;
640
- };
641
- modelValue: {
642
- type: import("vue").PropType<import("./components/attribute/CustomAttributesForm.vue").CustomAttributes>;
643
- required: true;
644
- };
645
- valueOptions: {
646
- type: import("vue").PropType<{
647
- [key: string]: string[];
648
- }>;
649
- };
650
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
651
- "update:modelValue": (value: import("./components/attribute/CustomAttributesForm.vue").CustomAttributes) => void;
652
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
653
- entity: {
654
- type: import("vue").PropType<"restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse">;
655
- required: true;
656
- };
657
- modelValue: {
658
- type: import("vue").PropType<import("./components/attribute/CustomAttributesForm.vue").CustomAttributes>;
659
- required: true;
660
- };
661
- valueOptions: {
662
- type: import("vue").PropType<{
663
- [key: string]: string[];
664
- }>;
665
- };
666
- }>> & Readonly<{
667
- "onUpdate:modelValue"?: ((value: import("./components/attribute/CustomAttributesForm.vue").CustomAttributes) => any) | undefined;
668
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
669
- export declare const RestaurantSelector: {
670
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
671
- modelValue: import("vue").PropType<string | string[] | null | undefined>;
672
- disabled: {
673
- type: import("vue").PropType<boolean>;
674
- default: boolean;
675
- };
676
- multiple: {
677
- type: import("vue").PropType<boolean>;
678
- default: boolean;
679
- };
680
- excludeRestaurants: {
681
- type: import("vue").PropType<string[]>;
682
- };
683
- managableOnly: {
684
- type: import("vue").PropType<boolean>;
685
- default: boolean;
686
- };
687
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
688
- disabled: boolean;
689
- multiple: boolean;
690
- managableOnly: boolean;
691
- }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
692
- P: {};
693
- B: {};
694
- D: {};
695
- C: {};
696
- M: {};
697
- Defaults: {};
698
- }, Readonly<import("vue").ExtractPropTypes<{
699
- modelValue: import("vue").PropType<string | string[] | null | undefined>;
700
- disabled: {
701
- type: import("vue").PropType<boolean>;
702
- default: boolean;
703
- };
704
- multiple: {
705
- type: import("vue").PropType<boolean>;
706
- default: boolean;
707
- };
708
- excludeRestaurants: {
709
- type: import("vue").PropType<string[]>;
710
- };
711
- managableOnly: {
712
- type: import("vue").PropType<boolean>;
713
- default: boolean;
714
- };
715
- }>> & Readonly<{}>, {}, {}, {}, {}, {
716
- disabled: boolean;
717
- multiple: boolean;
718
- managableOnly: boolean;
719
- }>;
720
- __isFragment?: undefined;
721
- __isTeleport?: undefined;
722
- __isSuspense?: undefined;
723
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
724
- modelValue: import("vue").PropType<string | string[] | null | undefined>;
725
- disabled: {
726
- type: import("vue").PropType<boolean>;
727
- default: boolean;
728
- };
729
- multiple: {
730
- type: import("vue").PropType<boolean>;
731
- default: boolean;
732
- };
733
- excludeRestaurants: {
734
- type: import("vue").PropType<string[]>;
735
- };
736
- managableOnly: {
737
- type: import("vue").PropType<boolean>;
738
- default: boolean;
739
- };
740
- }>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
741
- disabled: boolean;
742
- multiple: boolean;
743
- managableOnly: boolean;
744
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
745
- $slots: {
746
- "append-right"?(_: {}): any;
747
- };
748
- });
749
- export declare const ItemSelector: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
750
- data: {
751
- type: import("vue").PropType<Record<string, {
752
- _id: string;
753
- combinationKey?: string | null | undefined;
754
- }[]>>;
755
- required: true;
756
- };
757
- autoFocusSearch: {
758
- type: import("vue").PropType<boolean>;
759
- default: boolean;
760
- };
761
- selectVariant: {
762
- type: import("vue").PropType<boolean>;
763
- };
764
- showVariant: {
765
- type: import("vue").PropType<boolean>;
766
- };
767
- showAddon: {
768
- type: import("vue").PropType<boolean>;
769
- default: boolean;
770
- };
771
- categorizedItems: {
772
- type: import("vue").PropType<import("./stores/menu").CategorizedItem[]>;
773
- };
774
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
775
- "update:data": (value: Record<string, {
776
- _id: string;
777
- combinationKey?: string | null | undefined;
778
- }[]>) => void;
779
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
780
- data: {
781
- type: import("vue").PropType<Record<string, {
782
- _id: string;
783
- combinationKey?: string | null | undefined;
784
- }[]>>;
785
- required: true;
786
- };
787
- autoFocusSearch: {
788
- type: import("vue").PropType<boolean>;
789
- default: boolean;
790
- };
791
- selectVariant: {
792
- type: import("vue").PropType<boolean>;
793
- };
794
- showVariant: {
795
- type: import("vue").PropType<boolean>;
796
- };
797
- showAddon: {
798
- type: import("vue").PropType<boolean>;
799
- default: boolean;
800
- };
801
- categorizedItems: {
802
- type: import("vue").PropType<import("./stores/menu").CategorizedItem[]>;
803
- };
804
- }>> & Readonly<{
805
- "onUpdate:data"?: ((value: Record<string, {
806
- _id: string;
807
- combinationKey?: string | null | undefined;
808
- }[]>) => any) | undefined;
809
- }>, {
810
- autoFocusSearch: boolean;
811
- showAddon: boolean;
812
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
813
11
  export * from "./utils/postMessageMethodCall";
814
12
  export { Dinero } from "@feedmepos/core";
815
13
  export { type FdoDinero } from "@feedmepos/core/entity";