@progress/kendo-angular-scheduler 2.2.0-dev.202112171600 → 3.0.0-dev.202201191316
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/dist/cdn/js/kendo-angular-scheduler.js +2 -2
- package/dist/cdn/main.js +1 -1
- package/dist/es/editing/date-time-picker.component.js +2 -1
- package/dist/es/editing/edit-dialog.component.js +1 -1
- package/dist/es/editing/recurrence/end-rule-radio-button.directive.js +5 -0
- package/dist/es/editing/recurrence/recurrence-monthly-yearly-editor.component.js +1 -1
- package/dist/es/editing/recurrence/repeat-on-radio-button.directive.js +5 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/scheduler.module.js +3 -1
- package/dist/es/toolbar/view-selector.component.js +1 -1
- package/dist/es/views/common/base-view.js +2 -1
- package/dist/es/views/common/slot-selectable.directive.js +2 -2
- package/dist/es/views/common/view-footer.component.js +1 -1
- package/dist/es/views/common/views-shared.module.js +2 -1
- package/dist/es2015/editing/date-time-picker.component.js +7 -1
- package/dist/es2015/editing/edit-dialog.component.js +7 -7
- package/dist/es2015/editing/recurrence/end-rule-radio-button.directive.d.ts +1 -0
- package/dist/es2015/editing/recurrence/end-rule-radio-button.directive.js +5 -0
- package/dist/es2015/editing/recurrence/recurrence-monthly-yearly-editor.component.js +14 -5
- package/dist/es2015/editing/recurrence/repeat-on-radio-button.directive.d.ts +1 -0
- package/dist/es2015/editing/recurrence/repeat-on-radio-button.directive.js +5 -0
- package/dist/es2015/index.metadata.json +1 -1
- package/dist/es2015/package-metadata.js +1 -1
- package/dist/es2015/scheduler.module.js +3 -1
- package/dist/es2015/toolbar/view-selector.component.js +1 -1
- package/dist/es2015/views/common/base-view.js +2 -1
- package/dist/es2015/views/common/slot-selectable.directive.js +2 -2
- package/dist/es2015/views/common/view-footer.component.js +1 -1
- package/dist/es2015/views/common/views-shared.module.js +2 -1
- package/dist/fesm2015/index.js +49 -21
- package/dist/fesm5/index.js +25 -11
- package/dist/npm/editing/date-time-picker.component.js +2 -1
- package/dist/npm/editing/edit-dialog.component.js +1 -1
- package/dist/npm/editing/recurrence/end-rule-radio-button.directive.js +5 -0
- package/dist/npm/editing/recurrence/recurrence-monthly-yearly-editor.component.js +1 -1
- package/dist/npm/editing/recurrence/repeat-on-radio-button.directive.js +5 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/scheduler.module.js +2 -0
- package/dist/npm/toolbar/view-selector.component.js +1 -1
- package/dist/npm/views/common/base-view.js +2 -1
- package/dist/npm/views/common/slot-selectable.directive.js +2 -2
- package/dist/npm/views/common/view-footer.component.js +1 -1
- package/dist/npm/views/common/views-shared.module.js +2 -1
- package/dist/systemjs/kendo-angular-scheduler.js +1 -1
- package/package.json +17 -17
|
@@ -269,7 +269,7 @@ var RecurrenceMonthlyYearlyEditorComponent = /** @class */ (function () {
|
|
|
269
269
|
RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
270
270
|
core_1.Component({
|
|
271
271
|
selector: 'kendo-recurrence-monthly-yearly-editor',
|
|
272
|
-
template: "\n <div class='k-edit-label'>\n <label (click)=\"onRepeatOnLabelClick()\">{{ textForRepeatOn() }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset' [style.width.px]='650'>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='monthday-{{uniqueId}}' />\n\n <label class='k-radio-label' for='k-repeaton-monthday-{{uniqueId}}'>\n <ng-template [ngIf]=\"currentFreq === 'monthly'\">\n {{ textFor('monthlyDay') }}\n </ng-template>\n </label>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthMonthDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'monthday')\"\n [disabled]=\"isDisabled('monthday')\">\n </kendo-dropdownlist>\n </ng-template>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [min]=\"numericOptions.min\"\n [max]=\"numericOptions.max\"\n [decimals]=\"0\"\n [format]=\"numericOptions.format\"\n [autoCorrect]=\"numericOptions.autoCorrect\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [value]='monthDay'\n (valueChange)='onMonthDayChange($event)'\n [disabled]=\"isDisabled('monthday')\">\n </kendo-numerictextbox>\n </li>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='weekday-{{uniqueId}}' />\n <label class='k-radio-label' for='k-repeaton-weekday-{{uniqueId}}'></label>\n\n <kendo-dropdownlist\n [data]='offsetPositions'\n textField='text'\n valueField='value'\n [value]='offset'\n [valuePrimitive]='true'\n (valueChange)='onOffsetPositionChange($event)'\n [disabled]=\"isDisabled('weekday')\">\n </kendo-dropdownlist>\n\n <kendo-dropdownlist\n [data]=\"extendedWeekDays\"\n textField='text'\n valueField='value'\n [value]='weekDay'\n [valuePrimitive]='true'\n (valueChange)='onWeekDayChange($event)'\n [disabled]=\"isDisabled('weekday')\">\n </kendo-dropdownlist>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <span>{{ textFor('yearlyOf') }}</span>\n\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthWeekDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'weekday')\"\n [disabled]=\"isDisabled('weekday')\">\n </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "
|
|
272
|
+
template: "\n <div class='k-edit-label'>\n <label (click)=\"onRepeatOnLabelClick()\">{{ textForRepeatOn() }}</label>\n </div>\n <div class='k-edit-field'>\n <ul class='k-reset' [style.width.px]='650'>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='monthday-{{uniqueId}}' />\n\n <label class='k-radio-label' for='k-repeaton-monthday-{{uniqueId}}'>\n <ng-template [ngIf]=\"currentFreq === 'monthly'\">\n {{ textFor('monthlyDay') }}\n </ng-template>\n </label>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthMonthDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'monthday')\"\n [disabled]=\"isDisabled('monthday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n\n <kendo-numerictextbox\n [style.width.px]='70'\n [min]=\"numericOptions.min\"\n [max]=\"numericOptions.max\"\n [decimals]=\"0\"\n [format]=\"numericOptions.format\"\n [autoCorrect]=\"numericOptions.autoCorrect\"\n [readonly]=\"numericOptions.readonly\"\n [selectOnFocus]=\"numericOptions.selectOnFocus\"\n [spinners]=\"numericOptions.spinners\"\n [step]=\"numericOptions.step\"\n [title]=\"numericOptions.title\"\n [value]='monthDay'\n (valueChange)='onMonthDayChange($event)'\n [disabled]=\"isDisabled('monthday')\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-numerictextbox>\n </li>\n <li>\n <input kendoRecurrenceRepeatOnRadioButton='weekday-{{uniqueId}}' />\n <label class='k-radio-label' for='k-repeaton-weekday-{{uniqueId}}'></label>\n\n <kendo-dropdownlist\n [data]='offsetPositions'\n textField='text'\n valueField='value'\n [value]='offset'\n [valuePrimitive]='true'\n (valueChange)='onOffsetPositionChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <kendo-dropdownlist\n [data]=\"extendedWeekDays\"\n textField='text'\n valueField='value'\n [value]='weekDay'\n [valuePrimitive]='true'\n (valueChange)='onWeekDayChange($event)'\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n\n <ng-template [ngIf]=\"currentFreq === 'yearly'\">\n <span>{{ textFor('yearlyOf') }}</span>\n\n <kendo-dropdownlist\n [data]='months'\n textField='text'\n valueField='value'\n [value]='currentMonthWeekDay'\n [valuePrimitive]='true'\n (valueChange)=\"onMonthChange($event, 'weekday')\"\n [disabled]=\"isDisabled('weekday')\"\n [style.width.px]=\"170\"\n [style.margin]=\"'0 .4ex 0 1ex'\">\n </kendo-dropdownlist>\n </ng-template>\n </li>\n </ul>\n </div>\n "
|
|
273
273
|
}),
|
|
274
274
|
tslib_1.__metadata("design:paramtypes", [recurrence_service_1.RecurrenceService,
|
|
275
275
|
kendo_angular_l10n_1.LocalizationService])
|
|
@@ -18,6 +18,7 @@ var RepeatOnRadioButtonDirective = /** @class */ (function () {
|
|
|
18
18
|
this.changeDetector = changeDetector;
|
|
19
19
|
this.type = 'radio';
|
|
20
20
|
this.radioClass = true;
|
|
21
|
+
this.radioSizeClass = true;
|
|
21
22
|
this.destroyChange = this.renderer.listen(this.elem, 'change', this.onChange.bind(this));
|
|
22
23
|
}
|
|
23
24
|
Object.defineProperty(RepeatOnRadioButtonDirective.prototype, "repeatOnRule", {
|
|
@@ -67,6 +68,10 @@ var RepeatOnRadioButtonDirective = /** @class */ (function () {
|
|
|
67
68
|
core_1.HostBinding('class.k-radio'),
|
|
68
69
|
tslib_1.__metadata("design:type", Boolean)
|
|
69
70
|
], RepeatOnRadioButtonDirective.prototype, "radioClass", void 0);
|
|
71
|
+
tslib_1.__decorate([
|
|
72
|
+
core_1.HostBinding('class.k-radio-md'),
|
|
73
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
74
|
+
], RepeatOnRadioButtonDirective.prototype, "radioSizeClass", void 0);
|
|
70
75
|
tslib_1.__decorate([
|
|
71
76
|
core_1.Input("kendoRecurrenceRepeatOnRadioButton"),
|
|
72
77
|
tslib_1.__metadata("design:type", String),
|
|
@@ -11,7 +11,7 @@ exports.packageMetadata = {
|
|
|
11
11
|
name: '@progress/kendo-angular-scheduler',
|
|
12
12
|
productName: 'Kendo UI for Angular',
|
|
13
13
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
-
publishDate:
|
|
14
|
+
publishDate: 1642597829,
|
|
15
15
|
version: '',
|
|
16
16
|
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'
|
|
17
17
|
};
|
|
@@ -108,6 +108,8 @@ var publicDirectives = [
|
|
|
108
108
|
].concat(declarations);
|
|
109
109
|
var importedKendoModules = [
|
|
110
110
|
kendo_angular_buttons_1.ButtonsModule,
|
|
111
|
+
kendo_angular_inputs_1.CheckBoxModule,
|
|
112
|
+
kendo_angular_inputs_1.TextAreaModule,
|
|
111
113
|
kendo_angular_dateinputs_1.DateInputsModule,
|
|
112
114
|
kendo_angular_dialog_1.DialogModule,
|
|
113
115
|
kendo_angular_inputs_1.NumericTextBoxModule,
|
|
@@ -79,7 +79,7 @@ var ToolbarViewSelectorComponent = /** @class */ (function () {
|
|
|
79
79
|
core_1.Component({
|
|
80
80
|
// tslint:disable-next-line:component-selector
|
|
81
81
|
selector: '[kendoSchedulerToolbarViewSelector]',
|
|
82
|
-
template: "\n <select *ngIf=\"ctx.views?.length > 1\"\n (change)=\"onChange($event)\"\n class=\"k-views-dropdown k-
|
|
82
|
+
template: "\n <select *ngIf=\"ctx.views?.length > 1\"\n (change)=\"onChange($event)\"\n class=\"k-views-dropdown k-picker-md k-rounded-md k-picker-solid k-dropdownlist k-picker\">\n <option *ngFor=\"let view of ctx.views\"\n [selected]=\"isSelected(view) == true\"\n [value]=\"view.name\"\n >\n {{ view.title }}\n </option>\n </select>\n <span class=\"k-scheduler-views k-button-group\">\n <button kendoButton\n type=\"button\"\n *ngFor=\"let view of ctx.views\"\n [selected]=\"isSelected(view)\"\n [attr.aria-pressed]=\"isSelected(view)\"\n (click)=\"select(view)\"\n >\n <span class=\"k-button-text\">\n {{ view.title }}\n </span>\n </button>\n </span>\n "
|
|
83
83
|
}),
|
|
84
84
|
tslib_1.__metadata("design:paramtypes", [toolbar_service_1.ToolbarService])
|
|
85
85
|
], ToolbarViewSelectorComponent);
|
|
@@ -299,7 +299,8 @@ var BaseView = /** @class */ (function () {
|
|
|
299
299
|
this.pressTarget = task;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
var notDraggingEvent = !this.pressTarget;
|
|
303
|
+
if (notDraggingEvent && this.selectable) {
|
|
303
304
|
this.initDragSelect(args);
|
|
304
305
|
}
|
|
305
306
|
this.dragArgs = args;
|
|
@@ -68,9 +68,9 @@ var SlotSelectableDirective = /** @class */ (function () {
|
|
|
68
68
|
return this.selectedRange && isAllDay === this.selectedRange.isAllDay && this.isInRange(start, end);
|
|
69
69
|
};
|
|
70
70
|
SlotSelectableDirective.prototype.initDragSelect = function (_a) {
|
|
71
|
-
var start = _a.start, end = _a.end, isAllDay = _a.isAllDay, resources = _a.resources
|
|
71
|
+
var start = _a.start, end = _a.end, isAllDay = _a.isAllDay, resources = _a.resources;
|
|
72
72
|
this.selectionOriginResources = resources.slice();
|
|
73
|
-
this.selectedRange = { start: start, end: end, isAllDay: isAllDay, resources: resources.slice()
|
|
73
|
+
this.selectedRange = { start: start, end: end, isAllDay: isAllDay, resources: resources.slice() };
|
|
74
74
|
this.cdr.markForCheck();
|
|
75
75
|
};
|
|
76
76
|
SlotSelectableDirective.prototype.onDrag = function (_a) {
|
|
@@ -44,7 +44,7 @@ var ViewFooterComponent = /** @class */ (function () {
|
|
|
44
44
|
core_1.Component({
|
|
45
45
|
// tslint:disable-next-line:component-selector
|
|
46
46
|
selector: '[viewFooter]',
|
|
47
|
-
template: "\n <button type=\"button\"
|
|
47
|
+
template: "\n <button type=\"button\" kendoButton *ngFor=\"let item of items\" [ngClass]=\"item.cssClass\" (click)=\"onItemClick($event, item)\">\n <span class=\"k-button-icon k-icon\" [ngClass]=\"item.iconClass\"></span>\n <span class=\"k-button-text\">{{ item.text }}</span>\n </button>\n "
|
|
48
48
|
})
|
|
49
49
|
], ViewFooterComponent);
|
|
50
50
|
return ViewFooterComponent;
|
|
@@ -15,6 +15,7 @@ var resource_iterator_pipe_1 = require("./resource-iterator.pipe");
|
|
|
15
15
|
var hint_container_component_1 = require("./hint-container.component");
|
|
16
16
|
var resize_hint_component_1 = require("./resize-hint.component");
|
|
17
17
|
var shared_module_1 = require("../../shared.module");
|
|
18
|
+
var kendo_angular_buttons_1 = require("@progress/kendo-angular-buttons");
|
|
18
19
|
var DECLARATIONS = [
|
|
19
20
|
view_footer_component_1.ViewFooterComponent,
|
|
20
21
|
work_hours_footer_directive_1.WorkHoursFooterDirective,
|
|
@@ -31,7 +32,7 @@ var ViewsSharedModule = /** @class */ (function () {
|
|
|
31
32
|
}
|
|
32
33
|
ViewsSharedModule = tslib_1.__decorate([
|
|
33
34
|
core_1.NgModule({
|
|
34
|
-
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule, shared_module_1.SharedModule],
|
|
35
|
+
imports: [common_1.CommonModule, kendo_angular_intl_1.IntlModule, shared_module_1.SharedModule, kendo_angular_buttons_1.ButtonsModule],
|
|
35
36
|
exports: [
|
|
36
37
|
DECLARATIONS,
|
|
37
38
|
kendo_angular_intl_1.IntlModule,
|