@tactics/toddle-styleguide 5.4.4 → 5.4.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/index.tsx
CHANGED
|
@@ -126,6 +126,7 @@ import { DayOfWeek, DayOfWeekIndex, DayOfWeekLocaleAwareOutputFormat, DayOfWeekO
|
|
|
126
126
|
import { DayInterface, DayOutputFormat } from './src/utilities/datetime/day.class';
|
|
127
127
|
import { DateTime, DateTimeCalculation, DateTimeInterface, DateTimeOutputFormat } from './src/utilities/datetime/datetime.class';
|
|
128
128
|
import { DateOnly, DateOnlyInterface, DateOnlyLocaleAwareOutputFormat, DateOnlyOutputFormat } from './src/utilities/datetime/dateonly.class';
|
|
129
|
+
import { TimeSlotEmployeeSequence } from "./src/models/time-slot-employee-sequence";
|
|
129
130
|
|
|
130
131
|
// ================================
|
|
131
132
|
// Exports
|
|
@@ -211,11 +212,11 @@ export {
|
|
|
211
212
|
KeyBoardTypes,
|
|
212
213
|
Size,
|
|
213
214
|
VisualState,
|
|
214
|
-
|
|
215
215
|
// Models
|
|
216
216
|
Initials,
|
|
217
217
|
TimeSlotRecord,
|
|
218
218
|
TimeSlotSequence,
|
|
219
|
+
TimeSlotEmployeeSequence,
|
|
219
220
|
|
|
220
221
|
// Context
|
|
221
222
|
ThemeCtx,
|
package/package.json
CHANGED
|
@@ -133,6 +133,23 @@ export class TimeSlotEmployeeSequence {
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
isIn(): boolean {
|
|
137
|
+
return this.first.hasIn() && !this.first.hasOut() ||
|
|
138
|
+
this.second.hasIn() && !this.second.hasOut() ||
|
|
139
|
+
this.third.hasIn() && !this.third.hasOut() ||
|
|
140
|
+
this.fourth.hasIn() && !this.fourth.hasOut() ||
|
|
141
|
+
this.fifth.hasIn() && !this.fifth.hasOut() ||
|
|
142
|
+
this.sixth.hasIn() && !this.sixth.hasOut() ||
|
|
143
|
+
this.seventh.hasIn() && !this.seventh.hasOut() ||
|
|
144
|
+
this.eighth.hasIn() && !this.eighth.hasOut() ||
|
|
145
|
+
this.ninth.hasIn() && !this.ninth.hasOut() ||
|
|
146
|
+
this.tenth.hasIn() && !this.tenth.hasOut();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
isOut() : boolean {
|
|
150
|
+
return !this.isIn();
|
|
151
|
+
}
|
|
152
|
+
|
|
136
153
|
isComplete(): boolean {
|
|
137
154
|
return (
|
|
138
155
|
this.first.isComplete() &&
|
|
@@ -20,6 +20,14 @@ export class TimeSlotRecord {
|
|
|
20
20
|
return new TimeSlotRecord(seq.start, seq.end);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
hasIn() : boolean {
|
|
24
|
+
return this.start !== '';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
hasOut() : boolean {
|
|
28
|
+
return this.end !== '';
|
|
29
|
+
}
|
|
30
|
+
|
|
23
31
|
isEmpty(): boolean {
|
|
24
32
|
return this.start == '' && this.end == '';
|
|
25
33
|
}
|