@expeed/ngx-data-mapper 1.2.3 → 1.2.5

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.5",
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,13 @@ 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' | 'datepicker' | 'datetimepicker' | 'timepicker' | 'stepper' | 'checkbox' | 'toggle';
507
508
  interface EditorField {
508
509
  id: string;
509
510
  name: string;
510
- type: 'string' | 'number' | 'boolean' | 'date' | 'object' | 'array';
511
+ type: 'string' | 'number' | 'boolean' | 'date' | 'time' | 'object' | 'array';
512
+ format?: string;
513
+ displayType?: DisplayType;
511
514
  description?: string;
512
515
  required?: boolean;
513
516
  defaultValue?: string | number | boolean;
@@ -523,6 +526,7 @@ declare class SchemaEditorComponent {
523
526
  private hasUncommittedChildFields;
524
527
  showJsonToggle: boolean;
525
528
  showSchemaName: boolean;
529
+ showDisplayType: boolean;
526
530
  schemaChange: EventEmitter<JsonSchema>;
527
531
  save: EventEmitter<JsonSchema>;
528
532
  schemaName: _angular_core.WritableSignal<string>;
@@ -535,6 +539,36 @@ declare class SchemaEditorComponent {
535
539
  label: string;
536
540
  icon: string;
537
541
  }>;
542
+ stringDisplayTypes: Array<{
543
+ value: DisplayType;
544
+ label: string;
545
+ icon: string;
546
+ }>;
547
+ dateDisplayTypes: Array<{
548
+ value: DisplayType;
549
+ label: string;
550
+ icon: string;
551
+ }>;
552
+ timeDisplayTypes: Array<{
553
+ value: DisplayType;
554
+ label: string;
555
+ icon: string;
556
+ }>;
557
+ numberDisplayTypes: Array<{
558
+ value: DisplayType;
559
+ label: string;
560
+ icon: string;
561
+ }>;
562
+ booleanDisplayTypes: Array<{
563
+ value: DisplayType;
564
+ label: string;
565
+ icon: string;
566
+ }>;
567
+ getDisplayTypes(fieldType: string): Array<{
568
+ value: DisplayType;
569
+ label: string;
570
+ icon: string;
571
+ }>;
538
572
  private generateId;
539
573
  private cloneFields;
540
574
  getTypeIcon(type: string): string;
@@ -547,8 +581,10 @@ declare class SchemaEditorComponent {
547
581
  stopEdit(field: EditorField): void;
548
582
  onFieldNameChange(field: EditorField, event: Event): void;
549
583
  onFieldTypeChange(field: EditorField, type: string): void;
584
+ onDisplayTypeChange(field: EditorField, displayType: string): void;
550
585
  toggleRequired(field: EditorField): void;
551
586
  onDescriptionChange(field: EditorField, description: string): void;
587
+ onDescriptionBlur(): void;
552
588
  toggleValuesEditor(field: EditorField): void;
553
589
  addAllowedValue(field: EditorField, input: HTMLInputElement | Event): void;
554
590
  removeAllowedValue(field: EditorField, index: number): void;
@@ -583,7 +619,7 @@ declare class SchemaEditorComponent {
583
619
  formatJson(): void;
584
620
  copyJson(): void;
585
621
  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>;
622
+ 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
623
  }
588
624
 
589
625
  declare class TransformationPopoverComponent implements OnInit, OnChanges {