Commit graph

77 commits

Author SHA1 Message Date
Nishidh Jain
219079be84
Resolves text and button color issue in dark mode for filter component of table (#1283) 2021-10-26 17:55:53 +05:30
Sherfin Shamsudeen
ef9951b255
Bugfix/table pageindex sync with total pages (#1263)
* Update table page data when page index is updated

* Pass pageIndex from useTable hook as lastActivePageIndex for pagination

* Goto last page in table whenever page count is less than current page index
2021-10-25 14:00:52 +05:30
Bhavin Ag
3ebf355d47
fix(table): add condition to check empty id row (#1213) 2021-10-24 19:54:00 +05:30
Sherfin Shamsudeen
a7502e5f03
Feature/cell types (#1194)
* Add custom spacing for table cells

* Add migration to set every tables cell spacing compact

* Rename cellSpacing to cellSize

* Add documentation for table cellSize
2021-10-22 07:49:51 +05:30
Arnav Puri
cf4e28c59e
resolves #401 by adding dark mode color (#1189) 2021-10-21 23:01:21 +05:30
Tulsi Prasad
a21dac5208
Use strict equality in comparision operators (#1006)
Fix #1002
2021-10-14 13:47:30 +05:30
Sherfin Shamsudeen
20d1bd0a31
Bugfix/stop propagation when table selector is clicked (#926)
* Stop propagation when table selector checkbox is clicked

* Reposition onClick handler of table selector checkbox
2021-10-07 14:05:36 +05:30
Sherfin Shamsudeen
c2e97af003
Selected row should be highlighted for table widget (#902)
* Add functionality to highlight selected row

* Add migration to set highlightSelectRow to false for existing tables

* Add documentation for highlighting selected row

* Support highlighting selected row for striped table
2021-10-05 19:36:30 +05:30
Sherfin Shamsudeen
eaaccc247e
Bulk selection for table widget 🔥
* Functional implementation of checkbox selector for table

* Add inspector toggle to display bulk selector checkboxes

* Expose selectedRows variable of Table

* Refactor select-all checkbox into a separate function

* Remove unnecessary import of v4 package

* Add TODO comment for adding checkbox color

* Revert typo that accidentally got committed

* Add explanatory comment in selectedRows data generation code

* Combine original row data and displayed row data for selectedRows

* Show only original data in selectedRows

* Use useRowSelect hook to for implementing table selector

* Show selector column only when it is enable from inspector

* Add migration to set showBulkSelector to false for all tables

* Add documentation for bulk selection

* Set label of toggle that (en/dis)ables bulk selection: 'Bulk selection'
2021-10-05 12:37:17 +05:30
Navaneeth Pk
5c380d98e8
Multiple minor fixes for table widget (#871) 2021-09-30 08:43:22 +05:30
navaneeth
a684c16a09 pageSize of table should default to length or rows 2021-09-29 22:43:19 +05:30
Arpit
fa2c84f3d6
Bugfix/table cell color fix (#870)
* Table widget: data on inspector is readable in dark mode

* table body colors

* removed repeated properties in the widget ispector or table widget
2021-09-29 22:18:08 +05:30
Sherfin Shamsudeen
7783154afc
Minor linting changes in Table.jsx (#859) 2021-09-28 15:09:37 +05:30
Gandharv
ec4fc4e582
Fixes striped table when element selected is text/dropdown/multiselect/editable/datepicker (#740)
* fix: striped table when element selected is text

* fix: when column type is dropdown fix ui

* fix: when category-type is multiselect

* fix: make overflow-x scroll so that more radio buttons can fit

* fix: when column is editable fix styles

* add text styles: additional

* fix: datepicker + striped table

* multicursor trick if to switch - witchcraft

* fix: add array check in tags component

* fix: action  buttons

* merge badge and badges case

* change overflow x to initial - temporary

* fix conflict

* add padding left, right

* Update frontend/src/Editor/Components/Table/Table.jsx

Co-authored-by: Sherfin Shamsudeen <sherfin@tooljet.io>

* increase min height from 35 -> 55

Co-authored-by: Sherfin Shamsudeen <sherfin@tooljet.io>
2021-09-27 18:27:06 +05:30
Arpit
6cd75fab47
Table cell color do not change according to theme nor color is enforced from the table color picker (#831)
* Table widget: data on inspector is readable in dark mode

* table body colors

* removed repeated properties in the widget ispector or table widget
2021-09-27 09:12:22 +05:30
Arpit
cd64bf3e7c
Fixes table-search (#836)
* fixed table-search and able to search immediately as you type

* remove console.log
2021-09-27 09:08:34 +05:30
Arpit
26c9cc655c
Fix linting errors across the app (#785)
* eslint-setup: rules for frontend and server

* setup pre-commit:hook

* frontend:eslint fixes

* frontend eslint errors and warning fixed

* eslint:fix for ./server

* fix server/test: expectatin string lint/error

* pre-commit:updated

* removed unwanted install cmd from docker file

* recommended settings and extension for vscode

* husky prepare script added

* updated extension recommendations

* added prettier as recommended extension

* added pre-commit to package.json

* remove .prettierrc file

* resolve changes

* resolve changes
2021-09-21 19:18:28 +05:30
Arpit
ab17ead153
Bugfix: tags table-cell-type cannot be edited if its readOnly (#806)
* tags and badges:table-cell-type cannot be edited if its readOnly

* going backward for badge and badges type
2021-09-21 17:02:18 +05:30
Sherfin Shamsudeen
c17b76e5ea
Disable auto-reset in Table when its data is recomputed (#805) 2021-09-21 16:52:39 +05:30
Sherfin Shamsudeen
a56aa9c954
Add property to show or hide bulk update actions on Table (#739) 2021-09-13 15:37:07 +05:30
Navaneeth Pk
c55cad0f24
Show/hide table buttons (#682)
* Show/hide table buttons

* clientSide pagination

* Remove unwanted comment

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2021-09-07 11:01:10 +05:30
Navaneeth Pk
8fd05bd779
Add validation for dropdowns (#696)
* Validation for dropdowns

* fix

* fix

* fix
2021-09-06 20:02:09 +05:30
Navaneeth Pk
b12cc7f309
Input validation for widgets (#693)
* Validations

* Fix

* Validation for table cells

* fix
2021-09-06 14:20:38 +05:30
Navaneeth Pk
b175004ad1
Expose table data (#691)
* Expose table data as a variable

* fix
2021-09-05 21:22:27 +05:30
Arpit
67ca8f1461
Feature: disable widgets (#653)
* widgets can be disabled

* removed whitespace

* move to styles definitions

* default values fixed with nullish operator

* proper data attributes

* generic resolver function for widget value

* renamed the style property
2021-09-02 19:41:59 +05:30
Navaneeth Pk
d0555f67ad
Customisable font color for string cells (#671)
* Customisable font color for string cells

* Fallback colors
2021-09-02 11:46:26 +05:30
navaneeth
46cb7fd64a Discarding changes should also refresh table data 2021-09-01 22:13:13 +05:30
navaneeth
8951f89792 Compare with default value of string cells before update 2021-09-01 21:40:45 +05:30
navaneeth
f395541b0f Table cells of default type should be editable 2021-09-01 21:33:17 +05:30
navaneeth
d6525b6bf7 Use accessor instead of headers for matching cell data 2021-09-01 15:49:36 +05:30
Navaneeth Pk
dd3dc82f01
Table should refresh data if properties of a cell changes (#661)
* fix

* fix
2021-09-01 13:06:14 +05:30
navaneeth
f0b181df89 Style fixes for widgets 2021-09-01 09:43:00 +05:30
Sherfin Shamsudeen
93bb91aca7
Fix for sizes of table action columns (#657) 2021-09-01 08:25:46 +05:30
Sherfin Shamsudeen
755ba99f87 Recompute table columns whenever action button position is changed 2021-08-31 17:03:45 +05:30
Sherfin Shamsudeen
214b99cd10
Feature: display action button on left (#647)
* Add option to set poisition of table action button

* Display table actions on the left if their position is set to left

* Replace 'buttonPosition' with 'position' for table actions

* Use SelectSearch instead of html select

* Display actions column only if actions are present
2021-08-31 16:07:38 +05:30
navaneeth
347403edbd Set bg color for toggle only when checked 2021-08-30 22:19:12 +05:30
Sherfin Shamsudeen
61d612ed64
Bugfix/component editing inside container (#641)
* Add support for editing and deleting components inside container

* Dont allow config handle click event to propagate

* Supply removeComponent method for Container component
2021-08-30 18:53:58 +05:30
Arpit
7f9f9cb418
backward compatibility for visibility (#640)
* show or hide widgets

* backward compatibility for visibility
2021-08-30 18:21:09 +05:30
Arpit
d6f5fd17dd
Feature: Show or hide widgets (#638) 2021-08-30 17:13:05 +05:30
navaneeth
eb2ebb207e Chore: codehinter for table cell properties 2021-08-29 11:45:57 +05:30
Navaneeth Pk
15e58c0b26
Feature: types for tables (#632) 2021-08-28 21:40:45 +05:30
Navaneeth Pk
21fa8518ab
Feature: customise color property of toggle type cells (#630) 2021-08-28 20:57:10 +05:30
Arpit
348d0f5815
Feature: datepicker as a table cell (#578)
* datepicker-celltype

* onChange

* datepicker: cell type

* fix

* dropdown fixed

* unwanted comments
2021-08-25 22:07:29 +05:30
Navaneeth Pk
62be444f71
Fix table crash on filter (#587) 2021-08-23 18:54:28 +05:30
Sherfin Shamsudeen
64db1a2a03
Feature: toggle table header / search bar (#581)
* Add option to enable/disable search bar in Table

This commit also makes the app hide the entire top bar of table
if server pagination is enabled and search bar is disabled.

* Display server-side search option only if search is enabled

* Add documentation for search box enable/disable toggler
2021-08-23 17:00:33 +05:30
navaneeth
02be26d86a Fix for table column resize reset issue 2021-08-20 22:37:21 +05:30
navaneeth
11a9d3d62b Fix for radio cells not being marked as edited 2021-08-20 17:49:46 +05:30
navaneeth
501b8a8cf5 Fix for incorrect table radio button values 2021-08-20 17:38:10 +05:30
Arpit Nath
f25868a832
Feature: toggle switch as table cell (#551) 2021-08-20 09:43:16 +05:30
Arpit Nath
1fdd9eb765
fixes react-table duplicate column keys (#538)
* fixes react-table duplicate column keys

* uuid for column id

Co-authored-by: Arpit Nath <arpitnath@Arpits-MacBook-Pro.local>
2021-08-19 10:32:46 +05:30