playbook_ui_docs 14.19.0.pre.alpha.PLAY1973formpillinternalsizing7728 → 14.19.0.pre.alpha.PLAY2033atactionbarrails7730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfd966e41668c37194f9414bb32900ddcbe467d2a02534dae99ea8094297b3fa
4
- data.tar.gz: 7a9fdb193751a354af805c29006fd6983f787b2fa8705e244b6c3a8dbccb067d
3
+ metadata.gz: 91eee0b4847ec677c41c3fad7af50c012db4729d0b14acbf22b16912b8fafa94
4
+ data.tar.gz: 0dd95e3f0e7d04ff7faec50914feb72fdde218dd2f72548b2fee2f0989cf8fcb
5
5
  SHA512:
6
- metadata.gz: 693c7216f71de047230a6086e7c89ff3edb2f885fe4e1ed4efa42535423d268321eb7cba723e4518109e6505812d642dc6153482a364650d6d0abbff003b1667
7
- data.tar.gz: 6f5ab3584197e7e98c382cb8ae7bf49b0d8ae8d346a29c43b9027cb34c0e14b37f3c33249ef990af64d3632faf1b57dfc5b7755c2676ba695b0e098f74ea6add
6
+ metadata.gz: 130b9a952f8d4c398b29173827a7f4080c3e02d0631673cb432f99733381f55ebdaba54ad82896cd0e5ac63e462065da8e34f9c5364b15e9a4af003ff8fa8ee0
7
+ data.tar.gz: 9360a817997e19d1ace0c8eda9e2fd846fd526ec6a2dcbbbf620754ad31902ef49c571842dae59fae4017f6ed9ed7f7f71186cd7f714c413db7dc3bb9ffaa7e8
@@ -0,0 +1,56 @@
1
+ <%
2
+ # Define column definitions
3
+ column_definitions = [
4
+ {
5
+ accessor: "year",
6
+ label: "Year",
7
+ cellAccessors: ["quarter", "month", "day"],
8
+ },
9
+ {
10
+ accessor: "newEnrollments",
11
+ label: "New Enrollments",
12
+ },
13
+ {
14
+ accessor: "scheduledMeetings",
15
+ label: "Scheduled Meetings",
16
+ },
17
+ {
18
+ accessor: "attendanceRate",
19
+ label: "Attendance Rate",
20
+ },
21
+ {
22
+ accessor: "completedClasses",
23
+ label: "Completed Classes",
24
+ },
25
+ {
26
+ accessor: "classCompletionRate",
27
+ label: "Class Completion Rate",
28
+ },
29
+ {
30
+ accessor: "graduatedStudents",
31
+ label: "Graduated Students",
32
+ }
33
+ ]
34
+
35
+ # Define actions for the selection bar
36
+ actions = [
37
+ pb_rails("circle_icon_button", props: {
38
+ icon: "file-csv",
39
+ variant: "link"
40
+ }),
41
+ pb_rails("circle_icon_button", props: {
42
+ icon: "trash-alt",
43
+ variant: "link"
44
+ })
45
+ ]
46
+ %>
47
+
48
+ <%= pb_rails("advanced_table", props: {
49
+ id: "selectable_rows_with_actions",
50
+ table_data: @table_data_no_subrows,
51
+ column_definitions: column_definitions,
52
+ selectable_rows: true,
53
+ enable_toggle_expansion: "none",
54
+ actions: actions,
55
+ show_actions_bar: true
56
+ }) %>
@@ -15,6 +15,7 @@ examples:
15
15
  - advanced_table_column_border_color_rails: Column Group Border Color
16
16
  - advanced_table_selectable_rows_rails: Selectable Rows
17
17
  - advanced_table_selectable_rows_no_subrows_rails: Selectable Rows (No Subrows)
18
+ - advanced_table_selectable_rows_actions_rails: Selectable Rows (With Actions)
18
19
 
19
20
  react:
20
21
  - advanced_table_default: Default (Required Props)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.19.0.pre.alpha.PLAY1973formpillinternalsizing7728
4
+ version: 14.19.0.pre.alpha.PLAY2033atactionbarrails7730
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -95,6 +95,7 @@ files:
95
95
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
96
96
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
97
97
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
98
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb
98
99
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
99
100
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
100
101
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.html.erb