@progress/kendo-angular-editor 21.1.1-develop.1 → 21.2.0-develop.1

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.
@@ -3,7 +3,6 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Component, Input, ViewChild } from '@angular/core';
6
- import { NgIf } from '@angular/common';
7
6
  import { FormGroup, FormControl, Validators, ReactiveFormsModule } from '@angular/forms';
8
7
  import { DialogContentBase, DialogRef, DialogActionsComponent, DialogTitleBarComponent } from '@progress/kendo-angular-dialog';
9
8
  import { TextBoxComponent, CheckBoxDirective, FormFieldComponent } from '@progress/kendo-angular-inputs';
@@ -102,146 +101,146 @@ export class FileLinkDialogComponent extends DialogContentBase {
102
101
  return linkData;
103
102
  }
104
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 });
105
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.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: `
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: `
106
105
  <kendo-dialog-titlebar (close)="onCancelAction()">
107
- {{ titleText }}
106
+ {{ titleText }}
108
107
  </kendo-dialog-titlebar>
109
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') {
110
143
  <kendo-formfield>
111
- <kendo-label
112
- labelCssClass="k-form-label"
113
- [for]="hrefInput"
114
- [text]="textForWithPrefix('WebAddress')"
115
- ></kendo-label>
116
- <kendo-textbox
117
- #hrefInput
118
- formControlName="href"
119
- ></kendo-textbox>
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>
120
155
  </kendo-formfield>
121
- <kendo-formfield>
122
- <kendo-label
123
- labelCssClass="k-form-label"
124
- [for]="textInput"
125
- [text]="textForWithPrefix('Text')"
126
- ></kendo-label>
127
- <kendo-textbox
128
- #textInput
129
- formControlName="text"
130
- ></kendo-textbox>
131
- </kendo-formfield>
132
- <kendo-formfield>
133
- <kendo-label
134
- labelCssClass="k-form-label"
135
- [for]="titleInput"
136
- [text]="textForWithPrefix('Title')"
137
- ></kendo-label>
138
- <kendo-textbox
139
- #titleInput
140
- formControlName="title"
141
- ></kendo-textbox>
142
- </kendo-formfield>
143
- <ng-container *ngIf="command === 'createLink'">
144
- <kendo-formfield>
145
- <ng-container>
146
- <span class="k-checkbox-wrap">
147
- <input
148
- id='k-target-blank'
149
- type='checkbox'
150
- kendoCheckBox
151
- formControlName="target"
152
- />
153
- </span>
154
- <label [labelClass]="false" class='k-checkbox-label' for='k-target-blank'>{{ textForWithPrefix('OpenInNewWindow') }}</label>
155
- </ng-container>
156
- </kendo-formfield>
157
- </ng-container>
156
+ }
158
157
  </form>
159
158
  <kendo-dialog-actions layout="start">
160
- <button
161
- kendoButton
162
- [disabled]="linkForm.invalid"
163
- [primary]="true"
164
- (click)="onConfirmAction()"
165
- >{{ textFor('dialogInsert') }}</button>
166
- <button
167
- kendoButton
168
- (click)="onCancelAction()"
169
- >{{ textFor('dialogCancel') }}</button>
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>
170
169
  </kendo-dialog-actions>
171
- `, 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: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
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"] }] });
172
171
  }
173
172
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
174
173
  type: Component,
175
174
  args: [{
176
175
  template: `
177
176
  <kendo-dialog-titlebar (close)="onCancelAction()">
178
- {{ titleText }}
177
+ {{ titleText }}
179
178
  </kendo-dialog-titlebar>
180
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') {
181
214
  <kendo-formfield>
182
- <kendo-label
183
- labelCssClass="k-form-label"
184
- [for]="hrefInput"
185
- [text]="textForWithPrefix('WebAddress')"
186
- ></kendo-label>
187
- <kendo-textbox
188
- #hrefInput
189
- formControlName="href"
190
- ></kendo-textbox>
191
- </kendo-formfield>
192
- <kendo-formfield>
193
- <kendo-label
194
- labelCssClass="k-form-label"
195
- [for]="textInput"
196
- [text]="textForWithPrefix('Text')"
197
- ></kendo-label>
198
- <kendo-textbox
199
- #textInput
200
- formControlName="text"
201
- ></kendo-textbox>
202
- </kendo-formfield>
203
- <kendo-formfield>
204
- <kendo-label
205
- labelCssClass="k-form-label"
206
- [for]="titleInput"
207
- [text]="textForWithPrefix('Title')"
208
- ></kendo-label>
209
- <kendo-textbox
210
- #titleInput
211
- formControlName="title"
212
- ></kendo-textbox>
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>
213
226
  </kendo-formfield>
214
- <ng-container *ngIf="command === 'createLink'">
215
- <kendo-formfield>
216
- <ng-container>
217
- <span class="k-checkbox-wrap">
218
- <input
219
- id='k-target-blank'
220
- type='checkbox'
221
- kendoCheckBox
222
- formControlName="target"
223
- />
224
- </span>
225
- <label [labelClass]="false" class='k-checkbox-label' for='k-target-blank'>{{ textForWithPrefix('OpenInNewWindow') }}</label>
226
- </ng-container>
227
- </kendo-formfield>
228
- </ng-container>
227
+ }
229
228
  </form>
230
229
  <kendo-dialog-actions layout="start">
231
- <button
232
- kendoButton
233
- [disabled]="linkForm.invalid"
234
- [primary]="true"
235
- (click)="onConfirmAction()"
236
- >{{ textFor('dialogInsert') }}</button>
237
- <button
238
- kendoButton
239
- (click)="onCancelAction()"
240
- >{{ textFor('dialogCancel') }}</button>
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>
241
240
  </kendo-dialog-actions>
242
- `,
241
+ `,
243
242
  standalone: true,
244
- imports: [DialogTitleBarComponent, ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxComponent, NgIf, CheckBoxDirective, LabelDirective, DialogActionsComponent, ButtonComponent]
243
+ imports: [DialogTitleBarComponent, ReactiveFormsModule, FormFieldComponent, LabelComponent, TextBoxComponent, CheckBoxDirective, LabelDirective, DialogActionsComponent, ButtonComponent]
245
244
  }]
246
245
  }], ctorParameters: () => [{ type: i1.DialogRef }, { type: i2.EditorLocalizationService }], propDecorators: { editor: [{
247
246
  type: Input