@noatgnu/cupcake-vanilla 1.1.0 → 1.2.0
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,12 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
3
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
|
-
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, User, LabGroupService, LabGroup, LabGroupQueryResponse, ResourceVisibility } from '@cupcake
|
|
5
|
-
export { WebSocketMessage } from '@cupcake
|
|
4
|
+
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, User, LabGroupService, LabGroup, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
5
|
+
export { WebSocketMessage } from '@noatgnu/cupcake-core';
|
|
6
6
|
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
|
-
import { FavouriteMetadataOption as FavouriteMetadataOption$1, SyntaxType as SyntaxType$1, FavouriteMetadataOptionService as FavouriteMetadataOptionService$1, MetadataColumnService as MetadataColumnService$1, MetadataColumnTemplateService as MetadataColumnTemplateService$1, OntologySuggestion as OntologySuggestion$1, MetadataValidationConfig as MetadataValidationConfig$1, MetadataTable as MetadataTable$1, MetadataTableService as MetadataTableService$1, OntologyTypeConfig as OntologyTypeConfig$1, ColumnTypeConfig as ColumnTypeConfig$1, MetadataColumnTemplate as MetadataColumnTemplate$1, SdrfColumnConfig as SdrfColumnConfig$1, SdrfSyntaxService as SdrfSyntaxService$1 } from '@cupcake/vanilla';
|
|
10
9
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
11
10
|
|
|
12
11
|
interface BaseTimestampedModel {
|
|
@@ -1981,20 +1980,20 @@ declare class MetadataValueEditModal implements OnInit {
|
|
|
1981
1980
|
isLoadingSuggestions: i0.WritableSignal<boolean>;
|
|
1982
1981
|
searchType: i0.WritableSignal<"icontains" | "istartswith">;
|
|
1983
1982
|
isLoadingFavorites: i0.WritableSignal<boolean>;
|
|
1984
|
-
userFavorites: i0.WritableSignal<FavouriteMetadataOption
|
|
1985
|
-
labGroupFavorites: i0.WritableSignal<FavouriteMetadataOption
|
|
1986
|
-
globalFavorites: i0.WritableSignal<FavouriteMetadataOption
|
|
1987
|
-
selectedFavorite: i0.WritableSignal<FavouriteMetadataOption
|
|
1983
|
+
userFavorites: i0.WritableSignal<FavouriteMetadataOption[]>;
|
|
1984
|
+
labGroupFavorites: i0.WritableSignal<FavouriteMetadataOption[]>;
|
|
1985
|
+
globalFavorites: i0.WritableSignal<FavouriteMetadataOption[]>;
|
|
1986
|
+
selectedFavorite: i0.WritableSignal<FavouriteMetadataOption | null>;
|
|
1988
1987
|
currentUser: i0.WritableSignal<User | null>;
|
|
1989
1988
|
userLabGroups: i0.WritableSignal<number[]>;
|
|
1990
1989
|
activeFavoritesTab: 'user' | 'lab_group' | 'global';
|
|
1991
1990
|
private sdrfSyntaxService;
|
|
1992
|
-
specialSyntaxType: i0.WritableSignal<SyntaxType
|
|
1991
|
+
specialSyntaxType: i0.WritableSignal<SyntaxType | null>;
|
|
1993
1992
|
showSpecialInput: i0.WritableSignal<boolean>;
|
|
1994
1993
|
specialInputValue: i0.WritableSignal<string>;
|
|
1995
1994
|
selectedSampleIndices: i0.WritableSignal<Set<number>>;
|
|
1996
1995
|
showSamplePanel: i0.WritableSignal<boolean>;
|
|
1997
|
-
constructor(fb: FormBuilder, activeModal: NgbActiveModal, authService: AuthService, favouriteMetadataOptionService: FavouriteMetadataOptionService
|
|
1996
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, authService: AuthService, favouriteMetadataOptionService: FavouriteMetadataOptionService, metadataColumnService: MetadataColumnService, metadataColumnTemplateService: MetadataColumnTemplateService, labGroupService: LabGroupService);
|
|
1998
1997
|
ngOnInit(): void;
|
|
1999
1998
|
onCancel(): void;
|
|
2000
1999
|
onClose(): void;
|
|
@@ -2002,22 +2001,22 @@ declare class MetadataValueEditModal implements OnInit {
|
|
|
2002
2001
|
get hasOntologyType(): boolean;
|
|
2003
2002
|
get ontologyTypeLabel(): string;
|
|
2004
2003
|
get isFromFavoriteManagement(): boolean;
|
|
2005
|
-
searchOntology: (text$: Observable<string>) => Observable<OntologySuggestion
|
|
2006
|
-
formatSuggestion: (suggestion: OntologySuggestion
|
|
2007
|
-
inputFormatter: (suggestion: OntologySuggestion
|
|
2004
|
+
searchOntology: (text$: Observable<string>) => Observable<OntologySuggestion[]>;
|
|
2005
|
+
formatSuggestion: (suggestion: OntologySuggestion) => string;
|
|
2006
|
+
inputFormatter: (suggestion: OntologySuggestion) => string;
|
|
2008
2007
|
onSuggestionSelected: (event: any) => void;
|
|
2009
2008
|
onSearchTypeChange(type: 'icontains' | 'istartswith'): void;
|
|
2010
2009
|
clearValue(): void;
|
|
2011
2010
|
loadFavoriteOptions(): void;
|
|
2012
|
-
selectFavorite(favorite: FavouriteMetadataOption
|
|
2013
|
-
onFavoriteSelected(event: Event, favoritesList: FavouriteMetadataOption
|
|
2011
|
+
selectFavorite(favorite: FavouriteMetadataOption): void;
|
|
2012
|
+
onFavoriteSelected(event: Event, favoritesList: FavouriteMetadataOption[]): void;
|
|
2014
2013
|
setActiveFavoritesTab(tab: 'user' | 'lab_group' | 'global'): void;
|
|
2015
2014
|
setInitialActiveFavoritesTab(): void;
|
|
2016
2015
|
addToFavorites(scope?: 'user' | 'lab_group' | 'global'): void;
|
|
2017
2016
|
get hasFavorites(): boolean;
|
|
2018
|
-
getFavoriteDisplayValue(favorite: FavouriteMetadataOption
|
|
2019
|
-
getFavoriteTooltip(favorite: FavouriteMetadataOption
|
|
2020
|
-
hasCustomDisplayValue(favorite: FavouriteMetadataOption
|
|
2017
|
+
getFavoriteDisplayValue(favorite: FavouriteMetadataOption): string;
|
|
2018
|
+
getFavoriteTooltip(favorite: FavouriteMetadataOption): string;
|
|
2019
|
+
hasCustomDisplayValue(favorite: FavouriteMetadataOption): boolean;
|
|
2021
2020
|
getSelectedFavoriteInfo(): string;
|
|
2022
2021
|
loadUserLabGroups(): void;
|
|
2023
2022
|
onSpecialInputChange(value: string): void;
|
|
@@ -2085,7 +2084,7 @@ declare class ValidationResultsModal {
|
|
|
2085
2084
|
}
|
|
2086
2085
|
|
|
2087
2086
|
declare class MetadataValidationModal {
|
|
2088
|
-
config?: MetadataValidationConfig
|
|
2087
|
+
config?: MetadataValidationConfig;
|
|
2089
2088
|
private fb;
|
|
2090
2089
|
private asyncTaskService;
|
|
2091
2090
|
private toastService;
|
|
@@ -2106,14 +2105,14 @@ declare class MetadataTableEditModal implements OnInit {
|
|
|
2106
2105
|
private modalService;
|
|
2107
2106
|
private metadataTableService;
|
|
2108
2107
|
private labGroupService;
|
|
2109
|
-
table?: MetadataTable
|
|
2108
|
+
table?: MetadataTable;
|
|
2110
2109
|
isCreateMode: boolean;
|
|
2111
|
-
tableSaved: EventEmitter<MetadataTable
|
|
2110
|
+
tableSaved: EventEmitter<MetadataTable>;
|
|
2112
2111
|
editForm: FormGroup;
|
|
2113
2112
|
isLoading: i0.WritableSignal<boolean>;
|
|
2114
2113
|
availableLabGroups: i0.WritableSignal<LabGroup[]>;
|
|
2115
2114
|
isLoadingLabGroups: i0.WritableSignal<boolean>;
|
|
2116
|
-
constructor(fb: FormBuilder, activeModal: NgbActiveModal, modalService: NgbModal, metadataTableService: MetadataTableService
|
|
2115
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, modalService: NgbModal, metadataTableService: MetadataTableService, labGroupService: LabGroupService);
|
|
2117
2116
|
ngOnInit(): void;
|
|
2118
2117
|
loadLabGroups(): void;
|
|
2119
2118
|
onSubmit(): void;
|
|
@@ -2319,26 +2318,26 @@ declare class ColumnEditModal implements OnInit {
|
|
|
2319
2318
|
editForm: FormGroup;
|
|
2320
2319
|
isLoading: i0.WritableSignal<boolean>;
|
|
2321
2320
|
showAdvancedMode: i0.WritableSignal<boolean>;
|
|
2322
|
-
selectedOntologyConfig: OntologyTypeConfig
|
|
2323
|
-
columnTypes: ColumnTypeConfig
|
|
2324
|
-
ontologyTypes: OntologyTypeConfig
|
|
2321
|
+
selectedOntologyConfig: OntologyTypeConfig | null;
|
|
2322
|
+
columnTypes: ColumnTypeConfig[];
|
|
2323
|
+
ontologyTypes: OntologyTypeConfig[];
|
|
2325
2324
|
templateFilter: string;
|
|
2326
2325
|
selectedTemplateId: number | string;
|
|
2327
|
-
selectedTemplate: MetadataColumnTemplate
|
|
2328
|
-
templates: MetadataColumnTemplate
|
|
2326
|
+
selectedTemplate: MetadataColumnTemplate | null;
|
|
2327
|
+
templates: MetadataColumnTemplate[];
|
|
2329
2328
|
isLoadingTemplates: boolean;
|
|
2330
2329
|
currentTemplatePage: number;
|
|
2331
2330
|
templatePageSize: number;
|
|
2332
2331
|
totalTemplates: number;
|
|
2333
2332
|
totalTemplatePages: number;
|
|
2334
2333
|
Math: Math;
|
|
2335
|
-
officialSdrfColumns: SdrfColumnConfig
|
|
2334
|
+
officialSdrfColumns: SdrfColumnConfig[];
|
|
2336
2335
|
showOfficialColumns: boolean;
|
|
2337
|
-
selectedOfficialColumn: SdrfColumnConfig
|
|
2338
|
-
availableOfficialColumns: SdrfColumnConfig
|
|
2336
|
+
selectedOfficialColumn: SdrfColumnConfig | null;
|
|
2337
|
+
availableOfficialColumns: SdrfColumnConfig[];
|
|
2339
2338
|
showTemplateSwap: boolean;
|
|
2340
2339
|
showCreateCustomTemplate: boolean;
|
|
2341
|
-
constructor(fb: FormBuilder, activeModal: NgbActiveModal, modalService: NgbModal, metadataColumnTemplateService: MetadataColumnTemplateService
|
|
2340
|
+
constructor(fb: FormBuilder, activeModal: NgbActiveModal, modalService: NgbModal, metadataColumnTemplateService: MetadataColumnTemplateService, sdrfSyntaxService: SdrfSyntaxService);
|
|
2342
2341
|
ngOnInit(): void;
|
|
2343
2342
|
private populateForm;
|
|
2344
2343
|
onSubmit(): void;
|
|
@@ -2358,13 +2357,13 @@ declare class ColumnEditModal implements OnInit {
|
|
|
2358
2357
|
clearTemplate(): void;
|
|
2359
2358
|
getOntologyTypeLabel(ontologyType: string): string;
|
|
2360
2359
|
toggleOfficialColumns(): void;
|
|
2361
|
-
selectOfficialColumn(column: SdrfColumnConfig
|
|
2360
|
+
selectOfficialColumn(column: SdrfColumnConfig): void;
|
|
2362
2361
|
private filterOfficialColumns;
|
|
2363
2362
|
private getDefaultOntologyTypeForColumn;
|
|
2364
2363
|
private shouldEnableTypeaheadForColumn;
|
|
2365
2364
|
private isColumnMandatory;
|
|
2366
2365
|
showTemplateSwapOptions(): void;
|
|
2367
|
-
swapToTemplate(template: MetadataColumnTemplate
|
|
2366
|
+
swapToTemplate(template: MetadataColumnTemplate): void;
|
|
2368
2367
|
showCreateCustomTemplateOption(): void;
|
|
2369
2368
|
createCustomTemplate(): void;
|
|
2370
2369
|
cancelTemplateSwap(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noatgnu/cupcake-vanilla",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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",
|