@progress/kendo-angular-scheduler 20.1.0-develop.25 → 20.1.0-develop.26
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/editing/recurrence/recurrence-weekday-rule-editor.component.d.ts +1 -1
- package/esm2022/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +12 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-scheduler.mjs +14 -8
- package/package.json +15 -15
- package/schematics/ngAdd/index.js +3 -3
|
@@ -19,7 +19,7 @@ export declare class RecurrenceWeekdayRuleEditorComponent {
|
|
|
19
19
|
selected: Array<boolean>;
|
|
20
20
|
constructor(recurrence: RecurrenceService, localization: LocalizationService);
|
|
21
21
|
setSelectedDays(): void;
|
|
22
|
-
|
|
22
|
+
onDayClick(day: WeekDayEntity): void;
|
|
23
23
|
isSelected(day: WeekDayEntity): boolean;
|
|
24
24
|
serializeToWeekDayRuleArray(arr: Array<boolean>): Array<WeekDayRule>;
|
|
25
25
|
get rrule(): RecurrenceRule;
|
|
@@ -37,8 +37,16 @@ export class RecurrenceWeekdayRuleEditorComponent {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
onDayClick(day) {
|
|
41
|
+
const currentlySelected = this.isSelected(day);
|
|
42
|
+
// Prevent deselecting the last selected day - ensure at least one day remains selected
|
|
43
|
+
if (currentlySelected) {
|
|
44
|
+
const currentlySelectedCount = this.selected.filter(selected => selected).length;
|
|
45
|
+
if (currentlySelectedCount <= 1) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
this.selected[day.value] = !currentlySelected;
|
|
42
50
|
this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected));
|
|
43
51
|
}
|
|
44
52
|
isSelected(day) {
|
|
@@ -85,9 +93,8 @@ export class RecurrenceWeekdayRuleEditorComponent {
|
|
|
85
93
|
<button
|
|
86
94
|
*ngFor='let day of weekDays'
|
|
87
95
|
kendoButton
|
|
88
|
-
[toggleable]="true"
|
|
89
96
|
[selected]="isSelected(day)"
|
|
90
|
-
(
|
|
97
|
+
(click)="onDayClick(day)"
|
|
91
98
|
>{{ capitalize(day.text) }}</button>
|
|
92
99
|
</kendo-buttongroup>
|
|
93
100
|
</div>
|
|
@@ -114,9 +121,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
114
121
|
<button
|
|
115
122
|
*ngFor='let day of weekDays'
|
|
116
123
|
kendoButton
|
|
117
|
-
[toggleable]="true"
|
|
118
124
|
[selected]="isSelected(day)"
|
|
119
|
-
(
|
|
125
|
+
(click)="onDayClick(day)"
|
|
120
126
|
>{{ capitalize(day.text) }}</button>
|
|
121
127
|
</kendo-buttongroup>
|
|
122
128
|
</div>
|
|
@@ -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: '20.1.0-develop.
|
|
13
|
+
publishDate: 1760426592,
|
|
14
|
+
version: '20.1.0-develop.26',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -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: '20.1.0-develop.
|
|
46
|
+
publishDate: 1760426592,
|
|
47
|
+
version: '20.1.0-develop.26',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -4339,8 +4339,16 @@ class RecurrenceWeekdayRuleEditorComponent {
|
|
|
4339
4339
|
});
|
|
4340
4340
|
}
|
|
4341
4341
|
}
|
|
4342
|
-
|
|
4343
|
-
|
|
4342
|
+
onDayClick(day) {
|
|
4343
|
+
const currentlySelected = this.isSelected(day);
|
|
4344
|
+
// Prevent deselecting the last selected day - ensure at least one day remains selected
|
|
4345
|
+
if (currentlySelected) {
|
|
4346
|
+
const currentlySelectedCount = this.selected.filter(selected => selected).length;
|
|
4347
|
+
if (currentlySelectedCount <= 1) {
|
|
4348
|
+
return;
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
this.selected[day.value] = !currentlySelected;
|
|
4344
4352
|
this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected));
|
|
4345
4353
|
}
|
|
4346
4354
|
isSelected(day) {
|
|
@@ -4387,9 +4395,8 @@ class RecurrenceWeekdayRuleEditorComponent {
|
|
|
4387
4395
|
<button
|
|
4388
4396
|
*ngFor='let day of weekDays'
|
|
4389
4397
|
kendoButton
|
|
4390
|
-
[toggleable]="true"
|
|
4391
4398
|
[selected]="isSelected(day)"
|
|
4392
|
-
(
|
|
4399
|
+
(click)="onDayClick(day)"
|
|
4393
4400
|
>{{ capitalize(day.text) }}</button>
|
|
4394
4401
|
</kendo-buttongroup>
|
|
4395
4402
|
</div>
|
|
@@ -4416,9 +4423,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4416
4423
|
<button
|
|
4417
4424
|
*ngFor='let day of weekDays'
|
|
4418
4425
|
kendoButton
|
|
4419
|
-
[toggleable]="true"
|
|
4420
4426
|
[selected]="isSelected(day)"
|
|
4421
|
-
(
|
|
4427
|
+
(click)="onDayClick(day)"
|
|
4422
4428
|
>{{ capitalize(day.text) }}</button>
|
|
4423
4429
|
</kendo-buttongroup>
|
|
4424
4430
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "20.1.0-develop.
|
|
3
|
+
"version": "20.1.0-develop.26",
|
|
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": 1760426592,
|
|
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.7.0",
|
|
35
|
-
"@progress/kendo-angular-tooltip": "20.1.0-develop.
|
|
36
|
-
"@progress/kendo-angular-buttons": "20.1.0-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "20.1.0-develop.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "20.1.0-develop.
|
|
39
|
-
"@progress/kendo-angular-dialog": "20.1.0-develop.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "20.1.0-develop.
|
|
41
|
-
"@progress/kendo-angular-icons": "20.1.0-develop.
|
|
42
|
-
"@progress/kendo-angular-inputs": "20.1.0-develop.
|
|
43
|
-
"@progress/kendo-angular-intl": "20.1.0-develop.
|
|
44
|
-
"@progress/kendo-angular-l10n": "20.1.0-develop.
|
|
45
|
-
"@progress/kendo-angular-label": "20.1.0-develop.
|
|
46
|
-
"@progress/kendo-angular-popup": "20.1.0-develop.
|
|
35
|
+
"@progress/kendo-angular-tooltip": "20.1.0-develop.26",
|
|
36
|
+
"@progress/kendo-angular-buttons": "20.1.0-develop.26",
|
|
37
|
+
"@progress/kendo-angular-common": "20.1.0-develop.26",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "20.1.0-develop.26",
|
|
39
|
+
"@progress/kendo-angular-dialog": "20.1.0-develop.26",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "20.1.0-develop.26",
|
|
41
|
+
"@progress/kendo-angular-icons": "20.1.0-develop.26",
|
|
42
|
+
"@progress/kendo-angular-inputs": "20.1.0-develop.26",
|
|
43
|
+
"@progress/kendo-angular-intl": "20.1.0-develop.26",
|
|
44
|
+
"@progress/kendo-angular-l10n": "20.1.0-develop.26",
|
|
45
|
+
"@progress/kendo-angular-label": "20.1.0-develop.26",
|
|
46
|
+
"@progress/kendo-angular-popup": "20.1.0-develop.26",
|
|
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": "20.1.0-develop.
|
|
51
|
+
"@progress/kendo-angular-schematics": "20.1.0-develop.26",
|
|
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': '20.1.0-develop.
|
|
8
|
-
'@progress/kendo-angular-navigation': '20.1.0-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '20.1.0-develop.26',
|
|
8
|
+
'@progress/kendo-angular-navigation': '20.1.0-develop.26',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '20.1.0-develop.
|
|
10
|
+
'@progress/kendo-angular-dialog': '20.1.0-develop.26',
|
|
11
11
|
// peer dependency of kendo-angular-icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
13
13
|
} });
|