desk-kit 2.1.5 → 2.1.7
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.
|
@@ -140,7 +140,7 @@ var Documents = function Documents(props) {
|
|
|
140
140
|
title: title,
|
|
141
141
|
subheader: subheader,
|
|
142
142
|
action: /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
143
|
-
variant: "
|
|
143
|
+
variant: "outlined",
|
|
144
144
|
color: "primary",
|
|
145
145
|
startIcon: /*#__PURE__*/_react["default"].createElement(_AttachFile["default"], null),
|
|
146
146
|
onClick: openFileDialog
|
package/dist/config/const.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.validEmail = exports.valiationSessionUser = exports.unitList = exports.typeList = exports.typeBudgetList = exports.templateList = exports.stringToHash = exports.stringToColor = exports.statusSourceList = exports.statusBudgetList = exports.singleName = exports.satUSO = exports.routerType = exports.removeElementById = exports.relationshipSat = exports.regimenList = exports.regimenAduaneroList = exports.periodicityList = exports.paymentMethodSat = exports.paymentFormList = exports.onlyUnique = exports.monthsList = exports.lista_tipo_regimen = exports.lista_tipo_contrato = exports.lista_riesgo = exports.lista_periodicidad = exports.lista_jornada = exports.isMobileServer = exports.invoiceType = exports.invoiceColor = exports.insertAtPosition = exports.hashToNeonColor = exports.hashToColor = exports.getNameInitials = exports.getName = exports.getFullUrl = exports.getDayNameById = exports.getCFDITAXEXLIST = exports.getCFDITAXES = exports.getCFDISUBTOTAL = exports.getBackgroundColor = exports.exportMoneySat = exports.exportListSat = exports.entidadesmodal = exports.entidades = exports.defaultTaxes = exports.daysOfflist = exports.daysOfWeek = exports.currencyNumber = exports.currency = exports.countrySatList = exports.colorPercentaje = exports.bytesToSize = exports._getValue = exports.SATremolque = exports.SATViaEntradaSalida = exports.SATTipoFigura = exports.SATPartesTrans = exports.SATEntradaSalidaMerc = exports.PoloList = exports.PaisSat = exports.EntidadSat = exports.ConfigVehicularList = exports.AWSBUCKET = exports.API_LOCAL = exports.API = exports.ALL_PERMISSONS = void 0;
|
|
7
|
+
exports.validEmail = exports.valiationSessionUser = exports.unitList = exports.typeList = exports.typeBudgetList = exports.templateList = exports.stringToHash = exports.stringToColor = exports.statusSourceList = exports.statusBudgetList = exports.singleName = exports.satUSO = exports.routerType = exports.removeElementById = exports.relationshipSat = exports.regimenList = exports.regimenAduaneroList = exports.periodicityList = exports.paymentMethodSat = exports.paymentFormList = exports.onlyUnique = exports.monthsList = exports.lista_tipo_regimen = exports.lista_tipo_contrato = exports.lista_riesgo = exports.lista_periodicidad = exports.lista_jornada = exports.isMobileServer = exports.invoiceType = exports.invoiceColor = exports.insertAtPosition = exports.hashToNeonColor = exports.hashToColor = exports.getNameInitials = exports.getName = exports.getFullUrl = exports.getDayNameById = exports.getCFDITAXEXLIST = exports.getCFDITAXES = exports.getCFDISUBTOTAL = exports.getBackgroundColor = exports.exportMoneySat = exports.exportListSat = exports.entidadesmodal = exports.entidades = exports.defaultTaxes = exports.daysOfflist = exports.daysOfWeek = exports.currencyNumber = exports.currency = exports.countrySatList = exports.colorPercentaje = exports.bytesToSize = exports._getValue = exports.SATremolque = exports.SATViaEntradaSalida = exports.SATTipoFigura = exports.SATPartesTrans = exports.SATEntradaSalidaMerc = exports.PoloList = exports.PaisSat = exports.LineTextEllipsis = exports.EntidadSat = exports.ConfigVehicularList = exports.AWSBUCKET = exports.API_LOCAL = exports.API = exports.ALL_PERMISSONS = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _styles = require("@mui/material/styles");
|
|
10
|
+
var _material = require("@mui/material");
|
|
7
11
|
var _moment = _interopRequireDefault(require("moment"));
|
|
12
|
+
var _excluded = ["lines", "children"];
|
|
8
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
16
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
20
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
21
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
22
|
var API = exports.API = process.env.NEXT_PUBLIC_API;
|
|
16
23
|
var API_LOCAL = exports.API_LOCAL = process.env.API_LOCAL;
|
|
17
24
|
var AWSBUCKET = exports.AWSBUCKET = process.env.NEXT_PUBLIC_AWSBUCKET;
|
|
@@ -22,6 +29,30 @@ var getFullUrl = exports.getFullUrl = function getFullUrl(req) {
|
|
|
22
29
|
var host = req.headers.host;
|
|
23
30
|
return "".concat(protocol, "://").concat(host, "/").concat(locale).concat(customUrl);
|
|
24
31
|
};
|
|
32
|
+
var StyledTypography = (0, _styles.styled)(_material.Typography, {
|
|
33
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
34
|
+
return prop !== "lines";
|
|
35
|
+
}
|
|
36
|
+
})(function (_ref) {
|
|
37
|
+
var lines = _ref.lines;
|
|
38
|
+
return {
|
|
39
|
+
display: "-webkit-box",
|
|
40
|
+
WebkitBoxOrient: "vertical",
|
|
41
|
+
overflow: "hidden",
|
|
42
|
+
WebkitLineClamp: lines,
|
|
43
|
+
textOverflow: "ellipsis",
|
|
44
|
+
maxWidth: "100%"
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
var LineTextEllipsis = exports.LineTextEllipsis = function LineTextEllipsis(_ref2) {
|
|
48
|
+
var _ref2$lines = _ref2.lines,
|
|
49
|
+
lines = _ref2$lines === void 0 ? 2 : _ref2$lines,
|
|
50
|
+
children = _ref2.children,
|
|
51
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
52
|
+
return /*#__PURE__*/_react["default"].createElement(StyledTypography, _extends({
|
|
53
|
+
lines: lines
|
|
54
|
+
}, props), children);
|
|
55
|
+
};
|
|
25
56
|
var colorPercentaje = exports.colorPercentaje = function colorPercentaje(value) {
|
|
26
57
|
if (value <= 0) return "initial";
|
|
27
58
|
if (value <= 75) {
|
|
@@ -514,11 +545,11 @@ var relationshipSat = exports.relationshipSat = [{
|
|
|
514
545
|
name: "09 - Factura generada por pagos diferidos"
|
|
515
546
|
}];
|
|
516
547
|
var _getValue = exports._getValue = function _getValue(array, value) {
|
|
517
|
-
var
|
|
548
|
+
var _ref3 = array.find(function (i) {
|
|
518
549
|
return i.value === value;
|
|
519
550
|
}) || {},
|
|
520
|
-
|
|
521
|
-
name =
|
|
551
|
+
_ref3$name = _ref3.name,
|
|
552
|
+
name = _ref3$name === void 0 ? "Selecciona una opción" : _ref3$name;
|
|
522
553
|
return name;
|
|
523
554
|
};
|
|
524
555
|
var monthsList = exports.monthsList = [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desk-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"classnames": "^2.5.1",
|
|
38
38
|
"core-js": "^3.41.0",
|
|
39
39
|
"next": "^15.3.0",
|
|
40
|
-
"next-intl": "^
|
|
40
|
+
"next-intl": "^3.26.0",
|
|
41
41
|
"nookies": "^2.5.2",
|
|
42
42
|
"postcss-assets": "^6.0.0",
|
|
43
43
|
"process": "^0.11.10",
|