@economic/taco 2.71.0-table3-changes.0 → 2.71.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 +2 -13
 - package/dist/taco.cjs.map +1 -1
 - package/dist/taco.d.ts +0 -4
 - package/dist/taco.js +2 -13
 - package/dist/taco.js.map +1 -1
 - package/package.json +2 -2
 
    
        package/dist/taco.cjs
    CHANGED
    
    | 
         @@ -51764,6 +51764,7 @@ const Select22 = React.forwardRef(function Select222(props, ref) { 
     | 
|
| 
       51764 
51764 
     | 
    
         
             
                }
         
     | 
| 
       51765 
51765 
     | 
    
         
             
                if (!hasSearch && event.key === "Escape") {
         
     | 
| 
       51766 
51766 
     | 
    
         
             
                  event.preventDefault();
         
     | 
| 
      
 51767 
     | 
    
         
            +
                  event.stopPropagation();
         
     | 
| 
       51767 
51768 
     | 
    
         
             
                  setOpen(false);
         
     | 
| 
       51768 
51769 
     | 
    
         
             
                  return;
         
     | 
| 
       51769 
51770 
     | 
    
         
             
                }
         
     | 
| 
         @@ -63317,8 +63318,7 @@ function useTable3(props, ref) { 
     | 
|
| 
       63317 
63318 
     | 
    
         
             
                    instance.editing = {
         
     | 
| 
       63318 
63319 
     | 
    
         
             
                      toggleEditing,
         
     | 
| 
       63319 
63320 
     | 
    
         
             
                      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
         
     | 
| 
      
 63321 
     | 
    
         
            +
                      save: (rowId) => table.meta.editing.saveChanges(table.instance, rowId)
         
     | 
| 
       63322 
63322 
     | 
    
         
             
                    };
         
     | 
| 
       63323 
63323 
     | 
    
         
             
                    if (props.onEditingCreate && instance.editing) {
         
     | 
| 
       63324 
63324 
     | 
    
         
             
                      instance.editing.createRow = (row) => table.meta.editing.createRow(table.instance, row);
         
     | 
| 
         @@ -63334,16 +63334,6 @@ function useTable3(props, ref) { 
     | 
|
| 
       63334 
63334 
     | 
    
         
             
                  }
         
     | 
| 
       63335 
63335 
     | 
    
         
             
                }
         
     | 
| 
       63336 
63336 
     | 
    
         
             
              }, [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 
63337 
     | 
    
         
             
              return table;
         
     | 
| 
       63348 
63338 
     | 
    
         
             
            }
         
     | 
| 
       63349 
63339 
     | 
    
         
             
            function Alert(props) {
         
     | 
| 
         @@ -63566,7 +63556,6 @@ const BaseTable3 = fixedForwardRef(function BaseTable32(props, ref) { 
     | 
|
| 
       63566 
63556 
     | 
    
         
             
              const table3 = useTable3(props, ref);
         
     | 
| 
       63567 
63557 
     | 
    
         
             
              const gridAttributes = {
         
     | 
| 
       63568 
63558 
     | 
    
         
             
                "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 
63559 
     | 
    
         
             
                enableHorizontalArrowKeyNavigation: table3.meta.editing.isEditing
         
     | 
| 
       63571 
63560 
     | 
    
         
             
              };
         
     | 
| 
       63572 
63561 
     | 
    
         
             
              const rowsById = table3.instance.getCoreRowModel().rowsById;
         
     |