chuvsu-js 5.5.5 → 5.5.6
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/dist/tt/parse/overlays.js +3 -1
- package/dist/tt/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -88,7 +88,9 @@ export function parseSubstitutionDiv(div) {
|
|
|
88
88
|
date,
|
|
89
89
|
room,
|
|
90
90
|
teacher,
|
|
91
|
-
|
|
91
|
+
// A teacher-only replacement leaves the lesson's existing format intact.
|
|
92
|
+
// The portal can place the DOT marker outside the replacement room span.
|
|
93
|
+
isDistance: hasDistanceMarker(divText) ? true : room ? false : undefined,
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
96
|
export function parseSubstituteForDiv(div) {
|
package/dist/tt/types.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export interface Substitution {
|
|
|
44
44
|
date: LocalDate;
|
|
45
45
|
/** New room, if changed. */
|
|
46
46
|
room?: string;
|
|
47
|
-
/**
|
|
47
|
+
/** New distance format; absent when the substitution keeps the existing format. */
|
|
48
48
|
isDistance?: boolean;
|
|
49
49
|
/** New teacher, if changed. */
|
|
50
50
|
teacher?: Teacher;
|