@designcrowd/library.brand-page 5.17.26 → 5.17.27-ast-subnav-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-VRXS13Qb.js → CreatedOnBrandCrowd-de-de-QPSG1My1.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-DDlGTS8d.js → CreatedOnBrandCrowd-en-us-DYw-8tnU.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-CaILSVOE.js → CreatedOnBrandCrowd-es-es-Bg7a_t7D.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-kiixi46I.js → CreatedOnBrandCrowd-fr-ca-C7lmWy4y.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-kiixi46I.js → CreatedOnBrandCrowd-fr-fr-C7lmWy4y.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-BAWhHTNW.js → CreatedOnBrandCrowd-pt-br-ul3uX7x1.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-BAWhHTNW.js → CreatedOnBrandCrowd-pt-pt-ul3uX7x1.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-KMymmdYJ.js → CreatedOnDcom-de-de-DpcKIqq_.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-Xbb1s9xr.js → CreatedOnDcom-en-us-KU2QVmYM.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-CrKF6nhT.js → CreatedOnDcom-es-es-CBfEZBfC.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-BHWAZ396.js → CreatedOnDcom-fr-ca-BjbxwU17.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-BkdyCo1N.js → CreatedOnDcom-fr-fr-DhuQWFFk.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-D6uGMOQK.js → CreatedOnDcom-pt-br-CgsjIRmA.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-DiTbBVlw.js → CreatedOnDcom-pt-pt-B0Bv8d8B.js} +1 -1
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +6 -2
- package/lib/src/brand-page/models/navigation-styles.model.d.ts +3 -0
- package/lib/src/brand-page/models/navigation-styles.model.js +20 -1
- package/lib/src/brand-page/utils/style.util.js +12 -2
- package/lib/src/brand-page/utils/view-model.util.js +4 -2
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +7 -1
- 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 +5 -0
- package/lib/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.js +9 -1
- package/lib/src/{bundled-translations-COJwMYZ0.js → bundled-translations-CNK7l6_v.js} +9 -9
- package/lib/src/{bundled-translations.de-DE-BdYMgNC3.js → bundled-translations.de-DE-BLE4_y0H.js} +17 -17
- package/lib/src/{bundled-translations.es-ES-CJXyzNz8.js → bundled-translations.es-ES-thO9osbg.js} +9 -9
- package/lib/src/{bundled-translations.fr-CA-DiyUryYZ.js → bundled-translations.fr-CA-BZkhiNgU.js} +1 -1
- package/lib/src/{bundled-translations.fr-FR-8iiRlBxi.js → bundled-translations.fr-FR-bhDLPKgZ.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-7LV0pVmr.js → bundled-translations.pt-BR-CI9a5Bq1.js} +1 -1
- package/lib/src/{bundled-translations.pt-PT-B1f8O2Bz.js → bundled-translations.pt-PT-DBoErBaq.js} +21 -21
- package/lib/src/bundles/bundled-translations.de-DE.json +1 -0
- package/lib/src/bundles/bundled-translations.es-ES.json +1 -0
- package/lib/src/bundles/bundled-translations.fr-CA.json +1 -0
- package/lib/src/bundles/bundled-translations.fr-FR.json +1 -0
- package/lib/src/bundles/bundled-translations.json +1 -0
- package/lib/src/bundles/bundled-translations.pt-BR.json +1 -0
- package/lib/src/bundles/bundled-translations.pt-PT.json +1 -0
- package/lib/src/css/library.brand-page-brandCrowd.min.css +45 -35
- package/lib/src/css/library.brand-page-brandPage.min.css +45 -35
- package/lib/src/css/library.brand-page-designCom.min.css +45 -35
- package/lib/src/css/library.brand-page-preview.min.css +45 -35
- package/lib/src/index.mjs +49 -48
- package/lib/src/{lib-CXbaouxA.js → lib-B24cj3cW.js} +16648 -16562
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +3 -1
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +45 -5
- package/lib/src/shared/navigation-style-settings/store/index.d.ts +6 -0
- package/lib/src/shared/navigation-style-settings/store/index.js +25 -1
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +27 -1
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +25 -2
- package/package.json +2 -1
- package/src/brand-page/components/button/Button.vue +1 -1
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +22 -8
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +6 -2
- package/src/brand-page/models/navigation-styles.model.ts +31 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +12 -0
- package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +4 -0
- package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +8 -0
- package/src/brand-page/utils/style.util.ts +11 -2
- package/src/brand-page/utils/view-model.util.ts +10 -2
- package/src/brand-page-maker/components/color-palette/BpColorPalette.vue +10 -1
- package/src/brand-page-maker/models/i18n/models.de-DE.json +16 -14
- package/src/brand-page-maker/models/i18n/models.es-ES.json +16 -14
- package/src/brand-page-maker/models/i18n/models.fr-CA.json +16 -14
- package/src/brand-page-maker/models/i18n/models.fr-FR.json +16 -14
- package/src/brand-page-maker/models/i18n/models.json +1 -0
- package/src/brand-page-maker/models/i18n/models.pt-BR.json +16 -14
- package/src/brand-page-maker/models/i18n/models.pt-PT.json +16 -14
- package/src/brand-page-maker/models/navigation-style-configs.ts +5 -0
- package/src/brand-page-maker/stores/brandpage-maker/brandpage-maker-store.ts +14 -0
- package/src/bundles/bundled-translations.de-DE.json +1 -0
- package/src/bundles/bundled-translations.es-ES.json +1 -0
- package/src/bundles/bundled-translations.fr-CA.json +1 -0
- package/src/bundles/bundled-translations.fr-FR.json +1 -0
- package/src/bundles/bundled-translations.json +1 -0
- package/src/bundles/bundled-translations.pt-BR.json +1 -0
- package/src/bundles/bundled-translations.pt-PT.json +1 -0
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +67 -7
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.vue +11 -5
- package/src/shared/navigation-style-settings/store/index.ts +47 -1
package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js
CHANGED
|
@@ -70,12 +70,16 @@ export default defineComponent({
|
|
|
70
70
|
return navItem.relativePath === this.context.currentPageRelativePath;
|
|
71
71
|
},
|
|
72
72
|
getSubNavItemStyle(navItem) {
|
|
73
|
-
const
|
|
73
|
+
const isActive = this.isCurrentPage(navItem);
|
|
74
|
+
const baseStyle = isActive
|
|
74
75
|
? this.selectedButtonStyle
|
|
75
76
|
: this.defaultButtonStyle;
|
|
76
77
|
return {
|
|
77
78
|
...baseStyle,
|
|
78
|
-
paddingLeft: '32px',
|
|
79
|
+
paddingLeft: '32px',
|
|
80
|
+
backgroundColor: isActive
|
|
81
|
+
? baseStyle.backgroundColor
|
|
82
|
+
: this.styles.hamburgerMenuStyle.subNavBackgroundColor ?? '#ffffff',
|
|
79
83
|
};
|
|
80
84
|
},
|
|
81
85
|
closeSideMenu() {
|
|
@@ -5,8 +5,10 @@ export declare class NavigationMenuStyles {
|
|
|
5
5
|
defaultButtonStyle: TextStyleDeclaration;
|
|
6
6
|
selectedButtonStyle: BrandPageCssStyle;
|
|
7
7
|
iconStyle: BrandPageCssStyle;
|
|
8
|
+
subNavBackgroundColor?: string;
|
|
8
9
|
constructor(options: Partial<NavigationMenuStyles>, defaultOptions: Partial<NavigationMenuStyles>);
|
|
9
10
|
}
|
|
11
|
+
export declare const getDefaultSubNavBackgroundColor: (defaultTextColor: string | undefined) => string | undefined;
|
|
10
12
|
type NavigationStylesOptionType = Partial<Omit<NavigationDesktop | NavigationMobile, 'hamburgerMenuStyle'>> & {
|
|
11
13
|
hamburgerMenuStyle?: Partial<NavigationMenuStyles>;
|
|
12
14
|
};
|
|
@@ -17,6 +19,7 @@ declare abstract class NavigationStyles implements NavigationMenuStyles {
|
|
|
17
19
|
defaultButtonStyle: TextStyleDeclaration;
|
|
18
20
|
selectedButtonStyle: BrandPageCssStyle;
|
|
19
21
|
iconStyle: BrandPageCssStyle;
|
|
22
|
+
subNavBackgroundColor?: string;
|
|
20
23
|
isLogoVisible: boolean;
|
|
21
24
|
hamburgerMenuStyle: NavigationMenuStyles;
|
|
22
25
|
viewport: ViewportsType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_FONT_FAMILY_KEY, DEFAULT_FONT_STYLE, DEFAULT_TEXT_ALIGN, DEFAULT_TEXT_DECORATION, FONT_FAMILY_CONFIGS, FONT_SIZE_BODY, FONT_WEIGHT_NORMAL, defaultHamburgerNavigation, NAVIGATION_DISPLAY, } from '../constants';
|
|
1
|
+
import { DEFAULT_FONT_FAMILY_KEY, DEFAULT_FONT_STYLE, DEFAULT_TEXT_ALIGN, DEFAULT_TEXT_DECORATION, FONT_FAMILY_CONFIGS, FONT_SIZE_BODY, FONT_WEIGHT_NORMAL, STYLE_THEME_KEYS, defaultHamburgerNavigation, NAVIGATION_DISPLAY, } from '../constants';
|
|
2
2
|
import { VIEWPORTS } from './index';
|
|
3
3
|
import { TEXT_STYLE_TYPES } from './index';
|
|
4
4
|
import cloneDeep from 'lodash.clonedeep';
|
|
@@ -6,18 +6,33 @@ export class NavigationMenuStyles {
|
|
|
6
6
|
defaultButtonStyle;
|
|
7
7
|
selectedButtonStyle;
|
|
8
8
|
iconStyle;
|
|
9
|
+
subNavBackgroundColor;
|
|
9
10
|
constructor(options, defaultOptions) {
|
|
10
11
|
this.defaultButtonStyle = Object.assign({}, defaultOptions.defaultButtonStyle, options.defaultButtonStyle || {});
|
|
11
12
|
this.selectedButtonStyle = Object.assign({}, defaultOptions.selectedButtonStyle, options.selectedButtonStyle || {});
|
|
12
13
|
this.iconStyle = Object.assign({}, defaultOptions.iconStyle, options.iconStyle || {});
|
|
14
|
+
this.subNavBackgroundColor =
|
|
15
|
+
options.subNavBackgroundColor ?? defaultOptions.subNavBackgroundColor;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
export const getDefaultSubNavBackgroundColor = (defaultTextColor) => {
|
|
19
|
+
if (defaultTextColor === STYLE_THEME_KEYS.LogoTextColor ||
|
|
20
|
+
defaultTextColor === STYLE_THEME_KEYS.LogoTextMultiColor) {
|
|
21
|
+
return STYLE_THEME_KEYS.LogoBackgroundColor;
|
|
22
|
+
}
|
|
23
|
+
if (defaultTextColor === STYLE_THEME_KEYS.LogoBackgroundColor ||
|
|
24
|
+
defaultTextColor === STYLE_THEME_KEYS.LogoBackgroundMultiColor) {
|
|
25
|
+
return STYLE_THEME_KEYS.LogoTextColor;
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
};
|
|
15
29
|
class NavigationStyles {
|
|
16
30
|
displayType;
|
|
17
31
|
renderAfterLogo;
|
|
18
32
|
defaultButtonStyle;
|
|
19
33
|
selectedButtonStyle;
|
|
20
34
|
iconStyle;
|
|
35
|
+
subNavBackgroundColor;
|
|
21
36
|
isLogoVisible;
|
|
22
37
|
hamburgerMenuStyle;
|
|
23
38
|
viewport;
|
|
@@ -55,6 +70,9 @@ class NavigationStyles {
|
|
|
55
70
|
borderColor: theme?.primaryColor,
|
|
56
71
|
}, option?.selectedButtonStyle || {});
|
|
57
72
|
this.iconStyle = Object.assign({}, option?.iconStyle || {});
|
|
73
|
+
this.subNavBackgroundColor =
|
|
74
|
+
option?.subNavBackgroundColor ??
|
|
75
|
+
getDefaultSubNavBackgroundColor(this.defaultButtonStyle.color);
|
|
58
76
|
this.isLogoVisible = option?.isLogoVisible || true;
|
|
59
77
|
this.hamburgerMenuStyle = new NavigationMenuStyles(option?.hamburgerMenuStyle || {}, {
|
|
60
78
|
defaultButtonStyle: {
|
|
@@ -74,6 +92,7 @@ class NavigationStyles {
|
|
|
74
92
|
color: theme?.secondaryColor,
|
|
75
93
|
backgroundColor: theme?.primaryColor,
|
|
76
94
|
},
|
|
95
|
+
subNavBackgroundColor: theme?.secondaryColor,
|
|
77
96
|
});
|
|
78
97
|
}
|
|
79
98
|
}
|
|
@@ -162,13 +162,23 @@ export const applyLogoThemeToBrandPageNavigationStyles = (logoTheme, navigation)
|
|
|
162
162
|
: new NavigationDesktop();
|
|
163
163
|
for (const [key, value] of Object.entries(navigation)) {
|
|
164
164
|
if (typeof value === 'string' || typeof value === 'boolean') {
|
|
165
|
-
|
|
165
|
+
if (typeof value === 'string') {
|
|
166
|
+
const output = colorMatchCssKeyValue(key, value, logoTheme);
|
|
167
|
+
newNavigation[key] = output.cssValue;
|
|
168
|
+
isModified = isModified || output.isModified;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
newNavigation[key] = value;
|
|
172
|
+
}
|
|
166
173
|
}
|
|
167
|
-
else {
|
|
174
|
+
else if (value != null && typeof value === 'object') {
|
|
168
175
|
const output = applyLogoThemeToBrandPageStyleRecursive(logoTheme, key, value);
|
|
169
176
|
newNavigation[key] = output.newStyle;
|
|
170
177
|
isModified = isModified || output.isApplied;
|
|
171
178
|
}
|
|
179
|
+
else {
|
|
180
|
+
newNavigation[key] = value;
|
|
181
|
+
}
|
|
172
182
|
}
|
|
173
183
|
return { navigation: newNavigation, isModified };
|
|
174
184
|
};
|
|
@@ -669,10 +669,12 @@ export const mapToPageHeaderViewModel = (pageHeader, pageStyles, pages, useOldLo
|
|
|
669
669
|
};
|
|
670
670
|
const navDefaultButtonTextStyle = getTextStyleByContentTextStyle(pageHeader.navigation.defaultButtonStyle, pageStyles.textStyles.textStyleOptions);
|
|
671
671
|
const navDefaultButtonStyle = Object.assign({}, pageHeader.navigation.defaultButtonStyle, navDefaultButtonTextStyle);
|
|
672
|
-
const
|
|
672
|
+
const { backgroundColor: _defaultBg, ...navDefaultTextStyleWithoutBg } = navDefaultButtonTextStyle || {};
|
|
673
|
+
const navSelectedButtonStyle = Object.assign({}, navDefaultTextStyleWithoutBg, pageHeader.navigation.selectedButtonStyle);
|
|
673
674
|
const hamburgerButtonTextStyle = getTextStyleByContentTextStyle(pageHeader.navigation.hamburgerMenuStyle.defaultButtonStyle, pageStyles.textStyles.textStyleOptions);
|
|
674
675
|
const hamburgerButtonStyle = Object.assign({}, pageHeader.navigation.hamburgerMenuStyle.defaultButtonStyle, hamburgerButtonTextStyle);
|
|
675
|
-
const
|
|
676
|
+
const { backgroundColor: _hamburgerDefaultBg, ...hamburgerTextStyleWithoutBg } = hamburgerButtonTextStyle || {};
|
|
677
|
+
const hamburgerSelectedButtonStyle = Object.assign({}, hamburgerTextStyleWithoutBg, pageHeader.navigation.hamburgerMenuStyle.selectedButtonStyle);
|
|
676
678
|
const hamburgerMenuStyle = new NavigationMenuStyles(Object.assign({}, pageHeader.navigation.hamburgerMenuStyle, {
|
|
677
679
|
defaultButtonStyle: hamburgerButtonStyle,
|
|
678
680
|
selectedButtonStyle: hamburgerSelectedButtonStyle,
|
package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts
CHANGED
|
@@ -964,6 +964,12 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
964
964
|
style: BrandPageCssStyle;
|
|
965
965
|
viewport: import("@brand-page").ViewportsType;
|
|
966
966
|
}): void;
|
|
967
|
+
_setSubNavBackgroundColor({ displayType, section, value, viewport, }: {
|
|
968
|
+
displayType: import("@brand-page").NavigationDisplayType;
|
|
969
|
+
section: "footer" | "header";
|
|
970
|
+
value: string | undefined;
|
|
971
|
+
viewport: import("@brand-page").ViewportsType;
|
|
972
|
+
}): void;
|
|
967
973
|
_setButtonStyles({ section, defaultButtonStyle, selectedButtonStyle, iconStyle, viewport, }: {
|
|
968
974
|
section: "footer" | "header";
|
|
969
975
|
defaultButtonStyle: import("@brand-page").TextStyleDeclaration;
|
|
@@ -978,7 +984,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
978
984
|
}): void;
|
|
979
985
|
setNavigationStyleOptionValue({ section, option, value, viewport, }: {
|
|
980
986
|
section: "footer" | "header";
|
|
981
|
-
option: "defaultBorderColor" | "selectedBorderColor" | "defaultTextStyle" | "defaultBackgroundColor" | "selectedTextColor" | "selectedBackgroundColor" | "iconColor" | "iconBackgroundColor";
|
|
987
|
+
option: "defaultBorderColor" | "selectedBorderColor" | "subNavBackgroundColor" | "defaultTextStyle" | "defaultBackgroundColor" | "selectedTextColor" | "selectedBackgroundColor" | "iconColor" | "iconBackgroundColor";
|
|
982
988
|
value: any;
|
|
983
989
|
viewport: import("@brand-page").ViewportsType;
|
|
984
990
|
}): void;
|
|
@@ -11,6 +11,7 @@ export declare const NavigationStyleConfigOptions: {
|
|
|
11
11
|
readonly selectedBackgroundColor: "selectedBackgroundColor";
|
|
12
12
|
readonly iconColor: "iconColor";
|
|
13
13
|
readonly iconBackgroundColor: "iconBackgroundColor";
|
|
14
|
+
readonly subNavBackgroundColor: "subNavBackgroundColor";
|
|
14
15
|
};
|
|
15
16
|
export type NavigationStyleConfigOption = keyof typeof NavigationStyleConfigOptions;
|
|
16
17
|
export declare const NAVIGATION_STYLE_CONFIG_OPTION_TITLES: () => Record<NavigationStyleConfigOption, string>;
|
|
@@ -10,6 +10,7 @@ export const NavigationStyleConfigOptions = {
|
|
|
10
10
|
selectedBackgroundColor: 'selectedBackgroundColor',
|
|
11
11
|
iconColor: 'iconColor',
|
|
12
12
|
iconBackgroundColor: 'iconBackgroundColor',
|
|
13
|
+
subNavBackgroundColor: 'subNavBackgroundColor',
|
|
13
14
|
};
|
|
14
15
|
export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = () => ({
|
|
15
16
|
defaultBorderColor: modelsTr('defaultBorderColor'),
|
|
@@ -20,6 +21,7 @@ export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = () => ({
|
|
|
20
21
|
selectedBackgroundColor: modelsTr('selectedBackgroundColor'),
|
|
21
22
|
iconColor: commonTr('iconColor'),
|
|
22
23
|
iconBackgroundColor: modelsTr('iconBackgroundColor'),
|
|
24
|
+
subNavBackgroundColor: modelsTr('subNavBackgroundColor'),
|
|
23
25
|
});
|
|
24
26
|
const hamburgerNavigationConfig = {
|
|
25
27
|
...defaultHamburgerNavigation,
|
|
@@ -29,6 +31,7 @@ const hamburgerNavigationConfig = {
|
|
|
29
31
|
'selectedBackgroundColor',
|
|
30
32
|
'iconColor',
|
|
31
33
|
'iconBackgroundColor',
|
|
34
|
+
'subNavBackgroundColor',
|
|
32
35
|
],
|
|
33
36
|
selectedButtonStyle: {},
|
|
34
37
|
iconStyle: {},
|
|
@@ -68,6 +71,7 @@ export const availableNavigationStyleConfigs = [
|
|
|
68
71
|
'selectedBackgroundColor',
|
|
69
72
|
'selectedBorderColor',
|
|
70
73
|
'selectedTextColor',
|
|
74
|
+
'subNavBackgroundColor',
|
|
71
75
|
],
|
|
72
76
|
buttonGroupOption: {
|
|
73
77
|
value: NAVIGATION_DISPLAY.TAB_1,
|
|
@@ -104,6 +108,7 @@ export const availableNavigationStyleConfigs = [
|
|
|
104
108
|
'defaultBorderColor',
|
|
105
109
|
'selectedBackgroundColor',
|
|
106
110
|
'selectedTextColor',
|
|
111
|
+
'subNavBackgroundColor',
|
|
107
112
|
],
|
|
108
113
|
buttonGroupOption: {
|
|
109
114
|
value: NAVIGATION_DISPLAY.TAB_2,
|
|
@@ -18,7 +18,7 @@ import { useUiContentSettingsStore } from '@shared/content-settings/store';
|
|
|
18
18
|
import { setContentSettingsAddContentOptions } from './brandpage-maker-store-utils';
|
|
19
19
|
import { useAdminLogoSettingsStore } from '../admin-logo-settings';
|
|
20
20
|
import { useUiPageSettingsStore } from '@shared/page-settings/store';
|
|
21
|
-
import { mapBrandPageContentToContentSettingsItem, removeContentFieldValues, removeLogoTemplateModel, } from '@brand-page-maker/utils';
|
|
21
|
+
import { isColorMatched, mapBrandPageContentToContentSettingsItem, removeContentFieldValues, removeLogoTemplateModel, } from '@brand-page-maker/utils';
|
|
22
22
|
import { UI_DEVICE_MODES, UI_SCREENSIZE_MODES, } from '@shared/models';
|
|
23
23
|
import { PAGE_SECTIONS } from '@shared/page-settings/models';
|
|
24
24
|
import { useUiTemplateSettingsStore } from '@shared/template-settings/store';
|
|
@@ -644,6 +644,14 @@ export const useBrandPageMakerStore = defineStore('brandPageMaker', {
|
|
|
644
644
|
},
|
|
645
645
|
},
|
|
646
646
|
});
|
|
647
|
+
if (userStore.isAdmin && !this.isUserDraft) {
|
|
648
|
+
for (const viewport of [VIEWPORTS.desktop, VIEWPORTS.mobile]) {
|
|
649
|
+
const hamburger = navigationStyleSettingsStore.navigation[PAGE_SECTIONS.header][viewport].hamburgerMenuStyle;
|
|
650
|
+
if (isColorMatched(hamburger.subNavBackgroundColor)) {
|
|
651
|
+
hamburger.subNavBackgroundColor = undefined;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
647
655
|
uiStore.setThirdPartySettings({
|
|
648
656
|
thirdPartySettings: {
|
|
649
657
|
unsplashApplicationName,
|