@progress/kendo-angular-spreadsheet 21.1.1-develop.2 → 21.2.0-develop.10

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.
@@ -2,7 +2,6 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { NgIf } from '@angular/common';
6
5
  import { Component, EventEmitter, NgZone, Output } from '@angular/core';
7
6
  import { FormControl, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
8
7
  import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
@@ -226,242 +225,256 @@ export class DataValidationDialogComponent extends DialogContentBase {
226
225
  }
227
226
  }
228
227
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataValidationDialogComponent, deps: [{ token: i1.LocalizationService }, { token: i2.SpreadsheetService }, { token: i0.NgZone }, { token: i3.DialogRef }], target: i0.ɵɵFactoryTarget.Component });
229
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: DataValidationDialogComponent, isStandalone: true, selector: "ng-component", outputs: { dialogAction: "dialogAction" }, usesInheritance: true, ngImport: i0, template: `
228
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: DataValidationDialogComponent, isStandalone: true, selector: "ng-component", outputs: { dialogAction: "dialogAction" }, usesInheritance: true, ngImport: i0, template: `
230
229
  <form class="k-form k-form-md" [formGroup]="validationFormGroup">
231
- <div class="k-form-field">
232
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCellRange')" [for]="rangeInput"></kendo-label>
233
- <div class="k-form-field-wrap">
234
- <kendo-textbox #rangeInput
235
- [clearButton]="true"
236
- [value]="cellRange"
237
- (valueChange)="onRangeChange($event, rangeInput)"
238
- formControlName="range">
239
- </kendo-textbox>
240
- </div>
230
+ <div class="k-form-field">
231
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCellRange')" [for]="rangeInput"></kendo-label>
232
+ <div class="k-form-field-wrap">
233
+ <kendo-textbox #rangeInput
234
+ [clearButton]="true"
235
+ [value]="cellRange"
236
+ (valueChange)="onRangeChange($event, rangeInput)"
237
+ formControlName="range">
238
+ </kendo-textbox>
241
239
  </div>
242
- <div class="k-form-field">
243
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCriteria')" [for]="criteriaInput"></kendo-label>
244
- <div class="k-form-field-wrap">
245
- <kendo-dropdownlist #criteriaInput
246
- [data]="criteriaList"
247
- [value]="criteria"
248
- (selectionChange)="onSelectionChange($event, 'criteria')"
249
- textField="name"
250
- valueField="type">
251
- </kendo-dropdownlist>
252
- </div>
240
+ </div>
241
+ <div class="k-form-field">
242
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCriteria')" [for]="criteriaInput"></kendo-label>
243
+ <div class="k-form-field-wrap">
244
+ <kendo-dropdownlist #criteriaInput
245
+ [data]="criteriaList"
246
+ [value]="criteria"
247
+ (selectionChange)="onSelectionChange($event, 'criteria')"
248
+ textField="name"
249
+ valueField="type">
250
+ </kendo-dropdownlist>
253
251
  </div>
254
- <ng-container *ngIf="criteria.type !== 'any'">
255
- <div class="k-form-field" *ngIf="showComparer">
256
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationComparer')" [for]="comparerInput"></kendo-label>
257
- <div class="k-form-field-wrap">
258
- <kendo-dropdownlist #comparerInput
259
- [data]="comparerList"
260
- [value]="comparer"
261
- (selectionChange)="onSelectionChange($event, 'comparer')"
262
- textField="name"
263
- valueField="type">
264
- </kendo-dropdownlist>
265
- </div>
266
- </div>
267
- <div class="k-form-field" *ngIf="singleValue; else betweenValues">
268
- <kendo-label class="k-label k-form-label" [text]="getValueLabel()" [for]="minInput"></kendo-label>
269
- <div class="k-form-field-wrap">
270
- <kendo-textbox #minInput [(value)]="from" formControlName="min"></kendo-textbox>
271
- </div>
272
- </div>
273
- <ng-template #betweenValues>
274
- <div class="k-form-field">
275
- <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationStartValue' : 'validationMinValue')" [for]="betweenMinInput"></kendo-label>
276
- <div class="k-form-field-wrap">
277
- <kendo-textbox #betweenMinInput [(value)]="from" formControlName="min"></kendo-textbox>
278
- </div>
279
- </div>
280
- <div class="k-form-field">
281
- <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationEndValue' : 'validationMaxValue')" [for]="betweenMaxInput"></kendo-label>
282
- <div class="k-form-field-wrap">
283
- <kendo-textbox #betweenMaxInput [(value)]="to" formControlName="max"></kendo-textbox>
284
- </div>
285
- </div>
286
- </ng-template>
287
- <div class="k-form-field" *ngIf="criteria.type === 'list'">
288
- <div class="k-form-field-wrap">
289
- <kendo-checkbox #showBtnCheckBox [(checkedState)]="showButton"></kendo-checkbox>
290
- <kendo-label class="k-checkbox-label" [for]="showBtnCheckBox" [text]="getLocalizationMessage('validationShowListButtonCheckbox')"></kendo-label>
291
- </div>
292
- </div>
293
- <div class="k-form-field">
294
- <div class="k-form-field-wrap">
295
- <kendo-checkbox #ignoreBlankCheckBox [(checkedState)]="ignoreBlank"></kendo-checkbox>
296
- <kendo-label class="k-checkbox-label" [for]="ignoreBlankCheckBox" [text]="getLocalizationMessage('validationIgnoreBlankCheckbox')"></kendo-label>
297
- </div>
252
+ </div>
253
+ @if (criteria.type !== 'any') {
254
+ @if (showComparer) {
255
+ <div class="k-form-field">
256
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationComparer')" [for]="comparerInput"></kendo-label>
257
+ <div class="k-form-field-wrap">
258
+ <kendo-dropdownlist #comparerInput
259
+ [data]="comparerList"
260
+ [value]="comparer"
261
+ (selectionChange)="onSelectionChange($event, 'comparer')"
262
+ textField="name"
263
+ valueField="type">
264
+ </kendo-dropdownlist>
298
265
  </div>
299
- <div class="k-form-field">
300
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationOnInvalidData')"></kendo-label>
301
- <div class="k-form-field-wrap">
302
- <ul class="k-radio-list k-list-vertical">
303
- <li class="k-radio-list-item">
304
- <kendo-radiobutton #rejectRadioBtn formControlName="onInvalidData" value="reject"></kendo-radiobutton>
305
- <kendo-label class="k-radio-label" [for]="rejectRadioBtn" [text]="getLocalizationMessage('validationRejectInput')"></kendo-label>
306
- </li>
307
- <li class="k-radio-list-item">
308
- <kendo-radiobutton #warningRadioBtn formControlName="onInvalidData" value="warning"></kendo-radiobutton>
309
- <kendo-label class="k-radio-label" [for]="warningRadioBtn" [text]="getLocalizationMessage('validationShowWarning')"></kendo-label>
310
- </li>
311
- </ul>
312
- </div>
266
+ </div>
267
+ }
268
+ @if (singleValue) {
269
+ <div class="k-form-field">
270
+ <kendo-label class="k-label k-form-label" [text]="getValueLabel()" [for]="minInput"></kendo-label>
271
+ <div class="k-form-field-wrap">
272
+ <kendo-textbox #minInput [(value)]="from" formControlName="min"></kendo-textbox>
313
273
  </div>
314
- <div class="k-form-field">
315
- <div class="k-form-field-wrap">
316
- <kendo-checkbox #showHintCheckBox [(checkedState)]="showHint"></kendo-checkbox>
317
- <kendo-label class="k-checkbox-label" [for]="showHintCheckBox" [text]="getLocalizationMessage('validationShowHint')"></kendo-label>
318
- </div>
274
+ </div>
275
+ } @else {
276
+ <div class="k-form-field">
277
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationStartValue' : 'validationMinValue')" [for]="betweenMinInput"></kendo-label>
278
+ <div class="k-form-field-wrap">
279
+ <kendo-textbox #betweenMinInput [(value)]="from" formControlName="min"></kendo-textbox>
319
280
  </div>
320
- <div class="k-form-field">
321
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintTitle')" [for]="hintTitleInput"></kendo-label>
322
- <div class="k-form-field-wrap">
323
- <kendo-textbox #hintTitleInput [(value)]="hintTitle"></kendo-textbox>
324
- </div>
281
+ </div>
282
+ <div class="k-form-field">
283
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationEndValue' : 'validationMaxValue')" [for]="betweenMaxInput"></kendo-label>
284
+ <div class="k-form-field-wrap">
285
+ <kendo-textbox #betweenMaxInput [(value)]="to" formControlName="max"></kendo-textbox>
325
286
  </div>
326
- <div class="k-form-field">
327
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintMessage')" [for]="hintMessageInput"></kendo-label>
328
- <div class="k-form-field-wrap">
329
- <kendo-textbox #hintMessageInput [(value)]="hintMessage"></kendo-textbox>
330
- </div>
287
+ </div>
288
+ }
289
+ @if (criteria.type === 'list') {
290
+ <div class="k-form-field">
291
+ <div class="k-form-field-wrap">
292
+ <kendo-checkbox #showBtnCheckBox [(checkedState)]="showButton"></kendo-checkbox>
293
+ <kendo-label class="k-checkbox-label" [for]="showBtnCheckBox" [text]="getLocalizationMessage('validationShowListButtonCheckbox')"></kendo-label>
331
294
  </div>
332
- </ng-container>
295
+ </div>
296
+ }
297
+ <div class="k-form-field">
298
+ <div class="k-form-field-wrap">
299
+ <kendo-checkbox #ignoreBlankCheckBox [(checkedState)]="ignoreBlank"></kendo-checkbox>
300
+ <kendo-label class="k-checkbox-label" [for]="ignoreBlankCheckBox" [text]="getLocalizationMessage('validationIgnoreBlankCheckbox')"></kendo-label>
301
+ </div>
302
+ </div>
303
+ <div class="k-form-field">
304
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationOnInvalidData')"></kendo-label>
305
+ <div class="k-form-field-wrap">
306
+ <ul class="k-radio-list k-list-vertical">
307
+ <li class="k-radio-list-item">
308
+ <kendo-radiobutton #rejectRadioBtn formControlName="onInvalidData" value="reject"></kendo-radiobutton>
309
+ <kendo-label class="k-radio-label" [for]="rejectRadioBtn" [text]="getLocalizationMessage('validationRejectInput')"></kendo-label>
310
+ </li>
311
+ <li class="k-radio-list-item">
312
+ <kendo-radiobutton #warningRadioBtn formControlName="onInvalidData" value="warning"></kendo-radiobutton>
313
+ <kendo-label class="k-radio-label" [for]="warningRadioBtn" [text]="getLocalizationMessage('validationShowWarning')"></kendo-label>
314
+ </li>
315
+ </ul>
316
+ </div>
317
+ </div>
318
+ <div class="k-form-field">
319
+ <div class="k-form-field-wrap">
320
+ <kendo-checkbox #showHintCheckBox [(checkedState)]="showHint"></kendo-checkbox>
321
+ <kendo-label class="k-checkbox-label" [for]="showHintCheckBox" [text]="getLocalizationMessage('validationShowHint')"></kendo-label>
322
+ </div>
323
+ </div>
324
+ <div class="k-form-field">
325
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintTitle')" [for]="hintTitleInput"></kendo-label>
326
+ <div class="k-form-field-wrap">
327
+ <kendo-textbox #hintTitleInput [(value)]="hintTitle"></kendo-textbox>
328
+ </div>
329
+ </div>
330
+ <div class="k-form-field">
331
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintMessage')" [for]="hintMessageInput"></kendo-label>
332
+ <div class="k-form-field-wrap">
333
+ <kendo-textbox #hintMessageInput [(value)]="hintMessage"></kendo-textbox>
334
+ </div>
335
+ </div>
336
+ }
333
337
  </form>
334
338
  <kendo-dialog-actions layout="start" #dialogActions>
335
- <button kendoButton themeColor="primary" [disabled]="validationFormGroup?.invalid" (click)="dialogAction.emit(getLocalizationMessage('dialogApply'))">
336
- {{getLocalizationMessage('dialogApply')}}
337
- </button>
338
- <button kendoButton (click)="dialogAction.emit(getLocalizationMessage('dialogCancel'))">{{getLocalizationMessage('dialogCancel')}}</button>
339
- <button kendoButton themeColor="error" fillMode="flat" *ngIf="validationPresent" (click)="dialogAction.emit(getLocalizationMessage('dialogRemove'))">
340
- {{getLocalizationMessage('dialogRemove')}}
339
+ <button kendoButton themeColor="primary" [disabled]="validationFormGroup?.invalid" (click)="dialogAction.emit(getLocalizationMessage('dialogApply'))">
340
+ {{getLocalizationMessage('dialogApply')}}
341
+ </button>
342
+ <button kendoButton (click)="dialogAction.emit(getLocalizationMessage('dialogCancel'))">{{getLocalizationMessage('dialogCancel')}}</button>
343
+ @if (validationPresent) {
344
+ <button kendoButton themeColor="error" fillMode="flat" (click)="dialogAction.emit(getLocalizationMessage('dialogRemove'))">
345
+ {{getLocalizationMessage('dialogRemove')}}
341
346
  </button>
347
+ }
342
348
  </kendo-dialog-actions>
343
- `, isInline: true, dependencies: [{ 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: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "component", type: RadioButtonComponent, selector: "kendo-radiobutton", inputs: ["checked"], outputs: ["checkedChange"], exportAs: ["kendoRadioButton"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { 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"] }] });
349
+ `, isInline: true, dependencies: [{ 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: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }, { kind: "component", type: RadioButtonComponent, selector: "kendo-radiobutton", inputs: ["checked"], outputs: ["checkedChange"], exportAs: ["kendoRadioButton"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { 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"] }] });
344
350
  }
345
351
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DataValidationDialogComponent, decorators: [{
346
352
  type: Component,
347
353
  args: [{
348
354
  template: `
349
355
  <form class="k-form k-form-md" [formGroup]="validationFormGroup">
350
- <div class="k-form-field">
351
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCellRange')" [for]="rangeInput"></kendo-label>
352
- <div class="k-form-field-wrap">
353
- <kendo-textbox #rangeInput
354
- [clearButton]="true"
355
- [value]="cellRange"
356
- (valueChange)="onRangeChange($event, rangeInput)"
357
- formControlName="range">
358
- </kendo-textbox>
359
- </div>
356
+ <div class="k-form-field">
357
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCellRange')" [for]="rangeInput"></kendo-label>
358
+ <div class="k-form-field-wrap">
359
+ <kendo-textbox #rangeInput
360
+ [clearButton]="true"
361
+ [value]="cellRange"
362
+ (valueChange)="onRangeChange($event, rangeInput)"
363
+ formControlName="range">
364
+ </kendo-textbox>
360
365
  </div>
361
- <div class="k-form-field">
362
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCriteria')" [for]="criteriaInput"></kendo-label>
363
- <div class="k-form-field-wrap">
364
- <kendo-dropdownlist #criteriaInput
365
- [data]="criteriaList"
366
- [value]="criteria"
367
- (selectionChange)="onSelectionChange($event, 'criteria')"
368
- textField="name"
369
- valueField="type">
370
- </kendo-dropdownlist>
371
- </div>
366
+ </div>
367
+ <div class="k-form-field">
368
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationCriteria')" [for]="criteriaInput"></kendo-label>
369
+ <div class="k-form-field-wrap">
370
+ <kendo-dropdownlist #criteriaInput
371
+ [data]="criteriaList"
372
+ [value]="criteria"
373
+ (selectionChange)="onSelectionChange($event, 'criteria')"
374
+ textField="name"
375
+ valueField="type">
376
+ </kendo-dropdownlist>
372
377
  </div>
373
- <ng-container *ngIf="criteria.type !== 'any'">
374
- <div class="k-form-field" *ngIf="showComparer">
375
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationComparer')" [for]="comparerInput"></kendo-label>
376
- <div class="k-form-field-wrap">
377
- <kendo-dropdownlist #comparerInput
378
- [data]="comparerList"
379
- [value]="comparer"
380
- (selectionChange)="onSelectionChange($event, 'comparer')"
381
- textField="name"
382
- valueField="type">
383
- </kendo-dropdownlist>
384
- </div>
385
- </div>
386
- <div class="k-form-field" *ngIf="singleValue; else betweenValues">
387
- <kendo-label class="k-label k-form-label" [text]="getValueLabel()" [for]="minInput"></kendo-label>
388
- <div class="k-form-field-wrap">
389
- <kendo-textbox #minInput [(value)]="from" formControlName="min"></kendo-textbox>
390
- </div>
391
- </div>
392
- <ng-template #betweenValues>
393
- <div class="k-form-field">
394
- <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationStartValue' : 'validationMinValue')" [for]="betweenMinInput"></kendo-label>
395
- <div class="k-form-field-wrap">
396
- <kendo-textbox #betweenMinInput [(value)]="from" formControlName="min"></kendo-textbox>
397
- </div>
398
- </div>
399
- <div class="k-form-field">
400
- <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationEndValue' : 'validationMaxValue')" [for]="betweenMaxInput"></kendo-label>
401
- <div class="k-form-field-wrap">
402
- <kendo-textbox #betweenMaxInput [(value)]="to" formControlName="max"></kendo-textbox>
403
- </div>
404
- </div>
405
- </ng-template>
406
- <div class="k-form-field" *ngIf="criteria.type === 'list'">
407
- <div class="k-form-field-wrap">
408
- <kendo-checkbox #showBtnCheckBox [(checkedState)]="showButton"></kendo-checkbox>
409
- <kendo-label class="k-checkbox-label" [for]="showBtnCheckBox" [text]="getLocalizationMessage('validationShowListButtonCheckbox')"></kendo-label>
410
- </div>
411
- </div>
412
- <div class="k-form-field">
413
- <div class="k-form-field-wrap">
414
- <kendo-checkbox #ignoreBlankCheckBox [(checkedState)]="ignoreBlank"></kendo-checkbox>
415
- <kendo-label class="k-checkbox-label" [for]="ignoreBlankCheckBox" [text]="getLocalizationMessage('validationIgnoreBlankCheckbox')"></kendo-label>
416
- </div>
378
+ </div>
379
+ @if (criteria.type !== 'any') {
380
+ @if (showComparer) {
381
+ <div class="k-form-field">
382
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationComparer')" [for]="comparerInput"></kendo-label>
383
+ <div class="k-form-field-wrap">
384
+ <kendo-dropdownlist #comparerInput
385
+ [data]="comparerList"
386
+ [value]="comparer"
387
+ (selectionChange)="onSelectionChange($event, 'comparer')"
388
+ textField="name"
389
+ valueField="type">
390
+ </kendo-dropdownlist>
417
391
  </div>
418
- <div class="k-form-field">
419
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationOnInvalidData')"></kendo-label>
420
- <div class="k-form-field-wrap">
421
- <ul class="k-radio-list k-list-vertical">
422
- <li class="k-radio-list-item">
423
- <kendo-radiobutton #rejectRadioBtn formControlName="onInvalidData" value="reject"></kendo-radiobutton>
424
- <kendo-label class="k-radio-label" [for]="rejectRadioBtn" [text]="getLocalizationMessage('validationRejectInput')"></kendo-label>
425
- </li>
426
- <li class="k-radio-list-item">
427
- <kendo-radiobutton #warningRadioBtn formControlName="onInvalidData" value="warning"></kendo-radiobutton>
428
- <kendo-label class="k-radio-label" [for]="warningRadioBtn" [text]="getLocalizationMessage('validationShowWarning')"></kendo-label>
429
- </li>
430
- </ul>
431
- </div>
392
+ </div>
393
+ }
394
+ @if (singleValue) {
395
+ <div class="k-form-field">
396
+ <kendo-label class="k-label k-form-label" [text]="getValueLabel()" [for]="minInput"></kendo-label>
397
+ <div class="k-form-field-wrap">
398
+ <kendo-textbox #minInput [(value)]="from" formControlName="min"></kendo-textbox>
432
399
  </div>
433
- <div class="k-form-field">
434
- <div class="k-form-field-wrap">
435
- <kendo-checkbox #showHintCheckBox [(checkedState)]="showHint"></kendo-checkbox>
436
- <kendo-label class="k-checkbox-label" [for]="showHintCheckBox" [text]="getLocalizationMessage('validationShowHint')"></kendo-label>
437
- </div>
400
+ </div>
401
+ } @else {
402
+ <div class="k-form-field">
403
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationStartValue' : 'validationMinValue')" [for]="betweenMinInput"></kendo-label>
404
+ <div class="k-form-field-wrap">
405
+ <kendo-textbox #betweenMinInput [(value)]="from" formControlName="min"></kendo-textbox>
438
406
  </div>
439
- <div class="k-form-field">
440
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintTitle')" [for]="hintTitleInput"></kendo-label>
441
- <div class="k-form-field-wrap">
442
- <kendo-textbox #hintTitleInput [(value)]="hintTitle"></kendo-textbox>
443
- </div>
407
+ </div>
408
+ <div class="k-form-field">
409
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage(criteria.type === 'date' ? 'validationEndValue' : 'validationMaxValue')" [for]="betweenMaxInput"></kendo-label>
410
+ <div class="k-form-field-wrap">
411
+ <kendo-textbox #betweenMaxInput [(value)]="to" formControlName="max"></kendo-textbox>
444
412
  </div>
445
- <div class="k-form-field">
446
- <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintMessage')" [for]="hintMessageInput"></kendo-label>
447
- <div class="k-form-field-wrap">
448
- <kendo-textbox #hintMessageInput [(value)]="hintMessage"></kendo-textbox>
449
- </div>
413
+ </div>
414
+ }
415
+ @if (criteria.type === 'list') {
416
+ <div class="k-form-field">
417
+ <div class="k-form-field-wrap">
418
+ <kendo-checkbox #showBtnCheckBox [(checkedState)]="showButton"></kendo-checkbox>
419
+ <kendo-label class="k-checkbox-label" [for]="showBtnCheckBox" [text]="getLocalizationMessage('validationShowListButtonCheckbox')"></kendo-label>
450
420
  </div>
451
- </ng-container>
421
+ </div>
422
+ }
423
+ <div class="k-form-field">
424
+ <div class="k-form-field-wrap">
425
+ <kendo-checkbox #ignoreBlankCheckBox [(checkedState)]="ignoreBlank"></kendo-checkbox>
426
+ <kendo-label class="k-checkbox-label" [for]="ignoreBlankCheckBox" [text]="getLocalizationMessage('validationIgnoreBlankCheckbox')"></kendo-label>
427
+ </div>
428
+ </div>
429
+ <div class="k-form-field">
430
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationOnInvalidData')"></kendo-label>
431
+ <div class="k-form-field-wrap">
432
+ <ul class="k-radio-list k-list-vertical">
433
+ <li class="k-radio-list-item">
434
+ <kendo-radiobutton #rejectRadioBtn formControlName="onInvalidData" value="reject"></kendo-radiobutton>
435
+ <kendo-label class="k-radio-label" [for]="rejectRadioBtn" [text]="getLocalizationMessage('validationRejectInput')"></kendo-label>
436
+ </li>
437
+ <li class="k-radio-list-item">
438
+ <kendo-radiobutton #warningRadioBtn formControlName="onInvalidData" value="warning"></kendo-radiobutton>
439
+ <kendo-label class="k-radio-label" [for]="warningRadioBtn" [text]="getLocalizationMessage('validationShowWarning')"></kendo-label>
440
+ </li>
441
+ </ul>
442
+ </div>
443
+ </div>
444
+ <div class="k-form-field">
445
+ <div class="k-form-field-wrap">
446
+ <kendo-checkbox #showHintCheckBox [(checkedState)]="showHint"></kendo-checkbox>
447
+ <kendo-label class="k-checkbox-label" [for]="showHintCheckBox" [text]="getLocalizationMessage('validationShowHint')"></kendo-label>
448
+ </div>
449
+ </div>
450
+ <div class="k-form-field">
451
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintTitle')" [for]="hintTitleInput"></kendo-label>
452
+ <div class="k-form-field-wrap">
453
+ <kendo-textbox #hintTitleInput [(value)]="hintTitle"></kendo-textbox>
454
+ </div>
455
+ </div>
456
+ <div class="k-form-field">
457
+ <kendo-label class="k-form-label" [text]="getLocalizationMessage('validationHintMessage')" [for]="hintMessageInput"></kendo-label>
458
+ <div class="k-form-field-wrap">
459
+ <kendo-textbox #hintMessageInput [(value)]="hintMessage"></kendo-textbox>
460
+ </div>
461
+ </div>
462
+ }
452
463
  </form>
453
464
  <kendo-dialog-actions layout="start" #dialogActions>
454
- <button kendoButton themeColor="primary" [disabled]="validationFormGroup?.invalid" (click)="dialogAction.emit(getLocalizationMessage('dialogApply'))">
455
- {{getLocalizationMessage('dialogApply')}}
456
- </button>
457
- <button kendoButton (click)="dialogAction.emit(getLocalizationMessage('dialogCancel'))">{{getLocalizationMessage('dialogCancel')}}</button>
458
- <button kendoButton themeColor="error" fillMode="flat" *ngIf="validationPresent" (click)="dialogAction.emit(getLocalizationMessage('dialogRemove'))">
459
- {{getLocalizationMessage('dialogRemove')}}
465
+ <button kendoButton themeColor="primary" [disabled]="validationFormGroup?.invalid" (click)="dialogAction.emit(getLocalizationMessage('dialogApply'))">
466
+ {{getLocalizationMessage('dialogApply')}}
467
+ </button>
468
+ <button kendoButton (click)="dialogAction.emit(getLocalizationMessage('dialogCancel'))">{{getLocalizationMessage('dialogCancel')}}</button>
469
+ @if (validationPresent) {
470
+ <button kendoButton themeColor="error" fillMode="flat" (click)="dialogAction.emit(getLocalizationMessage('dialogRemove'))">
471
+ {{getLocalizationMessage('dialogRemove')}}
460
472
  </button>
473
+ }
461
474
  </kendo-dialog-actions>
462
- `,
475
+ `,
463
476
  standalone: true,
464
- imports: [TextBoxComponent, DropDownListComponent, CheckBoxComponent, RadioButtonComponent, NgIf, ReactiveFormsModule, LabelComponent, DialogActionsComponent, ButtonComponent]
477
+ imports: [TextBoxComponent, DropDownListComponent, CheckBoxComponent, RadioButtonComponent, ReactiveFormsModule, LabelComponent, DialogActionsComponent, ButtonComponent]
465
478
  }]
466
479
  }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.SpreadsheetService }, { type: i0.NgZone }, { type: i3.DialogRef }], propDecorators: { dialogAction: [{
467
480
  type: Output