@noatgnu/cupcake-vanilla 1.2.12 → 1.2.14
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/noatgnu-cupcake-vanilla.mjs +1819 -16
- package/fesm2022/noatgnu-cupcake-vanilla.mjs.map +1 -1
- package/index.d.ts +351 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
4
|
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, User, LabGroupService, LabGroup, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
5
5
|
export { WebSocketMessage } from '@noatgnu/cupcake-core';
|
|
@@ -7,6 +7,7 @@ import * as _angular_forms from '@angular/forms';
|
|
|
7
7
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
8
8
|
import { NgbActiveModal, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
9
9
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
10
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
10
11
|
|
|
11
12
|
interface BaseTimestampedModel {
|
|
12
13
|
createdAt: string;
|
|
@@ -880,6 +881,63 @@ declare class MetadataTableService extends BaseApiService {
|
|
|
880
881
|
newSampleCount: number;
|
|
881
882
|
cleanupPerformed: boolean;
|
|
882
883
|
}>;
|
|
884
|
+
/**
|
|
885
|
+
* Replace all occurrences of a specific value across columns in this table
|
|
886
|
+
*/
|
|
887
|
+
replaceColumnValue(id: number, request: {
|
|
888
|
+
oldValue: string;
|
|
889
|
+
newValue: string;
|
|
890
|
+
columnId?: number;
|
|
891
|
+
columnName?: string;
|
|
892
|
+
updatePools?: boolean;
|
|
893
|
+
}): Observable<{
|
|
894
|
+
message: string;
|
|
895
|
+
oldValue: string;
|
|
896
|
+
newValue: string;
|
|
897
|
+
columnsChecked: number;
|
|
898
|
+
columnsUpdated: number;
|
|
899
|
+
modifiersMerged: number;
|
|
900
|
+
modifiersDeleted: number;
|
|
901
|
+
samplesRevertedToDefault: number;
|
|
902
|
+
poolColumnsUpdated: number;
|
|
903
|
+
}>;
|
|
904
|
+
/**
|
|
905
|
+
* Bulk delete columns from a metadata table
|
|
906
|
+
*/
|
|
907
|
+
bulkDeleteColumns(id: number, request: {
|
|
908
|
+
columnIds: number[];
|
|
909
|
+
}): Observable<{
|
|
910
|
+
message: string;
|
|
911
|
+
deletedCount: number;
|
|
912
|
+
deletedColumns: Array<{
|
|
913
|
+
id: number;
|
|
914
|
+
name: string;
|
|
915
|
+
}>;
|
|
916
|
+
permissionDeniedColumns: Array<{
|
|
917
|
+
id: number;
|
|
918
|
+
name: string;
|
|
919
|
+
}>;
|
|
920
|
+
}>;
|
|
921
|
+
/**
|
|
922
|
+
* Bulk update staff-only status for columns
|
|
923
|
+
*/
|
|
924
|
+
bulkUpdateStaffOnly(id: number, request: {
|
|
925
|
+
columnIds: number[];
|
|
926
|
+
staffOnly: boolean;
|
|
927
|
+
}): Observable<{
|
|
928
|
+
message: string;
|
|
929
|
+
updatedCount: number;
|
|
930
|
+
updatedColumns: Array<{
|
|
931
|
+
id: number;
|
|
932
|
+
name: string;
|
|
933
|
+
staffOnly: boolean;
|
|
934
|
+
}>;
|
|
935
|
+
permissionDeniedColumns: Array<{
|
|
936
|
+
id: number;
|
|
937
|
+
name: string;
|
|
938
|
+
}>;
|
|
939
|
+
staffOnly: boolean;
|
|
940
|
+
}>;
|
|
883
941
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataTableService, never>;
|
|
884
942
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MetadataTableService>;
|
|
885
943
|
}
|
|
@@ -998,6 +1056,23 @@ declare class MetadataColumnService extends BaseApiService {
|
|
|
998
1056
|
columnType: string;
|
|
999
1057
|
detectedOntologyType: string;
|
|
1000
1058
|
}>;
|
|
1059
|
+
/**
|
|
1060
|
+
* Replace all occurrences of a specific value with a new value in this column
|
|
1061
|
+
*/
|
|
1062
|
+
replaceValue(id: number, request: {
|
|
1063
|
+
oldValue: string;
|
|
1064
|
+
newValue: string;
|
|
1065
|
+
updatePools?: boolean;
|
|
1066
|
+
}): Observable<{
|
|
1067
|
+
message: string;
|
|
1068
|
+
oldValue: string;
|
|
1069
|
+
newValue: string;
|
|
1070
|
+
defaultValueUpdated: boolean;
|
|
1071
|
+
modifiersMerged: number;
|
|
1072
|
+
modifiersDeleted: number;
|
|
1073
|
+
samplesRevertedToDefault: number;
|
|
1074
|
+
poolColumnsUpdated: number;
|
|
1075
|
+
}>;
|
|
1001
1076
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataColumnService, never>;
|
|
1002
1077
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MetadataColumnService>;
|
|
1003
1078
|
}
|
|
@@ -1203,6 +1278,35 @@ declare class MetadataTableTemplateService extends BaseApiService {
|
|
|
1203
1278
|
description?: string;
|
|
1204
1279
|
sampleCount: number;
|
|
1205
1280
|
}): Observable<MetadataTable>;
|
|
1281
|
+
/**
|
|
1282
|
+
* Bulk delete columns from a metadata table template
|
|
1283
|
+
*/
|
|
1284
|
+
bulkDeleteColumns(id: number, request: {
|
|
1285
|
+
columnIds: number[];
|
|
1286
|
+
}): Observable<{
|
|
1287
|
+
message: string;
|
|
1288
|
+
deletedCount: number;
|
|
1289
|
+
deletedColumns: Array<{
|
|
1290
|
+
id: number;
|
|
1291
|
+
name: string;
|
|
1292
|
+
}>;
|
|
1293
|
+
}>;
|
|
1294
|
+
/**
|
|
1295
|
+
* Bulk update staff-only status for columns in a template
|
|
1296
|
+
*/
|
|
1297
|
+
bulkUpdateStaffOnly(id: number, request: {
|
|
1298
|
+
columnIds: number[];
|
|
1299
|
+
staffOnly: boolean;
|
|
1300
|
+
}): Observable<{
|
|
1301
|
+
message: string;
|
|
1302
|
+
updatedCount: number;
|
|
1303
|
+
updatedColumns: Array<{
|
|
1304
|
+
id: number;
|
|
1305
|
+
name: string;
|
|
1306
|
+
staffOnly: boolean;
|
|
1307
|
+
}>;
|
|
1308
|
+
staffOnly: boolean;
|
|
1309
|
+
}>;
|
|
1206
1310
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataTableTemplateService, never>;
|
|
1207
1311
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MetadataTableTemplateService>;
|
|
1208
1312
|
}
|
|
@@ -1998,6 +2102,8 @@ interface MetadataValueEditConfig {
|
|
|
1998
2102
|
sourceName?: string;
|
|
1999
2103
|
}[];
|
|
2000
2104
|
maxSampleCount?: number;
|
|
2105
|
+
allowNotApplicable?: boolean;
|
|
2106
|
+
allowNotAvailable?: boolean;
|
|
2001
2107
|
}
|
|
2002
2108
|
declare class MetadataValueEditModal implements OnInit {
|
|
2003
2109
|
private fb;
|
|
@@ -2045,6 +2151,7 @@ declare class MetadataValueEditModal implements OnInit {
|
|
|
2045
2151
|
onSuggestionSelected: (event: any) => void;
|
|
2046
2152
|
onSearchTypeChange(type: 'icontains' | 'istartswith'): void;
|
|
2047
2153
|
clearValue(): void;
|
|
2154
|
+
setValue(value: string): void;
|
|
2048
2155
|
loadFavoriteOptions(): void;
|
|
2049
2156
|
selectFavorite(favorite: FavouriteMetadataOption): void;
|
|
2050
2157
|
onFavoriteSelected(event: Event, favoritesList: FavouriteMetadataOption[]): void;
|
|
@@ -2310,7 +2417,10 @@ declare class MetadataTableTemplateEditModal implements OnInit {
|
|
|
2310
2417
|
editForm: FormGroup;
|
|
2311
2418
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
2312
2419
|
_templateColumns: _angular_core.WritableSignal<MetadataColumn[]>;
|
|
2420
|
+
selectedColumnIds: _angular_core.WritableSignal<Set<number>>;
|
|
2313
2421
|
templateColumns: _angular_core.Signal<MetadataColumn[]>;
|
|
2422
|
+
allColumnsSelected: _angular_core.Signal<boolean>;
|
|
2423
|
+
someColumnsSelected: _angular_core.Signal<boolean>;
|
|
2314
2424
|
visibilityOptions: {
|
|
2315
2425
|
value: ResourceVisibility;
|
|
2316
2426
|
label: string;
|
|
@@ -2329,6 +2439,9 @@ declare class MetadataTableTemplateEditModal implements OnInit {
|
|
|
2329
2439
|
editColumn(column: MetadataColumn): void;
|
|
2330
2440
|
duplicateColumn(column: MetadataColumn): void;
|
|
2331
2441
|
removeColumn(column: MetadataColumn): void;
|
|
2442
|
+
toggleColumnSelection(columnId: number): void;
|
|
2443
|
+
toggleAllColumns(): void;
|
|
2444
|
+
bulkToggleStaffOnly(staffOnly: boolean): void;
|
|
2332
2445
|
onColumnDrop(event: CdkDragDrop<MetadataColumn[]>): void;
|
|
2333
2446
|
private openColumnModal;
|
|
2334
2447
|
private handleColumnSave;
|
|
@@ -2387,6 +2500,7 @@ declare class ColumnEditModal implements OnInit {
|
|
|
2387
2500
|
get hasOntologyType(): boolean;
|
|
2388
2501
|
get hasTypeaheadEnabled(): boolean;
|
|
2389
2502
|
openValueEditModal(): void;
|
|
2503
|
+
setDefaultValue(value: string): void;
|
|
2390
2504
|
private loadColumnTemplates;
|
|
2391
2505
|
onTemplateFilterChange(): void;
|
|
2392
2506
|
clearTemplateFilter(): void;
|
|
@@ -2582,6 +2696,7 @@ declare class ColumnTemplateEditModal implements OnInit {
|
|
|
2582
2696
|
onOntologyTypeChange(): void;
|
|
2583
2697
|
onSubmit(): void;
|
|
2584
2698
|
private markFormGroupTouched;
|
|
2699
|
+
setDefaultValue(value: string): void;
|
|
2585
2700
|
onCancel(): void;
|
|
2586
2701
|
onClose(): void;
|
|
2587
2702
|
getFieldError(fieldName: string): string;
|
|
@@ -2697,10 +2812,243 @@ declare class FavoriteManagement implements OnInit {
|
|
|
2697
2812
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FavoriteManagement, "ccv-favorite-management", never, {}, {}, never, never, true, never>;
|
|
2698
2813
|
}
|
|
2699
2814
|
|
|
2815
|
+
interface SearchReplaceConfig {
|
|
2816
|
+
context: 'table' | 'column';
|
|
2817
|
+
tableId?: number;
|
|
2818
|
+
tableName?: string;
|
|
2819
|
+
columnId?: number;
|
|
2820
|
+
columnName?: string;
|
|
2821
|
+
columns?: MetadataColumn[];
|
|
2822
|
+
}
|
|
2823
|
+
declare class SearchReplaceModal {
|
|
2824
|
+
private fb;
|
|
2825
|
+
activeModal: NgbActiveModal;
|
|
2826
|
+
config: SearchReplaceConfig;
|
|
2827
|
+
searchReplaceForm: FormGroup;
|
|
2828
|
+
isProcessing: _angular_core.WritableSignal<boolean>;
|
|
2829
|
+
result: _angular_core.WritableSignal<{
|
|
2830
|
+
message: string;
|
|
2831
|
+
oldValue: string;
|
|
2832
|
+
newValue: string;
|
|
2833
|
+
columnsChecked?: number;
|
|
2834
|
+
columnsUpdated?: number;
|
|
2835
|
+
defaultValueUpdated?: boolean;
|
|
2836
|
+
modifiersMerged?: number;
|
|
2837
|
+
modifiersDeleted?: number;
|
|
2838
|
+
} | null>;
|
|
2839
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal);
|
|
2840
|
+
get isTableContext(): boolean;
|
|
2841
|
+
get isColumnContext(): boolean;
|
|
2842
|
+
onSubmit(): void;
|
|
2843
|
+
private markFormGroupTouched;
|
|
2844
|
+
onCancel(): void;
|
|
2845
|
+
getFieldError(fieldName: string): string;
|
|
2846
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchReplaceModal, never>;
|
|
2847
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchReplaceModal, "ccv-search-replace-modal", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
declare class MetadataTableDetails implements OnInit, OnDestroy {
|
|
2851
|
+
private route;
|
|
2852
|
+
private router;
|
|
2853
|
+
private metadataTableService;
|
|
2854
|
+
private asyncExportService;
|
|
2855
|
+
private chunkedUploadService;
|
|
2856
|
+
private samplePoolService;
|
|
2857
|
+
private metadataColumnService;
|
|
2858
|
+
private toastService;
|
|
2859
|
+
private asyncTaskService;
|
|
2860
|
+
private modalService;
|
|
2861
|
+
private destroy$;
|
|
2862
|
+
fileInput: ElementRef<HTMLInputElement>;
|
|
2863
|
+
excelInput: ElementRef<HTMLInputElement>;
|
|
2864
|
+
Math: Math;
|
|
2865
|
+
onColumnFilterChange(value: string): void;
|
|
2866
|
+
clearColumnFilter(): void;
|
|
2867
|
+
get filteredColumnCount(): number;
|
|
2868
|
+
get totalColumnCount(): number;
|
|
2869
|
+
sortBy(field: string): void;
|
|
2870
|
+
getSortIcon(field: string): string;
|
|
2871
|
+
isSorted(field: string): boolean;
|
|
2872
|
+
isLoading: _angular_core.WritableSignal<boolean>;
|
|
2873
|
+
table: _angular_core.WritableSignal<MetadataTable | null>;
|
|
2874
|
+
tableId: _angular_core.WritableSignal<number | null>;
|
|
2875
|
+
viewMode: _angular_core.WritableSignal<"table" | "list">;
|
|
2876
|
+
currentPage: _angular_core.WritableSignal<number>;
|
|
2877
|
+
pageSize: _angular_core.WritableSignal<number>;
|
|
2878
|
+
columnFilter: _angular_core.WritableSignal<string>;
|
|
2879
|
+
sortField: _angular_core.WritableSignal<string>;
|
|
2880
|
+
sortDirection: _angular_core.WritableSignal<"asc" | "desc">;
|
|
2881
|
+
hasColumns: _angular_core.Signal<boolean | undefined>;
|
|
2882
|
+
hasPools: _angular_core.Signal<boolean | undefined>;
|
|
2883
|
+
sortedColumns: _angular_core.Signal<MetadataColumn[]>;
|
|
2884
|
+
dragColumnsForList: _angular_core.WritableSignal<MetadataColumn[]>;
|
|
2885
|
+
sortedPools: _angular_core.Signal<SamplePool[]>;
|
|
2886
|
+
tableRows: _angular_core.Signal<any[]>;
|
|
2887
|
+
poolTableRows: _angular_core.Signal<any[]>;
|
|
2888
|
+
paginatedRows: _angular_core.Signal<any[]>;
|
|
2889
|
+
totalPages: _angular_core.Signal<number>;
|
|
2890
|
+
constructor(route: ActivatedRoute, router: Router, metadataTableService: MetadataTableService, asyncExportService: AsyncExportService, chunkedUploadService: ChunkedUploadService, samplePoolService: SamplePoolService, metadataColumnService: MetadataColumnService, toastService: ToastService, asyncTaskService: AsyncTaskUIService, modalService: NgbModal);
|
|
2891
|
+
ngOnInit(): void;
|
|
2892
|
+
ngOnDestroy(): void;
|
|
2893
|
+
private setupAsyncTaskRefreshListener;
|
|
2894
|
+
private loadTable;
|
|
2895
|
+
navigateBack(): void;
|
|
2896
|
+
switchToListMode(): void;
|
|
2897
|
+
switchToTableMode(): void;
|
|
2898
|
+
onPageChange(page: number): void;
|
|
2899
|
+
onPageSizeChange(size: number): void;
|
|
2900
|
+
editTable(): void;
|
|
2901
|
+
triggerFileInput(): void;
|
|
2902
|
+
triggerExcelInput(): void;
|
|
2903
|
+
importSdrf(event: Event): void;
|
|
2904
|
+
importExcel(event: Event): void;
|
|
2905
|
+
exportToSdrf(format?: 'sdrf' | 'excel'): void;
|
|
2906
|
+
private performExcelExport;
|
|
2907
|
+
private performSdrfExport;
|
|
2908
|
+
private handleExportRequest;
|
|
2909
|
+
deleteTable(): void;
|
|
2910
|
+
getTableStatusBadge(): string;
|
|
2911
|
+
getTableStatusClass(): string;
|
|
2912
|
+
getColumnTypeIcon(column: MetadataColumn): string;
|
|
2913
|
+
getColumnTypeClass(column: MetadataColumn): string;
|
|
2914
|
+
getColumnHeaderClass(column: MetadataColumn): string;
|
|
2915
|
+
getShortColumnName(column: MetadataColumn): string;
|
|
2916
|
+
hasModifiers(column: MetadataColumn): boolean;
|
|
2917
|
+
getColumnValueDisplay(column: MetadataColumn): string;
|
|
2918
|
+
getModifiersDisplay(column: MetadataColumn): string[];
|
|
2919
|
+
getPoolSampleCount(pool: SamplePool): number;
|
|
2920
|
+
getPoolSampleDisplay(pool: SamplePool): string;
|
|
2921
|
+
getPoolSamples(pool: SamplePool): string;
|
|
2922
|
+
getPoolTypeIcon(pool: SamplePool): string;
|
|
2923
|
+
getPoolTypeClass(pool: SamplePool): string;
|
|
2924
|
+
getPoolTypeLabel(pool: SamplePool): string;
|
|
2925
|
+
viewPoolDetails(pool: SamplePool): void;
|
|
2926
|
+
editPool(pool: SamplePool): void;
|
|
2927
|
+
createPool(): void;
|
|
2928
|
+
deletePool(pool: SamplePool): void;
|
|
2929
|
+
editColumnValue(column: MetadataColumn): void;
|
|
2930
|
+
toggleColumnHidden(column: MetadataColumn): void;
|
|
2931
|
+
viewColumnDetails(column: MetadataColumn): void;
|
|
2932
|
+
editColumnSettings(column: MetadataColumn): void;
|
|
2933
|
+
private updateColumnSettings;
|
|
2934
|
+
editPoolColumnValue(pool: SamplePool, column: any): void;
|
|
2935
|
+
editSampleColumnValue(column: MetadataColumn, sampleIndex: number): void;
|
|
2936
|
+
private getSampleColumnValue;
|
|
2937
|
+
removeColumn(column: MetadataColumn): void;
|
|
2938
|
+
/**
|
|
2939
|
+
* Open modal to add a new column with automatic reordering
|
|
2940
|
+
*/
|
|
2941
|
+
openAddColumnModal(): void;
|
|
2942
|
+
/**
|
|
2943
|
+
* Add a new column using the new API with automatic reordering
|
|
2944
|
+
*/
|
|
2945
|
+
private addColumnWithAutoReorder;
|
|
2946
|
+
/**
|
|
2947
|
+
* Reorder columns by schema selection
|
|
2948
|
+
*/
|
|
2949
|
+
reorderColumns(): void;
|
|
2950
|
+
/**
|
|
2951
|
+
* Perform the actual column reordering with async task monitoring
|
|
2952
|
+
*/
|
|
2953
|
+
private performColumnReorder;
|
|
2954
|
+
onColumnDrop(event: CdkDragDrop<MetadataColumn[]>): void;
|
|
2955
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataTableDetails, never>;
|
|
2956
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MetadataTableDetails, "ccv-metadata-table-details", never, {}, {}, never, never, true, never>;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
declare class SamplePoolDetailsModal {
|
|
2960
|
+
private activeModal;
|
|
2961
|
+
pool: SamplePool;
|
|
2962
|
+
constructor(activeModal: NgbActiveModal);
|
|
2963
|
+
onClose(): void;
|
|
2964
|
+
get title(): string;
|
|
2965
|
+
get poolTypeLabel(): string;
|
|
2966
|
+
get poolTypeClass(): string;
|
|
2967
|
+
get pooledOnlySamplesText(): string;
|
|
2968
|
+
get pooledAndIndependentSamplesText(): string;
|
|
2969
|
+
get allSamplesCount(): number;
|
|
2970
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SamplePoolDetailsModal, never>;
|
|
2971
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SamplePoolDetailsModal, "ccv-sample-pool-details-modal", never, { "pool": { "alias": "pool"; "required": false; }; }, {}, never, never, true, never>;
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
declare class SamplePoolEditModal implements OnInit {
|
|
2975
|
+
pool: SamplePool;
|
|
2976
|
+
maxSampleCount: number;
|
|
2977
|
+
poolSaved: EventEmitter<SamplePool>;
|
|
2978
|
+
editForm: FormGroup;
|
|
2979
|
+
isLoading: _angular_core.WritableSignal<boolean>;
|
|
2980
|
+
private fb;
|
|
2981
|
+
private activeModal;
|
|
2982
|
+
private samplePoolService;
|
|
2983
|
+
constructor();
|
|
2984
|
+
ngOnInit(): void;
|
|
2985
|
+
onSubmit(): void;
|
|
2986
|
+
onCancel(): void;
|
|
2987
|
+
get title(): string;
|
|
2988
|
+
get hasChanges(): boolean;
|
|
2989
|
+
private parseSampleNumbers;
|
|
2990
|
+
isFieldInvalid(fieldName: string): boolean;
|
|
2991
|
+
getFieldError(fieldName: string): string;
|
|
2992
|
+
private getFieldDisplayName;
|
|
2993
|
+
get pooledOnlySamplesCount(): number;
|
|
2994
|
+
get pooledAndIndependentSamplesCount(): number;
|
|
2995
|
+
get totalSamplesCount(): number;
|
|
2996
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SamplePoolEditModal, never>;
|
|
2997
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SamplePoolEditModal, "ccv-sample-pool-edit-modal", never, { "pool": { "alias": "pool"; "required": false; }; "maxSampleCount": { "alias": "maxSampleCount"; "required": false; }; }, { "poolSaved": "poolSaved"; }, never, never, true, never>;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
interface SampleSelectionItem {
|
|
3001
|
+
sampleNumber: number;
|
|
3002
|
+
selected: boolean;
|
|
3003
|
+
pooled: boolean;
|
|
3004
|
+
}
|
|
3005
|
+
declare class SamplePoolCreateModal implements OnInit {
|
|
3006
|
+
private fb;
|
|
3007
|
+
private activeModal;
|
|
3008
|
+
private samplePoolService;
|
|
3009
|
+
private toastService;
|
|
3010
|
+
metadataTable: MetadataTable;
|
|
3011
|
+
poolCreated: EventEmitter<SamplePool>;
|
|
3012
|
+
Math: Math;
|
|
3013
|
+
createForm: FormGroup;
|
|
3014
|
+
isLoading: _angular_core.WritableSignal<boolean>;
|
|
3015
|
+
samples: _angular_core.WritableSignal<SampleSelectionItem[]>;
|
|
3016
|
+
pooledOnlySamples: _angular_core.WritableSignal<number[]>;
|
|
3017
|
+
pooledAndIndependentSamples: _angular_core.WritableSignal<number[]>;
|
|
3018
|
+
selectionMode: _angular_core.WritableSignal<"manual" | "range">;
|
|
3019
|
+
currentPage: _angular_core.WritableSignal<number>;
|
|
3020
|
+
samplesPerPage: number;
|
|
3021
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, samplePoolService: SamplePoolService, toastService: ToastService);
|
|
3022
|
+
ngOnInit(): void;
|
|
3023
|
+
private initializeSamples;
|
|
3024
|
+
private getExistingPooledSamples;
|
|
3025
|
+
toggleSampleSelection(sampleNumber: number): void;
|
|
3026
|
+
selectSamplesInRange(): void;
|
|
3027
|
+
clearAllSelections(): void;
|
|
3028
|
+
private updateSampleTextInputs;
|
|
3029
|
+
assignToPooledOnly(): void;
|
|
3030
|
+
assignToPooledAndIndependent(): void;
|
|
3031
|
+
onSubmit(): void;
|
|
3032
|
+
onCancel(): void;
|
|
3033
|
+
parseSampleNumbers(text: string): number[];
|
|
3034
|
+
get selectedSamplesCount(): number;
|
|
3035
|
+
get totalPooledSamplesCount(): number;
|
|
3036
|
+
get paginatedSamples(): SampleSelectionItem[];
|
|
3037
|
+
get totalPages(): number;
|
|
3038
|
+
isFieldInvalid(fieldName: string): boolean;
|
|
3039
|
+
getFieldError(fieldName: string): string;
|
|
3040
|
+
private getFieldDisplayName;
|
|
3041
|
+
goToPage(page: number): void;
|
|
3042
|
+
previousPage(): void;
|
|
3043
|
+
nextPage(): void;
|
|
3044
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SamplePoolCreateModal, never>;
|
|
3045
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SamplePoolCreateModal, "ccv-sample-pool-create-modal", never, { "metadataTable": { "alias": "metadataTable"; "required": false; }; }, { "poolCreated": "poolCreated"; }, never, never, true, never>;
|
|
3046
|
+
}
|
|
3047
|
+
|
|
2700
3048
|
declare class CupcakeVanilla {
|
|
2701
3049
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CupcakeVanilla, never>;
|
|
2702
3050
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CupcakeVanilla, "ccv-cupcake-vanilla", never, {}, {}, never, never, true, never>;
|
|
2703
3051
|
}
|
|
2704
3052
|
|
|
2705
|
-
export { AdminWebSocketService, AsyncExportService, AsyncImportService, AsyncTaskService, AsyncTaskUIService, AsyncValidationService, COLUMN_TYPE_CONFIGS, ChunkedImportService, ChunkedUploadService, ColumnEditModal, ColumnTemplateEditModal, ColumnTemplates, ColumnType, CupcakeVanilla, ElectronService, ExcelExportModalComponent, FavoriteManagement, FavouriteMetadataOptionService, MSTermType, MetadataColumnService, MetadataColumnTemplateService, MetadataColumnTemplateShareService, MetadataManagementService, MetadataTableEditModal, MetadataTableService, MetadataTableTemplateEditModal, MetadataTableTemplateService, MetadataTableTemplates, MetadataValidationModal, MetadataValueEditModal, NotificationService, NotificationType, OFFICIAL_SDRF_COLUMNS, ONTOLOGY_TYPE_CONFIGS, OntologySearchService, OntologyType, OntologyTypeLabels, OntologyUtils, SDRFDefaultsService, SamplePoolService, SchemaSelectionModal, SchemaService, SdrfAgeInput, SdrfCleavageInput, SdrfColumnCategory, SdrfModificationInput, SdrfSpikedCompoundInput, SdrfSyntaxService, TASK_STATUS_COLORS, TASK_STATUS_LABELS, TASK_TYPE_LABELS, TableCreationModalComponent, TemplatePermissionLabels, TemplatePermissionLevel, TemplateSchemaSelectionModal, ValidationResultsModal, Websocket, getRequiredSdrfColumns, getSdrfColumnByName, getSdrfColumnsByCategory, isSdrfColumnRequired, isUnimodFullData };
|
|
2706
|
-
export type { AgeFormat, ApiResponse, AsyncTaskCreateResponse, AsyncTaskQueryParams, AsyncTaskStatus, BaseTimestampedModel, BulkExcelExportRequest, BulkExportRequest, CellOntology, ChEBICompound, ChunkedFileImportRequest, ChunkedImportProgress, ChunkedImportRequest, ChunkedUploadCompletionRequest, ChunkedUploadCompletionResponse, ChunkedUploadRequest, ChunkedUploadResponse, ChunkedUploadStatus, CleavageAgentDetails, ColumnTypeConfig, DownloadUrlResponse, ElectronAPI, ExcelExportOptions, FavouriteMetadataOption, FavouriteMetadataOptionCreateRequest, FavouriteMetadataOptionQueryParams, FavouriteMetadataOptionUpdateRequest, HumanDisease, MSUniqueVocabularies, MetadataColumn, MetadataColumnCreateRequest, MetadataColumnModifier, MetadataColumnQueryParams, MetadataColumnTemplate, MetadataColumnTemplateCreateRequest, MetadataColumnTemplateQueryParams, MetadataColumnTemplateShare, MetadataColumnTemplateShareCreateRequest, MetadataColumnTemplateShareQueryParams, MetadataColumnTemplateUpdateRequest, MetadataColumnUpdateRequest, MetadataExportRequest, MetadataImportRequest, MetadataQueryParams, MetadataTable, MetadataTableCreateRequest, MetadataTableQueryParams, MetadataTableQueryResponse, MetadataTableTemplate, MetadataTableTemplateCreateRequest, MetadataTableTemplateQueryParams, MetadataTableTemplateQueryResponse, MetadataTableTemplateUpdateRequest, MetadataTableUpdateRequest, MetadataValidationConfig, MetadataValidationRequest, MetadataValueEditConfig, ModificationParameters, MondoDisease, NCBITaxonomy, OntologyCustomFilter, OntologySuggestParams, OntologySuggestResponse, OntologySuggestion, OntologyTypeConfig, PSIMSOntology, PaginatedResponse, PooledSample, SampleCountConfirmationError, SampleCountValidationRequest, SampleCountValidationResponse, SampleCountValidationResult, SamplePool, SamplePoolCreateRequest, SamplePoolQueryParams, SamplePoolUpdateRequest, Schema, SchemaQueryParams, SchemaSelectionResult, SdrfColumnConfig, Species, SpikedCompound, SubcellularLocation, SyntaxType, SyntheticPeptide, TableCreationData, TaskListItem, TaskResult, TaskStatus, TaskType, TemplateSchemaSelectionResult, Tissue, UberonAnatomy, Unimod, UnimodFullData, UnimodSpecification, ValidationResult, ValidationResults };
|
|
3053
|
+
export { AdminWebSocketService, AsyncExportService, AsyncImportService, AsyncTaskService, AsyncTaskUIService, AsyncValidationService, COLUMN_TYPE_CONFIGS, ChunkedImportService, ChunkedUploadService, ColumnEditModal, ColumnTemplateEditModal, ColumnTemplates, ColumnType, CupcakeVanilla, ElectronService, ExcelExportModalComponent, FavoriteManagement, FavouriteMetadataOptionService, MSTermType, MetadataColumnService, MetadataColumnTemplateService, MetadataColumnTemplateShareService, MetadataManagementService, MetadataTableDetails, MetadataTableEditModal, MetadataTableService, MetadataTableTemplateEditModal, MetadataTableTemplateService, MetadataTableTemplates, MetadataValidationModal, MetadataValueEditModal, NotificationService, NotificationType, OFFICIAL_SDRF_COLUMNS, ONTOLOGY_TYPE_CONFIGS, OntologySearchService, OntologyType, OntologyTypeLabels, OntologyUtils, SDRFDefaultsService, SamplePoolCreateModal, SamplePoolDetailsModal, SamplePoolEditModal, SamplePoolService, SchemaSelectionModal, SchemaService, SdrfAgeInput, SdrfCleavageInput, SdrfColumnCategory, SdrfModificationInput, SdrfSpikedCompoundInput, SdrfSyntaxService, SearchReplaceModal, TASK_STATUS_COLORS, TASK_STATUS_LABELS, TASK_TYPE_LABELS, TableCreationModalComponent, TemplatePermissionLabels, TemplatePermissionLevel, TemplateSchemaSelectionModal, ValidationResultsModal, Websocket, getRequiredSdrfColumns, getSdrfColumnByName, getSdrfColumnsByCategory, isSdrfColumnRequired, isUnimodFullData };
|
|
3054
|
+
export type { AgeFormat, ApiResponse, AsyncTaskCreateResponse, AsyncTaskQueryParams, AsyncTaskStatus, BaseTimestampedModel, BulkExcelExportRequest, BulkExportRequest, CellOntology, ChEBICompound, ChunkedFileImportRequest, ChunkedImportProgress, ChunkedImportRequest, ChunkedUploadCompletionRequest, ChunkedUploadCompletionResponse, ChunkedUploadRequest, ChunkedUploadResponse, ChunkedUploadStatus, CleavageAgentDetails, ColumnTypeConfig, DownloadUrlResponse, ElectronAPI, ExcelExportOptions, FavouriteMetadataOption, FavouriteMetadataOptionCreateRequest, FavouriteMetadataOptionQueryParams, FavouriteMetadataOptionUpdateRequest, HumanDisease, MSUniqueVocabularies, MetadataColumn, MetadataColumnCreateRequest, MetadataColumnModifier, MetadataColumnQueryParams, MetadataColumnTemplate, MetadataColumnTemplateCreateRequest, MetadataColumnTemplateQueryParams, MetadataColumnTemplateShare, MetadataColumnTemplateShareCreateRequest, MetadataColumnTemplateShareQueryParams, MetadataColumnTemplateUpdateRequest, MetadataColumnUpdateRequest, MetadataExportRequest, MetadataImportRequest, MetadataQueryParams, MetadataTable, MetadataTableCreateRequest, MetadataTableQueryParams, MetadataTableQueryResponse, MetadataTableTemplate, MetadataTableTemplateCreateRequest, MetadataTableTemplateQueryParams, MetadataTableTemplateQueryResponse, MetadataTableTemplateUpdateRequest, MetadataTableUpdateRequest, MetadataValidationConfig, MetadataValidationRequest, MetadataValueEditConfig, ModificationParameters, MondoDisease, NCBITaxonomy, OntologyCustomFilter, OntologySuggestParams, OntologySuggestResponse, OntologySuggestion, OntologyTypeConfig, PSIMSOntology, PaginatedResponse, PooledSample, SampleCountConfirmationError, SampleCountValidationRequest, SampleCountValidationResponse, SampleCountValidationResult, SamplePool, SamplePoolCreateRequest, SamplePoolQueryParams, SamplePoolUpdateRequest, Schema, SchemaQueryParams, SchemaSelectionResult, SdrfColumnConfig, SearchReplaceConfig, Species, SpikedCompound, SubcellularLocation, SyntaxType, SyntheticPeptide, TableCreationData, TaskListItem, TaskResult, TaskStatus, TaskType, TemplateSchemaSelectionResult, Tissue, UberonAnatomy, Unimod, UnimodFullData, UnimodSpecification, ValidationResult, ValidationResults };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noatgnu/cupcake-vanilla",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
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",
|