@designcrowd/library.brand-page 5.6.4-scroll-1 → 5.6.4-scroll-3
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/brand-page/components/page/Page.mixin.d.ts +2 -1
- package/lib/src/brand-page/components/page/Page.mixin.js +26 -15
- package/lib/src/brand-page-maker/components/admin-background-settings/AdminBackgroundSettings.mixin.d.ts +6 -0
- package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.js +1 -1
- package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +2 -1
- package/lib/src/css/library.brand-page-brandCrowd.min.css +15 -15
- package/lib/src/css/library.brand-page-brandPage.min.css +15 -15
- package/lib/src/css/library.brand-page-designCom.min.css +15 -15
- package/lib/src/css/library.brand-page-preview.min.css +15 -15
- package/lib/src/index.mjs +3949 -3930
- package/lib/src/shared/background-settings/components/BackgroundSettings.mixin.d.ts +6 -0
- package/lib/src/shared/background-settings/components/background-color/BackgroundColorSettings.mixin.d.ts +6 -0
- package/lib/src/shared/background-settings/components/background-shapes/BackgroundShapeSettings.mixin.d.ts +6 -0
- package/lib/src/shared/content-settings/components/color-field/ColorField.mixin.d.ts +6 -0
- package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +148 -0
- package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +130 -0
- package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +10 -0
- package/package.json +1 -1
- package/src/brand-page/components/page/Page.mixin.ts +40 -20
- package/src/brand-page/components/page/Page.vue +2 -1
- package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.ts +1 -1
|
@@ -70,6 +70,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
70
70
|
fontWeight?: string | undefined;
|
|
71
71
|
height?: string | undefined;
|
|
72
72
|
left?: string | undefined;
|
|
73
|
+
right?: string | undefined;
|
|
73
74
|
letterSpacing?: string | undefined;
|
|
74
75
|
lineHeight?: string | undefined;
|
|
75
76
|
marginBottom?: string | undefined;
|
|
@@ -82,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
82
83
|
textAlign?: string | undefined;
|
|
83
84
|
textDecoration?: string | undefined;
|
|
84
85
|
top?: string | undefined;
|
|
86
|
+
bottom?: string | undefined;
|
|
85
87
|
transform?: string | undefined;
|
|
86
88
|
transformOrigin?: string | undefined;
|
|
87
89
|
transition?: string | undefined;
|
|
@@ -118,6 +120,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
118
120
|
fontWeight?: string | undefined;
|
|
119
121
|
height?: string | undefined;
|
|
120
122
|
left?: string | undefined;
|
|
123
|
+
right?: string | undefined;
|
|
121
124
|
letterSpacing?: string | undefined;
|
|
122
125
|
lineHeight?: string | undefined;
|
|
123
126
|
marginBottom?: string | undefined;
|
|
@@ -130,6 +133,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
130
133
|
textAlign?: string | undefined;
|
|
131
134
|
textDecoration?: string | undefined;
|
|
132
135
|
top?: string | undefined;
|
|
136
|
+
bottom?: string | undefined;
|
|
133
137
|
transform?: string | undefined;
|
|
134
138
|
transformOrigin?: string | undefined;
|
|
135
139
|
transition?: string | undefined;
|
|
@@ -165,6 +169,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
165
169
|
fontWeight?: string | undefined;
|
|
166
170
|
height?: string | undefined;
|
|
167
171
|
left?: string | undefined;
|
|
172
|
+
right?: string | undefined;
|
|
168
173
|
letterSpacing?: string | undefined;
|
|
169
174
|
lineHeight?: string | undefined;
|
|
170
175
|
marginBottom?: string | undefined;
|
|
@@ -177,6 +182,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
177
182
|
textAlign?: string | undefined;
|
|
178
183
|
textDecoration?: string | undefined;
|
|
179
184
|
top?: string | undefined;
|
|
185
|
+
bottom?: string | undefined;
|
|
180
186
|
transform?: string | undefined;
|
|
181
187
|
transformOrigin?: string | undefined;
|
|
182
188
|
transition?: string | undefined;
|
|
@@ -210,6 +216,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
210
216
|
fontWeight?: string | undefined;
|
|
211
217
|
height?: string | undefined;
|
|
212
218
|
left?: string | undefined;
|
|
219
|
+
right?: string | undefined;
|
|
213
220
|
letterSpacing?: string | undefined;
|
|
214
221
|
lineHeight?: string | undefined;
|
|
215
222
|
marginBottom?: string | undefined;
|
|
@@ -222,6 +229,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
222
229
|
textAlign?: string | undefined;
|
|
223
230
|
textDecoration?: string | undefined;
|
|
224
231
|
top?: string | undefined;
|
|
232
|
+
bottom?: string | undefined;
|
|
225
233
|
transform?: string | undefined;
|
|
226
234
|
transformOrigin?: string | undefined;
|
|
227
235
|
transition?: string | undefined;
|
|
@@ -257,6 +265,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
257
265
|
fontWeight?: string | undefined;
|
|
258
266
|
height?: string | undefined;
|
|
259
267
|
left?: string | undefined;
|
|
268
|
+
right?: string | undefined;
|
|
260
269
|
letterSpacing?: string | undefined;
|
|
261
270
|
lineHeight?: string | undefined;
|
|
262
271
|
marginBottom?: string | undefined;
|
|
@@ -269,6 +278,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
269
278
|
textAlign?: string | undefined;
|
|
270
279
|
textDecoration?: string | undefined;
|
|
271
280
|
top?: string | undefined;
|
|
281
|
+
bottom?: string | undefined;
|
|
272
282
|
transform?: string | undefined;
|
|
273
283
|
transformOrigin?: string | undefined;
|
|
274
284
|
transition?: string | undefined;
|
package/package.json
CHANGED
|
@@ -107,7 +107,28 @@ export default defineComponent({
|
|
|
107
107
|
return backgroundShapes;
|
|
108
108
|
},
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
rootElementStyles(): BrandPageCssStyle {
|
|
111
|
+
const styles: BrandPageCssStyle = {};
|
|
112
|
+
|
|
113
|
+
Object.assign(styles, this.viewModel?.styles?.textStyles?.style);
|
|
114
|
+
|
|
115
|
+
const textFontFamilyKey =
|
|
116
|
+
this.viewModel.styles?.textStyles.textFontFamily ||
|
|
117
|
+
DEFAULT_FONT_FAMILY_KEY;
|
|
118
|
+
|
|
119
|
+
const textFontFamilyConfig = FONT_FAMILY_CONFIGS[textFontFamilyKey];
|
|
120
|
+
|
|
121
|
+
if (textFontFamilyConfig) {
|
|
122
|
+
styles.fontFamily = [
|
|
123
|
+
`"${textFontFamilyConfig.name}"`,
|
|
124
|
+
...FALLBACK_FONT_FAMILIES,
|
|
125
|
+
].join(', ');
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return styles;
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
rootBackgroundStyles(): BrandPageCssStyle {
|
|
111
132
|
const styles: BrandPageCssStyle = {
|
|
112
133
|
...(this.viewModel?.styles?.backgroundStyles?.style || {}),
|
|
113
134
|
};
|
|
@@ -139,7 +160,11 @@ export default defineComponent({
|
|
|
139
160
|
styles.backgroundImage = `url(${this.viewModel?.styles?.backgroundStyles?.backgroundImageUrl})`;
|
|
140
161
|
|
|
141
162
|
if (!this.context.isTemplate) {
|
|
142
|
-
styles.
|
|
163
|
+
styles.position = 'fixed';
|
|
164
|
+
styles.top = '0';
|
|
165
|
+
styles.bottom = '0';
|
|
166
|
+
styles.left = '0';
|
|
167
|
+
styles.right = '0';
|
|
143
168
|
}
|
|
144
169
|
|
|
145
170
|
delete styles.background;
|
|
@@ -155,21 +180,6 @@ export default defineComponent({
|
|
|
155
180
|
styles.backgroundAttachment = 'fixed';
|
|
156
181
|
}
|
|
157
182
|
|
|
158
|
-
Object.assign(styles, this.viewModel?.styles?.textStyles?.style);
|
|
159
|
-
|
|
160
|
-
const textFontFamilyKey =
|
|
161
|
-
this.viewModel.styles?.textStyles.textFontFamily ||
|
|
162
|
-
DEFAULT_FONT_FAMILY_KEY;
|
|
163
|
-
|
|
164
|
-
const textFontFamilyConfig = FONT_FAMILY_CONFIGS[textFontFamilyKey];
|
|
165
|
-
|
|
166
|
-
if (textFontFamilyConfig) {
|
|
167
|
-
styles.fontFamily = [
|
|
168
|
-
`"${textFontFamilyConfig.name}"`,
|
|
169
|
-
...FALLBACK_FONT_FAMILIES,
|
|
170
|
-
].join(', ');
|
|
171
|
-
}
|
|
172
|
-
|
|
173
183
|
return styles;
|
|
174
184
|
},
|
|
175
185
|
|
|
@@ -329,7 +339,10 @@ export default defineComponent({
|
|
|
329
339
|
},
|
|
330
340
|
},
|
|
331
341
|
watch: {
|
|
332
|
-
|
|
342
|
+
rootElementStyles() {
|
|
343
|
+
this.setRootStyles();
|
|
344
|
+
},
|
|
345
|
+
rootBackgroundStyles() {
|
|
333
346
|
this.setRootStyles();
|
|
334
347
|
},
|
|
335
348
|
},
|
|
@@ -364,12 +377,19 @@ export default defineComponent({
|
|
|
364
377
|
*/
|
|
365
378
|
setRootStyles() {
|
|
366
379
|
if (this.context.isPreview) {
|
|
367
|
-
this.$emit(
|
|
380
|
+
this.$emit(
|
|
381
|
+
'on-set-preview-styles',
|
|
382
|
+
Object.assign({}, this.rootElementStyles, this.rootBackgroundStyles),
|
|
383
|
+
);
|
|
368
384
|
|
|
369
385
|
return;
|
|
370
386
|
}
|
|
371
387
|
|
|
372
|
-
this.styles = Object.assign(
|
|
388
|
+
this.styles = Object.assign(
|
|
389
|
+
this.styles,
|
|
390
|
+
this.rootElementStyles,
|
|
391
|
+
this.rootBackgroundStyles,
|
|
392
|
+
);
|
|
373
393
|
},
|
|
374
394
|
scrollToLastContent() {
|
|
375
395
|
if (!this.contents.length) {
|
|
@@ -164,7 +164,7 @@ export default defineComponent({
|
|
|
164
164
|
: null;
|
|
165
165
|
|
|
166
166
|
if (!this.containerStore.baseFabricRenderUrl) {
|
|
167
|
-
throw new Error('base fabric render url is undefined');
|
|
167
|
+
// throw new Error('base fabric render url is undefined');
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
FabricRenderClient.setInstance({
|