@progress/kendo-angular-scheduler 2.2.0-dev.202112171600 → 3.0.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/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 +4 -4
- package/dist/es/views/common/view-footer.component.js +1 -1
- package/dist/es/views/common/views-shared.module.js +2 -1
- package/dist/es/views/utils.js +5 -5
- 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 +4 -4
- package/dist/es2015/views/common/view-footer.component.js +1 -1
- package/dist/es2015/views/common/views-shared.module.js +2 -1
- package/dist/es2015/views/utils.d.ts +2 -2
- package/dist/es2015/views/utils.js +5 -5
- package/dist/fesm2015/index.js +56 -28
- package/dist/fesm5/index.js +32 -18
- 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 +4 -4
- package/dist/npm/views/common/view-footer.component.js +1 -1
- package/dist/npm/views/common/views-shared.module.js +2 -1
- package/dist/npm/views/utils.js +6 -6
- package/dist/systemjs/kendo-angular-scheduler.js +1 -1
- package/package.json +20 -19
- package/schematics/ngAdd/index.js +1 -1
|
@@ -71,7 +71,8 @@ var SchedulerDateTimePickerComponent = /** @class */ (function () {
|
|
|
71
71
|
SCHEDULER_DATETIMEPICKER_VALUE_ACCESSOR
|
|
72
72
|
],
|
|
73
73
|
selector: 'kendo-scheduler-datetime-picker',
|
|
74
|
-
template: "\n <kendo-datepicker\n #datepicker\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-datepicker>\n <kendo-timepicker *ngIf='!isAllDay'\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-timepicker>\n "
|
|
74
|
+
template: "\n <kendo-datepicker\n #datepicker\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-datepicker>\n <kendo-timepicker *ngIf='!isAllDay'\n [(value)]='date'\n (valueChange)='onValueChange($event)'\n ></kendo-timepicker>\n ",
|
|
75
|
+
styles: ["\n kendo-datepicker,\n kendo-timepicker {\n width: 170px;\n }\n "]
|
|
75
76
|
})
|
|
76
77
|
], SchedulerDateTimePickerComponent);
|
|
77
78
|
return SchedulerDateTimePickerComponent;
|
|
@@ -284,7 +284,7 @@ var EditDialogComponent = /** @class */ (function () {
|
|
|
284
284
|
EditDialogComponent = tslib_1.__decorate([
|
|
285
285
|
Component({
|
|
286
286
|
selector: 'kendo-scheduler-edit-dialog',
|
|
287
|
-
template: "\n <kendo-dialog (close)='onClose()' [minWidth]='700' *ngIf='isActive' title='{{ textFor(\"editorTitle\") }}' class='k-scheduler-edit-dialog' [autoFocusedElement]=\"autoFocusedElement\">\n <ng-container *ngIf='!editTemplate'>\n <div class='k-scheduler-edit-form'>\n <div class='k-edit-form-container'>\n <form novalidate [formGroup]='formGroup'>\n <div class='k-edit-label'>\n <label for='k-event-title'>{{ textFor('editorEventTitle') }}</label>\n </div>\n <div class='k-edit-field'>\n <input #title id='k-event-title'
|
|
287
|
+
template: "\n <kendo-dialog (close)='onClose()' [minWidth]='700' *ngIf='isActive' title='{{ textFor(\"editorTitle\") }}' class='k-scheduler-edit-dialog' [autoFocusedElement]=\"autoFocusedElement\">\n <ng-container *ngIf='!editTemplate'>\n <div class='k-scheduler-edit-form'>\n <div class='k-edit-form-container'>\n <form novalidate [formGroup]='formGroup'>\n <div class='k-edit-label'>\n <label for='k-event-title'>{{ textFor('editorEventTitle') }}</label>\n </div>\n <div class='k-edit-field'>\n <input #title id='k-event-title' kendoTextBox placeholder='Title' [formControl]='formGroup.get(fields.title)' />\n </div>\n\n <div class='k-edit-label'>\n <label (click)=\"startDateTimePicker.focus()\">{{ textFor('editorEventStart') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #startDateTimePicker [formControl]='formGroup.get(fields.start)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"startTzPicker.focus()\">{{ textFor('editorEventStartTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #startTzPicker [formControl]='formGroup.get(fields.startTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-label'>\n <label (click)=\"endDateTimePicker.focus()\">{{ textFor('editorEventEnd') }}</label>\n </div>\n <div class='k-edit-field'>\n <kendo-scheduler-datetime-picker #endDateTimePicker [formControl]='formGroup.get(fields.end)'\n [isAllDay]='getFormValue(fields.isAllDay)?.value'>\n </kendo-scheduler-datetime-picker>\n </div>\n\n <ng-container *ngIf=\"isEndTimeZoneVisible\">\n <div class='k-edit-label'>\n <label (click)=\"endTzPicker.focus()\">{{ textFor('editorEventEndTimeZone') }}</label>\n </div>\n\n <div class='k-edit-field'>\n <kendo-timezone-editor #endTzPicker [formControl]='formGroup.get(fields.endTimezone)'></kendo-timezone-editor>\n </div>\n </ng-container>\n\n <div class='k-edit-field' *ngIf=\"hasAllDay\">\n <input type='checkbox' id='k-is-allday-chkbox' kendoCheckBox [formControl]='formGroup.get(fields.isAllDay)' />\n <label class='k-checkbox-label' for='k-is-allday-chkbox'>{{ textFor('editorEventAllDay') }}</label>\n </div>\n\n <div class='k-edit-field' *ngIf=\"hasStartTimeZone\">\n <input type='checkbox' id='k-set-timezone' kendoCheckBox\n formControlName='startTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-set-timezone'>{{ textFor('editorEventTimeZone') }}</label>\n\n <ng-container *ngIf=\"isStartTimeZoneVisible && hasEndTimeZone\">\n <input type='checkbox' id='k-use-separate' kendoCheckBox formControlName='endTimezoneCheckbox' />\n <label class='k-checkbox-label' for='k-use-separate'>{{ textFor('editorEventSeparateTimeZones') }}</label>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"isEditingSeries\">\n <kendo-recurrence-editor\n [formControl]='formGroup.get(fields.recurrenceRule)'\n [start]='recurrenceStart'\n [timezone]='eventTimezone'\n [weekStart]='weekStart'\n ></kendo-recurrence-editor>\n </ng-container>\n\n <ng-container *ngIf='getFormValue(fields.description)'>\n <div class='k-edit-label'>\n <label for='k-event-description'>{{ textFor('editorEventDescription') }}</label>\n </div>\n <div class='k-edit-field'>\n <textarea id='k-event-description' kendoTextArea [formControl]='formGroup.get(fields.description)'></textarea>\n </div>\n </ng-container>\n\n <ng-container *ngFor='let resource of resources'>\n <ng-container *ngIf='getFormValue(resource.field)'>\n <div class='k-edit-label'>\n <label (click)=\"onResourceClick(resource)\">\n {{ resource.name ? resource.name : resource.field }}\n </label>\n </div>\n <div class='k-edit-field'>\n <kendo-multiple-resource-editor\n *ngIf='resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-multiple-resource-editor>\n <kendo-single-resource-editor\n *ngIf='!resource.multiple'\n [formControl]='formGroup.get(resource.field)'\n [resource]='resource'>\n </kendo-single-resource-editor>\n </div>\n </ng-container>\n </ng-container>\n </form>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngIf='editTemplate'>\n <form novalidate [formGroup]='formGroup'>\n <ng-container [ngTemplateOutlet]='editTemplate.templateRef'\n [ngTemplateOutletContext]=\"{\n $implicit: formGroup,\n formGroup: formGroup,\n dataItem: editedEvent,\n editMode: editMode,\n isNew: isNew\n }\">\n </ng-container>\n </form>\n </ng-container>\n\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancel($event)\">{{ textFor('cancel') }}</button>\n <button kendoButton themeColor=\"primary\" (click)=\"onSave($event)\" [disabled]=\"!formGroup.valid\">{{ textFor('save') }}</button>\n </kendo-dialog-actions>\n </kendo-dialog>\n "
|
|
288
288
|
}),
|
|
289
289
|
tslib_1.__metadata("design:paramtypes", [NgZone,
|
|
290
290
|
EditService,
|
|
@@ -16,6 +16,7 @@ var EndRuleRadioButtonDirective = /** @class */ (function () {
|
|
|
16
16
|
this.changeDetector = changeDetector;
|
|
17
17
|
this.type = 'radio';
|
|
18
18
|
this.radioClass = true;
|
|
19
|
+
this.radioSizeClass = true;
|
|
19
20
|
this.destroyChange = this.renderer.listen(this.elem, 'change', this.onChange.bind(this));
|
|
20
21
|
}
|
|
21
22
|
EndRuleRadioButtonDirective.prototype.ngOnInit = function () {
|
|
@@ -56,6 +57,10 @@ var EndRuleRadioButtonDirective = /** @class */ (function () {
|
|
|
56
57
|
HostBinding('class.k-radio'),
|
|
57
58
|
tslib_1.__metadata("design:type", Boolean)
|
|
58
59
|
], EndRuleRadioButtonDirective.prototype, "radioClass", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
HostBinding('class.k-radio-md'),
|
|
62
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
63
|
+
], EndRuleRadioButtonDirective.prototype, "radioSizeClass", void 0);
|
|
59
64
|
tslib_1.__decorate([
|
|
60
65
|
Input("kendoRecurrenceEndRuleRadioButton"),
|
|
61
66
|
tslib_1.__metadata("design:type", String)
|
|
@@ -267,7 +267,7 @@ var RecurrenceMonthlyYearlyEditorComponent = /** @class */ (function () {
|
|
|
267
267
|
RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
268
268
|
Component({
|
|
269
269
|
selector: 'kendo-recurrence-monthly-yearly-editor',
|
|
270
|
-
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 "
|
|
270
|
+
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 "
|
|
271
271
|
}),
|
|
272
272
|
tslib_1.__metadata("design:paramtypes", [RecurrenceService,
|
|
273
273
|
LocalizationService])
|
|
@@ -16,6 +16,7 @@ var RepeatOnRadioButtonDirective = /** @class */ (function () {
|
|
|
16
16
|
this.changeDetector = changeDetector;
|
|
17
17
|
this.type = 'radio';
|
|
18
18
|
this.radioClass = true;
|
|
19
|
+
this.radioSizeClass = true;
|
|
19
20
|
this.destroyChange = this.renderer.listen(this.elem, 'change', this.onChange.bind(this));
|
|
20
21
|
}
|
|
21
22
|
Object.defineProperty(RepeatOnRadioButtonDirective.prototype, "repeatOnRule", {
|
|
@@ -65,6 +66,10 @@ var RepeatOnRadioButtonDirective = /** @class */ (function () {
|
|
|
65
66
|
HostBinding('class.k-radio'),
|
|
66
67
|
tslib_1.__metadata("design:type", Boolean)
|
|
67
68
|
], RepeatOnRadioButtonDirective.prototype, "radioClass", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
HostBinding('class.k-radio-md'),
|
|
71
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
72
|
+
], RepeatOnRadioButtonDirective.prototype, "radioSizeClass", void 0);
|
|
68
73
|
tslib_1.__decorate([
|
|
69
74
|
Input("kendoRecurrenceRepeatOnRadioButton"),
|
|
70
75
|
tslib_1.__metadata("design:type", String),
|
|
@@ -9,7 +9,7 @@ export var packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-scheduler',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1644230710,
|
|
13
13
|
version: '',
|
|
14
14
|
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'
|
|
15
15
|
};
|
|
@@ -35,7 +35,7 @@ import { EditDialogComponent } from './editing/edit-dialog.component';
|
|
|
35
35
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
36
36
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
37
37
|
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
38
|
-
import { NumericTextBoxModule, TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
38
|
+
import { CheckBoxModule, NumericTextBoxModule, TextAreaModule, TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
39
39
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
40
40
|
import { SchedulerDateTimePickerComponent } from './editing/date-time-picker.component';
|
|
41
41
|
import { RecurrenceEditorComponent } from './editing/recurrence/recurrence-editor.component';
|
|
@@ -106,6 +106,8 @@ var publicDirectives = [
|
|
|
106
106
|
].concat(declarations);
|
|
107
107
|
var importedKendoModules = [
|
|
108
108
|
ButtonsModule,
|
|
109
|
+
CheckBoxModule,
|
|
110
|
+
TextAreaModule,
|
|
109
111
|
DateInputsModule,
|
|
110
112
|
DialogModule,
|
|
111
113
|
NumericTextBoxModule,
|
|
@@ -77,7 +77,7 @@ var ToolbarViewSelectorComponent = /** @class */ (function () {
|
|
|
77
77
|
Component({
|
|
78
78
|
// tslint:disable-next-line:component-selector
|
|
79
79
|
selector: '[kendoSchedulerToolbarViewSelector]',
|
|
80
|
-
template: "\n <select *ngIf=\"ctx.views?.length > 1\"\n (change)=\"onChange($event)\"\n class=\"k-views-dropdown k-
|
|
80
|
+
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 "
|
|
81
81
|
}),
|
|
82
82
|
tslib_1.__metadata("design:paramtypes", [ToolbarService])
|
|
83
83
|
], ToolbarViewSelectorComponent);
|
|
@@ -297,7 +297,8 @@ var BaseView = /** @class */ (function () {
|
|
|
297
297
|
this.pressTarget = task;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
var notDraggingEvent = !this.pressTarget;
|
|
301
|
+
if (notDraggingEvent && this.selectable) {
|
|
301
302
|
this.initDragSelect(args);
|
|
302
303
|
}
|
|
303
304
|
this.dragArgs = args;
|
|
@@ -59,21 +59,21 @@ var SlotSelectableDirective = /** @class */ (function () {
|
|
|
59
59
|
if (!start || !end || !this.selectedRange) {
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
62
|
-
var match = resourcesMatch(this.selectedRange.resources, resources
|
|
62
|
+
var match = resourcesMatch(this.selectedRange.resources, resources);
|
|
63
63
|
if (!match) {
|
|
64
64
|
return false; // Limit selection to the grouped resource where the drag started.
|
|
65
65
|
}
|
|
66
66
|
return this.selectedRange && isAllDay === this.selectedRange.isAllDay && this.isInRange(start, end);
|
|
67
67
|
};
|
|
68
68
|
SlotSelectableDirective.prototype.initDragSelect = function (_a) {
|
|
69
|
-
var start = _a.start, end = _a.end, isAllDay = _a.isAllDay, resources = _a.resources
|
|
69
|
+
var start = _a.start, end = _a.end, isAllDay = _a.isAllDay, resources = _a.resources;
|
|
70
70
|
this.selectionOriginResources = resources.slice();
|
|
71
|
-
this.selectedRange = { start: start, end: end, isAllDay: isAllDay, resources: resources.slice()
|
|
71
|
+
this.selectedRange = { start: start, end: end, isAllDay: isAllDay, resources: resources.slice() };
|
|
72
72
|
this.cdr.markForCheck();
|
|
73
73
|
};
|
|
74
74
|
SlotSelectableDirective.prototype.onDrag = function (_a) {
|
|
75
75
|
var start = _a.start, end = _a.end, resources = _a.resources;
|
|
76
|
-
var match = resourcesMatch(this.selectionOriginResources, resources
|
|
76
|
+
var match = resourcesMatch(this.selectionOriginResources, resources);
|
|
77
77
|
if (!match) {
|
|
78
78
|
return; // Don't change selection when dragging over a different grouped resource's cells.
|
|
79
79
|
}
|
|
@@ -42,7 +42,7 @@ var ViewFooterComponent = /** @class */ (function () {
|
|
|
42
42
|
Component({
|
|
43
43
|
// tslint:disable-next-line:component-selector
|
|
44
44
|
selector: '[viewFooter]',
|
|
45
|
-
template: "\n <button type=\"button\"
|
|
45
|
+
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 "
|
|
46
46
|
})
|
|
47
47
|
], ViewFooterComponent);
|
|
48
48
|
return ViewFooterComponent;
|
|
@@ -13,6 +13,7 @@ import { ResourceIteratorPipe } from './resource-iterator.pipe';
|
|
|
13
13
|
import { HintContainerComponent } from './hint-container.component';
|
|
14
14
|
import { ResizeHintComponent } from './resize-hint.component';
|
|
15
15
|
import { SharedModule } from '../../shared.module';
|
|
16
|
+
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
16
17
|
var DECLARATIONS = [
|
|
17
18
|
ViewFooterComponent,
|
|
18
19
|
WorkHoursFooterDirective,
|
|
@@ -29,7 +30,7 @@ var ViewsSharedModule = /** @class */ (function () {
|
|
|
29
30
|
}
|
|
30
31
|
ViewsSharedModule = tslib_1.__decorate([
|
|
31
32
|
NgModule({
|
|
32
|
-
imports: [CommonModule, IntlModule, SharedModule],
|
|
33
|
+
imports: [CommonModule, IntlModule, SharedModule, ButtonsModule],
|
|
33
34
|
exports: [
|
|
34
35
|
DECLARATIONS,
|
|
35
36
|
IntlModule,
|
package/dist/es/views/utils.js
CHANGED
|
@@ -201,17 +201,17 @@ export function assignTasksResources(tasks, options) {
|
|
|
201
201
|
/**
|
|
202
202
|
* @hidden
|
|
203
203
|
*/
|
|
204
|
-
export function
|
|
205
|
-
return Array.isArray(resources) && resources.length
|
|
204
|
+
export function isEmptyResource(resources) {
|
|
205
|
+
return Array.isArray(resources) && resources.length === 1 && resources[0] === undefined;
|
|
206
206
|
}
|
|
207
207
|
/**
|
|
208
208
|
* @hidden
|
|
209
209
|
*/
|
|
210
|
-
export function resourcesMatch(res1, res2
|
|
210
|
+
export function resourcesMatch(res1, res2) {
|
|
211
211
|
if (res1.length !== res2.length) {
|
|
212
212
|
return false;
|
|
213
213
|
}
|
|
214
|
-
if (
|
|
214
|
+
if (isEmptyResource(res1) && isEmptyResource(res2)) {
|
|
215
215
|
return true;
|
|
216
216
|
}
|
|
217
217
|
return res1.every(function (r1) { return res2.some(function (r2) { return r2.value === r1.value; }); });
|
|
@@ -223,7 +223,7 @@ export function isSameRange(range1, range2) {
|
|
|
223
223
|
return (range1.start.getTime() === range2.start.getTime() &&
|
|
224
224
|
range1.end.getTime() === range2.end.getTime() &&
|
|
225
225
|
range1.isAllDay === range2.isAllDay &&
|
|
226
|
-
resourcesMatch(range1.resources, range2.resources
|
|
226
|
+
resourcesMatch(range1.resources, range2.resources));
|
|
227
227
|
}
|
|
228
228
|
/** @hidden */
|
|
229
229
|
export function findRowIndex(events, data) {
|
|
@@ -85,7 +85,13 @@ SchedulerDateTimePickerComponent = tslib_1.__decorate([
|
|
|
85
85
|
[(value)]='date'
|
|
86
86
|
(valueChange)='onValueChange($event)'
|
|
87
87
|
></kendo-timepicker>
|
|
88
|
-
|
|
88
|
+
`,
|
|
89
|
+
styles: [`
|
|
90
|
+
kendo-datepicker,
|
|
91
|
+
kendo-timepicker {
|
|
92
|
+
width: 170px;
|
|
93
|
+
}
|
|
94
|
+
`]
|
|
89
95
|
})
|
|
90
96
|
], SchedulerDateTimePickerComponent);
|
|
91
97
|
export { SchedulerDateTimePickerComponent };
|
|
@@ -257,7 +257,7 @@ EditDialogComponent = tslib_1.__decorate([
|
|
|
257
257
|
<label for='k-event-title'>{{ textFor('editorEventTitle') }}</label>
|
|
258
258
|
</div>
|
|
259
259
|
<div class='k-edit-field'>
|
|
260
|
-
<input #title id='k-event-title'
|
|
260
|
+
<input #title id='k-event-title' kendoTextBox placeholder='Title' [formControl]='formGroup.get(fields.title)' />
|
|
261
261
|
</div>
|
|
262
262
|
|
|
263
263
|
<div class='k-edit-label'>
|
|
@@ -299,17 +299,17 @@ EditDialogComponent = tslib_1.__decorate([
|
|
|
299
299
|
</ng-container>
|
|
300
300
|
|
|
301
301
|
<div class='k-edit-field' *ngIf="hasAllDay">
|
|
302
|
-
<input type='checkbox' id='k-is-allday-chkbox'
|
|
302
|
+
<input type='checkbox' id='k-is-allday-chkbox' kendoCheckBox [formControl]='formGroup.get(fields.isAllDay)' />
|
|
303
303
|
<label class='k-checkbox-label' for='k-is-allday-chkbox'>{{ textFor('editorEventAllDay') }}</label>
|
|
304
304
|
</div>
|
|
305
305
|
|
|
306
306
|
<div class='k-edit-field' *ngIf="hasStartTimeZone">
|
|
307
|
-
<input type='checkbox' id='k-set-timezone'
|
|
307
|
+
<input type='checkbox' id='k-set-timezone' kendoCheckBox
|
|
308
308
|
formControlName='startTimezoneCheckbox' />
|
|
309
309
|
<label class='k-checkbox-label' for='k-set-timezone'>{{ textFor('editorEventTimeZone') }}</label>
|
|
310
310
|
|
|
311
311
|
<ng-container *ngIf="isStartTimeZoneVisible && hasEndTimeZone">
|
|
312
|
-
<input type='checkbox' id='k-use-separate'
|
|
312
|
+
<input type='checkbox' id='k-use-separate' kendoCheckBox formControlName='endTimezoneCheckbox' />
|
|
313
313
|
<label class='k-checkbox-label' for='k-use-separate'>{{ textFor('editorEventSeparateTimeZones') }}</label>
|
|
314
314
|
</ng-container>
|
|
315
315
|
</div>
|
|
@@ -328,7 +328,7 @@ EditDialogComponent = tslib_1.__decorate([
|
|
|
328
328
|
<label for='k-event-description'>{{ textFor('editorEventDescription') }}</label>
|
|
329
329
|
</div>
|
|
330
330
|
<div class='k-edit-field'>
|
|
331
|
-
<textarea id='k-event-description'
|
|
331
|
+
<textarea id='k-event-description' kendoTextArea [formControl]='formGroup.get(fields.description)'></textarea>
|
|
332
332
|
</div>
|
|
333
333
|
</ng-container>
|
|
334
334
|
|
|
@@ -373,8 +373,8 @@ EditDialogComponent = tslib_1.__decorate([
|
|
|
373
373
|
</ng-container>
|
|
374
374
|
|
|
375
375
|
<kendo-dialog-actions>
|
|
376
|
-
<button
|
|
377
|
-
<button
|
|
376
|
+
<button kendoButton (click)="onCancel($event)">{{ textFor('cancel') }}</button>
|
|
377
|
+
<button kendoButton themeColor="primary" (click)="onSave($event)" [disabled]="!formGroup.valid">{{ textFor('save') }}</button>
|
|
378
378
|
</kendo-dialog-actions>
|
|
379
379
|
</kendo-dialog>
|
|
380
380
|
`
|
|
@@ -16,6 +16,7 @@ let EndRuleRadioButtonDirective = class EndRuleRadioButtonDirective {
|
|
|
16
16
|
this.changeDetector = changeDetector;
|
|
17
17
|
this.type = 'radio';
|
|
18
18
|
this.radioClass = true;
|
|
19
|
+
this.radioSizeClass = true;
|
|
19
20
|
this.destroyChange = this.renderer.listen(this.elem, 'change', this.onChange.bind(this));
|
|
20
21
|
}
|
|
21
22
|
ngOnInit() {
|
|
@@ -53,6 +54,10 @@ tslib_1.__decorate([
|
|
|
53
54
|
HostBinding('class.k-radio'),
|
|
54
55
|
tslib_1.__metadata("design:type", Boolean)
|
|
55
56
|
], EndRuleRadioButtonDirective.prototype, "radioClass", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
HostBinding('class.k-radio-md'),
|
|
59
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
60
|
+
], EndRuleRadioButtonDirective.prototype, "radioSizeClass", void 0);
|
|
56
61
|
tslib_1.__decorate([
|
|
57
62
|
Input("kendoRecurrenceEndRuleRadioButton"),
|
|
58
63
|
tslib_1.__metadata("design:type", String)
|
|
@@ -263,7 +263,9 @@ RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
|
263
263
|
[value]='currentMonthMonthDay'
|
|
264
264
|
[valuePrimitive]='true'
|
|
265
265
|
(valueChange)="onMonthChange($event, 'monthday')"
|
|
266
|
-
[disabled]="isDisabled('monthday')"
|
|
266
|
+
[disabled]="isDisabled('monthday')"
|
|
267
|
+
[style.width.px]="170"
|
|
268
|
+
[style.margin]="'0 .4ex 0 1ex'">
|
|
267
269
|
</kendo-dropdownlist>
|
|
268
270
|
</ng-template>
|
|
269
271
|
|
|
@@ -281,7 +283,8 @@ RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
|
281
283
|
[title]="numericOptions.title"
|
|
282
284
|
[value]='monthDay'
|
|
283
285
|
(valueChange)='onMonthDayChange($event)'
|
|
284
|
-
[disabled]="isDisabled('monthday')"
|
|
286
|
+
[disabled]="isDisabled('monthday')"
|
|
287
|
+
[style.margin]="'0 .4ex 0 1ex'">
|
|
285
288
|
</kendo-numerictextbox>
|
|
286
289
|
</li>
|
|
287
290
|
<li>
|
|
@@ -295,7 +298,9 @@ RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
|
295
298
|
[value]='offset'
|
|
296
299
|
[valuePrimitive]='true'
|
|
297
300
|
(valueChange)='onOffsetPositionChange($event)'
|
|
298
|
-
[disabled]="isDisabled('weekday')"
|
|
301
|
+
[disabled]="isDisabled('weekday')"
|
|
302
|
+
[style.width.px]="170"
|
|
303
|
+
[style.margin]="'0 .4ex 0 1ex'">
|
|
299
304
|
</kendo-dropdownlist>
|
|
300
305
|
|
|
301
306
|
<kendo-dropdownlist
|
|
@@ -305,7 +310,9 @@ RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
|
305
310
|
[value]='weekDay'
|
|
306
311
|
[valuePrimitive]='true'
|
|
307
312
|
(valueChange)='onWeekDayChange($event)'
|
|
308
|
-
[disabled]="isDisabled('weekday')"
|
|
313
|
+
[disabled]="isDisabled('weekday')"
|
|
314
|
+
[style.width.px]="170"
|
|
315
|
+
[style.margin]="'0 .4ex 0 1ex'">
|
|
309
316
|
</kendo-dropdownlist>
|
|
310
317
|
|
|
311
318
|
<ng-template [ngIf]="currentFreq === 'yearly'">
|
|
@@ -318,7 +325,9 @@ RecurrenceMonthlyYearlyEditorComponent = tslib_1.__decorate([
|
|
|
318
325
|
[value]='currentMonthWeekDay'
|
|
319
326
|
[valuePrimitive]='true'
|
|
320
327
|
(valueChange)="onMonthChange($event, 'weekday')"
|
|
321
|
-
[disabled]="isDisabled('weekday')"
|
|
328
|
+
[disabled]="isDisabled('weekday')"
|
|
329
|
+
[style.width.px]="170"
|
|
330
|
+
[style.margin]="'0 .4ex 0 1ex'">
|
|
322
331
|
</kendo-dropdownlist>
|
|
323
332
|
</ng-template>
|
|
324
333
|
</li>
|
|
@@ -16,6 +16,7 @@ let RepeatOnRadioButtonDirective = class RepeatOnRadioButtonDirective {
|
|
|
16
16
|
this.changeDetector = changeDetector;
|
|
17
17
|
this.type = 'radio';
|
|
18
18
|
this.radioClass = true;
|
|
19
|
+
this.radioSizeClass = true;
|
|
19
20
|
this.destroyChange = this.renderer.listen(this.elem, 'change', this.onChange.bind(this));
|
|
20
21
|
}
|
|
21
22
|
/* tslint:disable-next-line:no-input-rename */
|
|
@@ -58,6 +59,10 @@ tslib_1.__decorate([
|
|
|
58
59
|
HostBinding('class.k-radio'),
|
|
59
60
|
tslib_1.__metadata("design:type", Boolean)
|
|
60
61
|
], RepeatOnRadioButtonDirective.prototype, "radioClass", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
HostBinding('class.k-radio-md'),
|
|
64
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
65
|
+
], RepeatOnRadioButtonDirective.prototype, "radioSizeClass", void 0);
|
|
61
66
|
tslib_1.__decorate([
|
|
62
67
|
Input("kendoRecurrenceRepeatOnRadioButton"),
|
|
63
68
|
tslib_1.__metadata("design:type", String),
|