@progress/kendo-angular-editor 21.4.1 → 22.0.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/fesm2022/progress-kendo-angular-editor.mjs +196 -196
- package/localization/messages.d.ts +1 -1
- package/package.json +20 -28
- package/schematics/ngAdd/index.js +4 -4
- package/tools/shared/editor-command-base.d.ts +1 -1
- package/esm2022/common/active-marks.mjs +0 -5
- package/esm2022/common/apply-to-word-options.mjs +0 -5
- package/esm2022/common/commands.mjs +0 -5
- package/esm2022/common/css-settings.interface.mjs +0 -5
- package/esm2022/common/direction.mjs +0 -5
- package/esm2022/common/error-messages.mjs +0 -16
- package/esm2022/common/font-family-item.interface.mjs +0 -5
- package/esm2022/common/font-size-item.interface.mjs +0 -5
- package/esm2022/common/format-item.interface.mjs +0 -5
- package/esm2022/common/image-data.interface.mjs +0 -5
- package/esm2022/common/link-data.interface.mjs +0 -5
- package/esm2022/common/paste-cleanup-settings.mjs +0 -5
- package/esm2022/common/plugins-function.mjs +0 -5
- package/esm2022/common/predicate.mjs +0 -5
- package/esm2022/common/provider.service.mjs +0 -17
- package/esm2022/common/resizable-options.interface.mjs +0 -5
- package/esm2022/common/styles.mjs +0 -306
- package/esm2022/common/table-data.interface.mjs +0 -5
- package/esm2022/config/command-icons.mjs +0 -93
- package/esm2022/config/commands.mjs +0 -62
- package/esm2022/config/schema.mjs +0 -22
- package/esm2022/config/semantic-nodes.mjs +0 -27
- package/esm2022/config/table-commands.mjs +0 -14
- package/esm2022/config/utils.mjs +0 -96
- package/esm2022/dialogs/colorpicker-dialog.component.mjs +0 -140
- package/esm2022/dialogs/file-link-dialog.component.mjs +0 -252
- package/esm2022/dialogs/font-family-dialog.component.mjs +0 -115
- package/esm2022/dialogs/font-size-dialog.component.mjs +0 -115
- package/esm2022/dialogs/format-dialog.component.mjs +0 -114
- package/esm2022/dialogs/image-dialog.component.mjs +0 -230
- package/esm2022/dialogs/insert-table-dialog.component.mjs +0 -79
- package/esm2022/dialogs/source-dialog.component.mjs +0 -112
- package/esm2022/directives.mjs +0 -95
- package/esm2022/editor-toolbar-state.mjs +0 -280
- package/esm2022/editor.component.mjs +0 -1319
- package/esm2022/editor.module.mjs +0 -89
- package/esm2022/index.mjs +0 -64
- package/esm2022/localization/custom-messages.component.mjs +0 -53
- package/esm2022/localization/editor-localization.service.mjs +0 -31
- package/esm2022/localization/localized-messages.directive.mjs +0 -35
- package/esm2022/localization/messages.mjs +0 -364
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/preventable-events/paste-event.mjs +0 -32
- package/esm2022/preventable-events/preventable-event.mjs +0 -25
- package/esm2022/progress-kendo-angular-editor.mjs +0 -8
- package/esm2022/tools/alignment/editor-align-center-button.directive.mjs +0 -42
- package/esm2022/tools/alignment/editor-align-justify-button.directive.mjs +0 -42
- package/esm2022/tools/alignment/editor-align-left-button.directive.mjs +0 -42
- package/esm2022/tools/alignment/editor-align-right-button.directive.mjs +0 -42
- package/esm2022/tools/blockquote/editor-blockquote-button.directive.mjs +0 -40
- package/esm2022/tools/colorpicker/editor-back-color.directive.mjs +0 -41
- package/esm2022/tools/colorpicker/editor-colorpicker.component.mjs +0 -377
- package/esm2022/tools/colorpicker/editor-fore-color.directive.mjs +0 -37
- package/esm2022/tools/editor-clean-formatting-button.directive.mjs +0 -41
- package/esm2022/tools/fontfamily/editor-fontfamily-dropdownlist.component.mjs +0 -109
- package/esm2022/tools/fontfamily/editor-fontfamily.component.mjs +0 -297
- package/esm2022/tools/fontsize/editor-fontsize-dropdownlist.component.mjs +0 -98
- package/esm2022/tools/fontsize/editor-fontsize.component.mjs +0 -305
- package/esm2022/tools/format/editor-format-dropdownlist.component.mjs +0 -182
- package/esm2022/tools/format/editor-format.component.mjs +0 -283
- package/esm2022/tools/history/editor-redo-button.directive.mjs +0 -42
- package/esm2022/tools/history/editor-undo-button.directive.mjs +0 -42
- package/esm2022/tools/image/editor-insert-image-button.directive.mjs +0 -41
- package/esm2022/tools/indentation/editor-indent-button.directive.mjs +0 -41
- package/esm2022/tools/indentation/editor-outdent-button.directive.mjs +0 -41
- package/esm2022/tools/link/editor-create-link-button.directive.mjs +0 -41
- package/esm2022/tools/link/editor-insert-file-button.directive.mjs +0 -40
- package/esm2022/tools/link/editor-unlink-button.directive.mjs +0 -41
- package/esm2022/tools/list/editor-insert-ordered-list-button.directive.mjs +0 -41
- package/esm2022/tools/list/editor-insert-unordered-list-button.directive.mjs +0 -42
- package/esm2022/tools/print/editor-print-button.directive.mjs +0 -62
- package/esm2022/tools/select-all/select-all-button.directive.mjs +0 -45
- package/esm2022/tools/shared/dropdown-tool.directive.mjs +0 -40
- package/esm2022/tools/shared/editor-command-base.mjs +0 -78
- package/esm2022/tools/shared/editor-command-button.mjs +0 -37
- package/esm2022/tools/shared/editor-command-dialog.mjs +0 -33
- package/esm2022/tools/source/editor-view-source-button.directive.mjs +0 -41
- package/esm2022/tools/tables/editor-add-column-after-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-add-column-before-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-add-row-after-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-add-row-before-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-delete-column-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-delete-row-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-delete-table-button.directive.mjs +0 -42
- package/esm2022/tools/tables/editor-insert-table-button.component.mjs +0 -307
- package/esm2022/tools/tables/editor-merge-cells-button.directive.mjs +0 -44
- package/esm2022/tools/tables/editor-split-cell-button.directive.mjs +0 -44
- package/esm2022/tools/tables/popup-table-grid.component.mjs +0 -117
- package/esm2022/tools/tools.service.mjs +0 -22
- package/esm2022/tools/typographical-emphasis/editor-bold-button.directive.mjs +0 -42
- package/esm2022/tools/typographical-emphasis/editor-italic-button.directive.mjs +0 -42
- package/esm2022/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +0 -42
- package/esm2022/tools/typographical-emphasis/editor-subscript-button.directive.mjs +0 -42
- package/esm2022/tools/typographical-emphasis/editor-superscript-button.directive.mjs +0 -42
- package/esm2022/tools/typographical-emphasis/editor-underline-button.directive.mjs +0 -42
- package/esm2022/util.mjs +0 -130
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
7
|
-
import { DialogContentBase, DialogRef, DialogActionsComponent, DialogTitleBarComponent } from '@progress/kendo-angular-dialog';
|
|
8
|
-
import { TextBoxComponent, CheckBoxDirective, FormFieldComponent } from '@progress/kendo-angular-inputs';
|
|
9
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
10
|
-
import { LabelDirective, LabelComponent } from '@progress/kendo-angular-label';
|
|
11
|
-
import { getMark, getSelectionText, expandSelection } from '@progress/kendo-editor-common';
|
|
12
|
-
import { isPresent } from '../util';
|
|
13
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
14
|
-
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
16
|
-
import * as i2 from "../localization/editor-localization.service";
|
|
17
|
-
import * as i3 from "@angular/forms";
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export class FileLinkDialogComponent extends DialogContentBase {
|
|
22
|
-
dialog;
|
|
23
|
-
localization;
|
|
24
|
-
editor;
|
|
25
|
-
command;
|
|
26
|
-
hrefInput;
|
|
27
|
-
linkForm = new FormGroup({
|
|
28
|
-
'href': new FormControl('', Validators.required),
|
|
29
|
-
'text': new FormControl({ value: '', disabled: true }, Validators.required),
|
|
30
|
-
'title': new FormControl('')
|
|
31
|
-
});
|
|
32
|
-
constructor(dialog, localization) {
|
|
33
|
-
super(dialog);
|
|
34
|
-
this.dialog = dialog;
|
|
35
|
-
this.localization = localization;
|
|
36
|
-
}
|
|
37
|
-
onCancelAction() {
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
}
|
|
40
|
-
onConfirmAction() {
|
|
41
|
-
const linkData = this.getData();
|
|
42
|
-
this.editor.exec(this.command, linkData);
|
|
43
|
-
this.dialog.close();
|
|
44
|
-
this.editor.view.focus();
|
|
45
|
-
}
|
|
46
|
-
get titleText() {
|
|
47
|
-
return this.localization.get(this.command);
|
|
48
|
-
}
|
|
49
|
-
setData(state, options) {
|
|
50
|
-
if (this.command === 'createLink') {
|
|
51
|
-
this.linkForm.addControl('target', new FormControl());
|
|
52
|
-
}
|
|
53
|
-
const linkMark = getMark(state, state.schema.marks['link']);
|
|
54
|
-
if (linkMark) {
|
|
55
|
-
this.linkForm.reset({
|
|
56
|
-
href: linkMark.attrs['href'],
|
|
57
|
-
title: linkMark.attrs['title'],
|
|
58
|
-
target: isPresent(linkMark.attrs['target']),
|
|
59
|
-
text: this.setLinkText(state)
|
|
60
|
-
});
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
if (state.selection.empty) {
|
|
64
|
-
const currentState = options.applyToWord ? expandSelection(state, () => { }, options).state : state;
|
|
65
|
-
if (!currentState.selection.empty) {
|
|
66
|
-
this.linkForm.patchValue({
|
|
67
|
-
'text': getSelectionText(currentState)
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
this.linkForm.patchValue({
|
|
73
|
-
'text': getSelectionText(state)
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
textForWithPrefix(key) {
|
|
78
|
-
const prefix = this.command === 'createLink' ? 'link' : 'file';
|
|
79
|
-
return this.textFor(prefix + key);
|
|
80
|
-
}
|
|
81
|
-
textFor(key) {
|
|
82
|
-
return this.localization.get(key);
|
|
83
|
-
}
|
|
84
|
-
setLinkText(state) {
|
|
85
|
-
const selection = state.selection;
|
|
86
|
-
if (selection.empty && selection.$cursor) {
|
|
87
|
-
const cursor = selection.$cursor;
|
|
88
|
-
const cursorNodeIndex = cursor.index();
|
|
89
|
-
const parentNode = cursor.parent;
|
|
90
|
-
return parentNode.child(cursorNodeIndex).text;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return getSelectionText(state);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
getData() {
|
|
97
|
-
const linkData = this.linkForm.value;
|
|
98
|
-
if (isPresent(this.linkForm.controls['target'])) {
|
|
99
|
-
linkData.target = linkData.target ? '_blank' : null;
|
|
100
|
-
}
|
|
101
|
-
return linkData;
|
|
102
|
-
}
|
|
103
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FileLinkDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: FileLinkDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
105
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
106
|
-
{{ titleText }}
|
|
107
|
-
</kendo-dialog-titlebar>
|
|
108
|
-
<form class="k-form k-form-md" novalidate [formGroup]="linkForm">
|
|
109
|
-
<kendo-formfield>
|
|
110
|
-
<kendo-label
|
|
111
|
-
labelCssClass="k-form-label"
|
|
112
|
-
[for]="hrefInput"
|
|
113
|
-
[text]="textForWithPrefix('WebAddress')"
|
|
114
|
-
></kendo-label>
|
|
115
|
-
<kendo-textbox
|
|
116
|
-
#hrefInput
|
|
117
|
-
formControlName="href"
|
|
118
|
-
></kendo-textbox>
|
|
119
|
-
</kendo-formfield>
|
|
120
|
-
<kendo-formfield>
|
|
121
|
-
<kendo-label
|
|
122
|
-
labelCssClass="k-form-label"
|
|
123
|
-
[for]="textInput"
|
|
124
|
-
[text]="textForWithPrefix('Text')"
|
|
125
|
-
></kendo-label>
|
|
126
|
-
<kendo-textbox
|
|
127
|
-
#textInput
|
|
128
|
-
formControlName="text"
|
|
129
|
-
></kendo-textbox>
|
|
130
|
-
</kendo-formfield>
|
|
131
|
-
<kendo-formfield>
|
|
132
|
-
<kendo-label
|
|
133
|
-
labelCssClass="k-form-label"
|
|
134
|
-
[for]="titleInput"
|
|
135
|
-
[text]="textForWithPrefix('Title')"
|
|
136
|
-
></kendo-label>
|
|
137
|
-
<kendo-textbox
|
|
138
|
-
#titleInput
|
|
139
|
-
formControlName="title"
|
|
140
|
-
></kendo-textbox>
|
|
141
|
-
</kendo-formfield>
|
|
142
|
-
@if (command === 'createLink') {
|
|
143
|
-
<kendo-formfield>
|
|
144
|
-
<ng-container>
|
|
145
|
-
<span class="k-checkbox-wrap">
|
|
146
|
-
<input
|
|
147
|
-
id='k-target-blank'
|
|
148
|
-
type='checkbox'
|
|
149
|
-
kendoCheckBox
|
|
150
|
-
formControlName="target"
|
|
151
|
-
/>
|
|
152
|
-
</span>
|
|
153
|
-
<label [labelClass]="false" class='k-checkbox-label' for='k-target-blank'>{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
154
|
-
</ng-container>
|
|
155
|
-
</kendo-formfield>
|
|
156
|
-
}
|
|
157
|
-
</form>
|
|
158
|
-
<kendo-dialog-actions layout="start">
|
|
159
|
-
<button
|
|
160
|
-
kendoButton
|
|
161
|
-
[disabled]="linkForm.invalid"
|
|
162
|
-
[primary]="true"
|
|
163
|
-
(click)="onConfirmAction()"
|
|
164
|
-
>{{ textFor('dialogInsert') }}</button>
|
|
165
|
-
<button
|
|
166
|
-
kendoButton
|
|
167
|
-
(click)="onCancelAction()"
|
|
168
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
169
|
-
</kendo-dialog-actions>
|
|
170
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors", "colSpan"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
171
|
-
}
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
|
|
173
|
-
type: Component,
|
|
174
|
-
args: [{
|
|
175
|
-
template: `
|
|
176
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
177
|
-
{{ titleText }}
|
|
178
|
-
</kendo-dialog-titlebar>
|
|
179
|
-
<form class="k-form k-form-md" novalidate [formGroup]="linkForm">
|
|
180
|
-
<kendo-formfield>
|
|
181
|
-
<kendo-label
|
|
182
|
-
labelCssClass="k-form-label"
|
|
183
|
-
[for]="hrefInput"
|
|
184
|
-
[text]="textForWithPrefix('WebAddress')"
|
|
185
|
-
></kendo-label>
|
|
186
|
-
<kendo-textbox
|
|
187
|
-
#hrefInput
|
|
188
|
-
formControlName="href"
|
|
189
|
-
></kendo-textbox>
|
|
190
|
-
</kendo-formfield>
|
|
191
|
-
<kendo-formfield>
|
|
192
|
-
<kendo-label
|
|
193
|
-
labelCssClass="k-form-label"
|
|
194
|
-
[for]="textInput"
|
|
195
|
-
[text]="textForWithPrefix('Text')"
|
|
196
|
-
></kendo-label>
|
|
197
|
-
<kendo-textbox
|
|
198
|
-
#textInput
|
|
199
|
-
formControlName="text"
|
|
200
|
-
></kendo-textbox>
|
|
201
|
-
</kendo-formfield>
|
|
202
|
-
<kendo-formfield>
|
|
203
|
-
<kendo-label
|
|
204
|
-
labelCssClass="k-form-label"
|
|
205
|
-
[for]="titleInput"
|
|
206
|
-
[text]="textForWithPrefix('Title')"
|
|
207
|
-
></kendo-label>
|
|
208
|
-
<kendo-textbox
|
|
209
|
-
#titleInput
|
|
210
|
-
formControlName="title"
|
|
211
|
-
></kendo-textbox>
|
|
212
|
-
</kendo-formfield>
|
|
213
|
-
@if (command === 'createLink') {
|
|
214
|
-
<kendo-formfield>
|
|
215
|
-
<ng-container>
|
|
216
|
-
<span class="k-checkbox-wrap">
|
|
217
|
-
<input
|
|
218
|
-
id='k-target-blank'
|
|
219
|
-
type='checkbox'
|
|
220
|
-
kendoCheckBox
|
|
221
|
-
formControlName="target"
|
|
222
|
-
/>
|
|
223
|
-
</span>
|
|
224
|
-
<label [labelClass]="false" class='k-checkbox-label' for='k-target-blank'>{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
225
|
-
</ng-container>
|
|
226
|
-
</kendo-formfield>
|
|
227
|
-
}
|
|
228
|
-
</form>
|
|
229
|
-
<kendo-dialog-actions layout="start">
|
|
230
|
-
<button
|
|
231
|
-
kendoButton
|
|
232
|
-
[disabled]="linkForm.invalid"
|
|
233
|
-
[primary]="true"
|
|
234
|
-
(click)="onConfirmAction()"
|
|
235
|
-
>{{ textFor('dialogInsert') }}</button>
|
|
236
|
-
<button
|
|
237
|
-
kendoButton
|
|
238
|
-
(click)="onCancelAction()"
|
|
239
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
240
|
-
</kendo-dialog-actions>
|
|
241
|
-
`,
|
|
242
|
-
standalone: true,
|
|
243
|
-
imports: [DialogTitleBarComponent, ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxComponent, CheckBoxDirective, LabelDirective, DialogActionsComponent, ButtonComponent]
|
|
244
|
-
}]
|
|
245
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }, { type: i2.EditorLocalizationService }], propDecorators: { editor: [{
|
|
246
|
-
type: Input
|
|
247
|
-
}], command: [{
|
|
248
|
-
type: Input
|
|
249
|
-
}], hrefInput: [{
|
|
250
|
-
type: ViewChild,
|
|
251
|
-
args: ['hrefInput']
|
|
252
|
-
}] } });
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogRef, DialogContentBase, DialogActionsComponent, DialogTitleBarComponent } from '@progress/kendo-angular-dialog';
|
|
7
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
8
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
9
|
-
import { EditorComponent } from '../editor.component';
|
|
10
|
-
import { FontFamilyDropDownListComponent } from '../tools/fontfamily/editor-fontfamily-dropdownlist.component';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
13
|
-
import * as i2 from "../localization/editor-localization.service";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export class FontFamilyDialogComponent extends DialogContentBase {
|
|
18
|
-
dialog;
|
|
19
|
-
localization;
|
|
20
|
-
editor;
|
|
21
|
-
fontFamilyDropDownList;
|
|
22
|
-
data = [];
|
|
23
|
-
defaultItem;
|
|
24
|
-
value;
|
|
25
|
-
itemDisabled;
|
|
26
|
-
constructor(dialog, localization) {
|
|
27
|
-
super(dialog);
|
|
28
|
-
this.dialog = dialog;
|
|
29
|
-
this.localization = localization;
|
|
30
|
-
}
|
|
31
|
-
onCancelAction() {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
}
|
|
34
|
-
onConfirmAction() {
|
|
35
|
-
if (this.value) {
|
|
36
|
-
this.editor.exec('fontFamily', this.value);
|
|
37
|
-
}
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
}
|
|
40
|
-
setData(args) {
|
|
41
|
-
this.editor = args.editor;
|
|
42
|
-
this.data = args.data;
|
|
43
|
-
this.defaultItem = args.defaultItem;
|
|
44
|
-
this.value = args.value;
|
|
45
|
-
this.itemDisabled = args.itemDisabled;
|
|
46
|
-
}
|
|
47
|
-
textFor(key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontFamilyDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FontFamilyDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
52
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
53
|
-
{{ textFor('fontFamily') }}
|
|
54
|
-
</kendo-dialog-titlebar>
|
|
55
|
-
<div [style.text-align]="'center'">
|
|
56
|
-
<kendo-editor-fontfamily-dropdownlist
|
|
57
|
-
#fontFamilyDropDownList
|
|
58
|
-
[defaultItem]="defaultItem"
|
|
59
|
-
[data]="data"
|
|
60
|
-
[(value)]="value"
|
|
61
|
-
[itemDisabled]="itemDisabled"
|
|
62
|
-
>
|
|
63
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
64
|
-
</div>
|
|
65
|
-
<kendo-dialog-actions layout="start">
|
|
66
|
-
<button
|
|
67
|
-
kendoButton
|
|
68
|
-
[primary]="true"
|
|
69
|
-
(click)="onConfirmAction()"
|
|
70
|
-
>{{ textFor('dialogApply') }}</button>
|
|
71
|
-
<button
|
|
72
|
-
kendoButton
|
|
73
|
-
(click)="onCancelAction()"
|
|
74
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
75
|
-
</kendo-dialog-actions>
|
|
76
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
77
|
-
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
|
|
79
|
-
type: Component,
|
|
80
|
-
args: [{
|
|
81
|
-
template: `
|
|
82
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
83
|
-
{{ textFor('fontFamily') }}
|
|
84
|
-
</kendo-dialog-titlebar>
|
|
85
|
-
<div [style.text-align]="'center'">
|
|
86
|
-
<kendo-editor-fontfamily-dropdownlist
|
|
87
|
-
#fontFamilyDropDownList
|
|
88
|
-
[defaultItem]="defaultItem"
|
|
89
|
-
[data]="data"
|
|
90
|
-
[(value)]="value"
|
|
91
|
-
[itemDisabled]="itemDisabled"
|
|
92
|
-
>
|
|
93
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
94
|
-
</div>
|
|
95
|
-
<kendo-dialog-actions layout="start">
|
|
96
|
-
<button
|
|
97
|
-
kendoButton
|
|
98
|
-
[primary]="true"
|
|
99
|
-
(click)="onConfirmAction()"
|
|
100
|
-
>{{ textFor('dialogApply') }}</button>
|
|
101
|
-
<button
|
|
102
|
-
kendoButton
|
|
103
|
-
(click)="onCancelAction()"
|
|
104
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
105
|
-
</kendo-dialog-actions>
|
|
106
|
-
`,
|
|
107
|
-
standalone: true,
|
|
108
|
-
imports: [DialogTitleBarComponent, FontFamilyDropDownListComponent, DialogActionsComponent, ButtonComponent]
|
|
109
|
-
}]
|
|
110
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }, { type: i2.EditorLocalizationService }], propDecorators: { editor: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], fontFamilyDropDownList: [{
|
|
113
|
-
type: ViewChild,
|
|
114
|
-
args: ['fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }]
|
|
115
|
-
}] } });
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogRef, DialogContentBase, DialogActionsComponent, DialogTitleBarComponent } from '@progress/kendo-angular-dialog';
|
|
7
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
|
-
import { EditorComponent } from '../editor.component';
|
|
9
|
-
import { FontSizeDropDownListComponent } from '../tools/fontsize/editor-fontsize-dropdownlist.component';
|
|
10
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
13
|
-
import * as i2 from "../localization/editor-localization.service";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export class FontSizeDialogComponent extends DialogContentBase {
|
|
18
|
-
dialog;
|
|
19
|
-
localization;
|
|
20
|
-
editor;
|
|
21
|
-
fontSizeDropDownList;
|
|
22
|
-
data = [];
|
|
23
|
-
defaultItem;
|
|
24
|
-
value;
|
|
25
|
-
itemDisabled;
|
|
26
|
-
constructor(dialog, localization) {
|
|
27
|
-
super(dialog);
|
|
28
|
-
this.dialog = dialog;
|
|
29
|
-
this.localization = localization;
|
|
30
|
-
}
|
|
31
|
-
onCancelAction() {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
}
|
|
34
|
-
onConfirmAction() {
|
|
35
|
-
if (this.value) {
|
|
36
|
-
this.editor.exec('fontSize', this.value);
|
|
37
|
-
}
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
}
|
|
40
|
-
setData(args) {
|
|
41
|
-
this.editor = args.editor;
|
|
42
|
-
this.data = args.data;
|
|
43
|
-
this.defaultItem = args.defaultItem;
|
|
44
|
-
this.value = args.value;
|
|
45
|
-
this.itemDisabled = args.itemDisabled;
|
|
46
|
-
}
|
|
47
|
-
textFor(key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
}
|
|
50
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontSizeDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FontSizeDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontSizeDropDownList", first: true, predicate: ["fontSizeDropDownList"], descendants: true, read: FontSizeDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
52
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
53
|
-
{{ textFor('fontSize') }}
|
|
54
|
-
</kendo-dialog-titlebar>
|
|
55
|
-
<div [style.text-align]="'center'">
|
|
56
|
-
<kendo-editor-fontsize-dropdownlist
|
|
57
|
-
#fontSizeDropDownList
|
|
58
|
-
[defaultItem]="defaultItem"
|
|
59
|
-
[data]="data"
|
|
60
|
-
[(value)]="value"
|
|
61
|
-
[itemDisabled]="itemDisabled"
|
|
62
|
-
>
|
|
63
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
64
|
-
</div>
|
|
65
|
-
<kendo-dialog-actions layout="start">
|
|
66
|
-
<button
|
|
67
|
-
kendoButton
|
|
68
|
-
[primary]="true"
|
|
69
|
-
(click)="onConfirmAction()"
|
|
70
|
-
>{{ textFor('dialogApply') }}</button>
|
|
71
|
-
<button
|
|
72
|
-
kendoButton
|
|
73
|
-
(click)="onCancelAction()"
|
|
74
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
75
|
-
</kendo-dialog-actions>
|
|
76
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
77
|
-
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FontSizeDialogComponent, decorators: [{
|
|
79
|
-
type: Component,
|
|
80
|
-
args: [{
|
|
81
|
-
template: `
|
|
82
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
83
|
-
{{ textFor('fontSize') }}
|
|
84
|
-
</kendo-dialog-titlebar>
|
|
85
|
-
<div [style.text-align]="'center'">
|
|
86
|
-
<kendo-editor-fontsize-dropdownlist
|
|
87
|
-
#fontSizeDropDownList
|
|
88
|
-
[defaultItem]="defaultItem"
|
|
89
|
-
[data]="data"
|
|
90
|
-
[(value)]="value"
|
|
91
|
-
[itemDisabled]="itemDisabled"
|
|
92
|
-
>
|
|
93
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
94
|
-
</div>
|
|
95
|
-
<kendo-dialog-actions layout="start">
|
|
96
|
-
<button
|
|
97
|
-
kendoButton
|
|
98
|
-
[primary]="true"
|
|
99
|
-
(click)="onConfirmAction()"
|
|
100
|
-
>{{ textFor('dialogApply') }}</button>
|
|
101
|
-
<button
|
|
102
|
-
kendoButton
|
|
103
|
-
(click)="onCancelAction()"
|
|
104
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
105
|
-
</kendo-dialog-actions>
|
|
106
|
-
`,
|
|
107
|
-
standalone: true,
|
|
108
|
-
imports: [DialogTitleBarComponent, FontSizeDropDownListComponent, DialogActionsComponent, ButtonComponent]
|
|
109
|
-
}]
|
|
110
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }, { type: i2.EditorLocalizationService }], propDecorators: { editor: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], fontSizeDropDownList: [{
|
|
113
|
-
type: ViewChild,
|
|
114
|
-
args: ['fontSizeDropDownList', { read: FontSizeDropDownListComponent, static: true }]
|
|
115
|
-
}] } });
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogRef, DialogContentBase, DialogActionsComponent, DialogTitleBarComponent } from '@progress/kendo-angular-dialog';
|
|
7
|
-
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
8
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
9
|
-
import { FormatDropDownListComponent } from '../tools/format/editor-format-dropdownlist.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
12
|
-
import * as i2 from "../localization/editor-localization.service";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class FormatDialogComponent extends DialogContentBase {
|
|
17
|
-
dialog;
|
|
18
|
-
localization;
|
|
19
|
-
editor;
|
|
20
|
-
formatDropDownList;
|
|
21
|
-
data = [];
|
|
22
|
-
defaultItem;
|
|
23
|
-
value;
|
|
24
|
-
itemDisabled;
|
|
25
|
-
constructor(dialog, localization) {
|
|
26
|
-
super(dialog);
|
|
27
|
-
this.dialog = dialog;
|
|
28
|
-
this.localization = localization;
|
|
29
|
-
}
|
|
30
|
-
onCancelAction() {
|
|
31
|
-
this.dialog.close();
|
|
32
|
-
}
|
|
33
|
-
onConfirmAction() {
|
|
34
|
-
if (this.value) {
|
|
35
|
-
this.editor.exec('format', { tag: this.value });
|
|
36
|
-
}
|
|
37
|
-
this.dialog.close();
|
|
38
|
-
}
|
|
39
|
-
setData(args) {
|
|
40
|
-
this.editor = args.editor;
|
|
41
|
-
this.data = args.data;
|
|
42
|
-
this.defaultItem = args.defaultItem;
|
|
43
|
-
this.value = args.value;
|
|
44
|
-
this.itemDisabled = args.itemDisabled;
|
|
45
|
-
}
|
|
46
|
-
textFor(key) {
|
|
47
|
-
return this.localization.get(key);
|
|
48
|
-
}
|
|
49
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormatDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: FormatDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true, read: FormatDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
51
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
52
|
-
{{ textFor('format') }}
|
|
53
|
-
</kendo-dialog-titlebar>
|
|
54
|
-
<div [style.text-align]="'center'">
|
|
55
|
-
<kendo-editor-format-dropdownlist
|
|
56
|
-
#formatDropDownList
|
|
57
|
-
[defaultItem]="defaultItem"
|
|
58
|
-
[data]="data"
|
|
59
|
-
[(value)]="value"
|
|
60
|
-
[itemDisabled]="itemDisabled"
|
|
61
|
-
>
|
|
62
|
-
</kendo-editor-format-dropdownlist>
|
|
63
|
-
</div>
|
|
64
|
-
<kendo-dialog-actions layout="start">
|
|
65
|
-
<button
|
|
66
|
-
kendoButton
|
|
67
|
-
[primary]="true"
|
|
68
|
-
(click)="onConfirmAction()"
|
|
69
|
-
>{{ textFor('dialogApply') }}</button>
|
|
70
|
-
<button
|
|
71
|
-
kendoButton
|
|
72
|
-
(click)="onCancelAction()"
|
|
73
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
74
|
-
</kendo-dialog-actions>
|
|
75
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
76
|
-
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FormatDialogComponent, decorators: [{
|
|
78
|
-
type: Component,
|
|
79
|
-
args: [{
|
|
80
|
-
template: `
|
|
81
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
82
|
-
{{ textFor('format') }}
|
|
83
|
-
</kendo-dialog-titlebar>
|
|
84
|
-
<div [style.text-align]="'center'">
|
|
85
|
-
<kendo-editor-format-dropdownlist
|
|
86
|
-
#formatDropDownList
|
|
87
|
-
[defaultItem]="defaultItem"
|
|
88
|
-
[data]="data"
|
|
89
|
-
[(value)]="value"
|
|
90
|
-
[itemDisabled]="itemDisabled"
|
|
91
|
-
>
|
|
92
|
-
</kendo-editor-format-dropdownlist>
|
|
93
|
-
</div>
|
|
94
|
-
<kendo-dialog-actions layout="start">
|
|
95
|
-
<button
|
|
96
|
-
kendoButton
|
|
97
|
-
[primary]="true"
|
|
98
|
-
(click)="onConfirmAction()"
|
|
99
|
-
>{{ textFor('dialogApply') }}</button>
|
|
100
|
-
<button
|
|
101
|
-
kendoButton
|
|
102
|
-
(click)="onCancelAction()"
|
|
103
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
104
|
-
</kendo-dialog-actions>
|
|
105
|
-
`,
|
|
106
|
-
standalone: true,
|
|
107
|
-
imports: [DialogTitleBarComponent, FormatDropDownListComponent, DialogActionsComponent, ButtonComponent]
|
|
108
|
-
}]
|
|
109
|
-
}], ctorParameters: () => [{ type: i1.DialogRef }, { type: i2.EditorLocalizationService }], propDecorators: { editor: [{
|
|
110
|
-
type: Input
|
|
111
|
-
}], formatDropDownList: [{
|
|
112
|
-
type: ViewChild,
|
|
113
|
-
args: ['formatDropDownList', { read: FormatDropDownListComponent, static: true }]
|
|
114
|
-
}] } });
|