playbook_ui 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11641 → 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11644
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 +3 -3
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +3 -3
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +3 -3
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +16 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md +11 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js +0 -160
- 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/dist/chunks/{_weekday_stacked-B_Uc7-rO.js → _weekday_stacked-BQrF2byq.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.jsx +0 -59
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.md +0 -5
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: 15.2.0.pre.alpha.
|
|
4
|
+
version: 15.2.0.pre.alpha.PLAY2589advancedtableinlinerowloadingtoggleicon11644
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -334,8 +334,6 @@ files:
|
|
|
334
334
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
|
|
335
335
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
|
|
336
336
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
|
|
337
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.jsx
|
|
338
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.md
|
|
339
337
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb
|
|
340
338
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
|
|
341
339
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_rails.md
|
|
@@ -3795,7 +3793,7 @@ files:
|
|
|
3795
3793
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
|
3796
3794
|
- dist/chunks/_line_graph-D5MBnrO9.js
|
|
3797
3795
|
- dist/chunks/_typeahead-BjYBazGq.js
|
|
3798
|
-
- dist/chunks/_weekday_stacked-
|
|
3796
|
+
- dist/chunks/_weekday_stacked-BQrF2byq.js
|
|
3799
3797
|
- dist/chunks/componentRegistry-DzmmLR2x.js
|
|
3800
3798
|
- dist/chunks/lazysizes-B7xYodB-.js
|
|
3801
3799
|
- dist/chunks/lib-QZuu1ltS.js
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.jsx
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import AdvancedTable from '../_advanced_table'
|
|
3
|
-
import { MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN } from "./_mock_data_inline_loading_empty_children"
|
|
4
|
-
|
|
5
|
-
const AdvancedTableInlineRowLoadingShowToggle = (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
|
-
//Render the subRow header rows
|
|
39
|
-
const subRowHeaders = ["Quarter", "Month", "Day"]
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return (
|
|
43
|
-
<div>
|
|
44
|
-
<AdvancedTable
|
|
45
|
-
columnDefinitions={columnDefinitions}
|
|
46
|
-
enableToggleExpansion="all"
|
|
47
|
-
inlineRowLoading
|
|
48
|
-
showToggleWithInlineRowLoading
|
|
49
|
-
tableData={MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN}
|
|
50
|
-
{...props}
|
|
51
|
-
>
|
|
52
|
-
<AdvancedTable.Header />
|
|
53
|
-
<AdvancedTable.Body subRowHeaders={subRowHeaders}/>
|
|
54
|
-
</AdvancedTable>
|
|
55
|
-
</div>
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export default AdvancedTableInlineRowLoadingShowToggle
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading_show_toggle.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
The `showToggleWithInlineRowLoading` is a boolean prop that renders the toggle-all icon in the top left header cell for complex datasets with enoty `children` arrays and advanced querying logic explained in the preceeding doc example. Your logic may require an additional query helper file to update data specifically from requerying via toggle all buttons.
|
|
2
|
-
|
|
3
|
-
In this code example, all 3 rows have empty children arrays. The toggle all button would not render (prior to an initial row expansion) without `showToggleWithInlineRowLoading` in place.
|
|
4
|
-
|
|
5
|
-
This prop is set to false by default and should only be used in conjunction with `inlineRowLoading`.
|