@epam/uui 6.0.1-beta.3 → 6.1.1-beta.0
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/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +2 -2
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/datePickers/helpers.d.ts +2 -2
- package/components/datePickers/helpers.d.ts.map +1 -1
- package/components/filters/FilterDatePickerBody.d.ts +2 -2
- package/components/filters/FilterDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterDatePickerBodyFooter.d.ts +5 -0
- package/components/filters/FilterDatePickerBodyFooter.d.ts.map +1 -0
- package/components/filters/FilterRangeDatePickerBody.d.ts +2 -2
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBodyFooter.d.ts +5 -0
- package/components/filters/FilterRangeDatePickerBodyFooter.d.ts.map +1 -0
- package/components/filters/index.d.ts +2 -0
- package/components/filters/index.d.ts.map +1 -1
- package/index.esm.js +159 -128
- package/index.esm.js.map +1 -1
- package/index.js +160 -127
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/stats.html +1 -1
- package/styles.css +1015 -997
- package/styles.css.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAGvE,OAAO,KAAK,EAAE,oBAAoB,IAAI,wBAAwB,EAAqB,SAAS,EAAkD,MAAM,gBAAgB,CAAC;AAYrK,MAAM,WAAW,2BAA2B;CAAG;AAE/C,KAAK,mBAAmB,GAAG;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB,EAAE,SAAS,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;CAAG;AAEtI,iBAAS,wBAAwB,CAAC,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiC,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAGvE,OAAO,KAAK,EAAE,oBAAoB,IAAI,wBAAwB,EAAqB,SAAS,EAAkD,MAAM,gBAAgB,CAAC;AAYrK,MAAM,WAAW,2BAA2B;CAAG;AAE/C,KAAK,mBAAmB,GAAG;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB,EAAE,SAAS,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;CAAG;AAEtI,iBAAS,wBAAwB,CAAC,KAAK,EAAE,oBAAoB,EAAE,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,OAAO,CAiIhH;AAED,eAAO,MAAM,eAAe,UAChB,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,MAAM,YAAY,CAAC,WAAW,CAAC,CAAA;CAAE,KAAK,WAAW,+BAA+B,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IControlled, RangeDatePickerPresets, RangeDatePickerInputType, RangeDatePickerValue } from '@epam/uui-core';
|
|
2
|
+
import type { IControlled, RangeDatePickerPresets, RangeDatePickerInputType, RangeDatePickerValue, RangeDatePickerProps } from '@epam/uui-core';
|
|
3
3
|
import type { Dayjs } from '../../helpers/dayJsHelper';
|
|
4
4
|
import type { CommonDatePickerBodyProps } from './types';
|
|
5
5
|
export declare const uuiRangeDatePickerBody: {
|
|
@@ -22,7 +22,7 @@ export interface RangeDatePickerBodyValue<TSelection> {
|
|
|
22
22
|
*/
|
|
23
23
|
selectedDate: TSelection;
|
|
24
24
|
}
|
|
25
|
-
export interface RangeDatePickerBodyProps<T> extends CommonDatePickerBodyProps, IControlled<RangeDatePickerBodyValue<T>> {
|
|
25
|
+
export interface RangeDatePickerBodyProps<T> extends CommonDatePickerBodyProps, Pick<RangeDatePickerProps, 'preventEmptyToDate' | 'preventEmptyFromDate'>, IControlled<RangeDatePickerBodyValue<T>> {
|
|
26
26
|
renderFooter?(): React.ReactNode;
|
|
27
27
|
isHoliday?: (day: Dayjs) => boolean;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"RangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EACR,WAAW,EACX,sBAAsB,EAEtB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACvB,MAAM,gBAAgB,CAAC;AAMxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAE,yBAAyB,EAAY,MAAM,SAAS,CAAC;AAInE,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAiEpC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB,CAAC,UAAU;IAChD;;OAEG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;OAEG;IACH,YAAY,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,sBAAsB,CAAC,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAC/L,YAAY,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,mBAAmB,uHAAsC,CAAC"}
|
|
@@ -11,11 +11,11 @@ export declare const defaultRangeValue: RangeDatePickerValue;
|
|
|
11
11
|
export declare const getMonthOnOpen: (selectedDate: RangeDatePickerValue, focus: RangeDatePickerInputType) => Dayjs;
|
|
12
12
|
export declare const isValidDate: (input: string | null, format: string, filter?: (day: Dayjs) => boolean) => boolean | undefined;
|
|
13
13
|
export declare const isValidRange: (range: RangeDatePickerValue) => boolean;
|
|
14
|
-
export declare const getWithFrom: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
|
|
14
|
+
export declare const getWithFrom: (selectedDate: RangeDatePickerValue, newValue: string | null, preventEmpty: boolean) => {
|
|
15
15
|
from: string;
|
|
16
16
|
to: string;
|
|
17
17
|
};
|
|
18
|
-
export declare const getWithTo: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
|
|
18
|
+
export declare const getWithTo: (selectedDate: RangeDatePickerValue, newValue: string | null, preventEmpty: boolean) => {
|
|
19
19
|
from: string;
|
|
20
20
|
to: string;
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../components/datePickers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE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ASjG,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,IAAI,UAAU,MAAM,iBAAgB,KAAK,KAAK,OAAO,KAAG,OAAO,GAAG,SAG7G,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,oBAAoB,YAMvD,CAAC;AAEF,eAAO,MAAM,WAAW,iBAAkB,oBAAoB,YAAY,MAAM,GAAG,IAAI,gBAAgB,OAAO;;;CAc7G,CAAC;AAEF,eAAO,MAAM,SAAS,iBAAiB,oBAAoB,YAAY,MAAM,GAAG,IAAI,gBAAgB,OAAO;;;CAoB1G,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAW,oBAAoB,WAAW,MAAM,KAAG,oBAWrF,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,oBAAoB,WAAW,MAAM,KAAG,oBAYtF,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,GAAG,IAAI,WAAW,MAAM,KAAG,MAAM,GAAG,IAElF,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,GAAG,IAAI,WAAW,MAAM,KAAG,MAAM,GAAG,IAInF,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,KAAK,UAE9C,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAiB,KAAK,UAE9C,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAiB,KAAK,UAE7C,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAiB,KAAK,UAE7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,KAAK,UAElD,CAAC;AAEF,eAAO,MAAM,gBAAgB,gBAAiB,KAAK,UAElD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IDropdownBodyProps } from '@epam/uui-core';
|
|
2
|
+
import { IDropdownBodyProps, DatePickerFilterConfig } from '@epam/uui-core';
|
|
3
3
|
import { DatePickerProps } from '../datePickers';
|
|
4
4
|
/**
|
|
5
5
|
* Represents the properties of the FiterDatePicker
|
|
6
6
|
*/
|
|
7
|
-
export interface FilterDatePickerProps extends DatePickerProps, IDropdownBodyProps {
|
|
7
|
+
export interface FilterDatePickerProps extends Omit<DatePickerProps, 'renderFooter'>, IDropdownBodyProps, Pick<DatePickerFilterConfig<any>, 'renderFooter'> {
|
|
8
8
|
}
|
|
9
9
|
export declare function FilterDatePickerBody(props: FilterDatePickerProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=FilterDatePickerBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FilterDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAkD,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE5H,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SACnC,IAAI,CAAC,eAAe,EAAE,cAAc,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;CAAG;AAEnH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,qBAAqB,qBA8ChE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterDatePickerBodyFooterProps } from '@epam/uui-core';
|
|
3
|
+
import './FilterDatePickerBodyFooter.module.scss';
|
|
4
|
+
export declare function FilterDatePickerBodyFooter({ value, onValueChange }: FilterDatePickerBodyFooterProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=FilterDatePickerBodyFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterDatePickerBodyFooter.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterDatePickerBodyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,0CAA0C,CAAC;AAIlD,wBAAgB,0BAA0B,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,+BAA+B,qBAcnG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IDropdownBodyProps } from '@epam/uui-core';
|
|
2
|
+
import { IDropdownBodyProps, RangeDatePickerFilterConfig } from '@epam/uui-core';
|
|
3
3
|
import type { RangeDatePickerProps } from '../datePickers';
|
|
4
|
-
export interface FilterRangeDatePickerProps extends RangeDatePickerProps, IDropdownBodyProps {
|
|
4
|
+
export interface FilterRangeDatePickerProps extends Omit<RangeDatePickerProps, 'renderFooter'>, IDropdownBodyProps, Pick<RangeDatePickerFilterConfig<any>, 'renderFooter'> {
|
|
5
5
|
}
|
|
6
6
|
export declare function FilterRangeDatePickerBody(props: FilterRangeDatePickerProps): React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=FilterRangeDatePickerBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterRangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterRangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAiE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterRangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterRangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAiE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAGhJ,OAAO,KAAK,EACkB,oBAAoB,EACjD,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,0BAA2B,SACxC,IAAI,CAAC,oBAAoB,EAAE,cAAc,CAAC,EAAE,kBAAkB,EAAE,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,EAAE,cAAc,CAAC;CAAG;AAE7H,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,0BAA0B,qBAmF1E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FilterRangeDatePickerBodyFooterProps } from '@epam/uui-core';
|
|
3
|
+
import './FilterRangeDatePickerBodyFooter.module.scss';
|
|
4
|
+
export declare function FilterRangeDatePickerBodyFooter(props: FilterRangeDatePickerBodyFooterProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=FilterRangeDatePickerBodyFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterRangeDatePickerBodyFooter.d.ts","sourceRoot":"","sources":["../../../components/filters/FilterRangeDatePickerBodyFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,oCAAoC,EAAE,MAAM,gBAAgB,CAAC;AAItE,OAAO,+CAA+C,CAAC;AAIvD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,oCAAoC,qBAoC1F"}
|
|
@@ -3,4 +3,6 @@ export * from './FilterItemBody';
|
|
|
3
3
|
export * from './PresetPanel';
|
|
4
4
|
export * from './defaultPredicates';
|
|
5
5
|
export { FilterPickerBody } from './FilterPickerBody';
|
|
6
|
+
export { FilterDatePickerBodyFooter } from './FilterDatePickerBodyFooter';
|
|
7
|
+
export { FilterRangeDatePickerBodyFooter } from './FilterRangeDatePickerBodyFooter';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/filters/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
|