mdz-enum 1.3.4 → 1.3.6
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/marketplace/templates/components/index.d.ts +28 -2
- package/dist/marketplace/templates/components/index.js +29 -2
- package/dist/marketplace/templates/index.d.ts +33 -2
- package/dist/marketplace/templates/index.js +1 -0
- package/dist/marketplace/templates/pages/index.d.ts +4 -0
- package/dist/marketplace/templates/pages/index.js +27 -4
- package/package.json +1 -1
|
@@ -82,7 +82,8 @@ declare const PRODUCT_CARD: {
|
|
|
82
82
|
/** Mostrar botão */
|
|
83
83
|
SHOW_BUTTON: {
|
|
84
84
|
KEY: string;
|
|
85
|
-
DEFAULT:
|
|
85
|
+
DEFAULT: string;
|
|
86
|
+
VALUES: string[];
|
|
86
87
|
};
|
|
87
88
|
};
|
|
88
89
|
/**
|
|
@@ -103,6 +104,24 @@ declare const BUY_BUTTON: {
|
|
|
103
104
|
};
|
|
104
105
|
};
|
|
105
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Referencia da aparencia do botao de adicionar ao carrinho
|
|
109
|
+
*/
|
|
110
|
+
declare const CART_BUTTON: {
|
|
111
|
+
/** Fundo botao */
|
|
112
|
+
LIGHT: {
|
|
113
|
+
COLOR: {
|
|
114
|
+
KEY: string;
|
|
115
|
+
DEFAULT: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
DARK: {
|
|
119
|
+
COLOR: {
|
|
120
|
+
KEY: string;
|
|
121
|
+
DEFAULT: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
106
125
|
/**
|
|
107
126
|
* Referencia da aparencia do logo
|
|
108
127
|
*/
|
|
@@ -119,10 +138,17 @@ declare const LOGO: {
|
|
|
119
138
|
HEADER: {
|
|
120
139
|
KEY: string;
|
|
121
140
|
DEFAULT: string;
|
|
141
|
+
VALUES: string[];
|
|
122
142
|
};
|
|
123
143
|
FOOTER: {
|
|
124
144
|
KEY: string;
|
|
125
145
|
DEFAULT: string;
|
|
146
|
+
VALUES: string[];
|
|
147
|
+
};
|
|
148
|
+
LOADING: {
|
|
149
|
+
KEY: string;
|
|
150
|
+
DEFAULT: string;
|
|
151
|
+
VALUES: string[];
|
|
126
152
|
};
|
|
127
153
|
};
|
|
128
154
|
TYPE: {
|
|
@@ -160,4 +186,4 @@ declare const LOGO: {
|
|
|
160
186
|
};
|
|
161
187
|
};
|
|
162
188
|
};
|
|
163
|
-
export { PRODUCT_CARD, BUY_BUTTON, LOGO, BUTTON, FOOTER, HEADER };
|
|
189
|
+
export { PRODUCT_CARD, BUY_BUTTON, LOGO, BUTTON, FOOTER, HEADER, CART_BUTTON };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HEADER = exports.FOOTER = exports.BUTTON = exports.LOGO = exports.BUY_BUTTON = exports.PRODUCT_CARD = void 0;
|
|
3
|
+
exports.CART_BUTTON = exports.HEADER = exports.FOOTER = exports.BUTTON = exports.LOGO = exports.BUY_BUTTON = exports.PRODUCT_CARD = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Referencia de aparencia do rodape
|
|
6
6
|
*/
|
|
@@ -91,7 +91,8 @@ const PRODUCT_CARD = {
|
|
|
91
91
|
/** Mostrar botão */
|
|
92
92
|
SHOW_BUTTON: {
|
|
93
93
|
KEY: 'component_product_card_show_button',
|
|
94
|
-
DEFAULT: true,
|
|
94
|
+
DEFAULT: 'true',
|
|
95
|
+
VALUES: ['true', 'false'],
|
|
95
96
|
},
|
|
96
97
|
};
|
|
97
98
|
exports.PRODUCT_CARD = PRODUCT_CARD;
|
|
@@ -114,6 +115,25 @@ const BUY_BUTTON = {
|
|
|
114
115
|
},
|
|
115
116
|
};
|
|
116
117
|
exports.BUY_BUTTON = BUY_BUTTON;
|
|
118
|
+
/**
|
|
119
|
+
* Referencia da aparencia do botao de adicionar ao carrinho
|
|
120
|
+
*/
|
|
121
|
+
const CART_BUTTON = {
|
|
122
|
+
/** Fundo botao */
|
|
123
|
+
LIGHT: {
|
|
124
|
+
COLOR: {
|
|
125
|
+
KEY: 'component_cart_button_color_light',
|
|
126
|
+
DEFAULT: '#624495',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
DARK: {
|
|
130
|
+
COLOR: {
|
|
131
|
+
KEY: 'component_cart_button_color_dark',
|
|
132
|
+
DEFAULT: '#624495',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
exports.CART_BUTTON = CART_BUTTON;
|
|
117
137
|
/**
|
|
118
138
|
* Referencia da aparencia do logo
|
|
119
139
|
*/
|
|
@@ -130,10 +150,17 @@ const LOGO = {
|
|
|
130
150
|
HEADER: {
|
|
131
151
|
KEY: 'logo_filter_header',
|
|
132
152
|
DEFAULT: 'light',
|
|
153
|
+
VALUES: ['light', 'dark', 'none'],
|
|
133
154
|
},
|
|
134
155
|
FOOTER: {
|
|
135
156
|
KEY: 'logo_filter_footer',
|
|
136
157
|
DEFAULT: 'light',
|
|
158
|
+
VALUES: ['light', 'dark', 'none'],
|
|
159
|
+
},
|
|
160
|
+
LOADING: {
|
|
161
|
+
KEY: 'logo_filter_loading',
|
|
162
|
+
DEFAULT: 'light',
|
|
163
|
+
VALUES: ['light', 'dark', 'none'],
|
|
137
164
|
},
|
|
138
165
|
},
|
|
139
166
|
TYPE: {
|
|
@@ -6,7 +6,9 @@ declare const APPEARANCE_PAGES: {
|
|
|
6
6
|
HOME_PAGE: {
|
|
7
7
|
ID: number;
|
|
8
8
|
ORDER: {
|
|
9
|
-
KEY: string;
|
|
9
|
+
KEY: string; /**
|
|
10
|
+
* Constante de configuração de aparência das páginas
|
|
11
|
+
*/
|
|
10
12
|
DEFAULT: string;
|
|
11
13
|
};
|
|
12
14
|
BLOCKS: ({
|
|
@@ -17,6 +19,7 @@ declare const APPEARANCE_PAGES: {
|
|
|
17
19
|
size: number;
|
|
18
20
|
};
|
|
19
21
|
enabled: boolean;
|
|
22
|
+
immutable: boolean;
|
|
20
23
|
badge: null;
|
|
21
24
|
} | {
|
|
22
25
|
id: number;
|
|
@@ -26,6 +29,7 @@ declare const APPEARANCE_PAGES: {
|
|
|
26
29
|
size: number;
|
|
27
30
|
};
|
|
28
31
|
enabled: boolean;
|
|
32
|
+
immutable: boolean;
|
|
29
33
|
badge: {
|
|
30
34
|
color: string;
|
|
31
35
|
text: string;
|
|
@@ -46,6 +50,7 @@ declare const APPEARANCE_PAGES: {
|
|
|
46
50
|
size: number;
|
|
47
51
|
};
|
|
48
52
|
enabled: boolean;
|
|
53
|
+
immutable: boolean;
|
|
49
54
|
badge: null;
|
|
50
55
|
} | {
|
|
51
56
|
id: number;
|
|
@@ -55,6 +60,7 @@ declare const APPEARANCE_PAGES: {
|
|
|
55
60
|
size: number;
|
|
56
61
|
};
|
|
57
62
|
enabled: boolean;
|
|
63
|
+
immutable: boolean;
|
|
58
64
|
badge: {
|
|
59
65
|
color: string;
|
|
60
66
|
text: string;
|
|
@@ -93,7 +99,8 @@ declare const APPEARANCE_COMPONENTS: {
|
|
|
93
99
|
};
|
|
94
100
|
SHOW_BUTTON: {
|
|
95
101
|
KEY: string;
|
|
96
|
-
DEFAULT:
|
|
102
|
+
DEFAULT: string;
|
|
103
|
+
VALUES: string[];
|
|
97
104
|
};
|
|
98
105
|
};
|
|
99
106
|
BUTTON: {
|
|
@@ -133,10 +140,17 @@ declare const APPEARANCE_COMPONENTS: {
|
|
|
133
140
|
HEADER: {
|
|
134
141
|
KEY: string;
|
|
135
142
|
DEFAULT: string;
|
|
143
|
+
VALUES: string[];
|
|
136
144
|
};
|
|
137
145
|
FOOTER: {
|
|
138
146
|
KEY: string;
|
|
139
147
|
DEFAULT: string;
|
|
148
|
+
VALUES: string[];
|
|
149
|
+
};
|
|
150
|
+
LOADING: {
|
|
151
|
+
KEY: string;
|
|
152
|
+
DEFAULT: string;
|
|
153
|
+
VALUES: string[];
|
|
140
154
|
};
|
|
141
155
|
};
|
|
142
156
|
TYPE: {
|
|
@@ -181,6 +195,9 @@ declare const APPEARANCE_COMPONENTS: {
|
|
|
181
195
|
DEFAULT: string;
|
|
182
196
|
};
|
|
183
197
|
};
|
|
198
|
+
/**
|
|
199
|
+
* Constante de configuração de aparência das páginas
|
|
200
|
+
*/
|
|
184
201
|
DARK: {
|
|
185
202
|
COLOR: {
|
|
186
203
|
KEY: string;
|
|
@@ -202,5 +219,19 @@ declare const APPEARANCE_COMPONENTS: {
|
|
|
202
219
|
};
|
|
203
220
|
};
|
|
204
221
|
};
|
|
222
|
+
CART_BUTTON: {
|
|
223
|
+
LIGHT: {
|
|
224
|
+
COLOR: {
|
|
225
|
+
KEY: string;
|
|
226
|
+
DEFAULT: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
DARK: {
|
|
230
|
+
COLOR: {
|
|
231
|
+
KEY: string;
|
|
232
|
+
DEFAULT: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
205
236
|
};
|
|
206
237
|
export { APPEARANCE_PAGES, APPEARANCE_COMPONENTS, APPEARANCE_REFERENCE };
|
|
@@ -16,6 +16,7 @@ declare const HOME_PAGE: {
|
|
|
16
16
|
size: number;
|
|
17
17
|
};
|
|
18
18
|
enabled: boolean;
|
|
19
|
+
immutable: boolean;
|
|
19
20
|
badge: null;
|
|
20
21
|
} | {
|
|
21
22
|
id: number;
|
|
@@ -25,6 +26,7 @@ declare const HOME_PAGE: {
|
|
|
25
26
|
size: number;
|
|
26
27
|
};
|
|
27
28
|
enabled: boolean;
|
|
29
|
+
immutable: boolean;
|
|
28
30
|
badge: {
|
|
29
31
|
color: string;
|
|
30
32
|
text: string;
|
|
@@ -51,6 +53,7 @@ declare const PRODUCT_PAGE: {
|
|
|
51
53
|
size: number;
|
|
52
54
|
};
|
|
53
55
|
enabled: boolean;
|
|
56
|
+
immutable: boolean;
|
|
54
57
|
badge: null;
|
|
55
58
|
} | {
|
|
56
59
|
id: number;
|
|
@@ -60,6 +63,7 @@ declare const PRODUCT_PAGE: {
|
|
|
60
63
|
size: number;
|
|
61
64
|
};
|
|
62
65
|
enabled: boolean;
|
|
66
|
+
immutable: boolean;
|
|
63
67
|
badge: {
|
|
64
68
|
color: string;
|
|
65
69
|
text: string;
|
|
@@ -18,6 +18,7 @@ const HOME_PAGE = {
|
|
|
18
18
|
name: 'Banners principais',
|
|
19
19
|
icon: { type: 'FaImages', size: DEFAULT_ICON_SIZE },
|
|
20
20
|
enabled: true,
|
|
21
|
+
immutable: true,
|
|
21
22
|
badge: null,
|
|
22
23
|
},
|
|
23
24
|
{
|
|
@@ -28,6 +29,7 @@ const HOME_PAGE = {
|
|
|
28
29
|
size: DEFAULT_ICON_SIZE,
|
|
29
30
|
},
|
|
30
31
|
enabled: true,
|
|
32
|
+
immutable: false,
|
|
31
33
|
badge: null,
|
|
32
34
|
},
|
|
33
35
|
{
|
|
@@ -38,6 +40,7 @@ const HOME_PAGE = {
|
|
|
38
40
|
size: DEFAULT_ICON_SIZE,
|
|
39
41
|
},
|
|
40
42
|
enabled: true,
|
|
43
|
+
immutable: false,
|
|
41
44
|
badge: null,
|
|
42
45
|
},
|
|
43
46
|
{
|
|
@@ -48,6 +51,7 @@ const HOME_PAGE = {
|
|
|
48
51
|
size: DEFAULT_ICON_SIZE,
|
|
49
52
|
},
|
|
50
53
|
enabled: true,
|
|
54
|
+
immutable: false,
|
|
51
55
|
badge: null,
|
|
52
56
|
},
|
|
53
57
|
{
|
|
@@ -58,6 +62,7 @@ const HOME_PAGE = {
|
|
|
58
62
|
size: DEFAULT_ICON_SIZE,
|
|
59
63
|
},
|
|
60
64
|
enabled: false,
|
|
65
|
+
immutable: false,
|
|
61
66
|
badge: {
|
|
62
67
|
color: 'info',
|
|
63
68
|
text: 'Em breve',
|
|
@@ -71,6 +76,7 @@ const HOME_PAGE = {
|
|
|
71
76
|
size: DEFAULT_ICON_SIZE,
|
|
72
77
|
},
|
|
73
78
|
enabled: false,
|
|
79
|
+
immutable: false,
|
|
74
80
|
badge: {
|
|
75
81
|
color: 'info',
|
|
76
82
|
text: 'Em breve',
|
|
@@ -84,6 +90,7 @@ const HOME_PAGE = {
|
|
|
84
90
|
size: DEFAULT_ICON_SIZE,
|
|
85
91
|
},
|
|
86
92
|
enabled: false,
|
|
93
|
+
immutable: false,
|
|
87
94
|
badge: {
|
|
88
95
|
color: 'info',
|
|
89
96
|
text: 'Em breve',
|
|
@@ -97,6 +104,7 @@ const HOME_PAGE = {
|
|
|
97
104
|
size: DEFAULT_ICON_SIZE,
|
|
98
105
|
},
|
|
99
106
|
enabled: false,
|
|
107
|
+
immutable: false,
|
|
100
108
|
badge: {
|
|
101
109
|
color: 'info',
|
|
102
110
|
text: 'Em breve',
|
|
@@ -115,47 +123,62 @@ const PRODUCT_PAGE = {
|
|
|
115
123
|
*/
|
|
116
124
|
ORDER: {
|
|
117
125
|
KEY: 'product_page_blocks',
|
|
118
|
-
DEFAULT: '1,2,3,4',
|
|
126
|
+
DEFAULT: '1,2,3,4,5',
|
|
119
127
|
},
|
|
120
128
|
BLOCKS: [
|
|
121
129
|
{
|
|
122
130
|
id: 1,
|
|
131
|
+
name: 'Detalhes do produto',
|
|
132
|
+
icon: {
|
|
133
|
+
type: 'FaTag',
|
|
134
|
+
size: DEFAULT_ICON_SIZE,
|
|
135
|
+
},
|
|
136
|
+
enabled: true,
|
|
137
|
+
immutable: true,
|
|
138
|
+
badge: null,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: 2,
|
|
123
142
|
name: 'Descrição do produto',
|
|
124
143
|
icon: {
|
|
125
144
|
type: 'Fatypes',
|
|
126
145
|
size: DEFAULT_ICON_SIZE,
|
|
127
146
|
},
|
|
128
147
|
enabled: true,
|
|
148
|
+
immutable: false,
|
|
129
149
|
badge: null,
|
|
130
150
|
},
|
|
131
151
|
{
|
|
132
|
-
id:
|
|
152
|
+
id: 3,
|
|
133
153
|
name: 'Garantia do produto',
|
|
134
154
|
icon: {
|
|
135
155
|
type: 'FaTimeline',
|
|
136
156
|
size: DEFAULT_ICON_SIZE,
|
|
137
157
|
},
|
|
138
158
|
enabled: true,
|
|
159
|
+
immutable: false,
|
|
139
160
|
badge: null,
|
|
140
161
|
},
|
|
141
162
|
{
|
|
142
|
-
id:
|
|
163
|
+
id: 4,
|
|
143
164
|
name: 'Produtos relacionados',
|
|
144
165
|
icon: {
|
|
145
166
|
type: 'FaBagShopping',
|
|
146
167
|
size: DEFAULT_ICON_SIZE,
|
|
147
168
|
},
|
|
148
169
|
enabled: true,
|
|
170
|
+
immutable: false,
|
|
149
171
|
badge: null,
|
|
150
172
|
},
|
|
151
173
|
{
|
|
152
|
-
id:
|
|
174
|
+
id: 5,
|
|
153
175
|
name: 'Banners personalizados',
|
|
154
176
|
icon: {
|
|
155
177
|
type: 'FaImages',
|
|
156
178
|
size: DEFAULT_ICON_SIZE,
|
|
157
179
|
},
|
|
158
180
|
enabled: false,
|
|
181
|
+
immutable: false,
|
|
159
182
|
badge: {
|
|
160
183
|
color: 'info',
|
|
161
184
|
text: 'Em breve',
|