@sneat/mod-schedulus-core 0.2.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.
Files changed (53) hide show
  1. package/esm2022/index.js +2 -0
  2. package/esm2022/index.js.map +1 -0
  3. package/esm2022/lib/contexts/happening-context.js +11 -0
  4. package/esm2022/lib/contexts/happening-context.js.map +1 -0
  5. package/esm2022/lib/contexts/index.js +2 -0
  6. package/esm2022/lib/contexts/index.js.map +1 -0
  7. package/esm2022/lib/dto/calendarium.js +2 -0
  8. package/esm2022/lib/dto/calendarium.js.map +1 -0
  9. package/esm2022/lib/dto/dto-calendar-day.js +2 -0
  10. package/esm2022/lib/dto/dto-calendar-day.js.map +1 -0
  11. package/esm2022/lib/dto/happening-types.js +2 -0
  12. package/esm2022/lib/dto/happening-types.js.map +1 -0
  13. package/esm2022/lib/dto/happening.js +60 -0
  14. package/esm2022/lib/dto/happening.js.map +1 -0
  15. package/esm2022/lib/dto/index.js +6 -0
  16. package/esm2022/lib/dto/index.js.map +1 -0
  17. package/esm2022/lib/dto/reminder.js +2 -0
  18. package/esm2022/lib/dto/reminder.js.map +1 -0
  19. package/esm2022/lib/dto/todo_move_funcs.js +6 -0
  20. package/esm2022/lib/dto/todo_move_funcs.js.map +1 -0
  21. package/esm2022/lib/index.js +7 -0
  22. package/esm2022/lib/index.js.map +1 -0
  23. package/esm2022/lib/pipes/index.js +2 -0
  24. package/esm2022/lib/pipes/index.js.map +1 -0
  25. package/esm2022/lib/pipes/wd-to-weekday.pipe.js +36 -0
  26. package/esm2022/lib/pipes/wd-to-weekday.pipe.js.map +1 -0
  27. package/esm2022/lib/schedule-nav-service.module.js +15 -0
  28. package/esm2022/lib/schedule-nav-service.module.js.map +1 -0
  29. package/esm2022/lib/schedule-nav.service.js +29 -0
  30. package/esm2022/lib/schedule-nav.service.js.map +1 -0
  31. package/esm2022/lib/view-models.js +24 -0
  32. package/esm2022/lib/view-models.js.map +1 -0
  33. package/esm2022/sneat-mod-schedulus-core.js +5 -0
  34. package/esm2022/sneat-mod-schedulus-core.js.map +1 -0
  35. package/index.d.ts +1 -0
  36. package/lib/contexts/happening-context.d.ts +12 -0
  37. package/lib/contexts/index.d.ts +1 -0
  38. package/lib/dto/calendarium.d.ts +13 -0
  39. package/lib/dto/dto-calendar-day.d.ts +20 -0
  40. package/lib/dto/happening-types.d.ts +6 -0
  41. package/lib/dto/happening.d.ts +109 -0
  42. package/lib/dto/index.d.ts +6 -0
  43. package/lib/dto/reminder.d.ts +9 -0
  44. package/lib/dto/todo_move_funcs.d.ts +4 -0
  45. package/lib/index.d.ts +6 -0
  46. package/lib/pipes/index.d.ts +1 -0
  47. package/lib/pipes/wd-to-weekday.pipe.d.ts +9 -0
  48. package/lib/schedule-nav-service.module.d.ts +6 -0
  49. package/lib/schedule-nav.service.d.ts +11 -0
  50. package/lib/view-models.d.ts +39 -0
  51. package/package.json +26 -0
  52. package/sneat-mod-schedulus-core.d.ts +5 -0
  53. package/tsconfig.lib.prod.tsbuildinfo +1 -0
@@ -0,0 +1,39 @@
1
+ import { IHappeningContext } from './contexts/happening-context';
2
+ import { HappeningType, IHappeningSlotWithID, ISlotAdjustment, ISlotParticipant, ITiming, Level, RepeatPeriod, SlotLocation, WeekdayCode2 } from './dto';
3
+ export interface ISchedulePageParams {
4
+ readonly member?: string;
5
+ readonly date?: string;
6
+ }
7
+ export interface NewHappeningParams {
8
+ readonly type?: HappeningType;
9
+ readonly wd?: WeekdayCode2;
10
+ readonly date?: string;
11
+ }
12
+ export declare const sortSlotItems: (a: ISlotUIContext, b: ISlotUIContext) => number;
13
+ export interface ISlotUIContext {
14
+ readonly slot: IHappeningSlotWithID;
15
+ readonly adjustment?: ISlotAdjustment;
16
+ readonly wd?: WeekdayCode2;
17
+ readonly error?: unknown;
18
+ readonly happening: IHappeningContext;
19
+ readonly title: string;
20
+ readonly timing: ITiming;
21
+ readonly repeats: RepeatPeriod;
22
+ readonly location?: SlotLocation;
23
+ readonly participants?: Readonly<Record<string, ISlotParticipant>>;
24
+ readonly levels?: Level[];
25
+ }
26
+ export interface ISlotUIEvent {
27
+ slot: ISlotUIContext;
28
+ event: Event;
29
+ }
30
+ export type SlotsByWeekday = Record<string, ISlotUIContext[]>;
31
+ export interface RecurringSlots {
32
+ readonly byWeekday: SlotsByWeekday;
33
+ }
34
+ export declare const wd2: WeekdayCode2[];
35
+ export type WeekdayNumber = 0 | 1 | 2 | 3 | 4 | 5 | 6;
36
+ export declare function jsDayToWeekday(day: WeekdayNumber): WeekdayCode2;
37
+ export declare function getWd2(d: Date): WeekdayCode2;
38
+ export declare function dateToTimeOnlyStr(d: Date): string;
39
+ export declare function timeToStr(n: number): string;
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@sneat/mod-schedulus-core",
3
+ "version": "0.2.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "peerDependencies": {
8
+ "@angular/common": ">=21.0.0",
9
+ "@angular/core": ">=21.0.0"
10
+ },
11
+ "dependencies": {
12
+ "tslib": "2.8.1"
13
+ },
14
+ "module": "esm2022/sneat-mod-schedulus-core.js",
15
+ "typings": "sneat-mod-schedulus-core.d.ts",
16
+ "exports": {
17
+ "./package.json": {
18
+ "default": "./package.json"
19
+ },
20
+ ".": {
21
+ "types": "./sneat-mod-schedulus-core.d.ts",
22
+ "default": "./esm2022/sneat-mod-schedulus-core.js"
23
+ }
24
+ },
25
+ "sideEffects": false
26
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sneat/mod-schedulus-core" />
5
+ export * from './index';