@mintplayer/ng-spark 0.0.6 → 0.0.8
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,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Type, TemplateRef, PipeTransform, InputSignal, Provider } from '@angular/core';
|
|
2
|
+
import { WritableSignal, InjectionToken, Type, TemplateRef, PipeTransform, InputSignal, Provider } from '@angular/core';
|
|
3
3
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
4
|
import { DatatableSettings } from '@mintplayer/ng-bootstrap/datatable';
|
|
5
5
|
import { PaginationResponse } from '@mintplayer/pagination';
|
|
@@ -22,6 +22,8 @@ declare enum ShowedOn {
|
|
|
22
22
|
declare function hasShowedOnFlag(value: ShowedOn | string | undefined, flag: ShowedOn): boolean;
|
|
23
23
|
|
|
24
24
|
type TranslatedString = Record<string, string>;
|
|
25
|
+
/** Global reactive language state — shared across library boundaries via globalThis */
|
|
26
|
+
declare const currentLanguage: WritableSignal<string>;
|
|
25
27
|
declare function resolveTranslation(ts: TranslatedString | undefined, lang?: string): string;
|
|
26
28
|
|
|
27
29
|
interface ValidationRule {
|
|
@@ -224,6 +226,7 @@ interface RetryActionResult {
|
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
interface EntityPermissions {
|
|
229
|
+
canRead: boolean;
|
|
227
230
|
canCreate: boolean;
|
|
228
231
|
canEdit: boolean;
|
|
229
232
|
canDelete: boolean;
|
|
@@ -499,6 +502,7 @@ declare class SparkQueryListComponent {
|
|
|
499
502
|
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
500
503
|
paginationData: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
501
504
|
searchTerm: string;
|
|
505
|
+
canRead: _angular_core.WritableSignal<boolean>;
|
|
502
506
|
canCreate: _angular_core.WritableSignal<boolean>;
|
|
503
507
|
settings: DatatableSettings;
|
|
504
508
|
private currentSortProperty;
|
|
@@ -517,14 +521,12 @@ declare class SparkQueryListComponent {
|
|
|
517
521
|
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
518
522
|
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
519
523
|
private loadLookupReferenceOptions;
|
|
520
|
-
onRowClick(item: PersistentObject): void;
|
|
521
524
|
onCreate(): void;
|
|
522
525
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkQueryListComponent, never>;
|
|
523
526
|
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>;
|
|
524
527
|
}
|
|
525
528
|
|
|
526
529
|
declare class SparkSubQueryComponent {
|
|
527
|
-
private readonly router;
|
|
528
530
|
private readonly sparkService;
|
|
529
531
|
private readonly rendererRegistry;
|
|
530
532
|
queryId: _angular_core.InputSignal<string>;
|
|
@@ -536,13 +538,13 @@ declare class SparkSubQueryComponent {
|
|
|
536
538
|
items: _angular_core.WritableSignal<PersistentObject[]>;
|
|
537
539
|
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
538
540
|
loading: _angular_core.WritableSignal<boolean>;
|
|
541
|
+
canRead: _angular_core.WritableSignal<boolean>;
|
|
539
542
|
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
540
543
|
constructor();
|
|
541
544
|
private loadData;
|
|
542
545
|
private loadLookupReferenceOptions;
|
|
543
546
|
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
544
547
|
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
545
|
-
onRowClick(item: PersistentObject): void;
|
|
546
548
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkSubQueryComponent, never>;
|
|
547
549
|
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
550
|
}
|
|
@@ -787,5 +789,5 @@ declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
|
787
789
|
|
|
788
790
|
declare function provideSpark(config?: Partial<SparkConfig>): Provider[];
|
|
789
791
|
|
|
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 };
|
|
792
|
+
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, currentLanguage, defaultSparkConfig, hasShowedOnFlag, provideSpark, provideSparkAttributeRenderers, resolveTranslation, sparkRoutes };
|
|
791
793
|
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 };
|