@designcrowd/library.brand-page 6.1.8 → 6.1.9-ast-header-nav-1
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/lib/src/{CreatedOnBrandCrowd-de-de-s5PgrS4k.js → CreatedOnBrandCrowd-de-de-Dnx7Xy5k.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DialvDTn.js → CreatedOnBrandCrowd-en-us-XmwdR7_u.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CkWPaELu.js → CreatedOnBrandCrowd-es-es-DHqQbl_k.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-DKsU-7B3.js → CreatedOnBrandCrowd-fr-ca-CIAqV_6Q.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-DKsU-7B3.js → CreatedOnBrandCrowd-fr-fr-CIAqV_6Q.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-_nFRiTF7.js → CreatedOnBrandCrowd-pt-br-CT9PO0D0.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-_nFRiTF7.js → CreatedOnBrandCrowd-pt-pt-CT9PO0D0.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-E3RR9E-W.js → CreatedOnDcom-de-de-CC-gPs5N.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-BaKpfZyU.js → CreatedOnDcom-en-us-DA0VyuZ8.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-DAKlDkym.js → CreatedOnDcom-es-es-BbVBE26Q.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-COcb6S6R.js → CreatedOnDcom-fr-ca-BASOQZ0y.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-kIujhHbs.js → CreatedOnDcom-fr-fr-C3sJ3clo.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-q7aggQB7.js → CreatedOnDcom-pt-br-XUpNYIqV.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-CWA39oCo.js → CreatedOnDcom-pt-pt-DBi9QxYw.js} +1 -1
- package/lib/src/brand-page/constants/index.d.ts +1 -0
- package/lib/src/brand-page/constants/index.js +1 -0
- package/lib/src/brand-page/constants/sections/header-display.constants.d.ts +2 -1
- package/lib/src/brand-page/constants/sections/header-display.constants.js +24 -24
- package/lib/src/brand-page/constants/sections/navigation-type.constants.d.ts +9 -0
- package/lib/src/brand-page/constants/sections/navigation-type.constants.js +31 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +1 -0
- package/lib/src/brand-page-maker/models/navigation-style-configs.d.ts +1 -0
- package/lib/src/brand-page-maker/models/navigation-style-configs.js +31 -7
- package/lib/src/{bundled-translations-B4__t_42.js → bundled-translations-DSxE1Qgo.js} +9 -9
- package/lib/src/bundles/bundled-translations.json +9 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +202 -64
- package/lib/src/css/library.brand-page-brandPage.min.css +207 -64
- package/lib/src/css/library.brand-page-designCom.min.css +202 -64
- package/lib/src/css/library.brand-page-preview.min.css +202 -64
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-21Llh7GA.js → lib-U2zn2JFW.js} +32589 -31928
- package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +1 -0
- package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +1 -0
- package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/new-page-modal/NewPageModal.mixin.d.ts +1 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +4 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.js +23 -11
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +4 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.js +12 -1
- package/lib/src/shared/page-settings/store/page-settings-store.d.ts +5 -0
- package/lib/src/shared/page-settings/store/page-settings-store.js +14 -0
- package/package.json +3 -3
- package/src/brand-page/constants/index.ts +1 -0
- package/src/brand-page/constants/sections/header-display.constants.ts +26 -25
- package/src/brand-page/constants/sections/navigation-type.constants.ts +46 -0
- package/src/brand-page-maker/models/i18n/models.json +3 -0
- package/src/brand-page-maker/models/navigation-style-configs.ts +32 -6
- package/src/bundles/bundled-translations.json +9 -0
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +0 -6
- package/src/shared/page-settings/components/header-settings-panel/HeaderSettingsPanel.vue +213 -0
- package/src/shared/page-settings/components/page-settings/PageSettings.header-settings-panel.test.ts +97 -0
- package/src/shared/page-settings/components/page-settings/PageSettings.mixin.ts +27 -12
- package/src/shared/page-settings/components/page-settings/PageSettings.vue +113 -92
- package/src/shared/page-settings/components/page-settings/i18n/page-settings.json +4 -0
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderNavigationStyle.vue +88 -0
- package/src/shared/page-settings/components/page-settings-section-styles/HeaderNavigationType.vue +46 -13
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.ts +27 -0
- package/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.vue +1 -57
- package/src/shared/page-settings/components/page-settings-section-styles/i18n/page-settings-section.json +3 -0
- package/src/shared/page-settings/store/page-settings-store.ts +24 -0
|
@@ -5,4 +5,5 @@ export * from './misc.constants';
|
|
|
5
5
|
export * from './logo.constants';
|
|
6
6
|
export * from './sections/header-display.constants';
|
|
7
7
|
export * from './sections/navigation-display.constants';
|
|
8
|
+
export * from './sections/navigation-type.constants';
|
|
8
9
|
export * from './sections/footer-display.constants';
|
|
@@ -5,4 +5,5 @@ export * from './misc.constants';
|
|
|
5
5
|
export * from './logo.constants';
|
|
6
6
|
export * from './sections/header-display.constants';
|
|
7
7
|
export * from './sections/navigation-display.constants';
|
|
8
|
+
export * from './sections/navigation-type.constants';
|
|
8
9
|
export * from './sections/footer-display.constants';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonGroupOption } from '@brand-page-maker/models/button-group.model';
|
|
2
|
+
import type { NavigationType } from './navigation-type.constants';
|
|
2
3
|
export declare const HEADER_DISPLAY: {
|
|
3
4
|
/** @deprecated */
|
|
4
5
|
readonly ALIGN_CENTERED: "centered";
|
|
@@ -37,7 +38,7 @@ export type PageSectionDisplayStyle = (typeof HEADER_DISPLAY)[keyof typeof HEADE
|
|
|
37
38
|
export type HeaderDisplayStyle = PageSectionDisplayStyle;
|
|
38
39
|
interface HeaderDisplayStyleConfig {
|
|
39
40
|
viewMode: 'desktop' | 'mobile';
|
|
40
|
-
navType:
|
|
41
|
+
navType: NavigationType;
|
|
41
42
|
supportLogo: boolean;
|
|
42
43
|
supportedNavTypes: string[];
|
|
43
44
|
option: ButtonGroupOption;
|
|
@@ -44,7 +44,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
44
44
|
option: {
|
|
45
45
|
value: HEADER_DISPLAY.DESKTOP_TAB_1,
|
|
46
46
|
iconName: 'header-desktop-nav-style-tab-display-style-1',
|
|
47
|
-
iconViewBox: '0 0
|
|
47
|
+
iconViewBox: '0 0 160 56',
|
|
48
48
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_1,
|
|
49
49
|
isSelected: false,
|
|
50
50
|
},
|
|
@@ -57,7 +57,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
57
57
|
option: {
|
|
58
58
|
value: HEADER_DISPLAY.DESKTOP_TAB_2,
|
|
59
59
|
iconName: 'header-desktop-nav-style-tab-display-style-2',
|
|
60
|
-
iconViewBox: '0 0
|
|
60
|
+
iconViewBox: '0 0 160 56',
|
|
61
61
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_2,
|
|
62
62
|
isSelected: false,
|
|
63
63
|
},
|
|
@@ -70,7 +70,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
70
70
|
option: {
|
|
71
71
|
value: HEADER_DISPLAY.DESKTOP_TAB_3,
|
|
72
72
|
iconName: 'header-desktop-nav-style-tab-display-style-3',
|
|
73
|
-
iconViewBox: '0 0
|
|
73
|
+
iconViewBox: '0 0 160 56',
|
|
74
74
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_3,
|
|
75
75
|
isSelected: false,
|
|
76
76
|
},
|
|
@@ -83,7 +83,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
83
83
|
option: {
|
|
84
84
|
value: HEADER_DISPLAY.DESKTOP_TAB_4,
|
|
85
85
|
iconName: 'header-desktop-nav-style-tab-display-style-4',
|
|
86
|
-
iconViewBox: '0 0
|
|
86
|
+
iconViewBox: '0 0 160 56',
|
|
87
87
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_4,
|
|
88
88
|
isSelected: false,
|
|
89
89
|
},
|
|
@@ -96,7 +96,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
96
96
|
option: {
|
|
97
97
|
value: HEADER_DISPLAY.DESKTOP_TAB_5,
|
|
98
98
|
iconName: 'header-desktop-nav-style-tab-display-style-5',
|
|
99
|
-
iconViewBox: '0 0
|
|
99
|
+
iconViewBox: '0 0 160 56',
|
|
100
100
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_5,
|
|
101
101
|
isSelected: false,
|
|
102
102
|
},
|
|
@@ -109,7 +109,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
109
109
|
option: {
|
|
110
110
|
value: HEADER_DISPLAY.DESKTOP_TAB_6,
|
|
111
111
|
iconName: 'header-desktop-nav-style-tab-display-style-6',
|
|
112
|
-
iconViewBox: '0 0
|
|
112
|
+
iconViewBox: '0 0 160 56',
|
|
113
113
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_6,
|
|
114
114
|
isSelected: false,
|
|
115
115
|
},
|
|
@@ -123,7 +123,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
123
123
|
option: {
|
|
124
124
|
value: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_1,
|
|
125
125
|
iconName: 'header-nav-style-tab-display-style-no-logo-1',
|
|
126
|
-
iconViewBox: '0 0
|
|
126
|
+
iconViewBox: '0 0 160 56',
|
|
127
127
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_1,
|
|
128
128
|
isSelected: false,
|
|
129
129
|
},
|
|
@@ -136,7 +136,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
136
136
|
option: {
|
|
137
137
|
value: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_2,
|
|
138
138
|
iconName: 'header-nav-style-tab-display-style-no-logo-2',
|
|
139
|
-
iconViewBox: '0 0
|
|
139
|
+
iconViewBox: '0 0 160 56',
|
|
140
140
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_2,
|
|
141
141
|
isSelected: false,
|
|
142
142
|
},
|
|
@@ -149,7 +149,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
149
149
|
option: {
|
|
150
150
|
value: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_3,
|
|
151
151
|
iconName: 'header-nav-style-tab-display-style-no-logo-3',
|
|
152
|
-
iconViewBox: '0 0
|
|
152
|
+
iconViewBox: '0 0 160 56',
|
|
153
153
|
dataAttribute: HEADER_DISPLAY.DESKTOP_TAB_NO_LOGO_3,
|
|
154
154
|
isSelected: false,
|
|
155
155
|
},
|
|
@@ -168,7 +168,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
168
168
|
option: {
|
|
169
169
|
value: HEADER_DISPLAY.DESKTOP_HAMBURGER_1,
|
|
170
170
|
iconName: 'header-desktop-nav-style-hamburger-display-style-1',
|
|
171
|
-
iconViewBox: '0 0
|
|
171
|
+
iconViewBox: '0 0 160 56',
|
|
172
172
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_1,
|
|
173
173
|
isSelected: false,
|
|
174
174
|
},
|
|
@@ -186,7 +186,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
186
186
|
option: {
|
|
187
187
|
value: HEADER_DISPLAY.DESKTOP_HAMBURGER_2,
|
|
188
188
|
iconName: 'header-desktop-nav-style-hamburger-display-style-2',
|
|
189
|
-
iconViewBox: '0 0
|
|
189
|
+
iconViewBox: '0 0 160 56',
|
|
190
190
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_2,
|
|
191
191
|
isSelected: false,
|
|
192
192
|
},
|
|
@@ -205,7 +205,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
205
205
|
option: {
|
|
206
206
|
value: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_1,
|
|
207
207
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-1',
|
|
208
|
-
iconViewBox: '0 0
|
|
208
|
+
iconViewBox: '0 0 160 56',
|
|
209
209
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_1,
|
|
210
210
|
isSelected: false,
|
|
211
211
|
},
|
|
@@ -223,7 +223,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
223
223
|
option: {
|
|
224
224
|
value: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_2,
|
|
225
225
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-2',
|
|
226
|
-
iconViewBox: '0 0
|
|
226
|
+
iconViewBox: '0 0 160 56',
|
|
227
227
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_2,
|
|
228
228
|
isSelected: false,
|
|
229
229
|
},
|
|
@@ -241,7 +241,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
241
241
|
option: {
|
|
242
242
|
value: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_3,
|
|
243
243
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-3',
|
|
244
|
-
iconViewBox: '0 0
|
|
244
|
+
iconViewBox: '0 0 160 56',
|
|
245
245
|
dataAttribute: HEADER_DISPLAY.DESKTOP_HAMBURGER_NO_LOGO_3,
|
|
246
246
|
isSelected: false,
|
|
247
247
|
},
|
|
@@ -255,7 +255,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
255
255
|
option: {
|
|
256
256
|
value: HEADER_DISPLAY.MOBILE_TAB_1,
|
|
257
257
|
iconName: 'header-mobile-nav-style-tab-display-style-1',
|
|
258
|
-
iconViewBox: '0 0
|
|
258
|
+
iconViewBox: '0 0 160 56',
|
|
259
259
|
dataAttribute: HEADER_DISPLAY.MOBILE_TAB_1,
|
|
260
260
|
isSelected: false,
|
|
261
261
|
},
|
|
@@ -268,7 +268,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
268
268
|
option: {
|
|
269
269
|
value: HEADER_DISPLAY.MOBILE_TAB_2,
|
|
270
270
|
iconName: 'header-mobile-nav-style-tab-display-style-2',
|
|
271
|
-
iconViewBox: '0 0
|
|
271
|
+
iconViewBox: '0 0 160 56',
|
|
272
272
|
dataAttribute: HEADER_DISPLAY.MOBILE_TAB_2,
|
|
273
273
|
isSelected: false,
|
|
274
274
|
},
|
|
@@ -282,7 +282,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
282
282
|
option: {
|
|
283
283
|
value: HEADER_DISPLAY.MOBILE_TAB_NO_LOGO_1,
|
|
284
284
|
iconName: 'header-nav-style-tab-display-style-no-logo-2',
|
|
285
|
-
iconViewBox: '0 0
|
|
285
|
+
iconViewBox: '0 0 160 56',
|
|
286
286
|
dataAttribute: HEADER_DISPLAY.MOBILE_TAB_NO_LOGO_1,
|
|
287
287
|
isSelected: false,
|
|
288
288
|
},
|
|
@@ -301,7 +301,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
301
301
|
option: {
|
|
302
302
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_1,
|
|
303
303
|
iconName: 'header-mobile-nav-style-hamburger-display-style-1',
|
|
304
|
-
iconViewBox: '0 0
|
|
304
|
+
iconViewBox: '0 0 160 56',
|
|
305
305
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_1,
|
|
306
306
|
isSelected: false,
|
|
307
307
|
},
|
|
@@ -319,7 +319,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
319
319
|
option: {
|
|
320
320
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_2,
|
|
321
321
|
iconName: 'header-mobile-nav-style-hamburger-display-style-2',
|
|
322
|
-
iconViewBox: '0 0
|
|
322
|
+
iconViewBox: '0 0 160 56',
|
|
323
323
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_2,
|
|
324
324
|
isSelected: false,
|
|
325
325
|
},
|
|
@@ -337,7 +337,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
337
337
|
option: {
|
|
338
338
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_3,
|
|
339
339
|
iconName: 'header-mobile-nav-style-hamburger-display-style-3',
|
|
340
|
-
iconViewBox: '0 0
|
|
340
|
+
iconViewBox: '0 0 160 56',
|
|
341
341
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_3,
|
|
342
342
|
isSelected: false,
|
|
343
343
|
},
|
|
@@ -355,7 +355,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
355
355
|
option: {
|
|
356
356
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_4,
|
|
357
357
|
iconName: 'header-mobile-nav-style-hamburger-display-style-4',
|
|
358
|
-
iconViewBox: '0 0
|
|
358
|
+
iconViewBox: '0 0 160 56',
|
|
359
359
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_4,
|
|
360
360
|
isSelected: false,
|
|
361
361
|
},
|
|
@@ -374,7 +374,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
374
374
|
option: {
|
|
375
375
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_1,
|
|
376
376
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-1',
|
|
377
|
-
iconViewBox: '0 0
|
|
377
|
+
iconViewBox: '0 0 160 56',
|
|
378
378
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_1,
|
|
379
379
|
isSelected: false,
|
|
380
380
|
},
|
|
@@ -392,7 +392,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
392
392
|
option: {
|
|
393
393
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_2,
|
|
394
394
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-2',
|
|
395
|
-
iconViewBox: '0 0
|
|
395
|
+
iconViewBox: '0 0 160 56',
|
|
396
396
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_2,
|
|
397
397
|
isSelected: false,
|
|
398
398
|
},
|
|
@@ -410,7 +410,7 @@ export const HEADER_DISPLAY_STYLE_CONFIGS = [
|
|
|
410
410
|
option: {
|
|
411
411
|
value: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_3,
|
|
412
412
|
iconName: 'header-nav-style-hamburger-display-style-no-logo-3',
|
|
413
|
-
iconViewBox: '0 0
|
|
413
|
+
iconViewBox: '0 0 160 56',
|
|
414
414
|
dataAttribute: HEADER_DISPLAY.MOBILE_HAMBURGER_NO_LOGO_3,
|
|
415
415
|
isSelected: false,
|
|
416
416
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NavigationDisplayType } from './navigation-display.constants';
|
|
2
|
+
export declare const NAVIGATION_TYPE: {
|
|
3
|
+
readonly bar: "tabs";
|
|
4
|
+
readonly hamburger: "hamburger";
|
|
5
|
+
};
|
|
6
|
+
export type NavigationType = (typeof NAVIGATION_TYPE)[keyof typeof NAVIGATION_TYPE];
|
|
7
|
+
export declare const NAVIGATION_TYPE_BY_DISPLAY_TYPE: Record<NavigationDisplayType, NavigationType>;
|
|
8
|
+
export declare const NAVIGATION_TYPE_DEFAULT_DISPLAY_TYPE: Record<NavigationType, NavigationDisplayType>;
|
|
9
|
+
export declare const getNavigationType: (displayType: string) => NavigationType;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { NAVIGATION_DISPLAY } from './navigation-display.constants';
|
|
2
|
+
export const NAVIGATION_TYPE = {
|
|
3
|
+
bar: 'tabs',
|
|
4
|
+
hamburger: 'hamburger',
|
|
5
|
+
};
|
|
6
|
+
// Exhaustive: TS forces every NAVIGATION_DISPLAY value (current + deprecated legacy) to be classified
|
|
7
|
+
// into a group here, so a future style can't be added without deciding which group it belongs to.
|
|
8
|
+
export const NAVIGATION_TYPE_BY_DISPLAY_TYPE = {
|
|
9
|
+
[NAVIGATION_DISPLAY.TAB_1]: NAVIGATION_TYPE.bar,
|
|
10
|
+
[NAVIGATION_DISPLAY.TAB_2]: NAVIGATION_TYPE.bar,
|
|
11
|
+
[NAVIGATION_DISPLAY.HAMBURGER_1]: NAVIGATION_TYPE.hamburger,
|
|
12
|
+
[NAVIGATION_DISPLAY.HAMBURGER_2]: NAVIGATION_TYPE.hamburger,
|
|
13
|
+
[NAVIGATION_DISPLAY.HAMBURGER_3]: NAVIGATION_TYPE.hamburger,
|
|
14
|
+
[NAVIGATION_DISPLAY.HAMBURGER_4]: NAVIGATION_TYPE.hamburger,
|
|
15
|
+
[NAVIGATION_DISPLAY.tabs]: NAVIGATION_TYPE.bar,
|
|
16
|
+
[NAVIGATION_DISPLAY.buttons]: NAVIGATION_TYPE.bar,
|
|
17
|
+
[NAVIGATION_DISPLAY.hamburger]: NAVIGATION_TYPE.hamburger,
|
|
18
|
+
[NAVIGATION_DISPLAY.hamburgerLight]: NAVIGATION_TYPE.hamburger,
|
|
19
|
+
[NAVIGATION_DISPLAY.hamburgerLightHalf]: NAVIGATION_TYPE.hamburger,
|
|
20
|
+
[NAVIGATION_DISPLAY.hamburgerRounded]: NAVIGATION_TYPE.hamburger,
|
|
21
|
+
};
|
|
22
|
+
export const NAVIGATION_TYPE_DEFAULT_DISPLAY_TYPE = {
|
|
23
|
+
[NAVIGATION_TYPE.bar]: NAVIGATION_DISPLAY.TAB_1,
|
|
24
|
+
[NAVIGATION_TYPE.hamburger]: NAVIGATION_DISPLAY.HAMBURGER_1,
|
|
25
|
+
};
|
|
26
|
+
// Falls back to a substring sniff for any value not in the map (e.g. a hand-edited
|
|
27
|
+
// or not-yet-migrated draft) so this can never fail to classify a stored displayType.
|
|
28
|
+
export const getNavigationType = (displayType) => NAVIGATION_TYPE_BY_DISPLAY_TYPE[displayType] ??
|
|
29
|
+
(displayType.includes('hamburger')
|
|
30
|
+
? NAVIGATION_TYPE.hamburger
|
|
31
|
+
: NAVIGATION_TYPE.bar);
|
|
@@ -1185,6 +1185,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1185
1185
|
}): void;
|
|
1186
1186
|
collapseAllSections(): void;
|
|
1187
1187
|
setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
|
|
1188
|
+
setPreviousSelectedNavigationDisplayType(viewport: string, displayType: string): void;
|
|
1188
1189
|
}>;
|
|
1189
1190
|
uiTemplateSettingsStore: import("pinia").Store<"uiTemplateSettings", import("@shared/template-settings/store").TemplatesSettingState, {
|
|
1190
1191
|
renderAsImage(): boolean;
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -1197,6 +1197,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
1197
1197
|
}): void;
|
|
1198
1198
|
collapseAllSections(): void;
|
|
1199
1199
|
setPreviousSelectedDisplayStyle(viewport: string, displayStyle: string): void;
|
|
1200
|
+
setPreviousSelectedNavigationDisplayType(viewport: string, displayType: string): void;
|
|
1200
1201
|
}>;
|
|
1201
1202
|
eventTracker: {
|
|
1202
1203
|
sendShippingToggleEvent: (isEnabled: boolean) => void;
|
|
@@ -20,6 +20,7 @@ export interface NavigationStyleConfig extends Omit<NavigationDesktop | Navigati
|
|
|
20
20
|
options: NavigationStyleConfigOption[];
|
|
21
21
|
}
|
|
22
22
|
export declare const availableNavigationStyleConfigs: NavigationStyleConfig[];
|
|
23
|
+
export declare const navigationTypeOptions: () => ButtonGroupOption[];
|
|
23
24
|
export interface NavigationStylesTypeConfig {
|
|
24
25
|
type: PageSection;
|
|
25
26
|
isLogoFieldsOptional: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultHamburgerNavigation, NAVIGATION_DISPLAY, FONT_FAMILY_CONFIGS, DEFAULT_FONT_FAMILY_KEY, FONT_SIZE_BODY, DEFAULT_TEXT_ALIGN, } from '@brand-page';
|
|
1
|
+
import { defaultHamburgerNavigation, NAVIGATION_DISPLAY, NAVIGATION_TYPE, FONT_FAMILY_CONFIGS, DEFAULT_FONT_FAMILY_KEY, FONT_SIZE_BODY, DEFAULT_TEXT_ALIGN, } from '@brand-page';
|
|
2
2
|
import { PAGE_SECTIONS } from '@shared/page-settings/models';
|
|
3
3
|
import { commonTr, modelsTr } from '@src/composables/useTranslate';
|
|
4
4
|
export const NavigationStyleConfigOptions = {
|
|
@@ -76,7 +76,8 @@ export const availableNavigationStyleConfigs = [
|
|
|
76
76
|
buttonGroupOption: {
|
|
77
77
|
value: NAVIGATION_DISPLAY.TAB_1,
|
|
78
78
|
iconName: 'nav-style-tab-display-style-1',
|
|
79
|
-
iconViewBox: '0 0
|
|
79
|
+
iconViewBox: '0 0 160 56',
|
|
80
|
+
dataAttribute: 'data-nav-style-tab-1',
|
|
80
81
|
isSelected: false,
|
|
81
82
|
},
|
|
82
83
|
renderAfterLogo: false,
|
|
@@ -113,7 +114,8 @@ export const availableNavigationStyleConfigs = [
|
|
|
113
114
|
buttonGroupOption: {
|
|
114
115
|
value: NAVIGATION_DISPLAY.TAB_2,
|
|
115
116
|
iconName: 'nav-style-tab-display-style-2',
|
|
116
|
-
iconViewBox: '0 0
|
|
117
|
+
iconViewBox: '0 0 160 56',
|
|
118
|
+
dataAttribute: 'data-nav-style-tab-2',
|
|
117
119
|
isSelected: false,
|
|
118
120
|
},
|
|
119
121
|
renderAfterLogo: false,
|
|
@@ -125,7 +127,8 @@ export const availableNavigationStyleConfigs = [
|
|
|
125
127
|
buttonGroupOption: {
|
|
126
128
|
value: NAVIGATION_DISPLAY.HAMBURGER_1,
|
|
127
129
|
iconName: 'nav-style-hamburger-display-style-1',
|
|
128
|
-
iconViewBox: '0 0
|
|
130
|
+
iconViewBox: '0 0 33 33',
|
|
131
|
+
dataAttribute: 'data-nav-style-hamburger-1',
|
|
129
132
|
isSelected: false,
|
|
130
133
|
},
|
|
131
134
|
renderAfterLogo: false,
|
|
@@ -136,7 +139,8 @@ export const availableNavigationStyleConfigs = [
|
|
|
136
139
|
buttonGroupOption: {
|
|
137
140
|
value: NAVIGATION_DISPLAY.HAMBURGER_2,
|
|
138
141
|
iconName: 'nav-style-hamburger-display-style-2',
|
|
139
|
-
iconViewBox: '0 0
|
|
142
|
+
iconViewBox: '0 0 33 33',
|
|
143
|
+
dataAttribute: 'data-nav-style-hamburger-2',
|
|
140
144
|
isSelected: false,
|
|
141
145
|
},
|
|
142
146
|
renderAfterLogo: false,
|
|
@@ -147,7 +151,8 @@ export const availableNavigationStyleConfigs = [
|
|
|
147
151
|
buttonGroupOption: {
|
|
148
152
|
value: NAVIGATION_DISPLAY.HAMBURGER_3,
|
|
149
153
|
iconName: 'nav-style-hamburger-display-style-3',
|
|
150
|
-
iconViewBox: '0 0
|
|
154
|
+
iconViewBox: '0 0 33 33',
|
|
155
|
+
dataAttribute: 'data-nav-style-hamburger-3',
|
|
151
156
|
isSelected: false,
|
|
152
157
|
},
|
|
153
158
|
renderAfterLogo: false,
|
|
@@ -158,12 +163,31 @@ export const availableNavigationStyleConfigs = [
|
|
|
158
163
|
buttonGroupOption: {
|
|
159
164
|
value: NAVIGATION_DISPLAY.HAMBURGER_4,
|
|
160
165
|
iconName: 'nav-style-hamburger-display-style-4',
|
|
161
|
-
iconViewBox: '0 0
|
|
166
|
+
iconViewBox: '0 0 33 33',
|
|
167
|
+
dataAttribute: 'data-nav-style-hamburger-4',
|
|
162
168
|
isSelected: false,
|
|
163
169
|
},
|
|
164
170
|
renderAfterLogo: false,
|
|
165
171
|
},
|
|
166
172
|
];
|
|
173
|
+
export const navigationTypeOptions = () => [
|
|
174
|
+
{
|
|
175
|
+
value: NAVIGATION_TYPE.bar,
|
|
176
|
+
iconName: 'nav-style-type-bar',
|
|
177
|
+
iconViewBox: '0 0 160 56',
|
|
178
|
+
title: modelsTr('navigationTypeBar'),
|
|
179
|
+
dataAttribute: 'data-nav-type-bar',
|
|
180
|
+
isSelected: false,
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
value: NAVIGATION_TYPE.hamburger,
|
|
184
|
+
iconName: 'nav-style-type-hamburger',
|
|
185
|
+
iconViewBox: '0 0 160 56',
|
|
186
|
+
title: modelsTr('navigationTypeHamburger'),
|
|
187
|
+
dataAttribute: 'data-nav-type-hamburger',
|
|
188
|
+
isSelected: false,
|
|
189
|
+
},
|
|
190
|
+
];
|
|
167
191
|
export const navigationStyleTypeConfigs = {
|
|
168
192
|
header: {
|
|
169
193
|
type: PAGE_SECTIONS.header,
|