@feedmepos/mf-settings 0.0.35 → 0.0.36

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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, j as n } from "./app-a7eb5513.js";
1
+ import { _ as a, j as e, i as n, k as g } from "./app-99c9cdb0.js";
2
2
  import "@feedmepos/mf-common";
3
3
  import "vue";
4
4
  import "vue-router";
@@ -6,6 +6,7 @@ import "@feedmepos/mf-e-invoice";
6
6
  import "@feedmepos/mf-mdm";
7
7
  export {
8
8
  a as FmApp,
9
- e as initSettings,
10
- n as routers
9
+ e as i18nMessages,
10
+ n as initSettings,
11
+ g as routers
11
12
  };
@@ -1,3 +1,565 @@
1
+ import enUS from "./locales/en-US.json";
1
2
  export { routers } from "./router/shared";
2
3
  export { default as FmApp } from "./App.vue";
3
4
  export declare function initSettings(): Promise<void>;
5
+ export type AppMessagesSchema = typeof enUS;
6
+ export declare const i18nMessages: {
7
+ "en-US": {
8
+ settings: {
9
+ title: string;
10
+ eInvoice: {
11
+ title: string;
12
+ };
13
+ licenseOrder: {
14
+ title: string;
15
+ };
16
+ device: {
17
+ title: string;
18
+ };
19
+ business: {
20
+ title: string;
21
+ url: string;
22
+ add_restaurant: string;
23
+ search_restaurants: string;
24
+ quota: {
25
+ limit_title: string;
26
+ limit_message: string;
27
+ };
28
+ restaurant: {
29
+ title: string;
30
+ address: string;
31
+ contact: string;
32
+ email: string;
33
+ tax: {
34
+ title: string;
35
+ not_set: string;
36
+ };
37
+ actions: {
38
+ discard: string;
39
+ };
40
+ form: {
41
+ title: {
42
+ update: string;
43
+ add: string;
44
+ };
45
+ message: {
46
+ updated: string;
47
+ created: string;
48
+ };
49
+ summary: {
50
+ title: string;
51
+ name: string;
52
+ legal_name: string;
53
+ contact: string;
54
+ address: string;
55
+ };
56
+ sections: {
57
+ basic_info: {
58
+ title: string;
59
+ code: {
60
+ label: string;
61
+ optional: string;
62
+ helper: string;
63
+ };
64
+ name: {
65
+ label: string;
66
+ required: string;
67
+ };
68
+ legal_name: {
69
+ label: string;
70
+ required: string;
71
+ };
72
+ reg_no: {
73
+ label: string;
74
+ required: string;
75
+ };
76
+ tax_no: {
77
+ label: string;
78
+ optional: string;
79
+ };
80
+ contact: {
81
+ label: string;
82
+ optional: string;
83
+ };
84
+ email: {
85
+ label: string;
86
+ optional: string;
87
+ };
88
+ image: {
89
+ label: string;
90
+ optional: string;
91
+ };
92
+ };
93
+ address: {
94
+ title: string;
95
+ };
96
+ operation_hours: {
97
+ title: string;
98
+ copy_with: string;
99
+ invalid: string;
100
+ };
101
+ branding: {
102
+ title: string;
103
+ description: string;
104
+ url: {
105
+ label: string;
106
+ errors: {
107
+ disabled: string;
108
+ invalid: string;
109
+ reserved: string;
110
+ };
111
+ };
112
+ cover_photo: {
113
+ label: string;
114
+ };
115
+ carousel_photos: {
116
+ label: string;
117
+ };
118
+ };
119
+ };
120
+ };
121
+ };
122
+ form: {
123
+ title: string;
124
+ cover_photo: {
125
+ label: string;
126
+ optional: string;
127
+ };
128
+ name: string;
129
+ url: {
130
+ label: string;
131
+ errors: {
132
+ disabled: string;
133
+ format: string;
134
+ reserved: string;
135
+ };
136
+ };
137
+ };
138
+ };
139
+ create_business: {
140
+ welcome: string;
141
+ subtitle: string;
142
+ business_name: {
143
+ label: string;
144
+ required: string;
145
+ };
146
+ agent: {
147
+ label: string;
148
+ invalid: string;
149
+ };
150
+ country: {
151
+ title: string;
152
+ exists: {
153
+ title: string;
154
+ message: string;
155
+ };
156
+ };
157
+ submit: string;
158
+ logout: string;
159
+ };
160
+ coordinate_dialog: {
161
+ address: string;
162
+ latitude: string;
163
+ longitude: string;
164
+ };
165
+ coordinate_input: {
166
+ title: string;
167
+ not_set: string;
168
+ dialog: {
169
+ title: string;
170
+ confirm: string;
171
+ delete: string;
172
+ };
173
+ };
174
+ address: {
175
+ line1: string;
176
+ line2: string;
177
+ city: string;
178
+ postal_code: string;
179
+ state: string;
180
+ country: string;
181
+ };
182
+ operation_hours: {
183
+ mon: string;
184
+ tue: string;
185
+ wed: string;
186
+ thu: string;
187
+ fri: string;
188
+ sat: string;
189
+ sun: string;
190
+ to: string;
191
+ close: string;
192
+ cannot_remove_last: string;
193
+ };
194
+ food_court: {
195
+ labels: {
196
+ owner: string;
197
+ members: string;
198
+ status: string;
199
+ };
200
+ create: {
201
+ title: string;
202
+ name: {
203
+ label: string;
204
+ placeholder: string;
205
+ };
206
+ owner: string;
207
+ success: string;
208
+ };
209
+ update: {
210
+ title: string;
211
+ name: {
212
+ label: string;
213
+ placeholder: string;
214
+ };
215
+ };
216
+ edit: {
217
+ member_updated: string;
218
+ member_deleted: string;
219
+ member_removed: string;
220
+ invite_success: string;
221
+ no_restaurant: string;
222
+ };
223
+ members: {
224
+ title: string;
225
+ name: string;
226
+ description: string;
227
+ status: string;
228
+ };
229
+ status: {
230
+ active: string;
231
+ inactive: string;
232
+ pending: string;
233
+ declined: string;
234
+ };
235
+ actions: {
236
+ invite: string;
237
+ deactivate: string;
238
+ reactivate: string;
239
+ activate: string;
240
+ leave: string;
241
+ cancel_invitation: string;
242
+ reject: string;
243
+ revoke_invitation: string;
244
+ remove_member: string;
245
+ invite_member: string;
246
+ rename: string;
247
+ };
248
+ invite_dialog: {
249
+ link_copied: string;
250
+ search: {
251
+ placeholder: string;
252
+ success: string;
253
+ error: string;
254
+ };
255
+ to_invite: string;
256
+ restaurant: {
257
+ name: string;
258
+ id: string;
259
+ invited: string;
260
+ };
261
+ };
262
+ list: {
263
+ title: string;
264
+ search: {
265
+ placeholder: string;
266
+ };
267
+ columns: {
268
+ name: string;
269
+ owner: string;
270
+ members: string;
271
+ status: string;
272
+ };
273
+ };
274
+ messages: {
275
+ delete_confirm: {
276
+ title: string;
277
+ message: string;
278
+ };
279
+ deleted: string;
280
+ updated: string;
281
+ update_success: string;
282
+ };
283
+ };
284
+ };
285
+ };
286
+ "zh-CN": {
287
+ settings: {
288
+ title: string;
289
+ eInvoice: {
290
+ title: string;
291
+ };
292
+ licenseOrder: {
293
+ title: string;
294
+ };
295
+ device: {
296
+ title: string;
297
+ };
298
+ business: {
299
+ title: string;
300
+ url: string;
301
+ add_restaurant: string;
302
+ search_restaurants: string;
303
+ quota: {
304
+ limit_title: string;
305
+ limit_message: string;
306
+ };
307
+ restaurant: {
308
+ title: string;
309
+ address: string;
310
+ contact: string;
311
+ email: string;
312
+ tax: {
313
+ title: string;
314
+ not_set: string;
315
+ };
316
+ actions: {
317
+ discard: string;
318
+ };
319
+ form: {
320
+ title: {
321
+ update: string;
322
+ add: string;
323
+ };
324
+ message: {
325
+ updated: string;
326
+ created: string;
327
+ };
328
+ summary: {
329
+ title: string;
330
+ name: string;
331
+ legal_name: string;
332
+ contact: string;
333
+ address: string;
334
+ };
335
+ sections: {
336
+ basic_info: {
337
+ title: string;
338
+ code: {
339
+ label: string;
340
+ optional: string;
341
+ helper: string;
342
+ };
343
+ name: {
344
+ label: string;
345
+ required: string;
346
+ };
347
+ legal_name: {
348
+ label: string;
349
+ required: string;
350
+ };
351
+ reg_no: {
352
+ label: string;
353
+ required: string;
354
+ };
355
+ tax_no: {
356
+ label: string;
357
+ optional: string;
358
+ };
359
+ contact: {
360
+ label: string;
361
+ optional: string;
362
+ };
363
+ email: {
364
+ label: string;
365
+ optional: string;
366
+ };
367
+ image: {
368
+ label: string;
369
+ optional: string;
370
+ };
371
+ };
372
+ address: {
373
+ title: string;
374
+ };
375
+ operation_hours: {
376
+ title: string;
377
+ copy_with: string;
378
+ invalid: string;
379
+ };
380
+ branding: {
381
+ title: string;
382
+ description: string;
383
+ url: {
384
+ label: string;
385
+ errors: {
386
+ disabled: string;
387
+ invalid: string;
388
+ reserved: string;
389
+ };
390
+ };
391
+ cover_photo: {
392
+ label: string;
393
+ };
394
+ carousel_photos: {
395
+ label: string;
396
+ };
397
+ };
398
+ };
399
+ };
400
+ };
401
+ form: {
402
+ title: string;
403
+ cover_photo: {
404
+ label: string;
405
+ optional: string;
406
+ };
407
+ name: string;
408
+ url: {
409
+ label: string;
410
+ errors: {
411
+ disabled: string;
412
+ format: string;
413
+ reserved: string;
414
+ };
415
+ };
416
+ };
417
+ };
418
+ create_business: {
419
+ welcome: string;
420
+ subtitle: string;
421
+ business_name: {
422
+ label: string;
423
+ required: string;
424
+ };
425
+ agent: {
426
+ label: string;
427
+ invalid: string;
428
+ };
429
+ country: {
430
+ title: string;
431
+ exists: {
432
+ title: string;
433
+ message: string;
434
+ };
435
+ };
436
+ submit: string;
437
+ logout: string;
438
+ };
439
+ coordinate_dialog: {
440
+ address: string;
441
+ latitude: string;
442
+ longitude: string;
443
+ };
444
+ coordinate_input: {
445
+ title: string;
446
+ not_set: string;
447
+ dialog: {
448
+ title: string;
449
+ confirm: string;
450
+ delete: string;
451
+ };
452
+ };
453
+ address: {
454
+ line1: string;
455
+ line2: string;
456
+ city: string;
457
+ postal_code: string;
458
+ state: string;
459
+ country: string;
460
+ };
461
+ operation_hours: {
462
+ mon: string;
463
+ tue: string;
464
+ wed: string;
465
+ thu: string;
466
+ fri: string;
467
+ sat: string;
468
+ sun: string;
469
+ to: string;
470
+ close: string;
471
+ cannot_remove_last: string;
472
+ };
473
+ food_court: {
474
+ labels: {
475
+ owner: string;
476
+ members: string;
477
+ status: string;
478
+ };
479
+ create: {
480
+ title: string;
481
+ name: {
482
+ label: string;
483
+ placeholder: string;
484
+ };
485
+ owner: string;
486
+ success: string;
487
+ };
488
+ update: {
489
+ title: string;
490
+ name: {
491
+ label: string;
492
+ placeholder: string;
493
+ };
494
+ };
495
+ edit: {
496
+ member_updated: string;
497
+ member_deleted: string;
498
+ member_removed: string;
499
+ invite_success: string;
500
+ no_restaurant: string;
501
+ };
502
+ members: {
503
+ title: string;
504
+ name: string;
505
+ description: string;
506
+ status: string;
507
+ };
508
+ status: {
509
+ active: string;
510
+ inactive: string;
511
+ pending: string;
512
+ declined: string;
513
+ };
514
+ actions: {
515
+ invite: string;
516
+ deactivate: string;
517
+ reactivate: string;
518
+ activate: string;
519
+ leave: string;
520
+ cancel_invitation: string;
521
+ reject: string;
522
+ revoke_invitation: string;
523
+ remove_member: string;
524
+ invite_member: string;
525
+ rename: string;
526
+ };
527
+ invite_dialog: {
528
+ link_copied: string;
529
+ search: {
530
+ placeholder: string;
531
+ success: string;
532
+ error: string;
533
+ };
534
+ to_invite: string;
535
+ restaurant: {
536
+ name: string;
537
+ id: string;
538
+ invited: string;
539
+ };
540
+ };
541
+ list: {
542
+ title: string;
543
+ search: {
544
+ placeholder: string;
545
+ };
546
+ columns: {
547
+ name: string;
548
+ owner: string;
549
+ members: string;
550
+ status: string;
551
+ };
552
+ };
553
+ messages: {
554
+ delete_confirm: {
555
+ title: string;
556
+ message: string;
557
+ };
558
+ deleted: string;
559
+ updated: string;
560
+ update_success: string;
561
+ };
562
+ };
563
+ };
564
+ };
565
+ };
@@ -1,4 +1,5 @@
1
1
  import { F_FOOD_COURT_STATUS } from "@feedmepos/ordering-model";
2
+ import { useI18n } from "@feedmepos/mf-common";
2
3
  export interface FdtoFoodCourtMemberAction {
3
4
  label: string;
4
5
  newStatus: F_FOOD_COURT_STATUS;
@@ -7,7 +8,8 @@ export declare class FoodCourtMemberStatus {
7
8
  private status;
8
9
  private isFoodCourtOwner;
9
10
  private canManageRestaurant;
10
- constructor(status: F_FOOD_COURT_STATUS, isFoodCourtOwner: boolean, canManageRestaurant: boolean);
11
+ private t;
12
+ constructor(status: F_FOOD_COURT_STATUS, isFoodCourtOwner: boolean, canManageRestaurant: boolean, t: ReturnType<typeof useI18n>["t"]);
11
13
  get description(): string;
12
14
  get actions(): FdtoFoodCourtMemberAction[];
13
15
  private generateActiveActions;