@hitachivantara/uikit-react-core 3.71.0 → 3.73.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/dist/AssetInventory/ListView/ListViewCell/ListViewCell.d.ts +2 -27
- package/dist/AssetInventory/ListView/ListViewRow/ListViewRow.d.ts +2 -27
- package/dist/Banner/Banner.d.ts +3 -2
- package/dist/Banner/Banner.js +2 -2
- package/dist/Banner/Banner.js.map +1 -1
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js.map +1 -1
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js.map +1 -1
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js.map +1 -1
- package/dist/Banner/BannerContent/BannerContent.d.ts +41 -0
- package/dist/Banner/{BannerWrapper/BannerContentWrapper.js → BannerContent/BannerContent.js} +5 -5
- package/dist/Banner/BannerContent/BannerContent.js.map +1 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js.map +1 -1
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js.map +1 -1
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js.map +1 -1
- package/dist/Banner/BannerContent/index.d.ts +2 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/index.js +2 -2
- package/dist/Banner/BannerContent/index.js.map +1 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/styles.js +0 -0
- package/dist/Banner/{BannerWrapper → BannerContent}/styles.js.map +1 -1
- package/dist/Banner/index.d.ts +3 -0
- package/dist/Banner/index.js +2 -2
- package/dist/Banner/index.js.map +1 -1
- package/dist/FilterGroup/FilterContent/FilterContent.d.ts +49 -0
- package/dist/FilterGroup/FilterContent/FilterContent.js +9 -3
- package/dist/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/FilterGroup/FilterContent/index.d.ts +2 -0
- package/dist/FilterGroup/FilterContent/styles.js +5 -4
- package/dist/FilterGroup/FilterContent/styles.js.map +1 -1
- package/dist/FilterGroup/FilterGroup.d.ts +3 -2
- package/dist/FilterGroup/LeftPanel/LeftPanel.js +6 -4
- package/dist/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
- package/dist/FilterGroup/RightPanel/RightPanel.js +6 -4
- package/dist/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/legacy/AssetInventory/ListView/ListViewCell/ListViewCell.d.ts +2 -27
- package/dist/legacy/AssetInventory/ListView/ListViewRow/ListViewRow.d.ts +2 -27
- package/dist/legacy/Banner/Banner.d.ts +3 -2
- package/dist/legacy/Banner/Banner.js +2 -2
- package/dist/legacy/Banner/Banner.js.map +1 -1
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js.map +1 -1
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js.map +1 -1
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js.map +1 -1
- package/dist/legacy/Banner/BannerContent/BannerContent.d.ts +41 -0
- package/dist/legacy/Banner/{BannerWrapper/BannerContentWrapper.js → BannerContent/BannerContent.js} +5 -5
- package/dist/legacy/Banner/BannerContent/BannerContent.js.map +1 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js.map +1 -1
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js.map +1 -1
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js.map +1 -1
- package/dist/legacy/Banner/BannerContent/index.d.ts +2 -0
- package/dist/legacy/Banner/BannerContent/index.js +2 -0
- package/dist/legacy/Banner/BannerContent/index.js.map +1 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/styles.js +0 -0
- package/dist/legacy/Banner/{BannerWrapper → BannerContent}/styles.js.map +1 -1
- package/dist/legacy/Banner/index.d.ts +3 -0
- package/dist/legacy/Banner/index.js +1 -1
- package/dist/legacy/Banner/index.js.map +1 -1
- package/dist/legacy/FilterGroup/FilterContent/FilterContent.d.ts +49 -0
- package/dist/legacy/FilterGroup/FilterContent/FilterContent.js +9 -3
- package/dist/legacy/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/legacy/FilterGroup/FilterContent/index.d.ts +2 -0
- package/dist/legacy/FilterGroup/FilterContent/styles.js +5 -4
- package/dist/legacy/FilterGroup/FilterContent/styles.js.map +1 -1
- package/dist/legacy/FilterGroup/FilterGroup.d.ts +3 -2
- package/dist/legacy/FilterGroup/LeftPanel/LeftPanel.js +6 -4
- package/dist/legacy/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
- package/dist/legacy/FilterGroup/RightPanel/RightPanel.js +6 -4
- package/dist/legacy/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/dist/modern/AssetInventory/ListView/ListViewCell/ListViewCell.d.ts +2 -27
- package/dist/modern/AssetInventory/ListView/ListViewRow/ListViewRow.d.ts +2 -27
- package/dist/modern/Banner/Banner.d.ts +3 -2
- package/dist/modern/Banner/Banner.js +2 -2
- package/dist/modern/Banner/Banner.js.map +1 -1
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/ActionContainer.js.map +1 -1
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/index.js.map +1 -1
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/ActionContainer/styles.js.map +1 -1
- package/dist/modern/Banner/BannerContent/BannerContent.d.ts +41 -0
- package/dist/modern/Banner/{BannerWrapper/BannerContentWrapper.js → BannerContent/BannerContent.js} +5 -5
- package/dist/modern/Banner/BannerContent/BannerContent.js.map +1 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js.map +1 -1
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/index.js.map +1 -1
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/MessageContainer/styles.js.map +1 -1
- package/dist/modern/Banner/BannerContent/index.d.ts +2 -0
- package/dist/modern/Banner/BannerContent/index.js +2 -0
- package/dist/modern/Banner/BannerContent/index.js.map +1 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/styles.js +0 -0
- package/dist/modern/Banner/{BannerWrapper → BannerContent}/styles.js.map +1 -1
- package/dist/modern/Banner/index.d.ts +3 -0
- package/dist/modern/Banner/index.js +1 -1
- package/dist/modern/Banner/index.js.map +1 -1
- package/dist/modern/FilterGroup/FilterContent/FilterContent.d.ts +49 -0
- package/dist/modern/FilterGroup/FilterContent/FilterContent.js +10 -4
- package/dist/modern/FilterGroup/FilterContent/FilterContent.js.map +1 -1
- package/dist/modern/FilterGroup/FilterContent/index.d.ts +2 -0
- package/dist/modern/FilterGroup/FilterContent/styles.js +5 -4
- package/dist/modern/FilterGroup/FilterContent/styles.js.map +1 -1
- package/dist/modern/FilterGroup/FilterGroup.d.ts +3 -2
- package/dist/modern/FilterGroup/LeftPanel/LeftPanel.js +6 -4
- package/dist/modern/FilterGroup/LeftPanel/LeftPanel.js.map +1 -1
- package/dist/modern/FilterGroup/RightPanel/RightPanel.js +6 -4
- package/dist/modern/FilterGroup/RightPanel/RightPanel.js.map +1 -1
- package/package.json +2 -2
- package/dist/Banner/BannerWrapper/BannerContentWrapper.js.map +0 -1
- package/dist/Banner/BannerWrapper/index.js.map +0 -1
- package/dist/legacy/Banner/BannerWrapper/BannerContentWrapper.js.map +0 -1
- package/dist/legacy/Banner/BannerWrapper/index.js +0 -2
- package/dist/legacy/Banner/BannerWrapper/index.js.map +0 -1
- package/dist/modern/Banner/BannerWrapper/BannerContentWrapper.js.map +0 -1
- package/dist/modern/Banner/BannerWrapper/index.js +0 -2
- package/dist/modern/Banner/BannerWrapper/index.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
import { HvAtmosphereColorKeys, HvSemanticColorKeys } from "../../..";
|
|
3
4
|
|
|
4
5
|
export type HvListViewCellClassKey = "root" | "semanticBar";
|
|
5
6
|
|
|
@@ -17,33 +18,7 @@ export interface HvListViewCellProps
|
|
|
17
18
|
/**
|
|
18
19
|
* The border color of the cell. Must be one of palette semantic colors.
|
|
19
20
|
*/
|
|
20
|
-
semantic?:
|
|
21
|
-
| "sema0"
|
|
22
|
-
| "sema1"
|
|
23
|
-
| "sema2"
|
|
24
|
-
| "sema3"
|
|
25
|
-
| "sema4"
|
|
26
|
-
| "sema5"
|
|
27
|
-
| "sema6"
|
|
28
|
-
| "sema7"
|
|
29
|
-
| "sema8"
|
|
30
|
-
| "sema9"
|
|
31
|
-
| "sema10"
|
|
32
|
-
| "sema11"
|
|
33
|
-
| "sema12"
|
|
34
|
-
| "sema13"
|
|
35
|
-
| "sema14"
|
|
36
|
-
| "sema15"
|
|
37
|
-
| "sema16"
|
|
38
|
-
| "sema17"
|
|
39
|
-
| "sema18"
|
|
40
|
-
| "sema19"
|
|
41
|
-
| "atmo1"
|
|
42
|
-
| "atmo2"
|
|
43
|
-
| "atmo3"
|
|
44
|
-
| "atmo4"
|
|
45
|
-
| "atmo5"
|
|
46
|
-
| "atmo6";
|
|
21
|
+
semantic?: "sema0" | HvSemanticColorKeys | HvAtmosphereColorKeys;
|
|
47
22
|
}
|
|
48
23
|
|
|
49
24
|
export default function HvListViewCell(props: HvListViewCellProps): JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { StandardProps } from "@material-ui/core";
|
|
3
3
|
import { ListViewConfiguration } from "..";
|
|
4
|
-
import { HvCheckBoxProps } from "../../..";
|
|
4
|
+
import { HvAtmosphereColorKeys, HvCheckBoxProps, HvSemanticColorKeys } from "../../..";
|
|
5
5
|
|
|
6
6
|
export type HvListViewRowClassKey = "root";
|
|
7
7
|
|
|
@@ -29,32 +29,7 @@ export interface HvListViewRowProps
|
|
|
29
29
|
/**
|
|
30
30
|
* The border to the right of the checkbox
|
|
31
31
|
*/
|
|
32
|
-
semantic?:
|
|
33
|
-
| "sema1"
|
|
34
|
-
| "sema2"
|
|
35
|
-
| "sema3"
|
|
36
|
-
| "sema4"
|
|
37
|
-
| "sema5"
|
|
38
|
-
| "sema6"
|
|
39
|
-
| "sema7"
|
|
40
|
-
| "sema8"
|
|
41
|
-
| "sema9"
|
|
42
|
-
| "sema10"
|
|
43
|
-
| "sema11"
|
|
44
|
-
| "sema12"
|
|
45
|
-
| "sema13"
|
|
46
|
-
| "sema14"
|
|
47
|
-
| "sema15"
|
|
48
|
-
| "sema16"
|
|
49
|
-
| "sema17"
|
|
50
|
-
| "sema18"
|
|
51
|
-
| "sema19"
|
|
52
|
-
| "atmo1"
|
|
53
|
-
| "atmo2"
|
|
54
|
-
| "atmo3"
|
|
55
|
-
| "atmo4"
|
|
56
|
-
| "atmo5"
|
|
57
|
-
| "atmo6";
|
|
32
|
+
semantic?: HvSemanticColorKeys | HvAtmosphereColorKeys;
|
|
58
33
|
}
|
|
59
34
|
|
|
60
35
|
export default function HvListViewRow(props: HvListViewRowProps): JSX.Element | null;
|
package/dist/Banner/Banner.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { StandardProps, SnackbarProps
|
|
2
|
+
import { StandardProps, SnackbarProps } from "@material-ui/core";
|
|
3
3
|
import { HvActionsGenericCommonProps } from "../ActionsGeneric";
|
|
4
|
+
import { HvBannerContentProps } from "./BannerContent";
|
|
4
5
|
|
|
5
6
|
export type TransitionDirectionProp = "up" | "down" | "left" | "right";
|
|
6
7
|
|
|
@@ -55,7 +56,7 @@ export interface HvBannerProps
|
|
|
55
56
|
/**
|
|
56
57
|
* Props to pass down to the Banner Wrapper.
|
|
57
58
|
*/
|
|
58
|
-
bannerContentProps?:
|
|
59
|
+
bannerContentProps?: Partial<HvBannerContentProps>;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
export default function HvBanner(props: HvBannerProps): JSX.Element | null;
|
package/dist/Banner/Banner.js
CHANGED
|
@@ -35,7 +35,7 @@ var _capitalize = _interopRequireDefault(require("lodash/capitalize"));
|
|
|
35
35
|
|
|
36
36
|
var _utils = require("../utils");
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _BannerContent = _interopRequireDefault(require("./BannerContent"));
|
|
39
39
|
|
|
40
40
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
41
41
|
|
|
@@ -105,7 +105,7 @@ var HvBanner = function HvBanner(props) {
|
|
|
105
105
|
TransitionComponent: SlideTransition,
|
|
106
106
|
open: open,
|
|
107
107
|
transitionDuration: transitionDuration
|
|
108
|
-
}, others), /*#__PURE__*/_react.default.createElement(
|
|
108
|
+
}, others), /*#__PURE__*/_react.default.createElement(_BannerContent.default, (0, _extends2.default)({
|
|
109
109
|
id: (0, _utils.setId)(id, "content"),
|
|
110
110
|
content: label,
|
|
111
111
|
variant: variant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.js","names":["HvBanner","props","id","classes","className","open","onClose","anchorOrigin","variant","transitionDuration","transitionDirection","showIcon","customIcon","actions","actionsCallback","actionsPosition","label","offset","bannerContentProps","others","anchorOriginOffset","anchorOriginTop","top","anchorOriginBottom","bottom","anchorOriginBanner","horizontal","vertical","SlideTransition","useCallback","properties","capitalize","root","rootClosed","anchorOriginTopCenter","anchorOriginBottomCenter","setId","propTypes","PropTypes","string","shape","isRequired","bool","func","node","oneOf","oneOfType","arrayOf","icon","disabled","number","instanceOf","Object","withStyles","styles","name"],"sources":["../../src/Banner/Banner.js"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport PropTypes, { oneOfType } from \"prop-types\";\nimport { Slide, Snackbar, withStyles } from \"@material-ui/core\";\nimport capitalize from \"lodash/capitalize\";\nimport { setId } from \"../utils\";\nimport HvBannerContentWrapper from \"./BannerWrapper\";\nimport styles from \"./styles\";\n\n/**\n * A Banner displays an important and succinct message. It can also provide actions for the user to address, or dismiss.\n * It requires a user action, for it to be dismissed. Banners should appear at the top of the screen, below a top app bar.\n */\nconst HvBanner = (props) => {\n const {\n id,\n classes,\n className,\n open,\n onClose,\n anchorOrigin = \"top\",\n variant = \"default\",\n transitionDuration = 300,\n transitionDirection = \"down\",\n showIcon = false,\n customIcon,\n actions,\n actionsCallback,\n actionsPosition = \"auto\",\n label,\n offset = 60,\n bannerContentProps,\n ...others\n } = props;\n\n const anchorOriginOffset = {\n anchorOriginTop: {\n top: `${offset || 0}px`,\n },\n anchorOriginBottom: {\n bottom: `${offset || 0}px`,\n },\n };\n\n const anchorOriginBanner = { horizontal: \"center\", vertical: anchorOrigin };\n\n const SlideTransition = useCallback(\n (properties) => <Slide {...properties} direction={transitionDirection} />,\n [transitionDirection]\n );\n\n return (\n <Snackbar\n style={anchorOriginOffset[`anchorOrigin${capitalize(anchorOrigin)}`]}\n className={className}\n id={id}\n classes={{\n root: open ? classes.root : classes.rootClosed,\n anchorOriginTopCenter: classes.anchorOriginTopCenter,\n anchorOriginBottomCenter: classes.anchorOriginBottomCenter,\n }}\n anchorOrigin={anchorOriginBanner}\n TransitionComponent={SlideTransition}\n open={open}\n transitionDuration={transitionDuration}\n {...others}\n >\n <HvBannerContentWrapper\n id={setId(id, \"content\")}\n content={label}\n variant={variant}\n customIcon={customIcon}\n showIcon={showIcon}\n actions={actions}\n actionsCallback={actionsCallback}\n actionsPosition={actionsPosition}\n onClose={onClose}\n {...bannerContentProps}\n />\n </Snackbar>\n );\n};\n\nHvBanner.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when the component is closed.\n */\n rootClosed: PropTypes.string,\n /**\n * Styles applied to the component when define as top.\n */\n anchorOriginTopCenter: PropTypes.string,\n /**\n * Styles applied to the component when define as bottom.\n */\n anchorOriginBottomCenter: PropTypes.string,\n }).isRequired,\n /**\n * If true, Snackbar is open.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.\n */\n onClose: PropTypes.func,\n /**\n * The message to display.\n */\n label: PropTypes.node,\n /**\n * The anchor of the Snackbar.\n */\n anchorOrigin: PropTypes.oneOf([\"top\", \"bottom\"]),\n /**\n * Variant of the snackbar.\n */\n variant: PropTypes.oneOf([\"success\", \"warning\", \"error\", \"info\", \"default\"]),\n /**\n * Custom icon to replace the variant default.\n */\n customIcon: PropTypes.node,\n /**\n * Controls if the associated icon to the variant should be shown.\n */\n showIcon: PropTypes.bool,\n /**\n * Actions to display on the right side.\n */\n actions: oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n icon: PropTypes.func,\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionsCallback: PropTypes.func,\n /**\n * The position property of the header.\n */\n actionsPosition: PropTypes.PropTypes.oneOf([\"auto\", \"inline\", \"bottom-right\"]),\n /**\n * How much the transition animation last in milliseconds, if 0 no animation is played.\n */\n transitionDuration: PropTypes.number,\n /**\n * Direction of slide transition.\n */\n transitionDirection: PropTypes.oneOf([\"up\", \"down\", \"left\", \"right\"]),\n /**\n * Offset from top/bottom of the page, in px. Defaults to 60px.\n */\n offset: PropTypes.number,\n /**\n * Props to pass down to the Banner Wrapper. An object `actionProps` can be included to be passed as others to actions.\n */\n bannerContentProps: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles, { name: \"HvBanner\" })(HvBanner);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAW;EAC1B,IACEC,EADF,GAmBID,KAnBJ,CACEC,EADF;EAAA,IAEEC,OAFF,GAmBIF,KAnBJ,CAEEE,OAFF;EAAA,IAGEC,SAHF,GAmBIH,KAnBJ,CAGEG,SAHF;EAAA,IAIEC,IAJF,GAmBIJ,KAnBJ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A0B,CAAC,MAAD,EAAS,QAAT,EAAmB,cAAnB,CAA1B,CA/EE;;EAgFnB;AACF;AACA;EACEpC,kBAAkB,EAAE6B,kBAAA,CAAUY,MAnFX;;EAoFnB;AACF;AACA;EACExC,mBAAmB,EAAE4B,kBAAA,CAAUO,KAAV,CAAgB,CAAC,IAAD,EAAO,MAAP,EAAe,MAAf,EAAuB,OAAvB,CAAhB,CAvFF;;EAwFnB;AACF;AACA;EACE5B,MAAM,EAAEqB,kBAAA,CAAUY,MA3FC;;EA4FnB;AACF;AACA;EACEhC,kBAAkB,EAAEoB,kBAAA,CAAUa,UAAV,CAAqBC,MAArB;AA/FD,CAArB;;eAkGe,IAAAC,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAyCvD,QAAzC,C"}
|
|
1
|
+
{"version":3,"file":"Banner.js","names":["HvBanner","props","id","classes","className","open","onClose","anchorOrigin","variant","transitionDuration","transitionDirection","showIcon","customIcon","actions","actionsCallback","actionsPosition","label","offset","bannerContentProps","others","anchorOriginOffset","anchorOriginTop","top","anchorOriginBottom","bottom","anchorOriginBanner","horizontal","vertical","SlideTransition","useCallback","properties","capitalize","root","rootClosed","anchorOriginTopCenter","anchorOriginBottomCenter","setId","propTypes","PropTypes","string","shape","isRequired","bool","func","node","oneOf","oneOfType","arrayOf","icon","disabled","number","instanceOf","Object","withStyles","styles","name"],"sources":["../../src/Banner/Banner.js"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport PropTypes, { oneOfType } from \"prop-types\";\nimport { Slide, Snackbar, withStyles } from \"@material-ui/core\";\nimport capitalize from \"lodash/capitalize\";\nimport { setId } from \"../utils\";\nimport HvBannerContent from \"./BannerContent\";\nimport styles from \"./styles\";\n\n/**\n * A Banner displays an important and succinct message. It can also provide actions for the user to address, or dismiss.\n * It requires a user action, for it to be dismissed. Banners should appear at the top of the screen, below a top app bar.\n */\nconst HvBanner = (props) => {\n const {\n id,\n classes,\n className,\n open,\n onClose,\n anchorOrigin = \"top\",\n variant = \"default\",\n transitionDuration = 300,\n transitionDirection = \"down\",\n showIcon = false,\n customIcon,\n actions,\n actionsCallback,\n actionsPosition = \"auto\",\n label,\n offset = 60,\n bannerContentProps,\n ...others\n } = props;\n\n const anchorOriginOffset = {\n anchorOriginTop: {\n top: `${offset || 0}px`,\n },\n anchorOriginBottom: {\n bottom: `${offset || 0}px`,\n },\n };\n\n const anchorOriginBanner = { horizontal: \"center\", vertical: anchorOrigin };\n\n const SlideTransition = useCallback(\n (properties) => <Slide {...properties} direction={transitionDirection} />,\n [transitionDirection]\n );\n\n return (\n <Snackbar\n style={anchorOriginOffset[`anchorOrigin${capitalize(anchorOrigin)}`]}\n className={className}\n id={id}\n classes={{\n root: open ? classes.root : classes.rootClosed,\n anchorOriginTopCenter: classes.anchorOriginTopCenter,\n anchorOriginBottomCenter: classes.anchorOriginBottomCenter,\n }}\n anchorOrigin={anchorOriginBanner}\n TransitionComponent={SlideTransition}\n open={open}\n transitionDuration={transitionDuration}\n {...others}\n >\n <HvBannerContent\n id={setId(id, \"content\")}\n content={label}\n variant={variant}\n customIcon={customIcon}\n showIcon={showIcon}\n actions={actions}\n actionsCallback={actionsCallback}\n actionsPosition={actionsPosition}\n onClose={onClose}\n {...bannerContentProps}\n />\n </Snackbar>\n );\n};\n\nHvBanner.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the component root class.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the component root class when the component is closed.\n */\n rootClosed: PropTypes.string,\n /**\n * Styles applied to the component when define as top.\n */\n anchorOriginTopCenter: PropTypes.string,\n /**\n * Styles applied to the component when define as bottom.\n */\n anchorOriginBottomCenter: PropTypes.string,\n }).isRequired,\n /**\n * If true, Snackbar is open.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Callback fired when the component requests to be closed. Typically onClose is used to set state in the parent component, which is used to control the Snackbar open prop. The reason parameter can optionally be used to control the response to onClose, for example ignoring clickaway.\n */\n onClose: PropTypes.func,\n /**\n * The message to display.\n */\n label: PropTypes.node,\n /**\n * The anchor of the Snackbar.\n */\n anchorOrigin: PropTypes.oneOf([\"top\", \"bottom\"]),\n /**\n * Variant of the snackbar.\n */\n variant: PropTypes.oneOf([\"success\", \"warning\", \"error\", \"info\", \"default\"]),\n /**\n * Custom icon to replace the variant default.\n */\n customIcon: PropTypes.node,\n /**\n * Controls if the associated icon to the variant should be shown.\n */\n showIcon: PropTypes.bool,\n /**\n * Actions to display on the right side.\n */\n actions: oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n icon: PropTypes.func,\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionsCallback: PropTypes.func,\n /**\n * The position property of the header.\n */\n actionsPosition: PropTypes.PropTypes.oneOf([\"auto\", \"inline\", \"bottom-right\"]),\n /**\n * How much the transition animation last in milliseconds, if 0 no animation is played.\n */\n transitionDuration: PropTypes.number,\n /**\n * Direction of slide transition.\n */\n transitionDirection: PropTypes.oneOf([\"up\", \"down\", \"left\", \"right\"]),\n /**\n * Offset from top/bottom of the page, in px. Defaults to 60px.\n */\n offset: PropTypes.number,\n /**\n * Props to pass down to the Banner Wrapper. An object `actionProps` can be included to be passed as others to actions.\n */\n bannerContentProps: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles, { name: \"HvBanner\" })(HvBanner);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA;AACA;AACA;AACA;AACA,IAAMA,QAAQ,GAAG,SAAXA,QAAW,CAACC,KAAD,EAAW;EAC1B,IACEC,EADF,GAmBID,KAnBJ,CACE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;EAwEnB;AACF;AACA;EACE5B,eAAe,EAAEwB,kBAAA,CAAUK,IA3ER;;EA4EnB;AACF;AACA;EACE5B,eAAe,EAAEuB,kBAAA,CAAUA,SAAV,CAAoBO,KAApB,CAA0B,CAAC,MAAD,EAAS,QAAT,EAAmB,cAAnB,CAA1B,CA/EE;;EAgFnB;AACF;AACA;EACEpC,kBAAkB,EAAE6B,kBAAA,CAAUY,MAnFX;;EAoFnB;AACF;AACA;EACExC,mBAAmB,EAAE4B,kBAAA,CAAUO,KAAV,CAAgB,CAAC,IAAD,EAAO,MAAP,EAAe,MAAf,EAAuB,OAAvB,CAAhB,CAvFF;;EAwFnB;AACF;AACA;EACE5B,MAAM,EAAEqB,kBAAA,CAAUY,MA3FC;;EA4FnB;AACF;AACA;EACEhC,kBAAkB,EAAEoB,kBAAA,CAAUa,UAAV,CAAqBC,MAArB;AA/FD,CAArB;;eAkGe,IAAAC,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAyCvD,QAAzC,C"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionContainer.js","names":["ActionContainer","id","classes","onClose","action","actionCallback","others","actionContainer","closeAction","iconContainer","actionsInnerContainer","propTypes","PropTypes","string","instanceOf","Object","func","oneOfType","node","arrayOf","shape","isRequired","label","icon","disabled","bool","withStyles","styles","name"],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"ActionContainer.js","names":["ActionContainer","id","classes","onClose","action","actionCallback","others","actionContainer","closeAction","iconContainer","actionsInnerContainer","propTypes","PropTypes","string","instanceOf","Object","func","oneOfType","node","arrayOf","shape","isRequired","label","icon","disabled","bool","withStyles","styles","name"],"sources":["../../../../src/Banner/BannerContent/ActionContainer/ActionContainer.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes, { oneOfType } from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport { Close } from \"@hitachivantara/uikit-react-icons\";\nimport ActionsGeneric from \"../../../ActionsGeneric\";\nimport HvButton from \"../../../Button\";\nimport styles from \"./styles\";\n\nconst ActionContainer = ({ id, classes, onClose, action, actionCallback, ...others }) => {\n return (\n <div className={classes.actionContainer}>\n <HvButton\n icon\n className={classes.closeAction}\n category=\"semantic\"\n aria-label=\"Close\"\n onClick={onClose}\n tabIndex={0}\n {...others}\n >\n <Close iconSize=\"XS\" className={classes.iconContainer} color=\"base2\" />\n </HvButton>\n {action && (\n <div className={classes.actionsInnerContainer}>\n <ActionsGeneric\n id={id}\n category=\"semantic\"\n actions={action}\n actionsCallback={actionCallback}\n />\n </div>\n )}\n </div>\n );\n};\n\nActionContainer.propTypes = {\n /**\n * Identifier.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied to the button.\n */\n classes: PropTypes.instanceOf(Object),\n /**\n * onClose function.\n */\n onClose: PropTypes.func,\n /**\n * Actions to display.\n */\n action: oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n icon: PropTypes.func,\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionCallback: PropTypes.func,\n};\n\nexport default withStyles(styles, { name: \"HvActionContainer\" })(ActionContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,eAAe,GAAG,SAAlBA,eAAkB,OAAiE;EAAA,IAA9DC,EAA8D,QAA9DA,EAA8D;EAAA,IAA1DC,OAA0D,QAA1DA,OAA0D;EAAA,IAAjDC,OAAiD,QAAjDA,OAAiD;EAAA,IAAxCC,MAAwC,QAAxCA,MAAwC;EAAA,IAAhCC,cAAgC,QAAhCA,cAAgC;EAAA,IAAbC,MAAa;EACvF,oBACE;IAAK,SAAS,EAAEJ,OAAO,CAACK;EAAxB,gBACE,6B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AEC,IAAI,EAAE;AAAR,CAAnB,EAAkD5B,eAAlD,C"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/Banner/BannerContent/ActionContainer/index.js"],"sourcesContent":["export { default } from \"./ActionContainer\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","actionContainer","display","flexDirection","height","justifyContent","actionsInnerContainer","marginTop","closeAction","alignSelf","cursor","backgroundColor","fade","hv","palette","base","base1","outlineStyles","iconContainer","width"],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","actionContainer","display","flexDirection","height","justifyContent","actionsInnerContainer","marginTop","closeAction","alignSelf","cursor","backgroundColor","fade","hv","palette","base","base1","outlineStyles","iconContainer","width"],"sources":["../../../../src/Banner/BannerContent/ActionContainer/styles.js"],"sourcesContent":["import fade from \"../../../utils/hexToRgbA\";\nimport { outlineStyles } from \"../../../Focus/styles\";\n\nconst styles = (theme) => ({\n actionContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\",\n justifyContent: \"space-between\",\n },\n actionsInnerContainer: {\n flexDirection: \"row\",\n marginTop: \"8px\", // avoid overlap with close button outline focus ring\n },\n closeAction: {\n alignSelf: \"flex-end\",\n cursor: \"pointer\",\n \"&:hover\": {\n backgroundColor: fade(theme.hv.palette.base.base1, 0.3),\n },\n \"&:focus\": {\n ...outlineStyles,\n },\n },\n iconContainer: {\n width: \"32px\",\n height: \"32px\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,eAAe,EAAE;MACfC,OAAO,EAAE,MADM;MAEfC,aAAa,EAAE,QAFA;MAGfC,MAAM,EAAE,MAHO;MAIfC,cAAc,EAAE;IAJD,CADQ;IAOzBC,qBAAqB,EAAE;MACrBH,aAAa,EAAE,KADM;MAErBI,SAAS,EAAE,KAFU,CAEH;;IAFG,CAPE;IAWzBC,WAAW,EAAE;MACXC,SAAS,EAAE,UADA;MAEXC,MAAM,EAAE,SAFG;MAGX,WAAW;QACTC,eAAe,EAAE,IAAAC,kBAAA,EAAKZ,KAAK,CAACa,EAAN,CAASC,OAAT,CAAiBC,IAAjB,CAAsBC,KAA3B,EAAkC,GAAlC;MADR,CAHA;MAMX,6BACKC,qBADL;IANW,CAXY;IAqBzBC,aAAa,EAAE;MACbC,KAAK,EAAE,MADM;MAEbf,MAAM,EAAE;IAFK;EArBU,CAAZ;AAAA,CAAf;;eA2BeL,M"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps, SnackbarContentProps } from "@material-ui/core";
|
|
3
|
+
import {
|
|
4
|
+
ActionsPositionProp,
|
|
5
|
+
HvActionsGenericCommonProps,
|
|
6
|
+
HvButtonProps,
|
|
7
|
+
NotificationsCommonProps,
|
|
8
|
+
SemanticVariantTypes,
|
|
9
|
+
} from "../..";
|
|
10
|
+
|
|
11
|
+
export type HvBannerContentClassKey =
|
|
12
|
+
| "root"
|
|
13
|
+
| "message"
|
|
14
|
+
| "action"
|
|
15
|
+
| "baseVariant"
|
|
16
|
+
| "outContainer"
|
|
17
|
+
| SemanticVariantTypes;
|
|
18
|
+
|
|
19
|
+
export interface HvBannerContentProps
|
|
20
|
+
extends StandardProps<SnackbarContentProps, HvBannerContentClassKey>,
|
|
21
|
+
HvActionsGenericCommonProps,
|
|
22
|
+
Pick<NotificationsCommonProps, "showIcon" | "customIcon"> {
|
|
23
|
+
/**
|
|
24
|
+
* The position property of the header.
|
|
25
|
+
*/
|
|
26
|
+
actionsPosition?: ActionsPositionProp;
|
|
27
|
+
/**
|
|
28
|
+
* The message to display.
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* onClose function.
|
|
33
|
+
*/
|
|
34
|
+
onClose?: HvButtonProps["onClick"];
|
|
35
|
+
/**
|
|
36
|
+
* The props to pass down to the Action Container.
|
|
37
|
+
*/
|
|
38
|
+
actionProps?: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default function HvBannerContent(props: HvBannerContentProps): JSX.Element | null;
|
package/dist/Banner/{BannerWrapper/BannerContentWrapper.js → BannerContent/BannerContent.js}
RENAMED
|
@@ -47,7 +47,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
47
47
|
|
|
48
48
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var HvBannerContent = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
51
51
|
var id = props.id,
|
|
52
52
|
classes = props.classes,
|
|
53
53
|
_props$showIcon = props.showIcon,
|
|
@@ -99,7 +99,7 @@ var HvBannerContentWrapper = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
99
99
|
}, others)));
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
process.env.NODE_ENV !== "production" ?
|
|
102
|
+
process.env.NODE_ENV !== "production" ? HvBannerContent.propTypes = {
|
|
103
103
|
/**
|
|
104
104
|
* Identifier.
|
|
105
105
|
*/
|
|
@@ -162,8 +162,8 @@ process.env.NODE_ENV !== "production" ? HvBannerContentWrapper.propTypes = {
|
|
|
162
162
|
} : void 0;
|
|
163
163
|
|
|
164
164
|
var _default = (0, _core.withStyles)(_styles.default, {
|
|
165
|
-
name: "
|
|
166
|
-
})(
|
|
165
|
+
name: "HvBannerContent"
|
|
166
|
+
})(HvBannerContent);
|
|
167
167
|
|
|
168
168
|
exports.default = _default;
|
|
169
|
-
//# sourceMappingURL=
|
|
169
|
+
//# sourceMappingURL=BannerContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerContent.js","names":["HvBannerContent","React","forwardRef","props","ref","id","classes","showIcon","customIcon","variant","onClose","actions","actionsCallback","actionsPosition","content","actionProps","others","icon","iconVariant","effectiveActionsPosition","outContainer","root","message","action","clsx","baseVariant","actionsOnMessage","actionsOnMessageCallback","actionCallback","propTypes","PropTypes","string","instanceOf","Object","node","oneOf","bool","func","oneOfType","arrayOf","shape","isRequired","label","disabled","withStyles","styles","name"],"sources":["../../../src/Banner/BannerContent/BannerContent.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes, { oneOfType } from \"prop-types\";\nimport clsx from \"clsx\";\nimport { SnackbarContent, withStyles } from \"@material-ui/core\";\nimport iconVariant from \"../../utils/iconVariant\";\nimport MessageContainer from \"./MessageContainer\";\nimport ActionContainer from \"./ActionContainer\";\nimport styles from \"./styles\";\n\nconst HvBannerContent = React.forwardRef((props, ref) => {\n const {\n id,\n classes,\n showIcon = false,\n customIcon,\n variant = \"default\",\n onClose,\n actions,\n actionsCallback,\n actionsPosition = \"auto\",\n content,\n actionProps,\n ...others\n } = props;\n\n const icon = customIcon || (showIcon && iconVariant(variant, \"base2\"));\n\n // default to inline\n // this might try to be more intelligent in the future,\n // taking into account the content length, available space,\n // number of actions, etc..\n const effectiveActionsPosition = actionsPosition === \"auto\" ? \"inline\" : actionsPosition;\n\n return (\n <div className={classes.outContainer}>\n <SnackbarContent\n ref={ref}\n id={id}\n classes={{\n root: classes.root,\n message: classes.message,\n action: classes.action,\n }}\n className={clsx(classes[variant], classes.baseVariant)}\n message={\n <MessageContainer\n id={id}\n icon={icon}\n {...(effectiveActionsPosition === \"inline\" && {\n actionsOnMessage: actions,\n actionsOnMessageCallback: actionsCallback,\n })}\n message={content}\n />\n }\n action={\n <ActionContainer\n id={id}\n onClose={onClose}\n {...(effectiveActionsPosition === \"bottom-right\" && {\n action: actions,\n actionCallback: actionsCallback,\n })}\n {...actionProps}\n />\n }\n {...others}\n />\n </div>\n );\n});\n\nHvBannerContent.propTypes = {\n /**\n * Identifier.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied to the component.\n */\n classes: PropTypes.instanceOf(Object),\n /**\n * The message to display.\n */\n content: PropTypes.node,\n /**\n * Variant of the snackbar.\n */\n variant: PropTypes.oneOf([\"success\", \"warning\", \"error\", \"info\", \"default\"]),\n /**\n * Controls if the associated icon to the variant should be shown.\n */\n showIcon: PropTypes.bool,\n /**\n * Custom icon to replace the variant default.\n */\n customIcon: PropTypes.node,\n /**\n * onClose function.\n */\n onClose: PropTypes.func,\n /**\n * Actions to display on the right side.\n */\n actions: oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n icon: PropTypes.func,\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `action` as param\n */\n actionsCallback: PropTypes.func,\n /**\n * The position property of the header.\n */\n actionsPosition: PropTypes.PropTypes.oneOf([\"auto\", \"inline\", \"bottom-right\"]),\n /**\n * The props to pass down to the Action Container.\n */\n actionProps: PropTypes.instanceOf(Object),\n};\n\nexport default withStyles(styles, { name: \"HvBannerContent\" })(HvBannerContent);\n"],"mappings":";;;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BAAA,CAAUI,IADO,EAEjBJ,kBAAA,CAAUS,OAAV,CACET,kBAAA,CAAUU,KAAV,CAAgB;IACdnC,EAAE,EAAEyB,kBAAA,CAAUC,MAAV,CAAiBU,UADP;IAEdC,KAAK,EAAEZ,kBAAA,CAAUC,MAAV,CAAiBU,UAFV;IAGdxB,IAAI,EAAEa,kBAAA,CAAUO,IAHF;IAIdM,QAAQ,EAAEb,kBAAA,CAAUM;EAJN,CAAhB,CADF,CAFiB,CAAV,CAhCiB;;EA2C1B;AACF;AACA;EACExB,eAAe,EAAEkB,kBAAA,CAAUO,IA9CD;;EA+C1B;AACF;AACA;EACExB,eAAe,EAAEiB,kBAAA,CAAUA,SAAV,CAAoBK,KAApB,CAA0B,CAAC,MAAD,EAAS,QAAT,EAAmB,cAAnB,CAA1B,CAlDS;;EAmD1B;AACF;AACA;EACEpB,WAAW,EAAEe,kBAAA,CAAUE,UAAV,CAAqBC,MAArB;AAtDa,CAA5B;;eAyDe,IAAAW,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAgD9C,eAAhD,C"}
|
|
File without changes
|
package/dist/Banner/{BannerWrapper → BannerContent}/MessageContainer/MessageContainer.js.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageContainer.js","names":["MessageContainer","id","classes","icon","actionsOnMessage","actionsOnMessageCallback","message","iconContainer","setId","actionMessageContainer","propTypes","PropTypes","string","instanceOf","Object","node","oneOfType","arrayOf","shape","isRequired","label","func","disabled","bool","withStyles","styles","name"],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"MessageContainer.js","names":["MessageContainer","id","classes","icon","actionsOnMessage","actionsOnMessageCallback","message","iconContainer","setId","actionMessageContainer","propTypes","PropTypes","string","instanceOf","Object","node","oneOfType","arrayOf","shape","isRequired","label","func","disabled","bool","withStyles","styles","name"],"sources":["../../../../src/Banner/BannerContent/MessageContainer/MessageContainer.js"],"sourcesContent":["import React from \"react\";\nimport PropTypes, { oneOfType } from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport HvTypography from \"../../../Typography\";\nimport ActionsGeneric from \"../../../ActionsGeneric\";\nimport { setId } from \"../../../utils\";\nimport styles from \"./styles\";\n\nconst MessageContainer = ({\n id,\n classes,\n icon,\n actionsOnMessage,\n actionsOnMessageCallback,\n message,\n}) => (\n <>\n {icon && <div className={classes.iconContainer}>{icon}</div>}\n <HvTypography id={setId(id, \"message-text\")} className={classes.message}>\n {message}\n </HvTypography>\n {actionsOnMessage && (\n <div id={setId(id, \"message-actions\")} className={classes.actionMessageContainer}>\n <ActionsGeneric\n id={id}\n category=\"semantic\"\n actions={actionsOnMessage}\n actionsCallback={actionsOnMessageCallback}\n />\n </div>\n )}\n </>\n);\n\nMessageContainer.propTypes = {\n /**\n * Identifier.\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied to the button.\n */\n classes: PropTypes.instanceOf(Object),\n /**\n * Icon to be presented.\n */\n icon: PropTypes.node,\n /**\n * The message to display.\n */\n message: PropTypes.node,\n /**\n * Actions to display on message.\n */\n actionsOnMessage: oneOfType([\n PropTypes.node,\n PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n icon: PropTypes.func,\n disabled: PropTypes.bool,\n })\n ),\n ]),\n /**\n * The callback function ran when an action is triggered, receiving `actionsOnMessage` as param\n */\n actionsOnMessageCallback: PropTypes.func,\n};\n\nexport default withStyles(styles, { name: \"HvMessageContainer\" })(MessageContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB;EAAA,IACvBC,EADuB,QACvBA,EADuB;EAAA,IAEvBC,OAFuB,QAEvBA,OAFuB;EAAA,IAGvBC,IAHuB,QAGvBA,IAHuB;EAAA,IAIvBC,gBAJuB,Q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Y;EAJN,CAAhB,CADF,CAF0B,CAAV,CApBS;;EA+B3B;AACF;AACA;EACElB,wBAAwB,EAAEM,kBAAA,CAAUU;AAlCT,CAA7B;;eAqCe,IAAAG,gBAAA,EAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAAmD1B,gBAAnD,C"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/Banner/BannerContent/MessageContainer/index.js"],"sourcesContent":["export { default } from \"./MessageContainer\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","message","color","hv","palette","base","base2","wordBreak","maxWidth","overflow","marginRight","iconContainer","spacing","xs","marginLeft","actionMessageContainer","flex"],"sources":["../../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","message","color","hv","palette","base","base2","wordBreak","maxWidth","overflow","marginRight","iconContainer","spacing","xs","marginLeft","actionMessageContainer","flex"],"sources":["../../../../src/Banner/BannerContent/MessageContainer/styles.js"],"sourcesContent":["const styles = (theme) => ({\n message: {\n color: theme.hv.palette.base.base2,\n wordBreak: \"break-word\",\n maxWidth: \"700px\",\n overflow: \"hidden\",\n marginRight: 10,\n },\n iconContainer: {\n marginRight: theme.hv.spacing.xs,\n marginLeft: -theme.hv.spacing.xs,\n },\n actionMessageContainer: {\n flex: \"0 0 auto\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,OAAO,EAAE;MACPC,KAAK,EAAEF,KAAK,CAACG,EAAN,CAASC,OAAT,CAAiBC,IAAjB,CAAsBC,KADtB;MAEPC,SAAS,EAAE,YAFJ;MAGPC,QAAQ,EAAE,OAHH;MAIPC,QAAQ,EAAE,QAJH;MAKPC,WAAW,EAAE;IALN,CADgB;IAQzBC,aAAa,EAAE;MACbD,WAAW,EAAEV,KAAK,CAACG,EAAN,CAASS,OAAT,CAAiBC,EADjB;MAEbC,UAAU,EAAE,CAACd,KAAK,CAACG,EAAN,CAASS,OAAT,CAAiBC;IAFjB,CARU;IAYzBE,sBAAsB,EAAE;MACtBC,IAAI,EAAE;IADgB;EAZC,CAAZ;AAAA,CAAf;;eAiBejB,M"}
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
Object.defineProperty(exports, "default", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _BannerContent.default;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _BannerContent = _interopRequireDefault(require("./BannerContent"));
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/Banner/BannerContent/index.js"],"sourcesContent":["export { default } from \"./BannerContent\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
|
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","names":["styles","theme","root","minWidth","position","display","flexWrap","message","alignItems","padding","hvSpacing","paddingLeft","hv","spacing","sm","action","marginRight","flex","placeSelf","baseVariant","success","backgroundColor","palette","semantic","sema8","warning","sema20","error","sema9","default","sema7","outContainer","width"],"sources":["../../../src/Banner/
|
|
1
|
+
{"version":3,"file":"styles.js","names":["styles","theme","root","minWidth","position","display","flexWrap","message","alignItems","padding","hvSpacing","paddingLeft","hv","spacing","sm","action","marginRight","flex","placeSelf","baseVariant","success","backgroundColor","palette","semantic","sema8","warning","sema20","error","sema9","default","sema7","outContainer","width"],"sources":["../../../src/Banner/BannerContent/styles.js"],"sourcesContent":["const styles = (theme) => ({\n root: {\n minWidth: \"100%\",\n position: \"relative\",\n display: \"flex\",\n flexWrap: \"nowrap\",\n },\n message: {\n display: \"flex\",\n alignItems: \"center\",\n padding: theme.hvSpacing(\"xs\", 0),\n paddingLeft: theme.hv.spacing.sm,\n },\n action: {\n padding: theme.hvSpacing(\"xs\"),\n marginRight: 0,\n flex: \"0 0 auto\",\n placeSelf: \"stretch\",\n },\n baseVariant: {\n padding: 0,\n },\n success: {\n backgroundColor: theme.hv.palette.semantic.sema8,\n },\n warning: {\n backgroundColor: theme.hv.palette.semantic.sema20,\n },\n error: {\n backgroundColor: theme.hv.palette.semantic.sema9,\n },\n default: {\n backgroundColor: theme.hv.palette.semantic.sema7,\n },\n outContainer: {\n width: \"100%\",\n position: \"relative\",\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;AAAA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,QAAQ,EAAE,MADN;MAEJC,QAAQ,EAAE,UAFN;MAGJC,OAAO,EAAE,MAHL;MAIJC,QAAQ,EAAE;IAJN,CADmB;IAOzBC,OAAO,EAAE;MACPF,OAAO,EAAE,MADF;MAEPG,UAAU,EAAE,QAFL;MAGPC,OAAO,EAAER,KAAK,CAACS,SAAN,CAAgB,IAAhB,EAAsB,CAAtB,CAHF;MAIPC,WAAW,EAAEV,KAAK,CAACW,EAAN,CAASC,OAAT,CAAiBC;IAJvB,CAPgB;IAazBC,MAAM,EAAE;MACNN,OAAO,EAAER,KAAK,CAACS,SAAN,CAAgB,IAAhB,CADH;MAENM,WAAW,EAAE,CAFP;MAGNC,IAAI,EAAE,UAHA;MAINC,SAAS,EAAE;IAJL,CAbiB;IAmBzBC,WAAW,EAAE;MACXV,OAAO,EAAE;IADE,CAnBY;IAsBzBW,OAAO,EAAE;MACPC,eAAe,EAAEpB,KAAK,CAACW,EAAN,CAASU,OAAT,CAAiBC,QAAjB,CAA0BC;IADpC,CAtBgB;IAyBzBC,OAAO,EAAE;MACPJ,eAAe,EAAEpB,KAAK,CAACW,EAAN,CAASU,OAAT,CAAiBC,QAAjB,CAA0BG;IADpC,CAzBgB;IA4BzBC,KAAK,EAAE;MACLN,eAAe,EAAEpB,KAAK,CAACW,EAAN,CAASU,OAAT,CAAiBC,QAAjB,CAA0BK;IADtC,CA5BkB;IA+BzBC,OAAO,EAAE;MACPR,eAAe,EAAEpB,KAAK,CAACW,EAAN,CAASU,OAAT,CAAiBC,QAAjB,CAA0BO;IADpC,CA/BgB;IAkCzBC,YAAY,EAAE;MACZC,KAAK,EAAE,MADK;MAEZ5B,QAAQ,EAAE;IAFE;EAlCW,CAAZ;AAAA,CAAf;;eAwCeJ,M"}
|
package/dist/Banner/index.d.ts
CHANGED
package/dist/Banner/index.js
CHANGED
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
Object.defineProperty(exports, "HvBannerContent", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _BannerContent.default;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "default", {
|
|
@@ -20,5 +20,5 @@ Object.defineProperty(exports, "default", {
|
|
|
20
20
|
|
|
21
21
|
var _Banner = _interopRequireDefault(require("./Banner"));
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _BannerContent = _interopRequireDefault(require("./BannerContent"));
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/dist/Banner/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/Banner/index.js"],"sourcesContent":["export { default } from \"./Banner\";\nexport { default as HvBannerContent } from \"./
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/Banner/index.js"],"sourcesContent":["export { default } from \"./Banner\";\nexport { default as HvBannerContent } from \"./BannerContent\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;AACA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
import { FilterValue, HvBaseDropdownProps } from "../..";
|
|
4
|
+
|
|
5
|
+
export type HvFilterContentClassKey =
|
|
6
|
+
| "root"
|
|
7
|
+
| "panel"
|
|
8
|
+
| "actionBar"
|
|
9
|
+
| "space"
|
|
10
|
+
| "header"
|
|
11
|
+
| "baseDropdownSelection"
|
|
12
|
+
| "leftSidePanel"
|
|
13
|
+
| "rightSidePanel";
|
|
14
|
+
|
|
15
|
+
export interface HvFilterContentProps
|
|
16
|
+
extends StandardProps<HvBaseDropdownProps, HvFilterContentClassKey, "onChange"> {
|
|
17
|
+
description?: React.ReactNode;
|
|
18
|
+
status?: "standBy" | "valid" | "invalid";
|
|
19
|
+
|
|
20
|
+
onChange?: (evt: React.MouseEventHandler<HTMLButtonElement>, filterValues: FilterValue[]) => void;
|
|
21
|
+
onCancel?: (evt: any[]) => void;
|
|
22
|
+
onClear?: (evt: React.MouseEventHandler<HTMLButtonElement>) => void;
|
|
23
|
+
|
|
24
|
+
labels?: {
|
|
25
|
+
applyLabel?: string;
|
|
26
|
+
cancelLabel?: string;
|
|
27
|
+
clearLabel?: string;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
searchBoxPlaceholder?: string;
|
|
30
|
+
selectAll?: string;
|
|
31
|
+
multiSelectionConjunction?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
horizontalPlacement?: "left" | "right";
|
|
35
|
+
disablePortal?: boolean;
|
|
36
|
+
escapeWithReference?: boolean;
|
|
37
|
+
height?: any;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Element to render when there are no filters
|
|
41
|
+
*/
|
|
42
|
+
leftEmptyElement?: React.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Element to render when the selected filter has no values
|
|
45
|
+
*/
|
|
46
|
+
rightEmptyElement?: React.ReactNode;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export default function HvFilterContent(props: HvFilterContentProps): JSX.Element | null;
|
|
@@ -59,7 +59,7 @@ var _ = require("../..");
|
|
|
59
59
|
|
|
60
60
|
var _Filters, _Counter;
|
|
61
61
|
|
|
62
|
-
var _excluded = ["id", "status", "disabled", "aria-label", "aria-labelledby", "description", "aria-describedby", "onChange", "onCancel", "onClear", "labels", "horizontalPlacement", "disablePortal", "escapeWithReference", "height"];
|
|
62
|
+
var _excluded = ["id", "status", "disabled", "aria-label", "aria-labelledby", "description", "aria-describedby", "onChange", "onCancel", "onClear", "labels", "horizontalPlacement", "disablePortal", "escapeWithReference", "height", "leftEmptyElement", "rightEmptyElement"];
|
|
63
63
|
|
|
64
64
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
65
65
|
|
|
@@ -85,6 +85,8 @@ var FilterContent = function FilterContent(_ref) {
|
|
|
85
85
|
_ref$escapeWithRefere = _ref.escapeWithReference,
|
|
86
86
|
escapeWithReference = _ref$escapeWithRefere === void 0 ? true : _ref$escapeWithRefere,
|
|
87
87
|
height = _ref.height,
|
|
88
|
+
leftEmptyElement = _ref.leftEmptyElement,
|
|
89
|
+
rightEmptyElement = _ref.rightEmptyElement,
|
|
88
90
|
others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
89
91
|
var classes = (0, _styles.default)();
|
|
90
92
|
|
|
@@ -183,10 +185,12 @@ var FilterContent = function FilterContent(_ref) {
|
|
|
183
185
|
}
|
|
184
186
|
}, /*#__PURE__*/_react.default.createElement(_LeftPanel.default, {
|
|
185
187
|
id: id,
|
|
186
|
-
className: classes.leftSidePanel
|
|
188
|
+
className: classes.leftSidePanel,
|
|
189
|
+
emptyElement: leftEmptyElement
|
|
187
190
|
}), /*#__PURE__*/_react.default.createElement(_RightPanel.default, {
|
|
188
191
|
id: id,
|
|
189
192
|
className: classes.rightSidePanel,
|
|
193
|
+
emptyElement: rightEmptyElement,
|
|
190
194
|
labels: labels
|
|
191
195
|
})), /*#__PURE__*/_react.default.createElement(_.HvActionBar, {
|
|
192
196
|
className: classes.actionBar
|
|
@@ -233,7 +237,9 @@ process.env.NODE_ENV !== "production" ? FilterContent.propTypes = {
|
|
|
233
237
|
horizontalPlacement: _propTypes.default.oneOf(["left", "right"]),
|
|
234
238
|
disablePortal: _propTypes.default.bool,
|
|
235
239
|
escapeWithReference: _propTypes.default.bool,
|
|
236
|
-
height: _propTypes.default.any
|
|
240
|
+
height: _propTypes.default.any,
|
|
241
|
+
leftEmptyElement: _propTypes.default.node,
|
|
242
|
+
rightEmptyElement: _propTypes.default.node
|
|
237
243
|
} : void 0;
|
|
238
244
|
var _default = FilterContent;
|
|
239
245
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterContent.js","names":["FilterContent","id","status","disabled","ariaLabel","ariaLabelledBy","description","ariaDescribedBy","onChange","onCancel","onClear","labels","horizontalPlacement","disablePortal","escapeWithReference","height","others","classes","useStyles","useState","filterGroupOpen","setFilterGroupOpen","useContext","FilterGroupContext","defaultValue","filterValues","rollbackFilters","clearFilters","applyFilters","applyDisabled","focusTarget","useRef","focusOnContainer","current","focus","onApplyHandler","evt","onCancelHandler","onClearHandler","handleToggle","open","Header","useMemo","placeholder","setId","root","dropdown","panel","selection","baseDropdownSelection","header","modifiers","name","enabled","undefined","join","trim","leftSidePanel","rightSidePanel","actionBar","flat","length","clearLabel","space","applyLabel","cancelLabel","propTypes","PropTypes","string","node","bool","oneOf","func","shape","searchBoxPlaceholder","selectAll","multiSelectionConjunction","any"],"sources":["../../../src/FilterGroup/FilterContent/FilterContent.js"],"sourcesContent":["import React, { useMemo, useState, useRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Filters } from \"@hitachivantara/uikit-react-icons\";\nimport { FilterGroupContext } from \"../FilterGroupContext\";\nimport LeftPanel from \"../LeftPanel\";\nimport RightPanel from \"../RightPanel\";\nimport Counter from \"../Counter\";\n\nimport useStyles from \"./styles\";\n\nimport { setId, HvBaseDropdown, HvTypography, HvButton, HvActionBar } from \"../..\";\n\nconst FilterContent = ({\n id,\n status,\n disabled = false,\n\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n description,\n \"aria-describedby\": ariaDescribedBy,\n\n onChange,\n onCancel,\n onClear,\n\n labels,\n\n horizontalPlacement = \"right\",\n disablePortal = true,\n escapeWithReference = true,\n\n height,\n\n ...others\n}) => {\n const classes = useStyles();\n const [filterGroupOpen, setFilterGroupOpen] = useState(false);\n\n const { defaultValue, filterValues, rollbackFilters, clearFilters, applyFilters, applyDisabled } =\n useContext(FilterGroupContext);\n\n const focusTarget = useRef();\n\n const focusOnContainer = () => {\n focusTarget.current?.focus();\n };\n\n const onApplyHandler = (evt) => {\n applyFilters();\n onChange?.(evt, filterValues);\n setFilterGroupOpen(false);\n };\n\n const onCancelHandler = (evt) => {\n rollbackFilters();\n onCancel?.(evt);\n setFilterGroupOpen(false);\n };\n\n const onClearHandler = (evt) => {\n clearFilters();\n onClear?.(evt);\n };\n\n const handleToggle = (evt, open) => {\n /* \n If evt is null this toggle wasn't triggered by the user.\n instead it was triggered by the baseDropdown useEffect after\n the datepicker changed the expanded value this baseDropdown behavior needs a review\n */\n if (evt === null) return;\n setFilterGroupOpen(open);\n if (!open) onCancelHandler?.(evt);\n };\n\n const Header = useMemo(\n () => (\n <>\n <Filters />\n <HvTypography variant=\"highlightText\">{labels.placeholder}</HvTypography>\n </>\n ),\n [labels.placeholder]\n );\n\n return (\n <HvBaseDropdown\n id={setId(id, \"dropdown\")}\n role=\"combobox\"\n classes={{\n root: classes.dropdown,\n panel: classes.panel,\n selection: classes.baseDropdownSelection,\n header: classes.header,\n }}\n disabled={disabled}\n disablePortal={disablePortal}\n variableWidth\n placement={horizontalPlacement}\n expanded={filterGroupOpen}\n onToggle={handleToggle}\n onClickOutside={onCancelHandler}\n onContainerCreation={focusOnContainer}\n placeholder={Header}\n adornment={<Counter />}\n popperProps={{ modifiers: [{ name: \"preventOverflow\", enabled: escapeWithReference }] }}\n aria-haspopup=\"dialog\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-invalid={status === \"invalid\" ? true : undefined}\n aria-errormessage={status === \"invalid\" ? setId(id, \"error\") : undefined}\n aria-describedby={\n [description && setId(id, \"description\"), ariaDescribedBy].join(\" \").trim() || undefined\n }\n {...others}\n >\n <div ref={focusTarget} tabIndex={-1} />\n <div className={classes.root} style={{ height }}>\n <LeftPanel id={id} className={classes.leftSidePanel} />\n <RightPanel id={id} className={classes.rightSidePanel} labels={labels} />\n </div>\n <HvActionBar className={classes.actionBar}>\n <HvButton\n id={setId(id, \"clearFilters-button\")}\n disabled={\n defaultValue\n ? defaultValue?.flat().length === filterValues?.flat().length\n : filterValues?.flat().length === 0\n }\n category=\"ghost\"\n onClick={onClearHandler}\n >\n {labels.clearLabel}\n </HvButton>\n <div aria-hidden=\"true\" className={classes.space}>\n \n </div>\n <HvButton\n id={setId(id, \"apply-button\")}\n disabled={applyDisabled}\n category=\"ghost\"\n onClick={onApplyHandler}\n >\n {labels.applyLabel}\n </HvButton>\n <HvButton id={setId(id, \"cancel-button\")} category=\"ghost\" onClick={onCancelHandler}>\n {labels.cancelLabel}\n </HvButton>\n </HvActionBar>\n </HvBaseDropdown>\n );\n};\n\nFilterContent.propTypes = {\n id: PropTypes.string,\n\n \"aria-label\": PropTypes.string,\n \"aria-labelledby\": PropTypes.string,\n description: PropTypes.node,\n \"aria-describedby\": PropTypes.string,\n disabled: PropTypes.bool,\n status: PropTypes.oneOf([\"standBy\", \"valid\", \"invalid\"]),\n\n onChange: PropTypes.func,\n onCancel: PropTypes.func,\n onClear: PropTypes.func,\n\n labels: PropTypes.shape({\n applyLabel: PropTypes.string,\n cancelLabel: PropTypes.string,\n clearLabel: PropTypes.string,\n placeholder: PropTypes.string,\n searchBoxPlaceholder: PropTypes.string,\n selectAll: PropTypes.string,\n multiSelectionConjunction: PropTypes.string,\n }),\n\n horizontalPlacement: PropTypes.oneOf([\"left\", \"right\"]),\n disablePortal: PropTypes.bool,\n escapeWithReference: PropTypes.bool,\n height: PropTypes.any,\n};\n\nexport default FilterContent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;;;;;;;;;AAEA,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,OAuBhB;EAAA,IAtBJC,EAsBI,QAtBJA,EAsBI;EAAA,IArBJC,MAqBI,QArBJA,MAqBI;EAAA,yBApBJC,QAoBI;EAAA,IApBJA,QAoBI,8BApBO,KAoBP;EAAA,IAlBUC,SAkBV,QAlBJ,YAkBI;EAAA,IAjBeC,cAiBf,QAjBJ,iBAiBI;EAAA,IAhBJC,WAgBI,QAhBJA,WAgBI;EAAA,IAfgBC,eAehB,QAfJ,kBAeI;EAAA,IAbJC,QAaI,QAbJA,QAaI;EAAA,IAZJC,QAYI,QAZJA,QAYI;EAAA,IAXJC,OAWI,QAXJA,OAWI;EAAA,IATJC,MASI,QATJA,MASI;EAAA,iCAPJC,mBAOI;EAAA,IAPJA,mBAOI,sCAPkB,OAOlB;EAAA,8BANJC,aAMI;EAAA,IANJA,aAMI,mCANY,IAMZ;EAAA,iCALJC,mBAKI;EAAA,IALJA,mBAKI,sCALkB,IAKlB;EAAA,IAHJC,MAGI,QAHJA,MAGI;EAAA,IADDC,MACC;EACJ,IAAMC,OAAO,GAAG,IAAAC,eAAA,GAAhB;;EACA,gBAA8C,IAAAC,eAAA,EAAS,KAAT,CAA9C;EAAA;EAAA,IAAOC,eAAP;EAAA,IAAwBC,kBAAxB;;EAEA,kBACE,IAAA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AgB,CAAC,MAAD,EAAS,OAAT,CAAhB,CAxBG;EAyBxB1D,aAAa,EAAEsD,kBAAA,CAAUG,IAzBD;EA0BxBxD,mBAAmB,EAAEqD,kBAAA,CAAUG,IA1BP;EA2BxBvD,MAAM,EAAEoD,kBAAA,CAAUU;AA3BM,CAA1B;eA8Be7E,a"}
|
|
1
|
+
{"version":3,"file":"FilterContent.js","names":["FilterContent","id","status","disabled","ariaLabel","ariaLabelledBy","description","ariaDescribedBy","onChange","onCancel","onClear","labels","horizontalPlacement","disablePortal","escapeWithReference","height","leftEmptyElement","rightEmptyElement","others","classes","useStyles","useState","filterGroupOpen","setFilterGroupOpen","useContext","FilterGroupContext","defaultValue","filterValues","rollbackFilters","clearFilters","applyFilters","applyDisabled","focusTarget","useRef","focusOnContainer","current","focus","onApplyHandler","evt","onCancelHandler","onClearHandler","handleToggle","open","Header","useMemo","placeholder","setId","root","dropdown","panel","selection","baseDropdownSelection","header","modifiers","name","enabled","undefined","join","trim","leftSidePanel","rightSidePanel","actionBar","flat","length","clearLabel","space","applyLabel","cancelLabel","propTypes","PropTypes","string","node","bool","oneOf","func","shape","searchBoxPlaceholder","selectAll","multiSelectionConjunction","any"],"sources":["../../../src/FilterGroup/FilterContent/FilterContent.js"],"sourcesContent":["import React, { useMemo, useState, useRef, useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Filters } from \"@hitachivantara/uikit-react-icons\";\nimport { FilterGroupContext } from \"../FilterGroupContext\";\nimport LeftPanel from \"../LeftPanel\";\nimport RightPanel from \"../RightPanel\";\nimport Counter from \"../Counter\";\n\nimport useStyles from \"./styles\";\n\nimport { setId, HvBaseDropdown, HvTypography, HvButton, HvActionBar } from \"../..\";\n\nconst FilterContent = ({\n id,\n status,\n disabled = false,\n\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n description,\n \"aria-describedby\": ariaDescribedBy,\n\n onChange,\n onCancel,\n onClear,\n\n labels,\n\n horizontalPlacement = \"right\",\n disablePortal = true,\n escapeWithReference = true,\n\n height,\n leftEmptyElement,\n rightEmptyElement,\n\n ...others\n}) => {\n const classes = useStyles();\n const [filterGroupOpen, setFilterGroupOpen] = useState(false);\n\n const { defaultValue, filterValues, rollbackFilters, clearFilters, applyFilters, applyDisabled } =\n useContext(FilterGroupContext);\n\n const focusTarget = useRef();\n\n const focusOnContainer = () => {\n focusTarget.current?.focus();\n };\n\n const onApplyHandler = (evt) => {\n applyFilters();\n onChange?.(evt, filterValues);\n setFilterGroupOpen(false);\n };\n\n const onCancelHandler = (evt) => {\n rollbackFilters();\n onCancel?.(evt);\n setFilterGroupOpen(false);\n };\n\n const onClearHandler = (evt) => {\n clearFilters();\n onClear?.(evt);\n };\n\n const handleToggle = (evt, open) => {\n /* \n If evt is null this toggle wasn't triggered by the user.\n instead it was triggered by the baseDropdown useEffect after\n the datepicker changed the expanded value this baseDropdown behavior needs a review\n */\n if (evt === null) return;\n setFilterGroupOpen(open);\n if (!open) onCancelHandler?.(evt);\n };\n\n const Header = useMemo(\n () => (\n <>\n <Filters />\n <HvTypography variant=\"highlightText\">{labels.placeholder}</HvTypography>\n </>\n ),\n [labels.placeholder]\n );\n\n return (\n <HvBaseDropdown\n id={setId(id, \"dropdown\")}\n role=\"combobox\"\n classes={{\n root: classes.dropdown,\n panel: classes.panel,\n selection: classes.baseDropdownSelection,\n header: classes.header,\n }}\n disabled={disabled}\n disablePortal={disablePortal}\n variableWidth\n placement={horizontalPlacement}\n expanded={filterGroupOpen}\n onToggle={handleToggle}\n onClickOutside={onCancelHandler}\n onContainerCreation={focusOnContainer}\n placeholder={Header}\n adornment={<Counter />}\n popperProps={{ modifiers: [{ name: \"preventOverflow\", enabled: escapeWithReference }] }}\n aria-haspopup=\"dialog\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n aria-invalid={status === \"invalid\" ? true : undefined}\n aria-errormessage={status === \"invalid\" ? setId(id, \"error\") : undefined}\n aria-describedby={\n [description && setId(id, \"description\"), ariaDescribedBy].join(\" \").trim() || undefined\n }\n {...others}\n >\n <div ref={focusTarget} tabIndex={-1} />\n <div className={classes.root} style={{ height }}>\n <LeftPanel id={id} className={classes.leftSidePanel} emptyElement={leftEmptyElement} />\n <RightPanel\n id={id}\n className={classes.rightSidePanel}\n emptyElement={rightEmptyElement}\n labels={labels}\n />\n </div>\n <HvActionBar className={classes.actionBar}>\n <HvButton\n id={setId(id, \"clearFilters-button\")}\n disabled={\n defaultValue\n ? defaultValue?.flat().length === filterValues?.flat().length\n : filterValues?.flat().length === 0\n }\n category=\"ghost\"\n onClick={onClearHandler}\n >\n {labels.clearLabel}\n </HvButton>\n <div aria-hidden=\"true\" className={classes.space}>\n \n </div>\n <HvButton\n id={setId(id, \"apply-button\")}\n disabled={applyDisabled}\n category=\"ghost\"\n onClick={onApplyHandler}\n >\n {labels.applyLabel}\n </HvButton>\n <HvButton id={setId(id, \"cancel-button\")} category=\"ghost\" onClick={onCancelHandler}>\n {labels.cancelLabel}\n </HvButton>\n </HvActionBar>\n </HvBaseDropdown>\n );\n};\n\nFilterContent.propTypes = {\n id: PropTypes.string,\n\n \"aria-label\": PropTypes.string,\n \"aria-labelledby\": PropTypes.string,\n description: PropTypes.node,\n \"aria-describedby\": PropTypes.string,\n disabled: PropTypes.bool,\n status: PropTypes.oneOf([\"standBy\", \"valid\", \"invalid\"]),\n\n onChange: PropTypes.func,\n onCancel: PropTypes.func,\n onClear: PropTypes.func,\n\n labels: PropTypes.shape({\n applyLabel: PropTypes.string,\n cancelLabel: PropTypes.string,\n clearLabel: PropTypes.string,\n placeholder: PropTypes.string,\n searchBoxPlaceholder: PropTypes.string,\n selectAll: PropTypes.string,\n multiSelectionConjunction: PropTypes.string,\n }),\n\n horizontalPlacement: PropTypes.oneOf([\"left\", \"right\"]),\n disablePortal: PropTypes.bool,\n escapeWithReference: PropTypes.bool,\n height: PropTypes.any,\n leftEmptyElement: PropTypes.node,\n rightEmptyElement: PropTypes.node,\n};\n\nexport default FilterContent;\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AEsD,kBAAA,CAAUU,GA3BM;EA4BxB/D,gBAAgB,EAAEqD,kBAAA,CAAUE,IA5BJ;EA6BxBtD,iBAAiB,EAAEoD,kBAAA,CAAUE;AA7BL,CAA1B;eAgCevE,a"}
|
|
@@ -47,13 +47,14 @@ var styles = (0, _core.makeStyles)(function (theme) {
|
|
|
47
47
|
space: {
|
|
48
48
|
flex: 1
|
|
49
49
|
},
|
|
50
|
-
baseDropdownSelection: {
|
|
51
|
-
padding: "0 30px 0 0"
|
|
52
|
-
},
|
|
50
|
+
baseDropdownSelection: {},
|
|
53
51
|
header: {
|
|
54
52
|
display: "flex",
|
|
55
53
|
justifyContent: "space-between",
|
|
56
|
-
height: 32
|
|
54
|
+
height: 32,
|
|
55
|
+
"& $baseDropdownSelection": {
|
|
56
|
+
padding: "0 30px 0 0"
|
|
57
|
+
}
|
|
57
58
|
},
|
|
58
59
|
leftSidePanel: {},
|
|
59
60
|
rightSidePanel: {}
|