@progress/kendo-angular-scheduler 18.5.2-develop.7 → 18.5.2-develop.9
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.
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '18.5.2-develop.
|
|
13
|
+
publishDate: 1744882990,
|
|
14
|
+
version: '18.5.2-develop.9',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -80,12 +80,14 @@ export class YearViewInternalComponent extends BaseView {
|
|
|
80
80
|
}
|
|
81
81
|
getSlotClass(date) {
|
|
82
82
|
if (this.slotClass) {
|
|
83
|
-
|
|
83
|
+
const slotClassValue = this.slotClass({
|
|
84
84
|
start: date,
|
|
85
85
|
end: addDays(date, 1),
|
|
86
86
|
events: this.eventsPerDay(date),
|
|
87
87
|
});
|
|
88
|
+
return this.convertNgClassBindings(slotClassValue);
|
|
88
89
|
}
|
|
90
|
+
return [];
|
|
89
91
|
}
|
|
90
92
|
getEventClasses(item, resources, isAllDay) {
|
|
91
93
|
if (this.eventClass) {
|
|
@@ -257,14 +259,31 @@ export class YearViewInternalComponent extends BaseView {
|
|
|
257
259
|
if (this.slotClass) {
|
|
258
260
|
this.tds.forEach((td) => {
|
|
259
261
|
const date = toUTCDate(new Date(getDateAttribute(td)));
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
const userClasses = this.getSlotClass(date);
|
|
263
|
+
userClasses.forEach(userClass => {
|
|
264
|
+
if (userClass && userClass.trim() !== '') {
|
|
265
|
+
this.renderer.addClass(td, userClass);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
this.cachedTds.push(td);
|
|
265
269
|
});
|
|
266
270
|
}
|
|
267
271
|
}
|
|
272
|
+
convertNgClassBindings(value) {
|
|
273
|
+
if (typeof value === 'string') {
|
|
274
|
+
return [value];
|
|
275
|
+
}
|
|
276
|
+
if (Array.isArray(value)) {
|
|
277
|
+
return value;
|
|
278
|
+
}
|
|
279
|
+
if (value instanceof Set) {
|
|
280
|
+
return Array.from(value);
|
|
281
|
+
}
|
|
282
|
+
if (typeof value === 'object' && value !== null) {
|
|
283
|
+
return Object.keys(value).filter(key => value[key]);
|
|
284
|
+
}
|
|
285
|
+
return [];
|
|
286
|
+
}
|
|
268
287
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YearViewInternalComponent, deps: [{ token: i1.LocalizationService }, { token: i2.FocusService }, { token: i3.IntlService }, { token: i4.ViewContextService }, { token: i5.ViewStateService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i6.PDFService }, { token: i0.ElementRef }, { token: i7.MonthSlotService }, { token: i8.ScrollbarWidthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
269
288
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: YearViewInternalComponent, isStandalone: true, selector: "year-view-internal", inputs: { newRange: "newRange", dateRangeFn: "dateRangeFn" }, providers: [MonthSlotService], viewQueries: [{ propertyName: "calendar", first: true, predicate: MultiViewCalendarComponent, descendants: true }, { propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
270
289
|
<div #content class="k-scheduler-layout k-scheduler-layout-flex k-scheduler-yearview">
|
|
@@ -43,8 +43,8 @@ const packageMetadata = {
|
|
|
43
43
|
productName: 'Kendo UI for Angular',
|
|
44
44
|
productCode: 'KENDOUIANGULAR',
|
|
45
45
|
productCodes: ['KENDOUIANGULAR'],
|
|
46
|
-
publishDate:
|
|
47
|
-
version: '18.5.2-develop.
|
|
46
|
+
publishDate: 1744882990,
|
|
47
|
+
version: '18.5.2-develop.9',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -19132,12 +19132,14 @@ class YearViewInternalComponent extends BaseView {
|
|
|
19132
19132
|
}
|
|
19133
19133
|
getSlotClass(date) {
|
|
19134
19134
|
if (this.slotClass) {
|
|
19135
|
-
|
|
19135
|
+
const slotClassValue = this.slotClass({
|
|
19136
19136
|
start: date,
|
|
19137
19137
|
end: addDays(date, 1),
|
|
19138
19138
|
events: this.eventsPerDay(date),
|
|
19139
19139
|
});
|
|
19140
|
+
return this.convertNgClassBindings(slotClassValue);
|
|
19140
19141
|
}
|
|
19142
|
+
return [];
|
|
19141
19143
|
}
|
|
19142
19144
|
getEventClasses(item, resources, isAllDay) {
|
|
19143
19145
|
if (this.eventClass) {
|
|
@@ -19309,14 +19311,31 @@ class YearViewInternalComponent extends BaseView {
|
|
|
19309
19311
|
if (this.slotClass) {
|
|
19310
19312
|
this.tds.forEach((td) => {
|
|
19311
19313
|
const date = toUTCDate(new Date(getDateAttribute(td)));
|
|
19312
|
-
const
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19316
|
-
|
|
19314
|
+
const userClasses = this.getSlotClass(date);
|
|
19315
|
+
userClasses.forEach(userClass => {
|
|
19316
|
+
if (userClass && userClass.trim() !== '') {
|
|
19317
|
+
this.renderer.addClass(td, userClass);
|
|
19318
|
+
}
|
|
19319
|
+
});
|
|
19320
|
+
this.cachedTds.push(td);
|
|
19317
19321
|
});
|
|
19318
19322
|
}
|
|
19319
19323
|
}
|
|
19324
|
+
convertNgClassBindings(value) {
|
|
19325
|
+
if (typeof value === 'string') {
|
|
19326
|
+
return [value];
|
|
19327
|
+
}
|
|
19328
|
+
if (Array.isArray(value)) {
|
|
19329
|
+
return value;
|
|
19330
|
+
}
|
|
19331
|
+
if (value instanceof Set) {
|
|
19332
|
+
return Array.from(value);
|
|
19333
|
+
}
|
|
19334
|
+
if (typeof value === 'object' && value !== null) {
|
|
19335
|
+
return Object.keys(value).filter(key => value[key]);
|
|
19336
|
+
}
|
|
19337
|
+
return [];
|
|
19338
|
+
}
|
|
19320
19339
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YearViewInternalComponent, deps: [{ token: i1$1.LocalizationService }, { token: FocusService }, { token: i4.IntlService }, { token: ViewContextService }, { token: ViewStateService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: PDFService }, { token: i0.ElementRef }, { token: MonthSlotService }, { token: i7.ScrollbarWidthService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
19321
19340
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: YearViewInternalComponent, isStandalone: true, selector: "year-view-internal", inputs: { newRange: "newRange", dateRangeFn: "dateRangeFn" }, providers: [MonthSlotService], viewQueries: [{ propertyName: "calendar", first: true, predicate: MultiViewCalendarComponent, descendants: true }, { propertyName: "tooltip", first: true, predicate: TooltipDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
19322
19341
|
<div #content class="k-scheduler-layout k-scheduler-layout-flex k-scheduler-yearview">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "18.5.2-develop.
|
|
3
|
+
"version": "18.5.2-develop.9",
|
|
4
4
|
"description": "Kendo UI Scheduler Angular - Outlook or Google-style angular scheduler calendar. Full-featured and customizable embedded scheduling from the creator developers trust for professional UI components.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1744882990,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
"@progress/kendo-data-query": "^1.0.0",
|
|
33
33
|
"@progress/kendo-drawing": "^1.21.0",
|
|
34
34
|
"@progress/kendo-licensing": "^1.5.0",
|
|
35
|
-
"@progress/kendo-angular-tooltip": "18.5.2-develop.
|
|
36
|
-
"@progress/kendo-angular-buttons": "18.5.2-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "18.5.2-develop.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "18.5.2-develop.
|
|
39
|
-
"@progress/kendo-angular-dialog": "18.5.2-develop.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "18.5.2-develop.
|
|
41
|
-
"@progress/kendo-angular-icons": "18.5.2-develop.
|
|
42
|
-
"@progress/kendo-angular-inputs": "18.5.2-develop.
|
|
43
|
-
"@progress/kendo-angular-intl": "18.5.2-develop.
|
|
44
|
-
"@progress/kendo-angular-l10n": "18.5.2-develop.
|
|
45
|
-
"@progress/kendo-angular-label": "18.5.2-develop.
|
|
46
|
-
"@progress/kendo-angular-popup": "18.5.2-develop.
|
|
35
|
+
"@progress/kendo-angular-tooltip": "18.5.2-develop.9",
|
|
36
|
+
"@progress/kendo-angular-buttons": "18.5.2-develop.9",
|
|
37
|
+
"@progress/kendo-angular-common": "18.5.2-develop.9",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "18.5.2-develop.9",
|
|
39
|
+
"@progress/kendo-angular-dialog": "18.5.2-develop.9",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "18.5.2-develop.9",
|
|
41
|
+
"@progress/kendo-angular-icons": "18.5.2-develop.9",
|
|
42
|
+
"@progress/kendo-angular-inputs": "18.5.2-develop.9",
|
|
43
|
+
"@progress/kendo-angular-intl": "18.5.2-develop.9",
|
|
44
|
+
"@progress/kendo-angular-l10n": "18.5.2-develop.9",
|
|
45
|
+
"@progress/kendo-angular-label": "18.5.2-develop.9",
|
|
46
|
+
"@progress/kendo-angular-popup": "18.5.2-develop.9",
|
|
47
47
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"tslib": "^2.3.1",
|
|
51
|
-
"@progress/kendo-angular-schematics": "18.5.2-develop.
|
|
51
|
+
"@progress/kendo-angular-schematics": "18.5.2-develop.9",
|
|
52
52
|
"@progress/kendo-date-math": "^1.3.2",
|
|
53
53
|
"@progress/kendo-draggable": "^3.0.2",
|
|
54
54
|
"@progress/kendo-file-saver": "^1.0.7",
|
|
@@ -4,10 +4,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SchedulerModule', package: 'scheduler', peerDependencies: {
|
|
6
6
|
// peer deps of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '18.5.2-develop.
|
|
8
|
-
'@progress/kendo-angular-navigation': '18.5.2-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '18.5.2-develop.9',
|
|
8
|
+
'@progress/kendo-angular-navigation': '18.5.2-develop.9',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '18.5.2-develop.
|
|
10
|
+
'@progress/kendo-angular-dialog': '18.5.2-develop.9',
|
|
11
11
|
// peer dependency of kendo-angular-icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
13
13
|
} });
|
|
@@ -45,7 +45,7 @@ export declare class YearViewInternalComponent extends BaseView implements After
|
|
|
45
45
|
private isTooltipClicked;
|
|
46
46
|
constructor(localization: LocalizationService, focusService: FocusService, intl: IntlService, viewContext: ViewContextService, viewState: ViewStateService, zone: NgZone, renderer: Renderer2, pdfService: PDFService, element: ElementRef, slotService: MonthSlotService, scrollBarWidthService: ScrollbarWidthService, changeDetector: ChangeDetectorRef);
|
|
47
47
|
ngAfterViewInit(): void;
|
|
48
|
-
getSlotClass(date: any): string;
|
|
48
|
+
getSlotClass(date: any): string[];
|
|
49
49
|
getEventClasses(item: any, resources: any, isAllDay?: boolean): any;
|
|
50
50
|
onBlur(): void;
|
|
51
51
|
getDate(element: ElementRef): Date;
|
|
@@ -73,6 +73,7 @@ export declare class YearViewInternalComponent extends BaseView implements After
|
|
|
73
73
|
private getLastDayOfMonth;
|
|
74
74
|
cachedTds: any[];
|
|
75
75
|
private updateTds;
|
|
76
|
+
private convertNgClassBindings;
|
|
76
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<YearViewInternalComponent, never>;
|
|
77
78
|
static ɵcmp: i0.ɵɵComponentDeclaration<YearViewInternalComponent, "year-view-internal", never, { "newRange": { "alias": "newRange"; "required": false; }; "dateRangeFn": { "alias": "dateRangeFn"; "required": false; }; }, {}, never, never, true, never>;
|
|
78
79
|
}
|