@daypilot/daypilot-lite-angular 3.8.0 → 3.9.0

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/README.md CHANGED
@@ -1,21 +1,138 @@
1
- DayPilot Lite for Angular
2
- ===================================
1
+ # DayPilot Lite for Angular
3
2
 
4
- Angular event calendar components that can display day/week/month calendar views.
3
+ [DayPilot Lite for JavaScript](https://javascript.daypilot.org/open-source/) is a library of JavaScript/HTML5 event calendar/scheduler components that can display day/week/month calendar views. This is the Angular version of DayPilot Lite.
5
4
 
6
- Features
7
- --------
5
+ ## What's New
8
6
 
9
- * CSS themes (use theme builder to create your own theme)
10
- * Event customization (text, HTML, colors...)
11
- * Drag and drop event moving and resizing
7
+ [Release History](https://javascript.daypilot.org/daypilot-lite-history/)
8
+
9
+ ## Online Demo
10
+
11
+ [![JavaScript Event Calendar Demo](https://static.daypilot.org/npm/202207/javascript-html5-event-calendar-scheduler-drag-drop.png)](https://javascript.daypilot.org/demo/lite/)
12
+
13
+ [Online Demo](https://javascript.daypilot.org/demo/lite/)
14
+
15
+ ## Features
16
+
17
+ * Calendar/scheduler views: day, week, work week, month, resource calendar
12
18
  * Event creation using drag and drop
19
+ * Drag and drop event moving and resizing
13
20
  * Integrated delete icon
21
+ * Event duration bar with customizable color
22
+ * Date picker with free/busy days highlighting, free-hand range selection, day cell customization
23
+ * CSS themes (use theme builder to create your own theme)
24
+ * Event customization (text, HTML, colors...)
25
+ * Built-in XSS protection
26
+ * Localization support
27
+ * TypeScript definitions
28
+
29
+ ## Tutorials
30
+
31
+ ### Angular Appointment Calendar Tutorial
32
+
33
+ ![Angular Appointment Calendar](https://static.daypilot.org/npm/202207/angular-appointment-calendar.png)
34
+
35
+ [Open-Source Angular Appointment Calendar Component (TypeScript + PHP/MySQL)](https://code.daypilot.org/50175/angular-appointment-calendar-component-typescript)
36
+ Simple appointment scheduling application built using Angular. The calendar view is created using DayPilot Pro Angular Calendar component. The server-side backend is created using PHP and stores events in a MySQL or SQLite database.
37
+
38
+ ### Angular Day/Week/Month Views
39
+
40
+ ![Angular Calendar: Day/Week/Month Views](https://static.daypilot.org/npm/202207/angular-calendar-day-week-month.png)
41
+
42
+ [Angular Calendar: Day/Week/Month Views (Open-Source)](https://code.daypilot.org/30451/angular-calendar-day-week-month-views)
43
+ Angular project that displays an event calendar component with day, week and month views that share the same data and can be easily switched. A date picker component is used to switch the current date and highlight busy days.
44
+
45
+ ### Angular Resource Calendar Tutorial
46
+
47
+ ![Angular Resource Calendar](https://static.daypilot.org/npm/202207/angular-resource-calendar-tutorial.png)
48
+
49
+ [Angular Resource Calendar (Open-Source)](https://code.daypilot.org/42642/angular-resource-calendar-tutorial)
50
+ Angular application that shows how to create a resource calendar Angular component that displays event data in multiple columns. The resource calendar supports drag and drop out of the box.
51
+
52
+ ### Angular Date Picker Tutorial
53
+
54
+ ![Angular Date Picker with Drag & Drop Range Selection](https://static.daypilot.org/npm/202207/angular-calendar-date-picker-drag-drop.png)
55
+
56
+ [Angular Date Picker with Drag & Drop Range Selection (Open-Source)](https://code.daypilot.org/16244/angular-date-picker-with-drag-drop-range-selection)
57
+ How to activate the free-hand date range selection mode in the Angular date picker component (Navigator).
58
+
59
+
60
+
61
+
62
+ ### Angular Calendar Date Switching Tutorial
63
+
64
+ ![Angular Calendar Date Switching](https://static.daypilot.org/npm/202207/angular-calendar-date-switching-tutorial.png)
65
+
66
+ [Angular Calendar: Date Switching](https://code.daypilot.org/78004/angular-calendar-date-switching)
67
+ How to integrate Angular event calendar component with a date picker and navigation buttons for changing the visible week.
68
+
69
+ ## Example
70
+
71
+ ```typescript
72
+ import {Component, ViewChild, AfterViewInit} from "@angular/core";
73
+ import {DayPilot, DayPilotCalendarComponent} from "@daypilot/daypilot-lite-angular";
74
+ import {DataService} from "./data.service";
75
+
76
+ @Component({
77
+ selector: 'calendar-component',
78
+ template: `
79
+ <daypilot-calendar [config]="configCalendar" [events]="events" #calendar></daypilot-calendar>
80
+ `,
81
+ styles: [``]
82
+ })
83
+ export class CalendarComponent implements AfterViewInit {
84
+
85
+ @ViewChild("calendar") calendar!: DayPilotCalendarComponent;
86
+
87
+ events: DayPilot.EventData[] = [];
88
+
89
+ configCalendar: DayPilot.CalendarConfig = {
90
+ viewType: "Week",
91
+ onTimeRangeSelected: async (args) => {
92
+ const modal = await DayPilot.Modal.prompt("Create a new event:", "Event 1");
93
+ const dp = args.control;
94
+ dp.clearSelection();
95
+ if (!modal.result) { return; }
96
+ dp.events.add(new DayPilot.Event({
97
+ start: args.start,
98
+ end: args.end,
99
+ id: DayPilot.guid(),
100
+ text: modal.result
101
+ }));
102
+ }
103
+ };
104
+
105
+ constructor(private ds: DataService) {
106
+ }
107
+
108
+ ngAfterViewInit(): void {
109
+ this.loadEvents();
110
+ }
111
+
112
+ loadEvents(): void {
113
+ const from = this.nav.control.visibleStart();
114
+ const to = this.nav.control.visibleEnd();
115
+ this.ds.getEvents(from, to).subscribe(result => {
116
+ this.events = result;
117
+ });
118
+ }
119
+
120
+ }
121
+ ```
122
+
123
+ ## Documentation
124
+
125
+ * [Angular weekly calendar](https://doc.daypilot.org/calendar/angular/)
126
+ * [Angular monthly calendar](https://doc.daypilot.org/month/angular/)
127
+ * [Angular date picker](https://doc.daypilot.org/navigator/angular/)
128
+
129
+ ## CSS Themes
130
+
131
+ The [Theme Designer](https://themes.daypilot.org/) lets you create and download your own CSS theme using an online visual tool.
132
+
133
+ ## License
14
134
 
15
- License
16
- -------
17
135
  Apache License 2.0
18
136
 
19
- Product information
20
- -------------------
21
- https://javascript.daypilot.org/
137
+
138
+