@wizishop/wizi-block 14.0.0-beta → 14.0.0-beta-0
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/esm2020/lib/shared/components/shared-components.module.mjs +2 -10
- package/fesm2015/wizishop-wizi-block.mjs +18 -324
- package/fesm2015/wizishop-wizi-block.mjs.map +1 -1
- package/fesm2020/wizishop-wizi-block.mjs +18 -324
- package/fesm2020/wizishop-wizi-block.mjs.map +1 -1
- package/lib/shared/components/shared-components.module.d.ts +10 -12
- package/package.json +1 -1
- package/wizi-block.scss +127 -830
- package/esm2020/lib/dtos/utils/quill/delta.dto.mjs +0 -5
- package/esm2020/lib/shared/components/quill/quill.component.mjs +0 -310
- package/lib/dtos/utils/quill/delta.dto.d.ts +0 -1
- package/lib/shared/components/quill/quill.component.d.ts +0 -77
|
@@ -6,8 +6,6 @@ import { SharedPipesModule } from '../pipes/shared-pipes.module';
|
|
|
6
6
|
import { StructureConfigComponent } from './structure-config/structure-config.component';
|
|
7
7
|
import { StructureConfigInputComponent } from './structure-config-input/structure-config-input.component';
|
|
8
8
|
import { StructureConfigCheckboxComponent } from './structure-config-checkbox/structure-config-checkbox.component';
|
|
9
|
-
import { QuillComponent } from './quill/quill.component';
|
|
10
|
-
import { QuillModule } from 'ngx-quill';
|
|
11
9
|
import { SharedDirectivesModule } from '../directives/shared-directives.module';
|
|
12
10
|
import { LoaderComponent } from './loader/loader.component';
|
|
13
11
|
import { StructureSelectComponent } from './structure-select/structure-select.component';
|
|
@@ -41,7 +39,6 @@ const components = [
|
|
|
41
39
|
LoaderComponent,
|
|
42
40
|
SmallLoaderComponent,
|
|
43
41
|
StarComponent,
|
|
44
|
-
QuillComponent,
|
|
45
42
|
FaqComponent,
|
|
46
43
|
EditorJsComponent,
|
|
47
44
|
];
|
|
@@ -62,15 +59,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
62
59
|
LoaderComponent,
|
|
63
60
|
SmallLoaderComponent,
|
|
64
61
|
StarComponent,
|
|
65
|
-
QuillComponent,
|
|
66
62
|
FaqComponent,
|
|
67
63
|
EditorJsComponent], imports: [CommonModule,
|
|
68
64
|
NgScrollbarModule,
|
|
69
65
|
FormsModule,
|
|
70
66
|
NwbAllModule,
|
|
71
67
|
SharedPipesModule,
|
|
72
|
-
SharedDirectivesModule,
|
|
73
|
-
QuillModule, i1.TranslateModule], exports: [StructureToolsComponent,
|
|
68
|
+
SharedDirectivesModule, i1.TranslateModule], exports: [StructureToolsComponent,
|
|
74
69
|
StructureConfigComponent,
|
|
75
70
|
StructureConfigInputComponent,
|
|
76
71
|
StructureConfigCheckboxComponent,
|
|
@@ -84,7 +79,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
84
79
|
LoaderComponent,
|
|
85
80
|
SmallLoaderComponent,
|
|
86
81
|
StarComponent,
|
|
87
|
-
QuillComponent,
|
|
88
82
|
FaqComponent,
|
|
89
83
|
EditorJsComponent] });
|
|
90
84
|
SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedComponentsModule, imports: [CommonModule,
|
|
@@ -93,7 +87,6 @@ SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
93
87
|
NwbAllModule,
|
|
94
88
|
SharedPipesModule,
|
|
95
89
|
SharedDirectivesModule,
|
|
96
|
-
QuillModule,
|
|
97
90
|
TranslateModule.forChild()] });
|
|
98
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedComponentsModule, decorators: [{
|
|
99
92
|
type: NgModule,
|
|
@@ -105,11 +98,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
105
98
|
NwbAllModule,
|
|
106
99
|
SharedPipesModule,
|
|
107
100
|
SharedDirectivesModule,
|
|
108
|
-
QuillModule,
|
|
109
101
|
TranslateModule.forChild(),
|
|
110
102
|
],
|
|
111
103
|
declarations: components,
|
|
112
104
|
exports: components,
|
|
113
105
|
}]
|
|
114
106
|
}] });
|
|
115
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
107
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLWNvbXBvbmVudHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvd2l6aS1ibG9jay9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3NoYXJlZC1jb21wb25lbnRzLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sNkNBQTZDLENBQUM7QUFDdEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDakUsT0FBTyxFQUFFLHdCQUF3QixFQUFFLE1BQU0sK0NBQStDLENBQUM7QUFDekYsT0FBTyxFQUFFLDZCQUE2QixFQUFFLE1BQU0sMkRBQTJELENBQUM7QUFDMUcsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0saUVBQWlFLENBQUM7QUFDbkgsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDaEYsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQzVELE9BQU8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jdHVyZVNlYXJjaFByb2R1Y3RDb21wb25lbnQsXG4gICAgU3RydWN0dXJlQ29uZmlnRXh0ZW5kZWRJbnB1dENvbXBvbmVudCxcbiAgICBTdHJ1Y3R1cmVBbXBsaWZ5U2VhcmNoUHJvZHVjdENvbXBvbmVudCxcbiAgICBTdHJ1Y3R1cmVBbXBsaWZ5U2VhcmNoQ2F0ZWdvcnlDb21wb25lbnQsXG4gICAgTG9hZGVyQ29tcG9uZW50LFxuICAgIFNtYWxsTG9hZGVyQ29tcG9uZW50LFxuICAgIFN0YXJDb21wb25lbnQsXG4gICAgRmFxQ29tcG9uZW50LFxuICAgIEVkaXRvckpzQ29tcG9uZW50LFxuXTtcblxuQE5nTW9kdWxlKHtcbiAgICBpbXBvcnRzOiBbXG4gICAgICAgIENvbW1vbk1vZHVsZSxcbiAgICAgICAgTmdTY3JvbGxiYXJNb2R1bGUsXG4gICAgICAgIEZvcm1zTW9kdWxlLFxuICAgICAgICBOd2JBbGxNb2R1bGUsXG4gICAgICAgIFNoYXJlZFBpcGVzTW9kdWxlLFxuICAgICAgICBTaGFyZWREaXJlY3RpdmVzTW9kdWxlLFxuICAgICAgICBUcmFuc2xhdGVNb2R1bGUuZm9yQ2hpbGQoKSxcbiAgICBdLFxuICAgIGRlY2xhcmF0aW9uczogY29tcG9uZW50cyxcbiAgICBleHBvcnRzOiBjb21wb25lbnRzLFxufSlcbmV4cG9ydCBjbGFzcyBTaGFyZWRDb21wb25lbnRzTW9kdWxlIHt9XG4iXX0=
|
|
@@ -20,8 +20,6 @@ import * as i2 from '@angular/forms';
|
|
|
20
20
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
21
21
|
import * as i1$3 from '@angular/platform-browser';
|
|
22
22
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
23
|
-
import * as i6$1 from 'ngx-quill';
|
|
24
|
-
import { QuillModule } from 'ngx-quill';
|
|
25
23
|
import { library, findIconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
26
24
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
|
27
25
|
import { far } from '@fortawesome/free-regular-svg-icons';
|
|
@@ -34,6 +32,7 @@ import iro from '@jaames/iro';
|
|
|
34
32
|
import { basicSetup, EditorView } from 'codemirror';
|
|
35
33
|
import { EditorState } from '@codemirror/state';
|
|
36
34
|
import { html } from '@codemirror/lang-html';
|
|
35
|
+
import { QuillModule } from 'ngx-quill';
|
|
37
36
|
import { tileLayer, latLng, marker, icon } from 'leaflet';
|
|
38
37
|
import places from 'places.js';
|
|
39
38
|
import * as i7 from '@asymmetrik/ngx-leaflet';
|
|
@@ -8351,9 +8350,9 @@ class htmlEditButton {
|
|
|
8351
8350
|
}
|
|
8352
8351
|
window['htmlEditButton'] = htmlEditButton;
|
|
8353
8352
|
|
|
8354
|
-
const Quill$
|
|
8353
|
+
const Quill$4 = QuillNamespace;
|
|
8355
8354
|
const linkPath$1 = 'formats/link';
|
|
8356
|
-
let Link = Quill$
|
|
8355
|
+
let Link = Quill$4.import(linkPath$1);
|
|
8357
8356
|
class CustomLink extends Link {
|
|
8358
8357
|
static create(content) {
|
|
8359
8358
|
const node = super.create(content.value);
|
|
@@ -8385,9 +8384,9 @@ class CustomLink extends Link {
|
|
|
8385
8384
|
}
|
|
8386
8385
|
}
|
|
8387
8386
|
|
|
8388
|
-
const Quill$
|
|
8387
|
+
const Quill$3 = QuillNamespace;
|
|
8389
8388
|
const linkPath = 'blots/block';
|
|
8390
|
-
const Crypted = Quill$
|
|
8389
|
+
const Crypted = Quill$3.import(linkPath);
|
|
8391
8390
|
class CryptedLink extends Crypted {
|
|
8392
8391
|
static create(content) {
|
|
8393
8392
|
const node = super.create(content.value);
|
|
@@ -8400,15 +8399,15 @@ class CryptedLink extends Crypted {
|
|
|
8400
8399
|
}
|
|
8401
8400
|
}
|
|
8402
8401
|
|
|
8403
|
-
const Quill$
|
|
8402
|
+
const Quill$2 = QuillNamespace;
|
|
8404
8403
|
const iconsPath = 'ui/icons';
|
|
8405
|
-
const icons = Quill$
|
|
8404
|
+
const icons = Quill$2.import(iconsPath);
|
|
8406
8405
|
|
|
8407
|
-
const Quill$
|
|
8406
|
+
const Quill$1 = QuillNamespace;
|
|
8408
8407
|
const breakPath = 'blots/break';
|
|
8409
|
-
const Break = Quill$
|
|
8408
|
+
const Break = Quill$1.import(breakPath);
|
|
8410
8409
|
const embedPath = 'blots/block/embed';
|
|
8411
|
-
const Embed = Quill$
|
|
8410
|
+
const Embed = Quill$1.import(embedPath);
|
|
8412
8411
|
class LineBreak extends Break {
|
|
8413
8412
|
length() {
|
|
8414
8413
|
return 1;
|
|
@@ -8424,7 +8423,7 @@ class LineBreak extends Break {
|
|
|
8424
8423
|
const CUSTOM_UPPERCASE_NAME = 'uppercase';
|
|
8425
8424
|
const CUSTOM_LINK_NAME = 'customLink';
|
|
8426
8425
|
const CUSTOM_LINK_CRYPTED = 'data-htap';
|
|
8427
|
-
const Quill
|
|
8426
|
+
const Quill = QuillNamespace;
|
|
8428
8427
|
class QuillService {
|
|
8429
8428
|
constructor() {
|
|
8430
8429
|
this.alreadyInit = false;
|
|
@@ -8451,29 +8450,29 @@ class QuillService {
|
|
|
8451
8450
|
handleLinesBreak() {
|
|
8452
8451
|
LineBreak.blotName = 'break';
|
|
8453
8452
|
LineBreak.tagName = 'BR';
|
|
8454
|
-
Quill
|
|
8453
|
+
Quill.register(LineBreak);
|
|
8455
8454
|
}
|
|
8456
8455
|
handleSourceCode() {
|
|
8457
|
-
Quill
|
|
8456
|
+
Quill.register('modules/htmlEditButton', htmlEditButton);
|
|
8458
8457
|
}
|
|
8459
8458
|
handleCustomLink() {
|
|
8460
8459
|
CustomLink.blotName = CUSTOM_LINK_NAME;
|
|
8461
8460
|
CustomLink.tagName = 'a';
|
|
8462
|
-
Quill
|
|
8461
|
+
Quill.register(CustomLink);
|
|
8463
8462
|
}
|
|
8464
8463
|
handleCryptedLink() {
|
|
8465
8464
|
CryptedLink.blotName = CUSTOM_LINK_CRYPTED;
|
|
8466
8465
|
CryptedLink.tagName = '*';
|
|
8467
|
-
Quill
|
|
8466
|
+
Quill.register(CryptedLink);
|
|
8468
8467
|
}
|
|
8469
8468
|
handleCustomUppercase() {
|
|
8470
8469
|
const parchment = 'parchment';
|
|
8471
|
-
const Parchment = Quill
|
|
8470
|
+
const Parchment = Quill.import(parchment);
|
|
8472
8471
|
const UppercaseCustomClass = new Parchment.Attributor.Class('uppercase', 'ql-custom', {
|
|
8473
8472
|
scope: Parchment.Scope.INLINE,
|
|
8474
8473
|
});
|
|
8475
8474
|
UppercaseCustomClass.blotName = CUSTOM_UPPERCASE_NAME;
|
|
8476
|
-
Quill
|
|
8475
|
+
Quill.register(UppercaseCustomClass);
|
|
8477
8476
|
}
|
|
8478
8477
|
handleCustomIcons() {
|
|
8479
8478
|
icons[CUSTOM_LINK_NAME] = '<i class="far fa-link"></i>';
|
|
@@ -9545,305 +9544,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
9545
9544
|
}]
|
|
9546
9545
|
}] });
|
|
9547
9546
|
|
|
9548
|
-
const Quill$1 = QuillNamespace;
|
|
9549
|
-
const deltaPath = 'delta';
|
|
9550
|
-
const Delta = Quill$1.import(deltaPath);
|
|
9551
|
-
|
|
9552
|
-
const Quill = QuillNamespace;
|
|
9553
|
-
class QuillComponent {
|
|
9554
|
-
constructor(ngZone, quillService, translateService) {
|
|
9555
|
-
this.ngZone = ngZone;
|
|
9556
|
-
this.quillService = quillService;
|
|
9557
|
-
this.translateService = translateService;
|
|
9558
|
-
this.contentChange = new EventEmitter();
|
|
9559
|
-
this.isTooltipFocused = new EventEmitter();
|
|
9560
|
-
this.tooltipLostFocus = new EventEmitter();
|
|
9561
|
-
this.content = '';
|
|
9562
|
-
this.offset = false;
|
|
9563
|
-
this.toolbar = [
|
|
9564
|
-
['bold', 'italic', 'underline', 'strike', CUSTOM_UPPERCASE_NAME],
|
|
9565
|
-
['blockquote'],
|
|
9566
|
-
[{ list: 'ordered' }, { list: 'bullet' }],
|
|
9567
|
-
[{ script: 'sub' }, { script: 'super' }],
|
|
9568
|
-
[{ indent: '-1' }, { indent: '+1' }],
|
|
9569
|
-
[{ size: ['small', false, 'large', 'huge'] }],
|
|
9570
|
-
[{ header: [1, 2, 3, 4, 5, 6, false] }],
|
|
9571
|
-
[
|
|
9572
|
-
{
|
|
9573
|
-
color: [
|
|
9574
|
-
'#000000',
|
|
9575
|
-
'#e60000',
|
|
9576
|
-
'#ff9900',
|
|
9577
|
-
'#ffff00',
|
|
9578
|
-
'#008a00',
|
|
9579
|
-
'#0066cc',
|
|
9580
|
-
'#9933ff',
|
|
9581
|
-
'#ffffff',
|
|
9582
|
-
'#facccc',
|
|
9583
|
-
'#ffebcc',
|
|
9584
|
-
'#ffffcc',
|
|
9585
|
-
'#cce8cc',
|
|
9586
|
-
'#cce0f5',
|
|
9587
|
-
'#ebd6ff',
|
|
9588
|
-
'#bbbbbb',
|
|
9589
|
-
'#f06666',
|
|
9590
|
-
'#ffc266',
|
|
9591
|
-
'#ffff66',
|
|
9592
|
-
'#66b966',
|
|
9593
|
-
'#66a3e0',
|
|
9594
|
-
'#c285ff',
|
|
9595
|
-
'#888888',
|
|
9596
|
-
'#a10000',
|
|
9597
|
-
'#b26b00',
|
|
9598
|
-
'#b2b200',
|
|
9599
|
-
'#006100',
|
|
9600
|
-
'#0047b2',
|
|
9601
|
-
'#6b24b2',
|
|
9602
|
-
'#444444',
|
|
9603
|
-
'#5c0000',
|
|
9604
|
-
'#663d00',
|
|
9605
|
-
'#666600',
|
|
9606
|
-
'#003700',
|
|
9607
|
-
'#002966',
|
|
9608
|
-
'#3d1466',
|
|
9609
|
-
'#ff9901',
|
|
9610
|
-
],
|
|
9611
|
-
},
|
|
9612
|
-
{ background: [] },
|
|
9613
|
-
],
|
|
9614
|
-
[{ align: [] }],
|
|
9615
|
-
[CUSTOM_LINK_NAME],
|
|
9616
|
-
[CUSTOM_LINK_CRYPTED],
|
|
9617
|
-
['clean'],
|
|
9618
|
-
];
|
|
9619
|
-
this.placeholder = this.translateService.instant('wb.shared.components.quill.1');
|
|
9620
|
-
this.tmpContent = '';
|
|
9621
|
-
this.colorTint = false;
|
|
9622
|
-
this.openConfig = false;
|
|
9623
|
-
this.sourceCode = false;
|
|
9624
|
-
this.sourceCodeValue = '';
|
|
9625
|
-
this.linkConfig = '';
|
|
9626
|
-
this.linkStyle = '';
|
|
9627
|
-
this.checked = false;
|
|
9628
|
-
this.crypted = false;
|
|
9629
|
-
this.uuid = v4();
|
|
9630
|
-
this.quillService.init();
|
|
9631
|
-
}
|
|
9632
|
-
set color(value) {
|
|
9633
|
-
this._color = value;
|
|
9634
|
-
this.colorTint = new TinyColor(value).isLight();
|
|
9635
|
-
}
|
|
9636
|
-
ngOnInit() {
|
|
9637
|
-
this.handleDefaultContentTranslation();
|
|
9638
|
-
this.modules = {
|
|
9639
|
-
syntax: false,
|
|
9640
|
-
htmlEditButton: {},
|
|
9641
|
-
toolbar: {
|
|
9642
|
-
container: this.toolbar,
|
|
9643
|
-
handlers: {
|
|
9644
|
-
[CUSTOM_LINK_NAME]: this.addLink.bind(this),
|
|
9645
|
-
[CUSTOM_LINK_CRYPTED]: this.addLink.bind(this),
|
|
9646
|
-
[CUSTOM_UPPERCASE_NAME]: this.addUpperCase.bind(this),
|
|
9647
|
-
},
|
|
9648
|
-
},
|
|
9649
|
-
clipboard: {
|
|
9650
|
-
matchers: [['BR', this.lineBreakMatcher]],
|
|
9651
|
-
matchVisual: false,
|
|
9652
|
-
},
|
|
9653
|
-
keyboard: {
|
|
9654
|
-
bindings: {
|
|
9655
|
-
linebreak: {
|
|
9656
|
-
key: 13,
|
|
9657
|
-
shiftKey: true,
|
|
9658
|
-
handler: (range) => {
|
|
9659
|
-
// Handle line breaks with shift + enter
|
|
9660
|
-
let currentLeaf = this.editor.getLeaf(range.index)[0];
|
|
9661
|
-
let nextLeaf = this.editor.getLeaf(range.index + 1)[0];
|
|
9662
|
-
this.editor.insertEmbed(range.index, 'break', true, 'user');
|
|
9663
|
-
// Insert a second break if:
|
|
9664
|
-
// At the end of the editor, OR next leaf has a different parent (<p>)
|
|
9665
|
-
if (nextLeaf === null || currentLeaf.parent !== nextLeaf.parent) {
|
|
9666
|
-
this.editor.insertEmbed(range.index, 'break', true, 'user');
|
|
9667
|
-
}
|
|
9668
|
-
// Now that we've inserted a line break, move the cursor forward
|
|
9669
|
-
this.editor.setSelection(range.index + 1, Quill.sources.SILENT);
|
|
9670
|
-
},
|
|
9671
|
-
},
|
|
9672
|
-
},
|
|
9673
|
-
},
|
|
9674
|
-
};
|
|
9675
|
-
this.quillService.bindTooltipFocus().subscribe((id) => {
|
|
9676
|
-
this.isTooltipFocused.emit(false);
|
|
9677
|
-
if (id === this.uuid) {
|
|
9678
|
-
this.isTooltipFocused.emit(true);
|
|
9679
|
-
}
|
|
9680
|
-
});
|
|
9681
|
-
}
|
|
9682
|
-
handleDefaultContentTranslation() {
|
|
9683
|
-
this.tmpContent = /^wb\./.test(this.content) ? this.translateService.instant(this.content) : this.content;
|
|
9684
|
-
}
|
|
9685
|
-
contentChanged(event) {
|
|
9686
|
-
if (this.editor) {
|
|
9687
|
-
if (this.isSetDefaultTextColorAction(event.delta)) {
|
|
9688
|
-
this.setTextBlackColor();
|
|
9689
|
-
return;
|
|
9690
|
-
}
|
|
9691
|
-
this.content = this.editor.root.innerHTML;
|
|
9692
|
-
if (this.isEmpty(this.content)) {
|
|
9693
|
-
this.content = '';
|
|
9694
|
-
}
|
|
9695
|
-
this.contentChange.emit(this.content);
|
|
9696
|
-
}
|
|
9697
|
-
}
|
|
9698
|
-
editorLoaded(e) {
|
|
9699
|
-
this.editor = e;
|
|
9700
|
-
this.setEventListener();
|
|
9701
|
-
}
|
|
9702
|
-
addUpperCase(value) {
|
|
9703
|
-
if (!value) {
|
|
9704
|
-
this.editor.format(CUSTOM_UPPERCASE_NAME, false);
|
|
9705
|
-
}
|
|
9706
|
-
else {
|
|
9707
|
-
this.editor.format(CUSTOM_UPPERCASE_NAME, 'uppercase');
|
|
9708
|
-
}
|
|
9709
|
-
}
|
|
9710
|
-
addLink(value) {
|
|
9711
|
-
this.linkAlreadyExist = false;
|
|
9712
|
-
if (!value) {
|
|
9713
|
-
this.retrieveExistingLink();
|
|
9714
|
-
}
|
|
9715
|
-
setTimeout(() => {
|
|
9716
|
-
if (!this.currentToolTip) {
|
|
9717
|
-
console.warn('No parent element');
|
|
9718
|
-
}
|
|
9719
|
-
else {
|
|
9720
|
-
this.ngZone.run(() => {
|
|
9721
|
-
let leftStyle = this.currentToolTip.style.left;
|
|
9722
|
-
let widthStyle = this.currentToolTip.style.width;
|
|
9723
|
-
const topStyle = this.currentToolTip.style.top;
|
|
9724
|
-
if (this.offset && widthStyle.replace('px', '') < 500) {
|
|
9725
|
-
const movedStyle = (520 - parseInt(widthStyle.replace('px', ''), 10)) / 2;
|
|
9726
|
-
widthStyle = '520px';
|
|
9727
|
-
leftStyle = parseInt(leftStyle.replace('px', ''), 10) - movedStyle + 'px';
|
|
9728
|
-
}
|
|
9729
|
-
this.linkStyle =
|
|
9730
|
-
'height:' +
|
|
9731
|
-
this.currentToolTip.clientHeight +
|
|
9732
|
-
'px; width:' +
|
|
9733
|
-
widthStyle +
|
|
9734
|
-
';left:' +
|
|
9735
|
-
leftStyle +
|
|
9736
|
-
';top:' +
|
|
9737
|
-
topStyle;
|
|
9738
|
-
this.openConfig = true;
|
|
9739
|
-
this.currentEditor = this.editor;
|
|
9740
|
-
});
|
|
9741
|
-
}
|
|
9742
|
-
}, 100);
|
|
9743
|
-
}
|
|
9744
|
-
setEventListener() {
|
|
9745
|
-
const currentTool = document.querySelectorAll('.ql-tooltip');
|
|
9746
|
-
currentTool.forEach((element) => {
|
|
9747
|
-
element.addEventListener('click', (event) => {
|
|
9748
|
-
this.currentToolTip = event.target.closest('.ql-tooltip');
|
|
9749
|
-
});
|
|
9750
|
-
});
|
|
9751
|
-
}
|
|
9752
|
-
validThisUrlOnEnter(e) {
|
|
9753
|
-
if (e.keyCode === 13) {
|
|
9754
|
-
this.validThisUrl();
|
|
9755
|
-
}
|
|
9756
|
-
}
|
|
9757
|
-
validThisUrl() {
|
|
9758
|
-
if (this.currentEditor) {
|
|
9759
|
-
// Reset the link, avoid href = [Object Object]
|
|
9760
|
-
if (this.linkAlreadyExist) {
|
|
9761
|
-
this.removeLink();
|
|
9762
|
-
}
|
|
9763
|
-
this.currentEditor.format(CUSTOM_LINK_NAME, { target: !this.checked, value: this.linkConfig, crypted: this.crypted });
|
|
9764
|
-
}
|
|
9765
|
-
this.closeUrlConfig();
|
|
9766
|
-
}
|
|
9767
|
-
closeUrlConfig() {
|
|
9768
|
-
this.openConfig = false;
|
|
9769
|
-
this.linkConfig = '';
|
|
9770
|
-
this.checked = false;
|
|
9771
|
-
}
|
|
9772
|
-
isEmpty(content) {
|
|
9773
|
-
const commentText = content.trim();
|
|
9774
|
-
const re = /^<[ph0-9]+>(<br>|<br\/>|<br\s\/>|\s+|)<\/[ph0-9]+>$/gm;
|
|
9775
|
-
return re.test(commentText);
|
|
9776
|
-
}
|
|
9777
|
-
focusThis(event) {
|
|
9778
|
-
this.editor = event.editor;
|
|
9779
|
-
this.quillService.setFocused(this.uuid);
|
|
9780
|
-
}
|
|
9781
|
-
onFocusLost() {
|
|
9782
|
-
this.tooltipLostFocus.emit(true);
|
|
9783
|
-
}
|
|
9784
|
-
retrieveExistingLink() {
|
|
9785
|
-
try {
|
|
9786
|
-
const linkFormat = this.editor.getFormat()[CUSTOM_LINK_NAME];
|
|
9787
|
-
if (!linkFormat.target) {
|
|
9788
|
-
this.checked = true;
|
|
9789
|
-
}
|
|
9790
|
-
this.linkConfig = linkFormat.crypted ? atob(linkFormat.crypted) : linkFormat.value ? linkFormat.value : linkFormat[0].value;
|
|
9791
|
-
this.linkAlreadyExist = true;
|
|
9792
|
-
}
|
|
9793
|
-
catch (error) {
|
|
9794
|
-
return;
|
|
9795
|
-
}
|
|
9796
|
-
}
|
|
9797
|
-
onRemoveLink() {
|
|
9798
|
-
this.removeLink();
|
|
9799
|
-
}
|
|
9800
|
-
removeLink() {
|
|
9801
|
-
this.currentEditor.format(CUSTOM_LINK_NAME);
|
|
9802
|
-
}
|
|
9803
|
-
isSetDefaultTextColorAction(delta) {
|
|
9804
|
-
for (const ope of delta.ops) {
|
|
9805
|
-
if (ope.attributes && ope.attributes.color === '#ff9901') {
|
|
9806
|
-
return true;
|
|
9807
|
-
}
|
|
9808
|
-
}
|
|
9809
|
-
return false;
|
|
9810
|
-
}
|
|
9811
|
-
/**
|
|
9812
|
-
* Quill has the black color by default.
|
|
9813
|
-
* Adding black color avoid hidding text in the front (when the default color text in the front is white)
|
|
9814
|
-
*/
|
|
9815
|
-
setTextBlackColor() {
|
|
9816
|
-
this.editor.format('color', false);
|
|
9817
|
-
}
|
|
9818
|
-
lineBreakMatcher() {
|
|
9819
|
-
var newDelta = new Delta();
|
|
9820
|
-
newDelta.insert({ break: '' });
|
|
9821
|
-
return newDelta;
|
|
9822
|
-
}
|
|
9823
|
-
}
|
|
9824
|
-
QuillComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: QuillComponent, deps: [{ token: i0.NgZone }, { token: QuillService }, { token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9825
|
-
QuillComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: QuillComponent, selector: "wb-quill", inputs: { content: "content", offset: "offset", toolbar: "toolbar", color: "color", placeholder: "placeholder" }, outputs: { contentChange: "contentChange", isTooltipFocused: "isTooltipFocused", tooltipLostFocus: "tooltipLostFocus" }, ngImport: i0, template: "<div class=\"wb-quill-editor\" [ngClass]=\"{ 'is-light': colorTint }\" #editor wbAutoHide (clickOutside)=\"onFocusLost()\">\n <quill-editor\n theme=\"bubble\"\n [placeholder]=\"placeholder\"\n [modules]=\"modules\"\n [(ngModel)]=\"tmpContent\"\n (onContentChanged)=\"contentChanged($event)\"\n (onEditorCreated)=\"editorLoaded($event)\"\n (onFocus)=\"focusThis($event)\"\n ></quill-editor>\n\n <div *ngIf=\"openConfig\" class=\"wb-quill-editor__toolbar\" [style]=\"linkStyle | safeStyle\">\n <div wbAutoHide (clickOutside)=\"closeUrlConfig()\">\n <div>\n <input\n placeholder=\"https://www.myshop.fr ou /mylink/\"\n type=\"text\"\n [(ngModel)]=\"linkConfig\"\n (keyup)=\"validThisUrlOnEnter($event)\"\n />\n </div>\n <div>\n <label for=\"switchCheckboxQuill\">{{ 'wb.shared.components.quill.2' | translate }}</label>\n <input\n id=\"switchCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"checked\"\n (change)=\"checked = !checked\"\n />\n <label for=\"switchCheckboxQuill\"></label>\n </div>\n <!--\n <div>\n <label for=\"cryptedCheckboxQuill\">{{ 'wb.shared.components.quill.crypted' | translate }}</label>\n <input\n id=\"cryptedCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"crypted\"\n (change)=\"crypted = !crypted\"\n />\n <label for=\"cryptedCheckboxQuill\"></label>\n </div>\n -->\n <div class=\"flex-oneline\">\n <label class=\"flex-oneline\" for=\"cryptedCheckboxQuill\"\n >{{ 'wb.shared.components.quill.crypted' | translate\n }}<span class=\"infobulle\"\n ><i class=\"fas fa-info-circle\"></i\n ><span [innerHTML]=\"'wb.shared.components.quill.crypted_infobulle' | translate\"></span></span\n ></label>\n <input\n id=\"cryptedCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"crypted\"\n (change)=\"crypted = !crypted\"\n />\n <label class=\"fixes-transformY\" for=\"cryptedCheckboxQuill\"></label>\n </div>\n <div>\n <button (click)=\"validThisUrl()\">{{ 'wb.shared.components.quill.3' | translate }}</button>\n </div>\n <div *ngIf=\"linkAlreadyExist\">\n <button (click)=\"onRemoveLink()\">\n <i class=\"far fa-unlink\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"sourceCode\" class=\"wb-quill-editor__source\">\n <div class=\"wb-quill-editor__source__close\"><i class=\"fas fa-times\"></i></div>\n <div class=\"wb-quill-editor__source__wrapper\" wbAutoHide>\n <label for=\"sourceCodeTextareaQuill\">Modifier le code source du texte</label>\n <textarea id=\"sourceCodeTextareaQuill\" [(ngModel)]=\"sourceCodeValue\"></textarea>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: AutoHideDirective, selector: "[wbAutoHide]", inputs: ["triggerElement", "forceOn"], outputs: ["clickOutside"] }, { kind: "component", type: i6$1.QuillEditorComponent, selector: "quill-editor" }, { kind: "pipe", type: SafeStylePipe, name: "safeStyle" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
|
|
9826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: QuillComponent, decorators: [{
|
|
9827
|
-
type: Component,
|
|
9828
|
-
args: [{ selector: 'wb-quill', template: "<div class=\"wb-quill-editor\" [ngClass]=\"{ 'is-light': colorTint }\" #editor wbAutoHide (clickOutside)=\"onFocusLost()\">\n <quill-editor\n theme=\"bubble\"\n [placeholder]=\"placeholder\"\n [modules]=\"modules\"\n [(ngModel)]=\"tmpContent\"\n (onContentChanged)=\"contentChanged($event)\"\n (onEditorCreated)=\"editorLoaded($event)\"\n (onFocus)=\"focusThis($event)\"\n ></quill-editor>\n\n <div *ngIf=\"openConfig\" class=\"wb-quill-editor__toolbar\" [style]=\"linkStyle | safeStyle\">\n <div wbAutoHide (clickOutside)=\"closeUrlConfig()\">\n <div>\n <input\n placeholder=\"https://www.myshop.fr ou /mylink/\"\n type=\"text\"\n [(ngModel)]=\"linkConfig\"\n (keyup)=\"validThisUrlOnEnter($event)\"\n />\n </div>\n <div>\n <label for=\"switchCheckboxQuill\">{{ 'wb.shared.components.quill.2' | translate }}</label>\n <input\n id=\"switchCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"checked\"\n (change)=\"checked = !checked\"\n />\n <label for=\"switchCheckboxQuill\"></label>\n </div>\n <!--\n <div>\n <label for=\"cryptedCheckboxQuill\">{{ 'wb.shared.components.quill.crypted' | translate }}</label>\n <input\n id=\"cryptedCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"crypted\"\n (change)=\"crypted = !crypted\"\n />\n <label for=\"cryptedCheckboxQuill\"></label>\n </div>\n -->\n <div class=\"flex-oneline\">\n <label class=\"flex-oneline\" for=\"cryptedCheckboxQuill\"\n >{{ 'wb.shared.components.quill.crypted' | translate\n }}<span class=\"infobulle\"\n ><i class=\"fas fa-info-circle\"></i\n ><span [innerHTML]=\"'wb.shared.components.quill.crypted_infobulle' | translate\"></span></span\n ></label>\n <input\n id=\"cryptedCheckboxQuill\"\n type=\"checkbox\"\n name=\"switchCheckboxQuill\"\n class=\"switch is-rounded is-success\"\n [checked]=\"crypted\"\n (change)=\"crypted = !crypted\"\n />\n <label class=\"fixes-transformY\" for=\"cryptedCheckboxQuill\"></label>\n </div>\n <div>\n <button (click)=\"validThisUrl()\">{{ 'wb.shared.components.quill.3' | translate }}</button>\n </div>\n <div *ngIf=\"linkAlreadyExist\">\n <button (click)=\"onRemoveLink()\">\n <i class=\"far fa-unlink\"></i>\n </button>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"sourceCode\" class=\"wb-quill-editor__source\">\n <div class=\"wb-quill-editor__source__close\"><i class=\"fas fa-times\"></i></div>\n <div class=\"wb-quill-editor__source__wrapper\" wbAutoHide>\n <label for=\"sourceCodeTextareaQuill\">Modifier le code source du texte</label>\n <textarea id=\"sourceCodeTextareaQuill\" [(ngModel)]=\"sourceCodeValue\"></textarea>\n </div>\n </div>\n</div>\n" }]
|
|
9829
|
-
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: QuillService }, { type: i1.TranslateService }]; }, propDecorators: { contentChange: [{
|
|
9830
|
-
type: Output
|
|
9831
|
-
}], isTooltipFocused: [{
|
|
9832
|
-
type: Output
|
|
9833
|
-
}], tooltipLostFocus: [{
|
|
9834
|
-
type: Output
|
|
9835
|
-
}], content: [{
|
|
9836
|
-
type: Input
|
|
9837
|
-
}], offset: [{
|
|
9838
|
-
type: Input
|
|
9839
|
-
}], toolbar: [{
|
|
9840
|
-
type: Input
|
|
9841
|
-
}], color: [{
|
|
9842
|
-
type: Input
|
|
9843
|
-
}], placeholder: [{
|
|
9844
|
-
type: Input
|
|
9845
|
-
}] } });
|
|
9846
|
-
|
|
9847
9547
|
class AutofocusDirective {
|
|
9848
9548
|
constructor(el) {
|
|
9849
9549
|
this.el = el;
|
|
@@ -22927,7 +22627,6 @@ const components$1 = [
|
|
|
22927
22627
|
LoaderComponent,
|
|
22928
22628
|
SmallLoaderComponent,
|
|
22929
22629
|
StarComponent,
|
|
22930
|
-
QuillComponent,
|
|
22931
22630
|
FaqComponent,
|
|
22932
22631
|
EditorJsComponent,
|
|
22933
22632
|
];
|
|
@@ -22948,15 +22647,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
22948
22647
|
LoaderComponent,
|
|
22949
22648
|
SmallLoaderComponent,
|
|
22950
22649
|
StarComponent,
|
|
22951
|
-
QuillComponent,
|
|
22952
22650
|
FaqComponent,
|
|
22953
22651
|
EditorJsComponent], imports: [CommonModule,
|
|
22954
22652
|
NgScrollbarModule,
|
|
22955
22653
|
FormsModule,
|
|
22956
22654
|
NwbAllModule,
|
|
22957
22655
|
SharedPipesModule,
|
|
22958
|
-
SharedDirectivesModule,
|
|
22959
|
-
QuillModule, i1.TranslateModule], exports: [StructureToolsComponent,
|
|
22656
|
+
SharedDirectivesModule, i1.TranslateModule], exports: [StructureToolsComponent,
|
|
22960
22657
|
StructureConfigComponent,
|
|
22961
22658
|
StructureConfigInputComponent,
|
|
22962
22659
|
StructureConfigCheckboxComponent,
|
|
@@ -22970,7 +22667,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
22970
22667
|
LoaderComponent,
|
|
22971
22668
|
SmallLoaderComponent,
|
|
22972
22669
|
StarComponent,
|
|
22973
|
-
QuillComponent,
|
|
22974
22670
|
FaqComponent,
|
|
22975
22671
|
EditorJsComponent] });
|
|
22976
22672
|
SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedComponentsModule, imports: [CommonModule,
|
|
@@ -22979,7 +22675,6 @@ SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
22979
22675
|
NwbAllModule,
|
|
22980
22676
|
SharedPipesModule,
|
|
22981
22677
|
SharedDirectivesModule,
|
|
22982
|
-
QuillModule,
|
|
22983
22678
|
TranslateModule.forChild()] });
|
|
22984
22679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: SharedComponentsModule, decorators: [{
|
|
22985
22680
|
type: NgModule,
|
|
@@ -22991,7 +22686,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImpor
|
|
|
22991
22686
|
NwbAllModule,
|
|
22992
22687
|
SharedPipesModule,
|
|
22993
22688
|
SharedDirectivesModule,
|
|
22994
|
-
QuillModule,
|
|
22995
22689
|
TranslateModule.forChild(),
|
|
22996
22690
|
],
|
|
22997
22691
|
declarations: components$1,
|