dtable-sdk
Advanced tools
Comparing version 0.0.51 to 0.0.52
@@ -348,4 +348,19 @@ "use strict"; | ||
if (!_dtableStore.Views.isDefaultView(view)) { | ||
row_data = _dtableStore.Views.getRowDataUsedInFilters(view, table, row_id); | ||
if (!_dtableStore.Views.isDefaultView(view, table.columns)) { | ||
var value = this.dtableStore.value; | ||
var rows = this.getViewRows(view, table); | ||
var formulaColumns = _dtableStore.Views.getAllFormulaColumns(_dtableStore.Views.getColumns(view, table)); | ||
var formulaResults = {}; | ||
if (formulaColumns && formulaColumns.length > 0) { | ||
_dtableStore.Views.updateFormulaRows(view, table, formulaColumns, rows, value); | ||
formulaResults = _dtableStore.Views.getFormulaRows(view); | ||
} | ||
var originRowData = _dtableStore.Views.getRowDataUsedInFilters(view, table, row_id); | ||
row_data = _dtableStore.RowUtils.convertRowData(originRowData, value, table, formulaResults); | ||
} | ||
@@ -352,0 +367,0 @@ |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.51", | ||
"version": "0.0.52", | ||
"description": "dtable sdk", | ||
@@ -22,3 +22,3 @@ "main": "./dist/dtable.js", | ||
"axios": "^0.19.0", | ||
"dtable-store": "^1.2.32", | ||
"dtable-store": "1.3.16", | ||
"form-data": "^3.0.0" | ||
@@ -40,3 +40,3 @@ }, | ||
"testRegex": "/test/.*.test.jsx?$" | ||
} | ||
} | ||
} |
# dtable-sdk | ||
SDK for dtable. | ||
JavaScript SDK for SeaTable (DTable is an old name). | ||
## Basic demo | ||
## Adding to your poject | ||
Using npm | ||
Using npm: | ||
~~~bash | ||
npm install | ||
npm i dtable-sdk --save | ||
~~~ | ||
Prepare a test dtable, just like: | ||
## Basic demo | ||
Prepare a test base, just like: | ||
| Name | Result | | ||
@@ -21,5 +22,5 @@ | ---- | ------ | | ||
You shoule create a dtable with the table name 'sayHello' and view name 'Default_View'. Then add a new long text column named 'Result'. Add a few rows and enter some names. | ||
Create a base with a table named `sayHello` and a view named `Default_View`. Then, add a long text column named `Result`. Add a few rows and create a name for each row. Leave the `Result` column blank. | ||
Then generate APIToken and change example/example.json file just like below. | ||
Then, generate an APIToken and change the `example/example.json` file like the code below: | ||
@@ -36,3 +37,3 @@ ~~~json | ||
Run `npm run example` and wait for a few secones, you will see result column is changed. | ||
Run `npm run example` and wait for a few seconds. You will see result column has changed to something similar to this: | ||
@@ -42,2 +43,2 @@ | Name | Result | | ||
| Mike | Hello Mike | | ||
| Judy | Hello Judy | | ||
| Judy | Hello Judy | |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
383076
9544
42
+ Addeddtable-store@1.3.16(transitive)
- Removeddtable-store@1.9.39(transitive)
Updateddtable-store@1.3.16