@wizishop/wizi-block 3.3.54 → 3.3.55-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.
- package/assets/i18n/fr.json +1 -1
- package/assets/images/icons/Icon_AvisClient.svg +27 -48
- package/assets/images/icons/Icon_Citation.svg +9 -34
- package/assets/images/icons/Icon_Diaporama.svg +63 -33
- package/assets/images/icons/Icon_Faq.svg +20 -1
- package/assets/images/icons/Icon_Formulaire.svg +24 -44
- package/assets/images/icons/Icon_Html.svg +16 -37
- package/assets/images/icons/Icon_ImgAvecTexte.svg +36 -67
- package/assets/images/icons/Icon_LancerVideo.svg +23 -30
- package/assets/images/icons/Icon_ListProd.svg +31 -46
- package/assets/images/icons/Icon_Map.svg +67 -38
- package/assets/images/icons/Icon_Newsletter.svg +26 -37
- package/assets/images/icons/Icon_PlusieursImg.svg +44 -150
- package/assets/images/icons/Icon_PlusieursTxt.svg +48 -77
- package/assets/images/icons/Icon_Rassurances.svg +28 -59
- package/assets/images/icons/Icon_ReseauxSociaux.svg +35 -96
- package/assets/images/icons/Icon_Separateur.svg +9 -45
- package/assets/images/icons/Icon_Temoignage.svg +14 -35
- package/assets/images/icons/Icon_Timer.svg +55 -57
- package/assets/images/icons/Icon_TxtDansImage.svg +37 -27
- package/assets/images/icons/Icon_VideoDeFond.svg +14 -50
- package/assets/images/icons/Icon_ZoomProd.svg +32 -41
- package/bundles/wizishop-wizi-block.umd.js +86 -41
- package/bundles/wizishop-wizi-block.umd.js.map +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
- package/esm2015/lib/components/blocks/blocks.component.js +10 -3
- package/esm2015/lib/components/configs/configs.component.js +16 -2
- package/esm2015/lib/dtos/forms/forms.dto.js +6 -3
- package/esm2015/lib/services/blocks/images/images-banner.service.js +2 -2
- package/esm2015/lib/services/blocks/images/images-simple.service.js +2 -2
- package/esm2015/lib/services/blocks/launch-videos/launch-videos-button.service.js +2 -2
- package/esm2015/lib/services/blocks/launch-videos/launch-videos-buttontxt.service.js +2 -2
- package/esm2015/lib/services/blocks/sliders/sliders-double-imageright.service.js +2 -2
- package/esm2015/lib/services/blocks/sliders/sliders-fullpage.service.js +2 -2
- package/esm2015/lib/services/blocks/sliders/sliders-imageright.service.js +2 -2
- package/esm2015/lib/services/blocks/sliders/sliders-with-banner.service.js +2 -2
- package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-simple.service.js +2 -2
- package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-with-banner.service.js +2 -2
- package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-with-txt.service.js +2 -2
- package/esm2015/lib/services/blocks/videos/videos-simple.service.js +5 -5
- package/esm2015/lib/services/blocks/videos/videos-txt-content.service.js +5 -5
- package/esm2015/lib/services/blocks/videos/videos-txt-left.service.js +5 -5
- package/esm2015/lib/services/blocks/videos/videos-txt.service.js +5 -5
- package/esm2015/lib/shared/components/structure-config/structure-config.component.js +8 -4
- package/esm2015/lib/shared/components/structure-tools/structure-tools.component.js +14 -4
- package/esm2015/lib/structures/images/double/images-double.component.js +2 -2
- package/esm2015/lib/structures/images/four-images-title/four-images-title.component.js +2 -2
- package/esm2015/lib/structures/images/two-images-title-text/two-images-title-text.component.js +2 -2
- package/esm2015/lib/structures/text-backgrounds/link/text-backgrounds-link.component.js +2 -2
- package/esm2015/lib/wizi-block.component.js +6 -2
- package/fesm2015/wizishop-wizi-block.js +84 -42
- package/fesm2015/wizishop-wizi-block.js.map +1 -1
- package/lib/components/blocks/blocks.component.d.ts +4 -0
- package/lib/components/configs/configs.component.d.ts +1 -0
- package/lib/dtos/forms/forms.dto.d.ts +3 -1
- package/lib/shared/components/structure-config/structure-config.component.d.ts +2 -0
- package/lib/shared/components/structure-tools/structure-tools.component.d.ts +4 -1
- package/lib/wizi-block.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizi-block.scss +5302 -5043
- package/wizishop-wizi-block.metadata.json +1 -1
|
@@ -340,7 +340,8 @@ const FORM_NAME_LINE_NUMBER = 'line_number';
|
|
|
340
340
|
const FORM_NAME_ROWS = 'rows';
|
|
341
341
|
const FORM_NAME_COLUMNS = 'columns';
|
|
342
342
|
class FormsContentDto {
|
|
343
|
-
constructor(id, label, type, value, placeholder, help = '', step = [], stepKey = [], state = [], iconHelp = false) {
|
|
343
|
+
constructor(id, label, type, value, placeholder, help = '', step = [], stepKey = [], state = [], iconHelp = false, labelEnable = '', reverseShow = false) {
|
|
344
|
+
this.reverseShow = false;
|
|
344
345
|
this.id = id;
|
|
345
346
|
this.label = label;
|
|
346
347
|
this.type = type;
|
|
@@ -351,6 +352,8 @@ class FormsContentDto {
|
|
|
351
352
|
this.stepKey = stepKey;
|
|
352
353
|
this.state = state;
|
|
353
354
|
this.iconHelp = iconHelp;
|
|
355
|
+
this.labelEnable = labelEnable;
|
|
356
|
+
this.reverseShow = reverseShow;
|
|
354
357
|
}
|
|
355
358
|
}
|
|
356
359
|
class FormsDto {
|
|
@@ -360,7 +363,7 @@ class FormsDto {
|
|
|
360
363
|
this.block = block;
|
|
361
364
|
translateBlockService.translateProperties(this.block);
|
|
362
365
|
if (hasMargin) {
|
|
363
|
-
this.forms.push(new FormsContentDto(FORM_NAME_HIDE_BLOCK, 'wb.forms.FormsContentDto.
|
|
366
|
+
this.forms.push(new FormsContentDto(FORM_NAME_HIDE_BLOCK, 'wb.forms.FormsContentDto.16', FORM_TYPE_CHECKBOX, block[FORM_NAME_HIDE_BLOCK], '', '', [], [], [false, true], false, 'wb.forms.FormsContentDto.15'));
|
|
364
367
|
}
|
|
365
368
|
this.forms.push(new FormsContentDto(FORM_NAME_MARGIN_TOP, 'wb.forms.FormsContentDto.13', FORM_TYPE_TAG, block[FORM_NAME_MARGIN_TOP], '#122231', '', [
|
|
366
369
|
'wb.blocks.FormContentDto.101',
|
|
@@ -438,7 +441,7 @@ class SlidersFullpageService {
|
|
|
438
441
|
const sliderFullPageFormDto = new FormsDto(content);
|
|
439
442
|
const timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
440
443
|
sliderFullPageFormDto.forms.push(timeSliderFullPageContentDto);
|
|
441
|
-
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
444
|
+
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
442
445
|
sliderFullPageFormDto.forms.push(dotsSliderFullPageContentDto);
|
|
443
446
|
const maskSliderFullPageContentDto = 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']);
|
|
444
447
|
sliderFullPageFormDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -541,7 +544,7 @@ class SlidersImagerightService {
|
|
|
541
544
|
const slidersImagerightFormDto = new FormsDto(content);
|
|
542
545
|
const timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
543
546
|
slidersImagerightFormDto.forms.push(timeSliderFullPageContentDto);
|
|
544
|
-
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
547
|
+
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
545
548
|
slidersImagerightFormDto.forms.push(dotsSliderFullPageContentDto);
|
|
546
549
|
const maskSliderFullPageContentDto = 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']);
|
|
547
550
|
slidersImagerightFormDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -592,7 +595,7 @@ class SlidersDoubleImagerightService {
|
|
|
592
595
|
const slidersDoubleImagerightDto = new FormsDto(content);
|
|
593
596
|
const timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
594
597
|
slidersDoubleImagerightDto.forms.push(timeSliderFullPageContentDto);
|
|
595
|
-
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
598
|
+
const dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
596
599
|
slidersDoubleImagerightDto.forms.push(dotsSliderFullPageContentDto);
|
|
597
600
|
const maskSliderFullPageContentDto = 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']);
|
|
598
601
|
slidersDoubleImagerightDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -3117,7 +3120,7 @@ class ImagesSimpleService {
|
|
|
3117
3120
|
'wb.blocks.FormContentDto.117',
|
|
3118
3121
|
], ['0', '0.25', '0.5', '1']);
|
|
3119
3122
|
imgSimpleFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
3120
|
-
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
3123
|
+
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.forms.FormsContentDto.27', FORM_TYPE_CHECKBOX, content[FORM_NAME_PARALLAX_INVERTED], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.28');
|
|
3121
3124
|
imgSimpleFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
3122
3125
|
return imgSimpleFormDto;
|
|
3123
3126
|
}
|
|
@@ -4107,7 +4110,7 @@ class TextBackgroundsSimpleService {
|
|
|
4107
4110
|
'wb.blocks.FormContentDto.117',
|
|
4108
4111
|
], ['0', '0.25', '0.5', '1']);
|
|
4109
4112
|
TextBackgroundsSimpleFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
4110
|
-
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
4113
|
+
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.forms.FormsContentDto.27', FORM_TYPE_CHECKBOX, content[FORM_NAME_PARALLAX_INVERTED], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.28');
|
|
4111
4114
|
TextBackgroundsSimpleFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
4112
4115
|
return TextBackgroundsSimpleFormDto;
|
|
4113
4116
|
}
|
|
@@ -4182,7 +4185,7 @@ class TextBackgroundsWithTxtService {
|
|
|
4182
4185
|
'wb.blocks.FormContentDto.117',
|
|
4183
4186
|
], ['0', '0.25', '0.5', '1']);
|
|
4184
4187
|
formsDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
4185
|
-
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
4188
|
+
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.forms.FormsContentDto.27', FORM_TYPE_CHECKBOX, content[FORM_NAME_PARALLAX_INVERTED], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.28');
|
|
4186
4189
|
formsDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
4187
4190
|
return formsDto;
|
|
4188
4191
|
}
|
|
@@ -4257,7 +4260,7 @@ class TextBackgroundsWithBannerService {
|
|
|
4257
4260
|
'wb.blocks.FormContentDto.117',
|
|
4258
4261
|
], ['0', '0.25', '0.5', '1']);
|
|
4259
4262
|
formsDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
4260
|
-
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
4263
|
+
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.forms.FormsContentDto.27', FORM_TYPE_CHECKBOX, content[FORM_NAME_PARALLAX_INVERTED], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.28');
|
|
4261
4264
|
formsDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
4262
4265
|
const colorContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.112', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
4263
4266
|
formsDto.forms.push(colorContentDto);
|
|
@@ -4330,7 +4333,7 @@ class LaunchVideosButtonService {
|
|
|
4330
4333
|
const launchVideosFormDto = new FormsDto(content);
|
|
4331
4334
|
const linkLaunchVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4332
4335
|
launchVideosFormDto.forms.push(linkLaunchVideosContentDto);
|
|
4333
|
-
const muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4336
|
+
const muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4334
4337
|
launchVideosFormDto.forms.push(muteLaunchVideosContentDto);
|
|
4335
4338
|
const colorLaunchVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.20', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#ffffff', '');
|
|
4336
4339
|
launchVideosFormDto.forms.push(colorLaunchVideosContentDto);
|
|
@@ -4385,7 +4388,7 @@ class LaunchVideosButtontxtService {
|
|
|
4385
4388
|
const launchVideosFormDto = new FormsDto(content);
|
|
4386
4389
|
const linkLaunchVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4387
4390
|
launchVideosFormDto.forms.push(linkLaunchVideosContentDto);
|
|
4388
|
-
const muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4391
|
+
const muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4389
4392
|
launchVideosFormDto.forms.push(muteLaunchVideosContentDto);
|
|
4390
4393
|
const colorLaunchVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.21', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#ffffff', '');
|
|
4391
4394
|
launchVideosFormDto.forms.push(colorLaunchVideosContentDto);
|
|
@@ -4430,13 +4433,13 @@ class VideosSimpleService {
|
|
|
4430
4433
|
const videosFormDto = new FormsDto(content);
|
|
4431
4434
|
const linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4432
4435
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
4433
|
-
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
4436
|
+
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.forms.FormsContentDto.17', FORM_TYPE_CHECKBOX, content[FORM_NAME_CONTROL], '100ms', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.18');
|
|
4434
4437
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
4435
|
-
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
4438
|
+
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
4436
4439
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
4437
|
-
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4440
|
+
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4438
4441
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
4439
|
-
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
4442
|
+
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
4440
4443
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
4441
4444
|
return videosFormDto;
|
|
4442
4445
|
}
|
|
@@ -4486,13 +4489,13 @@ class VideosTxtService {
|
|
|
4486
4489
|
const videosFormDto = new FormsDto(content);
|
|
4487
4490
|
const linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4488
4491
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
4489
|
-
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
4492
|
+
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.forms.FormsContentDto.17', FORM_TYPE_CHECKBOX, content[FORM_NAME_CONTROL], '100ms', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.18');
|
|
4490
4493
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
4491
|
-
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
4494
|
+
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
4492
4495
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
4493
|
-
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4496
|
+
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4494
4497
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
4495
|
-
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
4498
|
+
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
4496
4499
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
4497
4500
|
return videosFormDto;
|
|
4498
4501
|
}
|
|
@@ -4542,13 +4545,13 @@ class VideosTxtContentService {
|
|
|
4542
4545
|
const videosFormDto = new FormsDto(content);
|
|
4543
4546
|
const linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4544
4547
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
4545
|
-
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
4548
|
+
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.forms.FormsContentDto.17', FORM_TYPE_CHECKBOX, content[FORM_NAME_CONTROL], '100ms', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.18');
|
|
4546
4549
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
4547
|
-
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
4550
|
+
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
4548
4551
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
4549
|
-
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4552
|
+
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4550
4553
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
4551
|
-
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
4554
|
+
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
4552
4555
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
4553
4556
|
const colorVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.11', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
4554
4557
|
videosFormDto.forms.push(colorVideosContentDto);
|
|
@@ -4589,13 +4592,13 @@ class VideosTxtLeftService {
|
|
|
4589
4592
|
const videosFormDto = new FormsDto(content);
|
|
4590
4593
|
const linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
4591
4594
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
4592
|
-
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
4595
|
+
const controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.forms.FormsContentDto.17', FORM_TYPE_CHECKBOX, content[FORM_NAME_CONTROL], '100ms', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.18');
|
|
4593
4596
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
4594
|
-
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
4597
|
+
const autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
4595
4598
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
4596
|
-
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
4599
|
+
const muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
4597
4600
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
4598
|
-
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
4601
|
+
const loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
4599
4602
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
4600
4603
|
const colorVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.11', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
4601
4604
|
videosFormDto.forms.push(colorVideosContentDto);
|
|
@@ -5677,7 +5680,7 @@ class ImagesBannerService {
|
|
|
5677
5680
|
'wb.blocks.FormContentDto.117',
|
|
5678
5681
|
], ['0', '0.25', '0.5', '1']);
|
|
5679
5682
|
imgBannerFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
5680
|
-
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
5683
|
+
const parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.forms.FormsContentDto.27', FORM_TYPE_CHECKBOX, content[FORM_NAME_PARALLAX_INVERTED], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.28');
|
|
5681
5684
|
imgBannerFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
5682
5685
|
return imgBannerFormDto;
|
|
5683
5686
|
}
|
|
@@ -6336,7 +6339,7 @@ class SlidersWithBannerService {
|
|
|
6336
6339
|
const sliderWithBannerFormDto = new FormsDto(content);
|
|
6337
6340
|
const timeSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
6338
6341
|
sliderWithBannerFormDto.forms.push(timeSliderWithBannerContentDto);
|
|
6339
|
-
const dotsSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
6342
|
+
const dotsSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
6340
6343
|
sliderWithBannerFormDto.forms.push(dotsSliderWithBannerContentDto);
|
|
6341
6344
|
const maskSliderWithBannerContentDto = 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']);
|
|
6342
6345
|
sliderWithBannerFormDto.forms.push(maskSliderWithBannerContentDto);
|
|
@@ -7897,6 +7900,8 @@ class BlocksComponent {
|
|
|
7897
7900
|
this.contents = [];
|
|
7898
7901
|
this.dynamicHidden = [];
|
|
7899
7902
|
this.hideConfig = false;
|
|
7903
|
+
this.blockHover = false;
|
|
7904
|
+
this.configActive = false;
|
|
7900
7905
|
this.parsedContent = [];
|
|
7901
7906
|
}
|
|
7902
7907
|
ngOnInit() {
|
|
@@ -7915,6 +7920,10 @@ class BlocksComponent {
|
|
|
7915
7920
|
this.preview = false;
|
|
7916
7921
|
}
|
|
7917
7922
|
}
|
|
7923
|
+
switchHover(event) {
|
|
7924
|
+
console.log(event);
|
|
7925
|
+
this.configActive = event;
|
|
7926
|
+
}
|
|
7918
7927
|
addThis(index, type) {
|
|
7919
7928
|
this.wiziBlockService.getBlocksService().forEach((v) => {
|
|
7920
7929
|
if (v.type() === type) {
|
|
@@ -7987,7 +7996,7 @@ class BlocksComponent {
|
|
|
7987
7996
|
BlocksComponent.decorators = [
|
|
7988
7997
|
{ type: Component, args: [{
|
|
7989
7998
|
selector: 'wb-blocks',
|
|
7990
|
-
template: "<div\n class=\"wb-blocks\"\n cdkDropList\n (cdkDropListDropped)=\"onDrop($event)\"\n id=\"block-content\"\n *ngIf=\"contents.length > 0\"\n [@animateListFromLeft]=\"contents.length\"\n>\n <a\n class=\"button is-hidden-button is-danger is-rounded is-tooltip-info\"\n [ngClass]=\"{ 'is-danger': hideConfig, 'is-dark is-outlined': !hideConfig }\"\n (click)=\"setHideConfig()\"\n [nwbToolTip]=\"(!hideConfig ? 'wb.blocks.html.1' : 'wb.blocks.html.2') | translate\"\n nwbToolTipPosition=\"left\"\n ><i class=\"fal fa-eye\" *ngIf=\"!hideConfig\"></i><i class=\"fal fa-eye-slash\" *ngIf=\"hideConfig\"></i\n ></a>\n <wb-previews [contents]=\"parsedContent\" *ngIf=\"preview && hideConfig\"></wb-previews>\n <div class=\"wb-blocks__container\" *ngFor=\"let content of contents\" cdkDrag>\n <div
|
|
7999
|
+
template: "<div\n class=\"wb-blocks\"\n cdkDropList\n (cdkDropListDropped)=\"onDrop($event)\"\n id=\"block-content\"\n *ngIf=\"contents.length > 0\"\n [@animateListFromLeft]=\"contents.length\"\n [ngClass]=\"{ hover: blockHover }\"\n>\n <a\n class=\"button is-hidden-button is-danger is-rounded is-tooltip-info\"\n [ngClass]=\"{ 'is-danger': hideConfig, 'is-dark is-outlined': !hideConfig }\"\n (click)=\"setHideConfig()\"\n [nwbToolTip]=\"(!hideConfig ? 'wb.blocks.html.1' : 'wb.blocks.html.2') | translate\"\n nwbToolTipPosition=\"left\"\n ><i class=\"fal fa-eye\" *ngIf=\"!hideConfig\"></i><i class=\"fal fa-eye-slash\" *ngIf=\"hideConfig\"></i\n ></a>\n <wb-previews [contents]=\"parsedContent\" *ngIf=\"preview && hideConfig\"></wb-previews>\n <div class=\"wb-blocks__container\" *ngFor=\"let content of contents\" cdkDrag>\n <div\n class=\"wb-component\"\n [ngClass]=\"{\n 'is-inactive': hideConfig,\n 'border-grey': isHiddenBLocks(content.block.uuid),\n 'border-blue': selectedConfig === content.block.uuid\n }\"\n >\n <wb-structure-tools\n [dynamicHiddenStructure]=\"isHiddenBLocks(content.block.uuid)\"\n [uuid]=\"content.block.uuid\"\n [isHover]=\"blockHover\"\n [isAlwaysHover]=\"selectedConfig === content.block.uuid\"\n (configIsActivated)=\"switchHover($event)\"\n cdkDragHandle\n ></wb-structure-tools>\n <div class=\"wb-component__container\">\n <wb-container-block [content]=\"content\"></wb-container-block>\n </div>\n </div>\n </div>\n</div>\n<div class=\"wb-blocks-empty\" *ngIf=\"contents.length === 0\">\n <img src=\"assets/blocks/images/icons/Icon_Drag.svg\" />\n <p>{{ translation.select_component | translate }}</p>\n <p>{{ translation.doc_component | translate }}</p>\n</div>\n",
|
|
7991
8000
|
animations: [animateListFromLeft('100ms ease-in-out')]
|
|
7992
8001
|
},] }
|
|
7993
8002
|
];
|
|
@@ -8000,7 +8009,8 @@ BlocksComponent.ctorParameters = () => [
|
|
|
8000
8009
|
];
|
|
8001
8010
|
BlocksComponent.propDecorators = {
|
|
8002
8011
|
contents: [{ type: Input }],
|
|
8003
|
-
dynamicHidden: [{ type: Input }]
|
|
8012
|
+
dynamicHidden: [{ type: Input }],
|
|
8013
|
+
selectedConfig: [{ type: Input }]
|
|
8004
8014
|
};
|
|
8005
8015
|
|
|
8006
8016
|
class WiziBlockComponent {
|
|
@@ -8090,6 +8100,10 @@ class WiziBlockComponent {
|
|
|
8090
8100
|
}
|
|
8091
8101
|
this.loopIndex += 1;
|
|
8092
8102
|
}
|
|
8103
|
+
this.hoverChildren = this.selectedConfig.block.uuid;
|
|
8104
|
+
}
|
|
8105
|
+
else {
|
|
8106
|
+
this.hoverChildren = false;
|
|
8093
8107
|
}
|
|
8094
8108
|
if (this.toolHidden) {
|
|
8095
8109
|
this.setHidden();
|
|
@@ -8230,7 +8244,7 @@ class WiziBlockComponent {
|
|
|
8230
8244
|
WiziBlockComponent.decorators = [
|
|
8231
8245
|
{ type: Component, args: [{
|
|
8232
8246
|
selector: 'wb-wizi-block',
|
|
8233
|
-
template: "<div\n id=\"wb-container\"\n class=\"columns wb-container\"\n *ngIf=\"translation\"\n #container\n (window:resize)=\"onResize($event)\"\n [ngClass]=\"{ 'is-smallscreen': smallScreen }\"\n>\n <div\n cdkDrag\n [cdkDragDisabled]=\"!toolUnpin\"\n class=\"column wb-container__tools\"\n [ngClass]=\"{ 'is-unpinned': toolUnpin && !toolHidden, 'is-smallscreen': smallScreen, 'has-no-tool': toolHidden }\"\n [style.top.px]=\"currentTopTool\"\n >\n <div [ngClass]=\"{ 'is-hidden': !toolHidden }\" (click)=\"setHidden(); $event.stopPropagation()\">\n <div [nwbToolTip]=\"'wb.panel.html.1' | translate\" nwbToolTipPosition=\"right\" class=\"is-tooltip-info\">\n <i class=\"far fa-arrow-alt-circle-right\"></i>\n </div>\n </div>\n <div [ngClass]=\"{ 'is-hidden': toolHidden }\">\n <div class=\"wb-tools\" *ngIf=\"selectedStructure === null\">\n <div class=\"wb-tools__header\">\n <p class=\"wb-tools__header__action\">\n <a\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"toolUnpin ? 'wb.panel.html.2' : ('wb.panel.html.3' | translate)\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"this.setUnpin(); $event.stopPropagation()\"\n ><i class=\"
|
|
8247
|
+
template: "<div\n id=\"wb-container\"\n class=\"columns wb-container\"\n *ngIf=\"translation\"\n #container\n (window:resize)=\"onResize($event)\"\n [ngClass]=\"{ 'is-smallscreen': smallScreen }\"\n>\n <div\n cdkDrag\n [cdkDragDisabled]=\"!toolUnpin\"\n class=\"column wb-container__tools\"\n [ngClass]=\"{ 'is-unpinned': toolUnpin && !toolHidden, 'is-smallscreen': smallScreen, 'has-no-tool': toolHidden }\"\n [style.top.px]=\"currentTopTool\"\n >\n <div [ngClass]=\"{ 'is-hidden': !toolHidden }\" (click)=\"setHidden(); $event.stopPropagation()\">\n <div [nwbToolTip]=\"'wb.panel.html.1' | translate\" nwbToolTipPosition=\"right\" class=\"is-tooltip-info\">\n <i class=\"far fa-arrow-alt-circle-right\"></i>\n </div>\n </div>\n <div [ngClass]=\"{ 'is-hidden': toolHidden }\">\n <div class=\"wb-tools\" *ngIf=\"selectedStructure === null\">\n <div class=\"wb-tools__header\">\n <p class=\"wb-tools__header__action\">\n <a\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"toolUnpin ? 'wb.panel.html.2' : ('wb.panel.html.3' | translate)\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"this.setUnpin(); $event.stopPropagation()\"\n ><i class=\"far\" [ngClass]=\"{ 'fa-unlink': !toolUnpin, 'fa-link': toolUnpin }\"></i\n ></a>\n <a\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"'wb.panel.html.4' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"setHidden(); $event.stopPropagation()\"\n ><i class=\"far fa-arrow-from-right\"></i\n ></a>\n </p>\n <p class=\"wb-tools__header__list\">{{ translation.list_component | translate }}</p>\n </div>\n <ng-scrollbar [visibility]=\"'hover'\" *ngIf=\"components\" style=\"position: relative; max-height: 85vh\">\n <div class=\"wb-tools__content\">\n <div class=\"columns is-multiline\" [@animateListFromLeft]=\"components.components.length\">\n <div\n class=\"column is-6\"\n *ngFor=\"let component of components.components\"\n (click)=\"selectedStructure = component; selectedConfig = null\"\n >\n <div>\n <img\n [src]=\"'assets/blocks/images/icons/' + component.image\"\n [alt]=\"component.text | translate\"\n *ngIf=\"component.image\"\n />\n <p>{{ component.text | translate }}</p>\n </div>\n </div>\n </div>\n </div>\n </ng-scrollbar>\n </div>\n <div class=\"wb-configuration\" *ngIf=\"selectedStructure !== null\">\n <div class=\"wb-configuration__header\">\n <p class=\"wb-tools__header__action\">\n <a\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"toolUnpin ? 'wb.panel.html.2' : ('wb.panel.html.3' | translate)\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"this.setUnpin(); $event.stopPropagation()\"\n ><i class=\"fal\" [ngClass]=\"{ 'fa-unlink': !toolUnpin, 'fa-link': toolUnpin }\"></i\n ></a>\n <a\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"'wb.panel.html.4' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"setHidden(); $event.stopPropagation()\"\n ><i class=\"far fa-arrow-from-right\"></i\n ></a>\n </p>\n <p class=\"wb-configuration__header-click wb-tools__header__list\" (click)=\"selectedStructure = null; closeConfig()\">\n <i class=\"far fa-angle-left\"></i> {{ selectedStructure.text | translate }}\n </p>\n </div>\n <div class=\"wb-configuration__subheader\">\n <a (click)=\"closeConfig()\" [ngClass]=\"{ 'is-active': selectedConfig === null }\">{{\n translation.structure | translate\n }}</a>\n <a [ngClass]=\"{ 'is-active': selectedConfig !== null }\" *ngIf=\"selectedConfig !== null\">{{\n translation.config | translate\n }}</a>\n </div>\n <ng-scrollbar [visibility]=\"'hover'\" class=\"ps\" perfectScrollbar style=\"position: relative; max-height: 80vh\">\n <div class=\"wb-configuration__content\">\n <div\n *ngIf=\"selectedConfig === null\"\n class=\"wb-configuration__content_structures\"\n [@animateListFromRight]=\"selectedStructure.contents.length\"\n >\n <div\n cdkDropList\n [cdkDropListDisabled]=\"blocksContents.length === 0\"\n [cdkDropListConnectedTo]=\"['block-content']\"\n *ngFor=\"let selected of selectedStructure.contents\"\n >\n <img [src]=\"selected.image | imgPath\" />\n <p>{{ selected.name | translate }}</p>\n <div\n class=\"wb-configuration__content_structures__dragger\"\n [id]=\"selected.type\"\n cdkDrag\n cdkDragHandle\n [ngClass]=\"{ 'is-draggable': blocksContents.length }\"\n (click)=\"addThis(selected)\"\n >\n <p class=\"wb-configuration__content_structures__preview\" *cdkDragPreview></p>\n <p class=\"wb-configuration__content_structures__placeholder\" *cdkDragPlaceholder><span></span></p>\n </div>\n </div>\n </div>\n <div *ngIf=\"selectedConfig !== null\" class=\"wb-configuration__content_configuration\">\n <wb-configs\n [isFirst]=\"isFirstInLoop\"\n [configs]=\"selectedConfig\"\n (changeConfig)=\"changeConfigWiziblocks($event)\"\n ></wb-configs>\n </div>\n </div>\n </ng-scrollbar>\n </div>\n </div>\n </div>\n <div class=\"column wb-container__content\" [ngClass]=\"{ 'has-no-tool': toolHidden }\">\n <div class=\"wb-content\">\n <div class=\"wb-content__header\">\n <p><i class=\"fas fa-lock\"></i> {{ translation.header | translate }}</p>\n </div>\n <div class=\"wb-content__content\">\n <wb-blocks [dynamicHidden]=\"isHiddenConfig\" [selectedConfig]=\"hoverChildren\" #block [contents]=\"blocksContents\"></wb-blocks>\n </div>\n <div class=\"wb-content__footer\">\n <p><i class=\"fas fa-lock\"></i> {{ translation.footer | translate }}</p>\n </div>\n </div>\n </div>\n</div>\n<hr id=\"wb-footer__block\" />\n",
|
|
8234
8248
|
animations: [animateListFromRight('200ms ease-in-out', '100ms'), animateListFromLeft('100ms ease-in-out')]
|
|
8235
8249
|
},] }
|
|
8236
8250
|
];
|
|
@@ -8294,6 +8308,8 @@ class StructureConfigComponent {
|
|
|
8294
8308
|
this.blockUUID = null;
|
|
8295
8309
|
this.position = TYPE_CONFIG_POSITION_LEFT_TOP;
|
|
8296
8310
|
this.isFullwidth = false;
|
|
8311
|
+
this.small = false;
|
|
8312
|
+
this.extraSmall = false;
|
|
8297
8313
|
this.thisComponentActive = false;
|
|
8298
8314
|
this.hideThis = false;
|
|
8299
8315
|
this.TYPE_CONFIG_POSITION_RIGHT_TOP = TYPE_CONFIG_POSITION_RIGHT_TOP;
|
|
@@ -8303,7 +8319,7 @@ class StructureConfigComponent {
|
|
|
8303
8319
|
this.TYPE_CONFIG_POSITION_LEFT_CENTER = TYPE_CONFIG_POSITION_LEFT_CENTER;
|
|
8304
8320
|
}
|
|
8305
8321
|
ngOnInit() {
|
|
8306
|
-
this.structureConfigService.structureConfigEvent().subscribe(uuid => {
|
|
8322
|
+
this.structureConfigService.structureConfigEvent().subscribe((uuid) => {
|
|
8307
8323
|
if (uuid === null || this.blockUUID === uuid) {
|
|
8308
8324
|
if (this.structureConfigService.structureConfig !== '' && !this.thisComponentActive) {
|
|
8309
8325
|
this.isActive = false;
|
|
@@ -8338,7 +8354,7 @@ class StructureConfigComponent {
|
|
|
8338
8354
|
StructureConfigComponent.decorators = [
|
|
8339
8355
|
{ type: Component, args: [{
|
|
8340
8356
|
selector: 'wb-structure-config',
|
|
8341
|
-
template: "<div\n [ngClass]=\"{ 'is-active': isActive, 'is-fullwidth': isFullwidth }\"\n [class]=\"'wb-structure-config ' + position\"\n wbAutoHide\n triggerElement=\"wb-structure-config__tools\"\n (clickOutside)=\"disableIfActive()\"\n [forceOn]=\"['wb-structure-config', 'is-active']\"\n>\n <div\n class=\"wb-structure-config__tools is-tooltip-info\"\n [nwbToolTip]=\"'wb.structureconfig.tooltip.1' | translate\"\n [nwbToolTipPosition]=\"\n position === TYPE_CONFIG_POSITION_RIGHT_TOP || position === TYPE_CONFIG_POSITION_RIGHT_BOTTOM ? 'left' : 'right'\n \"\n (click)=\"activeThis()\"\n [ngClass]=\"{\n 'has-other-element-opened': hideThis\n }\"\n >\n <i class=\"
|
|
8357
|
+
template: "<div\n [ngClass]=\"{ 'is-active': isActive, 'is-fullwidth': isFullwidth, small: small, 'extra-small': extraSmall }\"\n [class]=\"'wb-structure-config ' + position\"\n wbAutoHide\n triggerElement=\"wb-structure-config__tools\"\n (clickOutside)=\"disableIfActive()\"\n [forceOn]=\"['wb-structure-config', 'is-active']\"\n>\n <div\n class=\"wb-structure-config__tools is-tooltip-info\"\n [nwbToolTip]=\"'wb.structureconfig.tooltip.1' | translate\"\n [nwbToolTipPosition]=\"\n position === TYPE_CONFIG_POSITION_RIGHT_TOP || position === TYPE_CONFIG_POSITION_RIGHT_BOTTOM ? 'left' : 'right'\n \"\n (click)=\"activeThis()\"\n [ngClass]=\"{\n 'has-other-element-opened': hideThis\n }\"\n >\n <i class=\"fas fa-bars\"></i>\n </div>\n <div class=\"wb-structure-config__content\">\n <div class=\"wb-structure-config__content__tools\" (click)=\"disable()\">\n <div class=\"close\"><i class=\"fas fa-times\"></i></div>\n </div>\n <div>\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n"
|
|
8342
8358
|
},] }
|
|
8343
8359
|
];
|
|
8344
8360
|
StructureConfigComponent.ctorParameters = () => [
|
|
@@ -8348,7 +8364,9 @@ StructureConfigComponent.propDecorators = {
|
|
|
8348
8364
|
isActive: [{ type: Input }],
|
|
8349
8365
|
blockUUID: [{ type: Input }],
|
|
8350
8366
|
position: [{ type: Input }],
|
|
8351
|
-
isFullwidth: [{ type: Input }]
|
|
8367
|
+
isFullwidth: [{ type: Input }],
|
|
8368
|
+
small: [{ type: Input }],
|
|
8369
|
+
extraSmall: [{ type: Input }]
|
|
8352
8370
|
};
|
|
8353
8371
|
|
|
8354
8372
|
class ExpectedImagesService {
|
|
@@ -8742,11 +8760,16 @@ class StructureToolsComponent {
|
|
|
8742
8760
|
this.contentService = contentService;
|
|
8743
8761
|
this.configService = configService;
|
|
8744
8762
|
this.dynamicHiddenStructure = false;
|
|
8763
|
+
this.isHover = false;
|
|
8745
8764
|
this.hideConfig = false;
|
|
8746
8765
|
this.blockIsHidden = false;
|
|
8766
|
+
this.configIsActivated = new EventEmitter();
|
|
8747
8767
|
this.contentEventSubscription = null;
|
|
8748
8768
|
}
|
|
8749
8769
|
ngOnInit() {
|
|
8770
|
+
console.log('----- IS ALWAYS ------');
|
|
8771
|
+
console.log(this.isAlwaysHover);
|
|
8772
|
+
console.log('----- / IS ALWAYS ------');
|
|
8750
8773
|
this.checkOnContents();
|
|
8751
8774
|
this.contentEventSubscription = this.contentService.contentEvent().subscribe(() => {
|
|
8752
8775
|
this.checkOnContents();
|
|
@@ -8782,6 +8805,8 @@ class StructureToolsComponent {
|
|
|
8782
8805
|
}
|
|
8783
8806
|
configThis(e) {
|
|
8784
8807
|
e.preventDefault();
|
|
8808
|
+
this.configIsActivated.emit(true);
|
|
8809
|
+
this.isAlwaysHover = true;
|
|
8785
8810
|
this.configService.config = this.contentService.getContentByUUID(this.uuid);
|
|
8786
8811
|
}
|
|
8787
8812
|
removeThis($event) {
|
|
@@ -8813,7 +8838,7 @@ class StructureToolsComponent {
|
|
|
8813
8838
|
StructureToolsComponent.decorators = [
|
|
8814
8839
|
{ type: Component, args: [{
|
|
8815
8840
|
selector: 'wb-structure-tools',
|
|
8816
|
-
template: "<div class=\"wb-structure-tools\" [ngClass]=\"{ hidden: dynamicHiddenStructure }\">\n <div>\n <div class=\"wb-structure-tools__move\" *ngIf=\"currentLength > 1\">\n <div>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.1' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n (click)=\"$event.stopPropagation()\"\n ><i class=\"fas fa-
|
|
8841
|
+
template: "<div class=\"wb-structure-tools\" [ngClass]=\"{ hidden: dynamicHiddenStructure, hover: isHover || isAlwaysHover }\">\n <div>\n <div class=\"wb-structure-tools__move\" *ngIf=\"currentLength > 1\">\n <div>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.1' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n (click)=\"$event.stopPropagation()\"\n ><i class=\"fas fa-arrows\"></i\n ></a>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.2' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n *ngIf=\"currentIndex + 1 !== currentLength\"\n (click)=\"goDown($event)\"\n ><i class=\"fas fa-long-arrow-down\"></i\n ></a>\n <a\n [nwbToolTip]=\"'wb.shared.components.structureTools.3' | translate\"\n nwbToolTipPosition=\"bottom\"\n class=\"button is-rounded is-tooltip-info\"\n *ngIf=\"currentIndex !== 0\"\n (click)=\"goUp($event)\"\n ><i class=\"fas fa-long-arrow-up\"></i\n ></a>\n </div>\n </div>\n <div class=\"wb-structure-tools__edit\">\n <div>\n <i class=\"fas fa-eye-slash\" *ngIf=\"dynamicHiddenStructure\"></i>\n <p>{{ name | translate }}</p>\n <div>\n <a\n href\n class=\"button is-rounded is-tooltip-info\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.4' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"configThis($event)\"\n *ngIf=\"!hideConfig\"\n ><span></span><i class=\"fas fa-cog\"></i\n ></a>\n <a\n href\n class=\"button is-rounded is-tooltip-link\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.5' | translate\"\n nwbToolTipPosition=\"bottom\"\n (click)=\"duplicateThis($event)\"\n ><span></span><i class=\"fas fa-copy\"></i\n ></a>\n <a\n #deleteButton\n class=\"button is-rounded is-tooltip-danger\"\n [nwbToolTip]=\"'wb.shared.components.structureTools.6' | translate\"\n nwbToolTipPosition=\"bottom\"\n wbHoldable\n (mousedown)=\"deleteButton.hold = true\"\n (mouseup)=\"deleteButton.hold = false\"\n (holdTime)=\"removeThis($event)\"\n [ngClass]=\"{ 'is-on-hold': deleteButton.hold }\"\n ><span></span><i class=\"fas fa-trash\"></i\n ></a>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
|
|
8817
8842
|
},] }
|
|
8818
8843
|
];
|
|
8819
8844
|
StructureToolsComponent.ctorParameters = () => [
|
|
@@ -8824,7 +8849,10 @@ StructureToolsComponent.ctorParameters = () => [
|
|
|
8824
8849
|
StructureToolsComponent.propDecorators = {
|
|
8825
8850
|
uuid: [{ type: Input }],
|
|
8826
8851
|
dynamicHiddenStructure: [{ type: Input }],
|
|
8827
|
-
|
|
8852
|
+
isHover: [{ type: Input }],
|
|
8853
|
+
isAlwaysHover: [{ type: Input }],
|
|
8854
|
+
deleteButton: [{ type: ViewChild, args: ['deleteButton',] }],
|
|
8855
|
+
configIsActivated: [{ type: Output }]
|
|
8828
8856
|
};
|
|
8829
8857
|
|
|
8830
8858
|
class SafeUrlPipe {
|
|
@@ -19726,7 +19754,7 @@ class ImagesDoubleComponent extends StructuresComponent {
|
|
|
19726
19754
|
ImagesDoubleComponent.decorators = [
|
|
19727
19755
|
{ type: Component, args: [{
|
|
19728
19756
|
selector: ImagesDoubleService.selector(),
|
|
19729
|
-
template: "<div class=\"wb-images-double\">\n <div class=\"columns\">\n <div class=\"column\">\n <div\n class=\"wb-images-double__container\"\n [ngClass]=\"{\n 'wb-images-double__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-images-double__container__images\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\">\n <div>\n <wb-structure-config [blockUUID]=\"uuid\" [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\" [isFullwidth]=\"true\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(FORM_NAME_IMAGE_LEFT, $event)\"\n [style.background-image]=\"\n 'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL] + ')'\n \"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_LEFT)\"\n class=\"wb-images-double__container__images__item\"\n [ngClass]=\"{\n 'wb-images-double__container__images__item--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container__images__item--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container__images__item--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n </div>\n <div\n class=\"wb-images-double__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_LEFT)\"\n [ngClass]=\"{\n 'wb-images-double__noimages--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__noimages--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__noimages--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"column\">\n <div\n class=\"wb-images-double__container\"\n [ngClass]=\"{\n 'wb-images-double__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-images-double__container__images\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\">\n <div>\n <wb-structure-config [blockUUID]=\"uuid\" [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\" [isFullwidth]=\"true\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(FORM_NAME_IMAGE_RIGHT, $event)\"\n [style.background-image]=\"\n 'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL] + ')'\n \"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_RIGHT)\"\n class=\"wb-images-double__container__images__item\"\n [ngClass]=\"{\n 'wb-images-double__container__images__item--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container__images__item--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container__images__item--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n </div>\n <div\n class=\"wb-images-double__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_RIGHT)\"\n [ngClass]=\"{\n 'wb-images-double__noimages--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__noimages--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__noimages--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n</div>\n"
|
|
19757
|
+
template: "<div class=\"wb-images-double\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_RIGHT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <div class=\"columns\">\n <div class=\"column\">\n <div\n class=\"wb-images-double__container\"\n [ngClass]=\"{\n 'wb-images-double__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-images-double__container__images\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\">\n <div>\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(FORM_NAME_IMAGE_LEFT, $event)\"\n [style.background-image]=\"\n 'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL] + ')'\n \"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_LEFT)\"\n class=\"wb-images-double__container__images__item\"\n [ngClass]=\"{\n 'wb-images-double__container__images__item--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container__images__item--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container__images__item--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n <div\n class=\"wb-images-double__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_LEFT)\"\n [ngClass]=\"{\n 'wb-images-double__noimages--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__noimages--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__noimages--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n <div class=\"column\">\n <div\n class=\"wb-images-double__container\"\n [ngClass]=\"{\n 'wb-images-double__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-images-double__container__images\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\">\n <div>\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(FORM_NAME_IMAGE_RIGHT, $event)\"\n [style.background-image]=\"\n 'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL] + ')'\n \"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_RIGHT)\"\n class=\"wb-images-double__container__images__item\"\n [ngClass]=\"{\n 'wb-images-double__container__images__item--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__container__images__item--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__container__images__item--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n <div\n class=\"wb-images-double__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE_RIGHT)\"\n [ngClass]=\"{\n 'wb-images-double__noimages--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-double__noimages--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-double__noimages--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n </div>\n </div>\n</div>\n"
|
|
19730
19758
|
},] }
|
|
19731
19759
|
];
|
|
19732
19760
|
ImagesDoubleComponent.ctorParameters = () => [];
|
|
@@ -20000,7 +20028,7 @@ class FourImagesTitleComponent extends StructuresComponent {
|
|
|
20000
20028
|
FourImagesTitleComponent.decorators = [
|
|
20001
20029
|
{ type: Component, args: [{
|
|
20002
20030
|
selector: FourImagesTitleService.selector(),
|
|
20003
|
-
template: "<div class=\"wb-four-images-title\">\n <div\n class=\"wb-four-images-title__wrapper\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper--medium': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div\n class=\"wb-four-images-title__wrapper__item\"\n *ngFor=\"let elem of contents[BASE_BLOCK_CONTENT][FORM_NAME_ELEMENTS]; let i = index\"\n >\n <div class=\"wb-four-images-title__wrapper__item__img\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"elem[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)]=\"elem[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)]=\"elem[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-four-images-title__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor(i)\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor(i)\"\n class=\"wb-four-images-title__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-four-images-title__wrapper__item__title\">\n <wb-quill [(content)]=\"elem[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n</div>\n"
|
|
20031
|
+
template: "<div class=\"wb-four-images-title\">\n <div\n class=\"wb-four-images-title__wrapper\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper--medium': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div\n class=\"wb-four-images-title__wrapper__item\"\n *ngFor=\"let elem of contents[BASE_BLOCK_CONTENT][FORM_NAME_ELEMENTS]; let i = index\"\n >\n <div class=\"wb-four-images-title__wrapper__item__img\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n [extraSmall]=\"true\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"elem[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)]=\"elem[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)]=\"elem[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-four-images-title__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor(i)\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"elem[FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor(i)\"\n class=\"wb-four-images-title__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-four-images-title__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-four-images-title__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-four-images-title__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-four-images-title__wrapper__item__title\">\n <wb-quill [(content)]=\"elem[FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n </div>\n</div>\n"
|
|
20004
20032
|
},] }
|
|
20005
20033
|
];
|
|
20006
20034
|
FourImagesTitleComponent.ctorParameters = () => [
|
|
@@ -20046,7 +20074,7 @@ class TwoImagesTitleTextComponent extends StructuresComponent {
|
|
|
20046
20074
|
TwoImagesTitleTextComponent.decorators = [
|
|
20047
20075
|
{ type: Component, args: [{
|
|
20048
20076
|
selector: TwoImagesTitleTextService.selector(),
|
|
20049
|
-
template: "<div class=\"wb-two-images-title-text\">\n <div class=\"wb-two-images-title-text__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper\"\n [ngClass]=\"{\n 'wb-images-simple__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-simple__container--medium': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-simple__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-two-images-title-text__wrapper__item\">\n <div\n class=\"wb-two-images-title-text__wrapper__item__img\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img--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=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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-two-images-title-text__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor('0')\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor('0')\"\n class=\"wb-two-images-title-text__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL].length <= 0\"\n >\n <div class=\"wb-two-images-title-text__wrapper__item__text\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n <a\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL].length > 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n <i [style]=\"'color: ' + contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\" class=\"far fa-arrow-right\"></i>\n </a>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item\">\n <div\n class=\"wb-two-images-title-text__wrapper__item__img\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img--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=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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-two-images-title-text__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor('1')\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor('1')\"\n class=\"wb-two-images-title-text__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL].length <= 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <a\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL].length > 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n <i [style]=\"'color: ' + contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\" class=\"far fa-arrow-right\"></i>\n </a>\n </div>\n </div>\n</div>\n"
|
|
20077
|
+
template: "<div class=\"wb-two-images-title-text\">\n <div class=\"wb-two-images-title-text__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper\"\n [ngClass]=\"{\n 'wb-images-simple__container--small': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-images-simple__container--medium': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-images-simple__container--large': contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <div class=\"wb-two-images-title-text__wrapper__item\">\n <div\n class=\"wb-two-images-title-text__wrapper__item__img\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img--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 [small]=\"true\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][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-two-images-title-text__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor('0')\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor('0')\"\n class=\"wb-two-images-title-text__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL].length <= 0\"\n >\n <div class=\"wb-two-images-title-text__wrapper__item__text\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n </div>\n <a\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_LEFT][FORM_NAME_URL].length > 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_LEFT]\" (contentChange)=\"persist()\"></wb-quill>\n <i [style]=\"'color: ' + contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\" class=\"far fa-arrow-right\"></i>\n </a>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item\">\n <div\n class=\"wb-two-images-title-text__wrapper__item__img\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img--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 [small]=\"true\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length > 0\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][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-two-images-title-text__wrapper__item__img__empty\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length <= 0\"\n (click)=\"getMediaFor('1')\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__empty--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__empty--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__empty--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_IMAGE_URL]?.length > 0\"\n (click)=\"getMediaFor('1')\"\n class=\"wb-two-images-title-text__wrapper__item__img__picture\"\n [ngClass]=\"{\n 'wb-two-images-title-text__wrapper__item__img__picture--small':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_SMALL,\n 'wb-two-images-title-text__wrapper__item__img__picture--medium':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_MEDIUM,\n 'wb-two-images-title-text__wrapper__item__img__picture--large':\n contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK] === FORM_TYPE_IMAGE_MASK_LARGE\n }\"\n ></div>\n </div>\n <div class=\"wb-two-images-title-text__wrapper__item__title\">\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <div\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL].length <= 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n </div>\n <a\n class=\"wb-two-images-title-text__wrapper__item__text\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_RIGHT][FORM_NAME_URL].length > 0\"\n >\n <wb-quill [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_RIGHT]\" (contentChange)=\"persist()\"></wb-quill>\n <i [style]=\"'color: ' + contents[BASE_BLOCK_CONTENT][FORM_NAME_ICON_COLOR]\" class=\"far fa-arrow-right\"></i>\n </a>\n </div>\n </div>\n</div>\n"
|
|
20050
20078
|
},] }
|
|
20051
20079
|
];
|
|
20052
20080
|
TwoImagesTitleTextComponent.ctorParameters = () => [];
|
|
@@ -24843,7 +24871,7 @@ class TextBackgroundsLinkComponent extends StructuresComponent {
|
|
|
24843
24871
|
TextBackgroundsLinkComponent.decorators = [
|
|
24844
24872
|
{ type: Component, args: [{
|
|
24845
24873
|
selector: TextBackgroundsLinkService.selector(),
|
|
24846
|
-
template: "<div class=\"wb-text-backgrounds-link\" [ngClass]=\"{ 'is-active': hasTooltipFocusedLeftBottom || hasTooltipFocusedImg }\">\n <div\n class=\"wb-text-backgrounds-link__container\"\n [ngClass]=\"{ 'wb-text-backgrounds-link__container--autoHeight': contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND] }\"\n >\n <div class=\"wb-text-backgrounds-link__container__background\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\">\n <div>\n <div\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n class=\"wb-text-backgrounds-link__container__images__item\"\n ></div>\n </div>\n </div>\n <div\n class=\"wb-text-backgrounds-link__container__config\"\n *ngFor=\"let content of contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND_LINK]; let i = index\"\n >\n <wb-structure-config [blockUUID]=\"uuid\" [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\" [isActive]=\"triggerConfig[i]\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"content[FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"content[FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"content[FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <div class=\"triggerClose\" (click)=\"closeConfig(i)\" *ngIf=\"triggerConfig[i]\"></div>\n </div>\n <div\n class=\"wb-text-backgrounds-link__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n (click)=\"getMediaFor('', 'add')\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n <div class=\"wb-text-backgrounds-link__container__columns\">\n <div\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage('', $event)\"\n (click)=\"getMediaFor('')\"\n class=\"wb-text-backgrounds-link__container__columns__absolute\"\n ></div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-link__container__images\">\n <div class=\"wb-text-backgrounds-link__container__text\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\">\n <div class=\"has-transparent-background\">\n <wb-quill\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\"\n (contentChange)=\"persist()\"\n (isTooltipFocused)=\"checkQuillToolTip('hasTooltipFocusedLeftBottom', $event)\"\n ></wb-quill>\n </div>\n </div>\n <div class=\"wb-text-backgrounds-link__container__flex\">\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage('', $event)\"\n (click)=\"getMediaFor('')\"\n class=\"wb-text-backgrounds-link__container__flex__absolute\"\n ></div>\n <div\n *ngFor=\"let content of contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND_LINK]; let i = index\"\n class=\"wb-text-backgrounds-link__container__images__item\"\n >\n <div class=\"wb-text-backgrounds-link__container__flex__config\" (click)=\"openConfig(i)\">\n <div\n class=\"wb-structure-config__tools is-tooltip-info tooltip is-tooltip-right\"\n [nwbToolTip]=\"'wb.structureconfig.tooltip.1' | translate\"\n nwbToolTipPosition=\"right\"\n >\n <i class=\"
|
|
24874
|
+
template: "<div class=\"wb-text-backgrounds-link\" [ngClass]=\"{ 'is-active': hasTooltipFocusedLeftBottom || hasTooltipFocusedImg }\">\n <div\n class=\"wb-text-backgrounds-link__container\"\n [ngClass]=\"{ 'wb-text-backgrounds-link__container--autoHeight': contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND] }\"\n >\n <div class=\"wb-text-backgrounds-link__container__background\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\">\n <div>\n <div\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL] + ')'\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n class=\"wb-text-backgrounds-link__container__images__item\"\n ></div>\n </div>\n </div>\n <div\n class=\"wb-text-backgrounds-link__container__config\"\n *ngFor=\"let content of contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND_LINK]; let i = index\"\n >\n <wb-structure-config [blockUUID]=\"uuid\" [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\" [isActive]=\"triggerConfig[i]\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.9' | translate\"\n [(ngModel)]=\"content[FORM_NAME_TITLE]\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n <div class=\"columns\">\n <div class=\"column\">\n <wb-structure-config-input\n [label]=\"'wb.structures.template.10' | translate\"\n [(ngModel)]=\"content[FORM_NAME_URL]\"\n [placeholder]=\"'wb.structures.template.11' | translate\"\n (ngModelChange)=\"persist()\"\n ></wb-structure-config-input>\n </div>\n <div class=\"column\">\n <wb-structure-config-checkbox\n [label]=\"'wb.structures.template.12' | translate\"\n [(ngModel)]=\"content[FORM_NAME_URL_TARGET]\"\n (ngModelChange)=\"persist()\"\n [off]=\"'_self'\"\n [on]=\"'_blank'\"\n ></wb-structure-config-checkbox>\n </div>\n </div>\n </wb-structure-config>\n <div class=\"triggerClose\" (click)=\"closeConfig(i)\" *ngIf=\"triggerConfig[i]\"></div>\n </div>\n <div\n class=\"wb-text-backgrounds-link__noimages\"\n wbPicturesTemplateDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n (click)=\"getMediaFor('', 'add')\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.structures.template.8' | translate }}</span>\n </p>\n </div>\n <div class=\"wb-text-backgrounds-link__container__columns\">\n <div\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage('', $event)\"\n (click)=\"getMediaFor('')\"\n class=\"wb-text-backgrounds-link__container__columns__absolute\"\n ></div>\n <div class=\"columns\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\">\n <div class=\"column\">\n <div class=\"wb-text-backgrounds-link__container__images\">\n <div class=\"wb-text-backgrounds-link__container__text\" *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\">\n <div class=\"has-transparent-background\">\n <wb-quill\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\"\n (contentChange)=\"persist()\"\n (isTooltipFocused)=\"checkQuillToolTip('hasTooltipFocusedLeftBottom', $event)\"\n ></wb-quill>\n </div>\n </div>\n <div class=\"wb-text-backgrounds-link__container__flex\">\n <div\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND][FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage('', $event)\"\n (click)=\"getMediaFor('')\"\n class=\"wb-text-backgrounds-link__container__flex__absolute\"\n ></div>\n <div\n *ngFor=\"let content of contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND_LINK]; let i = index\"\n class=\"wb-text-backgrounds-link__container__images__item\"\n >\n <div class=\"wb-text-backgrounds-link__container__flex__config\" (click)=\"openConfig(i)\">\n <div\n class=\"wb-structure-config__tools is-tooltip-info tooltip is-tooltip-right\"\n [nwbToolTip]=\"'wb.structureconfig.tooltip.1' | translate\"\n nwbToolTipPosition=\"right\"\n >\n <i class=\"fas fa-bars\"></i>\n </div>\n </div>\n <div\n class=\"wb-text-backgrounds-link__container__flex__background\"\n wbGetSizeImageDirective\n [dimensions]=\"sizes[contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE_MASK]]\"\n [urlToParse]=\"content[FORM_NAME_IMAGE_URL]\"\n (onUpdate)=\"updateThisImage(i, $event)\"\n [style.background-image]=\"'url(' + content[FORM_NAME_IMAGE_URL] + ')'\"\n (click)=\"getMediaFor(i)\"\n ></div>\n <div class=\"wb-text-backgrounds-link__container__flex__text\" *ngIf=\"content\">\n <div>\n <wb-quill\n [(content)]=\"content[FORM_NAME_CONTENT]\"\n (contentChange)=\"persist()\"\n (isTooltipFocused)=\"checkQuillToolTip('hasTooltipFocusedImg_' + i, $event)\"\n >\n </wb-quill>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div\n class=\"wb-additionnal-tools wb-slider-fullpage__container__slider\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND]\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"onDrop($event)\"\n >\n <a\n class=\"wb-slider-fullpage__container__slider-selector\"\n *ngFor=\"let content of contents[BASE_BLOCK_CONTENT][FORM_NAME_TEXT_BACKGROUND_LINK]; let i = index\"\n cdkDrag\n ><span></span>\n <span\n >{{ 'wb.structures.template.59' | translate: { nb: i + 1 } }}<i class=\"fal fa-times\" (click)=\"removeThisSlide(i)\"></i>\n </span>\n </a>\n <a class=\"wb-slider-fullpage__container__slider-add\" (click)=\"getMediaFor(currentNumber, 'add')\" *ngIf=\"currentNumber < 6\">\n {{ 'wb.structures.template.42' | translate }}<span class=\"absolute\">{{ 'wb.structures.template.43' | translate }}</span>\n </a>\n </div>\n</div>\n"
|
|
24847
24875
|
},] }
|
|
24848
24876
|
];
|
|
24849
24877
|
TextBackgroundsLinkComponent.ctorParameters = () => [];
|
|
@@ -25493,6 +25521,20 @@ class ConfigsComponent {
|
|
|
25493
25521
|
}
|
|
25494
25522
|
this.updateContent();
|
|
25495
25523
|
}
|
|
25524
|
+
updateChangesReverse($event = null, key) {
|
|
25525
|
+
if ($event !== null) {
|
|
25526
|
+
let onValue = true;
|
|
25527
|
+
if (typeof this.configs.forms[key].state[0] !== 'undefined') {
|
|
25528
|
+
onValue = this.configs.forms[key].state[0];
|
|
25529
|
+
}
|
|
25530
|
+
let offValue = true;
|
|
25531
|
+
if (typeof this.configs.forms[key].state[1] !== 'undefined') {
|
|
25532
|
+
offValue = this.configs.forms[key].state[1];
|
|
25533
|
+
}
|
|
25534
|
+
this.configs.forms[key].value = $event.target.checked ? offValue : onValue;
|
|
25535
|
+
}
|
|
25536
|
+
this.updateContent();
|
|
25537
|
+
}
|
|
25496
25538
|
updateContent() {
|
|
25497
25539
|
this.contentService.updateByUUID(this.configs.block.uuid, this.configs);
|
|
25498
25540
|
this.changeConfig.emit({
|
|
@@ -25525,7 +25567,7 @@ class ConfigsComponent {
|
|
|
25525
25567
|
ConfigsComponent.decorators = [
|
|
25526
25568
|
{ type: Component, args: [{
|
|
25527
25569
|
selector: 'wb-configs',
|
|
25528
|
-
template: "<div class=\"wb-configs\" [ngClass]=\"{ 'is-not-first': !isFirst }\" [@animateListFromLeft]=\"temporizeConfig\" *ngIf=\"temporizeConfig\">\n <div class=\"field\" *ngFor=\"let form of configs.forms; let i = index\">\n <label class=\"label\" [ngClass]=\"{ 'icon-help': form.iconHelp }\"\n >{{ form.label | translate }}\n <i *ngIf=\"form.iconHelp\" class=\"fas fa-info-circle\"\n ><span>{{ form.help | translate }}</span></i\n ></label\n >\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_TEXT\">\n <input\n class=\"input\"\n [type]=\"form.type\"\n [placeholder]=\"form.placeholder | translate\"\n [ngModel]=\"form.value | translate\"\n (ngModelChange)=\"form.value = $event\"\n (keyup)=\"updateContent()\"\n />\n </div>\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_NUMBER\">\n <input\n class=\"input\"\n [type]=\"form.type\"\n [maxlength]=\"999999999\"\n [placeholder]=\"form.placeholder | translate\"\n [(ngModel)]=\"form.value\"\n (keyup)=\"updateNumber($event, i)\"\n />\n </div>\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_CHECKBOX\">\n <input\n [id]=\"'switchRoundedDefault' + i\"\n [type]=\"form.type\"\n [name]=\"'switchRoundedDefault' + i\"\n class=\"switch is-rounded is-info\"\n [checked]=\"form.value === (form.state[0] ? form.state[0] : true)\"\n (change)=\"updateChanges($event, i)\"\n />\n <label [for]=\"'switchRoundedDefault' + i\"></label>\n </div>\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_TAG\">\n <a\n class=\"button is-info\"\n [ngClass]=\"{ 'is-outlined': step !== form.value && (!form.stepKey.length || form.stepKey[i] !== form.value) }\"\n *ngFor=\"let step of form.step; let i = index\"\n (click)=\"form.value = form.stepKey.length && form.stepKey[i] ? form.stepKey[i] : step; updateContent()\"\n >\n {{ step | translate }}\n </a>\n </div>\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_COLOR\" #colors>\n <div\n [class]=\"'wb-configs__color wb-configs__colorjs' + i\"\n [style.background]=\"form.value\"\n (click)=\"colors.show = !colors.show\"\n ></div>\n <div\n class=\"wb-configs__picker\"\n wbAutoHide\n [triggerElement]=\"'wb-configs__colorjs' + i\"\n (clickOutside)=\"colors.show = false\"\n [ngClass]=\"{ 'is-active': colors.show }\"\n >\n <div\n [(colorPicker)]=\"form.value\"\n [style.background]=\"form.value\"\n [cpPosition]=\"'top'\"\n [cpWidth]=\"'auto'\"\n [cpToggle]=\"true\"\n [cpDialogDisplay]=\"'inline'\"\n (colorPickerChange)=\"updateContent()\"\n ></div>\n </div>\n </div>\n <p *ngIf=\"!form.iconHelp && !checkHelp(i)\" class=\"help\" [innerHTML]=\"form.help | translate\"></p>\n <p *ngIf=\"!form.iconHelp && checkHelp(i)\" class=\"help\" [innerHTML]=\"getValueHelp(form.value, i) | translate\"></p>\n </div>\n</div>\n",
|
|
25570
|
+
template: "<div class=\"wb-configs\" [ngClass]=\"{ 'is-not-first': !isFirst }\" [@animateListFromLeft]=\"temporizeConfig\" *ngIf=\"temporizeConfig\">\n <div class=\"field\" *ngFor=\"let form of configs.forms; let i = index\">\n <label class=\"label\" *ngIf=\"form.type !== FORM_TYPE_CHECKBOX\" [ngClass]=\"{ 'icon-help': form.iconHelp }\"\n >{{ form.label | translate }}\n <i *ngIf=\"form.iconHelp\" class=\"fas fa-info-circle\"\n ><span>{{ form.help | translate }}</span></i\n ></label\n >\n <div class=\"control control--input\" *ngIf=\"form.type === FORM_TYPE_TEXT\">\n <input\n class=\"input\"\n [type]=\"form.type\"\n [placeholder]=\"form.placeholder | translate\"\n [ngModel]=\"form.value | translate\"\n (ngModelChange)=\"form.value = $event\"\n (keyup)=\"updateContent()\"\n />\n </div>\n <div class=\"control control--input\" *ngIf=\"form.type === FORM_TYPE_NUMBER\">\n <input\n class=\"input\"\n [type]=\"form.type\"\n [maxlength]=\"999999999\"\n [placeholder]=\"form.placeholder | translate\"\n [(ngModel)]=\"form.value\"\n (keyup)=\"updateNumber($event, i)\"\n />\n </div>\n <div class=\"control control--flex\" [ngClass]=\"{ 'dynamic-label': form.labelEnable }\" *ngIf=\"form.type === FORM_TYPE_CHECKBOX\">\n <input\n [id]=\"'switchRoundedDefault' + i\"\n [type]=\"form.type\"\n [name]=\"'switchRoundedDefault' + i\"\n class=\"switch is-rounded is-info\"\n [checked]=\"!(form.value === (form.state[0] ? form.state[0] : true))\"\n (change)=\"form.reverseShow ? updateChangesReverse($event, i) : updateChanges($event, i)\"\n />\n <label [for]=\"'switchRoundedDefault' + i\"></label>\n <p [innerHTML]=\"form.label | translate\"></p>\n <p [innerHTML]=\"form.labelEnable | translate\"></p>\n </div>\n <div class=\"control control--button\" [ngClass]=\"{ 'max-width': form.step.length < 4 }\" *ngIf=\"form.type === FORM_TYPE_TAG\">\n <a\n class=\"button is-info\"\n [ngClass]=\"{ 'is-outlined': step !== form.value && (!form.stepKey.length || form.stepKey[i] !== form.value) }\"\n *ngFor=\"let step of form.step; let i = index\"\n (click)=\"form.value = form.stepKey.length && form.stepKey[i] ? form.stepKey[i] : step; updateContent()\"\n >\n {{ step | translate }}\n </a>\n </div>\n <div class=\"control\" *ngIf=\"form.type === FORM_TYPE_COLOR\" #colors>\n <div\n [class]=\"'wb-configs__color wb-configs__colorjs' + i\"\n [style.background]=\"form.value\"\n (click)=\"colors.show = !colors.show\"\n ></div>\n <div\n class=\"wb-configs__picker\"\n wbAutoHide\n [triggerElement]=\"'wb-configs__colorjs' + i\"\n (clickOutside)=\"colors.show = false\"\n [ngClass]=\"{ 'is-active': colors.show }\"\n >\n <div\n [(colorPicker)]=\"form.value\"\n [style.background]=\"form.value\"\n [cpPosition]=\"'top'\"\n [cpWidth]=\"'auto'\"\n [cpToggle]=\"true\"\n [cpDialogDisplay]=\"'inline'\"\n (colorPickerChange)=\"updateContent()\"\n ></div>\n </div>\n </div>\n <p *ngIf=\"!form.iconHelp && !checkHelp(i)\" class=\"help\" [innerHTML]=\"form.help | translate\"></p>\n <p *ngIf=\"!form.iconHelp && checkHelp(i)\" class=\"help\" [innerHTML]=\"getValueHelp(form.value, i) | translate\"></p>\n </div>\n</div>\n",
|
|
25529
25571
|
animations: [animateListFromLeft('200ms ease-in-out')]
|
|
25530
25572
|
},] }
|
|
25531
25573
|
];
|