@progress/kendo-angular-dateinputs 7.0.0-next.202204060919 → 7.0.0-next.202204081436
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/common/models/fillmode.d.ts +5 -5
- package/common/models/rounded.d.ts +6 -6
- package/common/models/size.d.ts +5 -5
- package/dateinput/dateinput.component.d.ts +13 -13
- package/datepicker/datepicker.component.d.ts +13 -13
- package/esm2015/dateinput/dateinput.component.js +36 -33
- package/esm2015/datepicker/datepicker.component.js +29 -26
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/util.js +12 -0
- package/fesm2015/kendo-angular-dateinputs.js +76 -58
- package/package.json +1 -1
- package/util.d.ts +12 -0
|
@@ -28,7 +28,7 @@ const packageMetadata = {
|
|
|
28
28
|
name: '@progress/kendo-angular-dateinputs',
|
|
29
29
|
productName: 'Kendo UI for Angular',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
31
|
-
publishDate:
|
|
31
|
+
publishDate: 1649428453,
|
|
32
32
|
version: '',
|
|
33
33
|
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'
|
|
34
34
|
};
|
|
@@ -497,6 +497,18 @@ const getFillModeClass = (component, fillMode) => {
|
|
|
497
497
|
};
|
|
498
498
|
return FILLMODE_CLASSES[fillMode];
|
|
499
499
|
};
|
|
500
|
+
/**
|
|
501
|
+
* @hidden
|
|
502
|
+
*/
|
|
503
|
+
const DEFAULT_ROUNDED = 'medium';
|
|
504
|
+
/**
|
|
505
|
+
* @hidden
|
|
506
|
+
*/
|
|
507
|
+
const DEFAULT_SIZE = 'medium';
|
|
508
|
+
/**
|
|
509
|
+
* @hidden
|
|
510
|
+
*/
|
|
511
|
+
const DEFAULT_FILL_MODE = 'solid';
|
|
500
512
|
|
|
501
513
|
const EMPTY_DATA$3 = [[]];
|
|
502
514
|
const CELLS_LENGTH$3 = 4;
|
|
@@ -7140,9 +7152,9 @@ class DateInputComponent {
|
|
|
7140
7152
|
this.onControlChange = noop$2;
|
|
7141
7153
|
this.onControlTouched = noop$2;
|
|
7142
7154
|
this.onValidatorChange = noop$2;
|
|
7143
|
-
this._size =
|
|
7144
|
-
this._rounded =
|
|
7145
|
-
this._fillMode =
|
|
7155
|
+
this._size = DEFAULT_SIZE;
|
|
7156
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
7157
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
7146
7158
|
this.symbolsMap = this.dateSymbolMap();
|
|
7147
7159
|
this.updateFormatSections();
|
|
7148
7160
|
if (this.pickerService) {
|
|
@@ -7178,18 +7190,19 @@ class DateInputComponent {
|
|
|
7178
7190
|
* Sets the size of the component.
|
|
7179
7191
|
*
|
|
7180
7192
|
* The possible values are:
|
|
7181
|
-
* * `
|
|
7182
|
-
* * `
|
|
7183
|
-
* * `
|
|
7184
|
-
* * `
|
|
7193
|
+
* * `small`
|
|
7194
|
+
* * `medium` (Default)
|
|
7195
|
+
* * `large`
|
|
7196
|
+
* * `none`
|
|
7185
7197
|
*
|
|
7186
7198
|
*/
|
|
7187
7199
|
set size(size) {
|
|
7188
7200
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
7189
|
-
|
|
7190
|
-
|
|
7201
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
7202
|
+
if (newSize !== 'none') {
|
|
7203
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
7191
7204
|
}
|
|
7192
|
-
this._size =
|
|
7205
|
+
this._size = newSize;
|
|
7193
7206
|
}
|
|
7194
7207
|
get size() {
|
|
7195
7208
|
return this._size;
|
|
@@ -7198,19 +7211,20 @@ class DateInputComponent {
|
|
|
7198
7211
|
* Sets the border radius of the component.
|
|
7199
7212
|
*
|
|
7200
7213
|
* The possible values are:
|
|
7201
|
-
* * `
|
|
7202
|
-
* * `
|
|
7203
|
-
* * `
|
|
7204
|
-
* * `
|
|
7205
|
-
* * `
|
|
7214
|
+
* * `small`
|
|
7215
|
+
* * `medium` (Default)
|
|
7216
|
+
* * `large`
|
|
7217
|
+
* * `full`
|
|
7218
|
+
* * `none`
|
|
7206
7219
|
*
|
|
7207
7220
|
*/
|
|
7208
7221
|
set rounded(rounded) {
|
|
7209
7222
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
7210
|
-
|
|
7211
|
-
|
|
7223
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
7224
|
+
if (newRounded !== 'none') {
|
|
7225
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
7212
7226
|
}
|
|
7213
|
-
this._rounded =
|
|
7227
|
+
this._rounded = newRounded;
|
|
7214
7228
|
}
|
|
7215
7229
|
get rounded() {
|
|
7216
7230
|
return this._rounded;
|
|
@@ -7219,22 +7233,23 @@ class DateInputComponent {
|
|
|
7219
7233
|
* Sets the fillMode of the component.
|
|
7220
7234
|
*
|
|
7221
7235
|
* The possible values are:
|
|
7222
|
-
* * `
|
|
7223
|
-
* * `
|
|
7224
|
-
* * `
|
|
7225
|
-
* * `
|
|
7236
|
+
* * `solid` (Default)
|
|
7237
|
+
* * `flat`
|
|
7238
|
+
* * `outline`
|
|
7239
|
+
* * `none`
|
|
7226
7240
|
*
|
|
7227
7241
|
*/
|
|
7228
7242
|
set fillMode(fillMode) {
|
|
7229
7243
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
7230
|
-
|
|
7231
|
-
|
|
7244
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
7245
|
+
if (newFillMode !== 'none') {
|
|
7246
|
+
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', newFillMode));
|
|
7232
7247
|
if (this.spinners && this.spinup && this.spindown) {
|
|
7233
|
-
this.setSpinnerFill(this.spinup.nativeElement,
|
|
7234
|
-
this.setSpinnerFill(this.spindown.nativeElement,
|
|
7248
|
+
this.setSpinnerFill(this.spinup.nativeElement, newFillMode, this.fillMode);
|
|
7249
|
+
this.setSpinnerFill(this.spindown.nativeElement, newFillMode, this.fillMode);
|
|
7235
7250
|
}
|
|
7236
7251
|
}
|
|
7237
|
-
this._fillMode =
|
|
7252
|
+
this._fillMode = newFillMode;
|
|
7238
7253
|
}
|
|
7239
7254
|
get fillMode() {
|
|
7240
7255
|
return this._fillMode;
|
|
@@ -7843,7 +7858,7 @@ class DateInputComponent {
|
|
|
7843
7858
|
}
|
|
7844
7859
|
}
|
|
7845
7860
|
setSpinnerFill(spinner, fill, oldFill) {
|
|
7846
|
-
if (oldFill) {
|
|
7861
|
+
if (oldFill !== 'none') {
|
|
7847
7862
|
this.renderer.removeClass(spinner, `k-button-${oldFill}`);
|
|
7848
7863
|
this.renderer.removeClass(spinner, `k-button-${oldFill}-base`);
|
|
7849
7864
|
}
|
|
@@ -7851,16 +7866,16 @@ class DateInputComponent {
|
|
|
7851
7866
|
this.renderer.addClass(spinner, `k-button-${fill}-base`);
|
|
7852
7867
|
}
|
|
7853
7868
|
setComponentClasses() {
|
|
7854
|
-
if (this.size) {
|
|
7869
|
+
if (this.size !== 'none') {
|
|
7855
7870
|
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
7856
7871
|
}
|
|
7857
|
-
if (this.rounded) {
|
|
7872
|
+
if (this.rounded !== 'none') {
|
|
7858
7873
|
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
7859
7874
|
}
|
|
7860
|
-
if (this.fillMode) {
|
|
7875
|
+
if (this.fillMode !== 'none') {
|
|
7861
7876
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
7862
7877
|
}
|
|
7863
|
-
if (this.spinners) {
|
|
7878
|
+
if (this.spinners && this.fillMode !== 'none') {
|
|
7864
7879
|
this.setSpinnerFill(this.spinup.nativeElement, this.fillMode);
|
|
7865
7880
|
this.setSpinnerFill(this.spindown.nativeElement, this.fillMode);
|
|
7866
7881
|
}
|
|
@@ -8465,9 +8480,9 @@ class DatePickerComponent {
|
|
|
8465
8480
|
this.incompleteValidator = noop$2;
|
|
8466
8481
|
this.resolvedPromise = Promise.resolve(null);
|
|
8467
8482
|
this.domEvents = [];
|
|
8468
|
-
this._size =
|
|
8469
|
-
this._rounded =
|
|
8470
|
-
this._fillMode =
|
|
8483
|
+
this._size = DEFAULT_SIZE;
|
|
8484
|
+
this._rounded = DEFAULT_ROUNDED;
|
|
8485
|
+
this._fillMode = DEFAULT_FILL_MODE;
|
|
8471
8486
|
validatePackage(packageMetadata);
|
|
8472
8487
|
this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
|
|
8473
8488
|
this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
|
|
@@ -8573,20 +8588,21 @@ class DatePickerComponent {
|
|
|
8573
8588
|
* Sets the size of the component.
|
|
8574
8589
|
*
|
|
8575
8590
|
* The possible values are:
|
|
8576
|
-
* * `
|
|
8577
|
-
* * `
|
|
8578
|
-
* * `
|
|
8579
|
-
* * `
|
|
8591
|
+
* * `small`
|
|
8592
|
+
* * `medium` (Default)
|
|
8593
|
+
* * `large`
|
|
8594
|
+
* * `none`
|
|
8580
8595
|
*
|
|
8581
8596
|
*/
|
|
8582
8597
|
set size(size) {
|
|
8583
8598
|
this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
|
|
8584
8599
|
this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
this.renderer.addClass(this.
|
|
8600
|
+
const newSize = size ? size : DEFAULT_SIZE;
|
|
8601
|
+
if (newSize !== 'none') {
|
|
8602
|
+
this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', newSize));
|
|
8603
|
+
this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', newSize));
|
|
8588
8604
|
}
|
|
8589
|
-
this._size =
|
|
8605
|
+
this._size = newSize;
|
|
8590
8606
|
}
|
|
8591
8607
|
get size() {
|
|
8592
8608
|
return this._size;
|
|
@@ -8595,19 +8611,20 @@ class DatePickerComponent {
|
|
|
8595
8611
|
* Sets the border radius of the component.
|
|
8596
8612
|
*
|
|
8597
8613
|
* The possible values are:
|
|
8598
|
-
* * `
|
|
8599
|
-
* * `
|
|
8600
|
-
* * `
|
|
8601
|
-
* * `
|
|
8602
|
-
* * `
|
|
8614
|
+
* * `small`
|
|
8615
|
+
* * `medium` (Default)
|
|
8616
|
+
* * `large`
|
|
8617
|
+
* * `full`
|
|
8618
|
+
* * `none`
|
|
8603
8619
|
*
|
|
8604
8620
|
*/
|
|
8605
8621
|
set rounded(rounded) {
|
|
8606
8622
|
this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
|
|
8607
|
-
|
|
8608
|
-
|
|
8623
|
+
const newRounded = rounded ? rounded : DEFAULT_ROUNDED;
|
|
8624
|
+
if (newRounded !== 'none') {
|
|
8625
|
+
this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(newRounded));
|
|
8609
8626
|
}
|
|
8610
|
-
this._rounded =
|
|
8627
|
+
this._rounded = newRounded;
|
|
8611
8628
|
}
|
|
8612
8629
|
get rounded() {
|
|
8613
8630
|
return this._rounded;
|
|
@@ -8616,22 +8633,23 @@ class DatePickerComponent {
|
|
|
8616
8633
|
* Sets the fillMode of the component.
|
|
8617
8634
|
*
|
|
8618
8635
|
* The possible values are:
|
|
8619
|
-
* * `
|
|
8620
|
-
* * `
|
|
8621
|
-
* * `
|
|
8622
|
-
* * `
|
|
8636
|
+
* * `solid` (Default)
|
|
8637
|
+
* * `flat`
|
|
8638
|
+
* * `outline`
|
|
8639
|
+
* * `none`
|
|
8623
8640
|
*
|
|
8624
8641
|
*/
|
|
8625
8642
|
set fillMode(fillMode) {
|
|
8626
8643
|
this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
|
|
8627
8644
|
this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
|
|
8628
8645
|
this.renderer.removeClass(this.toggleButton.nativeElement, `k-button-${this.fillMode}-base`);
|
|
8629
|
-
|
|
8646
|
+
const newFillMode = fillMode ? fillMode : DEFAULT_FILL_MODE;
|
|
8647
|
+
if (newFillMode !== 'none') {
|
|
8630
8648
|
this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
|
|
8631
8649
|
this.renderer.addClass(this.toggleButton.nativeElement, `k-button-${fillMode}-base`);
|
|
8632
8650
|
this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
|
|
8633
8651
|
}
|
|
8634
|
-
this._fillMode =
|
|
8652
|
+
this._fillMode = newFillMode;
|
|
8635
8653
|
}
|
|
8636
8654
|
get fillMode() {
|
|
8637
8655
|
return this._fillMode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dateinputs",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.202204081436",
|
|
4
4
|
"description": "Kendo UI for Angular Date Inputs Package - Everything you need to add date selection functionality to apps (DatePicker, TimePicker, DateInput, DateRangePicker, DateTimePicker, Calendar, and MultiViewCalendar).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
package/util.d.ts
CHANGED
|
@@ -185,3 +185,15 @@ export declare const getRoundedClass: (rounded: DateInputRounded) => string;
|
|
|
185
185
|
* Return the fillMode class based on the component and fillMode input.
|
|
186
186
|
*/
|
|
187
187
|
export declare const getFillModeClass: (component: string, fillMode: DateInputFillMode) => string;
|
|
188
|
+
/**
|
|
189
|
+
* @hidden
|
|
190
|
+
*/
|
|
191
|
+
export declare const DEFAULT_ROUNDED: DateInputRounded;
|
|
192
|
+
/**
|
|
193
|
+
* @hidden
|
|
194
|
+
*/
|
|
195
|
+
export declare const DEFAULT_SIZE: DateInputSize;
|
|
196
|
+
/**
|
|
197
|
+
* @hidden
|
|
198
|
+
*/
|
|
199
|
+
export declare const DEFAULT_FILL_MODE: DateInputFillMode;
|