awing-library 2.1.206-dev → 2.1.208-dev
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.
|
@@ -41,7 +41,7 @@ var CustomerContainer = function (props) {
|
|
|
41
41
|
var getCustomerData = function (time) {
|
|
42
42
|
setIsLoading(true);
|
|
43
43
|
client
|
|
44
|
-
.campaignStatisticGetCustomer((0, moment_1.default)(startDate).format(Enum_1.DATE_FORMAT), (0, moment_1.default)(endDate).format(Enum_1.DATE_FORMAT), campaignId)
|
|
44
|
+
.campaignStatisticGetCustomer((0, moment_1.default)(time.startDate).format(Enum_1.DATE_FORMAT), (0, moment_1.default)(time.endDate).format(Enum_1.DATE_FORMAT), campaignId)
|
|
45
45
|
.then(function (res) {
|
|
46
46
|
var tmp_audienceOverviews = filteredData(res.audienceObjects, lodash_1.default.cloneDeep(time.startDate), lodash_1.default.cloneDeep(time.endDate));
|
|
47
47
|
setCustomerData({
|
|
@@ -23,7 +23,7 @@ var TabStatistic = function (props) {
|
|
|
23
23
|
var handleChangeTab = function (event) {
|
|
24
24
|
onChangeTab(Number(event.target.tabIndex));
|
|
25
25
|
};
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { padding: function (theme) { return theme.spacing(2); } },
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, sx: { padding: function (theme) { return theme.spacing(2); } }, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 12, children: (0, jsx_runtime_1.jsxs)(material_1.Grid, { container: true, children: [(0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 3, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h6", sx: {
|
|
27
27
|
marginTop: function (theme) { return theme.spacing(1); },
|
|
28
28
|
marginLeft: function (theme) { return theme.spacing(2); },
|
|
29
29
|
}, children: translationText.title }) }), (0, jsx_runtime_1.jsx)(material_1.Grid, { item: true, xs: 6, children: (0, jsx_runtime_1.jsx)(material_1.ButtonGroup, { sx: {
|
|
@@ -176,10 +176,7 @@ function DataInput(props) {
|
|
|
176
176
|
}
|
|
177
177
|
case 'number': {
|
|
178
178
|
return ((0, jsx_runtime_1.jsx)(AWING_1.NumberFormat, __assign({ id: fieldName.toString(), name: fieldName.toString(), fullWidth: true, variant: "standard" }, other, { value: value !== null && value !== void 0 ? value : '', onChange: function (event) {
|
|
179
|
-
|
|
180
|
-
var newValue = fieldDefinition.isFloat
|
|
181
|
-
? event.target.value
|
|
182
|
-
: Number(event.target.value);
|
|
179
|
+
var newValue = Number(event.target.value);
|
|
183
180
|
onChange(newValue, checkValidationValue(fieldDefinition, newValue));
|
|
184
181
|
}, error: error, helperText: !disableHelperText && error
|
|
185
182
|
? (_h = fieldDefinition.helperText) !== null && _h !== void 0 ? _h : t('Common.InvalidData')
|