@wizishop/wizi-block 3.3.52 → 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/en.json +1 -1
- 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 +185 -75
- 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/configs/apis/api.dto.js +2 -1
- 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/services/utils/api.service.js +4 -1
- package/esm2015/lib/services/utils/external-config.service.js +4 -1
- 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/product/zoom/product-zoom.component.js +4 -2
- package/esm2015/lib/structures/product/zoom-complete/product-zoom-complete.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-complete-background/product-zoom-complete-background.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-complete-slider/product-zoom-complete-slider.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-more/product-zoom-more.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-selected/product-zoom-selected.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-simple/product-zoom-simple.component.js +4 -1
- package/esm2015/lib/structures/product/zoom-triple-column/product-zoom-triple-column.component.js +4 -1
- package/esm2015/lib/structures/products-list/classic/products-list-classic.component.js +18 -10
- package/esm2015/lib/structures/products-list/selected/products-list-selected.component.js +18 -10
- package/esm2015/lib/structures/products-list/simple/products-list-simple.component.js +18 -10
- 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 +166 -70
- 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/configs/apis/api.dto.d.ts +1 -0
- package/lib/dtos/forms/forms.dto.d.ts +3 -1
- package/lib/services/utils/api.service.d.ts +1 -0
- package/lib/services/utils/external-config.service.d.ts +1 -0
- 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/structures/products-list/classic/products-list-classic.component.d.ts +1 -0
- package/lib/structures/products-list/selected/products-list-selected.component.d.ts +1 -0
- package/lib/structures/products-list/simple/products-list-simple.component.d.ts +1 -0
- package/lib/wizi-block.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizi-block.scss +7517 -7258
- 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);
|
|
@@ -7449,6 +7452,7 @@ class ApiDto {
|
|
|
7449
7452
|
this.form_detail_route = '';
|
|
7450
7453
|
this.comment_list_route = '';
|
|
7451
7454
|
this.currency_route = '';
|
|
7455
|
+
this.shop_info = '';
|
|
7452
7456
|
}
|
|
7453
7457
|
}
|
|
7454
7458
|
|
|
@@ -7725,6 +7729,9 @@ class ApiService {
|
|
|
7725
7729
|
getShopCurrency() {
|
|
7726
7730
|
return this._get(this.api.currency_route);
|
|
7727
7731
|
}
|
|
7732
|
+
getShopTemplateLang() {
|
|
7733
|
+
return this._get(this.api.shop_info);
|
|
7734
|
+
}
|
|
7728
7735
|
getAmplifyProductRoute(search, type, limit = 4) {
|
|
7729
7736
|
return this._get(this.api.amplify_product_route, {
|
|
7730
7737
|
q: search,
|
|
@@ -7860,6 +7867,9 @@ class ExternalConfigService {
|
|
|
7860
7867
|
getDevise() {
|
|
7861
7868
|
return this.apiService.getShopCurrency();
|
|
7862
7869
|
}
|
|
7870
|
+
getShopLang() {
|
|
7871
|
+
return this.apiService.getShopTemplateLang();
|
|
7872
|
+
}
|
|
7863
7873
|
getAlgoliaAppId() {
|
|
7864
7874
|
return this.externalConfig.algoliaAppId;
|
|
7865
7875
|
}
|
|
@@ -7890,6 +7900,8 @@ class BlocksComponent {
|
|
|
7890
7900
|
this.contents = [];
|
|
7891
7901
|
this.dynamicHidden = [];
|
|
7892
7902
|
this.hideConfig = false;
|
|
7903
|
+
this.blockHover = false;
|
|
7904
|
+
this.configActive = false;
|
|
7893
7905
|
this.parsedContent = [];
|
|
7894
7906
|
}
|
|
7895
7907
|
ngOnInit() {
|
|
@@ -7908,6 +7920,10 @@ class BlocksComponent {
|
|
|
7908
7920
|
this.preview = false;
|
|
7909
7921
|
}
|
|
7910
7922
|
}
|
|
7923
|
+
switchHover(event) {
|
|
7924
|
+
console.log(event);
|
|
7925
|
+
this.configActive = event;
|
|
7926
|
+
}
|
|
7911
7927
|
addThis(index, type) {
|
|
7912
7928
|
this.wiziBlockService.getBlocksService().forEach((v) => {
|
|
7913
7929
|
if (v.type() === type) {
|
|
@@ -7980,7 +7996,7 @@ class BlocksComponent {
|
|
|
7980
7996
|
BlocksComponent.decorators = [
|
|
7981
7997
|
{ type: Component, args: [{
|
|
7982
7998
|
selector: 'wb-blocks',
|
|
7983
|
-
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",
|
|
7984
8000
|
animations: [animateListFromLeft('100ms ease-in-out')]
|
|
7985
8001
|
},] }
|
|
7986
8002
|
];
|
|
@@ -7993,7 +8009,8 @@ BlocksComponent.ctorParameters = () => [
|
|
|
7993
8009
|
];
|
|
7994
8010
|
BlocksComponent.propDecorators = {
|
|
7995
8011
|
contents: [{ type: Input }],
|
|
7996
|
-
dynamicHidden: [{ type: Input }]
|
|
8012
|
+
dynamicHidden: [{ type: Input }],
|
|
8013
|
+
selectedConfig: [{ type: Input }]
|
|
7997
8014
|
};
|
|
7998
8015
|
|
|
7999
8016
|
class WiziBlockComponent {
|
|
@@ -8083,6 +8100,10 @@ class WiziBlockComponent {
|
|
|
8083
8100
|
}
|
|
8084
8101
|
this.loopIndex += 1;
|
|
8085
8102
|
}
|
|
8103
|
+
this.hoverChildren = this.selectedConfig.block.uuid;
|
|
8104
|
+
}
|
|
8105
|
+
else {
|
|
8106
|
+
this.hoverChildren = false;
|
|
8086
8107
|
}
|
|
8087
8108
|
if (this.toolHidden) {
|
|
8088
8109
|
this.setHidden();
|
|
@@ -8223,7 +8244,7 @@ class WiziBlockComponent {
|
|
|
8223
8244
|
WiziBlockComponent.decorators = [
|
|
8224
8245
|
{ type: Component, args: [{
|
|
8225
8246
|
selector: 'wb-wizi-block',
|
|
8226
|
-
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",
|
|
8227
8248
|
animations: [animateListFromRight('200ms ease-in-out', '100ms'), animateListFromLeft('100ms ease-in-out')]
|
|
8228
8249
|
},] }
|
|
8229
8250
|
];
|
|
@@ -8287,6 +8308,8 @@ class StructureConfigComponent {
|
|
|
8287
8308
|
this.blockUUID = null;
|
|
8288
8309
|
this.position = TYPE_CONFIG_POSITION_LEFT_TOP;
|
|
8289
8310
|
this.isFullwidth = false;
|
|
8311
|
+
this.small = false;
|
|
8312
|
+
this.extraSmall = false;
|
|
8290
8313
|
this.thisComponentActive = false;
|
|
8291
8314
|
this.hideThis = false;
|
|
8292
8315
|
this.TYPE_CONFIG_POSITION_RIGHT_TOP = TYPE_CONFIG_POSITION_RIGHT_TOP;
|
|
@@ -8296,7 +8319,7 @@ class StructureConfigComponent {
|
|
|
8296
8319
|
this.TYPE_CONFIG_POSITION_LEFT_CENTER = TYPE_CONFIG_POSITION_LEFT_CENTER;
|
|
8297
8320
|
}
|
|
8298
8321
|
ngOnInit() {
|
|
8299
|
-
this.structureConfigService.structureConfigEvent().subscribe(uuid => {
|
|
8322
|
+
this.structureConfigService.structureConfigEvent().subscribe((uuid) => {
|
|
8300
8323
|
if (uuid === null || this.blockUUID === uuid) {
|
|
8301
8324
|
if (this.structureConfigService.structureConfig !== '' && !this.thisComponentActive) {
|
|
8302
8325
|
this.isActive = false;
|
|
@@ -8331,7 +8354,7 @@ class StructureConfigComponent {
|
|
|
8331
8354
|
StructureConfigComponent.decorators = [
|
|
8332
8355
|
{ type: Component, args: [{
|
|
8333
8356
|
selector: 'wb-structure-config',
|
|
8334
|
-
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"
|
|
8335
8358
|
},] }
|
|
8336
8359
|
];
|
|
8337
8360
|
StructureConfigComponent.ctorParameters = () => [
|
|
@@ -8341,7 +8364,9 @@ StructureConfigComponent.propDecorators = {
|
|
|
8341
8364
|
isActive: [{ type: Input }],
|
|
8342
8365
|
blockUUID: [{ type: Input }],
|
|
8343
8366
|
position: [{ type: Input }],
|
|
8344
|
-
isFullwidth: [{ type: Input }]
|
|
8367
|
+
isFullwidth: [{ type: Input }],
|
|
8368
|
+
small: [{ type: Input }],
|
|
8369
|
+
extraSmall: [{ type: Input }]
|
|
8345
8370
|
};
|
|
8346
8371
|
|
|
8347
8372
|
class ExpectedImagesService {
|
|
@@ -8735,11 +8760,16 @@ class StructureToolsComponent {
|
|
|
8735
8760
|
this.contentService = contentService;
|
|
8736
8761
|
this.configService = configService;
|
|
8737
8762
|
this.dynamicHiddenStructure = false;
|
|
8763
|
+
this.isHover = false;
|
|
8738
8764
|
this.hideConfig = false;
|
|
8739
8765
|
this.blockIsHidden = false;
|
|
8766
|
+
this.configIsActivated = new EventEmitter();
|
|
8740
8767
|
this.contentEventSubscription = null;
|
|
8741
8768
|
}
|
|
8742
8769
|
ngOnInit() {
|
|
8770
|
+
console.log('----- IS ALWAYS ------');
|
|
8771
|
+
console.log(this.isAlwaysHover);
|
|
8772
|
+
console.log('----- / IS ALWAYS ------');
|
|
8743
8773
|
this.checkOnContents();
|
|
8744
8774
|
this.contentEventSubscription = this.contentService.contentEvent().subscribe(() => {
|
|
8745
8775
|
this.checkOnContents();
|
|
@@ -8775,6 +8805,8 @@ class StructureToolsComponent {
|
|
|
8775
8805
|
}
|
|
8776
8806
|
configThis(e) {
|
|
8777
8807
|
e.preventDefault();
|
|
8808
|
+
this.configIsActivated.emit(true);
|
|
8809
|
+
this.isAlwaysHover = true;
|
|
8778
8810
|
this.configService.config = this.contentService.getContentByUUID(this.uuid);
|
|
8779
8811
|
}
|
|
8780
8812
|
removeThis($event) {
|
|
@@ -8806,7 +8838,7 @@ class StructureToolsComponent {
|
|
|
8806
8838
|
StructureToolsComponent.decorators = [
|
|
8807
8839
|
{ type: Component, args: [{
|
|
8808
8840
|
selector: 'wb-structure-tools',
|
|
8809
|
-
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"
|
|
8810
8842
|
},] }
|
|
8811
8843
|
];
|
|
8812
8844
|
StructureToolsComponent.ctorParameters = () => [
|
|
@@ -8817,7 +8849,10 @@ StructureToolsComponent.ctorParameters = () => [
|
|
|
8817
8849
|
StructureToolsComponent.propDecorators = {
|
|
8818
8850
|
uuid: [{ type: Input }],
|
|
8819
8851
|
dynamicHiddenStructure: [{ type: Input }],
|
|
8820
|
-
|
|
8852
|
+
isHover: [{ type: Input }],
|
|
8853
|
+
isAlwaysHover: [{ type: Input }],
|
|
8854
|
+
deleteButton: [{ type: ViewChild, args: ['deleteButton',] }],
|
|
8855
|
+
configIsActivated: [{ type: Output }]
|
|
8821
8856
|
};
|
|
8822
8857
|
|
|
8823
8858
|
class SafeUrlPipe {
|
|
@@ -19719,7 +19754,7 @@ class ImagesDoubleComponent extends StructuresComponent {
|
|
|
19719
19754
|
ImagesDoubleComponent.decorators = [
|
|
19720
19755
|
{ type: Component, args: [{
|
|
19721
19756
|
selector: ImagesDoubleService.selector(),
|
|
19722
|
-
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"
|
|
19723
19758
|
},] }
|
|
19724
19759
|
];
|
|
19725
19760
|
ImagesDoubleComponent.ctorParameters = () => [];
|
|
@@ -19993,7 +20028,7 @@ class FourImagesTitleComponent extends StructuresComponent {
|
|
|
19993
20028
|
FourImagesTitleComponent.decorators = [
|
|
19994
20029
|
{ type: Component, args: [{
|
|
19995
20030
|
selector: FourImagesTitleService.selector(),
|
|
19996
|
-
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"
|
|
19997
20032
|
},] }
|
|
19998
20033
|
];
|
|
19999
20034
|
FourImagesTitleComponent.ctorParameters = () => [
|
|
@@ -20039,7 +20074,7 @@ class TwoImagesTitleTextComponent extends StructuresComponent {
|
|
|
20039
20074
|
TwoImagesTitleTextComponent.decorators = [
|
|
20040
20075
|
{ type: Component, args: [{
|
|
20041
20076
|
selector: TwoImagesTitleTextService.selector(),
|
|
20042
|
-
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"
|
|
20043
20078
|
},] }
|
|
20044
20079
|
];
|
|
20045
20080
|
TwoImagesTitleTextComponent.ctorParameters = () => [];
|
|
@@ -20977,18 +21012,26 @@ class ProductsListClassicComponent extends StructuresComponent {
|
|
|
20977
21012
|
this.country = this.currencyService.country;
|
|
20978
21013
|
this.iso = this.currencyService.iso;
|
|
20979
21014
|
}
|
|
20980
|
-
|
|
20981
|
-
|
|
20982
|
-
|
|
20983
|
-
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
21015
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
21016
|
+
this.country = data.locale.replace('_', '-');
|
|
21017
|
+
this.initialize();
|
|
21018
|
+
}, () => {
|
|
21019
|
+
this.initialize();
|
|
21020
|
+
});
|
|
21021
|
+
});
|
|
21022
|
+
}
|
|
21023
|
+
initialize() {
|
|
21024
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT] || this.contentBlock[FORM_NAME_LIST_PRODUCT]) {
|
|
21025
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
21026
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
20987
21027
|
}
|
|
20988
21028
|
else {
|
|
20989
|
-
this.getSelection(
|
|
21029
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
20990
21030
|
}
|
|
20991
|
-
}
|
|
21031
|
+
}
|
|
21032
|
+
else {
|
|
21033
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
21034
|
+
}
|
|
20992
21035
|
}
|
|
20993
21036
|
selectThisForm() {
|
|
20994
21037
|
this.getSelection(this.selectedValue.value);
|
|
@@ -21149,18 +21192,26 @@ class ProductsListSelectedComponent extends StructuresComponent {
|
|
|
21149
21192
|
this.country = this.currencyService.country;
|
|
21150
21193
|
this.iso = this.currencyService.iso;
|
|
21151
21194
|
}
|
|
21152
|
-
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
21156
|
-
|
|
21157
|
-
|
|
21158
|
-
|
|
21195
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
21196
|
+
this.country = data.locale.replace('_', '-');
|
|
21197
|
+
this.initialize();
|
|
21198
|
+
}, () => {
|
|
21199
|
+
this.initialize();
|
|
21200
|
+
});
|
|
21201
|
+
});
|
|
21202
|
+
}
|
|
21203
|
+
initialize() {
|
|
21204
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT]) {
|
|
21205
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
21206
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
21159
21207
|
}
|
|
21160
21208
|
else {
|
|
21161
|
-
this.getSelection(
|
|
21209
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
21162
21210
|
}
|
|
21163
|
-
}
|
|
21211
|
+
}
|
|
21212
|
+
else {
|
|
21213
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
21214
|
+
}
|
|
21164
21215
|
}
|
|
21165
21216
|
selectThisForm() {
|
|
21166
21217
|
this.getSelection(this.selectedValue.value);
|
|
@@ -21319,18 +21370,26 @@ class ProductsListSimpleComponent extends StructuresComponent {
|
|
|
21319
21370
|
this.country = this.currencyService.country;
|
|
21320
21371
|
this.iso = this.currencyService.iso;
|
|
21321
21372
|
}
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21373
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
21374
|
+
this.country = data.locale.replace('_', '-');
|
|
21375
|
+
this.initialize();
|
|
21376
|
+
}, () => {
|
|
21377
|
+
this.initialize();
|
|
21378
|
+
});
|
|
21379
|
+
});
|
|
21380
|
+
}
|
|
21381
|
+
initialize() {
|
|
21382
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT]) {
|
|
21383
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
21384
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
21329
21385
|
}
|
|
21330
21386
|
else {
|
|
21331
|
-
this.getSelection(
|
|
21387
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
21332
21388
|
}
|
|
21333
|
-
}
|
|
21389
|
+
}
|
|
21390
|
+
else {
|
|
21391
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
21392
|
+
}
|
|
21334
21393
|
}
|
|
21335
21394
|
selectThisForm() {
|
|
21336
21395
|
console.log(this.selectedValue.value);
|
|
@@ -23073,7 +23132,6 @@ class ProductZoomComponent extends StructuresComponent {
|
|
|
23073
23132
|
const isCurrencyReady = yield this.currencyService.initializeCurrency();
|
|
23074
23133
|
if (isCurrencyReady) {
|
|
23075
23134
|
this.devise = this.currencyService.symbol;
|
|
23076
|
-
this.country = this.currencyService.country;
|
|
23077
23135
|
this.iso = this.currencyService.iso;
|
|
23078
23136
|
}
|
|
23079
23137
|
else {
|
|
@@ -23086,6 +23144,9 @@ class ProductZoomComponent extends StructuresComponent {
|
|
|
23086
23144
|
this.country = this.currencyService.country;
|
|
23087
23145
|
this.iso = this.currencyService.iso;
|
|
23088
23146
|
}
|
|
23147
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23148
|
+
this.country = data.locale.replace('_', '-');
|
|
23149
|
+
});
|
|
23089
23150
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23090
23151
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23091
23152
|
}
|
|
@@ -23170,6 +23231,9 @@ class ProductZoomSelectedComponent extends StructuresComponent {
|
|
|
23170
23231
|
this.country = this.currencyService.country;
|
|
23171
23232
|
this.iso = this.currencyService.iso;
|
|
23172
23233
|
}
|
|
23234
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23235
|
+
this.country = data.locale.replace('_', '-');
|
|
23236
|
+
});
|
|
23173
23237
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23174
23238
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23175
23239
|
}
|
|
@@ -23257,6 +23321,9 @@ class ProductZoomMoreComponent extends StructuresComponent {
|
|
|
23257
23321
|
this.country = this.currencyService.country;
|
|
23258
23322
|
this.iso = this.currencyService.iso;
|
|
23259
23323
|
}
|
|
23324
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23325
|
+
this.country = data.locale.replace('_', '-');
|
|
23326
|
+
});
|
|
23260
23327
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23261
23328
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23262
23329
|
}
|
|
@@ -23348,6 +23415,9 @@ class ProductZoomCompleteComponent extends StructuresComponent {
|
|
|
23348
23415
|
this.country = this.currencyService.country;
|
|
23349
23416
|
this.iso = this.currencyService.iso;
|
|
23350
23417
|
}
|
|
23418
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23419
|
+
this.country = data.locale.replace('_', '-');
|
|
23420
|
+
});
|
|
23351
23421
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23352
23422
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23353
23423
|
}
|
|
@@ -23440,6 +23510,9 @@ class ProductZoomCompleteSliderComponent extends StructuresComponent {
|
|
|
23440
23510
|
this.country = this.currencyService.country;
|
|
23441
23511
|
this.iso = this.currencyService.iso;
|
|
23442
23512
|
}
|
|
23513
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23514
|
+
this.country = data.locale.replace('_', '-');
|
|
23515
|
+
});
|
|
23443
23516
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23444
23517
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23445
23518
|
}
|
|
@@ -23534,6 +23607,9 @@ class ProductZoomSimpleComponent extends StructuresComponent {
|
|
|
23534
23607
|
this.country = this.currencyService.country;
|
|
23535
23608
|
this.iso = this.currencyService.iso;
|
|
23536
23609
|
}
|
|
23610
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23611
|
+
this.country = data.locale.replace('_', '-');
|
|
23612
|
+
});
|
|
23537
23613
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23538
23614
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23539
23615
|
}
|
|
@@ -23626,6 +23702,9 @@ class ProductZoomCompleteBackgroundComponent extends StructuresComponent {
|
|
|
23626
23702
|
this.country = this.currencyService.country;
|
|
23627
23703
|
this.iso = this.currencyService.iso;
|
|
23628
23704
|
}
|
|
23705
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
23706
|
+
this.country = data.locale.replace('_', '-');
|
|
23707
|
+
});
|
|
23629
23708
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
23630
23709
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
23631
23710
|
}
|
|
@@ -24342,6 +24421,9 @@ class ProductZoomTripleColumnComponent extends StructuresComponent {
|
|
|
24342
24421
|
this.country = this.currencyService.country;
|
|
24343
24422
|
this.iso = this.currencyService.iso;
|
|
24344
24423
|
}
|
|
24424
|
+
this.apiService.getShopTemplateLang().subscribe((data) => {
|
|
24425
|
+
this.country = data.locale.replace('_', '-');
|
|
24426
|
+
});
|
|
24345
24427
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
24346
24428
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
24347
24429
|
}
|
|
@@ -24789,7 +24871,7 @@ class TextBackgroundsLinkComponent extends StructuresComponent {
|
|
|
24789
24871
|
TextBackgroundsLinkComponent.decorators = [
|
|
24790
24872
|
{ type: Component, args: [{
|
|
24791
24873
|
selector: TextBackgroundsLinkService.selector(),
|
|
24792
|
-
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"
|
|
24793
24875
|
},] }
|
|
24794
24876
|
];
|
|
24795
24877
|
TextBackgroundsLinkComponent.ctorParameters = () => [];
|
|
@@ -25439,6 +25521,20 @@ class ConfigsComponent {
|
|
|
25439
25521
|
}
|
|
25440
25522
|
this.updateContent();
|
|
25441
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
|
+
}
|
|
25442
25538
|
updateContent() {
|
|
25443
25539
|
this.contentService.updateByUUID(this.configs.block.uuid, this.configs);
|
|
25444
25540
|
this.changeConfig.emit({
|
|
@@ -25471,7 +25567,7 @@ class ConfigsComponent {
|
|
|
25471
25567
|
ConfigsComponent.decorators = [
|
|
25472
25568
|
{ type: Component, args: [{
|
|
25473
25569
|
selector: 'wb-configs',
|
|
25474
|
-
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",
|
|
25475
25571
|
animations: [animateListFromLeft('200ms ease-in-out')]
|
|
25476
25572
|
},] }
|
|
25477
25573
|
];
|