@snteam/amplify-angular-core 1.0.41 → 1.0.42

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,30 @@ 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
+ relationshipConfigs: RelationshipSelectionConfigWithId[];
1200
+ showAddRelationshipConfig: boolean;
1201
+ editingRelationshipConfig: RelationshipSelectionConfigWithId | null;
1202
+ relationshipConfigForm: FormGroup;
1203
+ availableModels: string[];
1204
+ availableFields: {
1205
+ name: string;
1206
+ label: string;
1207
+ type: string;
1208
+ }[];
1209
+ constructor();
1195
1210
  ngOnInit(): void;
1196
1211
  get outputs(): any;
1197
1212
  checkAvailableModels(): void;
@@ -1205,6 +1220,18 @@ declare class ConfigurationsComponent implements OnInit {
1205
1220
  private formatModelLabel;
1206
1221
  private formatFieldLabel;
1207
1222
  private mapFieldType;
1223
+ private loadAvailableModels;
1224
+ onRelationshipModelChange(event: any): void;
1225
+ private loadAvailableFields;
1226
+ private loadRelationshipConfigs;
1227
+ private saveRelationshipConfigsToStorage;
1228
+ saveRelationshipConfig(): void;
1229
+ editRelationshipConfig(config: RelationshipSelectionConfigWithId): void;
1230
+ deleteRelationshipConfig(config: RelationshipSelectionConfigWithId): void;
1231
+ private generateId;
1232
+ cancelRelationshipConfigEdit(): void;
1233
+ loadDefaultRelationshipConfigs(): void;
1234
+ clearAllRelationshipConfigs(): void;
1208
1235
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationsComponent, never>;
1209
1236
  static ɵcmp: i0.ɵɵComponentDeclaration<ConfigurationsComponent, "snteam-configurations", never, { "amplifyOutputs": { "alias": "amplifyOutputs"; "required": false; }; }, {}, never, never, true, never>;
1210
1237
  }
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.42",
4
4
  "description": "Angular 20 components for building dynamic forms and list views with AWS Amplify Data",
5
5
  "keywords": [
6
6
  "angular",