@wizishop/wizi-block 4.2.33-beta → 4.2.34-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/bundles/wizishop-wizi-block.umd.js +202 -263
  2. package/bundles/wizishop-wizi-block.umd.js.map +1 -1
  3. package/bundles/wizishop-wizi-block.umd.min.js +1 -1
  4. package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
  5. package/esm2015/lib/services/blocks/images/images-banner.service.js +2 -2
  6. package/esm2015/lib/services/blocks/images/images-simple.service.js +2 -2
  7. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-simple.service.js +2 -2
  8. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-with-banner.service.js +2 -2
  9. package/esm2015/lib/services/blocks/text-backgrounds/text-backgrounds-with-txt.service.js +2 -2
  10. package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.js +7 -4
  11. package/esm2015/lib/shared/components/quill/quill.component.js +2 -1
  12. package/esm2015/lib/structures/map/background-form-left/map-background-form-left.component.js +32 -41
  13. package/esm2015/lib/structures/map/background-form-right/map-background-form-right.component.js +32 -41
  14. package/esm2015/lib/structures/map/fullpage/map-fullpage.component.js +32 -43
  15. package/esm2015/lib/structures/map/left-text/map-left-text.component.js +30 -41
  16. package/esm2015/lib/structures/map/right-text/map-right-text.component.js +30 -41
  17. package/esm2015/lib/structures/map/text-form/map-text-form.component.js +32 -43
  18. package/esm2015/lib/structures/structures.module.js +3 -1
  19. package/fesm2015/wizishop-wizi-block.js +197 -245
  20. package/fesm2015/wizishop-wizi-block.js.map +1 -1
  21. package/lib/structures/map/background-form-left/map-background-form-left.component.d.ts +8 -6
  22. package/lib/structures/map/background-form-right/map-background-form-right.component.d.ts +8 -6
  23. package/lib/structures/map/fullpage/map-fullpage.component.d.ts +7 -5
  24. package/lib/structures/map/left-text/map-left-text.component.d.ts +7 -5
  25. package/lib/structures/map/right-text/map-right-text.component.d.ts +7 -5
  26. package/lib/structures/map/text-form/map-text-form.component.d.ts +8 -6
  27. package/package.json +1 -5
  28. package/wizi-block.scss +35 -30
  29. package/wizishop-wizi-block.metadata.json +1 -1
@@ -1,16 +1,19 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { StructuresComponent } from '../../structures.component';
3
3
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
4
4
  import { FormListDto } from '../../../dtos/apis/forms/form-list.dto';
5
5
  import { ApiService } from '../../../services/utils/api.service';
6
6
  import { MapBackgroundFormLeftDto } from '../../../dtos/blocks/map/map-background-form-left.dto';
7
7
  import { FormDetailDto } from '../../../dtos/apis/forms/form-detail.dto';
8
- export declare class MapBackgroundFormLeftComponent extends StructuresComponent<MapBackgroundFormLeftDto> implements OnInit, OnDestroy, AfterViewInit {
8
+ export declare class MapBackgroundFormLeftComponent extends StructuresComponent<MapBackgroundFormLeftDto> implements OnInit, OnDestroy {
9
9
  private apiService;
10
10
  input: ElementRef;
11
11
  address: string;
12
+ triggerAddress: string;
12
13
  center: any;
14
+ googleMapReturnElement: OpenMapDto;
13
15
  editPlaceMap: any;
16
+ firstTimeTrigger: boolean;
14
17
  options: {};
15
18
  layers: any[];
16
19
  showMap: boolean;
@@ -19,13 +22,12 @@ export declare class MapBackgroundFormLeftComponent extends StructuresComponent<
19
22
  selectedDetailForm: FormDetailDto[];
20
23
  constructor(apiService: ApiService);
21
24
  ngOnInit(): void;
22
- ngAfterViewInit(): void;
23
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
24
- createEditAlgoliaInput(): void;
25
- selectThisForm(): void;
25
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
26
+ handleAddressChange(event: any): void;
26
27
  /**
27
28
  * Avoid partial map loaded at the initialization
28
29
  * @param map
29
30
  */
30
31
  onMapReady(map: any): void;
32
+ selectThisForm(): void;
31
33
  }
@@ -1,16 +1,19 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { StructuresComponent } from '../../structures.component';
3
3
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
4
4
  import { FormListDto } from '../../../dtos/apis/forms/form-list.dto';
5
5
  import { ApiService } from '../../../services/utils/api.service';
6
6
  import { MapBackgroundFormRightDto } from '../../../dtos/blocks/map/map-background-form-right.dto';
7
7
  import { FormDetailDto } from '../../../dtos/apis/forms/form-detail.dto';
8
- export declare class MapBackgroundFormRightComponent extends StructuresComponent<MapBackgroundFormRightDto> implements OnInit, OnDestroy, AfterViewInit {
8
+ export declare class MapBackgroundFormRightComponent extends StructuresComponent<MapBackgroundFormRightDto> implements OnInit, OnDestroy {
9
9
  private apiService;
10
10
  input: ElementRef;
11
11
  address: string;
12
+ triggerAddress: string;
12
13
  center: any;
14
+ googleMapReturnElement: OpenMapDto;
13
15
  editPlaceMap: any;
16
+ firstTimeTrigger: boolean;
14
17
  options: {};
15
18
  layers: any[];
16
19
  showMap: boolean;
@@ -19,13 +22,12 @@ export declare class MapBackgroundFormRightComponent extends StructuresComponent
19
22
  selectedDetailForm: FormDetailDto[];
20
23
  constructor(apiService: ApiService);
21
24
  ngOnInit(): void;
22
- ngAfterViewInit(): void;
23
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
24
- createEditAlgoliaInput(): void;
25
- selectThisForm(): void;
25
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
26
+ handleAddressChange(event: any): void;
26
27
  /**
27
28
  * Avoid partial map loaded at the initialization
28
29
  * @param map
29
30
  */
30
31
  onMapReady(map: any): void;
32
+ selectThisForm(): void;
31
33
  }
@@ -1,22 +1,24 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
1
  import { StructuresComponent } from '../../structures.component';
3
2
  import { MapFullpageDto } from '../../../dtos/blocks/map/map-fullpage.dto';
4
3
  import { ExternalConfigService } from '../../../services/utils/external-config.service';
5
4
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
6
- export declare class MapFullpageComponent extends StructuresComponent<MapFullpageDto> implements OnInit, OnDestroy, AfterViewInit {
5
+ import { ElementRef, OnInit } from '@angular/core';
6
+ export declare class MapFullpageComponent extends StructuresComponent<MapFullpageDto> implements OnInit {
7
7
  private externalConfigService;
8
8
  input: ElementRef;
9
9
  address: string;
10
+ triggerAddress: string;
10
11
  center: any;
12
+ googleMapReturnElement: OpenMapDto;
11
13
  editPlaceMap: any;
14
+ firstTimeTrigger: boolean;
12
15
  options: {};
13
16
  layers: any[];
14
17
  showMap: boolean;
15
18
  constructor(externalConfigService: ExternalConfigService);
16
19
  ngOnInit(): void;
17
- ngAfterViewInit(): void;
18
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
19
- createEditAlgoliaInput(): void;
20
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
21
+ handleAddressChange(event: any): void;
20
22
  /**
21
23
  * Avoid partial map loaded at the initialization
22
24
  * @param map
@@ -1,22 +1,24 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { StructuresComponent } from '../../structures.component';
3
3
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
4
4
  import { MapLeftTextDto } from '../../../dtos/blocks/map/map-left-text.dto';
5
5
  import { ExternalConfigService } from '../../../services/utils/external-config.service';
6
- export declare class MapLeftTextComponent extends StructuresComponent<MapLeftTextDto> implements OnInit, OnDestroy, AfterViewInit {
6
+ export declare class MapLeftTextComponent extends StructuresComponent<MapLeftTextDto> implements OnInit, OnDestroy {
7
7
  private externalConfigService;
8
8
  input: ElementRef;
9
9
  address: string;
10
+ triggerAddress: string;
10
11
  center: any;
12
+ googleMapReturnElement: OpenMapDto;
11
13
  editPlaceMap: any;
14
+ firstTimeTrigger: boolean;
12
15
  options: {};
13
16
  layers: any[];
14
17
  showMap: boolean;
15
18
  constructor(externalConfigService: ExternalConfigService);
16
19
  ngOnInit(): void;
17
- ngAfterViewInit(): void;
18
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
19
- createEditAlgoliaInput(): void;
20
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
21
+ handleAddressChange(event: any): void;
20
22
  /**
21
23
  * Avoid partial map loaded at the initialization
22
24
  * @param map
@@ -1,22 +1,24 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { StructuresComponent } from '../../structures.component';
3
3
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
4
4
  import { MapRightTextDto } from '../../../dtos/blocks/map/map-right-text.dto';
5
5
  import { ExternalConfigService } from '../../../services/utils/external-config.service';
6
- export declare class MapRightTextComponent extends StructuresComponent<MapRightTextDto> implements OnInit, OnDestroy, AfterViewInit {
6
+ export declare class MapRightTextComponent extends StructuresComponent<MapRightTextDto> implements OnInit, OnDestroy {
7
7
  private externalConfigService;
8
8
  input: ElementRef;
9
9
  address: string;
10
+ triggerAddress: string;
10
11
  center: any;
12
+ googleMapReturnElement: OpenMapDto;
11
13
  editPlaceMap: any;
14
+ firstTimeTrigger: boolean;
12
15
  options: {};
13
16
  layers: any[];
14
17
  showMap: boolean;
15
18
  constructor(externalConfigService: ExternalConfigService);
16
19
  ngOnInit(): void;
17
- ngAfterViewInit(): void;
18
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
19
- createEditAlgoliaInput(): void;
20
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
21
+ handleAddressChange(event: any): void;
20
22
  /**
21
23
  * Avoid partial map loaded at the initialization
22
24
  * @param map
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { StructuresComponent } from '../../structures.component';
3
3
  import { OpenMapDto } from '../../../dtos/apis/maps/open-map.dto';
4
4
  import { MapTextFormDto } from '../../../dtos/blocks/map/map-text-form.dto';
@@ -6,13 +6,16 @@ import { ApiService } from '../../../services/utils/api.service';
6
6
  import { ExternalConfigService } from '../../../services/utils/external-config.service';
7
7
  import { FormDetailDto } from '../../../dtos/apis/forms/form-detail.dto';
8
8
  import { FormListDto } from '../../../dtos/apis/forms/form-list.dto';
9
- export declare class MapTextFormComponent extends StructuresComponent<MapTextFormDto> implements OnInit, OnDestroy, AfterViewInit {
9
+ export declare class MapTextFormComponent extends StructuresComponent<MapTextFormDto> implements OnInit, OnDestroy {
10
10
  private apiService;
11
11
  private externalConfigService;
12
12
  input: ElementRef;
13
13
  address: string;
14
+ triggerAddress: string;
14
15
  center: any;
16
+ googleMapReturnElement: OpenMapDto;
15
17
  editPlaceMap: any;
18
+ firstTimeTrigger: boolean;
16
19
  options: {};
17
20
  layers: any[];
18
21
  showMap: boolean;
@@ -21,13 +24,12 @@ export declare class MapTextFormComponent extends StructuresComponent<MapTextFor
21
24
  selectedDetailForm: FormDetailDto[];
22
25
  constructor(apiService: ApiService, externalConfigService: ExternalConfigService);
23
26
  ngOnInit(): void;
24
- ngAfterViewInit(): void;
25
- setCoordinateOnPlaces(algoliaReturnElement: OpenMapDto): void;
26
- createEditAlgoliaInput(): void;
27
- selectThisForm(): void;
27
+ setCoordinateOnPlaces(googleResults: OpenMapDto): void;
28
+ handleAddressChange(event: any): void;
28
29
  /**
29
30
  * Avoid partial map loaded at the initialization
30
31
  * @param map
31
32
  */
32
33
  onMapReady(map: any): void;
34
+ selectThisForm(): void;
33
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/wizi-block",
3
- "version": "4.2.33-beta",
3
+ "version": "4.2.34-beta",
4
4
  "description": "## To use WiziBlock, you have to :",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,10 +20,6 @@
20
20
  "@angular/common": "^10.1.4",
21
21
  "@angular/core": "^10.1.4",
22
22
  "@asymmetrik/ngx-leaflet": "^8.1.0",
23
- "@codemirror/commands": "^6.0.0",
24
- "@codemirror/lang-html": "^6.1.0",
25
- "@codemirror/state": "^6.0.1",
26
- "@codemirror/view": "^6.0.2",
27
23
  "@ctrl/tinycolor": "^3.1.5",
28
24
  "@fortawesome/fontawesome-svg-core": "^1.2.31",
29
25
  "@fortawesome/free-brands-svg-icons": "^5.15.0",
package/wizi-block.scss CHANGED
@@ -1314,38 +1314,47 @@ wb-structure-config-extended-input {
1314
1314
  wb-structure-tools {
1315
1315
  z-index: 2;
1316
1316
  }
1317
- .wb-map-fullpage {
1318
- position: relative;
1319
1317
 
1320
- .leaflet-pane {
1321
- z-index: 3;
1322
- }
1318
+ .wb-two-images-title-text__title {
1319
+ p br:first-child:last-child {
1320
+ display: none;
1321
+ }
1322
+ .ql-clipboard {
1323
+ display: none !important;
1324
+ }
1325
+ }
1326
+ .wb-map-fullpage {
1327
+ position: relative;
1323
1328
 
1324
- &__container {
1325
- &__config {
1326
- width: 100%;
1327
- overflow: hidden;
1328
- height: 100%;
1329
- position: absolute;
1329
+ .leaflet-pane {
1330
+ z-index: 3;
1330
1331
  }
1331
1332
 
1332
- &__map {
1333
- height: rem(500);
1333
+ &__container {
1334
+ &__config {
1335
+ width: 100%;
1336
+ overflow: hidden;
1337
+ height: 100%;
1338
+ position: absolute;
1339
+ }
1340
+
1341
+ &__map {
1342
+ height: rem(500);
1343
+ }
1334
1344
  }
1335
- }
1336
1345
 
1337
- &__selector {
1338
- padding: rem(50) rem(50);
1339
- }
1346
+ &__selector {
1347
+ padding: rem(50) rem(50);
1348
+ }
1340
1349
 
1341
- &__cover {
1342
- position: absolute;
1343
- z-index: 4;
1344
- top: 0;
1345
- left: 0;
1346
- width: 100%;
1347
- height: 100%;
1348
- }
1350
+ &__cover {
1351
+ position: absolute;
1352
+ z-index: 4;
1353
+ top: 0;
1354
+ left: 0;
1355
+ width: 100%;
1356
+ height: 100%;
1357
+ }
1349
1358
  }
1350
1359
  .wb-newsletter-aligned-center-image {
1351
1360
  position: relative;
@@ -10105,11 +10114,7 @@ $color-bd: #dddddd;
10105
10114
 
10106
10115
  &__title {
10107
10116
  width: 100%;
10108
- margin-bottom: 10px;
10109
-
10110
- p br:first-child:last-child {
10111
- display: none;
10112
- }
10117
+ margin-bottom: 20px;
10113
10118
  }
10114
10119
 
10115
10120
  &__wrapper {