@snteam/amplify-angular-core 1.0.41 → 1.0.43

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/index.d.ts CHANGED
@@ -1183,15 +1183,31 @@ declare class ListViewComponent implements OnInit {
1183
1183
  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; }; "useRouter": { "alias": "useRouter"; "required": false; }; "showRowActions": { "alias": "showRowActions"; "required": false; }; "showDeleteAction": { "alias": "showDeleteAction"; "required": false; }; "customRowActions": { "alias": "customRowActions"; "required": false; }; }, { "itemClick": "itemClick"; "newClick": "newClick"; "itemsLoaded": "itemsLoaded"; "itemDeleted": "itemDeleted"; }, never, never, true, never>;
1184
1184
  }
1185
1185
 
1186
+ interface RelationshipSelectionConfigWithId extends RelationshipSelectionConfig {
1187
+ id: string;
1188
+ }
1186
1189
  declare class ConfigurationsComponent implements OnInit {
1187
1190
  amplifyOutputs?: any;
1188
1191
  private qcs;
1189
1192
  private ams;
1190
1193
  private snackBar;
1194
+ private fb;
1191
1195
  hasTableConfig: boolean;
1192
1196
  hasFormView: boolean;
1193
1197
  hasListView: boolean;
1194
1198
  hasFieldConfig: boolean;
1199
+ hasRelationshipConfig: boolean;
1200
+ relationshipConfigs: RelationshipSelectionConfigWithId[];
1201
+ showAddRelationshipConfig: boolean;
1202
+ editingRelationshipConfig: RelationshipSelectionConfigWithId | null;
1203
+ relationshipConfigForm: FormGroup;
1204
+ availableModels: string[];
1205
+ availableFields: {
1206
+ name: string;
1207
+ label: string;
1208
+ type: string;
1209
+ }[];
1210
+ constructor();
1195
1211
  ngOnInit(): void;
1196
1212
  get outputs(): any;
1197
1213
  checkAvailableModels(): void;
@@ -1205,6 +1221,22 @@ declare class ConfigurationsComponent implements OnInit {
1205
1221
  private formatModelLabel;
1206
1222
  private formatFieldLabel;
1207
1223
  private mapFieldType;
1224
+ private loadAvailableModels;
1225
+ onRelationshipModelChange(event: any): void;
1226
+ private loadAvailableFields;
1227
+ private loadRelationshipConfigs;
1228
+ private loadRelationshipConfigsFromLocalStorage;
1229
+ private saveRelationshipConfigsToStorage;
1230
+ private updateAmplifyModelService;
1231
+ saveRelationshipConfig(): Promise<void>;
1232
+ private createRelationshipConfig;
1233
+ private updateRelationshipConfig;
1234
+ editRelationshipConfig(config: RelationshipSelectionConfigWithId): void;
1235
+ deleteRelationshipConfig(config: RelationshipSelectionConfigWithId): Promise<void>;
1236
+ private generateId;
1237
+ cancelRelationshipConfigEdit(): void;
1238
+ loadDefaultRelationshipConfigs(): Promise<void>;
1239
+ clearAllRelationshipConfigs(): Promise<void>;
1208
1240
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationsComponent, never>;
1209
1241
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationsComponent, "snteam-configurations", never, { "amplifyOutputs": { "alias": "amplifyOutputs"; "required": false; }; }, {}, never, never, true, never>;
1210
1242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snteam/amplify-angular-core",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Angular 20 components for building dynamic forms and list views with AWS Amplify Data",
5
5
  "keywords": [
6
6
  "angular",