@dataclouder/ngx-lessons 0.1.23 → 0.1.26
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { PipeTransform, InjectionToken, Type, Provider, OnInit, ComponentRef, EventEmitter, ViewContainerRef, Renderer2, ElementRef
|
|
3
|
-
import {
|
|
2
|
+
import { PipeTransform, InjectionToken, Type, Provider, OnInit, ComponentRef, EventEmitter, ViewContainerRef, Renderer2, ElementRef } from '@angular/core';
|
|
3
|
+
import { IAIModel, EntityCommunicationService, FiltersConfig, IFilterQueryResponse, IExtensionable, ILearnable, IAuditable, IManageable, IReactable, EntityBaseListV2Component, ICustomFilter, PColumn, OnActionEvent, EntityBaseFormComponent, UiStateService, MobileService, EntityBaseDetailComponent } from '@dataclouder/ngx-core';
|
|
4
4
|
import { MenuItem } from 'primeng/api';
|
|
5
|
-
import { EntityCommunicationService, FiltersConfig, IFilterQueryResponse, IExtensionable, ILearnable, IAuditable, IManageable, IReactable, EntityBaseListComponent, ICustomFilter, PColumn, OnActionEvent, EntityBaseFormComponent, UiStateService, MobileService, PaginationBase, ListFilterBarOptions } from '@dataclouder/ngx-core';
|
|
6
5
|
import * as _angular_forms from '@angular/forms';
|
|
7
6
|
import { FormBuilder, FormControl, FormArray, UntypedFormControl, FormGroup, UntypedFormArray } from '@angular/forms';
|
|
8
7
|
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
9
8
|
import { TTSGenerated } from '@dataclouder/ngx-ai-services';
|
|
10
9
|
import { IAssetable, StorageImageSettings, AspectType, ResolutionType } from '@dataclouder/ngx-cloud-storage';
|
|
11
10
|
import { UserService } from '@dataclouder/ngx-users';
|
|
11
|
+
import { IConversationSettings, IConversationFlow, SimpleAgentTask, WordData, ChatEvent } from '@dataclouder/ngx-agent-cards';
|
|
12
12
|
import * as _angular_router from '@angular/router';
|
|
13
13
|
|
|
14
14
|
declare const LangCodeDescription: {
|
|
@@ -74,6 +74,10 @@ declare enum NotionExportType {
|
|
|
74
74
|
SIMPLE_BLOCKS = "simple_blocks"
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
interface ISimpleAgent {
|
|
78
|
+
systemPrompt: string;
|
|
79
|
+
model: IAIModel;
|
|
80
|
+
}
|
|
77
81
|
declare const getLanguageSimpleAgent: (langBase: string, langTarget: string) => ISimpleAgent;
|
|
78
82
|
|
|
79
83
|
type LessonCompSettingsForm = {
|
|
@@ -357,17 +361,16 @@ interface LessonPrompts {
|
|
|
357
361
|
}
|
|
358
362
|
declare function provideLessonsService(serviceImplementation: Type<DefaultLessonsService>): Provider[];
|
|
359
363
|
|
|
360
|
-
declare class DCLessonListComponent extends
|
|
364
|
+
declare class DCLessonListComponent extends EntityBaseListV2Component<ILesson> {
|
|
361
365
|
userService: UserService<any>;
|
|
362
366
|
customFilters: ICustomFilter[];
|
|
363
367
|
persistenceKey: string;
|
|
364
|
-
protected entityCommunicationService:
|
|
368
|
+
protected entityCommunicationService: any;
|
|
365
369
|
columns: PColumn[];
|
|
366
370
|
constructor();
|
|
371
|
+
ngOnInit(): Promise<void>;
|
|
367
372
|
getCustomButtons(item: ILesson): MenuItem[];
|
|
368
373
|
handleAction(actionEvent: OnActionEvent): void;
|
|
369
|
-
applyFilterBarEvent(filterEvent: OnActionEvent): void;
|
|
370
|
-
protected loadData(): Promise<void>;
|
|
371
374
|
static ɵfac: i0.ɵɵFactoryDeclaration<DCLessonListComponent, never>;
|
|
372
375
|
static ɵcmp: i0.ɵɵComponentDeclaration<DCLessonListComponent, "dc-lesson-list", never, { "customFilters": { "alias": "customFilters"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
373
376
|
}
|
|
@@ -651,18 +654,13 @@ declare class CourseService extends EntityCommunicationService<ICourse> {
|
|
|
651
654
|
static ɵprov: i0.ɵɵInjectableDeclaration<CourseService>;
|
|
652
655
|
}
|
|
653
656
|
|
|
654
|
-
declare class CourseDetailComponent
|
|
657
|
+
declare class CourseDetailComponent extends EntityBaseDetailComponent<ICourse> {
|
|
655
658
|
protected entityCommunicationService: CourseService;
|
|
656
|
-
private activatedRoute;
|
|
657
659
|
private messageService;
|
|
658
|
-
courseId: string;
|
|
659
|
-
course: i0.WritableSignal<ICourse>;
|
|
660
660
|
generatingLessons: i0.WritableSignal<boolean>;
|
|
661
661
|
generatingLesson: i0.WritableSignal<string>;
|
|
662
|
-
ngOnInit(): void;
|
|
663
662
|
generatePendingLessons(): Promise<void>;
|
|
664
663
|
generateLesson(lessonId: string): Promise<void>;
|
|
665
|
-
private loadCourse;
|
|
666
664
|
static ɵfac: i0.ɵɵFactoryDeclaration<CourseDetailComponent, never>;
|
|
667
665
|
static ɵcmp: i0.ɵɵComponentDeclaration<CourseDetailComponent, "app-course-detail", never, {}, {}, never, never, true, never>;
|
|
668
666
|
}
|
|
@@ -696,27 +694,16 @@ declare class CourseFormComponent extends EntityBaseFormComponent<ICourse> imple
|
|
|
696
694
|
static ɵcmp: i0.ɵɵComponentDeclaration<CourseFormComponent, "app-source-form", never, {}, { "onSave": "onSave"; }, never, never, true, never>;
|
|
697
695
|
}
|
|
698
696
|
|
|
699
|
-
declare class CourseListComponent extends
|
|
700
|
-
|
|
701
|
-
private courseService;
|
|
697
|
+
declare class CourseListComponent extends EntityBaseListV2Component<ICourse> implements OnInit {
|
|
698
|
+
protected entityCommunicationService: CourseService;
|
|
702
699
|
userService: UserService<any>;
|
|
703
|
-
private cdr;
|
|
704
|
-
viewType: 'table' | 'card';
|
|
705
700
|
readonly onlyView: i0.InputSignal<boolean>;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
columns: any[];
|
|
709
|
-
filterBarOptions: ListFilterBarOptions;
|
|
710
|
-
getCustomButtons(item: any): MenuItem[];
|
|
701
|
+
columns: string[];
|
|
702
|
+
getCustomButtons(item: ICourse): MenuItem[];
|
|
711
703
|
ngOnInit(): Promise<void>;
|
|
712
|
-
protected loadData(): Promise<void>;
|
|
713
|
-
onNew(): void;
|
|
714
|
-
toggleView(): void;
|
|
715
|
-
selectItem(course: ICourse): void;
|
|
716
|
-
doAction(actionEvent: OnActionEvent): Promise<void>;
|
|
717
704
|
static ɵfac: i0.ɵɵFactoryDeclaration<CourseListComponent, never>;
|
|
718
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CourseListComponent, "app-course-list", never, { "
|
|
705
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CourseListComponent, "app-course-list", never, { "onlyView": { "alias": "onlyView"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
719
706
|
}
|
|
720
707
|
|
|
721
708
|
export { ComponentBuilder, ComponentWithForm, CourseDetailComponent, CourseFormComponent, CourseListComponent, CourseService, CoursesAdminComponent, CoursesComponent, CoursesService, DCLessonEditorComponent, DCLessonFormComponent, DCLessonListComponent, DCLessonRendererComponent, DcLessonCardComponent, DefaultDynamicComponentBuilders, DefaultDynamicComponents, DefaultLessonsService, DynamicComponentsRegisterService, FlagLanguagePipe, LESSONS_TOKEN, LangCodeDescription, LangCodeDescriptionEs, LessonComponentBuilders, LessonComponentEnum, LessonComponents, LessonConversationService, LessonDynamicComponent, LessonRendererService, LessonsV2Component, NOTION_SERVICE_TOKEN, NotionAbstractService, NotionExportType, SelectorBuilderComponent, SelectorComponent, TextWriterBuiderComponent, TextWriterComponent, TranslationSwitcherBuilderComponent, TranslationSwitcherComponent, getLanguageSimpleAgent, getLessonComponentClass, provideLessonsService, provideNotionService };
|
|
722
|
-
export type { AudioStorage, ComponentBuildData, ContentMetadata, DynamicComponentData, DynamicComponentMap, IDynamicContentComponent, ILesson, ILessonExtra, ILessonTaken, ILessonWithTaken, ILessonsSettings, ImgStorageData, InputCompoennt, LessonCompSettings, LessonCompSettingsForm, LessonComponentConfiguration, LessonComponentInterface, LessonComponentsType, LessonImage, LessonPrompts, Media, NotionDBResponse, NotionPageResponse, SpeakerCompConfiguration, StorageFile, TextContent };
|
|
709
|
+
export type { AudioStorage, ComponentBuildData, ContentMetadata, DynamicComponentData, DynamicComponentMap, IDynamicContentComponent, ILesson, ILessonExtra, ILessonTaken, ILessonWithTaken, ILessonsSettings, ISimpleAgent, ImgStorageData, InputCompoennt, LessonCompSettings, LessonCompSettingsForm, LessonComponentConfiguration, LessonComponentInterface, LessonComponentsType, LessonImage, LessonPrompts, Media, NotionDBResponse, NotionPageResponse, SpeakerCompConfiguration, StorageFile, TextContent };
|