@mintplayer/ng-spark 0.0.5 → 0.0.6
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
|
@@ -138,6 +138,8 @@ interface EntityType {
|
|
|
138
138
|
tabs?: AttributeTab[];
|
|
139
139
|
groups?: AttributeGroup[];
|
|
140
140
|
attributes: EntityAttributeDefinition[];
|
|
141
|
+
/** Query aliases or IDs to display as related query tables on the detail page. */
|
|
142
|
+
queries?: string[];
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
interface ValidationError {
|
|
@@ -150,7 +152,7 @@ interface SparkQuery {
|
|
|
150
152
|
id: string;
|
|
151
153
|
name: string;
|
|
152
154
|
description?: TranslatedString;
|
|
153
|
-
|
|
155
|
+
source: string;
|
|
154
156
|
alias?: string;
|
|
155
157
|
sortBy?: string;
|
|
156
158
|
sortDirection: string;
|
|
@@ -158,6 +160,8 @@ interface SparkQuery {
|
|
|
158
160
|
indexName?: string;
|
|
159
161
|
/** When true, uses the projection type from [QueryType] attribute */
|
|
160
162
|
useProjection?: boolean;
|
|
163
|
+
/** Optional entity type name (e.g., "Person"). When set, used for entity type resolution. */
|
|
164
|
+
entityType?: string;
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
interface ProgramUnit {
|
|
@@ -255,7 +259,7 @@ declare class SparkService {
|
|
|
255
259
|
getQueries(): Promise<SparkQuery[]>;
|
|
256
260
|
getQuery(id: string): Promise<SparkQuery>;
|
|
257
261
|
getQueryByName(name: string): Promise<SparkQuery | undefined>;
|
|
258
|
-
executeQuery(queryId: string, sortBy?: string, sortDirection?: string): Promise<PersistentObject[]>;
|
|
262
|
+
executeQuery(queryId: string, sortBy?: string, sortDirection?: string, parentId?: string, parentType?: string): Promise<PersistentObject[]>;
|
|
259
263
|
executeQueryByName(queryName: string): Promise<PersistentObject[]>;
|
|
260
264
|
getProgramUnits(): Promise<ProgramUnitsConfiguration>;
|
|
261
265
|
list(type: string): Promise<PersistentObject[]>;
|
|
@@ -502,6 +506,7 @@ declare class SparkQueryListComponent {
|
|
|
502
506
|
constructor();
|
|
503
507
|
private onParamsChange;
|
|
504
508
|
private resolveEntityTypeForQuery;
|
|
509
|
+
private extractSourceName;
|
|
505
510
|
private singularize;
|
|
506
511
|
loadItems(): Promise<void>;
|
|
507
512
|
onSettingsChange(): void;
|
|
@@ -518,6 +523,30 @@ declare class SparkQueryListComponent {
|
|
|
518
523
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkQueryListComponent, "spark-query-list", never, { "extraActionsTemplate": { "alias": "extraActionsTemplate"; "required": false; "isSignal": true; }; }, { "rowClicked": "rowClicked"; "createClicked": "createClicked"; }, never, never, true, never>;
|
|
519
524
|
}
|
|
520
525
|
|
|
526
|
+
declare class SparkSubQueryComponent {
|
|
527
|
+
private readonly router;
|
|
528
|
+
private readonly sparkService;
|
|
529
|
+
private readonly rendererRegistry;
|
|
530
|
+
queryId: _angular_core.InputSignal<string>;
|
|
531
|
+
parentId: _angular_core.InputSignal<string>;
|
|
532
|
+
parentType: _angular_core.InputSignal<string>;
|
|
533
|
+
query: _angular_core.WritableSignal<SparkQuery>;
|
|
534
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
535
|
+
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
536
|
+
items: _angular_core.WritableSignal<PersistentObject[]>;
|
|
537
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
538
|
+
loading: _angular_core.WritableSignal<boolean>;
|
|
539
|
+
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
540
|
+
constructor();
|
|
541
|
+
private loadData;
|
|
542
|
+
private loadLookupReferenceOptions;
|
|
543
|
+
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
544
|
+
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
545
|
+
onRowClick(item: PersistentObject): void;
|
|
546
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkSubQueryComponent, never>;
|
|
547
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkSubQueryComponent, "spark-sub-query", never, { "queryId": { "alias": "queryId"; "required": true; "isSignal": true; }; "parentId": { "alias": "parentId"; "required": true; "isSignal": true; }; "parentType": { "alias": "parentType"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
548
|
+
}
|
|
549
|
+
|
|
521
550
|
declare class SparkRetryActionModalComponent {
|
|
522
551
|
protected readonly retryActionService: RetryActionService;
|
|
523
552
|
colors: typeof Color;
|
|
@@ -758,5 +787,5 @@ declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
|
758
787
|
|
|
759
788
|
declare function provideSpark(config?: Partial<SparkConfig>): Provider[];
|
|
760
789
|
|
|
761
|
-
export { ArrayValuePipe, AsDetailCellValuePipe, AsDetailColumnsPipe, AsDetailDisplayValuePipe, AsDetailTypePipe, AttributeValuePipe, CanCreateDetailRowPipe, CanDeleteDetailRowPipe, ELookupDisplayType, ErrorForAttributePipe, IconNamePipe, InlineRefOptionsPipe, InputTypePipe, LookupDisplayTypePipe, LookupDisplayValuePipe, LookupOptionsPipe, RawAttributeValuePipe, ReferenceAttrValuePipe, ReferenceDisplayValuePipe, ReferenceLinkRoutePipe, ResolveTranslationPipe, RetryActionService, RouterLinkPipe, SPARK_ATTRIBUTE_RENDERERS, SPARK_CONFIG, ShowedOn, SparkIconComponent, SparkIconRegistry, SparkLanguageService, SparkPoCreateComponent, SparkPoDetailComponent, SparkPoEditComponent, SparkPoFormComponent, SparkQueryListComponent, SparkRetryActionModalComponent, SparkService, TranslateKeyPipe, defaultSparkConfig, hasShowedOnFlag, provideSpark, provideSparkAttributeRenderers, resolveTranslation, sparkRoutes };
|
|
790
|
+
export { ArrayValuePipe, AsDetailCellValuePipe, AsDetailColumnsPipe, AsDetailDisplayValuePipe, AsDetailTypePipe, AttributeValuePipe, CanCreateDetailRowPipe, CanDeleteDetailRowPipe, ELookupDisplayType, ErrorForAttributePipe, IconNamePipe, InlineRefOptionsPipe, InputTypePipe, LookupDisplayTypePipe, LookupDisplayValuePipe, LookupOptionsPipe, RawAttributeValuePipe, ReferenceAttrValuePipe, ReferenceDisplayValuePipe, ReferenceLinkRoutePipe, ResolveTranslationPipe, RetryActionService, RouterLinkPipe, SPARK_ATTRIBUTE_RENDERERS, SPARK_CONFIG, ShowedOn, SparkIconComponent, SparkIconRegistry, SparkLanguageService, SparkPoCreateComponent, SparkPoDetailComponent, SparkPoEditComponent, SparkPoFormComponent, SparkQueryListComponent, SparkRetryActionModalComponent, SparkService, SparkSubQueryComponent, TranslateKeyPipe, defaultSparkConfig, hasShowedOnFlag, provideSpark, provideSparkAttributeRenderers, resolveTranslation, sparkRoutes };
|
|
762
791
|
export type { AttributeGroup, AttributeTab, CustomActionDefinition, EntityAttributeDefinition, EntityPermissions, EntityType, LookupReference, LookupReferenceListItem, LookupReferenceValue, PersistentObject, PersistentObjectAttribute, ProgramUnit, ProgramUnitGroup, ProgramUnitsConfiguration, RetryActionPayload, RetryActionResult, SparkAttributeColumnRenderer, SparkAttributeDetailRenderer, SparkAttributeEditRenderer, SparkAttributeRendererRegistration, SparkConfig, SparkQuery, SparkRouteConfig, TranslatedString, ValidationError, ValidationRule };
|