@epam/uui 5.7.2 → 5.8.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/buttons/Button.d.ts +8 -5
- package/components/buttons/Button.d.ts.map +1 -1
- package/components/buttons/IconButton.d.ts +8 -4
- package/components/buttons/IconButton.d.ts.map +1 -1
- package/components/buttons/LinkButton.d.ts +6 -14
- package/components/buttons/LinkButton.d.ts.map +1 -1
- package/components/buttons/TabButton.d.ts +5 -13
- package/components/buttons/TabButton.d.ts.map +1 -1
- package/components/buttons/VerticalTabButton.d.ts +4 -4
- package/components/buttons/VerticalTabButton.d.ts.map +1 -1
- package/components/datePickers/Calendar.d.ts +3 -2
- package/components/datePickers/Calendar.d.ts.map +1 -1
- package/components/datePickers/CalendarPresets.d.ts +2 -1
- package/components/datePickers/CalendarPresets.d.ts.map +1 -1
- package/components/datePickers/DatePicker.d.ts +3 -10
- package/components/datePickers/DatePicker.d.ts.map +1 -1
- package/components/datePickers/DatePickerBody.d.ts +18 -10
- package/components/datePickers/DatePickerBody.d.ts.map +1 -1
- package/components/datePickers/DatePickerHeader.d.ts +12 -8
- package/components/datePickers/DatePickerHeader.d.ts.map +1 -1
- package/components/datePickers/RangeDatePicker.d.ts +3 -15
- package/components/datePickers/RangeDatePicker.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerBody.d.ts +13 -30
- package/components/datePickers/RangeDatePickerBody.d.ts.map +1 -1
- package/components/datePickers/RangeDatePickerInput.d.ts +43 -0
- package/components/datePickers/RangeDatePickerInput.d.ts.map +1 -0
- package/components/datePickers/helpers.d.ts +34 -0
- package/components/datePickers/helpers.d.ts.map +1 -0
- package/components/datePickers/index.d.ts +4 -1
- package/components/datePickers/index.d.ts.map +1 -1
- package/components/datePickers/types.d.ts +132 -0
- package/components/datePickers/types.d.ts.map +1 -0
- package/components/filters/FilterDatePickerBody.d.ts +7 -11
- package/components/filters/FilterDatePickerBody.d.ts.map +1 -1
- package/components/filters/FilterNumericBody.d.ts.map +1 -1
- package/components/filters/FilterPanelItemToggler.d.ts +1 -1
- package/components/filters/FilterPickerBody.d.ts +1 -1
- package/components/filters/FilterPickerBody.d.ts.map +1 -1
- package/components/filters/FilterRangeDatePickerBody.d.ts +4 -17
- package/components/filters/FilterRangeDatePickerBody.d.ts.map +1 -1
- package/components/filters/FiltersPanel.d.ts.map +1 -1
- package/components/filters/FiltersPanelItem.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetActionsDropdown.d.ts.map +1 -1
- package/components/filters/PresetPanel/PresetsPanel.d.ts.map +1 -1
- package/components/inputs/Checkbox.d.ts +6 -2
- package/components/inputs/Checkbox.d.ts.map +1 -1
- package/components/inputs/InputAddon.d.ts +2 -1
- package/components/inputs/InputAddon.d.ts.map +1 -1
- package/components/inputs/NumericInput.d.ts +8 -12
- package/components/inputs/NumericInput.d.ts.map +1 -1
- package/components/inputs/RadioInput.d.ts +3 -2
- package/components/inputs/RadioInput.d.ts.map +1 -1
- package/components/inputs/Slider.d.ts +2 -1
- package/components/inputs/Slider.d.ts.map +1 -1
- package/components/inputs/Switch.d.ts +6 -2
- package/components/inputs/Switch.d.ts.map +1 -1
- package/components/inputs/TextArea.d.ts +7 -11
- package/components/inputs/TextArea.d.ts.map +1 -1
- package/components/inputs/TextInput.d.ts +5 -9
- package/components/inputs/TextInput.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePicker.d.ts +6 -2
- package/components/inputs/timePicker/TimePicker.d.ts.map +1 -1
- package/components/inputs/timePicker/TimePickerBody.d.ts.map +1 -1
- package/components/layout/Accordion.d.ts +6 -2
- package/components/layout/Accordion.d.ts.map +1 -1
- package/components/layout/Blocker.d.ts +1 -1
- package/components/layout/Blocker.d.ts.map +1 -1
- package/components/layout/ControlGroup.d.ts +2 -1
- package/components/layout/ControlGroup.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexCell.d.ts +3 -2
- package/components/layout/FlexItems/FlexCell.d.ts.map +1 -1
- package/components/layout/FlexItems/FlexRow.d.ts +2 -6
- package/components/layout/FlexItems/FlexRow.d.ts.map +1 -1
- package/components/layout/FlexItems/Panel.d.ts +3 -2
- package/components/layout/FlexItems/Panel.d.ts.map +1 -1
- package/components/layout/LabeledInput.d.ts +11 -4
- package/components/layout/LabeledInput.d.ts.map +1 -1
- package/components/layout/ScrollBars.d.ts +2 -1
- package/components/layout/ScrollBars.d.ts.map +1 -1
- package/components/layout/index.d.ts +1 -0
- package/components/layout/index.d.ts.map +1 -1
- package/components/navigation/Anchor.d.ts +2 -1
- package/components/navigation/Anchor.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/Burger.d.ts +2 -4
- package/components/navigation/MainMenu/Burger/Burger.d.ts.map +1 -1
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts +5 -3
- package/components/navigation/MainMenu/Burger/BurgerButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenu.d.ts +3 -6
- package/components/navigation/MainMenu/MainMenu.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuButton.d.ts +1 -11
- package/components/navigation/MainMenu/MainMenuButton.d.ts.map +1 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts +0 -1
- package/components/navigation/MainMenu/MainMenuIcon.d.ts.map +1 -1
- package/components/overlays/Dropdown.d.ts +2 -1
- package/components/overlays/Dropdown.d.ts.map +1 -1
- package/components/overlays/DropdownContainer.d.ts +2 -1
- package/components/overlays/DropdownContainer.d.ts.map +1 -1
- package/components/overlays/DropdownMenu.d.ts +2 -2
- package/components/overlays/DropdownMenu.d.ts.map +1 -1
- package/components/overlays/Modals.d.ts +2 -2
- package/components/overlays/Modals.d.ts.map +1 -1
- package/components/overlays/NotificationCard.d.ts +2 -6
- package/components/overlays/NotificationCard.d.ts.map +1 -1
- package/components/overlays/Snackbar.d.ts +2 -8
- package/components/overlays/Snackbar.d.ts.map +1 -1
- package/components/overlays/Tooltip.d.ts +2 -1
- package/components/overlays/Tooltip.d.ts.map +1 -1
- package/components/pickers/PickerInput.d.ts +10 -3
- package/components/pickers/PickerInput.d.ts.map +1 -1
- package/components/pickers/PickerItem.d.ts +7 -10
- package/components/pickers/PickerItem.d.ts.map +1 -1
- package/components/pickers/PickerList.d.ts.map +1 -1
- package/components/pickers/PickerModal.d.ts.map +1 -1
- package/components/pickers/PickerToggler.d.ts +4 -4
- package/components/pickers/PickerToggler.d.ts.map +1 -1
- package/components/pickers/PickerTogglerTag.d.ts +10 -0
- package/components/pickers/PickerTogglerTag.d.ts.map +1 -0
- package/components/pickers/index.d.ts +1 -0
- package/components/pickers/index.d.ts.map +1 -1
- package/components/tables/ColumnHeaderDropdown/SortingPanel.d.ts.map +1 -1
- package/components/tables/DataTable.d.ts +13 -1
- package/components/tables/DataTable.d.ts.map +1 -1
- package/components/tables/DataTableCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderCell.d.ts.map +1 -1
- package/components/tables/DataTableHeaderRow.d.ts +3 -2
- package/components/tables/DataTableHeaderRow.d.ts.map +1 -1
- package/components/tables/DataTableRow.d.ts +3 -2
- package/components/tables/DataTableRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/ColumnRow.d.ts.map +1 -1
- package/components/tables/columnsConfigurationModal/PinIconButton.d.ts.map +1 -1
- package/components/tables/types.d.ts +20 -0
- package/components/tables/types.d.ts.map +1 -1
- package/components/typography/RichTextView.d.ts +6 -2
- package/components/typography/RichTextView.d.ts.map +1 -1
- package/components/typography/Text.d.ts +7 -3
- package/components/typography/Text.d.ts.map +1 -1
- package/components/widgets/AvatarStack.d.ts +2 -1
- package/components/widgets/AvatarStack.d.ts.map +1 -1
- package/components/widgets/Badge.d.ts +5 -13
- package/components/widgets/Badge.d.ts.map +1 -1
- package/components/widgets/ProgressBar.d.ts +4 -3
- package/components/widgets/ProgressBar.d.ts.map +1 -1
- package/components/widgets/Spinner.d.ts +2 -1
- package/components/widgets/Spinner.d.ts.map +1 -1
- package/components/widgets/Tag.d.ts +5 -13
- package/components/widgets/Tag.d.ts.map +1 -1
- package/helpers/dayJsHelper.d.ts +6 -0
- package/helpers/dayJsHelper.d.ts.map +1 -0
- package/i18n.d.ts.map +1 -1
- package/index.esm.js +1699 -1322
- package/index.esm.js.map +1 -1
- package/index.js +1690 -1308
- package/index.js.map +1 -1
- package/package.json +7 -7
- package/stats.html +32 -46
- package/styles.css +4576 -4696
- package/styles.css.map +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import * as uuiComponents from '@epam/uui-components';
|
|
3
|
+
import { Overwrite } from '@epam/uui-core';
|
|
2
4
|
import { ControlSize } from '../types';
|
|
3
5
|
type ButtonMods = {
|
|
4
6
|
/**
|
|
@@ -15,17 +17,18 @@ type ButtonMods = {
|
|
|
15
17
|
* Defines component color.
|
|
16
18
|
* @default 'primary'
|
|
17
19
|
*/
|
|
18
|
-
color?: 'accent' | 'primary' | 'critical' | 'secondary' | 'neutral';
|
|
20
|
+
color?: 'accent' | 'primary' | 'critical' | 'secondary' | 'neutral' | 'white';
|
|
19
21
|
};
|
|
22
|
+
export interface ButtonModsOverride {
|
|
23
|
+
}
|
|
20
24
|
/** Represents the 'Core properties' for the Button component. */
|
|
21
25
|
export type ButtonCoreProps = uuiComponents.ButtonProps;
|
|
22
26
|
/** Represents the props for a Button component. */
|
|
23
|
-
export type ButtonProps =
|
|
24
|
-
export declare const Button: (
|
|
27
|
+
export type ButtonProps = ButtonCoreProps & Overwrite<ButtonMods, ButtonModsOverride>;
|
|
28
|
+
export declare const Button: import("react").ComponentType<import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<uuiComponents.ClickableRawProps> & import("@epam/uui-core").IDropdownToggler & import("@epam/uui-core").IHasIcon & import("@epam/uui-core").IHasCaption & {
|
|
25
29
|
onClear?(e?: any): void;
|
|
26
30
|
clearIcon?: import("@epam/uui-core").Icon;
|
|
27
|
-
captionCX?: import("@epam/uui-core").ClassValue;
|
|
28
31
|
dropdownIcon?: import("@epam/uui-core").Icon;
|
|
29
|
-
} & ButtonMods
|
|
32
|
+
} & Omit<ButtonMods, never> & ButtonModsOverride & import("react").RefAttributes<any>>;
|
|
30
33
|
export {};
|
|
31
34
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/buttons/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../components/buttons/Button.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAY,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMvC,KAAK,UAAU,GAAG;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAC9C;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;CACjF,CAAC;AACF,MAAM,WAAW,kBAAkB;CAAG;AAEtC,iEAAiE;AACjE,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC;AAExD,mDAAmD;AACnD,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,SAAS,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAAC;AAYtF,eAAO,MAAM,MAAM;;;;sFASlB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import * as uuiComponents from '@epam/uui-components';
|
|
3
|
+
import { Overwrite } from '@epam/uui-core';
|
|
2
4
|
interface IconButtonMods {
|
|
3
5
|
/**
|
|
4
6
|
* Defines component color.
|
|
5
7
|
* @default 'neutral'
|
|
6
8
|
*/
|
|
7
|
-
color?: 'info' | 'success' | '
|
|
9
|
+
color?: 'info' | 'success' | 'error' | 'primary' | 'accent' | 'critical' | 'warning' | 'secondary' | 'neutral' | 'white';
|
|
8
10
|
}
|
|
9
11
|
/** Represents the Core properties of the IconButton component. */
|
|
10
12
|
export type IconButtonCoreProps = Omit<uuiComponents.IconButtonProps, 'size'> & {
|
|
@@ -13,13 +15,15 @@ export type IconButtonCoreProps = Omit<uuiComponents.IconButtonProps, 'size'> &
|
|
|
13
15
|
*/
|
|
14
16
|
size?: '18' | '24' | '30' | '36';
|
|
15
17
|
};
|
|
18
|
+
export interface IconButtonModsOverride {
|
|
19
|
+
}
|
|
16
20
|
/** Represents the properties of the IconButton component. */
|
|
17
|
-
export type IconButtonProps = IconButtonCoreProps & IconButtonMods
|
|
18
|
-
export declare const IconButton: (
|
|
21
|
+
export type IconButtonProps = IconButtonCoreProps & Overwrite<IconButtonMods, IconButtonModsOverride>;
|
|
22
|
+
export declare const IconButton: import("react").ComponentType<Omit<uuiComponents.IconButtonProps, "size"> & {
|
|
19
23
|
/**
|
|
20
24
|
* Defines component size.
|
|
21
25
|
*/
|
|
22
26
|
size?: '18' | '24' | '30' | '36';
|
|
23
|
-
} & IconButtonMods
|
|
27
|
+
} & Omit<IconButtonMods, never> & IconButtonModsOverride & import("react").RefAttributes<any>>;
|
|
24
28
|
export {};
|
|
25
29
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/IconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAY,SAAS,EAAa,MAAM,gBAAgB,CAAC;AAIhE,UAAU,cAAc;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,CAAC;CAC5H;AAED,kEAAkE;AAClE,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,aAAa,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG;IAC5E;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,WAAW,sBAAsB;CAAG;AAE1C,6DAA6D;AAC7D,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,SAAS,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;AAMtG,eAAO,MAAM,UAAU;IAfnB;;OAEG;WACI,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;8FA8BnC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Icon, IDropdownToggler, IHasCaption, IHasIcon, Overwrite } from '@epam/uui-core';
|
|
3
3
|
import { ClickableComponentProps } from '@epam/uui-components';
|
|
4
4
|
import * as types from '../types';
|
|
5
5
|
interface LinkButtonMods {
|
|
@@ -7,15 +7,10 @@ interface LinkButtonMods {
|
|
|
7
7
|
* Defines component color.
|
|
8
8
|
* @default 'primary'
|
|
9
9
|
*/
|
|
10
|
-
color?: 'primary' | 'secondary' | 'contrast';
|
|
10
|
+
color?: 'primary' | 'secondary' | 'accent' | 'critical' | 'white' | 'contrast';
|
|
11
11
|
}
|
|
12
12
|
/** Represents the Core properties of the LinkButton component. */
|
|
13
13
|
export type LinkButtonCoreProps = ClickableComponentProps & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
14
|
-
/**
|
|
15
|
-
* CSS classes to put on the caption
|
|
16
|
-
* @deprecated
|
|
17
|
-
* */
|
|
18
|
-
captionCX?: CX;
|
|
19
14
|
/** Icon for drop-down toggler */
|
|
20
15
|
dropdownIcon?: Icon;
|
|
21
16
|
/**
|
|
@@ -24,14 +19,11 @@ export type LinkButtonCoreProps = ClickableComponentProps & IDropdownToggler & I
|
|
|
24
19
|
*/
|
|
25
20
|
size?: types.ControlSize | '42';
|
|
26
21
|
};
|
|
22
|
+
export interface LinkButtonModsOverride {
|
|
23
|
+
}
|
|
27
24
|
/** Represents the properties of the LinkButton component. */
|
|
28
|
-
export type LinkButtonProps = LinkButtonCoreProps & LinkButtonMods
|
|
25
|
+
export type LinkButtonProps = LinkButtonCoreProps & Overwrite<LinkButtonMods, LinkButtonModsOverride>;
|
|
29
26
|
export declare const LinkButton: React.ForwardRefExoticComponent<import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<import("@epam/uui-components").ClickableRawProps> & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
30
|
-
/**
|
|
31
|
-
* CSS classes to put on the caption
|
|
32
|
-
* @deprecated
|
|
33
|
-
* */
|
|
34
|
-
captionCX?: CX;
|
|
35
27
|
/** Icon for drop-down toggler */
|
|
36
28
|
dropdownIcon?: Icon;
|
|
37
29
|
/**
|
|
@@ -39,6 +31,6 @@ export declare const LinkButton: React.ForwardRefExoticComponent<import("@epam/u
|
|
|
39
31
|
* @default '36'
|
|
40
32
|
*/
|
|
41
33
|
size?: types.ControlSize | '42';
|
|
42
|
-
} & LinkButtonMods & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
34
|
+
} & Omit<LinkButtonMods, never> & LinkButtonModsOverride & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
43
35
|
export {};
|
|
44
36
|
//# sourceMappingURL=LinkButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/LinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAa,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAc,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjH,OAAO,EAAa,uBAAuB,EAAiB,MAAM,sBAAsB,CAAC;AACzF,OAAO,KAAK,KAAK,MAAM,UAAU,CAAC;AAQlC,UAAU,cAAc;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;CAClF;AAED,kEAAkE;AAClE,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,WAAW,GAAG;IACpG,iCAAiC;IACjC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,sBAAsB;CAAG;AAE1C,6DAA6D;AAC7D,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,SAAS,CAAC,cAAc,EAAE,sBAAsB,CAAC,CAAC;AAYtG,eAAO,MAAM,UAAU;IAxBnB,iCAAiC;mBAClB,IAAI;IACnB;;;OAGG;WACI,MAAM,WAAW,GAAG,IAAI;sHA2DjC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Icon, IDropdownToggler, IHasCaption, IHasIcon, Overwrite } from '@epam/uui-core';
|
|
3
3
|
import { ClickableComponentProps } from '@epam/uui-components';
|
|
4
4
|
type TabButtonMods = {
|
|
5
5
|
/**
|
|
@@ -10,32 +10,24 @@ type TabButtonMods = {
|
|
|
10
10
|
/** Defines is the component showing Notify */
|
|
11
11
|
withNotify?: boolean;
|
|
12
12
|
};
|
|
13
|
+
export interface TabButtonModsOverride {
|
|
14
|
+
}
|
|
13
15
|
/** Represents the properties of a TabButton component. */
|
|
14
|
-
export type TabButtonProps = TabButtonMods & ClickableComponentProps & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
16
|
+
export type TabButtonProps = Overwrite<TabButtonMods, TabButtonModsOverride> & ClickableComponentProps & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
15
17
|
/** Call to clear toggler value */
|
|
16
18
|
onClear?(e?: any): void;
|
|
17
19
|
/** Icon for clear value button (usually cross) */
|
|
18
20
|
clearIcon?: Icon;
|
|
19
|
-
/**
|
|
20
|
-
* CSS classes to put on the caption
|
|
21
|
-
* @deprecated
|
|
22
|
-
* */
|
|
23
|
-
captionCX?: CX;
|
|
24
21
|
/** Icon for drop-down toggler */
|
|
25
22
|
dropdownIcon?: Icon;
|
|
26
23
|
/** Count value to be placed in component */
|
|
27
24
|
count?: React.ReactNode;
|
|
28
25
|
};
|
|
29
|
-
export declare const TabButton: React.ForwardRefExoticComponent<TabButtonMods & import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<import("@epam/uui-components").ClickableRawProps> & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
26
|
+
export declare const TabButton: React.ForwardRefExoticComponent<Omit<TabButtonMods, never> & TabButtonModsOverride & import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<import("@epam/uui-components").ClickableRawProps> & IDropdownToggler & IHasIcon & IHasCaption & {
|
|
30
27
|
/** Call to clear toggler value */
|
|
31
28
|
onClear?(e?: any): void;
|
|
32
29
|
/** Icon for clear value button (usually cross) */
|
|
33
30
|
clearIcon?: Icon;
|
|
34
|
-
/**
|
|
35
|
-
* CSS classes to put on the caption
|
|
36
|
-
* @deprecated
|
|
37
|
-
* */
|
|
38
|
-
captionCX?: CX;
|
|
39
31
|
/** Icon for drop-down toggler */
|
|
40
32
|
dropdownIcon?: Icon;
|
|
41
33
|
/** Count value to be placed in component */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/TabButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"TabButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/TabButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAA0B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtH,OAAO,EAAa,uBAAuB,EAAiB,MAAM,sBAAsB,CAAC;AAMzF,KAAK,aAAa,GAAG;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,WAAW,qBAAqB;CAAG;AAEzC,0DAA0D;AAC1D,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,qBAAqB,CAAC,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,QAAQ,GAAG,WAAW,GAAG;IACjJ,kCAAkC;IAClC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACxB,kDAAkD;IAClD,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,iCAAiC;IACjC,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS;IAVlB,kCAAkC;iBACrB,GAAG,GAAG,IAAI;IACvB,kDAAkD;gBACtC,IAAI;IAChB,iCAAiC;mBAClB,IAAI;IACnB,4CAA4C;YACpC,MAAM,SAAS;iFA0DzB,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { TabButtonProps } from './TabButton';
|
|
2
3
|
/** Represents the properties of a VerticalTabButton component. */
|
|
3
4
|
export type VerticalTabButtonProps = TabButtonProps;
|
|
4
|
-
export declare const VerticalTabButton: (
|
|
5
|
+
export declare const VerticalTabButton: import("react").ComponentType<Omit<{
|
|
5
6
|
size?: "36" | "48" | "60";
|
|
6
7
|
withNotify?: boolean;
|
|
7
|
-
} & import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<import("@epam/uui-components").ClickableRawProps> & import("@epam/uui-core").IDropdownToggler & import("@epam/uui-core").IHasIcon & import("@epam/uui-core").IHasCaption & {
|
|
8
|
+
}, never> & import("./TabButton").TabButtonModsOverride & import("@epam/uui-core").IClickable & import("@epam/uui-core").IAnalyticableClick & import("@epam/uui-core").IHasTabIndex & import("@epam/uui-core").IDisableable & import("@epam/uui-core").IHasCX & import("@epam/uui-core").ICanRedirect & import("@epam/uui-core").IHasRawProps<import("@epam/uui-components").ClickableRawProps> & import("@epam/uui-core").IDropdownToggler & import("@epam/uui-core").IHasIcon & import("@epam/uui-core").IHasCaption & {
|
|
8
9
|
onClear?(e?: any): void;
|
|
9
10
|
clearIcon?: import("@epam/uui-core").Icon;
|
|
10
|
-
captionCX?: import("@epam/uui-core").ClassValue;
|
|
11
11
|
dropdownIcon?: import("@epam/uui-core").Icon;
|
|
12
12
|
count?: import("react").ReactNode;
|
|
13
|
-
} & import("react").RefAttributes<any
|
|
13
|
+
} & import("react").RefAttributes<any>>;
|
|
14
14
|
//# sourceMappingURL=VerticalTabButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalTabButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/VerticalTabButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAOxD,kEAAkE;AAClE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"VerticalTabButton.d.ts","sourceRoot":"","sources":["../../../components/buttons/VerticalTabButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAOxD,kEAAkE;AAClE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;;;;;uCAAkG,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarProps } from '@epam/uui-components';
|
|
2
|
-
import { Dayjs } from '
|
|
3
|
+
import { Dayjs } from '../../helpers/dayJsHelper';
|
|
3
4
|
export declare function applyDateSelectionMods(): string[];
|
|
4
|
-
export declare const Calendar:
|
|
5
|
+
export declare const Calendar: import("react").ComponentType<CalendarProps<Dayjs> & import("react").RefAttributes<any>>;
|
|
5
6
|
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../components/datePickers/Calendar.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../components/datePickers/Calendar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAA2B,MAAM,sBAAsB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,wBAAgB,sBAAsB,aAErC;AAED,eAAO,MAAM,QAAQ,0FAA4F,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarPresetsProps } from '@epam/uui-components';
|
|
2
3
|
export declare function applyCalendarPresetsMods(): string[];
|
|
3
|
-
export declare const CalendarPresets:
|
|
4
|
+
export declare const CalendarPresets: import("react").ComponentType<CalendarPresetsProps & import("react").RefAttributes<any>>;
|
|
4
5
|
//# sourceMappingURL=CalendarPresets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarPresets.d.ts","sourceRoot":"","sources":["../../../components/datePickers/CalendarPresets.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyC,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGnG,wBAAgB,wBAAwB,aAEvC;AAED,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"CalendarPresets.d.ts","sourceRoot":"","sources":["../../../components/datePickers/CalendarPresets.tsx"],"names":[],"mappings":";AACA,OAAO,EAAyC,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGnG,wBAAgB,wBAAwB,aAEvC;AAED,eAAO,MAAM,eAAe,0FAAiH,CAAC"}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface DatePickerProps extends DatePickerCoreProps, SizeMod, IHasEditMode {
|
|
6
|
-
/**
|
|
7
|
-
* HTML ID attribute for the toggler input
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const DatePicker: (props: DatePickerProps & React.RefAttributes<any>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
2
|
+
import { DatePickerProps } from './types';
|
|
3
|
+
export declare function DatePickerComponent(props: DatePickerProps, ref: React.ForwardedRef<HTMLElement>): JSX.Element;
|
|
4
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLElement>>;
|
|
12
5
|
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAY1C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,eAoH/F;AAED,eAAO,MAAM,UAAU,qFAAwC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IControlled } from '@epam/uui-core';
|
|
3
|
+
import { CommonDatePickerBodyProps, ViewType } from './types';
|
|
4
|
+
import { Dayjs } from '../../helpers/dayJsHelper';
|
|
5
|
+
export interface DatePickerBodyProps extends CommonDatePickerBodyProps, IControlled<string | null> {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* Manually handles holidays
|
|
7
8
|
*/
|
|
8
9
|
isHoliday?: (day: Dayjs) => boolean;
|
|
9
10
|
}
|
|
@@ -11,10 +12,17 @@ export declare const uuiDatePickerBody: {
|
|
|
11
12
|
readonly wrapper: "uui-datepickerBody-wrapper";
|
|
12
13
|
readonly separator: "uui-datepickerBody-separator";
|
|
13
14
|
};
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
export declare const DatePickerBody: React.ForwardRefExoticComponent<DatePickerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export interface StatelessDatePickerBodyValue<TSelection> {
|
|
17
|
+
value: TSelection | null;
|
|
18
|
+
month: Dayjs;
|
|
19
|
+
view: ViewType;
|
|
19
20
|
}
|
|
21
|
+
export interface StatelessDatePickerBodyProps extends CommonDatePickerBodyProps, StatelessDatePickerBodyValue<string> {
|
|
22
|
+
onValueChange: (value: string | null) => void;
|
|
23
|
+
onMonthChange: (m: Dayjs) => void;
|
|
24
|
+
onViewChange: (v: ViewType) => void;
|
|
25
|
+
isHoliday?: (day: Dayjs) => boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const StatelessDatePickerBody: React.ForwardRefExoticComponent<StatelessDatePickerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
28
|
//# sourceMappingURL=DatePickerBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerBody.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAC/D,OAAO,EACH,WAAW,EAEd,MAAM,gBAAgB,CAAC;AAKxB,OAAO,EAAE,yBAAyB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI9D,OAAO,EAAE,KAAK,EAAY,MAAM,2BAA2B,CAAC;AAE5D,MAAM,WAAW,mBAAoB,SAAQ,yBAAyB,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC;IAC9F;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc,4FAAiC,CAAC;AA0B7D,MAAM,WAAW,4BAA4B,CAAC,UAAU;IACpD,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED,MAAM,WAAW,4BAA6B,SAAQ,yBAAyB,EAAE,4BAA4B,CAAC,MAAM,CAAC;IACjH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,YAAY,EAAE,CAAC,CAAC,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CACvC;AAED,eAAO,MAAM,uBAAuB,qGAA0C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Icon,
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import { Icon, IHasCX } from '@epam/uui-core';
|
|
3
|
+
import { type Dayjs } from '../../helpers/dayJsHelper';
|
|
4
|
+
import { ViewType } from './types';
|
|
5
5
|
export declare const uuiHeader: {
|
|
6
6
|
container: string;
|
|
7
7
|
header: string;
|
|
@@ -9,12 +9,16 @@ export declare const uuiHeader: {
|
|
|
9
9
|
navIconRight: string;
|
|
10
10
|
navIconLeft: string;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
interface DatePickerHeaderValue {
|
|
13
|
+
view: ViewType;
|
|
14
|
+
month: Dayjs;
|
|
15
|
+
}
|
|
16
|
+
export interface DatePickerHeaderProps extends IHasCX {
|
|
17
|
+
value: DatePickerHeaderValue;
|
|
18
|
+
onValueChange: (value: DatePickerHeaderValue) => void;
|
|
13
19
|
navIconLeft?: Icon;
|
|
14
20
|
navIconRight?: Icon;
|
|
15
21
|
}
|
|
16
|
-
export declare
|
|
17
|
-
export
|
|
18
|
-
export declare const getNextListYearFromCurrent: (currentDate: Dayjs) => dayjs.Dayjs;
|
|
19
|
-
export declare function DatePickerHeader(props: DatePickerHeaderProps): JSX.Element;
|
|
22
|
+
export declare function DatePickerHeader({ navIconLeft, navIconRight, value: { month, view }, onValueChange, }: DatePickerHeaderProps): JSX.Element;
|
|
23
|
+
export {};
|
|
20
24
|
//# sourceMappingURL=DatePickerHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerHeader.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"DatePickerHeader.d.ts","sourceRoot":"","sources":["../../../components/datePickers/DatePickerHeader.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,2BAA2B,CAAC;AAIjE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKnC,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC;AAEF,UAAU,qBAAqB;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,MAAM;IACjD,KAAK,EAAE,qBAAqB,CAAC;IAC7B,aAAa,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAKtD,WAAW,CAAC,EAAE,IAAI,CAAC;IAKnB,YAAY,CAAC,EAAE,IAAI,CAAC;CACvB;AAMD,wBAAgB,gBAAgB,CAAC,EAC7B,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,aAAa,GACnE,EAAE,qBAAqB,eAqGvB"}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface RangeDatePickerProps extends BaseRangeDatePickerProps, SizeMod {
|
|
5
|
-
/**
|
|
6
|
-
* A pure function that gets placeholder for 'from' or 'to' input.
|
|
7
|
-
*/
|
|
8
|
-
getPlaceholder?(type: InputType): string;
|
|
9
|
-
/**
|
|
10
|
-
* HTML ID attribute for the first input into toggler
|
|
11
|
-
*/
|
|
12
|
-
id?: string;
|
|
13
|
-
}
|
|
14
|
-
export type InputType = 'from' | 'to';
|
|
15
|
-
export declare const RangeDatePicker: (props: RangeDatePickerProps & React.RefAttributes<any>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RangeDatePickerProps } from './types';
|
|
3
|
+
export declare const RangeDatePicker: React.ForwardRefExoticComponent<RangeDatePickerProps & React.RefAttributes<HTMLElement>>;
|
|
16
4
|
//# sourceMappingURL=RangeDatePicker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RangeDatePicker.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,EACiD,oBAAoB,EAC3E,MAAM,SAAS,CAAC;AA4HjB,eAAO,MAAM,eAAe,0FAA6C,CAAC"}
|
|
@@ -1,35 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Dayjs } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dayjs } from '../../helpers/dayJsHelper';
|
|
3
|
+
import { IControlled } from '@epam/uui-core';
|
|
4
|
+
import { RangeDatePickerPresets } from '@epam/uui-components';
|
|
5
|
+
import { CommonDatePickerBodyProps, RangeDatePickerValue, RangeDatePickerBodyValue } from './types';
|
|
6
|
+
export declare const uuiRangeDatePickerBody: {
|
|
7
|
+
inRange: string;
|
|
8
|
+
firstDayInRangeWrapper: string;
|
|
9
|
+
lastDayInRangeWrapper: string;
|
|
10
|
+
separator: string;
|
|
11
|
+
};
|
|
7
12
|
export declare const rangeDatePickerPresets: RangeDatePickerPresets;
|
|
8
|
-
export interface
|
|
9
|
-
from: string | null;
|
|
10
|
-
to: string | null;
|
|
11
|
-
}
|
|
12
|
-
interface RangeDatePickerBodyState {
|
|
13
|
-
activePart: PickerPart;
|
|
14
|
-
}
|
|
15
|
-
type InputType = 'from' | 'to';
|
|
16
|
-
export interface RangeDatePickerBodyProps<T> extends DatePickerBodyBaseOptions, IEditable<PickerBodyValue<T>> {
|
|
17
|
-
focusPart: InputType;
|
|
13
|
+
export interface RangeDatePickerBodyProps<T> extends CommonDatePickerBodyProps, IControlled<RangeDatePickerBodyValue<T>> {
|
|
18
14
|
renderFooter?(): React.ReactNode;
|
|
19
15
|
isHoliday?: (day: Dayjs) => boolean;
|
|
20
|
-
renderHeader?: (props: IEditable<PickerBodyValue<string>>) => React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare class RangeDatePickerBody extends React.Component<RangeDatePickerBodyProps<RangeDatePickerValue>, RangeDatePickerBodyState> {
|
|
23
|
-
state: RangeDatePickerBodyState;
|
|
24
|
-
getDayCX: (day: Dayjs) => string[];
|
|
25
|
-
getRange(selectedDate: string): RangeDatePickerValue;
|
|
26
|
-
setSelectedDate(selectedDate: string): void;
|
|
27
|
-
setDisplayedDateAndView(displayedDate: Dayjs, view: ViewType, part: PickerPart): void;
|
|
28
|
-
getFromValue: () => PickerBodyValue<string>;
|
|
29
|
-
getToValue: () => PickerBodyValue<string>;
|
|
30
|
-
renderPresets: (presets: RangeDatePickerPresets) => JSX.Element;
|
|
31
|
-
renderDatePicker: () => JSX.Element;
|
|
32
|
-
render(): JSX.Element;
|
|
33
16
|
}
|
|
34
|
-
export
|
|
17
|
+
export declare const RangeDatePickerBody: React.ForwardRefExoticComponent<RangeDatePickerBodyProps<RangeDatePickerValue> & React.RefAttributes<HTMLDivElement>>;
|
|
35
18
|
//# sourceMappingURL=RangeDatePickerBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RangeDatePickerBody.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,KAAK,EAAY,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAM,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAC6B,sBAAsB,EACzD,MAAM,sBAAsB,CAAC;AAO9B,OAAO,EACH,yBAAyB,EACC,oBAAoB,EAAE,wBAAwB,EAC3E,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAiEpC,CAAC;AAEF,MAAM,WAAW,wBAAwB,CAAC,CAAC,CAAE,SAAQ,yBAAyB,EAAE,WAAW,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;IACpH,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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IEditable, IHasCX, IClickable, IHasRawProps } from '@epam/uui-core';
|
|
3
|
+
import { RangeDatePickerInputType, RangeDatePickerProps, RangeDatePickerValue } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Represents RangeDatePickerInputProps
|
|
6
|
+
*/
|
|
7
|
+
export interface RangeDatePickerInputProps extends IEditable<RangeDatePickerValue>, IHasCX, IClickable, Pick<RangeDatePickerProps, 'getPlaceholder' | 'disableClear' | 'filter' | 'id' | 'format'> {
|
|
8
|
+
/**
|
|
9
|
+
* Defines component size.
|
|
10
|
+
*/
|
|
11
|
+
size?: '24' | '30' | '36' | '42' | '48';
|
|
12
|
+
/**
|
|
13
|
+
* rawProps as HTML attributes
|
|
14
|
+
*/
|
|
15
|
+
rawProps?: {
|
|
16
|
+
/**
|
|
17
|
+
* Any HTML attributes (native or 'data-') to put on 'from' input
|
|
18
|
+
*/
|
|
19
|
+
from?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
|
|
20
|
+
/**
|
|
21
|
+
* Any HTML attributes (native or 'data-') to put on 'to' input
|
|
22
|
+
*/
|
|
23
|
+
to?: IHasRawProps<React.HTMLAttributes<HTMLDivElement>>['rawProps'];
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Currently setting date
|
|
27
|
+
*/
|
|
28
|
+
inFocus: RangeDatePickerInputType;
|
|
29
|
+
/**
|
|
30
|
+
* Handles focus event on input element
|
|
31
|
+
*/
|
|
32
|
+
onFocusInput: (event: React.FocusEvent<HTMLInputElement>, inputType: RangeDatePickerInputType) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Handles blur event on input element
|
|
35
|
+
*/
|
|
36
|
+
onBlurInput?: (event: React.FocusEvent<HTMLInputElement, Element>, inputType: RangeDatePickerInputType) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Handles blur event on root element
|
|
39
|
+
*/
|
|
40
|
+
onBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare const RangeDatePickerInput: React.ForwardRefExoticComponent<RangeDatePickerInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
//# sourceMappingURL=RangeDatePickerInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RangeDatePickerInput.d.ts","sourceRoot":"","sources":["../../../components/datePickers/RangeDatePickerInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAEN,MAAM,OAAO,CAAC;AAEf,OAAO,EACH,SAAS,EAAc,MAAM,EAAE,UAAU,EAAE,YAAY,EAC1D,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACH,wBAAwB,EAAE,oBAAoB,EAAE,oBAAoB,EACvE,MAAM,SAAS,CAAC;AAQjB;;GAEG;AACH,MAAM,WAAW,yBACb,SAAQ,SAAS,CAAC,oBAAoB,CAAC,EACvC,MAAM,EACN,UAAU,EACV,IAAI,CAAC,oBAAoB,EAAE,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;IAC1F;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,QAAQ,CAAC,EAAE;QACP;;WAEG;QACH,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACtE;;WAEG;QACH,EAAE,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;KACvE,CAAC;IACF;;OAEG;IACH,OAAO,EAAE,wBAAwB,CAAC;IAClC;;MAEE;IACF,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACvG;;KAEC;IACD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,wBAAwB,KAAK,IAAI,CAAC;IAChH;;KAEC;IACD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,oBAAoB,kGAiH/B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Dayjs } from '../../helpers/dayJsHelper';
|
|
2
|
+
import { RangeDatePickerInputType, RangeDatePickerValue } from './types';
|
|
3
|
+
export declare const defaultFormat = "MMM D, YYYY";
|
|
4
|
+
export declare const valueFormat = "YYYY-MM-DD";
|
|
5
|
+
export declare const supportedDateFormats: (format?: string) => string[];
|
|
6
|
+
export declare const uuiDatePickerBodyBase: {
|
|
7
|
+
readonly container: "uui-datepicker-container";
|
|
8
|
+
};
|
|
9
|
+
export declare const getNewMonth: (value: string | Dayjs | null) => Dayjs;
|
|
10
|
+
export declare const defaultRangeValue: RangeDatePickerValue;
|
|
11
|
+
export declare const rangeIsEmpty: (range: RangeDatePickerValue) => boolean;
|
|
12
|
+
export declare const getValidMonth: (i: RangeDatePickerValue, focus: RangeDatePickerInputType, format: string, filter?: (day: Dayjs) => boolean) => Dayjs;
|
|
13
|
+
export declare const getMonthOnOpen: (selectedDate: RangeDatePickerValue, focus: RangeDatePickerInputType) => Dayjs;
|
|
14
|
+
export declare const isValidDate: (input: string | null, format: string, filter?: (day: Dayjs) => boolean) => boolean | undefined;
|
|
15
|
+
export declare const isValidRange: (range: RangeDatePickerValue) => boolean;
|
|
16
|
+
export declare const getWithFrom: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
|
|
17
|
+
from: string;
|
|
18
|
+
to: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const getWithTo: (selectedDate: RangeDatePickerValue, newValue: string | null) => {
|
|
21
|
+
from: string;
|
|
22
|
+
to: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const toValueDateRangeFormat: (value: RangeDatePickerValue, format?: string) => RangeDatePickerValue;
|
|
25
|
+
export declare const toCustomDateRangeFormat: (value: RangeDatePickerValue, format?: string) => RangeDatePickerValue;
|
|
26
|
+
export declare const toValueDateFormat: (value: string | null, format?: string) => string | null;
|
|
27
|
+
export declare const toCustomDateFormat: (value: string | null, format?: string) => string | null;
|
|
28
|
+
export declare const getPrevMonth: (currentDate: Dayjs) => Dayjs;
|
|
29
|
+
export declare const getNextMonth: (currentDate: Dayjs) => Dayjs;
|
|
30
|
+
export declare const getPrevYear: (currentDate: Dayjs) => Dayjs;
|
|
31
|
+
export declare const getNextYear: (currentDate: Dayjs) => Dayjs;
|
|
32
|
+
export declare const getPrevYearsList: (currentDate: Dayjs) => Dayjs;
|
|
33
|
+
export declare const getNextYearsList: (currentDate: Dayjs) => Dayjs;
|
|
34
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../components/datePickers/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEzE,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAC3C,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC,eAAO,MAAM,oBAAoB,YAAa,MAAM,aAInD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;CAExB,CAAC;AAEX,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,KAAK,GAAG,IAAI,UAEvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,oBAG/B,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,oBAAoB,YAEvD,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,oBAAoB,SAAS,wBAAwB,UAAU,MAAM,iBAAiB,KAAK,KAAK,OAAO,UAUvI,CAAC;AAEF,eAAO,MAAM,cAAc,iBAAkB,oBAAoB,SAAS,wBAAwB,UASjG,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;;;CActF,CAAC;AAEF,eAAO,MAAM,SAAS,iBAAiB,oBAAoB,YAAY,MAAM,GAAG,IAAI;;;CAoBnF,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,6 +1,9 @@
|
|
|
1
1
|
export * from './DatePicker';
|
|
2
|
-
export
|
|
2
|
+
export { DatePickerBody, uuiDatePickerBody } from './DatePickerBody';
|
|
3
3
|
export * from './Calendar';
|
|
4
|
+
export * from './RangeDatePickerInput';
|
|
4
5
|
export * from './RangeDatePicker';
|
|
5
6
|
export * from './RangeDatePickerBody';
|
|
7
|
+
export type { DatePickerBodyProps } from './DatePickerBody';
|
|
8
|
+
export type { DatePickerProps, RangeDatePickerProps, RangeDatePickerValue, RangeDatePickerBodyValue, } from './types';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/datePickers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/datePickers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrE,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AAEtC,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EACR,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,GAC3B,MAAM,SAAS,CAAC"}
|