@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.js
CHANGED
@@ -35384,9 +35384,13 @@ function processChildren(child, columns, defaultSizing, defaultSorting, defaultV
|
|
35384
35384
|
return displayValue ?? safeValue;
|
35385
35385
|
};
|
35386
35386
|
const rendererArgs = (info) => ({
|
35387
|
-
formattedValue: formattedValueRenderer(info.getValue(), info.row.original),
|
35388
35387
|
row: info.row.original,
|
35389
|
-
value
|
35388
|
+
get value() {
|
35389
|
+
return info.getValue();
|
35390
|
+
},
|
35391
|
+
get formattedValue() {
|
35392
|
+
return formattedValueRenderer(info.getValue(), info.row.original);
|
35393
|
+
}
|
35390
35394
|
});
|
35391
35395
|
if (typeof renderer2 === "function") {
|
35392
35396
|
column.cell = (info) => renderer2(rendererArgs(info));
|
@@ -55713,6 +55717,7 @@ function EditingControlCell(props) {
|
|
55713
55717
|
const { cell, cellRef, isHighlighted, index: index2 } = props;
|
55714
55718
|
const { rowIndex } = React__default.useContext(RowContext);
|
55715
55719
|
const { table } = cell.getContext();
|
55720
|
+
const locale2 = useLocalization();
|
55716
55721
|
const tableMeta = table.options.meta;
|
55717
55722
|
const columnMeta = cell.column.columnDef.meta;
|
55718
55723
|
const isActiveRow = tableMeta.rowActive.rowActiveIndex === rowIndex;
|
@@ -55756,6 +55761,7 @@ function EditingControlCell(props) {
|
|
55756
55761
|
invalid: !!error,
|
55757
55762
|
isDetailedMode: tableMeta.editing.isDetailedMode,
|
55758
55763
|
isTruncated: !!columnMeta.enableTruncate,
|
55764
|
+
locale: locale2.locale,
|
55759
55765
|
onBlur: handleBlur,
|
55760
55766
|
onChange: handleChange,
|
55761
55767
|
row: cell.row.original,
|
@@ -55784,6 +55790,7 @@ const MemoedEditingCell = React__default.memo(function MemoedEditingCell2(props)
|
|
55784
55790
|
invalid,
|
55785
55791
|
isDetailedMode,
|
55786
55792
|
isTruncated,
|
55793
|
+
locale: locale2,
|
55787
55794
|
onBlur,
|
55788
55795
|
onChange,
|
55789
55796
|
row,
|
@@ -55912,10 +55919,12 @@ const MemoedEditingCell = React__default.memo(function MemoedEditingCell2(props)
|
|
55912
55919
|
}
|
55913
55920
|
);
|
55914
55921
|
}
|
55922
|
+
const handleChange = (event) => {
|
55923
|
+
var _a;
|
55924
|
+
const dataTypeProps = getDataTypeProperties(dataType);
|
55925
|
+
onChange(((_a = dataTypeProps.parse) == null ? void 0 : _a.call(dataTypeProps, event.target.value, locale2)) ?? event.target.value);
|
55926
|
+
};
|
55915
55927
|
if (type === "textarea") {
|
55916
|
-
const handleChange2 = (event) => {
|
55917
|
-
onChange(event.target.value);
|
55918
|
-
};
|
55919
55928
|
return /* @__PURE__ */ React__default.createElement(
|
55920
55929
|
TextareaWithAutosizing,
|
55921
55930
|
{
|
@@ -55923,7 +55932,7 @@ const MemoedEditingCell = React__default.memo(function MemoedEditingCell2(props)
|
|
55923
55932
|
fontSize,
|
55924
55933
|
invalid,
|
55925
55934
|
isTruncated,
|
55926
|
-
onChange:
|
55935
|
+
onChange: handleChange,
|
55927
55936
|
onFocus: handleFocus,
|
55928
55937
|
onKeyDown: handleInputKeyDown,
|
55929
55938
|
ref: controlRef,
|
@@ -55931,9 +55940,6 @@ const MemoedEditingCell = React__default.memo(function MemoedEditingCell2(props)
|
|
55931
55940
|
}
|
55932
55941
|
);
|
55933
55942
|
}
|
55934
|
-
const handleChange = (event) => {
|
55935
|
-
onChange(dataType === "number" && event.target.value ? Number.parseInt(event.target.value) : event.target.value);
|
55936
|
-
};
|
55937
55943
|
return /* @__PURE__ */ React__default.createElement(
|
55938
55944
|
Input,
|
55939
55945
|
{
|