@dataclouder/ngx-lessons 0.1.3 → 0.1.5
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/dataclouder-ngx-lessons.mjs +1020 -1008
- package/fesm2022/dataclouder-ngx-lessons.mjs.map +1 -1
- package/index.d.ts +706 -5
- package/package.json +1 -1
- package/lib/components/courses/course-detail/course-detail.component.d.ts +0 -5
- package/lib/components/courses/course-form/course-form.component.d.ts +0 -35
- package/lib/components/courses/course-list/course-list.component.d.ts +0 -25
- package/lib/components/courses/courses.component.d.ts +0 -5
- package/lib/components/courses/courses.service.d.ts +0 -14
- package/lib/components/courses/models/courses.model.d.ts +0 -24
- package/lib/components/courses-admin/courses-admin.component.d.ts +0 -8
- package/lib/components/dc-lessons/dc-lesson-card/dc-lesson-card.component.d.ts +0 -25
- package/lib/components/dc-lessons/dc-lesson-component-adder/dc-lesson-component-adder.component.d.ts +0 -11
- package/lib/components/dc-lessons/dc-lesson-editor/dc-lesson-editor.component.d.ts +0 -67
- package/lib/components/dc-lessons/dc-lesson-metadata-editor/dc-lesson-metadata-editor.component.d.ts +0 -43
- package/lib/components/dc-lessons/dc-lesson-renderer/dc-lesson-renderer.component.d.ts +0 -51
- package/lib/components/dc-lessons/dc-lesson-renderer/eval-agents-skills.d.ts +0 -1
- package/lib/components/dc-lessons/lesson-form/lesson-form.component.d.ts +0 -5
- package/lib/components/dc-lessons/lesson-list/dc-lesson-list.component.d.ts +0 -36
- package/lib/components/dynamic-components/dynamic-components-builder.service.d.ts +0 -8
- package/lib/components/dynamic-components/dynamic-components.service.d.ts +0 -30
- package/lib/components/dynamic-components/selector/selector-builder/selector-builder.component.d.ts +0 -16
- package/lib/components/dynamic-components/selector/selector.component.d.ts +0 -12
- package/lib/components/lesson-mini-components/components/ComponentBuilder.d.ts +0 -33
- package/lib/components/lesson-mini-components/components/ComponentWithForm.d.ts +0 -12
- package/lib/components/lesson-mini-components/components/lesson-dynamic.component.d.ts +0 -7
- package/lib/components/lesson-mini-components/components/lessons.clases.d.ts +0 -159
- package/lib/components/lesson-mini-components/components/speaker/speaker-builder/speaker-builder.component.d.ts +0 -14
- package/lib/components/lesson-mini-components/components/speaker/speaker.component.d.ts +0 -12
- package/lib/components/lesson-mini-components/components/text-writer/text-writer-buider/text-writer-buider.component.d.ts +0 -7
- package/lib/components/lesson-mini-components/components/text-writer/text-writer.component.d.ts +0 -16
- package/lib/components/lesson-mini-components/components/translationSwitcher/translationSwitcher.component.d.ts +0 -11
- package/lib/components/lesson-mini-components/components/translationSwitcher/translationSwitcherBuilder/translationSwitcherBuilder.component.d.ts +0 -7
- package/lib/models/lessons.pipes.d.ts +0 -28
- package/lib/models/notion.models.d.ts +0 -41
- package/lib/models/simple-agents.d.ts +0 -2
- package/lib/services/courses.service.d.ts +0 -7
- package/lib/services/default-lessons.service.d.ts +0 -20
- package/lib/services/lesson-ai.service.d.ts +0 -32
- package/lib/services/lesson-notion.service.d.ts +0 -35
- package/lib/services/lesson-utils.service.d.ts +0 -56
- package/public-api.d.ts +0 -27
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CourseDetailComponent {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CourseDetailComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CourseDetailComponent, "app-course-detail", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { ICourse } from '../models/courses.model';
|
|
4
|
-
import { AspectType, ResolutionType, CloudStorageData } from '@dataclouder/ngx-cloud-storage';
|
|
5
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class CourseFormComponent implements OnInit {
|
|
8
|
-
private route;
|
|
9
|
-
private courseService;
|
|
10
|
-
private fb;
|
|
11
|
-
private router;
|
|
12
|
-
private toastService;
|
|
13
|
-
private cdr;
|
|
14
|
-
storageImgSettings: {
|
|
15
|
-
path: string;
|
|
16
|
-
cropSettings: {
|
|
17
|
-
aspectRatio: AspectType;
|
|
18
|
-
resolutions: ResolutionType[];
|
|
19
|
-
resizeToWidth: number;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
extraFields: FormlyFieldConfig[];
|
|
23
|
-
courseForm: FormGroup<{
|
|
24
|
-
name: import("@angular/forms").FormControl<string>;
|
|
25
|
-
description: import("@angular/forms").FormControl<string>;
|
|
26
|
-
image: import("@angular/forms").FormControl<CloudStorageData>;
|
|
27
|
-
}>;
|
|
28
|
-
course: ICourse | null;
|
|
29
|
-
courseId: any;
|
|
30
|
-
ngOnInit(): Promise<void>;
|
|
31
|
-
save(): Promise<void>;
|
|
32
|
-
handleImageUpload(event: any): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CourseFormComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CourseFormComponent, "app-source-form", never, {}, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
-
import { ListFilterBarOptions, OnActionEvent, PaginationBase } from '@dataclouder/ngx-core';
|
|
3
|
-
import { ICourse } from '../models/courses.model';
|
|
4
|
-
import { MenuItem } from 'primeng/api';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class CourseListComponent extends PaginationBase implements OnInit {
|
|
7
|
-
private toastService;
|
|
8
|
-
private sourceService;
|
|
9
|
-
private cdr;
|
|
10
|
-
viewType: 'table' | 'card';
|
|
11
|
-
readonly onlyView: import("@angular/core").InputSignal<boolean>;
|
|
12
|
-
readonly onSelect: import("@angular/core").OutputEmitterRef<ICourse>;
|
|
13
|
-
courses: WritableSignal<ICourse[]>;
|
|
14
|
-
columns: any[];
|
|
15
|
-
filterBarOptions: ListFilterBarOptions;
|
|
16
|
-
getCustomButtons(item: any): MenuItem[];
|
|
17
|
-
ngOnInit(): Promise<void>;
|
|
18
|
-
protected loadData(): Promise<void>;
|
|
19
|
-
onNew(): void;
|
|
20
|
-
toggleView(): void;
|
|
21
|
-
selectItem(course: ICourse): void;
|
|
22
|
-
doAction(actionEvent: OnActionEvent): Promise<void>;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CourseListComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CourseListComponent, "app-course-list", never, { "viewType": { "alias": "viewType"; "required": false; }; "onlyView": { "alias": "onlyView"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ICourse } from './models/courses.model';
|
|
2
|
-
import { FiltersConfig, IFilterQueryResponse } from '@dataclouder/ngx-core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CourseService {
|
|
5
|
-
private httpService;
|
|
6
|
-
private toastService;
|
|
7
|
-
getCourses(): Promise<ICourse[]>;
|
|
8
|
-
getFilteredCourses(filter: FiltersConfig): Promise<IFilterQueryResponse<ICourse>>;
|
|
9
|
-
getCourse(id: string): Promise<ICourse>;
|
|
10
|
-
saveCourse(course: ICourse): Promise<ICourse>;
|
|
11
|
-
deleteCourse(id: string): Promise<import("@dataclouder/ngx-core").DeletedData>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CourseService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CourseService>;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CloudStorageData } from '@dataclouder/ngx-cloud-storage';
|
|
2
|
-
export interface AuditDate {
|
|
3
|
-
createdAt?: string;
|
|
4
|
-
updatedAt?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare enum CourseType {
|
|
7
|
-
Gen1 = "gen1",
|
|
8
|
-
Gen2 = "gen2",
|
|
9
|
-
Gen3 = "gen3"
|
|
10
|
-
}
|
|
11
|
-
export interface ICourseRelation {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ICourse extends AuditDate {
|
|
17
|
-
_id: string;
|
|
18
|
-
id: string;
|
|
19
|
-
name?: string;
|
|
20
|
-
image?: CloudStorageData;
|
|
21
|
-
description?: string;
|
|
22
|
-
type?: string;
|
|
23
|
-
relation?: ICourseRelation;
|
|
24
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CoursesAdminComponent implements OnInit {
|
|
4
|
-
private httpCoreService;
|
|
5
|
-
ngOnInit(): Promise<void>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoursesAdminComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoursesAdminComponent, "ngx-courses-admin", never, {}, {}, never, never, true, never>;
|
|
8
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { MenuItem } from 'primeng/api';
|
|
3
|
-
import { ILesson, ILessonWithTaken } from '../../lesson-mini-components/components/lessons.clases';
|
|
4
|
-
import { OnActionEvent } from '@dataclouder/ngx-core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
declare enum EventCard {
|
|
7
|
-
Edit = "edit",
|
|
8
|
-
Delete = "delete",
|
|
9
|
-
Select = "select",
|
|
10
|
-
Qr = "qr"
|
|
11
|
-
}
|
|
12
|
-
export declare class DcLessonCardComponent implements OnInit {
|
|
13
|
-
lesson: ILessonWithTaken | ILesson | any;
|
|
14
|
-
showOptions: boolean;
|
|
15
|
-
cardHeight: string;
|
|
16
|
-
onAction: EventEmitter<OnActionEvent>;
|
|
17
|
-
coverUrl: string;
|
|
18
|
-
eventType: typeof EventCard;
|
|
19
|
-
items: MenuItem[];
|
|
20
|
-
ngOnInit(): void;
|
|
21
|
-
eventCard(eventType: EventCard): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcLessonCardComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcLessonCardComponent, "dc-lesson-card", never, { "lesson": { "alias": "lesson"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; }; "cardHeight": { "alias": "cardHeight"; "required": false; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
package/lib/components/dc-lessons/dc-lesson-component-adder/dc-lesson-component-adder.component.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { LessonComponentEnum } from '../../lesson-mini-components/components/lessons.clases';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DCLessonComponentAdderComponent {
|
|
5
|
-
#private;
|
|
6
|
-
componentAdded: EventEmitter<any>;
|
|
7
|
-
lessonComponentEnum: typeof LessonComponentEnum;
|
|
8
|
-
openComponentBuilder(type: string): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonComponentAdderComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonComponentAdderComponent, "dc-lesson-component-adder", never, {}, { "componentAdded": "componentAdded"; }, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { ComponentRef, ElementRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import BalloonEditor from '@ckeditor/ckeditor5-build-balloon-block';
|
|
3
|
-
import { StorageImageSettings } from '@dataclouder/ngx-cloud-storage';
|
|
4
|
-
import { LessonComponentEnum, ILesson, LessonComponentInterface } from '../../lesson-mini-components/components/lessons.clases';
|
|
5
|
-
import { ComponentBuildData } from '../../lesson-mini-components/components/ComponentBuilder';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DCLessonEditorComponent {
|
|
8
|
-
#private;
|
|
9
|
-
private defaultLessonsService;
|
|
10
|
-
private promptService;
|
|
11
|
-
private ngxVertexService;
|
|
12
|
-
private cdr;
|
|
13
|
-
private dynamicComponentsBuilderService;
|
|
14
|
-
target: ViewContainerRef;
|
|
15
|
-
dhtml: ElementRef;
|
|
16
|
-
readonly lessonId: import("@angular/core").Signal<string>;
|
|
17
|
-
lesson: import("@angular/core").WritableSignal<ILesson>;
|
|
18
|
-
isLoadingLesson: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
-
coverImageUrl: import("@angular/core").Signal<string>;
|
|
20
|
-
readonly dynamicComponentsArray: import("@angular/core").Signal<import("@dataclouder/ngx-lessons").DynamicContentComponent[]>;
|
|
21
|
-
components: {
|
|
22
|
-
[key: string]: ComponentRef<LessonComponentInterface>;
|
|
23
|
-
};
|
|
24
|
-
editor: typeof BalloonEditor;
|
|
25
|
-
lessonComponentEnum: typeof LessonComponentEnum;
|
|
26
|
-
coverStorageSettings: StorageImageSettings;
|
|
27
|
-
constructor();
|
|
28
|
-
/**
|
|
29
|
-
* Updates a specific property on the lesson signal.
|
|
30
|
-
* Used for ngModelChange events to simulate two-way binding with signals.
|
|
31
|
-
* @param property The key of the ILesson property to update.
|
|
32
|
-
* @param value The new value for the property.
|
|
33
|
-
*/
|
|
34
|
-
updateLessonProperty<K extends keyof ILesson>(property: K, value: ILesson[K]): void;
|
|
35
|
-
onTagRemove(tag: any): void;
|
|
36
|
-
onTagAdd(tag: {
|
|
37
|
-
value: string;
|
|
38
|
-
input: any;
|
|
39
|
-
}): void;
|
|
40
|
-
saveLesson(event?: Event): Promise<ILesson | undefined>;
|
|
41
|
-
/**
|
|
42
|
-
* Handles the event emitted when a component is added via the adder component.
|
|
43
|
-
* @param result The configuration data returned from the component builder dialog. Expected format: { obj: LessonComponentConfiguration }
|
|
44
|
-
*/
|
|
45
|
-
onComponentAdded(result: ComponentBuildData): void;
|
|
46
|
-
/**
|
|
47
|
-
* Handles the image upload event, updates the lesson signal via the service, and saves.
|
|
48
|
-
* @param event The image upload event data.
|
|
49
|
-
*/
|
|
50
|
-
onImageUploaded(event: any): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Imports lesson content from Notion using the LessonNotionService.
|
|
53
|
-
*/
|
|
54
|
-
importFromNotion(): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* Calls the LessonNotionService to improve the lesson using AI based on Notion content.
|
|
57
|
-
*/
|
|
58
|
-
improveNotionWithAI(): Promise<void>;
|
|
59
|
-
showComponentDetails(data: any): void;
|
|
60
|
-
generateBanner(): Promise<void>;
|
|
61
|
-
promptsVisible: boolean;
|
|
62
|
-
prompts: any;
|
|
63
|
-
showPrompts(): void;
|
|
64
|
-
editComponent(comp: any): void;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonEditorComponent, never>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonEditorComponent, "dc-lesson-editor", never, {}, {}, never, never, true, never>;
|
|
67
|
-
}
|
package/lib/components/dc-lessons/dc-lesson-metadata-editor/dc-lesson-metadata-editor.component.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, WritableSignal } from '@angular/core';
|
|
2
|
-
import { ILesson, ContentMetadata } from '../../lesson-mini-components/components/lessons.clases';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DCLessonMetadataEditorComponent {
|
|
5
|
-
#private;
|
|
6
|
-
lesson: WritableSignal<ILesson | undefined>;
|
|
7
|
-
isLoadingLesson: WritableSignal<boolean>;
|
|
8
|
-
saveRequest: EventEmitter<void>;
|
|
9
|
-
importNotionRequest: EventEmitter<void>;
|
|
10
|
-
improveNotionRequest: EventEmitter<void>;
|
|
11
|
-
onRootPropertyChange(property: keyof ILesson, value: any): void;
|
|
12
|
-
onMetadataPropertyChange(property: keyof ContentMetadata, value: any): void;
|
|
13
|
-
onAppExtensionPropChange(property: string, value: any): void;
|
|
14
|
-
emitSaveRequest(): void;
|
|
15
|
-
emitImportNotionRequest(): void;
|
|
16
|
-
emitImproveNotionRequest(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Generates lesson content using AI, saving the current state first.
|
|
19
|
-
* Moved from DCLessonEditorComponent.
|
|
20
|
-
*/
|
|
21
|
-
generateByAI(): Promise<void>;
|
|
22
|
-
/**
|
|
23
|
-
* Replaces encoded JSON blocks (~...~) in HTML with their 'settings.text' value.
|
|
24
|
-
* Moved from DCLessonEditorComponent.
|
|
25
|
-
* @param htmlInput The HTML string containing encoded JSON.
|
|
26
|
-
* @returns The processed HTML string with text replacements.
|
|
27
|
-
*/
|
|
28
|
-
private _extractTextFromEncodedJson;
|
|
29
|
-
/**
|
|
30
|
-
* Converts improved Markdown content to HTML, updates the lesson signal,
|
|
31
|
-
* and saves the lesson.
|
|
32
|
-
* @param improvedMarkdown The Markdown content generated by AI.
|
|
33
|
-
* @throws Error if the markdown is empty/null or if saving fails.
|
|
34
|
-
*/
|
|
35
|
-
private _convertMarkdownToHtmlAndSave;
|
|
36
|
-
/**
|
|
37
|
-
* Calls the LessonUtilsService to generate a description using AI
|
|
38
|
-
* and updates the lesson signal if successful.
|
|
39
|
-
*/
|
|
40
|
-
triggerGenerateDescriptionAI(): Promise<void>;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonMetadataEditorComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonMetadataEditorComponent, "dc-lesson-metadata-editor", never, { "lesson": { "alias": "lesson"; "required": true; }; "isLoadingLesson": { "alias": "isLoadingLesson"; "required": true; }; }, { "saveRequest": "saveRequest"; "importNotionRequest": "importNotionRequest"; "improveNotionRequest": "improveNotionRequest"; }, never, never, true, never>;
|
|
43
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormControl } from '@angular/forms';
|
|
3
|
-
import { ILesson } from '../../lesson-mini-components/components/lessons.clases';
|
|
4
|
-
import { IAgentCard, IConversationSettings, IMiniAgentCard, SimpleAgentTask, ChatEvent, WordData, ConversationEvents } from '@dataclouder/ngx-agent-cards';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface ILessonsSettings {
|
|
7
|
-
additionalPrompt: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class DCLessonRendererComponent implements OnInit {
|
|
10
|
-
lessonInput: import("@angular/core").InputSignal<ILesson>;
|
|
11
|
-
lessonIdInput: import("@angular/core").InputSignal<string>;
|
|
12
|
-
settings: import("@angular/core").InputSignal<ILessonsSettings>;
|
|
13
|
-
wordClicked: EventEmitter<WordData>;
|
|
14
|
-
dynamicLesson: ElementRef<HTMLElement>;
|
|
15
|
-
private readonly renderer;
|
|
16
|
-
private readonly viewContainerRef;
|
|
17
|
-
private readonly toastrService;
|
|
18
|
-
private readonly lessonService;
|
|
19
|
-
private readonly lessonAIService;
|
|
20
|
-
private readonly userDataExchange;
|
|
21
|
-
private readonly dynamicComponentsService;
|
|
22
|
-
lesson: import("@angular/core").WritableSignal<ILesson>;
|
|
23
|
-
chatVisible: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
-
agentMasterLesson: import("@angular/core").WritableSignal<IAgentCard>;
|
|
25
|
-
evaluatorAgentCard: import("@angular/core").WritableSignal<IMiniAgentCard>;
|
|
26
|
-
conversationSettings: import("@angular/core").WritableSignal<IConversationSettings>;
|
|
27
|
-
evalAgentTask: import("@angular/core").WritableSignal<SimpleAgentTask>;
|
|
28
|
-
backgroundTasks: Record<ConversationEvents | string, SimpleAgentTask>;
|
|
29
|
-
imageCover: import("@angular/core").Signal<string>;
|
|
30
|
-
private components;
|
|
31
|
-
mainForm: FormGroup<{
|
|
32
|
-
[key: string]: FormControl<any>;
|
|
33
|
-
}>;
|
|
34
|
-
private previousTextCoded;
|
|
35
|
-
constructor();
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
private _clearLessonRendering;
|
|
38
|
-
private _renderLesson;
|
|
39
|
-
private _parseAndCreateComponents;
|
|
40
|
-
private _aggregateFormControls;
|
|
41
|
-
private _injectComponentsIntoDom;
|
|
42
|
-
private _addComponentToNode;
|
|
43
|
-
private _createComponentReferenceWithJson;
|
|
44
|
-
evaluateForms(): Promise<void>;
|
|
45
|
-
startAI(): Promise<void>;
|
|
46
|
-
onVisibleChange(isVisible: boolean): void;
|
|
47
|
-
handleGoalCompleted(event: any): void;
|
|
48
|
-
onChatMessage(event: ChatEvent): void;
|
|
49
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonRendererComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonRendererComponent, "dc-lesson-renderer", never, { "lessonInput": { "alias": "lessonInput"; "required": false; "isSignal": true; }; "lessonIdInput": { "alias": "lessonIdInput"; "required": false; "isSignal": true; }; "settings": { "alias": "settings"; "required": false; "isSignal": true; }; }, { "wordClicked": "wordClicked"; }, never, never, true, never>;
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EnglishEvaluationSkill = "\nYou are a virtual professor for the Polilan English learning app. Your primary role is to evaluate a student's English conversational performance.\n\nYou will be provided with two pieces of information for each evaluation:\n1. **The student's English level:** This will be one of \"Beginner\", \"Intermediate\", or \"Advanced\".\n2. **A conversation transcript:** This will be the dialogue between the Student and an Assistant, with each turn clearly labeled (e.g., \"Student or User: ...\", \"Assistant: ...\").\n\nYour sole task is to evaluate the *Student's* contribution to the conversation. **Do NOT evaluate the Assistant's turns.**\n\nEvaluate the student's performance based on the following aspects, *always keeping the student's provided level in mind* and adjusting your expectations accordingly specially with beginners give them credits just for trying:\n\n* **Grammar & Syntax:** Evaluate accuracy and complexity *relative to the expected level*. (Beginners: focus on basic accuracy; Advanced: expect complex structures with high accuracy).\n* **Vocabulary & Usage:** Evaluate the range and appropriateness of words used *relative to the expected level*. (Beginners: focus on using basic words correctly; Advanced: expect varied and idiomatic language).\n* **Cohesion & Coherence:** Evaluate how well their turns connect and make sense within the conversation *relative to the expected level*. (Beginners: focus on simple, clear responses; Advanced: expect logical flow and detailed contributions).\n* **Task Completion/Relevance:** Evaluate how effectively they participate and respond to the conversation's goals or topics *relative to the expected level*.\n\nAssign a rating from 0 to 3 based on how well the student performs *compared to the typical expectations for their provided level*:\n\n* **0: Bad** - Performance is significantly below what is expected for this level. Many errors impede communication.\n* **1: Not Bad** - Performance is below expectations for this level, but communication is sometimes possible despite frequent errors.\n* **2: Good** - Performance meets expectations for this level, demonstrating solid understanding and usage with only occasional minor errors.\n* **3: Very Good** - Performance exceeds expectations for this level, demonstrating a strong command and potential to progress quickly.\n\nProvide detailed, constructive feedback that explains the rating. Point out specific strengths and areas for improvement based on their performance *at their given level*. Use examples from the dialog if helpful. Maintain a supportive, encouraging, and educational tone appropriate for a virtual professor guiding a student at their specific stage.\n";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class DCLessonFormComponent {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonFormComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonFormComponent, "dc-lesson-form", never, {}, {}, never, never, true, never>;
|
|
5
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit, Type, QueryList, OnDestroy } from '@angular/core';
|
|
2
|
-
import { NgComponentOutlet } from '@angular/common';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { ICustomFilter, OnActionEvent, PaginationBase, PColumn, ListFilterBarOptions } from '@dataclouder/ngx-core';
|
|
5
|
-
import { DcLessonCardComponent } from '../dc-lesson-card/dc-lesson-card.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DCLessonListComponent extends PaginationBase implements OnInit, OnDestroy {
|
|
8
|
-
showOptions: boolean;
|
|
9
|
-
customCardComponent?: Type<DcLessonCardComponent>;
|
|
10
|
-
customFilters: ICustomFilter[];
|
|
11
|
-
viewType: 'table' | 'cards';
|
|
12
|
-
cdr: ChangeDetectorRef;
|
|
13
|
-
lessonsService: import("@dataclouder/ngx-lessons").LessonsAbstractService;
|
|
14
|
-
toastrService: import("@dataclouder/ngx-core").ToastAlertsAbstractService;
|
|
15
|
-
filterBarOptions: ListFilterBarOptions;
|
|
16
|
-
columns: PColumn[];
|
|
17
|
-
outlets: QueryList<NgComponentOutlet>;
|
|
18
|
-
cardComponent: Type<DcLessonCardComponent>;
|
|
19
|
-
cardEventSubs: Subscription[];
|
|
20
|
-
lessons: any[];
|
|
21
|
-
isLoadingLessons: boolean;
|
|
22
|
-
ngOnInit(): void;
|
|
23
|
-
subscribeDinamicInstantToEvents(): void;
|
|
24
|
-
private subscribeToCardEvents;
|
|
25
|
-
private clearcardEventSubs;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
getPaginatedLessons(paginator: any): Promise<void>;
|
|
28
|
-
search(searchText: string): void;
|
|
29
|
-
private removeLesson;
|
|
30
|
-
newLesson(): void;
|
|
31
|
-
applyFilterBarEvent(filterEvent: OnActionEvent): void;
|
|
32
|
-
protected loadData(): Promise<void>;
|
|
33
|
-
doOrEmitAction(actionEvent: OnActionEvent): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonListComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonListComponent, "dc-lesson-list", never, { "showOptions": { "alias": "showOptions"; "required": false; }; "customCardComponent": { "alias": "customCardComponent"; "required": false; }; "customFilters": { "alias": "customFilters"; "required": false; }; "viewType": { "alias": "viewType"; "required": false; }; }, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DynamicComponentsBuilderService {
|
|
4
|
-
#private;
|
|
5
|
-
openComponentBuilder(componentType: string, data?: any): DynamicDialogRef | undefined;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentsBuilderService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentsBuilderService>;
|
|
8
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Type } from '@angular/core';
|
|
2
|
-
import { LessonComponentEnum } from '../lesson-mini-components/components/lessons.clases';
|
|
3
|
-
import { SpeakerBuilderComponent } from '../lesson-mini-components/components/speaker/speaker-builder/speaker-builder.component';
|
|
4
|
-
import { SpeakerComponent } from '../lesson-mini-components/components/speaker/speaker.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface InputCompoennt {
|
|
7
|
-
text?: string;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export interface DynamicComponentData {
|
|
11
|
-
id?: string;
|
|
12
|
-
component: LessonComponentEnum;
|
|
13
|
-
inputs?: InputCompoennt;
|
|
14
|
-
}
|
|
15
|
-
export declare const DynamicComponentBuilders: {
|
|
16
|
-
speaker: typeof SpeakerBuilderComponent;
|
|
17
|
-
};
|
|
18
|
-
export declare const DynamicComponents: {
|
|
19
|
-
speaker: typeof SpeakerComponent;
|
|
20
|
-
};
|
|
21
|
-
export declare class DynamicComponentsService {
|
|
22
|
-
private _dynamicComponentBuilders;
|
|
23
|
-
private _dynamicComponents;
|
|
24
|
-
registerCustomComponent(component: Type<any>, name?: string): void;
|
|
25
|
-
registerCustomComponentBuilder(component: Type<any>, name?: string): void;
|
|
26
|
-
getDynamicComponentBuilders(type: any): any;
|
|
27
|
-
getDynamicComponentClass(type: LessonComponentEnum | string): any;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentsService, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentsService>;
|
|
30
|
-
}
|
package/lib/components/dynamic-components/selector/selector-builder/selector-builder.component.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormArray } from '@angular/forms';
|
|
3
|
-
import { ComponentBuilder } from '../../../lesson-mini-components/components/ComponentBuilder';
|
|
4
|
-
import { LessonComponentConfiguration } from '../../../lesson-mini-components/components/lessons.clases';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SelectorBuilderComponent extends ComponentBuilder implements OnInit {
|
|
7
|
-
componentName: string;
|
|
8
|
-
sampleConfig: LessonComponentConfiguration;
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
isRendered: any;
|
|
11
|
-
pushControlToFormArray(controlName: string): void;
|
|
12
|
-
deleteFormArrayByIndex(controlName: string, index: number): void;
|
|
13
|
-
get optionsForm(): UntypedFormArray;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorBuilderComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectorBuilderComponent, "app-selector-builder", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ComponentWithForm } from '../../lesson-mini-components/components/ComponentWithForm';
|
|
2
|
-
import { LessonComponentConfiguration, LessonComponentInterface } from '../../lesson-mini-components/components/lessons.clases';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SelectorComponent extends ComponentWithForm implements LessonComponentInterface {
|
|
5
|
-
isFilled: boolean;
|
|
6
|
-
constructor();
|
|
7
|
-
config: LessonComponentConfiguration;
|
|
8
|
-
evaluate(): any;
|
|
9
|
-
validate(): boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectorComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectorComponent, "app-selector", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { FormArray, FormBuilder, FormControl } from '@angular/forms';
|
|
2
|
-
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
|
-
import { LessonComponentConfiguration, LessonComponentEnum, LessonCompSettings } from './lessons.clases';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type LessonCompSettingsForm = {
|
|
6
|
-
[K in keyof Required<LessonCompSettings>]: FormControl<LessonCompSettings[K]>;
|
|
7
|
-
};
|
|
8
|
-
export interface ComponentBuildData {
|
|
9
|
-
str: string;
|
|
10
|
-
obj: LessonComponentConfiguration;
|
|
11
|
-
}
|
|
12
|
-
export declare abstract class ComponentBuilder {
|
|
13
|
-
inputs: Record<string, any>;
|
|
14
|
-
id: string;
|
|
15
|
-
abstract componentName: string;
|
|
16
|
-
protected formBuilder: FormBuilder;
|
|
17
|
-
protected ref: DynamicDialogRef<any>;
|
|
18
|
-
formGroup: import("@angular/forms").FormGroup<{
|
|
19
|
-
response: FormControl<string>;
|
|
20
|
-
responses: FormControl<string>;
|
|
21
|
-
options: FormArray<any>;
|
|
22
|
-
text: FormControl<string>;
|
|
23
|
-
hint: FormControl<string>;
|
|
24
|
-
explanation: FormControl<string>;
|
|
25
|
-
}>;
|
|
26
|
-
get questionType(): LessonComponentEnum;
|
|
27
|
-
protected getCode(): LessonComponentConfiguration;
|
|
28
|
-
showCode(): void;
|
|
29
|
-
getComponentData(): ComponentBuildData;
|
|
30
|
-
copyToClipboard(): Promise<void>;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentBuilder, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentBuilder, "app-component-builder", never, { "inputs": { "alias": "inputs"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare abstract class ComponentWithForm implements OnInit {
|
|
5
|
-
control: UntypedFormControl;
|
|
6
|
-
status: string;
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
validate(): void;
|
|
9
|
-
abstract evaluate(): boolean;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentWithForm, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ComponentWithForm, "app-component-form", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LessonCompSettings } from './lessons.clases';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LessonDynamicComponent {
|
|
4
|
-
settings: LessonCompSettings;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LessonDynamicComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LessonDynamicComponent, "app-lesson-component", never, { "settings": { "alias": "settings"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|