@designcrowd/library.brand-page 5.17.21 → 5.17.23-ast-subnav
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-Brtp2yWB.js → CreatedOnBrandCrowd-de-de-Ct9Aewoo.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-en-us-BIJ5VoX4.js → CreatedOnBrandCrowd-en-us-BsEzGp5K.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-es-es-JrKK9K0u.js → CreatedOnBrandCrowd-es-es-UiIPmY0h.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-fr-D_HvOZe-.js → CreatedOnBrandCrowd-fr-ca-CQmEXbU7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-fr-ca-D_HvOZe-.js → CreatedOnBrandCrowd-fr-fr-CQmEXbU7.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-pt-SSLb0vlp.js → CreatedOnBrandCrowd-pt-br-DoMI5QSQ.js} +1 -1
- package/lib/src/{CreatedOnBrandCrowd-pt-br-SSLb0vlp.js → CreatedOnBrandCrowd-pt-pt-DoMI5QSQ.js} +1 -1
- package/lib/src/{CreatedOnDcom-de-de-BG39ozFo.js → CreatedOnDcom-de-de-gexV_wWX.js} +1 -1
- package/lib/src/{CreatedOnDcom-en-us-D2NzqECZ.js → CreatedOnDcom-en-us-C2sLHLjJ.js} +1 -1
- package/lib/src/{CreatedOnDcom-es-es-C55r2Lb4.js → CreatedOnDcom-es-es-CZFd666H.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-ca-Bj-sAaJI.js → CreatedOnDcom-fr-ca-CPaRB_io.js} +1 -1
- package/lib/src/{CreatedOnDcom-fr-fr-D8l0r-Tc.js → CreatedOnDcom-fr-fr-BQo5D5gE.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-br-CXHC6E1h.js → CreatedOnDcom-pt-br-CRr3CqOj.js} +1 -1
- package/lib/src/{CreatedOnDcom-pt-pt-2dMvgnyi.js → CreatedOnDcom-pt-pt-DR6Vi-eZ.js} +1 -1
- package/lib/src/brand-page/components/banner-section/BannerSection.mixin.d.ts +1 -1
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +1 -0
- package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +20 -2
- package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.d.ts +8 -1
- package/lib/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.js +97 -3
- package/lib/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.js +6 -2
- package/lib/src/brand-page/models/index.d.ts +1 -1
- package/lib/src/brand-page/models/navigation-styles.model.d.ts +2 -0
- package/lib/src/brand-page/models/navigation-styles.model.js +20 -1
- package/lib/src/brand-page/utils/migration/migration-14.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-14.js +16 -0
- package/lib/src/brand-page/utils/migration/migration-15.d.ts +2 -0
- package/lib/src/brand-page/utils/migration/migration-15.js +37 -0
- package/lib/src/brand-page/utils/migration.util.js +12 -0
- package/lib/src/brand-page/utils/style.util.js +16 -2
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.d.ts +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.js +1 -1
- package/lib/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.js +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +7 -1
- package/lib/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.js +1 -1
- package/lib/src/brand-page-maker/constants/config-settings-constant.js +1 -10
- package/lib/src/brand-page-maker/models/content-settings-configs.d.ts +5 -0
- package/lib/src/brand-page-maker/models/content-settings.js +3 -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 +5 -0
- package/lib/src/brand-page-maker/utils/rich-text-editor.util.js +170 -388
- package/lib/src/{bundled-translations-Bu_5FO26.js → bundled-translations-Cy6nun02.js} +1 -1
- package/lib/src/{bundled-translations.de-DE-CZTzknyj.js → bundled-translations.de-DE-BUZncCAM.js} +1 -1
- package/lib/src/{bundled-translations.es-ES-p86F-gOD.js → bundled-translations.es-ES-D4IPwZD-.js} +9 -9
- package/lib/src/{bundled-translations.fr-CA-CM5ZA8dQ.js → bundled-translations.fr-CA-BMgRrrwA.js} +9 -9
- package/lib/src/{bundled-translations.fr-FR-DV7sOgtb.js → bundled-translations.fr-FR-Ck7kYrK4.js} +1 -1
- package/lib/src/{bundled-translations.pt-BR-DkWWGrsz.js → bundled-translations.pt-BR--5_9viJ9.js} +1 -1
- package/lib/src/{bundled-translations.pt-PT-C5Td5lLs.js → bundled-translations.pt-PT-DAGUOQ7m.js} +13 -13
- 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 +110 -103
- package/lib/src/css/library.brand-page-brandPage.min.css +110 -103
- package/lib/src/css/library.brand-page-designCom.min.css +110 -103
- package/lib/src/css/library.brand-page-preview.min.css +110 -103
- package/lib/src/index.mjs +1 -1
- package/lib/src/{lib-CrBvj1a5.js → lib-wvy4koSU.js} +22606 -22689
- package/lib/src/metadata-builder/builders/section-field-maps.js +1 -0
- package/lib/src/metadata-builder/builders/section-field-utils.js +5 -0
- package/lib/src/metadata-builder/helpers/rte.helpers.js +3 -0
- package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +2 -1
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.d.ts +4 -1
- package/lib/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.js +55 -2
- package/lib/src/shared/navigation-style-settings/store/index.d.ts +6 -0
- package/lib/src/shared/navigation-style-settings/store/index.js +15 -0
- 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 +1 -1
- package/src/brand-page/components/about-section/AboutSection.vue +63 -6
- package/src/brand-page/components/collapsible/Collapsible.vue +8 -2
- package/src/brand-page/components/contact-form/ContactForm.mixin.ts +21 -2
- package/src/brand-page/components/contact-form/ContactForm.vue +15 -15
- package/src/brand-page/components/image-gallery/ImageGalleryModal.mixin.ts +114 -5
- package/src/brand-page/components/image-gallery/ImageGalleryModal.vue +25 -8
- package/src/brand-page/components/navigation/navigation-carousel/NavigationCarousel.vue +19 -8
- package/src/brand-page/components/navigation/navigation-side-menu/NavigationSideMenu.mixin.ts +6 -2
- package/src/brand-page/components/text-wrapper/TextWrapper.vue +5 -1
- package/src/brand-page/models/index.ts +1 -1
- package/src/brand-page/models/navigation-styles.model.ts +31 -0
- package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +15 -3
- 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/migration/migration-14.ts +23 -0
- package/src/brand-page/utils/migration/migration-15.ts +62 -0
- package/src/brand-page/utils/migration.util.ts +14 -0
- package/src/brand-page/utils/style.util.ts +16 -2
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-page-examples.ts +1 -1
- package/src/brand-page-maker/components/brand-page-maker/__fixtures__/brand-site-template.examples.ts +1 -1
- package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +8 -1
- package/src/brand-page-maker/composables/rich-text-editor/useRichTextEditor.ts +1 -1
- package/src/brand-page-maker/constants/config-settings-constant.ts +1 -10
- package/src/brand-page-maker/models/content-settings-configs.ts +6 -0
- package/src/brand-page-maker/models/content-settings.ts +3 -0
- package/src/brand-page-maker/models/i18n/models.de-DE.json +1 -0
- package/src/brand-page-maker/models/i18n/models.es-ES.json +1 -0
- package/src/brand-page-maker/models/i18n/models.fr-CA.json +1 -0
- package/src/brand-page-maker/models/i18n/models.fr-FR.json +1 -0
- package/src/brand-page-maker/models/i18n/models.json +1 -0
- package/src/brand-page-maker/models/i18n/models.pt-BR.json +1 -0
- package/src/brand-page-maker/models/i18n/models.pt-PT.json +1 -0
- package/src/brand-page-maker/models/navigation-style-configs.ts +5 -0
- package/src/brand-page-maker/utils/rich-text-editor.util.ts +274 -684
- 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/metadata-builder/builders/section-field-maps.ts +1 -0
- package/src/metadata-builder/builders/section-field-utils.ts +5 -0
- package/src/metadata-builder/helpers/rte.helpers.ts +4 -0
- package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +2 -1
- package/src/shared/navigation-style-settings/components/navigation-style-settings/NavigationStyleSettings.mixin.ts +82 -4
- package/src/shared/navigation-style-settings/store/index.ts +30 -0
- package/lib/src/brand-page/components/about-section/AboutSection.mixin.d.ts +0 -83
- package/lib/src/brand-page/components/about-section/AboutSection.mixin.js +0 -65
- package/src/brand-page/components/about-section/AboutSection.mixin.ts +0 -78
|
@@ -182,6 +182,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
|
|
|
182
182
|
"backgroundColor": undefined,
|
|
183
183
|
"color": undefined,
|
|
184
184
|
},
|
|
185
|
+
"subNavBackgroundColor": "#ffffff",
|
|
185
186
|
},
|
|
186
187
|
"iconStyle": {},
|
|
187
188
|
"isLogoVisible": true,
|
|
@@ -196,6 +197,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
|
|
|
196
197
|
"borderTopWidth": "0px",
|
|
197
198
|
"color": undefined,
|
|
198
199
|
},
|
|
200
|
+
"subNavBackgroundColor": "#ffffff",
|
|
199
201
|
"viewport": "desktop",
|
|
200
202
|
},
|
|
201
203
|
"navigationStyles": undefined,
|
|
@@ -254,6 +256,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
|
|
|
254
256
|
"backgroundColor": undefined,
|
|
255
257
|
"color": undefined,
|
|
256
258
|
},
|
|
259
|
+
"subNavBackgroundColor": "#ffffff",
|
|
257
260
|
},
|
|
258
261
|
"iconStyle": {},
|
|
259
262
|
"isLogoVisible": true,
|
|
@@ -268,6 +271,7 @@ exports[`migration02.ts > migration02 should return converted letterspacing 1`]
|
|
|
268
271
|
"borderTopWidth": "0px",
|
|
269
272
|
"color": undefined,
|
|
270
273
|
},
|
|
274
|
+
"subNavBackgroundColor": "#ffffff",
|
|
271
275
|
"viewport": "desktop",
|
|
272
276
|
},
|
|
273
277
|
"navigationStyles": undefined,
|
|
@@ -181,6 +181,7 @@ BrandPageModel {
|
|
|
181
181
|
"backgroundColor": undefined,
|
|
182
182
|
"color": undefined,
|
|
183
183
|
},
|
|
184
|
+
"subNavBackgroundColor": "#ffffff",
|
|
184
185
|
},
|
|
185
186
|
"iconStyle": {},
|
|
186
187
|
"isLogoVisible": true,
|
|
@@ -195,6 +196,7 @@ BrandPageModel {
|
|
|
195
196
|
"borderTopWidth": "0px",
|
|
196
197
|
"color": undefined,
|
|
197
198
|
},
|
|
199
|
+
"subNavBackgroundColor": "#ffffff",
|
|
198
200
|
"viewport": "desktop",
|
|
199
201
|
},
|
|
200
202
|
"navigationStyles": undefined,
|
|
@@ -253,6 +255,7 @@ BrandPageModel {
|
|
|
253
255
|
"backgroundColor": undefined,
|
|
254
256
|
"color": undefined,
|
|
255
257
|
},
|
|
258
|
+
"subNavBackgroundColor": "#ffffff",
|
|
256
259
|
},
|
|
257
260
|
"iconStyle": {},
|
|
258
261
|
"isLogoVisible": true,
|
|
@@ -267,6 +270,7 @@ BrandPageModel {
|
|
|
267
270
|
"borderTopWidth": "0px",
|
|
268
271
|
"color": undefined,
|
|
269
272
|
},
|
|
273
|
+
"subNavBackgroundColor": "#ffffff",
|
|
270
274
|
"viewport": "desktop",
|
|
271
275
|
},
|
|
272
276
|
"navigationStyles": undefined,
|
|
@@ -626,6 +630,7 @@ BrandPageModel {
|
|
|
626
630
|
"backgroundColor": undefined,
|
|
627
631
|
"color": undefined,
|
|
628
632
|
},
|
|
633
|
+
"subNavBackgroundColor": "#ffffff",
|
|
629
634
|
},
|
|
630
635
|
"iconStyle": {},
|
|
631
636
|
"isLogoVisible": true,
|
|
@@ -640,6 +645,7 @@ BrandPageModel {
|
|
|
640
645
|
"borderTopWidth": "0px",
|
|
641
646
|
"color": undefined,
|
|
642
647
|
},
|
|
648
|
+
"subNavBackgroundColor": "#ffffff",
|
|
643
649
|
"viewport": "desktop",
|
|
644
650
|
},
|
|
645
651
|
"navigationStyles": undefined,
|
|
@@ -698,6 +704,7 @@ BrandPageModel {
|
|
|
698
704
|
"backgroundColor": undefined,
|
|
699
705
|
"color": undefined,
|
|
700
706
|
},
|
|
707
|
+
"subNavBackgroundColor": "#ffffff",
|
|
701
708
|
},
|
|
702
709
|
"iconStyle": {},
|
|
703
710
|
"isLogoVisible": true,
|
|
@@ -712,6 +719,7 @@ BrandPageModel {
|
|
|
712
719
|
"borderTopWidth": "0px",
|
|
713
720
|
"color": undefined,
|
|
714
721
|
},
|
|
722
|
+
"subNavBackgroundColor": "#ffffff",
|
|
715
723
|
"viewport": "desktop",
|
|
716
724
|
},
|
|
717
725
|
"navigationStyles": undefined,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { MigrationData } from '../migration.util';
|
|
2
|
+
import { isContact } from '../model.util';
|
|
3
|
+
|
|
4
|
+
export const migration14 = async (
|
|
5
|
+
migrationResult: MigrationData,
|
|
6
|
+
): Promise<MigrationData> => {
|
|
7
|
+
const { brandPageModel } = migrationResult;
|
|
8
|
+
|
|
9
|
+
brandPageModel.pages.forEach((page) => {
|
|
10
|
+
page.contents.forEach((content) => {
|
|
11
|
+
if (isContact(content)) {
|
|
12
|
+
const contactForm = content as any;
|
|
13
|
+
|
|
14
|
+
if ('messageTextColor' in contactForm) {
|
|
15
|
+
contactForm.successMessageStyle = contactForm.messageTextColor;
|
|
16
|
+
delete contactForm.messageTextColor;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
return migrationResult;
|
|
23
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { STYLE_THEME_KEYS } from '../../constants';
|
|
2
|
+
import type { MigrationData } from '../migration.util';
|
|
3
|
+
|
|
4
|
+
const DEFAULT_SUB_NAV_BG_COLOR = '#ffffff';
|
|
5
|
+
|
|
6
|
+
const getSubNavBgColorFromTextColor = (
|
|
7
|
+
textColor: string | undefined,
|
|
8
|
+
): string => {
|
|
9
|
+
if (
|
|
10
|
+
textColor === STYLE_THEME_KEYS.LogoTextColor ||
|
|
11
|
+
textColor === STYLE_THEME_KEYS.LogoTextMultiColor
|
|
12
|
+
) {
|
|
13
|
+
return STYLE_THEME_KEYS.LogoBackgroundColor;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
if (
|
|
17
|
+
textColor === STYLE_THEME_KEYS.LogoBackgroundColor ||
|
|
18
|
+
textColor === STYLE_THEME_KEYS.LogoBackgroundMultiColor
|
|
19
|
+
) {
|
|
20
|
+
return STYLE_THEME_KEYS.LogoTextColor;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return DEFAULT_SUB_NAV_BG_COLOR;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const migration15 = async (
|
|
27
|
+
migrationResult: MigrationData,
|
|
28
|
+
): Promise<MigrationData> => {
|
|
29
|
+
const { brandPageModel } = migrationResult;
|
|
30
|
+
|
|
31
|
+
const navigations = [
|
|
32
|
+
brandPageModel.pageHeaderDesktop?.navigation,
|
|
33
|
+
brandPageModel.pageHeaderMobile?.navigation,
|
|
34
|
+
(brandPageModel as any).headerStyles?.navigation,
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
for (const nav of navigations) {
|
|
38
|
+
if (!nav) continue;
|
|
39
|
+
|
|
40
|
+
if (
|
|
41
|
+
!nav.subNavBackgroundColor ||
|
|
42
|
+
nav.subNavBackgroundColor === DEFAULT_SUB_NAV_BG_COLOR
|
|
43
|
+
) {
|
|
44
|
+
nav.subNavBackgroundColor = getSubNavBgColorFromTextColor(
|
|
45
|
+
nav.defaultButtonStyle?.color,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (nav.hamburgerMenuStyle) {
|
|
50
|
+
const hamburgerBg = nav.hamburgerMenuStyle.subNavBackgroundColor;
|
|
51
|
+
|
|
52
|
+
if (!hamburgerBg || hamburgerBg === DEFAULT_SUB_NAV_BG_COLOR) {
|
|
53
|
+
nav.hamburgerMenuStyle.subNavBackgroundColor =
|
|
54
|
+
getSubNavBgColorFromTextColor(
|
|
55
|
+
nav.hamburgerMenuStyle.defaultButtonStyle?.color,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return migrationResult;
|
|
62
|
+
};
|
|
@@ -16,6 +16,8 @@ import { migration11 } from './migration/migration-11';
|
|
|
16
16
|
import { migration12 } from './migration/migration-12';
|
|
17
17
|
import { migration12_1 } from './migration/migration-12_1';
|
|
18
18
|
import { migration13 } from './migration/migration-13';
|
|
19
|
+
import { migration14 } from './migration/migration-14';
|
|
20
|
+
import { migration15 } from './migration/migration-15';
|
|
19
21
|
|
|
20
22
|
export interface MigrationData {
|
|
21
23
|
brandPageModel: BrandPageModel;
|
|
@@ -128,6 +130,18 @@ const MIGRATION_TABLE = [
|
|
|
128
130
|
migrateFn: migration13,
|
|
129
131
|
description: 'Migrating old page navigation refererences to use page ids',
|
|
130
132
|
},
|
|
133
|
+
{
|
|
134
|
+
version: 14,
|
|
135
|
+
migrateFn: migration14,
|
|
136
|
+
description:
|
|
137
|
+
'Renaming messageTextColor to successMessageStyle on contact form content',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
version: 15,
|
|
141
|
+
migrateFn: migration15,
|
|
142
|
+
description:
|
|
143
|
+
'Set sub nav background color based on default text style color',
|
|
144
|
+
},
|
|
131
145
|
] as MigrationTableItem[];
|
|
132
146
|
|
|
133
147
|
export const GetLatestModelVersion = () =>
|
|
@@ -297,7 +297,14 @@ export const applyLogoThemeToBrandPageNavigationStyles = (
|
|
|
297
297
|
|
|
298
298
|
for (const [key, value] of Object.entries(navigation)) {
|
|
299
299
|
if (typeof value === 'string' || typeof value === 'boolean') {
|
|
300
|
-
|
|
300
|
+
if (typeof value === 'string') {
|
|
301
|
+
const output = colorMatchCssKeyValue(key, value, logoTheme);
|
|
302
|
+
|
|
303
|
+
newNavigation[key] = output.cssValue;
|
|
304
|
+
isModified = isModified || output.isModified;
|
|
305
|
+
} else {
|
|
306
|
+
newNavigation[key] = value;
|
|
307
|
+
}
|
|
301
308
|
} else {
|
|
302
309
|
const output = applyLogoThemeToBrandPageStyleRecursive(
|
|
303
310
|
logoTheme,
|
|
@@ -405,7 +412,14 @@ const CONTENT_STYLE_PROP_NAME_SUFFIX = [
|
|
|
405
412
|
'Replacements',
|
|
406
413
|
];
|
|
407
414
|
|
|
408
|
-
const RTE_ALLOWED_FIELDS = [
|
|
415
|
+
const RTE_ALLOWED_FIELDS = [
|
|
416
|
+
'title',
|
|
417
|
+
'description',
|
|
418
|
+
'text',
|
|
419
|
+
'textItems',
|
|
420
|
+
'paragraph',
|
|
421
|
+
'successMessage',
|
|
422
|
+
];
|
|
409
423
|
|
|
410
424
|
export const applyLogoThemeToContents = (
|
|
411
425
|
logoTheme: LogoTheme,
|
|
@@ -381,7 +381,7 @@
|
|
|
381
381
|
</div>
|
|
382
382
|
</div>
|
|
383
383
|
</div>
|
|
384
|
-
<div class="tw-relative">
|
|
384
|
+
<div class="tw-relative" :class="{ 'editor-compact': isCompact }">
|
|
385
385
|
<BubbleMenu
|
|
386
386
|
:editor="editor"
|
|
387
387
|
:tippy-options="tippyOptions"
|
|
@@ -965,6 +965,9 @@ const {
|
|
|
965
965
|
selectedLinkType,
|
|
966
966
|
);
|
|
967
967
|
|
|
968
|
+
const COMPACT_FIELD_NAMES = ['title', 'name'];
|
|
969
|
+
const isCompact = computed(() => COMPACT_FIELD_NAMES.includes(props.name));
|
|
970
|
+
|
|
968
971
|
const isExternalLink = computed(() => {
|
|
969
972
|
const href = editor.getAttributes('link').href;
|
|
970
973
|
return href && (href.startsWith('http://') || href.startsWith('https://'));
|
|
@@ -1091,6 +1094,10 @@ const getSlugFromPageIdHref = (href: string): string => {
|
|
|
1091
1094
|
@apply tw-max-h-56 tw-overflow-auto;
|
|
1092
1095
|
}
|
|
1093
1096
|
|
|
1097
|
+
.editor-compact ::v-deep .ProseMirror {
|
|
1098
|
+
@apply tw-min-h-24;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1094
1101
|
::v-deep .ProseMirror:focus {
|
|
1095
1102
|
outline: none;
|
|
1096
1103
|
}
|
|
@@ -656,7 +656,7 @@ export const useRichTextEditor = (
|
|
|
656
656
|
selectedTextStyle ?? selectedGlobalTextStyles.value?.style;
|
|
657
657
|
|
|
658
658
|
if (globalStyles) {
|
|
659
|
-
globalStyles.fontWeight && toggleBoldAll();
|
|
659
|
+
globalStyles.fontWeight === 'bold' && toggleBoldAll();
|
|
660
660
|
globalStyles.fontStyle && toggleItalicAll();
|
|
661
661
|
globalStyles.textDecoration?.includes('underline') &&
|
|
662
662
|
toggleUnderlineAll();
|
|
@@ -2153,6 +2153,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG =
|
|
|
2153
2153
|
placeholder: contentSettingsTr(`successMessagePlaceholder`),
|
|
2154
2154
|
title: contentSettingsTr(`successMessageTitle`),
|
|
2155
2155
|
groupId: CONTACT_FORM_GROUPS.settings,
|
|
2156
|
+
maxLength: 1000,
|
|
2156
2157
|
},
|
|
2157
2158
|
responseEmail: {
|
|
2158
2159
|
type: 'email',
|
|
@@ -2192,16 +2193,6 @@ export const CONTACT_FORM_SETTINGS_CONFIG =
|
|
|
2192
2193
|
title: contentSettingsTr(`backgroundColorTitle`),
|
|
2193
2194
|
valueConvertor: backgroundColorConvertor,
|
|
2194
2195
|
},
|
|
2195
|
-
messageTextColor: {
|
|
2196
|
-
type: 'color',
|
|
2197
|
-
groupId: CONTACT_FORM_GROUPS.style,
|
|
2198
|
-
defaultValue: {},
|
|
2199
|
-
isInline: true,
|
|
2200
|
-
showToggle: false,
|
|
2201
|
-
disableTransparent: true,
|
|
2202
|
-
title: contentSettingsTr(`successMessageTextColorTitle`),
|
|
2203
|
-
valueConvertor: colorConvertor,
|
|
2204
|
-
},
|
|
2205
2196
|
},
|
|
2206
2197
|
isEnabled: true,
|
|
2207
2198
|
isLocked: (features) => !features.canAddContactFormContents,
|
|
@@ -148,6 +148,12 @@ export interface ContentSettingsField<TContent> {
|
|
|
148
148
|
fieldTypeAssessor?: FieldTypeAssessor<TContent>;
|
|
149
149
|
defaultGetter?: DefaultGetter<any>;
|
|
150
150
|
validator?: ContentValidator<TContent>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Override the style field name used by the RTE editor.
|
|
154
|
+
* Defaults to `${fieldName}Style` when not specified.
|
|
155
|
+
*/
|
|
156
|
+
styleName?: string;
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
export interface ContentSettingsMultiField<TContent, TField>
|
|
@@ -537,6 +537,9 @@ export const createInitialContactFormContent: CreateInitialContentFunction<
|
|
|
537
537
|
textStyleType: TEXT_STYLE_TYPES.paragraphs,
|
|
538
538
|
textAlign: 'center',
|
|
539
539
|
},
|
|
540
|
+
successMessageStyle: {
|
|
541
|
+
textStyleType: TEXT_STYLE_TYPES.paragraphs,
|
|
542
|
+
},
|
|
540
543
|
buttonTextStyle: {
|
|
541
544
|
applyAutoScale: options?.brandPageType === BRAND_PAGE_TYPES.brandSite,
|
|
542
545
|
textStyleType: TEXT_STYLE_TYPES.buttons,
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Ausgewählte Textfarbe",
|
|
9
9
|
"iconColor" : "Symbolfarbe",
|
|
10
10
|
"iconBackgroundColor" : "Symbolhintergrundfarbe",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "Alle",
|
|
12
13
|
"generalDisplayName" : "Allgemein",
|
|
13
14
|
"socialLinksDisplayName" : "Social Media",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Color de texto seleccionado",
|
|
9
9
|
"iconColor" : "Color del icono",
|
|
10
10
|
"iconBackgroundColor" : "Color de fondo del icono",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "Todo",
|
|
12
13
|
"generalDisplayName" : "General",
|
|
13
14
|
"socialLinksDisplayName" : "Redes sociales",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Couleur de texte sélectionnée",
|
|
9
9
|
"iconColor" : "Couleur de l'icône",
|
|
10
10
|
"iconBackgroundColor" : "Couleur d’arrière-plan de l’icône",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "Tous",
|
|
12
13
|
"generalDisplayName" : "Général",
|
|
13
14
|
"socialLinksDisplayName" : "Réseaux sociaux",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Couleur de texte sélectionnée",
|
|
9
9
|
"iconColor" : "Couleur de l'icône",
|
|
10
10
|
"iconBackgroundColor" : "Couleur d’arrière-plan de l’icône",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "Tous",
|
|
12
13
|
"generalDisplayName" : "Général",
|
|
13
14
|
"socialLinksDisplayName" : "Réseaux sociaux",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Cor do texto selecionado",
|
|
9
9
|
"iconColor" : "Cor do ícone",
|
|
10
10
|
"iconBackgroundColor" : "Cor de fundo do ícone",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "tudo",
|
|
12
13
|
"generalDisplayName" : "Geral",
|
|
13
14
|
"socialLinksDisplayName" : "Redes sociais",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"selectedTextColor" : "Cor do texto selecionado",
|
|
9
9
|
"iconColor" : "Cor do ícone",
|
|
10
10
|
"iconBackgroundColor" : "Cor de fundo do ícone",
|
|
11
|
+
"subNavBackgroundColor" : "Sub nav background color",
|
|
11
12
|
"allDisplayName" : "Tudo",
|
|
12
13
|
"generalDisplayName" : "Geral",
|
|
13
14
|
"socialLinksDisplayName" : "Redes sociais",
|
|
@@ -25,6 +25,7 @@ export const NavigationStyleConfigOptions = {
|
|
|
25
25
|
selectedBackgroundColor: 'selectedBackgroundColor',
|
|
26
26
|
iconColor: 'iconColor',
|
|
27
27
|
iconBackgroundColor: 'iconBackgroundColor',
|
|
28
|
+
subNavBackgroundColor: 'subNavBackgroundColor',
|
|
28
29
|
} as const;
|
|
29
30
|
|
|
30
31
|
export type NavigationStyleConfigOption =
|
|
@@ -42,6 +43,7 @@ export const NAVIGATION_STYLE_CONFIG_OPTION_TITLES = (): Record<
|
|
|
42
43
|
selectedBackgroundColor: modelsTr('selectedBackgroundColor'),
|
|
43
44
|
iconColor: commonTr('iconColor'),
|
|
44
45
|
iconBackgroundColor: modelsTr('iconBackgroundColor'),
|
|
46
|
+
subNavBackgroundColor: modelsTr('subNavBackgroundColor'),
|
|
45
47
|
});
|
|
46
48
|
|
|
47
49
|
export interface NavigationStyleConfig
|
|
@@ -61,6 +63,7 @@ const hamburgerNavigationConfig: NavigationStyleConfig = {
|
|
|
61
63
|
'selectedBackgroundColor',
|
|
62
64
|
'iconColor',
|
|
63
65
|
'iconBackgroundColor',
|
|
66
|
+
'subNavBackgroundColor',
|
|
64
67
|
],
|
|
65
68
|
selectedButtonStyle: {},
|
|
66
69
|
iconStyle: {},
|
|
@@ -101,6 +104,7 @@ export const availableNavigationStyleConfigs: NavigationStyleConfig[] = [
|
|
|
101
104
|
'selectedBackgroundColor',
|
|
102
105
|
'selectedBorderColor',
|
|
103
106
|
'selectedTextColor',
|
|
107
|
+
'subNavBackgroundColor',
|
|
104
108
|
],
|
|
105
109
|
buttonGroupOption: {
|
|
106
110
|
value: NAVIGATION_DISPLAY.TAB_1,
|
|
@@ -137,6 +141,7 @@ export const availableNavigationStyleConfigs: NavigationStyleConfig[] = [
|
|
|
137
141
|
'defaultBorderColor',
|
|
138
142
|
'selectedBackgroundColor',
|
|
139
143
|
'selectedTextColor',
|
|
144
|
+
'subNavBackgroundColor',
|
|
140
145
|
],
|
|
141
146
|
buttonGroupOption: {
|
|
142
147
|
value: NAVIGATION_DISPLAY.TAB_2,
|