@mintplayer/ng-spark 0.0.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.
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, QueryList, PipeTransform, Provider } 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 * as _mintplayer_ng_spark from '@mintplayer/ng-spark';
|
|
7
|
+
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
8
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
9
|
+
import { Route, Routes } from '@angular/router';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Flags enum controlling on which pages an attribute should be displayed.
|
|
13
|
+
* Values can be combined: ShowedOn.Query | ShowedOn.PersistentObject
|
|
14
|
+
*/
|
|
15
|
+
declare enum ShowedOn {
|
|
16
|
+
Query = 1,
|
|
17
|
+
PersistentObject = 2
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Helper function to check if a ShowedOn value includes a specific flag.
|
|
21
|
+
*/
|
|
22
|
+
declare function hasShowedOnFlag(value: ShowedOn | string | undefined, flag: ShowedOn): boolean;
|
|
23
|
+
|
|
24
|
+
type TranslatedString = Record<string, string>;
|
|
25
|
+
declare function resolveTranslation(ts: TranslatedString | undefined, lang?: string): string;
|
|
26
|
+
|
|
27
|
+
interface ValidationRule {
|
|
28
|
+
type: string;
|
|
29
|
+
value?: any;
|
|
30
|
+
min?: number;
|
|
31
|
+
max?: number;
|
|
32
|
+
message?: TranslatedString;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface PersistentObjectAttribute {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
label?: TranslatedString;
|
|
39
|
+
value?: any;
|
|
40
|
+
dataType: string;
|
|
41
|
+
isArray?: boolean;
|
|
42
|
+
isRequired: boolean;
|
|
43
|
+
isVisible: boolean;
|
|
44
|
+
isReadOnly: boolean;
|
|
45
|
+
order: number;
|
|
46
|
+
query?: string;
|
|
47
|
+
breadcrumb?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Controls on which pages the attribute should be displayed.
|
|
50
|
+
* Query = shown in list views, PersistentObject = shown in detail/edit views.
|
|
51
|
+
* Can be a numeric flag value or a string like "Query, PersistentObject".
|
|
52
|
+
*/
|
|
53
|
+
showedOn?: ShowedOn | string;
|
|
54
|
+
isValueChanged?: boolean;
|
|
55
|
+
rules: ValidationRule[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
interface PersistentObject {
|
|
59
|
+
id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
objectTypeId: string;
|
|
62
|
+
breadcrumb?: string;
|
|
63
|
+
attributes: PersistentObjectAttribute[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface EntityAttributeDefinition {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
label?: TranslatedString;
|
|
70
|
+
dataType: string;
|
|
71
|
+
isRequired: boolean;
|
|
72
|
+
isVisible: boolean;
|
|
73
|
+
isReadOnly: boolean;
|
|
74
|
+
order: number;
|
|
75
|
+
query?: string;
|
|
76
|
+
/** For reference attributes, specifies the target entity type's CLR type name */
|
|
77
|
+
referenceType?: string;
|
|
78
|
+
/** For AsDetail attributes, specifies the nested entity type's CLR type name */
|
|
79
|
+
asDetailType?: string;
|
|
80
|
+
/** When true, the attribute represents an array/collection of AsDetail objects */
|
|
81
|
+
isArray?: boolean;
|
|
82
|
+
/** For array AsDetail attributes: "modal" (default) or "inline" */
|
|
83
|
+
editMode?: 'inline' | 'modal';
|
|
84
|
+
/** For LookupReference attributes, specifies the lookup reference type name */
|
|
85
|
+
lookupReferenceType?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Controls on which pages the attribute should be displayed.
|
|
88
|
+
* Query = shown in list views, PersistentObject = shown in detail/edit views.
|
|
89
|
+
* Can be a numeric flag value or a string like "Query, PersistentObject".
|
|
90
|
+
*/
|
|
91
|
+
showedOn?: ShowedOn | string;
|
|
92
|
+
rules: ValidationRule[];
|
|
93
|
+
}
|
|
94
|
+
interface EntityType {
|
|
95
|
+
id: string;
|
|
96
|
+
name: string;
|
|
97
|
+
description?: TranslatedString;
|
|
98
|
+
clrType: string;
|
|
99
|
+
alias?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Template string with {PropertyName} placeholders for building a formatted display value.
|
|
102
|
+
* Example: "{Street}, {PostalCode} {City}"
|
|
103
|
+
*/
|
|
104
|
+
displayFormat?: string;
|
|
105
|
+
/**
|
|
106
|
+
* (Fallback) Single attribute name to use as display value when displayFormat is not specified.
|
|
107
|
+
*/
|
|
108
|
+
displayAttribute?: string;
|
|
109
|
+
attributes: EntityAttributeDefinition[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface ValidationError {
|
|
113
|
+
attributeName: string;
|
|
114
|
+
errorMessage: TranslatedString;
|
|
115
|
+
ruleType: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface SparkQuery {
|
|
119
|
+
id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
description?: TranslatedString;
|
|
122
|
+
contextProperty: string;
|
|
123
|
+
alias?: string;
|
|
124
|
+
sortBy?: string;
|
|
125
|
+
sortDirection: string;
|
|
126
|
+
/** Optional RavenDB index name for queries using indexes */
|
|
127
|
+
indexName?: string;
|
|
128
|
+
/** When true, uses the projection type from [QueryType] attribute */
|
|
129
|
+
useProjection?: boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface ProgramUnit {
|
|
133
|
+
id: string;
|
|
134
|
+
name: TranslatedString;
|
|
135
|
+
icon?: string;
|
|
136
|
+
type: string;
|
|
137
|
+
queryId?: string;
|
|
138
|
+
persistentObjectId?: string;
|
|
139
|
+
order: number;
|
|
140
|
+
alias?: string;
|
|
141
|
+
}
|
|
142
|
+
interface ProgramUnitGroup {
|
|
143
|
+
id: string;
|
|
144
|
+
name: TranslatedString;
|
|
145
|
+
icon?: string;
|
|
146
|
+
order: number;
|
|
147
|
+
programUnits: ProgramUnit[];
|
|
148
|
+
}
|
|
149
|
+
interface ProgramUnitsConfiguration {
|
|
150
|
+
programUnitGroups: ProgramUnitGroup[];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare enum ELookupDisplayType {
|
|
154
|
+
Dropdown = 0,
|
|
155
|
+
Modal = 1
|
|
156
|
+
}
|
|
157
|
+
interface LookupReferenceListItem {
|
|
158
|
+
name: string;
|
|
159
|
+
isTransient: boolean;
|
|
160
|
+
valueCount: number;
|
|
161
|
+
displayType: ELookupDisplayType;
|
|
162
|
+
}
|
|
163
|
+
interface LookupReference {
|
|
164
|
+
name: string;
|
|
165
|
+
isTransient: boolean;
|
|
166
|
+
displayType: ELookupDisplayType;
|
|
167
|
+
values: LookupReferenceValue[];
|
|
168
|
+
}
|
|
169
|
+
interface LookupReferenceValue {
|
|
170
|
+
key: string;
|
|
171
|
+
values: TranslatedString;
|
|
172
|
+
isActive: boolean;
|
|
173
|
+
extra?: Record<string, unknown>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface RetryActionPayload {
|
|
177
|
+
type: 'retry-action';
|
|
178
|
+
step: number;
|
|
179
|
+
title: string;
|
|
180
|
+
message?: string;
|
|
181
|
+
options: string[];
|
|
182
|
+
defaultOption?: string;
|
|
183
|
+
persistentObject?: PersistentObject;
|
|
184
|
+
}
|
|
185
|
+
interface RetryActionResult {
|
|
186
|
+
step: number;
|
|
187
|
+
option: string;
|
|
188
|
+
persistentObject?: PersistentObject;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface EntityPermissions {
|
|
192
|
+
canCreate: boolean;
|
|
193
|
+
canEdit: boolean;
|
|
194
|
+
canDelete: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
interface CustomActionDefinition {
|
|
198
|
+
name: string;
|
|
199
|
+
displayName: TranslatedString;
|
|
200
|
+
icon?: string;
|
|
201
|
+
description?: string;
|
|
202
|
+
showedOn: string;
|
|
203
|
+
selectionRule?: string;
|
|
204
|
+
refreshOnCompleted: boolean;
|
|
205
|
+
confirmationMessageKey?: string;
|
|
206
|
+
offset: number;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface SparkConfig {
|
|
210
|
+
baseUrl: string;
|
|
211
|
+
}
|
|
212
|
+
declare const SPARK_CONFIG: InjectionToken<SparkConfig>;
|
|
213
|
+
declare const defaultSparkConfig: SparkConfig;
|
|
214
|
+
|
|
215
|
+
declare class SparkService {
|
|
216
|
+
private readonly config;
|
|
217
|
+
private readonly baseUrl;
|
|
218
|
+
private readonly http;
|
|
219
|
+
private readonly retryActionService;
|
|
220
|
+
getEntityTypes(): Promise<EntityType[]>;
|
|
221
|
+
getEntityType(id: string): Promise<EntityType>;
|
|
222
|
+
getEntityTypeByClrType(clrType: string): Promise<EntityType | undefined>;
|
|
223
|
+
getPermissions(entityTypeId: string): Promise<EntityPermissions>;
|
|
224
|
+
getQueries(): Promise<SparkQuery[]>;
|
|
225
|
+
getQuery(id: string): Promise<SparkQuery>;
|
|
226
|
+
getQueryByName(name: string): Promise<SparkQuery | undefined>;
|
|
227
|
+
executeQuery(queryId: string, sortBy?: string, sortDirection?: string): Promise<PersistentObject[]>;
|
|
228
|
+
executeQueryByName(queryName: string): Promise<PersistentObject[]>;
|
|
229
|
+
getProgramUnits(): Promise<ProgramUnitsConfiguration>;
|
|
230
|
+
list(type: string): Promise<PersistentObject[]>;
|
|
231
|
+
get(type: string, id: string): Promise<PersistentObject>;
|
|
232
|
+
create(type: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
233
|
+
update(type: string, id: string, data: Partial<PersistentObject>): Promise<PersistentObject>;
|
|
234
|
+
delete(type: string, id: string): Promise<void>;
|
|
235
|
+
getCustomActions(objectTypeId: string): Promise<CustomActionDefinition[]>;
|
|
236
|
+
executeCustomAction(objectTypeId: string, actionName: string, parent?: PersistentObject, selectedItems?: PersistentObject[]): Promise<void>;
|
|
237
|
+
getLookupReferences(): Promise<LookupReferenceListItem[]>;
|
|
238
|
+
getLookupReference(name: string): Promise<LookupReference>;
|
|
239
|
+
addLookupReferenceValue(name: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
240
|
+
updateLookupReferenceValue(name: string, key: string, value: LookupReferenceValue): Promise<LookupReferenceValue>;
|
|
241
|
+
deleteLookupReferenceValue(name: string, key: string): Promise<void>;
|
|
242
|
+
private postWithRetry;
|
|
243
|
+
private putWithRetry;
|
|
244
|
+
private deleteWithRetry;
|
|
245
|
+
private handleRetryError;
|
|
246
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkService, never>;
|
|
247
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkService>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
declare class SparkLanguageService {
|
|
251
|
+
private readonly http;
|
|
252
|
+
private readonly config;
|
|
253
|
+
private readonly baseUrl;
|
|
254
|
+
private readonly currentLang;
|
|
255
|
+
private readonly translationsMap;
|
|
256
|
+
readonly language: _angular_core.Signal<string>;
|
|
257
|
+
readonly languages: _angular_core.WritableSignal<Record<string, TranslatedString>>;
|
|
258
|
+
constructor();
|
|
259
|
+
private loadCulture;
|
|
260
|
+
private loadTranslations;
|
|
261
|
+
setLanguage(lang: string): void;
|
|
262
|
+
resolve(ts: TranslatedString | undefined): string;
|
|
263
|
+
t(key: string): string;
|
|
264
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkLanguageService, never>;
|
|
265
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkLanguageService>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
declare class RetryActionService {
|
|
269
|
+
private resolveRetry;
|
|
270
|
+
payload: _angular_core.WritableSignal<RetryActionPayload>;
|
|
271
|
+
show(payload: RetryActionPayload): Promise<RetryActionResult>;
|
|
272
|
+
respond(result: RetryActionResult): void;
|
|
273
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RetryActionService, never>;
|
|
274
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RetryActionService>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
interface SparkFieldTemplateContext {
|
|
278
|
+
$implicit: EntityAttributeDefinition;
|
|
279
|
+
formData: Record<string, any>;
|
|
280
|
+
value: any;
|
|
281
|
+
hasError: boolean;
|
|
282
|
+
errorMessage: TranslatedString | null;
|
|
283
|
+
}
|
|
284
|
+
declare class SparkFieldTemplateDirective {
|
|
285
|
+
template: TemplateRef<SparkFieldTemplateContext>;
|
|
286
|
+
name: _angular_core.InputSignal<string>;
|
|
287
|
+
constructor(template: TemplateRef<SparkFieldTemplateContext>);
|
|
288
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkFieldTemplateDirective, never>;
|
|
289
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SparkFieldTemplateDirective, "[sparkFieldTemplate]", never, { "name": { "alias": "sparkFieldTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
declare class SparkPoFormComponent {
|
|
293
|
+
private readonly sparkService;
|
|
294
|
+
private readonly translations;
|
|
295
|
+
fieldTemplates: QueryList<SparkFieldTemplateDirective>;
|
|
296
|
+
entityType: _angular_core.InputSignal<EntityType>;
|
|
297
|
+
formData: _angular_core.ModelSignal<Record<string, any>>;
|
|
298
|
+
validationErrors: _angular_core.InputSignal<ValidationError[]>;
|
|
299
|
+
showButtons: _angular_core.InputSignal<boolean>;
|
|
300
|
+
isSaving: _angular_core.InputSignal<boolean>;
|
|
301
|
+
externalFieldTemplates: _angular_core.InputSignal<SparkFieldTemplateDirective[]>;
|
|
302
|
+
save: _angular_core.OutputEmitterRef<void>;
|
|
303
|
+
cancel: _angular_core.OutputEmitterRef<void>;
|
|
304
|
+
colors: typeof Color;
|
|
305
|
+
referenceOptions: _angular_core.WritableSignal<Record<string, PersistentObject[]>>;
|
|
306
|
+
asDetailTypes: _angular_core.WritableSignal<Record<string, EntityType>>;
|
|
307
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
308
|
+
editingAsDetailAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
309
|
+
asDetailFormData: _angular_core.WritableSignal<Record<string, any>>;
|
|
310
|
+
showAsDetailModal: _angular_core.WritableSignal<boolean>;
|
|
311
|
+
editingArrayIndex: _angular_core.WritableSignal<number>;
|
|
312
|
+
asDetailPermissions: _angular_core.WritableSignal<Record<string, EntityPermissions>>;
|
|
313
|
+
asDetailReferenceOptions: _angular_core.WritableSignal<Record<string, Record<string, PersistentObject[]>>>;
|
|
314
|
+
editingReferenceAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
315
|
+
showReferenceModal: _angular_core.WritableSignal<boolean>;
|
|
316
|
+
referenceModalItems: _angular_core.WritableSignal<PersistentObject[]>;
|
|
317
|
+
referenceModalEntityType: _angular_core.WritableSignal<EntityType>;
|
|
318
|
+
referenceModalPagination: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
319
|
+
referenceModalSettings: DatatableSettings;
|
|
320
|
+
referenceSearchTerm: string;
|
|
321
|
+
editingLookupAttr: _angular_core.WritableSignal<EntityAttributeDefinition>;
|
|
322
|
+
showLookupModal: _angular_core.WritableSignal<boolean>;
|
|
323
|
+
lookupModalItems: _angular_core.WritableSignal<LookupReferenceValue[]>;
|
|
324
|
+
lookupSearchTerm: _angular_core.WritableSignal<string>;
|
|
325
|
+
ELookupDisplayType: typeof ELookupDisplayType;
|
|
326
|
+
editableAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
327
|
+
referenceVisibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
328
|
+
filteredLookupItems: _angular_core.Signal<LookupReferenceValue[]>;
|
|
329
|
+
getFieldTemplate(attr: EntityAttributeDefinition): TemplateRef<SparkFieldTemplateContext> | null;
|
|
330
|
+
getFieldTemplateContext(attr: EntityAttributeDefinition): SparkFieldTemplateContext;
|
|
331
|
+
constructor();
|
|
332
|
+
private toRecord;
|
|
333
|
+
loadReferenceOptions(): Promise<void>;
|
|
334
|
+
loadAsDetailTypes(): Promise<void>;
|
|
335
|
+
loadLookupReferenceOptions(): Promise<void>;
|
|
336
|
+
getReferenceOptions(attr: EntityAttributeDefinition): PersistentObject[];
|
|
337
|
+
getLookupOptions(attr: EntityAttributeDefinition): LookupReferenceValue[];
|
|
338
|
+
openLookupSelector(attr: EntityAttributeDefinition): void;
|
|
339
|
+
selectLookupItem(item: LookupReferenceValue): void;
|
|
340
|
+
closeLookupModal(): void;
|
|
341
|
+
hasError(attrName: string): boolean;
|
|
342
|
+
onFieldChange(): void;
|
|
343
|
+
onSave(): void;
|
|
344
|
+
onCancel(): void;
|
|
345
|
+
openAsDetailEditor(attr: EntityAttributeDefinition): void;
|
|
346
|
+
saveAsDetailObject(): void;
|
|
347
|
+
closeAsDetailModal(): void;
|
|
348
|
+
addInlineRow(attr: EntityAttributeDefinition): void;
|
|
349
|
+
addArrayItem(attr: EntityAttributeDefinition): void;
|
|
350
|
+
editArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
351
|
+
removeArrayItem(attr: EntityAttributeDefinition, index: number): void;
|
|
352
|
+
openReferenceSelector(attr: EntityAttributeDefinition): Promise<void>;
|
|
353
|
+
onReferenceSearchChange(): void;
|
|
354
|
+
applyReferenceFilter(): void;
|
|
355
|
+
clearReferenceSearch(): void;
|
|
356
|
+
selectReferenceItem(item: PersistentObject): void;
|
|
357
|
+
closeReferenceModal(): void;
|
|
358
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoFormComponent, never>;
|
|
359
|
+
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; }; "externalFieldTemplates": { "alias": "externalFieldTemplates"; "required": false; "isSignal": true; }; }, { "formData": "formDataChange"; "save": "save"; "cancel": "cancel"; }, ["fieldTemplates"], never, true, never>;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare class SparkPoCreateComponent {
|
|
363
|
+
private readonly route;
|
|
364
|
+
private readonly router;
|
|
365
|
+
private readonly sparkService;
|
|
366
|
+
fieldTemplates: QueryList<SparkFieldTemplateDirective>;
|
|
367
|
+
saved: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
368
|
+
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
369
|
+
colors: typeof Color;
|
|
370
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
371
|
+
type: _angular_core.WritableSignal<string>;
|
|
372
|
+
formData: _angular_core.WritableSignal<Record<string, any>>;
|
|
373
|
+
validationErrors: _angular_core.WritableSignal<ValidationError[]>;
|
|
374
|
+
isSaving: _angular_core.WritableSignal<boolean>;
|
|
375
|
+
generalErrors: _angular_core.Signal<ValidationError[]>;
|
|
376
|
+
constructor();
|
|
377
|
+
private onParamsChange;
|
|
378
|
+
initFormData(): void;
|
|
379
|
+
getEditableAttributes(): _mintplayer_ng_spark.EntityAttributeDefinition[];
|
|
380
|
+
onSave(): Promise<void>;
|
|
381
|
+
onCancel(): void;
|
|
382
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoCreateComponent, never>;
|
|
383
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoCreateComponent, "spark-po-create", never, {}, { "saved": "saved"; "cancelled": "cancelled"; }, ["fieldTemplates"], never, true, never>;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
declare class SparkPoEditComponent {
|
|
387
|
+
private readonly route;
|
|
388
|
+
private readonly router;
|
|
389
|
+
private readonly sparkService;
|
|
390
|
+
fieldTemplates: QueryList<SparkFieldTemplateDirective>;
|
|
391
|
+
saved: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
392
|
+
cancelled: _angular_core.OutputEmitterRef<void>;
|
|
393
|
+
colors: typeof Color;
|
|
394
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
395
|
+
item: _angular_core.WritableSignal<PersistentObject>;
|
|
396
|
+
type: string;
|
|
397
|
+
id: string;
|
|
398
|
+
formData: _angular_core.WritableSignal<Record<string, any>>;
|
|
399
|
+
validationErrors: _angular_core.WritableSignal<ValidationError[]>;
|
|
400
|
+
isSaving: _angular_core.WritableSignal<boolean>;
|
|
401
|
+
generalErrors: _angular_core.Signal<ValidationError[]>;
|
|
402
|
+
constructor();
|
|
403
|
+
private onParamsChange;
|
|
404
|
+
initFormData(): void;
|
|
405
|
+
getEditableAttributes(): _mintplayer_ng_spark.EntityAttributeDefinition[];
|
|
406
|
+
onSave(): Promise<void>;
|
|
407
|
+
onCancel(): void;
|
|
408
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoEditComponent, never>;
|
|
409
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkPoEditComponent, "spark-po-edit", never, {}, { "saved": "saved"; "cancelled": "cancelled"; }, ["fieldTemplates"], never, true, never>;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
interface SparkDetailFieldTemplateContext {
|
|
413
|
+
$implicit: EntityAttributeDefinition;
|
|
414
|
+
item: PersistentObject;
|
|
415
|
+
value: any;
|
|
416
|
+
}
|
|
417
|
+
declare class SparkDetailFieldTemplateDirective {
|
|
418
|
+
template: TemplateRef<SparkDetailFieldTemplateContext>;
|
|
419
|
+
name: _angular_core.InputSignal<string>;
|
|
420
|
+
constructor(template: TemplateRef<SparkDetailFieldTemplateContext>);
|
|
421
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkDetailFieldTemplateDirective, never>;
|
|
422
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SparkDetailFieldTemplateDirective, "[sparkDetailFieldTemplate]", never, { "name": { "alias": "sparkDetailFieldTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare class SparkPoDetailComponent {
|
|
426
|
+
private readonly route;
|
|
427
|
+
private readonly router;
|
|
428
|
+
private readonly sparkService;
|
|
429
|
+
private readonly lang;
|
|
430
|
+
detailFieldTemplates: QueryList<SparkDetailFieldTemplateDirective>;
|
|
431
|
+
showCustomActions: _angular_core.InputSignal<boolean>;
|
|
432
|
+
extraActionsTemplate: _angular_core.InputSignal<TemplateRef<void>>;
|
|
433
|
+
extraContentTemplate: _angular_core.InputSignal<TemplateRef<{
|
|
434
|
+
$implicit: PersistentObject;
|
|
435
|
+
entityType: EntityType;
|
|
436
|
+
}>>;
|
|
437
|
+
edited: _angular_core.OutputEmitterRef<void>;
|
|
438
|
+
deleted: _angular_core.OutputEmitterRef<void>;
|
|
439
|
+
customActionExecuted: _angular_core.OutputEmitterRef<{
|
|
440
|
+
action: CustomActionDefinition;
|
|
441
|
+
item: PersistentObject;
|
|
442
|
+
}>;
|
|
443
|
+
colors: typeof Color;
|
|
444
|
+
errorMessage: _angular_core.WritableSignal<string>;
|
|
445
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
446
|
+
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
447
|
+
item: _angular_core.WritableSignal<PersistentObject>;
|
|
448
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
449
|
+
asDetailTypes: _angular_core.WritableSignal<Record<string, EntityType>>;
|
|
450
|
+
asDetailReferenceOptions: _angular_core.WritableSignal<Record<string, Record<string, PersistentObject[]>>>;
|
|
451
|
+
type: string;
|
|
452
|
+
id: string;
|
|
453
|
+
canEdit: _angular_core.WritableSignal<boolean>;
|
|
454
|
+
canDelete: _angular_core.WritableSignal<boolean>;
|
|
455
|
+
customActions: _angular_core.WritableSignal<CustomActionDefinition[]>;
|
|
456
|
+
constructor();
|
|
457
|
+
private onParamsChange;
|
|
458
|
+
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
459
|
+
getDetailFieldTemplate(attr: EntityAttributeDefinition): TemplateRef<SparkDetailFieldTemplateContext> | null;
|
|
460
|
+
getDetailFieldContext(attr: EntityAttributeDefinition, item: PersistentObject): SparkDetailFieldTemplateContext;
|
|
461
|
+
private loadLookupReferenceOptions;
|
|
462
|
+
private loadAsDetailTypes;
|
|
463
|
+
onCustomAction(action: CustomActionDefinition): Promise<void>;
|
|
464
|
+
onEdit(): void;
|
|
465
|
+
onDelete(): Promise<void>;
|
|
466
|
+
onBack(): void;
|
|
467
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkPoDetailComponent, never>;
|
|
468
|
+
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"; }, ["detailFieldTemplates"], never, true, never>;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
interface SparkColumnTemplateContext {
|
|
472
|
+
$implicit: PersistentObject;
|
|
473
|
+
attr: EntityAttributeDefinition;
|
|
474
|
+
value: any;
|
|
475
|
+
}
|
|
476
|
+
declare class SparkColumnTemplateDirective {
|
|
477
|
+
template: TemplateRef<SparkColumnTemplateContext>;
|
|
478
|
+
name: _angular_core.InputSignal<string>;
|
|
479
|
+
constructor(template: TemplateRef<SparkColumnTemplateContext>);
|
|
480
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkColumnTemplateDirective, never>;
|
|
481
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SparkColumnTemplateDirective, "[sparkColumnTemplate]", never, { "name": { "alias": "sparkColumnTemplate"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
declare class SparkQueryListComponent {
|
|
485
|
+
private readonly route;
|
|
486
|
+
private readonly router;
|
|
487
|
+
private readonly sparkService;
|
|
488
|
+
columnTemplates: QueryList<SparkColumnTemplateDirective>;
|
|
489
|
+
extraActionsTemplate: _angular_core.InputSignal<TemplateRef<void>>;
|
|
490
|
+
rowClicked: _angular_core.OutputEmitterRef<PersistentObject>;
|
|
491
|
+
createClicked: _angular_core.OutputEmitterRef<void>;
|
|
492
|
+
colors: typeof Color;
|
|
493
|
+
errorMessage: _angular_core.WritableSignal<string>;
|
|
494
|
+
query: _angular_core.WritableSignal<SparkQuery>;
|
|
495
|
+
entityType: _angular_core.WritableSignal<EntityType>;
|
|
496
|
+
allEntityTypes: _angular_core.WritableSignal<EntityType[]>;
|
|
497
|
+
allItems: _angular_core.WritableSignal<PersistentObject[]>;
|
|
498
|
+
lookupReferenceOptions: _angular_core.WritableSignal<Record<string, LookupReference>>;
|
|
499
|
+
paginationData: _angular_core.WritableSignal<PaginationResponse<PersistentObject>>;
|
|
500
|
+
searchTerm: string;
|
|
501
|
+
canCreate: _angular_core.WritableSignal<boolean>;
|
|
502
|
+
settings: DatatableSettings;
|
|
503
|
+
private currentSortProperty;
|
|
504
|
+
private currentSortDirection;
|
|
505
|
+
constructor();
|
|
506
|
+
private onParamsChange;
|
|
507
|
+
private resolveEntityTypeForQuery;
|
|
508
|
+
private singularize;
|
|
509
|
+
loadItems(): Promise<void>;
|
|
510
|
+
onSettingsChange(): void;
|
|
511
|
+
onSearchChange(): void;
|
|
512
|
+
applyFilter(): void;
|
|
513
|
+
clearSearch(): void;
|
|
514
|
+
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
515
|
+
getColumnTemplate(attr: EntityAttributeDefinition): TemplateRef<SparkColumnTemplateContext> | null;
|
|
516
|
+
getColumnTemplateContext(item: PersistentObject, attr: EntityAttributeDefinition): SparkColumnTemplateContext;
|
|
517
|
+
private loadLookupReferenceOptions;
|
|
518
|
+
onRowClick(item: PersistentObject): void;
|
|
519
|
+
onCreate(): void;
|
|
520
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkQueryListComponent, never>;
|
|
521
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkQueryListComponent, "spark-query-list", never, { "extraActionsTemplate": { "alias": "extraActionsTemplate"; "required": false; "isSignal": true; }; }, { "rowClicked": "rowClicked"; "createClicked": "createClicked"; }, ["columnTemplates"], never, true, never>;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
declare class SparkRetryActionModalComponent {
|
|
525
|
+
protected readonly retryActionService: RetryActionService;
|
|
526
|
+
colors: typeof Color;
|
|
527
|
+
isOpen: _angular_core.Signal<boolean>;
|
|
528
|
+
onOption(option: string): void;
|
|
529
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkRetryActionModalComponent, never>;
|
|
530
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkRetryActionModalComponent, "spark-retry-action-modal", never, {}, {}, never, never, true, never>;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
declare class SparkIconComponent {
|
|
534
|
+
private registry;
|
|
535
|
+
name: _angular_core.InputSignal<string>;
|
|
536
|
+
iconHtml: _angular_core.Signal<_angular_platform_browser.SafeHtml>;
|
|
537
|
+
cssFallbackClass: _angular_core.Signal<string>;
|
|
538
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkIconComponent, never>;
|
|
539
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SparkIconComponent, "spark-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare class SparkIconRegistry {
|
|
543
|
+
private sanitizer;
|
|
544
|
+
private icons;
|
|
545
|
+
constructor();
|
|
546
|
+
register(name: string, svg: string): void;
|
|
547
|
+
get(name: string): SafeHtml | undefined;
|
|
548
|
+
has(name: string): boolean;
|
|
549
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SparkIconRegistry, never>;
|
|
550
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<SparkIconRegistry>;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
declare class TranslateKeyPipe implements PipeTransform {
|
|
554
|
+
private readonly lang;
|
|
555
|
+
transform(key: string): string;
|
|
556
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TranslateKeyPipe, never>;
|
|
557
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<TranslateKeyPipe, "t", true>;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
declare class ResolveTranslationPipe implements PipeTransform {
|
|
561
|
+
transform(value: TranslatedString | undefined, fallback?: string): string;
|
|
562
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResolveTranslationPipe, never>;
|
|
563
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ResolveTranslationPipe, "resolveTranslation", true>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare class InputTypePipe implements PipeTransform {
|
|
567
|
+
transform(dataType: string): string;
|
|
568
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InputTypePipe, never>;
|
|
569
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<InputTypePipe, "inputType", true>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare class AttributeValuePipe implements PipeTransform {
|
|
573
|
+
transform(attrName: string, item: PersistentObject | null, entityType: EntityType | null, lookupRefOptions: Record<string, LookupReference>, allEntityTypes: EntityType[]): any;
|
|
574
|
+
private formatAsDetailValue;
|
|
575
|
+
private resolveDisplayFormat;
|
|
576
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AttributeValuePipe, never>;
|
|
577
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AttributeValuePipe, "attributeValue", true>;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
declare class RawAttributeValuePipe implements PipeTransform {
|
|
581
|
+
transform(attrName: string, item: PersistentObject | null): any;
|
|
582
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RawAttributeValuePipe, never>;
|
|
583
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<RawAttributeValuePipe, "rawAttributeValue", true>;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
declare class ReferenceDisplayValuePipe implements PipeTransform {
|
|
587
|
+
private readonly lang;
|
|
588
|
+
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, referenceOptions: Record<string, PersistentObject[]>): string;
|
|
589
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceDisplayValuePipe, never>;
|
|
590
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceDisplayValuePipe, "referenceDisplayValue", true>;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
declare class ReferenceAttrValuePipe implements PipeTransform {
|
|
594
|
+
transform(item: PersistentObject, attrName: string): any;
|
|
595
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceAttrValuePipe, never>;
|
|
596
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceAttrValuePipe, "referenceAttrValue", true>;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
declare class ReferenceLinkRoutePipe implements PipeTransform {
|
|
600
|
+
transform(referenceClrType: string, referenceId: any, allEntityTypes: EntityType[]): string[] | null;
|
|
601
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ReferenceLinkRoutePipe, never>;
|
|
602
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ReferenceLinkRoutePipe, "referenceLinkRoute", true>;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare class RouterLinkPipe implements PipeTransform {
|
|
606
|
+
transform(unit: ProgramUnit): string[];
|
|
607
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RouterLinkPipe, never>;
|
|
608
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<RouterLinkPipe, "routerLink", true>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
declare class AsDetailTypePipe implements PipeTransform {
|
|
612
|
+
transform(attr: EntityAttributeDefinition, asDetailTypes: Record<string, EntityType>): EntityType | null;
|
|
613
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailTypePipe, never>;
|
|
614
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailTypePipe, "asDetailType", true>;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare class AsDetailColumnsPipe implements PipeTransform {
|
|
618
|
+
transform(attr: EntityAttributeDefinition, asDetailTypes: Record<string, EntityType>): EntityAttributeDefinition[];
|
|
619
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailColumnsPipe, never>;
|
|
620
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailColumnsPipe, "asDetailColumns", true>;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
declare class AsDetailCellValuePipe implements PipeTransform {
|
|
624
|
+
transform(row: Record<string, any>, parentAttr: EntityAttributeDefinition, col: EntityAttributeDefinition, asDetailRefOptions: Record<string, Record<string, PersistentObject[]>>): string;
|
|
625
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailCellValuePipe, never>;
|
|
626
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailCellValuePipe, "asDetailCellValue", true>;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare class AsDetailDisplayValuePipe implements PipeTransform {
|
|
630
|
+
private readonly lang;
|
|
631
|
+
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, asDetailTypes: Record<string, EntityType>): string;
|
|
632
|
+
private resolveDisplayFormat;
|
|
633
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsDetailDisplayValuePipe, never>;
|
|
634
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<AsDetailDisplayValuePipe, "asDetailDisplayValue", true>;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare class CanCreateDetailRowPipe implements PipeTransform {
|
|
638
|
+
transform(attr: EntityAttributeDefinition, permissions: Record<string, EntityPermissions>): boolean;
|
|
639
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanCreateDetailRowPipe, never>;
|
|
640
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CanCreateDetailRowPipe, "canCreateDetailRow", true>;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare class CanDeleteDetailRowPipe implements PipeTransform {
|
|
644
|
+
transform(attr: EntityAttributeDefinition, permissions: Record<string, EntityPermissions>): boolean;
|
|
645
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CanDeleteDetailRowPipe, never>;
|
|
646
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<CanDeleteDetailRowPipe, "canDeleteDetailRow", true>;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare class LookupDisplayTypePipe implements PipeTransform {
|
|
650
|
+
transform(attr: EntityAttributeDefinition, lookupRefOptions: Record<string, LookupReference>): ELookupDisplayType;
|
|
651
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupDisplayTypePipe, never>;
|
|
652
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupDisplayTypePipe, "lookupDisplayType", true>;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
declare class LookupDisplayValuePipe implements PipeTransform {
|
|
656
|
+
transform(attr: EntityAttributeDefinition, formData: Record<string, any>, lookupRefOptions: Record<string, LookupReference>): string;
|
|
657
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupDisplayValuePipe, never>;
|
|
658
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupDisplayValuePipe, "lookupDisplayValue", true>;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare class LookupOptionsPipe implements PipeTransform {
|
|
662
|
+
transform(attr: EntityAttributeDefinition, lookupRefOptions: Record<string, LookupReference>): LookupReferenceValue[];
|
|
663
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LookupOptionsPipe, never>;
|
|
664
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<LookupOptionsPipe, "lookupOptions", true>;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
declare class InlineRefOptionsPipe implements PipeTransform {
|
|
668
|
+
transform(parentAttr: EntityAttributeDefinition, col: EntityAttributeDefinition, asDetailRefOptions: Record<string, Record<string, PersistentObject[]>>): PersistentObject[];
|
|
669
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<InlineRefOptionsPipe, never>;
|
|
670
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<InlineRefOptionsPipe, "inlineRefOptions", true>;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
declare class ErrorForAttributePipe implements PipeTransform {
|
|
674
|
+
transform(attrName: string, validationErrors: ValidationError[]): string | null;
|
|
675
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ErrorForAttributePipe, never>;
|
|
676
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ErrorForAttributePipe, "errorForAttribute", true>;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
declare class IconNamePipe implements PipeTransform {
|
|
680
|
+
transform(value: string | undefined, fallback: string): string;
|
|
681
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<IconNamePipe, never>;
|
|
682
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<IconNamePipe, "iconName", true>;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare class ArrayValuePipe implements PipeTransform {
|
|
686
|
+
transform(attrName: string, item: PersistentObject | null): Record<string, any>[];
|
|
687
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ArrayValuePipe, never>;
|
|
688
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ArrayValuePipe, "arrayValue", true>;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
interface SparkRouteConfig {
|
|
692
|
+
queryList?: Route['loadComponent'];
|
|
693
|
+
poCreate?: Route['loadComponent'];
|
|
694
|
+
poEdit?: Route['loadComponent'];
|
|
695
|
+
poDetail?: Route['loadComponent'];
|
|
696
|
+
}
|
|
697
|
+
declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
698
|
+
|
|
699
|
+
declare function provideSpark(config?: Partial<SparkConfig>): Provider[];
|
|
700
|
+
|
|
701
|
+
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_CONFIG, ShowedOn, SparkColumnTemplateDirective, SparkDetailFieldTemplateDirective, SparkFieldTemplateDirective, SparkIconComponent, SparkIconRegistry, SparkLanguageService, SparkPoCreateComponent, SparkPoDetailComponent, SparkPoEditComponent, SparkPoFormComponent, SparkQueryListComponent, SparkRetryActionModalComponent, SparkService, TranslateKeyPipe, defaultSparkConfig, hasShowedOnFlag, provideSpark, resolveTranslation, sparkRoutes };
|
|
702
|
+
export type { CustomActionDefinition, EntityAttributeDefinition, EntityPermissions, EntityType, LookupReference, LookupReferenceListItem, LookupReferenceValue, PersistentObject, PersistentObjectAttribute, ProgramUnit, ProgramUnitGroup, ProgramUnitsConfiguration, RetryActionPayload, RetryActionResult, SparkColumnTemplateContext, SparkConfig, SparkDetailFieldTemplateContext, SparkFieldTemplateContext, SparkQuery, SparkRouteConfig, TranslatedString, ValidationError, ValidationRule };
|