@mintplayer/ng-spark 0.1.2 → 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
|
@@ -1,264 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { WritableSignal, InjectionToken, Type, TemplateRef, PipeTransform, InputSignal, Provider } from '@angular/core';
|
|
3
|
-
import { SortColumn, PaginationResponse } from '@mintplayer/pagination';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
6
|
-
import { DatatableSettings } from '@mintplayer/ng-bootstrap/datatable';
|
|
7
|
-
import * as _mintplayer_ng_spark from '@mintplayer/ng-spark';
|
|
8
|
-
import { VirtualDatatableDataSource } from '@mintplayer/ng-bootstrap/virtual-datatable';
|
|
9
|
-
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
10
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
11
|
-
import { Route, Routes } from '@angular/router';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Flags enum controlling on which pages an attribute should be displayed.
|
|
15
|
-
* Values can be combined: ShowedOn.Query | ShowedOn.PersistentObject
|
|
16
|
-
*/
|
|
17
|
-
declare enum ShowedOn {
|
|
18
|
-
Query = 1,
|
|
19
|
-
PersistentObject = 2
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Helper function to check if a ShowedOn value includes a specific flag.
|
|
23
|
-
*/
|
|
24
|
-
declare function hasShowedOnFlag(value: ShowedOn | string | undefined, flag: ShowedOn): boolean;
|
|
25
|
-
|
|
26
|
-
type TranslatedString = Record<string, string>;
|
|
27
|
-
/** Global reactive language state — shared across library boundaries via globalThis */
|
|
28
|
-
declare const currentLanguage: WritableSignal<string>;
|
|
29
|
-
declare function resolveTranslation(ts: TranslatedString | undefined, lang?: string): string;
|
|
30
|
-
|
|
31
|
-
interface ValidationRule {
|
|
32
|
-
type: string;
|
|
33
|
-
value?: any;
|
|
34
|
-
min?: number;
|
|
35
|
-
max?: number;
|
|
36
|
-
message?: TranslatedString;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface PersistentObjectAttribute {
|
|
40
|
-
id: string;
|
|
41
|
-
name: string;
|
|
42
|
-
label?: TranslatedString;
|
|
43
|
-
value?: any;
|
|
44
|
-
dataType: string;
|
|
45
|
-
isArray?: boolean;
|
|
46
|
-
isRequired: boolean;
|
|
47
|
-
isVisible: boolean;
|
|
48
|
-
isReadOnly: boolean;
|
|
49
|
-
order: number;
|
|
50
|
-
query?: string;
|
|
51
|
-
breadcrumb?: string;
|
|
52
|
-
/**
|
|
53
|
-
* Controls on which pages the attribute should be displayed.
|
|
54
|
-
* Query = shown in list views, PersistentObject = shown in detail/edit views.
|
|
55
|
-
* Can be a numeric flag value or a string like "Query, PersistentObject".
|
|
56
|
-
*/
|
|
57
|
-
showedOn?: ShowedOn | string;
|
|
58
|
-
isValueChanged?: boolean;
|
|
59
|
-
rules: ValidationRule[];
|
|
60
|
-
group?: string;
|
|
61
|
-
/** Renderer component name for custom display in detail/list views */
|
|
62
|
-
renderer?: string;
|
|
63
|
-
/** Options passed to the renderer component */
|
|
64
|
-
rendererOptions?: Record<string, any>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
interface PersistentObject {
|
|
68
|
-
id: string;
|
|
69
|
-
name: string;
|
|
70
|
-
objectTypeId: string;
|
|
71
|
-
breadcrumb?: string;
|
|
72
|
-
attributes: PersistentObjectAttribute[];
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
interface EntityAttributeDefinition {
|
|
76
|
-
id: string;
|
|
77
|
-
name: string;
|
|
78
|
-
label?: TranslatedString;
|
|
79
|
-
dataType: string;
|
|
80
|
-
isRequired: boolean;
|
|
81
|
-
isVisible: boolean;
|
|
82
|
-
isReadOnly: boolean;
|
|
83
|
-
order: number;
|
|
84
|
-
query?: string;
|
|
85
|
-
/** For reference attributes, specifies the target entity type's CLR type name */
|
|
86
|
-
referenceType?: string;
|
|
87
|
-
/** For AsDetail attributes, specifies the nested entity type's CLR type name */
|
|
88
|
-
asDetailType?: string;
|
|
89
|
-
/** When true, the attribute represents an array/collection of AsDetail objects */
|
|
90
|
-
isArray?: boolean;
|
|
91
|
-
/** For array AsDetail attributes: "modal" (default) or "inline" */
|
|
92
|
-
editMode?: 'inline' | 'modal';
|
|
93
|
-
/** For LookupReference attributes, specifies the lookup reference type name */
|
|
94
|
-
lookupReferenceType?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Controls on which pages the attribute should be displayed.
|
|
97
|
-
* Query = shown in list views, PersistentObject = shown in detail/edit views.
|
|
98
|
-
* Can be a numeric flag value or a string like "Query, PersistentObject".
|
|
99
|
-
*/
|
|
100
|
-
showedOn?: ShowedOn | string;
|
|
101
|
-
rules: ValidationRule[];
|
|
102
|
-
/** References an AttributeGroup.id to assign this attribute to a group */
|
|
103
|
-
group?: string;
|
|
104
|
-
/** Number of grid columns this attribute spans within a tab's column layout */
|
|
105
|
-
columnSpan?: number;
|
|
106
|
-
/** Renderer component name for custom display in detail/list views */
|
|
107
|
-
renderer?: string;
|
|
108
|
-
/** Options passed to the renderer component */
|
|
109
|
-
rendererOptions?: Record<string, any>;
|
|
110
|
-
}
|
|
111
|
-
interface AttributeTab {
|
|
112
|
-
id: string;
|
|
113
|
-
name: string;
|
|
114
|
-
label?: TranslatedString;
|
|
115
|
-
order: number;
|
|
116
|
-
/** Number of columns for the grid layout within this tab */
|
|
117
|
-
columnCount?: number;
|
|
118
|
-
}
|
|
119
|
-
interface AttributeGroup {
|
|
120
|
-
id: string;
|
|
121
|
-
name: string;
|
|
122
|
-
label?: TranslatedString;
|
|
123
|
-
/** References an AttributeTab.id to assign this group to a tab */
|
|
124
|
-
tab?: string;
|
|
125
|
-
order: number;
|
|
126
|
-
}
|
|
127
|
-
interface EntityType {
|
|
128
|
-
id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
description?: TranslatedString;
|
|
131
|
-
clrType: string;
|
|
132
|
-
alias?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Template string with {PropertyName} placeholders for building a formatted display value.
|
|
135
|
-
* Example: "{Street}, {PostalCode} {City}"
|
|
136
|
-
*/
|
|
137
|
-
displayFormat?: string;
|
|
138
|
-
/**
|
|
139
|
-
* (Fallback) Single attribute name to use as display value when displayFormat is not specified.
|
|
140
|
-
*/
|
|
141
|
-
displayAttribute?: string;
|
|
142
|
-
tabs?: AttributeTab[];
|
|
143
|
-
groups?: AttributeGroup[];
|
|
144
|
-
attributes: EntityAttributeDefinition[];
|
|
145
|
-
/** Query aliases or IDs to display as related query tables on the detail page. */
|
|
146
|
-
queries?: string[];
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
interface ValidationError {
|
|
150
|
-
attributeName: string;
|
|
151
|
-
errorMessage: TranslatedString;
|
|
152
|
-
ruleType: string;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
type SparkQueryRenderMode = 'Pagination' | 'VirtualScrolling';
|
|
156
|
-
interface SparkQuerySortColumn {
|
|
157
|
-
property: string;
|
|
158
|
-
direction: string;
|
|
159
|
-
}
|
|
160
|
-
interface SparkQuery {
|
|
161
|
-
id: string;
|
|
162
|
-
name: string;
|
|
163
|
-
description?: TranslatedString;
|
|
164
|
-
source: string;
|
|
165
|
-
alias?: string;
|
|
166
|
-
sortColumns: SparkQuerySortColumn[];
|
|
167
|
-
renderMode?: SparkQueryRenderMode;
|
|
168
|
-
/** Optional RavenDB index name for queries using indexes */
|
|
169
|
-
indexName?: string;
|
|
170
|
-
/** When true, uses the projection type from [QueryType] attribute */
|
|
171
|
-
useProjection?: boolean;
|
|
172
|
-
/** Optional entity type name (e.g., "Person"). When set, used for entity type resolution. */
|
|
173
|
-
entityType?: string;
|
|
174
|
-
/** When true, this query uses WebSocket streaming with snapshot + patch updates. */
|
|
175
|
-
isStreamingQuery?: boolean;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface QueryResult {
|
|
179
|
-
data: PersistentObject[];
|
|
180
|
-
totalRecords: number;
|
|
181
|
-
skip: number;
|
|
182
|
-
take: number;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
interface ProgramUnit {
|
|
186
|
-
id: string;
|
|
187
|
-
name: TranslatedString;
|
|
188
|
-
icon?: string;
|
|
189
|
-
type: string;
|
|
190
|
-
queryId?: string;
|
|
191
|
-
persistentObjectId?: string;
|
|
192
|
-
order: number;
|
|
193
|
-
alias?: string;
|
|
194
|
-
}
|
|
195
|
-
interface ProgramUnitGroup {
|
|
196
|
-
id: string;
|
|
197
|
-
name: TranslatedString;
|
|
198
|
-
icon?: string;
|
|
199
|
-
order: number;
|
|
200
|
-
programUnits: ProgramUnit[];
|
|
201
|
-
}
|
|
202
|
-
interface ProgramUnitsConfiguration {
|
|
203
|
-
programUnitGroups: ProgramUnitGroup[];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
declare enum ELookupDisplayType {
|
|
207
|
-
Dropdown = 0,
|
|
208
|
-
Modal = 1
|
|
209
|
-
}
|
|
210
|
-
interface LookupReferenceListItem {
|
|
211
|
-
name: string;
|
|
212
|
-
isTransient: boolean;
|
|
213
|
-
valueCount: number;
|
|
214
|
-
displayType: ELookupDisplayType;
|
|
215
|
-
}
|
|
216
|
-
interface LookupReference {
|
|
217
|
-
name: string;
|
|
218
|
-
isTransient: boolean;
|
|
219
|
-
displayType: ELookupDisplayType;
|
|
220
|
-
values: LookupReferenceValue[];
|
|
221
|
-
}
|
|
222
|
-
interface LookupReferenceValue {
|
|
223
|
-
key: string;
|
|
224
|
-
values: TranslatedString;
|
|
225
|
-
isActive: boolean;
|
|
226
|
-
extra?: Record<string, unknown>;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface RetryActionPayload {
|
|
230
|
-
type: 'retry-action';
|
|
231
|
-
step: number;
|
|
232
|
-
title: string;
|
|
233
|
-
message?: string;
|
|
234
|
-
options: string[];
|
|
235
|
-
defaultOption?: string;
|
|
236
|
-
persistentObject?: PersistentObject;
|
|
237
|
-
}
|
|
238
|
-
interface RetryActionResult {
|
|
239
|
-
step: number;
|
|
240
|
-
option: string;
|
|
241
|
-
persistentObject?: PersistentObject;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
interface EntityPermissions {
|
|
245
|
-
canRead: boolean;
|
|
246
|
-
canCreate: boolean;
|
|
247
|
-
canEdit: boolean;
|
|
248
|
-
canDelete: boolean;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
interface CustomActionDefinition {
|
|
252
|
-
name: string;
|
|
253
|
-
displayName: TranslatedString;
|
|
254
|
-
icon?: string;
|
|
255
|
-
description?: string;
|
|
256
|
-
showedOn: string;
|
|
257
|
-
selectionRule?: string;
|
|
258
|
-
refreshOnCompleted: boolean;
|
|
259
|
-
confirmationMessageKey?: string;
|
|
260
|
-
offset: number;
|
|
261
|
-
}
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
262
2
|
|
|
263
3
|
interface SparkConfig {
|
|
264
4
|
baseUrl: string;
|
|
@@ -266,599 +6,7 @@ interface SparkConfig {
|
|
|
266
6
|
declare const SPARK_CONFIG: InjectionToken<SparkConfig>;
|
|
267
7
|
declare const defaultSparkConfig: SparkConfig;
|
|
268
8
|
|
|
269
|
-
interface StreamingSnapshotMessage {
|
|
270
|
-
type: 'snapshot';
|
|
271
|
-
data: PersistentObject[];
|
|
272
|
-
}
|
|
273
|
-
interface StreamingPatchItem {
|
|
274
|
-
id: string;
|
|
275
|
-
attributes: Record<string, any>;
|
|
276
|
-
}
|
|
277
|
-
interface StreamingPatchMessage {
|
|
278
|
-
type: 'patch';
|
|
279
|
-
updated: StreamingPatchItem[];
|
|
280
|
-
}
|
|
281
|
-
interface StreamingErrorMessage {
|
|
282
|
-
type: 'error';
|
|
283
|
-
message: string;
|
|
284
|
-
}
|
|
285
|
-
type StreamingMessage = StreamingSnapshotMessage | StreamingPatchMessage | StreamingErrorMessage;
|
|
286
|
-
|
|
287
|
-
declare class SparkService {
|
|
288
|
-
private readonly config;
|
|
289
|
-
private readonly baseUrl;
|
|
290
|
-
private readonly http;
|
|
291
|
-
private readonly retryActionService;
|
|
292
|
-
getEntityTypes(): Promise<EntityType[]>;
|
|
293
|
-
getEntityType(id: string): Promise<EntityType>;
|
|
294
|
-
getEntityTypeByClrType(clrType: string): Promise<EntityType | undefined>;
|
|
295
|
-
getPermissions(entityTypeId: string): Promise<EntityPermissions>;
|
|
296
|
-
getQueries(): Promise<SparkQuery[]>;
|
|
297
|
-
getQuery(id: string): Promise<SparkQuery>;
|
|
298
|
-
getQueryByName(name: string): Promise<SparkQuery | undefined>;
|
|
299
|
-
executeQuery(queryId: string, options?: {
|
|
300
|
-
sortColumns?: SortColumn[];
|
|
301
|
-
parentId?: string;
|
|
302
|
-
parentType?: string;
|
|
303
|
-
skip?: number;
|
|
304
|
-
take?: number;
|
|
305
|
-
search?: string;
|
|
306
|
-
}): Promise<QueryResult>;
|
|
307
|
-
executeQueryByName(queryName: string, options?: {
|
|
308
|
-
parentId?: string;
|
|
309
|
-
parentType?: string;
|
|
310
|
-
}): Promise<QueryResult>;
|
|
311
|
-
getProgramUnits(): Promise<ProgramUnitsConfiguration>;
|
|
312
|
-
list(type: string): Promise<PersistentObject[]>;
|
|
313
|
-
get(type: string, id: string): Promise<PersistentObject>;
|
|
314
|
-
create(type: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
315
|
-
update(type: string, id: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
316
|
-
delete(type: string, id: string): Promise<void>;
|
|
317
|
-
getCustomActions(objectTypeId: string): Promise<CustomActionDefinition[]>;
|
|
318
|
-
executeCustomAction(objectTypeId: string, actionName: string, parent?: PersistentObject, selectedItems?: PersistentObject[]): Promise<void>;
|
|
319
|
-
getLookupReferences(): Promise<LookupReferenceListItem[]>;
|
|
320
|
-
getLookupReference(name: string): Promise<LookupReference>;
|
|
321
|
-
addLookupReferenceValue(name: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
322
|
-
updateLookupReferenceValue(name: string, key: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
323
|
-
deleteLookupReferenceValue(name: string, key: string): Promise<void>;
|
|
324
|
-
private postWithRetry;
|
|
325
|
-
private putWithRetry;
|
|
326
|
-
private deleteWithRetry;
|
|
327
|
-
private handleRetryError;
|
|
328
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkService, never>;
|
|
329
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkService>;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
declare class SparkStreamingService {
|
|
333
|
-
private readonly config;
|
|
334
|
-
private readonly baseUrl;
|
|
335
|
-
private readonly ngZone;
|
|
336
|
-
connectToStreamingQuery(queryId: string): Observable<StreamingMessage>;
|
|
337
|
-
private buildWebSocketUrl;
|
|
338
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkStreamingService, never>;
|
|
339
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkStreamingService>;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
declare class SparkLanguageService {
|
|
343
|
-
private readonly http;
|
|
344
|
-
private readonly config;
|
|
345
|
-
private readonly baseUrl;
|
|
346
|
-
private readonly currentLang;
|
|
347
|
-
private readonly translationsMap;
|
|
348
|
-
readonly language: _angular_core.Signal<string>;
|
|
349
|
-
readonly languages: _angular_core.WritableSignal<Record<string, TranslatedString>>;
|
|
350
|
-
constructor();
|
|
351
|
-
private loadCulture;
|
|
352
|
-
private loadTranslations;
|
|
353
|
-
setLanguage(lang: string): void;
|
|
354
|
-
resolve(ts: TranslatedString | undefined): string;
|
|
355
|
-
t(key: string): string;
|
|
356
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkLanguageService, never>;
|
|
357
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkLanguageService>;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
declare class RetryActionService {
|
|
361
|
-
private resolveRetry;
|
|
362
|
-
payload: _angular_core.WritableSignal<RetryActionPayload>;
|
|
363
|
-
show(payload: RetryActionPayload): Promise<RetryActionResult>;
|
|
364
|
-
respond(result: RetryActionResult): void;
|
|
365
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RetryActionService, never>;
|
|
366
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RetryActionService>;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
declare class SparkPoFormComponent {
|
|
370
|
-
private readonly sparkService;
|
|
371
|
-
private readonly translations;
|
|
372
|
-
private readonly rendererRegistry;
|
|
373
|
-
entityType: _angular_core.InputSignal<EntityType>;
|
|
374
|
-
formData: _angular_core.ModelSignal<Record<string, any>>;
|
|
375
|
-
validationErrors: _angular_core.InputSignal<ValidationError[]>;
|
|
376
|
-
showButtons: _angular_core.InputSignal<boolean>;
|
|
377
|
-
isSaving: _angular_core.InputSignal<boolean>;
|
|
378
|
-
parentId: _angular_core.InputSignal<string>;
|
|
379
|
-
parentType: _angular_core.InputSignal<string>;
|
|
380
|
-
save: _angular_core.OutputEmitterRef<void>;
|
|
381
|
-
cancel: _angular_core.OutputEmitterRef<void>;
|
|
382
|
-
colors: typeof Color;
|
|
383
|
-
referenceOptions: _angular_core.WritableSignal<Record<string, PersistentObject[]>>;
|
|
384
|
-
asDetailTypes: _angular_core.WritableSignal<Record<string, EntityType>>;
|
|
385
|
-
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
386
|
-
editingAsDetailAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
387
|
-
asDetailFormData: _angular_core.WritableSignal<Record<string, any>>;
|
|
388
|
-
showAsDetailModal: _angular_core.WritableSignal<boolean>;
|
|
389
|
-
editingArrayIndex: _angular_core.WritableSignal<number>;
|
|
390
|
-
asDetailPermissions: _angular_core.WritableSignal<Record<string, EntityPermissions>>;
|
|
391
|
-
asDetailReferenceOptions: _angular_core.WritableSignal<Record<string, Record<string, PersistentObject[]>>>;
|
|
392
|
-
editingReferenceAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
393
|
-
showReferenceModal: _angular_core.WritableSignal<boolean>;
|
|
394
|
-
referenceModalItems: _angular_core.WritableSignal<PersistentObject[]>;
|
|
395
|
-
referenceModalEntityType: _angular_core.WritableSignal<EntityType>;
|
|
396
|
-
referenceModalPagination: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
397
|
-
referenceModalSettings: _angular_core.WritableSignal<DatatableSettings>;
|
|
398
|
-
referenceSearchTerm: string;
|
|
399
|
-
editingLookupAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
400
|
-
showLookupModal: _angular_core.WritableSignal<boolean>;
|
|
401
|
-
lookupModalItems: _angular_core.WritableSignal<LookupReferenceValue[]>;
|
|
402
|
-
lookupSearchTerm: _angular_core.WritableSignal<string>;
|
|
403
|
-
ELookupDisplayType: typeof ELookupDisplayType;
|
|
404
|
-
editableAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
405
|
-
private static readonly DEFAULT_TAB;
|
|
406
|
-
ungroupedAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
407
|
-
resolvedTabs: _angular_core.Signal<AttributeTab[]>;
|
|
408
|
-
groupsForTab(tab: AttributeTab): AttributeGroup[];
|
|
409
|
-
attrsForGroup(group: AttributeGroup): EntityAttributeDefinition[];
|
|
410
|
-
referenceVisibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
411
|
-
filteredLookupItems: _angular_core.Signal<LookupReferenceValue[]>;
|
|
412
|
-
constructor();
|
|
413
|
-
private toRecord;
|
|
414
|
-
loadReferenceOptions(): Promise<void>;
|
|
415
|
-
loadAsDetailTypes(): Promise<void>;
|
|
416
|
-
loadLookupReferenceOptions(): Promise<void>;
|
|
417
|
-
getReferenceOptions(attr: EntityAttributeDefinition): PersistentObject[];
|
|
418
|
-
getLookupOptions(attr: EntityAttributeDefinition): LookupReferenceValue[];
|
|
419
|
-
openLookupSelector(attr: EntityAttributeDefinition): void;
|
|
420
|
-
selectLookupItem(item: LookupReferenceValue): void;
|
|
421
|
-
closeLookupModal(): void;
|
|
422
|
-
getEditRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
423
|
-
getEditRendererInputs(attr: EntityAttributeDefinition): Record<string, any>;
|
|
424
|
-
hasError(attrName: string): boolean;
|
|
425
|
-
onFieldChange(): void;
|
|
426
|
-
onSave(): void;
|
|
427
|
-
onCancel(): void;
|
|
428
|
-
openAsDetailEditor(attr: EntityAttributeDefinition): void;
|
|
429
|
-
saveAsDetailObject(): void;
|
|
430
|
-
closeAsDetailModal(): void;
|
|
431
|
-
addInlineRow(attr: EntityAttributeDefinition): void;
|
|
432
|
-
addArrayItem(attr: EntityAttributeDefinition): void;
|
|
433
|
-
editArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
434
|
-
removeArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
435
|
-
openReferenceSelector(attr: EntityAttributeDefinition): Promise<void>;
|
|
436
|
-
onReferenceSearchChange(): void;
|
|
437
|
-
applyReferenceFilter(): void;
|
|
438
|
-
clearReferenceSearch(): void;
|
|
439
|
-
selectReferenceItem(item: PersistentObject): void;
|
|
440
|
-
closeReferenceModal(): void;
|
|
441
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoFormComponent, never>;
|
|
442
|
-
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>;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
declare class SparkPoCreateComponent {
|
|
446
|
-
private readonly route;
|
|
447
|
-
private readonly router;
|
|
448
|
-
private readonly sparkService;
|
|
449
|
-
saved: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
450
|
-
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
451
|
-
colors: typeof Color;
|
|
452
|
-
entityType: _angular_core.WritableSignal<EntityType>;
|
|
453
|
-
type: _angular_core.WritableSignal<string>;
|
|
454
|
-
formData: _angular_core.WritableSignal<Record<string, any>>;
|
|
455
|
-
validationErrors: _angular_core.WritableSignal<ValidationError[]>;
|
|
456
|
-
isSaving: _angular_core.WritableSignal<boolean>;
|
|
457
|
-
generalErrors: _angular_core.Signal<ValidationError[]>;
|
|
458
|
-
constructor();
|
|
459
|
-
private onParamsChange;
|
|
460
|
-
initFormData(): void;
|
|
461
|
-
getEditableAttributes(): _mintplayer_ng_spark.EntityAttributeDefinition[];
|
|
462
|
-
onSave(): Promise<void>;
|
|
463
|
-
onCancel(): void;
|
|
464
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoCreateComponent, never>;
|
|
465
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoCreateComponent, "spark-po-create", never, {}, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
declare class SparkPoEditComponent {
|
|
469
|
-
private readonly route;
|
|
470
|
-
private readonly router;
|
|
471
|
-
private readonly sparkService;
|
|
472
|
-
saved: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
473
|
-
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
474
|
-
colors: typeof Color;
|
|
475
|
-
entityType: _angular_core.WritableSignal<EntityType>;
|
|
476
|
-
item: _angular_core.WritableSignal<PersistentObject>;
|
|
477
|
-
type: string;
|
|
478
|
-
id: string;
|
|
479
|
-
formData: _angular_core.WritableSignal<Record<string, any>>;
|
|
480
|
-
validationErrors: _angular_core.WritableSignal<ValidationError[]>;
|
|
481
|
-
isSaving: _angular_core.WritableSignal<boolean>;
|
|
482
|
-
generalErrors: _angular_core.Signal<ValidationError[]>;
|
|
483
|
-
constructor();
|
|
484
|
-
private onParamsChange;
|
|
485
|
-
initFormData(): void;
|
|
486
|
-
getEditableAttributes(): _mintplayer_ng_spark.EntityAttributeDefinition[];
|
|
487
|
-
onSave(): Promise<void>;
|
|
488
|
-
onCancel(): void;
|
|
489
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoEditComponent, never>;
|
|
490
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoEditComponent, "spark-po-edit", never, {}, { "saved": "saved"; "cancelled": "cancelled"; }, never, never, true, never>;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
declare class SparkPoDetailComponent {
|
|
494
|
-
private readonly route;
|
|
495
|
-
private readonly router;
|
|
496
|
-
private readonly sparkService;
|
|
497
|
-
private readonly lang;
|
|
498
|
-
private readonly rendererRegistry;
|
|
499
|
-
showCustomActions: _angular_core.InputSignal<boolean>;
|
|
500
|
-
extraActionsTemplate: _angular_core.InputSignal<TemplateRef<void>>;
|
|
501
|
-
extraContentTemplate: _angular_core.InputSignal<TemplateRef<{
|
|
502
|
-
$implicit: PersistentObject;
|
|
503
|
-
entityType: EntityType;
|
|
504
|
-
}>>;
|
|
505
|
-
edited: _angular_core.OutputEmitterRef<void>;
|
|
506
|
-
deleted: _angular_core.OutputEmitterRef<void>;
|
|
507
|
-
customActionExecuted: _angular_core.OutputEmitterRef<{
|
|
508
|
-
action: CustomActionDefinition;
|
|
509
|
-
item: PersistentObject;
|
|
510
|
-
}>;
|
|
511
|
-
colors: typeof Color;
|
|
512
|
-
errorMessage: _angular_core.WritableSignal<string>;
|
|
513
|
-
entityType: _angular_core.WritableSignal<EntityType>;
|
|
514
|
-
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
515
|
-
item: _angular_core.WritableSignal<PersistentObject>;
|
|
516
|
-
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
517
|
-
asDetailTypes: _angular_core.WritableSignal<Record<string, EntityType>>;
|
|
518
|
-
asDetailReferenceOptions: _angular_core.WritableSignal<Record<string, Record<string, PersistentObject[]>>>;
|
|
519
|
-
type: string;
|
|
520
|
-
id: string;
|
|
521
|
-
canEdit: _angular_core.WritableSignal<boolean>;
|
|
522
|
-
canDelete: _angular_core.WritableSignal<boolean>;
|
|
523
|
-
customActions: _angular_core.WritableSignal<CustomActionDefinition[]>;
|
|
524
|
-
constructor();
|
|
525
|
-
private onParamsChange;
|
|
526
|
-
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
527
|
-
private static readonly DEFAULT_TAB;
|
|
528
|
-
ungroupedAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
529
|
-
resolvedTabs: _angular_core.Signal<AttributeTab[]>;
|
|
530
|
-
groupsForTab(tab: AttributeTab): AttributeGroup[];
|
|
531
|
-
attrsForGroup(group: AttributeGroup): EntityAttributeDefinition[];
|
|
532
|
-
getDetailRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
533
|
-
getDetailRendererInputs(attr: EntityAttributeDefinition, item: PersistentObject): Record<string, any>;
|
|
534
|
-
private loadLookupReferenceOptions;
|
|
535
|
-
private loadAsDetailTypes;
|
|
536
|
-
onCustomAction(action: CustomActionDefinition): Promise<void>;
|
|
537
|
-
onEdit(): void;
|
|
538
|
-
onDelete(): Promise<void>;
|
|
539
|
-
onBack(): void;
|
|
540
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoDetailComponent, never>;
|
|
541
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoDetailComponent, "spark-po-detail", never, { "showCustomActions": { "alias": "showCustomActions"; "required": false; "isSignal": true; }; "extraActionsTemplate": { "alias": "extraActionsTemplate"; "required": false; "isSignal": true; }; "extraContentTemplate": { "alias": "extraContentTemplate"; "required": false; "isSignal": true; }; }, { "edited": "edited"; "deleted": "deleted"; "customActionExecuted": "customActionExecuted"; }, never, never, true, never>;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
declare class SparkQueryListComponent {
|
|
545
|
-
private readonly route;
|
|
546
|
-
private readonly router;
|
|
547
|
-
private readonly sparkService;
|
|
548
|
-
private readonly streamingService;
|
|
549
|
-
private readonly rendererRegistry;
|
|
550
|
-
private readonly destroyRef;
|
|
551
|
-
extraActionsTemplate: _angular_core.InputSignal<TemplateRef<void>>;
|
|
552
|
-
rowClicked: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
553
|
-
createClicked: _angular_core.OutputEmitterRef<void>;
|
|
554
|
-
colors: typeof Color;
|
|
555
|
-
errorMessage: _angular_core.WritableSignal<string>;
|
|
556
|
-
query: _angular_core.WritableSignal<SparkQuery>;
|
|
557
|
-
entityType: _angular_core.WritableSignal<EntityType>;
|
|
558
|
-
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
559
|
-
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
560
|
-
paginationData: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
561
|
-
searchTerm: string;
|
|
562
|
-
canRead: _angular_core.WritableSignal<boolean>;
|
|
563
|
-
canCreate: _angular_core.WritableSignal<boolean>;
|
|
564
|
-
isStreaming: _angular_core.WritableSignal<boolean>;
|
|
565
|
-
private streamingSub;
|
|
566
|
-
private allItems;
|
|
567
|
-
private filteredItems;
|
|
568
|
-
settings: _angular_core.WritableSignal<DatatableSettings>;
|
|
569
|
-
virtualDataSource: _angular_core.WritableSignal<VirtualDatatableDataSource<PersistentObject>>;
|
|
570
|
-
virtualSettings: _angular_core.WritableSignal<DatatableSettings>;
|
|
571
|
-
constructor();
|
|
572
|
-
private onParamsChange;
|
|
573
|
-
private resolveEntityTypeForQuery;
|
|
574
|
-
private extractSourceName;
|
|
575
|
-
private singularize;
|
|
576
|
-
private initVirtualDataSource;
|
|
577
|
-
loadItems(): Promise<void>;
|
|
578
|
-
onSettingsChange(): void;
|
|
579
|
-
onSearchChange(): void;
|
|
580
|
-
clearSearch(): void;
|
|
581
|
-
isVirtualScrolling: _angular_core.Signal<boolean>;
|
|
582
|
-
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
583
|
-
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
584
|
-
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
585
|
-
private loadLookupReferenceOptions;
|
|
586
|
-
onCreate(): void;
|
|
587
|
-
private connectStreaming;
|
|
588
|
-
private disconnectStreaming;
|
|
589
|
-
private handleStreamingMessage;
|
|
590
|
-
private applyFilter;
|
|
591
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkQueryListComponent, never>;
|
|
592
|
-
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>;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
declare class SparkSubQueryComponent {
|
|
596
|
-
private readonly sparkService;
|
|
597
|
-
private readonly rendererRegistry;
|
|
598
|
-
queryId: _angular_core.InputSignal<string>;
|
|
599
|
-
parentId: _angular_core.InputSignal<string>;
|
|
600
|
-
parentType: _angular_core.InputSignal<string>;
|
|
601
|
-
query: _angular_core.WritableSignal<SparkQuery>;
|
|
602
|
-
entityType: _angular_core.WritableSignal<EntityType>;
|
|
603
|
-
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
604
|
-
paginationData: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
605
|
-
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
606
|
-
loading: _angular_core.WritableSignal<boolean>;
|
|
607
|
-
canRead: _angular_core.WritableSignal<boolean>;
|
|
608
|
-
settings: _angular_core.WritableSignal<DatatableSettings>;
|
|
609
|
-
virtualDataSource: _angular_core.WritableSignal<VirtualDatatableDataSource<PersistentObject>>;
|
|
610
|
-
virtualSettings: _angular_core.WritableSignal<DatatableSettings>;
|
|
611
|
-
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
612
|
-
constructor();
|
|
613
|
-
private loadData;
|
|
614
|
-
private loadPage;
|
|
615
|
-
onSettingsChange(): void;
|
|
616
|
-
private loadLookupReferenceOptions;
|
|
617
|
-
getColumnRendererComponent(attr: EntityAttributeDefinition): Type<any> | null;
|
|
618
|
-
getColumnRendererInputs(item: PersistentObject, attr: EntityAttributeDefinition): Record<string, any>;
|
|
619
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkSubQueryComponent, never>;
|
|
620
|
-
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>;
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
declare class SparkRetryActionModalComponent {
|
|
624
|
-
protected readonly retryActionService: RetryActionService;
|
|
625
|
-
colors: typeof Color;
|
|
626
|
-
isOpen: _angular_core.Signal<boolean>;
|
|
627
|
-
onOption(option: string): void;
|
|
628
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkRetryActionModalComponent, never>;
|
|
629
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkRetryActionModalComponent, "spark-retry-action-modal", never, {}, {}, never, never, true, never>;
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
declare class SparkIconComponent {
|
|
633
|
-
private registry;
|
|
634
|
-
name: _angular_core.InputSignal<string>;
|
|
635
|
-
iconHtml: _angular_core.Signal<_angular_platform_browser.SafeHtml>;
|
|
636
|
-
cssFallbackClass: _angular_core.Signal<string>;
|
|
637
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkIconComponent, never>;
|
|
638
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkIconComponent, "spark-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
declare class SparkIconRegistry {
|
|
642
|
-
private sanitizer;
|
|
643
|
-
private icons;
|
|
644
|
-
constructor();
|
|
645
|
-
register(name: string, svg: string): void;
|
|
646
|
-
get(name: string): SafeHtml | undefined;
|
|
647
|
-
has(name: string): boolean;
|
|
648
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkIconRegistry, never>;
|
|
649
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkIconRegistry>;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
declare class TranslateKeyPipe implements PipeTransform {
|
|
653
|
-
private readonly lang;
|
|
654
|
-
transform(key: string): string;
|
|
655
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TranslateKeyPipe, never>;
|
|
656
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<TranslateKeyPipe, "t", true>;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
declare class ResolveTranslationPipe implements PipeTransform {
|
|
660
|
-
transform(value: TranslatedString | undefined, fallback?: string): string;
|
|
661
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResolveTranslationPipe, never>;
|
|
662
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ResolveTranslationPipe, "resolveTranslation", true>;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
declare class InputTypePipe implements PipeTransform {
|
|
666
|
-
transform(dataType: string): string;
|
|
667
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputTypePipe, never>;
|
|
668
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<InputTypePipe, "inputType", true>;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
declare class AttributeValuePipe implements PipeTransform {
|
|
672
|
-
transform(attrName: string, item: PersistentObject | null, entityType: EntityType | null, lookupRefOptions: Record<string, LookupReference>, allEntityTypes: EntityType[]): any;
|
|
673
|
-
private formatAsDetailValue;
|
|
674
|
-
private resolveDisplayFormat;
|
|
675
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AttributeValuePipe, never>;
|
|
676
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AttributeValuePipe, "attributeValue", true>;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
declare class RawAttributeValuePipe implements PipeTransform {
|
|
680
|
-
transform(attrName: string, item: PersistentObject | null): any;
|
|
681
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RawAttributeValuePipe, never>;
|
|
682
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<RawAttributeValuePipe, "rawAttributeValue", true>;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
declare class ReferenceDisplayValuePipe implements PipeTransform {
|
|
686
|
-
private readonly lang;
|
|
687
|
-
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, referenceOptions: Record<string, PersistentObject[]>): string;
|
|
688
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceDisplayValuePipe, never>;
|
|
689
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceDisplayValuePipe, "referenceDisplayValue", true>;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
declare class ReferenceAttrValuePipe implements PipeTransform {
|
|
693
|
-
transform(item: PersistentObject, attrName: string): any;
|
|
694
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceAttrValuePipe, never>;
|
|
695
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceAttrValuePipe, "referenceAttrValue", true>;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
declare class ReferenceLinkRoutePipe implements PipeTransform {
|
|
699
|
-
transform(referenceClrType: string, referenceId: any, allEntityTypes: EntityType[]): string[] | null;
|
|
700
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceLinkRoutePipe, never>;
|
|
701
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceLinkRoutePipe, "referenceLinkRoute", true>;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
declare class RouterLinkPipe implements PipeTransform {
|
|
705
|
-
transform(unit: ProgramUnit): string[];
|
|
706
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterLinkPipe, never>;
|
|
707
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<RouterLinkPipe, "routerLink", true>;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
declare class AsDetailTypePipe implements PipeTransform {
|
|
711
|
-
transform(attr: EntityAttributeDefinition, asDetailTypes: Record<string, EntityType>): EntityType | null;
|
|
712
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailTypePipe, never>;
|
|
713
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailTypePipe, "asDetailType", true>;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
declare class AsDetailColumnsPipe implements PipeTransform {
|
|
717
|
-
transform(attr: EntityAttributeDefinition, asDetailTypes: Record<string, EntityType>): EntityAttributeDefinition[];
|
|
718
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailColumnsPipe, never>;
|
|
719
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailColumnsPipe, "asDetailColumns", true>;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
declare class AsDetailCellValuePipe implements PipeTransform {
|
|
723
|
-
transform(row: Record<string, any>, parentAttr: EntityAttributeDefinition, col: EntityAttributeDefinition, asDetailRefOptions: Record<string, Record<string, PersistentObject[]>>): string;
|
|
724
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailCellValuePipe, never>;
|
|
725
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailCellValuePipe, "asDetailCellValue", true>;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
declare class AsDetailDisplayValuePipe implements PipeTransform {
|
|
729
|
-
private readonly lang;
|
|
730
|
-
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, asDetailTypes: Record<string, EntityType>): string;
|
|
731
|
-
private resolveDisplayFormat;
|
|
732
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailDisplayValuePipe, never>;
|
|
733
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailDisplayValuePipe, "asDetailDisplayValue", true>;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
declare class CanCreateDetailRowPipe implements PipeTransform {
|
|
737
|
-
transform(attr: EntityAttributeDefinition, permissions: Record<string, EntityPermissions>): boolean;
|
|
738
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanCreateDetailRowPipe, never>;
|
|
739
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CanCreateDetailRowPipe, "canCreateDetailRow", true>;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
declare class CanDeleteDetailRowPipe implements PipeTransform {
|
|
743
|
-
transform(attr: EntityAttributeDefinition, permissions: Record<string, EntityPermissions>): boolean;
|
|
744
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanDeleteDetailRowPipe, never>;
|
|
745
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CanDeleteDetailRowPipe, "canDeleteDetailRow", true>;
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
declare class LookupDisplayTypePipe implements PipeTransform {
|
|
749
|
-
transform(attr: EntityAttributeDefinition, lookupRefOptions: Record<string, LookupReference>): ELookupDisplayType;
|
|
750
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupDisplayTypePipe, never>;
|
|
751
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupDisplayTypePipe, "lookupDisplayType", true>;
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
declare class LookupDisplayValuePipe implements PipeTransform {
|
|
755
|
-
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, lookupRefOptions: Record<string, LookupReference>): string;
|
|
756
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupDisplayValuePipe, never>;
|
|
757
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupDisplayValuePipe, "lookupDisplayValue", true>;
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
declare class LookupOptionsPipe implements PipeTransform {
|
|
761
|
-
transform(attr: EntityAttributeDefinition, lookupRefOptions: Record<string, LookupReference>): LookupReferenceValue[];
|
|
762
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupOptionsPipe, never>;
|
|
763
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupOptionsPipe, "lookupOptions", true>;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
declare class InlineRefOptionsPipe implements PipeTransform {
|
|
767
|
-
transform(parentAttr: EntityAttributeDefinition, col: EntityAttributeDefinition, asDetailRefOptions: Record<string, Record<string, PersistentObject[]>>): PersistentObject[];
|
|
768
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineRefOptionsPipe, never>;
|
|
769
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<InlineRefOptionsPipe, "inlineRefOptions", true>;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
declare class ErrorForAttributePipe implements PipeTransform {
|
|
773
|
-
transform(attrName: string, validationErrors: ValidationError[]): string | null;
|
|
774
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ErrorForAttributePipe, never>;
|
|
775
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ErrorForAttributePipe, "errorForAttribute", true>;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
declare class IconNamePipe implements PipeTransform {
|
|
779
|
-
transform(value: string | undefined, fallback: string): string;
|
|
780
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconNamePipe, never>;
|
|
781
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<IconNamePipe, "iconName", true>;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
declare class ArrayValuePipe implements PipeTransform {
|
|
785
|
-
transform(attrName: string, item: PersistentObject | null): Record<string, any>[];
|
|
786
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ArrayValuePipe, never>;
|
|
787
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ArrayValuePipe, "arrayValue", true>;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* Contract for detail-page renderers (spark-po-detail).
|
|
792
|
-
* Displays a single attribute value in the PO detail view.
|
|
793
|
-
*/
|
|
794
|
-
interface SparkAttributeDetailRenderer {
|
|
795
|
-
/** The current attribute value */
|
|
796
|
-
value: InputSignal<any>;
|
|
797
|
-
/** The attribute definition metadata */
|
|
798
|
-
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
799
|
-
/** Renderer-specific options from rendererOptions */
|
|
800
|
-
options: InputSignal<Record<string, any> | undefined>;
|
|
801
|
-
/** The full form data (for cross-field dependencies) */
|
|
802
|
-
formData: InputSignal<Record<string, any>>;
|
|
803
|
-
}
|
|
804
|
-
/**
|
|
805
|
-
* Contract for query-list column renderers (spark-query-list).
|
|
806
|
-
* Displays a compact cell value in the list/grid view.
|
|
807
|
-
*/
|
|
808
|
-
interface SparkAttributeColumnRenderer {
|
|
809
|
-
/** The current attribute value */
|
|
810
|
-
value: InputSignal<any>;
|
|
811
|
-
/** The attribute definition metadata */
|
|
812
|
-
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
813
|
-
/** Renderer-specific options from rendererOptions */
|
|
814
|
-
options: InputSignal<Record<string, any> | undefined>;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* Contract for edit-form renderers (spark-po-form on create/edit pages).
|
|
818
|
-
* Replaces the default <input> for this attribute.
|
|
819
|
-
*/
|
|
820
|
-
interface SparkAttributeEditRenderer {
|
|
821
|
-
/** The current attribute value */
|
|
822
|
-
value: InputSignal<any>;
|
|
823
|
-
/** The attribute definition metadata */
|
|
824
|
-
attribute: InputSignal<EntityAttributeDefinition | undefined>;
|
|
825
|
-
/** Renderer-specific options from rendererOptions */
|
|
826
|
-
options: InputSignal<Record<string, any> | undefined>;
|
|
827
|
-
/** Callback to notify parent form of value changes (since NgComponentOutlet doesn't support outputs) */
|
|
828
|
-
valueChange: InputSignal<(value: any) => void>;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
interface SparkAttributeRendererRegistration {
|
|
832
|
-
/** The renderer name (must match attr.renderer in model JSON) */
|
|
833
|
-
name: string;
|
|
834
|
-
/** Component for the PO detail page. Must implement SparkAttributeDetailRenderer. */
|
|
835
|
-
detailComponent: Type<any>;
|
|
836
|
-
/** Component for query-list column cells. Must implement SparkAttributeColumnRenderer. */
|
|
837
|
-
columnComponent: Type<any>;
|
|
838
|
-
/** Optional component for create/edit forms. Must implement SparkAttributeEditRenderer. When omitted, the default input is used. */
|
|
839
|
-
editComponent?: Type<any>;
|
|
840
|
-
}
|
|
841
|
-
declare const SPARK_ATTRIBUTE_RENDERERS: InjectionToken<SparkAttributeRendererRegistration[]>;
|
|
842
|
-
/**
|
|
843
|
-
* Register custom attribute renderers globally.
|
|
844
|
-
*
|
|
845
|
-
* @example
|
|
846
|
-
* provideSparkAttributeRenderers([
|
|
847
|
-
* { name: 'video-player', detailComponent: VideoDetailComponent, columnComponent: VideoColumnComponent },
|
|
848
|
-
* { name: 'color-swatch', detailComponent: ColorDetailComponent, columnComponent: ColorColumnComponent },
|
|
849
|
-
* ])
|
|
850
|
-
*/
|
|
851
|
-
declare function provideSparkAttributeRenderers(renderers: SparkAttributeRendererRegistration[]): Provider;
|
|
852
|
-
|
|
853
|
-
interface SparkRouteConfig {
|
|
854
|
-
queryList?: Route['loadComponent'];
|
|
855
|
-
poCreate?: Route['loadComponent'];
|
|
856
|
-
poEdit?: Route['loadComponent'];
|
|
857
|
-
poDetail?: Route['loadComponent'];
|
|
858
|
-
}
|
|
859
|
-
declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
860
|
-
|
|
861
9
|
declare function provideSpark(config?: Partial<SparkConfig>): Provider[];
|
|
862
10
|
|
|
863
|
-
export {
|
|
864
|
-
export type {
|
|
11
|
+
export { SPARK_CONFIG, defaultSparkConfig, provideSpark };
|
|
12
|
+
export type { SparkConfig };
|