@economic/taco 2.71.0-table3-changes.0 → 2.71.0-type-check.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 CHANGED
@@ -36812,16 +36812,7 @@ const RadioGroup$1 = React__namespace.forwardRef(function MenuRadioItem(props, r
36812
36812
  }, [props.children]);
36813
36813
  const handleChange = (value2) => props.onChange(getRadioItemByValue(values, value2));
36814
36814
  const value = String(props.value ?? "");
36815
- return /* @__PURE__ */ React__namespace.createElement(MenuRadioGroupContext.Provider, { value: { disabled: props.disabled } }, /* @__PURE__ */ React__namespace.createElement(
36816
- $d08ef79370b62062$export$a98f0dcb43a68a25,
36817
- {
36818
- ...props,
36819
- className: "flex flex-col",
36820
- onValueChange: handleChange,
36821
- ref,
36822
- value
36823
- }
36824
- ));
36815
+ return /* @__PURE__ */ React__namespace.createElement(MenuRadioGroupContext.Provider, { value: { disabled: props.disabled } }, /* @__PURE__ */ React__namespace.createElement($d08ef79370b62062$export$a98f0dcb43a68a25, { className: "flex flex-col", onValueChange: handleChange, ref, value }, props.children));
36825
36816
  });
36826
36817
  RadioGroup$1.Item = RadioItem;
36827
36818
  const Separator = React__namespace.forwardRef(function Separator2(props, ref) {
@@ -63317,8 +63308,7 @@ function useTable3(props, ref) {
63317
63308
  instance.editing = {
63318
63309
  toggleEditing,
63319
63310
  removeRowChanges: (rowId) => table.meta.editing.discardChanges(rowId, table.instance),
63320
- save: (rowId) => table.meta.editing.saveChanges(table.instance, rowId),
63321
- hasChanges: () => table.meta.editing.hasChanges() || table.meta.editing.temporaryRows.length > 0
63311
+ save: (rowId) => table.meta.editing.saveChanges(table.instance, rowId)
63322
63312
  };
63323
63313
  if (props.onEditingCreate && instance.editing) {
63324
63314
  instance.editing.createRow = (row) => table.meta.editing.createRow(table.instance, row);
@@ -63334,16 +63324,6 @@ function useTable3(props, ref) {
63334
63324
  }
63335
63325
  }
63336
63326
  }, [table.meta.editing.forceValidate]);
63337
- const hasChanges = editing.isEnabled && (editing.hasChanges() || editing.temporaryRows.length > 0);
63338
- React.useEffect(() => {
63339
- const instance = table.ref.current.instance;
63340
- if (instance.editing) {
63341
- instance.editing.hasChanges = () => hasChanges;
63342
- }
63343
- if (props.onHasChanges) {
63344
- props.onHasChanges(hasChanges);
63345
- }
63346
- }, [hasChanges, props.onHasChanges]);
63347
63327
  return table;
63348
63328
  }
63349
63329
  function Alert(props) {
@@ -63566,7 +63546,6 @@ const BaseTable3 = fixedForwardRef(function BaseTable32(props, ref) {
63566
63546
  const table3 = useTable3(props, ref);
63567
63547
  const gridAttributes = {
63568
63548
  "data-table-editing-mode": ((_a = table3.meta.editing) == null ? void 0 : _a.isEditing) ? ((_b = table3.meta.editing) == null ? void 0 : _b.isDetailedMode) ? "detailed" : "normal" : void 0,
63569
- "data-has-changes": table3.meta.editing.isEnabled && (table3.meta.editing.hasChanges() || table3.meta.editing.temporaryRows.length > 0) ? "true" : void 0,
63570
63549
  enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing
63571
63550
  };
63572
63551
  const rowsById = table3.instance.getCoreRowModel().rowsById;