Commit 1149d0c2 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

publish: chore: bump manifest version and update of changelog format

generated from commit 06db2d08
parent cf9fa036
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{
/***/ "/Sqe":
/***/ (function(module, exports, __webpack_require__) {
......@@ -182,7 +182,9 @@ var AnalysisConsumption = function AnalysisConsumption(_ref) {
case 0:
profileTypeEntityService = new _profileTypeEntity.default(client);
_context.next = 3;
return profileTypeEntityService.getProfileType(analysisDate);
return profileTypeEntityService.getProfileType(analysisDate.plus({
month: -1
}));
case 3:
profileType = _context.sent;
......@@ -1247,8 +1249,8 @@ var AnalysisErrorModal = function AnalysisErrorModal() {
var history = (0, _reactRouterDom.useHistory)();
var goToOptions = function goToOptions() {
history.push('/options');
var goToConsumption = function goToConsumption() {
history.push('/consumption');
};
var goBack = function goBack() {
......@@ -1286,7 +1288,7 @@ var AnalysisErrorModal = function AnalysisErrorModal() {
}
}, t('analysis_error_modal.go_back')), /*#__PURE__*/_react.default.createElement(_Button.default, {
"aria-label": t('analysis_error_modal.accessibility.button_goto_konnector'),
onClick: goToOptions,
onClick: goToConsumption,
classes: {
root: 'btn-highlight',
label: 'text-16-bold'
......@@ -1506,7 +1508,7 @@ var FluidPerformanceIndicator = function FluidPerformanceIndicator(_ref) {
case 2:
dispatch((0, _chart.setCurrentTimeStep)(_timeStep.TimeStep.DAY));
dispatch((0, _chart.setSelectedDate)(date));
history.push("/consumption/".concat(t('FLUID.' + _fluid.FluidType[fluidType] + '.NAME').toLowerCase()));
history.push("/consumption/".concat(_fluid.FluidType[fluidType].toLowerCase()));
case 5:
case "end":
......@@ -1514,7 +1516,7 @@ var FluidPerformanceIndicator = function FluidPerformanceIndicator(_ref) {
}
}
}, _callee);
})), [t, dispatch, history, date, fluidType, client]);
})), [dispatch, history, date, fluidType, client]);
return /*#__PURE__*/_react.default.createElement(_StyledCard.default, {
onClick: handleClick,
fluidType: fluidType
......
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[11],{
/***/ "WD53":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(module) {
var _interopRequireDefault = __webpack_require__("TqRt");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__("lSNA"));
var _slicedToArray2 = _interopRequireDefault(__webpack_require__("J4zp"));
var _react = _interopRequireWildcard(__webpack_require__("q1tI"));
__webpack_require__("lgt9");
var _reactRedux = __webpack_require__("/MKj");
var _classnames = _interopRequireDefault(__webpack_require__("TSYQ"));
var _fluid = __webpack_require__("5Wkc");
var _timeStep = __webpack_require__("cKQ8");
var _StyledSpinner = _interopRequireDefault(__webpack_require__("HTwM"));
var _CozyBar = _interopRequireDefault(__webpack_require__("CJMG"));
var _Header = _interopRequireDefault(__webpack_require__("frrP"));
var _Content = _interopRequireDefault(__webpack_require__("VOVi"));
var _FluidChart = _interopRequireDefault(__webpack_require__("iT/d"));
var _DateNavigator = _interopRequireDefault(__webpack_require__("Hno1"));
var _chart = __webpack_require__("U6AS");
var _ConsumptionDetails = _interopRequireDefault(__webpack_require__("Otk3"));
(function () {
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
enterModule && enterModule(module);
})();
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); }
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; }
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
return a;
};
var SingleFluidView = function SingleFluidView(_ref) {
var fluidType = _ref.fluidType;
var dispatch = (0, _reactRedux.useDispatch)();
var _useSelector = (0, _reactRedux.useSelector)(function (state) {
return state.ecolyo.chart;
}),
currentTimeStep = _useSelector.currentTimeStep,
loading = _useSelector.loading;
var _useState = (0, _react.useState)(0),
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
headerHeight = _useState2[0],
setHeaderHeight = _useState2[1];
var defineHeaderHeight = (0, _react.useCallback)(function (height) {
setHeaderHeight(height);
}, []);
(0, _react.useEffect)(function () {
if (fluidType !== _fluid.FluidType.ELECTRICITY && currentTimeStep == _timeStep.TimeStep.HALF_AN_HOUR) {
dispatch((0, _chart.setCurrentTimeStep)(_timeStep.TimeStep.WEEK));
}
}, [dispatch, fluidType, currentTimeStep]);
(0, _react.useEffect)(function () {
dispatch((0, _chart.setLoading)(true));
}, [dispatch]);
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CozyBar.default, {
titleKey: "FLUID.".concat(_fluid.FluidType[fluidType], ".NAME"),
displayBackArrow: true
}), /*#__PURE__*/_react.default.createElement(_Header.default, {
setHeaderHeight: defineHeaderHeight,
desktopTitleKey: "FLUID.".concat(_fluid.FluidType[fluidType], ".NAME"),
displayBackArrow: true
}, /*#__PURE__*/_react.default.createElement(_DateNavigator.default, null)), /*#__PURE__*/_react.default.createElement(_Content.default, {
height: headerHeight
}, loading && /*#__PURE__*/_react.default.createElement("div", {
className: 'singlefluidview-loading',
"aria-busy": "true"
}, /*#__PURE__*/_react.default.createElement(_StyledSpinner.default, {
size: "5em",
fluidType: fluidType
})), /*#__PURE__*/_react.default.createElement("div", {
className: (0, _classnames.default)('singlefluidview-content', (0, _defineProperty2.default)({}, '--hidden', loading))
}, /*#__PURE__*/_react.default.createElement(_FluidChart.default, {
fluidType: fluidType
}), /*#__PURE__*/_react.default.createElement(_ConsumptionDetails.default, {
fluidType: fluidType
}))));
};
__signature__(SingleFluidView, "useDispatch{dispatch}\nuseSelector{{ currentTimeStep, loading }}\nuseState{[headerHeight, setHeaderHeight](0)}\nuseCallback{defineHeaderHeight}\nuseEffect{}\nuseEffect{}", function () {
return [_reactRedux.useDispatch, _reactRedux.useSelector];
});
var _default = SingleFluidView;
var _default2 = _default;
exports.default = _default2;
;
(function () {
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
if (!reactHotLoader) {
return;
}
reactHotLoader.register(SingleFluidView, "SingleFluidView", "/home/hugo/ecolyo/src/components/SingleFluid/SingleFluidView.tsx");
reactHotLoader.register(_default, "default", "/home/hugo/ecolyo/src/components/SingleFluid/SingleFluidView.tsx");
})();
;
(function () {
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("YuTi")(module)))
/***/ }),
/***/ "Y5EC":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(module) {
var _interopRequireDefault = __webpack_require__("TqRt");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__("QILm"));
var _react = _interopRequireDefault(__webpack_require__("q1tI"));
var _fluid = __webpack_require__("5Wkc");
var _Switch = _interopRequireDefault(__webpack_require__("DJX/"));
var _styles = __webpack_require__("DfQ9");
var _excluded = ["fluidType"];
(function () {
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
enterModule && enterModule(module);
})();
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
return a;
};
var SwitchBase = (0, _styles.withStyles)({
root: {
paddingLeft: 0,
width: 52,
overflow: 'initial'
},
switchBase: {
color: 'var(--greyBright)',
width: 'auto',
left: -8,
'&$checked': {
color: 'var(--greyBright)',
'& + $track': {
opacity: 1,
backgroundColor: 'var(--multiColor)'
}
}
},
checked: {},
track: {
opacity: 1,
backgroundColor: 'var(--greyDark)',
marginTop: 'initial',
marginLeft: 'initial',
left: 0
}
})(_Switch.default);
var SwitchElec = (0, _styles.withStyles)({
switchBase: {
'&$checked': {
'& + $track': {
backgroundColor: 'var(--elecColor)'
}
}
},
checked: {},
track: {}
})(SwitchBase);
var SwitchWater = (0, _styles.withStyles)({
switchBase: {
'&$checked': {
'& + $track': {
backgroundColor: 'var(--waterColor)'
}
}
},
checked: {},
track: {}
})(SwitchBase);
var SwitchGas = (0, _styles.withStyles)({
switchBase: {
'&$checked': {
'& + $track': {
backgroundColor: 'var(--gasColor)'
}
}
},
checked: {},
track: {}
})(SwitchBase);
var StyledSwitch = function StyledSwitch(_ref) {
var fluidType = _ref.fluidType,
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
if (fluidType !== undefined) {
switch (fluidType) {
case _fluid.FluidType.ELECTRICITY:
return /*#__PURE__*/_react.default.createElement(SwitchElec, props);
case _fluid.FluidType.WATER:
return /*#__PURE__*/_react.default.createElement(SwitchWater, props);
case _fluid.FluidType.GAS:
return /*#__PURE__*/_react.default.createElement(SwitchGas, props);
default:
return /*#__PURE__*/_react.default.createElement(SwitchBase, props);
}
} else {
return /*#__PURE__*/_react.default.createElement(SwitchBase, props);
}
};
var _default = StyledSwitch;
var _default2 = _default;
exports.default = _default2;
;
(function () {
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
if (!reactHotLoader) {
return;
}
reactHotLoader.register(SwitchBase, "SwitchBase", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
reactHotLoader.register(SwitchElec, "SwitchElec", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
reactHotLoader.register(SwitchWater, "SwitchWater", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
reactHotLoader.register(SwitchGas, "SwitchGas", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
reactHotLoader.register(StyledSwitch, "StyledSwitch", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
reactHotLoader.register(_default, "default", "/home/hugo/ecolyo/src/components/CommonKit/Switch/StyledSwitch.tsx");
})();
;
(function () {
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
leaveModule && leaveModule(module);
})();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("YuTi")(module)))
/***/ }),
/***/ "lgt9":
/***/ (function(module, exports, __webpack_require__) {
var content = __webpack_require__("oe+O");
if(typeof content === 'string') content = [[module.i, content, '']];
var transform;
var insertInto;
var options = {"hmr":true}
options.transform = transform
options.insertInto = undefined;
var update = __webpack_require__("aET+")(content, options);
if(content.locals) module.exports = content.locals;
if(false) {}
/***/ }),
/***/ "oe+O":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("JPst")(false);
// Module
exports.push([module.i, ".singlefluidview-loading {\n height: 80vh;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.singlefluidview-content.--hidden {\n display: none; }\n", ""]);
/***/ })
}]);
\ No newline at end of file
This diff is collapsed.
......@@ -211,7 +211,7 @@ exports.default = _default2;
exports = module.exports = __webpack_require__("JPst")(false);
// Module
exports.push([module.i, "/** BLACK **/\n/** RED **/\n/** YELLOW **/\n/** BLUE **/\n/** GREEN **/\n/** WHITE **/\n/** GREY **/\n/** App colors **/\n/** TABS GRADIENT **/\n/** SCROLLBAR **/\n.ecogesture-root {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 1.5rem 2.5rem 1.5rem; }\n .ecogesture-root .efficiency-button-content {\n max-width: 52rem;\n width: 97%;\n display: flex;\n justify-content: space-between;\n align-items: center; }\n @media only screen and (max-width: 1023px) {\n .ecogesture-root .efficiency-button-content {\n width: 97%; } }\n @media only screen and (max-width: 768px) {\n .ecogesture-root .efficiency-button-content {\n width: 97%; } }\n .ecogesture-root .efficiency-button-content .filters {\n display: flex;\n align-items: center;\n height: 50px;\n color: white;\n position: relative; }\n .ecogesture-root .efficiency-button-content .filters .filter {\n height: 45px;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n cursor: pointer; }\n .ecogesture-root .efficiency-button-content .filters .filter svg {\n margin-right: 1rem; }\n .ecogesture-root .efficiency-button-content .filters .filter .checkicon {\n opacity: 0;\n margin-left: auto;\n transition: all 300ms ease; }\n .ecogesture-root .efficiency-button-content .filters .filter .checkicon.active {\n opacity: 1; }\n .ecogesture-root .efficiency-button-content .filters .ecogestures {\n font-size: 0.95rem;\n text-transform: initial;\n padding-left: 0.5rem; }\n .ecogesture-root .efficiency-button-content .filters .ecogestures.opened {\n color: #e3b82a; }\n .ecogesture-root .efficiency-button-content .filters .filter-button {\n display: flex; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative {\n margin: auto;\n display: flex;\n align-items: center; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative span {\n display: inline-flex;\n margin-bottom: 0;\n transition: all 300ms ease; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative svg {\n margin-right: 1rem;\n margin-left: -0.5rem; }\n .ecogesture-root .efficiency-button-content button.btn-secondary-negative {\n margin: 0;\n padding: 0.3rem 0.5rem;\n min-width: 11rem;\n height: 2.25rem;\n justify-content: left; }\n .ecogesture-root .efficiency-button-content button.btn-secondary-negative.btn-info {\n margin: 0 0 0 1rem;\n padding: 0;\n width: 2.25rem;\n min-width: 2.25rem;\n justify-content: center; }\n .ecogesture-root .ecogesture-content {\n display: flex;\n flex-wrap: wrap;\n max-width: 53rem;\n animation: appear 600ms ease;\n width: 100%; }\n\n@keyframes appear {\n from {\n opacity: 0; }\n to {\n opacity: 1; } }\n .ecogesture-root .ecogesture-content .ecogesture-content-loading {\n height: 80vh;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n color: #e0e0e0; }\n .ecogesture-root .ecogesture-content .ecogesture-list-item {\n width: 48%;\n height: 8rem;\n margin: 1% 1%;\n animation: appear 600ms ease; }\n .ecogesture-root .ecogesture-content .ecogesture-list-item > button {\n height: 100%;\n overflow: hidden;\n animation: appear 600ms ease; }\n .ecogesture-root .ec-filter-error {\n color: #e0e0e0;\n text-align: center;\n margin-top: 2rem; }\n .ecogesture-root .ec-filter-error div:first-child {\n margin-bottom: 1rem; }\n\ndiv.filter-menu {\n margin-top: 3.5rem;\n margin-left: -0.5rem;\n color: white;\n background: linear-gradient(0deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)), linear-gradient(180deg, #323339 0%, #25262b 100%);\n border: 1px solid #a0a0a0;\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.55);\n border-radius: 4px;\n z-index: 3;\n width: 220px;\n padding: 0.5rem 0rem;\n font-size: 0.875rem;\n left: 0;\n transition: all 300ms ease; }\n div.filter-menu.opened {\n display: block; }\n div.filter-menu .filter {\n padding: 0 1rem; }\n div.filter-menu .filter.filter-active {\n background: rgba(160, 160, 160, 0.2); }\n\n.filter-menu-list li {\n color: white;\n text-transform: initial;\n font-family: Lato, sans-serif; }\n .filter-menu-list li.item-active {\n font-weight: 700; }\n\n.filter-menu-icon {\n margin-left: auto; }\n", ""]);
exports.push([module.i, "/** BLACK **/\n/** RED **/\n/** YELLOW **/\n/** BLUE **/\n/** GREEN **/\n/** WHITE **/\n/** GREY **/\n/** App colors **/\n/** TABS GRADIENT **/\n/** SCROLLBAR **/\n.ecogesture-root {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 1rem 1.5rem 2.5rem 1.5rem; }\n .ecogesture-root .efficiency-button-content {\n max-width: 52rem;\n width: 97%;\n display: flex;\n justify-content: space-between;\n align-items: center; }\n @media only screen and (max-width: 1023px) {\n .ecogesture-root .efficiency-button-content {\n width: 97%; } }\n @media only screen and (max-width: 768px) {\n .ecogesture-root .efficiency-button-content {\n width: 97%; } }\n .ecogesture-root .efficiency-button-content .filters {\n display: flex;\n align-items: center;\n height: 50px;\n color: white;\n position: relative; }\n .ecogesture-root .efficiency-button-content .filters .filter {\n height: 45px;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n cursor: pointer; }\n .ecogesture-root .efficiency-button-content .filters .filter svg {\n margin-right: 1rem; }\n .ecogesture-root .efficiency-button-content .filters .filter .checkicon {\n opacity: 0;\n margin-left: auto;\n transition: all 300ms ease; }\n .ecogesture-root .efficiency-button-content .filters .filter .checkicon.active {\n opacity: 1; }\n .ecogesture-root .efficiency-button-content .filters .ecogestures {\n font-size: 0.95rem;\n text-transform: initial;\n padding-left: 0.5rem; }\n .ecogesture-root .efficiency-button-content .filters .ecogestures.opened {\n color: #e3b82a; }\n .ecogesture-root .efficiency-button-content .filters .filter-button {\n display: flex; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative {\n margin: auto;\n display: flex;\n align-items: center; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative span {\n display: inline-flex;\n margin-bottom: 0;\n transition: all 300ms ease; }\n .ecogesture-root .efficiency-button-content .filters .filter-button .button.btn-secondary-negative svg {\n margin-right: 1rem;\n margin-left: -0.5rem; }\n .ecogesture-root .efficiency-button-content button.btn-secondary-negative {\n margin: 0;\n padding: 0.3rem 0.5rem;\n min-width: 11rem;\n height: 2.25rem;\n justify-content: left; }\n .ecogesture-root .efficiency-button-content button.btn-secondary-negative.btn-info {\n margin: 0 0 0 1rem;\n padding: 0;\n width: 2.25rem;\n min-width: 2.25rem;\n justify-content: center; }\n .ecogesture-root .ecogesture-content {\n display: flex;\n flex-wrap: wrap;\n max-width: 53rem;\n animation: appear 600ms ease;\n width: 100%; }\n\n@keyframes appear {\n from {\n opacity: 0; }\n to {\n opacity: 1; } }\n .ecogesture-root .ecogesture-content .ecogesture-content-loading {\n height: 80vh;\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n color: #e0e0e0; }\n .ecogesture-root .ecogesture-content .ecogesture-list-item {\n width: 48%;\n height: 8rem;\n margin: 1% 1%;\n animation: appear 600ms ease; }\n .ecogesture-root .ecogesture-content .ecogesture-list-item > button {\n height: 100%;\n overflow: hidden;\n animation: appear 600ms ease; }\n .ecogesture-root .ec-filter-error {\n color: #e0e0e0;\n text-align: center;\n margin-top: 2rem; }\n .ecogesture-root .ec-filter-error div:first-child {\n margin-bottom: 1rem; }\n\ndiv.filter-menu {\n margin-top: 3.5rem;\n margin-left: -0.5rem;\n color: white;\n background: linear-gradient(0deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)), linear-gradient(180deg, #323339 0%, #25262b 100%);\n border: 1px solid #a0a0a0;\n box-sizing: border-box;\n box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.55);\n border-radius: 4px;\n z-index: 3;\n width: 220px;\n padding: 0.5rem 0rem;\n font-size: 0.875rem;\n left: 0;\n transition: all 300ms ease; }\n div.filter-menu.opened {\n display: block; }\n div.filter-menu .filter {\n padding: 0 1rem; }\n div.filter-menu .filter.filter-active {\n background: rgba(160, 160, 160, 0.2); }\n\n.filter-menu-list li {\n color: white;\n text-transform: initial;\n font-family: Lato, sans-serif; }\n .filter-menu-list li.item-active {\n font-weight: 700; }\n\n.filter-menu-icon {\n margin-left: auto;\n min-width: 0; }\n", ""]);
......@@ -988,7 +988,7 @@ var EcogestureList = function EcogestureList(_ref) {
},
"aria-controls": "simple-menu",
"aria-haspopup": "true",
"aria-label": t("ecogesture.".concat(activeFilter)),
"aria-label": t("ecogesture.MENU_TITLE"),
onClick: toggleMenu,
variant: "contained"
}, /*#__PURE__*/_react.default.createElement(_StyledIcon.default, {
......@@ -996,7 +996,7 @@ var EcogestureList = function EcogestureList(_ref) {
size: 24
}), /*#__PURE__*/_react.default.createElement("span", {
className: openDropDown ? 'ecogestures opened' : 'ecogestures'
}, t("ecogesture.".concat(activeFilter)))), /*#__PURE__*/_react.default.createElement(_core.Menu, {
}, activeFilter === 'ALL' ? t("ecogesture.MENU_TITLE") : t("ecogesture.".concat(activeFilter)))), /*#__PURE__*/_react.default.createElement(_core.Menu, {
anchorEl: anchorEl,
keepMounted: true,
open: Boolean(anchorEl),
......
......@@ -157,16 +157,16 @@ var _leftArrow = _interopRequireDefault(__webpack_require__("bZGv"));
var _rightArrow = _interopRequireDefault(__webpack_require__("fZGW"));
var _doubleRightArrow = _interopRequireDefault(__webpack_require__("knCy"));
var _doubleLeftArrow = _interopRequireDefault(__webpack_require__("t2ur"));
var _IconButton = _interopRequireDefault(__webpack_require__("o6Jd"));
var _Icon = _interopRequireDefault(__webpack_require__("y6ex"));
var _timeStep = __webpack_require__("cKQ8");
var _utils = __webpack_require__("c+yx");
var _fluid = __webpack_require__("5Wkc");
(function () {
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
enterModule && enterModule(module);
......@@ -192,6 +192,11 @@ var DateNavigator = function DateNavigator(_ref) {
selectedDate = _useSelector.selectedDate,
currentIndex = _useSelector.currentIndex;
var _useSelector2 = (0, _reactRedux.useSelector)(function (state) {
return state.ecolyo.global;
}),
fluidStatus = _useSelector2.fluidStatus;
var disablePrev = selectedDate < _luxon.DateTime.local(0, 1, 1).setZone('utc', {
keepLocalTime: true
});
......@@ -214,47 +219,28 @@ var DateNavigator = function DateNavigator(_ref) {
};
var handleChangePrevIndex = function handleChangePrevIndex() {
if (!disablePrev) {
if (!disablePrev && (0, _utils.isKonnectorActive)(fluidStatus, _fluid.FluidType.MULTIFLUID)) {
var increment = dateChartService.defineIncrementForPreviousIndex(currentTimeStep, selectedDate, currentIndex);
handleClickMove(increment);
}
};
var handleChangeNextIndex = function handleChangeNextIndex() {
if (!disableNextSlide) {
console.log(!(0, _utils.isKonnectorActive)(fluidStatus, _fluid.FluidType.MULTIFLUID));
if (!disableNextSlide && (0, _utils.isKonnectorActive)(fluidStatus, _fluid.FluidType.MULTIFLUID)) {
var increment = dateChartService.defineIncrementForNextIndex(currentTimeStep, selectedDate, currentIndex);
handleClickMove(increment);
}
};
var handleClickPrev = function handleClickPrev() {
if (!disablePrev) {
handleClickMove(-1);
}
};
var handleClickNext = function handleClickNext() {
if (!disableNext) {
handleClickMove(1);
}
};
return /*#__PURE__*/_react.default.createElement("div", {
className: "date-navigator"
}, /*#__PURE__*/_react.default.createElement("div", null, !currentAnalysisDate && /*#__PURE__*/_react.default.createElement(_IconButton.default, {
"aria-label": t('consumption.accessibility.button_previous_period'),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disablePrev)),
onClick: function onClick() {
return handleChangePrevIndex();
}
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
icon: _doubleLeftArrow.default,
size: 16
}))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
"aria-label": t('consumption.accessibility.button_previous_value'),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disablePrev)),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disablePrev || !(0, _utils.isKonnectorActive)(fluidStatus, _fluid.FluidType.MULTIFLUID))),
onClick: function onClick() {
return handleClickPrev();
return handleChangePrevIndex();
}
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
icon: _leftArrow.default,
......@@ -266,27 +252,18 @@ var DateNavigator = function DateNavigator(_ref) {
}) : selectedDate
}), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
"aria-label": t('consumption.accessibility.button_next_value'),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disableNext)),
onClick: function onClick() {
return handleClickNext();
}
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
icon: _rightArrow.default,
size: 16
}))), /*#__PURE__*/_react.default.createElement("div", null, !currentAnalysisDate && /*#__PURE__*/_react.default.createElement(_IconButton.default, {
"aria-label": t('consumption.accessibility.button_next_period'),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disableNext || disableNextSlide)),
className: (0, _classnames.default)('date-navigator-button', (0, _defineProperty2.default)({}, 'disable', disableNext || !(0, _utils.isKonnectorActive)(fluidStatus, _fluid.FluidType.MULTIFLUID))),
onClick: function onClick() {
return handleChangeNextIndex();
}
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
icon: _doubleRightArrow.default,
icon: _rightArrow.default,
size: 16
}))));
};
__signature__(DateNavigator, "useI18n{{ t }}\nuseDispatch{dispatch}\nuseSelector{{ currentTimeStep, selectedDate, currentIndex }}", function () {
return [_I18n.useI18n, _reactRedux.useDispatch, _reactRedux.useSelector];
__signature__(DateNavigator, "useI18n{{ t }}\nuseDispatch{dispatch}\nuseSelector{{ currentTimeStep, selectedDate, currentIndex }}\nuseSelector{{ fluidStatus }}", function () {
return [_I18n.useI18n, _reactRedux.useDispatch, _reactRedux.useSelector, _reactRedux.useSelector];
});
var _default = DateNavigator;
......@@ -346,7 +323,7 @@ if(false) {}
exports = module.exports = __webpack_require__("JPst")(false);
// Module
exports.push([module.i, "/** BLACK **/\n/** RED **/\n/** YELLOW **/\n/** BLUE **/\n/** GREEN **/\n/** WHITE **/\n/** GREY **/\n/** App colors **/\n/** TABS GRADIENT **/\n/** SCROLLBAR **/\n.date-navigator {\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n width: 100%;\n margin: auto;\n padding-bottom: 0.313rem;\n max-width: 45.75rem; }\n .date-navigator .date-navigator-button {\n border: none;\n background: none;\n color: #a0a0a0;\n text-decoration: underline; }\n .date-navigator .date-navigator-button.disable {\n opacity: 0.3; }\n .date-navigator .date-navigator-button.disable:hover {\n cursor: default; }\n", ""]);
exports.push([module.i, "/** BLACK **/\n/** RED **/\n/** YELLOW **/\n/** BLUE **/\n/** GREEN **/\n/** WHITE **/\n/** GREY **/\n/** App colors **/\n/** TABS GRADIENT **/\n/** SCROLLBAR **/\n.date-navigator {\n display: flex;\n flex-direction: row;\n justify-content: space-around;\n width: 100%;\n margin: auto;\n padding-bottom: 0.6rem;\n max-width: 45.75rem; }\n .date-navigator .date-navigator-button {\n border: none;\n background: none;\n color: #a0a0a0;\n text-decoration: underline; }\n .date-navigator .date-navigator-button.disable {\n opacity: 0.3; }\n .date-navigator .date-navigator-button.disable:hover {\n cursor: default; }\n", ""]);
......@@ -482,28 +459,6 @@ exports.default = _default2;
/***/ }),
/***/ "knCy":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4BeY");
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("IaFt");
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default.a({
"id": "double-right-arrow_6806679594bd9fa51ce719d3b5246b4e",
"use": "double-right-arrow_6806679594bd9fa51ce719d3b5246b4e-usage",
"viewBox": "0 0 17 17",
"content": "<symbol viewBox=\"0 0 17 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" id=\"double-right-arrow_6806679594bd9fa51ce719d3b5246b4e\">\n<path d=\"M1 16.5L9 8.5L0.999999 0.500001\" stroke=\"#A0A0A0\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" />\n<path d=\"M8 16.5L16 8.5L8 0.500001\" stroke=\"#A0A0A0\" stroke-miterlimit=\"10\" stroke-linecap=\"round\" />\n</symbol>"
});
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
/* harmony default export */ __webpack_exports__["default"] = (symbol);