@myissue/vue-website-page-builder 3.5.6 → 3.5.8
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/services/PageBuilderService.d.ts +29 -12
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +9208 -8870
- package/dist/vue-website-page-builder.umd.cjs +104 -104
- package/package.json +1 -1
- /package/dist/Components/PageBuilder/EditorMenu/Editables/{Margin.vue.d.ts → MarginControl.vue.d.ts} +0 -0
- /package/dist/Components/PageBuilder/EditorMenu/Editables/{Padding.vue.d.ts → PaddingControl.vue.d.ts} +0 -0
|
@@ -183,6 +183,16 @@ export declare class PageBuilderService {
|
|
|
183
183
|
isSelectedComponentTopElement(): boolean;
|
|
184
184
|
selectedComponentIsFullWidth(): boolean;
|
|
185
185
|
setSelectedComponentFullWidth(enabled: boolean): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Returns true when the global page wrapper (all [data-pagebuilder-content] elements)
|
|
188
|
+
* has the full-width class applied, meaning every section's background stretches edge-to-edge.
|
|
189
|
+
*/
|
|
190
|
+
isGlobalFullWidth(): boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Toggles the full-width class on every [data-pagebuilder-content] wrapper so that
|
|
193
|
+
* global background colours stretch across the entire browser viewport.
|
|
194
|
+
*/
|
|
195
|
+
setGlobalFullWidth(enabled: boolean): Promise<void>;
|
|
186
196
|
/**
|
|
187
197
|
* Attaches click, mouseover, and mouseleave event listeners to all editable elements in the page builder.
|
|
188
198
|
* @private
|
|
@@ -252,64 +262,71 @@ export declare class PageBuilderService {
|
|
|
252
262
|
* @param {string} [userSelectedFontStyle] - The selected font style class.
|
|
253
263
|
*/
|
|
254
264
|
handleFontStyle(userSelectedFontStyle?: string): void;
|
|
265
|
+
/**
|
|
266
|
+
* Removes every class that appears in any of the given arrays from the currently
|
|
267
|
+
* selected element. Used to strip conflicting shorthand/directional padding or
|
|
268
|
+
* margin classes before applying a new value (e.g. remove pbx-py-* when setting
|
|
269
|
+
* pbx-pt-*, so the shorthand never silently overrides the directional value).
|
|
270
|
+
*/
|
|
271
|
+
private purgeConflictingClasses;
|
|
255
272
|
/**
|
|
256
273
|
* Handles changes to the vertical padding of the selected element.
|
|
257
|
-
*
|
|
274
|
+
* py-* shorthand: also clear individual pt-* and pb-* so they don't override.
|
|
258
275
|
*/
|
|
259
276
|
handleVerticalPadding(userSelectedVerticalPadding?: string): void;
|
|
260
277
|
/**
|
|
261
278
|
* Handles changes to the horizontal padding of the selected element.
|
|
262
|
-
*
|
|
279
|
+
* px-* shorthand: also clear individual pl-* and pr-* so they don't override.
|
|
263
280
|
*/
|
|
264
281
|
handleHorizontalPadding(userSelectedHorizontalPadding?: string): void;
|
|
265
282
|
/**
|
|
266
283
|
* Handles changes to the top padding of the selected element.
|
|
267
|
-
*
|
|
284
|
+
* pt-*: also clear py-* shorthand which also sets padding-top.
|
|
268
285
|
*/
|
|
269
286
|
handleTopPadding(userSelectedTopPadding?: string): void;
|
|
270
287
|
/**
|
|
271
288
|
* Handles changes to the right padding of the selected element.
|
|
272
|
-
*
|
|
289
|
+
* pr-*: also clear px-* shorthand which also sets padding-right.
|
|
273
290
|
*/
|
|
274
291
|
handleRightPadding(userSelectedRightPadding?: string): void;
|
|
275
292
|
/**
|
|
276
293
|
* Handles changes to the bottom padding of the selected element.
|
|
277
|
-
*
|
|
294
|
+
* pb-*: also clear py-* shorthand which also sets padding-bottom.
|
|
278
295
|
*/
|
|
279
296
|
handleBottomPadding(userSelectedBottomPadding?: string): void;
|
|
280
297
|
/**
|
|
281
298
|
* Handles changes to the left padding of the selected element.
|
|
282
|
-
*
|
|
299
|
+
* pl-*: also clear px-* shorthand which also sets padding-left.
|
|
283
300
|
*/
|
|
284
301
|
handleLeftPadding(userSelectedLeftPadding?: string): void;
|
|
285
302
|
/**
|
|
286
303
|
* Handles changes to the vertical margin of the selected element.
|
|
287
|
-
*
|
|
304
|
+
* my-* shorthand: also clear individual mt-* and mb-*.
|
|
288
305
|
*/
|
|
289
306
|
handleVerticalMargin(userSelectedVerticalMargin?: string): void;
|
|
290
307
|
/**
|
|
291
308
|
* Handles changes to the horizontal margin of the selected element.
|
|
292
|
-
*
|
|
309
|
+
* mx-* shorthand: also clear individual ml-* and mr-*.
|
|
293
310
|
*/
|
|
294
311
|
handleHorizontalMargin(userSelectedHorizontalMargin?: string): void;
|
|
295
312
|
/**
|
|
296
313
|
* Handles changes to the top margin of the selected element.
|
|
297
|
-
*
|
|
314
|
+
* mt-*: also clear my-* shorthand.
|
|
298
315
|
*/
|
|
299
316
|
handleTopMargin(userSelectedTopMargin?: string): void;
|
|
300
317
|
/**
|
|
301
318
|
* Handles changes to the right margin of the selected element.
|
|
302
|
-
*
|
|
319
|
+
* mr-*: also clear mx-* shorthand.
|
|
303
320
|
*/
|
|
304
321
|
handleRightMargin(userSelectedRightMargin?: string): void;
|
|
305
322
|
/**
|
|
306
323
|
* Handles changes to the bottom margin of the selected element.
|
|
307
|
-
*
|
|
324
|
+
* mb-*: also clear my-* shorthand.
|
|
308
325
|
*/
|
|
309
326
|
handleBottomMargin(userSelectedBottomMargin?: string): void;
|
|
310
327
|
/**
|
|
311
328
|
* Handles changes to the left margin of the selected element.
|
|
312
|
-
*
|
|
329
|
+
* ml-*: also clear mx-* shorthand.
|
|
313
330
|
*/
|
|
314
331
|
handleLeftMargin(userSelectedLeftMargin?: string): void;
|
|
315
332
|
/**
|