sling-web-business-aggregate-sales
Advanced tools
Comparing version 1.35.1 to 1.36.0
"use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -67,6 +69,2 @@ | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } | ||
@@ -76,4 +74,2 @@ | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -83,2 +79,12 @@ | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -105,7 +111,7 @@ value: true | ||
var AggregateSales = | ||
/*#__PURE__*/ | ||
function (_slingFramework$Sling) { | ||
var AggregateSales = /*#__PURE__*/function (_slingFramework$Sling) { | ||
_inherits(AggregateSales, _slingFramework$Sling); | ||
var _super = _createSuper(AggregateSales); | ||
function AggregateSales() { | ||
@@ -116,3 +122,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(AggregateSales).call(this)); | ||
_this = _super.call(this); | ||
instanceName = _this.localName; | ||
@@ -166,3 +172,3 @@ _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this)); | ||
value: function renderHeader() { | ||
return this.showdaterange ? _slingFramework.html(_templateObject(), AggregateSales.getFormattedDateRange(this.startdate, this.finaldate)) : _slingFramework.html(_templateObject2()); | ||
return this.showdaterange ? (0, _slingFramework.html)(_templateObject(), AggregateSales.getFormattedDateRange(this.startdate, this.finaldate)) : (0, _slingFramework.html)(_templateObject2()); | ||
} | ||
@@ -172,3 +178,3 @@ }, { | ||
value: function renderBody() { | ||
return _slingFramework.html(_templateObject3(), this.handleClick, AggregateSales.getGroupedProductTypeAmount(this.apidata), this.producttypescolumns); | ||
return (0, _slingFramework.html)(_templateObject3(), this.handleClick, AggregateSales.getGroupedProductTypeAmount(this.apidata), this.producttypescolumns); | ||
} | ||
@@ -183,3 +189,3 @@ }, { | ||
}]; | ||
return _slingFramework.html(_templateObject4(), totalsrcdata, this.totalcolumns); | ||
return (0, _slingFramework.html)(_templateObject4(), totalsrcdata, this.totalcolumns); | ||
} | ||
@@ -189,3 +195,3 @@ }, { | ||
value: function render() { | ||
return _slingFramework.html(_templateObject5(), this.loading > 0, this.renderHeader(), this.renderBody(), this.renderFooter()); | ||
return (0, _slingFramework.html)(_templateObject5(), this.loading > 0, this.renderHeader(), this.renderBody(), this.renderFooter()); | ||
} | ||
@@ -232,3 +238,3 @@ }], [{ | ||
get: function get() { | ||
return _objectSpread({}, _get(_getPrototypeOf(AggregateSales), "properties", this), { | ||
return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(AggregateSales), "properties", this)), {}, { | ||
startdate: { | ||
@@ -235,0 +241,0 @@ type: String, |
@@ -125,3 +125,3 @@ "use strict"; | ||
renderHeader() { | ||
return this.showdaterange ? _slingFramework.html` | ||
return this.showdaterange ? (0, _slingFramework.html)` | ||
<div class="business-component__header business-component__header_date" slot="header"> | ||
@@ -133,3 +133,3 @@ <div> | ||
</div> | ||
` : _slingFramework.html` | ||
` : (0, _slingFramework.html)` | ||
<div class="business-component__header business-component__header_title" slot="header"> | ||
@@ -144,3 +144,3 @@ <div> | ||
renderBody() { | ||
return _slingFramework.html` | ||
return (0, _slingFramework.html)` | ||
<sling-table | ||
@@ -162,3 +162,3 @@ noheader | ||
}]; | ||
return _slingFramework.html` | ||
return (0, _slingFramework.html)` | ||
<div slot="footer"> | ||
@@ -180,3 +180,3 @@ <div class="business-component__header business-component__header_total"> | ||
render() { | ||
return _slingFramework.html` | ||
return (0, _slingFramework.html)` | ||
<style> | ||
@@ -183,0 +183,0 @@ |
@@ -1,5 +0,7 @@ | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
@@ -65,6 +67,2 @@ | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); } | ||
@@ -74,4 +72,2 @@ | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
@@ -81,2 +77,12 @@ | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function () { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
import { html, SlingBusinessElement } from 'sling-framework'; | ||
@@ -90,7 +96,7 @@ import { salesActions, bindActionCreators } from 'customer-js-sdk'; | ||
var instanceName; | ||
export var AggregateSales = | ||
/*#__PURE__*/ | ||
function (_SlingBusinessElement) { | ||
export var AggregateSales = /*#__PURE__*/function (_SlingBusinessElement) { | ||
_inherits(AggregateSales, _SlingBusinessElement); | ||
var _super = _createSuper(AggregateSales); | ||
function AggregateSales() { | ||
@@ -101,3 +107,3 @@ var _this; | ||
_this = _possibleConstructorReturn(this, _getPrototypeOf(AggregateSales).call(this)); | ||
_this = _super.call(this); | ||
instanceName = _this.localName; | ||
@@ -213,3 +219,3 @@ _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this)); | ||
get: function get() { | ||
return _objectSpread({}, _get(_getPrototypeOf(AggregateSales), "properties", this), { | ||
return _objectSpread(_objectSpread({}, _get(_getPrototypeOf(AggregateSales), "properties", this)), {}, { | ||
startdate: { | ||
@@ -216,0 +222,0 @@ type: String, |
{ | ||
"name": "sling-web-business-aggregate-sales", | ||
"version": "1.35.1", | ||
"version": "1.36.0", | ||
"description": "Aggregate Sales Business Component", | ||
@@ -5,0 +5,0 @@ "author": "Stone Pagamentos", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1067767
16419