@progress/kendo-angular-scheduler 21.4.1-develop.1 → 22.0.0-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/localization/messages.d.ts +1 -1
- package/editing/resource-editor-base.d.ts +1 -1
- package/editing-directives/editing-directive-base.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-scheduler.mjs +313 -313
- package/localization/messages.d.ts +1 -1
- package/package.json +20 -28
- package/schematics/ngAdd/index.js +3 -3
- package/views/common/base-view.d.ts +1 -1
- package/views/common/configuration-view-base.d.ts +1 -1
- package/views/day-time/day-time-view-base.d.ts +1 -1
- package/views/day-time/day-time-view.component.d.ts +1 -1
- package/views/multi-day/multi-day-view-base.d.ts +1 -1
- package/views/timeline/timeline-base.d.ts +1 -1
- package/views/view-items/base-slot.directive.d.ts +1 -1
- package/views/view-items/base-view-item.d.ts +1 -1
- package/esm2022/common/constants.mjs +0 -8
- package/esm2022/common/default-model-fields.mjs +0 -20
- package/esm2022/common/dom-queries.mjs +0 -107
- package/esm2022/common/modifiers.mjs +0 -31
- package/esm2022/common/util.mjs +0 -227
- package/esm2022/data-binding.directive.mjs +0 -162
- package/esm2022/directives.mjs +0 -136
- package/esm2022/editing/date-time-picker.component.mjs +0 -190
- package/esm2022/editing/dialogs.service.mjs +0 -96
- package/esm2022/editing/edit-dialog-template.directive.mjs +0 -53
- package/esm2022/editing/edit-dialog.component.mjs +0 -679
- package/esm2022/editing/edit.service.mjs +0 -107
- package/esm2022/editing/local-data-changes.service.mjs +0 -18
- package/esm2022/editing/recurrence/end-rule-radio-button.directive.mjs +0 -77
- package/esm2022/editing/recurrence/localization/custom-messages.component.mjs +0 -44
- package/esm2022/editing/recurrence/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/editing/recurrence/localization/messages.mjs +0 -239
- package/esm2022/editing/recurrence/localization/recurrence-localization.service.mjs +0 -47
- package/esm2022/editing/recurrence/recurrence-editor.component.mjs +0 -497
- package/esm2022/editing/recurrence/recurrence-end-rule-editor.component.mjs +0 -334
- package/esm2022/editing/recurrence/recurrence-frequency-editor.component.mjs +0 -105
- package/esm2022/editing/recurrence/recurrence-interval-editor.component.mjs +0 -169
- package/esm2022/editing/recurrence/recurrence-monthly-yearly-editor.component.mjs +0 -468
- package/esm2022/editing/recurrence/recurrence-weekday-rule-editor.component.mjs +0 -138
- package/esm2022/editing/recurrence/recurrence.service.mjs +0 -254
- package/esm2022/editing/recurrence/repeat-on-radio-button.directive.mjs +0 -81
- package/esm2022/editing/resource-editor-base.mjs +0 -59
- package/esm2022/editing/resource-multiple-editor.component.mjs +0 -101
- package/esm2022/editing/resource-single-editor.component.mjs +0 -82
- package/esm2022/editing/timezone-editor.component.mjs +0 -193
- package/esm2022/editing-directives/base-edit.service.mjs +0 -320
- package/esm2022/editing-directives/edit-service.interface.mjs +0 -5
- package/esm2022/editing-directives/editing-directive-base.mjs +0 -242
- package/esm2022/editing-directives/local-edit.service.mjs +0 -122
- package/esm2022/editing-directives/reactive-editing.directive.mjs +0 -132
- package/esm2022/editing-directives/utils.mjs +0 -107
- package/esm2022/events/add-event.mjs +0 -26
- package/esm2022/events/cancel-event.mjs +0 -14
- package/esm2022/events/create-event.mjs +0 -40
- package/esm2022/events/date-change-event.mjs +0 -29
- package/esm2022/events/drag-end-event.mjs +0 -46
- package/esm2022/events/drag-event.mjs +0 -54
- package/esm2022/events/drag-start-event.mjs +0 -30
- package/esm2022/events/edit-event-base.mjs +0 -32
- package/esm2022/events/edit-event.mjs +0 -30
- package/esm2022/events/event-click-event.mjs +0 -32
- package/esm2022/events/event-keydown-event.mjs +0 -28
- package/esm2022/events/more-events-click.mjs +0 -24
- package/esm2022/events/navigate-event.mjs +0 -26
- package/esm2022/events/preventable-event.mjs +0 -28
- package/esm2022/events/remove-event.mjs +0 -30
- package/esm2022/events/resize-end-event.mjs +0 -38
- package/esm2022/events/resize-event.mjs +0 -46
- package/esm2022/events/resize-start-event.mjs +0 -30
- package/esm2022/events/save-event.mjs +0 -18
- package/esm2022/events/slot-click-event.mjs +0 -44
- package/esm2022/events/slot-drag-end-event.mjs +0 -10
- package/esm2022/events/slot-drag-event.mjs +0 -40
- package/esm2022/events/slot-drag-start-event.mjs +0 -44
- package/esm2022/events/view-event-map.mjs +0 -35
- package/esm2022/events.mjs +0 -27
- package/esm2022/index.mjs +0 -83
- package/esm2022/loading.component.mjs +0 -52
- package/esm2022/localization/custom-messages.component.mjs +0 -56
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -614
- package/esm2022/localization/scheduler-localization.service.mjs +0 -31
- package/esm2022/navigation/focus-position.interface.mjs +0 -5
- package/esm2022/navigation/focus.service.mjs +0 -202
- package/esm2022/navigation/focusable-element.interface.mjs +0 -5
- package/esm2022/navigation/focusable.directive.mjs +0 -98
- package/esm2022/navigation/shortcuts.directive.mjs +0 -239
- package/esm2022/navigation.mjs +0 -6
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pdf/pdf-command.directive.mjs +0 -96
- package/esm2022/pdf/pdf-export-event.mjs +0 -10
- package/esm2022/pdf/pdf.component.mjs +0 -241
- package/esm2022/pdf/pdf.module.mjs +0 -42
- package/esm2022/pdf/pdf.service.mjs +0 -36
- package/esm2022/progress-kendo-angular-scheduler.mjs +0 -8
- package/esm2022/scheduler.component.mjs +0 -1981
- package/esm2022/scheduler.module.mjs +0 -138
- package/esm2022/toolbar/navigation.component.mjs +0 -391
- package/esm2022/toolbar/toolbar-context.mjs +0 -5
- package/esm2022/toolbar/toolbar-template.directive.mjs +0 -50
- package/esm2022/toolbar/toolbar.component.mjs +0 -168
- package/esm2022/toolbar/toolbar.service.mjs +0 -46
- package/esm2022/toolbar/view-selector.component.mjs +0 -181
- package/esm2022/types/actions.mjs +0 -5
- package/esm2022/types/create-form-group-args.interface.mjs +0 -5
- package/esm2022/types/crud-operation.enum.mjs +0 -18
- package/esm2022/types/current-time-settings.interface.mjs +0 -5
- package/esm2022/types/date-range.interface.mjs +0 -5
- package/esm2022/types/datepicker-options.interface.mjs +0 -5
- package/esm2022/types/edit-event-args.interface.mjs +0 -5
- package/esm2022/types/edit-mode.enum.mjs +0 -23
- package/esm2022/types/editable-settings.interface.mjs +0 -5
- package/esm2022/types/event-style-args.interface.mjs +0 -5
- package/esm2022/types/focusable-container.mjs +0 -5
- package/esm2022/types/group.interface.mjs +0 -5
- package/esm2022/types/numeric-options.interface.mjs +0 -5
- package/esm2022/types/ongoing-events-settings.interface.mjs +0 -5
- package/esm2022/types/resource.interface.mjs +0 -5
- package/esm2022/types/scheduler-event.mjs +0 -5
- package/esm2022/types/scheduler-model-fields.interface.mjs +0 -5
- package/esm2022/types/scheduler-slot.interface.mjs +0 -5
- package/esm2022/types/scheduler-view.mjs +0 -9
- package/esm2022/types/slot-class-args.interface.mjs +0 -5
- package/esm2022/types/slot-selection.mjs +0 -35
- package/esm2022/types/view-item.interface.mjs +0 -5
- package/esm2022/types.mjs +0 -12
- package/esm2022/views/agenda/agenda-header-item.component.mjs +0 -85
- package/esm2022/views/agenda/agenda-header.component.mjs +0 -75
- package/esm2022/views/agenda/agenda-task-item.component.mjs +0 -137
- package/esm2022/views/agenda/agenda-view-internal.component.mjs +0 -424
- package/esm2022/views/agenda/agenda-view-list.component.mjs +0 -256
- package/esm2022/views/agenda/agenda-view.component.mjs +0 -130
- package/esm2022/views/agenda/tasks.collection.mjs +0 -96
- package/esm2022/views/agenda/utils.mjs +0 -176
- package/esm2022/views/common/base-view.mjs +0 -1099
- package/esm2022/views/common/configuration-view-base.mjs +0 -164
- package/esm2022/views/common/dom-events.service.mjs +0 -22
- package/esm2022/views/common/hint-container.component.mjs +0 -41
- package/esm2022/views/common/repeat.pipe.mjs +0 -36
- package/esm2022/views/common/resize-hint.component.mjs +0 -97
- package/esm2022/views/common/resource-iterator.pipe.mjs +0 -49
- package/esm2022/views/common/scheduler-task.mjs +0 -5
- package/esm2022/views/common/slot-selectable.directive.mjs +0 -137
- package/esm2022/views/common/view-footer.component.mjs +0 -103
- package/esm2022/views/common/work-hours-footer.directive.mjs +0 -45
- package/esm2022/views/constants.mjs +0 -31
- package/esm2022/views/day-time/day-time-slot.service.mjs +0 -633
- package/esm2022/views/day-time/day-time-view-base.mjs +0 -244
- package/esm2022/views/day-time/day-time-view-item.component.mjs +0 -216
- package/esm2022/views/day-time/day-time-view.component.mjs +0 -437
- package/esm2022/views/day-time/event-slot.directive.mjs +0 -138
- package/esm2022/views/day-time/utils.mjs +0 -32
- package/esm2022/views/month/month-slot.component.mjs +0 -166
- package/esm2022/views/month/month-slot.service.mjs +0 -404
- package/esm2022/views/month/month-view-item.component.mjs +0 -161
- package/esm2022/views/month/month-view-renderer.component.mjs +0 -683
- package/esm2022/views/month/month-view.component.mjs +0 -203
- package/esm2022/views/month/multi-week-view.component.mjs +0 -202
- package/esm2022/views/month/utils.mjs +0 -107
- package/esm2022/views/multi-day/day-view.component.mjs +0 -186
- package/esm2022/views/multi-day/multi-day-view-base.mjs +0 -55
- package/esm2022/views/multi-day/multi-day-view-renderer.component.mjs +0 -1002
- package/esm2022/views/multi-day/multi-day-view.component.mjs +0 -197
- package/esm2022/views/multi-day/utils.mjs +0 -63
- package/esm2022/views/multi-day/week-view.component.mjs +0 -189
- package/esm2022/views/multi-day/work-week-view.component.mjs +0 -172
- package/esm2022/views/scheduler-view.directive.mjs +0 -65
- package/esm2022/views/templates/agenda-date-template.directive.mjs +0 -41
- package/esm2022/views/templates/agenda-time-template.directive.mjs +0 -46
- package/esm2022/views/templates/all-day-event-template.directive.mjs +0 -42
- package/esm2022/views/templates/all-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/date-header-template.directive.mjs +0 -42
- package/esm2022/views/templates/event-template.directive.mjs +0 -42
- package/esm2022/views/templates/group-header-template.directive.mjs +0 -42
- package/esm2022/views/templates/major-time-header-template.directive.mjs +0 -41
- package/esm2022/views/templates/minor-time-header-template.directive.mjs +0 -41
- package/esm2022/views/templates/month-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/multi-week-day-slot-template.directive.mjs +0 -42
- package/esm2022/views/templates/time-slot-template.directive.mjs +0 -43
- package/esm2022/views/templates.mjs +0 -16
- package/esm2022/views/timeline/timeline-base.mjs +0 -39
- package/esm2022/views/timeline/timeline-month-view.component.mjs +0 -211
- package/esm2022/views/timeline/timeline-multi-day-view.component.mjs +0 -649
- package/esm2022/views/timeline/timeline-view.component.mjs +0 -189
- package/esm2022/views/timeline/timeline-week-view.component.mjs +0 -181
- package/esm2022/views/timeline/utils.mjs +0 -60
- package/esm2022/views/utils.mjs +0 -373
- package/esm2022/views/view-context.service.mjs +0 -111
- package/esm2022/views/view-items/base-slot.directive.mjs +0 -104
- package/esm2022/views/view-items/base-slot.service.mjs +0 -82
- package/esm2022/views/view-items/base-view-item.mjs +0 -194
- package/esm2022/views/view-items/item-map.mjs +0 -38
- package/esm2022/views/view-items/types.mjs +0 -5
- package/esm2022/views/view-state.service.mjs +0 -144
- package/esm2022/views/year/utils.mjs +0 -60
- package/esm2022/views/year/year-view-internal.component.mjs +0 -471
- package/esm2022/views/year/year-view.component.mjs +0 -136
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, HostBinding, ChangeDetectionStrategy, TemplateRef } from '@angular/core';
|
|
6
|
-
import { toLocalDate } from '@progress/kendo-date-math';
|
|
7
|
-
import { DatePipe } from '@progress/kendo-angular-intl';
|
|
8
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export class AgendaHeaderItemComponent {
|
|
14
|
-
classes = true;
|
|
15
|
-
get firstClass() {
|
|
16
|
-
return this.hasFirstClass;
|
|
17
|
-
}
|
|
18
|
-
roleAttribute = "rowheader";
|
|
19
|
-
get rowSpan() {
|
|
20
|
-
return this.item.rowSpan;
|
|
21
|
-
}
|
|
22
|
-
item;
|
|
23
|
-
agendaDateTemplate;
|
|
24
|
-
hasFirstClass = true;
|
|
25
|
-
get itemDate() {
|
|
26
|
-
return toLocalDate(this.item.dataItem.value);
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaHeaderItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AgendaHeaderItemComponent, isStandalone: true, selector: "[kendoSchedulerAgendaHeaderItem]", inputs: { item: ["kendoSchedulerAgendaHeaderItem", "item"], agendaDateTemplate: "agendaDateTemplate", hasFirstClass: "hasFirstClass" }, host: { properties: { "class.k-scheduler-datecolumn": "this.classes", "class.k-scheduler-cell": "this.classes", "class.k-first": "this.firstClass", "attr.role": "this.roleAttribute", "attr.rowspan": "this.rowSpan" } }, ngImport: i0, template: `
|
|
30
|
-
@if (!agendaDateTemplate) {
|
|
31
|
-
<strong class="k-scheduler-agendaday">{{itemDate | kendoDate: 'dd'}}</strong>
|
|
32
|
-
<em class="k-scheduler-agendaweek">{{itemDate | kendoDate: 'EEEE'}}</em>
|
|
33
|
-
<span class="k-scheduler-agendadate">{{itemDate | kendoDate: 'y'}}</span>
|
|
34
|
-
}
|
|
35
|
-
@if (agendaDateTemplate) {
|
|
36
|
-
<ng-container [ngTemplateOutlet]="agendaDateTemplate"
|
|
37
|
-
[ngTemplateOutletContext]="{ date: itemDate }">
|
|
38
|
-
</ng-container>
|
|
39
|
-
}
|
|
40
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: DatePipe, name: "kendoDate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaHeaderItemComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
47
|
-
selector: '[kendoSchedulerAgendaHeaderItem]',
|
|
48
|
-
template: `
|
|
49
|
-
@if (!agendaDateTemplate) {
|
|
50
|
-
<strong class="k-scheduler-agendaday">{{itemDate | kendoDate: 'dd'}}</strong>
|
|
51
|
-
<em class="k-scheduler-agendaweek">{{itemDate | kendoDate: 'EEEE'}}</em>
|
|
52
|
-
<span class="k-scheduler-agendadate">{{itemDate | kendoDate: 'y'}}</span>
|
|
53
|
-
}
|
|
54
|
-
@if (agendaDateTemplate) {
|
|
55
|
-
<ng-container [ngTemplateOutlet]="agendaDateTemplate"
|
|
56
|
-
[ngTemplateOutletContext]="{ date: itemDate }">
|
|
57
|
-
</ng-container>
|
|
58
|
-
}
|
|
59
|
-
`,
|
|
60
|
-
standalone: true,
|
|
61
|
-
imports: [NgTemplateOutlet, DatePipe]
|
|
62
|
-
}]
|
|
63
|
-
}], propDecorators: { classes: [{
|
|
64
|
-
type: HostBinding,
|
|
65
|
-
args: ["class.k-scheduler-datecolumn"]
|
|
66
|
-
}, {
|
|
67
|
-
type: HostBinding,
|
|
68
|
-
args: ["class.k-scheduler-cell"]
|
|
69
|
-
}], firstClass: [{
|
|
70
|
-
type: HostBinding,
|
|
71
|
-
args: ["class.k-first"]
|
|
72
|
-
}], roleAttribute: [{
|
|
73
|
-
type: HostBinding,
|
|
74
|
-
args: ["attr.role"]
|
|
75
|
-
}], rowSpan: [{
|
|
76
|
-
type: HostBinding,
|
|
77
|
-
args: ["attr.rowspan"]
|
|
78
|
-
}], item: [{
|
|
79
|
-
type: Input,
|
|
80
|
-
args: ["kendoSchedulerAgendaHeaderItem"]
|
|
81
|
-
}], agendaDateTemplate: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], hasFirstClass: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}] } });
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ChangeDetectionStrategy, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class AgendaHeaderComponent {
|
|
13
|
-
localization;
|
|
14
|
-
classes = true;
|
|
15
|
-
resources;
|
|
16
|
-
get dateMessage() {
|
|
17
|
-
return this.localization.get('dateHeader');
|
|
18
|
-
}
|
|
19
|
-
get timeMessage() {
|
|
20
|
-
return this.localization.get('timeHeader');
|
|
21
|
-
}
|
|
22
|
-
get eventMessage() {
|
|
23
|
-
return this.localization.get('eventHeader');
|
|
24
|
-
}
|
|
25
|
-
constructor(localization) {
|
|
26
|
-
this.localization = localization;
|
|
27
|
-
}
|
|
28
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaHeaderComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AgendaHeaderComponent, isStandalone: true, selector: "[kendoSchedulerAgendaHeader]", inputs: { resources: "resources" }, host: { properties: { "class.k-scheduler-header": "this.classes" } }, ngImport: i0, template: `
|
|
30
|
-
<div class="k-scheduler-header-wrap">
|
|
31
|
-
<table class="k-scheduler-table" role="none">
|
|
32
|
-
<tbody role="rowgroup">
|
|
33
|
-
<tr role="row">
|
|
34
|
-
@for (resource of resources; track resource) {
|
|
35
|
-
<th class="k-scheduler-groupcolumn k-first" role="columnheader"></th>
|
|
36
|
-
}
|
|
37
|
-
<th class="k-scheduler-cell k-heading-cell k-scheduler-datecolumn" role="columnheader">{{ dateMessage }}</th>
|
|
38
|
-
<th class="k-scheduler-cell k-heading-cell k-scheduler-timecolumn" role="columnheader">{{ timeMessage }}</th>
|
|
39
|
-
<th class="k-scheduler-cell k-heading-cell" role="columnheader">{{ eventMessage }}</th>
|
|
40
|
-
</tr>
|
|
41
|
-
</tbody>
|
|
42
|
-
</table>
|
|
43
|
-
</div>
|
|
44
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
|
-
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaHeaderComponent, decorators: [{
|
|
47
|
-
type: Component,
|
|
48
|
-
args: [{
|
|
49
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
50
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
51
|
-
selector: '[kendoSchedulerAgendaHeader]',
|
|
52
|
-
template: `
|
|
53
|
-
<div class="k-scheduler-header-wrap">
|
|
54
|
-
<table class="k-scheduler-table" role="none">
|
|
55
|
-
<tbody role="rowgroup">
|
|
56
|
-
<tr role="row">
|
|
57
|
-
@for (resource of resources; track resource) {
|
|
58
|
-
<th class="k-scheduler-groupcolumn k-first" role="columnheader"></th>
|
|
59
|
-
}
|
|
60
|
-
<th class="k-scheduler-cell k-heading-cell k-scheduler-datecolumn" role="columnheader">{{ dateMessage }}</th>
|
|
61
|
-
<th class="k-scheduler-cell k-heading-cell k-scheduler-timecolumn" role="columnheader">{{ timeMessage }}</th>
|
|
62
|
-
<th class="k-scheduler-cell k-heading-cell" role="columnheader">{{ eventMessage }}</th>
|
|
63
|
-
</tr>
|
|
64
|
-
</tbody>
|
|
65
|
-
</table>
|
|
66
|
-
</div>
|
|
67
|
-
`,
|
|
68
|
-
standalone: true
|
|
69
|
-
}]
|
|
70
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { classes: [{
|
|
71
|
-
type: HostBinding,
|
|
72
|
-
args: ["class.k-scheduler-header"]
|
|
73
|
-
}], resources: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}] } });
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ChangeDetectionStrategy, TemplateRef, HostBinding } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { toLocalDate } from '@progress/kendo-date-math';
|
|
8
|
-
import { arrowRotateCwIcon, arrowsNoRepeatIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
9
|
-
import { isRecurrence, isRecurrenceException, formatEventTime } from '../utils';
|
|
10
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
11
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
12
|
-
import { IntlService } from '@progress/kendo-angular-intl';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
|
-
import * as i2 from "@progress/kendo-angular-intl";
|
|
16
|
-
/**
|
|
17
|
-
* @hidden
|
|
18
|
-
*/
|
|
19
|
-
export class AgendaTaskItemComponent {
|
|
20
|
-
localization;
|
|
21
|
-
intl;
|
|
22
|
-
arrowRotateCWIcon = arrowRotateCwIcon;
|
|
23
|
-
arrowsNoRepeatIcon = arrowsNoRepeatIcon;
|
|
24
|
-
xIcon = xIcon;
|
|
25
|
-
item;
|
|
26
|
-
color;
|
|
27
|
-
eventTemplate;
|
|
28
|
-
editable;
|
|
29
|
-
cellClass = true;
|
|
30
|
-
get eventTitle() {
|
|
31
|
-
const start = toLocalDate(this.item.start);
|
|
32
|
-
const end = toLocalDate(this.item.end);
|
|
33
|
-
const time = formatEventTime(start, end, this.item.isAllDay, this.intl.localeId);
|
|
34
|
-
return `${time}, ${this.item.event.title}`;
|
|
35
|
-
}
|
|
36
|
-
get eventColor() {
|
|
37
|
-
return this.item.color;
|
|
38
|
-
}
|
|
39
|
-
get deleteMessage() {
|
|
40
|
-
return this.localization.get('deleteTitle');
|
|
41
|
-
}
|
|
42
|
-
get isRecurrence() {
|
|
43
|
-
return isRecurrence(this.item);
|
|
44
|
-
}
|
|
45
|
-
get isRecurrenceException() {
|
|
46
|
-
return isRecurrenceException(this.item);
|
|
47
|
-
}
|
|
48
|
-
get removable() {
|
|
49
|
-
return this.editable && this.editable.remove !== false;
|
|
50
|
-
}
|
|
51
|
-
constructor(localization, intl) {
|
|
52
|
-
this.localization = localization;
|
|
53
|
-
this.intl = intl;
|
|
54
|
-
}
|
|
55
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaTaskItemComponent, deps: [{ token: i1.LocalizationService }, { token: i2.IntlService }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AgendaTaskItemComponent, isStandalone: true, selector: "[kendoSchedulerAgendaTaskItem]", inputs: { item: ["kendoSchedulerAgendaTaskItem", "item"], color: "color", eventTemplate: "eventTemplate", editable: "editable" }, host: { properties: { "class.k-scheduler-cell": "this.cellClass", "attr.aria-label": "this.eventTitle" } }, ngImport: i0, template: `
|
|
57
|
-
<div class="k-task" [title]="item.title">
|
|
58
|
-
@if (eventColor) {
|
|
59
|
-
<span class="k-scheduler-mark" [style.background-color]="eventColor"></span>
|
|
60
|
-
}
|
|
61
|
-
@if (isRecurrence) {
|
|
62
|
-
<kendo-icon-wrapper name="arrow-rotate-cw" [svgIcon]="arrowRotateCWIcon"></kendo-icon-wrapper>
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@if (isRecurrenceException) {
|
|
66
|
-
<kendo-icon-wrapper name="arrows-no-repeat" [svgIcon]="arrowsNoRepeatIcon"></kendo-icon-wrapper>
|
|
67
|
-
}
|
|
68
|
-
@if (!eventTemplate) {
|
|
69
|
-
{{item?.title }}
|
|
70
|
-
}
|
|
71
|
-
@if (eventTemplate) {
|
|
72
|
-
<ng-container [ngTemplateOutlet]="eventTemplate"
|
|
73
|
-
[ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: item.resources }">
|
|
74
|
-
</ng-container>
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@if (removable) {
|
|
78
|
-
<span class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">
|
|
79
|
-
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
80
|
-
</span>
|
|
81
|
-
}
|
|
82
|
-
</div>
|
|
83
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
84
|
-
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AgendaTaskItemComponent, decorators: [{
|
|
86
|
-
type: Component,
|
|
87
|
-
args: [{
|
|
88
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
89
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
90
|
-
selector: '[kendoSchedulerAgendaTaskItem]',
|
|
91
|
-
template: `
|
|
92
|
-
<div class="k-task" [title]="item.title">
|
|
93
|
-
@if (eventColor) {
|
|
94
|
-
<span class="k-scheduler-mark" [style.background-color]="eventColor"></span>
|
|
95
|
-
}
|
|
96
|
-
@if (isRecurrence) {
|
|
97
|
-
<kendo-icon-wrapper name="arrow-rotate-cw" [svgIcon]="arrowRotateCWIcon"></kendo-icon-wrapper>
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@if (isRecurrenceException) {
|
|
101
|
-
<kendo-icon-wrapper name="arrows-no-repeat" [svgIcon]="arrowsNoRepeatIcon"></kendo-icon-wrapper>
|
|
102
|
-
}
|
|
103
|
-
@if (!eventTemplate) {
|
|
104
|
-
{{item?.title }}
|
|
105
|
-
}
|
|
106
|
-
@if (eventTemplate) {
|
|
107
|
-
<ng-container [ngTemplateOutlet]="eventTemplate"
|
|
108
|
-
[ngTemplateOutletContext]="{ $implicit: item.event, event: item.event, resources: item.resources }">
|
|
109
|
-
</ng-container>
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@if (removable) {
|
|
113
|
-
<span class="k-link k-event-delete" aria-hidden="true" [attr.title]="deleteMessage">
|
|
114
|
-
<kendo-icon-wrapper name="x" [svgIcon]="xIcon"></kendo-icon-wrapper>
|
|
115
|
-
</span>
|
|
116
|
-
}
|
|
117
|
-
</div>
|
|
118
|
-
`,
|
|
119
|
-
standalone: true,
|
|
120
|
-
imports: [IconWrapperComponent, NgTemplateOutlet]
|
|
121
|
-
}]
|
|
122
|
-
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.IntlService }], propDecorators: { item: [{
|
|
123
|
-
type: Input,
|
|
124
|
-
args: ["kendoSchedulerAgendaTaskItem"]
|
|
125
|
-
}], color: [{
|
|
126
|
-
type: Input
|
|
127
|
-
}], eventTemplate: [{
|
|
128
|
-
type: Input
|
|
129
|
-
}], editable: [{
|
|
130
|
-
type: Input
|
|
131
|
-
}], cellClass: [{
|
|
132
|
-
type: HostBinding,
|
|
133
|
-
args: ["class.k-scheduler-cell"]
|
|
134
|
-
}], eventTitle: [{
|
|
135
|
-
type: HostBinding,
|
|
136
|
-
args: ['attr.aria-label']
|
|
137
|
-
}] } });
|