playbook_ui_docs 14.9.0.pre.alpha.PLAY16264952 → 14.9.0.pre.alpha.pbntr700newresettodefaultprop4736
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +49 -53
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +36 -29
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +0 -6
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +6 -7
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -1
- data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -5
- data/dist/playbook-doc.js +1 -1
- metadata +2 -20
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -50
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +0 -57
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +0 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json +0 -5600
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_form.jsx +0 -138
- data/app/pb_kits/playbook/pb_select/docs/_select_form.jsx +0 -109
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +0 -95
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +0 -75
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +0 -108
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +0 -94
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md +0 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +0 -83
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +0 -120
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +0 -1
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.9.0.pre.alpha.
|
4
|
+
version: 14.9.0.pre.alpha.pbntr700newresettodefaultprop4736
|
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: 2024-12-
|
12
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -53,10 +53,6 @@ files:
|
|
53
53
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
|
54
54
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
|
55
55
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
|
56
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
|
57
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
|
58
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
|
59
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md
|
60
56
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
|
61
57
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
|
62
58
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
|
@@ -71,7 +67,6 @@ files:
|
|
71
67
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.md
|
72
68
|
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
|
73
69
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
|
74
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json
|
75
70
|
- app/pb_kits/playbook/pb_advanced_table/docs/example.yml
|
76
71
|
- app/pb_kits/playbook/pb_advanced_table/docs/index.js
|
77
72
|
- app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.html.erb
|
@@ -323,7 +318,6 @@ files:
|
|
323
318
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.html.erb
|
324
319
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx
|
325
320
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error_swift.md
|
326
|
-
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_form.jsx
|
327
321
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb
|
328
322
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.jsx
|
329
323
|
- app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_swift.md
|
@@ -1563,7 +1557,6 @@ files:
|
|
1563
1557
|
- app/pb_kits/playbook/pb_select/docs/_select_error.jsx
|
1564
1558
|
- app/pb_kits/playbook/pb_select/docs/_select_error.md
|
1565
1559
|
- app/pb_kits/playbook/pb_select/docs/_select_error_swift.md
|
1566
|
-
- app/pb_kits/playbook/pb_select/docs/_select_form.jsx
|
1567
1560
|
- app/pb_kits/playbook/pb_select/docs/_select_inline.html.erb
|
1568
1561
|
- app/pb_kits/playbook/pb_select/docs/_select_inline.jsx
|
1569
1562
|
- app/pb_kits/playbook/pb_select/docs/_select_inline_compact.html.erb
|
@@ -1748,7 +1741,6 @@ files:
|
|
1748
1741
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb
|
1749
1742
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx
|
1750
1743
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.md
|
1751
|
-
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb
|
1752
1744
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx
|
1753
1745
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md
|
1754
1746
|
- app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb
|
@@ -1764,16 +1756,6 @@ files:
|
|
1764
1756
|
- app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
|
1765
1757
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
|
1766
1758
|
- app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
|
1767
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx
|
1768
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md
|
1769
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx
|
1770
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md
|
1771
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx
|
1772
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md
|
1773
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx
|
1774
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md
|
1775
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx
|
1776
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
1777
1759
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
|
1778
1760
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
|
1779
1761
|
- app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import { AdvancedTable } from "playbook-ui"
|
3
|
-
import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
|
4
|
-
|
5
|
-
const AdvancedTablePagination = (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
|
-
return (
|
39
|
-
<>
|
40
|
-
<AdvancedTable
|
41
|
-
columnDefinitions={columnDefinitions}
|
42
|
-
pagination
|
43
|
-
tableData={PAGINATION_MOCK_DATA}
|
44
|
-
{...props}
|
45
|
-
/>
|
46
|
-
</>
|
47
|
-
)
|
48
|
-
}
|
49
|
-
|
50
|
-
export default AdvancedTablePagination
|
@@ -1 +0,0 @@
|
|
1
|
-
`pagination` is an optional prop that can be used to add pagination to the AdvancedTable. If present, it will add pagination with default values for pageSize, etc. To customize pagination, you can also use `paginationProps` shown in the next example.
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import { AdvancedTable } from "playbook-ui"
|
3
|
-
import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
|
4
|
-
|
5
|
-
const AdvancedTablePaginationWithProps = (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 paginationProps = {
|
39
|
-
pageIndex: 1,
|
40
|
-
pageSize: 10,
|
41
|
-
range: 2
|
42
|
-
}
|
43
|
-
|
44
|
-
return (
|
45
|
-
<>
|
46
|
-
<AdvancedTable
|
47
|
-
columnDefinitions={columnDefinitions}
|
48
|
-
pagination
|
49
|
-
paginationProps={paginationProps}
|
50
|
-
tableData={PAGINATION_MOCK_DATA}
|
51
|
-
{...props}
|
52
|
-
/>
|
53
|
-
</>
|
54
|
-
)
|
55
|
-
}
|
56
|
-
|
57
|
-
export default AdvancedTablePaginationWithProps
|
@@ -1,5 +0,0 @@
|
|
1
|
-
`paginationProps` is an optional prop that can be used to further customize pagination for the AdvancedTable. This prop is an object with 2 optional items:
|
2
|
-
|
3
|
-
- `pageIndex`: An optional prop to set which page is set to open on initial load. Default is '0'
|
4
|
-
- `pageSize`: An optional prop to set total number of rows for each page before the Table paginates. Default is '20'
|
5
|
-
- `range`: The range prop determines how many pages to display in the Pagination component. Regardless of this value, the first two and last two pages are always visible to facilitate navigation to the beginning and end of the pagination. If these always-visible pages fall within the specified range, they are included in the display. If they fall outside the range, the pagination will show additional pages up to the number defined by the range prop. See [here for more details](https://playbook.powerapp.cloud/kits/pagination/react#default). Default is set to '5'
|