@drincs/nqtr 0.1.1 → 0.1.3

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 (191) hide show
  1. package/dist/classes/Activity.d.mts +199 -0
  2. package/dist/classes/Activity.d.ts +199 -0
  3. package/dist/classes/Activity.js +508 -0
  4. package/dist/classes/Activity.js.map +1 -0
  5. package/dist/classes/Activity.mjs +503 -0
  6. package/dist/classes/Activity.mjs.map +1 -0
  7. package/dist/classes/Commitment.d.mts +6 -0
  8. package/dist/classes/Commitment.d.ts +6 -0
  9. package/dist/classes/Commitment.js +402 -0
  10. package/dist/classes/Commitment.js.map +1 -0
  11. package/dist/classes/Commitment.mjs +400 -0
  12. package/dist/classes/Commitment.mjs.map +1 -0
  13. package/dist/classes/index.d.mts +6 -0
  14. package/dist/classes/index.d.ts +6 -0
  15. package/dist/classes/index.js +520 -0
  16. package/dist/classes/index.js.map +1 -0
  17. package/dist/classes/index.mjs +517 -0
  18. package/dist/classes/index.mjs.map +1 -0
  19. package/dist/classes/navigation/ActivityRoom.d.mts +6 -0
  20. package/dist/classes/navigation/ActivityRoom.d.ts +6 -0
  21. package/dist/classes/navigation/ActivityRoom.js +435 -0
  22. package/dist/classes/navigation/ActivityRoom.js.map +1 -0
  23. package/dist/classes/navigation/ActivityRoom.mjs +433 -0
  24. package/dist/classes/navigation/ActivityRoom.mjs.map +1 -0
  25. package/dist/classes/navigation/Location.d.mts +6 -0
  26. package/dist/classes/navigation/Location.d.ts +6 -0
  27. package/dist/classes/navigation/Location.js +110 -0
  28. package/dist/classes/navigation/Location.js.map +1 -0
  29. package/dist/classes/navigation/Location.mjs +108 -0
  30. package/dist/classes/navigation/Location.mjs.map +1 -0
  31. package/dist/classes/navigation/Map.d.mts +6 -0
  32. package/dist/classes/navigation/Map.d.ts +6 -0
  33. package/dist/classes/navigation/Map.js +109 -0
  34. package/dist/classes/navigation/Map.js.map +1 -0
  35. package/dist/classes/navigation/Map.mjs +107 -0
  36. package/dist/classes/navigation/Map.mjs.map +1 -0
  37. package/dist/classes/navigation/Room.d.mts +6 -0
  38. package/dist/classes/navigation/Room.d.ts +6 -0
  39. package/dist/classes/navigation/Room.js +750 -0
  40. package/dist/classes/navigation/Room.js.map +1 -0
  41. package/dist/classes/navigation/Room.mjs +745 -0
  42. package/dist/classes/navigation/Room.mjs.map +1 -0
  43. package/dist/classes/navigation/index.d.mts +6 -0
  44. package/dist/classes/navigation/index.d.ts +6 -0
  45. package/dist/classes/navigation/index.js +945 -0
  46. package/dist/classes/navigation/index.js.map +1 -0
  47. package/dist/classes/navigation/index.mjs +941 -0
  48. package/dist/classes/navigation/index.mjs.map +1 -0
  49. package/dist/classes/quest/Goal.d.mts +23 -0
  50. package/dist/classes/quest/Goal.d.ts +23 -0
  51. package/dist/classes/quest/Goal.js +33 -0
  52. package/dist/classes/quest/Goal.js.map +1 -0
  53. package/dist/classes/quest/Goal.mjs +31 -0
  54. package/dist/classes/quest/Goal.mjs.map +1 -0
  55. package/dist/classes/quest/Quest.d.mts +3 -0
  56. package/dist/classes/quest/Quest.d.ts +3 -0
  57. package/dist/classes/quest/Quest.js +39 -0
  58. package/dist/classes/quest/Quest.js.map +1 -0
  59. package/dist/classes/quest/Quest.mjs +37 -0
  60. package/dist/classes/quest/Quest.mjs.map +1 -0
  61. package/dist/classes/quest/Stage.d.mts +3 -0
  62. package/dist/classes/quest/Stage.d.ts +3 -0
  63. package/dist/classes/quest/Stage.js +105 -0
  64. package/dist/classes/quest/Stage.js.map +1 -0
  65. package/dist/classes/quest/Stage.mjs +103 -0
  66. package/dist/classes/quest/Stage.mjs.map +1 -0
  67. package/dist/classes/quest/index.d.mts +3 -0
  68. package/dist/classes/quest/index.d.ts +3 -0
  69. package/dist/classes/quest/index.js +133 -0
  70. package/dist/classes/quest/index.js.map +1 -0
  71. package/dist/classes/quest/index.mjs +129 -0
  72. package/dist/classes/quest/index.mjs.map +1 -0
  73. package/dist/decorators/ActivityDecorator.d.mts +12 -0
  74. package/dist/decorators/ActivityDecorator.d.ts +12 -0
  75. package/dist/decorators/ActivityDecorator.js +33 -0
  76. package/dist/decorators/ActivityDecorator.js.map +1 -0
  77. package/dist/decorators/ActivityDecorator.mjs +29 -0
  78. package/dist/decorators/ActivityDecorator.mjs.map +1 -0
  79. package/dist/decorators/CommitmentDecorator.d.mts +21 -0
  80. package/dist/decorators/CommitmentDecorator.d.ts +21 -0
  81. package/dist/decorators/CommitmentDecorator.js +77 -0
  82. package/dist/decorators/CommitmentDecorator.js.map +1 -0
  83. package/dist/decorators/CommitmentDecorator.mjs +68 -0
  84. package/dist/decorators/CommitmentDecorator.mjs.map +1 -0
  85. package/dist/decorators/RoomDecorator.d.mts +46 -0
  86. package/dist/decorators/RoomDecorator.d.ts +46 -0
  87. package/dist/decorators/RoomDecorator.js +57 -0
  88. package/dist/decorators/RoomDecorator.js.map +1 -0
  89. package/dist/decorators/RoomDecorator.mjs +49 -0
  90. package/dist/decorators/RoomDecorator.mjs.map +1 -0
  91. package/dist/decorators/index.d.mts +9 -0
  92. package/dist/decorators/index.d.ts +9 -0
  93. package/dist/decorators/index.js +145 -0
  94. package/dist/decorators/index.js.map +1 -0
  95. package/dist/decorators/index.mjs +132 -0
  96. package/dist/decorators/index.mjs.map +1 -0
  97. package/dist/enums/ExecutionTypeEnum.d.mts +6 -0
  98. package/dist/enums/ExecutionTypeEnum.d.ts +6 -0
  99. package/dist/enums/ExecutionTypeEnum.js +12 -0
  100. package/dist/enums/ExecutionTypeEnum.js.map +1 -0
  101. package/dist/enums/ExecutionTypeEnum.mjs +10 -0
  102. package/dist/enums/ExecutionTypeEnum.mjs.map +1 -0
  103. package/dist/enums/index.d.mts +1 -0
  104. package/dist/enums/index.d.ts +1 -0
  105. package/dist/enums/index.js +12 -0
  106. package/dist/enums/index.js.map +1 -0
  107. package/dist/enums/index.mjs +10 -0
  108. package/dist/enums/index.mjs.map +1 -0
  109. package/dist/functions/ActivityFunctions.d.mts +11 -0
  110. package/dist/functions/ActivityFunctions.d.ts +11 -0
  111. package/dist/functions/ActivityFunctions.js +54 -0
  112. package/dist/functions/ActivityFunctions.js.map +1 -0
  113. package/dist/functions/ActivityFunctions.mjs +51 -0
  114. package/dist/functions/ActivityFunctions.mjs.map +1 -0
  115. package/dist/functions/NavigationFunctions.d.mts +13 -0
  116. package/dist/functions/NavigationFunctions.d.ts +13 -0
  117. package/dist/functions/NavigationFunctions.js +173 -0
  118. package/dist/functions/NavigationFunctions.js.map +1 -0
  119. package/dist/functions/NavigationFunctions.mjs +168 -0
  120. package/dist/functions/NavigationFunctions.mjs.map +1 -0
  121. package/dist/functions/RoutineFunctions.d.mts +12 -0
  122. package/dist/functions/RoutineFunctions.d.ts +12 -0
  123. package/dist/functions/RoutineFunctions.js +87 -0
  124. package/dist/functions/RoutineFunctions.js.map +1 -0
  125. package/dist/functions/RoutineFunctions.mjs +83 -0
  126. package/dist/functions/RoutineFunctions.mjs.map +1 -0
  127. package/dist/functions/index.d.mts +9 -0
  128. package/dist/functions/index.d.ts +9 -0
  129. package/dist/functions/index.js +264 -0
  130. package/dist/functions/index.js.map +1 -0
  131. package/dist/functions/index.mjs +254 -0
  132. package/dist/functions/index.mjs.map +1 -0
  133. package/dist/index-BjOzVDyw.d.ts +76 -0
  134. package/dist/index-BvCfRbJB.d.mts +564 -0
  135. package/dist/index-Ci6Aw7YE.d.ts +564 -0
  136. package/dist/index-gJ26gdgL.d.mts +76 -0
  137. package/dist/index.d.mts +16 -1031
  138. package/dist/index.d.ts +16 -1031
  139. package/dist/index.js +83 -154
  140. package/dist/index.js.map +1 -1
  141. package/dist/index.mjs +31 -80
  142. package/dist/index.mjs.map +1 -1
  143. package/dist/managers/TimeManager.d.mts +84 -0
  144. package/dist/managers/TimeManager.d.ts +84 -0
  145. package/dist/managers/TimeManager.js +251 -0
  146. package/dist/managers/TimeManager.js.map +1 -0
  147. package/dist/managers/TimeManager.mjs +249 -0
  148. package/dist/managers/TimeManager.mjs.map +1 -0
  149. package/dist/managers/index.d.mts +2 -0
  150. package/dist/managers/index.d.ts +2 -0
  151. package/dist/managers/index.js +251 -0
  152. package/dist/managers/index.js.map +1 -0
  153. package/dist/managers/index.mjs +249 -0
  154. package/dist/managers/index.mjs.map +1 -0
  155. package/dist/override/OnRunActivityProps.d.mts +19 -0
  156. package/dist/override/OnRunActivityProps.d.ts +19 -0
  157. package/dist/override/OnRunActivityProps.js +4 -0
  158. package/dist/override/OnRunActivityProps.js.map +1 -0
  159. package/dist/override/OnRunActivityProps.mjs +3 -0
  160. package/dist/override/OnRunActivityProps.mjs.map +1 -0
  161. package/dist/override/index.d.mts +1 -0
  162. package/dist/override/index.d.ts +1 -0
  163. package/dist/override/index.js +4 -0
  164. package/dist/override/index.js.map +1 -0
  165. package/dist/override/index.mjs +3 -0
  166. package/dist/override/index.mjs.map +1 -0
  167. package/dist/types/GraphicItem.d.mts +5 -0
  168. package/dist/types/GraphicItem.d.ts +5 -0
  169. package/dist/types/GraphicItem.js +4 -0
  170. package/dist/types/GraphicItem.js.map +1 -0
  171. package/dist/types/GraphicItem.mjs +3 -0
  172. package/dist/types/GraphicItem.mjs.map +1 -0
  173. package/dist/types/QuestsRequired.d.mts +3 -0
  174. package/dist/types/QuestsRequired.d.ts +3 -0
  175. package/dist/types/QuestsRequired.js +4 -0
  176. package/dist/types/QuestsRequired.js.map +1 -0
  177. package/dist/types/QuestsRequired.mjs +3 -0
  178. package/dist/types/QuestsRequired.mjs.map +1 -0
  179. package/dist/types/TimeSettings.d.mts +58 -0
  180. package/dist/types/TimeSettings.d.ts +58 -0
  181. package/dist/types/TimeSettings.js +4 -0
  182. package/dist/types/TimeSettings.js.map +1 -0
  183. package/dist/types/TimeSettings.mjs +3 -0
  184. package/dist/types/TimeSettings.mjs.map +1 -0
  185. package/dist/types/index.d.mts +4 -0
  186. package/dist/types/index.d.ts +4 -0
  187. package/dist/types/index.js +4 -0
  188. package/dist/types/index.js.map +1 -0
  189. package/dist/types/index.mjs +3 -0
  190. package/dist/types/index.mjs.map +1 -0
  191. package/package.json +1 -1
@@ -0,0 +1,199 @@
1
+ import OnRunActivityProps from '../override/OnRunActivityProps.mjs';
2
+ import { GraphicItemType } from '../types/GraphicItem.mjs';
3
+ import '@drincs/pixi-vn';
4
+
5
+ interface ActivityProps {
6
+ /**
7
+ * The name
8
+ * @default ""
9
+ */
10
+ name?: string;
11
+ /**
12
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
13
+ * If you set 3, the activity will be hidden into hours 1 and 2, and will be shown from hour 3.
14
+ * @default TimeManager.minDayHours
15
+ */
16
+ fromHour?: number;
17
+ /**
18
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
19
+ * If you set 3, the activity will be shown into hours 1 and 2 and will be hidden from hour 3.
20
+ * @default TimeManager.maxDayHours + 1
21
+ */
22
+ toHour?: number;
23
+ /**
24
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
25
+ * If you set 3, the activity will be hidden into days 1 and 2, and will be shown from day 3.
26
+ * @default undefined
27
+ */
28
+ fromDay?: number;
29
+ /**
30
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
31
+ * If you set 3, the activity will be shown into days 1 and 2 and will be deleted or hidden from day 3.
32
+ * @default undefined
33
+ */
34
+ toDay?: number;
35
+ /**
36
+ * Whether is disabled. You can also pass a Pixi'VN flag name.
37
+ * @default false
38
+ */
39
+ disabled?: boolean | string;
40
+ /**
41
+ * Whether is hidden. You can also pass a Pixi'VN flag name.
42
+ * @default false
43
+ */
44
+ hidden?: boolean | string;
45
+ /**
46
+ * The icon element. Can be a string or an Element or a Pixi'VN CanvasItem
47
+ * @default undefined
48
+ */
49
+ icon?: GraphicItemType;
50
+ }
51
+ /**
52
+ * The function that is called when the activity is runned.
53
+ */
54
+ type OnRunActivityEvent<T> = (activity: T, props?: OnRunActivityProps) => void;
55
+ declare abstract class ActivityStoredAbstract {
56
+ /**
57
+ * @param onRun The function that is called when the activity is runned. Have 2 parameters: the runned activity and the yourParams object, that is an object with the parameters that you want to pass to the onRun function.
58
+ * @param props The activity properties.
59
+ */
60
+ constructor(onRun: OnRunActivityEvent<ActivityStoredAbstract>, props: ActivityProps);
61
+ abstract setStorageProperty<T>(propertyName: string, value: T | undefined): void;
62
+ abstract getStorageProperty<T>(propertyName: string): T | undefined;
63
+ abstract get id(): string;
64
+ private defaultName?;
65
+ /**
66
+ * The name
67
+ */
68
+ get name(): string;
69
+ set name(value: string | undefined);
70
+ private defaultFromHour?;
71
+ /**
72
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
73
+ */
74
+ get fromHour(): number;
75
+ set fromHour(value: number | undefined);
76
+ private defaultToHour?;
77
+ /**
78
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
79
+ */
80
+ get toHour(): number;
81
+ set toHour(value: number | undefined);
82
+ private defaultFromDay?;
83
+ /**
84
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
85
+ */
86
+ get fromDay(): number | undefined;
87
+ set fromDay(value: number | undefined);
88
+ private defaultToDay?;
89
+ /**
90
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
91
+ */
92
+ get toDay(): number | undefined;
93
+ set toDay(value: number | undefined);
94
+ private defaultDisabled;
95
+ /**
96
+ * Whether is disabled.
97
+ */
98
+ get disabled(): boolean;
99
+ set disabled(value: boolean | string);
100
+ private defaultHidden;
101
+ /**
102
+ * Whether is hidden. If the activity is not started yet, it will be hidden.
103
+ */
104
+ get hidden(): boolean;
105
+ set hidden(value: boolean | string);
106
+ private _icon?;
107
+ /**
108
+ * The icon element.
109
+ */
110
+ get icon(): GraphicItemType | undefined;
111
+ private _onRun;
112
+ /**
113
+ * The function that is called when the activity is runned.
114
+ */
115
+ get onRun(): () => void;
116
+ /**
117
+ * Whether the activity is a deadline.
118
+ * @returns Whether the activity is a deadline.
119
+ */
120
+ isExpired(): boolean;
121
+ /**
122
+ * Export the activity properties.
123
+ * @returns The activity properties.
124
+ */
125
+ export(): ActivityProps;
126
+ }
127
+ /**
128
+ * The activity model.
129
+ */
130
+ declare class ActivityModel {
131
+ /**
132
+ * @param id The activity id, that must be unique.
133
+ * @param onRun The function that is called when the activity is runned. Have 2 parameters: the runned activity and the yourParams object, that is an object with the parameters that you want to pass to the onRun function.
134
+ * @param props The activity properties.
135
+ */
136
+ constructor(id: string, onRun: OnRunActivityEvent<ActivityModel>, props: ActivityProps);
137
+ private _id;
138
+ /**
139
+ * The activity id, that is unique.
140
+ */
141
+ get id(): string;
142
+ private _name?;
143
+ /**
144
+ * The name
145
+ */
146
+ get name(): string | undefined;
147
+ private _fromHour?;
148
+ /**
149
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
150
+ */
151
+ get fromHour(): number | undefined;
152
+ private _toHour?;
153
+ /**
154
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
155
+ */
156
+ get toHour(): number | undefined;
157
+ private _fromDay?;
158
+ /**
159
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
160
+ */
161
+ get fromDay(): number | undefined;
162
+ private _toDay?;
163
+ /**
164
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
165
+ */
166
+ get toDay(): number | undefined;
167
+ private _disabled?;
168
+ /**
169
+ * Whether is disabled.
170
+ */
171
+ get disabled(): boolean | undefined;
172
+ private _hidden;
173
+ /**
174
+ * Whether is hidden. If the activity is not started yet, it will be hidden.
175
+ */
176
+ get hidden(): boolean;
177
+ private _icon?;
178
+ /**
179
+ * The icon element.
180
+ */
181
+ get icon(): GraphicItemType | undefined;
182
+ private _onRun;
183
+ /**
184
+ * The function that is called when the activity is runned.
185
+ */
186
+ get onRun(): () => void;
187
+ /**
188
+ * Whether the activity is a deadline.
189
+ * @returns Whether the activity is a deadline.
190
+ */
191
+ isDeadline(): boolean;
192
+ /**
193
+ * Export the activity properties.
194
+ * @returns The activity properties.
195
+ */
196
+ export(): ActivityProps;
197
+ }
198
+
199
+ export { type ActivityProps, ActivityStoredAbstract, type OnRunActivityEvent, ActivityModel as default };
@@ -0,0 +1,199 @@
1
+ import OnRunActivityProps from '../override/OnRunActivityProps.js';
2
+ import { GraphicItemType } from '../types/GraphicItem.js';
3
+ import '@drincs/pixi-vn';
4
+
5
+ interface ActivityProps {
6
+ /**
7
+ * The name
8
+ * @default ""
9
+ */
10
+ name?: string;
11
+ /**
12
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
13
+ * If you set 3, the activity will be hidden into hours 1 and 2, and will be shown from hour 3.
14
+ * @default TimeManager.minDayHours
15
+ */
16
+ fromHour?: number;
17
+ /**
18
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
19
+ * If you set 3, the activity will be shown into hours 1 and 2 and will be hidden from hour 3.
20
+ * @default TimeManager.maxDayHours + 1
21
+ */
22
+ toHour?: number;
23
+ /**
24
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
25
+ * If you set 3, the activity will be hidden into days 1 and 2, and will be shown from day 3.
26
+ * @default undefined
27
+ */
28
+ fromDay?: number;
29
+ /**
30
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
31
+ * If you set 3, the activity will be shown into days 1 and 2 and will be deleted or hidden from day 3.
32
+ * @default undefined
33
+ */
34
+ toDay?: number;
35
+ /**
36
+ * Whether is disabled. You can also pass a Pixi'VN flag name.
37
+ * @default false
38
+ */
39
+ disabled?: boolean | string;
40
+ /**
41
+ * Whether is hidden. You can also pass a Pixi'VN flag name.
42
+ * @default false
43
+ */
44
+ hidden?: boolean | string;
45
+ /**
46
+ * The icon element. Can be a string or an Element or a Pixi'VN CanvasItem
47
+ * @default undefined
48
+ */
49
+ icon?: GraphicItemType;
50
+ }
51
+ /**
52
+ * The function that is called when the activity is runned.
53
+ */
54
+ type OnRunActivityEvent<T> = (activity: T, props?: OnRunActivityProps) => void;
55
+ declare abstract class ActivityStoredAbstract {
56
+ /**
57
+ * @param onRun The function that is called when the activity is runned. Have 2 parameters: the runned activity and the yourParams object, that is an object with the parameters that you want to pass to the onRun function.
58
+ * @param props The activity properties.
59
+ */
60
+ constructor(onRun: OnRunActivityEvent<ActivityStoredAbstract>, props: ActivityProps);
61
+ abstract setStorageProperty<T>(propertyName: string, value: T | undefined): void;
62
+ abstract getStorageProperty<T>(propertyName: string): T | undefined;
63
+ abstract get id(): string;
64
+ private defaultName?;
65
+ /**
66
+ * The name
67
+ */
68
+ get name(): string;
69
+ set name(value: string | undefined);
70
+ private defaultFromHour?;
71
+ /**
72
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
73
+ */
74
+ get fromHour(): number;
75
+ set fromHour(value: number | undefined);
76
+ private defaultToHour?;
77
+ /**
78
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
79
+ */
80
+ get toHour(): number;
81
+ set toHour(value: number | undefined);
82
+ private defaultFromDay?;
83
+ /**
84
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
85
+ */
86
+ get fromDay(): number | undefined;
87
+ set fromDay(value: number | undefined);
88
+ private defaultToDay?;
89
+ /**
90
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
91
+ */
92
+ get toDay(): number | undefined;
93
+ set toDay(value: number | undefined);
94
+ private defaultDisabled;
95
+ /**
96
+ * Whether is disabled.
97
+ */
98
+ get disabled(): boolean;
99
+ set disabled(value: boolean | string);
100
+ private defaultHidden;
101
+ /**
102
+ * Whether is hidden. If the activity is not started yet, it will be hidden.
103
+ */
104
+ get hidden(): boolean;
105
+ set hidden(value: boolean | string);
106
+ private _icon?;
107
+ /**
108
+ * The icon element.
109
+ */
110
+ get icon(): GraphicItemType | undefined;
111
+ private _onRun;
112
+ /**
113
+ * The function that is called when the activity is runned.
114
+ */
115
+ get onRun(): () => void;
116
+ /**
117
+ * Whether the activity is a deadline.
118
+ * @returns Whether the activity is a deadline.
119
+ */
120
+ isExpired(): boolean;
121
+ /**
122
+ * Export the activity properties.
123
+ * @returns The activity properties.
124
+ */
125
+ export(): ActivityProps;
126
+ }
127
+ /**
128
+ * The activity model.
129
+ */
130
+ declare class ActivityModel {
131
+ /**
132
+ * @param id The activity id, that must be unique.
133
+ * @param onRun The function that is called when the activity is runned. Have 2 parameters: the runned activity and the yourParams object, that is an object with the parameters that you want to pass to the onRun function.
134
+ * @param props The activity properties.
135
+ */
136
+ constructor(id: string, onRun: OnRunActivityEvent<ActivityModel>, props: ActivityProps);
137
+ private _id;
138
+ /**
139
+ * The activity id, that is unique.
140
+ */
141
+ get id(): string;
142
+ private _name?;
143
+ /**
144
+ * The name
145
+ */
146
+ get name(): string | undefined;
147
+ private _fromHour?;
148
+ /**
149
+ * The hour when the activity starts. If the activity is not started yet, it will be hidden.
150
+ */
151
+ get fromHour(): number | undefined;
152
+ private _toHour?;
153
+ /**
154
+ * The hour when the activity ends. If the activity is ended yet, it will be hidden.
155
+ */
156
+ get toHour(): number | undefined;
157
+ private _fromDay?;
158
+ /**
159
+ * The day when the activity starts. If the activity is not started yet, it will be hidden.
160
+ */
161
+ get fromDay(): number | undefined;
162
+ private _toDay?;
163
+ /**
164
+ * The day when the activity ends. If the activity is ended yet, it will be deleted or hidden.
165
+ */
166
+ get toDay(): number | undefined;
167
+ private _disabled?;
168
+ /**
169
+ * Whether is disabled.
170
+ */
171
+ get disabled(): boolean | undefined;
172
+ private _hidden;
173
+ /**
174
+ * Whether is hidden. If the activity is not started yet, it will be hidden.
175
+ */
176
+ get hidden(): boolean;
177
+ private _icon?;
178
+ /**
179
+ * The icon element.
180
+ */
181
+ get icon(): GraphicItemType | undefined;
182
+ private _onRun;
183
+ /**
184
+ * The function that is called when the activity is runned.
185
+ */
186
+ get onRun(): () => void;
187
+ /**
188
+ * Whether the activity is a deadline.
189
+ * @returns Whether the activity is a deadline.
190
+ */
191
+ isDeadline(): boolean;
192
+ /**
193
+ * Export the activity properties.
194
+ * @returns The activity properties.
195
+ */
196
+ export(): ActivityProps;
197
+ }
198
+
199
+ export { type ActivityProps, ActivityStoredAbstract, type OnRunActivityEvent, ActivityModel as default };