160 Commits

Author SHA1 Message Date
Faris Ansari
cdb276abfd feat(filter): Filter now supports complex queries for Number columns
More advanced filter support for Number columns

For e.g
  >5000 filters rows with the cell value greater than 5000
  <30 filters rows with cell value less than 30
  20:340 filters rows with cell value in the range of 20 and 340

You can also provide a custom filter function by providing a
`filterRows` function in the options during initialization.
2018-08-09 13:30:02 +05:30
Faris Ansari
ae6415c950 fix(cell): Disable text selection to enable drag to select in cells 2018-07-20 10:48:21 +05:30
Faris Ansari
18fa7d2eca fix(style): Make cell take full height in firefox 2018-07-19 14:59:44 +05:30
Faris Ansari
7417b0fdcd fix(style): Namespace CSS variables to avoid clash with foreign CSS variables 2018-07-19 14:42:30 +05:30
Faris Ansari
1f387c9079 fix(theme): Include CSS variables in the final css build
CSS Variables should be built into the distributable css file for theme support
2018-07-19 14:28:03 +05:30
Faris Ansari
0856f6cdf7 fix(css): Table cell border fix for firefox and edge browser
Firefox and Edge paints the cell background over the border of the cell. This fixes that.
2018-07-14 11:32:16 +05:30
Faris Ansari
226aea24df fix(toggleFilter): Return early if inlineFilter is disabled 2018-07-14 11:31:45 +05:30
Faris Ansari
bddb3c27ce fix(destroy): Cleanup event listeners on destroy
Event listeners attached to elements inside the root datatable wrapper are automatically removed
when the root element is removed from DOM. But, there are event listeners which are attached to
window and body, those have to be manually removed. This commit introduces an internal event system,
through which we destroy global event handlers.
2018-07-10 12:00:41 +05:30
Faris Ansari
f9714673b4 fix(rowmanager): Fire onCheckRow event on checkAll
When checkAll is triggered via API or UI input, onCheckRow event fires

Closes #38
2018-07-09 17:35:59 +05:30
Faris Ansari
78666f8ab2 fix(theme): More CSS variables for themes
Add CSS variables for header cell background and toast message border for more flexible themeing
2018-07-08 23:17:11 +05:30
Faris Ansari
1b5292a7f0 feat(theme): Add dark theme
Add a new stylesheet which overrides the css variables in the core stylesheet to obtain a dark theme
2018-07-08 19:13:21 +05:30
Faris Ansari
2cf2191f0f fix(treeView): Decrease left padding of tree node cells 2018-07-08 17:35:16 +05:30
Faris Ansari
d225308151 feat(sort): Apply sortOrder in initialization 2018-07-07 22:07:16 +05:30
Faris Ansari
3a050cdfb6 [fix] Cells with 0 value should be right aligned 2018-07-05 13:23:56 +05:30
Faris Ansari
978682e1df
getEditor (#33)
* chore

- Add rollup devDependency
- Add tsconfig for cypress intellisense

* getEditor: getValue can now return a Promise that resolves to the value
2018-06-05 15:58:39 +05:30
Faris Ansari
b61f7fdcab [fix] sortIndicator 2018-05-23 18:14:50 +05:30
Faris Ansari
e6a8cb8d7f Deactivate filter on esc key 2018-05-23 18:03:17 +05:30
Faris Ansari
f3a8b465ef bindMoveColumn on every call of refreshHeader 2018-05-23 17:52:17 +05:30
Faris Ansari
f9775ecdf2 Better implementation of setStyle
- handle overridding of styles by itself
2018-05-23 17:51:39 +05:30
Faris Ansari
c61e53da8c [fix] headerDropdown option merge 2018-05-18 12:18:30 +05:30
Faris Ansari
e1a54de352 updateRow: minor fix 2018-05-09 18:10:45 +05:30
Faris Ansari
9151fe2886 [feature] Paste from clipboard 2018-04-23 00:20:10 +05:30
Faris Ansari
c6a0ab7f13 fix cell selection bug 2018-04-22 22:05:47 +05:30
Faris Ansari
149fe6a79d move style methods into rAF 2018-04-22 13:55:27 +05:30
Faris Ansari
4c345b1a4c Use the new BEM syntax for querySelector 2018-04-22 13:55:05 +05:30
Faris Ansari
6d37d19cd8 fix nextTick 2018-04-22 13:16:11 +05:30
Faris Ansari
351aca3243 add hideAfter functionality to showToastMessage\n- also minor html refactor 2018-04-22 13:15:23 +05:30
Faris Ansari
fde1b7bcc9 Refactor CSS to use BEM style 2018-04-21 19:09:56 +05:30
Faris Ansari
5ff72dfcee minor fixes
- edit cell orange border
- eslint fixes
- remove default left align
2018-04-15 22:18:58 +05:30
Faris Ansari
4bb4002300 [feature] Dynamic Row Height 2018-04-06 17:07:22 +05:30
Faris Ansari
55e35e140e [fix] allow cell formatter 2018-04-04 17:01:08 +05:30
Faris Ansari
b8a407ab73 Merge branch 'master' of https://github.com/frappe/datatable 2018-04-04 16:52:43 +05:30
Faris Ansari
d110ab7c59 Allow cell level formatters 2018-04-04 16:47:08 +05:30
Faris Ansari
e5af37fb07 Better handling of 0 rows 2018-03-30 07:12:41 +05:30
Faris Ansari
88486b5a07 [fix] setDefaultCellHeight 2018-03-19 14:42:08 +05:30
Faris Ansari
98b0359f08 Compensate for scrollbarWidth in lastColumn 2018-03-19 00:20:29 +05:30
Faris Ansari
f61f97d22f Remove unused functions from utils, Rename promisify to nextTick 2018-03-19 00:19:52 +05:30
Faris Ansari
bc44058580 [css] Use border-radius variable 2018-03-18 23:54:41 +05:30
Faris Ansari
f55c4a6b28 updateOptions API 2018-03-13 11:08:34 +05:30
Faris Ansari
00b43940e1 Add onCheckRow event 2018-03-13 10:50:04 +05:30
Faris Ansari
ed85235ad1 Less verbose option naming 2018-03-13 10:36:57 +05:30
Faris Ansari
51a8f0dd83 Add option to disable checkedRowStatus 2018-03-13 10:36:41 +05:30
Faris Ansari
0a402b3f38 Columns have name or content property 2018-03-12 15:38:21 +05:30
Faris Ansari
d41973475f Pass column, row and data as context to getEditor 2018-03-07 15:56:53 +05:30
Faris Ansari
3651f23157 disable editing if getEditor returns false 2018-03-07 15:56:07 +05:30
Faris Ansari
b3f281b214 refresh api can now update columns 2018-03-07 14:49:36 +05:30
Faris Ansari
dbed415ff3 minor 2018-03-07 14:18:01 +05:30
Faris Ansari
ee0f6e512e Pass row, column and data as context to format 2018-03-07 13:40:25 +05:30
Faris Ansari
7683892142 Add enableTreeView flag 2018-03-05 23:02:10 +05:30
Faris Ansari
25e2c6cc35 Column Distribution based on ratio 2018-03-05 17:08:38 +05:30