@wizishop/wizi-block 4.2.37-beta → 4.2.38-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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@ngx-translate/core'), require('uuid'), require('@angular/cdk/drag-drop'), require('@angular/animations'), require('@angular/common/http'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser'), require('@ctrl/tinycolor'), require('quill'), require('monaco-editor'), require('ngx-quill'), require('@fortawesome/fontawesome-svg-core'), require('@fortawesome/free-solid-svg-icons'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-brands-svg-icons'), require('@wizishop/ng-wizi-bulma'), require('ngx-scrollbar'), require('@editorjs/editorjs'), require('@jaames/iro'), require('ngx-monaco-editor'), require('leaflet'), require('@asymmetrik/ngx-leaflet'), require('ngx-google-places-autocomplete'), require('ngx-color-picker')) :
3
- typeof define === 'function' && define.amd ? define('@wizishop/wizi-block', ['exports', '@angular/core', 'rxjs', '@ngx-translate/core', 'uuid', '@angular/cdk/drag-drop', '@angular/animations', '@angular/common/http', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/platform-browser', '@ctrl/tinycolor', 'quill', 'monaco-editor', 'ngx-quill', '@fortawesome/fontawesome-svg-core', '@fortawesome/free-solid-svg-icons', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-brands-svg-icons', '@wizishop/ng-wizi-bulma', 'ngx-scrollbar', '@editorjs/editorjs', '@jaames/iro', 'ngx-monaco-editor', 'leaflet', '@asymmetrik/ngx-leaflet', 'ngx-google-places-autocomplete', 'ngx-color-picker'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['wizi-block'] = {}), global.ng.core, global.rxjs, global.i1, global['^3']['3']['2'], global.ng.cdk.dragDrop, global.ng.animations, global.ng.common.http, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.platformBrowser, global['^2']['5']['2'], global['^1']['3']['6'], global.monaco, global['^5']['0']['0'], global['^1']['2']['27'], global['^5']['12']['1'], global['^5']['12']['1'], global['^5']['12']['1'], global['^7']['0']['11'], global['^7']['2']['1-beta']['0'], global.EditorJS, global.iro, global['^8']['1']['1'], global['^1']['5']['1'], global['^5']['0']['2'], global.ngxGooglePlacesAutocomplete, global['^9']['0']['0']));
5
- }(this, (function (exports, i0, rxjs, i1, uuid, dragDrop, animations, i1$1, operators, common, forms, platformBrowser, tinycolor, QuillNamespace, monaco, ngxQuill, fontawesomeSvgCore, freeSolidSvgIcons, freeRegularSvgIcons, freeBrandsSvgIcons, ngWiziBulma, ngxScrollbar, EditorJS, iro, ngxMonacoEditor, leaflet, ngxLeaflet, ngxGooglePlacesAutocomplete, ngxColorPicker) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('@ngx-translate/core'), require('uuid'), require('@angular/cdk/drag-drop'), require('@angular/animations'), require('@angular/common/http'), require('rxjs/operators'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser'), require('@ctrl/tinycolor'), require('quill'), require('monaco-editor'), require('ngx-quill'), require('@fortawesome/fontawesome-svg-core'), require('@fortawesome/free-solid-svg-icons'), require('@fortawesome/free-regular-svg-icons'), require('@fortawesome/free-brands-svg-icons'), require('@wizishop/ng-wizi-bulma'), require('ngx-scrollbar'), require('@editorjs/editorjs'), require('@jaames/iro'), require('codemirror'), require('@codemirror/state'), require('@codemirror/lang-html'), require('ngx-monaco-editor'), require('leaflet'), require('@asymmetrik/ngx-leaflet'), require('ngx-google-places-autocomplete'), require('ngx-color-picker')) :
3
+ typeof define === 'function' && define.amd ? define('@wizishop/wizi-block', ['exports', '@angular/core', 'rxjs', '@ngx-translate/core', 'uuid', '@angular/cdk/drag-drop', '@angular/animations', '@angular/common/http', 'rxjs/operators', '@angular/common', '@angular/forms', '@angular/platform-browser', '@ctrl/tinycolor', 'quill', 'monaco-editor', 'ngx-quill', '@fortawesome/fontawesome-svg-core', '@fortawesome/free-solid-svg-icons', '@fortawesome/free-regular-svg-icons', '@fortawesome/free-brands-svg-icons', '@wizishop/ng-wizi-bulma', 'ngx-scrollbar', '@editorjs/editorjs', '@jaames/iro', 'codemirror', '@codemirror/state', '@codemirror/lang-html', 'ngx-monaco-editor', 'leaflet', '@asymmetrik/ngx-leaflet', 'ngx-google-places-autocomplete', 'ngx-color-picker'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['wizi-block'] = {}), global.ng.core, global.rxjs, global.i1, global['^3']['3']['2'], global.ng.cdk.dragDrop, global.ng.animations, global.ng.common.http, global.rxjs.operators, global.ng.common, global.ng.forms, global.ng.platformBrowser, global['^2']['5']['2'], global['^1']['3']['6'], global.monaco, global['^5']['0']['0'], global['^1']['2']['27'], global['^5']['12']['1'], global['^5']['12']['1'], global['^5']['12']['1'], global['^7']['0']['11'], global['^7']['2']['1-beta']['0'], global.EditorJS, global.iro, global.codemirror, global.state, global.langHtml, global['^8']['1']['1'], global['^1']['5']['1'], global['^5']['0']['2'], global.ngxGooglePlacesAutocomplete, global['^9']['0']['0']));
5
+ }(this, (function (exports, i0, rxjs, i1, uuid, dragDrop, animations, i1$1, operators, common, forms, platformBrowser, tinycolor, QuillNamespace, monaco, ngxQuill, fontawesomeSvgCore, freeSolidSvgIcons, freeRegularSvgIcons, freeBrandsSvgIcons, ngWiziBulma, ngxScrollbar, EditorJS, iro, codemirror, state, langHtml, ngxMonacoEditor, leaflet, ngxLeaflet, ngxGooglePlacesAutocomplete, ngxColorPicker) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -24623,9 +24623,6 @@
24623
24623
  }(InlineTextTool));
24624
24624
  textSizeTool.title = 'Text Size';
24625
24625
 
24626
- // import { EditorView, basicSetup } from 'codemirror';
24627
- // import { EditorState } from '@codemirror/state';
24628
- // import { html } from '@codemirror/lang-html';
24629
24626
  var TextEditionTool = /** @class */ (function (_super) {
24630
24627
  __extends(TextEditionTool, _super);
24631
24628
  function TextEditionTool() {
@@ -24697,15 +24694,15 @@
24697
24694
  modal.appendChild(buttonContainer);
24698
24695
  container.appendChild(modal);
24699
24696
  document.body.appendChild(container);
24700
- // let state = EditorState.create({
24701
- // doc: content,
24702
- // extensions: [basicSetup, html()],
24703
- // });
24704
- // let view = new EditorView({
24705
- // state: state,
24706
- // parent: editorContainer,
24707
- // });
24708
- // saveButton.addEventListener('click', () => saveCodeEditModal(view.state.doc.toString()), true);
24697
+ var state$1 = state.EditorState.create({
24698
+ doc: content,
24699
+ extensions: [codemirror.basicSetup, langHtml.html()],
24700
+ });
24701
+ var view = new codemirror.EditorView({
24702
+ state: state$1,
24703
+ parent: editorContainer,
24704
+ });
24705
+ saveButton.addEventListener('click', function () { return saveCodeEditModal(view.state.doc.toString()); }, true);
24709
24706
  buttonContainer.appendChild(saveButton);
24710
24707
  };
24711
24708
  TextEditionTool.prototype.getSavedEditorContent = function (name) {
@@ -29189,7 +29186,7 @@
29189
29186
  WitnessBackgroundOneComponent.decorators = [
29190
29187
  { type: i0.Component, args: [{
29191
29188
  selector: WitnessBackgroundOneService.selector(),
29192
- template: "<div class=\"wb-witness-backgroundOne\">\n <div class=\"columns\">\n <div class=\"column\">\n <div class=\"wb-witness-backgroundOne__container\">\n <div\n wbPicturesTemplateDirective\n class=\"wb-witness-backgroundOne__container__item__figure__noimage\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE)\"\n ></div>\n <div class=\"wb-witness-backgroundOne__tool\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.15' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT]\"\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.16' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][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_URL][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 <div\n class=\"wb-witness-backgroundOne__container__item\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n >\n <div\n wbGetSizeImageDirective\n class=\"wb-witness-backgroundOne__container__item__figure\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE)\"\n ></div>\n <div class=\"wb-witness-backgroundOne__container__item__zindex has-transparent-background\">\n <div class=\"wb-witness-backgroundOne__container__item__testimony\">\n <wb-editorjs\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\"\n (contentChange)=\"persist()\"\n [placeholder]=\"'wb.shared.components.quill.1' | translate\"\n >\n </wb-editorjs>\n </div>\n <div\n class=\"wb-witness-backgroundOne__container__item__hr\"\n [style.background-color]=\"contents[BASE_BLOCK_CONTENT].color\"\n ></div>\n <div class=\"wb-witness-backgroundOne__container__item__author\">\n <wb-editorjs\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE]\"\n (contentChange)=\"persist()\"\n [placeholder]=\"'wb.shared.components.quill.1' | translate\"\n >\n </wb-editorjs>\n </div>\n <div\n class=\"wb-witness-backgroundOne__container__item__url\"\n *ngIf=\"\n contents[BASE_BLOCK_CONTENT][FORM_NAME_URL] && contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT]\n \"\n >\n <div class=\"wb-witness-backgroundOne__container__item__url__container\">\n <span>{{ contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT] }}</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
29189
+ template: "<div class=\"wb-witness-backgroundOne\">\n <div class=\"columns\">\n <div class=\"column\">\n <div class=\"wb-witness-backgroundOne__container\">\n <div\n wbPicturesTemplateDirective\n class=\"wb-witness-backgroundOne__container__item__figure__noimage\"\n *ngIf=\"!contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE)\"\n >\n <p>\n <i class=\"fal fa-image\"></i> <span>{{ 'wb.shared.directives.pictures.2' | translate }}</span>\n </p>\n </div>\n <div class=\"wb-witness-backgroundOne__tool\">\n <wb-structure-config\n [blockUUID]=\"uuid\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n [position]=\"TYPE_CONFIG_POSITION_LEFT_TOP\"\n [isFullwidth]=\"true\"\n >\n <wb-structure-config-input\n [label]=\"'wb.structures.template.15' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT]\"\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.16' | translate\"\n [(ngModel)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][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_URL][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 <div\n class=\"wb-witness-backgroundOne__container__item\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n [style.background-image]=\"'url(' + contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE][FORM_NAME_IMAGE_URL] + ')'\"\n >\n <div\n wbGetSizeImageDirective\n class=\"wb-witness-backgroundOne__container__item__figure\"\n *ngIf=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_IMAGE]\"\n (click)=\"getMediaFor(FORM_NAME_IMAGE)\"\n ></div>\n <div class=\"wb-witness-backgroundOne__container__item__zindex has-transparent-background\">\n <div class=\"wb-witness-backgroundOne__container__item__testimony\">\n <wb-editorjs\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_CONTENT]\"\n (contentChange)=\"persist()\"\n [placeholder]=\"'wb.shared.components.quill.1' | translate\"\n >\n </wb-editorjs>\n </div>\n <div\n class=\"wb-witness-backgroundOne__container__item__hr\"\n [style.background-color]=\"contents[BASE_BLOCK_CONTENT].color\"\n ></div>\n <div class=\"wb-witness-backgroundOne__container__item__author\">\n <wb-editorjs\n [(content)]=\"contents[BASE_BLOCK_CONTENT][FORM_NAME_TITLE]\"\n (contentChange)=\"persist()\"\n [placeholder]=\"'wb.shared.components.quill.1' | translate\"\n >\n </wb-editorjs>\n </div>\n <div\n class=\"wb-witness-backgroundOne__container__item__url\"\n *ngIf=\"\n contents[BASE_BLOCK_CONTENT][FORM_NAME_URL] && contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT]\n \"\n >\n <div class=\"wb-witness-backgroundOne__container__item__url__container\">\n <span>{{ contents[BASE_BLOCK_CONTENT][FORM_NAME_URL][FORM_NAME_TEXT] }}</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
29193
29190
  },] }
29194
29191
  ];
29195
29192
  WitnessBackgroundOneComponent.ctorParameters = function () { return []; };