@primeui/scheduler-core 0.0.1-alpha.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/LICENSE +23 -0
- package/README.md +1 -0
- package/dist/calendar/index.d.mts +57 -0
- package/dist/calendar/index.mjs +1 -0
- package/dist/chunk-2B3YLWHA.mjs +196 -0
- package/dist/chunk-2THQAZ26.mjs +1669 -0
- package/dist/chunk-5KORIWDT.mjs +41 -0
- package/dist/chunk-5N4ZOBJV.mjs +866 -0
- package/dist/chunk-6OZAPQZ5.mjs +229 -0
- package/dist/chunk-6PK5WSKT.mjs +369 -0
- package/dist/chunk-6VYWVIGM.mjs +1170 -0
- package/dist/chunk-AAVM7UCG.mjs +100 -0
- package/dist/chunk-C7ADJGNV.mjs +157 -0
- package/dist/chunk-DYW6WUHE.mjs +277 -0
- package/dist/chunk-F5W5HD7S.mjs +285 -0
- package/dist/chunk-FIBAZFC4.mjs +871 -0
- package/dist/chunk-HPC5B3AR.mjs +558 -0
- package/dist/chunk-KQGRXTP5.mjs +650 -0
- package/dist/chunk-NMX4BW42.mjs +672 -0
- package/dist/chunk-NX46LPLF.mjs +440 -0
- package/dist/chunk-NZGJN7HG.mjs +314 -0
- package/dist/chunk-QDMZBJDV.mjs +251 -0
- package/dist/chunk-QR2SVYAD.mjs +1144 -0
- package/dist/chunk-SYJ5O4KH.mjs +136 -0
- package/dist/chunk-TNKJPFGI.mjs +569 -0
- package/dist/chunk-UMAMDBU4.mjs +1 -0
- package/dist/chunk-W2SJW3QQ.mjs +3925 -0
- package/dist/chunk-WFUJWDST.mjs +352 -0
- package/dist/chunk-XUBQ2IQS.mjs +1 -0
- package/dist/chunk-ZUKUKGNK.mjs +613 -0
- package/dist/controllers/index.d.mts +384 -0
- package/dist/controllers/index.mjs +13 -0
- package/dist/date-D_CjQPmM.d.mts +74 -0
- package/dist/display-format-CLVvRt4I.d.mts +57 -0
- package/dist/event/index.d.mts +267 -0
- package/dist/event/index.mjs +8 -0
- package/dist/event-surface-_R_LHD95.d.mts +21 -0
- package/dist/event.positioning-BdzAVPk7.d.mts +51 -0
- package/dist/event.utils-QSNdd-3W.d.mts +35 -0
- package/dist/index.d.mts +1128 -0
- package/dist/index.mjs +1022 -0
- package/dist/interaction/index.d.mts +442 -0
- package/dist/interaction/index.mjs +9 -0
- package/dist/month/index.d.mts +104 -0
- package/dist/month/index.mjs +6 -0
- package/dist/overlay-BYM9B6nC.d.mts +64 -0
- package/dist/resource/index.d.mts +172 -0
- package/dist/resource/index.mjs +1 -0
- package/dist/selection-CO_98HdS.d.mts +56 -0
- package/dist/time-grid/index.d.mts +92 -0
- package/dist/time-grid/index.mjs +13 -0
- package/dist/timeline/index.d.mts +165 -0
- package/dist/timeline/index.mjs +6 -0
- package/dist/touch-BhsMWsjf.d.mts +69 -0
- package/dist/utils/index.d.mts +494 -0
- package/dist/utils/index.mjs +17 -0
- package/dist/views/index.d.mts +51 -0
- package/dist/views/index.mjs +8 -0
- package/dist/views/timeline/index.d.mts +37 -0
- package/dist/views/timeline/index.mjs +4 -0
- package/dist/year/index.d.mts +70 -0
- package/dist/year/index.mjs +6 -0
- package/package.json +58 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { SchedulerEvent, SchedulerCalendarMode, SchedulerNumberingSystem, DateRange, EventCategory } from '@primeui/scheduler-types/scheduler';
|
|
2
|
+
|
|
3
|
+
interface YearGridViewModelInput {
|
|
4
|
+
currentDate: Date;
|
|
5
|
+
firstDayOfWeek: number;
|
|
6
|
+
events: SchedulerEvent[];
|
|
7
|
+
locale?: string;
|
|
8
|
+
calendar?: SchedulerCalendarMode;
|
|
9
|
+
numberingSystem?: SchedulerNumberingSystem;
|
|
10
|
+
minDate?: Date | null;
|
|
11
|
+
maxDate?: Date | null;
|
|
12
|
+
selectedDates?: Date[];
|
|
13
|
+
selectedRange?: DateRange | null;
|
|
14
|
+
now?: Date;
|
|
15
|
+
categories?: EventCategory[];
|
|
16
|
+
categoryField?: string;
|
|
17
|
+
schedulerTimezone?: string;
|
|
18
|
+
resolvedDisplayTimezone?: string;
|
|
19
|
+
}
|
|
20
|
+
interface YearGridWeekdayHeaderViewModel {
|
|
21
|
+
dayIndex: number;
|
|
22
|
+
label: string;
|
|
23
|
+
}
|
|
24
|
+
interface YearGridDayIndicatorViewModel {
|
|
25
|
+
count: number;
|
|
26
|
+
color?: string;
|
|
27
|
+
}
|
|
28
|
+
interface YearGridDayCellViewModel {
|
|
29
|
+
date: Date;
|
|
30
|
+
dateKey: string;
|
|
31
|
+
dayOfMonth: number;
|
|
32
|
+
dayOfMonthLabel: string;
|
|
33
|
+
dayNumberLabel: string;
|
|
34
|
+
isOtherMonth: boolean;
|
|
35
|
+
isPlaceholder: boolean;
|
|
36
|
+
isCurrentMonth: boolean;
|
|
37
|
+
isToday: boolean;
|
|
38
|
+
isWeekend: boolean;
|
|
39
|
+
isDisabled: boolean;
|
|
40
|
+
isSelected: boolean;
|
|
41
|
+
isInRange: boolean;
|
|
42
|
+
isRangeStart: boolean;
|
|
43
|
+
isRangeEnd: boolean;
|
|
44
|
+
events: SchedulerEvent[];
|
|
45
|
+
eventCount: number;
|
|
46
|
+
hasEvents: boolean;
|
|
47
|
+
indicator: YearGridDayIndicatorViewModel | null;
|
|
48
|
+
indicatorColor?: string;
|
|
49
|
+
}
|
|
50
|
+
interface YearGridWeekViewModel {
|
|
51
|
+
days: YearGridDayCellViewModel[];
|
|
52
|
+
}
|
|
53
|
+
interface YearGridMiniMonthViewModel {
|
|
54
|
+
monthIndex: number;
|
|
55
|
+
date: Date;
|
|
56
|
+
name: string;
|
|
57
|
+
monthLabel: string;
|
|
58
|
+
weekdayHeaders: YearGridWeekdayHeaderViewModel[];
|
|
59
|
+
weeks: YearGridWeekViewModel[];
|
|
60
|
+
days: YearGridDayCellViewModel[];
|
|
61
|
+
}
|
|
62
|
+
interface YearGridViewModel {
|
|
63
|
+
year: number;
|
|
64
|
+
yearLabel: string;
|
|
65
|
+
weekdayHeaders: YearGridWeekdayHeaderViewModel[];
|
|
66
|
+
months: YearGridMiniMonthViewModel[];
|
|
67
|
+
}
|
|
68
|
+
declare function buildYearGridViewModel(input: YearGridViewModelInput): YearGridViewModel;
|
|
69
|
+
|
|
70
|
+
export { type YearGridDayCellViewModel, type YearGridDayIndicatorViewModel, type YearGridMiniMonthViewModel, type YearGridViewModel, type YearGridViewModelInput, type YearGridWeekViewModel, type YearGridWeekdayHeaderViewModel, buildYearGridViewModel };
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@primeui/scheduler-core",
|
|
3
|
+
"version": "0.0.1-alpha.1",
|
|
4
|
+
"author": "PrimeTek Informatics",
|
|
5
|
+
"description": "Scheduler API for PrimeUI.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"scheduler",
|
|
8
|
+
"primeui",
|
|
9
|
+
"fullcalendar"
|
|
10
|
+
],
|
|
11
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/primefaces/primeui.git",
|
|
15
|
+
"directory": "packages/components/scheduler/scheduler-core"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/primefaces/primeui/issues"
|
|
19
|
+
},
|
|
20
|
+
"main": "./dist/index.mjs",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./*": {
|
|
28
|
+
"types": "./dist/*/index.d.mts",
|
|
29
|
+
"import": "./dist/*/index.mjs",
|
|
30
|
+
"default": "./dist/*/index.mjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE"
|
|
41
|
+
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@internationalized/date": "^3.12.1",
|
|
44
|
+
"@primeui/scheduler-types": "0.0.1-alpha.1",
|
|
45
|
+
"@primeui/core": "0.0.1-alpha.1"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "cross-env NODE_ENV=production INPUT_DIR=src/ OUTPUT_DIR=dist/ pnpm run build:package",
|
|
49
|
+
"build:dev": "cross-env NODE_ENV=development INPUT_DIR=src/ OUTPUT_DIR=dist/ pnpm run build:dev:package",
|
|
50
|
+
"build:package": "pnpm run type:check && pnpm run test && cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup",
|
|
51
|
+
"build:dev:package": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup --watch",
|
|
52
|
+
"type:check": "tsc --noEmit",
|
|
53
|
+
"test": "cross-env NODE_ENV=test pnpm --dir=../../../../ vitest run packages/components/scheduler/scheduler-core/src --environment jsdom",
|
|
54
|
+
"dev:link": "pnpm link --global && npm link"
|
|
55
|
+
},
|
|
56
|
+
"module": "./dist/index.mjs",
|
|
57
|
+
"types": "./dist/index.d.mts"
|
|
58
|
+
}
|