Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspreadsheet/validations

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspreadsheet/validations - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

64

dist/index.d.ts

@@ -1,56 +0,12 @@

declare module 'jspreadsheet' {
interface Validation {
/** Excel-like range format Sheet1!A1:A6 */
range: string;
/** Validation type */
type: 'number' | 'text' | 'date' | 'list' | 'textLength' | 'empty' | 'notEmpty';
/** Validation action can be a warning or reject when the condition are not match or a format when the condition matches */
action: 'warning' | 'reject' | 'format';
/** Criteria to be match */
criteria:
| '='
| '!='
| '>='
| '>'
| '<='
| '<'
| 'between'
| 'not between'
| 'valid date'
| 'valid email'
| 'valid url'
| 'contains'
| 'not contains'
| 'begins with'
| 'ends with'
/** Custom message to the user */
text?: string;
/** Ignore blank cells */
allowBlank?: boolean;
/** For type: format you can apply some CSS when condition is matched */
format?: {
color: string;
'background-color': string;
'font-weight': number;
'font-style': string;
}
/** For type: format you can add a class when condition is matched */
className?: string;
}
/**
* Official Type definitions for JSS Validations
* https://jspreadsheet.com/products/validations
* Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
*/
interface Validations {
// Index position in the array of validations
index?: number | null;
// The validation definition object
value: Validation;
}
interface validations {
(): any
[key: string]: any
}
interface worksheetInstance {
// Get a validation object
getValidations: (validationIndex: number | null) => Validation | Validation[];
// Insert or update existing validations by index
setValidations: (validations: Validations[]) => void;
// Reset validations by validation indexes
resetValidations: (validationIndex: number | number[]) => void;
}
}
export declare function validations(): any

2

package.json

@@ -35,3 +35,3 @@ {

"types": "dist/index.d.ts",
"version": "1.4.4",
"version": "1.4.5",
"bugs": "https://github.com/jspreadsheet/pro/issues",

@@ -38,0 +38,0 @@ "homepage": "https://github.com/jspreadsheet/pro",

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