@economic/taco 2.61.2 → 2.61.3
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/taco.cjs +15 -9
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +15 -9
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.cjs
CHANGED
@@ -35402,9 +35402,13 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
|
|
35402
35402
|
return displayValue ?? safeValue;
|
35403
35403
|
};
|
35404
35404
|
const rendererArgs = (info) => ({
|
35405
|
-
formattedValue: formattedValueRenderer(info.getValue(), info.row.original),
|
35406
35405
|
row: info.row.original,
|
35407
|
-
value
|
35406
|
+
get value() {
|
35407
|
+
return info.getValue();
|
35408
|
+
},
|
35409
|
+
get formattedValue() {
|
35410
|
+
return formattedValueRenderer(info.getValue(), info.row.original);
|
35411
|
+
}
|
35408
35412
|
});
|
35409
35413
|
if (typeof renderer2 === "function") {
|
35410
35414
|
column.cell = (info) => renderer2(rendererArgs(info));
|
@@ -55731,6 +55735,7 @@ function EditingControlCell(props) {
|
|
55731
55735
|
const { cell, cellRef, isHighlighted, index: index2 } = props;
|
55732
55736
|
const { rowIndex } = React.useContext(RowContext);
|
55733
55737
|
const { table } = cell.getContext();
|
55738
|
+
const locale2 = useLocalization();
|
55734
55739
|
const tableMeta = table.options.meta;
|
55735
55740
|
const columnMeta = cell.column.columnDef.meta;
|
55736
55741
|
const isActiveRow = tableMeta.rowActive.rowActiveIndex === rowIndex;
|
@@ -55774,6 +55779,7 @@ function EditingControlCell(props) {
|
|
55774
55779
|
invalid: !!error,
|
55775
55780
|
isDetailedMode: tableMeta.editing.isDetailedMode,
|
55776
55781
|
isTruncated: !!columnMeta.enableTruncate,
|
55782
|
+
locale: locale2.locale,
|
55777
55783
|
onBlur: handleBlur,
|
55778
55784
|
onChange: handleChange,
|
55779
55785
|
row: cell.row.original,
|
@@ -55802,6 +55808,7 @@ const MemoedEditingCell = React.memo(function MemoedEditingCell2(props) {
|
|
55802
55808
|
invalid,
|
55803
55809
|
isDetailedMode,
|
55804
55810
|
isTruncated,
|
55811
|
+
locale: locale2,
|
55805
55812
|
onBlur,
|
55806
55813
|
onChange,
|
55807
55814
|
row,
|
@@ -55930,10 +55937,12 @@ const MemoedEditingCell = React.memo(function MemoedEditingCell2(props) {
|
|
55930
55937
|
}
|
55931
55938
|
);
|
55932
55939
|
}
|
55940
|
+
const handleChange = (event) => {
|
55941
|
+
var _a;
|
55942
|
+
const dataTypeProps = getDataTypeProperties(dataType);
|
55943
|
+
onChange(((_a = dataTypeProps.parse) == null ? void 0 : _a.call(dataTypeProps, event.target.value, locale2)) ?? event.target.value);
|
55944
|
+
};
|
55933
55945
|
if (type === "textarea") {
|
55934
|
-
const handleChange2 = (event) => {
|
55935
|
-
onChange(event.target.value);
|
55936
|
-
};
|
55937
55946
|
return /* @__PURE__ */ React.createElement(
|
55938
55947
|
TextareaWithAutosizing,
|
55939
55948
|
{
|
@@ -55941,7 +55950,7 @@ const MemoedEditingCell = React.memo(function MemoedEditingCell2(props) {
|
|
55941
55950
|
fontSize,
|
55942
55951
|
invalid,
|
55943
55952
|
isTruncated,
|
55944
|
-
onChange:
|
55953
|
+
onChange: handleChange,
|
55945
55954
|
onFocus: handleFocus,
|
55946
55955
|
onKeyDown: handleInputKeyDown,
|
55947
55956
|
ref: controlRef,
|
@@ -55949,9 +55958,6 @@ const MemoedEditingCell = React.memo(function MemoedEditingCell2(props) {
|
|
55949
55958
|
}
|
55950
55959
|
);
|
55951
55960
|
}
|
55952
|
-
const handleChange = (event) => {
|
55953
|
-
onChange(dataType === "number" && event.target.value ? Number.parseInt(event.target.value) : event.target.value);
|
55954
|
-
};
|
55955
55961
|
return /* @__PURE__ */ React.createElement(
|
55956
55962
|
Input,
|
55957
55963
|
{
|