@hitachivantara/uikit-react-core 5.98.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/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/providers/Provider.cjs +1 -4
- package/dist/cjs/themes/ds3.cjs +16 -0
- package/dist/cjs/themes/ds5.cjs +20 -0
- package/dist/cjs/themes/pentahoPlus.cjs +50 -16
- 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/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/providers/Provider.js +2 -5
- package/dist/esm/themes/ds3.js +16 -0
- package/dist/esm/themes/ds5.js +20 -0
- package/dist/esm/themes/pentahoPlus.js +50 -16
- package/dist/types/index.d.ts +51 -47
- 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
|
@@ -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
|
-
};
|