@devtron-labs/devtron-fe-common-lib 0.0.91-beta-12 → 0.0.91-beta-16
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/dist/Common/Constants.d.ts +2 -4
- package/dist/Shared/Components/DatePicker/DateTimePicker.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/MonthlySelect.d.ts +2 -2
- package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +1 -1
- package/dist/Shared/Components/DatePicker/constants.d.ts +21 -0
- package/dist/Shared/Components/DatePicker/types.d.ts +30 -24
- package/dist/{cssMode-14bf039d.js → cssMode-0aa611d3.js} +1 -1
- package/dist/{freemarker2-842eab20.js → freemarker2-391c0eb4.js} +1 -1
- package/dist/{handlebars-c978a9cd.js → handlebars-398b5334.js} +1 -1
- package/dist/{html-b85776aa.js → html-e19a591c.js} +1 -1
- package/dist/{htmlMode-63749eff.js → htmlMode-399cda86.js} +1 -1
- package/dist/{index-8d713386.js → index-f56d400d.js} +9361 -9280
- package/dist/index.js +371 -369
- package/dist/{javascript-e741f6bc.js → javascript-93f5e94b.js} +1 -1
- package/dist/{jsonMode-36e3a4a7.js → jsonMode-d2c5b7d5.js} +1 -1
- package/dist/{liquid-34e7d9f6.js → liquid-ec07a6ce.js} +1 -1
- package/dist/{mdx-ab008f06.js → mdx-51ce6e77.js} +1 -1
- package/dist/{python-b43a0488.js → python-e507c3fe.js} +1 -1
- package/dist/{razor-c7900164.js → razor-69adcbb0.js} +1 -1
- package/dist/{tsMode-4efa66d4.js → tsMode-4ca44c1f.js} +1 -1
- package/dist/{typescript-92dea82c.js → typescript-1f24ea2f.js} +1 -1
- package/dist/{xml-f2bfd4b0.js → xml-330736e7.js} +1 -1
- package/dist/{yaml-0873fd6a.js → yaml-124ad2b3.js} +1 -1
- package/package.json +1 -1
|
@@ -209,10 +209,6 @@ export declare enum FREQUENCY_ENUM {
|
|
|
209
209
|
YEARLY = "YEARLY",
|
|
210
210
|
WEEKLY_RANGE = "WEEKLY_RANGE"
|
|
211
211
|
}
|
|
212
|
-
export declare const TIME_FORMAT: {
|
|
213
|
-
DD_MMM_YYYY_HH_MM: string;
|
|
214
|
-
DD_MMM_YYYY: string;
|
|
215
|
-
};
|
|
216
212
|
export declare function getOrdinal(number: any): string;
|
|
217
213
|
export declare const TIME_HOUR_SUFFIX_FOR_12_HOUR_FORMAT: {
|
|
218
214
|
AM: string;
|
|
@@ -260,4 +256,6 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
260
256
|
TWELVE_HOURS_FORMAT: string;
|
|
261
257
|
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
|
|
262
258
|
TWELVE_HOURS_EXPORT_FORMAT: string;
|
|
259
|
+
DD_MMM_YYYY_HH_MM: string;
|
|
260
|
+
DD_MMM_YYYY: string;
|
|
263
261
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DateTimePickerProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const DateTimePicker: ({ date: dateObject, onChange, timePickerProps, disabled, id, label, required, hideTimeSelect, readOnly, }: DateTimePickerProps) => JSX.Element;
|
|
3
|
+
declare const DateTimePicker: ({ date: dateObject, onChange, timePickerProps, disabled, id, label, required, hideTimeSelect, readOnly, isOutsideRangeEnabled, startDate, dataTestIdForTime, dataTestidForDate, }: DateTimePickerProps) => JSX.Element;
|
|
4
4
|
export default DateTimePicker;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MonthlySelectProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const MonthlySelect: ({
|
|
3
|
+
export declare const MonthlySelect: ({ selectedMonthlyDate, onChange, dataTestId, }: MonthlySelectProps) => JSX.Element;
|
|
@@ -8,5 +8,5 @@ import { SingleDatePickerProps } from './types';
|
|
|
8
8
|
* @param isTodayBlocked Value to block today's date
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
declare const SingleDatePickerComponent: ({ date, handleDatesChange, readOnly, isTodayBlocked, displayFormat, }: SingleDatePickerProps) => JSX.Element;
|
|
11
|
+
declare const SingleDatePickerComponent: ({ date, handleDatesChange, readOnly, isTodayBlocked, displayFormat, dataTestId, }: SingleDatePickerProps) => JSX.Element;
|
|
12
12
|
export default SingleDatePickerComponent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TimeSelectProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const TimePickerSelect: ({ disabled,
|
|
3
|
+
export declare const TimePickerSelect: ({ disabled, onChange, timePickerProps, error, selectedTimeOption, }: TimeSelectProps) => JSX.Element;
|
|
@@ -120,3 +120,24 @@ export declare const TIME_OPTIONS_CONFIG: {
|
|
|
120
120
|
'11:00 PM': string;
|
|
121
121
|
'11:30 PM': string;
|
|
122
122
|
};
|
|
123
|
+
export declare const DATE_PICKER_PLACEHOLDER: {
|
|
124
|
+
DATE: string;
|
|
125
|
+
TIME: string;
|
|
126
|
+
MONTH: string;
|
|
127
|
+
DEFAULT_TIME: string;
|
|
128
|
+
DEFAULT_MONTHLY_DATE: string;
|
|
129
|
+
};
|
|
130
|
+
export declare const DATE_PICKER_IDS: {
|
|
131
|
+
DATE: string;
|
|
132
|
+
MONTH: string;
|
|
133
|
+
TIME: string;
|
|
134
|
+
};
|
|
135
|
+
export declare const reactSelectStyles: {
|
|
136
|
+
container: (base: any) => any;
|
|
137
|
+
control: (base: any, state: any) => any;
|
|
138
|
+
valueContainer: (base: any) => any;
|
|
139
|
+
input: (base: any) => any;
|
|
140
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
141
|
+
option: (base: any) => any;
|
|
142
|
+
menuList: (base: any) => any;
|
|
143
|
+
};
|
|
@@ -27,18 +27,22 @@ export interface SingleDatePickerProps {
|
|
|
27
27
|
* Display format for the date
|
|
28
28
|
*/
|
|
29
29
|
displayFormat?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Data test id for date picker
|
|
32
|
+
*/
|
|
33
|
+
dataTestId?: string;
|
|
30
34
|
}
|
|
31
|
-
export interface
|
|
35
|
+
export interface MonthlySelectProps extends Pick<SingleDatePickerProps, 'dataTestId'> {
|
|
32
36
|
/**
|
|
33
37
|
* Current selected date object
|
|
34
38
|
*
|
|
35
39
|
* @default 'new Date()'
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
selectedMonthlyDate: OptionType;
|
|
38
42
|
/**
|
|
39
|
-
*
|
|
43
|
+
* Onchange handle picker type
|
|
40
44
|
*/
|
|
41
|
-
|
|
45
|
+
onChange?: (event: any) => void;
|
|
42
46
|
}
|
|
43
47
|
export interface TimeSelectProps {
|
|
44
48
|
/**
|
|
@@ -67,34 +71,20 @@ export interface TimeSelectProps {
|
|
|
67
71
|
* Id for the component
|
|
68
72
|
*/
|
|
69
73
|
default12HourTime: OptionType;
|
|
70
|
-
}
|
|
71
|
-
export interface DateTimePickerProps {
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* @default 'new Date()'
|
|
75
|
+
* Data test id for time picker
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
dataTestIdForTime?: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* To hide time selector
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
selectedTimeOption: OptionType;
|
|
82
|
+
}
|
|
83
|
+
export interface DateTimePickerProps extends Pick<TimeSelectProps, 'date' | 'onChange' | 'timePickerProps' | 'error' | 'disabled' | 'dataTestIdForTime'> {
|
|
82
84
|
/**
|
|
83
85
|
* Props for the date picker
|
|
84
86
|
*/
|
|
85
87
|
datePickerProps?: any;
|
|
86
|
-
/**
|
|
87
|
-
* Props for the time picker
|
|
88
|
-
*/
|
|
89
|
-
timePickerProps?: SelectInstance;
|
|
90
|
-
/**
|
|
91
|
-
* Error message for the DateTime picker component
|
|
92
|
-
*/
|
|
93
|
-
error?: string;
|
|
94
|
-
/**
|
|
95
|
-
* If true, both the date and time picker are disabled
|
|
96
|
-
*/
|
|
97
|
-
disabled?: boolean;
|
|
98
88
|
/**
|
|
99
89
|
* Id for the component
|
|
100
90
|
*/
|
|
@@ -115,4 +105,20 @@ export interface DateTimePickerProps {
|
|
|
115
105
|
* To make the field read only
|
|
116
106
|
*/
|
|
117
107
|
readOnly?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* To block today's date
|
|
110
|
+
*/
|
|
111
|
+
isTodayBlocked?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* To enable outside range
|
|
114
|
+
*/
|
|
115
|
+
isOutsideRangeEnabled?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Start date for the date picker
|
|
118
|
+
*/
|
|
119
|
+
startDate?: Date;
|
|
120
|
+
/**
|
|
121
|
+
* Data test id for date picker
|
|
122
|
+
*/
|
|
123
|
+
dataTestidForDate?: string;
|
|
118
124
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-f56d400d.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F } from "./index-
|
|
1
|
+
import { m as F } from "./index-f56d400d.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-f56d400d.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-f56d400d.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-f56d400d.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|