@noatgnu/cupcake-vanilla 1.3.11 → 1.3.13
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
|
-
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, AsyncTaskQueryParams, PaginatedResponse as PaginatedResponse$1, AsyncTaskStatus, DownloadUrlResponse, MetadataExportRequest, AsyncTaskCreateResponse, BulkExportRequest, BulkExcelExportRequest, MetadataImportRequest, MetadataValidationRequest, ChunkedImportRequest, User, LabGroupService, LabGroup, MetadataValidationConfig, TaskType, TaskStatus, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
4
|
+
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, AsyncTaskQueryParams, PaginatedResponse as PaginatedResponse$1, AsyncTaskStatus, DownloadUrlResponse, MetadataExportRequest, AsyncTaskCreateResponse, BulkExportRequest, BulkExcelExportRequest, MetadataImportRequest, ValidationSchema, MetadataValidationRequest, ChunkedImportRequest, User, LabGroupService, LabGroup, MetadataValidationConfig, TaskType, TaskStatus, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
5
5
|
export { WebSocketMessage } from '@noatgnu/cupcake-core';
|
|
6
6
|
import * as _angular_forms from '@angular/forms';
|
|
7
7
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
@@ -336,6 +336,9 @@ interface MetadataColumnTemplate extends BaseTimestampedModel {
|
|
|
336
336
|
ownerUsername?: string;
|
|
337
337
|
labGroup?: number;
|
|
338
338
|
labGroupName?: string;
|
|
339
|
+
schema?: number;
|
|
340
|
+
schemaName?: string;
|
|
341
|
+
sourceSchema?: string;
|
|
339
342
|
isSystemTemplate: boolean;
|
|
340
343
|
isActive: boolean;
|
|
341
344
|
usageCount?: number;
|
|
@@ -553,6 +556,10 @@ interface Schema {
|
|
|
553
556
|
version?: string;
|
|
554
557
|
url?: string;
|
|
555
558
|
isActive: boolean;
|
|
559
|
+
isBuiltin: boolean;
|
|
560
|
+
isPublic?: boolean;
|
|
561
|
+
creator?: number;
|
|
562
|
+
creatorUsername?: string;
|
|
556
563
|
columnsCount?: number;
|
|
557
564
|
}
|
|
558
565
|
interface OntologySuggestion {
|
|
@@ -1334,6 +1341,8 @@ interface MetadataColumnTemplateQueryParams {
|
|
|
1334
1341
|
labGroupId?: number;
|
|
1335
1342
|
visibility?: string;
|
|
1336
1343
|
isActive?: boolean;
|
|
1344
|
+
schemaId?: number;
|
|
1345
|
+
sourceSchema?: string;
|
|
1337
1346
|
limit?: number;
|
|
1338
1347
|
offset?: number;
|
|
1339
1348
|
ordering?: string;
|
|
@@ -1567,6 +1576,8 @@ interface SchemaQueryParams {
|
|
|
1567
1576
|
search?: string;
|
|
1568
1577
|
category?: string;
|
|
1569
1578
|
isActive?: boolean;
|
|
1579
|
+
isBuiltin?: boolean;
|
|
1580
|
+
isPublic?: boolean;
|
|
1570
1581
|
limit?: number;
|
|
1571
1582
|
offset?: number;
|
|
1572
1583
|
ordering?: string;
|
|
@@ -1705,6 +1716,7 @@ declare class AsyncExportService extends BaseApiService {
|
|
|
1705
1716
|
}
|
|
1706
1717
|
|
|
1707
1718
|
declare class ChunkedUploadService extends BaseApiService {
|
|
1719
|
+
private siteConfigService;
|
|
1708
1720
|
/**
|
|
1709
1721
|
* Initialize or continue a chunked upload
|
|
1710
1722
|
*/
|
|
@@ -1750,6 +1762,7 @@ declare class AsyncImportService extends BaseApiService {
|
|
|
1750
1762
|
}
|
|
1751
1763
|
|
|
1752
1764
|
declare class AsyncValidationService extends BaseApiService {
|
|
1765
|
+
getAvailableSchemas(): Observable<ValidationSchema[]>;
|
|
1753
1766
|
metadataTable(request: MetadataValidationRequest): Observable<AsyncTaskCreateResponse>;
|
|
1754
1767
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsyncValidationService, never>;
|
|
1755
1768
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AsyncValidationService>;
|
|
@@ -1917,11 +1930,6 @@ interface ElectronAPI {
|
|
|
1917
1930
|
onBackendStatusChange(callback: (status: any) => void): () => void;
|
|
1918
1931
|
onWindowStateChange(callback: (state: 'maximized' | 'unmaximized') => void): () => void;
|
|
1919
1932
|
}
|
|
1920
|
-
declare global {
|
|
1921
|
-
interface Window {
|
|
1922
|
-
electronAPI?: ElectronAPI;
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
1933
|
declare class ElectronService {
|
|
1926
1934
|
private electronAPI;
|
|
1927
1935
|
constructor();
|
|
@@ -2187,17 +2195,29 @@ declare class ValidationResultsModal {
|
|
|
2187
2195
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ValidationResultsModal, "ccv-validation-results-modal", never, { "results": { "alias": "results"; "required": false; }; }, {}, never, never, true, never>;
|
|
2188
2196
|
}
|
|
2189
2197
|
|
|
2190
|
-
declare class MetadataValidationModal {
|
|
2198
|
+
declare class MetadataValidationModal implements OnInit {
|
|
2191
2199
|
config?: MetadataValidationConfig;
|
|
2192
2200
|
private fb;
|
|
2193
2201
|
private asyncTaskService;
|
|
2202
|
+
private asyncValidationService;
|
|
2194
2203
|
private toastService;
|
|
2195
2204
|
activeModal: NgbActiveModal;
|
|
2196
2205
|
isValidating: _angular_core.WritableSignal<boolean>;
|
|
2206
|
+
isLoadingSchemas: _angular_core.WritableSignal<boolean>;
|
|
2197
2207
|
validationError: _angular_core.WritableSignal<string | null>;
|
|
2208
|
+
availableSchemas: _angular_core.WritableSignal<ValidationSchema[]>;
|
|
2209
|
+
selectedSchemas: _angular_core.WritableSignal<Set<string>>;
|
|
2198
2210
|
validationForm: _angular_forms.FormGroup<{
|
|
2199
2211
|
validate_sdrf_format: _angular_forms.FormControl<boolean | null>;
|
|
2212
|
+
skip_ontology: _angular_forms.FormControl<boolean | null>;
|
|
2213
|
+
include_pools: _angular_forms.FormControl<boolean | null>;
|
|
2200
2214
|
}>;
|
|
2215
|
+
ngOnInit(): void;
|
|
2216
|
+
loadAvailableSchemas(): void;
|
|
2217
|
+
toggleSchema(schemaName: string): void;
|
|
2218
|
+
isSchemaSelected(schemaName: string): boolean;
|
|
2219
|
+
selectAllSchemas(): void;
|
|
2220
|
+
clearAllSchemas(): void;
|
|
2201
2221
|
onSubmit(): void;
|
|
2202
2222
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataValidationModal, never>;
|
|
2203
2223
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MetadataValidationModal, "ccv-metadata-validation-modal", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -2369,6 +2389,7 @@ declare class MetadataTableTemplateEditModal implements OnInit {
|
|
|
2369
2389
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
2370
2390
|
_templateColumns: _angular_core.WritableSignal<MetadataColumn[]>;
|
|
2371
2391
|
selectedColumnIds: _angular_core.WritableSignal<Set<number>>;
|
|
2392
|
+
recentlyModifiedColumnId: _angular_core.WritableSignal<number | null>;
|
|
2372
2393
|
templateColumns: _angular_core.Signal<MetadataColumn[]>;
|
|
2373
2394
|
allColumnsSelected: _angular_core.Signal<boolean>;
|
|
2374
2395
|
someColumnsSelected: _angular_core.Signal<boolean>;
|
|
@@ -2573,6 +2594,7 @@ declare class ColumnTemplates implements OnInit {
|
|
|
2573
2594
|
private fb;
|
|
2574
2595
|
private metadataColumnTemplateService;
|
|
2575
2596
|
private labGroupService;
|
|
2597
|
+
private schemaService;
|
|
2576
2598
|
private modalService;
|
|
2577
2599
|
searchForm: FormGroup;
|
|
2578
2600
|
private searchParams;
|
|
@@ -2593,14 +2615,28 @@ declare class ColumnTemplates implements OnInit {
|
|
|
2593
2615
|
results: MetadataColumnTemplate[];
|
|
2594
2616
|
}>;
|
|
2595
2617
|
labGroupsData: _angular_core.WritableSignal<LabGroupQueryResponse>;
|
|
2618
|
+
schemasData: _angular_core.WritableSignal<PaginatedResponse<Schema>>;
|
|
2619
|
+
selectedSchema: _angular_core.WritableSignal<Schema | null>;
|
|
2620
|
+
schemaSearchText: string;
|
|
2621
|
+
schemaTypeFilter: _angular_core.WritableSignal<"user" | "all" | "builtin">;
|
|
2596
2622
|
hasTemplates: _angular_core.Signal<boolean>;
|
|
2597
2623
|
hasLabGroups: _angular_core.Signal<boolean>;
|
|
2624
|
+
hasSchemas: _angular_core.Signal<boolean>;
|
|
2598
2625
|
showTemplatesPagination: _angular_core.Signal<boolean>;
|
|
2599
2626
|
showLabGroupsPagination: _angular_core.Signal<boolean>;
|
|
2600
2627
|
filteredTemplates: _angular_core.Signal<MetadataColumnTemplate[]>;
|
|
2601
|
-
constructor(fb: FormBuilder, metadataColumnTemplateService: MetadataColumnTemplateService, labGroupService: LabGroupService, modalService: NgbModal);
|
|
2628
|
+
constructor(fb: FormBuilder, metadataColumnTemplateService: MetadataColumnTemplateService, labGroupService: LabGroupService, schemaService: SchemaService, modalService: NgbModal);
|
|
2602
2629
|
ngOnInit(): void;
|
|
2603
2630
|
private loadInitialData;
|
|
2631
|
+
private loadSchemas;
|
|
2632
|
+
private getSchemaQueryParams;
|
|
2633
|
+
searchSchemas: OperatorFunction<string, readonly Schema[]>;
|
|
2634
|
+
onSchemaTypeFilterChange(type: 'all' | 'builtin' | 'user'): void;
|
|
2635
|
+
formatSchema: (schema: Schema) => string;
|
|
2636
|
+
onSchemaSelected: (event: any) => void;
|
|
2637
|
+
clearSchemaFilter(): void;
|
|
2638
|
+
filterBySchema(template: MetadataColumnTemplate): void;
|
|
2639
|
+
filterBySourceSchema(sourceSchema: string): void;
|
|
2604
2640
|
private loadLabGroupsWithParams;
|
|
2605
2641
|
private setupSearch;
|
|
2606
2642
|
private loadTemplatesWithParams;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noatgnu/cupcake-vanilla",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "An extension for cupcake-core that provides additional api and interfaces for facility to manage and compose metadata.",
|
|
5
5
|
"author": "Toan Phung",
|
|
6
6
|
"license": "MIT",
|