@snteam/amplify-angular-core 1.0.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/README.md +95 -0
- package/fesm2022/snteam-amplify-angular-core.mjs +1764 -0
- package/fesm2022/snteam-amplify-angular-core.mjs.map +1 -0
- package/index.d.ts +406 -0
- package/package.json +52 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter, TemplateRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { Location } from '@angular/common';
|
|
4
|
+
import { ValidatorFn, FormGroup, FormBuilder, AbstractControl, FormControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
7
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
8
|
+
|
|
9
|
+
declare class AmplifyAngularCore {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AmplifyAngularCore, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AmplifyAngularCore, "snteam-amplify-angular-core", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class QuestionBase<T> {
|
|
15
|
+
model: string;
|
|
16
|
+
value: T | undefined;
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
required: boolean;
|
|
20
|
+
order: number;
|
|
21
|
+
controlType: string;
|
|
22
|
+
type: string;
|
|
23
|
+
options: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
tooltip?: string;
|
|
28
|
+
validators?: ValidatorFn[];
|
|
29
|
+
constructor(options?: {
|
|
30
|
+
model?: string;
|
|
31
|
+
value?: T;
|
|
32
|
+
key?: string;
|
|
33
|
+
label?: string;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
order?: number;
|
|
36
|
+
controlType?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
options?: {
|
|
39
|
+
key: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}[];
|
|
42
|
+
tooltip?: string;
|
|
43
|
+
validators?: ValidatorFn[];
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
declare class TimePickerQuestion<T> extends QuestionBase<T> {
|
|
47
|
+
controlType: string;
|
|
48
|
+
constructor(options?: any);
|
|
49
|
+
}
|
|
50
|
+
declare class DatePickerQuestion<T> extends QuestionBase<T> {
|
|
51
|
+
controlType: string;
|
|
52
|
+
min: Date;
|
|
53
|
+
max: Date;
|
|
54
|
+
startDate: Date;
|
|
55
|
+
constructor(options?: any);
|
|
56
|
+
}
|
|
57
|
+
declare class DateTimePickerQuestion<T> extends QuestionBase<T> {
|
|
58
|
+
controlType: string;
|
|
59
|
+
min: Date;
|
|
60
|
+
max: Date;
|
|
61
|
+
startDate: Date;
|
|
62
|
+
constructor(options?: any);
|
|
63
|
+
}
|
|
64
|
+
declare class SliderQuestion<T> extends QuestionBase<T> {
|
|
65
|
+
controlType: string;
|
|
66
|
+
min: number;
|
|
67
|
+
max: number;
|
|
68
|
+
constructor(options?: any);
|
|
69
|
+
}
|
|
70
|
+
declare class NumberQuestion<T> extends QuestionBase<T> {
|
|
71
|
+
controlType: string;
|
|
72
|
+
}
|
|
73
|
+
declare class TextboxQuestion<T> extends QuestionBase<T> {
|
|
74
|
+
controlType: string;
|
|
75
|
+
}
|
|
76
|
+
declare class EmailQuestion<T> extends QuestionBase<T> {
|
|
77
|
+
controlType: string;
|
|
78
|
+
}
|
|
79
|
+
declare class PhoneQuestion<T> extends QuestionBase<T> {
|
|
80
|
+
controlType: string;
|
|
81
|
+
}
|
|
82
|
+
declare class DropdownQuestion<T> extends QuestionBase<T> {
|
|
83
|
+
controlType: string;
|
|
84
|
+
}
|
|
85
|
+
declare class AsyncDropdownQuestion<T> extends QuestionBase<T> {
|
|
86
|
+
controlType: string;
|
|
87
|
+
targetModel: string;
|
|
88
|
+
multiple: boolean;
|
|
89
|
+
ddbKey: string;
|
|
90
|
+
constructor(options?: any);
|
|
91
|
+
}
|
|
92
|
+
declare class FormGroupQuestion<T> extends QuestionBase<T> {
|
|
93
|
+
controlType: string;
|
|
94
|
+
formGroup: FormGroup;
|
|
95
|
+
questions: QuestionBase<T>[] | null;
|
|
96
|
+
constructor(options?: any);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare class AmplifyModelService {
|
|
100
|
+
private client;
|
|
101
|
+
constructor();
|
|
102
|
+
/**
|
|
103
|
+
* Initialize the service with the Amplify client
|
|
104
|
+
* This should be called by the consuming application after Amplify.configure()
|
|
105
|
+
*/
|
|
106
|
+
initializeClient<T>(schema?: T): void;
|
|
107
|
+
/**
|
|
108
|
+
* Set the client directly (for consuming applications)
|
|
109
|
+
*/
|
|
110
|
+
setClient(client: any): void;
|
|
111
|
+
getMenuLinksFromModels(outputs: any, config?: {
|
|
112
|
+
skipModels?: string[];
|
|
113
|
+
}): any[];
|
|
114
|
+
/**
|
|
115
|
+
* TODO: Make this generate dynamically using refModel Names and types
|
|
116
|
+
* TODO: Bring the refModel generation in here.
|
|
117
|
+
* Edit this function with form fields...
|
|
118
|
+
*
|
|
119
|
+
* ... probably don't need this...
|
|
120
|
+
*/
|
|
121
|
+
getEmptyObjectForModel(model: string): any;
|
|
122
|
+
getRelationshipChoices(config: any, selectedOptions?: any[]): Observable<any> | null;
|
|
123
|
+
getRefChoices(config: any, itemId: string, selectedOptions?: any[]): Observable<any> | null;
|
|
124
|
+
deleteRelationship(relModel: string, relId: string): Promise<any>;
|
|
125
|
+
createRelationship(relModel: string, relItem: any): Promise<any> | null;
|
|
126
|
+
getRelationshipFilter(config: any, baseId?: string, removeIds?: string[]): any;
|
|
127
|
+
getAmplifySelectionSet(config: any, baseId: string): any;
|
|
128
|
+
setRelatedSub(config: any, baseId: string): Observable<any> | null;
|
|
129
|
+
/**
|
|
130
|
+
* @param config {object} - see dynamic-relationship-builder.component getDetailsForManyToMany() for example of building config
|
|
131
|
+
*/
|
|
132
|
+
getRelatedItems(config: any, baseId: string): Observable<any> | null;
|
|
133
|
+
createItemPromise(model: string, payload: any): Promise<any> | null;
|
|
134
|
+
updateItemForModel(model: string, payload: any): Promise<any> | null;
|
|
135
|
+
getItemForModel(model: string, id: string): Promise<any> | null;
|
|
136
|
+
listItemsForModel(model: string): Observable<any> | null;
|
|
137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AmplifyModelService, never>;
|
|
138
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AmplifyModelService>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
declare class QuestionControlService {
|
|
142
|
+
private ams;
|
|
143
|
+
private outputs;
|
|
144
|
+
constructor(ams: AmplifyModelService);
|
|
145
|
+
/**
|
|
146
|
+
* Initialize the service with Amplify outputs
|
|
147
|
+
* This should be called by the consuming application after Amplify.configure()
|
|
148
|
+
*/
|
|
149
|
+
initializeOutputs(outputs: any): void;
|
|
150
|
+
getFieldForFieldObj(fieldObj: any, model: any): QuestionBase<any> | null;
|
|
151
|
+
getLabelForFieldName(name: string): string;
|
|
152
|
+
getQuestionsForModelFields(model: string): QuestionBase<any>[];
|
|
153
|
+
/** nonModel, form section Methods **/
|
|
154
|
+
getNonModelQuestions(fieldObj: any, model: any): QuestionBase<any>[];
|
|
155
|
+
getEnumQuestion(fieldObj: any, model: any): DropdownQuestion<any> | null;
|
|
156
|
+
/** Reference Field Methods **/
|
|
157
|
+
getRefModel(fieldObj: any, callingModel: string): AsyncDropdownQuestion<any> | null;
|
|
158
|
+
private _addFormGroupQuestion;
|
|
159
|
+
private _addDropdownQuestion;
|
|
160
|
+
private _addRefDropdownQuestion;
|
|
161
|
+
private _addDatePickerQuestion;
|
|
162
|
+
private _addNumberQuestion;
|
|
163
|
+
private _addStringQuestion;
|
|
164
|
+
private _addEmailQuestion;
|
|
165
|
+
private _addPhoneQuestion;
|
|
166
|
+
toFormGroup(questions: (QuestionBase<any> | FormGroupQuestion<any>)[]): FormGroup;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QuestionControlService, never>;
|
|
168
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QuestionControlService>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class AmplifyFormBuilderService {
|
|
172
|
+
private fb;
|
|
173
|
+
skipFields: string[];
|
|
174
|
+
materialInputs: string[];
|
|
175
|
+
switchInputs: string[];
|
|
176
|
+
refInputs: string[];
|
|
177
|
+
formGroupInputs: string[];
|
|
178
|
+
datePickerInputs: string[];
|
|
179
|
+
private outputs;
|
|
180
|
+
constructor(fb: FormBuilder);
|
|
181
|
+
/**
|
|
182
|
+
* Initialize the service with Amplify outputs
|
|
183
|
+
* This should be called by the consuming application after Amplify.configure()
|
|
184
|
+
*/
|
|
185
|
+
initializeOutputs(outputs: any): void;
|
|
186
|
+
getInputTypeFromFieldType(type: string): string | undefined;
|
|
187
|
+
getMaterialInputs(): string[];
|
|
188
|
+
getSwitchInputs(): string[];
|
|
189
|
+
getRefInputs(): string[];
|
|
190
|
+
getErrorStrForControl(ctrl: AbstractControl, label?: string): string;
|
|
191
|
+
/** Shared Methods for FormControls **/
|
|
192
|
+
getPathFromRoot(searchKey: string, controls: any, pathArr?: string[]): string;
|
|
193
|
+
/** FormBuilder Methods **/
|
|
194
|
+
private _getFormGroupFromFieldsArr;
|
|
195
|
+
private _getGroupControlForNonModel;
|
|
196
|
+
private _getControlForField;
|
|
197
|
+
buildFormForModel(model: string): FormGroup;
|
|
198
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AmplifyFormBuilderService, never>;
|
|
199
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AmplifyFormBuilderService>;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Error when invalid control is dirty, touched, or submitted. */
|
|
203
|
+
declare class MyErrorStateMatcher implements ErrorStateMatcher {
|
|
204
|
+
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
205
|
+
}
|
|
206
|
+
declare class DynamicFormComponent implements OnInit {
|
|
207
|
+
private qcs;
|
|
208
|
+
private afb;
|
|
209
|
+
private location;
|
|
210
|
+
model: string;
|
|
211
|
+
itemId: string;
|
|
212
|
+
valueMap?: any;
|
|
213
|
+
hideRelationships: boolean;
|
|
214
|
+
hideSaveButton: boolean;
|
|
215
|
+
itemOutput: EventEmitter<any>;
|
|
216
|
+
submitOutput: EventEmitter<any>;
|
|
217
|
+
formLoaded: EventEmitter<FormGroup<any>>;
|
|
218
|
+
mdl: string;
|
|
219
|
+
id: string;
|
|
220
|
+
item: any;
|
|
221
|
+
payLoad: any;
|
|
222
|
+
form: any;
|
|
223
|
+
questions: (QuestionBase<any> | FormGroupQuestion<any>)[] | null;
|
|
224
|
+
materialInputs: string[];
|
|
225
|
+
switchInputs: string[];
|
|
226
|
+
formGroupInputs: string[];
|
|
227
|
+
refInputs: string[];
|
|
228
|
+
private ams;
|
|
229
|
+
private _snackBar;
|
|
230
|
+
constructor(qcs: QuestionControlService, afb: AmplifyFormBuilderService, location: Location);
|
|
231
|
+
ngOnInit(): void;
|
|
232
|
+
setFormBuilderForm(): void;
|
|
233
|
+
getItem(): Promise<void>;
|
|
234
|
+
setQuestionsAndForm(): void;
|
|
235
|
+
setQuestionValueFromItem(question: any, item?: any): void;
|
|
236
|
+
setQuestionValueFromValueMap(question: any, valueMap: any): void;
|
|
237
|
+
getValueForKey(obj: any, key: string): any | null;
|
|
238
|
+
setValueForKey(obj: any, key: string, val: any): void;
|
|
239
|
+
setRefQuestionValuesInPayload(questions?: any, payLoadObj?: any): void;
|
|
240
|
+
questionsIncludesRefType(questions?: any): boolean;
|
|
241
|
+
formHasRelationshipQuestions(): boolean;
|
|
242
|
+
onSubmit(): void;
|
|
243
|
+
updateItem(): Promise<void>;
|
|
244
|
+
getQuestionForKey(key: string, questions?: any): any;
|
|
245
|
+
prepPayloadObj(obj?: any): void;
|
|
246
|
+
createItem(): Promise<void>;
|
|
247
|
+
changePathIdParam(newParamValue: string): void;
|
|
248
|
+
isValid(question?: any, q?: any, q2?: any): any;
|
|
249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "snteam-dynamic-form", never, { "model": { "alias": "model"; "required": false; }; "itemId": { "alias": "itemId"; "required": false; }; "valueMap": { "alias": "valueMap"; "required": false; }; "hideRelationships": { "alias": "hideRelationships"; "required": false; }; "hideSaveButton": { "alias": "hideSaveButton"; "required": false; }; }, { "itemOutput": "itemOutput"; "submitOutput": "submitOutput"; "formLoaded": "formLoaded"; }, never, never, true, never>;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare class ListViewComponent implements OnInit {
|
|
254
|
+
private ams;
|
|
255
|
+
modelName: string;
|
|
256
|
+
customItemTemplate?: TemplateRef<any>;
|
|
257
|
+
hideNewButton: boolean;
|
|
258
|
+
title?: string;
|
|
259
|
+
itemClick: EventEmitter<any>;
|
|
260
|
+
newClick: EventEmitter<void>;
|
|
261
|
+
itemsLoaded: EventEmitter<any[]>;
|
|
262
|
+
itemsArr: any[];
|
|
263
|
+
loading: boolean;
|
|
264
|
+
error: string | null;
|
|
265
|
+
ngOnInit(): void;
|
|
266
|
+
listItems(): void;
|
|
267
|
+
onItemClick(item: any): void;
|
|
268
|
+
onNewClick(): void;
|
|
269
|
+
getDisplayText(item: any): string;
|
|
270
|
+
refresh(): void;
|
|
271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListViewComponent, never>;
|
|
272
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListViewComponent, "snteam-list-view", never, { "modelName": { "alias": "modelName"; "required": false; }; "customItemTemplate": { "alias": "customItemTemplate"; "required": false; }; "hideNewButton": { "alias": "hideNewButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "itemClick": "itemClick"; "newClick": "newClick"; "itemsLoaded": "itemsLoaded"; }, never, never, true, never>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare class DynamicFormQuestionComponent implements OnInit {
|
|
276
|
+
private rootFormGroup;
|
|
277
|
+
private ams;
|
|
278
|
+
question: any;
|
|
279
|
+
formGroup: FormGroup;
|
|
280
|
+
formControlPath: string;
|
|
281
|
+
materialInputs: string[];
|
|
282
|
+
switchInputs: string[];
|
|
283
|
+
refInputs: string[];
|
|
284
|
+
form: any;
|
|
285
|
+
ctrl: any;
|
|
286
|
+
items$: Observable<any>;
|
|
287
|
+
afbs: AmplifyFormBuilderService;
|
|
288
|
+
constructor(rootFormGroup: FormGroupDirective, ams: AmplifyModelService);
|
|
289
|
+
ngOnInit(): void;
|
|
290
|
+
showError(): string;
|
|
291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormQuestionComponent, never>;
|
|
292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormQuestionComponent, "snteam-dynamic-form-question", never, { "question": { "alias": "question"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare class DynamicFormGroupComponent {
|
|
296
|
+
private rootFormGroup;
|
|
297
|
+
private afbs;
|
|
298
|
+
formGroupName: string;
|
|
299
|
+
question: any;
|
|
300
|
+
formGroup: FormGroup;
|
|
301
|
+
materialInputs: string[];
|
|
302
|
+
switchInputs: string[];
|
|
303
|
+
refInputs: string[];
|
|
304
|
+
formGroupInputs: string[];
|
|
305
|
+
form: any;
|
|
306
|
+
ctrl: any;
|
|
307
|
+
constructor(rootFormGroup: FormGroupDirective, afbs: AmplifyFormBuilderService);
|
|
308
|
+
getControlName(c: AbstractControl): string | null;
|
|
309
|
+
getPathFromRoot(controls?: any, pathArr?: string[]): string;
|
|
310
|
+
ngOnInit(): void;
|
|
311
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormGroupComponent, never>;
|
|
312
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormGroupComponent, "snteam-dynamic-form-group", never, { "formGroupName": { "alias": "formGroupName"; "required": false; }; "question": { "alias": "question"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare class DynamicNestedFormQuestionComponent {
|
|
316
|
+
private rootFormGroup;
|
|
317
|
+
groupName: string;
|
|
318
|
+
question: any;
|
|
319
|
+
formGroup: FormGroup;
|
|
320
|
+
formControlPath: string;
|
|
321
|
+
form: any;
|
|
322
|
+
ctrl: any;
|
|
323
|
+
items$: Observable<any>;
|
|
324
|
+
afbs: AmplifyFormBuilderService;
|
|
325
|
+
constructor(rootFormGroup: FormGroupDirective);
|
|
326
|
+
ngOnInit(): void;
|
|
327
|
+
showError(): string;
|
|
328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicNestedFormQuestionComponent, never>;
|
|
329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicNestedFormQuestionComponent, "snteam-dynamic-nested-form-question", never, { "groupName": { "alias": "groupName"; "required": false; }; "question": { "alias": "question"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare class RecordRelationshipsComponent implements OnInit {
|
|
333
|
+
private ams;
|
|
334
|
+
model: string;
|
|
335
|
+
id?: string;
|
|
336
|
+
item?: any;
|
|
337
|
+
amplifyOutputs?: any;
|
|
338
|
+
constructor(ams: AmplifyModelService);
|
|
339
|
+
m2mDetailArrays: any[];
|
|
340
|
+
modelItem: any;
|
|
341
|
+
readonly dialog: MatDialog;
|
|
342
|
+
ngOnInit(): void;
|
|
343
|
+
/**
|
|
344
|
+
Customize this function to include all desired models from your file
|
|
345
|
+
*/
|
|
346
|
+
setModelItem(model?: string): void;
|
|
347
|
+
getFieldNameForAssociatedWithModel(relationshipModelName: string, associatedWith: string): any;
|
|
348
|
+
getDetailsForManyToMany(fieldObj: any, baseModelName: string): any;
|
|
349
|
+
deleteRelatedItem(item: any): void;
|
|
350
|
+
openDialog(rel: any): void;
|
|
351
|
+
handleDialogResult(result: any, rel: any): void;
|
|
352
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RecordRelationshipsComponent, never>;
|
|
353
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RecordRelationshipsComponent, "snteam-record-relationships", never, { "model": { "alias": "model"; "required": false; }; "id": { "alias": "id"; "required": false; }; "item": { "alias": "item"; "required": false; }; "amplifyOutputs": { "alias": "amplifyOutputs"; "required": false; }; }, {}, never, never, true, never>;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
declare class DynamicRelationshipBuilderComponent implements OnInit {
|
|
357
|
+
private ams;
|
|
358
|
+
m2m: any;
|
|
359
|
+
item: any;
|
|
360
|
+
model: string;
|
|
361
|
+
m2mItems: any;
|
|
362
|
+
constructor(ams: AmplifyModelService);
|
|
363
|
+
modelItem: any;
|
|
364
|
+
readonly dialog: MatDialog;
|
|
365
|
+
ngOnInit(): void;
|
|
366
|
+
perhapsAddM2MItem(item: any): Promise<void>;
|
|
367
|
+
setCreateSubscription(): void;
|
|
368
|
+
listItems(): void;
|
|
369
|
+
/**
|
|
370
|
+
Customize this function to include all desired models from your file
|
|
371
|
+
*/
|
|
372
|
+
setModelItem(model?: string): void;
|
|
373
|
+
deleteRelatedItem(item: any): Promise<void>;
|
|
374
|
+
openDialog(rel: any): void;
|
|
375
|
+
handleDialogResult(result: any, rel: any): void;
|
|
376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRelationshipBuilderComponent, never>;
|
|
377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicRelationshipBuilderComponent, "snteam-dynamic-relationship-builder", never, { "m2m": { "alias": "m2m"; "required": false; }; "item": { "alias": "item"; "required": false; }; "model": { "alias": "model"; "required": false; }; }, {}, never, never, true, never>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
interface DialogData {
|
|
381
|
+
modelItem: any;
|
|
382
|
+
rel: any;
|
|
383
|
+
selectedItems: any[];
|
|
384
|
+
}
|
|
385
|
+
declare class AddRelationshipDialogComponent implements OnInit {
|
|
386
|
+
readonly dialogRef: MatDialogRef<any, any>;
|
|
387
|
+
readonly data: DialogData;
|
|
388
|
+
readonly modelItem: i0.ModelSignal<any>;
|
|
389
|
+
private ams;
|
|
390
|
+
items$: Observable<any>;
|
|
391
|
+
ngOnInit(): void;
|
|
392
|
+
onNoClick(): void;
|
|
393
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddRelationshipDialogComponent, never>;
|
|
394
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddRelationshipDialogComponent, "snteam-add-relationship-dialog", never, { "modelItem": { "alias": "modelItem"; "required": false; "isSignal": true; }; }, { "modelItem": "modelItemChange"; }, never, never, true, never>;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare function phoneNumberValidator(): ValidatorFn;
|
|
398
|
+
|
|
399
|
+
declare class ValToTitlePipe implements PipeTransform {
|
|
400
|
+
transform(value: string): string;
|
|
401
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValToTitlePipe, never>;
|
|
402
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ValToTitlePipe, "valToTitle", true>;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export { AddRelationshipDialogComponent, AmplifyAngularCore, AmplifyFormBuilderService, AmplifyModelService, AsyncDropdownQuestion, DatePickerQuestion, DateTimePickerQuestion, DropdownQuestion, DynamicFormComponent, DynamicFormGroupComponent, DynamicFormQuestionComponent, DynamicNestedFormQuestionComponent, DynamicRelationshipBuilderComponent, EmailQuestion, FormGroupQuestion, ListViewComponent, MyErrorStateMatcher, NumberQuestion, PhoneQuestion, QuestionBase, QuestionControlService, RecordRelationshipsComponent, SliderQuestion, TextboxQuestion, TimePickerQuestion, ValToTitlePipe, phoneNumberValidator };
|
|
406
|
+
export type { DialogData };
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@snteam/amplify-angular-core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Angular 20 components for building dynamic forms and list views with AWS Amplify Data",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"amplify",
|
|
8
|
+
"aws",
|
|
9
|
+
"forms",
|
|
10
|
+
"dynamic-forms",
|
|
11
|
+
"list-view",
|
|
12
|
+
"components"
|
|
13
|
+
],
|
|
14
|
+
"author": "SNTeam",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/snteam/amplify-angular-core.git"
|
|
19
|
+
},
|
|
20
|
+
"homepage": "https://github.com/snteam/amplify-angular-core#readme",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/snteam/amplify-angular-core/issues"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@angular/common": "^20.3.0",
|
|
26
|
+
"@angular/core": "^20.3.0",
|
|
27
|
+
"@angular/forms": "^20.3.0",
|
|
28
|
+
"@angular/material": "^20.2.0",
|
|
29
|
+
"@angular/cdk": "^20.2.0",
|
|
30
|
+
"aws-amplify": "^6.0.0",
|
|
31
|
+
"@aws-amplify/ui-angular": "^6.0.0",
|
|
32
|
+
"rxjs": "~7.8.0"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"tslib": "^2.3.0"
|
|
36
|
+
},
|
|
37
|
+
"sideEffects": false,
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "restricted"
|
|
40
|
+
},
|
|
41
|
+
"module": "fesm2022/snteam-amplify-angular-core.mjs",
|
|
42
|
+
"typings": "index.d.ts",
|
|
43
|
+
"exports": {
|
|
44
|
+
"./package.json": {
|
|
45
|
+
"default": "./package.json"
|
|
46
|
+
},
|
|
47
|
+
".": {
|
|
48
|
+
"types": "./index.d.ts",
|
|
49
|
+
"default": "./fesm2022/snteam-amplify-angular-core.mjs"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|