@dataclouder/ngx-core 0.1.30 → 0.1.31
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-core.mjs +137 -108
- package/fesm2022/dataclouder-ngx-core.mjs.map +1 -1
- package/index.d.ts +831 -3
- package/package.json +1 -1
- package/lib/components/base-form/entity-base-form.d.ts +0 -24
- package/lib/components/base-list/entity-base-list.component.d.ts +0 -29
- package/lib/components/confirm/confirm.component.d.ts +0 -23
- package/lib/components/empty-state/empty-state.component.d.ts +0 -8
- package/lib/components/forms/dc-auditable-viewer.component.d.ts +0 -7
- package/lib/components/forms/dc-extensions-viewer.component.d.ts +0 -7
- package/lib/components/forms/dc-learnable-viewer.component.d.ts +0 -7
- package/lib/components/forms/dc-manageable-viewer.component.d.ts +0 -7
- package/lib/components/forms/dc-reactions-viewer.component.d.ts +0 -7
- package/lib/components/list-filter-bar/dc-list-filter-bar.component.d.ts +0 -40
- package/lib/components/loading-bar/loading-bar.d.ts +0 -7
- package/lib/components/loading-bar/loading-bar.service.d.ts +0 -63
- package/lib/components/progress-toast/progress-toast.d.ts +0 -19
- package/lib/components/prompt/prompt.component.d.ts +0 -17
- package/lib/components/quick-table/quick-table.d.ts +0 -35
- package/lib/models/character-models.d.ts +0 -5
- package/lib/models/classes.d.ts +0 -47
- package/lib/models/common-enums.d.ts +0 -10
- package/lib/models/extension.model.d.ts +0 -28
- package/lib/models/filter.models.d.ts +0 -62
- package/lib/models/languages.model.d.ts +0 -23
- package/lib/models/pagination.abstract.d.ts +0 -88
- package/lib/pipes/loadash-get.pipe.d.ts +0 -8
- package/lib/services/confirm.service.d.ts +0 -20
- package/lib/services/entity-cominication.service.d.ts +0 -17
- package/lib/services/http-core.service.d.ts +0 -204
- package/lib/services/prompt.service.d.ts +0 -19
- package/lib/services/ui-state.service.d.ts +0 -7
- package/lib/utils/utils.d.ts +0 -29
- package/public-api.d.ts +0 -28
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { EntityCommunicationService } from '../../services/entity-cominication.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class EntityBaseFormComponent<T extends {
|
|
6
|
-
_id?: string;
|
|
7
|
-
}> {
|
|
8
|
-
protected route: ActivatedRoute;
|
|
9
|
-
protected router: Router;
|
|
10
|
-
toastService: import("@dataclouder/ngx-core").ToastAlertsAbstractService;
|
|
11
|
-
entity: import("@angular/core").WritableSignal<T>;
|
|
12
|
-
entityId: import("@angular/core").Signal<string>;
|
|
13
|
-
abstract form: FormGroup;
|
|
14
|
-
protected abstract entityCommunicationService: EntityCommunicationService<T>;
|
|
15
|
-
protected abstract patchForm(entity: T): void;
|
|
16
|
-
save(): Promise<T | undefined>;
|
|
17
|
-
getDirtyValues(form: FormGroup | FormArray): {
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
saveDirtyValues(): Promise<T>;
|
|
21
|
-
private loadEntityEffect;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityBaseFormComponent<any>, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseFormComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
-
import { MenuItem } from 'primeng/api';
|
|
4
|
-
import { OnActionEvent, PaginationBase } from '../../models/pagination.abstract';
|
|
5
|
-
import { ListFilterBarOptions } from '../../models/filter.models';
|
|
6
|
-
import { EntityCommunicationService } from '../../services/entity-cominication.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare abstract class EntityBaseListComponent<T> extends PaginationBase implements OnInit {
|
|
9
|
-
protected router: Router;
|
|
10
|
-
protected route: ActivatedRoute;
|
|
11
|
-
protected abstract entityCommunicationService: EntityCommunicationService<T>;
|
|
12
|
-
abstract getCustomButtons(item: T): MenuItem[];
|
|
13
|
-
readonly initialViewType: import("@angular/core").InputSignal<"table" | "card">;
|
|
14
|
-
readonly onlyView: import("@angular/core").InputSignal<boolean>;
|
|
15
|
-
readonly onSelect: import("@angular/core").OutputEmitterRef<T>;
|
|
16
|
-
items: WritableSignal<T[]>;
|
|
17
|
-
viewType: WritableSignal<'table' | 'card'>;
|
|
18
|
-
totalRecordsSignal: WritableSignal<number>;
|
|
19
|
-
filterBarOptions: ListFilterBarOptions;
|
|
20
|
-
columns: any[];
|
|
21
|
-
constructor();
|
|
22
|
-
ngOnInit(): Promise<void>;
|
|
23
|
-
protected loadData(): Promise<void>;
|
|
24
|
-
onNew(): void;
|
|
25
|
-
toggleView(): void;
|
|
26
|
-
doAction(actionEvent: OnActionEvent): Promise<void>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntityBaseListComponent<any>, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EntityBaseListComponent<any>, never, never, { "initialViewType": { "alias": "initialViewType"; "required": false; "isSignal": true; }; "onlyView": { "alias": "onlyView"; "required": false; "isSignal": true; }; }, { "onSelect": "onSelect"; }, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ConfirmComponent implements OnInit {
|
|
5
|
-
private dynamicDialogConfig;
|
|
6
|
-
ref: DynamicDialogRef<any>;
|
|
7
|
-
title: string;
|
|
8
|
-
message: string;
|
|
9
|
-
warning: string;
|
|
10
|
-
oneBotton: boolean;
|
|
11
|
-
acceptText: string;
|
|
12
|
-
cancelText: string;
|
|
13
|
-
piIcon: string;
|
|
14
|
-
onEnter(_event: any): void;
|
|
15
|
-
onEscapte(_event: any): void;
|
|
16
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
17
|
-
constructor(...args: unknown[]);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
cancel(): void;
|
|
20
|
-
confirm(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmComponent, "app-confirm", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "warning": { "alias": "warning"; "required": false; }; "oneBotton": { "alias": "oneBotton"; "required": false; }; "acceptText": { "alias": "acceptText"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "piIcon": { "alias": "piIcon"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class EmptyStateComponent {
|
|
3
|
-
headingText: string;
|
|
4
|
-
subHeadingText: string;
|
|
5
|
-
readonly mainIconSrcString: import("@angular/core").InputSignal<string>;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EmptyStateComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EmptyStateComponent, "dc-empty-state", never, { "headingText": { "alias": "headingText"; "required": false; }; "subHeadingText": { "alias": "subHeadingText"; "required": false; }; "mainIconSrcString": { "alias": "mainIconSrcString"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IAuditable } from '../../models/extension.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DcAuditableViewerComponent {
|
|
4
|
-
data: import("@angular/core").InputSignal<IAuditable>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcAuditableViewerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcAuditableViewerComponent, "dc-auditable-viewer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IExtensionable } from '../../models/extension.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DcExtensionsViewerComponent {
|
|
4
|
-
data: import("@angular/core").InputSignal<IExtensionable>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcExtensionsViewerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcExtensionsViewerComponent, "dc-extensions-viewer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ILearnable } from '../../models/extension.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DcLearnableViewerComponent {
|
|
4
|
-
data: import("@angular/core").InputSignal<ILearnable>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcLearnableViewerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcLearnableViewerComponent, "dc-learnable-viewer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IManageable } from '../../models/extension.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DcManageableViewerComponent {
|
|
4
|
-
data: import("@angular/core").InputSignal<IManageable>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcManageableViewerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcManageableViewerComponent, "dc-manageable-viewer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IReactable } from '../../models/extension.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DcReactionsViewerComponent {
|
|
4
|
-
data: import("@angular/core").InputSignal<IReactable>;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DcReactionsViewerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DcReactionsViewerComponent, "dc-reactions-viewer", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { availibleFilters, FiltersConfig, ICustomFilter, SortOption, ListFilterBarOptions } from '../../models/filter.models';
|
|
4
|
-
import { MenuItem } from 'primeng/api';
|
|
5
|
-
import { OnActionEvent } from '../../models/pagination.abstract';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DCFilterBarComponent implements OnInit, OnChanges {
|
|
8
|
-
private readonly fb;
|
|
9
|
-
readonly items: import("@angular/core").InputSignal<MenuItem[]>;
|
|
10
|
-
readonly options: import("@angular/core").InputSignal<ListFilterBarOptions>;
|
|
11
|
-
customFilters: ICustomFilter[];
|
|
12
|
-
readonly onFilterAction: import("@angular/core").OutputEmitterRef<any>;
|
|
13
|
-
readonly onChangeSort: import("@angular/core").OutputEmitterRef<any>;
|
|
14
|
-
readonly onNew: import("@angular/core").OutputEmitterRef<any>;
|
|
15
|
-
customFiltersForm: FormGroup;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
-
private buildCustomFiltersForm;
|
|
19
|
-
availibleFilters: {
|
|
20
|
-
name: string;
|
|
21
|
-
code: string;
|
|
22
|
-
}[];
|
|
23
|
-
sortOptions: SortOption[];
|
|
24
|
-
isSearchVisible: boolean;
|
|
25
|
-
isFilterVisible: boolean;
|
|
26
|
-
placeholder: string;
|
|
27
|
-
filter: FiltersConfig;
|
|
28
|
-
selectedFilters: (typeof availibleFilters)[];
|
|
29
|
-
selectedSort: SortOption | null;
|
|
30
|
-
dateRange: Date[];
|
|
31
|
-
changeFilter(event: any): void;
|
|
32
|
-
changeSort(event: any): void;
|
|
33
|
-
createNew(): void;
|
|
34
|
-
search(text?: string): void;
|
|
35
|
-
clearFilters(): void;
|
|
36
|
-
applyFilters(): void;
|
|
37
|
-
doItemAction(filterEvent: OnActionEvent): void;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCFilterBarComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCFilterBarComponent, "dc-filter-bar", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "customFilters": { "alias": "customFilters"; "required": false; }; }, { "onFilterAction": "onFilterAction"; "onChangeSort": "onChangeSort"; "onNew": "onNew"; }, never, never, true, never>;
|
|
40
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { LoadingBarService } from './loading-bar.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class LoadingBarComponent {
|
|
4
|
-
loadingBarService: LoadingBarService;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingBarComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingBarComponent, "dc-loading-bar", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
/**
|
|
3
|
-
* Service for managing a loading/progress bar component in the application.
|
|
4
|
-
*
|
|
5
|
-
* This service provides methods to control the visibility, progress state, and appearance
|
|
6
|
-
* of a loading bar. It supports both determinate (with specific progress percentage)
|
|
7
|
-
* and indeterminate modes, as well as different color options.
|
|
8
|
-
*/
|
|
9
|
-
export declare class LoadingBarService {
|
|
10
|
-
/** Flag indicating whether the loading bar is currently visible */
|
|
11
|
-
isShowing: boolean;
|
|
12
|
-
/** Current progress value (0-100) for determinate mode */
|
|
13
|
-
progress: number;
|
|
14
|
-
/** The current display mode of the loading bar */
|
|
15
|
-
mode: 'indeterminate' | 'determinate';
|
|
16
|
-
/** The color of the loading bar (can be a theme color name or hex value) */
|
|
17
|
-
color: string;
|
|
18
|
-
/** Interval reference for the fake progress animation */
|
|
19
|
-
private progressInterval;
|
|
20
|
-
constructor();
|
|
21
|
-
/**
|
|
22
|
-
* Shows the loading bar in determinate mode with 0% progress.
|
|
23
|
-
* Use this method when starting a process with known progress states.
|
|
24
|
-
*/
|
|
25
|
-
showProgressBar(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Shows the loading bar in indeterminate mode.
|
|
28
|
-
* Use this method when the progress of a process cannot be determined.
|
|
29
|
-
*/
|
|
30
|
-
showIndeterminate(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Shows the loading bar in determinate mode with a specific progress value.
|
|
33
|
-
*
|
|
34
|
-
* @param progress The progress value to display (0-100)
|
|
35
|
-
*/
|
|
36
|
-
showProgressBarWithProgress(progress: number): void;
|
|
37
|
-
/**
|
|
38
|
-
* Hides the loading bar and resets its state.
|
|
39
|
-
* Call this method when a process completes or when you want to hide the loading bar.
|
|
40
|
-
*/
|
|
41
|
-
hideProgressBar(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Shows a success state (green color, 100% progress) and then automatically hides the loading bar after a delay.
|
|
44
|
-
* Use this method to indicate successful completion of a process with visual feedback.
|
|
45
|
-
*/
|
|
46
|
-
successAndHide(): void;
|
|
47
|
-
errorAndHide(): void;
|
|
48
|
-
infoAndHide(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Demonstrates the loading bar by simulating progress from 0% to 100% over 5 seconds.
|
|
51
|
-
* This is a test/demo method to visualize how the loading bar works.
|
|
52
|
-
*/
|
|
53
|
-
testProgressBar(): void;
|
|
54
|
-
/**
|
|
55
|
-
* Animates the progress bar from 0 to 100 over a specified time period
|
|
56
|
-
* use when you dont know the duration of the process
|
|
57
|
-
* if your process finish before the time ends call successAndHide()
|
|
58
|
-
* @param durationInSeconds The total duration of the animation in seconds (default: 20)
|
|
59
|
-
*/
|
|
60
|
-
fakeProgressWithTime(durationInSeconds?: number): void;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingBarService, never>;
|
|
62
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingBarService>;
|
|
63
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DCProgressToastComponent implements OnChanges, OnDestroy {
|
|
4
|
-
private messageService;
|
|
5
|
-
private cdr;
|
|
6
|
-
visible: boolean;
|
|
7
|
-
readonly progress: import("@angular/core").InputSignal<number>;
|
|
8
|
-
readonly processCompleted: import("@angular/core").OutputEmitterRef<void>;
|
|
9
|
-
readonly processClosed: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
11
|
-
constructor(...args: unknown[]);
|
|
12
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
private showConfirm;
|
|
15
|
-
private onComplete;
|
|
16
|
-
onClose(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DCProgressToastComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DCProgressToastComponent, "dc-progress-toast", never, { "visible": { "alias": "visible"; "required": false; }; "progress": { "alias": "progress"; "required": false; "isSignal": true; }; }, { "processCompleted": "processCompleted"; "processClosed": "processClosed"; }, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class PromptComponent implements OnInit {
|
|
5
|
-
ref: DynamicDialogRef<any>;
|
|
6
|
-
config: DynamicDialogConfig<any, any>;
|
|
7
|
-
title: import("@angular/core").WritableSignal<string>;
|
|
8
|
-
message: import("@angular/core").WritableSignal<string>;
|
|
9
|
-
acceptText: import("@angular/core").WritableSignal<string>;
|
|
10
|
-
cancelText: import("@angular/core").WritableSignal<string>;
|
|
11
|
-
inputValue: import("@angular/core").WritableSignal<string>;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
accept(): void;
|
|
14
|
-
cancel(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PromptComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PromptComponent, "dc-prompt", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Table } from 'primeng/table';
|
|
2
|
-
import { FilterMetadata } from 'primeng/api';
|
|
3
|
-
import { OnActionEvent } from '../../models/pagination.abstract';
|
|
4
|
-
import { MenuItem } from 'primeng/api';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface PColumn {
|
|
7
|
-
field: string;
|
|
8
|
-
header: string;
|
|
9
|
-
type?: 'text' | 'image' | 'tags' | 'actions';
|
|
10
|
-
}
|
|
11
|
-
export declare class QuickTableComponent {
|
|
12
|
-
readonly columns: import("@angular/core").InputSignal<PColumn[]>;
|
|
13
|
-
readonly tableData: import("@angular/core").InputSignal<any[]>;
|
|
14
|
-
readonly actions: import("@angular/core").InputSignal<MenuItem[]>;
|
|
15
|
-
readonly onAction: import("@angular/core").OutputEmitterRef<OnActionEvent>;
|
|
16
|
-
_columns: import("@angular/core").WritableSignal<PColumn[]>;
|
|
17
|
-
_tableData: import("@angular/core").WritableSignal<any[]>;
|
|
18
|
-
_actions: import("@angular/core").WritableSignal<MenuItem[]>;
|
|
19
|
-
filters: import("@angular/core").WritableSignal<{
|
|
20
|
-
[s: string]: FilterMetadata | FilterMetadata[];
|
|
21
|
-
}>;
|
|
22
|
-
globalFilterFields: import("@angular/core").WritableSignal<string[]>;
|
|
23
|
-
tableRef: Table;
|
|
24
|
-
tableColumns: any[];
|
|
25
|
-
constructor();
|
|
26
|
-
private initializeTableColumns;
|
|
27
|
-
selectItem(item: any, action: MenuItem): void;
|
|
28
|
-
onGlobalFilter(event: Event): void;
|
|
29
|
-
getFilterType(column: PColumn): string;
|
|
30
|
-
private initializeFilters;
|
|
31
|
-
onFilterLocal(event: any): void;
|
|
32
|
-
filterOutsideTable(type: 'tags' | 'text', column: string, value: string[]): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuickTableComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QuickTableComponent, "app-quick-table", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "tableData": { "alias": "tableData"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
35
|
-
}
|
package/lib/models/classes.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider, Type } from '@angular/core';
|
|
2
|
-
import { EModelQuality } from './common-enums';
|
|
3
|
-
export declare const TOAST_ALERTS_TOKEN: InjectionToken<ToastAlertsAbstractService>;
|
|
4
|
-
export interface ToastData {
|
|
5
|
-
title: string;
|
|
6
|
-
subtitle: string;
|
|
7
|
-
}
|
|
8
|
-
export declare abstract class ToastAlertsAbstractService {
|
|
9
|
-
abstract success(data: ToastData): void;
|
|
10
|
-
abstract info(data: ToastData): void;
|
|
11
|
-
abstract warn(data: ToastData): void;
|
|
12
|
-
abstract error(data: ToastData): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function provideToastAlert(serviceImplementation: Type<ToastAlertsAbstractService>): Provider[];
|
|
15
|
-
export declare enum AudioSpeed {
|
|
16
|
-
VerySlow = "verySlow",
|
|
17
|
-
Slow = "slow",
|
|
18
|
-
Regular = "regular",
|
|
19
|
-
Fast = "fast",
|
|
20
|
-
VeryFast = "veryFast"
|
|
21
|
-
}
|
|
22
|
-
export declare const AudioSpeedReverse: {
|
|
23
|
-
verySlow: number;
|
|
24
|
-
slow: number;
|
|
25
|
-
regular: number;
|
|
26
|
-
fast: number;
|
|
27
|
-
veryFast: number;
|
|
28
|
-
};
|
|
29
|
-
export declare class IAIModel {
|
|
30
|
-
provider?: string;
|
|
31
|
-
modelName?: string;
|
|
32
|
-
quality?: EModelQuality;
|
|
33
|
-
id?: string;
|
|
34
|
-
}
|
|
35
|
-
export declare class ChatUserSettings {
|
|
36
|
-
realTime: boolean;
|
|
37
|
-
superHearing: boolean;
|
|
38
|
-
repeatRecording: boolean;
|
|
39
|
-
voice?: string;
|
|
40
|
-
highlightWords?: boolean;
|
|
41
|
-
synthVoice?: boolean;
|
|
42
|
-
model?: IAIModel;
|
|
43
|
-
speed?: AudioSpeed;
|
|
44
|
-
speedRate?: number;
|
|
45
|
-
userMessageTask: boolean;
|
|
46
|
-
assistantMessageTask: boolean;
|
|
47
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum EModelQuality {
|
|
2
|
-
FAST = "fast",// Prioritize speed over intelligence like flash lite
|
|
3
|
-
BALANCED = "balanced",// Equal balance like flash 2.5
|
|
4
|
-
SMART = "smart",// Prioritize intelligence over speed like gemini pro 2.5
|
|
5
|
-
SMART_THINKING = "smart-thinking"
|
|
6
|
-
}
|
|
7
|
-
export declare const ModelQualityOptions: {
|
|
8
|
-
label: string;
|
|
9
|
-
value: EModelQuality;
|
|
10
|
-
}[];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type IExtensionable = Record<string, any>;
|
|
2
|
-
export interface IAuditable {
|
|
3
|
-
createdBy: string;
|
|
4
|
-
updatedBy: string;
|
|
5
|
-
authorEmail: string;
|
|
6
|
-
generatedByIA: boolean;
|
|
7
|
-
prompt?: string;
|
|
8
|
-
createdAt?: Date;
|
|
9
|
-
updatedAt?: Date;
|
|
10
|
-
}
|
|
11
|
-
export interface ILearnable {
|
|
12
|
-
level: number;
|
|
13
|
-
takenCount: number;
|
|
14
|
-
tags: string[];
|
|
15
|
-
avgRating?: number;
|
|
16
|
-
ratingsCount?: number;
|
|
17
|
-
estimatedDuration?: number;
|
|
18
|
-
successRate?: number;
|
|
19
|
-
}
|
|
20
|
-
export interface IManageable {
|
|
21
|
-
isPublic: boolean;
|
|
22
|
-
status?: 'draft' | 'review' | 'published' | 'archived';
|
|
23
|
-
}
|
|
24
|
-
export interface IReactable {
|
|
25
|
-
reactionsCount?: {
|
|
26
|
-
[reactionType: string]: number;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export interface SortOption {
|
|
2
|
-
label: string;
|
|
3
|
-
value: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const availibleFilters: {
|
|
6
|
-
name: string;
|
|
7
|
-
code: string;
|
|
8
|
-
}[];
|
|
9
|
-
export declare enum OptionValue {
|
|
10
|
-
Newest = "newest",
|
|
11
|
-
Oldest = "oldest",
|
|
12
|
-
Alphabetical = "alphabetical",
|
|
13
|
-
ReverseAlphabetical = "reverseAlphabetical"
|
|
14
|
-
}
|
|
15
|
-
export declare const sortOptions: SortOption[];
|
|
16
|
-
export declare const sortTypes: ({
|
|
17
|
-
name: string;
|
|
18
|
-
code: string;
|
|
19
|
-
sort: {
|
|
20
|
-
createdDate: number;
|
|
21
|
-
takenCount?: undefined;
|
|
22
|
-
};
|
|
23
|
-
} | {
|
|
24
|
-
name: string;
|
|
25
|
-
code: string;
|
|
26
|
-
sort: {
|
|
27
|
-
takenCount: number;
|
|
28
|
-
createdDate?: undefined;
|
|
29
|
-
};
|
|
30
|
-
})[];
|
|
31
|
-
export interface ICustomFilter {
|
|
32
|
-
name: string;
|
|
33
|
-
field: string;
|
|
34
|
-
type: 'string' | 'number' | 'boolean' | 'date' | 'select';
|
|
35
|
-
options?: {
|
|
36
|
-
label: string;
|
|
37
|
-
value: any;
|
|
38
|
-
}[];
|
|
39
|
-
defaultValue?: any;
|
|
40
|
-
}
|
|
41
|
-
export interface FiltersConfig {
|
|
42
|
-
page?: number;
|
|
43
|
-
rowsPerPage?: number;
|
|
44
|
-
sort?: {
|
|
45
|
-
[key: string]: number;
|
|
46
|
-
};
|
|
47
|
-
filters?: {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
text?: string;
|
|
51
|
-
returnProps?: Record<string, 0 | 1>;
|
|
52
|
-
}
|
|
53
|
-
export interface IFilterQueryResponse<T> {
|
|
54
|
-
rows: T[];
|
|
55
|
-
count: number;
|
|
56
|
-
skip: number;
|
|
57
|
-
}
|
|
58
|
-
export interface ListFilterBarOptions {
|
|
59
|
-
showCreateButton?: boolean;
|
|
60
|
-
showViewButton?: boolean;
|
|
61
|
-
showActions?: boolean;
|
|
62
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export interface ILangTranslation {
|
|
2
|
-
en: string;
|
|
3
|
-
es: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const SUPPORTED_LANGUAGES: string[];
|
|
6
|
-
export interface ILanguageData {
|
|
7
|
-
nativeName: string;
|
|
8
|
-
flag: string;
|
|
9
|
-
code: string;
|
|
10
|
-
i: number;
|
|
11
|
-
llmKnowledge: number;
|
|
12
|
-
countries: string[];
|
|
13
|
-
translations: ILangTranslation;
|
|
14
|
-
flagImg?: string;
|
|
15
|
-
status: 'ready' | 'commingsoon' | 'almostready';
|
|
16
|
-
speakers: number;
|
|
17
|
-
}
|
|
18
|
-
export declare const LANGUAGES: Record<string, ILanguageData>;
|
|
19
|
-
export declare function getLangDesc(langCode: string, lang: string): string;
|
|
20
|
-
export declare function getSupportedLanguageOptions(lang?: 'es' | 'en'): {
|
|
21
|
-
value: string;
|
|
22
|
-
label: string;
|
|
23
|
-
}[];
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { FiltersConfig } from './filter.models';
|
|
3
|
-
import { MenuItem } from 'primeng/api';
|
|
4
|
-
import { PColumn } from '../components/quick-table/quick-table';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface OnActionEvent {
|
|
7
|
-
action?: string;
|
|
8
|
-
item?: any;
|
|
9
|
-
menuItem?: MenuItem;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Abstract base class for implementing pagination functionality.
|
|
13
|
-
* Provides common pagination logic, state management, and navigation handling.
|
|
14
|
-
* Child classes must implement the loadData method and define columns.
|
|
15
|
-
*/
|
|
16
|
-
export declare abstract class PaginationBase {
|
|
17
|
-
/**
|
|
18
|
-
* Available actions for items.
|
|
19
|
-
* Must be implemented by child classes.
|
|
20
|
-
*/
|
|
21
|
-
readonly actions: import("@angular/core").InputSignal<MenuItem[]>;
|
|
22
|
-
/**
|
|
23
|
-
* Event emitted when an action is performed on an item.
|
|
24
|
-
* Emits an object containing the item and the action that was triggered.
|
|
25
|
-
*/
|
|
26
|
-
readonly onAction: import("@angular/core").OutputEmitterRef<OnActionEvent>;
|
|
27
|
-
/** Current first record index for the paginator */
|
|
28
|
-
first: number;
|
|
29
|
-
/** Number of rows to display per page */
|
|
30
|
-
rows: number;
|
|
31
|
-
/** Total number of records available */
|
|
32
|
-
totalRecords: number;
|
|
33
|
-
/** Current view mode, either cards or table */
|
|
34
|
-
viewMode: 'cards' | 'table';
|
|
35
|
-
/** Loading state indicator */
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
/** Available button actions for items */
|
|
38
|
-
buttonActions: MenuItem[];
|
|
39
|
-
/**
|
|
40
|
-
* Columns configuration for the table view.
|
|
41
|
-
* Must be implemented by child classes.
|
|
42
|
-
*/
|
|
43
|
-
protected abstract columns: PColumn[];
|
|
44
|
-
/**
|
|
45
|
-
* Configuration for filtering, sorting, and pagination.
|
|
46
|
-
* Includes current page, rows per page, sorting criteria, and applied filters.
|
|
47
|
-
*/
|
|
48
|
-
filterConfig: FiltersConfig;
|
|
49
|
-
protected route: ActivatedRoute;
|
|
50
|
-
protected router: Router;
|
|
51
|
-
/**
|
|
52
|
-
* Creates an instance of PaginationBase.
|
|
53
|
-
* @param route - The ActivatedRoute for accessing route parameters
|
|
54
|
-
* @param router - The Router for navigation
|
|
55
|
-
*/
|
|
56
|
-
constructor();
|
|
57
|
-
/**
|
|
58
|
-
* Initializes pagination based on URL query parameters.
|
|
59
|
-
* Sets the current page from the 'page' query parameter if available.
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
private initializePagination;
|
|
63
|
-
/**
|
|
64
|
-
* Handles pagination events from the paginator component.
|
|
65
|
-
* Updates the filter configuration, loads new data, and updates the URL.
|
|
66
|
-
* @param pageEvent - The page event containing page number and rows per page
|
|
67
|
-
*/
|
|
68
|
-
onPageChange(pageEvent: any): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Updates the 'page' query parameter in the URL.
|
|
71
|
-
* @param newPage - The new page number to set in the URL
|
|
72
|
-
* @private
|
|
73
|
-
*/
|
|
74
|
-
private updatePageParam;
|
|
75
|
-
/**
|
|
76
|
-
* Loads data for the current page configuration.
|
|
77
|
-
* Must be implemented by child classes to fetch data from the appropriate source.
|
|
78
|
-
* @returns A promise that resolves when data loading is complete
|
|
79
|
-
*/
|
|
80
|
-
protected abstract loadData(): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Handle actions triggered from the table or card view
|
|
83
|
-
* @param param0 Object containing the item and action that was triggered
|
|
84
|
-
*/
|
|
85
|
-
doAction(actionEvent: OnActionEvent): void;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationBase, never>;
|
|
87
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationBase, never, never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; }, { "onAction": "onAction"; }, never, never, true, never>;
|
|
88
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { PColumn } from '../components/quick-table/quick-table';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class GetPathPipe implements PipeTransform {
|
|
5
|
-
transform(obj: any, column: PColumn): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GetPathPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<GetPathPipe, "getPath", true>;
|
|
8
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DialogService } from 'primeng/dynamicdialog';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface ConfirmOptions {
|
|
4
|
-
title?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
acceptText?: string;
|
|
7
|
-
cancelText?: string;
|
|
8
|
-
warning?: string;
|
|
9
|
-
oneBotton?: boolean;
|
|
10
|
-
piIcon?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare class ConfirmService {
|
|
13
|
-
pdialogService: DialogService;
|
|
14
|
-
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
15
|
-
constructor(...args: unknown[]);
|
|
16
|
-
openConfirm(title?: string, message?: string, acceptText?: string): import("rxjs").Observable<any>;
|
|
17
|
-
confirm(options: ConfirmOptions): Promise<any>;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmService>;
|
|
20
|
-
}
|