@expeed/ngx-data-mapper 1.2.3 → 1.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expeed/ngx-data-mapper",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Visual data mapping components for Angular - drag-and-drop field mapping with transformations, schema editor with JSON Schema export",
5
5
  "keywords": [
6
6
  "angular",
@@ -504,10 +504,12 @@ declare class DataMapperComponent implements AfterViewInit, OnDestroy {
504
504
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataMapperComponent, "data-mapper", never, { "sourceSchema": { "alias": "sourceSchema"; "required": false; }; "targetSchema": { "alias": "targetSchema"; "required": false; }; "sourceSchemaRef": { "alias": "sourceSchemaRef"; "required": false; }; "targetSchemaRef": { "alias": "targetSchemaRef"; "required": false; }; "sampleData": { "alias": "sampleData"; "required": false; }; }, { "mappingsChange": "mappingsChange"; }, never, never, true, never>;
505
505
  }
506
506
 
507
+ type DisplayType = 'textbox' | 'dropdown' | 'textarea' | 'richtext';
507
508
  interface EditorField {
508
509
  id: string;
509
510
  name: string;
510
511
  type: 'string' | 'number' | 'boolean' | 'date' | 'object' | 'array';
512
+ displayType?: DisplayType;
511
513
  description?: string;
512
514
  required?: boolean;
513
515
  defaultValue?: string | number | boolean;
@@ -523,6 +525,7 @@ declare class SchemaEditorComponent {
523
525
  private hasUncommittedChildFields;
524
526
  showJsonToggle: boolean;
525
527
  showSchemaName: boolean;
528
+ showDisplayType: boolean;
526
529
  schemaChange: EventEmitter<JsonSchema>;
527
530
  save: EventEmitter<JsonSchema>;
528
531
  schemaName: _angular_core.WritableSignal<string>;
@@ -535,6 +538,11 @@ declare class SchemaEditorComponent {
535
538
  label: string;
536
539
  icon: string;
537
540
  }>;
541
+ displayTypes: Array<{
542
+ value: DisplayType;
543
+ label: string;
544
+ icon: string;
545
+ }>;
538
546
  private generateId;
539
547
  private cloneFields;
540
548
  getTypeIcon(type: string): string;
@@ -547,8 +555,10 @@ declare class SchemaEditorComponent {
547
555
  stopEdit(field: EditorField): void;
548
556
  onFieldNameChange(field: EditorField, event: Event): void;
549
557
  onFieldTypeChange(field: EditorField, type: string): void;
558
+ onDisplayTypeChange(field: EditorField, displayType: string): void;
550
559
  toggleRequired(field: EditorField): void;
551
560
  onDescriptionChange(field: EditorField, description: string): void;
561
+ onDescriptionBlur(): void;
552
562
  toggleValuesEditor(field: EditorField): void;
553
563
  addAllowedValue(field: EditorField, input: HTMLInputElement | Event): void;
554
564
  removeAllowedValue(field: EditorField, index: number): void;
@@ -583,7 +593,7 @@ declare class SchemaEditorComponent {
583
593
  formatJson(): void;
584
594
  copyJson(): void;
585
595
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SchemaEditorComponent, never>;
586
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SchemaEditorComponent, "schema-editor", never, { "schema": { "alias": "schema"; "required": false; }; "showJsonToggle": { "alias": "showJsonToggle"; "required": false; }; "showSchemaName": { "alias": "showSchemaName"; "required": false; }; }, { "schemaChange": "schemaChange"; "save": "save"; }, never, never, true, never>;
596
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SchemaEditorComponent, "schema-editor", never, { "schema": { "alias": "schema"; "required": false; }; "showJsonToggle": { "alias": "showJsonToggle"; "required": false; }; "showSchemaName": { "alias": "showSchemaName"; "required": false; }; "showDisplayType": { "alias": "showDisplayType"; "required": false; }; }, { "schemaChange": "schemaChange"; "save": "save"; }, never, never, true, never>;
587
597
  }
588
598
 
589
599
  declare class TransformationPopoverComponent implements OnInit, OnChanges {