ngx-edyta-entity 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.
- package/README.md +63 -0
- package/fesm2022/ngx-edyta-entity.mjs +1795 -0
- package/fesm2022/ngx-edyta-entity.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/canvas.component.d.ts +30 -0
- package/lib/canvas.module.d.ts +34 -0
- package/lib/entity/entity-bottom-pane/entity-bottom-pane.component.d.ts +18 -0
- package/lib/form/form-type/form-type-checkbox/form-type-checkbox.component.d.ts +11 -0
- package/lib/form/form-type/form-type-date/form-type-date.component.d.ts +11 -0
- package/lib/form/form-type/form-type-input/form-type-input.component.d.ts +11 -0
- package/lib/form/form-type/form-type-item/form-type-item.component.d.ts +15 -0
- package/lib/form/form-type/form-type-radio/form-type-radio.component.d.ts +11 -0
- package/lib/form/form-type/form-type-select/form-type-select.component.d.ts +11 -0
- package/lib/form/form-type/form-type-text/form-type-text.component.d.ts +5 -0
- package/lib/form/form-type/form-type-ukulele-chords/form-type-ukulele-chords.component.d.ts +8 -0
- package/lib/form/form.component.d.ts +20 -0
- package/lib/grammar/grammar.component.d.ts +10 -0
- package/lib/grammar/item/grammar-item.component.d.ts +10 -0
- package/lib/model/learning-entity/central-service.d.ts +19 -0
- package/lib/model/learning-entity/convertors/form-learning-entity-content-convertor.d.ts +5 -0
- package/lib/model/learning-entity/convertors/grammar-learning-entity-content-convertor.d.ts +5 -0
- package/lib/model/learning-entity/convertors/learning-entity-content-convertor.d.ts +4 -0
- package/lib/model/learning-entity/convertors/learning-entity-convertor-factory.d.ts +4 -0
- package/lib/model/learning-entity/convertors/puzzle-learning-entity-content-convertor.d.ts +7 -0
- package/lib/model/learning-entity/convertors/riddle-learning-entity-content-convertor.d.ts +5 -0
- package/lib/model/learning-entity/convertors/vocabulary-learning-entity-content-convertor.d.ts +8 -0
- package/lib/model/learning-entity/convertors/yes-no-learning-entity-content-convertor.d.ts +5 -0
- package/lib/model/learning-entity/form-learning-entity.d.ts +11 -0
- package/lib/model/learning-entity/form-learning-entity.type.d.ts +77 -0
- package/lib/model/learning-entity/grammar-learning-entity.d.ts +8 -0
- package/lib/model/learning-entity/grammar-learning-entity.type.d.ts +32 -0
- package/lib/model/learning-entity/interactive-learning-entity.d.ts +14 -0
- package/lib/model/learning-entity/learning-entity-factory.d.ts +12 -0
- package/lib/model/learning-entity/learning-entity-progress-service.d.ts +6 -0
- package/lib/model/learning-entity/learning-entity-service.d.ts +39 -0
- package/lib/model/learning-entity/learning-entity.d.ts +70 -0
- package/lib/model/learning-entity/puzzle-learning-entity.d.ts +11 -0
- package/lib/model/learning-entity/puzzle-learning-entity.type.d.ts +77 -0
- package/lib/model/learning-entity/riddle-learning-entity.d.ts +11 -0
- package/lib/model/learning-entity/riddle-learning-entity.type.d.ts +45 -0
- package/lib/model/learning-entity/vocabulary-learning-entity.d.ts +18 -0
- package/lib/model/learning-entity/vocabulary-learning-entity.type.d.ts +42 -0
- package/lib/model/learning-entity/yes-no-learning-entity.d.ts +11 -0
- package/lib/model/learning-entity/yes-no-learning-entity.type.d.ts +30 -0
- package/lib/puzzle/puzzle-base.component.d.ts +22 -0
- package/lib/puzzle/puzzle-drop-target.component.d.ts +30 -0
- package/lib/puzzle/puzzle-fact/puzzle-fact.component.d.ts +35 -0
- package/lib/puzzle/puzzle-option/puzzle-option-dialog/puzzle-option-dialog.component.d.ts +26 -0
- package/lib/puzzle/puzzle-option/puzzle-option.component.d.ts +27 -0
- package/lib/puzzle/puzzle-option-dialog-base.component.d.ts +16 -0
- package/lib/puzzle/puzzle-target/puzzle-target.component.d.ts +31 -0
- package/lib/puzzle/puzzle.component.d.ts +44 -0
- package/lib/riddle/convertors/riddle-input-convertor.d.ts +4 -0
- package/lib/riddle/riddle.component.d.ts +29 -0
- package/lib/vocabulary/vocabulary-card-base.component.d.ts +22 -0
- package/lib/vocabulary/vocabulary-card-flip/vocabulary-card-flip.component.d.ts +10 -0
- package/lib/vocabulary/vocabulary-card-standard/vocabulary-card-standard.component.d.ts +6 -0
- package/lib/vocabulary/vocabulary.component.d.ts +25 -0
- package/lib/yesno/yes-no.component.d.ts +17 -0
- package/package.json +23 -0
- package/public-api.d.ts +18 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Puzzle } from '../model/learning-entity/puzzle-learning-entity.type';
|
|
2
|
+
import PuzzleOptionDialogBaseComponent from './puzzle-option-dialog-base.component';
|
|
3
|
+
import { PuzzleLearningEntity } from '../model/learning-entity/puzzle-learning-entity';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export default abstract class PuzzleBaseComponent extends PuzzleOptionDialogBaseComponent {
|
|
6
|
+
private _entity;
|
|
7
|
+
private _text;
|
|
8
|
+
private _id;
|
|
9
|
+
private _color;
|
|
10
|
+
get entity(): PuzzleLearningEntity;
|
|
11
|
+
set entity(entity: PuzzleLearningEntity);
|
|
12
|
+
get text(): string;
|
|
13
|
+
set text(value: string);
|
|
14
|
+
get id(): string;
|
|
15
|
+
set id(value: string);
|
|
16
|
+
get color(): Puzzle.Color;
|
|
17
|
+
set color(value: Puzzle.Color);
|
|
18
|
+
getTextColor(color: Puzzle.Color): string | undefined;
|
|
19
|
+
getBackgroundColor(color: Puzzle.Color): string | undefined;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleBaseComponent, never>;
|
|
21
|
+
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>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import PuzzleOptionDialogBaseComponent from './puzzle-option-dialog-base.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare enum DragAction {
|
|
5
|
+
Enter = "enter",
|
|
6
|
+
Over = "over",
|
|
7
|
+
Leave = "leave"
|
|
8
|
+
}
|
|
9
|
+
export default abstract class PuzzleDropTargetComponent extends PuzzleOptionDialogBaseComponent {
|
|
10
|
+
static _dependencies: {
|
|
11
|
+
EventEmitter: {
|
|
12
|
+
new (isAsync?: boolean): EventEmitter<any>;
|
|
13
|
+
new <T>(isAsync?: boolean): EventEmitter<T>;
|
|
14
|
+
readonly prototype: EventEmitter<any>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
private _dragTargetActive;
|
|
18
|
+
private _dropped;
|
|
19
|
+
constructor();
|
|
20
|
+
get dragTargetActive(): boolean;
|
|
21
|
+
set dragTargetActive(value: boolean);
|
|
22
|
+
get dropped(): EventEmitter<string>;
|
|
23
|
+
onDrop(event: DragEvent): void;
|
|
24
|
+
onDragEnter(event: DragEvent): void;
|
|
25
|
+
onDragOver(event: DragEvent): void;
|
|
26
|
+
onDragLeave(event: DragEvent): void;
|
|
27
|
+
protected _emitDrop(id: string): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleDropTargetComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleDropTargetComponent, "ng-component", never, { "dragTargetActive": { "alias": "dragTargetActive"; "required": false; }; }, { "dropped": "dropped"; }, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Puzzle } from '../../model/learning-entity/puzzle-learning-entity.type';
|
|
3
|
+
import PuzzleBaseComponent from '../puzzle-base.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type PuzzleDrop = {
|
|
6
|
+
factId: string | undefined;
|
|
7
|
+
optionId: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class PuzzleFactComponent extends PuzzleBaseComponent {
|
|
10
|
+
static _dependencies: {
|
|
11
|
+
EventEmitter: {
|
|
12
|
+
new (isAsync?: boolean): EventEmitter<any>;
|
|
13
|
+
new <T>(isAsync?: boolean): EventEmitter<T>;
|
|
14
|
+
readonly prototype: EventEmitter<any>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
private _dropTargetActive;
|
|
18
|
+
private _assignedOptions;
|
|
19
|
+
private _dropped;
|
|
20
|
+
private _dragged;
|
|
21
|
+
assignButtonText: string;
|
|
22
|
+
back2OptionSelectionButtonText: string;
|
|
23
|
+
constructor();
|
|
24
|
+
get dropTargetActive(): boolean;
|
|
25
|
+
set dropTargetActive(value: boolean);
|
|
26
|
+
get assignedOptions(): Puzzle.Item[];
|
|
27
|
+
set assignedOptions(value: Puzzle.Item[]);
|
|
28
|
+
get dropped(): EventEmitter<PuzzleDrop>;
|
|
29
|
+
get dragged(): EventEmitter<boolean>;
|
|
30
|
+
set dragged(value: EventEmitter<boolean>);
|
|
31
|
+
onDropped(id: string): void;
|
|
32
|
+
onDragged(isDragged: boolean): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleFactComponent, never>;
|
|
34
|
+
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>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PuzzleLearningEntity } from '../../../model/learning-entity/puzzle-learning-entity';
|
|
2
|
+
import PuzzleOptionDialogBaseComponent from '../../puzzle-option-dialog-base.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PuzzleOptionDialogComponent extends PuzzleOptionDialogBaseComponent {
|
|
5
|
+
private _entity;
|
|
6
|
+
private _text;
|
|
7
|
+
private _id;
|
|
8
|
+
private _selectedFactId;
|
|
9
|
+
private _back2OptionsSectionMode;
|
|
10
|
+
assignButtonText: string;
|
|
11
|
+
back2OptionSelectionButtonText: string;
|
|
12
|
+
get entity(): PuzzleLearningEntity;
|
|
13
|
+
set entity(entity: PuzzleLearningEntity);
|
|
14
|
+
get text(): string;
|
|
15
|
+
set text(value: string);
|
|
16
|
+
get id(): string;
|
|
17
|
+
set id(value: string);
|
|
18
|
+
get back2OptionsSectionMode(): boolean;
|
|
19
|
+
set back2OptionsSectionMode(value: boolean);
|
|
20
|
+
get selectedFactId(): string;
|
|
21
|
+
set selectedFactId(value: string);
|
|
22
|
+
onFactSelected(): void;
|
|
23
|
+
onBack2OptionsSection(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionDialogComponent, never>;
|
|
25
|
+
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>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import PuzzleBaseComponent from '../puzzle-base.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PuzzleOptionComponent extends PuzzleBaseComponent {
|
|
5
|
+
static _dependencies: {
|
|
6
|
+
EventEmitter: {
|
|
7
|
+
new (isAsync?: boolean): EventEmitter<any>;
|
|
8
|
+
new <T>(isAsync?: boolean): EventEmitter<T>;
|
|
9
|
+
readonly prototype: EventEmitter<any>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
assignButtonText: string;
|
|
13
|
+
back2OptionSelectionButtonText: string;
|
|
14
|
+
private _back2OptionsSectionMode;
|
|
15
|
+
private _dragIsActive;
|
|
16
|
+
private _dragged;
|
|
17
|
+
constructor();
|
|
18
|
+
get back2OptionsSectionMode(): boolean;
|
|
19
|
+
set back2OptionsSectionMode(value: boolean);
|
|
20
|
+
get dragIsActive(): boolean;
|
|
21
|
+
set dragIsActive(value: boolean);
|
|
22
|
+
get dragged(): EventEmitter<boolean>;
|
|
23
|
+
onDragStart(event: DragEvent): void;
|
|
24
|
+
onDragEnd(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionComponent, never>;
|
|
26
|
+
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>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Puzzle } from '../model/learning-entity/puzzle-learning-entity.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export default abstract class PuzzleOptionDialogBaseComponent {
|
|
5
|
+
private _factSelected;
|
|
6
|
+
private _back2OptionsSection;
|
|
7
|
+
constructor();
|
|
8
|
+
get factSelected(): EventEmitter<Puzzle.State>;
|
|
9
|
+
set factSelected(value: EventEmitter<Puzzle.State>);
|
|
10
|
+
get back2OptionsSection(): EventEmitter<string>;
|
|
11
|
+
set back2OptionsSection(value: EventEmitter<string>);
|
|
12
|
+
onFactSelected(stateItem: Puzzle.State): void;
|
|
13
|
+
onBack2OptionsSection(optionId: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleOptionDialogBaseComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PuzzleOptionDialogBaseComponent, "ng-component", never, {}, { "factSelected": "factSelected"; "back2OptionsSection": "back2OptionsSection"; }, never, never, false, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import PuzzleDropTargetComponent from '../puzzle-drop-target.component';
|
|
3
|
+
import { Puzzle } from '../../model/learning-entity/puzzle-learning-entity.type';
|
|
4
|
+
import { PuzzleLearningEntity } from '../../model/learning-entity/puzzle-learning-entity';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PuzzleTargetComponent extends PuzzleDropTargetComponent {
|
|
7
|
+
private _entity;
|
|
8
|
+
private _text;
|
|
9
|
+
private _id;
|
|
10
|
+
private _dropTargetActive;
|
|
11
|
+
private _assignedOptions;
|
|
12
|
+
private _dragged;
|
|
13
|
+
assignButtonText: string;
|
|
14
|
+
back2OptionSelectionButtonText: string;
|
|
15
|
+
constructor();
|
|
16
|
+
get entity(): PuzzleLearningEntity;
|
|
17
|
+
set entity(entity: PuzzleLearningEntity);
|
|
18
|
+
get text(): string;
|
|
19
|
+
set text(value: string);
|
|
20
|
+
get id(): string;
|
|
21
|
+
set id(value: string);
|
|
22
|
+
get dropTargetActive(): boolean;
|
|
23
|
+
set dropTargetActive(value: boolean);
|
|
24
|
+
get assignedOptions(): Puzzle.Item[];
|
|
25
|
+
set assignedOptions(value: Puzzle.Item[]);
|
|
26
|
+
get dragged(): EventEmitter<boolean>;
|
|
27
|
+
set dragged(value: EventEmitter<boolean>);
|
|
28
|
+
onDragged(isDragged: boolean): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleTargetComponent, never>;
|
|
30
|
+
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>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import PuzzleDropTargetComponent from './puzzle-drop-target.component';
|
|
3
|
+
import { PuzzleDrop } from './puzzle-fact/puzzle-fact.component';
|
|
4
|
+
import { PuzzleLearningEntity } from '../model/learning-entity/puzzle-learning-entity';
|
|
5
|
+
import { Puzzle } from '../model/learning-entity/puzzle-learning-entity.type';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PuzzleComponent extends PuzzleDropTargetComponent {
|
|
8
|
+
private _entity;
|
|
9
|
+
private _puzzles;
|
|
10
|
+
private _puzzlesOriginal;
|
|
11
|
+
private _state;
|
|
12
|
+
private _dropTargetActive;
|
|
13
|
+
private _contentChange;
|
|
14
|
+
private _evaluate;
|
|
15
|
+
assignButtonText: string;
|
|
16
|
+
back2OptionSelectionButtonText: string;
|
|
17
|
+
checkButtonText: string;
|
|
18
|
+
previousButtonText: string;
|
|
19
|
+
nextButtonText: string;
|
|
20
|
+
constructor();
|
|
21
|
+
get entity(): PuzzleLearningEntity;
|
|
22
|
+
set entity(entity: PuzzleLearningEntity);
|
|
23
|
+
get puzzles(): Puzzle.Set;
|
|
24
|
+
set puzzles(puzzles: Puzzle.Set);
|
|
25
|
+
get dropTargetActive(): boolean;
|
|
26
|
+
set dropTargetActive(value: boolean);
|
|
27
|
+
get contentChange(): EventEmitter<unknown>;
|
|
28
|
+
set contentChange(value: EventEmitter<unknown>);
|
|
29
|
+
get evaluate(): EventEmitter<void>;
|
|
30
|
+
set evaluate(value: EventEmitter<void>);
|
|
31
|
+
onDropped(puzzleDrop: PuzzleDrop): void;
|
|
32
|
+
onDragged(isDragged: boolean): void;
|
|
33
|
+
onFactSelected(stateItem: Puzzle.State): void;
|
|
34
|
+
onBack2OptionsSection(optionId: string): void;
|
|
35
|
+
onEvaluate(): void;
|
|
36
|
+
private _process;
|
|
37
|
+
private _applyProgress;
|
|
38
|
+
protected _emitDrop(id: string): void;
|
|
39
|
+
private _buildProgressSnapshot;
|
|
40
|
+
private _stateChanged;
|
|
41
|
+
private _recalculateState;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PuzzleComponent, never>;
|
|
43
|
+
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; }; "entity": { "alias": "entity"; "required": true; }; }, { "contentChange": "contentChange"; "evaluate": "evaluate"; }, never, never, false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AfterViewChecked, EventEmitter } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { Router } from '@angular/router';
|
|
4
|
+
import { CanvasComponent } from '../canvas.component';
|
|
5
|
+
import { RiddleLearningEntity } from '../model/learning-entity/riddle-learning-entity';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class RiddleComponent extends CanvasComponent implements AfterViewChecked {
|
|
8
|
+
private _sanitizer;
|
|
9
|
+
private _router;
|
|
10
|
+
private _html;
|
|
11
|
+
private _entity;
|
|
12
|
+
private _eventListenerAdded;
|
|
13
|
+
errorReceived: EventEmitter<Error>;
|
|
14
|
+
constructor(_sanitizer: DomSanitizer, _router: Router);
|
|
15
|
+
ngAfterViewChecked(): void;
|
|
16
|
+
get entity(): RiddleLearningEntity;
|
|
17
|
+
set entity(entity: RiddleLearningEntity);
|
|
18
|
+
get html(): SafeHtml;
|
|
19
|
+
set html(value: SafeHtml);
|
|
20
|
+
private _process;
|
|
21
|
+
private _prepareState;
|
|
22
|
+
private _applyProgress2State;
|
|
23
|
+
private _deriveRiddleItemByElement;
|
|
24
|
+
private _determineHTMLEvent;
|
|
25
|
+
private _isEventListenerAdded;
|
|
26
|
+
private _buildProgressSnapshot;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RiddleComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RiddleComponent, "edyta-riddle", never, { "entity": { "alias": "entity"; "required": true; }; }, { "errorReceived": "errorReceived"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Vocabulary } from '../model/learning-entity/vocabulary-learning-entity.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class VocabularyCardBaseComponent {
|
|
4
|
+
private _vocabulary;
|
|
5
|
+
private _frontCardTitleVisibilityMode;
|
|
6
|
+
private _titleIsVisible;
|
|
7
|
+
get vocabulary(): Vocabulary.TransformedItem;
|
|
8
|
+
set vocabulary(value: Vocabulary.TransformedItem);
|
|
9
|
+
get frontCardTitleVisibilityMode(): Vocabulary.FrontCardTitleVisibilityMode;
|
|
10
|
+
set frontCardTitleVisibilityMode(mode: Vocabulary.FrontCardTitleVisibilityMode);
|
|
11
|
+
get titleIsVisible(): boolean;
|
|
12
|
+
set titleIsVisible(visible: boolean);
|
|
13
|
+
calculateHtmlClasses4Title(): {
|
|
14
|
+
'card__face-front-blur'?: undefined;
|
|
15
|
+
'card__face-front-invisible'?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
'card__face-front-blur': boolean;
|
|
18
|
+
'card__face-front-invisible': boolean;
|
|
19
|
+
};
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardBaseComponent, never>;
|
|
21
|
+
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>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VocabularyCardBaseComponent } from '../vocabulary-card-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class VocabularyCardFlipComponent extends VocabularyCardBaseComponent {
|
|
4
|
+
private _flipped;
|
|
5
|
+
get flipped(): boolean;
|
|
6
|
+
set flipped(value: boolean);
|
|
7
|
+
onToggleFlip(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardFlipComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyCardFlipComponent, "edyta-vocabulary-card-flip", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VocabularyCardBaseComponent } from '../vocabulary-card-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class VocabularyCardStandardComponent extends VocabularyCardBaseComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyCardStandardComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VocabularyCardStandardComponent, "edyta-vocabulary-card-standard", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AfterViewChecked, OnDestroy } from '@angular/core';
|
|
2
|
+
import { VocabularyLearningEntity } from '../model/learning-entity/vocabulary-learning-entity';
|
|
3
|
+
import { CanvasComponent } from '../canvas.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class VocabularyComponent extends CanvasComponent implements AfterViewChecked, OnDestroy {
|
|
6
|
+
private _entity;
|
|
7
|
+
private _resizeEventListenerRegistered;
|
|
8
|
+
private _titleIsVisible;
|
|
9
|
+
visibilityButtonShowTitleText: string;
|
|
10
|
+
visibilityButtonHideTitleText: string;
|
|
11
|
+
shuffleButtonText: string;
|
|
12
|
+
get entity(): VocabularyLearningEntity;
|
|
13
|
+
set entity(entity: VocabularyLearningEntity);
|
|
14
|
+
get titleIsVisible(): boolean;
|
|
15
|
+
ngAfterViewChecked(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
buttonPaneIsVisible(): boolean;
|
|
18
|
+
onToggleTitleVisibility(): void;
|
|
19
|
+
titleIsVisibleByDefault(): boolean;
|
|
20
|
+
getTitleVisibilityButtonText(): string;
|
|
21
|
+
private fitTextToCardTitle;
|
|
22
|
+
private fitTextToContainer;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VocabularyComponent, never>;
|
|
24
|
+
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>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CanvasComponent } from '../canvas.component';
|
|
2
|
+
import { YesNoLearningEntity } from '../model/learning-entity/yes-no-learning-entity';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class YesnoComponent extends CanvasComponent {
|
|
5
|
+
private _entity;
|
|
6
|
+
get entity(): YesNoLearningEntity;
|
|
7
|
+
set entity(entity: YesNoLearningEntity);
|
|
8
|
+
onChange(): void;
|
|
9
|
+
showMedia(): boolean;
|
|
10
|
+
private _process;
|
|
11
|
+
private _prepareState;
|
|
12
|
+
private _applyProgress2State;
|
|
13
|
+
private buildProgressSnapshot;
|
|
14
|
+
private calculateAnswer;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YesnoComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<YesnoComponent, "edyta-yes-no", never, { "entity": { "alias": "entity"; "required": true; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-edyta-entity",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^19.2.0",
|
|
6
|
+
"@angular/core": "^19.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/ngx-edyta-entity.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"default": "./fesm2022/ngx-edyta-entity.mjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './lib/canvas.module';
|
|
2
|
+
export * from './lib/canvas.component';
|
|
3
|
+
export * from './lib/entity/entity-bottom-pane/entity-bottom-pane.component';
|
|
4
|
+
export * from './lib/form/form.component';
|
|
5
|
+
export * from './lib/grammar/grammar.component';
|
|
6
|
+
export * from './lib/puzzle/puzzle.component';
|
|
7
|
+
export * from './lib/riddle/riddle.component';
|
|
8
|
+
export * from './lib/vocabulary/vocabulary.component';
|
|
9
|
+
export * from './lib/yesno/yes-no.component';
|
|
10
|
+
export * from './lib/model/learning-entity/form-learning-entity';
|
|
11
|
+
export * from './lib/model/learning-entity/grammar-learning-entity';
|
|
12
|
+
export * from './lib/model/learning-entity/puzzle-learning-entity';
|
|
13
|
+
export * from './lib/model/learning-entity/riddle-learning-entity';
|
|
14
|
+
export * from './lib/model/learning-entity/vocabulary-learning-entity';
|
|
15
|
+
export * from './lib/model/learning-entity/yes-no-learning-entity';
|
|
16
|
+
export * from './lib/model/learning-entity/learning-entity-factory';
|
|
17
|
+
export * from './lib/model/learning-entity/interactive-learning-entity';
|
|
18
|
+
export * from './lib/model/learning-entity/learning-entity';
|