@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
|
@@ -683,12 +683,15 @@
|
|
|
683
683
|
var FORM_NAME_ROWS = 'rows';
|
|
684
684
|
var FORM_NAME_COLUMNS = 'columns';
|
|
685
685
|
var FormsContentDto = /** @class */ (function () {
|
|
686
|
-
function FormsContentDto(id, label, type, value, placeholder, help, step, stepKey, state, iconHelp) {
|
|
686
|
+
function FormsContentDto(id, label, type, value, placeholder, help, step, stepKey, state, iconHelp, labelEnable, reverseShow) {
|
|
687
687
|
if (help === void 0) { help = ''; }
|
|
688
688
|
if (step === void 0) { step = []; }
|
|
689
689
|
if (stepKey === void 0) { stepKey = []; }
|
|
690
690
|
if (state === void 0) { state = []; }
|
|
691
691
|
if (iconHelp === void 0) { iconHelp = false; }
|
|
692
|
+
if (labelEnable === void 0) { labelEnable = ''; }
|
|
693
|
+
if (reverseShow === void 0) { reverseShow = false; }
|
|
694
|
+
this.reverseShow = false;
|
|
692
695
|
this.id = id;
|
|
693
696
|
this.label = label;
|
|
694
697
|
this.type = type;
|
|
@@ -699,6 +702,8 @@
|
|
|
699
702
|
this.stepKey = stepKey;
|
|
700
703
|
this.state = state;
|
|
701
704
|
this.iconHelp = iconHelp;
|
|
705
|
+
this.labelEnable = labelEnable;
|
|
706
|
+
this.reverseShow = reverseShow;
|
|
702
707
|
}
|
|
703
708
|
return FormsContentDto;
|
|
704
709
|
}());
|
|
@@ -710,7 +715,7 @@
|
|
|
710
715
|
this.block = block;
|
|
711
716
|
translateBlockService.translateProperties(this.block);
|
|
712
717
|
if (hasMargin) {
|
|
713
|
-
this.forms.push(new FormsContentDto(FORM_NAME_HIDE_BLOCK, 'wb.forms.FormsContentDto.
|
|
718
|
+
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'));
|
|
714
719
|
}
|
|
715
720
|
this.forms.push(new FormsContentDto(FORM_NAME_MARGIN_TOP, 'wb.forms.FormsContentDto.13', FORM_TYPE_TAG, block[FORM_NAME_MARGIN_TOP], '#122231', '', [
|
|
716
721
|
'wb.blocks.FormContentDto.101',
|
|
@@ -798,7 +803,7 @@
|
|
|
798
803
|
var sliderFullPageFormDto = new FormsDto(content);
|
|
799
804
|
var timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
800
805
|
sliderFullPageFormDto.forms.push(timeSliderFullPageContentDto);
|
|
801
|
-
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
806
|
+
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
802
807
|
sliderFullPageFormDto.forms.push(dotsSliderFullPageContentDto);
|
|
803
808
|
var 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']);
|
|
804
809
|
sliderFullPageFormDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -919,7 +924,7 @@
|
|
|
919
924
|
var slidersImagerightFormDto = new FormsDto(content);
|
|
920
925
|
var timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
921
926
|
slidersImagerightFormDto.forms.push(timeSliderFullPageContentDto);
|
|
922
|
-
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
927
|
+
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
923
928
|
slidersImagerightFormDto.forms.push(dotsSliderFullPageContentDto);
|
|
924
929
|
var 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']);
|
|
925
930
|
slidersImagerightFormDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -979,7 +984,7 @@
|
|
|
979
984
|
var slidersDoubleImagerightDto = new FormsDto(content);
|
|
980
985
|
var timeSliderFullPageContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
981
986
|
slidersDoubleImagerightDto.forms.push(timeSliderFullPageContentDto);
|
|
982
|
-
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
987
|
+
var dotsSliderFullPageContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
983
988
|
slidersDoubleImagerightDto.forms.push(dotsSliderFullPageContentDto);
|
|
984
989
|
var 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']);
|
|
985
990
|
slidersDoubleImagerightDto.forms.push(maskSliderFullPageContentDto);
|
|
@@ -3913,7 +3918,7 @@
|
|
|
3913
3918
|
'wb.blocks.FormContentDto.117',
|
|
3914
3919
|
], ['0', '0.25', '0.5', '1']);
|
|
3915
3920
|
imgSimpleFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
3916
|
-
var parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
3921
|
+
var 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');
|
|
3917
3922
|
imgSimpleFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
3918
3923
|
return imgSimpleFormDto;
|
|
3919
3924
|
};
|
|
@@ -5074,7 +5079,7 @@
|
|
|
5074
5079
|
'wb.blocks.FormContentDto.117',
|
|
5075
5080
|
], ['0', '0.25', '0.5', '1']);
|
|
5076
5081
|
TextBackgroundsSimpleFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
5077
|
-
var parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
5082
|
+
var 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');
|
|
5078
5083
|
TextBackgroundsSimpleFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
5079
5084
|
return TextBackgroundsSimpleFormDto;
|
|
5080
5085
|
};
|
|
@@ -5158,7 +5163,7 @@
|
|
|
5158
5163
|
'wb.blocks.FormContentDto.117',
|
|
5159
5164
|
], ['0', '0.25', '0.5', '1']);
|
|
5160
5165
|
formsDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
5161
|
-
var parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
5166
|
+
var 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');
|
|
5162
5167
|
formsDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
5163
5168
|
return formsDto;
|
|
5164
5169
|
};
|
|
@@ -5242,7 +5247,7 @@
|
|
|
5242
5247
|
'wb.blocks.FormContentDto.117',
|
|
5243
5248
|
], ['0', '0.25', '0.5', '1']);
|
|
5244
5249
|
formsDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
5245
|
-
var parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
5250
|
+
var 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');
|
|
5246
5251
|
formsDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
5247
5252
|
var colorContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.112', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
5248
5253
|
formsDto.forms.push(colorContentDto);
|
|
@@ -5327,7 +5332,7 @@
|
|
|
5327
5332
|
var launchVideosFormDto = new FormsDto(content);
|
|
5328
5333
|
var linkLaunchVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5329
5334
|
launchVideosFormDto.forms.push(linkLaunchVideosContentDto);
|
|
5330
|
-
var muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5335
|
+
var muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5331
5336
|
launchVideosFormDto.forms.push(muteLaunchVideosContentDto);
|
|
5332
5337
|
var colorLaunchVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.20', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#ffffff', '');
|
|
5333
5338
|
launchVideosFormDto.forms.push(colorLaunchVideosContentDto);
|
|
@@ -5391,7 +5396,7 @@
|
|
|
5391
5396
|
var launchVideosFormDto = new FormsDto(content);
|
|
5392
5397
|
var linkLaunchVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5393
5398
|
launchVideosFormDto.forms.push(linkLaunchVideosContentDto);
|
|
5394
|
-
var muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5399
|
+
var muteLaunchVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5395
5400
|
launchVideosFormDto.forms.push(muteLaunchVideosContentDto);
|
|
5396
5401
|
var colorLaunchVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.21', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#ffffff', '');
|
|
5397
5402
|
launchVideosFormDto.forms.push(colorLaunchVideosContentDto);
|
|
@@ -5442,13 +5447,13 @@
|
|
|
5442
5447
|
var videosFormDto = new FormsDto(content);
|
|
5443
5448
|
var linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5444
5449
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
5445
|
-
var controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
5450
|
+
var 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');
|
|
5446
5451
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
5447
|
-
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
5452
|
+
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
5448
5453
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
5449
|
-
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5454
|
+
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5450
5455
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
5451
|
-
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
5456
|
+
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
5452
5457
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
5453
5458
|
return videosFormDto;
|
|
5454
5459
|
};
|
|
@@ -5507,13 +5512,13 @@
|
|
|
5507
5512
|
var videosFormDto = new FormsDto(content);
|
|
5508
5513
|
var linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5509
5514
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
5510
|
-
var controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
5515
|
+
var 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');
|
|
5511
5516
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
5512
|
-
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
5517
|
+
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
5513
5518
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
5514
|
-
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5519
|
+
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5515
5520
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
5516
|
-
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
5521
|
+
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
5517
5522
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
5518
5523
|
return videosFormDto;
|
|
5519
5524
|
};
|
|
@@ -5572,13 +5577,13 @@
|
|
|
5572
5577
|
var videosFormDto = new FormsDto(content);
|
|
5573
5578
|
var linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5574
5579
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
5575
|
-
var controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
5580
|
+
var 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');
|
|
5576
5581
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
5577
|
-
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
5582
|
+
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
5578
5583
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
5579
|
-
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5584
|
+
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5580
5585
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
5581
|
-
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
5586
|
+
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
5582
5587
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
5583
5588
|
var colorVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.11', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
5584
5589
|
videosFormDto.forms.push(colorVideosContentDto);
|
|
@@ -5625,13 +5630,13 @@
|
|
|
5625
5630
|
var videosFormDto = new FormsDto(content);
|
|
5626
5631
|
var linkVideosContentDto = new FormsContentDto(FORM_NAME_LINK, 'wb.blocks.FormContentDto.18', FORM_TYPE_TEXT, content[FORM_NAME_LINK], '', '');
|
|
5627
5632
|
videosFormDto.forms.push(linkVideosContentDto);
|
|
5628
|
-
var controlVideosContentDto = new FormsContentDto(FORM_NAME_CONTROL, 'wb.
|
|
5633
|
+
var 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');
|
|
5629
5634
|
videosFormDto.forms.push(controlVideosContentDto);
|
|
5630
|
-
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.
|
|
5635
|
+
var autoplayVideosContentDto = new FormsContentDto(FORM_NAME_AUTOPLAY, 'wb.forms.FormsContentDto.19', FORM_TYPE_CHECKBOX, content[FORM_NAME_AUTOPLAY], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.20');
|
|
5631
5636
|
videosFormDto.forms.push(autoplayVideosContentDto);
|
|
5632
|
-
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.
|
|
5637
|
+
var muteVideosContentDto = new FormsContentDto(FORM_NAME_MUTE, 'wb.forms.FormsContentDto.21', FORM_TYPE_CHECKBOX, content[FORM_NAME_MUTE], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.22');
|
|
5633
5638
|
videosFormDto.forms.push(muteVideosContentDto);
|
|
5634
|
-
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.
|
|
5639
|
+
var loopVideosContentDto = new FormsContentDto(FORM_NAME_LOOP, 'wb.forms.FormsContentDto.23', FORM_TYPE_CHECKBOX, content[FORM_NAME_LOOP], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.24');
|
|
5635
5640
|
videosFormDto.forms.push(loopVideosContentDto);
|
|
5636
5641
|
var colorVideosContentDto = new FormsContentDto(FORM_NAME_COLOR, 'wb.blocks.FormContentDto.11', FORM_TYPE_COLOR, content[FORM_NAME_COLOR], '#122231', '');
|
|
5637
5642
|
videosFormDto.forms.push(colorVideosContentDto);
|
|
@@ -6913,7 +6918,7 @@
|
|
|
6913
6918
|
'wb.blocks.FormContentDto.117',
|
|
6914
6919
|
], ['0', '0.25', '0.5', '1']);
|
|
6915
6920
|
imgBannerFormDto.forms.push(parallaxSpeedImgSimpleContentDto);
|
|
6916
|
-
var parallaxInvertedImgSimpleContentDto = new FormsContentDto(FORM_NAME_PARALLAX_INVERTED, 'wb.
|
|
6921
|
+
var 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');
|
|
6917
6922
|
imgBannerFormDto.forms.push(parallaxInvertedImgSimpleContentDto);
|
|
6918
6923
|
return imgBannerFormDto;
|
|
6919
6924
|
};
|
|
@@ -7684,7 +7689,7 @@
|
|
|
7684
7689
|
var sliderWithBannerFormDto = new FormsDto(content);
|
|
7685
7690
|
var timeSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_TIME, 'wb.blocks.FormContentDto.60', FORM_TYPE_TEXT, content[FORM_NAME_TIME], '100ms', '');
|
|
7686
7691
|
sliderWithBannerFormDto.forms.push(timeSliderWithBannerContentDto);
|
|
7687
|
-
var dotsSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.
|
|
7692
|
+
var dotsSliderWithBannerContentDto = new FormsContentDto(FORM_NAME_DOTS, 'wb.forms.FormsContentDto.25', FORM_TYPE_CHECKBOX, content[FORM_NAME_DOTS], '', '', [], [], [true, false], false, 'wb.forms.FormsContentDto.26');
|
|
7688
7693
|
sliderWithBannerFormDto.forms.push(dotsSliderWithBannerContentDto);
|
|
7689
7694
|
var 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']);
|
|
7690
7695
|
sliderWithBannerFormDto.forms.push(maskSliderWithBannerContentDto);
|
|
@@ -8989,6 +8994,7 @@
|
|
|
8989
8994
|
this.form_detail_route = '';
|
|
8990
8995
|
this.comment_list_route = '';
|
|
8991
8996
|
this.currency_route = '';
|
|
8997
|
+
this.shop_info = '';
|
|
8992
8998
|
}
|
|
8993
8999
|
return ApiDto;
|
|
8994
9000
|
}());
|
|
@@ -9300,6 +9306,9 @@
|
|
|
9300
9306
|
ApiService.prototype.getShopCurrency = function () {
|
|
9301
9307
|
return this._get(this.api.currency_route);
|
|
9302
9308
|
};
|
|
9309
|
+
ApiService.prototype.getShopTemplateLang = function () {
|
|
9310
|
+
return this._get(this.api.shop_info);
|
|
9311
|
+
};
|
|
9303
9312
|
ApiService.prototype.getAmplifyProductRoute = function (search, type, limit) {
|
|
9304
9313
|
if (limit === void 0) { limit = 4; }
|
|
9305
9314
|
return this._get(this.api.amplify_product_route, {
|
|
@@ -9455,6 +9464,9 @@
|
|
|
9455
9464
|
ExternalConfigService.prototype.getDevise = function () {
|
|
9456
9465
|
return this.apiService.getShopCurrency();
|
|
9457
9466
|
};
|
|
9467
|
+
ExternalConfigService.prototype.getShopLang = function () {
|
|
9468
|
+
return this.apiService.getShopTemplateLang();
|
|
9469
|
+
};
|
|
9458
9470
|
ExternalConfigService.prototype.getAlgoliaAppId = function () {
|
|
9459
9471
|
return this.externalConfig.algoliaAppId;
|
|
9460
9472
|
};
|
|
@@ -9580,6 +9592,10 @@
|
|
|
9580
9592
|
}
|
|
9581
9593
|
finally { if (e_2) throw e_2.error; }
|
|
9582
9594
|
}
|
|
9595
|
+
_this.hoverChildren = _this.selectedConfig.block.uuid;
|
|
9596
|
+
}
|
|
9597
|
+
else {
|
|
9598
|
+
_this.hoverChildren = false;
|
|
9583
9599
|
}
|
|
9584
9600
|
if (_this.toolHidden) {
|
|
9585
9601
|
_this.setHidden();
|
|
@@ -9745,7 +9761,7 @@
|
|
|
9745
9761
|
WiziBlockComponent.decorators = [
|
|
9746
9762
|
{ type: i0.Component, args: [{
|
|
9747
9763
|
selector: 'wb-wizi-block',
|
|
9748
|
-
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=\"
|
|
9764
|
+
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",
|
|
9749
9765
|
animations: [animateListFromRight('200ms ease-in-out', '100ms'), animateListFromLeft('100ms ease-in-out')]
|
|
9750
9766
|
},] }
|
|
9751
9767
|
];
|
|
@@ -9814,6 +9830,8 @@
|
|
|
9814
9830
|
this.blockUUID = null;
|
|
9815
9831
|
this.position = TYPE_CONFIG_POSITION_LEFT_TOP;
|
|
9816
9832
|
this.isFullwidth = false;
|
|
9833
|
+
this.small = false;
|
|
9834
|
+
this.extraSmall = false;
|
|
9817
9835
|
this.thisComponentActive = false;
|
|
9818
9836
|
this.hideThis = false;
|
|
9819
9837
|
this.TYPE_CONFIG_POSITION_RIGHT_TOP = TYPE_CONFIG_POSITION_RIGHT_TOP;
|
|
@@ -9860,7 +9878,7 @@
|
|
|
9860
9878
|
StructureConfigComponent.decorators = [
|
|
9861
9879
|
{ type: i0.Component, args: [{
|
|
9862
9880
|
selector: 'wb-structure-config',
|
|
9863
|
-
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=\"
|
|
9881
|
+
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"
|
|
9864
9882
|
},] }
|
|
9865
9883
|
];
|
|
9866
9884
|
StructureConfigComponent.ctorParameters = function () { return [
|
|
@@ -9870,7 +9888,9 @@
|
|
|
9870
9888
|
isActive: [{ type: i0.Input }],
|
|
9871
9889
|
blockUUID: [{ type: i0.Input }],
|
|
9872
9890
|
position: [{ type: i0.Input }],
|
|
9873
|
-
isFullwidth: [{ type: i0.Input }]
|
|
9891
|
+
isFullwidth: [{ type: i0.Input }],
|
|
9892
|
+
small: [{ type: i0.Input }],
|
|
9893
|
+
extraSmall: [{ type: i0.Input }]
|
|
9874
9894
|
};
|
|
9875
9895
|
|
|
9876
9896
|
var ExpectedImagesService = /** @class */ (function () {
|
|
@@ -10279,13 +10299,18 @@
|
|
|
10279
10299
|
this.contentService = contentService;
|
|
10280
10300
|
this.configService = configService;
|
|
10281
10301
|
this.dynamicHiddenStructure = false;
|
|
10302
|
+
this.isHover = false;
|
|
10282
10303
|
this.hideConfig = false;
|
|
10283
10304
|
this.blockIsHidden = false;
|
|
10305
|
+
this.configIsActivated = new i0.EventEmitter();
|
|
10284
10306
|
this.contentEventSubscription = null;
|
|
10285
10307
|
}
|
|
10286
10308
|
StructureToolsComponent.prototype.ngOnInit = function () {
|
|
10287
10309
|
var e_1, _a;
|
|
10288
10310
|
var _this = this;
|
|
10311
|
+
console.log('----- IS ALWAYS ------');
|
|
10312
|
+
console.log(this.isAlwaysHover);
|
|
10313
|
+
console.log('----- / IS ALWAYS ------');
|
|
10289
10314
|
this.checkOnContents();
|
|
10290
10315
|
this.contentEventSubscription = this.contentService.contentEvent().subscribe(function () {
|
|
10291
10316
|
_this.checkOnContents();
|
|
@@ -10332,6 +10357,8 @@
|
|
|
10332
10357
|
};
|
|
10333
10358
|
StructureToolsComponent.prototype.configThis = function (e) {
|
|
10334
10359
|
e.preventDefault();
|
|
10360
|
+
this.configIsActivated.emit(true);
|
|
10361
|
+
this.isAlwaysHover = true;
|
|
10335
10362
|
this.configService.config = this.contentService.getContentByUUID(this.uuid);
|
|
10336
10363
|
};
|
|
10337
10364
|
StructureToolsComponent.prototype.removeThis = function ($event) {
|
|
@@ -10364,7 +10391,7 @@
|
|
|
10364
10391
|
StructureToolsComponent.decorators = [
|
|
10365
10392
|
{ type: i0.Component, args: [{
|
|
10366
10393
|
selector: 'wb-structure-tools',
|
|
10367
|
-
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-
|
|
10394
|
+
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"
|
|
10368
10395
|
},] }
|
|
10369
10396
|
];
|
|
10370
10397
|
StructureToolsComponent.ctorParameters = function () { return [
|
|
@@ -10375,7 +10402,10 @@
|
|
|
10375
10402
|
StructureToolsComponent.propDecorators = {
|
|
10376
10403
|
uuid: [{ type: i0.Input }],
|
|
10377
10404
|
dynamicHiddenStructure: [{ type: i0.Input }],
|
|
10378
|
-
|
|
10405
|
+
isHover: [{ type: i0.Input }],
|
|
10406
|
+
isAlwaysHover: [{ type: i0.Input }],
|
|
10407
|
+
deleteButton: [{ type: i0.ViewChild, args: ['deleteButton',] }],
|
|
10408
|
+
configIsActivated: [{ type: i0.Output }]
|
|
10379
10409
|
};
|
|
10380
10410
|
|
|
10381
10411
|
var SafeUrlPipe = /** @class */ (function () {
|
|
@@ -21497,7 +21527,7 @@
|
|
|
21497
21527
|
ImagesDoubleComponent.decorators = [
|
|
21498
21528
|
{ type: i0.Component, args: [{
|
|
21499
21529
|
selector: ImagesDoubleService.selector(),
|
|
21500
|
-
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"
|
|
21530
|
+
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"
|
|
21501
21531
|
},] }
|
|
21502
21532
|
];
|
|
21503
21533
|
ImagesDoubleComponent.ctorParameters = function () { return []; };
|
|
@@ -21796,7 +21826,7 @@
|
|
|
21796
21826
|
FourImagesTitleComponent.decorators = [
|
|
21797
21827
|
{ type: i0.Component, args: [{
|
|
21798
21828
|
selector: FourImagesTitleService.selector(),
|
|
21799
|
-
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"
|
|
21829
|
+
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"
|
|
21800
21830
|
},] }
|
|
21801
21831
|
];
|
|
21802
21832
|
FourImagesTitleComponent.ctorParameters = function () { return [
|
|
@@ -21846,7 +21876,7 @@
|
|
|
21846
21876
|
TwoImagesTitleTextComponent.decorators = [
|
|
21847
21877
|
{ type: i0.Component, args: [{
|
|
21848
21878
|
selector: TwoImagesTitleTextService.selector(),
|
|
21849
|
-
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"
|
|
21879
|
+
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"
|
|
21850
21880
|
},] }
|
|
21851
21881
|
];
|
|
21852
21882
|
TwoImagesTitleTextComponent.ctorParameters = function () { return []; };
|
|
@@ -22873,6 +22903,7 @@
|
|
|
22873
22903
|
});
|
|
22874
22904
|
return __awaiter(this, void 0, void 0, function () {
|
|
22875
22905
|
var isCurrencyReady, conf;
|
|
22906
|
+
var _this = this;
|
|
22876
22907
|
return __generator(this, function (_a) {
|
|
22877
22908
|
switch (_a.label) {
|
|
22878
22909
|
case 0:
|
|
@@ -22899,22 +22930,30 @@
|
|
|
22899
22930
|
this.iso = this.currencyService.iso;
|
|
22900
22931
|
_a.label = 3;
|
|
22901
22932
|
case 3:
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
}
|
|
22909
|
-
}
|
|
22910
|
-
else {
|
|
22911
|
-
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
22912
|
-
}
|
|
22933
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
22934
|
+
_this.country = data.locale.replace('_', '-');
|
|
22935
|
+
_this.initialize();
|
|
22936
|
+
}, function () {
|
|
22937
|
+
_this.initialize();
|
|
22938
|
+
});
|
|
22913
22939
|
return [2 /*return*/];
|
|
22914
22940
|
}
|
|
22915
22941
|
});
|
|
22916
22942
|
});
|
|
22917
22943
|
};
|
|
22944
|
+
ProductsListClassicComponent.prototype.initialize = function () {
|
|
22945
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT] || this.contentBlock[FORM_NAME_LIST_PRODUCT]) {
|
|
22946
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
22947
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
22948
|
+
}
|
|
22949
|
+
else {
|
|
22950
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
22951
|
+
}
|
|
22952
|
+
}
|
|
22953
|
+
else {
|
|
22954
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
22955
|
+
}
|
|
22956
|
+
};
|
|
22918
22957
|
ProductsListClassicComponent.prototype.selectThisForm = function () {
|
|
22919
22958
|
this.getSelection(this.selectedValue.value);
|
|
22920
22959
|
this.contentBlock[FORM_NAME_TYPE_PRODUCT] = this.selectedValue.value;
|
|
@@ -23087,6 +23126,7 @@
|
|
|
23087
23126
|
});
|
|
23088
23127
|
return __awaiter(this, void 0, void 0, function () {
|
|
23089
23128
|
var isCurrencyReady, conf;
|
|
23129
|
+
var _this = this;
|
|
23090
23130
|
return __generator(this, function (_a) {
|
|
23091
23131
|
switch (_a.label) {
|
|
23092
23132
|
case 0:
|
|
@@ -23113,22 +23153,30 @@
|
|
|
23113
23153
|
this.iso = this.currencyService.iso;
|
|
23114
23154
|
_a.label = 3;
|
|
23115
23155
|
case 3:
|
|
23116
|
-
|
|
23117
|
-
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
|
|
23121
|
-
|
|
23122
|
-
}
|
|
23123
|
-
}
|
|
23124
|
-
else {
|
|
23125
|
-
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
23126
|
-
}
|
|
23156
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
23157
|
+
_this.country = data.locale.replace('_', '-');
|
|
23158
|
+
_this.initialize();
|
|
23159
|
+
}, function () {
|
|
23160
|
+
_this.initialize();
|
|
23161
|
+
});
|
|
23127
23162
|
return [2 /*return*/];
|
|
23128
23163
|
}
|
|
23129
23164
|
});
|
|
23130
23165
|
});
|
|
23131
23166
|
};
|
|
23167
|
+
ProductsListSelectedComponent.prototype.initialize = function () {
|
|
23168
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT]) {
|
|
23169
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
23170
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
23171
|
+
}
|
|
23172
|
+
else {
|
|
23173
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
23174
|
+
}
|
|
23175
|
+
}
|
|
23176
|
+
else {
|
|
23177
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
23178
|
+
}
|
|
23179
|
+
};
|
|
23132
23180
|
ProductsListSelectedComponent.prototype.selectThisForm = function () {
|
|
23133
23181
|
this.getSelection(this.selectedValue.value);
|
|
23134
23182
|
this.contentBlock[FORM_NAME_TYPE_PRODUCT] = this.selectedValue.value;
|
|
@@ -23299,6 +23347,7 @@
|
|
|
23299
23347
|
});
|
|
23300
23348
|
return __awaiter(this, void 0, void 0, function () {
|
|
23301
23349
|
var isCurrencyReady, conf;
|
|
23350
|
+
var _this = this;
|
|
23302
23351
|
return __generator(this, function (_a) {
|
|
23303
23352
|
switch (_a.label) {
|
|
23304
23353
|
case 0:
|
|
@@ -23325,22 +23374,30 @@
|
|
|
23325
23374
|
this.iso = this.currencyService.iso;
|
|
23326
23375
|
_a.label = 3;
|
|
23327
23376
|
case 3:
|
|
23328
|
-
|
|
23329
|
-
|
|
23330
|
-
|
|
23331
|
-
|
|
23332
|
-
|
|
23333
|
-
|
|
23334
|
-
}
|
|
23335
|
-
}
|
|
23336
|
-
else {
|
|
23337
|
-
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
23338
|
-
}
|
|
23377
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
23378
|
+
_this.country = data.locale.replace('_', '-');
|
|
23379
|
+
_this.initialize();
|
|
23380
|
+
}, function () {
|
|
23381
|
+
_this.initialize();
|
|
23382
|
+
});
|
|
23339
23383
|
return [2 /*return*/];
|
|
23340
23384
|
}
|
|
23341
23385
|
});
|
|
23342
23386
|
});
|
|
23343
23387
|
};
|
|
23388
|
+
ProductsListSimpleComponent.prototype.initialize = function () {
|
|
23389
|
+
if (this.contentBlock[FORM_NAME_TYPE_PRODUCT]) {
|
|
23390
|
+
if (this.contentBlock[FORM_NAME_LIST_PRODUCT] && this.contentBlock[FORM_NAME_LIST_PRODUCT].length) {
|
|
23391
|
+
this.changeProduct(this.contentBlock[FORM_NAME_LIST_PRODUCT], false);
|
|
23392
|
+
}
|
|
23393
|
+
else {
|
|
23394
|
+
this.getSelection(this.contentBlock[FORM_NAME_TYPE_PRODUCT]);
|
|
23395
|
+
}
|
|
23396
|
+
}
|
|
23397
|
+
else {
|
|
23398
|
+
this.getSelection(TYPE_PRODUCT_SELECTION);
|
|
23399
|
+
}
|
|
23400
|
+
};
|
|
23344
23401
|
ProductsListSimpleComponent.prototype.selectThisForm = function () {
|
|
23345
23402
|
console.log(this.selectedValue.value);
|
|
23346
23403
|
this.getSelection(this.selectedValue.value);
|
|
@@ -25218,6 +25275,7 @@
|
|
|
25218
25275
|
});
|
|
25219
25276
|
return __awaiter(this, void 0, void 0, function () {
|
|
25220
25277
|
var isCurrencyReady, conf;
|
|
25278
|
+
var _this = this;
|
|
25221
25279
|
return __generator(this, function (_a) {
|
|
25222
25280
|
switch (_a.label) {
|
|
25223
25281
|
case 0:
|
|
@@ -25230,7 +25288,6 @@
|
|
|
25230
25288
|
isCurrencyReady = _a.sent();
|
|
25231
25289
|
if (isCurrencyReady) {
|
|
25232
25290
|
this.devise = this.currencyService.symbol;
|
|
25233
|
-
this.country = this.currencyService.country;
|
|
25234
25291
|
this.iso = this.currencyService.iso;
|
|
25235
25292
|
}
|
|
25236
25293
|
else {
|
|
@@ -25244,6 +25301,9 @@
|
|
|
25244
25301
|
this.iso = this.currencyService.iso;
|
|
25245
25302
|
_a.label = 3;
|
|
25246
25303
|
case 3:
|
|
25304
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25305
|
+
_this.country = data.locale.replace('_', '-');
|
|
25306
|
+
});
|
|
25247
25307
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25248
25308
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25249
25309
|
}
|
|
@@ -25317,6 +25377,7 @@
|
|
|
25317
25377
|
});
|
|
25318
25378
|
return __awaiter(this, void 0, void 0, function () {
|
|
25319
25379
|
var isCurrencyReady, conf;
|
|
25380
|
+
var _this = this;
|
|
25320
25381
|
return __generator(this, function (_a) {
|
|
25321
25382
|
switch (_a.label) {
|
|
25322
25383
|
case 0:
|
|
@@ -25343,6 +25404,9 @@
|
|
|
25343
25404
|
this.iso = this.currencyService.iso;
|
|
25344
25405
|
_a.label = 3;
|
|
25345
25406
|
case 3:
|
|
25407
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25408
|
+
_this.country = data.locale.replace('_', '-');
|
|
25409
|
+
});
|
|
25346
25410
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25347
25411
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25348
25412
|
}
|
|
@@ -25419,6 +25483,7 @@
|
|
|
25419
25483
|
});
|
|
25420
25484
|
return __awaiter(this, void 0, void 0, function () {
|
|
25421
25485
|
var isCurrencyReady, conf;
|
|
25486
|
+
var _this = this;
|
|
25422
25487
|
return __generator(this, function (_a) {
|
|
25423
25488
|
switch (_a.label) {
|
|
25424
25489
|
case 0:
|
|
@@ -25445,6 +25510,9 @@
|
|
|
25445
25510
|
this.iso = this.currencyService.iso;
|
|
25446
25511
|
_a.label = 3;
|
|
25447
25512
|
case 3:
|
|
25513
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25514
|
+
_this.country = data.locale.replace('_', '-');
|
|
25515
|
+
});
|
|
25448
25516
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25449
25517
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25450
25518
|
}
|
|
@@ -25525,6 +25593,7 @@
|
|
|
25525
25593
|
});
|
|
25526
25594
|
return __awaiter(this, void 0, void 0, function () {
|
|
25527
25595
|
var isCurrencyReady, conf;
|
|
25596
|
+
var _this = this;
|
|
25528
25597
|
return __generator(this, function (_a) {
|
|
25529
25598
|
switch (_a.label) {
|
|
25530
25599
|
case 0:
|
|
@@ -25551,6 +25620,9 @@
|
|
|
25551
25620
|
this.iso = this.currencyService.iso;
|
|
25552
25621
|
_a.label = 3;
|
|
25553
25622
|
case 3:
|
|
25623
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25624
|
+
_this.country = data.locale.replace('_', '-');
|
|
25625
|
+
});
|
|
25554
25626
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25555
25627
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25556
25628
|
}
|
|
@@ -25632,6 +25704,7 @@
|
|
|
25632
25704
|
});
|
|
25633
25705
|
return __awaiter(this, void 0, void 0, function () {
|
|
25634
25706
|
var isCurrencyReady, conf;
|
|
25707
|
+
var _this = this;
|
|
25635
25708
|
return __generator(this, function (_a) {
|
|
25636
25709
|
switch (_a.label) {
|
|
25637
25710
|
case 0:
|
|
@@ -25658,6 +25731,9 @@
|
|
|
25658
25731
|
this.iso = this.currencyService.iso;
|
|
25659
25732
|
_a.label = 3;
|
|
25660
25733
|
case 3:
|
|
25734
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25735
|
+
_this.country = data.locale.replace('_', '-');
|
|
25736
|
+
});
|
|
25661
25737
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25662
25738
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25663
25739
|
}
|
|
@@ -25741,6 +25817,7 @@
|
|
|
25741
25817
|
});
|
|
25742
25818
|
return __awaiter(this, void 0, void 0, function () {
|
|
25743
25819
|
var isCurrencyReady, conf;
|
|
25820
|
+
var _this = this;
|
|
25744
25821
|
return __generator(this, function (_a) {
|
|
25745
25822
|
switch (_a.label) {
|
|
25746
25823
|
case 0:
|
|
@@ -25767,6 +25844,9 @@
|
|
|
25767
25844
|
this.iso = this.currencyService.iso;
|
|
25768
25845
|
_a.label = 3;
|
|
25769
25846
|
case 3:
|
|
25847
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25848
|
+
_this.country = data.locale.replace('_', '-');
|
|
25849
|
+
});
|
|
25770
25850
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25771
25851
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25772
25852
|
}
|
|
@@ -25848,6 +25928,7 @@
|
|
|
25848
25928
|
});
|
|
25849
25929
|
return __awaiter(this, void 0, void 0, function () {
|
|
25850
25930
|
var isCurrencyReady, conf;
|
|
25931
|
+
var _this = this;
|
|
25851
25932
|
return __generator(this, function (_a) {
|
|
25852
25933
|
switch (_a.label) {
|
|
25853
25934
|
case 0:
|
|
@@ -25874,6 +25955,9 @@
|
|
|
25874
25955
|
this.iso = this.currencyService.iso;
|
|
25875
25956
|
_a.label = 3;
|
|
25876
25957
|
case 3:
|
|
25958
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
25959
|
+
_this.country = data.locale.replace('_', '-');
|
|
25960
|
+
});
|
|
25877
25961
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
25878
25962
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
25879
25963
|
}
|
|
@@ -26635,6 +26719,7 @@
|
|
|
26635
26719
|
});
|
|
26636
26720
|
return __awaiter(this, void 0, void 0, function () {
|
|
26637
26721
|
var isCurrencyReady, conf;
|
|
26722
|
+
var _this = this;
|
|
26638
26723
|
return __generator(this, function (_a) {
|
|
26639
26724
|
switch (_a.label) {
|
|
26640
26725
|
case 0:
|
|
@@ -26661,6 +26746,9 @@
|
|
|
26661
26746
|
this.iso = this.currencyService.iso;
|
|
26662
26747
|
_a.label = 3;
|
|
26663
26748
|
case 3:
|
|
26749
|
+
this.apiService.getShopTemplateLang().subscribe(function (data) {
|
|
26750
|
+
_this.country = data.locale.replace('_', '-');
|
|
26751
|
+
});
|
|
26664
26752
|
if (this.contentBlock[FORM_NAME_ID_PRODUCT]) {
|
|
26665
26753
|
this.searchById(this.contentBlock[FORM_NAME_ID_PRODUCT], false);
|
|
26666
26754
|
}
|
|
@@ -27144,7 +27232,7 @@
|
|
|
27144
27232
|
TextBackgroundsLinkComponent.decorators = [
|
|
27145
27233
|
{ type: i0.Component, args: [{
|
|
27146
27234
|
selector: TextBackgroundsLinkService.selector(),
|
|
27147
|
-
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=\"
|
|
27235
|
+
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"
|
|
27148
27236
|
},] }
|
|
27149
27237
|
];
|
|
27150
27238
|
TextBackgroundsLinkComponent.ctorParameters = function () { return []; };
|
|
@@ -27780,6 +27868,8 @@
|
|
|
27780
27868
|
this.contents = [];
|
|
27781
27869
|
this.dynamicHidden = [];
|
|
27782
27870
|
this.hideConfig = false;
|
|
27871
|
+
this.blockHover = false;
|
|
27872
|
+
this.configActive = false;
|
|
27783
27873
|
this.parsedContent = [];
|
|
27784
27874
|
}
|
|
27785
27875
|
BlocksComponent.prototype.ngOnInit = function () {
|
|
@@ -27799,6 +27889,10 @@
|
|
|
27799
27889
|
this.preview = false;
|
|
27800
27890
|
}
|
|
27801
27891
|
};
|
|
27892
|
+
BlocksComponent.prototype.switchHover = function (event) {
|
|
27893
|
+
console.log(event);
|
|
27894
|
+
this.configActive = event;
|
|
27895
|
+
};
|
|
27802
27896
|
BlocksComponent.prototype.addThis = function (index, type) {
|
|
27803
27897
|
var _this = this;
|
|
27804
27898
|
this.wiziBlockService.getBlocksService().forEach(function (v) {
|
|
@@ -27874,7 +27968,7 @@
|
|
|
27874
27968
|
BlocksComponent.decorators = [
|
|
27875
27969
|
{ type: i0.Component, args: [{
|
|
27876
27970
|
selector: 'wb-blocks',
|
|
27877
|
-
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
|
|
27971
|
+
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",
|
|
27878
27972
|
animations: [animateListFromLeft('100ms ease-in-out')]
|
|
27879
27973
|
},] }
|
|
27880
27974
|
];
|
|
@@ -27887,7 +27981,8 @@
|
|
|
27887
27981
|
]; };
|
|
27888
27982
|
BlocksComponent.propDecorators = {
|
|
27889
27983
|
contents: [{ type: i0.Input }],
|
|
27890
|
-
dynamicHidden: [{ type: i0.Input }]
|
|
27984
|
+
dynamicHidden: [{ type: i0.Input }],
|
|
27985
|
+
selectedConfig: [{ type: i0.Input }]
|
|
27891
27986
|
};
|
|
27892
27987
|
|
|
27893
27988
|
var ConfigsComponent = /** @class */ (function () {
|
|
@@ -27953,6 +28048,21 @@
|
|
|
27953
28048
|
}
|
|
27954
28049
|
this.updateContent();
|
|
27955
28050
|
};
|
|
28051
|
+
ConfigsComponent.prototype.updateChangesReverse = function ($event, key) {
|
|
28052
|
+
if ($event === void 0) { $event = null; }
|
|
28053
|
+
if ($event !== null) {
|
|
28054
|
+
var onValue = true;
|
|
28055
|
+
if (typeof this.configs.forms[key].state[0] !== 'undefined') {
|
|
28056
|
+
onValue = this.configs.forms[key].state[0];
|
|
28057
|
+
}
|
|
28058
|
+
var offValue = true;
|
|
28059
|
+
if (typeof this.configs.forms[key].state[1] !== 'undefined') {
|
|
28060
|
+
offValue = this.configs.forms[key].state[1];
|
|
28061
|
+
}
|
|
28062
|
+
this.configs.forms[key].value = $event.target.checked ? offValue : onValue;
|
|
28063
|
+
}
|
|
28064
|
+
this.updateContent();
|
|
28065
|
+
};
|
|
27956
28066
|
ConfigsComponent.prototype.updateContent = function () {
|
|
27957
28067
|
this.contentService.updateByUUID(this.configs.block.uuid, this.configs);
|
|
27958
28068
|
this.changeConfig.emit({
|
|
@@ -27986,7 +28096,7 @@
|
|
|
27986
28096
|
ConfigsComponent.decorators = [
|
|
27987
28097
|
{ type: i0.Component, args: [{
|
|
27988
28098
|
selector: 'wb-configs',
|
|
27989
|
-
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",
|
|
28099
|
+
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",
|
|
27990
28100
|
animations: [animateListFromLeft('200ms ease-in-out')]
|
|
27991
28101
|
},] }
|
|
27992
28102
|
];
|