@mintplayer/ng-spark 0.1.1 → 0.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/fesm2022/mintplayer-ng-spark-icon.mjs +35 -0
- package/fesm2022/mintplayer-ng-spark-icon.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-models.mjs +48 -0
- package/fesm2022/mintplayer-ng-spark-models.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-pipes.mjs +427 -0
- package/fesm2022/mintplayer-ng-spark-pipes.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-po-create.mjs +121 -0
- package/fesm2022/mintplayer-ng-spark-po-create.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-po-detail.mjs +368 -0
- package/fesm2022/mintplayer-ng-spark-po-detail.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-po-edit.mjs +139 -0
- package/fesm2022/mintplayer-ng-spark-po-edit.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-po-form.mjs +393 -0
- package/fesm2022/mintplayer-ng-spark-po-form.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-query-list.mjs +392 -0
- package/fesm2022/mintplayer-ng-spark-query-list.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-renderers.mjs +25 -0
- package/fesm2022/mintplayer-ng-spark-renderers.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-retry-action-modal.mjs +87 -0
- package/fesm2022/mintplayer-ng-spark-retry-action-modal.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-routes.mjs +31 -0
- package/fesm2022/mintplayer-ng-spark-routes.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark-services.mjs +348 -0
- package/fesm2022/mintplayer-ng-spark-services.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-spark.mjs +17 -2262
- package/fesm2022/mintplayer-ng-spark.mjs.map +1 -1
- package/package.json +49 -1
- package/types/mintplayer-ng-spark-icon.d.ts +13 -0
- package/types/mintplayer-ng-spark-models.d.ts +275 -0
- package/types/mintplayer-ng-spark-pipes.d.ts +143 -0
- package/types/mintplayer-ng-spark-po-create.d.ts +29 -0
- package/types/mintplayer-ng-spark-po-detail.d.ts +88 -0
- package/types/mintplayer-ng-spark-po-edit.d.ts +31 -0
- package/types/mintplayer-ng-spark-po-form.d.ts +84 -0
- package/types/mintplayer-ng-spark-query-list.d.ts +60 -0
- package/types/mintplayer-ng-spark-renderers.d.ts +68 -0
- package/types/mintplayer-ng-spark-retry-action-modal.d.ts +14 -0
- package/types/mintplayer-ng-spark-routes.d.ts +12 -0
- package/types/mintplayer-ng-spark-services.d.ts +100 -0
- package/types/mintplayer-ng-spark.d.ts +3 -855
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Type } from '@angular/core';
|
|
3
|
+
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
|
+
import { DatatableSettings } from '@mintplayer/ng-bootstrap/datatable';
|
|
5
|
+
import { PaginationResponse } from '@mintplayer/pagination';
|
|
6
|
+
import { EntityType, ValidationError, PersistentObject, LookupReference, EntityAttributeDefinition, EntityPermissions, LookupReferenceValue, ELookupDisplayType, AttributeTab, AttributeGroup } from '@mintplayer/ng-spark/models';
|
|
7
|
+
|
|
8
|
+
declare class SparkPoFormComponent {
|
|
9
|
+
private readonly sparkService;
|
|
10
|
+
private readonly translations;
|
|
11
|
+
private readonly rendererRegistry;
|
|
12
|
+
entityType: _angular_core.InputSignal<EntityType>;
|
|
13
|
+
formData: _angular_core.ModelSignal<Record<string, any>>;
|
|
14
|
+
validationErrors: _angular_core.InputSignal<ValidationError[]>;
|
|
15
|
+
showButtons: _angular_core.InputSignal<boolean>;
|
|
16
|
+
isSaving: _angular_core.InputSignal<boolean>;
|
|
17
|
+
parentId: _angular_core.InputSignal<string>;
|
|
18
|
+
parentType: _angular_core.InputSignal<string>;
|
|
19
|
+
save: _angular_core.OutputEmitterRef<void>;
|
|
20
|
+
cancel: _angular_core.OutputEmitterRef<void>;
|
|
21
|
+
colors: typeof Color;
|
|
22
|
+
referenceOptions: _angular_core.WritableSignal<Record<string, PersistentObject[]>>;
|
|
23
|
+
asDetailTypes: _angular_core.WritableSignal<Record<string, EntityType>>;
|
|
24
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
25
|
+
editingAsDetailAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
26
|
+
asDetailFormData: _angular_core.WritableSignal<Record<string, any>>;
|
|
27
|
+
showAsDetailModal: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
editingArrayIndex: _angular_core.WritableSignal<number>;
|
|
29
|
+
asDetailPermissions: _angular_core.WritableSignal<Record<string, EntityPermissions>>;
|
|
30
|
+
asDetailReferenceOptions: _angular_core.WritableSignal<Record<string, Record<string, PersistentObject[]>>>;
|
|
31
|
+
editingReferenceAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
32
|
+
showReferenceModal: _angular_core.WritableSignal<boolean>;
|
|
33
|
+
referenceModalItems: _angular_core.WritableSignal<PersistentObject[]>;
|
|
34
|
+
referenceModalEntityType: _angular_core.WritableSignal<EntityType>;
|
|
35
|
+
referenceModalPagination: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
36
|
+
referenceModalSettings: _angular_core.WritableSignal<DatatableSettings>;
|
|
37
|
+
referenceSearchTerm: string;
|
|
38
|
+
editingLookupAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
39
|
+
showLookupModal: _angular_core.WritableSignal<boolean>;
|
|
40
|
+
lookupModalItems: _angular_core.WritableSignal<LookupReferenceValue[]>;
|
|
41
|
+
lookupSearchTerm: _angular_core.WritableSignal<string>;
|
|
42
|
+
ELookupDisplayType: typeof ELookupDisplayType;
|
|
43
|
+
editableAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
44
|
+
private static readonly DEFAULT_TAB;
|
|
45
|
+
ungroupedAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
46
|
+
resolvedTabs: _angular_core.Signal<AttributeTab[]>;
|
|
47
|
+
groupsForTab(tab: AttributeTab): AttributeGroup[];
|
|
48
|
+
attrsForGroup(group: AttributeGroup): EntityAttributeDefinition[];
|
|
49
|
+
referenceVisibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
50
|
+
filteredLookupItems: _angular_core.Signal<LookupReferenceValue[]>;
|
|
51
|
+
constructor();
|
|
52
|
+
private toRecord;
|
|
53
|
+
loadReferenceOptions(): Promise<void>;
|
|
54
|
+
loadAsDetailTypes(): Promise<void>;
|
|
55
|
+
loadLookupReferenceOptions(): Promise<void>;
|
|
56
|
+
getReferenceOptions(attr: EntityAttributeDefinition): PersistentObject[];
|
|
57
|
+
getLookupOptions(attr: EntityAttributeDefinition): LookupReferenceValue[];
|
|
58
|
+
openLookupSelector(attr: EntityAttributeDefinition): void;
|
|
59
|
+
selectLookupItem(item: LookupReferenceValue): void;
|
|
60
|
+
closeLookupModal(): void;
|
|
61
|
+
getEditRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
62
|
+
getEditRendererInputs(attr: EntityAttributeDefinition): Record<string, any>;
|
|
63
|
+
hasError(attrName: string): boolean;
|
|
64
|
+
onFieldChange(): void;
|
|
65
|
+
onSave(): void;
|
|
66
|
+
onCancel(): void;
|
|
67
|
+
openAsDetailEditor(attr: EntityAttributeDefinition): void;
|
|
68
|
+
saveAsDetailObject(): void;
|
|
69
|
+
closeAsDetailModal(): void;
|
|
70
|
+
addInlineRow(attr: EntityAttributeDefinition): void;
|
|
71
|
+
addArrayItem(attr: EntityAttributeDefinition): void;
|
|
72
|
+
editArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
73
|
+
removeArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
74
|
+
openReferenceSelector(attr: EntityAttributeDefinition): Promise<void>;
|
|
75
|
+
onReferenceSearchChange(): void;
|
|
76
|
+
applyReferenceFilter(): void;
|
|
77
|
+
clearReferenceSearch(): void;
|
|
78
|
+
selectReferenceItem(item: PersistentObject): void;
|
|
79
|
+
closeReferenceModal(): void;
|
|
80
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoFormComponent, never>;
|
|
81
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoFormComponent, "spark-po-form", never, { "entityType": { "alias": "entityType"; "required": false; "isSignal": true; }; "formData": { "alias": "formData"; "required": false; "isSignal": true; }; "validationErrors": { "alias": "validationErrors"; "required": false; "isSignal": true; }; "showButtons": { "alias": "showButtons"; "required": false; "isSignal": true; }; "isSaving": { "alias": "isSaving"; "required": false; "isSignal": true; }; "parentId": { "alias": "parentId"; "required": false; "isSignal": true; }; "parentType": { "alias": "parentType"; "required": false; "isSignal": true; }; }, { "formData": "formDataChange"; "save": "save"; "cancel": "cancel"; }, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export { SparkPoFormComponent };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, Type } from '@angular/core';
|
|
3
|
+
import { Color } from '@mintplayer/ng-bootstrap';
|
|
4
|
+
import { DatatableSettings } from '@mintplayer/ng-bootstrap/datatable';
|
|
5
|
+
import { VirtualDatatableDataSource } from '@mintplayer/ng-bootstrap/virtual-datatable';
|
|
6
|
+
import { PaginationResponse } from '@mintplayer/pagination';
|
|
7
|
+
import { PersistentObject, SparkQuery, EntityType, LookupReference, EntityAttributeDefinition } from '@mintplayer/ng-spark/models';
|
|
8
|
+
|
|
9
|
+
declare class SparkQueryListComponent {
|
|
10
|
+
private readonly route;
|
|
11
|
+
private readonly router;
|
|
12
|
+
private readonly sparkService;
|
|
13
|
+
private readonly streamingService;
|
|
14
|
+
private readonly rendererRegistry;
|
|
15
|
+
private readonly destroyRef;
|
|
16
|
+
extraActionsTemplate: _angular_core.InputSignal<TemplateRef<void>>;
|
|
17
|
+
rowClicked: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
18
|
+
createClicked: _angular_core.OutputEmitterRef<void>;
|
|
19
|
+
colors: typeof Color;
|
|
20
|
+
errorMessage: _angular_core.WritableSignal<string>;
|
|
21
|
+
query: _angular_core.WritableSignal<SparkQuery>;
|
|
22
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
23
|
+
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
24
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
25
|
+
paginationData: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
26
|
+
searchTerm: string;
|
|
27
|
+
canRead: _angular_core.WritableSignal<boolean>;
|
|
28
|
+
canCreate: _angular_core.WritableSignal<boolean>;
|
|
29
|
+
isStreaming: _angular_core.WritableSignal<boolean>;
|
|
30
|
+
private streamingSub;
|
|
31
|
+
private allItems;
|
|
32
|
+
private filteredItems;
|
|
33
|
+
settings: _angular_core.WritableSignal<DatatableSettings>;
|
|
34
|
+
virtualDataSource: _angular_core.WritableSignal<VirtualDatatableDataSource<PersistentObject>>;
|
|
35
|
+
virtualSettings: _angular_core.WritableSignal<DatatableSettings>;
|
|
36
|
+
constructor();
|
|
37
|
+
private onParamsChange;
|
|
38
|
+
private resolveEntityTypeForQuery;
|
|
39
|
+
private extractSourceName;
|
|
40
|
+
private singularize;
|
|
41
|
+
private initVirtualDataSource;
|
|
42
|
+
loadItems(): Promise<void>;
|
|
43
|
+
onSettingsChange(): void;
|
|
44
|
+
onSearchChange(): void;
|
|
45
|
+
clearSearch(): void;
|
|
46
|
+
isVirtualScrolling: _angular_core.Signal<boolean>;
|
|
47
|
+
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
48
|
+
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
49
|
+
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
50
|
+
private loadLookupReferenceOptions;
|
|
51
|
+
onCreate(): void;
|
|
52
|
+
private connectStreaming;
|
|
53
|
+
private disconnectStreaming;
|
|
54
|
+
private handleStreamingMessage;
|
|
55
|
+
private applyFilter;
|
|
56
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkQueryListComponent, never>;
|
|
57
|
+
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>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { SparkQueryListComponent };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { InputSignal, InjectionToken, Type, Provider } from '@angular/core';
|
|
2
|
+
import { EntityAttributeDefinition } from '@mintplayer/ng-spark/models';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Contract for detail-page renderers (spark-po-detail).
|
|
6
|
+
* Displays a single attribute value in the PO detail view.
|
|
7
|
+
*/
|
|
8
|
+
interface SparkAttributeDetailRenderer {
|
|
9
|
+
/** The current attribute value */
|
|
10
|
+
value: InputSignal<any>;
|
|
11
|
+
/** The attribute definition metadata */
|
|
12
|
+
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
13
|
+
/** Renderer-specific options from rendererOptions */
|
|
14
|
+
options: InputSignal<Record<string, any> | undefined>;
|
|
15
|
+
/** The full form data (for cross-field dependencies) */
|
|
16
|
+
formData: InputSignal<Record<string, any>>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Contract for query-list column renderers (spark-query-list).
|
|
20
|
+
* Displays a compact cell value in the list/grid view.
|
|
21
|
+
*/
|
|
22
|
+
interface SparkAttributeColumnRenderer {
|
|
23
|
+
/** The current attribute value */
|
|
24
|
+
value: InputSignal<any>;
|
|
25
|
+
/** The attribute definition metadata */
|
|
26
|
+
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
27
|
+
/** Renderer-specific options from rendererOptions */
|
|
28
|
+
options: InputSignal<Record<string, any> | undefined>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Contract for edit-form renderers (spark-po-form on create/edit pages).
|
|
32
|
+
* Replaces the default <input> for this attribute.
|
|
33
|
+
*/
|
|
34
|
+
interface SparkAttributeEditRenderer {
|
|
35
|
+
/** The current attribute value */
|
|
36
|
+
value: InputSignal<any>;
|
|
37
|
+
/** The attribute definition metadata */
|
|
38
|
+
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
39
|
+
/** Renderer-specific options from rendererOptions */
|
|
40
|
+
options: InputSignal<Record<string, any> | undefined>;
|
|
41
|
+
/** Callback to notify parent form of value changes (since NgComponentOutlet doesn't support outputs) */
|
|
42
|
+
valueChange: InputSignal<(value: any) => void>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface SparkAttributeRendererRegistration {
|
|
46
|
+
/** The renderer name (must match attr.renderer in model JSON) */
|
|
47
|
+
name: string;
|
|
48
|
+
/** Component for the PO detail page. Must implement SparkAttributeDetailRenderer. */
|
|
49
|
+
detailComponent: Type<any>;
|
|
50
|
+
/** Component for query-list column cells. Must implement SparkAttributeColumnRenderer. */
|
|
51
|
+
columnComponent: Type<any>;
|
|
52
|
+
/** Optional component for create/edit forms. Must implement SparkAttributeEditRenderer. When omitted, the default input is used. */
|
|
53
|
+
editComponent?: Type<any>;
|
|
54
|
+
}
|
|
55
|
+
declare const SPARK_ATTRIBUTE_RENDERERS: InjectionToken<SparkAttributeRendererRegistration[]>;
|
|
56
|
+
/**
|
|
57
|
+
* Register custom attribute renderers globally.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* provideSparkAttributeRenderers([
|
|
61
|
+
* { name: 'video-player', detailComponent: VideoDetailComponent, columnComponent: VideoColumnComponent },
|
|
62
|
+
* { name: 'color-swatch', detailComponent: ColorDetailComponent, columnComponent: ColorColumnComponent },
|
|
63
|
+
* ])
|
|
64
|
+
*/
|
|
65
|
+
declare function provideSparkAttributeRenderers(renderers: SparkAttributeRendererRegistration[]): Provider;
|
|
66
|
+
|
|
67
|
+
export { SPARK_ATTRIBUTE_RENDERERS, provideSparkAttributeRenderers };
|
|
68
|
+
export type { SparkAttributeColumnRenderer, SparkAttributeDetailRenderer, SparkAttributeEditRenderer, SparkAttributeRendererRegistration };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Color } from '@mintplayer/ng-bootstrap';
|
|
3
|
+
import { RetryActionService } from '@mintplayer/ng-spark/services';
|
|
4
|
+
|
|
5
|
+
declare class SparkRetryActionModalComponent {
|
|
6
|
+
protected readonly retryActionService: RetryActionService;
|
|
7
|
+
colors: typeof Color;
|
|
8
|
+
isOpen: i0.Signal<boolean>;
|
|
9
|
+
onOption(option: string): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkRetryActionModalComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SparkRetryActionModalComponent, "spark-retry-action-modal", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { SparkRetryActionModalComponent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Route, Routes } from '@angular/router';
|
|
2
|
+
|
|
3
|
+
interface SparkRouteConfig {
|
|
4
|
+
queryList?: Route['loadComponent'];
|
|
5
|
+
poCreate?: Route['loadComponent'];
|
|
6
|
+
poEdit?: Route['loadComponent'];
|
|
7
|
+
poDetail?: Route['loadComponent'];
|
|
8
|
+
}
|
|
9
|
+
declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
10
|
+
|
|
11
|
+
export { sparkRoutes };
|
|
12
|
+
export type { SparkRouteConfig };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { RetryActionPayload, RetryActionResult, TranslatedString, StreamingMessage, EntityType, EntityPermissions, SparkQuery, QueryResult, ProgramUnitsConfiguration, PersistentObject, CustomActionDefinition, LookupReferenceListItem, LookupReference, LookupReferenceValue } from '@mintplayer/ng-spark/models';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { SortColumn } from '@mintplayer/pagination';
|
|
5
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
6
|
+
|
|
7
|
+
declare class RetryActionService {
|
|
8
|
+
private resolveRetry;
|
|
9
|
+
payload: i0.WritableSignal<RetryActionPayload>;
|
|
10
|
+
show(payload: RetryActionPayload): Promise<RetryActionResult>;
|
|
11
|
+
respond(result: RetryActionResult): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RetryActionService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RetryActionService>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class SparkLanguageService {
|
|
17
|
+
private readonly http;
|
|
18
|
+
private readonly config;
|
|
19
|
+
private readonly baseUrl;
|
|
20
|
+
private readonly currentLang;
|
|
21
|
+
private readonly translationsMap;
|
|
22
|
+
readonly language: i0.Signal<string>;
|
|
23
|
+
readonly languages: i0.WritableSignal<Record<string, TranslatedString>>;
|
|
24
|
+
constructor();
|
|
25
|
+
private loadCulture;
|
|
26
|
+
private loadTranslations;
|
|
27
|
+
setLanguage(lang: string): void;
|
|
28
|
+
resolve(ts: TranslatedString | undefined): string;
|
|
29
|
+
t(key: string): string;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkLanguageService, never>;
|
|
31
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SparkLanguageService>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class SparkStreamingService {
|
|
35
|
+
private readonly config;
|
|
36
|
+
private readonly baseUrl;
|
|
37
|
+
private readonly ngZone;
|
|
38
|
+
connectToStreamingQuery(queryId: string): Observable<StreamingMessage>;
|
|
39
|
+
private buildWebSocketUrl;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkStreamingService, never>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SparkStreamingService>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class SparkService {
|
|
45
|
+
private readonly config;
|
|
46
|
+
private readonly baseUrl;
|
|
47
|
+
private readonly http;
|
|
48
|
+
private readonly retryActionService;
|
|
49
|
+
getEntityTypes(): Promise<EntityType[]>;
|
|
50
|
+
getEntityType(id: string): Promise<EntityType>;
|
|
51
|
+
getEntityTypeByClrType(clrType: string): Promise<EntityType | undefined>;
|
|
52
|
+
getPermissions(entityTypeId: string): Promise<EntityPermissions>;
|
|
53
|
+
getQueries(): Promise<SparkQuery[]>;
|
|
54
|
+
getQuery(id: string): Promise<SparkQuery>;
|
|
55
|
+
getQueryByName(name: string): Promise<SparkQuery | undefined>;
|
|
56
|
+
executeQuery(queryId: string, options?: {
|
|
57
|
+
sortColumns?: SortColumn[];
|
|
58
|
+
parentId?: string;
|
|
59
|
+
parentType?: string;
|
|
60
|
+
skip?: number;
|
|
61
|
+
take?: number;
|
|
62
|
+
search?: string;
|
|
63
|
+
}): Promise<QueryResult>;
|
|
64
|
+
executeQueryByName(queryName: string, options?: {
|
|
65
|
+
parentId?: string;
|
|
66
|
+
parentType?: string;
|
|
67
|
+
}): Promise<QueryResult>;
|
|
68
|
+
getProgramUnits(): Promise<ProgramUnitsConfiguration>;
|
|
69
|
+
list(type: string): Promise<PersistentObject[]>;
|
|
70
|
+
get(type: string, id: string): Promise<PersistentObject>;
|
|
71
|
+
create(type: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
72
|
+
update(type: string, id: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
73
|
+
delete(type: string, id: string): Promise<void>;
|
|
74
|
+
getCustomActions(objectTypeId: string): Promise<CustomActionDefinition[]>;
|
|
75
|
+
executeCustomAction(objectTypeId: string, actionName: string, parent?: PersistentObject, selectedItems?: PersistentObject[]): Promise<void>;
|
|
76
|
+
getLookupReferences(): Promise<LookupReferenceListItem[]>;
|
|
77
|
+
getLookupReference(name: string): Promise<LookupReference>;
|
|
78
|
+
addLookupReferenceValue(name: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
79
|
+
updateLookupReferenceValue(name: string, key: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
80
|
+
deleteLookupReferenceValue(name: string, key: string): Promise<void>;
|
|
81
|
+
private postWithRetry;
|
|
82
|
+
private putWithRetry;
|
|
83
|
+
private deleteWithRetry;
|
|
84
|
+
private handleRetryError;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkService, never>;
|
|
86
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SparkService>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class SparkIconRegistry {
|
|
90
|
+
private sanitizer;
|
|
91
|
+
private icons;
|
|
92
|
+
constructor();
|
|
93
|
+
register(name: string, svg: string): void;
|
|
94
|
+
get(name: string): SafeHtml | undefined;
|
|
95
|
+
has(name: string): boolean;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SparkIconRegistry, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SparkIconRegistry>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { RetryActionService, SparkIconRegistry, SparkLanguageService, SparkService, SparkStreamingService };
|