ngx-edyta-entity 0.1.21 → 0.2.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.
Files changed (61) hide show
  1. package/fesm2022/ngx-edyta-entity.mjs +112 -112
  2. package/fesm2022/ngx-edyta-entity.mjs.map +1 -1
  3. package/package.json +5 -4
  4. package/types/ngx-edyta-entity.d.ts +1000 -0
  5. package/index.d.ts +0 -5
  6. package/lib/canvas.component.d.ts +0 -31
  7. package/lib/canvas.module.d.ts +0 -34
  8. package/lib/entity/entity-bottom-pane/entity-bottom-pane.component.d.ts +0 -18
  9. package/lib/form/form-type/form-type-checkbox/form-type-checkbox.component.d.ts +0 -11
  10. package/lib/form/form-type/form-type-date/form-type-date.component.d.ts +0 -11
  11. package/lib/form/form-type/form-type-input/form-type-input.component.d.ts +0 -11
  12. package/lib/form/form-type/form-type-item/form-type-item.component.d.ts +0 -15
  13. package/lib/form/form-type/form-type-radio/form-type-radio.component.d.ts +0 -11
  14. package/lib/form/form-type/form-type-select/form-type-select.component.d.ts +0 -11
  15. package/lib/form/form-type/form-type-text/form-type-text.component.d.ts +0 -5
  16. package/lib/form/form-type/form-type-ukulele-chords/form-type-ukulele-chords.component.d.ts +0 -8
  17. package/lib/form/form.component.d.ts +0 -20
  18. package/lib/grammar/grammar.component.d.ts +0 -10
  19. package/lib/grammar/item/grammar-item.component.d.ts +0 -10
  20. package/lib/model/learning-entity/central-service.d.ts +0 -19
  21. package/lib/model/learning-entity/convertors/form-learning-entity-content-convertor.d.ts +0 -5
  22. package/lib/model/learning-entity/convertors/grammar-learning-entity-content-convertor.d.ts +0 -5
  23. package/lib/model/learning-entity/convertors/learning-entity-content-convertor.d.ts +0 -4
  24. package/lib/model/learning-entity/convertors/learning-entity-convertor-factory.d.ts +0 -4
  25. package/lib/model/learning-entity/convertors/puzzle-learning-entity-content-convertor.d.ts +0 -7
  26. package/lib/model/learning-entity/convertors/riddle-learning-entity-content-convertor.d.ts +0 -5
  27. package/lib/model/learning-entity/convertors/vocabulary-learning-entity-content-convertor.d.ts +0 -8
  28. package/lib/model/learning-entity/convertors/yes-no-learning-entity-content-convertor.d.ts +0 -5
  29. package/lib/model/learning-entity/form-learning-entity.d.ts +0 -12
  30. package/lib/model/learning-entity/form-learning-entity.type.d.ts +0 -77
  31. package/lib/model/learning-entity/grammar-learning-entity.d.ts +0 -9
  32. package/lib/model/learning-entity/grammar-learning-entity.type.d.ts +0 -32
  33. package/lib/model/learning-entity/interactive-learning-entity.d.ts +0 -14
  34. package/lib/model/learning-entity/learning-entity-factory.d.ts +0 -12
  35. package/lib/model/learning-entity/learning-entity-progress-service.d.ts +0 -6
  36. package/lib/model/learning-entity/learning-entity-service.d.ts +0 -39
  37. package/lib/model/learning-entity/learning-entity.d.ts +0 -72
  38. package/lib/model/learning-entity/puzzle-learning-entity.d.ts +0 -12
  39. package/lib/model/learning-entity/puzzle-learning-entity.type.d.ts +0 -77
  40. package/lib/model/learning-entity/riddle-learning-entity.d.ts +0 -12
  41. package/lib/model/learning-entity/riddle-learning-entity.type.d.ts +0 -45
  42. package/lib/model/learning-entity/vocabulary-learning-entity.d.ts +0 -19
  43. package/lib/model/learning-entity/vocabulary-learning-entity.type.d.ts +0 -42
  44. package/lib/model/learning-entity/yes-no-learning-entity.d.ts +0 -12
  45. package/lib/model/learning-entity/yes-no-learning-entity.type.d.ts +0 -30
  46. package/lib/puzzle/puzzle-base.component.d.ts +0 -22
  47. package/lib/puzzle/puzzle-drop-target.component.d.ts +0 -30
  48. package/lib/puzzle/puzzle-fact/puzzle-fact.component.d.ts +0 -35
  49. package/lib/puzzle/puzzle-option/puzzle-option-dialog/puzzle-option-dialog.component.d.ts +0 -26
  50. package/lib/puzzle/puzzle-option/puzzle-option.component.d.ts +0 -27
  51. package/lib/puzzle/puzzle-option-dialog-base.component.d.ts +0 -16
  52. package/lib/puzzle/puzzle-target/puzzle-target.component.d.ts +0 -31
  53. package/lib/puzzle/puzzle.component.d.ts +0 -45
  54. package/lib/riddle/convertors/riddle-input-convertor.d.ts +0 -4
  55. package/lib/riddle/riddle.component.d.ts +0 -29
  56. package/lib/vocabulary/vocabulary-card-base.component.d.ts +0 -22
  57. package/lib/vocabulary/vocabulary-card-flip/vocabulary-card-flip.component.d.ts +0 -10
  58. package/lib/vocabulary/vocabulary-card-standard/vocabulary-card-standard.component.d.ts +0 -6
  59. package/lib/vocabulary/vocabulary.component.d.ts +0 -25
  60. package/lib/yesno/yes-no.component.d.ts +0 -17
  61. package/public-api.d.ts +0 -19
@@ -0,0 +1,1000 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter, AfterViewChecked, OnDestroy } from '@angular/core';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { Observable } from 'rxjs';
5
+ import * as i28 from 'ngx-edyta-chords';
6
+ import { ChordKey } from 'ngx-edyta-chords';
7
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
8
+ import * as i25 from '@angular/router';
9
+ import { Router } from '@angular/router';
10
+ import * as i24 from '@angular/common';
11
+ import * as i26 from '@angular/forms';
12
+ import * as i27 from 'ngx-edyta-fe-elements';
13
+
14
+ declare class CanvasComponent {
15
+ static _dependencies: {
16
+ EventEmitter: {
17
+ new (isAsync?: boolean): EventEmitter<any>;
18
+ new <T>(isAsync?: boolean): EventEmitter<T>;
19
+ readonly prototype: EventEmitter<any>;
20
+ };
21
+ };
22
+ private _title;
23
+ private _picture;
24
+ private _contentChange;
25
+ private _evaluate;
26
+ checkButtonText: string;
27
+ previousButtonText: string;
28
+ nextButtonText: string;
29
+ showBottomPane: boolean;
30
+ constructor();
31
+ get contentChange(): EventEmitter<unknown>;
32
+ set contentChange(value: EventEmitter<unknown>);
33
+ get evaluate(): EventEmitter<void>;
34
+ set evaluate(value: EventEmitter<void>);
35
+ get title(): string;
36
+ set title(value: string);
37
+ get picture(): string | null;
38
+ set picture(value: string | null);
39
+ onEvaluate(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<CanvasComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<CanvasComponent, "edyta-canvas", never, { "checkButtonText": { "alias": "checkButtonText"; "required": true; }; "previousButtonText": { "alias": "previousButtonText"; "required": true; }; "nextButtonText": { "alias": "nextButtonText"; "required": true; }; "showBottomPane": { "alias": "showBottomPane"; "required": false; }; "title": { "alias": "title"; "required": false; }; "picture": { "alias": "picture"; "required": false; }; }, { "contentChange": "contentChange"; "evaluate": "evaluate"; }, never, ["[breadcrumb]", "[control-panel]", "*"], false, never>;
42
+ }
43
+
44
+ interface LanguageService {
45
+ getDefault(): string;
46
+ get(): string;
47
+ set(language: string): void;
48
+ remove(): void;
49
+ supportedLanguages(): string[];
50
+ }
51
+ interface NotificationService {
52
+ info(message: string): void;
53
+ success(message: string): void;
54
+ warning(message: string): void;
55
+ error(message: string): void;
56
+ }
57
+ interface CentralService {
58
+ getLanguageService(): LanguageService;
59
+ getNotificationService(): NotificationService;
60
+ getTranslateService(): TranslateService;
61
+ }
62
+
63
+ interface InteractiveLearningEntity extends LearningEntity {
64
+ get progress(): unknown;
65
+ set progress(progress: unknown);
66
+ updateProgress(): Observable<unknown>;
67
+ deleteProgress(): Observable<void>;
68
+ }
69
+ declare abstract class InteractiveLearningEntityBase extends LearningEntityBase implements InteractiveLearningEntity {
70
+ abstract get progress(): unknown;
71
+ abstract set progress(progress: unknown);
72
+ updateProgress(): Observable<unknown>;
73
+ deleteProgress(): Observable<void>;
74
+ }
75
+
76
+ interface LearningEntityProgressService {
77
+ update(entity: InteractiveLearningEntity): Observable<unknown>;
78
+ delete(entity: InteractiveLearningEntity): Observable<void>;
79
+ }
80
+
81
+ type Entity = {
82
+ id: number;
83
+ title: string;
84
+ type: {
85
+ id: number;
86
+ key: string;
87
+ title: string;
88
+ description?: string | null;
89
+ };
90
+ version?: {
91
+ id: number;
92
+ isActive: boolean;
93
+ };
94
+ organization?: {
95
+ id: number;
96
+ key: string;
97
+ };
98
+ level: {
99
+ id: number;
100
+ };
101
+ picture: string | null;
102
+ content?: unknown;
103
+ result?: unknown | null;
104
+ progress?: unknown | null;
105
+ };
106
+ type Evaluation = {
107
+ correct: boolean;
108
+ };
109
+ interface LearningEntityService {
110
+ get(organizationKey: string, levelId: number, id: number): Observable<LearningEntity>;
111
+ getAll(organizationKey: string, levelId: number): Observable<LearningEntity[]>;
112
+ evaluate(entity: InteractiveLearningEntity): Observable<Evaluation>;
113
+ getProgressService(): LearningEntityProgressService;
114
+ setProgressService(service: LearningEntityProgressService): void;
115
+ }
116
+
117
+ type LearningEntityAssignment = {
118
+ readonly organizationKey: string;
119
+ readonly levelId: number;
120
+ };
121
+ type LearningEntityCommon = {
122
+ id: number;
123
+ title: string;
124
+ type: {
125
+ id: number;
126
+ key: string;
127
+ };
128
+ organization: {
129
+ key: string;
130
+ };
131
+ level: {
132
+ id: number;
133
+ };
134
+ picture: string | null;
135
+ previous: NextPreviousResult | null;
136
+ next: NextPreviousResult | null;
137
+ };
138
+ type NextPreviousResult = {
139
+ level: {
140
+ id: number;
141
+ title: string;
142
+ isRoot: boolean;
143
+ };
144
+ entity: {
145
+ id: number;
146
+ title: string;
147
+ } | null;
148
+ };
149
+ interface LearningEntity {
150
+ get id(): number;
151
+ get title(): string;
152
+ get type(): string;
153
+ get levelId(): number;
154
+ get organizationKey(): string;
155
+ get assignment(): LearningEntityAssignment;
156
+ get picture(): string | null;
157
+ get icon(): string;
158
+ get previous(): NextPreviousResult | null;
159
+ get next(): NextPreviousResult | null;
160
+ getCentralService(): CentralService;
161
+ setCentralService(service: CentralService): void;
162
+ getLearningEntityService(): LearningEntityService;
163
+ setLearningEntityService(service: LearningEntityService): void;
164
+ get content(): unknown;
165
+ isCheckable(): boolean;
166
+ }
167
+ declare abstract class LearningEntityBase implements LearningEntity {
168
+ private _id;
169
+ private _title;
170
+ private _type;
171
+ private _levelId;
172
+ private _organizationKey;
173
+ private _picture;
174
+ private _assignment;
175
+ private _previous;
176
+ private _next;
177
+ private _centralService;
178
+ private _learningEntityService;
179
+ constructor(entity: LearningEntityCommon, centralService: CentralService, learningEntityService: LearningEntityService);
180
+ get id(): number;
181
+ get title(): string;
182
+ get type(): string;
183
+ get levelId(): number;
184
+ get organizationKey(): string;
185
+ get assignment(): LearningEntityAssignment;
186
+ get picture(): string | null;
187
+ get previous(): NextPreviousResult | null;
188
+ get next(): NextPreviousResult | null;
189
+ getCentralService(): CentralService;
190
+ setCentralService(service: CentralService): void;
191
+ getLearningEntityService(): LearningEntityService;
192
+ setLearningEntityService(service: LearningEntityService): void;
193
+ abstract isCheckable(): boolean;
194
+ abstract get content(): unknown;
195
+ abstract get icon(): string;
196
+ protected abstract _init(entity: LearningEntityCommon): void;
197
+ }
198
+
199
+ declare class EntityBottomPaneComponent {
200
+ private _entity;
201
+ private _evaluate;
202
+ checkButtonText: string;
203
+ previousButtonText: string;
204
+ nextButtonText: string;
205
+ constructor();
206
+ get entity(): LearningEntity;
207
+ set entity(entity: LearningEntity);
208
+ get evaluate(): EventEmitter<void>;
209
+ set evaluate(value: EventEmitter<void>);
210
+ onEvaluate(): void;
211
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntityBottomPaneComponent, never>;
212
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntityBottomPaneComponent, "edyta-entity-bottom-pane", never, { "checkButtonText": { "alias": "checkButtonText"; "required": true; }; "previousButtonText": { "alias": "previousButtonText"; "required": true; }; "nextButtonText": { "alias": "nextButtonText"; "required": true; }; "entity": { "alias": "entity"; "required": true; }; }, { "evaluate": "evaluate"; }, never, never, false, never>;
213
+ }
214
+
215
+ type StateItem = {
216
+ factId: string;
217
+ optionId: string;
218
+ };
219
+ declare namespace Puzzle {
220
+ type Color = {
221
+ requested: {
222
+ background: boolean;
223
+ text: boolean;
224
+ };
225
+ background: string;
226
+ text: string;
227
+ };
228
+ type Item = {
229
+ text: string;
230
+ id: string;
231
+ color: Color;
232
+ };
233
+ type FactItem = Item & {
234
+ assignedOptions: Item[];
235
+ };
236
+ type Set = {
237
+ description?: string;
238
+ facts: FactItem[];
239
+ options: Item[];
240
+ };
241
+ type State = StateItem;
242
+ type ValidationRule = State & {
243
+ mandatory: boolean;
244
+ };
245
+ }
246
+ declare namespace Original {
247
+ namespace Puzzle {
248
+ export type Color = {
249
+ requested: {
250
+ background: boolean;
251
+ text: boolean;
252
+ };
253
+ background: string;
254
+ text: string;
255
+ };
256
+ type Item = {
257
+ id: string;
258
+ text: string;
259
+ color?: Color;
260
+ };
261
+ type ResultItem = {
262
+ front: string;
263
+ back: string;
264
+ };
265
+ export type Result = {
266
+ correct: ResultItem[];
267
+ optional: ResultItem[];
268
+ } | null;
269
+ export type Content = {
270
+ type: string;
271
+ title: string;
272
+ description?: string;
273
+ lang: string;
274
+ shuffle?: boolean;
275
+ shuffleAll?: boolean;
276
+ input: {
277
+ front: Item[];
278
+ back: Item[];
279
+ };
280
+ };
281
+ export type ProgressItem = StateItem;
282
+ export type Progress = ProgressItem[] | null | undefined;
283
+ export type Set = LearningEntityCommon & {
284
+ content: Content;
285
+ progress: Progress;
286
+ };
287
+ export {};
288
+ }
289
+ }
290
+
291
+ declare abstract class PuzzleOptionDialogBaseComponent {
292
+ private _factSelected;
293
+ private _back2OptionsSection;
294
+ constructor();
295
+ get factSelected(): EventEmitter<Puzzle.State>;
296
+ set factSelected(value: EventEmitter<Puzzle.State>);
297
+ get back2OptionsSection(): EventEmitter<string>;
298
+ set back2OptionsSection(value: EventEmitter<string>);
299
+ onFactSelected(stateItem: Puzzle.State): void;
300
+ onBack2OptionsSection(optionId: string): void;
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionDialogBaseComponent, never>;
302
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleOptionDialogBaseComponent, "ng-component", never, {}, { "factSelected": "factSelected"; "back2OptionsSection": "back2OptionsSection"; }, never, never, false, never>;
303
+ }
304
+
305
+ declare abstract class PuzzleDropTargetComponent extends PuzzleOptionDialogBaseComponent {
306
+ static _dependencies: {
307
+ EventEmitter: {
308
+ new (isAsync?: boolean): EventEmitter<any>;
309
+ new <T>(isAsync?: boolean): EventEmitter<T>;
310
+ readonly prototype: EventEmitter<any>;
311
+ };
312
+ };
313
+ private _dragTargetActive;
314
+ private _dropped;
315
+ constructor();
316
+ get dragTargetActive(): boolean;
317
+ set dragTargetActive(value: boolean);
318
+ get dropped(): EventEmitter<string>;
319
+ onDrop(event: DragEvent): void;
320
+ onDragEnter(event: DragEvent): void;
321
+ onDragOver(event: DragEvent): void;
322
+ onDragLeave(event: DragEvent): void;
323
+ protected _emitDrop(id: string): void;
324
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleDropTargetComponent, never>;
325
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleDropTargetComponent, "ng-component", never, { "dragTargetActive": { "alias": "dragTargetActive"; "required": false; }; }, { "dropped": "dropped"; }, never, never, false, never>;
326
+ }
327
+
328
+ declare class PuzzleLearningEntity extends InteractiveLearningEntityBase {
329
+ private _content;
330
+ private _progress;
331
+ get icon(): string;
332
+ isCheckable(): boolean;
333
+ get progress(): Original.Puzzle.Progress;
334
+ set progress(progress: Original.Puzzle.Progress);
335
+ get content(): Puzzle.Set;
336
+ protected _init(entity: Original.Puzzle.Set): void;
337
+ }
338
+
339
+ declare abstract class PuzzleBaseComponent extends PuzzleOptionDialogBaseComponent {
340
+ private _entity;
341
+ private _text;
342
+ private _id;
343
+ private _color;
344
+ get entity(): PuzzleLearningEntity;
345
+ set entity(entity: PuzzleLearningEntity);
346
+ get text(): string;
347
+ set text(value: string);
348
+ get id(): string;
349
+ set id(value: string);
350
+ get color(): Puzzle.Color;
351
+ set color(value: Puzzle.Color);
352
+ getTextColor(color: Puzzle.Color): string | undefined;
353
+ getBackgroundColor(color: Puzzle.Color): string | undefined;
354
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleBaseComponent, never>;
355
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleBaseComponent, "ng-component", never, { "entity": { "alias": "entity"; "required": true; }; "text": { "alias": "text"; "required": true; }; "id": { "alias": "id"; "required": true; }; "color": { "alias": "color"; "required": true; }; }, {}, never, never, false, never>;
356
+ }
357
+
358
+ type PuzzleDrop = {
359
+ factId: string | undefined;
360
+ optionId: string;
361
+ };
362
+ declare class PuzzleFactComponent extends PuzzleBaseComponent {
363
+ static _dependencies: {
364
+ EventEmitter: {
365
+ new (isAsync?: boolean): EventEmitter<any>;
366
+ new <T>(isAsync?: boolean): EventEmitter<T>;
367
+ readonly prototype: EventEmitter<any>;
368
+ };
369
+ };
370
+ private _dropTargetActive;
371
+ private _assignedOptions;
372
+ private _dropped;
373
+ private _dragged;
374
+ assignButtonText: string;
375
+ back2OptionSelectionButtonText: string;
376
+ constructor();
377
+ get dropTargetActive(): boolean;
378
+ set dropTargetActive(value: boolean);
379
+ get assignedOptions(): Puzzle.Item[];
380
+ set assignedOptions(value: Puzzle.Item[]);
381
+ get dropped(): EventEmitter<PuzzleDrop>;
382
+ get dragged(): EventEmitter<boolean>;
383
+ set dragged(value: EventEmitter<boolean>);
384
+ onDropped(id: string): void;
385
+ onDragged(isDragged: boolean): void;
386
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleFactComponent, never>;
387
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleFactComponent, "edyta-puzzle-fact", never, { "assignButtonText": { "alias": "assignButtonText"; "required": true; }; "back2OptionSelectionButtonText": { "alias": "back2OptionSelectionButtonText"; "required": true; }; "dropTargetActive": { "alias": "dropTargetActive"; "required": false; }; "assignedOptions": { "alias": "assignedOptions"; "required": false; }; }, { "dropped": "dropped"; "dragged": "dragged"; }, never, never, false, never>;
388
+ }
389
+
390
+ declare class PuzzleComponent extends PuzzleDropTargetComponent {
391
+ private _entity;
392
+ private _puzzles;
393
+ private _puzzlesOriginal;
394
+ private _state;
395
+ private _dropTargetActive;
396
+ private _contentChange;
397
+ private _evaluate;
398
+ assignButtonText: string;
399
+ back2OptionSelectionButtonText: string;
400
+ checkButtonText: string;
401
+ previousButtonText: string;
402
+ nextButtonText: string;
403
+ showBottomPane: boolean;
404
+ constructor();
405
+ get entity(): PuzzleLearningEntity;
406
+ set entity(entity: PuzzleLearningEntity);
407
+ get puzzles(): Puzzle.Set;
408
+ set puzzles(puzzles: Puzzle.Set);
409
+ get dropTargetActive(): boolean;
410
+ set dropTargetActive(value: boolean);
411
+ get contentChange(): EventEmitter<unknown>;
412
+ set contentChange(value: EventEmitter<unknown>);
413
+ get evaluate(): EventEmitter<void>;
414
+ set evaluate(value: EventEmitter<void>);
415
+ onDropped(puzzleDrop: PuzzleDrop): void;
416
+ onDragged(isDragged: boolean): void;
417
+ onFactSelected(stateItem: Puzzle.State): void;
418
+ onBack2OptionsSection(optionId: string): void;
419
+ onEvaluate(): void;
420
+ private _process;
421
+ private _applyProgress;
422
+ protected _emitDrop(id: string): void;
423
+ private _buildProgressSnapshot;
424
+ private _stateChanged;
425
+ private _recalculateState;
426
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleComponent, never>;
427
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleComponent, "edyta-puzzle", never, { "assignButtonText": { "alias": "assignButtonText"; "required": true; }; "back2OptionSelectionButtonText": { "alias": "back2OptionSelectionButtonText"; "required": true; }; "checkButtonText": { "alias": "checkButtonText"; "required": true; }; "previousButtonText": { "alias": "previousButtonText"; "required": true; }; "nextButtonText": { "alias": "nextButtonText"; "required": true; }; "showBottomPane": { "alias": "showBottomPane"; "required": false; }; "entity": { "alias": "entity"; "required": true; }; }, { "contentChange": "contentChange"; "evaluate": "evaluate"; }, never, never, false, never>;
428
+ }
429
+
430
+ declare class PuzzleTargetComponent extends PuzzleDropTargetComponent {
431
+ private _entity;
432
+ private _text;
433
+ private _id;
434
+ private _dropTargetActive;
435
+ private _assignedOptions;
436
+ private _dragged;
437
+ assignButtonText: string;
438
+ back2OptionSelectionButtonText: string;
439
+ constructor();
440
+ get entity(): PuzzleLearningEntity;
441
+ set entity(entity: PuzzleLearningEntity);
442
+ get text(): string;
443
+ set text(value: string);
444
+ get id(): string;
445
+ set id(value: string);
446
+ get dropTargetActive(): boolean;
447
+ set dropTargetActive(value: boolean);
448
+ get assignedOptions(): Puzzle.Item[];
449
+ set assignedOptions(value: Puzzle.Item[]);
450
+ get dragged(): EventEmitter<boolean>;
451
+ set dragged(value: EventEmitter<boolean>);
452
+ onDragged(isDragged: boolean): void;
453
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleTargetComponent, never>;
454
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleTargetComponent, "edyta-puzzle-target", never, { "assignButtonText": { "alias": "assignButtonText"; "required": true; }; "back2OptionSelectionButtonText": { "alias": "back2OptionSelectionButtonText"; "required": true; }; "entity": { "alias": "entity"; "required": true; }; "text": { "alias": "text"; "required": false; }; "id": { "alias": "id"; "required": false; }; "dropTargetActive": { "alias": "dropTargetActive"; "required": false; }; "assignedOptions": { "alias": "assignedOptions"; "required": false; }; }, { "dragged": "dragged"; }, never, never, false, never>;
455
+ }
456
+
457
+ declare class PuzzleOptionComponent extends PuzzleBaseComponent {
458
+ static _dependencies: {
459
+ EventEmitter: {
460
+ new (isAsync?: boolean): EventEmitter<any>;
461
+ new <T>(isAsync?: boolean): EventEmitter<T>;
462
+ readonly prototype: EventEmitter<any>;
463
+ };
464
+ };
465
+ assignButtonText: string;
466
+ back2OptionSelectionButtonText: string;
467
+ private _back2OptionsSectionMode;
468
+ private _dragIsActive;
469
+ private _dragged;
470
+ constructor();
471
+ get back2OptionsSectionMode(): boolean;
472
+ set back2OptionsSectionMode(value: boolean);
473
+ get dragIsActive(): boolean;
474
+ set dragIsActive(value: boolean);
475
+ get dragged(): EventEmitter<boolean>;
476
+ onDragStart(event: DragEvent): void;
477
+ onDragEnd(): void;
478
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionComponent, never>;
479
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleOptionComponent, "edyta-puzzle-option", never, { "assignButtonText": { "alias": "assignButtonText"; "required": true; }; "back2OptionSelectionButtonText": { "alias": "back2OptionSelectionButtonText"; "required": true; }; "back2OptionsSectionMode": { "alias": "back2OptionsSectionMode"; "required": false; }; }, { "dragged": "dragged"; }, never, never, false, never>;
480
+ }
481
+
482
+ declare class PuzzleOptionDialogComponent extends PuzzleOptionDialogBaseComponent {
483
+ private _entity;
484
+ private _text;
485
+ private _id;
486
+ private _selectedFactId;
487
+ private _back2OptionsSectionMode;
488
+ assignButtonText: string;
489
+ back2OptionSelectionButtonText: string;
490
+ get entity(): PuzzleLearningEntity;
491
+ set entity(entity: PuzzleLearningEntity);
492
+ get text(): string;
493
+ set text(value: string);
494
+ get id(): string;
495
+ set id(value: string);
496
+ get back2OptionsSectionMode(): boolean;
497
+ set back2OptionsSectionMode(value: boolean);
498
+ get selectedFactId(): string;
499
+ set selectedFactId(value: string);
500
+ onFactSelected(): void;
501
+ onBack2OptionsSection(): void;
502
+ static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionDialogComponent, never>;
503
+ static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleOptionDialogComponent, "[edyta-puzzle-option-dialog]", never, { "assignButtonText": { "alias": "assignButtonText"; "required": true; }; "back2OptionSelectionButtonText": { "alias": "back2OptionSelectionButtonText"; "required": true; }; "entity": { "alias": "entity"; "required": true; }; "text": { "alias": "text"; "required": true; }; "id": { "alias": "id"; "required": true; }; "back2OptionsSectionMode": { "alias": "back2OptionsSectionMode"; "required": false; }; }, {}, never, never, false, never>;
504
+ }
505
+
506
+ declare namespace Grammar {
507
+ enum PicturePosition {
508
+ Left = "left",
509
+ Right = "right"
510
+ }
511
+ type Media = {
512
+ url: string;
513
+ mimeType: string;
514
+ };
515
+ type Item = {
516
+ key: string;
517
+ color?: {
518
+ background?: string;
519
+ text?: string;
520
+ };
521
+ picture?: {
522
+ url: string;
523
+ position?: PicturePosition;
524
+ };
525
+ media?: Media;
526
+ innerHTML: string;
527
+ };
528
+ type Items = Item[];
529
+ type Content = {
530
+ lang: string;
531
+ input: Item[];
532
+ };
533
+ type Set = LearningEntityCommon & {
534
+ content: Content;
535
+ };
536
+ }
537
+
538
+ declare class GrammarLearningEntity extends LearningEntityBase {
539
+ private _grammars;
540
+ get icon(): string;
541
+ isCheckable(): boolean;
542
+ get content(): Grammar.Items;
543
+ protected _init(entity: Grammar.Set): void;
544
+ }
545
+
546
+ declare class GrammarComponent extends CanvasComponent {
547
+ private _entity;
548
+ get entity(): GrammarLearningEntity;
549
+ set entity(entity: GrammarLearningEntity);
550
+ static ɵfac: i0.ɵɵFactoryDeclaration<GrammarComponent, never>;
551
+ static ɵcmp: i0.ɵɵComponentDeclaration<GrammarComponent, "edyta-grammar", never, { "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
552
+ }
553
+
554
+ declare namespace Vocabulary {
555
+ export enum FrontCardTitleVisibilityMode {
556
+ Visible = "visible",
557
+ Blurred = "blurred",
558
+ Invisible = "invisible"
559
+ }
560
+ type Meaning = {
561
+ lang: string;
562
+ text: string;
563
+ };
564
+ type Description = {
565
+ lang: string;
566
+ text: string;
567
+ };
568
+ export type Item = {
569
+ key: string;
570
+ meaning: Meaning[];
571
+ flip?: boolean;
572
+ description: Description[];
573
+ picture?: string;
574
+ };
575
+ export type Content = {
576
+ lang: string;
577
+ shuffle?: boolean;
578
+ shuffleButtonVisible?: boolean;
579
+ frontCardTitleVisibilityMode?: FrontCardTitleVisibilityMode;
580
+ input: Item[];
581
+ };
582
+ export type Set = LearningEntityCommon & {
583
+ content: Content;
584
+ };
585
+ export type TransformedItem = {
586
+ key: string;
587
+ meaning?: string;
588
+ flip?: boolean;
589
+ description?: string;
590
+ picture?: string;
591
+ };
592
+ export type TransformedItems = TransformedItem[];
593
+ export {};
594
+ }
595
+
596
+ declare class VocabularyLearningEntity extends LearningEntityBase {
597
+ private _vocabularies;
598
+ private _shuffleActivated;
599
+ private _shuffleButtonEnabled;
600
+ private _frontCardTitleVisibilityMode;
601
+ get icon(): string;
602
+ isCheckable(): boolean;
603
+ get shuffleActivated(): boolean;
604
+ set shuffleActivated(activated: boolean);
605
+ get shuffleButtonEnabled(): boolean;
606
+ set shuffleButtonEnabled(enabled: boolean);
607
+ get frontCardTitleVisibilityMode(): Vocabulary.FrontCardTitleVisibilityMode;
608
+ set frontCardTitleVisibilityMode(mode: Vocabulary.FrontCardTitleVisibilityMode);
609
+ get content(): Vocabulary.TransformedItems;
610
+ onShuffle(): void;
611
+ protected _init(entity: Vocabulary.Set): void;
612
+ }
613
+
614
+ declare class VocabularyComponent extends CanvasComponent implements AfterViewChecked, OnDestroy {
615
+ private _entity;
616
+ private _resizeEventListenerRegistered;
617
+ private _titleIsVisible;
618
+ visibilityButtonShowTitleText: string;
619
+ visibilityButtonHideTitleText: string;
620
+ shuffleButtonText: string;
621
+ get entity(): VocabularyLearningEntity;
622
+ set entity(entity: VocabularyLearningEntity);
623
+ get titleIsVisible(): boolean;
624
+ ngAfterViewChecked(): void;
625
+ ngOnDestroy(): void;
626
+ buttonPaneIsVisible(): boolean;
627
+ onToggleTitleVisibility(): void;
628
+ titleIsVisibleByDefault(): boolean;
629
+ getTitleVisibilityButtonText(): string;
630
+ private fitTextToCardTitle;
631
+ private fitTextToContainer;
632
+ static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyComponent, never>;
633
+ static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyComponent, "edyta-vocabulary", never, { "visibilityButtonShowTitleText": { "alias": "visibilityButtonShowTitleText"; "required": true; }; "visibilityButtonHideTitleText": { "alias": "visibilityButtonHideTitleText"; "required": true; }; "shuffleButtonText": { "alias": "shuffleButtonText"; "required": true; }; "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
634
+ }
635
+
636
+ declare namespace Form {
637
+ type Option = {
638
+ id: string;
639
+ text: string;
640
+ };
641
+ type Media = {
642
+ url: string;
643
+ mimeType: string;
644
+ };
645
+ type Picture = {
646
+ url: string;
647
+ alwaysVisible?: boolean;
648
+ };
649
+ type GenericInput = {
650
+ key: string;
651
+ type: string;
652
+ text: string;
653
+ description?: string;
654
+ divider?: boolean;
655
+ media?: Media;
656
+ picture?: Picture | string;
657
+ color?: {
658
+ background?: string;
659
+ text?: string;
660
+ };
661
+ options?: Option[];
662
+ mandatory?: boolean;
663
+ };
664
+ type Text = GenericInput;
665
+ type Input = Text & {
666
+ state: string;
667
+ };
668
+ type Date = Input;
669
+ type Select = Input & {
670
+ options: Option[];
671
+ };
672
+ type Radio = Select;
673
+ type CheckboxOption = Option & {
674
+ checked: boolean;
675
+ };
676
+ type Checkbox = GenericInput & {
677
+ options: CheckboxOption[];
678
+ };
679
+ type UkuleleChord = Text & {
680
+ ukuleleChords: ChordKey[];
681
+ };
682
+ type CheckboxProgressStateItem = {
683
+ id: string;
684
+ checked: boolean;
685
+ };
686
+ type CheckboxProgressStateItems = CheckboxProgressStateItem[];
687
+ type ProgressItem = {
688
+ key: string;
689
+ state: string | CheckboxProgressStateItems;
690
+ };
691
+ type Progress = ProgressItem[] | null | undefined;
692
+ type Item = (Text | Date | Checkbox | Radio | Select | Input);
693
+ type Items = Item[];
694
+ type Content = {
695
+ type: string;
696
+ title: string;
697
+ lang: string;
698
+ input: Items;
699
+ };
700
+ type Set = LearningEntityCommon & {
701
+ content: Content;
702
+ progress: Progress;
703
+ };
704
+ type ResultItem = {
705
+ key: string;
706
+ correct: string[] | string;
707
+ optional?: string[] | string;
708
+ };
709
+ type Result = ResultItem[];
710
+ }
711
+
712
+ declare class FormLearningEntity extends InteractiveLearningEntityBase {
713
+ private _content;
714
+ private _progress;
715
+ get icon(): string;
716
+ isCheckable(): boolean;
717
+ get progress(): Form.Progress;
718
+ set progress(progress: Form.Progress);
719
+ get content(): Form.Items;
720
+ protected _init(entity: Form.Set): void;
721
+ }
722
+
723
+ declare class FormComponent extends CanvasComponent {
724
+ private _entity;
725
+ private _formItems;
726
+ constructor();
727
+ get entity(): FormLearningEntity;
728
+ set entity(entity: FormLearningEntity);
729
+ get formItems(): Form.Items;
730
+ set formItems(form: Form.Items);
731
+ onChange(): void;
732
+ private _process;
733
+ private _prepareState;
734
+ private _buildProgressSnapshot;
735
+ private _applyProgress2State;
736
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
737
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "edyta-form", never, { "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
738
+ }
739
+
740
+ declare class FormTypeTextComponent {
741
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeTextComponent, never>;
742
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeTextComponent, "edyta-form-type-text", never, {}, {}, never, never, false, never>;
743
+ }
744
+
745
+ declare class FormTypeInputComponent extends CanvasComponent {
746
+ private _content;
747
+ get content(): Form.Input;
748
+ set content(value: Form.Input);
749
+ onChange(): void;
750
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeInputComponent, never>;
751
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeInputComponent, "edyta-form-type-input", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
752
+ }
753
+
754
+ declare class FormTypeSelectComponent extends CanvasComponent {
755
+ private _content;
756
+ get content(): Form.Select;
757
+ set content(value: Form.Select);
758
+ onChange(): void;
759
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeSelectComponent, never>;
760
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeSelectComponent, "edyta-form-type-select", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
761
+ }
762
+
763
+ declare class FormTypeRadioComponent extends CanvasComponent {
764
+ private _content;
765
+ get content(): Form.Radio;
766
+ set content(value: Form.Radio);
767
+ onChange(): void;
768
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeRadioComponent, never>;
769
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeRadioComponent, "edyta-form-type-radio", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
770
+ }
771
+
772
+ declare class FormTypeCheckboxComponent extends CanvasComponent {
773
+ private _content;
774
+ get content(): Form.Checkbox;
775
+ set content(value: Form.Checkbox);
776
+ onChange(): void;
777
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeCheckboxComponent, never>;
778
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeCheckboxComponent, "edyta-form-type-checkbox", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
779
+ }
780
+
781
+ declare class FormTypeDateComponent extends CanvasComponent {
782
+ private _content;
783
+ get content(): Form.Date;
784
+ set content(value: Form.Date);
785
+ onChange(): void;
786
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeDateComponent, never>;
787
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeDateComponent, "edyta-form-type-date", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
788
+ }
789
+
790
+ declare class FormTypeUkuleleChordsComponent extends CanvasComponent {
791
+ content: Form.UkuleleChord;
792
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeUkuleleChordsComponent, never>;
793
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeUkuleleChordsComponent, "edyta-form-type-ukulele-chords", never, { "content": { "alias": "content"; "required": true; }; }, {}, never, never, false, never>;
794
+ }
795
+
796
+ declare class FormTypeItemComponent extends CanvasComponent {
797
+ private _content;
798
+ get content(): Form.Input | Form.Text | Form.Checkbox | Form.Date | Form.Radio | Form.Select;
799
+ set content(value: Form.Input | Form.Text | Form.Checkbox | Form.Date | Form.Radio | Form.Select);
800
+ showDecriptionSection(): boolean;
801
+ showMedia(): boolean;
802
+ showPicture(): boolean;
803
+ isPictureAlwaysVisible(): boolean;
804
+ onChange(): void;
805
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormTypeItemComponent, never>;
806
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormTypeItemComponent, "edyta-form-type-item", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
807
+ }
808
+
809
+ declare abstract class VocabularyCardBaseComponent {
810
+ private _vocabulary;
811
+ private _frontCardTitleVisibilityMode;
812
+ private _titleIsVisible;
813
+ get vocabulary(): Vocabulary.TransformedItem;
814
+ set vocabulary(value: Vocabulary.TransformedItem);
815
+ get frontCardTitleVisibilityMode(): Vocabulary.FrontCardTitleVisibilityMode;
816
+ set frontCardTitleVisibilityMode(mode: Vocabulary.FrontCardTitleVisibilityMode);
817
+ get titleIsVisible(): boolean;
818
+ set titleIsVisible(visible: boolean);
819
+ calculateHtmlClasses4Title(): {
820
+ 'card__face-front-blur'?: undefined;
821
+ 'card__face-front-invisible'?: undefined;
822
+ } | {
823
+ 'card__face-front-blur': boolean;
824
+ 'card__face-front-invisible': boolean;
825
+ };
826
+ static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardBaseComponent, never>;
827
+ static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyCardBaseComponent, "ng-component", never, { "vocabulary": { "alias": "vocabulary"; "required": true; }; "frontCardTitleVisibilityMode": { "alias": "frontCardTitleVisibilityMode"; "required": true; }; "titleIsVisible": { "alias": "titleIsVisible"; "required": false; }; }, {}, never, never, false, never>;
828
+ }
829
+
830
+ declare class VocabularyCardFlipComponent extends VocabularyCardBaseComponent {
831
+ private _flipped;
832
+ get flipped(): boolean;
833
+ set flipped(value: boolean);
834
+ onToggleFlip(): void;
835
+ static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardFlipComponent, never>;
836
+ static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyCardFlipComponent, "edyta-vocabulary-card-flip", never, {}, {}, never, never, false, never>;
837
+ }
838
+
839
+ declare class VocabularyCardStandardComponent extends VocabularyCardBaseComponent {
840
+ static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardStandardComponent, never>;
841
+ static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyCardStandardComponent, "edyta-vocabulary-card-standard", never, {}, {}, never, never, false, never>;
842
+ }
843
+
844
+ declare class GrammarItemComponent {
845
+ content: Grammar.Item;
846
+ showMedia(): boolean;
847
+ showPictureOnLeft(): boolean;
848
+ showPictureOnRight(): boolean;
849
+ static ɵfac: i0.ɵɵFactoryDeclaration<GrammarItemComponent, never>;
850
+ static ɵcmp: i0.ɵɵComponentDeclaration<GrammarItemComponent, "edyta-grammar-item", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
851
+ }
852
+
853
+ declare namespace Riddle {
854
+ type Media = {
855
+ url: string;
856
+ mimeType: string;
857
+ };
858
+ type Option = {
859
+ id: string;
860
+ text: string;
861
+ };
862
+ type GenericInput = {
863
+ key: string;
864
+ type: string;
865
+ options?: Option[];
866
+ };
867
+ type Input = GenericInput & {
868
+ state: string;
869
+ };
870
+ type Select = Input & {
871
+ options: Option[];
872
+ };
873
+ type ResultItem = {
874
+ key: string;
875
+ correct: string[] | string;
876
+ };
877
+ type Result = ResultItem[];
878
+ type ProgressItem = {
879
+ key: string;
880
+ state: string;
881
+ };
882
+ type Progress = ProgressItem[] | null | undefined;
883
+ type Items = (Input | Select)[];
884
+ type Content = {
885
+ type: string;
886
+ title: string;
887
+ innerHTML: string;
888
+ media: Media;
889
+ lang: string;
890
+ input: Items;
891
+ };
892
+ type Set = LearningEntityCommon & {
893
+ content: Content;
894
+ progress: Progress;
895
+ };
896
+ }
897
+
898
+ declare class RiddleLearningEntity extends InteractiveLearningEntityBase {
899
+ private _content;
900
+ private _progress;
901
+ get icon(): string;
902
+ isCheckable(): boolean;
903
+ get progress(): Riddle.Progress;
904
+ set progress(progress: Riddle.Progress);
905
+ get content(): Riddle.Content;
906
+ protected _init(entity: Riddle.Set): void;
907
+ }
908
+
909
+ declare class RiddleComponent extends CanvasComponent implements AfterViewChecked {
910
+ private _sanitizer;
911
+ private _router;
912
+ private _html;
913
+ private _entity;
914
+ private _eventListenerAdded;
915
+ errorReceived: EventEmitter<Error>;
916
+ constructor(_sanitizer: DomSanitizer, _router: Router);
917
+ ngAfterViewChecked(): void;
918
+ get entity(): RiddleLearningEntity;
919
+ set entity(entity: RiddleLearningEntity);
920
+ get html(): SafeHtml;
921
+ set html(value: SafeHtml);
922
+ private _process;
923
+ private _prepareState;
924
+ private _applyProgress2State;
925
+ private _deriveRiddleItemByElement;
926
+ private _determineHTMLEvent;
927
+ private _isEventListenerAdded;
928
+ private _buildProgressSnapshot;
929
+ static ɵfac: i0.ɵɵFactoryDeclaration<RiddleComponent, never>;
930
+ static ɵcmp: i0.ɵɵComponentDeclaration<RiddleComponent, "edyta-riddle", never, { "entity": { "alias": "entity"; "required": true; }; }, { "errorReceived": "errorReceived"; }, never, never, false, never>;
931
+ }
932
+
933
+ declare namespace YesNo {
934
+ type Media = {
935
+ url: string;
936
+ mimeType: string;
937
+ };
938
+ type ResultItem = {
939
+ key: string;
940
+ question: string;
941
+ answer: string;
942
+ };
943
+ type ProgressItem = {
944
+ key: string;
945
+ answer: boolean | undefined;
946
+ };
947
+ type Progress = ProgressItem[] | null | undefined;
948
+ type ResultItems = ResultItem[];
949
+ type Content = {
950
+ type: string;
951
+ title: string;
952
+ innerHTML: string;
953
+ media?: Media;
954
+ lang: string;
955
+ input: ResultItems;
956
+ };
957
+ type Set = LearningEntityCommon & {
958
+ content: Content;
959
+ progress: Progress;
960
+ };
961
+ }
962
+
963
+ declare class YesNoLearningEntity extends InteractiveLearningEntityBase {
964
+ private _content;
965
+ private _progress;
966
+ get icon(): string;
967
+ isCheckable(): boolean;
968
+ get progress(): YesNo.Progress;
969
+ set progress(progress: YesNo.Progress);
970
+ get content(): YesNo.Content;
971
+ protected _init(entity: YesNo.Set): void;
972
+ }
973
+
974
+ declare class YesnoComponent extends CanvasComponent {
975
+ private _entity;
976
+ get entity(): YesNoLearningEntity;
977
+ set entity(entity: YesNoLearningEntity);
978
+ onChange(): void;
979
+ showMedia(): boolean;
980
+ private _process;
981
+ private _prepareState;
982
+ private _applyProgress2State;
983
+ private buildProgressSnapshot;
984
+ private calculateAnswer;
985
+ static ɵfac: i0.ɵɵFactoryDeclaration<YesnoComponent, never>;
986
+ static ɵcmp: i0.ɵɵComponentDeclaration<YesnoComponent, "edyta-yes-no", never, { "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
987
+ }
988
+
989
+ declare class CanvasModule {
990
+ static ɵfac: i0.ɵɵFactoryDeclaration<CanvasModule, never>;
991
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CanvasModule, [typeof CanvasComponent, typeof EntityBottomPaneComponent, typeof PuzzleComponent, typeof PuzzleTargetComponent, typeof PuzzleOptionComponent, typeof PuzzleOptionDialogComponent, typeof PuzzleFactComponent, typeof GrammarComponent, typeof VocabularyComponent, typeof FormComponent, typeof FormTypeTextComponent, typeof FormTypeInputComponent, typeof FormTypeSelectComponent, typeof FormTypeRadioComponent, typeof FormTypeCheckboxComponent, typeof FormTypeDateComponent, typeof FormTypeUkuleleChordsComponent, typeof FormTypeItemComponent, typeof VocabularyCardFlipComponent, typeof VocabularyCardStandardComponent, typeof GrammarItemComponent, typeof RiddleComponent, typeof YesnoComponent], [typeof i24.CommonModule, typeof i25.RouterModule, typeof i26.FormsModule, typeof i27.ElementModule, typeof i28.ChordModule], [typeof CanvasComponent, typeof EntityBottomPaneComponent, typeof PuzzleComponent, typeof GrammarComponent, typeof VocabularyComponent, typeof FormComponent, typeof RiddleComponent, typeof YesnoComponent]>;
992
+ static ɵinj: i0.ɵɵInjectorDeclaration<CanvasModule>;
993
+ }
994
+
995
+ declare class LearningEntityFactory {
996
+ static create(entity: LearningEntityCommon, centralService: CentralService, learningEntityService: LearningEntityService): PuzzleLearningEntity | GrammarLearningEntity | VocabularyLearningEntity | FormLearningEntity | RiddleLearningEntity | YesNoLearningEntity;
997
+ }
998
+
999
+ export { CanvasComponent, CanvasModule, EntityBottomPaneComponent, FormComponent, FormLearningEntity, GrammarComponent, GrammarLearningEntity, InteractiveLearningEntityBase, LearningEntityBase, LearningEntityFactory, PuzzleComponent, PuzzleLearningEntity, RiddleComponent, RiddleLearningEntity, VocabularyComponent, VocabularyLearningEntity, YesNoLearningEntity, YesnoComponent };
1000
+ export type { Entity, Evaluation, InteractiveLearningEntity, LearningEntity, LearningEntityAssignment, LearningEntityCommon, LearningEntityService, NextPreviousResult };