@myissue/vue-website-page-builder 3.5.7 → 3.5.9
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 +30 -13
- package/dist/style.css +1 -1
- package/dist/vue-website-page-builder.js +8432 -8186
- package/dist/vue-website-page-builder.umd.cjs +94 -94
- 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
|
@@ -262,64 +262,71 @@ export declare class PageBuilderService {
|
|
|
262
262
|
* @param {string} [userSelectedFontStyle] - The selected font style class.
|
|
263
263
|
*/
|
|
264
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;
|
|
265
272
|
/**
|
|
266
273
|
* Handles changes to the vertical padding of the selected element.
|
|
267
|
-
*
|
|
274
|
+
* py-* shorthand: also clear individual pt-* and pb-* so they don't override.
|
|
268
275
|
*/
|
|
269
276
|
handleVerticalPadding(userSelectedVerticalPadding?: string): void;
|
|
270
277
|
/**
|
|
271
278
|
* Handles changes to the horizontal padding of the selected element.
|
|
272
|
-
*
|
|
279
|
+
* px-* shorthand: also clear individual pl-* and pr-* so they don't override.
|
|
273
280
|
*/
|
|
274
281
|
handleHorizontalPadding(userSelectedHorizontalPadding?: string): void;
|
|
275
282
|
/**
|
|
276
283
|
* Handles changes to the top padding of the selected element.
|
|
277
|
-
*
|
|
284
|
+
* pt-*: also clear py-* shorthand which also sets padding-top.
|
|
278
285
|
*/
|
|
279
286
|
handleTopPadding(userSelectedTopPadding?: string): void;
|
|
280
287
|
/**
|
|
281
288
|
* Handles changes to the right padding of the selected element.
|
|
282
|
-
*
|
|
289
|
+
* pr-*: also clear px-* shorthand which also sets padding-right.
|
|
283
290
|
*/
|
|
284
291
|
handleRightPadding(userSelectedRightPadding?: string): void;
|
|
285
292
|
/**
|
|
286
293
|
* Handles changes to the bottom padding of the selected element.
|
|
287
|
-
*
|
|
294
|
+
* pb-*: also clear py-* shorthand which also sets padding-bottom.
|
|
288
295
|
*/
|
|
289
296
|
handleBottomPadding(userSelectedBottomPadding?: string): void;
|
|
290
297
|
/**
|
|
291
298
|
* Handles changes to the left padding of the selected element.
|
|
292
|
-
*
|
|
299
|
+
* pl-*: also clear px-* shorthand which also sets padding-left.
|
|
293
300
|
*/
|
|
294
301
|
handleLeftPadding(userSelectedLeftPadding?: string): void;
|
|
295
302
|
/**
|
|
296
303
|
* Handles changes to the vertical margin of the selected element.
|
|
297
|
-
*
|
|
304
|
+
* my-* shorthand: also clear individual mt-* and mb-*.
|
|
298
305
|
*/
|
|
299
306
|
handleVerticalMargin(userSelectedVerticalMargin?: string): void;
|
|
300
307
|
/**
|
|
301
308
|
* Handles changes to the horizontal margin of the selected element.
|
|
302
|
-
*
|
|
309
|
+
* mx-* shorthand: also clear individual ml-* and mr-*.
|
|
303
310
|
*/
|
|
304
311
|
handleHorizontalMargin(userSelectedHorizontalMargin?: string): void;
|
|
305
312
|
/**
|
|
306
313
|
* Handles changes to the top margin of the selected element.
|
|
307
|
-
*
|
|
314
|
+
* mt-*: also clear my-* shorthand.
|
|
308
315
|
*/
|
|
309
316
|
handleTopMargin(userSelectedTopMargin?: string): void;
|
|
310
317
|
/**
|
|
311
318
|
* Handles changes to the right margin of the selected element.
|
|
312
|
-
*
|
|
319
|
+
* mr-*: also clear mx-* shorthand.
|
|
313
320
|
*/
|
|
314
321
|
handleRightMargin(userSelectedRightMargin?: string): void;
|
|
315
322
|
/**
|
|
316
323
|
* Handles changes to the bottom margin of the selected element.
|
|
317
|
-
*
|
|
324
|
+
* mb-*: also clear my-* shorthand.
|
|
318
325
|
*/
|
|
319
326
|
handleBottomMargin(userSelectedBottomMargin?: string): void;
|
|
320
327
|
/**
|
|
321
328
|
* Handles changes to the left margin of the selected element.
|
|
322
|
-
*
|
|
329
|
+
* ml-*: also clear mx-* shorthand.
|
|
323
330
|
*/
|
|
324
331
|
handleLeftMargin(userSelectedLeftMargin?: string): void;
|
|
325
332
|
/**
|
|
@@ -498,7 +505,7 @@ export declare class PageBuilderService {
|
|
|
498
505
|
* Syncs the current DOM state of components to the in-memory store.
|
|
499
506
|
* @private
|
|
500
507
|
*/
|
|
501
|
-
syncDomToStoreOnly(): void
|
|
508
|
+
syncDomToStoreOnly(): Promise<void>;
|
|
502
509
|
generateHtmlFromComponents(): Promise<string>;
|
|
503
510
|
/**
|
|
504
511
|
* Saves the current DOM state of components to local storage.
|
|
@@ -523,6 +530,16 @@ export declare class PageBuilderService {
|
|
|
523
530
|
* if there are no [data-pagebuilder-content] elements.
|
|
524
531
|
*/
|
|
525
532
|
private readCurrentPageSettings;
|
|
533
|
+
/** Applies captured global page classes/styles to every section wrapper. */
|
|
534
|
+
private applyPageSettingsToAllWrappers;
|
|
535
|
+
/** Reconnects the global-styles MutationObserver after a Vue remount replaces wrapper nodes. */
|
|
536
|
+
private reconnectGlobalStylesObserver;
|
|
537
|
+
/**
|
|
538
|
+
* Updates the component store and re-renders the page without losing global page
|
|
539
|
+
* styles on [data-pagebuilder-content]. setComponents clears wrappers first, so
|
|
540
|
+
* settings must be captured before the remount and re-applied after Vue renders.
|
|
541
|
+
*/
|
|
542
|
+
private setComponentsPreservingPageSettings;
|
|
526
543
|
/**
|
|
527
544
|
* Parses a CSS style string into a key-value object.
|
|
528
545
|
* @param {string} style - The style string to parse.
|