playbook_ui 14.17.0.pre.alpha.PLAY20547307 → 14.17.0.pre.alpha.aticonclosefix7325
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 +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +2 -49
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +2 -1
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx +19 -29
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/index.js +7 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -1
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table.tsx +2 -2
- data/dist/chunks/_typeahead-CHd0V9EL.js +22 -0
- data/dist/chunks/_weekday_stacked-CdE0nXPu.js +45 -0
- data/dist/chunks/{lib-Cj4H6j1c.js → lib-BV_AF_eh.js} +2 -2
- data/dist/chunks/{pb_form_validation-Bx1OK6xs.js → pb_form_validation-nsvkJU2J.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +6 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx +0 -65
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md +0 -9
- data/dist/chunks/_typeahead-DytFGjSn.js +0 -22
- data/dist/chunks/_weekday_stacked-B7twaUlt.js +0 -45
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.17.0.pre.alpha.
|
4
|
+
version: 14.17.0.pre.alpha.aticonclosefix7325
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-04-
|
12
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -307,8 +307,6 @@ files:
|
|
307
307
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.md
|
308
308
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
|
309
309
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md
|
310
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.jsx
|
311
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expand_by_depth.md
|
312
310
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx
|
313
311
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md
|
314
312
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
|
@@ -3496,11 +3494,11 @@ files:
|
|
3496
3494
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3497
3495
|
- app/pb_kits/playbook/utilities/text.ts
|
3498
3496
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3499
|
-
- dist/chunks/_typeahead-
|
3500
|
-
- dist/chunks/_weekday_stacked-
|
3497
|
+
- dist/chunks/_typeahead-CHd0V9EL.js
|
3498
|
+
- dist/chunks/_weekday_stacked-CdE0nXPu.js
|
3501
3499
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3502
|
-
- dist/chunks/lib-
|
3503
|
-
- dist/chunks/pb_form_validation-
|
3500
|
+
- dist/chunks/lib-BV_AF_eh.js
|
3501
|
+
- dist/chunks/pb_form_validation-nsvkJU2J.js
|
3504
3502
|
- dist/chunks/vendor.js
|
3505
3503
|
- dist/menu.yml
|
3506
3504
|
- dist/playbook-doc.js
|
@@ -1,65 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import AdvancedTable from '../../pb_advanced_table/_advanced_table'
|
3
|
-
import MOCK_DATA from "./advanced_table_mock_data.json"
|
4
|
-
|
5
|
-
const AdvancedTableExpandByDepth = (props) => {
|
6
|
-
const columnDefinitions = [
|
7
|
-
{
|
8
|
-
accessor: "year",
|
9
|
-
label: "Year",
|
10
|
-
cellAccessors: ["quarter", "month", "day"],
|
11
|
-
},
|
12
|
-
{
|
13
|
-
accessor: "newEnrollments",
|
14
|
-
label: "New Enrollments",
|
15
|
-
},
|
16
|
-
{
|
17
|
-
accessor: "scheduledMeetings",
|
18
|
-
label: "Scheduled Meetings",
|
19
|
-
},
|
20
|
-
{
|
21
|
-
accessor: "attendanceRate",
|
22
|
-
label: "Attendance Rate",
|
23
|
-
},
|
24
|
-
{
|
25
|
-
accessor: "completedClasses",
|
26
|
-
label: "Completed Classes",
|
27
|
-
},
|
28
|
-
{
|
29
|
-
accessor: "classCompletionRate",
|
30
|
-
label: "Class Completion Rate",
|
31
|
-
},
|
32
|
-
{
|
33
|
-
accessor: "graduatedStudents",
|
34
|
-
label: "Graduated Students",
|
35
|
-
},
|
36
|
-
]
|
37
|
-
|
38
|
-
const expandByDepth = [
|
39
|
-
{
|
40
|
-
depth: 0,
|
41
|
-
label: "Year",
|
42
|
-
},
|
43
|
-
{
|
44
|
-
depth: 1,
|
45
|
-
label: "Quarter",
|
46
|
-
},
|
47
|
-
{
|
48
|
-
depth: 2,
|
49
|
-
label: "Month",
|
50
|
-
}
|
51
|
-
]
|
52
|
-
|
53
|
-
return (
|
54
|
-
<div>
|
55
|
-
<AdvancedTable
|
56
|
-
columnDefinitions={columnDefinitions}
|
57
|
-
expandByDepth={expandByDepth}
|
58
|
-
tableData={MOCK_DATA}
|
59
|
-
{...props}
|
60
|
-
/>
|
61
|
-
</div>
|
62
|
-
)
|
63
|
-
}
|
64
|
-
|
65
|
-
export default AdvancedTableExpandByDepth
|
@@ -1,9 +0,0 @@
|
|
1
|
-
The `expandByDepth` prop enables users to expand or collapse table rows by specific levels of nesting. When provided, it renders a dropdown that appears when the toggle icon in the header is clicked.
|
2
|
-
|
3
|
-
`expandByDepth` accepts an array of objects, where each object defines the depth level to target and the label to display in the dropdown. When a user selects an option:
|
4
|
-
|
5
|
-
**Expanding a depth**: Expands all rows at the selected depth AND all parent levels above it (if parent levels were closed), ensuring nested content is visible.
|
6
|
-
|
7
|
-
**Collapsing a depth**: Only collapses rows at the selected depth, keeping parent rows expanded for context.
|
8
|
-
|
9
|
-
|