@dataclouder/ngx-core 0.1.47 → 0.1.49
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
|
@@ -21,6 +21,7 @@ declare class EmptyStateComponent {
|
|
|
21
21
|
interface SortOption {
|
|
22
22
|
label: string;
|
|
23
23
|
value: string;
|
|
24
|
+
mongoSort?: Record<string, 1 | -1>;
|
|
24
25
|
}
|
|
25
26
|
declare const availibleFilters: {
|
|
26
27
|
name: string;
|
|
@@ -209,6 +210,7 @@ declare class DCFilterBarComponent implements OnInit {
|
|
|
209
210
|
readonly items: i0.InputSignal<MenuItem[]>;
|
|
210
211
|
readonly options: i0.InputSignal<ListFilterBarOptions>;
|
|
211
212
|
customFilters: ICustomFilter[];
|
|
213
|
+
customSortOptions: SortOption[];
|
|
212
214
|
isAdmin: boolean;
|
|
213
215
|
persistenceKey: string;
|
|
214
216
|
readonly onFilterAction: i0.OutputEmitterRef<any>;
|
|
@@ -226,7 +228,7 @@ declare class DCFilterBarComponent implements OnInit {
|
|
|
226
228
|
clearFilters(): void;
|
|
227
229
|
doItemAction(filterEvent: OnActionEvent): void;
|
|
228
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<DCFilterBarComponent, never>;
|
|
229
|
-
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; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; }, { "onFilterAction": "onFilterAction"; "onNew": "onNew"; }, never, never, true, never>;
|
|
231
|
+
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; }; "customSortOptions": { "alias": "customSortOptions"; "required": false; }; "isAdmin": { "alias": "isAdmin"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; }, { "onFilterAction": "onFilterAction"; "onNew": "onNew"; }, never, never, true, never>;
|
|
230
232
|
}
|
|
231
233
|
|
|
232
234
|
declare class ConfirmComponent implements OnInit {
|
|
@@ -686,7 +688,7 @@ declare class HttpCoreService {
|
|
|
686
688
|
}
|
|
687
689
|
|
|
688
690
|
declare abstract class EntityCommunicationService<T> {
|
|
689
|
-
|
|
691
|
+
protected serviceName: string;
|
|
690
692
|
protected httpService: HttpCoreService;
|
|
691
693
|
protected customHost?: string;
|
|
692
694
|
constructor(serviceName: string);
|
|
@@ -699,6 +701,7 @@ declare abstract class EntityCommunicationService<T> {
|
|
|
699
701
|
partialUpdate(id: string, partialUpdates: Partial<T>): Promise<T>;
|
|
700
702
|
remove(id: string): Promise<void>;
|
|
701
703
|
clone(id: string, overrides?: Partial<T>): Promise<T>;
|
|
704
|
+
getFixedQuery(): Record<string, any>;
|
|
702
705
|
operation(params: {
|
|
703
706
|
action: 'findOne' | 'find' | 'create' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'aggregate' | 'count';
|
|
704
707
|
query?: any;
|
|
@@ -757,6 +760,7 @@ declare abstract class EntityBaseListV2Component<T> extends PaginationBase imple
|
|
|
757
760
|
totalRecordsSignal: WritableSignal<number>;
|
|
758
761
|
filterBarOptions: ListFilterBarOptions;
|
|
759
762
|
columns: any[];
|
|
763
|
+
fixedQuery: Record<string, any>;
|
|
760
764
|
mongoState: MongoState;
|
|
761
765
|
constructor();
|
|
762
766
|
ngOnInit(): Promise<void>;
|
|
@@ -905,7 +909,7 @@ declare class GetPathPipe implements PipeTransform {
|
|
|
905
909
|
}
|
|
906
910
|
|
|
907
911
|
declare class LangDescTranslation implements PipeTransform {
|
|
908
|
-
transform(value: string, lang
|
|
912
|
+
transform(value: string, lang?: string | null): string;
|
|
909
913
|
static ɵfac: i0.ɵɵFactoryDeclaration<LangDescTranslation, never>;
|
|
910
914
|
static ɵpipe: i0.ɵɵPipeDeclaration<LangDescTranslation, "langDesc", true>;
|
|
911
915
|
}
|
|
@@ -1045,6 +1049,25 @@ interface ILanguageData {
|
|
|
1045
1049
|
}
|
|
1046
1050
|
declare const LANGUAGES: Record<string, ILanguageData>;
|
|
1047
1051
|
declare function getLangDesc(langCode: string, lang?: string): string;
|
|
1052
|
+
/**
|
|
1053
|
+
* How to use this pipe
|
|
1054
|
+
* @example
|
|
1055
|
+
* // In your component ts file assuming you have a variable with the lang code
|
|
1056
|
+
*
|
|
1057
|
+
* \@Component({
|
|
1058
|
+
* selector: 'app-example',
|
|
1059
|
+
* template: `
|
|
1060
|
+
* <span>{{'en' | langDesc: 'es'}}</span>
|
|
1061
|
+
* `,
|
|
1062
|
+
* standalone: true,
|
|
1063
|
+
* imports: [LangDescTranslation]
|
|
1064
|
+
* })
|
|
1065
|
+
*
|
|
1066
|
+
*
|
|
1067
|
+
* class ExampleComponent {
|
|
1068
|
+
* }
|
|
1069
|
+
*
|
|
1070
|
+
*/
|
|
1048
1071
|
declare function getSupportedLanguageOptions(lang?: 'es' | 'en'): {
|
|
1049
1072
|
value: string;
|
|
1050
1073
|
label: string;
|