@progress/kendo-angular-scheduler 20.1.0-develop.9 → 20.1.1-develop.1
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/common/util.mjs +3 -1
- package/esm2022/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +12 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/toolbar/navigation.component.mjs +3 -1
- package/fesm2022/progress-kendo-angular-scheduler.mjs +20 -10
- 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;
|
package/esm2022/common/util.mjs
CHANGED
|
@@ -120,7 +120,9 @@ export function groupResources(group, resources) {
|
|
|
120
120
|
const groups = group.resources;
|
|
121
121
|
for (let idx = 0; idx < groups.length; idx++) {
|
|
122
122
|
const resource = resources.find(r => r.name === groups[idx]);
|
|
123
|
-
|
|
123
|
+
if (resource) {
|
|
124
|
+
result.push(resource);
|
|
125
|
+
}
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
return result;
|
|
@@ -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.
|
|
13
|
+
publishDate: 1761223101,
|
|
14
|
+
version: '20.1.1-develop.1',
|
|
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.
|
|
46
|
+
publishDate: 1761223101,
|
|
47
|
+
version: '20.1.1-develop.1',
|
|
48
48
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -1670,7 +1670,9 @@ function groupResources(group, resources) {
|
|
|
1670
1670
|
const groups = group.resources;
|
|
1671
1671
|
for (let idx = 0; idx < groups.length; idx++) {
|
|
1672
1672
|
const resource = resources.find(r => r.name === groups[idx]);
|
|
1673
|
-
|
|
1673
|
+
if (resource) {
|
|
1674
|
+
result.push(resource);
|
|
1675
|
+
}
|
|
1674
1676
|
}
|
|
1675
1677
|
}
|
|
1676
1678
|
return result;
|
|
@@ -4339,8 +4341,16 @@ class RecurrenceWeekdayRuleEditorComponent {
|
|
|
4339
4341
|
});
|
|
4340
4342
|
}
|
|
4341
4343
|
}
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
+
onDayClick(day) {
|
|
4345
|
+
const currentlySelected = this.isSelected(day);
|
|
4346
|
+
// Prevent deselecting the last selected day - ensure at least one day remains selected
|
|
4347
|
+
if (currentlySelected) {
|
|
4348
|
+
const currentlySelectedCount = this.selected.filter(selected => selected).length;
|
|
4349
|
+
if (currentlySelectedCount <= 1) {
|
|
4350
|
+
return;
|
|
4351
|
+
}
|
|
4352
|
+
}
|
|
4353
|
+
this.selected[day.value] = !currentlySelected;
|
|
4344
4354
|
this.recurrence.setWeekDays(this.serializeToWeekDayRuleArray(this.selected));
|
|
4345
4355
|
}
|
|
4346
4356
|
isSelected(day) {
|
|
@@ -4387,9 +4397,8 @@ class RecurrenceWeekdayRuleEditorComponent {
|
|
|
4387
4397
|
<button
|
|
4388
4398
|
*ngFor='let day of weekDays'
|
|
4389
4399
|
kendoButton
|
|
4390
|
-
[toggleable]="true"
|
|
4391
4400
|
[selected]="isSelected(day)"
|
|
4392
|
-
(
|
|
4401
|
+
(click)="onDayClick(day)"
|
|
4393
4402
|
>{{ capitalize(day.text) }}</button>
|
|
4394
4403
|
</kendo-buttongroup>
|
|
4395
4404
|
</div>
|
|
@@ -4416,9 +4425,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4416
4425
|
<button
|
|
4417
4426
|
*ngFor='let day of weekDays'
|
|
4418
4427
|
kendoButton
|
|
4419
|
-
[toggleable]="true"
|
|
4420
4428
|
[selected]="isSelected(day)"
|
|
4421
|
-
(
|
|
4429
|
+
(click)="onDayClick(day)"
|
|
4422
4430
|
>{{ capitalize(day.text) }}</button>
|
|
4423
4431
|
</kendo-buttongroup>
|
|
4424
4432
|
</div>
|
|
@@ -6662,7 +6670,9 @@ class ToolbarNavigationComponent {
|
|
|
6662
6670
|
* @hidden
|
|
6663
6671
|
*/
|
|
6664
6672
|
onBlur() {
|
|
6665
|
-
this.isMouseDown
|
|
6673
|
+
if (!this.isMouseDown) {
|
|
6674
|
+
this.closePopup();
|
|
6675
|
+
}
|
|
6666
6676
|
}
|
|
6667
6677
|
/**
|
|
6668
6678
|
* @hidden
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-scheduler",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.1-develop.1",
|
|
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": 1761223101,
|
|
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.
|
|
36
|
-
"@progress/kendo-angular-buttons": "20.1.
|
|
37
|
-
"@progress/kendo-angular-common": "20.1.
|
|
38
|
-
"@progress/kendo-angular-dateinputs": "20.1.
|
|
39
|
-
"@progress/kendo-angular-dialog": "20.1.
|
|
40
|
-
"@progress/kendo-angular-dropdowns": "20.1.
|
|
41
|
-
"@progress/kendo-angular-icons": "20.1.
|
|
42
|
-
"@progress/kendo-angular-inputs": "20.1.
|
|
43
|
-
"@progress/kendo-angular-intl": "20.1.
|
|
44
|
-
"@progress/kendo-angular-l10n": "20.1.
|
|
45
|
-
"@progress/kendo-angular-label": "20.1.
|
|
46
|
-
"@progress/kendo-angular-popup": "20.1.
|
|
35
|
+
"@progress/kendo-angular-tooltip": "20.1.1-develop.1",
|
|
36
|
+
"@progress/kendo-angular-buttons": "20.1.1-develop.1",
|
|
37
|
+
"@progress/kendo-angular-common": "20.1.1-develop.1",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "20.1.1-develop.1",
|
|
39
|
+
"@progress/kendo-angular-dialog": "20.1.1-develop.1",
|
|
40
|
+
"@progress/kendo-angular-dropdowns": "20.1.1-develop.1",
|
|
41
|
+
"@progress/kendo-angular-icons": "20.1.1-develop.1",
|
|
42
|
+
"@progress/kendo-angular-inputs": "20.1.1-develop.1",
|
|
43
|
+
"@progress/kendo-angular-intl": "20.1.1-develop.1",
|
|
44
|
+
"@progress/kendo-angular-l10n": "20.1.1-develop.1",
|
|
45
|
+
"@progress/kendo-angular-label": "20.1.1-develop.1",
|
|
46
|
+
"@progress/kendo-angular-popup": "20.1.1-develop.1",
|
|
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.
|
|
51
|
+
"@progress/kendo-angular-schematics": "20.1.1-develop.1",
|
|
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.
|
|
8
|
-
'@progress/kendo-angular-navigation': '20.1.
|
|
7
|
+
'@progress/kendo-angular-treeview': '20.1.1-develop.1',
|
|
8
|
+
'@progress/kendo-angular-navigation': '20.1.1-develop.1',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
|
-
'@progress/kendo-angular-dialog': '20.1.
|
|
10
|
+
'@progress/kendo-angular-dialog': '20.1.1-develop.1',
|
|
11
11
|
// peer dependency of kendo-angular-icons
|
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
13
13
|
} });
|