@hitachivantara/uikit-react-core 3.62.6 → 3.64.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/CHANGELOG.md +50 -0
- package/dist/AppSwitcher/Action/Action.d.ts +75 -0
- package/dist/AppSwitcher/Action/Action.js +304 -0
- package/dist/AppSwitcher/Action/Action.js.map +1 -0
- package/dist/AppSwitcher/Action/index.d.ts +2 -0
- package/dist/AppSwitcher/Action/index.js +14 -0
- package/dist/AppSwitcher/Action/index.js.map +1 -0
- package/dist/AppSwitcher/Action/styles.js +60 -0
- package/dist/AppSwitcher/Action/styles.js.map +1 -0
- package/dist/AppSwitcher/AppSwitcher.d.ts +67 -0
- package/dist/AppSwitcher/AppSwitcher.js +282 -0
- package/dist/AppSwitcher/AppSwitcher.js.map +1 -0
- package/dist/AppSwitcher/TitleWithTooltip.js +76 -0
- package/dist/AppSwitcher/TitleWithTooltip.js.map +1 -0
- package/dist/AppSwitcher/index.d.ts +5 -0
- package/dist/AppSwitcher/index.js +24 -0
- package/dist/AppSwitcher/index.js.map +1 -0
- package/dist/AppSwitcher/styles.js +95 -0
- package/dist/AppSwitcher/styles.js.map +1 -0
- package/dist/Chart/chartPlotlyOverrides.js +2 -2
- package/dist/Chart/chartPlotlyOverrides.js.map +1 -1
- package/dist/FileUploader/File/styles.js +2 -1
- package/dist/FileUploader/File/styles.js.map +1 -1
- package/dist/SimpleGrid/SimpleGrid.d.ts +17 -0
- package/dist/SimpleGrid/SimpleGrid.js +73 -0
- package/dist/SimpleGrid/SimpleGrid.js.map +1 -0
- package/dist/SimpleGrid/index.d.ts +2 -0
- package/dist/SimpleGrid/index.js +16 -0
- package/dist/SimpleGrid/index.js.map +1 -0
- package/dist/SimpleGrid/styles.js +99 -0
- package/dist/SimpleGrid/styles.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js +112 -0
- package/dist/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/index.js +21 -0
- package/dist/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/TimePicker/PeriodPicker/styles.js +32 -0
- package/dist/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/TimePicker/TimePicker.d.ts +140 -0
- package/dist/TimePicker/TimePicker.js +748 -0
- package/dist/TimePicker/TimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js +243 -0
- package/dist/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/index.js +21 -0
- package/dist/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/TimePicker/UnitTimePicker/styles.js +75 -0
- package/dist/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/TimePicker/enums.js +43 -0
- package/dist/TimePicker/enums.js.map +1 -0
- package/dist/TimePicker/index.d.ts +2 -0
- package/dist/TimePicker/index.js +16 -0
- package/dist/TimePicker/index.js.map +1 -0
- package/dist/TimePicker/styles.js +134 -0
- package/dist/TimePicker/styles.js.map +1 -0
- package/dist/TimePicker/timePickerConverter.js +90 -0
- package/dist/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/TimePicker/timePickerFormatter.js +81 -0
- package/dist/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/TimePicker/timePickerUtils.js +39 -0
- package/dist/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/legacy/AppSwitcher/Action/Action.d.ts +75 -0
- package/dist/legacy/AppSwitcher/Action/Action.js +259 -0
- package/dist/legacy/AppSwitcher/Action/Action.js.map +1 -0
- package/dist/legacy/AppSwitcher/Action/index.d.ts +2 -0
- package/dist/legacy/AppSwitcher/Action/index.js +3 -0
- package/dist/legacy/AppSwitcher/Action/index.js.map +1 -0
- package/dist/legacy/AppSwitcher/Action/styles.js +52 -0
- package/dist/legacy/AppSwitcher/Action/styles.js.map +1 -0
- package/dist/legacy/AppSwitcher/AppSwitcher.d.ts +67 -0
- package/dist/legacy/AppSwitcher/AppSwitcher.js +260 -0
- package/dist/legacy/AppSwitcher/AppSwitcher.js.map +1 -0
- package/dist/legacy/AppSwitcher/TitleWithTooltip.js +45 -0
- package/dist/legacy/AppSwitcher/TitleWithTooltip.js.map +1 -0
- package/dist/legacy/AppSwitcher/index.d.ts +5 -0
- package/dist/legacy/AppSwitcher/index.js +3 -0
- package/dist/legacy/AppSwitcher/index.js.map +1 -0
- package/dist/legacy/AppSwitcher/styles.js +78 -0
- package/dist/legacy/AppSwitcher/styles.js.map +1 -0
- package/dist/legacy/Chart/chartPlotlyOverrides.js +2 -2
- package/dist/legacy/Chart/chartPlotlyOverrides.js.map +1 -1
- package/dist/legacy/FileUploader/File/styles.js +2 -1
- package/dist/legacy/FileUploader/File/styles.js.map +1 -1
- package/dist/legacy/SimpleGrid/SimpleGrid.d.ts +17 -0
- package/dist/legacy/SimpleGrid/SimpleGrid.js +59 -0
- package/dist/legacy/SimpleGrid/SimpleGrid.js.map +1 -0
- package/dist/legacy/SimpleGrid/index.d.ts +2 -0
- package/dist/legacy/SimpleGrid/index.js +2 -0
- package/dist/legacy/SimpleGrid/index.js.map +1 -0
- package/dist/legacy/SimpleGrid/styles.js +81 -0
- package/dist/legacy/SimpleGrid/styles.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js +78 -0
- package/dist/legacy/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/legacy/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js +24 -0
- package/dist/legacy/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/TimePicker.d.ts +140 -0
- package/dist/legacy/TimePicker/TimePicker.js +696 -0
- package/dist/legacy/TimePicker/TimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js +206 -0
- package/dist/legacy/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/legacy/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js +58 -0
- package/dist/legacy/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/enums.js +33 -0
- package/dist/legacy/TimePicker/enums.js.map +1 -0
- package/dist/legacy/TimePicker/index.d.ts +2 -0
- package/dist/legacy/TimePicker/index.js +2 -0
- package/dist/legacy/TimePicker/index.js.map +1 -0
- package/dist/legacy/TimePicker/styles.js +117 -0
- package/dist/legacy/TimePicker/styles.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerConverter.js +71 -0
- package/dist/legacy/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js +66 -0
- package/dist/legacy/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/legacy/TimePicker/timePickerUtils.js +29 -0
- package/dist/legacy/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/legacy/index.d.ts +3 -0
- package/dist/legacy/index.js +1 -0
- package/dist/legacy/index.js.map +1 -1
- package/dist/modern/AppSwitcher/Action/Action.d.ts +75 -0
- package/dist/modern/AppSwitcher/Action/Action.js +242 -0
- package/dist/modern/AppSwitcher/Action/Action.js.map +1 -0
- package/dist/modern/AppSwitcher/Action/index.d.ts +2 -0
- package/dist/modern/AppSwitcher/Action/index.js +3 -0
- package/dist/modern/AppSwitcher/Action/index.js.map +1 -0
- package/dist/modern/AppSwitcher/Action/styles.js +50 -0
- package/dist/modern/AppSwitcher/Action/styles.js.map +1 -0
- package/dist/modern/AppSwitcher/AppSwitcher.d.ts +67 -0
- package/dist/modern/AppSwitcher/AppSwitcher.js +254 -0
- package/dist/modern/AppSwitcher/AppSwitcher.js.map +1 -0
- package/dist/modern/AppSwitcher/TitleWithTooltip.js +41 -0
- package/dist/modern/AppSwitcher/TitleWithTooltip.js.map +1 -0
- package/dist/modern/AppSwitcher/index.d.ts +5 -0
- package/dist/modern/AppSwitcher/index.js +3 -0
- package/dist/modern/AppSwitcher/index.js.map +1 -0
- package/dist/modern/AppSwitcher/styles.js +67 -0
- package/dist/modern/AppSwitcher/styles.js.map +1 -0
- package/dist/modern/Chart/chartPlotlyOverrides.js +2 -2
- package/dist/modern/Chart/chartPlotlyOverrides.js.map +1 -1
- package/dist/modern/FileUploader/File/styles.js +2 -1
- package/dist/modern/FileUploader/File/styles.js.map +1 -1
- package/dist/modern/SimpleGrid/SimpleGrid.d.ts +17 -0
- package/dist/modern/SimpleGrid/SimpleGrid.js +60 -0
- package/dist/modern/SimpleGrid/SimpleGrid.js.map +1 -0
- package/dist/modern/SimpleGrid/index.d.ts +2 -0
- package/dist/modern/SimpleGrid/index.js +2 -0
- package/dist/modern/SimpleGrid/index.js.map +1 -0
- package/dist/modern/SimpleGrid/styles.js +68 -0
- package/dist/modern/SimpleGrid/styles.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js +75 -0
- package/dist/modern/TimePicker/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js +7 -0
- package/dist/modern/TimePicker/PeriodPicker/index.js.map +1 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js +22 -0
- package/dist/modern/TimePicker/PeriodPicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/TimePicker.d.ts +140 -0
- package/dist/modern/TimePicker/TimePicker.js +659 -0
- package/dist/modern/TimePicker/TimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js +191 -0
- package/dist/modern/TimePicker/UnitTimePicker/UnitTimePicker.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js +7 -0
- package/dist/modern/TimePicker/UnitTimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js +49 -0
- package/dist/modern/TimePicker/UnitTimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/enums.js +32 -0
- package/dist/modern/TimePicker/enums.js.map +1 -0
- package/dist/modern/TimePicker/index.d.ts +2 -0
- package/dist/modern/TimePicker/index.js +2 -0
- package/dist/modern/TimePicker/index.js.map +1 -0
- package/dist/modern/TimePicker/styles.js +108 -0
- package/dist/modern/TimePicker/styles.js.map +1 -0
- package/dist/modern/TimePicker/timePickerConverter.js +66 -0
- package/dist/modern/TimePicker/timePickerConverter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerFormatter.js +65 -0
- package/dist/modern/TimePicker/timePickerFormatter.js.map +1 -0
- package/dist/modern/TimePicker/timePickerUtils.js +27 -0
- package/dist/modern/TimePicker/timePickerUtils.js.map +1 -0
- package/dist/modern/index.d.ts +3 -0
- package/dist/modern/index.js +1 -0
- package/dist/modern/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports.default = void 0;
|
|
23
|
+
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
+
|
|
30
|
+
var icon = {
|
|
31
|
+
position: "absolute",
|
|
32
|
+
right: 0,
|
|
33
|
+
bottom: 0,
|
|
34
|
+
width: "30px",
|
|
35
|
+
height: "30px"
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var styles = function styles(theme) {
|
|
39
|
+
return {
|
|
40
|
+
input: _objectSpread(_objectSpread({
|
|
41
|
+
border: "none",
|
|
42
|
+
height: "30px",
|
|
43
|
+
width: "100%",
|
|
44
|
+
background: "white",
|
|
45
|
+
fontFamily: theme.hv.typography.fontFamily
|
|
46
|
+
}, theme.hv.typography.normalText), {}, {
|
|
47
|
+
"&:focus": {
|
|
48
|
+
outline: "none"
|
|
49
|
+
},
|
|
50
|
+
"&::placeholder": _objectSpread({}, theme.hv.typography.placeholderText)
|
|
51
|
+
}),
|
|
52
|
+
inputPopperOpenedBelow: {
|
|
53
|
+
boxShadow: "0 10px 12px #fff"
|
|
54
|
+
},
|
|
55
|
+
inputPopperOpenedAbove: {
|
|
56
|
+
boxShadow: "0 -10px 12px #fff"
|
|
57
|
+
},
|
|
58
|
+
inputPopperClosed: {
|
|
59
|
+
border: "1px solid ".concat(theme.hv.palette.atmosphere.atmo6)
|
|
60
|
+
},
|
|
61
|
+
inputContainer: {
|
|
62
|
+
position: "relative",
|
|
63
|
+
background: theme.hv.palette.atmosphere.atmo1,
|
|
64
|
+
height: "32px",
|
|
65
|
+
paddingLeft: "".concat(theme.hv.spacing.xs, "px"),
|
|
66
|
+
paddingRight: "".concat(theme.hv.spacing.md, "px")
|
|
67
|
+
},
|
|
68
|
+
labelContainer: {
|
|
69
|
+
display: "flex",
|
|
70
|
+
alignItems: "flex-start"
|
|
71
|
+
},
|
|
72
|
+
icon: _objectSpread(_objectSpread({}, icon), {}, {
|
|
73
|
+
cursor: "pointer"
|
|
74
|
+
}),
|
|
75
|
+
timePickerContainer: {
|
|
76
|
+
position: "relative",
|
|
77
|
+
minWidth: "175px"
|
|
78
|
+
},
|
|
79
|
+
label: {
|
|
80
|
+
marginBottom: 6,
|
|
81
|
+
display: "block"
|
|
82
|
+
},
|
|
83
|
+
timePopperContainer: {
|
|
84
|
+
backgroundColor: "".concat(theme.hv.palette.atmosphere.atmo1),
|
|
85
|
+
zIndex: "10",
|
|
86
|
+
display: "flex",
|
|
87
|
+
flexDirection: "row",
|
|
88
|
+
justifyContent: "center",
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
padding: "".concat(theme.hv.spacing.sm, "px"),
|
|
91
|
+
userSelect: "none",
|
|
92
|
+
minWidth: "175px"
|
|
93
|
+
},
|
|
94
|
+
separator: _objectSpread(_objectSpread({}, theme.hv.typography.sTitle), {}, {
|
|
95
|
+
width: 8,
|
|
96
|
+
position: "relative",
|
|
97
|
+
top: -8,
|
|
98
|
+
paddingLeft: 2
|
|
99
|
+
}),
|
|
100
|
+
formElementRoot: {
|
|
101
|
+
position: "relative"
|
|
102
|
+
},
|
|
103
|
+
iconBaseRoot: {
|
|
104
|
+
position: "absolute",
|
|
105
|
+
top: "-1px",
|
|
106
|
+
right: "-1px"
|
|
107
|
+
},
|
|
108
|
+
dropdownInputRootFocused: {
|
|
109
|
+
boxShadow: "none"
|
|
110
|
+
},
|
|
111
|
+
dropdownPlaceholder: {
|
|
112
|
+
color: theme.hv.palette.accent.acce1
|
|
113
|
+
},
|
|
114
|
+
dropdownPlaceholderDisabled: {
|
|
115
|
+
color: theme.hv.palette.atmosphere.atmo5
|
|
116
|
+
},
|
|
117
|
+
dropdownHeaderInvalid: {
|
|
118
|
+
border: "1px solid ".concat(theme.hv.palette.semantic.sema4),
|
|
119
|
+
"&:hover": {
|
|
120
|
+
border: "1px solid ".concat(theme.hv.palette.semantic.sema4)
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
dropdownHeaderOpen: {
|
|
124
|
+
border: "1px solid ".concat(theme.hv.palette.atmosphere.atmo1),
|
|
125
|
+
"&:hover": {
|
|
126
|
+
border: "1px solid ".concat(theme.hv.palette.atmosphere.atmo1)
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
var _default = styles;
|
|
133
|
+
exports.default = _default;
|
|
134
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/TimePicker/styles.js"],"names":["icon","position","right","bottom","width","height","styles","theme","input","border","background","fontFamily","hv","typography","normalText","outline","placeholderText","inputPopperOpenedBelow","boxShadow","inputPopperOpenedAbove","inputPopperClosed","palette","atmosphere","atmo6","inputContainer","atmo1","paddingLeft","spacing","xs","paddingRight","md","labelContainer","display","alignItems","cursor","timePickerContainer","minWidth","label","marginBottom","timePopperContainer","backgroundColor","zIndex","flexDirection","justifyContent","padding","sm","userSelect","separator","sTitle","top","formElementRoot","iconBaseRoot","dropdownInputRootFocused","dropdownPlaceholder","color","accent","acce1","dropdownPlaceholderDisabled","atmo5","dropdownHeaderInvalid","semantic","sema4","dropdownHeaderOpen"],"mappings":"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","sourcesContent":["const icon = {\n position: \"absolute\",\n right: 0,\n bottom: 0,\n width: \"30px\",\n height: \"30px\",\n};\n\nconst styles = (theme) => ({\n input: {\n border: \"none\",\n height: \"30px\",\n width: \"100%\",\n background: \"white\",\n fontFamily: theme.hv.typography.fontFamily,\n ...theme.hv.typography.normalText,\n \"&:focus\": {\n outline: \"none\",\n },\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n },\n },\n inputPopperOpenedBelow: {\n boxShadow: \"0 10px 12px #fff\",\n },\n inputPopperOpenedAbove: {\n boxShadow: \"0 -10px 12px #fff\",\n },\n inputPopperClosed: {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo6}`,\n },\n inputContainer: {\n position: \"relative\",\n background: theme.hv.palette.atmosphere.atmo1,\n height: \"32px\",\n paddingLeft: `${theme.hv.spacing.xs}px`,\n paddingRight: `${theme.hv.spacing.md}px`,\n },\n labelContainer: {\n display: \"flex\",\n alignItems: \"flex-start\",\n },\n icon: {\n ...icon,\n cursor: \"pointer\",\n },\n timePickerContainer: {\n position: \"relative\",\n minWidth: \"175px\",\n },\n label: {\n marginBottom: 6,\n display: \"block\",\n },\n timePopperContainer: {\n backgroundColor: `${theme.hv.palette.atmosphere.atmo1}`,\n zIndex: \"10\",\n display: \"flex\",\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n padding: `${theme.hv.spacing.sm}px`,\n userSelect: \"none\",\n minWidth: \"175px\",\n },\n separator: {\n ...theme.hv.typography.sTitle,\n width: 8,\n position: \"relative\",\n top: -8,\n paddingLeft: 2,\n },\n\n formElementRoot: {\n position: \"relative\",\n },\n\n iconBaseRoot: {\n position: \"absolute\",\n top: \"-1px\",\n right: \"-1px\",\n },\n\n dropdownInputRootFocused: {\n boxShadow: \"none\",\n },\n dropdownPlaceholder: {\n color: theme.hv.palette.accent.acce1,\n },\n dropdownPlaceholderDisabled: {\n color: theme.hv.palette.atmosphere.atmo5,\n },\n dropdownHeaderInvalid: {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n \"&:hover\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n\n dropdownHeaderOpen: {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo1}`,\n \"&:hover\": {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo1}`,\n },\n },\n});\n\nexport default styles;\n"],"file":"styles.js"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.symbol.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.array.filter.js");
|
|
8
|
+
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
12
|
+
|
|
13
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
14
|
+
|
|
15
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
16
|
+
|
|
17
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
exports.getTimeWithFormat24 = exports.getHoursForTimeFormat = void 0;
|
|
23
|
+
|
|
24
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
25
|
+
|
|
26
|
+
var _timePickerUtils = require("./timePickerUtils");
|
|
27
|
+
|
|
28
|
+
var _enums = require("./enums");
|
|
29
|
+
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
|
|
32
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets hours for the passed time format.
|
|
36
|
+
* e.g. 20hours in 12h format is set to 8
|
|
37
|
+
* @param {Number} hours - current hours
|
|
38
|
+
* @param {String} timeFormat - AM/PM
|
|
39
|
+
*
|
|
40
|
+
* @returns {Number} - hours in the correct format
|
|
41
|
+
*/
|
|
42
|
+
var getHoursForTimeFormat = function getHoursForTimeFormat(hours, timeFormat) {
|
|
43
|
+
if (timeFormat === _enums.TimeFormat.H12) {
|
|
44
|
+
if (hours == null || hours === 0) {
|
|
45
|
+
return _enums.TimePickerUnits.HOUR_12.max;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if ((0, _timePickerUtils.isUnitTimeInValidRange)(hours, _enums.TimePickerUnits.HOUR_12.type)) {
|
|
49
|
+
return hours;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if ((0, _timePickerUtils.isUnitTimeInValidRange)(hours, _enums.TimePickerUnits.HOUR_24.type)) {
|
|
53
|
+
return hours - _enums.TimePickerUnits.HOUR_12.max;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return hours;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Gets the time in 24h format
|
|
61
|
+
* e.g. 08:00:00:PM in 12h format is set to 20:00:00
|
|
62
|
+
* @param {Object} time - object with hours, minutes, seconds and period
|
|
63
|
+
* @param {String} timeFormat - AM/PM
|
|
64
|
+
*
|
|
65
|
+
* @returns {Object} - time object (hours, minutes, seconds and period) with the hours set
|
|
66
|
+
* into the correct format
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.getHoursForTimeFormat = getHoursForTimeFormat;
|
|
71
|
+
|
|
72
|
+
var getTimeWithFormat24 = function getTimeWithFormat24(time, timeFormat) {
|
|
73
|
+
var hours = time.hours,
|
|
74
|
+
period = time.period;
|
|
75
|
+
|
|
76
|
+
var timeIn24Format = _objectSpread({}, time);
|
|
77
|
+
|
|
78
|
+
if (timeFormat === _enums.TimeFormat.H12) {
|
|
79
|
+
if (period === _enums.PeriodPickerOptions.AM && hours === _enums.TimePickerUnits.HOUR_12.max) {
|
|
80
|
+
timeIn24Format.hours = _enums.TimePickerUnits.HOUR_24.min;
|
|
81
|
+
} else if (period === _enums.PeriodPickerOptions.PM && hours < _enums.TimePickerUnits.HOUR_12.max) {
|
|
82
|
+
timeIn24Format.hours = hours + _enums.TimePickerUnits.HOUR_12.max;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return timeIn24Format;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
exports.getTimeWithFormat24 = getTimeWithFormat24;
|
|
90
|
+
//# sourceMappingURL=timePickerConverter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/TimePicker/timePickerConverter.js"],"names":["getHoursForTimeFormat","hours","timeFormat","TimeFormat","H12","TimePickerUnits","HOUR_12","max","type","HOUR_24","getTimeWithFormat24","time","period","timeIn24Format","PeriodPickerOptions","AM","min","PM"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAwB,CAACC,KAAD,EAAQC,UAAR,EAAuB;AACnD,MAAIA,UAAU,KAAKC,kBAAWC,GAA9B,EAAmC;AACjC,QAAIH,KAAK,IAAI,IAAT,IAAiBA,KAAK,KAAK,CAA/B,EAAkC;AAChC,aAAOI,uBAAgBC,OAAhB,CAAwBC,GAA/B;AACD;;AACD,QAAI,6CAAuBN,KAAvB,EAA8BI,uBAAgBC,OAAhB,CAAwBE,IAAtD,CAAJ,EAAiE;AAC/D,aAAOP,KAAP;AACD;;AACD,QAAI,6CAAuBA,KAAvB,EAA8BI,uBAAgBI,OAAhB,CAAwBD,IAAtD,CAAJ,EAAiE;AAC/D,aAAOP,KAAK,GAAGI,uBAAgBC,OAAhB,CAAwBC,GAAvC;AACD;AACF;;AACD,SAAON,KAAP;AACD,CAbD;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMS,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACC,IAAD,EAAOT,UAAP,EAAsB;AAChD,MAAQD,KAAR,GAA0BU,IAA1B,CAAQV,KAAR;AAAA,MAAeW,MAAf,GAA0BD,IAA1B,CAAeC,MAAf;;AACA,MAAMC,cAAc,qBAAQF,IAAR,CAApB;;AACA,MAAIT,UAAU,KAAKC,kBAAWC,GAA9B,EAAmC;AACjC,QAAIQ,MAAM,KAAKE,2BAAoBC,EAA/B,IAAqCd,KAAK,KAAKI,uBAAgBC,OAAhB,CAAwBC,GAA3E,EAAgF;AAC9EM,MAAAA,cAAc,CAACZ,KAAf,GAAuBI,uBAAgBI,OAAhB,CAAwBO,GAA/C;AACD,KAFD,MAEO,IAAIJ,MAAM,KAAKE,2BAAoBG,EAA/B,IAAqChB,KAAK,GAAGI,uBAAgBC,OAAhB,CAAwBC,GAAzE,EAA8E;AACnFM,MAAAA,cAAc,CAACZ,KAAf,GAAuBA,KAAK,GAAGI,uBAAgBC,OAAhB,CAAwBC,GAAvD;AACD;AACF;;AACD,SAAOM,cAAP;AACD,CAXD","sourcesContent":["import { isUnitTimeInValidRange } from \"./timePickerUtils\";\nimport { TimeFormat, PeriodPickerOptions, TimePickerUnits } from \"./enums\";\n\n/**\n * Gets hours for the passed time format.\n * e.g. 20hours in 12h format is set to 8\n * @param {Number} hours - current hours\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Number} - hours in the correct format\n */\nconst getHoursForTimeFormat = (hours, timeFormat) => {\n if (timeFormat === TimeFormat.H12) {\n if (hours == null || hours === 0) {\n return TimePickerUnits.HOUR_12.max;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_12.type)) {\n return hours;\n }\n if (isUnitTimeInValidRange(hours, TimePickerUnits.HOUR_24.type)) {\n return hours - TimePickerUnits.HOUR_12.max;\n }\n }\n return hours;\n};\n\n/**\n * Gets the time in 24h format\n * e.g. 08:00:00:PM in 12h format is set to 20:00:00\n * @param {Object} time - object with hours, minutes, seconds and period\n * @param {String} timeFormat - AM/PM\n *\n * @returns {Object} - time object (hours, minutes, seconds and period) with the hours set\n * into the correct format\n */\nconst getTimeWithFormat24 = (time, timeFormat) => {\n const { hours, period } = time;\n const timeIn24Format = { ...time };\n if (timeFormat === TimeFormat.H12) {\n if (period === PeriodPickerOptions.AM && hours === TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = TimePickerUnits.HOUR_24.min;\n } else if (period === PeriodPickerOptions.PM && hours < TimePickerUnits.HOUR_12.max) {\n timeIn24Format.hours = hours + TimePickerUnits.HOUR_12.max;\n }\n }\n return timeIn24Format;\n};\n\nexport { getHoursForTimeFormat, getTimeWithFormat24 };\n"],"file":"timePickerConverter.js"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.padTime = exports.getTimeFormatForLocale = exports.getFormattedTime = void 0;
|
|
7
|
+
|
|
8
|
+
require("core-js/modules/es.object.to-string.js");
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.regexp.to-string.js");
|
|
11
|
+
|
|
12
|
+
require("core-js/modules/es.array.concat.js");
|
|
13
|
+
|
|
14
|
+
var _enums = require("./enums");
|
|
15
|
+
|
|
16
|
+
var _timePickerConverter = require("./timePickerConverter");
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Pads the unit time values so that they always have two digits
|
|
20
|
+
* @param {Number} value - unit time value
|
|
21
|
+
* @returns The unit time value with two digits
|
|
22
|
+
*/
|
|
23
|
+
var padTime = function padTime(value) {
|
|
24
|
+
if (value == null || value === "" || value < 0) {
|
|
25
|
+
return value === null || value === void 0 ? void 0 : value.toString();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (value < 10 && value.toString().length === 1) {
|
|
29
|
+
return "0".concat(value.toString());
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return value.toString();
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Gets the time format for a given locale
|
|
36
|
+
* @param {String} locale - locale
|
|
37
|
+
* @returns {TimeFormat} the time format for the given locale (12 or 24)
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
exports.padTime = padTime;
|
|
42
|
+
|
|
43
|
+
var getTimeFormatForLocale = function getTimeFormatForLocale(locale) {
|
|
44
|
+
var options = {
|
|
45
|
+
hour: "numeric"
|
|
46
|
+
};
|
|
47
|
+
var dateTimeFormat = new Intl.DateTimeFormat(locale, options);
|
|
48
|
+
var isInHour12Format = dateTimeFormat.resolvedOptions().hour12;
|
|
49
|
+
return isInHour12Format ? _enums.TimeFormat.H12 : _enums.TimeFormat.H24;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Formats the time to be rendered
|
|
53
|
+
* @param {Object} time - time object to be rendered
|
|
54
|
+
* @param {Number} time.hours - hours
|
|
55
|
+
* @param {Number} time.minutes - minutes
|
|
56
|
+
* @param {Number} time.seconds - seconds
|
|
57
|
+
* @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format
|
|
58
|
+
*
|
|
59
|
+
* @returns {String} formatted time
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
exports.getTimeFormatForLocale = getTimeFormatForLocale;
|
|
64
|
+
|
|
65
|
+
var getFormattedTime = function getFormattedTime(time, timeFormat) {
|
|
66
|
+
var hours = time.hours,
|
|
67
|
+
minutes = time.minutes,
|
|
68
|
+
seconds = time.seconds,
|
|
69
|
+
period = time.period;
|
|
70
|
+
var isInHour12Format = timeFormat === _enums.TimeFormat.H12 || timeFormat == null && period != null;
|
|
71
|
+
|
|
72
|
+
if (isInHour12Format) {
|
|
73
|
+
var p = period !== null && period !== void 0 ? period : hours > 12 ? _enums.PeriodPickerOptions.PM : _enums.PeriodPickerOptions.AM;
|
|
74
|
+
return "".concat(padTime((0, _timePickerConverter.getHoursForTimeFormat)(hours, _enums.TimeFormat.H12)), ":").concat(padTime(minutes), ":").concat(padTime(seconds), " ").concat(p);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return "".concat(padTime(hours), ":").concat(padTime(minutes), ":").concat(padTime(seconds));
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.getFormattedTime = getFormattedTime;
|
|
81
|
+
//# sourceMappingURL=timePickerFormatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/TimePicker/timePickerFormatter.js"],"names":["padTime","value","toString","length","getTimeFormatForLocale","locale","options","hour","dateTimeFormat","Intl","DateTimeFormat","isInHour12Format","resolvedOptions","hour12","TimeFormat","H12","H24","getFormattedTime","time","timeFormat","hours","minutes","seconds","period","p","PeriodPickerOptions","PM","AM"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAMA,OAAO,GAAG,SAAVA,OAAU,CAACC,KAAD,EAAW;AACzB,MAAIA,KAAK,IAAI,IAAT,IAAiBA,KAAK,KAAK,EAA3B,IAAiCA,KAAK,GAAG,CAA7C,EAAgD;AAC9C,WAAOA,KAAP,aAAOA,KAAP,uBAAOA,KAAK,CAAEC,QAAP,EAAP;AACD;;AACD,MAAID,KAAK,GAAG,EAAR,IAAcA,KAAK,CAACC,QAAN,GAAiBC,MAAjB,KAA4B,CAA9C,EAAiD;AAC/C,sBAAWF,KAAK,CAACC,QAAN,EAAX;AACD;;AACD,SAAOD,KAAK,CAACC,QAAN,EAAP;AACD,CARD;AAUA;AACA;AACA;AACA;AACA;;;;;AACA,IAAME,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,MAAD,EAAY;AACzC,MAAMC,OAAO,GAAG;AACdC,IAAAA,IAAI,EAAE;AADQ,GAAhB;AAGA,MAAMC,cAAc,GAAG,IAAIC,IAAI,CAACC,cAAT,CAAwBL,MAAxB,EAAgCC,OAAhC,CAAvB;AACA,MAAMK,gBAAgB,GAAGH,cAAc,CAACI,eAAf,GAAiCC,MAA1D;AACA,SAAOF,gBAAgB,GAAGG,kBAAWC,GAAd,GAAoBD,kBAAWE,GAAtD;AACD,CAPD;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,IAAD,EAAOC,UAAP,EAAsB;AAC7C,MAAQC,KAAR,GAA4CF,IAA5C,CAAQE,KAAR;AAAA,MAAeC,OAAf,GAA4CH,IAA5C,CAAeG,OAAf;AAAA,MAAwBC,OAAxB,GAA4CJ,IAA5C,CAAwBI,OAAxB;AAAA,MAAiCC,MAAjC,GAA4CL,IAA5C,CAAiCK,MAAjC;AAEA,MAAMZ,gBAAgB,GAAGQ,UAAU,KAAKL,kBAAWC,GAA1B,IAAkCI,UAAU,IAAI,IAAd,IAAsBI,MAAM,IAAI,IAA3F;;AAEA,MAAIZ,gBAAJ,EAAsB;AACpB,QAAMa,CAAC,GAAGD,MAAH,aAAGA,MAAH,cAAGA,MAAH,GAAcH,KAAK,GAAG,EAAR,GAAaK,2BAAoBC,EAAjC,GAAsCD,2BAAoBE,EAA/E;AACA,qBAAU3B,OAAO,CAAC,gDAAsBoB,KAAtB,EAA6BN,kBAAWC,GAAxC,CAAD,CAAjB,cAAmEf,OAAO,CAACqB,OAAD,CAA1E,cAAuFrB,OAAO,CAC5FsB,OAD4F,CAA9F,cAEKE,CAFL;AAGD;;AAED,mBAAUxB,OAAO,CAACoB,KAAD,CAAjB,cAA4BpB,OAAO,CAACqB,OAAD,CAAnC,cAAgDrB,OAAO,CAACsB,OAAD,CAAvD;AACD,CAbD","sourcesContent":["import { TimeFormat, PeriodPickerOptions } from \"./enums\";\nimport { getHoursForTimeFormat } from \"./timePickerConverter\";\n\n/**\n * Pads the unit time values so that they always have two digits\n * @param {Number} value - unit time value\n * @returns The unit time value with two digits\n */\nconst padTime = (value) => {\n if (value == null || value === \"\" || value < 0) {\n return value?.toString();\n }\n if (value < 10 && value.toString().length === 1) {\n return `0${value.toString()}`;\n }\n return value.toString();\n};\n\n/**\n * Gets the time format for a given locale\n * @param {String} locale - locale\n * @returns {TimeFormat} the time format for the given locale (12 or 24)\n */\nconst getTimeFormatForLocale = (locale) => {\n const options = {\n hour: \"numeric\",\n };\n const dateTimeFormat = new Intl.DateTimeFormat(locale, options);\n const isInHour12Format = dateTimeFormat.resolvedOptions().hour12;\n return isInHour12Format ? TimeFormat.H12 : TimeFormat.H24;\n};\n\n/**\n * Formats the time to be rendered\n * @param {Object} time - time object to be rendered\n * @param {Number} time.hours - hours\n * @param {Number} time.minutes - minutes\n * @param {Number} time.seconds - seconds\n * @param {String} time.period - period (am/pm). It is undefined when the time is to be shown in 24h format\n *\n * @returns {String} formatted time\n */\nconst getFormattedTime = (time, timeFormat) => {\n const { hours, minutes, seconds, period } = time;\n\n const isInHour12Format = timeFormat === TimeFormat.H12 || (timeFormat == null && period != null);\n\n if (isInHour12Format) {\n const p = period ?? (hours > 12 ? PeriodPickerOptions.PM : PeriodPickerOptions.AM);\n return `${padTime(getHoursForTimeFormat(hours, TimeFormat.H12))}:${padTime(minutes)}:${padTime(\n seconds\n )} ${p}`;\n }\n\n return `${padTime(hours)}:${padTime(minutes)}:${padTime(seconds)}`;\n};\n\nexport { padTime, getFormattedTime, getTimeFormatForLocale };\n"],"file":"timePickerFormatter.js"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isUnitTimeInValidRange = exports.getPeriodForDate = void 0;
|
|
7
|
+
|
|
8
|
+
require("core-js/modules/es.array.concat.js");
|
|
9
|
+
|
|
10
|
+
var _enums = require("./enums");
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Gets the period(am/pm) for a given time
|
|
14
|
+
* @param {Date} date - Date to get the period from. The default date is the current one.
|
|
15
|
+
* @returns {String} - AM or PM
|
|
16
|
+
*/
|
|
17
|
+
var getPeriodForDate = function getPeriodForDate() {
|
|
18
|
+
var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
|
|
19
|
+
var hours = date.getHours();
|
|
20
|
+
return hours < 12 ? _enums.PeriodPickerOptions.AM : _enums.PeriodPickerOptions.PM;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Checks if the unit time value is inside the acceptable range
|
|
24
|
+
*
|
|
25
|
+
* @param {Number} value - unit time value
|
|
26
|
+
* @param {String} type - unit time type. One of the TimePickerUnits types.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.getPeriodForDate = getPeriodForDate;
|
|
31
|
+
|
|
32
|
+
var isUnitTimeInValidRange = function isUnitTimeInValidRange(value, type) {
|
|
33
|
+
var timeUnit = _enums.TimePickerUnits[type];
|
|
34
|
+
console.log("type = ".concat(type, ", timeUnit: ").concat(timeUnit));
|
|
35
|
+
return value !== "" && value >= timeUnit.min && value <= timeUnit.max;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
exports.isUnitTimeInValidRange = isUnitTimeInValidRange;
|
|
39
|
+
//# sourceMappingURL=timePickerUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/TimePicker/timePickerUtils.js"],"names":["getPeriodForDate","date","Date","hours","getHours","PeriodPickerOptions","AM","PM","isUnitTimeInValidRange","value","type","timeUnit","TimePickerUnits","console","log","min","max"],"mappings":";;;;;;;;;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,GAAuB;AAAA,MAAtBC,IAAsB,uEAAf,IAAIC,IAAJ,EAAe;AAC9C,MAAMC,KAAK,GAAGF,IAAI,CAACG,QAAL,EAAd;AACA,SAAOD,KAAK,GAAG,EAAR,GAAaE,2BAAoBC,EAAjC,GAAsCD,2BAAoBE,EAAjE;AACD,CAHD;AAKA;AACA;AACA;AACA;AACA;AACA;;;;;AACA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAyB,CAACC,KAAD,EAAQC,IAAR,EAAiB;AAC9C,MAAMC,QAAQ,GAAGC,uBAAgBF,IAAhB,CAAjB;AACAG,EAAAA,OAAO,CAACC,GAAR,kBAAsBJ,IAAtB,yBAAyCC,QAAzC;AACA,SAAOF,KAAK,KAAK,EAAV,IAAgBA,KAAK,IAAIE,QAAQ,CAACI,GAAlC,IAAyCN,KAAK,IAAIE,QAAQ,CAACK,GAAlE;AACD,CAJD","sourcesContent":["import { PeriodPickerOptions, TimePickerUnits } from \"./enums\";\n\n/**\n * Gets the period(am/pm) for a given time\n * @param {Date} date - Date to get the period from. The default date is the current one.\n * @returns {String} - AM or PM\n */\nconst getPeriodForDate = (date = new Date()) => {\n const hours = date.getHours();\n return hours < 12 ? PeriodPickerOptions.AM : PeriodPickerOptions.PM;\n};\n\n/**\n * Checks if the unit time value is inside the acceptable range\n *\n * @param {Number} value - unit time value\n * @param {String} type - unit time type. One of the TimePickerUnits types.\n */\nconst isUnitTimeInValidRange = (value, type) => {\n const timeUnit = TimePickerUnits[type];\n console.log(`type = ${type}, timeUnit: ${timeUnit}`);\n return value !== \"\" && value >= timeUnit.min && value <= timeUnit.max;\n};\n\nexport { getPeriodForDate, isUnitTimeInValidRange };\n"],"file":"timePickerUtils.js"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export * from "./ActionBar";
|
|
|
7
7
|
export { default as HvActionsGeneric } from "./ActionsGeneric";
|
|
8
8
|
export * from "./ActionsGeneric";
|
|
9
9
|
|
|
10
|
+
export { default as HvAppSwitcher } from "./AppSwitcher";
|
|
11
|
+
export * from "./AppSwitcher";
|
|
12
|
+
|
|
10
13
|
export { default as HvAssetInventory } from "./AssetInventory";
|
|
11
14
|
export * from "./AssetInventory";
|
|
12
15
|
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,7 @@ var _exportNames = {
|
|
|
27
27
|
HvAccordion: true,
|
|
28
28
|
HvActionsGeneric: true,
|
|
29
29
|
HvActionBar: true,
|
|
30
|
+
HvAppSwitcher: true,
|
|
30
31
|
HvAssetInventory: true,
|
|
31
32
|
HvAvatar: true,
|
|
32
33
|
HvBadge: true,
|
|
@@ -127,6 +128,12 @@ Object.defineProperty(exports, "HvActionsGeneric", {
|
|
|
127
128
|
return _ActionsGeneric.default;
|
|
128
129
|
}
|
|
129
130
|
});
|
|
131
|
+
Object.defineProperty(exports, "HvAppSwitcher", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function get() {
|
|
134
|
+
return _AppSwitcher.default;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
130
137
|
Object.defineProperty(exports, "HvAssetInventory", {
|
|
131
138
|
enumerable: true,
|
|
132
139
|
get: function get() {
|
|
@@ -620,6 +627,8 @@ var _ActionsGeneric = _interopRequireDefault(require("./ActionsGeneric"));
|
|
|
620
627
|
|
|
621
628
|
var _ActionBar = _interopRequireDefault(require("./ActionBar"));
|
|
622
629
|
|
|
630
|
+
var _AppSwitcher = _interopRequireDefault(require("./AppSwitcher"));
|
|
631
|
+
|
|
623
632
|
var _AssetInventory = _interopRequireWildcard(require("./AssetInventory"));
|
|
624
633
|
|
|
625
634
|
Object.keys(_AssetInventory).forEach(function (key) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AACA;;AAEA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AACA;;AAEA;;AAEA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAEA;;AAEA;;AAEA;;AACA;;AACA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAaA;;AACA;;AACA;;AAEA;;AASA;;AAGA;;AACA;;AAGA;;AAGA;;AAIA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAGA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["// components\nexport { default as HvAccordion } from \"./Accordion\";\nexport { default as HvActionsGeneric } from \"./ActionsGeneric\";\nexport { default as HvActionBar } from \"./ActionBar\";\nexport { default as HvAppSwitcher } from \"./AppSwitcher\";\nexport { default as HvAssetInventory } from \"./AssetInventory\";\nexport * from \"./AssetInventory\";\nexport { default as HvAvatar } from \"./Avatar\";\nexport { default as HvBadge } from \"./Badge\";\nexport { default as HvBanner } from \"./Banner\";\nexport * from \"./Banner\";\nexport { default as HvBarchart } from \"./Barchart\";\nexport { default as HvBaseDropdown } from \"./BaseDropdown\";\nexport { default as HvBreadcrumb } from \"./BreadCrumb\";\nexport { default as HvBulkActions } from \"./BulkActions\";\nexport { default as HvButton } from \"./Button\";\nexport { default as HvCard } from \"./Card\";\nexport * from \"./Card\";\nexport * from \"./Calendar\";\nexport { default as HvContainer } from \"./Container\";\nexport { default as HvDatePicker } from \"./DatePicker\";\nexport { default as HvDonutchart } from \"./Donutchart\";\nexport { default as HvDropdown } from \"./Dropdown\";\nexport { default as HvDropDownMenu } from \"./DropDownMenu\";\nexport { default as HvEmptyState } from \"./EmptyState\";\nexport { default as HvFilterGroup } from \"./FilterGroup\";\nexport { default as HvFileUploader } from \"./FileUploader\";\nexport * from \"./FileUploader\";\nexport { default as HvFooter } from \"./Footer\";\nexport * from \"./Forms\";\n\nexport { default as HvGrid } from \"./Grid\";\nexport { default as HvGlobalActions } from \"./GlobalActions\";\n\nexport { default as HvHeader } from \"./Header\";\nexport * from \"./Header\";\n\nexport { default as HvBaseInput } from \"./BaseInput\";\nexport { default as HvInput } from \"./Input\";\n\nexport { default as HvKpi } from \"./Kpi\";\n\nexport { default as HvLinechart } from \"./Linechart\";\nexport { default as HvLink } from \"./Link\";\nexport { default as HvListContainer } from \"./ListContainer\";\nexport * from \"./ListContainer\";\n\nexport { default as HvList } from \"./List\";\n\nexport { default as HvSelectionList } from \"./SelectionList\";\n\nexport { default as HvLoading } from \"./Loading\";\nexport { default as HvLogin } from \"./Login\";\nexport { default as HvDialog } from \"./Dialog\";\nexport * from \"./Dialog\";\nexport { default as HvMultiButton } from \"./MultiButton\";\nexport { default as HvPagination } from \"./Pagination\";\n\nexport { default as HvBaseCheckBox } from \"./BaseCheckBox\";\nexport { default as HvCheckBox } from \"./CheckBox\";\nexport { default as HvCheckBoxGroup } from \"./CheckBoxGroup\";\n\nexport { default as HvBaseRadio } from \"./BaseRadio\";\nexport { default as HvRadio } from \"./Radio\";\nexport { default as HvRadioGroup } from \"./RadioGroup\";\n\nexport { default as HvBaseSwitch } from \"./BaseSwitch\";\nexport { default as HvSwitch } from \"./Switch\";\n\nexport { default as HvSnackbar } from \"./Snackbar\";\nexport { default as HvSnackbarContent } from \"./Snackbar/SnackbarContentWrapper\";\nexport { default as HvSnackbarProvider, useHvSnackbar } from \"./Snackbar/SnackbarProvider\";\n\nexport { default as HvTab } from \"./Tab\";\nexport { default as HvTag } from \"./Tag\";\nexport { default as HvTable } from \"./Table\";\nexport { default as HvTabs } from \"./Tabs\";\nexport { default as HvTextArea } from \"./TextArea\";\nexport { default as HvTagsInput } from \"./TagsInput\";\nexport { default as HvToggleButton } from \"./ToggleButton\";\nexport { default as HvTooltip } from \"./Tooltip\";\nexport { default as HvOverflowTooltip } from \"./OverflowTooltip\";\nexport { default as HvTypography } from \"./Typography\";\nexport { default as HvUserPreferences } from \"./UserPreferences\";\n// TODO refactor the HvUserPreferences subcomponents' names\nexport {\n Actions as HvUserPreferencesActions,\n Action as HvUserPreferencesAction,\n} from \"./UserPreferences\";\nexport {\n Options as HvUserPreferencesOptions,\n Option as HvUserPreferencesOption,\n Group as HvUserPreferencesOptionsGroup,\n Label as HvUserPreferencesOptionsGroupLabel,\n} from \"./UserPreferences\";\n\nexport { default as HvScrollToHorizontal } from \"./ScrollTo/Horizontal\";\nexport { default as HvScrollToVertical } from \"./ScrollTo/Vertical\";\nexport { default as useScrollTo } from \"./ScrollTo/useScrollTo\";\n\nexport { default as HvVerticalNavigation } from \"./VerticalNavigation\";\n// TODO refactor the HvVerticalNavigation subcomponents' names\nexport { Navigation as HvVerticalNavigationTree } from \"./VerticalNavigation\";\nexport { TreeView as HvTreeView, TreeViewItem as HvTreeViewItem } from \"./VerticalNavigation\";\nexport {\n Actions as HvVerticalNavigationActions,\n Action as HvVerticalNavigationAction,\n} from \"./VerticalNavigation\";\n\nexport { default as HvPanel } from \"./Panel\";\n\n// HOCs\nexport { default as withId } from \"./withId\";\nexport { default as withTooltip } from \"./withTooltip\";\n\n// Hooks\nexport { default as useUniqueId } from \"./useUniqueId\";\n\n// theme\nexport { default as hvTheme } from \"./theme\";\nexport { themeBuilder, getTheme } from \"./theme\";\n\n// provider\nexport { default as HvProvider } from \"./Provider\";\nexport * from \"./Provider\";\n\n// utils\nexport * from \"./utils\";\n"],"file":"index.js"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardProps } from "@material-ui/core";
|
|
3
|
+
|
|
4
|
+
export interface HvAppSwitcherActionApplication {
|
|
5
|
+
/**
|
|
6
|
+
* Id of the application.
|
|
7
|
+
*/
|
|
8
|
+
id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the application, this is the value that will be displayed on the component.
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* The color to be applied to the item's border and to the default icon.
|
|
15
|
+
* You can use either an HEX or color name from the palette.
|
|
16
|
+
*/
|
|
17
|
+
color?: string;
|
|
18
|
+
/**
|
|
19
|
+
* URL with the icon location to be used to represent the application.
|
|
20
|
+
* iconUrl will only be used if no iconElement is provided.
|
|
21
|
+
*/
|
|
22
|
+
iconUrl?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Element to be added as the icon representing the application.
|
|
25
|
+
* The iconElement will be the primary option to be displayed.
|
|
26
|
+
*/
|
|
27
|
+
iconElement?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Small description of the application.
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
/**
|
|
33
|
+
* URL where the application is accesible.
|
|
34
|
+
*/
|
|
35
|
+
url?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Defines if the application should be opened in the same tab or in a new one.
|
|
38
|
+
*/
|
|
39
|
+
target?: "_top" | "_blank";
|
|
40
|
+
/**
|
|
41
|
+
* If true, the item will be disabled.
|
|
42
|
+
*/
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* True when the application is selected, false otherwise.
|
|
46
|
+
*/
|
|
47
|
+
isSelected?: boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type HvAppSwitcherActionClassKey =
|
|
51
|
+
| "root"
|
|
52
|
+
| "typography"
|
|
53
|
+
| "selected"
|
|
54
|
+
| "icon"
|
|
55
|
+
| "iconUrl"
|
|
56
|
+
| "title"
|
|
57
|
+
| "iconInfo";
|
|
58
|
+
|
|
59
|
+
export interface HvAppSwitcherActionProps
|
|
60
|
+
extends StandardProps<React.HTMLAttributes<HTMLElement>, HvAppSwitcherActionClassKey> {
|
|
61
|
+
/**
|
|
62
|
+
* The application data to be used to render the Action object.
|
|
63
|
+
*/
|
|
64
|
+
application: HvAppSwitcherActionApplication;
|
|
65
|
+
/**
|
|
66
|
+
* Callback triggered when the action is clicked.
|
|
67
|
+
*/
|
|
68
|
+
onClickCallback?: (event: MouseEvent, application?: HvAppSwitcherActionApplication) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Must return a boolean stating if the action element is selected or not.
|
|
71
|
+
*/
|
|
72
|
+
isSelectedCallback?: (application?: HvAppSwitcherActionApplication) => boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default function HvAppSwitcherAction(props: HvAppSwitcherActionProps): JSX.Element | null;
|