@economic/taco 2.70.0 → 2.70.2-release-reverts.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/taco.cjs +10 -12
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +10 -12
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.js
CHANGED
@@ -16962,7 +16962,8 @@ const Navbar = React.memo(({ onMonthChange, value = /* @__PURE__ */ new Date() }
|
|
16962
16962
|
icon: "chevron-left",
|
16963
16963
|
"aria-label": actions.previousMonth,
|
16964
16964
|
onClick: onPreviousClick,
|
16965
|
-
rounded: true
|
16965
|
+
rounded: true,
|
16966
|
+
"data-action": "prev-month"
|
16966
16967
|
}
|
16967
16968
|
)), /* @__PURE__ */ React.createElement(Tooltip$3, { title: actions.nextMonth }, /* @__PURE__ */ React.createElement(
|
16968
16969
|
IconButton,
|
@@ -16971,7 +16972,8 @@ const Navbar = React.memo(({ onMonthChange, value = /* @__PURE__ */ new Date() }
|
|
16971
16972
|
icon: "chevron-right",
|
16972
16973
|
"aria-label": actions.nextMonth,
|
16973
16974
|
onClick: onNextClick,
|
16974
|
-
rounded: true
|
16975
|
+
rounded: true,
|
16976
|
+
"data-action": "next-month"
|
16975
16977
|
}
|
16976
16978
|
))));
|
16977
16979
|
});
|
@@ -16988,7 +16990,8 @@ const TodayButton = ({ handleChange }) => {
|
|
16988
16990
|
Button$3,
|
16989
16991
|
{
|
16990
16992
|
className: "cursor-pointer border-none bg-transparent text-xs text-blue-500 hover:text-blue-300",
|
16991
|
-
onClick: handleCalendarClickToday
|
16993
|
+
onClick: handleCalendarClickToday,
|
16994
|
+
"data-action": "today"
|
16992
16995
|
},
|
16993
16996
|
texts.calendar.actions.today
|
16994
16997
|
);
|
@@ -55939,17 +55942,10 @@ function EditingControlCell(props) {
|
|
55939
55942
|
const handleFocus = useEditingCellAutofocus(props);
|
55940
55943
|
const value = cell.getValue();
|
55941
55944
|
const rowChanges = tableMeta.editing.getRowValue(cell.row.id);
|
55942
|
-
const shouldRunUpdate = React__default.useRef(false);
|
55943
55945
|
const hasNonTextControl = React__default.useMemo(() => {
|
55944
55946
|
var _a;
|
55945
55947
|
return typeof type === "function" && !!((_a = cellRef.current) == null ? void 0 : _a.querySelector('[data-taco="Select2"],[data-taco="switch"],[data-taco="checkbox"]'));
|
55946
55948
|
}, [cellRef.current]);
|
55947
|
-
useLazyEffect(() => {
|
55948
|
-
if (hasNonTextControl && shouldRunUpdate.current) {
|
55949
|
-
tableMeta.editing.onCellChanged(cell, rowIndex, value, true, false);
|
55950
|
-
shouldRunUpdate.current = false;
|
55951
|
-
}
|
55952
|
-
}, [value]);
|
55953
55949
|
const handleChange = React__default.useCallback(
|
55954
55950
|
(nextValue) => {
|
55955
55951
|
let hasChanged = false;
|
@@ -55966,7 +55962,9 @@ function EditingControlCell(props) {
|
|
55966
55962
|
}
|
55967
55963
|
if (hasChanged) {
|
55968
55964
|
tableMeta.editing.setCellValue(cell, rowIndex, nextValue);
|
55969
|
-
|
55965
|
+
if (hasNonTextControl) {
|
55966
|
+
requestAnimationFrame(() => tableMeta.editing.onCellChanged(cell, rowIndex, nextValue, true, false));
|
55967
|
+
}
|
55970
55968
|
}
|
55971
55969
|
},
|
55972
55970
|
[hasNonTextControl, cell.row.id, cell.column.id, cell.row.original, rowIndex, value, columnMeta.dataType]
|
@@ -56222,7 +56220,7 @@ function SaveStatus(props) {
|
|
56222
56220
|
const className = clsx(
|
56223
56221
|
"col-span-full sticky ml-auto right-0 top-0 -mb-[100%] z-10 h-8 bg-[inherit] flex items-center px-1.5 shadow-[-6px_0px_6px_var(--table-row-actions-shadow)]",
|
56224
56222
|
{
|
56225
|
-
"mt-0
|
56223
|
+
"mt-0": tableMeta.rowHeight.height === "short",
|
56226
56224
|
"mt-1": tableMeta.rowHeight.height === "medium",
|
56227
56225
|
"mt-1.5": tableMeta.rowHeight.height === "tall",
|
56228
56226
|
"mt-2": tableMeta.rowHeight.height === "extra-tall"
|