@acorex/components 18.12.1 → 18.12.3
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.mjs +43 -31
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.mjs +11 -5
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.mjs +7 -12
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.mjs +6 -11
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.mjs +23 -28
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.mjs +5 -11
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs +4 -10
- package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.mjs +10 -15
- package/fesm2022/acorex-components-wysiwyg.mjs +93 -107
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/package.json +36 -36
- package/wysiwyg/lib/wysiwyg/wysiwyg-container/wysiwyg-container.component.d.ts +3 -7
- package/wysiwyg/lib/wysiwyg/wysiwyg-toolbar/wysiwyg-toolbar.component.d.ts +1 -0
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-alignment/wysiwyg-alignment.component.d.ts +0 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-colors/wysiwyg-colors.component.d.ts +0 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-font-style/wysiwyg-font-style.component.d.ts +0 -3
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.d.ts +0 -5
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.d.ts +0 -5
- package/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-list/wysiwyg-list.component.d.ts +0 -3
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Component, effect, inject, signal } from '@angular/core';
|
2
2
|
import { AXWysiwygContainerComponent } from '../../wysiwyg-container/wysiwyg-container.component';
|
3
3
|
import { AXWysiwygService } from '../../wysiwyg.service';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -16,8 +16,6 @@ export class AXWysiwygFontStyleComponent {
|
|
16
16
|
/** @ignore */
|
17
17
|
this.parent = inject(AXWysiwygContainerComponent);
|
18
18
|
/** @ignore */
|
19
|
-
this.wysiwyg = signal(null);
|
20
|
-
/** @ignore */
|
21
19
|
this.boldState = signal(false);
|
22
20
|
/** @ignore */
|
23
21
|
this.italicState = signal(false);
|
@@ -30,97 +28,94 @@ export class AXWysiwygFontStyleComponent {
|
|
30
28
|
/** @ignore */
|
31
29
|
this.service = inject(AXWysiwygService);
|
32
30
|
effect(() => {
|
33
|
-
if (!this.wysiwyg())
|
31
|
+
if (!this.service.wysiwyg())
|
34
32
|
return;
|
35
33
|
this.service.currentSelectedElemArray().forEach((item) => {
|
36
34
|
switch (item) {
|
37
35
|
case 'U':
|
38
|
-
this.wysiwyg().underLine(true);
|
36
|
+
this.service.wysiwyg().underLine(true);
|
39
37
|
this.underLineState.set(true);
|
40
38
|
break;
|
41
39
|
case 'S':
|
42
|
-
this.wysiwyg().strike(true);
|
40
|
+
this.service.wysiwyg().strike(true);
|
43
41
|
this.strikeLineState.set(true);
|
44
42
|
break;
|
45
43
|
case 'EM':
|
46
|
-
this.wysiwyg().italic(true);
|
44
|
+
this.service.wysiwyg().italic(true);
|
47
45
|
this.italicState.set(true);
|
48
46
|
break;
|
49
47
|
case 'STRONG':
|
50
|
-
this.wysiwyg().bold(true);
|
48
|
+
this.service.wysiwyg().bold(true);
|
51
49
|
this.boldState.set(true);
|
52
50
|
break;
|
53
51
|
default:
|
54
52
|
if (this.boldState())
|
55
|
-
this.wysiwyg().bold(true);
|
53
|
+
this.service.wysiwyg().bold(true);
|
56
54
|
if (this.italicState())
|
57
|
-
this.wysiwyg().italic(true);
|
55
|
+
this.service.wysiwyg().italic(true);
|
58
56
|
if (this.strikeLineState())
|
59
|
-
this.wysiwyg().strike(true);
|
57
|
+
this.service.wysiwyg().strike(true);
|
60
58
|
if (this.underLineState())
|
61
|
-
this.wysiwyg().underLine(true);
|
59
|
+
this.service.wysiwyg().underLine(true);
|
62
60
|
}
|
63
61
|
});
|
64
62
|
}, { allowSignalWrites: true });
|
65
|
-
afterNextRender(() => {
|
66
|
-
this.wysiwyg.set(this.service.wysiwyg());
|
67
|
-
});
|
68
63
|
}
|
69
64
|
/** @ignore */
|
70
65
|
bold() {
|
71
66
|
if (this.boldState()) {
|
72
|
-
this.wysiwyg().bold(false);
|
67
|
+
this.service.wysiwyg().bold(false);
|
73
68
|
this.boldState.set(false);
|
74
69
|
}
|
75
70
|
else {
|
76
|
-
this.wysiwyg().bold(true);
|
71
|
+
this.service.wysiwyg().bold(true);
|
77
72
|
this.boldState.set(true);
|
78
73
|
}
|
79
74
|
}
|
80
75
|
/** @ignore */
|
81
76
|
italic() {
|
82
77
|
if (this.italicState()) {
|
83
|
-
this.wysiwyg().italic(false);
|
78
|
+
this.service.wysiwyg().italic(false);
|
84
79
|
this.italicState.set(false);
|
85
80
|
}
|
86
81
|
else {
|
87
|
-
this.wysiwyg().italic(true);
|
82
|
+
this.service.wysiwyg().italic(true);
|
88
83
|
this.italicState.set(true);
|
89
84
|
}
|
90
85
|
}
|
91
86
|
/** @ignore */
|
92
87
|
underLine() {
|
93
88
|
if (this.underLineState()) {
|
94
|
-
this.wysiwyg().underLine(false);
|
89
|
+
this.service.wysiwyg().underLine(false);
|
95
90
|
this.underLineState.set(false);
|
96
91
|
}
|
97
92
|
else {
|
98
|
-
this.wysiwyg().underLine(true);
|
93
|
+
this.service.wysiwyg().underLine(true);
|
99
94
|
this.underLineState.set(true);
|
100
95
|
}
|
101
96
|
}
|
102
97
|
/** @ignore */
|
103
98
|
strike() {
|
104
99
|
if (this.strikeLineState()) {
|
105
|
-
this.wysiwyg().strike(false);
|
100
|
+
this.service.wysiwyg().strike(false);
|
106
101
|
this.strikeLineState.set(false);
|
107
102
|
}
|
108
103
|
else {
|
109
|
-
this.wysiwyg().strike(true);
|
104
|
+
this.service.wysiwyg().strike(true);
|
110
105
|
this.strikeLineState.set(true);
|
111
106
|
}
|
112
107
|
}
|
113
108
|
/** @ignore */
|
114
109
|
fontSizeHandler(e) {
|
115
|
-
const range = this.wysiwyg().
|
116
|
-
if (!range
|
110
|
+
const range = this.service.wysiwyg()?.quillObj().getSelection();
|
111
|
+
if (!range?.length)
|
117
112
|
return;
|
118
113
|
if (e === 'medium') {
|
119
|
-
this.wysiwyg().fontSize(false, range);
|
114
|
+
this.service.wysiwyg().fontSize(false, range);
|
120
115
|
this.selectedFont.set('medium');
|
121
116
|
}
|
122
117
|
else {
|
123
|
-
this.wysiwyg().fontSize(e, range);
|
118
|
+
this.service.wysiwyg().fontSize(e, range);
|
124
119
|
this.selectedFont.set(e);
|
125
120
|
}
|
126
121
|
}
|
@@ -131,4 +126,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
131
126
|
type: Component,
|
132
127
|
args: [{ selector: 'ax-wysiwyg-font-style', template: "<div class=\"ax-wysiwyg-font-style-container\">\n <ax-button (click)=\"bold()\" look=\"blank\" [selected]=\"boldState() ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-bold\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"italic()\" look=\"blank\" [selected]=\"italicState() ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-italic\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"underLine()\" look=\"blank\" [selected]=\"underLineState() ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-under-line\"></ax-icon>\n </ax-button>\n\n <ax-button (click)=\"strike()\" look=\"blank\" [selected]=\"strikeLineState() ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-strike\"></ax-icon>\n </ax-button>\n\n <ax-select-box\n [look]=\"this.parent.look\"\n (ngModelChange)=\"fontSizeHandler($event)\"\n [ngModel]=\"selectedFont()\"\n [dataSource]=\"['small', 'medium', 'large', 'huge']\"\n placeholder=\"Choose...\"\n >\n </ax-select-box>\n</div>\n", styles: [".ax-wysiwyg-font-style-container{display:flex;justify-content:flex-start;align-items:center}\n"] }]
|
133
128
|
}], ctorParameters: () => [] });
|
134
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy1mb250LXN0eWxlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXRvb2xzL3d5c2l3eWctZm9udC1zdHlsZS93eXNpd3lnLWZvbnQtc3R5bGUuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3d5c2l3eWcvc3JjL2xpYi93eXNpd3lnL3d5c2l3eWctdG9vbHMvd3lzaXd5Zy1mb250LXN0eWxlL3d5c2l3eWctZm9udC1zdHlsZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQUUsZUFBZSxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRixPQUFPLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxxREFBcUQsQ0FBQztBQUNsRyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx1QkFBd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laG9sZGVyPVwiQ2hvb3NlLi4uXCJcbiAgPlxuICA8L2F4LXNlbGVjdC1ib3g+XG48L2Rpdj5cbiJdfQ==
|
package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-history/wysiwyg-history.component.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Component, inject, ViewEncapsulation } from '@angular/core';
|
2
2
|
import { AXWysiwygService } from '../../wysiwyg.service';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@acorex/components/button";
|
@@ -8,23 +8,17 @@ import * as i2 from "@acorex/components/decorators";
|
|
8
8
|
* @category Components
|
9
9
|
*/
|
10
10
|
export class AXWysiwygHistoryComponent {
|
11
|
-
/** @ignore */
|
12
11
|
constructor() {
|
13
12
|
/** @ignore */
|
14
13
|
this.service = inject(AXWysiwygService);
|
15
|
-
/** @ignore */
|
16
|
-
this.wysiwyg = signal(null);
|
17
|
-
afterNextRender(() => {
|
18
|
-
this.wysiwyg.set(this.service.wysiwyg());
|
19
|
-
});
|
20
14
|
}
|
21
15
|
/** @ignore */
|
22
16
|
undo() {
|
23
|
-
this.wysiwyg().undo();
|
17
|
+
this.service.wysiwyg().undo();
|
24
18
|
}
|
25
19
|
/** @ignore */
|
26
20
|
redo() {
|
27
|
-
this.wysiwyg().redo();
|
21
|
+
this.service.wysiwyg().redo();
|
28
22
|
}
|
29
23
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXWysiwygHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
30
24
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXWysiwygHistoryComponent, selector: "ax-wysiwyg-history", ngImport: i0, template: "<ax-button class=\"\" (click)=\"undo()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-undo\"></ax-icon>\n</ax-button>\n\n<ax-button class=\"\" (click)=\"redo()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-redo\"></ax-icon>\n</ax-button>\n", styles: [""], dependencies: [{ kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
@@ -32,5 +26,5 @@ export class AXWysiwygHistoryComponent {
|
|
32
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXWysiwygHistoryComponent, decorators: [{
|
33
27
|
type: Component,
|
34
28
|
args: [{ selector: 'ax-wysiwyg-history', encapsulation: ViewEncapsulation.None, template: "<ax-button class=\"\" (click)=\"undo()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-undo\"></ax-icon>\n</ax-button>\n\n<ax-button class=\"\" (click)=\"redo()\" look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-redo\"></ax-icon>\n</ax-button>\n" }]
|
35
|
-
}]
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
29
|
+
}] });
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy1oaXN0b3J5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXRvb2xzL3d5c2l3eWctaGlzdG9yeS93eXNpd3lnLWhpc3RvcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi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5cbjwvYXgtYnV0dG9uPlxuIl19
|
package/esm2022/wysiwyg/lib/wysiwyg/wysiwyg-tools/wysiwyg-insert/wysiwyg-insert.component.mjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Component, ViewEncapsulation,
|
1
|
+
import { Component, ViewEncapsulation, inject } from '@angular/core';
|
2
2
|
import { AXWysiwygService } from '../../wysiwyg.service';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@acorex/components/button";
|
@@ -11,13 +11,10 @@ import * as i5 from "@acorex/components/text-box";
|
|
11
11
|
* @category Components
|
12
12
|
*/
|
13
13
|
export class AXWysiwygInsertComponent {
|
14
|
-
/** @ignore */
|
15
14
|
constructor() {
|
16
15
|
/** @ignore */
|
17
16
|
this.service = inject(AXWysiwygService);
|
18
17
|
/** @ignore */
|
19
|
-
this.wysiwyg = signal(null);
|
20
|
-
/** @ignore */
|
21
18
|
this.textBoxOptions = {
|
22
19
|
text: '',
|
23
20
|
placeholder: 'Enter yor url ...',
|
@@ -31,13 +28,10 @@ export class AXWysiwygInsertComponent {
|
|
31
28
|
offsetX: 0,
|
32
29
|
offsetY: 0,
|
33
30
|
};
|
34
|
-
afterNextRender(() => {
|
35
|
-
this.wysiwyg.set(this.service.wysiwyg());
|
36
|
-
});
|
37
31
|
}
|
38
32
|
/** @ignore */
|
39
33
|
submitLink() {
|
40
|
-
this.wysiwyg().addImage(this.textBoxOptions.text);
|
34
|
+
this.service.wysiwyg().addImage(this.textBoxOptions.text);
|
41
35
|
}
|
42
36
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXWysiwygInsertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
43
37
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXWysiwygInsertComponent, selector: "ax-wysiwyg-insert", ngImport: i0, template: "<ax-button #linkBtn look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-image\"></ax-icon>\n</ax-button>\n\n<ax-popover\n [openOn]=\"popoverOption.openOn\"\n [closeOn]=\"popoverOption.closeOn\"\n [target]=\"linkBtn\"\n [placement]=\"popoverOption.placement\"\n>\n <div class=\"ax-overlay-pane ax-insert-container\">\n <ax-text-box\n class=\"{{ textBoxOptions.size }}\"\n [(ngModel)]=\"textBoxOptions.text\"\n [placeholder]=\"textBoxOptions.placeholder\"\n >\n <ax-suffix>\n <ax-button (click)=\"submitLink()\" class=\"ax-sm\" color=\"secondary\" text=\"Add\"> </ax-button>\n </ax-suffix>\n </ax-text-box>\n </div>\n</ax-popover>\n", styles: [".ax-insert-container{display:flex;padding:.5rem}\n"], dependencies: [{ kind: "component", type: i1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: i5.AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "value", "state", "name", "id", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "look", "mask-options", "class"], outputs: ["onBlur", "onFocus", "valueChange", "stateChange", "onValueChanged", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
@@ -45,5 +39,5 @@ export class AXWysiwygInsertComponent {
|
|
45
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXWysiwygInsertComponent, decorators: [{
|
46
40
|
type: Component,
|
47
41
|
args: [{ selector: 'ax-wysiwyg-insert', encapsulation: ViewEncapsulation.None, template: "<ax-button #linkBtn look=\"blank\">\n <ax-icon class=\"ax-icon ax-icon-image\"></ax-icon>\n</ax-button>\n\n<ax-popover\n [openOn]=\"popoverOption.openOn\"\n [closeOn]=\"popoverOption.closeOn\"\n [target]=\"linkBtn\"\n [placement]=\"popoverOption.placement\"\n>\n <div class=\"ax-overlay-pane ax-insert-container\">\n <ax-text-box\n class=\"{{ textBoxOptions.size }}\"\n [(ngModel)]=\"textBoxOptions.text\"\n [placeholder]=\"textBoxOptions.placeholder\"\n >\n <ax-suffix>\n <ax-button (click)=\"submitLink()\" class=\"ax-sm\" color=\"secondary\" text=\"Add\"> </ax-button>\n </ax-suffix>\n </ax-text-box>\n </div>\n</ax-popover>\n", styles: [".ax-insert-container{display:flex;padding:.5rem}\n"] }]
|
48
|
-
}]
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
42
|
+
}] });
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy1pbnNlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3d5c2l3eWcvc3JjL2xpYi93eXNpd3lnL3d5c2l3eWctdG9vbHMv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cbiAgPGRpdiBjbGFzcz1cImF4LW92ZXJsYXktcGFuZSBheC1pbnNlcnQtY29udGFpbmVyXCI+XG4gICAgPGF4LXRleHQtYm94XG4gICAgICBjbGFzcz1cInt7IHRleHRCb3hPcHRpb25zLnNpemUgfX1cIlxuICAgICAgWyhuZ01vZGVsKV09XCJ0ZXh0Qm94T3B0aW9ucy50ZXh0XCJcbiAgICAgIFtwbGFjZWhvbGRlcl09XCJ0ZXh0Qm94T3B0aW9ucy5wbGFjZWhvbGRlclwiXG4gICAgPlxuICAgICAgPGF4LXN1ZmZpeD5cbiAgICAgICAgPGF4LWJ1dHRvbiAoY2xpY2spPVwic3VibWl0TGluaygpXCIgY2xhc3M9XCJheC1zbVwiIGNvbG9yPVwic2Vjb25kYXJ5XCIgdGV4dD1cIkFkZFwiPiA8L2F4LWJ1dHRvbj5cbiAgICAgIDwvYXgtc3VmZml4PlxuICAgIDwvYXgtdGV4dC1ib3g+XG4gIDwvZGl2PlxuPC9heC1wb3BvdmVyPlxuIl19
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Component, effect, inject, signal, ViewEncapsulation } from '@angular/core';
|
2
2
|
import { AXWysiwygService } from '../../wysiwyg.service';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@acorex/components/button";
|
@@ -13,49 +13,44 @@ export class AXWysiwygListComponent {
|
|
13
13
|
/** @ignore */
|
14
14
|
this.service = inject(AXWysiwygService);
|
15
15
|
/** @ignore */
|
16
|
-
this.wysiwyg = signal(null);
|
17
|
-
/** @ignore */
|
18
16
|
this.listState = signal('');
|
19
17
|
effect(() => {
|
20
|
-
if (!this.wysiwyg())
|
18
|
+
if (!this.service.wysiwyg())
|
21
19
|
return;
|
22
20
|
switch (this.service.currentSelectedElemList()) {
|
23
21
|
case 'ordered':
|
24
|
-
this.wysiwyg().list('ordered');
|
22
|
+
this.service.wysiwyg().list('ordered');
|
25
23
|
this.listState.set('ordered');
|
26
24
|
break;
|
27
25
|
case 'bullet':
|
28
|
-
this.wysiwyg().list('bullet');
|
26
|
+
this.service.wysiwyg().list('bullet');
|
29
27
|
this.listState.set('bullet');
|
30
28
|
break;
|
31
29
|
default:
|
32
|
-
this.wysiwyg().list('');
|
30
|
+
this.service.wysiwyg().list('');
|
33
31
|
this.listState.set('');
|
34
32
|
}
|
35
33
|
}, { allowSignalWrites: true });
|
36
|
-
afterNextRender(() => {
|
37
|
-
this.wysiwyg.set(this.service.wysiwyg());
|
38
|
-
});
|
39
34
|
}
|
40
35
|
/** @ignore */
|
41
36
|
orderList() {
|
42
37
|
if (!this.listState() || this.listState() === 'bullet') {
|
43
|
-
this.wysiwyg().list('ordered');
|
38
|
+
this.service.wysiwyg().list('ordered');
|
44
39
|
this.listState.set('ordered');
|
45
40
|
}
|
46
41
|
else {
|
47
|
-
this.wysiwyg().list('');
|
42
|
+
this.service.wysiwyg().list('');
|
48
43
|
this.listState.set('');
|
49
44
|
}
|
50
45
|
}
|
51
46
|
/** @ignore */
|
52
47
|
unOrderList() {
|
53
48
|
if (!this.listState() || this.listState() === 'ordered') {
|
54
|
-
this.wysiwyg().list('bullet');
|
49
|
+
this.service.wysiwyg().list('bullet');
|
55
50
|
this.listState.set('bullet');
|
56
51
|
}
|
57
52
|
else {
|
58
|
-
this.wysiwyg().list('');
|
53
|
+
this.service.wysiwyg().list('');
|
59
54
|
this.listState.set('');
|
60
55
|
}
|
61
56
|
}
|
@@ -66,4 +61,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
66
61
|
type: Component,
|
67
62
|
args: [{ selector: 'ax-wysiwyg-list', encapsulation: ViewEncapsulation.None, template: "<ax-button (click)=\"orderList()\" look=\"blank\" [selected]=\"listState() === 'ordered' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-order-list\"></ax-icon>\n</ax-button>\n\n<ax-button (click)=\"unOrderList()\" look=\"blank\" [selected]=\"listState() === 'bullet' ? true : false\">\n <ax-icon class=\"ax-icon ax-icon-un-order-list\"></ax-icon>\n</ax-button>\n" }]
|
68
63
|
}], ctorParameters: () => [] });
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3lzaXd5Zy1saXN0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy93eXNpd3lnL3NyYy9saWIvd3lzaXd5Zy93eXNpd3lnLXRvb2xzL3d5c2l3eWctbGlzdC93eXNpd3lnLWxpc3QuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21wb25lbnRzL3d5c2l3eWcvc3JjL2xpYi93eXNpd3lnL3d5c2l3eWctdG9vbHMvd3lzaXd5Zy1saXN0L3d5c2l3eWctbGlzdC5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHVCQUF1QixDQUFDOzs7O0FBRXpEOzs7R0FHRztBQU9ILE1BQU0sT0FBTyxzQkFBc0I7SUFPakMsY0FBYztJQUNkO1FBUEEsY0FBYztRQUNkLFlBQU8sR0FBRyxNQUFNLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUVuQyxjQUFjO1FBQ0osY0FBUyxHQUFHLE1BQU0sQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUkvQixNQUFNLENBQ0osR0FBRyxFQUFFO1lBQ0gsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBT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