@wizishop/wizi-block 4.1.18-beta → 4.1.22-beta

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.
Files changed (29) hide show
  1. package/assets/i18n/en.json +1 -1
  2. package/assets/i18n/fr.json +1 -1
  3. package/bundles/wizishop-wizi-block.umd.js +53 -23
  4. package/bundles/wizishop-wizi-block.umd.js.map +1 -1
  5. package/bundles/wizishop-wizi-block.umd.min.js +1 -1
  6. package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
  7. package/esm2015/lib/dtos/blocks/text-backgrounds/text-backgrounds-four-rows-icon-text.dto.js +5 -4
  8. package/esm2015/lib/dtos/blocks/text-backgrounds/text-backgrounds-three-rows-icon-text.dto.js +5 -4
  9. package/esm2015/lib/dtos/blocks/text-backgrounds/text-backgrounds-two-rows-icon-text.dto.js +5 -4
  10. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-four-rows-icon-text.service.js +4 -2
  11. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-three-rows-icon-text.service.js +4 -2
  12. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-two-rows-icon-text.service.js +4 -2
  13. package/esm2015/lib/shared/components/structure-config-font/structure-config-font.component.js +2 -2
  14. package/esm2015/lib/shared/directives/show-delete-button/show-delete-button.directive.js +3 -1
  15. package/esm2015/lib/structures/images/two-images-title-text/two-images-title-text.component.js +2 -2
  16. package/esm2015/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.js +11 -5
  17. package/esm2015/lib/structures/text-backgrounds/three-rows-icon-text/text-backgrounds-three-rows-icon-text.component.js +11 -5
  18. package/esm2015/lib/structures/text-backgrounds/two-rows-icon-text/text-backgrounds-two-rows-icon-text.component.js +12 -5
  19. package/fesm2015/wizishop-wizi-block.js +53 -23
  20. package/fesm2015/wizishop-wizi-block.js.map +1 -1
  21. package/lib/dtos/blocks/text-backgrounds/text-backgrounds-four-rows-icon-text.dto.d.ts +2 -1
  22. package/lib/dtos/blocks/text-backgrounds/text-backgrounds-three-rows-icon-text.dto.d.ts +2 -1
  23. package/lib/dtos/blocks/text-backgrounds/text-backgrounds-two-rows-icon-text.dto.d.ts +2 -1
  24. package/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.d.ts +7 -1
  25. package/lib/structures/text-backgrounds/three-rows-icon-text/text-backgrounds-three-rows-icon-text.component.d.ts +7 -1
  26. package/lib/structures/text-backgrounds/two-rows-icon-text/text-backgrounds-two-rows-icon-text.component.d.ts +7 -1
  27. package/package.json +1 -1
  28. package/wizi-block.scss +523 -121
  29. package/wizishop-wizi-block.metadata.json +1 -1
@@ -7326,7 +7326,7 @@
7326
7326
  },] }
7327
7327
  ];
7328
7328
 
7329
- var _a$1D, _b$1y, _c$1h, _d$15, _e$Z, _f$G;
7329
+ var _a$1D, _b$1y, _c$1h, _d$15, _e$Z, _f$G, _g$w;
7330
7330
  var TextBackgroundsThreeRowsIconTextDto = /** @class */ (function (_super) {
7331
7331
  __extends(TextBackgroundsThreeRowsIconTextDto, _super);
7332
7332
  function TextBackgroundsThreeRowsIconTextDto() {
@@ -7337,11 +7337,12 @@
7337
7337
  _this[_d$15] = [];
7338
7338
  _this[_e$Z] = '#e95656';
7339
7339
  _this[_f$G] = '#ffffff';
7340
+ _this[_g$w] = 'small';
7340
7341
  return _this;
7341
7342
  }
7342
7343
  return TextBackgroundsThreeRowsIconTextDto;
7343
7344
  }(ParentBlockDto));
7344
- _a$1D = FORM_NAME_INIT, _b$1y = FORM_NAME_ITEM_NUMBER, _c$1h = FORM_NAME_LINE_NUMBER, _d$15 = FORM_NAME_ROWS, _e$Z = FORM_NAME_ICON_COLOR, _f$G = FORM_NAME_BACKGROUND_COLOR;
7345
+ _a$1D = FORM_NAME_INIT, _b$1y = FORM_NAME_ITEM_NUMBER, _c$1h = FORM_NAME_LINE_NUMBER, _d$15 = FORM_NAME_ROWS, _e$Z = FORM_NAME_ICON_COLOR, _f$G = FORM_NAME_BACKGROUND_COLOR, _g$w = FORM_NAME_IMG_MASK;
7345
7346
 
7346
7347
  var TYPE_TEXT_BACKGROUNDS_THREE_ROWS_ICON_TEXT = 'text-backgrounds-three-rows-icon-text';
7347
7348
  var TextBackgroundsThreeRowsIconTextService = /** @class */ (function () {
@@ -7367,6 +7368,8 @@
7367
7368
  TextBackgroundsThreeRowsIconTextService.prototype.getForm = function (content) {
7368
7369
  if (content === void 0) { content = this.getConfig(); }
7369
7370
  var textBackgroundsThreeRowsIconTextFormDto = new FormsDto(content);
7371
+ var maskContentDto = new FormsContentDto(FORM_NAME_IMG_MASK, 'wb.blocks.FormContentDto.14', FORM_TYPE_TAG, content[FORM_NAME_IMG_MASK], 'wb.blocks.FormContentDto.15', '', ['wb.blocks.FormContentDto.94', 'wb.blocks.FormContentDto.95', 'wb.blocks.FormContentDto.96'], ['small', 'medium', 'large']);
7372
+ textBackgroundsThreeRowsIconTextFormDto.forms.push(maskContentDto);
7370
7373
  var colorContentLeftDto = new FormsContentDto(FORM_NAME_ICON_COLOR, 'wb.blocks.FormContentDto.13', FORM_TYPE_COLOR, content[FORM_NAME_ICON_COLOR], '#122231', '');
7371
7374
  textBackgroundsThreeRowsIconTextFormDto.forms.push(colorContentLeftDto);
7372
7375
  return textBackgroundsThreeRowsIconTextFormDto;
@@ -7383,7 +7386,7 @@
7383
7386
  },] }
7384
7387
  ];
7385
7388
 
7386
- var _a$1E, _b$1z, _c$1i, _d$16, _e$_, _f$H;
7389
+ var _a$1E, _b$1z, _c$1i, _d$16, _e$_, _f$H, _g$x;
7387
7390
  var TextBackgroundsFourRowsIconTextDto = /** @class */ (function (_super) {
7388
7391
  __extends(TextBackgroundsFourRowsIconTextDto, _super);
7389
7392
  function TextBackgroundsFourRowsIconTextDto() {
@@ -7394,11 +7397,12 @@
7394
7397
  _this[_d$16] = [];
7395
7398
  _this[_e$_] = '#e95656';
7396
7399
  _this[_f$H] = '#ffffff';
7400
+ _this[_g$x] = 'small';
7397
7401
  return _this;
7398
7402
  }
7399
7403
  return TextBackgroundsFourRowsIconTextDto;
7400
7404
  }(ParentBlockDto));
7401
- _a$1E = FORM_NAME_INIT, _b$1z = FORM_NAME_ITEM_NUMBER, _c$1i = FORM_NAME_LINE_NUMBER, _d$16 = FORM_NAME_ROWS, _e$_ = FORM_NAME_ICON_COLOR, _f$H = FORM_NAME_BACKGROUND_COLOR;
7405
+ _a$1E = FORM_NAME_INIT, _b$1z = FORM_NAME_ITEM_NUMBER, _c$1i = FORM_NAME_LINE_NUMBER, _d$16 = FORM_NAME_ROWS, _e$_ = FORM_NAME_ICON_COLOR, _f$H = FORM_NAME_BACKGROUND_COLOR, _g$x = FORM_NAME_IMG_MASK;
7402
7406
 
7403
7407
  var TYPE_TEXT_BACKGROUNDS_FOUR_ROWS_ICON_TEXT = 'text-backgrounds-four-rows-icon-text';
7404
7408
  var TextBackgroundsFourRowsIconTextService = /** @class */ (function () {
@@ -7424,6 +7428,8 @@
7424
7428
  TextBackgroundsFourRowsIconTextService.prototype.getForm = function (content) {
7425
7429
  if (content === void 0) { content = this.getConfig(); }
7426
7430
  var textBackgroundsFourRowsIconTextFormDto = new FormsDto(content);
7431
+ var maskContentDto = new FormsContentDto(FORM_NAME_IMG_MASK, 'wb.blocks.FormContentDto.14', FORM_TYPE_TAG, content[FORM_NAME_IMG_MASK], 'wb.blocks.FormContentDto.15', '', ['wb.blocks.FormContentDto.94', 'wb.blocks.FormContentDto.95', 'wb.blocks.FormContentDto.96'], ['small', 'medium', 'large']);
7432
+ textBackgroundsFourRowsIconTextFormDto.forms.push(maskContentDto);
7427
7433
  var colorContentLeftDto = new FormsContentDto(FORM_NAME_ICON_COLOR, 'wb.blocks.FormContentDto.13', FORM_TYPE_COLOR, content[FORM_NAME_ICON_COLOR], '#122231', '');
7428
7434
  textBackgroundsFourRowsIconTextFormDto.forms.push(colorContentLeftDto);
7429
7435
  return textBackgroundsFourRowsIconTextFormDto;
@@ -7440,7 +7446,7 @@
7440
7446
  },] }
7441
7447
  ];
7442
7448
 
7443
- var _a$1F, _b$1A, _c$1j, _d$17, _e$$, _f$I;
7449
+ var _a$1F, _b$1A, _c$1j, _d$17, _e$$, _f$I, _g$y;
7444
7450
  var TextBackgroundsTwoRowsIconTextDto = /** @class */ (function (_super) {
7445
7451
  __extends(TextBackgroundsTwoRowsIconTextDto, _super);
7446
7452
  function TextBackgroundsTwoRowsIconTextDto() {
@@ -7451,11 +7457,12 @@
7451
7457
  _this[_d$17] = [];
7452
7458
  _this[_e$$] = '#e95656';
7453
7459
  _this[_f$I] = '#ffffff';
7460
+ _this[_g$y] = 'small';
7454
7461
  return _this;
7455
7462
  }
7456
7463
  return TextBackgroundsTwoRowsIconTextDto;
7457
7464
  }(ParentBlockDto));
7458
- _a$1F = FORM_NAME_INIT, _b$1A = FORM_NAME_ITEM_NUMBER, _c$1j = FORM_NAME_LINE_NUMBER, _d$17 = FORM_NAME_ROWS, _e$$ = FORM_NAME_ICON_COLOR, _f$I = FORM_NAME_BACKGROUND_COLOR;
7465
+ _a$1F = FORM_NAME_INIT, _b$1A = FORM_NAME_ITEM_NUMBER, _c$1j = FORM_NAME_LINE_NUMBER, _d$17 = FORM_NAME_ROWS, _e$$ = FORM_NAME_ICON_COLOR, _f$I = FORM_NAME_BACKGROUND_COLOR, _g$y = FORM_NAME_IMG_MASK;
7459
7466
 
7460
7467
  var TYPE_TEXT_BACKGROUNDS_TWO_ROWS_ICON_TEXT = 'text-backgrounds-two-rows-icon-text';
7461
7468
  var TextBackgroundsTwoRowsIconTextService = /** @class */ (function () {
@@ -7481,6 +7488,8 @@
7481
7488
  TextBackgroundsTwoRowsIconTextService.prototype.getForm = function (content) {
7482
7489
  if (content === void 0) { content = this.getConfig(); }
7483
7490
  var textBackgroundsTwoRowsIconTextFormDto = new FormsDto(content);
7491
+ var maskContentDto = new FormsContentDto(FORM_NAME_IMG_MASK, 'wb.blocks.FormContentDto.14', FORM_TYPE_TAG, content[FORM_NAME_IMG_MASK], 'wb.blocks.FormContentDto.15', '', ['wb.blocks.FormContentDto.94', 'wb.blocks.FormContentDto.95', 'wb.blocks.FormContentDto.96'], ['small', 'medium', 'large']);
7492
+ textBackgroundsTwoRowsIconTextFormDto.forms.push(maskContentDto);
7484
7493
  var colorContentLeftDto = new FormsContentDto(FORM_NAME_ICON_COLOR, 'wb.blocks.FormContentDto.13', FORM_TYPE_COLOR, content[FORM_NAME_ICON_COLOR], '#122231', '');
7485
7494
  textBackgroundsTwoRowsIconTextFormDto.forms.push(colorContentLeftDto);
7486
7495
  return textBackgroundsTwoRowsIconTextFormDto;
@@ -7497,7 +7506,7 @@
7497
7506
  },] }
7498
7507
  ];
7499
7508
 
7500
- var _a$1G, _b$1B, _c$1k, _d$18, _e$10, _f$J, _g$w;
7509
+ var _a$1G, _b$1B, _c$1k, _d$18, _e$10, _f$J, _g$z;
7501
7510
  var SliderWithBannerDto = /** @class */ (function (_super) {
7502
7511
  __extends(SliderWithBannerDto, _super);
7503
7512
  function SliderWithBannerDto() {
@@ -7508,12 +7517,12 @@
7508
7517
  _this[_d$18] = 'wb.dto.CONTENT.37';
7509
7518
  _this[_e$10] = '#74b4c0';
7510
7519
  _this[_f$J] = true;
7511
- _this[_g$w] = 'small';
7520
+ _this[_g$z] = 'small';
7512
7521
  return _this;
7513
7522
  }
7514
7523
  return SliderWithBannerDto;
7515
7524
  }(ParentBlockDto));
7516
- _a$1G = FORM_NAME_SLIDER, _b$1B = FORM_NAME_TIME, _c$1k = FORM_NAME_DOTS, _d$18 = FORM_NAME_CONTENT, _e$10 = FORM_NAME_COLOR, _f$J = FORM_NAME_FULLPAGE, _g$w = FORM_NAME_IMG_MASK;
7525
+ _a$1G = FORM_NAME_SLIDER, _b$1B = FORM_NAME_TIME, _c$1k = FORM_NAME_DOTS, _d$18 = FORM_NAME_CONTENT, _e$10 = FORM_NAME_COLOR, _f$J = FORM_NAME_FULLPAGE, _g$z = FORM_NAME_IMG_MASK;
7517
7526
 
7518
7527
  var TYPE_SLIDERS_WITH_BANNER = 'sliders-with-banner';
7519
7528
  var SlidersWithBannerService = /** @class */ (function () {
@@ -11439,6 +11448,8 @@
11439
11448
  this.renderer = renderer;
11440
11449
  }
11441
11450
  ShowDeleteButtonDirective.prototype.onMouseOver = function () {
11451
+ console.log(this.element);
11452
+ console.log(this.element.nativeElement);
11442
11453
  if (this.element.nativeElement.classList.contains('active')) {
11443
11454
  return;
11444
11455
  }
@@ -19415,7 +19426,7 @@
19415
19426
  StructureConfigFontComponent.decorators = [
19416
19427
  { type: i0.Component, args: [{
19417
19428
  selector: 'wb-structure-config-font',
19418
- template: "<div\n class=\"wb-structure-config-font\"\n wbAutoHide\n (clickOutside)=\"showPopup = false\"\n triggerElement=\"wb-structure-config-font__holder\"\n [ngClass]=\"{ 'is-small': isSmall, 'is-left': alignLeft, 'is-inline': isInline }\"\n>\n <div\n class=\"wb-structure-config-font__holder\"\n [ngClass]=\"{ 'is-white': white, 'is-small': isSmall, 'is-inline': isInline }\"\n (click)=\"showBelow()\"\n *ngIf=\"value\"\n >\n <span *ngIf=\"value.icon != ''\">\n <i [className]=\"value.icon\" [style.color]=\"color ? color : 'inherit'\"></i>\n </span>\n <span *ngIf=\"value.image_url != '' && value.icon == ''\">\n <span [style.background-image]=\"'url(' + value.image_url + ')'\"></span>\n </span>\n </div>\n <div [ngClass]=\"{ 'is-show-popin': showPopup }\">\n <div class=\"wb-structure-config-font__search\">\n <input\n [placeholder]=\"'wb.shared.components.strucTureConfigFont.1' | translate\"\n id=\"iconLabel\"\n #input=\"ngModel\"\n [(ngModel)]=\"searchIconValue\"\n (ngModelChange)=\"searchIcon()\"\n name=\"iconLabel\"\n />\n <a\n class=\"button is-outlined is-link is-tooltip-link\"\n [nwbToolTip]=\"'wb.shared.components.strucTureConfigFont.2' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"searchIcon()\"\n >\n <i class=\"fas fa-recycle\"></i>\n </a>\n <a\n class=\"button is-outlined is-info is-tooltip-info\"\n [nwbToolTip]=\"'wb.shared.components.strucTureConfigFont.3' | translate\"\n nwbToolTipPosition=\"bottom\"\n target=\"_blank\"\n href=\"https://fontawesome.com/cheatsheet/\"\n ><i class=\"fab fa-font-awesome\"></i\n ></a>\n </div>\n <p *ngIf=\"withImage\">\n {{ 'wb.shared.components.strucTureConfigFont.5' | translate }}\n <a href=\"#\" (click)=\"getMedia(); $event.preventDefault()\">{{ 'wb.shared.components.strucTureConfigFont.6' | translate }}</a>\n </p>\n <div *ngIf=\"withImage && recommendedSize != ''\" class=\"wb-structure-config-font__size\">\n <p>{{ 'wb.shared.components.strucTureConfigFont.4' | translate: { recommendedSize: recommendedSize } }}</p>\n </div>\n <div class=\"wb-structure-config-font__list test\">\n <span\n class=\"is-tooltip-info\"\n *ngFor=\"let icon of iconList\"\n nwbToolTip=\"Icone\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"selectThisIcon(icon)\"\n >\n <i [className]=\"icon\"></i>\n </span>\n </div>\n </div>\n</div>\n"
19429
+ template: "<div\n class=\"wb-structure-config-font\"\n wbAutoHide\n (clickOutside)=\"showPopup = false\"\n triggerElement=\"wb-structure-config-font__holder\"\n [ngClass]=\"{ 'is-small': isSmall, 'is-left': alignLeft, 'is-inline': isInline }\"\n>\n <div\n class=\"wb-structure-config-font__holder\"\n [ngClass]=\"{ 'is-white': white, 'is-small': isSmall, 'is-inline': isInline }\"\n (click)=\"showBelow()\"\n *ngIf=\"value\"\n [nwbToolTip]=\"'wb.shared.components.strucTureConfigFont.7' | translate\"\n nwbToolTipPosition=\"right\"\n >\n <span *ngIf=\"value.icon != ''\">\n <i [className]=\"value.icon\" [style.color]=\"color ? color : 'inherit'\"></i>\n </span>\n <span *ngIf=\"value.image_url != '' && value.icon == ''\">\n <span [style.background-image]=\"'url(' + value.image_url + ')'\"></span>\n </span>\n </div>\n <div [ngClass]=\"{ 'is-show-popin': showPopup }\">\n <div class=\"wb-structure-config-font__search\">\n <input\n [placeholder]=\"'wb.shared.components.strucTureConfigFont.1' | translate\"\n id=\"iconLabel\"\n #input=\"ngModel\"\n [(ngModel)]=\"searchIconValue\"\n (ngModelChange)=\"searchIcon()\"\n name=\"iconLabel\"\n />\n <a\n class=\"button is-outlined is-link is-tooltip-link\"\n [nwbToolTip]=\"'wb.shared.components.strucTureConfigFont.2' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"searchIcon()\"\n >\n <i class=\"fas fa-recycle\"></i>\n </a>\n <a\n class=\"button is-outlined is-info is-tooltip-info\"\n [nwbToolTip]=\"'wb.shared.components.strucTureConfigFont.3' | translate\"\n nwbToolTipPosition=\"bottom\"\n target=\"_blank\"\n href=\"https://fontawesome.com/cheatsheet/\"\n ><i class=\"fab fa-font-awesome\"></i\n ></a>\n </div>\n <p *ngIf=\"withImage\">\n {{ 'wb.shared.components.strucTureConfigFont.5' | translate }}\n <a href=\"#\" (click)=\"getMedia(); $event.preventDefault()\">{{ 'wb.shared.components.strucTureConfigFont.6' | translate }}</a>\n </p>\n <div *ngIf=\"withImage && recommendedSize != ''\" class=\"wb-structure-config-font__size\">\n <p>{{ 'wb.shared.components.strucTureConfigFont.4' | translate: { recommendedSize: recommendedSize } }}</p>\n </div>\n <div class=\"wb-structure-config-font__list test\">\n <span\n class=\"is-tooltip-info\"\n *ngFor=\"let icon of iconList\"\n nwbToolTip=\"Icone\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"selectThisIcon(icon)\"\n >\n <i [className]=\"icon\"></i>\n </span>\n </div>\n </div>\n</div>\n"
19419
19430
  },] }
19420
19431
  ];
19421
19432
  StructureConfigFontComponent.ctorParameters = function () { return [
@@ -21617,7 +21628,7 @@
21617
21628
  __extends(TwoImagesTitleTextComponent, _super);
21618
21629
  function TwoImagesTitleTextComponent() {
21619
21630
  var _this = _super.call(this) || this;
21620
- _this.sizes = { small: '456x458', medium: '456x458', large: '456x458' };
21631
+ _this.sizes = { small: '980x490', medium: '980x618', large: '980x710' };
21621
21632
  _this.selectedKey = '';
21622
21633
  _this.setComponentService(TwoImagesTitleTextService);
21623
21634
  return _this;
@@ -27042,6 +27053,7 @@
27042
27053
  _this.translateBlockService = translateBlockService;
27043
27054
  _this.row = 0;
27044
27055
  _this.column = 0;
27056
+ _this.sizes = { small: '620x175', medium: '620x250', large: '620x325' };
27045
27057
  _this.setComponentService(TextBackgroundsThreeRowsIconTextService);
27046
27058
  return _this;
27047
27059
  }
@@ -27056,9 +27068,6 @@
27056
27068
  this.persist();
27057
27069
  }
27058
27070
  };
27059
- TextBackgroundsThreeRowsIconTextComponent.prototype.addFaqCol = function () {
27060
- return;
27061
- };
27062
27071
  TextBackgroundsThreeRowsIconTextComponent.prototype.addRow = function (index) {
27063
27072
  this.contentBlock[FORM_NAME_ROWS].push(new Array());
27064
27073
  for (var i = 0; i < this.contentBlock[FORM_NAME_ITEM_NUMBER]; ++i) {
@@ -27081,6 +27090,11 @@
27081
27090
  _this.addBackgroundImageMedia(media);
27082
27091
  });
27083
27092
  };
27093
+ TextBackgroundsThreeRowsIconTextComponent.prototype.onClickUpdateImage = function (row, column) {
27094
+ this.row = row;
27095
+ this.column = column;
27096
+ this.getMedia();
27097
+ };
27084
27098
  TextBackgroundsThreeRowsIconTextComponent.prototype.updateThisImage = function (imageWidthHeight, $event) {
27085
27099
  if (imageWidthHeight[FORM_NAME_IMAGE_URL] ===
27086
27100
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column][FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]) {
@@ -27103,12 +27117,15 @@
27103
27117
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column].image = imageMediaDto;
27104
27118
  this.persist();
27105
27119
  };
27120
+ TextBackgroundsThreeRowsIconTextComponent.prototype.stopPropagation = function ($event) {
27121
+ $event.stopPropagation();
27122
+ };
27106
27123
  return TextBackgroundsThreeRowsIconTextComponent;
27107
27124
  }(StructuresComponent));
27108
27125
  TextBackgroundsThreeRowsIconTextComponent.decorators = [
27109
27126
  { type: i0.Component, args: [{
27110
27127
  selector: TextBackgroundsThreeRowsIconTextService.selector(),
27111
- template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--three\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"column is-4-fullhd is-4-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n wbPicturesTemplateDirective\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <i class=\"fal fa-image\"></i>\n </div>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n (click)=\"getMedia()\"\n ></div>\n </div>\n\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n ></wb-structure-config-font>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>Supprimer la ligne ?</p>\n <button (click)=\"deleteRow(i)\">Ok</button>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\"><i class=\"fal fa-plus-circle\"></i></a>\n </div>\n </div>\n </div>\n</div>\n"
27128
+ template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--three\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__delete-line\">\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line__button\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>{{ 'wb.structures.template.64' | translate }}</p>\n <button (click)=\"deleteRow(i)\">{{ 'wb.structures.template.65' | translate }}</button>\n </div>\n </div>\n <div class=\"column is-4-fullhd is-4-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content\"\n [ngClass]=\"{\n 'wb-text-backgrounds-rows-icon-text__item__content--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-text-backgrounds-rows-icon-text__item__content--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-text-backgrounds-rows-icon-text__item__content--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <p>\n <i class=\"fal fa-image\"></i>\n {{ 'wb.structures.template.8' | translate }}\n </p>\n </div>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n ></div>\n </div>\n\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__wrapper\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n (click)=\"onClickUpdateImage(i, j)\"\n >\n <div (click)=\"stopPropagation($event)\">\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n ></wb-structure-config-font>\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\">\n <i class=\"fal fa-plus-circle\"></i>\n <p>\n {{ 'wb.structures.template.63' | translate }}\n </p>\n </a>\n </div>\n </div>\n </div>\n</div>\n"
27112
27129
  },] }
27113
27130
  ];
27114
27131
  TextBackgroundsThreeRowsIconTextComponent.ctorParameters = function () { return [
@@ -27122,6 +27139,7 @@
27122
27139
  _this.translateBlockService = translateBlockService;
27123
27140
  _this.row = 0;
27124
27141
  _this.column = 0;
27142
+ _this.sizes = { small: '458x175', medium: '458x250', large: '458x325' };
27125
27143
  _this.setComponentService(TextBackgroundsFourRowsIconTextService);
27126
27144
  return _this;
27127
27145
  }
@@ -27136,9 +27154,6 @@
27136
27154
  this.persist();
27137
27155
  }
27138
27156
  };
27139
- TextBackgroundsFourRowsIconTextComponent.prototype.addFaqCol = function () {
27140
- return;
27141
- };
27142
27157
  TextBackgroundsFourRowsIconTextComponent.prototype.addRow = function (index) {
27143
27158
  this.contentBlock[FORM_NAME_ROWS].push(new Array());
27144
27159
  for (var i = 0; i < this.contentBlock[FORM_NAME_ITEM_NUMBER]; ++i) {
@@ -27161,6 +27176,11 @@
27161
27176
  _this.addBackgroundImageMedia(media);
27162
27177
  });
27163
27178
  };
27179
+ TextBackgroundsFourRowsIconTextComponent.prototype.onClickUpdateImage = function (row, column) {
27180
+ this.row = row;
27181
+ this.column = column;
27182
+ this.getMedia();
27183
+ };
27164
27184
  TextBackgroundsFourRowsIconTextComponent.prototype.updateThisImage = function (imageWidthHeight, $event) {
27165
27185
  if (imageWidthHeight[FORM_NAME_IMAGE_URL] ===
27166
27186
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column][FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]) {
@@ -27183,12 +27203,15 @@
27183
27203
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column].image = imageMediaDto;
27184
27204
  this.persist();
27185
27205
  };
27206
+ TextBackgroundsFourRowsIconTextComponent.prototype.stopPropagation = function ($event) {
27207
+ $event.stopPropagation();
27208
+ };
27186
27209
  return TextBackgroundsFourRowsIconTextComponent;
27187
27210
  }(StructuresComponent));
27188
27211
  TextBackgroundsFourRowsIconTextComponent.decorators = [
27189
27212
  { type: i0.Component, args: [{
27190
27213
  selector: TextBackgroundsFourRowsIconTextService.selector(),
27191
- template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--four\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"column is-3-fullhd is-3-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n wbPicturesTemplateDirective\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <i class=\"fal fa-image\"></i>\n </div>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n (click)=\"getMedia()\"\n ></div>\n </div>\n\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n ></wb-structure-config-font>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>Supprimer la ligne ?</p>\n <button (click)=\"deleteRow(i)\">Ok</button>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\"><i class=\"fal fa-plus-circle\"></i></a>\n </div>\n </div>\n </div>\n</div>\n"
27214
+ template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--four\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__delete-line\">\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line__button\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>{{ 'wb.structures.template.64' | translate }}</p>\n <button (click)=\"deleteRow(i)\">{{ 'wb.structures.template.65' | translate }}</button>\n </div>\n </div>\n <div class=\"column is-3-fullhd is-3-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content\"\n [ngClass]=\"{\n 'wb-text-backgrounds-rows-icon-text__item__content--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-text-backgrounds-rows-icon-text__item__content--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-text-backgrounds-rows-icon-text__item__content--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n wbPicturesTemplateDirective\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <p>\n {{ 'wb.structures.template.8' | translate }}\n </p>\n </div>\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n ></div>\n </div>\n\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__wrapper\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n (click)=\"onClickUpdateImage(i, j)\"\n >\n <div (click)=\"stopPropagation($event)\">\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n ></wb-structure-config-font>\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\">\n <i class=\"fal fa-plus-circle\"></i>\n <p>\n {{ 'wb.structures.template.63' | translate }}\n </p>\n </a>\n </div>\n </div>\n </div>\n</div>\n"
27192
27215
  },] }
27193
27216
  ];
27194
27217
  TextBackgroundsFourRowsIconTextComponent.ctorParameters = function () { return [
@@ -27202,6 +27225,7 @@
27202
27225
  _this.translateBlockService = translateBlockService;
27203
27226
  _this.row = 0;
27204
27227
  _this.column = 0;
27228
+ _this.sizes = { small: '945x175', medium: '945x250', large: '945x325' };
27205
27229
  _this.setComponentService(TextBackgroundsTwoRowsIconTextService);
27206
27230
  return _this;
27207
27231
  }
@@ -27216,9 +27240,6 @@
27216
27240
  this.persist();
27217
27241
  }
27218
27242
  };
27219
- TextBackgroundsTwoRowsIconTextComponent.prototype.addFaqCol = function () {
27220
- return;
27221
- };
27222
27243
  TextBackgroundsTwoRowsIconTextComponent.prototype.addRow = function (index) {
27223
27244
  this.contentBlock[FORM_NAME_ROWS].push(new Array());
27224
27245
  for (var i = 0; i < this.contentBlock[FORM_NAME_ITEM_NUMBER]; ++i) {
@@ -27240,6 +27261,11 @@
27240
27261
  _this.addBackgroundImageMedia(media);
27241
27262
  });
27242
27263
  };
27264
+ TextBackgroundsTwoRowsIconTextComponent.prototype.onClickUpdateImage = function (row, column) {
27265
+ this.row = row;
27266
+ this.column = column;
27267
+ this.getMedia();
27268
+ };
27243
27269
  TextBackgroundsTwoRowsIconTextComponent.prototype.updateThisImage = function (imageWidthHeight, $event) {
27244
27270
  if (imageWidthHeight[FORM_NAME_IMAGE_URL] ===
27245
27271
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column][FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]) {
@@ -27251,6 +27277,7 @@
27251
27277
  }
27252
27278
  };
27253
27279
  TextBackgroundsTwoRowsIconTextComponent.prototype.addNewImage = function (row, column) {
27280
+ console.log('row ' + row + ' col ' + column);
27254
27281
  this.row = row;
27255
27282
  this.column = column;
27256
27283
  this.getMedia();
@@ -27262,12 +27289,15 @@
27262
27289
  this.contentBlock[FORM_NAME_ROWS][this.row][this.column].image = imageMediaDto;
27263
27290
  this.persist();
27264
27291
  };
27292
+ TextBackgroundsTwoRowsIconTextComponent.prototype.stopPropagation = function ($event) {
27293
+ $event.stopPropagation();
27294
+ };
27265
27295
  return TextBackgroundsTwoRowsIconTextComponent;
27266
27296
  }(StructuresComponent));
27267
27297
  TextBackgroundsTwoRowsIconTextComponent.decorators = [
27268
27298
  { type: i0.Component, args: [{
27269
27299
  selector: TextBackgroundsTwoRowsIconTextService.selector(),
27270
- template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--two\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"column is-6-fullhd is-6-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n wbPicturesTemplateDirective\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <i class=\"fal fa-image\"></i>\n </div>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n (click)=\"getMedia()\"\n ></div>\n </div>\n\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n ></wb-structure-config-font>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>Supprimer la ligne ?</p>\n <button (click)=\"deleteRow(i)\">Ok</button>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\"><i class=\"fal fa-plus-circle\"></i></a>\n </div>\n </div>\n </div>\n</div>\n"
27300
+ template: "<div class=\"wb-text-backgrounds-rows-icon-text wb-text-backgrounds-rows-icon-text--two\">\n <div class=\"columns is-multiline\" *ngFor=\"let row of contents[BASE_BLOCK_CONTENT].rows; let i = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__delete-line\">\n <div\n wbShowDeleteButton\n *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number > 1\"\n class=\"wb-text-backgrounds-rows-icon-text__delete-line__button\"\n >\n <i class=\"fas fa-trash-alt\"></i>\n <p>{{ 'wb.structures.template.64' | translate }}</p>\n <button (click)=\"deleteRow(i)\">{{ 'wb.structures.template.65' | translate }}</button>\n </div>\n </div>\n <div class=\"column is-6-fullhd is-6-desktop\" *ngFor=\"let item of row; let j = index\">\n <div class=\"wb-text-backgrounds-rows-icon-text__item\">\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content\"\n [ngClass]=\"{\n 'wb-text-backgrounds-rows-icon-text__item__content--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-text-backgrounds-rows-icon-text__item__content--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-text-backgrounds-rows-icon-text__item__content--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"item[FORM_NAME_IMAGE][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </wb-structure-config>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!item[FORM_NAME_IMAGE]\"\n (click)=\"addNewImage(i, j)\"\n >\n <p>\n <i class=\"fal fa-image\"></i>\n {{ 'wb.structures.template.8' | translate }}\n </p>\n </div>\n <div *ngIf=\"item[FORM_NAME_IMAGE]\" class=\"wb-text-backgrounds-rows-icon-text__item__content__image\">\n <div\n wbGetSizeImageDirective\n [urlToParse]=\"item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(item[FORM_NAME_IMAGE], $event)\"\n [style.background-image]=\"'url(' + item[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n class=\"wb-text-backgrounds-rows-icon-text__item__content__image__background\"\n ></div>\n </div>\n <div\n class=\"wb-text-backgrounds-rows-icon-text__item__content__wrapper\"\n *ngIf=\"item[FORM_NAME_IMAGE]\"\n (click)=\"onClickUpdateImage(i, j)\"\n >\n <div (click)=\"stopPropagation($event)\">\n <wb-structure-config-font\n [(value)]=\"item[FORM_NAME_ICON]\"\n [color]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\"\n (valueChange)=\"item[FORM_NAME_ICON] = $event; persist()\"\n ></wb-structure-config-font>\n <div class=\"wb-text-backgrounds-rows-icon-text__item__content__title\">\n <wb-quill [(content)]=\"item[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT].line_number < 9\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-rows-icon-text__add\">\n <a (click)=\"addRow(contents[BASE_BLOCK_CONTENT].line_number)\">\n <i class=\"fal fa-plus-circle\"></i>\n <p>\n {{ 'wb.structures.template.63' | translate }}\n </p>\n </a>\n </div>\n </div>\n </div>\n</div>\n"
27271
27301
  },] }
27272
27302
  ];
27273
27303
  TextBackgroundsTwoRowsIconTextComponent.ctorParameters = function () { return [