@progress/kendo-angular-dateinputs 7.0.0-next.202204081436 → 7.0.0-next.202204111442
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/bundles/kendo-angular-dateinputs.umd.js +1 -1
- package/daterange/date-range.component.d.ts +1 -0
- package/datetimepicker/datetimepicker.component.d.ts +13 -13
- package/esm2015/datepicker/datepicker.component.js +9 -9
- package/esm2015/daterange/date-range.component.js +7 -3
- package/esm2015/datetimepicker/datetimepicker.component.js +32 -29
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/timepicker/timepicker.component.js +32 -29
- package/fesm2015/kendo-angular-dateinputs.js +78 -68
- package/package.json +1 -1
- package/timepicker/timepicker.component.d.ts +13 -13
|
@@ -271,10 +271,10 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
271
271
|
* Sets the size of the component.
|
|
272
272
|
*
|
|
273
273
|
* The possible values are:
|
|
274
|
-
* * `
|
|
275
|
-
* * `
|
|
276
|
-
* * `
|
|
277
|
-
* * `
|
|
274
|
+
* * `small`
|
|
275
|
+
* * `medium` (Default)
|
|
276
|
+
* * `large`
|
|
277
|
+
* * `none`
|
|
278
278
|
*
|
|
279
279
|
*/
|
|
280
280
|
set size(size: DateInputSize);
|
|
@@ -283,11 +283,11 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
283
283
|
* Sets the border radius of the component.
|
|
284
284
|
*
|
|
285
285
|
* The possible values are:
|
|
286
|
-
* * `
|
|
287
|
-
* * `
|
|
288
|
-
* * `
|
|
289
|
-
* * `
|
|
290
|
-
* * `
|
|
286
|
+
* * `small`
|
|
287
|
+
* * `medium` (Default)
|
|
288
|
+
* * `large`
|
|
289
|
+
* * `full`
|
|
290
|
+
* * `none`
|
|
291
291
|
*
|
|
292
292
|
*/
|
|
293
293
|
set rounded(rounded: DateInputRounded);
|
|
@@ -296,10 +296,10 @@ export declare class DateTimePickerComponent implements OnInit, OnChanges, After
|
|
|
296
296
|
* Sets the fillMode of the component.
|
|
297
297
|
*
|
|
298
298
|
* The possible values are:
|
|
299
|
-
* * `
|
|
300
|
-
* * `
|
|
301
|
-
* * `
|
|
302
|
-
* * `
|
|
299
|
+
* * `solid` (Default)
|
|
300
|
+
* * `flat`
|
|
301
|
+
* * `outline`
|
|
302
|
+
* * `none`
|
|
303
303
|
*
|
|
304
304
|
*/
|
|
305
305
|
set fillMode(fillMode: DateInputFillMode);
|
|
@@ -445,9 +445,9 @@ export class DatePickerComponent {
|
|
|
445
445
|
this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
446
446
|
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
447
447
|
if (newFillMode !== 'none') {
|
|
448
|
-
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button',
|
|
449
|
-
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${
|
|
450
|
-
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input',
|
|
448
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
449
|
+
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
450
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
451
451
|
}
|
|
452
452
|
this._fillMode = newFillMode;
|
|
453
453
|
}
|
|
@@ -928,9 +928,9 @@ DatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
928
928
|
[min]="min"
|
|
929
929
|
[max]="max"
|
|
930
930
|
[incompleteDateValidation]="incompleteDateValidation"
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
931
|
+
fillMode="none"
|
|
932
|
+
rounded="none"
|
|
933
|
+
size="none"
|
|
934
934
|
[value]="value"
|
|
935
935
|
(valueChange)="handleInputChange($event)"
|
|
936
936
|
></kendo-dateinput>
|
|
@@ -1039,9 +1039,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
1039
1039
|
[min]="min"
|
|
1040
1040
|
[max]="max"
|
|
1041
1041
|
[incompleteDateValidation]="incompleteDateValidation"
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1042
|
+
fillMode="none"
|
|
1043
|
+
rounded="none"
|
|
1044
|
+
size="none"
|
|
1045
1045
|
[value]="value"
|
|
1046
1046
|
(valueChange)="handleInputChange($event)"
|
|
1047
1047
|
></kendo-dateinput>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2021 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 { Component, ContentChildren } from '@angular/core';
|
|
5
|
+
import { Component, ContentChildren, HostBinding } from '@angular/core';
|
|
6
6
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
7
7
|
import { packageMetadata } from '../package-metadata';
|
|
8
8
|
import { DateRangePopupComponent } from './date-range-popup.component';
|
|
@@ -31,6 +31,7 @@ import * as i2 from "@angular/common";
|
|
|
31
31
|
*/
|
|
32
32
|
export class DateRangeComponent {
|
|
33
33
|
constructor() {
|
|
34
|
+
this.wrapperClass = true;
|
|
34
35
|
/**
|
|
35
36
|
* @hidden
|
|
36
37
|
*/
|
|
@@ -53,7 +54,7 @@ export class DateRangeComponent {
|
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
DateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
DateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateRangeComponent, selector: "kendo-daterange", providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
|
|
57
|
+
DateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: DateRangeComponent, selector: "kendo-daterange", host: { properties: { "class.k-daterangepicker": "this.wrapperClass" } }, providers: [DateRangeService], queries: [{ propertyName: "contentPopup", predicate: DateRangePopupComponent }], ngImport: i0, template: `
|
|
57
58
|
<ng-content></ng-content>
|
|
58
59
|
<kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
|
|
59
60
|
`, isInline: true, components: [{ type: i1.DateRangePopupComponent, selector: "kendo-daterange-popup", inputs: ["animate", "anchor", "anchorAlign", "appendTo", "collision", "popupAlign", "margin"], outputs: ["open", "close", "blur", "focus", "cancel"], exportAs: ["kendo-daterange-popup"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
@@ -67,7 +68,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
67
68
|
<kendo-daterange-popup *ngIf="showDefault"></kendo-daterange-popup>
|
|
68
69
|
`
|
|
69
70
|
}]
|
|
70
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
71
|
+
}], ctorParameters: function () { return []; }, propDecorators: { wrapperClass: [{
|
|
72
|
+
type: HostBinding,
|
|
73
|
+
args: ['class.k-daterangepicker']
|
|
74
|
+
}], contentPopup: [{
|
|
71
75
|
type: ContentChildren,
|
|
72
76
|
args: [DateRangePopupComponent]
|
|
73
77
|
}] } });
|
|
@@ -14,7 +14,7 @@ import { packageMetadata } from '../package-metadata';
|
|
|
14
14
|
import { PickerService } from '../common/picker.service';
|
|
15
15
|
import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
|
|
16
16
|
import { isPresent } from '../common/utils';
|
|
17
|
-
import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass } from '../util';
|
|
17
|
+
import { mergeDateAndTime, noop, lastMillisecondOfDate, isInRange, isValidRange, isWindowAvailable, getFillModeClass, getRoundedClass, getSizeClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
|
|
18
18
|
import { PreventableEvent } from '../preventable-event';
|
|
19
19
|
import { minValidator } from '../validators/min.validator';
|
|
20
20
|
import { maxValidator } from '../validators/max.validator';
|
|
@@ -228,9 +228,9 @@ export class DateTimePickerComponent {
|
|
|
228
228
|
this.disabledDatesValidateFn = noop;
|
|
229
229
|
this.incompleteValidator = noop;
|
|
230
230
|
this.subscriptions = new Subscription();
|
|
231
|
-
this._size =
|
|
232
|
-
this._rounded =
|
|
233
|
-
this._fillMode =
|
|
231
|
+
this._size = DEFAULT_SIZE;
|
|
232
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
233
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
234
234
|
validatePackage(packageMetadata);
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
@@ -396,20 +396,21 @@ export class DateTimePickerComponent {
|
|
|
396
396
|
* Sets the size of the component.
|
|
397
397
|
*
|
|
398
398
|
* The possible values are:
|
|
399
|
-
* * `
|
|
400
|
-
* * `
|
|
401
|
-
* * `
|
|
402
|
-
* * `
|
|
399
|
+
* * `small`
|
|
400
|
+
* * `medium` (Default)
|
|
401
|
+
* * `large`
|
|
402
|
+
* * `none`
|
|
403
403
|
*
|
|
404
404
|
*/
|
|
405
405
|
set size(size) {
|
|
406
406
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
407
407
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
this.renderer.addClass(this.
|
|
408
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
409
|
+
if (newSize !== 'none') {
|
|
410
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
411
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
|
|
411
412
|
}
|
|
412
|
-
this._size =
|
|
413
|
+
this._size = newSize;
|
|
413
414
|
}
|
|
414
415
|
get size() {
|
|
415
416
|
return this._size;
|
|
@@ -418,19 +419,20 @@ export class DateTimePickerComponent {
|
|
|
418
419
|
* Sets the border radius of the component.
|
|
419
420
|
*
|
|
420
421
|
* The possible values are:
|
|
421
|
-
* * `
|
|
422
|
-
* * `
|
|
423
|
-
* * `
|
|
424
|
-
* * `
|
|
425
|
-
* * `
|
|
422
|
+
* * `small`
|
|
423
|
+
* * `medium` (Default)
|
|
424
|
+
* * `large`
|
|
425
|
+
* * `full`
|
|
426
|
+
* * `none`
|
|
426
427
|
*
|
|
427
428
|
*/
|
|
428
429
|
set rounded(rounded) {
|
|
429
430
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
430
|
-
|
|
431
|
-
|
|
431
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
432
|
+
if (newRounded !== 'none') {
|
|
433
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
432
434
|
}
|
|
433
|
-
this._rounded =
|
|
435
|
+
this._rounded = newRounded;
|
|
434
436
|
}
|
|
435
437
|
get rounded() {
|
|
436
438
|
return this._rounded;
|
|
@@ -439,22 +441,23 @@ export class DateTimePickerComponent {
|
|
|
439
441
|
* Sets the fillMode of the component.
|
|
440
442
|
*
|
|
441
443
|
* The possible values are:
|
|
442
|
-
* * `
|
|
443
|
-
* * `
|
|
444
|
-
* * `
|
|
445
|
-
* * `
|
|
444
|
+
* * `solid` (Default)
|
|
445
|
+
* * `flat`
|
|
446
|
+
* * `outline`
|
|
447
|
+
* * `none`
|
|
446
448
|
*
|
|
447
449
|
*/
|
|
448
450
|
set fillMode(fillMode) {
|
|
449
451
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
450
452
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
451
453
|
this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
this.renderer.addClass(this.
|
|
455
|
-
this.renderer.addClass(this.toggleButton.nativeElement,
|
|
454
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
455
|
+
if (newFillMode !== 'none') {
|
|
456
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
457
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
458
|
+
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
456
459
|
}
|
|
457
|
-
this._fillMode =
|
|
460
|
+
this._fillMode = newFillMode;
|
|
458
461
|
}
|
|
459
462
|
get fillMode() {
|
|
460
463
|
return this._fillMode;
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-dateinputs',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1649687993,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -14,7 +14,7 @@ import { PickerService } from '../common/picker.service';
|
|
|
14
14
|
import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
|
|
15
15
|
import { TIME_PART } from './models/time-part.default';
|
|
16
16
|
import { PreventableEvent } from '../preventable-event';
|
|
17
|
-
import { noop, setTime, isWindowAvailable, getFillModeClass, getSizeClass, getRoundedClass } from '../util';
|
|
17
|
+
import { noop, setTime, isWindowAvailable, getFillModeClass, getSizeClass, getRoundedClass, DEFAULT_FILL_MODE, DEFAULT_ROUNDED, DEFAULT_SIZE } from '../util';
|
|
18
18
|
import { timeRangeValidator } from '../validators/time-range.validator';
|
|
19
19
|
import { TOUCH_ENABLED } from '../touch-enabled';
|
|
20
20
|
import { fromEvent } from 'rxjs';
|
|
@@ -203,9 +203,9 @@ export class TimePickerComponent {
|
|
|
203
203
|
this._value = null;
|
|
204
204
|
this._active = false;
|
|
205
205
|
this.domEvents = [];
|
|
206
|
-
this._size =
|
|
207
|
-
this._rounded =
|
|
208
|
-
this._fillMode =
|
|
206
|
+
this._size = DEFAULT_SIZE;
|
|
207
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
208
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
209
209
|
validatePackage(packageMetadata);
|
|
210
210
|
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
211
211
|
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
@@ -295,20 +295,21 @@ export class TimePickerComponent {
|
|
|
295
295
|
* Sets the size of the component.
|
|
296
296
|
*
|
|
297
297
|
* The possible values are:
|
|
298
|
-
* * `
|
|
299
|
-
* * `
|
|
300
|
-
* * `
|
|
301
|
-
* * `
|
|
298
|
+
* * `small`
|
|
299
|
+
* * `medium` (Default)
|
|
300
|
+
* * `large`
|
|
301
|
+
* * `none`
|
|
302
302
|
*
|
|
303
303
|
*/
|
|
304
304
|
set size(size) {
|
|
305
305
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
306
306
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
this.renderer.addClass(this.
|
|
307
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
308
|
+
if (newSize !== 'none') {
|
|
309
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
310
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
|
|
310
311
|
}
|
|
311
|
-
this._size =
|
|
312
|
+
this._size = newSize;
|
|
312
313
|
}
|
|
313
314
|
get size() {
|
|
314
315
|
return this._size;
|
|
@@ -317,19 +318,20 @@ export class TimePickerComponent {
|
|
|
317
318
|
* Sets the border radius of the component.
|
|
318
319
|
*
|
|
319
320
|
* The possible values are:
|
|
320
|
-
* * `
|
|
321
|
-
* * `
|
|
322
|
-
* * `
|
|
323
|
-
* * `
|
|
324
|
-
* * `
|
|
321
|
+
* * `small`
|
|
322
|
+
* * `medium` (Default)
|
|
323
|
+
* * `large`
|
|
324
|
+
* * `full`
|
|
325
|
+
* * `none`
|
|
325
326
|
*
|
|
326
327
|
*/
|
|
327
328
|
set rounded(rounded) {
|
|
328
329
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
329
|
-
|
|
330
|
-
|
|
330
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
331
|
+
if (newRounded !== 'none') {
|
|
332
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
331
333
|
}
|
|
332
|
-
this._rounded =
|
|
334
|
+
this._rounded = newRounded;
|
|
333
335
|
}
|
|
334
336
|
get rounded() {
|
|
335
337
|
return this._rounded;
|
|
@@ -338,22 +340,23 @@ export class TimePickerComponent {
|
|
|
338
340
|
* Sets the fillMode of the component.
|
|
339
341
|
*
|
|
340
342
|
* The possible values are:
|
|
341
|
-
* * `
|
|
342
|
-
* * `
|
|
343
|
-
* * `
|
|
344
|
-
* * `
|
|
343
|
+
* * `solid` (Default)
|
|
344
|
+
* * `flat`
|
|
345
|
+
* * `outline`
|
|
346
|
+
* * `none`
|
|
345
347
|
*
|
|
346
348
|
*/
|
|
347
349
|
set fillMode(fillMode) {
|
|
348
350
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
349
351
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
350
352
|
this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
this.renderer.addClass(this.
|
|
354
|
-
this.renderer.addClass(this.toggleButton.nativeElement,
|
|
353
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
354
|
+
if (newFillMode !== 'none') {
|
|
355
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
356
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', newFillMode));
|
|
357
|
+
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${newFillMode}-base`);
|
|
355
358
|
}
|
|
356
|
-
this._fillMode =
|
|
359
|
+
this._fillMode = newFillMode;
|
|
357
360
|
}
|
|
358
361
|
get fillMode() {
|
|
359
362
|
return this._fillMode;
|