@dataclouder/ngx-core 0.1.43 → 0.1.45

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/index.d.ts CHANGED
@@ -410,6 +410,10 @@ declare class FormUtilsService {
410
410
  createMetaFormGroup(): FormGroup;
411
411
  createManageableFormGroup(): FormGroup;
412
412
  createLearnableFormGroup(): LearnableForm;
413
+ patchLearnableFormGroup(form: LearnableForm, data: {
414
+ tags?: string[];
415
+ }): void;
416
+ private patchFormArray;
413
417
  static ɵfac: i0.ɵɵFactoryDeclaration<FormUtilsService, never>;
414
418
  static ɵprov: i0.ɵɵInjectableDeclaration<FormUtilsService>;
415
419
  }
@@ -420,6 +424,16 @@ declare class DcLearnableFormComponent {
420
424
  static ɵcmp: i0.ɵɵComponentDeclaration<DcLearnableFormComponent, "dc-learnable-form", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
421
425
  }
422
426
 
427
+ declare class DcTagsFormComponent {
428
+ form: i0.InputSignal<FormGroup<any>>;
429
+ newTagControl: FormControl<string>;
430
+ get arrayForm(): FormArray;
431
+ addTag(): void;
432
+ removeTag(index: number): void;
433
+ static ɵfac: i0.ɵɵFactoryDeclaration<DcTagsFormComponent, never>;
434
+ static ɵcmp: i0.ɵɵComponentDeclaration<DcTagsFormComponent, "dc-tags-form", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
435
+ }
436
+
423
437
  /**
424
438
  * Interface for HTTP error responses
425
439
  */
@@ -723,12 +737,14 @@ declare abstract class EntityBaseFormComponent<T extends {
723
737
  protected abstract entityCommunicationService: EntityCommunicationService<T>;
724
738
  protected abstract patchForm(entity: T): void;
725
739
  save(): Promise<T | undefined>;
740
+ reload(): void;
726
741
  getDirtyValues(form: FormGroup | FormArray): {
727
742
  [key: string]: unknown;
728
743
  };
729
744
  saveDirtyValues(): Promise<T>;
730
745
  private loadEntityEffect;
731
746
  private loadEntityById;
747
+ protected defaultNewObject: Partial<T>;
732
748
  private createNewEntity;
733
749
  static ɵfac: i0.ɵɵFactoryDeclaration<EntityBaseFormComponent<any>, never>;
734
750
  static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseFormComponent<any>, never, never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "entityInput": { "alias": "entity"; "required": false; "isSignal": true; }; "useFakeSave": { "alias": "useFakeSave"; "required": false; "isSignal": true; }; }, { "fakeSaved": "fakeSaved"; }, never, never, true, never>;
@@ -1023,5 +1039,5 @@ declare const CharacterEventActions: {
1023
1039
  label: string;
1024
1040
  }[];
1025
1041
 
1026
- export { APP_CONFIG, AppConfigService, AudioNotificationService, AudioSpeed, AudioSpeedReverse, CharacterEventActions, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, EModelQuality, EmptyStateComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, MobileService, ModelQualityOptions, MoodState, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
1042
+ export { APP_CONFIG, AppConfigService, AudioNotificationService, AudioSpeed, AudioSpeedReverse, CharacterEventActions, ChatUserSettings, ConfirmComponent, ConfirmService, DCFilterBarComponent, DCProgressToastComponent, DcAuditableViewerComponent, DcExtensionsViewerComponent, DcLearnableFormComponent, DcLearnableViewerComponent, DcManageableFormComponent, DcManageableViewerComponent, DcReactionsViewerComponent, DcTagsFormComponent, EModelQuality, EmptyStateComponent, EntityBaseFormComponent, EntityBaseListComponent, EntityCommunicationService, FlagPipe, FormUtilsService, GetPathPipe, HTTP_CORE_CONFIG, HttpCoreService, IAIModel, LANGUAGES, LangDescTranslation, LoadingBarComponent, LoadingBarService, MobileService, ModelQualityOptions, MoodState, MoodStateOptions, OptionValue, PaginationBase, PromptService, QuickTableComponent, SUPPORTED_LANGUAGES, TOAST_ALERTS_TOKEN, ToastAlertsAbstractService, UiStateService, availibleFilters, extractJsonFromString, formatCamelCaseString, getLangDesc, getSupportedLanguageOptions, provideToastAlert, sortOptions, sortTypes };
1027
1043
  export type { AppException, ConfirmOptions, DeleteHttpParams, DeletedData, FiltersConfig, GetHttpParams, HttpCoreConfig, HttpCoreError, IAppConfig, IAuditable, ICustomFilter, IExtensionable, IFilterQueryResponse, ILangTranslation, ILanguageData, ILearnable, IManageable, IReactable, LearnableForm, ListFilterBarOptions, OnActionEvent, PColumn, PostHttpParams, PromptOptions, PutHttpParams, SortOption, ToastData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-core",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "description": "Angular core components library for DataClouder applications, only for internal use",
5
5
  "author": {
6
6
  "name": "dataclouder",