@noatgnu/cupcake-vanilla 1.2.13 → 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/index.d.ts
CHANGED
|
@@ -901,6 +901,43 @@ declare class MetadataTableService extends BaseApiService {
|
|
|
901
901
|
samplesRevertedToDefault: number;
|
|
902
902
|
poolColumnsUpdated: number;
|
|
903
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
|
+
}>;
|
|
904
941
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataTableService, never>;
|
|
905
942
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MetadataTableService>;
|
|
906
943
|
}
|
|
@@ -1241,6 +1278,35 @@ declare class MetadataTableTemplateService extends BaseApiService {
|
|
|
1241
1278
|
description?: string;
|
|
1242
1279
|
sampleCount: number;
|
|
1243
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
|
+
}>;
|
|
1244
1310
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataTableTemplateService, never>;
|
|
1245
1311
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MetadataTableTemplateService>;
|
|
1246
1312
|
}
|
|
@@ -2351,7 +2417,10 @@ declare class MetadataTableTemplateEditModal implements OnInit {
|
|
|
2351
2417
|
editForm: FormGroup;
|
|
2352
2418
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
2353
2419
|
_templateColumns: _angular_core.WritableSignal<MetadataColumn[]>;
|
|
2420
|
+
selectedColumnIds: _angular_core.WritableSignal<Set<number>>;
|
|
2354
2421
|
templateColumns: _angular_core.Signal<MetadataColumn[]>;
|
|
2422
|
+
allColumnsSelected: _angular_core.Signal<boolean>;
|
|
2423
|
+
someColumnsSelected: _angular_core.Signal<boolean>;
|
|
2355
2424
|
visibilityOptions: {
|
|
2356
2425
|
value: ResourceVisibility;
|
|
2357
2426
|
label: string;
|
|
@@ -2370,6 +2439,9 @@ declare class MetadataTableTemplateEditModal implements OnInit {
|
|
|
2370
2439
|
editColumn(column: MetadataColumn): void;
|
|
2371
2440
|
duplicateColumn(column: MetadataColumn): void;
|
|
2372
2441
|
removeColumn(column: MetadataColumn): void;
|
|
2442
|
+
toggleColumnSelection(columnId: number): void;
|
|
2443
|
+
toggleAllColumns(): void;
|
|
2444
|
+
bulkToggleStaffOnly(staffOnly: boolean): void;
|
|
2373
2445
|
onColumnDrop(event: CdkDragDrop<MetadataColumn[]>): void;
|
|
2374
2446
|
private openColumnModal;
|
|
2375
2447
|
private handleColumnSave;
|
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",
|