Skip to content

Commit a4deeb1

Browse files
authored
feat: add row level access control (#8)
* feat: add row level access control Allow or deny edits/deletes per row Change-Id: Ie17e70ac51327c68973f3821bccf59b9bceb1e1b * speed increase Change-Id: Iebb51b0e154c5a3ceb451e53b268c3ca71d65753 * Use tibble instead of data.frame More logical since input data is expected to be tibble. When implementing custom canEditRow() and canDeleteRow() logic, tibble is therefore the expected data type. Change-Id: I53b7346f737c817ff4e0379b3d567740baf7ad49 * Simplify usage - Always allow to modify / delete newly inserted rows - Allow to pass on boolean values Change-Id: I552a7a31babb554bcd7aeb6337b19fd6d76968e3 * Disable buttons instead of hiding Gives a more consistent user-intuitive look. * Allow for reactivity
1 parent 74fbc97 commit a4deeb1

20 files changed

+681
-120
lines changed

editbl/DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: editbl
22
Type: Package
3-
Version: 1.0.5
4-
Date: 2024-05-21
3+
Version: 1.0.5-9000
4+
Date: 2024-01-28
55
Title: 'DT' Extension for CRUD (Create, Read, Update, Delete) Applications in 'shiny'
66
Authors@R: c(person("Jasper", "Schelfhout", "", "jasper.schelfhout@openanalytics.eu",
77
role = c("aut", "cre")),
@@ -21,6 +21,7 @@ Imports:
2121
DT,
2222
tibble,
2323
dplyr,
24+
rlang,
2425
uuid,
2526
fontawesome (>= 0.4.0)
2627
Suggests:

editbl/NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ importFrom(DT,renderDT)
3333
importFrom(DT,renderDataTable)
3434
importFrom(DT,styleEqual)
3535
importFrom(dplyr,"%>%")
36+
importFrom(dplyr,across)
3637
importFrom(dplyr,all_of)
3738
importFrom(dplyr,anti_join)
3839
importFrom(dplyr,as_tibble)
3940
importFrom(dplyr,collect)
4041
importFrom(dplyr,count)
4142
importFrom(dplyr,distinct)
43+
importFrom(dplyr,everything)
4244
importFrom(dplyr,filter)
4345
importFrom(dplyr,if_any)
4446
importFrom(dplyr,inner_join)
@@ -49,12 +51,14 @@ importFrom(dplyr,relocate)
4951
importFrom(dplyr,rows_delete)
5052
importFrom(dplyr,rows_insert)
5153
importFrom(dplyr,rows_update)
54+
importFrom(dplyr,rowwise)
5255
importFrom(dplyr,select)
5356
importFrom(dplyr,tbl)
5457
importFrom(dplyr,tbl_vars)
5558
importFrom(dplyr,tibble)
5659
importFrom(dplyr,type_sum)
5760
importFrom(dplyr,union)
61+
importFrom(rlang,":=")
5862
importFrom(shiny,HTML)
5963
importFrom(shiny,NS)
6064
importFrom(shiny,actionButton)

0 commit comments

Comments
 (0)