@bluemarble/bm-components 1.16.2 → 1.17.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/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +8 -56
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -12
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode, FC, Provider } from 'react';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
|
-
import { TableCellProps, TableCell, TextFieldProps, StandardTextFieldProps, SelectProps as SelectProps$1, FormControlProps, InputLabelProps,
|
|
4
|
+
import { TableCellProps, TableCell, TextFieldProps, StandardTextFieldProps, SelectProps as SelectProps$1, FormControlProps, InputLabelProps, AutocompleteProps as AutocompleteProps$1, AutocompleteRenderInputParams, CheckboxProps as CheckboxProps$1, FormControlLabelProps, SwitchProps as SwitchProps$1, RadioGroupProps, ButtonProps, CircularProgressProps, Theme, SxProps, TableSortLabelProps, BoxProps, PaperProps, TableProps, TableHeadProps, TableBodyProps, ModalProps, DialogProps, AlertColor } from '@mui/material';
|
|
5
5
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
6
6
|
import IMask$1 from 'imask';
|
|
7
7
|
import { IconType } from 'react-icons';
|
|
@@ -304,12 +304,13 @@ interface BaseGridAutoRowsProps<T> {
|
|
|
304
304
|
}
|
|
305
305
|
declare function BaseGridAutoRows<T>({ data, columns, rowKey }: BaseGridAutoRowsProps<T>): React__default.JSX.Element;
|
|
306
306
|
|
|
307
|
-
type
|
|
307
|
+
type TModalProps = {
|
|
308
308
|
open: boolean;
|
|
309
309
|
onClose: () => void;
|
|
310
310
|
children: React__default.ReactNode;
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
BoxProps?: BoxProps;
|
|
312
|
+
} & Omit<ModalProps, 'children'>;
|
|
313
|
+
declare const Modal: ({ open, onClose, BoxProps, ...rest }: TModalProps) => React__default.JSX.Element;
|
|
313
314
|
|
|
314
315
|
declare function GetInputLabel<T extends Array<Record<string, any>>, K extends T[number]['name']>(columns: T): (columnName: K) => {
|
|
315
316
|
label: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { ReactNode, FC, Provider } from 'react';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
|
-
import { TableCellProps, TableCell, TextFieldProps, StandardTextFieldProps, SelectProps as SelectProps$1, FormControlProps, InputLabelProps,
|
|
4
|
+
import { TableCellProps, TableCell, TextFieldProps, StandardTextFieldProps, SelectProps as SelectProps$1, FormControlProps, InputLabelProps, AutocompleteProps as AutocompleteProps$1, AutocompleteRenderInputParams, CheckboxProps as CheckboxProps$1, FormControlLabelProps, SwitchProps as SwitchProps$1, RadioGroupProps, ButtonProps, CircularProgressProps, Theme, SxProps, TableSortLabelProps, BoxProps, PaperProps, TableProps, TableHeadProps, TableBodyProps, ModalProps, DialogProps, AlertColor } from '@mui/material';
|
|
5
5
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
6
6
|
import IMask$1 from 'imask';
|
|
7
7
|
import { IconType } from 'react-icons';
|
|
@@ -304,12 +304,13 @@ interface BaseGridAutoRowsProps<T> {
|
|
|
304
304
|
}
|
|
305
305
|
declare function BaseGridAutoRows<T>({ data, columns, rowKey }: BaseGridAutoRowsProps<T>): React__default.JSX.Element;
|
|
306
306
|
|
|
307
|
-
type
|
|
307
|
+
type TModalProps = {
|
|
308
308
|
open: boolean;
|
|
309
309
|
onClose: () => void;
|
|
310
310
|
children: React__default.ReactNode;
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
BoxProps?: BoxProps;
|
|
312
|
+
} & Omit<ModalProps, 'children'>;
|
|
313
|
+
declare const Modal: ({ open, onClose, BoxProps, ...rest }: TModalProps) => React__default.JSX.Element;
|
|
313
314
|
|
|
314
315
|
declare function GetInputLabel<T extends Array<Record<string, any>>, K extends T[number]['name']>(columns: T): (columnName: K) => {
|
|
315
316
|
label: any;
|
package/dist/index.js
CHANGED
|
@@ -3992,11 +3992,11 @@ function BaseGridAutoRows({
|
|
|
3992
3992
|
|
|
3993
3993
|
|
|
3994
3994
|
var Modal = (_a) => {
|
|
3995
|
-
var _b = _a, { open, onClose } = _b, rest = __objRest(_b, ["open", "onClose"]);
|
|
3995
|
+
var _b = _a, { open, onClose, BoxProps: BoxProps3 } = _b, rest = __objRest(_b, ["open", "onClose", "BoxProps"]);
|
|
3996
3996
|
return /* @__PURE__ */ React2.default.createElement(_material.Modal, __spreadValues({ open, onClose }, rest), /* @__PURE__ */ React2.default.createElement(
|
|
3997
3997
|
_material.Box,
|
|
3998
|
-
{
|
|
3999
|
-
sx: {
|
|
3998
|
+
__spreadProps(__spreadValues({}, BoxProps3), {
|
|
3999
|
+
sx: __spreadValues({
|
|
4000
4000
|
outline: "none",
|
|
4001
4001
|
backgroundColor: "background.paper",
|
|
4002
4002
|
position: "absolute",
|
|
@@ -4004,9 +4004,9 @@ var Modal = (_a) => {
|
|
|
4004
4004
|
left: "50%",
|
|
4005
4005
|
transform: "translate(-50%, -50%)",
|
|
4006
4006
|
borderRadius: 1
|
|
4007
|
-
}
|
|
4008
|
-
},
|
|
4009
|
-
|
|
4007
|
+
}, BoxProps3 == null ? void 0 : BoxProps3.sx)
|
|
4008
|
+
}),
|
|
4009
|
+
rest.children
|
|
4010
4010
|
));
|
|
4011
4011
|
};
|
|
4012
4012
|
|
|
@@ -4454,55 +4454,7 @@ function useFormHelper() {
|
|
|
4454
4454
|
// src/helpers/authHelper.ts
|
|
4455
4455
|
var _cookie = require('cookie');
|
|
4456
4456
|
var _nookies = require('nookies');
|
|
4457
|
-
|
|
4458
|
-
// node_modules/uuid/dist/esm-node/rng.js
|
|
4459
|
-
var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
|
|
4460
|
-
var rnds8Pool = new Uint8Array(256);
|
|
4461
|
-
var poolPtr = rnds8Pool.length;
|
|
4462
|
-
function rng() {
|
|
4463
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
4464
|
-
_crypto2.default.randomFillSync(rnds8Pool);
|
|
4465
|
-
poolPtr = 0;
|
|
4466
|
-
}
|
|
4467
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
|
-
// node_modules/uuid/dist/esm-node/stringify.js
|
|
4471
|
-
var byteToHex = [];
|
|
4472
|
-
for (let i = 0; i < 256; ++i) {
|
|
4473
|
-
byteToHex.push((i + 256).toString(16).slice(1));
|
|
4474
|
-
}
|
|
4475
|
-
function unsafeStringify(arr, offset = 0) {
|
|
4476
|
-
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
4477
|
-
}
|
|
4478
|
-
|
|
4479
|
-
// node_modules/uuid/dist/esm-node/native.js
|
|
4480
|
-
|
|
4481
|
-
var native_default = {
|
|
4482
|
-
randomUUID: _crypto2.default.randomUUID
|
|
4483
|
-
};
|
|
4484
|
-
|
|
4485
|
-
// node_modules/uuid/dist/esm-node/v4.js
|
|
4486
|
-
function v4(options, buf, offset) {
|
|
4487
|
-
if (native_default.randomUUID && !buf && !options) {
|
|
4488
|
-
return native_default.randomUUID();
|
|
4489
|
-
}
|
|
4490
|
-
options = options || {};
|
|
4491
|
-
const rnds = options.random || (options.rng || rng)();
|
|
4492
|
-
rnds[6] = rnds[6] & 15 | 64;
|
|
4493
|
-
rnds[8] = rnds[8] & 63 | 128;
|
|
4494
|
-
if (buf) {
|
|
4495
|
-
offset = offset || 0;
|
|
4496
|
-
for (let i = 0; i < 16; ++i) {
|
|
4497
|
-
buf[offset + i] = rnds[i];
|
|
4498
|
-
}
|
|
4499
|
-
return buf;
|
|
4500
|
-
}
|
|
4501
|
-
return unsafeStringify(rnds);
|
|
4502
|
-
}
|
|
4503
|
-
var v4_default = v4;
|
|
4504
|
-
|
|
4505
|
-
// src/helpers/authHelper.ts
|
|
4457
|
+
var _uuid = require('uuid');
|
|
4506
4458
|
var _jsonwebtoken = require('jsonwebtoken'); var _jsonwebtoken2 = _interopRequireDefault(_jsonwebtoken);
|
|
4507
4459
|
function decodeSessionToken({
|
|
4508
4460
|
req,
|
|
@@ -4547,7 +4499,7 @@ var AuthHelper = class {
|
|
|
4547
4499
|
expiresIn: this.tokenExpTimeInSeconds || 60 * 15
|
|
4548
4500
|
// 15 minutos
|
|
4549
4501
|
});
|
|
4550
|
-
const uniqueToken =
|
|
4502
|
+
const uniqueToken = _uuid.v4.call(void 0, );
|
|
4551
4503
|
yield this.onCreateRefreshToken(userId, uniqueToken);
|
|
4552
4504
|
return {
|
|
4553
4505
|
token,
|