New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ka-table

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ka-table - npm Package Compare versions

Comparing version 9.0.1 to 9.1.0

6

actionCreators.d.ts

@@ -34,3 +34,3 @@ import { ActionType, InsertRowPosition } from './enums';

};
export declare const updateEditorValue: (rowKeyValue: any, columnKey: string, value: any) => {
export declare const updateEditorValue: (rowKeyValue: any, columnKey: string, value: any, oldValue?: any) => {
columnKey: string;

@@ -40,4 +40,5 @@ rowKeyValue: any;

value: any;
oldValue: any;
};
export declare const updateCellValue: (rowKeyValue: any, columnKey: string, value: any) => {
export declare const updateCellValue: (rowKeyValue: any, columnKey: string, value: any, oldValue?: any) => {
columnKey: string;

@@ -47,2 +48,3 @@ rowKeyValue: any;

value: any;
oldValue: any;
};

@@ -49,0 +51,0 @@ export declare const updateSortDirection: (columnKey: string) => {

@@ -40,3 +40,3 @@ "use strict";

exports.clearAllFilters = clearAllFilters;
var updateEditorValue = function (rowKeyValue, columnKey, value) { return ({
var updateEditorValue = function (rowKeyValue, columnKey, value, oldValue) { return ({
columnKey: columnKey,

@@ -46,5 +46,6 @@ rowKeyValue: rowKeyValue,

value: value,
oldValue: oldValue
}); };
exports.updateEditorValue = updateEditorValue;
var updateCellValue = function (rowKeyValue, columnKey, value) { return ({
var updateCellValue = function (rowKeyValue, columnKey, value, oldValue) { return ({
columnKey: columnKey,

@@ -54,2 +55,3 @@ rowKeyValue: rowKeyValue,

value: value,
oldValue: oldValue
}); };

@@ -56,0 +58,0 @@ exports.updateCellValue = updateCellValue;

@@ -0,4 +1,4 @@

import { ICellEditorProps } from '../../props';
import React from 'react';
import { ICellEditorProps } from '../../props';
declare const CellEditorBoolean: React.FunctionComponent<ICellEditorProps>;
export default CellEditorBoolean;

@@ -17,7 +17,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var actionCreators_1 = require("../../actionCreators");
var react_1 = __importDefault(require("react"));
var actionCreators_1 = require("../../actionCreators");
var defaultOptions_1 = __importDefault(require("../../defaultOptions"));
var ComponentUtils_1 = require("../../Utils/ComponentUtils");
var CommonUtils_1 = require("../../Utils/CommonUtils");
var ComponentUtils_1 = require("../../Utils/ComponentUtils");
var CellEditorBoolean = function (props) {

@@ -30,3 +30,3 @@ var column = props.column, dispatch = props.dispatch, value = props.value, rowKeyValue = props.rowKeyValue, autoFocus = props.autoFocus, childComponents = props.childComponents;

checked: value || false,
onChange: function (event) { return dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, event.currentTarget.checked)); },
onChange: function (event) { return dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, event.currentTarget.checked, value)); },
onBlur: function () { return dispatch((0, actionCreators_1.closeEditor)(rowKeyValue, column.key)); }

@@ -33,0 +33,0 @@ }, props, childComponents === null || childComponents === void 0 ? void 0 : childComponents.cellEditorInput), elementAttributes = _a.elementAttributes, content = _a.content;

@@ -33,3 +33,3 @@ "use strict";

var newValue = targetValue ? new Date(targetValue) : null;
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, newValue && new Date(newValue.getTime() + newValue.getTimezoneOffset() * 60000)));
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, newValue && new Date(newValue.getTime() + newValue.getTimezoneOffset() * 60000), value));
},

@@ -36,0 +36,0 @@ onBlur: function () { return dispatch((0, actionCreators_1.closeEditor)(rowKeyValue, column.key)); }

@@ -0,4 +1,4 @@

import { ICellEditorProps } from '../../props';
import React from 'react';
import { ICellEditorProps } from '../../props';
declare const CellEditorNumber: React.FunctionComponent<ICellEditorProps>;
export default CellEditorNumber;

@@ -17,4 +17,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var actionCreators_1 = require("../../actionCreators");
var react_1 = __importDefault(require("react"));
var actionCreators_1 = require("../../actionCreators");
var defaultOptions_1 = __importDefault(require("../../defaultOptions"));

@@ -31,3 +31,3 @@ var ComponentUtils_1 = require("../../Utils/ComponentUtils");

var newValue = event.currentTarget.value !== '' ? Number(event.currentTarget.value) : null;
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, newValue));
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, newValue, value));
},

@@ -34,0 +34,0 @@ onBlur: function () {

@@ -68,3 +68,3 @@ "use strict";

if (editorValueState !== value) {
dispatch((0, actionCreators_1.updateEditorValue)(rowKeyValue, column.key, editorValueState));
dispatch((0, actionCreators_1.updateEditorValue)(rowKeyValue, column.key, editorValueState, value));
}

@@ -71,0 +71,0 @@ if (isCellEditingMode) {

@@ -0,4 +1,4 @@

import { ICellEditorProps } from '../../props';
import React from 'react';
import { ICellEditorProps } from '../../props';
declare const CellEditorString: React.FunctionComponent<ICellEditorProps>;
export default CellEditorString;

@@ -17,4 +17,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var actionCreators_1 = require("../../actionCreators");
var react_1 = __importDefault(require("react"));
var actionCreators_1 = require("../../actionCreators");
var defaultOptions_1 = __importDefault(require("../../defaultOptions"));

@@ -30,3 +30,3 @@ var ComponentUtils_1 = require("../../Utils/ComponentUtils");

onChange: function (event) {
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, event.currentTarget.value));
dispatch((0, actionCreators_1.updateCellValue)(rowKeyValue, column.key, event.currentTarget.value, value));
},

@@ -33,0 +33,0 @@ onBlur: function () {

{
"name": "ka-table",
"version": "9.0.1",
"version": "9.1.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": "github:komarovalexander/ka-table",

@@ -45,3 +45,3 @@ "use strict";

if (action.type === enums_1.ActionType.UpdateEditorValue) {
dispatch((0, actionCreators_1.updateCellValue)(action.rowKeyValue, action.columnKey, action.value));
dispatch((0, actionCreators_1.updateCellValue)(action.rowKeyValue, action.columnKey, action.value, action.oldValue));
}

@@ -48,0 +48,0 @@ else {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc