@hitachivantara/uikit-react-core 5.97.0 → 5.99.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/README.md +1 -1
- package/dist/cjs/AppSwitcher/Action/Action.cjs +4 -1
- package/dist/cjs/BaseRadio/BaseRadio.cjs +2 -2
- package/dist/cjs/BaseSwitch/BaseSwitch.cjs +2 -2
- package/dist/cjs/Card/Header/Header.styles.cjs +3 -1
- package/dist/cjs/CheckBox/CheckBox.cjs +2 -2
- package/dist/cjs/ColorPicker/Fields/Fields.cjs +0 -1
- package/dist/cjs/ColorPicker/Fields/Fields.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/Picker/Picker.cjs +0 -1
- package/dist/cjs/ColorPicker/Picker/Picker.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/PresetColors/PresetColors.cjs +0 -1
- package/dist/cjs/ColorPicker/PresetColors/PresetColors.styles.cjs +1 -3
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.cjs +0 -1
- package/dist/cjs/ColorPicker/SavedColors/SavedColors.styles.cjs +1 -3
- package/dist/cjs/Dialog/Content/Content.cjs +26 -0
- package/dist/cjs/Dialog/Content/Content.styles.cjs +5 -2
- package/dist/cjs/Dialog/Dialog.styles.cjs +3 -1
- package/dist/cjs/Dialog/Title/Title.cjs +2 -2
- package/dist/cjs/DropdownButton/DropdownButton.cjs +2 -2
- package/dist/cjs/QueryBuilder/ConfirmationDialog.cjs +32 -0
- package/dist/cjs/QueryBuilder/QueryBuilder.cjs +4 -4
- package/dist/cjs/QueryBuilder/Rule/{Attribute/Attribute.cjs → Attribute.cjs} +3 -4
- package/dist/cjs/QueryBuilder/Rule/{Operator/Operator.cjs → Operator.cjs} +3 -4
- package/dist/cjs/QueryBuilder/Rule/Rule.cjs +3 -4
- package/dist/cjs/QueryBuilder/Rule/Rule.styles.cjs +46 -50
- package/dist/cjs/QueryBuilder/{RuleGroup/RuleGroup.cjs → RuleGroup.cjs} +9 -9
- package/dist/cjs/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.cjs +3 -5
- package/dist/cjs/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.cjs +67 -40
- package/dist/cjs/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.cjs +1 -1
- package/dist/cjs/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.cjs +33 -8
- package/dist/cjs/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.cjs +9 -5
- package/dist/cjs/QueryBuilder/{Rule/Value → Value}/Value.cjs +7 -9
- package/dist/cjs/Radio/Radio.cjs +3 -3
- package/dist/cjs/Section/Section.cjs +43 -18
- package/dist/cjs/Section/Section.styles.cjs +14 -2
- package/dist/cjs/Select/Select.cjs +2 -2
- package/dist/cjs/StatusIcon/StatusIcon.cjs +45 -0
- package/dist/cjs/StatusIcon/StatusIcon.styles.cjs +57 -0
- package/dist/cjs/Switch/Switch.cjs +1 -1
- package/dist/cjs/Table/TableSection/TableSection.styles.cjs +1 -7
- package/dist/cjs/TagsInput/TagsInput.cjs +2 -2
- package/dist/cjs/TextArea/TextArea.cjs +2 -2
- package/dist/cjs/VerticalNavigation/TreeView/TreeViewItem.cjs +2 -2
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/providers/Provider.cjs +1 -4
- package/dist/cjs/themes/ds3.cjs +23 -0
- package/dist/cjs/themes/ds5.cjs +31 -0
- package/dist/cjs/themes/pentahoPlus.cjs +52 -24
- package/dist/cjs/utils/Callout.cjs +10 -5
- package/dist/esm/AppSwitcher/Action/Action.js +4 -1
- package/dist/esm/BaseRadio/BaseRadio.js +2 -2
- package/dist/esm/BaseSwitch/BaseSwitch.js +2 -2
- package/dist/esm/Card/Header/Header.styles.js +3 -1
- package/dist/esm/CheckBox/CheckBox.js +2 -2
- package/dist/esm/ColorPicker/Fields/Fields.js +1 -3
- package/dist/esm/ColorPicker/Fields/Fields.styles.js +1 -3
- package/dist/esm/ColorPicker/Picker/Picker.js +1 -3
- package/dist/esm/ColorPicker/Picker/Picker.styles.js +1 -3
- package/dist/esm/ColorPicker/PresetColors/PresetColors.js +1 -3
- package/dist/esm/ColorPicker/PresetColors/PresetColors.styles.js +1 -3
- package/dist/esm/ColorPicker/SavedColors/SavedColors.js +1 -3
- package/dist/esm/ColorPicker/SavedColors/SavedColors.styles.js +1 -3
- package/dist/esm/Dialog/Content/Content.js +27 -1
- package/dist/esm/Dialog/Content/Content.styles.js +5 -2
- package/dist/esm/Dialog/Dialog.styles.js +3 -1
- package/dist/esm/Dialog/Title/Title.js +3 -3
- package/dist/esm/DropdownButton/DropdownButton.js +2 -2
- package/dist/esm/QueryBuilder/ConfirmationDialog.js +32 -0
- package/dist/esm/QueryBuilder/QueryBuilder.js +4 -4
- package/dist/esm/QueryBuilder/Rule/{Attribute/Attribute.js → Attribute.js} +4 -5
- package/dist/esm/QueryBuilder/Rule/{Operator/Operator.js → Operator.js} +4 -5
- package/dist/esm/QueryBuilder/Rule/Rule.js +4 -6
- package/dist/esm/QueryBuilder/Rule/Rule.styles.js +47 -51
- package/dist/esm/QueryBuilder/{RuleGroup/RuleGroup.js → RuleGroup.js} +9 -9
- package/dist/esm/QueryBuilder/{Rule/Value/BooleanValue → Value}/BooleanValue.js +3 -5
- package/dist/esm/QueryBuilder/{Rule/Value/DateTimeValue → Value}/DateTimeValue.js +63 -35
- package/dist/esm/QueryBuilder/{Rule/Value/EmptyValue → Value}/EmptyValue.js +1 -1
- package/dist/esm/QueryBuilder/{Rule/Value/NumericValue → Value}/NumericValue.js +33 -8
- package/dist/esm/QueryBuilder/{Rule/Value/TextValue → Value}/TextValue.js +9 -5
- package/dist/esm/QueryBuilder/{Rule/Value → Value}/Value.js +7 -9
- package/dist/esm/Radio/Radio.js +3 -3
- package/dist/esm/Section/Section.js +44 -19
- package/dist/esm/Section/Section.styles.js +14 -2
- package/dist/esm/Select/Select.js +2 -2
- package/dist/esm/StatusIcon/StatusIcon.js +46 -0
- package/dist/esm/StatusIcon/StatusIcon.styles.js +57 -0
- package/dist/esm/Switch/Switch.js +1 -1
- package/dist/esm/Table/TableSection/TableSection.styles.js +1 -7
- package/dist/esm/TagsInput/TagsInput.js +2 -2
- package/dist/esm/TextArea/TextArea.js +2 -2
- package/dist/esm/VerticalNavigation/TreeView/TreeViewItem.js +2 -2
- package/dist/esm/index.js +63 -59
- package/dist/esm/providers/Provider.js +2 -5
- package/dist/esm/themes/ds3.js +23 -0
- package/dist/esm/themes/ds5.js +31 -0
- package/dist/esm/themes/pentahoPlus.js +52 -24
- package/dist/esm/utils/Callout.js +10 -5
- package/dist/types/index.d.ts +159 -114
- package/package.json +6 -6
- package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.cjs +0 -53
- package/dist/cjs/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.cjs +0 -11
- package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.cjs +0 -37
- package/dist/cjs/QueryBuilder/Rule/Value/DateTimeValue/utils.cjs +0 -36
- package/dist/cjs/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.cjs +0 -34
- package/dist/cjs/QueryBuilder/Rule/Value/TextValue/TextValue.styles.cjs +0 -13
- package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.js +0 -53
- package/dist/esm/QueryBuilder/ConfirmationDialog/ConfirmationDialog.styles.js +0 -11
- package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/DateTimeValue.styles.js +0 -37
- package/dist/esm/QueryBuilder/Rule/Value/DateTimeValue/utils.js +0 -34
- package/dist/esm/QueryBuilder/Rule/Value/NumericValue/Numeric.styles.js +0 -34
- package/dist/esm/QueryBuilder/Rule/Value/TextValue/TextValue.styles.js +0 -13
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/uikit-react-core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.99.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Hitachi Vantara UI Kit Team",
|
|
6
|
-
"description": "Core React components
|
|
6
|
+
"description": "UI Kit Core React components.",
|
|
7
7
|
"homepage": "https://github.com/lumada-design/hv-uikit-react",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"keywords": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/cache": "^11.11.0",
|
|
34
34
|
"@emotion/serialize": "^1.1.2",
|
|
35
|
-
"@hitachivantara/uikit-react-shared": "^5.5.
|
|
36
|
-
"@hitachivantara/uikit-react-utils": "^0.2.
|
|
37
|
-
"@hitachivantara/uikit-styles": "^5.
|
|
35
|
+
"@hitachivantara/uikit-react-shared": "^5.5.2",
|
|
36
|
+
"@hitachivantara/uikit-react-utils": "^0.2.42",
|
|
37
|
+
"@hitachivantara/uikit-styles": "^5.50.0",
|
|
38
38
|
"@internationalized/date": "^3.2.0",
|
|
39
39
|
"@mui/base": "5.0.0-beta.68",
|
|
40
40
|
"@popperjs/core": "^2.11.8",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"access": "public",
|
|
62
62
|
"directory": "package"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "ac709f3b46b8b62ea3fccfa689983b5a9b72c4ec",
|
|
65
65
|
"exports": {
|
|
66
66
|
".": {
|
|
67
67
|
"types": "./dist/types/index.d.ts",
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const ConfirmationDialog_styles = require("./ConfirmationDialog.styles.cjs");
|
|
5
|
-
const Dialog = require("../../Dialog/Dialog.cjs");
|
|
6
|
-
const Title = require("../../Dialog/Title/Title.cjs");
|
|
7
|
-
const Content = require("../../Dialog/Content/Content.cjs");
|
|
8
|
-
const Actions = require("../../Dialog/Actions/Actions.cjs");
|
|
9
|
-
const Button = require("../../Button/Button.cjs");
|
|
10
|
-
const ConfirmationDialog = ({
|
|
11
|
-
title,
|
|
12
|
-
message,
|
|
13
|
-
isOpen,
|
|
14
|
-
onConfirm,
|
|
15
|
-
onCancel,
|
|
16
|
-
confirmButtonLabel,
|
|
17
|
-
cancelButtonLabel,
|
|
18
|
-
closeButtonTooltip
|
|
19
|
-
}) => {
|
|
20
|
-
const { classes } = ConfirmationDialog_styles.useClasses();
|
|
21
|
-
const handleClose = (_, reason) => {
|
|
22
|
-
if (reason !== "backdropClick") {
|
|
23
|
-
onCancel?.();
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
27
|
-
Dialog.HvDialog,
|
|
28
|
-
{
|
|
29
|
-
classes: { paper: classes.paper },
|
|
30
|
-
open: isOpen,
|
|
31
|
-
onClose: handleClose,
|
|
32
|
-
firstFocusable: "confirmation-dialog-cancel",
|
|
33
|
-
buttonTitle: closeButtonTooltip,
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(Title.HvDialogTitle, { variant: "warning", children: title }),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content.HvDialogContent, { indentContent: true, children: message }),
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsxs(Actions.HvDialogActions, { children: [
|
|
38
|
-
/* @__PURE__ */ jsxRuntime.jsx(Button.HvButton, { variant: "primaryGhost", onClick: onConfirm, children: confirmButtonLabel }),
|
|
39
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
Button.HvButton,
|
|
41
|
-
{
|
|
42
|
-
id: "confirmation-dialog-cancel",
|
|
43
|
-
variant: "primaryGhost",
|
|
44
|
-
onClick: () => onCancel?.(),
|
|
45
|
-
children: cancelButtonLabel
|
|
46
|
-
}
|
|
47
|
-
)
|
|
48
|
-
] })
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
exports.ConfirmationDialog = ConfirmationDialog;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
|
-
const { useClasses, staticClasses } = uikitReactUtils.createClasses(
|
|
5
|
-
"HvQueryBuilder-ConfirmationDialog",
|
|
6
|
-
{
|
|
7
|
-
paper: {}
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
exports.staticClasses = staticClasses;
|
|
11
|
-
exports.useClasses = useClasses;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
|
-
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const { useClasses, staticClasses } = uikitReactUtils.createClasses(
|
|
6
|
-
"HvQueryBuilder-DateTimeValue",
|
|
7
|
-
{
|
|
8
|
-
root: {
|
|
9
|
-
display: "flex",
|
|
10
|
-
flexDirection: "column"
|
|
11
|
-
},
|
|
12
|
-
row: {},
|
|
13
|
-
vertical: {
|
|
14
|
-
display: "flex",
|
|
15
|
-
flexDirection: "column"
|
|
16
|
-
},
|
|
17
|
-
horizontal: {
|
|
18
|
-
display: "flex",
|
|
19
|
-
"& > div:not(:last-child)": {
|
|
20
|
-
marginRight: uikitStyles.theme.space.md
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
isMdDown: {
|
|
24
|
-
"& > div:not(:last-child)": {
|
|
25
|
-
marginRight: `calc(${uikitStyles.theme.space.md} / 2)`
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
datePicker: {
|
|
29
|
-
flex: 1
|
|
30
|
-
},
|
|
31
|
-
timePicker: {
|
|
32
|
-
flex: 1
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
exports.staticClasses = staticClasses;
|
|
37
|
-
exports.useClasses = useClasses;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const dayjs = require("dayjs");
|
|
4
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
5
|
-
const dayjs__default = /* @__PURE__ */ _interopDefault(dayjs);
|
|
6
|
-
const padTime = (value) => {
|
|
7
|
-
if (!value || value < 0) {
|
|
8
|
-
return "00";
|
|
9
|
-
}
|
|
10
|
-
if (value < 10 && value.toString().length === 1) {
|
|
11
|
-
return `0${value.toString()}`;
|
|
12
|
-
}
|
|
13
|
-
return value.toString();
|
|
14
|
-
};
|
|
15
|
-
const parseDate = (date) => {
|
|
16
|
-
if (date != null) {
|
|
17
|
-
return dayjs__default.default(date).toDate();
|
|
18
|
-
}
|
|
19
|
-
return void 0;
|
|
20
|
-
};
|
|
21
|
-
const parseTime = (time) => {
|
|
22
|
-
if (time != null) {
|
|
23
|
-
const parts = time.split(":");
|
|
24
|
-
if (parts.length === 3) {
|
|
25
|
-
return {
|
|
26
|
-
hours: Number.parseInt(parts[0], 10),
|
|
27
|
-
minutes: Number.parseInt(parts[1], 10),
|
|
28
|
-
seconds: Number.parseInt(parts[2], 10)
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return null;
|
|
33
|
-
};
|
|
34
|
-
exports.padTime = padTime;
|
|
35
|
-
exports.parseDate = parseDate;
|
|
36
|
-
exports.parseTime = parseTime;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
|
-
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const { useClasses, staticClasses } = uikitReactUtils.createClasses(
|
|
6
|
-
"HvQueryBuilder-NumericValue",
|
|
7
|
-
{
|
|
8
|
-
root: {},
|
|
9
|
-
label: {
|
|
10
|
-
paddingBottom: "6px"
|
|
11
|
-
},
|
|
12
|
-
inputContainer: {},
|
|
13
|
-
rangeContainer: {
|
|
14
|
-
display: "flex",
|
|
15
|
-
"& $inputContainer": {
|
|
16
|
-
flexGrow: 1,
|
|
17
|
-
overflow: "auto"
|
|
18
|
-
},
|
|
19
|
-
"& > $inputContainer:not(:last-child)": {
|
|
20
|
-
marginRight: uikitStyles.theme.space.md
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
input: {
|
|
24
|
-
flexGrow: 1
|
|
25
|
-
},
|
|
26
|
-
isMdDown: {
|
|
27
|
-
"& > $inputContainer:not(:last-child)": {
|
|
28
|
-
marginRight: `calc(${uikitStyles.theme.space.md} / 2)`
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
);
|
|
33
|
-
exports.staticClasses = staticClasses;
|
|
34
|
-
exports.useClasses = useClasses;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const uikitReactUtils = require("@hitachivantara/uikit-react-utils");
|
|
4
|
-
const { useClasses, staticClasses } = uikitReactUtils.createClasses(
|
|
5
|
-
"HvQueryBuilder-TextValue",
|
|
6
|
-
{
|
|
7
|
-
location: {
|
|
8
|
-
flexGrow: 1
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
);
|
|
12
|
-
exports.staticClasses = staticClasses;
|
|
13
|
-
exports.useClasses = useClasses;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useClasses } from "./ConfirmationDialog.styles.js";
|
|
3
|
-
import { HvDialog } from "../../Dialog/Dialog.js";
|
|
4
|
-
import { HvDialogTitle } from "../../Dialog/Title/Title.js";
|
|
5
|
-
import { HvDialogContent } from "../../Dialog/Content/Content.js";
|
|
6
|
-
import { HvDialogActions } from "../../Dialog/Actions/Actions.js";
|
|
7
|
-
import { HvButton } from "../../Button/Button.js";
|
|
8
|
-
const ConfirmationDialog = ({
|
|
9
|
-
title,
|
|
10
|
-
message,
|
|
11
|
-
isOpen,
|
|
12
|
-
onConfirm,
|
|
13
|
-
onCancel,
|
|
14
|
-
confirmButtonLabel,
|
|
15
|
-
cancelButtonLabel,
|
|
16
|
-
closeButtonTooltip
|
|
17
|
-
}) => {
|
|
18
|
-
const { classes } = useClasses();
|
|
19
|
-
const handleClose = (_, reason) => {
|
|
20
|
-
if (reason !== "backdropClick") {
|
|
21
|
-
onCancel?.();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return /* @__PURE__ */ jsxs(
|
|
25
|
-
HvDialog,
|
|
26
|
-
{
|
|
27
|
-
classes: { paper: classes.paper },
|
|
28
|
-
open: isOpen,
|
|
29
|
-
onClose: handleClose,
|
|
30
|
-
firstFocusable: "confirmation-dialog-cancel",
|
|
31
|
-
buttonTitle: closeButtonTooltip,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ jsx(HvDialogTitle, { variant: "warning", children: title }),
|
|
34
|
-
/* @__PURE__ */ jsx(HvDialogContent, { indentContent: true, children: message }),
|
|
35
|
-
/* @__PURE__ */ jsxs(HvDialogActions, { children: [
|
|
36
|
-
/* @__PURE__ */ jsx(HvButton, { variant: "primaryGhost", onClick: onConfirm, children: confirmButtonLabel }),
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
HvButton,
|
|
39
|
-
{
|
|
40
|
-
id: "confirmation-dialog-cancel",
|
|
41
|
-
variant: "primaryGhost",
|
|
42
|
-
onClick: () => onCancel?.(),
|
|
43
|
-
children: cancelButtonLabel
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] })
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
export {
|
|
52
|
-
ConfirmationDialog
|
|
53
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { createClasses } from "@hitachivantara/uikit-react-utils";
|
|
2
|
-
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
|
-
const { useClasses, staticClasses } = createClasses(
|
|
4
|
-
"HvQueryBuilder-DateTimeValue",
|
|
5
|
-
{
|
|
6
|
-
root: {
|
|
7
|
-
display: "flex",
|
|
8
|
-
flexDirection: "column"
|
|
9
|
-
},
|
|
10
|
-
row: {},
|
|
11
|
-
vertical: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
flexDirection: "column"
|
|
14
|
-
},
|
|
15
|
-
horizontal: {
|
|
16
|
-
display: "flex",
|
|
17
|
-
"& > div:not(:last-child)": {
|
|
18
|
-
marginRight: theme.space.md
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
isMdDown: {
|
|
22
|
-
"& > div:not(:last-child)": {
|
|
23
|
-
marginRight: `calc(${theme.space.md} / 2)`
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
datePicker: {
|
|
27
|
-
flex: 1
|
|
28
|
-
},
|
|
29
|
-
timePicker: {
|
|
30
|
-
flex: 1
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
export {
|
|
35
|
-
staticClasses,
|
|
36
|
-
useClasses
|
|
37
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
const padTime = (value) => {
|
|
3
|
-
if (!value || value < 0) {
|
|
4
|
-
return "00";
|
|
5
|
-
}
|
|
6
|
-
if (value < 10 && value.toString().length === 1) {
|
|
7
|
-
return `0${value.toString()}`;
|
|
8
|
-
}
|
|
9
|
-
return value.toString();
|
|
10
|
-
};
|
|
11
|
-
const parseDate = (date) => {
|
|
12
|
-
if (date != null) {
|
|
13
|
-
return dayjs(date).toDate();
|
|
14
|
-
}
|
|
15
|
-
return void 0;
|
|
16
|
-
};
|
|
17
|
-
const parseTime = (time) => {
|
|
18
|
-
if (time != null) {
|
|
19
|
-
const parts = time.split(":");
|
|
20
|
-
if (parts.length === 3) {
|
|
21
|
-
return {
|
|
22
|
-
hours: Number.parseInt(parts[0], 10),
|
|
23
|
-
minutes: Number.parseInt(parts[1], 10),
|
|
24
|
-
seconds: Number.parseInt(parts[2], 10)
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return null;
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
padTime,
|
|
32
|
-
parseDate,
|
|
33
|
-
parseTime
|
|
34
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createClasses } from "@hitachivantara/uikit-react-utils";
|
|
2
|
-
import { theme } from "@hitachivantara/uikit-styles";
|
|
3
|
-
const { useClasses, staticClasses } = createClasses(
|
|
4
|
-
"HvQueryBuilder-NumericValue",
|
|
5
|
-
{
|
|
6
|
-
root: {},
|
|
7
|
-
label: {
|
|
8
|
-
paddingBottom: "6px"
|
|
9
|
-
},
|
|
10
|
-
inputContainer: {},
|
|
11
|
-
rangeContainer: {
|
|
12
|
-
display: "flex",
|
|
13
|
-
"& $inputContainer": {
|
|
14
|
-
flexGrow: 1,
|
|
15
|
-
overflow: "auto"
|
|
16
|
-
},
|
|
17
|
-
"& > $inputContainer:not(:last-child)": {
|
|
18
|
-
marginRight: theme.space.md
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
input: {
|
|
22
|
-
flexGrow: 1
|
|
23
|
-
},
|
|
24
|
-
isMdDown: {
|
|
25
|
-
"& > $inputContainer:not(:last-child)": {
|
|
26
|
-
marginRight: `calc(${theme.space.md} / 2)`
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
export {
|
|
32
|
-
staticClasses,
|
|
33
|
-
useClasses
|
|
34
|
-
};
|