@m4l/components 9.4.19 → 9.4.20
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/components/NumberInput/hooks/useNumberInput/useNumberInput.js +0 -2
- package/components/datagrids/views/TableView/hooks/useSortColumnsRows/useSortColumnsRows.js +1 -3
- package/components/hook-form/RHFAutocompleteAsync/reducer/RHFAutocompleteReducer.js +0 -5
- package/not_recognized/index.js +25 -100
- package/package.json +1 -1
|
@@ -56,11 +56,9 @@ const useNumberInput = (parameters) => {
|
|
|
56
56
|
(event, field, fieldValue, reason) => {
|
|
57
57
|
if (field === "value" && typeof fieldValue !== "string") {
|
|
58
58
|
switch (reason) {
|
|
59
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
60
59
|
case "numberInput:inputChange":
|
|
61
60
|
onChange?.(event, fieldValue);
|
|
62
61
|
break;
|
|
63
|
-
// only a blur event will dispatch `numberInput:clamp`
|
|
64
62
|
case "numberInput:clamp":
|
|
65
63
|
onChange?.(event, fieldValue);
|
|
66
64
|
break;
|
|
@@ -20,7 +20,6 @@ function getComparator(columns, sortColumn) {
|
|
|
20
20
|
return column.customSort;
|
|
21
21
|
}
|
|
22
22
|
switch (typeOrder) {
|
|
23
|
-
//Si el tipo de dato de la columna es un numerico, retorna una función de ordenamiento numérica
|
|
24
23
|
case "number":
|
|
25
24
|
return (a, b) => {
|
|
26
25
|
try {
|
|
@@ -29,7 +28,6 @@ function getComparator(columns, sortColumn) {
|
|
|
29
28
|
return -1;
|
|
30
29
|
}
|
|
31
30
|
};
|
|
32
|
-
//Por defecto retorna una función de ordenamiento de string
|
|
33
31
|
default:
|
|
34
32
|
return (a, b) => {
|
|
35
33
|
try {
|
|
@@ -43,7 +41,7 @@ function getComparator(columns, sortColumn) {
|
|
|
43
41
|
const getColumIndex = (key, columnsConfig) => columnsConfig.findIndex((columnConfig) => columnConfig.key === key);
|
|
44
42
|
const findKeyInColumns = (key, columns) => {
|
|
45
43
|
const index = columns.findIndex(
|
|
46
|
-
(column) => key === column.key && column.hidden
|
|
44
|
+
(column) => key === column.key && column.hidden !== true
|
|
47
45
|
);
|
|
48
46
|
return index !== -1;
|
|
49
47
|
};
|
|
@@ -65,11 +65,6 @@ const RHFAutocompleteAsyncReducer = (onChangeFilterParms) => (state, action) =>
|
|
|
65
65
|
...state,
|
|
66
66
|
isOpen: false
|
|
67
67
|
};
|
|
68
|
-
// case actionsType.SET_SELECTED_OPTIONS_TO_AUTOCOMPLETE:
|
|
69
|
-
// return {
|
|
70
|
-
// ...state,
|
|
71
|
-
// selectedOptions: action.payload,
|
|
72
|
-
// };
|
|
73
68
|
default:
|
|
74
69
|
return state;
|
|
75
70
|
}
|
package/not_recognized/index.js
CHANGED
|
@@ -6,7 +6,7 @@ function memoize(fn) {
|
|
|
6
6
|
return cache[arg];
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
var reactIs = { exports: {} };
|
|
9
|
+
var reactIs$1 = { exports: {} };
|
|
10
10
|
var reactIs_production_min = {};
|
|
11
11
|
/** @license React v16.13.1
|
|
12
12
|
* react-is.production.min.js
|
|
@@ -272,106 +272,31 @@ function requireReactIs_development() {
|
|
|
272
272
|
}
|
|
273
273
|
return reactIs_development;
|
|
274
274
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
if (process.env.NODE_ENV === "production") {
|
|
280
|
-
reactIs.exports = requireReactIs_production_min();
|
|
281
|
-
} else {
|
|
282
|
-
reactIs.exports = requireReactIs_development();
|
|
283
|
-
}
|
|
284
|
-
return reactIs.exports;
|
|
275
|
+
if (process.env.NODE_ENV === "production") {
|
|
276
|
+
reactIs$1.exports = requireReactIs_production_min();
|
|
277
|
+
} else {
|
|
278
|
+
reactIs$1.exports = requireReactIs_development();
|
|
285
279
|
}
|
|
286
|
-
var
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
name: true,
|
|
307
|
-
length: true,
|
|
308
|
-
prototype: true,
|
|
309
|
-
caller: true,
|
|
310
|
-
callee: true,
|
|
311
|
-
arguments: true,
|
|
312
|
-
arity: true
|
|
313
|
-
};
|
|
314
|
-
var FORWARD_REF_STATICS = {
|
|
315
|
-
"$$typeof": true,
|
|
316
|
-
render: true,
|
|
317
|
-
defaultProps: true,
|
|
318
|
-
displayName: true,
|
|
319
|
-
propTypes: true
|
|
320
|
-
};
|
|
321
|
-
var MEMO_STATICS = {
|
|
322
|
-
"$$typeof": true,
|
|
323
|
-
compare: true,
|
|
324
|
-
defaultProps: true,
|
|
325
|
-
displayName: true,
|
|
326
|
-
propTypes: true,
|
|
327
|
-
type: true
|
|
328
|
-
};
|
|
329
|
-
var TYPE_STATICS = {};
|
|
330
|
-
TYPE_STATICS[reactIs2.ForwardRef] = FORWARD_REF_STATICS;
|
|
331
|
-
TYPE_STATICS[reactIs2.Memo] = MEMO_STATICS;
|
|
332
|
-
function getStatics(component) {
|
|
333
|
-
if (reactIs2.isMemo(component)) {
|
|
334
|
-
return MEMO_STATICS;
|
|
335
|
-
}
|
|
336
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
337
|
-
}
|
|
338
|
-
var defineProperty = Object.defineProperty;
|
|
339
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
340
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
341
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
342
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
343
|
-
var objectPrototype = Object.prototype;
|
|
344
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
345
|
-
if (typeof sourceComponent !== "string") {
|
|
346
|
-
if (objectPrototype) {
|
|
347
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
348
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
349
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
353
|
-
if (getOwnPropertySymbols) {
|
|
354
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
355
|
-
}
|
|
356
|
-
var targetStatics = getStatics(targetComponent);
|
|
357
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
358
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
359
|
-
var key = keys[i];
|
|
360
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
361
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
362
|
-
try {
|
|
363
|
-
defineProperty(targetComponent, key, descriptor);
|
|
364
|
-
} catch (e) {
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
return targetComponent;
|
|
370
|
-
}
|
|
371
|
-
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
372
|
-
return hoistNonReactStatics_cjs;
|
|
373
|
-
}
|
|
374
|
-
requireHoistNonReactStatics_cjs();
|
|
280
|
+
var reactIsExports = reactIs$1.exports;
|
|
281
|
+
var reactIs = reactIsExports;
|
|
282
|
+
var FORWARD_REF_STATICS = {
|
|
283
|
+
"$$typeof": true,
|
|
284
|
+
render: true,
|
|
285
|
+
defaultProps: true,
|
|
286
|
+
displayName: true,
|
|
287
|
+
propTypes: true
|
|
288
|
+
};
|
|
289
|
+
var MEMO_STATICS = {
|
|
290
|
+
"$$typeof": true,
|
|
291
|
+
compare: true,
|
|
292
|
+
defaultProps: true,
|
|
293
|
+
displayName: true,
|
|
294
|
+
propTypes: true,
|
|
295
|
+
type: true
|
|
296
|
+
};
|
|
297
|
+
var TYPE_STATICS = {};
|
|
298
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
299
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
375
300
|
function murmur2(str) {
|
|
376
301
|
var h = 0;
|
|
377
302
|
var k, i = 0, len = str.length;
|