@datarailsshared/datarailsshared 1.4.106 → 1.4.108

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.
@@ -1,19 +1,20 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { MatDialogRef } from '@angular/material/dialog';
4
- import { DataProp } from '../../interfaces/dialog-data';
4
+ import { DataProp, DIALOG_FIELD_TYPE } from '../../interfaces/dialog-data';
5
5
  import { BehaviorSubject, Subject } from 'rxjs';
6
6
  import { DialogService } from '../../services/dialog.service';
7
7
  export declare class DialogModalWrapperComponent implements OnInit, OnDestroy {
8
8
  dialogRef: MatDialogRef<DialogModalWrapperComponent>;
9
9
  private dialogService;
10
10
  dialogData: DataProp;
11
- class: import("../../interfaces/dialog-data").SizeModal;
11
+ readonly dialogFieldType: typeof DIALOG_FIELD_TYPE;
12
12
  form: FormGroup;
13
13
  saving$: BehaviorSubject<boolean>;
14
14
  isLoading: boolean;
15
15
  showServerErrorMessage: boolean;
16
16
  destroy$: Subject<any>;
17
+ class: import("../../interfaces/dialog-data").SizeModal;
17
18
  constructor(dialogRef: MatDialogRef<DialogModalWrapperComponent>, dialogService: DialogService, dialogData: DataProp);
18
19
  ngOnInit(): void;
19
20
  onAccept(): void;
@@ -1,5 +1,6 @@
1
1
  import { ComponentType } from '@angular/cdk/portal';
2
2
  import { Observable } from 'rxjs';
3
+ import { TimeframeOption } from '../../models/datePicker';
3
4
  export interface DialogData<T = any> {
4
5
  data: {
5
6
  title?: string;
@@ -69,7 +70,7 @@ export interface FooterTemplateData {
69
70
  }
70
71
  export interface ModalFormField {
71
72
  name: string;
72
- type: 'input' | 'select';
73
+ type: TDialogFieldType;
73
74
  label?: string;
74
75
  isLabelFullWidth?: boolean;
75
76
  items?: any[];
@@ -79,6 +80,7 @@ export interface ModalFormField {
79
80
  bindLabel?: string;
80
81
  bindValue?: string;
81
82
  validators?: any[];
83
+ datePickerFormat?: TimeframeOption;
82
84
  }
83
85
  export declare type SizeModal = 'small-modal' | 'medium-modal' | 'medium-large-modal' | 'large-modal' | 'xl-modal' | 'xl-custom-modal';
84
86
  export declare type DataProp<T = any> = DialogData<T>['data'];
@@ -87,6 +89,7 @@ export declare type DialogFooterButton = {
87
89
  label?: string;
88
90
  loadingLabel?: string;
89
91
  functions?: any;
92
+ isDisabled?: boolean;
90
93
  loading?: any;
91
94
  theme?: any;
92
95
  };
@@ -105,5 +108,8 @@ export declare enum DIALOG_BUTTON_LABEL {
105
108
  }
106
109
  export declare enum DIALOG_FIELD_TYPE {
107
110
  INPUT = "input",
108
- SELECT = "select"
111
+ SELECT = "select",
112
+ DATE_PICKER = "date_picker",
113
+ CHECKBOX = "checkbox"
109
114
  }
115
+ export declare type TDialogFieldType = DIALOG_FIELD_TYPE;
@@ -33,6 +33,7 @@ export declare class DrInputComponent implements AfterViewInit, ControlValueAcce
33
33
  listenFunc: (...params: any[]) => any;
34
34
  globalListenFunc: (...params: any[]) => any;
35
35
  searchHandler: EventEmitter<any>;
36
+ clearHandler: EventEmitter<any>;
36
37
  buttonHandler: EventEmitter<any>;
37
38
  prefixIcon: ElementRef;
38
39
  suffixIcon: ElementRef;
@@ -5,6 +5,7 @@ export declare class DrTabsComponent {
5
5
  withRadio: boolean;
6
6
  vertical: boolean;
7
7
  noBodyPadding: boolean;
8
+ noTabLabelsPadding: boolean;
8
9
  selectedTabChange: EventEmitter<any>;
9
10
  tabsContentList: QueryList<DrTabComponent>;
10
11
  constructor();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.4.106",
3
+ "version": "1.4.108",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",