@progress/kendo-angular-spreadsheet 21.1.1-develop.2 → 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.
- package/esm2022/action-bar/list.component.mjs +38 -35
- package/esm2022/common/list-editor.component.mjs +28 -25
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/sheets-bar/action-dialog.component.mjs +38 -35
- package/esm2022/sheets-bar/sheets-bar.component.mjs +106 -102
- package/esm2022/spreadsheet.component.mjs +688 -657
- package/esm2022/tools/colorpicker/spreadsheet-backcolor.component.mjs +86 -83
- package/esm2022/tools/colorpicker/spreadsheet-forecolor.component.mjs +86 -83
- package/esm2022/tools/data-validation-dialog.component.mjs +220 -207
- package/esm2022/tools/font-family/spreadsheet-fontfamily-tool.component.mjs +58 -55
- package/esm2022/tools/font-size/spreadsheet-fontsize-tool.component.mjs +58 -55
- package/esm2022/tools/shared/dialog-content.component.mjs +44 -35
- package/fesm2022/progress-kendo-angular-spreadsheet.mjs +1453 -1364
- package/package.json +17 -17
- package/schematics/ngAdd/index.js +2 -2
- package/sheets-bar/sheets-bar.component.d.ts +2 -0
|
@@ -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: "
|
|
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
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
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
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
|
|
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
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
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
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
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
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
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
|
-
|
|
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
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
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,
|
|
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
|