@datarailsshared/datarailsshared 1.4.107 → 1.4.109
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/bundles/datarailsshared-datarailsshared.umd.js +48 -27
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.109.tgz +0 -0
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.js +6 -4
- package/esm2015/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.js +3 -3
- package/esm2015/lib/dr-dialog/interfaces/dialog-data.js +3 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.js +21 -3
- package/fesm2015/datarailsshared-datarailsshared.js +47 -27
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.d.ts +3 -2
- package/lib/dr-dialog/interfaces/dialog-data.d.ts +8 -2
- package/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.d.ts +2 -0
- package/package.json +1 -1
- package/datarailsshared-datarailsshared-1.4.107.tgz +0 -0
|
@@ -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
|
-
|
|
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:
|
|
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;
|
|
@@ -13,6 +13,7 @@ export declare class DrDatePickerWithTimeframeComponent extends DrDatePickerComp
|
|
|
13
13
|
set dateFormatConfig(value: IDatePickerFormatConfig);
|
|
14
14
|
canSelectTimeframe: boolean;
|
|
15
15
|
set availableTimeframes(value: TimeframeOption[]);
|
|
16
|
+
paginationDebounce: any;
|
|
16
17
|
onChangeFormat: EventEmitter<string>;
|
|
17
18
|
readonly pagingSetup: {
|
|
18
19
|
year: (forward: any) => void;
|
|
@@ -22,6 +23,7 @@ export declare class DrDatePickerWithTimeframeComponent extends DrDatePickerComp
|
|
|
22
23
|
week: (forward: any) => void;
|
|
23
24
|
};
|
|
24
25
|
get displayedFormattedValue(): string;
|
|
26
|
+
private onChangeDebounced$;
|
|
25
27
|
constructor(cdr: ChangeDetectorRef, dateAdapter: DateAdapter<any>, datePickerService: DrDatePickerService);
|
|
26
28
|
ngOnInit(): void;
|
|
27
29
|
pagingClicked(forward: boolean): void;
|
package/package.json
CHANGED
|
Binary file
|