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.
- package/fesm2022/ngx-edyta-entity.mjs +112 -112
- package/fesm2022/ngx-edyta-entity.mjs.map +1 -1
- package/package.json +5 -4
- package/types/ngx-edyta-entity.d.ts +1000 -0
- package/index.d.ts +0 -5
- package/lib/canvas.component.d.ts +0 -31
- package/lib/canvas.module.d.ts +0 -34
- package/lib/entity/entity-bottom-pane/entity-bottom-pane.component.d.ts +0 -18
- package/lib/form/form-type/form-type-checkbox/form-type-checkbox.component.d.ts +0 -11
- package/lib/form/form-type/form-type-date/form-type-date.component.d.ts +0 -11
- package/lib/form/form-type/form-type-input/form-type-input.component.d.ts +0 -11
- package/lib/form/form-type/form-type-item/form-type-item.component.d.ts +0 -15
- package/lib/form/form-type/form-type-radio/form-type-radio.component.d.ts +0 -11
- package/lib/form/form-type/form-type-select/form-type-select.component.d.ts +0 -11
- package/lib/form/form-type/form-type-text/form-type-text.component.d.ts +0 -5
- package/lib/form/form-type/form-type-ukulele-chords/form-type-ukulele-chords.component.d.ts +0 -8
- package/lib/form/form.component.d.ts +0 -20
- package/lib/grammar/grammar.component.d.ts +0 -10
- package/lib/grammar/item/grammar-item.component.d.ts +0 -10
- package/lib/model/learning-entity/central-service.d.ts +0 -19
- package/lib/model/learning-entity/convertors/form-learning-entity-content-convertor.d.ts +0 -5
- package/lib/model/learning-entity/convertors/grammar-learning-entity-content-convertor.d.ts +0 -5
- package/lib/model/learning-entity/convertors/learning-entity-content-convertor.d.ts +0 -4
- package/lib/model/learning-entity/convertors/learning-entity-convertor-factory.d.ts +0 -4
- package/lib/model/learning-entity/convertors/puzzle-learning-entity-content-convertor.d.ts +0 -7
- package/lib/model/learning-entity/convertors/riddle-learning-entity-content-convertor.d.ts +0 -5
- package/lib/model/learning-entity/convertors/vocabulary-learning-entity-content-convertor.d.ts +0 -8
- package/lib/model/learning-entity/convertors/yes-no-learning-entity-content-convertor.d.ts +0 -5
- package/lib/model/learning-entity/form-learning-entity.d.ts +0 -12
- package/lib/model/learning-entity/form-learning-entity.type.d.ts +0 -77
- package/lib/model/learning-entity/grammar-learning-entity.d.ts +0 -9
- package/lib/model/learning-entity/grammar-learning-entity.type.d.ts +0 -32
- package/lib/model/learning-entity/interactive-learning-entity.d.ts +0 -14
- package/lib/model/learning-entity/learning-entity-factory.d.ts +0 -12
- package/lib/model/learning-entity/learning-entity-progress-service.d.ts +0 -6
- package/lib/model/learning-entity/learning-entity-service.d.ts +0 -39
- package/lib/model/learning-entity/learning-entity.d.ts +0 -72
- package/lib/model/learning-entity/puzzle-learning-entity.d.ts +0 -12
- package/lib/model/learning-entity/puzzle-learning-entity.type.d.ts +0 -77
- package/lib/model/learning-entity/riddle-learning-entity.d.ts +0 -12
- package/lib/model/learning-entity/riddle-learning-entity.type.d.ts +0 -45
- package/lib/model/learning-entity/vocabulary-learning-entity.d.ts +0 -19
- package/lib/model/learning-entity/vocabulary-learning-entity.type.d.ts +0 -42
- package/lib/model/learning-entity/yes-no-learning-entity.d.ts +0 -12
- package/lib/model/learning-entity/yes-no-learning-entity.type.d.ts +0 -30
- package/lib/puzzle/puzzle-base.component.d.ts +0 -22
- package/lib/puzzle/puzzle-drop-target.component.d.ts +0 -30
- package/lib/puzzle/puzzle-fact/puzzle-fact.component.d.ts +0 -35
- package/lib/puzzle/puzzle-option/puzzle-option-dialog/puzzle-option-dialog.component.d.ts +0 -26
- package/lib/puzzle/puzzle-option/puzzle-option.component.d.ts +0 -27
- package/lib/puzzle/puzzle-option-dialog-base.component.d.ts +0 -16
- package/lib/puzzle/puzzle-target/puzzle-target.component.d.ts +0 -31
- package/lib/puzzle/puzzle.component.d.ts +0 -45
- package/lib/riddle/convertors/riddle-input-convertor.d.ts +0 -4
- package/lib/riddle/riddle.component.d.ts +0 -29
- package/lib/vocabulary/vocabulary-card-base.component.d.ts +0 -22
- package/lib/vocabulary/vocabulary-card-flip/vocabulary-card-flip.component.d.ts +0 -10
- package/lib/vocabulary/vocabulary-card-standard/vocabulary-card-standard.component.d.ts +0 -6
- package/lib/vocabulary/vocabulary.component.d.ts +0 -25
- package/lib/yesno/yes-no.component.d.ts +0 -17
- package/public-api.d.ts +0 -19
|
@@ -4,13 +4,13 @@ import * as i1 from '@angular/common';
|
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i2 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
|
-
import * as
|
|
7
|
+
import * as i1$1 from '@angular/forms';
|
|
8
8
|
import { FormsModule } from '@angular/forms';
|
|
9
|
-
import * as i2$
|
|
9
|
+
import * as i2$1 from 'ngx-edyta-fe-elements';
|
|
10
10
|
import { ElementModule } from 'ngx-edyta-fe-elements';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i1$2 from 'ngx-edyta-chords';
|
|
12
12
|
import { ChordModule } from 'ngx-edyta-chords';
|
|
13
|
-
import * as i1$
|
|
13
|
+
import * as i1$3 from '@angular/platform-browser';
|
|
14
14
|
|
|
15
15
|
class PuzzleOptionDialogBaseComponent {
|
|
16
16
|
constructor() {
|
|
@@ -35,10 +35,10 @@ class PuzzleOptionDialogBaseComponent {
|
|
|
35
35
|
onBack2OptionsSection(optionId) {
|
|
36
36
|
this.back2OptionsSection.emit(optionId);
|
|
37
37
|
}
|
|
38
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionDialogBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: PuzzleOptionDialogBaseComponent, isStandalone: false, selector: "ng-component", outputs: { factSelected: "factSelected", back2OptionsSection: "back2OptionsSection" }, ngImport: i0, template: '', isInline: true }); }
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionDialogBaseComponent, decorators: [{
|
|
42
42
|
type: Component,
|
|
43
43
|
args: [{
|
|
44
44
|
template: '',
|
|
@@ -113,10 +113,10 @@ class PuzzleDropTargetComponent extends PuzzleOptionDialogBaseComponent {
|
|
|
113
113
|
_emitDrop(id) {
|
|
114
114
|
this._dropped.emit(id);
|
|
115
115
|
}
|
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleDropTargetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
117
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: PuzzleDropTargetComponent, isStandalone: false, selector: "ng-component", inputs: { dragTargetActive: "dragTargetActive" }, outputs: { dropped: "dropped" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleDropTargetComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{
|
|
122
122
|
template: '',
|
|
@@ -147,12 +147,12 @@ class EntityBottomPaneComponent {
|
|
|
147
147
|
onEvaluate() {
|
|
148
148
|
this.evaluate.emit();
|
|
149
149
|
}
|
|
150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
150
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityBottomPaneComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: EntityBottomPaneComponent, isStandalone: false, selector: "edyta-entity-bottom-pane", inputs: { checkButtonText: "checkButtonText", previousButtonText: "previousButtonText", nextButtonText: "nextButtonText", entity: "entity" }, outputs: { evaluate: "evaluate" }, ngImport: i0, template: "<div class=\"uk-margin-medium-top\" uk-grid>\n <div class=\"uk-width-auto\">\n @if (entity.previous) {\n <a [routerLink]=\"['/', entity.organizationKey, 'level', entity.previous.level.id, ...(entity.previous.entity ? ['entity', entity.previous.entity.id] : [])]\" role=\"button\" class=\"uk-button uk-button-secondary\">\n <ng-container [ngTemplateOutlet]=\"previousText\"></ng-container>\n </a>\n }\n <!-- for keeping div width same if the previous entity id is not provided -->\n @if (!entity.previous) {\n <div class=\"uk-button transparent-button\">\n <ng-container [ngTemplateOutlet]=\"previousText\"></ng-container>\n </div>\n }\n </div>\n <div class=\"uk-width-expand uk-text-center\">\n @if (entity.isCheckable()) {\n <button type=\"button\" class=\"uk-button uk-button-primary\" (click)=\"onEvaluate()\">{{ checkButtonText }}</button>\n }\n </div>\n <div class=\"uk-width-auto uk-text-right\">\n @if (entity.next) {\n <a [routerLink]=\"['/', entity.organizationKey, 'level', entity.next.level.id, ...(entity.next.entity ? ['entity', entity.next.entity.id] : [])]\" routerLinkActive=\"router-link-active\" role=\"button\" class=\"uk-button uk-button-secondary\">\n <ng-container [ngTemplateOutlet]=\"nextText\"></ng-container>\n </a>\n }\n <!-- for keeping div width same if the next entity id is not provided -->\n @if (!entity.next) {\n <div class=\"uk-button transparent-button\">\n <ng-container [ngTemplateOutlet]=\"nextText\"></ng-container>\n </div>\n }\n </div>\n</div>\n\n<ng-template #previousText>\n <i class=\"mdi mdi-chevron-left\"></i>\n <span class=\"uk-visible@m\">{{ previousButtonText }}</span>\n</ng-template>\n\n<ng-template #nextText>\n <span class=\"uk-visible@m\">{{ nextButtonText }}</span>\n <i class=\"mdi mdi-chevron-right\"></i>\n</ng-template>\n", styles: [".transparent-button{color:transparent;text-decoration:none;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i2.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] }); }
|
|
152
152
|
}
|
|
153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: EntityBottomPaneComponent, decorators: [{
|
|
154
154
|
type: Component,
|
|
155
|
-
args: [{ selector: 'edyta-entity-bottom-pane', standalone: false, template: "<div class=\"uk-margin-medium-top\" uk-grid>\n <div class=\"uk-width-auto\">\n
|
|
155
|
+
args: [{ selector: 'edyta-entity-bottom-pane', standalone: false, template: "<div class=\"uk-margin-medium-top\" uk-grid>\n <div class=\"uk-width-auto\">\n @if (entity.previous) {\n <a [routerLink]=\"['/', entity.organizationKey, 'level', entity.previous.level.id, ...(entity.previous.entity ? ['entity', entity.previous.entity.id] : [])]\" role=\"button\" class=\"uk-button uk-button-secondary\">\n <ng-container [ngTemplateOutlet]=\"previousText\"></ng-container>\n </a>\n }\n <!-- for keeping div width same if the previous entity id is not provided -->\n @if (!entity.previous) {\n <div class=\"uk-button transparent-button\">\n <ng-container [ngTemplateOutlet]=\"previousText\"></ng-container>\n </div>\n }\n </div>\n <div class=\"uk-width-expand uk-text-center\">\n @if (entity.isCheckable()) {\n <button type=\"button\" class=\"uk-button uk-button-primary\" (click)=\"onEvaluate()\">{{ checkButtonText }}</button>\n }\n </div>\n <div class=\"uk-width-auto uk-text-right\">\n @if (entity.next) {\n <a [routerLink]=\"['/', entity.organizationKey, 'level', entity.next.level.id, ...(entity.next.entity ? ['entity', entity.next.entity.id] : [])]\" routerLinkActive=\"router-link-active\" role=\"button\" class=\"uk-button uk-button-secondary\">\n <ng-container [ngTemplateOutlet]=\"nextText\"></ng-container>\n </a>\n }\n <!-- for keeping div width same if the next entity id is not provided -->\n @if (!entity.next) {\n <div class=\"uk-button transparent-button\">\n <ng-container [ngTemplateOutlet]=\"nextText\"></ng-container>\n </div>\n }\n </div>\n</div>\n\n<ng-template #previousText>\n <i class=\"mdi mdi-chevron-left\"></i>\n <span class=\"uk-visible@m\">{{ previousButtonText }}</span>\n</ng-template>\n\n<ng-template #nextText>\n <span class=\"uk-visible@m\">{{ nextButtonText }}</span>\n <i class=\"mdi mdi-chevron-right\"></i>\n</ng-template>\n", styles: [".transparent-button{color:transparent;text-decoration:none;cursor:default}\n"] }]
|
|
156
156
|
}], ctorParameters: () => [], propDecorators: { checkButtonText: [{
|
|
157
157
|
type: Input,
|
|
158
158
|
args: [{ required: true }]
|
|
@@ -200,10 +200,10 @@ class PuzzleBaseComponent extends PuzzleOptionDialogBaseComponent {
|
|
|
200
200
|
getBackgroundColor(color) {
|
|
201
201
|
return color.requested.background ? color.background : undefined;
|
|
202
202
|
}
|
|
203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleBaseComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: PuzzleBaseComponent, isStandalone: false, selector: "ng-component", inputs: { entity: "entity", text: "text", id: "id", color: "color" }, usesInheritance: true, ngImport: i0, template: '', isInline: true }); }
|
|
205
205
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleBaseComponent, decorators: [{
|
|
207
207
|
type: Component,
|
|
208
208
|
args: [{
|
|
209
209
|
template: '',
|
|
@@ -268,12 +268,12 @@ class PuzzleOptionDialogComponent extends PuzzleOptionDialogBaseComponent {
|
|
|
268
268
|
onBack2OptionsSection() {
|
|
269
269
|
this.back2OptionsSection.emit(this.id);
|
|
270
270
|
}
|
|
271
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
272
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionDialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
272
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: PuzzleOptionDialogComponent, isStandalone: false, selector: "[edyta-puzzle-option-dialog]", inputs: { assignButtonText: "assignButtonText", back2OptionSelectionButtonText: "back2OptionSelectionButtonText", entity: "entity", text: "text", id: "id", back2OptionsSectionMode: "back2OptionsSectionMode" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-card uk-card-default uk-card-small\">\n <div class=\"uk-card-header\">\n <h3 class=\"uk-card-title\">{{text}}</h3>\n </div>\n <div class=\"uk-card-body\">\n <select class=\"uk-select\" [(ngModel)]=\"selectedFactId\" name=\"{{id}}\">\n @for (fact of entity.content.facts; track fact) {\n <option [value]=\"fact.id\">{{fact.text}}</option>\n }\n </select>\n </div>\n <div class=\"uk-card-footer\">\n <div>\n <button class=\"uk-button uk-button-small uk-button-primary\" (click)=\"onFactSelected()\">{{ assignButtonText }}</button>\n </div>\n @if (back2OptionsSectionMode) {\n <div class=\"uk-margin-small-top\">\n <button class=\"uk-button uk-button-small uk-button-default\" (click)=\"onBack2OptionsSection()\">{{ back2OptionSelectionButtonText }}</button>\n </div>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
273
273
|
}
|
|
274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionDialogComponent, decorators: [{
|
|
275
275
|
type: Component,
|
|
276
|
-
args: [{ selector: '[edyta-puzzle-option-dialog]', standalone: false, template: "<div class=\"uk-card uk-card-default uk-card-small\">\n <div class=\"uk-card-header\">\n <h3 class=\"uk-card-title\">{{text}}</h3>\n </div>\n <div class=\"uk-card-body\">\n <select class=\"uk-select\" [(ngModel)]=\"selectedFactId\" name=\"{{id}}\">\n
|
|
276
|
+
args: [{ selector: '[edyta-puzzle-option-dialog]', standalone: false, template: "<div class=\"uk-card uk-card-default uk-card-small\">\n <div class=\"uk-card-header\">\n <h3 class=\"uk-card-title\">{{text}}</h3>\n </div>\n <div class=\"uk-card-body\">\n <select class=\"uk-select\" [(ngModel)]=\"selectedFactId\" name=\"{{id}}\">\n @for (fact of entity.content.facts; track fact) {\n <option [value]=\"fact.id\">{{fact.text}}</option>\n }\n </select>\n </div>\n <div class=\"uk-card-footer\">\n <div>\n <button class=\"uk-button uk-button-small uk-button-primary\" (click)=\"onFactSelected()\">{{ assignButtonText }}</button>\n </div>\n @if (back2OptionsSectionMode) {\n <div class=\"uk-margin-small-top\">\n <button class=\"uk-button uk-button-small uk-button-default\" (click)=\"onBack2OptionsSection()\">{{ back2OptionSelectionButtonText }}</button>\n </div>\n }\n </div>\n</div>\n" }]
|
|
277
277
|
}], propDecorators: { assignButtonText: [{
|
|
278
278
|
type: Input,
|
|
279
279
|
args: [{ required: true }]
|
|
@@ -329,10 +329,10 @@ class PuzzleOptionComponent extends PuzzleBaseComponent {
|
|
|
329
329
|
this.dragIsActive = false;
|
|
330
330
|
this._dragged.emit(false);
|
|
331
331
|
}
|
|
332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: PuzzleOptionComponent, isStandalone: false, selector: "edyta-puzzle-option", inputs: { assignButtonText: "assignButtonText", back2OptionSelectionButtonText: "back2OptionSelectionButtonText", back2OptionsSectionMode: "back2OptionsSectionMode" }, outputs: { dragged: "dragged" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin-small-bottom uk-margin-small-top uk-padding-small puzzle-item\" [ngClass]=\"{ 'drag-is-active': dragIsActive }\" id=\"{{ 'puzzle-item-' + id }}\"\n [style.color]=\"getTextColor(color)\" [style.background-color]=\"getBackgroundColor(color)\" draggable=\"true\" (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd()\">\n {{ text }}\n</div>\n<div edyta-puzzle-option-dialog [id]=\"id\" [text]=\"text\" [entity]=\"entity\" [back2OptionsSectionMode]=\"back2OptionsSectionMode\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\" uk-drop=\"mode: click; pos: bottom-center\"></div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PuzzleOptionDialogComponent, selector: "[edyta-puzzle-option-dialog]", inputs: ["assignButtonText", "back2OptionSelectionButtonText", "entity", "text", "id", "back2OptionsSectionMode"] }] }); }
|
|
334
334
|
}
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleOptionComponent, decorators: [{
|
|
336
336
|
type: Component,
|
|
337
337
|
args: [{ selector: 'edyta-puzzle-option', standalone: false, template: "<div class=\"uk-margin-small-bottom uk-margin-small-top uk-padding-small puzzle-item\" [ngClass]=\"{ 'drag-is-active': dragIsActive }\" id=\"{{ 'puzzle-item-' + id }}\"\n [style.color]=\"getTextColor(color)\" [style.background-color]=\"getBackgroundColor(color)\" draggable=\"true\" (dragstart)=\"onDragStart($event)\" (dragend)=\"onDragEnd()\">\n {{ text }}\n</div>\n<div edyta-puzzle-option-dialog [id]=\"id\" [text]=\"text\" [entity]=\"entity\" [back2OptionsSectionMode]=\"back2OptionsSectionMode\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\" uk-drop=\"mode: click; pos: bottom-center\"></div>\n" }]
|
|
338
338
|
}], ctorParameters: () => [], propDecorators: { assignButtonText: [{
|
|
@@ -395,12 +395,12 @@ class PuzzleTargetComponent extends PuzzleDropTargetComponent {
|
|
|
395
395
|
onDragged(isDragged) {
|
|
396
396
|
this.dragged.emit(isDragged);
|
|
397
397
|
}
|
|
398
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
399
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleTargetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
399
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: PuzzleTargetComponent, isStandalone: false, selector: "edyta-puzzle-target", inputs: { assignButtonText: "assignButtonText", back2OptionSelectionButtonText: "back2OptionSelectionButtonText", entity: "entity", text: "text", id: "id", dropTargetActive: "dropTargetActive", assignedOptions: "assignedOptions" }, outputs: { dragged: "dragged" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-width-1-2 uk-float-right\">\n <div class=\"uk-margin-small-bottom uk-margin-small-top puzzle-item dropzone\"\n [ngClass]=\"{'drop-target-highlight': dropTargetActive, 'drag-target-highlight': dragTargetActive}\"\n (drop)=\"onDrop($event)\" (dragover)=\"onDragOver($event)\" (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragLeave($event)\">\n @for (puzzle of assignedOptions; track puzzle) {\n <edyta-puzzle-option [text]=\"puzzle.text\" [id]=\"puzzle.id\" [color]=\"puzzle.color\" [entity]=\"entity\" [back2OptionsSectionMode]=\"true\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\"></edyta-puzzle-option>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PuzzleOptionComponent, selector: "edyta-puzzle-option", inputs: ["assignButtonText", "back2OptionSelectionButtonText", "back2OptionsSectionMode"], outputs: ["dragged"] }] }); }
|
|
400
400
|
}
|
|
401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleTargetComponent, decorators: [{
|
|
402
402
|
type: Component,
|
|
403
|
-
args: [{ selector: 'edyta-puzzle-target', standalone: false, template: "<div class=\"uk-width-1-2 uk-float-right\">\n <div class=\"uk-margin-small-bottom uk-margin-small-top puzzle-item dropzone\"\n [ngClass]=\"{'drop-target-highlight': dropTargetActive, 'drag-target-highlight': dragTargetActive}\"\n (drop)=\"onDrop($event)\" (dragover)=\"onDragOver($event)\" (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragLeave($event)\">\n
|
|
403
|
+
args: [{ selector: 'edyta-puzzle-target', standalone: false, template: "<div class=\"uk-width-1-2 uk-float-right\">\n <div class=\"uk-margin-small-bottom uk-margin-small-top puzzle-item dropzone\"\n [ngClass]=\"{'drop-target-highlight': dropTargetActive, 'drag-target-highlight': dragTargetActive}\"\n (drop)=\"onDrop($event)\" (dragover)=\"onDragOver($event)\" (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragLeave($event)\">\n @for (puzzle of assignedOptions; track puzzle) {\n <edyta-puzzle-option [text]=\"puzzle.text\" [id]=\"puzzle.id\" [color]=\"puzzle.color\" [entity]=\"entity\" [back2OptionsSectionMode]=\"true\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\"></edyta-puzzle-option>\n }\n </div>\n</div>\n" }]
|
|
404
404
|
}], ctorParameters: () => [], propDecorators: { assignButtonText: [{
|
|
405
405
|
type: Input,
|
|
406
406
|
args: [{ required: true }]
|
|
@@ -460,10 +460,10 @@ class PuzzleFactComponent extends PuzzleBaseComponent {
|
|
|
460
460
|
onDragged(isDragged) {
|
|
461
461
|
this.dragged.emit(isDragged);
|
|
462
462
|
}
|
|
463
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
464
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleFactComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: PuzzleFactComponent, isStandalone: false, selector: "edyta-puzzle-fact", inputs: { assignButtonText: "assignButtonText", back2OptionSelectionButtonText: "back2OptionSelectionButtonText", dropTargetActive: "dropTargetActive", assignedOptions: "assignedOptions" }, outputs: { dropped: "dropped", dragged: "dragged" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-width-1-2 uk-float-left uk-padding-small uk-padding-remove-vertical\">\n <div class=\"puzzle-fact-item-border\">\n <div class=\"uk-margin-small-bottom uk-margin-small-top puzzle-item\" [style.color]=\"getTextColor(color)\" [style.background-color]=\"getBackgroundColor(color)\">\n {{ text }}\n </div>\n </div>\n</div>\n<edyta-puzzle-target [id]=\"id\" [assignedOptions]=\"assignedOptions\" [dropTargetActive]=\"dropTargetActive\" [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dropped)=\"onDropped($event)\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\">\n</edyta-puzzle-target>\n", styles: [""], dependencies: [{ kind: "component", type: PuzzleTargetComponent, selector: "edyta-puzzle-target", inputs: ["assignButtonText", "back2OptionSelectionButtonText", "entity", "text", "id", "dropTargetActive", "assignedOptions"], outputs: ["dragged"] }] }); }
|
|
465
465
|
}
|
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleFactComponent, decorators: [{
|
|
467
467
|
type: Component,
|
|
468
468
|
args: [{ selector: 'edyta-puzzle-fact', standalone: false, template: "<div class=\"uk-width-1-2 uk-float-left uk-padding-small uk-padding-remove-vertical\">\n <div class=\"puzzle-fact-item-border\">\n <div class=\"uk-margin-small-bottom uk-margin-small-top puzzle-item\" [style.color]=\"getTextColor(color)\" [style.background-color]=\"getBackgroundColor(color)\">\n {{ text }}\n </div>\n </div>\n</div>\n<edyta-puzzle-target [id]=\"id\" [assignedOptions]=\"assignedOptions\" [dropTargetActive]=\"dropTargetActive\" [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dropped)=\"onDropped($event)\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\">\n</edyta-puzzle-target>\n" }]
|
|
469
469
|
}], ctorParameters: () => [], propDecorators: { assignButtonText: [{
|
|
@@ -589,12 +589,12 @@ class PuzzleComponent extends PuzzleDropTargetComponent {
|
|
|
589
589
|
this._state.push({ factId, optionId });
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
593
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
592
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
593
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: PuzzleComponent, isStandalone: false, selector: "edyta-puzzle", inputs: { assignButtonText: "assignButtonText", back2OptionSelectionButtonText: "back2OptionSelectionButtonText", checkButtonText: "checkButtonText", previousButtonText: "previousButtonText", nextButtonText: "nextButtonText", showBottomPane: "showBottomPane", entity: "entity" }, outputs: { contentChange: "contentChange", evaluate: "evaluate" }, usesInheritance: true, ngImport: i0, template: "@if (entity && entity.content.description) {\n <div class=\"uk-child-width-1 grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\" [innerHTML]=\"entity.content.description\"></div>\n </div>\n </div>\n}\n\n<div class=\"uk-child-width-1 uk-text-center grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\">\n @for (puzzleFact of puzzles.facts; track puzzleFact) {\n <div class=\"uk-child-width-1-1 uk-text-center puzzle-target-section\" uk-grid\n >\n <div>\n <edyta-puzzle-fact [text]=\"puzzleFact.text\" [id]=\"puzzleFact.id\" [color]=\"puzzleFact.color\" [assignedOptions]=\"puzzleFact.assignedOptions\" [dropTargetActive]=\"dropTargetActive\"\n [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dropped)=\"onDropped($event)\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\"></edyta-puzzle-fact>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n\n<div class=\"uk-child-width-1 uk-text-center\" uk-grid>\n <div>\n <div id=\"puzzle-item-source\"\n class=\"uk-width-1 uk-flex uk-flex-center uk-card uk-card-default uk-card-body dropzone\"\n [ngClass]=\"{'drop-target-highlight': dropTargetActive, 'drag-target-highlight': dragTargetActive}\"\n (drop)=\"onDrop($event)\" (dragover)=\"onDragOver($event)\" (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragLeave($event)\">\n\n @for (puzzle of puzzles.options; track puzzle) {\n <edyta-puzzle-option [text]=\"puzzle.text\" [id]=\"puzzle.id\" [color]=\"puzzle.color\" [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\"\n (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\">\n </edyta-puzzle-option>\n }\n\n </div>\n </div>\n</div>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" [checkButtonText]=\"checkButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".grid .puzzle-target-section{margin-top:0}.uk-card.dropzone{display:block}.puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word}.puzzle-item[draggable=true]{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;cursor:grab}.dropzone.puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dotted rgba(102,102,102,.5);margin-top:12px!important}.puzzle-fact-item-border{border:2px solid rgba(0,0,0,0)}.dropzone.puzzle-item:not(:empty){border:2px solid rgba(0,0,0,0);border-radius:.5rem;min-height:1.5rem;padding:0!important;display:block;margin-top:10px!important}.dropzone.puzzle-item.drop-target-highlight{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dashed rgba(102,102,102,.5)}.dropzone.puzzle-item.drag-target-highlight{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dotted #FF7F50}.puzzle-item.dropzone edyta-puzzle-option:first-child .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;margin:0!important}.puzzle-item.dropzone edyta-puzzle-option:last-child .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;margin-bottom:0!important}#puzzle-item-source .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;padding:.3rem;margin:.3rem;display:inline-flex;justify-content:center;min-width:10rem}.drag-is-active{opacity:.5}#puzzle-item-source.dropzone{border:2px solid rgba(0,0,0,0)}#puzzle-item-source.dropzone.drop-target-highlight{border-radius:.5rem;border:2px dashed rgba(102,102,102,.5)}#puzzle-item-source.dropzone.drag-target-highlight{border-radius:.5rem;border:2px dotted #FF7F50}@media only screen and (max-width:960px){#puzzle-item-source .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;padding:.3rem;margin:.3rem}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }, { kind: "component", type: PuzzleOptionComponent, selector: "edyta-puzzle-option", inputs: ["assignButtonText", "back2OptionSelectionButtonText", "back2OptionsSectionMode"], outputs: ["dragged"] }, { kind: "component", type: PuzzleFactComponent, selector: "edyta-puzzle-fact", inputs: ["assignButtonText", "back2OptionSelectionButtonText", "dropTargetActive", "assignedOptions"], outputs: ["dropped", "dragged"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
594
594
|
}
|
|
595
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PuzzleComponent, decorators: [{
|
|
596
596
|
type: Component,
|
|
597
|
-
args: [{ selector: 'edyta-puzzle', encapsulation: ViewEncapsulation.None, standalone: false, template: "
|
|
597
|
+
args: [{ selector: 'edyta-puzzle', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (entity && entity.content.description) {\n <div class=\"uk-child-width-1 grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\" [innerHTML]=\"entity.content.description\"></div>\n </div>\n </div>\n}\n\n<div class=\"uk-child-width-1 uk-text-center grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\">\n @for (puzzleFact of puzzles.facts; track puzzleFact) {\n <div class=\"uk-child-width-1-1 uk-text-center puzzle-target-section\" uk-grid\n >\n <div>\n <edyta-puzzle-fact [text]=\"puzzleFact.text\" [id]=\"puzzleFact.id\" [color]=\"puzzleFact.color\" [assignedOptions]=\"puzzleFact.assignedOptions\" [dropTargetActive]=\"dropTargetActive\"\n [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\" (dropped)=\"onDropped($event)\" (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\"></edyta-puzzle-fact>\n </div>\n </div>\n }\n </div>\n </div>\n</div>\n\n<div class=\"uk-child-width-1 uk-text-center\" uk-grid>\n <div>\n <div id=\"puzzle-item-source\"\n class=\"uk-width-1 uk-flex uk-flex-center uk-card uk-card-default uk-card-body dropzone\"\n [ngClass]=\"{'drop-target-highlight': dropTargetActive, 'drag-target-highlight': dragTargetActive}\"\n (drop)=\"onDrop($event)\" (dragover)=\"onDragOver($event)\" (dragenter)=\"onDragEnter($event)\"\n (dragleave)=\"onDragLeave($event)\">\n\n @for (puzzle of puzzles.options; track puzzle) {\n <edyta-puzzle-option [text]=\"puzzle.text\" [id]=\"puzzle.id\" [color]=\"puzzle.color\" [entity]=\"entity\" [assignButtonText]=\"assignButtonText\" [back2OptionSelectionButtonText]=\"back2OptionSelectionButtonText\"\n (dragged)=\"onDragged($event)\" (factSelected)=\"onFactSelected($event)\" (back2OptionsSection)=\"onBack2OptionsSection($event)\">\n </edyta-puzzle-option>\n }\n\n </div>\n </div>\n</div>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" [checkButtonText]=\"checkButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".grid .puzzle-target-section{margin-top:0}.uk-card.dropzone{display:block}.puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word}.puzzle-item[draggable=true]{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;cursor:grab}.dropzone.puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dotted rgba(102,102,102,.5);margin-top:12px!important}.puzzle-fact-item-border{border:2px solid rgba(0,0,0,0)}.dropzone.puzzle-item:not(:empty){border:2px solid rgba(0,0,0,0);border-radius:.5rem;min-height:1.5rem;padding:0!important;display:block;margin-top:10px!important}.dropzone.puzzle-item.drop-target-highlight{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dashed rgba(102,102,102,.5)}.dropzone.puzzle-item.drag-target-highlight{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;border:2px dotted #FF7F50}.puzzle-item.dropzone edyta-puzzle-option:first-child .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;margin:0!important}.puzzle-item.dropzone edyta-puzzle-option:last-child .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;margin-bottom:0!important}#puzzle-item-source .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;padding:.3rem;margin:.3rem;display:inline-flex;justify-content:center;min-width:10rem}.drag-is-active{opacity:.5}#puzzle-item-source.dropzone{border:2px solid rgba(0,0,0,0)}#puzzle-item-source.dropzone.drop-target-highlight{border-radius:.5rem;border:2px dashed rgba(102,102,102,.5)}#puzzle-item-source.dropzone.drag-target-highlight{border-radius:.5rem;border:2px dotted #FF7F50}@media only screen and (max-width:960px){#puzzle-item-source .puzzle-item{border:2px solid #666;border-radius:.5rem;min-height:1.5rem;padding:.4rem;display:block;word-wrap:break-word;padding:.3rem;margin:.3rem}}\n"] }]
|
|
598
598
|
}], ctorParameters: () => [], propDecorators: { assignButtonText: [{
|
|
599
599
|
type: Input,
|
|
600
600
|
args: [{ required: true }]
|
|
@@ -659,12 +659,12 @@ class CanvasComponent {
|
|
|
659
659
|
onEvaluate() {
|
|
660
660
|
this.evaluate.emit();
|
|
661
661
|
}
|
|
662
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
663
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: CanvasComponent, isStandalone: false, selector: "edyta-canvas", inputs: { checkButtonText: "checkButtonText", previousButtonText: "previousButtonText", nextButtonText: "nextButtonText", showBottomPane: "showBottomPane", title: "title", picture: "picture" }, outputs: { contentChange: "contentChange", evaluate: "evaluate" }, ngImport: i0, template: "@if (!!title) {\n <div>\n <ng-content select=\"[breadcrumb]\"></ng-content>\n <div class=\"uk-clearfix\" uk-height-match>\n <div class=\"uk-float-left\">\n <h2 class=\"uk-heading-small\">\n @if (picture) {\n <div class=\"uk-margin-small-right picture\">\n <img [src]=\"picture\" class=\"uk-border-rounded\" alt=\"Entity's picture\">\n </div>\n }\n {{ title }}\n </h2>\n </div>\n <div class=\"uk-float-right\">\n <ng-content select=\"[control-panel]\"></ng-content>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n}\n\n@if (!title) {\n <div class=\"uk-position-center\">\n <div uk-spinner=\"ratio: 2\"></div>\n </div>\n}\n", styles: ["li div{display:inline-block}div.picture{width:5rem;display:inline-block}li img{max-width:5rem;max-height:5rem}\n"] }); }
|
|
664
664
|
}
|
|
665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanvasComponent, decorators: [{
|
|
666
666
|
type: Component,
|
|
667
|
-
args: [{ selector: 'edyta-canvas', standalone: false, template: "
|
|
667
|
+
args: [{ selector: 'edyta-canvas', standalone: false, template: "@if (!!title) {\n <div>\n <ng-content select=\"[breadcrumb]\"></ng-content>\n <div class=\"uk-clearfix\" uk-height-match>\n <div class=\"uk-float-left\">\n <h2 class=\"uk-heading-small\">\n @if (picture) {\n <div class=\"uk-margin-small-right picture\">\n <img [src]=\"picture\" class=\"uk-border-rounded\" alt=\"Entity's picture\">\n </div>\n }\n {{ title }}\n </h2>\n </div>\n <div class=\"uk-float-right\">\n <ng-content select=\"[control-panel]\"></ng-content>\n </div>\n </div>\n <ng-content></ng-content>\n </div>\n}\n\n@if (!title) {\n <div class=\"uk-position-center\">\n <div uk-spinner=\"ratio: 2\"></div>\n </div>\n}\n", styles: ["li div{display:inline-block}div.picture{width:5rem;display:inline-block}li img{max-width:5rem;max-height:5rem}\n"] }]
|
|
668
668
|
}], ctorParameters: () => [], propDecorators: { checkButtonText: [{
|
|
669
669
|
type: Input,
|
|
670
670
|
args: [{ required: true }]
|
|
@@ -696,12 +696,12 @@ class GrammarItemComponent {
|
|
|
696
696
|
showPictureOnRight() {
|
|
697
697
|
return !!this.content.picture?.url && (!this.content.picture.position || this.content.picture.position === 'right');
|
|
698
698
|
}
|
|
699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
700
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
699
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GrammarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
700
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: GrammarItemComponent, isStandalone: false, selector: "edyta-grammar-item", inputs: { content: "content" }, ngImport: i0, template: "@if (content.key) {\n <h3 class=\"uk-card-title\" [style.color]=\"content.color?.text\">{{ content.key }}</h3>\n}\n<div class=\"grammar-content-wrapper\">\n @if (showPictureOnLeft()) {\n <div class=\"uk-visible@m uk-width-1-4 grammar-picture-wrapper-left uk-margin-small-right\">\n <img class=\"grammar-picture\" [src]=\"content.picture?.url\" [alt]=\"content.key\">\n </div>\n }\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ content.picture?.url ? 'uk-width-3-4@m' : '' ]\">\n <p [innerHTML]=\"content.innerHTML\"></p>\n </div>\n @if (showPictureOnRight()) {\n <div class=\"uk-visible@m uk-width-1-4 grammar-picture-wrapper-right uk-margin-small-left\">\n <img class=\"grammar-picture\" [src]=\"content.picture?.url\" [alt]=\"content.key\">\n </div>\n }\n</div>\n@if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"content.media?.url || ''\" [fileMimeType]=\"content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MediaElementComponent, selector: "edyta-media-element" }] }); }
|
|
701
701
|
}
|
|
702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GrammarItemComponent, decorators: [{
|
|
703
703
|
type: Component,
|
|
704
|
-
args: [{ selector: 'edyta-grammar-item', standalone: false, template: "<h3 class=\"uk-card-title\" [style.color]=\"content.color?.text\"
|
|
704
|
+
args: [{ selector: 'edyta-grammar-item', standalone: false, template: "@if (content.key) {\n <h3 class=\"uk-card-title\" [style.color]=\"content.color?.text\">{{ content.key }}</h3>\n}\n<div class=\"grammar-content-wrapper\">\n @if (showPictureOnLeft()) {\n <div class=\"uk-visible@m uk-width-1-4 grammar-picture-wrapper-left uk-margin-small-right\">\n <img class=\"grammar-picture\" [src]=\"content.picture?.url\" [alt]=\"content.key\">\n </div>\n }\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ content.picture?.url ? 'uk-width-3-4@m' : '' ]\">\n <p [innerHTML]=\"content.innerHTML\"></p>\n </div>\n @if (showPictureOnRight()) {\n <div class=\"uk-visible@m uk-width-1-4 grammar-picture-wrapper-right uk-margin-small-left\">\n <img class=\"grammar-picture\" [src]=\"content.picture?.url\" [alt]=\"content.key\">\n </div>\n }\n</div>\n@if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"content.media?.url || ''\" [fileMimeType]=\"content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n}\n" }]
|
|
705
705
|
}], propDecorators: { content: [{
|
|
706
706
|
type: Input
|
|
707
707
|
}] } });
|
|
@@ -713,12 +713,12 @@ class GrammarComponent extends CanvasComponent {
|
|
|
713
713
|
set entity(entity) {
|
|
714
714
|
this._entity = entity;
|
|
715
715
|
}
|
|
716
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
717
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GrammarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
717
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: GrammarComponent, isStandalone: false, selector: "edyta-grammar", inputs: { entity: "entity" }, usesInheritance: true, ngImport: i0, template: "@for (grammar of entity.content; track grammar) {\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\" [style.backgroundColor]=\"grammar.color?.background\" [style.color]=\"grammar.color?.text\">\n <div class=\"uk-padding uk-padding-remove-vertical\">\n <edyta-grammar-item [content]=\"grammar\"></edyta-grammar-item>\n </div>\n </div>\n}\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-entity-bottom-pane>\n}\n", styles: [".grammar-content-wrapper{display:flex}img[src$=\".svg\"].grammar-picture{height:100%}.grammar-picture-wrapper-left{text-align:left}.grammar-picture-wrapper-right{text-align:right}\n"], dependencies: [{ kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }, { kind: "component", type: GrammarItemComponent, selector: "edyta-grammar-item", inputs: ["content"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
718
718
|
}
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: GrammarComponent, decorators: [{
|
|
720
720
|
type: Component,
|
|
721
|
-
args: [{ selector: 'edyta-grammar', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\" [style.backgroundColor]=\"grammar.color?.background\" [style.color]=\"grammar.color?.text\"
|
|
721
|
+
args: [{ selector: 'edyta-grammar', encapsulation: ViewEncapsulation.None, standalone: false, template: "@for (grammar of entity.content; track grammar) {\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\" [style.backgroundColor]=\"grammar.color?.background\" [style.color]=\"grammar.color?.text\">\n <div class=\"uk-padding uk-padding-remove-vertical\">\n <edyta-grammar-item [content]=\"grammar\"></edyta-grammar-item>\n </div>\n </div>\n}\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-entity-bottom-pane>\n}\n", styles: [".grammar-content-wrapper{display:flex}img[src$=\".svg\"].grammar-picture{height:100%}.grammar-picture-wrapper-left{text-align:left}.grammar-picture-wrapper-right{text-align:right}\n"] }]
|
|
722
722
|
}], propDecorators: { entity: [{
|
|
723
723
|
type: Input,
|
|
724
724
|
args: [{ required: true }]
|
|
@@ -765,10 +765,10 @@ class VocabularyCardBaseComponent {
|
|
|
765
765
|
'card__face-front-invisible': this.frontCardTitleVisibilityMode === Vocabulary.FrontCardTitleVisibilityMode.Invisible
|
|
766
766
|
};
|
|
767
767
|
}
|
|
768
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
769
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
769
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: VocabularyCardBaseComponent, isStandalone: false, selector: "ng-component", inputs: { vocabulary: "vocabulary", frontCardTitleVisibilityMode: "frontCardTitleVisibilityMode", titleIsVisible: "titleIsVisible" }, ngImport: i0, template: '', isInline: true }); }
|
|
770
770
|
}
|
|
771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardBaseComponent, decorators: [{
|
|
772
772
|
type: Component,
|
|
773
773
|
args: [{
|
|
774
774
|
template: '',
|
|
@@ -798,19 +798,19 @@ class VocabularyCardFlipComponent extends VocabularyCardBaseComponent {
|
|
|
798
798
|
onToggleFlip() {
|
|
799
799
|
this.flipped = !this.flipped;
|
|
800
800
|
}
|
|
801
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
802
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
801
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardFlipComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
802
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: VocabularyCardFlipComponent, isStandalone: false, selector: "edyta-vocabulary-card-flip", usesInheritance: true, ngImport: i0, template: "<!-- https://www.w3schools.com/howto/howto_css_flip_card.asp -->\n<div class=\"uk-card uk-card-default uk-card-small card-flip-transition-point\" [ngClass]=\"{ flipped: !!flipped }\">\n <div class=\"card__face card__face-front\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\" [ngClass]=\"calculateHtmlClasses4Title()\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\">\n <p>\n <img [src]=\"vocabulary.picture\" [alt]=\"vocabulary.key\">\n </p>\n </div>\n <div class=\"uk-card-footer\">\n <a (click)=\"onToggleFlip()\"><i class=\"mdi mdi-24px mdi-rotate-right\"></i></a>\n </div>\n </div>\n <div class=\"card__face card__face-back uk-box-shadow-large\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\" style=\"overflow-y: auto;\"> <!-- overflow-y: auto; MUST be applied right here. If it would be applied in CSS class it would destroy the transition -->\n <p [innerHTML]=\"vocabulary.description\"></p>\n </div>\n <div class=\"uk-card-footer\">\n <a (click)=\"onToggleFlip()\"><i class=\"mdi mdi-24px mdi-rotate-right\"></i></a>\n </div>\n </div>\n</div>\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.card-flip-transition-point{position:relative;width:100%;min-height:22rem;height:100%;text-align:center;transition:1s ease-in-out;transform-style:preserve-3d}.card-flip-transition-point.flipped{transform:rotateY(181deg)}.card__face-front,.card__face-back{position:absolute;padding:0 20px;min-height:22rem;box-sizing:border-box;left:0;right:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.card__face-front{background-color:#e4e4e4;box-shadow:0 5px 5px #00000040}.card__face-front .uk-card-header{border-bottom-color:#fff}.card__face-front .uk-card-footer{border-top-color:#fff}.card__face-back{transform:rotateY(-180deg)}.card__face .uk-card-body{height:11.8rem}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
803
803
|
}
|
|
804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardFlipComponent, decorators: [{
|
|
805
805
|
type: Component,
|
|
806
806
|
args: [{ selector: 'edyta-vocabulary-card-flip', standalone: false, template: "<!-- https://www.w3schools.com/howto/howto_css_flip_card.asp -->\n<div class=\"uk-card uk-card-default uk-card-small card-flip-transition-point\" [ngClass]=\"{ flipped: !!flipped }\">\n <div class=\"card__face card__face-front\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\" [ngClass]=\"calculateHtmlClasses4Title()\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\">\n <p>\n <img [src]=\"vocabulary.picture\" [alt]=\"vocabulary.key\">\n </p>\n </div>\n <div class=\"uk-card-footer\">\n <a (click)=\"onToggleFlip()\"><i class=\"mdi mdi-24px mdi-rotate-right\"></i></a>\n </div>\n </div>\n <div class=\"card__face card__face-back uk-box-shadow-large\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\" style=\"overflow-y: auto;\"> <!-- overflow-y: auto; MUST be applied right here. If it would be applied in CSS class it would destroy the transition -->\n <p [innerHTML]=\"vocabulary.description\"></p>\n </div>\n <div class=\"uk-card-footer\">\n <a (click)=\"onToggleFlip()\"><i class=\"mdi mdi-24px mdi-rotate-right\"></i></a>\n </div>\n </div>\n</div>\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.card-flip-transition-point{position:relative;width:100%;min-height:22rem;height:100%;text-align:center;transition:1s ease-in-out;transform-style:preserve-3d}.card-flip-transition-point.flipped{transform:rotateY(181deg)}.card__face-front,.card__face-back{position:absolute;padding:0 20px;min-height:22rem;box-sizing:border-box;left:0;right:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.card__face-front{background-color:#e4e4e4;box-shadow:0 5px 5px #00000040}.card__face-front .uk-card-header{border-bottom-color:#fff}.card__face-front .uk-card-footer{border-top-color:#fff}.card__face-back{transform:rotateY(-180deg)}.card__face .uk-card-body{height:11.8rem}\n"] }]
|
|
807
807
|
}] });
|
|
808
808
|
|
|
809
809
|
class VocabularyCardStandardComponent extends VocabularyCardBaseComponent {
|
|
810
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
811
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
810
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardStandardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
811
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: VocabularyCardStandardComponent, isStandalone: false, selector: "edyta-vocabulary-card-standard", usesInheritance: true, ngImport: i0, template: "<div class=\"uk-card uk-card-default uk-card-small uk-box-shadow-large\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\" [ngClass]=\"calculateHtmlClasses4Title()\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\">\n <p>\n <img [src]=\"vocabulary.picture\" [alt]=\"vocabulary.key\">\n </p>\n </div>\n <div class=\"uk-card-footer\">\n <i class=\"mdi mdi-24px mdi-map-marker-question-outline\"\n [attr.uk-tooltip]=\"'title:' + vocabulary.meaning +'; pos: bottom; animation: uk-animation-slide-bottom; duration: 200'\"></i>\n </div>\n</div>\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.uk-card{padding:0 20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
812
812
|
}
|
|
813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyCardStandardComponent, decorators: [{
|
|
814
814
|
type: Component,
|
|
815
815
|
args: [{ selector: 'edyta-vocabulary-card-standard', standalone: false, template: "<div class=\"uk-card uk-card-default uk-card-small uk-box-shadow-large\">\n <div class=\"uk-card-header uk-text-large\">\n <h3 class=\"uk-card-title uk-text-bold\" [ngClass]=\"calculateHtmlClasses4Title()\">{{ vocabulary.key }}</h3>\n </div>\n <div class=\"uk-card-body\">\n <p>\n <img [src]=\"vocabulary.picture\" [alt]=\"vocabulary.key\">\n </p>\n </div>\n <div class=\"uk-card-footer\">\n <i class=\"mdi mdi-24px mdi-map-marker-question-outline\"\n [attr.uk-tooltip]=\"'title:' + vocabulary.meaning +'; pos: bottom; animation: uk-animation-slide-bottom; duration: 200'\"></i>\n </div>\n</div>\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.uk-card{padding:0 20px}\n"] }]
|
|
816
816
|
}] });
|
|
@@ -871,12 +871,12 @@ class VocabularyComponent extends CanvasComponent {
|
|
|
871
871
|
}
|
|
872
872
|
});
|
|
873
873
|
}
|
|
874
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
875
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
874
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
875
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: VocabularyComponent, isStandalone: false, selector: "edyta-vocabulary", inputs: { visibilityButtonShowTitleText: "visibilityButtonShowTitleText", visibilityButtonHideTitleText: "visibilityButtonHideTitleText", shuffleButtonText: "shuffleButtonText", entity: "entity" }, usesInheritance: true, ngImport: i0, template: "@if (buttonPaneIsVisible()) {\n <div class=\"uk-margin-bottom uk-text-right button-pane\">\n @if (!titleIsVisibleByDefault()) {\n <button type=\"button\" class=\"uk-button uk-button-default uk-margin-small-right\" (click)=\"onToggleTitleVisibility()\">{{ getTitleVisibilityButtonText() }}</button>\n }\n @if (entity.shuffleButtonEnabled) {\n <button type=\"button\" class=\"uk-button uk-button-primary uk-margin-small-right\" (click)=\"entity.onShuffle()\">{{ shuffleButtonText }}</button>\n }\n </div>\n}\n\n<div class=\"uk-child-width-1-2@s uk-child-width-1-3@m uk-grid-match\" uk-grid uk-height-match=\"target: > div .uk-card-header\">\n @for (vocabulary of entity.content; track vocabulary) {\n <div id=\"vocabulary-card-section\">\n @if (!vocabulary.flip) {\n <edyta-vocabulary-card-standard [vocabulary]=\"vocabulary\" [titleIsVisible]=\"titleIsVisible\" [frontCardTitleVisibilityMode]=\"entity.frontCardTitleVisibilityMode\"></edyta-vocabulary-card-standard>\n }\n @if (vocabulary.flip) {\n <edyta-vocabulary-card-flip [vocabulary]=\"vocabulary\" [titleIsVisible]=\"titleIsVisible\" [frontCardTitleVisibilityMode]=\"entity.frontCardTitleVisibilityMode\"></edyta-vocabulary-card-flip>\n }\n </div>\n }\n</div>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-entity-bottom-pane>\n}\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.heading .uk-align-right{margin:0!important}.uk-heading-small{display:inline-block}\n"], dependencies: [{ kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }, { kind: "component", type: VocabularyCardFlipComponent, selector: "edyta-vocabulary-card-flip" }, { kind: "component", type: VocabularyCardStandardComponent, selector: "edyta-vocabulary-card-standard" }] }); }
|
|
876
876
|
}
|
|
877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: VocabularyComponent, decorators: [{
|
|
878
878
|
type: Component,
|
|
879
|
-
args: [{ selector: 'edyta-vocabulary', standalone: false, template: "<div class=\"uk-margin-bottom uk-text-right button-pane\"
|
|
879
|
+
args: [{ selector: 'edyta-vocabulary', standalone: false, template: "@if (buttonPaneIsVisible()) {\n <div class=\"uk-margin-bottom uk-text-right button-pane\">\n @if (!titleIsVisibleByDefault()) {\n <button type=\"button\" class=\"uk-button uk-button-default uk-margin-small-right\" (click)=\"onToggleTitleVisibility()\">{{ getTitleVisibilityButtonText() }}</button>\n }\n @if (entity.shuffleButtonEnabled) {\n <button type=\"button\" class=\"uk-button uk-button-primary uk-margin-small-right\" (click)=\"entity.onShuffle()\">{{ shuffleButtonText }}</button>\n }\n </div>\n}\n\n<div class=\"uk-child-width-1-2@s uk-child-width-1-3@m uk-grid-match\" uk-grid uk-height-match=\"target: > div .uk-card-header\">\n @for (vocabulary of entity.content; track vocabulary) {\n <div id=\"vocabulary-card-section\">\n @if (!vocabulary.flip) {\n <edyta-vocabulary-card-standard [vocabulary]=\"vocabulary\" [titleIsVisible]=\"titleIsVisible\" [frontCardTitleVisibilityMode]=\"entity.frontCardTitleVisibilityMode\"></edyta-vocabulary-card-standard>\n }\n @if (vocabulary.flip) {\n <edyta-vocabulary-card-flip [vocabulary]=\"vocabulary\" [titleIsVisible]=\"titleIsVisible\" [frontCardTitleVisibilityMode]=\"entity.frontCardTitleVisibilityMode\"></edyta-vocabulary-card-flip>\n }\n </div>\n }\n</div>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-entity-bottom-pane>\n}\n", styles: [".uk-card,.card__face{border-radius:1.5rem}.uk-card-header,.uk-card-body,.uk-card-footer{text-align:center}.uk-card-body img{max-height:11.8rem}.uk-card-body img[src$=\".svg\"]{filter:opacity(.8) drop-shadow(5px 5px 5px rgba(0,0,0,.7))}.uk-card-title{white-space:nowrap;overflow:hidden}.card__face-front-blur{filter:blur(.5rem)}.card__face-front-invisible{filter:blur(.5rem);color:transparent}.heading .uk-align-right{margin:0!important}.uk-heading-small{display:inline-block}\n"] }]
|
|
880
880
|
}], propDecorators: { visibilityButtonShowTitleText: [{
|
|
881
881
|
type: Input,
|
|
882
882
|
args: [{ required: true }]
|
|
@@ -892,10 +892,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
892
892
|
}] } });
|
|
893
893
|
|
|
894
894
|
class FormTypeTextComponent {
|
|
895
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
896
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
895
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
896
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: FormTypeTextComponent, isStandalone: false, selector: "edyta-form-type-text", ngImport: i0, template: "\n", styles: [""] }); }
|
|
897
897
|
}
|
|
898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeTextComponent, decorators: [{
|
|
899
899
|
type: Component,
|
|
900
900
|
args: [{ selector: 'edyta-form-type-text', standalone: false, template: "\n" }]
|
|
901
901
|
}] });
|
|
@@ -910,10 +910,10 @@ class FormTypeInputComponent extends CanvasComponent {
|
|
|
910
910
|
onChange() {
|
|
911
911
|
this.contentChange.emit(this.content);
|
|
912
912
|
}
|
|
913
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
914
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
914
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: FormTypeInputComponent, isStandalone: false, selector: "edyta-form-type-input", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <input class=\"uk-input uk-width-1-1@s uk-width-1-3@m\" type=\"text\" placeholder=\"Provide a text\" [(ngModel)]=\"content.state\" (input)=\"onChange()\">\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
915
915
|
}
|
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeInputComponent, decorators: [{
|
|
917
917
|
type: Component,
|
|
918
918
|
args: [{ selector: 'edyta-form-type-input', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <input class=\"uk-input uk-width-1-1@s uk-width-1-3@m\" type=\"text\" placeholder=\"Provide a text\" [(ngModel)]=\"content.state\" (input)=\"onChange()\">\n </div>\n</div>\n" }]
|
|
919
919
|
}], propDecorators: { content: [{
|
|
@@ -930,12 +930,12 @@ class FormTypeSelectComponent extends CanvasComponent {
|
|
|
930
930
|
onChange() {
|
|
931
931
|
this.contentChange.emit(this.content);
|
|
932
932
|
}
|
|
933
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
934
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
934
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormTypeSelectComponent, isStandalone: false, selector: "edyta-form-type-select", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <select class=\"uk-select uk-width-1-1@s uk-width-1-3@m uk-width-1-4@l\" [(ngModel)]=\"content.state\" (change)=\"onChange()\">\n <option></option>\n @for (option of content.options; track option) {\n <option [value]=\"option.id\">{{ option.text }}</option>\n }\n </select>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
935
935
|
}
|
|
936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeSelectComponent, decorators: [{
|
|
937
937
|
type: Component,
|
|
938
|
-
args: [{ selector: 'edyta-form-type-select', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <select class=\"uk-select uk-width-1-1@s uk-width-1-3@m uk-width-1-4@l\" [(ngModel)]=\"content.state\" (change)=\"onChange()\">\n <option></option>\n
|
|
938
|
+
args: [{ selector: 'edyta-form-type-select', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <select class=\"uk-select uk-width-1-1@s uk-width-1-3@m uk-width-1-4@l\" [(ngModel)]=\"content.state\" (change)=\"onChange()\">\n <option></option>\n @for (option of content.options; track option) {\n <option [value]=\"option.id\">{{ option.text }}</option>\n }\n </select>\n </div>\n</div>\n" }]
|
|
939
939
|
}], propDecorators: { content: [{
|
|
940
940
|
type: Input
|
|
941
941
|
}] } });
|
|
@@ -950,12 +950,12 @@ class FormTypeRadioComponent extends CanvasComponent {
|
|
|
950
950
|
onChange() {
|
|
951
951
|
this.contentChange.emit(this.content);
|
|
952
952
|
}
|
|
953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
954
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
953
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
954
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormTypeRadioComponent, isStandalone: false, selector: "edyta-form-type-radio", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n @for (option of content.options; track option) {\n <div>\n <label>\n <input class=\"uk-radio\" type=\"radio\" [name]=\"'radio-' + content.key\" [(ngModel)]=\"content.state\" (change)=\"onChange()\" [value]=\"option.id\"> {{ option.text }}\n </label>\n </div>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
955
955
|
}
|
|
956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeRadioComponent, decorators: [{
|
|
957
957
|
type: Component,
|
|
958
|
-
args: [{ selector: 'edyta-form-type-radio', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n
|
|
958
|
+
args: [{ selector: 'edyta-form-type-radio', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n @for (option of content.options; track option) {\n <div>\n <label>\n <input class=\"uk-radio\" type=\"radio\" [name]=\"'radio-' + content.key\" [(ngModel)]=\"content.state\" (change)=\"onChange()\" [value]=\"option.id\"> {{ option.text }}\n </label>\n </div>\n }\n </div>\n</div>\n" }]
|
|
959
959
|
}], propDecorators: { content: [{
|
|
960
960
|
type: Input
|
|
961
961
|
}] } });
|
|
@@ -970,12 +970,12 @@ class FormTypeCheckboxComponent extends CanvasComponent {
|
|
|
970
970
|
onChange() {
|
|
971
971
|
this.contentChange.emit(this.content);
|
|
972
972
|
}
|
|
973
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
974
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
974
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormTypeCheckboxComponent, isStandalone: false, selector: "edyta-form-type-checkbox", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n @for (option of content.options; track option) {\n <div>\n <label>\n <input class=\"uk-checkbox\" type=\"checkbox\" [(ngModel)]=\"option.checked\" (change)=\"onChange()\" [name]=\"'checkbox-' + content.key\"> {{\n option.text }}\n </label>\n </div>\n }\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
975
975
|
}
|
|
976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeCheckboxComponent, decorators: [{
|
|
977
977
|
type: Component,
|
|
978
|
-
args: [{ selector: 'edyta-form-type-checkbox', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n
|
|
978
|
+
args: [{ selector: 'edyta-form-type-checkbox', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n @for (option of content.options; track option) {\n <div>\n <label>\n <input class=\"uk-checkbox\" type=\"checkbox\" [(ngModel)]=\"option.checked\" (change)=\"onChange()\" [name]=\"'checkbox-' + content.key\"> {{\n option.text }}\n </label>\n </div>\n }\n </div>\n</div>\n" }]
|
|
979
979
|
}], propDecorators: { content: [{
|
|
980
980
|
type: Input
|
|
981
981
|
}] } });
|
|
@@ -990,10 +990,10 @@ class FormTypeDateComponent extends CanvasComponent {
|
|
|
990
990
|
onChange() {
|
|
991
991
|
this.contentChange.emit(this.content);
|
|
992
992
|
}
|
|
993
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
994
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
993
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeDateComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
994
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.13", type: FormTypeDateComponent, isStandalone: false, selector: "edyta-form-type-date", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <input class=\"uk-input uk-width-1-1@s uk-width-1-3@m uk-width-1-4@l\" type=\"date\" [(ngModel)]=\"content.state\" (input)=\"onChange()\" />\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
995
995
|
}
|
|
996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
996
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeDateComponent, decorators: [{
|
|
997
997
|
type: Component,
|
|
998
998
|
args: [{ selector: 'edyta-form-type-date', standalone: false, template: "<div class=\"uk-margin\">\n <div class=\"uk-form-controls\">\n <input class=\"uk-input uk-width-1-1@s uk-width-1-3@m uk-width-1-4@l\" type=\"date\" [(ngModel)]=\"content.state\" (input)=\"onChange()\" />\n </div>\n</div>\n" }]
|
|
999
999
|
}], propDecorators: { content: [{
|
|
@@ -1001,12 +1001,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
1001
1001
|
}] } });
|
|
1002
1002
|
|
|
1003
1003
|
class FormTypeUkuleleChordsComponent extends CanvasComponent {
|
|
1004
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1005
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1004
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeUkuleleChordsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1005
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormTypeUkuleleChordsComponent, isStandalone: false, selector: "edyta-form-type-ukulele-chords", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "\n<div uk-grid>\n @for (chordKey of content.ukuleleChords; track chordKey) {\n <div edyta-chord-ukulele class=\"uk-width-1-2@s uk-width-1-4@m uk-width-1-6@l\" [chordKey]=\"chordKey\"></div>\n }\n</div>", styles: [""], dependencies: [{ kind: "component", type: i1$2.ChordUkuleleComponent, selector: "[edyta-chord-ukulele]", inputs: ["chordKey"] }] }); }
|
|
1006
1006
|
}
|
|
1007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeUkuleleChordsComponent, decorators: [{
|
|
1008
1008
|
type: Component,
|
|
1009
|
-
args: [{ selector: 'edyta-form-type-ukulele-chords', standalone: false, template: "\n<div uk-grid>\n
|
|
1009
|
+
args: [{ selector: 'edyta-form-type-ukulele-chords', standalone: false, template: "\n<div uk-grid>\n @for (chordKey of content.ukuleleChords; track chordKey) {\n <div edyta-chord-ukulele class=\"uk-width-1-2@s uk-width-1-4@m uk-width-1-6@l\" [chordKey]=\"chordKey\"></div>\n }\n</div>" }]
|
|
1010
1010
|
}], propDecorators: { content: [{
|
|
1011
1011
|
type: Input,
|
|
1012
1012
|
args: [{ required: true }]
|
|
@@ -1044,12 +1044,12 @@ class FormTypeItemComponent extends CanvasComponent {
|
|
|
1044
1044
|
onChange() {
|
|
1045
1045
|
this.contentChange.emit(this.content);
|
|
1046
1046
|
}
|
|
1047
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1048
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1047
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1048
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormTypeItemComponent, isStandalone: false, selector: "edyta-form-type-item", inputs: { content: "content" }, usesInheritance: true, ngImport: i0, template: "<div [style.backgroundColor]=\"content.color?.background\" [style.color]=\"content.color?.text\">\n <fieldset class=\"uk-fieldset uk-margin-small-left\">\n\n <legend class=\"uk-legend\">\n {{ content.text }} @if (!['text', 'ukuleleChords'].includes(content.type) && content.mandatory) {\n <div class=\"required-indicator\"> *</div>\n }\n </legend>\n\n @if (showDecriptionSection()) {\n <div class=\"uk-margin-top\">\n <div class=\"form-content-wrapper\">\n @if (content.description) {\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ showPicture() ? 'uk-width-3-4@m' : '' ]\">\n <p [innerHTML]=\"content.description\"></p>\n </div>\n }\n @if (showPicture()) {\n <div\n class=\"uk-margin-small-right\"\n [ngClass]=\"[ content.description ? 'uk-width-1-3@m uk-width-1-4@l' : 'uk-width-1-1', content.description && !isPictureAlwaysVisible() ? 'uk-visible@m' : '' ]\"\n >\n <img class=\"form-picture\" [src]=\"$any(content.picture)?.url || content.picture\" [alt]=\"content.text\">\n </div>\n }\n </div>\n </div>\n }\n @if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"content.media?.url || ''\" [fileMimeType]=\"content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n }\n\n <div class=\"uk-margin form-content-wrapper\">\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ !content.description && showPicture() ? 'uk-width-3-4@m' : '' ]\">\n @if (content.type === 'text') {\n <edyta-form-type-text></edyta-form-type-text>\n }\n @if (content.type === 'input') {\n <edyta-form-type-input [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-input>\n }\n @if (content.type === 'select') {\n <edyta-form-type-select [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-select>\n }\n @if (content.type === 'radio') {\n <edyta-form-type-radio [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-radio>\n }\n @if (content.type === 'check') {\n <edyta-form-type-checkbox [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-checkbox>\n }\n @if (content.type === 'date') {\n <edyta-form-type-date [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-date>\n }\n @if (content.type === 'ukuleleChords') {\n <edyta-form-type-ukulele-chords [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-form-type-ukulele-chords>\n }\n </div>\n @if (!content.description && showPicture()) {\n <div class=\"uk-margin-small-right uk-width-1-3@m uk-width-1-4@l\" [ngClass]=\"[ !isPictureAlwaysVisible() ? 'uk-visible@m' : '' ]\"\n >\n <img class=\"form-picture\" [src]=\"$any(content.picture)?.url || content.picture\" [alt]=\"content.text\">\n </div>\n }\n </div>\n\n</fieldset>\n</div>\n\n@if (content.divider) {\n <hr class=\"uk-divider-icon\">\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MediaElementComponent, selector: "edyta-media-element" }, { kind: "component", type: FormTypeTextComponent, selector: "edyta-form-type-text" }, { kind: "component", type: FormTypeInputComponent, selector: "edyta-form-type-input", inputs: ["content"] }, { kind: "component", type: FormTypeSelectComponent, selector: "edyta-form-type-select", inputs: ["content"] }, { kind: "component", type: FormTypeRadioComponent, selector: "edyta-form-type-radio", inputs: ["content"] }, { kind: "component", type: FormTypeCheckboxComponent, selector: "edyta-form-type-checkbox", inputs: ["content"] }, { kind: "component", type: FormTypeDateComponent, selector: "edyta-form-type-date", inputs: ["content"] }, { kind: "component", type: FormTypeUkuleleChordsComponent, selector: "edyta-form-type-ukulele-chords", inputs: ["content"] }] }); }
|
|
1049
1049
|
}
|
|
1050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormTypeItemComponent, decorators: [{
|
|
1051
1051
|
type: Component,
|
|
1052
|
-
args: [{ selector: 'edyta-form-type-item', standalone: false, template: "<div [style.backgroundColor]=\"content.color?.background\" [style.color]=\"content.color?.text\">\n <fieldset class=\"uk-fieldset uk-margin-small-left\">\n\n <legend class=\"uk-legend\">\n {{ content.text }}
|
|
1052
|
+
args: [{ selector: 'edyta-form-type-item', standalone: false, template: "<div [style.backgroundColor]=\"content.color?.background\" [style.color]=\"content.color?.text\">\n <fieldset class=\"uk-fieldset uk-margin-small-left\">\n\n <legend class=\"uk-legend\">\n {{ content.text }} @if (!['text', 'ukuleleChords'].includes(content.type) && content.mandatory) {\n <div class=\"required-indicator\"> *</div>\n }\n </legend>\n\n @if (showDecriptionSection()) {\n <div class=\"uk-margin-top\">\n <div class=\"form-content-wrapper\">\n @if (content.description) {\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ showPicture() ? 'uk-width-3-4@m' : '' ]\">\n <p [innerHTML]=\"content.description\"></p>\n </div>\n }\n @if (showPicture()) {\n <div\n class=\"uk-margin-small-right\"\n [ngClass]=\"[ content.description ? 'uk-width-1-3@m uk-width-1-4@l' : 'uk-width-1-1', content.description && !isPictureAlwaysVisible() ? 'uk-visible@m' : '' ]\"\n >\n <img class=\"form-picture\" [src]=\"$any(content.picture)?.url || content.picture\" [alt]=\"content.text\">\n </div>\n }\n </div>\n </div>\n }\n @if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"content.media?.url || ''\" [fileMimeType]=\"content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n }\n\n <div class=\"uk-margin form-content-wrapper\">\n <div class=\"uk-width-1-1@s\" [ngClass]=\"[ !content.description && showPicture() ? 'uk-width-3-4@m' : '' ]\">\n @if (content.type === 'text') {\n <edyta-form-type-text></edyta-form-type-text>\n }\n @if (content.type === 'input') {\n <edyta-form-type-input [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-input>\n }\n @if (content.type === 'select') {\n <edyta-form-type-select [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-select>\n }\n @if (content.type === 'radio') {\n <edyta-form-type-radio [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-radio>\n }\n @if (content.type === 'check') {\n <edyta-form-type-checkbox [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-checkbox>\n }\n @if (content.type === 'date') {\n <edyta-form-type-date [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-date>\n }\n @if (content.type === 'ukuleleChords') {\n <edyta-form-type-ukulele-chords [content]=\"$any(content)\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\"></edyta-form-type-ukulele-chords>\n }\n </div>\n @if (!content.description && showPicture()) {\n <div class=\"uk-margin-small-right uk-width-1-3@m uk-width-1-4@l\" [ngClass]=\"[ !isPictureAlwaysVisible() ? 'uk-visible@m' : '' ]\"\n >\n <img class=\"form-picture\" [src]=\"$any(content.picture)?.url || content.picture\" [alt]=\"content.text\">\n </div>\n }\n </div>\n\n</fieldset>\n</div>\n\n@if (content.divider) {\n <hr class=\"uk-divider-icon\">\n}\n" }]
|
|
1053
1053
|
}], propDecorators: { content: [{
|
|
1054
1054
|
type: Input
|
|
1055
1055
|
}] } });
|
|
@@ -1129,12 +1129,12 @@ class FormComponent extends CanvasComponent {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: FormComponent, isStandalone: false, selector: "edyta-form", inputs: { entity: "entity" }, usesInheritance: true, ngImport: i0, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n @for (item of formItems; track item) {\n <edyta-form-type-item [content]=\"item\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-item>\n }\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".required-indicator{color:red;display:inline-block;margin-left:.5rem}.form-content-wrapper{display:flex}\n"], dependencies: [{ kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }, { kind: "component", type: FormTypeItemComponent, selector: "edyta-form-type-item", inputs: ["content"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1134
1134
|
}
|
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: FormComponent, decorators: [{
|
|
1136
1136
|
type: Component,
|
|
1137
|
-
args: [{ selector: 'edyta-form', encapsulation: ViewEncapsulation.None, standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n <edyta-form-type-item [content]=\"item\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"
|
|
1137
|
+
args: [{ selector: 'edyta-form', encapsulation: ViewEncapsulation.None, standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n @for (item of formItems; track item) {\n <edyta-form-type-item [content]=\"item\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (contentChange)=\"onChange()\"></edyta-form-type-item>\n }\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".required-indicator{color:red;display:inline-block;margin-left:.5rem}.form-content-wrapper{display:flex}\n"] }]
|
|
1138
1138
|
}], ctorParameters: () => [], propDecorators: { entity: [{
|
|
1139
1139
|
type: Input,
|
|
1140
1140
|
args: [{ required: true }]
|
|
@@ -1272,13 +1272,13 @@ class RiddleComponent extends CanvasComponent {
|
|
|
1272
1272
|
_buildProgressSnapshot() {
|
|
1273
1273
|
return this._entity.content.input.map(({ key, state }) => ({ key, state }));
|
|
1274
1274
|
}
|
|
1275
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1276
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1275
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RiddleComponent, deps: [{ token: i1$3.DomSanitizer }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1276
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: RiddleComponent, isStandalone: false, selector: "edyta-riddle", inputs: { entity: "entity" }, outputs: { errorReceived: "errorReceived" }, usesInheritance: true, ngImport: i0, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n\n @if (entity.content.media.url) {\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\">\n <div class=\"uk-child-width-expand\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"entity.content.media.url\" [fileMimeType]=\"entity.content.media.mimeType\"></edyta-media-element>\n </div>\n <div></div>\n </div>\n </div>\n }\n\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1\">\n <div class=\"uk-padding uk-padding-remove-vertical\" [innerHTML]=\"html\"></div>\n </div>\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".uk-section>div>*:last-of-type{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.MediaElementComponent, selector: "edyta-media-element" }, { kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1277
1277
|
}
|
|
1278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RiddleComponent, decorators: [{
|
|
1279
1279
|
type: Component,
|
|
1280
|
-
args: [{ selector: 'edyta-riddle', encapsulation: ViewEncapsulation.None, standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\"
|
|
1281
|
-
}], ctorParameters: () => [{ type: i1$
|
|
1280
|
+
args: [{ selector: 'edyta-riddle', encapsulation: ViewEncapsulation.None, standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n\n @if (entity.content.media.url) {\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1 uk-margin-bottom\">\n <div class=\"uk-child-width-expand\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"entity.content.media.url\" [fileMimeType]=\"entity.content.media.mimeType\"></edyta-media-element>\n </div>\n <div></div>\n </div>\n </div>\n }\n\n <div class=\"uk-section uk-section-small uk-section-muted uk-width-1-1\">\n <div class=\"uk-padding uk-padding-remove-vertical\" [innerHTML]=\"html\"></div>\n </div>\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [".uk-section>div>*:last-of-type{margin-bottom:0}\n"] }]
|
|
1281
|
+
}], ctorParameters: () => [{ type: i1$3.DomSanitizer }, { type: i2.Router }], propDecorators: { errorReceived: [{
|
|
1282
1282
|
type: Output
|
|
1283
1283
|
}], entity: [{
|
|
1284
1284
|
type: Input,
|
|
@@ -1329,20 +1329,20 @@ class YesnoComponent extends CanvasComponent {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
return answer === 'true' ? true : false;
|
|
1331
1331
|
}
|
|
1332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: YesnoComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1333
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.13", type: YesnoComponent, isStandalone: false, selector: "edyta-yes-no", inputs: { entity: "entity" }, usesInheritance: true, ngImport: i0, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n @if (entity && entity.content.innerHTML) {\n <div class=\"uk-child-width-1 grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\" [innerHTML]=\"entity.content.innerHTML\"></div>\n </div>\n </div>\n }\n\n @if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"entity.content.media?.url || ''\" [fileMimeType]=\"entity.content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n }\n\n <div class=\"uk-margin-medium-top\">\n <ul class=\"uk-list uk-list-striped\">\n @for (item of entity.content.input; track item) {\n <li>\n <div uk-grid>\n <div class=\"uk-width-expand\">{{ item.question }}</div>\n <div><edyta-boolean-element [(value)]=\"item.answer\" (valueChange)=\"onChange()\"></edyta-boolean-element></div>\n </div>\n </li>\n }\n </ul>\n </div>\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.BooleanElementComponent, selector: "edyta-boolean-element", inputs: ["yesButtonText", "noButtonText"] }, { kind: "component", type: i2$1.MediaElementComponent, selector: "edyta-media-element" }, { kind: "component", type: EntityBottomPaneComponent, selector: "edyta-entity-bottom-pane", inputs: ["checkButtonText", "previousButtonText", "nextButtonText", "entity"], outputs: ["evaluate"] }] }); }
|
|
1334
1334
|
}
|
|
1335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: YesnoComponent, decorators: [{
|
|
1336
1336
|
type: Component,
|
|
1337
|
-
args: [{ selector: 'edyta-yes-no', standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n
|
|
1337
|
+
args: [{ selector: 'edyta-yes-no', standalone: false, template: "<form class=\"uk-form-stacked\" (submit)=\"onEvaluate()\">\n @if (entity && entity.content.innerHTML) {\n <div class=\"uk-child-width-1 grid\" uk-grid>\n <div>\n <div class=\"uk-width-1 uk-card uk-card-default uk-card-body\" [innerHTML]=\"entity.content.innerHTML\"></div>\n </div>\n </div>\n }\n\n @if (showMedia()) {\n <div class=\"uk-child-width-expand uk-margin-top\" uk-grid>\n <div></div>\n <div class=\"uk-width-1-1@m uk-width-3-4@l uk-text-center\">\n <edyta-media-element [fileContent]=\"entity.content.media?.url || ''\" [fileMimeType]=\"entity.content.media?.mimeType || ''\" ></edyta-media-element>\n </div>\n <div></div>\n </div>\n }\n\n <div class=\"uk-margin-medium-top\">\n <ul class=\"uk-list uk-list-striped\">\n @for (item of entity.content.input; track item) {\n <li>\n <div uk-grid>\n <div class=\"uk-width-expand\">{{ item.question }}</div>\n <div><edyta-boolean-element [(value)]=\"item.answer\" (valueChange)=\"onChange()\"></edyta-boolean-element></div>\n </div>\n </li>\n }\n </ul>\n </div>\n</form>\n\n@if (showBottomPane) {\n <edyta-entity-bottom-pane [entity]=\"entity\" [checkButtonText]=\"checkButtonText\" [previousButtonText]=\"previousButtonText\" [nextButtonText]=\"nextButtonText\" (evaluate)=\"onEvaluate()\"></edyta-entity-bottom-pane>\n}\n" }]
|
|
1338
1338
|
}], propDecorators: { entity: [{
|
|
1339
1339
|
type: Input,
|
|
1340
1340
|
args: [{ required: true }]
|
|
1341
1341
|
}] } });
|
|
1342
1342
|
|
|
1343
1343
|
class CanvasModule {
|
|
1344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1345
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanvasModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1345
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.13", ngImport: i0, type: CanvasModule, declarations: [CanvasComponent,
|
|
1346
1346
|
EntityBottomPaneComponent,
|
|
1347
1347
|
PuzzleComponent,
|
|
1348
1348
|
PuzzleTargetComponent,
|
|
@@ -1376,13 +1376,13 @@ class CanvasModule {
|
|
|
1376
1376
|
FormComponent,
|
|
1377
1377
|
RiddleComponent,
|
|
1378
1378
|
YesnoComponent] }); }
|
|
1379
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1379
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanvasModule, imports: [CommonModule,
|
|
1380
1380
|
RouterModule,
|
|
1381
1381
|
FormsModule,
|
|
1382
1382
|
ElementModule,
|
|
1383
1383
|
ChordModule] }); }
|
|
1384
1384
|
}
|
|
1385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: CanvasModule, decorators: [{
|
|
1386
1386
|
type: NgModule,
|
|
1387
1387
|
args: [{
|
|
1388
1388
|
declarations: [
|
|
@@ -1572,8 +1572,8 @@ class LearningEntityBase {
|
|
|
1572
1572
|
this._levelId = entity.level.id;
|
|
1573
1573
|
this._organizationKey = entity.organization.key;
|
|
1574
1574
|
this._picture = entity.picture;
|
|
1575
|
-
this.
|
|
1576
|
-
this.
|
|
1575
|
+
this._previous = entity.previous;
|
|
1576
|
+
this._next = entity.next;
|
|
1577
1577
|
this._assignment = {
|
|
1578
1578
|
organizationKey: entity.organization.key,
|
|
1579
1579
|
levelId: entity.level.id
|
|
@@ -1603,11 +1603,11 @@ class LearningEntityBase {
|
|
|
1603
1603
|
get picture() {
|
|
1604
1604
|
return this._picture;
|
|
1605
1605
|
}
|
|
1606
|
-
get
|
|
1607
|
-
return this.
|
|
1606
|
+
get previous() {
|
|
1607
|
+
return this._previous;
|
|
1608
1608
|
}
|
|
1609
|
-
get
|
|
1610
|
-
return this.
|
|
1609
|
+
get next() {
|
|
1610
|
+
return this._next;
|
|
1611
1611
|
}
|
|
1612
1612
|
getCentralService() {
|
|
1613
1613
|
return this._centralService;
|