@worktile/gantt 18.1.0-next.0 → 18.1.0-next.2
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/components/calendar/grid/calendar-grid.component.d.ts +0 -2
- package/components/calendar/header/calendar-header.component.d.ts +0 -2
- package/components/main/gantt-main.component.d.ts +1 -1
- package/components/toolbar/toolbar.component.d.ts +7 -1
- package/esm2022/components/calendar/grid/calendar-grid.component.mjs +3 -7
- package/esm2022/components/calendar/header/calendar-header.component.mjs +4 -7
- package/esm2022/components/main/gantt-main.component.mjs +1 -1
- package/esm2022/gantt-upper.mjs +4 -4
- package/esm2022/gantt.config.mjs +9 -2
- package/esm2022/gantt.module.mjs +2 -6
- package/esm2022/utils/date.mjs +4 -1
- package/fesm2022/worktile-gantt.mjs +19 -20
- package/fesm2022/worktile-gantt.mjs.map +1 -1
- package/gantt.config.d.ts +4 -3
- package/package.json +1 -1
- package/utils/date.d.ts +1 -0
package/gantt.config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
3
|
import { GanttLinkOptions } from './class/link';
|
|
4
|
-
import { GanttI18nLocale } from './i18n/i18n';
|
|
4
|
+
import { GanttI18nLocaleConfig, GanttI18nLocale } from './i18n/i18n';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface GanttDateFormat {
|
|
7
7
|
hour?: string;
|
|
@@ -41,9 +41,10 @@ export declare class GanttConfigService {
|
|
|
41
41
|
config: GanttGlobalConfig;
|
|
42
42
|
private i18nLocales;
|
|
43
43
|
constructor(globalConfig: GanttGlobalConfig);
|
|
44
|
+
setLocale(locale: string): void;
|
|
44
45
|
private getLocaleConfig;
|
|
45
|
-
getViewsLocale():
|
|
46
|
-
|
|
46
|
+
getViewsLocale(): GanttI18nLocaleConfig['views'];
|
|
47
|
+
getDateLocale(): any;
|
|
47
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<GanttConfigService, never>;
|
|
48
49
|
static ɵprov: i0.ɵɵInjectableDeclaration<GanttConfigService>;
|
|
49
50
|
}
|
package/package.json
CHANGED
package/utils/date.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Locale, FirstWeekContainsDate } from 'date-fns';
|
|
|
2
2
|
export { Locale, addDays, addHours, addMinutes, addMonths, addQuarters, addSeconds, addWeeks, addYears, differenceInCalendarDays, differenceInCalendarQuarters, differenceInDays, eachDayOfInterval, eachMonthOfInterval, eachWeekOfInterval, endOfDay, endOfMonth, endOfQuarter, endOfWeek, endOfYear, format, fromUnixTime, getDaysInMonth, getUnixTime, getWeek, isToday, isWeekend, setDate, startOfDay, startOfMonth, startOfQuarter, startOfWeek, startOfYear, startOfMinute, startOfHour, endOfMinute, endOfHour, differenceInMinutes, eachHourOfInterval } from 'date-fns';
|
|
3
3
|
export type GanttDateUtil = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
4
4
|
export declare function setDefaultTimeZone(zone: string): void;
|
|
5
|
+
export declare function getDefaultTimeZone(): string;
|
|
5
6
|
export declare class GanttDate {
|
|
6
7
|
value: Date;
|
|
7
8
|
constructor(date?: Date | string | number);
|