@pobuca/email-builder 1.5.0 → 1.5.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/bundles/pobuca-email-builder.umd.js +6 -2
- package/bundles/pobuca-email-builder.umd.js.map +1 -1
- package/bundles/pobuca-email-builder.umd.min.js +1 -1
- package/bundles/pobuca-email-builder.umd.min.js.map +1 -1
- package/esm2015/lib/components/block/block.component.js +7 -3
- package/fesm2015/pobuca-email-builder.js +6 -2
- package/fesm2015/pobuca-email-builder.js.map +1 -1
- package/lib/components/block/block.component.d.ts +1 -0
- package/package.json +1 -1
- package/pobuca-email-builder.metadata.json +1 -1
|
@@ -6022,6 +6022,10 @@
|
|
|
6022
6022
|
// this.chRef.markForCheck();
|
|
6023
6023
|
});
|
|
6024
6024
|
};
|
|
6025
|
+
BlockComponent.prototype.clearHighlight = function (event) {
|
|
6026
|
+
event.stopPropagation();
|
|
6027
|
+
this.userInterfaceService.clearBlockHighlight();
|
|
6028
|
+
};
|
|
6025
6029
|
BlockComponent.prototype.editBlock = function () {
|
|
6026
6030
|
var _this = this;
|
|
6027
6031
|
this.pbMiddlewaresService
|
|
@@ -6070,9 +6074,9 @@
|
|
|
6070
6074
|
BlockComponent.decorators = [
|
|
6071
6075
|
{ type: i0.Component, args: [{
|
|
6072
6076
|
selector: 'pb-block',
|
|
6073
|
-
template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<ng-content select=\".move\"></ng-content>\n<div class=\"tools\" fxLayout fxLayoutGap=\"0.25rem\">\n <button mat-icon-button (click)=\"duplicateBlock()\" i18n-matTooltip=\"block|Duplicate Block\"\n matTooltip=\"Duplicate Block\">\n <mat-icon i18n-aria-label=\"block|Duplicate Block\" aria-label=\"Duplicate block\" inline>file_copy</mat-icon>\n </button>\n <button mat-icon-button (click)=\"removeBlock()\" i18n-matTooltip=\"block|Remove Block\" class=\"delete\"\n matTooltip=\"Remove Block\">\n <mat-icon i18n-aria-label=\"block|Remove Block\" aria-label=\"Delete block\" inline>delete_forever</mat-icon>\n </button>\n</div>\n<ng-content *pbDynamicComponent=\"block\"></ng-content>\n",
|
|
6077
|
+
template: "<!--\n ~ Copyright (c) 2024 Pobuca.\n ~ All rights reserved.\n -->\n\n<ng-content select=\".move\"></ng-content>\n<button\n *ngIf=\"isHighlighted\"\n type=\"button\"\n mat-icon-button\n class=\"highlight-clear\"\n (click)=\"clearHighlight($event)\"\n i18n-aria-label=\"block|Clear highlighted block\"\n aria-label=\"Clear block highlight\"\n i18n-matTooltip=\"block|Clear highlighted block\"\n matTooltip=\"Clear highlight\">\n <mat-icon aria-hidden=\"true\" inline>close</mat-icon>\n</button>\n<div class=\"tools\" fxLayout fxLayoutGap=\"0.25rem\">\n <button mat-icon-button (click)=\"duplicateBlock()\" i18n-matTooltip=\"block|Duplicate Block\"\n matTooltip=\"Duplicate Block\">\n <mat-icon i18n-aria-label=\"block|Duplicate Block\" aria-label=\"Duplicate block\" inline>file_copy</mat-icon>\n </button>\n <button mat-icon-button (click)=\"removeBlock()\" i18n-matTooltip=\"block|Remove Block\" class=\"delete\"\n matTooltip=\"Remove Block\">\n <mat-icon i18n-aria-label=\"block|Remove Block\" aria-label=\"Delete block\" inline>delete_forever</mat-icon>\n </button>\n</div>\n<ng-content *pbDynamicComponent=\"block\"></ng-content>\n",
|
|
6074
6078
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6075
|
-
styles: ["/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */:host{display:block;position:relative;transition:box-shadow .2s ease-in-out,opacity .2s ease-in-out}:host.active:not(.cdk-drag-preview)>.tools{opacity:1;display:flex!important}:host.active,:host.cdk-drag-placeholder,:host.cdk-drag-preview{z-index:3;box-shadow:0 0 0 2px #3f51b5}:host:hover:not(.active){box-shadow:0 0 0 2px rgba(63,81,181,.5)}:host.pb-block-dimmed:not(.cdk-drag-preview){opacity:.3}:host.pb-block-highlighted:not(.cdk-drag-preview){opacity:1;z-index:4;box-shadow:0 0 0 3px #ff9800}:host>.tools{direction:ltr;opacity:0;z-index:4;position:absolute;max-width:100%;bottom:-25px;right:0;display:none!important;transition:all .5s ease-in-out}:host>.tools>button{background:#3f51b5;border-radius:3px;color:#fff;line-height:0;width:25px;height:25px}:host>.tools>button mat-icon{font-size:14px;margin-top:-3px}:host>.tools ::ng-deep+*>*{transition:all .5s cubic-bezier(.445,.05,.55,.95)}"]
|
|
6079
|
+
styles: ["/*!\n * Copyright (c) 2024 Pobuca.\n * All rights reserved.\n */:host{display:block;position:relative;transition:box-shadow .2s ease-in-out,opacity .2s ease-in-out}:host.active:not(.cdk-drag-preview)>.tools{opacity:1;display:flex!important}:host.active,:host.cdk-drag-placeholder,:host.cdk-drag-preview{z-index:3;box-shadow:0 0 0 2px #3f51b5}:host:hover:not(.active){box-shadow:0 0 0 2px rgba(63,81,181,.5)}:host.pb-block-dimmed:not(.cdk-drag-preview){opacity:.3}:host.pb-block-highlighted:not(.cdk-drag-preview){opacity:1;z-index:4;box-shadow:0 0 0 3px #ff9800}:host>.highlight-clear{position:absolute;z-index:5;top:4px;right:4px;width:30px;height:30px;line-height:30px;color:#8a4f00;background:#fff;border:2px solid #ff9800;box-shadow:0 1px 4px rgba(0,0,0,.3)}:host>.highlight-clear mat-icon{font-size:18px;line-height:18px}:host>.tools{direction:ltr;opacity:0;z-index:4;position:absolute;max-width:100%;bottom:-25px;right:0;display:none!important;transition:all .5s ease-in-out}:host>.tools>button{background:#3f51b5;border-radius:3px;color:#fff;line-height:0;width:25px;height:25px}:host>.tools>button mat-icon{font-size:14px;margin-top:-3px}:host>.tools ::ng-deep+*>*{transition:all .5s cubic-bezier(.445,.05,.55,.95)}"]
|
|
6076
6080
|
},] }
|
|
6077
6081
|
];
|
|
6078
6082
|
BlockComponent.ctorParameters = function () { return [
|