@processpuzzle/base-entity 0.3.8 → 0.4.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processpuzzle/base-entity",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Zsolt Zsuffa",
|
|
@@ -45,5 +45,6 @@
|
|
|
45
45
|
"types": "./types/processpuzzle-base-entity.d.ts",
|
|
46
46
|
"default": "./fesm2022/processpuzzle-base-entity.mjs"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"type": "module"
|
|
49
50
|
}
|
|
@@ -17,6 +17,7 @@ import * as _ngrx_signals_rxjs_interop from '@ngrx/signals/rxjs-interop';
|
|
|
17
17
|
import * as _firebase_firestore from '@firebase/firestore';
|
|
18
18
|
|
|
19
19
|
declare enum FormControlType {
|
|
20
|
+
ARTIFACT = "ARTIFACT",
|
|
20
21
|
CHECKBOX = "CHECKBOX",
|
|
21
22
|
DATE = "DATE",
|
|
22
23
|
DROPDOWN = "DROPDOWN",
|
|
@@ -24,6 +25,7 @@ declare enum FormControlType {
|
|
|
24
25
|
FOREIGN_KEY = "FOREIGN_KEY",
|
|
25
26
|
LABEL = "LABEL",
|
|
26
27
|
RADIO = "RADIO",
|
|
28
|
+
TAGS = "TAGS",
|
|
27
29
|
TITLE = "TITLE",
|
|
28
30
|
TEXT_BOX = "TEXT_BOX",
|
|
29
31
|
TEXTAREA = "TEXTAREA"
|
|
@@ -38,6 +40,13 @@ declare abstract class AbstractAttrDescriptor {
|
|
|
38
40
|
protected constructor(attrName: string, formControlType: FormControlType);
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
interface ArtifactAttr {
|
|
44
|
+
readonly bucket: string;
|
|
45
|
+
readonly objectId: string;
|
|
46
|
+
readonly name: string;
|
|
47
|
+
readonly mimeType: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
41
50
|
interface BaseEntityDescriptor {
|
|
42
51
|
store: any;
|
|
43
52
|
attrDescriptors: AbstractAttrDescriptor[];
|
|
@@ -152,6 +161,7 @@ declare class BaseEntityAttrDescriptor extends AbstractAttrDescriptor {
|
|
|
152
161
|
value: any;
|
|
153
162
|
}>;
|
|
154
163
|
visible: boolean;
|
|
164
|
+
hideInTable?: boolean;
|
|
155
165
|
isHeading?: boolean;
|
|
156
166
|
placeholder?: string;
|
|
157
167
|
lines?: number;
|
|
@@ -203,6 +213,7 @@ declare class BaseEntityListComponent<Entity extends BaseEntity> implements Afte
|
|
|
203
213
|
selection: SelectionModel<Entity>;
|
|
204
214
|
private readonly entityDescriptor;
|
|
205
215
|
private readonly logger;
|
|
216
|
+
private readonly objectStoreService;
|
|
206
217
|
columnDescriptors: Signal<BaseEntityAttrDescriptor[]>;
|
|
207
218
|
displayedColumns: Signal<string[]>;
|
|
208
219
|
sort: MatSort;
|
|
@@ -216,6 +227,7 @@ declare class BaseEntityListComponent<Entity extends BaseEntity> implements Afte
|
|
|
216
227
|
onNavigateToDetails(entity: Entity): void;
|
|
217
228
|
onNavigateToRelated(config: BaseEntityAttrDescriptor, entity: Entity): void;
|
|
218
229
|
onRowClick(entity: Entity): void;
|
|
230
|
+
onDownloadObject(artifact: ArtifactAttr, event?: MouseEvent): void;
|
|
219
231
|
onToggleAllRows(): void;
|
|
220
232
|
private cancelSelections;
|
|
221
233
|
private doFilter;
|
|
@@ -379,4 +391,4 @@ declare function getEntityIds(instance: any): string[];
|
|
|
379
391
|
declare const BASE_ENTITY_ROUTES: Routes;
|
|
380
392
|
|
|
381
393
|
export { AbstractAttrDescriptor, BASE_ENTITY_ROUTES, BASE_ENTITY_SERVICE, BASE_ENTITY_STORE, BASE_LIST_DESCRIPTORS, BaseEntityAttrDescriptor, BaseEntityContainerComponent, BaseEntityContainerStore, BaseEntityFirestoreService, BaseEntityFormComponent, BaseEntityListComponent, BaseEntityRestService, BaseEntityStore, BaseEntityTabsStore, BaseFormHostDirective, BaseFormNavigatorStore, Entity, FlexDirection, FlexboxDescriptor, FormControlType, Id, OrderByDirection, RouteSegments, getEntityIds, getEntityOptions };
|
|
382
|
-
export type { BaseEntity, BaseEntityDescriptor, BaseEntityLoadResponse, BaseEntityMapper, BaseEntityQueryCondition, EntityOptions, FilterCondition, NavigationState, OrderByCondition };
|
|
394
|
+
export type { ArtifactAttr, BaseEntity, BaseEntityDescriptor, BaseEntityLoadResponse, BaseEntityMapper, BaseEntityQueryCondition, EntityOptions, FilterCondition, NavigationState, OrderByCondition };
|