153 Commits

Author SHA1 Message Date
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
Faris Ansari
9eaa81f89d Fix cell navigation if rows are hidden 2018-03-03 14:47:07 +05:30
Faris Ansari
128a674ad6 [feat] Toast Message 2018-03-02 21:22:36 +05:30
Faris Ansari
470ab90fef Tree expand/collapse working 2018-03-02 15:42:51 +05:30
Faris Ansari
081dbac41b Rename data-table-col to data-table-cell, Add Tree Structure support 2018-03-01 23:52:21 +05:30
Faris Ansari
1e71ab9f16 Render rows based on rowViewOrder 2018-03-01 22:23:08 +05:30
Faris Ansari
48f98be8d2 Remove Column bug fix 2018-02-28 17:49:33 +05:30
Faris Ansari
99701f2477 Fallback for filteredRows 2018-02-28 12:56:44 +05:30