81 Commits

Author SHA1 Message Date
Shariq Ansari
b4428639cb
Merge pull request #157 from shariquerik/keyboard-integration-fix 2022-06-08 19:57:17 +05:30
Shariq Ansari
d6a6c16fdf chore: minor fix 2022-06-08 19:51:19 +05:30
Shariq Ansari
42a236d9c8 fix: use left, right, up, down keys while editing cell value 2022-06-08 19:11:57 +05:30
Shariq Ansari
d2c4e21cca fix: Dont save if value is same 2022-06-08 19:10:41 +05:30
Himanshu
6d6602f202
feat: translations (#145)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Faris Ansari <netchamp.faris@gmail.com>
2022-01-03 18:41:52 +05:30
Faris Ansari
d92fc5e969 feat: Allow overriding individual components 2019-09-17 19:00:11 +05:30
Faris Ansari
a47e1f07eb fix: Move past non focusable cell while navigating 2019-08-11 18:00:39 +05:30
Deepesh Garg
3712aaada3 fix: Navigation fix using tabs in inline filters (#75) 2019-07-05 13:14:55 +05:30
Faris Ansari
b1962dffcf fix: Submit cell if editing deactivated
Editing cell will now submit the value when the editing is deactivated,
except when Escape key is pressed.
It will also submit when Tab key is pressed.
2019-06-24 15:11:24 +05:30
Faris Ansari
1845adc46e fix: Scroll problem when cell is focused 2019-03-30 17:19:23 +05:30
Faris Ansari
f5df997c00 feat: 🎸 Total Row
A persistent row which shows the total of the columns which have numeric
values. It also updates when the rows are filtered.
2018-11-29 16:39:35 +05:30
Faris Ansari
ec08d75261 fix: 🐛 Filter rows based on the formatted value
Earlier filtering was done based on the original value of the cell, but
formatters could change the display value
2018-11-29 13:19:56 +05:30
Faris Ansari
7eaabcbfe0 fix: 🐛 Reimplement tree node toggle logic
Earlier, rows were hidden using style. Now, since we are using
hyperlist, it is better to refresh the whole list.
2018-10-31 19:09:40 +05:30
Faris Ansari
51b112687e feat: 🎸 Use HyperList instead of Clusterize to render rows
Clusterize failed to load rows if they were above 1000, this may be a
problem of datatable itself, since it has a complex DOM structure, but
hyperlist works better in it's case.
2018-10-10 14:34:56 +05:30
Faris Ansari
2ce132c0bc fix(class selector): Replace all selectors with class based selectors
Class based selectors are faster than attribute based ones.
2018-09-23 14:54:00 +05:30
Faris Ansari
7531e13d17 feat(icons): Use feather icons instead of raw ascii strings 2018-08-23 13:52:58 +05:30
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
2cf2191f0f fix(treeView): Decrease left padding of tree node cells 2018-07-08 17:35:16 +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
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
4c345b1a4c Use the new BEM syntax for querySelector 2018-04-22 13:55:05 +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
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
ed85235ad1 Less verbose option naming 2018-03-13 10:36:57 +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
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
9eaa81f89d Fix cell navigation if rows are hidden 2018-03-03 14:47:07 +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
6ee51038d0 Indent using 4 spaces 2018-02-27 12:36:12 +05:30
Faris Ansari
e1c2ef7e6b bug fix 2018-02-23 17:28:48 +05:30
Faris Ansari
ce0e479f50 Pass cell object in format method 2018-02-23 16:52:55 +05:30
Faris Ansari
a467d164a9 [InlineFilters] Don't bind if disabled 2018-02-21 19:06:10 +05:30
Faris Ansari
9ab618855f [feature] Inline Filters 2018-02-21 19:01:04 +05:30
Faris Ansari
3c4198fc83 scrollToCell before .focus()
- .focus() scrolls to cell automatically, which conflicts with how scrollToCell works
- so changed the order
2018-02-21 15:04:05 +05:30
Faris Ansari
330aa5f52a Added Layout options: fixed, fluid 2018-02-16 18:13:17 +05:30
Rushabh Mehta
af24f0e679 keyboard and bodyscroller fixes 2018-02-15 22:05:54 +05:30
Rushabh Mehta
507b173243 focus before activate editing 2018-02-13 17:25:37 +05:30
Faris Ansari
a1ae31c858 Rename editing as getEditor 2018-02-12 11:34:15 +05:30
Faris Ansari
e41e6ad386 Move getHTML methods inside class 2018-02-12 11:34:08 +05:30
Faris Ansari
0ebe0461e1
Rmehta cell refactor (#13)
* refactor: prepare cells

* checkbox sequence and always focus before deactivate

* don't set model

* fixes

* minor
2018-02-11 22:05:15 +05:30