@progress/kendo-angular-dateinputs 16.3.0-develop.12 → 16.3.0-develop.14
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/calendar/horizontal-view-list.component.d.ts +2 -4
- package/esm2020/calendar/horizontal-view-list.component.mjs +0 -18
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-dateinputs.mjs +2 -20
- package/fesm2020/progress-kendo-angular-dateinputs.mjs +2 -20
- package/package.json +9 -9
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2024 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 { ChangeDetectorRef, EventEmitter, OnChanges, TemplateRef, OnDestroy, ElementRef, Renderer2
|
|
5
|
+
import { ChangeDetectorRef, EventEmitter, OnChanges, TemplateRef, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
6
6
|
import { BusViewService } from './services/bus-view.service';
|
|
7
7
|
import { ViewService } from './models/view-service.interface';
|
|
8
8
|
import { WeekNamesService } from './services/weeknames.service';
|
|
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
/**
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
|
-
export declare class HorizontalViewListComponent implements OnChanges,
|
|
20
|
+
export declare class HorizontalViewListComponent implements OnChanges, OnDestroy {
|
|
21
21
|
private bus;
|
|
22
22
|
intl: IntlService;
|
|
23
23
|
private weekService;
|
|
@@ -86,7 +86,6 @@ export declare class HorizontalViewListComponent implements OnChanges, AfterView
|
|
|
86
86
|
private animation;
|
|
87
87
|
constructor(bus: BusViewService, intl: IntlService, weekService: WeekNamesService, cdr: ChangeDetectorRef, element: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
88
88
|
ngOnChanges(changes: any): void;
|
|
89
|
-
ngAfterViewInit(): void;
|
|
90
89
|
ngOnDestroy(): void;
|
|
91
90
|
initService(): void;
|
|
92
91
|
isMonthView(): boolean;
|
|
@@ -97,7 +96,6 @@ export declare class HorizontalViewListComponent implements OnChanges, AfterView
|
|
|
97
96
|
navigate(action: Action): Date;
|
|
98
97
|
canNavigate(action: Action): boolean;
|
|
99
98
|
private getWeekNames;
|
|
100
|
-
private setTableMinWidth;
|
|
101
99
|
private intlChange;
|
|
102
100
|
private clampDate;
|
|
103
101
|
private move;
|
|
@@ -135,13 +135,6 @@ export class HorizontalViewListComponent {
|
|
|
135
135
|
this.renderer.setAttribute(this.element.nativeElement, 'tabindex', this.tabIndex.toString());
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
ngAfterViewInit() {
|
|
139
|
-
// make the calendar look the same in the different browsers
|
|
140
|
-
// which also smoothens the navigation animation
|
|
141
|
-
if (this.views === 1) {
|
|
142
|
-
this.setTableMinWidth();
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
138
|
ngOnDestroy() {
|
|
146
139
|
this.intlSubscription.unsubscribe();
|
|
147
140
|
}
|
|
@@ -182,9 +175,6 @@ export class HorizontalViewListComponent {
|
|
|
182
175
|
this.cdr.detectChanges();
|
|
183
176
|
container.querySelectorAll('table').forEach(table => {
|
|
184
177
|
this.renderer.setStyle(table, 'width', `${tableWidth}px`);
|
|
185
|
-
if (this.views === 1) {
|
|
186
|
-
this.renderer.setStyle(table, 'min-width', `${initialContainerWidth}px`);
|
|
187
|
-
}
|
|
188
178
|
});
|
|
189
179
|
// we always slide by the width of 1 table
|
|
190
180
|
// cross-browser compatibility is ensured by measuring the client rectangle and substracting the gap
|
|
@@ -244,14 +234,6 @@ export class HorizontalViewListComponent {
|
|
|
244
234
|
getWeekNames(type) {
|
|
245
235
|
return this.weekService.getWeekNames(this.weekNumber, type);
|
|
246
236
|
}
|
|
247
|
-
setTableMinWidth() {
|
|
248
|
-
const container = this.element.nativeElement;
|
|
249
|
-
const table = container.querySelector('table');
|
|
250
|
-
if (table) {
|
|
251
|
-
const containerWidth = parseFloat(getComputedStyle(container).width);
|
|
252
|
-
this.renderer.setStyle(table, 'min-width', `${containerWidth}px`);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
237
|
intlChange() {
|
|
256
238
|
this.weekNames = this.getWeekNames(this.weekDaysFormat);
|
|
257
239
|
this.wideWeekNames = this.getWeekNames('wide');
|
|
@@ -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:
|
|
13
|
-
version: '16.3.0-develop.
|
|
12
|
+
publishDate: 1718879314,
|
|
13
|
+
version: '16.3.0-develop.14',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -37,8 +37,8 @@ const packageMetadata = {
|
|
|
37
37
|
name: '@progress/kendo-angular-dateinputs',
|
|
38
38
|
productName: 'Kendo UI for Angular',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '16.3.0-develop.
|
|
40
|
+
publishDate: 1718879314,
|
|
41
|
+
version: '16.3.0-develop.14',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -2146,13 +2146,6 @@ class HorizontalViewListComponent {
|
|
|
2146
2146
|
this.renderer.setAttribute(this.element.nativeElement, 'tabindex', this.tabIndex.toString());
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
ngAfterViewInit() {
|
|
2150
|
-
// make the calendar look the same in the different browsers
|
|
2151
|
-
// which also smoothens the navigation animation
|
|
2152
|
-
if (this.views === 1) {
|
|
2153
|
-
this.setTableMinWidth();
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
2149
|
ngOnDestroy() {
|
|
2157
2150
|
this.intlSubscription.unsubscribe();
|
|
2158
2151
|
}
|
|
@@ -2193,9 +2186,6 @@ class HorizontalViewListComponent {
|
|
|
2193
2186
|
this.cdr.detectChanges();
|
|
2194
2187
|
container.querySelectorAll('table').forEach(table => {
|
|
2195
2188
|
this.renderer.setStyle(table, 'width', `${tableWidth}px`);
|
|
2196
|
-
if (this.views === 1) {
|
|
2197
|
-
this.renderer.setStyle(table, 'min-width', `${initialContainerWidth}px`);
|
|
2198
|
-
}
|
|
2199
2189
|
});
|
|
2200
2190
|
// we always slide by the width of 1 table
|
|
2201
2191
|
// cross-browser compatibility is ensured by measuring the client rectangle and substracting the gap
|
|
@@ -2255,14 +2245,6 @@ class HorizontalViewListComponent {
|
|
|
2255
2245
|
getWeekNames(type) {
|
|
2256
2246
|
return this.weekService.getWeekNames(this.weekNumber, type);
|
|
2257
2247
|
}
|
|
2258
|
-
setTableMinWidth() {
|
|
2259
|
-
const container = this.element.nativeElement;
|
|
2260
|
-
const table = container.querySelector('table');
|
|
2261
|
-
if (table) {
|
|
2262
|
-
const containerWidth = parseFloat(getComputedStyle(container).width);
|
|
2263
|
-
this.renderer.setStyle(table, 'min-width', `${containerWidth}px`);
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
2248
|
intlChange() {
|
|
2267
2249
|
this.weekNames = this.getWeekNames(this.weekDaysFormat);
|
|
2268
2250
|
this.wideWeekNames = this.getWeekNames('wide');
|
|
@@ -37,8 +37,8 @@ const packageMetadata = {
|
|
|
37
37
|
name: '@progress/kendo-angular-dateinputs',
|
|
38
38
|
productName: 'Kendo UI for Angular',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '16.3.0-develop.
|
|
40
|
+
publishDate: 1718879314,
|
|
41
|
+
version: '16.3.0-develop.14',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -2146,13 +2146,6 @@ class HorizontalViewListComponent {
|
|
|
2146
2146
|
this.renderer.setAttribute(this.element.nativeElement, 'tabindex', this.tabIndex.toString());
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
|
-
ngAfterViewInit() {
|
|
2150
|
-
// make the calendar look the same in the different browsers
|
|
2151
|
-
// which also smoothens the navigation animation
|
|
2152
|
-
if (this.views === 1) {
|
|
2153
|
-
this.setTableMinWidth();
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
2149
|
ngOnDestroy() {
|
|
2157
2150
|
this.intlSubscription.unsubscribe();
|
|
2158
2151
|
}
|
|
@@ -2193,9 +2186,6 @@ class HorizontalViewListComponent {
|
|
|
2193
2186
|
this.cdr.detectChanges();
|
|
2194
2187
|
container.querySelectorAll('table').forEach(table => {
|
|
2195
2188
|
this.renderer.setStyle(table, 'width', `${tableWidth}px`);
|
|
2196
|
-
if (this.views === 1) {
|
|
2197
|
-
this.renderer.setStyle(table, 'min-width', `${initialContainerWidth}px`);
|
|
2198
|
-
}
|
|
2199
2189
|
});
|
|
2200
2190
|
// we always slide by the width of 1 table
|
|
2201
2191
|
// cross-browser compatibility is ensured by measuring the client rectangle and substracting the gap
|
|
@@ -2255,14 +2245,6 @@ class HorizontalViewListComponent {
|
|
|
2255
2245
|
getWeekNames(type) {
|
|
2256
2246
|
return this.weekService.getWeekNames(this.weekNumber, type);
|
|
2257
2247
|
}
|
|
2258
|
-
setTableMinWidth() {
|
|
2259
|
-
const container = this.element.nativeElement;
|
|
2260
|
-
const table = container.querySelector('table');
|
|
2261
|
-
if (table) {
|
|
2262
|
-
const containerWidth = parseFloat(getComputedStyle(container).width);
|
|
2263
|
-
this.renderer.setStyle(table, 'min-width', `${containerWidth}px`);
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
2248
|
intlChange() {
|
|
2267
2249
|
this.weekNames = this.getWeekNames(this.weekDaysFormat);
|
|
2268
2250
|
this.wideWeekNames = this.getWeekNames('wide');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dateinputs",
|
|
3
|
-
"version": "16.3.0-develop.
|
|
3
|
+
"version": "16.3.0-develop.14",
|
|
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",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"@angular/forms": "15 - 18",
|
|
35
35
|
"@angular/platform-browser": "15 - 18",
|
|
36
36
|
"@progress/kendo-licensing": "^1.0.2",
|
|
37
|
-
"@progress/kendo-angular-buttons": "16.3.0-develop.
|
|
38
|
-
"@progress/kendo-angular-common": "16.3.0-develop.
|
|
39
|
-
"@progress/kendo-angular-intl": "16.3.0-develop.
|
|
40
|
-
"@progress/kendo-angular-l10n": "16.3.0-develop.
|
|
41
|
-
"@progress/kendo-angular-icons": "16.3.0-develop.
|
|
42
|
-
"@progress/kendo-angular-popup": "16.3.0-develop.
|
|
43
|
-
"@progress/kendo-angular-navigation": "16.3.0-develop.
|
|
37
|
+
"@progress/kendo-angular-buttons": "16.3.0-develop.14",
|
|
38
|
+
"@progress/kendo-angular-common": "16.3.0-develop.14",
|
|
39
|
+
"@progress/kendo-angular-intl": "16.3.0-develop.14",
|
|
40
|
+
"@progress/kendo-angular-l10n": "16.3.0-develop.14",
|
|
41
|
+
"@progress/kendo-angular-icons": "16.3.0-develop.14",
|
|
42
|
+
"@progress/kendo-angular-popup": "16.3.0-develop.14",
|
|
43
|
+
"@progress/kendo-angular-navigation": "16.3.0-develop.14",
|
|
44
44
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"tslib": "^2.3.1",
|
|
48
|
-
"@progress/kendo-angular-schematics": "16.3.0-develop.
|
|
48
|
+
"@progress/kendo-angular-schematics": "16.3.0-develop.14",
|
|
49
49
|
"@progress/kendo-common": "^0.2.0",
|
|
50
50
|
"@progress/kendo-date-math": "^1.1.0",
|
|
51
51
|
"@progress/kendo-dateinputs-common": "^0.3.3"
|