@feedmepos/mf-brand-app-builder 0.5.23-dev.0 → 0.5.25-dev.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/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { c as i, d as o, i as e, r as m } from "./app-CY0-wVrG.js";
2
+ import { c as i, d as o, i as e, r as m } from "./app-C2gJ30bL.js";
3
3
  export {
4
4
  i as FmApp,
5
5
  o as FormKitPlugin,
@@ -1,4 +1,3 @@
1
- import { type TemplateNode } from '@feedmepos/ordering-ui';
2
1
  export type BrandFont = {
3
2
  name: string;
4
3
  source: 'google' | 'custom';
@@ -7,25 +6,10 @@ export type BrandFont = {
7
6
  [weight: string]: string;
8
7
  };
9
8
  };
10
- export type TemplateVersion = {
11
- version: number;
12
- template: {
13
- mainView?: Record<string, unknown>;
14
- cartView?: Record<string, unknown>;
15
- };
16
- createdAt: string;
17
- createdBy?: string;
18
- description?: string;
9
+ export type RecursivePartial<T> = {
10
+ [P in keyof T]?: T[P] extends (...args: any[]) => any ? T[P] : T[P] extends readonly (infer U)[] ? ReadonlyArray<RecursivePartial<U>> : T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P];
19
11
  };
20
- export type LayoutConfig = {
21
- template?: {
22
- mainView?: Record<string, unknown>;
23
- cartView?: Record<string, unknown>;
24
- };
25
- templateHistory?: TemplateVersion[];
26
- currentVersion?: number;
27
- };
28
- export type BrandKit = {
12
+ export type BaseBrandKit = {
29
13
  colors: {
30
14
  primary: string;
31
15
  secondary: string;
@@ -52,12 +36,32 @@ export type BrandKit = {
52
36
  tertiary: string;
53
37
  };
54
38
  };
39
+ };
40
+ export type TemplateVersion = {
41
+ version: number;
42
+ template: {
43
+ mainView?: Record<string, unknown>;
44
+ cartView?: Record<string, unknown>;
45
+ };
46
+ createdAt: string;
47
+ createdBy?: string;
48
+ description?: string;
49
+ };
50
+ export type LayoutConfig = {
51
+ template?: {
52
+ mainView?: Record<string, unknown>;
53
+ cartView?: Record<string, unknown>;
54
+ };
55
+ templateHistory?: TemplateVersion[];
56
+ currentVersion?: number;
57
+ };
58
+ export type BrandKit = BaseBrandKit & {
55
59
  fonts: {
56
60
  brand: string;
57
61
  heading?: string;
58
62
  body?: string;
59
63
  };
60
- fontFamilies: {
64
+ fontFamilies?: {
61
65
  stylesheet: string;
62
66
  }[];
63
67
  ordering?: {
@@ -65,9 +69,11 @@ export type BrandKit = {
65
69
  category: 'HORIZONTAL' | 'VERTICAL';
66
70
  items: 'LIST' | 'GRID';
67
71
  singleCategory: boolean;
72
+ brandkitOverride?: RecursivePartial<BaseBrandKit>;
68
73
  };
69
74
  kiosk: {
70
75
  category: 'HORIZONTAL' | 'VERTICAL';
76
+ brandkitOverride?: RecursivePartial<BaseBrandKit>;
71
77
  };
72
78
  };
73
79
  layout?: {
@@ -75,7 +81,10 @@ export type BrandKit = {
75
81
  kiosk?: LayoutConfig;
76
82
  };
77
83
  };
78
- export { type TemplateNode };
84
+ export type BrandkitOverrideBy = 'app' | 'kiosk';
85
+ export type ApplyBrandKitOptions = {
86
+ overrideBy?: BrandkitOverrideBy;
87
+ };
79
88
  export type FdoMetadata = {
80
89
  type: 'BUSINESS' | 'RESTAURANT';
81
90
  country: string;
@@ -592,6 +592,25 @@ export declare const i18nMessages: {
592
592
  description: string;
593
593
  };
594
594
  };
595
+ statusColors: {
596
+ _: string;
597
+ success: {
598
+ title: string;
599
+ description: string;
600
+ };
601
+ warning: {
602
+ title: string;
603
+ description: string;
604
+ };
605
+ error: {
606
+ title: string;
607
+ description: string;
608
+ };
609
+ info: {
610
+ title: string;
611
+ description: string;
612
+ };
613
+ };
595
614
  fonts: {
596
615
  _: string;
597
616
  description: string;
@@ -636,6 +655,17 @@ export declare const i18nMessages: {
636
655
  currentSelection: string;
637
656
  preview: string;
638
657
  reset: string;
658
+ colorOverride: {
659
+ title: string;
660
+ descriptionApp: string;
661
+ descriptionKiosk: string;
662
+ configure: string;
663
+ count: string;
664
+ dialogTitleApp: string;
665
+ dialogTitleKiosk: string;
666
+ close: string;
667
+ save: string;
668
+ };
639
669
  };
640
670
  };
641
671
  settings: {
@@ -1690,6 +1720,25 @@ export declare const i18nMessages: {
1690
1720
  description: string;
1691
1721
  };
1692
1722
  };
1723
+ statusColors: {
1724
+ _: string;
1725
+ success: {
1726
+ title: string;
1727
+ description: string;
1728
+ };
1729
+ warning: {
1730
+ title: string;
1731
+ description: string;
1732
+ };
1733
+ error: {
1734
+ title: string;
1735
+ description: string;
1736
+ };
1737
+ info: {
1738
+ title: string;
1739
+ description: string;
1740
+ };
1741
+ };
1693
1742
  fonts: {
1694
1743
  _: string;
1695
1744
  description: string;
@@ -1735,6 +1784,17 @@ export declare const i18nMessages: {
1735
1784
  currentSelection: string;
1736
1785
  preview: string;
1737
1786
  reset: string;
1787
+ colorOverride: {
1788
+ title: string;
1789
+ descriptionApp: string;
1790
+ descriptionKiosk: string;
1791
+ configure: string;
1792
+ count: string;
1793
+ dialogTitleApp: string;
1794
+ dialogTitleKiosk: string;
1795
+ close: string;
1796
+ save: string;
1797
+ };
1738
1798
  };
1739
1799
  };
1740
1800
  settings: {
@@ -2764,6 +2824,25 @@ export declare const i18nMessages: {
2764
2824
  description: string;
2765
2825
  };
2766
2826
  };
2827
+ statusColors: {
2828
+ _: string;
2829
+ success: {
2830
+ title: string;
2831
+ description: string;
2832
+ };
2833
+ warning: {
2834
+ title: string;
2835
+ description: string;
2836
+ };
2837
+ error: {
2838
+ title: string;
2839
+ description: string;
2840
+ };
2841
+ info: {
2842
+ title: string;
2843
+ description: string;
2844
+ };
2845
+ };
2767
2846
  fonts: {
2768
2847
  _: string;
2769
2848
  description: string;
@@ -2809,6 +2888,17 @@ export declare const i18nMessages: {
2809
2888
  currentSelection: string;
2810
2889
  preview: string;
2811
2890
  reset: string;
2891
+ colorOverride: {
2892
+ title: string;
2893
+ descriptionApp: string;
2894
+ descriptionKiosk: string;
2895
+ configure: string;
2896
+ count: string;
2897
+ dialogTitleApp: string;
2898
+ dialogTitleKiosk: string;
2899
+ close: string;
2900
+ save: string;
2901
+ };
2812
2902
  };
2813
2903
  };
2814
2904
  settings: {
@@ -3840,6 +3930,25 @@ export declare const i18nMessages: {
3840
3930
  description: string;
3841
3931
  };
3842
3932
  };
3933
+ statusColors: {
3934
+ _: string;
3935
+ success: {
3936
+ title: string;
3937
+ description: string;
3938
+ };
3939
+ warning: {
3940
+ title: string;
3941
+ description: string;
3942
+ };
3943
+ error: {
3944
+ title: string;
3945
+ description: string;
3946
+ };
3947
+ info: {
3948
+ title: string;
3949
+ description: string;
3950
+ };
3951
+ };
3843
3952
  fonts: {
3844
3953
  _: string;
3845
3954
  description: string;
@@ -3885,6 +3994,17 @@ export declare const i18nMessages: {
3885
3994
  currentSelection: string;
3886
3995
  preview: string;
3887
3996
  reset: string;
3997
+ colorOverride: {
3998
+ title: string;
3999
+ descriptionApp: string;
4000
+ descriptionKiosk: string;
4001
+ configure: string;
4002
+ count: string;
4003
+ dialogTitleApp: string;
4004
+ dialogTitleKiosk: string;
4005
+ close: string;
4006
+ save: string;
4007
+ };
3888
4008
  };
3889
4009
  };
3890
4010
  template: {
@@ -5115,6 +5235,25 @@ export declare const i18nMessages: {
5115
5235
  description: string;
5116
5236
  };
5117
5237
  };
5238
+ statusColors: {
5239
+ _: string;
5240
+ success: {
5241
+ title: string;
5242
+ description: string;
5243
+ };
5244
+ warning: {
5245
+ title: string;
5246
+ description: string;
5247
+ };
5248
+ error: {
5249
+ title: string;
5250
+ description: string;
5251
+ };
5252
+ info: {
5253
+ title: string;
5254
+ description: string;
5255
+ };
5256
+ };
5118
5257
  fonts: {
5119
5258
  _: string;
5120
5259
  description: string;
@@ -5159,6 +5298,17 @@ export declare const i18nMessages: {
5159
5298
  currentSelection: string;
5160
5299
  preview: string;
5161
5300
  reset: string;
5301
+ colorOverride: {
5302
+ title: string;
5303
+ descriptionApp: string;
5304
+ descriptionKiosk: string;
5305
+ configure: string;
5306
+ count: string;
5307
+ dialogTitleApp: string;
5308
+ dialogTitleKiosk: string;
5309
+ close: string;
5310
+ save: string;
5311
+ };
5162
5312
  };
5163
5313
  };
5164
5314
  settings: {
@@ -6389,6 +6539,25 @@ export declare const i18nMessages: {
6389
6539
  description: string;
6390
6540
  };
6391
6541
  };
6542
+ statusColors: {
6543
+ _: string;
6544
+ success: {
6545
+ title: string;
6546
+ description: string;
6547
+ };
6548
+ warning: {
6549
+ title: string;
6550
+ description: string;
6551
+ };
6552
+ error: {
6553
+ title: string;
6554
+ description: string;
6555
+ };
6556
+ info: {
6557
+ title: string;
6558
+ description: string;
6559
+ };
6560
+ };
6392
6561
  fonts: {
6393
6562
  _: string;
6394
6563
  description: string;
@@ -6433,6 +6602,17 @@ export declare const i18nMessages: {
6433
6602
  currentSelection: string;
6434
6603
  preview: string;
6435
6604
  reset: string;
6605
+ colorOverride: {
6606
+ title: string;
6607
+ descriptionApp: string;
6608
+ descriptionKiosk: string;
6609
+ configure: string;
6610
+ count: string;
6611
+ dialogTitleApp: string;
6612
+ dialogTitleKiosk: string;
6613
+ close: string;
6614
+ save: string;
6615
+ };
6436
6616
  };
6437
6617
  };
6438
6618
  settings: {
@@ -0,0 +1,26 @@
1
+ import { type BaseBrandKit, type RecursivePartial } from '../../../../../brand-core/src/entity';
2
+ type ColorField = {
3
+ key: string;
4
+ title: string;
5
+ description: string;
6
+ };
7
+ type __VLS_Props = {
8
+ modelValue: boolean;
9
+ title: string;
10
+ description?: string;
11
+ baseBrandkit: BaseBrandKit;
12
+ value?: RecursivePartial<BaseBrandKit>;
13
+ colorFields: ColorField[];
14
+ };
15
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
+ cancel: () => any;
17
+ "update:modelValue": (v: boolean) => any;
18
+ save: (v: RecursivePartial<BaseBrandKit> | undefined) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onCancel?: (() => any) | undefined;
21
+ "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
22
+ onSave?: ((v: RecursivePartial<BaseBrandKit> | undefined) => any) | undefined;
23
+ }>, {
24
+ colorFields: ColorField[];
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ export default _default;