@smart-solutions-tech/smart-angular-calendar 0.0.16 → 0.0.18
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/esm2020/lib/components/calendar/calendar.component.mjs +5 -3
- package/esm2020/lib/components/calendar-event/calendar-event.component.mjs +7 -3
- package/esm2020/lib/components/day/day.component.mjs +5 -3
- package/esm2020/lib/components/duration-event/duration-event.component.mjs +6 -2
- package/esm2020/lib/components/more-events-modal/more-events-modal.component.mjs +8 -3
- package/esm2020/lib/components/smart-calendar/smart-calendar.component.mjs +22 -13
- package/esm2020/lib/components/week/week.component.mjs +5 -3
- package/esm2020/lib/services/translation.service.mjs +1 -1
- package/esm2020/lib/translations.mjs +3 -1
- package/esm2020/lib/types.mjs +1 -1
- package/fesm2015/smart-solutions-tech-smart-angular-calendar.mjs +79 -50
- package/fesm2015/smart-solutions-tech-smart-angular-calendar.mjs.map +1 -1
- package/fesm2020/smart-solutions-tech-smart-angular-calendar.mjs +79 -50
- package/fesm2020/smart-solutions-tech-smart-angular-calendar.mjs.map +1 -1
- package/lib/components/calendar/calendar.component.d.ts +2 -1
- package/lib/components/calendar-event/calendar-event.component.d.ts +3 -1
- package/lib/components/day/day.component.d.ts +2 -1
- package/lib/components/duration-event/duration-event.component.d.ts +3 -1
- package/lib/components/more-events-modal/more-events-modal.component.d.ts +3 -1
- package/lib/components/smart-calendar/smart-calendar.component.d.ts +7 -2
- package/lib/components/week/week.component.d.ts +2 -1
- package/lib/services/translation.service.d.ts +2 -1
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { CalendarEvent } from '../../types';
|
|
3
|
+
import TRANSLATIONS from '../../translations';
|
|
4
|
+
import { TranslationService } from '../../services/translation.service';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class SmartCalendarComponent implements OnInit {
|
|
7
|
+
private translationService;
|
|
5
8
|
mode: 'month' | 'week' | 'day';
|
|
6
9
|
startAt: 'monday' | 'sunday';
|
|
7
10
|
currentMonth: {
|
|
@@ -9,6 +12,8 @@ export declare class SmartCalendarComponent implements OnInit {
|
|
|
9
12
|
month: number;
|
|
10
13
|
};
|
|
11
14
|
events: CalendarEvent[];
|
|
15
|
+
lang: keyof typeof TRANSLATIONS;
|
|
16
|
+
tagColor: string;
|
|
12
17
|
monthChange: EventEmitter<{
|
|
13
18
|
newMonth: {
|
|
14
19
|
year: number;
|
|
@@ -29,7 +34,7 @@ export declare class SmartCalendarComponent implements OnInit {
|
|
|
29
34
|
weekStartDate: Date;
|
|
30
35
|
weekEndDate: Date;
|
|
31
36
|
weekEvents: CalendarEvent[];
|
|
32
|
-
constructor();
|
|
37
|
+
constructor(translationService: TranslationService);
|
|
33
38
|
ngOnInit(): void;
|
|
34
39
|
toggleDateSelector(): void;
|
|
35
40
|
onMonthSelected(newMonth: {
|
|
@@ -51,5 +56,5 @@ export declare class SmartCalendarComponent implements OnInit {
|
|
|
51
56
|
selectWeekByDate(date: Date, emitChange?: boolean): void;
|
|
52
57
|
setMode(newMode: typeof this.mode): void;
|
|
53
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartCalendarComponent, never>;
|
|
54
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCalendarComponent, "smart-calendar", never, { "mode": "mode"; "startAt": "startAt"; "currentMonth": "currentMonth"; "events": "events"; }, { "monthChange": "monthChange"; "dateChanged": "dateChanged"; "eventClick": "eventClick"; }, never, never, false>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartCalendarComponent, "smart-calendar", never, { "mode": "mode"; "startAt": "startAt"; "currentMonth": "currentMonth"; "events": "events"; "lang": "lang"; "tagColor": "tagColor"; }, { "monthChange": "monthChange"; "dateChanged": "dateChanged"; "eventClick": "eventClick"; }, never, never, false>;
|
|
55
60
|
}
|
|
@@ -5,6 +5,7 @@ export declare class WeekComponent implements OnInit, OnChanges {
|
|
|
5
5
|
startAt: 'monday' | 'sunday';
|
|
6
6
|
events: CalendarEvent[];
|
|
7
7
|
startDate: Date;
|
|
8
|
+
tagColor?: string;
|
|
8
9
|
eventClick: EventEmitter<CalendarEvent>;
|
|
9
10
|
weekDays: WeekDay[];
|
|
10
11
|
hourBlocks: number[];
|
|
@@ -31,5 +32,5 @@ export declare class WeekComponent implements OnInit, OnChanges {
|
|
|
31
32
|
onEventClick(event: CalendarEvent): void;
|
|
32
33
|
isToday(date: Date): boolean;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<WeekComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WeekComponent, "lib-week", never, { "startAt": "startAt"; "events": "events"; "startDate": "startDate"; }, { "eventClick": "eventClick"; }, never, never, false>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WeekComponent, "lib-week", never, { "startAt": "startAt"; "events": "events"; "startDate": "startDate"; "tagColor": "tagColor"; }, { "eventClick": "eventClick"; }, never, never, false>;
|
|
35
36
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import TRANSLATIONS from '../translations';
|
|
1
2
|
import { Translation } from '../types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TranslationService {
|
|
@@ -6,7 +7,7 @@ export declare class TranslationService {
|
|
|
6
7
|
translate(tag: keyof Translation, args?: {
|
|
7
8
|
[key: string]: any;
|
|
8
9
|
}): string;
|
|
9
|
-
setLanguage(lang:
|
|
10
|
+
setLanguage(lang: keyof typeof TRANSLATIONS): void;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
12
13
|
}
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-solutions-tech/smart-angular-calendar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "This library is an events calendar component for Angular 14 and above. It allows you to view, create, and manage events through an intuitive and customizable interface, making it easy to integrate calendar functionality into modern Angular applications. Ideal for schedules, bookings, activity planning, and event management.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^14.2.0",
|