playbook_ui_docs 16.10.0.pre.alpha.typeaheaddraggablepills17549 → 16.10.0.pre.rc.0
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/docs/_advanced_table_fullscreen.jsx +92 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +44 -36
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +19 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +4 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +5 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +8 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +8 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.json +19 -260
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.overrides.json +13 -258
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +237 -150
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +74 -58
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -6
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +1 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_file_upload/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_filter/docs/_playground.json +5 -308
- data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_filter/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.json +14 -210
- data/app/pb_kits/playbook/pb_flex/docs/_playground.json +38 -297
- data/app/pb_kits/playbook/pb_flex/docs/_playground.overrides.json +40 -300
- data/app/pb_kits/playbook/pb_form/docs/_playground.json +13 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.json +5 -82
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.json +14 -155
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.json +11 -72
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.json +4 -75
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.json +12 -138
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon/docs/_playground.json +41 -66
- data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +27 -85
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.json +9 -111
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.json +7 -92
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.json +17 -32
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.overrides.json +8 -81
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.json +18 -28
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.overrides.json +9 -58
- data/app/pb_kits/playbook/pb_image/docs/_playground.json +47 -124
- data/app/pb_kits/playbook/pb_image/docs/_playground.overrides.json +47 -122
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.json +6 -68
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.json +36 -59
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.overrides.json +30 -101
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +10 -216
- data/app/pb_kits/playbook/pb_legend/docs/_playground.json +7 -60
- data/app/pb_kits/playbook/pb_list/docs/_playground.json +17 -165
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.json +1 -28
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.overrides.json +1 -27
- data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_map/docs/_playground.json +7 -164
- data/app/pb_kits/playbook/pb_message/docs/_playground.json +8 -114
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.json +61 -310
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.overrides.json +44 -327
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.json +6 -35
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.overrides.json +6 -35
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.json +21 -32
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.overrides.json +21 -32
- data/app/pb_kits/playbook/pb_nav/docs/_playground.json +18 -546
- data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +14 -561
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.json +23 -18
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.overrides.json +14 -18
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.json +14 -133
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +14 -35
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +14 -35
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.html.erb +5 -5
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.json +14 -129
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.json +4 -378
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.json +4 -215
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.json +4 -149
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.json +4 -392
- data/app/pb_kits/playbook/pb_person/docs/_playground.json +11 -27
- data/app/pb_kits/playbook/pb_person/docs/_playground.overrides.json +9 -34
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.json +21 -72
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.overrides.json +21 -71
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +21 -179
- data/app/pb_kits/playbook/pb_pill/docs/_playground.json +49 -16
- data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +30 -33
- data/app/pb_kits/playbook/pb_popover/docs/_playground.json +46 -155
- data/app/pb_kits/playbook/pb_popover/docs/_playground.overrides.json +30 -162
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.json +13 -26
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.overrides.json +6 -24
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.json +17 -50
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.overrides.json +7 -41
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.json +10 -197
- data/app/pb_kits/playbook/pb_radio/docs/_playground.json +6 -80
- data/app/pb_kits/playbook/pb_radio/docs/_playground.overrides.json +3 -82
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +22 -149
- data/app/pb_kits/playbook/pb_select/docs/_playground.json +19 -65
- data/app/pb_kits/playbook/pb_select/docs/_playground.overrides.json +14 -54
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.json +82 -75
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.overrides.json +76 -76
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.json +15 -105
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.json +21 -37
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.overrides.json +18 -35
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.json +12 -174
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.overrides.json +10 -162
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.json +6 -68
- data/app/pb_kits/playbook/pb_source/docs/_playground.json +6 -67
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.json +53 -28
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.overrides.json +32 -33
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.json +9 -15
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.overrides.json +5 -15
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.json +9 -19
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.overrides.json +7 -18
- data/app/pb_kits/playbook/pb_table/docs/_playground.json +21 -223
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.json +5 -44
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.overrides.json +3 -39
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.json +3 -35
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.overrides.json +3 -28
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -1
- data/app/pb_kits/playbook/pb_time/docs/_playground.json +14 -28
- data/app/pb_kits/playbook/pb_time/docs/_playground.overrides.json +13 -26
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.json +30 -36
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.overrides.json +26 -31
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.json +9 -63
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.json +9 -30
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.overrides.json +9 -30
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +6 -178
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.json +21 -36
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.overrides.json +20 -35
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.json +13 -24
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.overrides.json +12 -20
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.json +23 -42
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.overrides.json +15 -35
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +45 -131
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +31 -98
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_user/docs/_playground.json +15 -33
- data/app/pb_kits/playbook/pb_user/docs/_playground.overrides.json +15 -32
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.json +12 -26
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.overrides.json +9 -26
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.json +5 -32
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.overrides.json +4 -30
- metadata +4 -74
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb +0 -35
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md +0 -8
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.html.erb +0 -93
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.jsx +0 -127
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.html.erb +0 -10
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.jsx +0 -37
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.html.erb +0 -10
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.jsx +0 -37
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.md +0 -1
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.html.erb +0 -66
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.jsx +0 -53
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.md +0 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.html.erb +0 -116
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.md +0 -12
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.jsx +0 -153
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.md +0 -10
- data/app/pb_kits/playbook/pb_filter/docs/_playground.overrides.json +0 -312
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.overrides.json +0 -231
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.overrides.json +0 -91
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.overrides.json +0 -147
- data/app/pb_kits/playbook/pb_full_screen/docs/_description.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.jsx +0 -68
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.jsx +0 -71
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.html.erb +0 -3
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.jsx +0 -63
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.jsx +0 -68
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.jsx +0 -68
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.jsx +0 -149
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.md +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/_playground.json +0 -155
- data/app/pb_kits/playbook/pb_full_screen/docs/_playground.overrides.json +0 -137
- data/app/pb_kits/playbook/pb_full_screen/docs/example.yml +0 -14
- data/app/pb_kits/playbook/pb_full_screen/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.overrides.json +0 -75
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.overrides.json +0 -75
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.overrides.json +0 -162
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.overrides.json +0 -131
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.overrides.json +0 -108
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.overrides.json +0 -85
- data/app/pb_kits/playbook/pb_layout/docs/_playground.overrides.json +0 -188
- data/app/pb_kits/playbook/pb_legend/docs/_playground.overrides.json +0 -77
- data/app/pb_kits/playbook/pb_list/docs/_playground.overrides.json +0 -191
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.html.erb +0 -21
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.jsx +0 -55
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.md +0 -1
- data/app/pb_kits/playbook/pb_map/docs/_playground.overrides.json +0 -180
- data/app/pb_kits/playbook/pb_message/docs/_playground.overrides.json +0 -144
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.overrides.json +0 -154
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.overrides.json +0 -148
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.overrides.json +0 -245
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.overrides.json +0 -224
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.overrides.json +0 -162
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.overrides.json +0 -212
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.overrides.json +0 -180
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.overrides.json +0 -189
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.overrides.json +0 -153
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.overrides.json +0 -106
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.overrides.json +0 -80
- data/app/pb_kits/playbook/pb_source/docs/_playground.overrides.json +0 -80
- data/app/pb_kits/playbook/pb_table/docs/_playground.overrides.json +0 -176
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.overrides.json +0 -69
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.overrides.json +0 -165
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.html.erb +0 -39
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.jsx +0 -63
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.md +0 -7
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills_rails.md +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c82d4adfa4d9cbd6550580ab6dfd58119365c4efecd5399419d6f6e9eeb5e822
|
|
4
|
+
data.tar.gz: 199e229ddfc52a82ff613aa97c7c8cd076f0195e0f7a37e33c3471ab05cdd651
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8c416f86e1125bee7ff540957a058d8461ddb7e7670fcc7c74cfc0c320714015065aa8fb056425ba3861efa0901d987f767542a5b61b7d534d096a584609253
|
|
7
|
+
data.tar.gz: 0a3c47dd180de40f4911e921554d914b90a77700cf3b6abc3a94b8c3d4cd5855a2ae610c476887b33dbd9646bb59e24410b902e26e64ed22120296a351e723f7
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import React, { useState } from "react"
|
|
2
|
+
import AdvancedTable from '../_advanced_table'
|
|
3
|
+
import Flex from '../../pb_flex/_flex'
|
|
4
|
+
import Button from '../../pb_button/_button'
|
|
5
|
+
import MOCK_DATA from "./advanced_table_mock_data.json"
|
|
6
|
+
import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
|
|
7
|
+
|
|
8
|
+
const AdvancedTableFullscreen = (props) => {
|
|
9
|
+
const [fullscreenToggleSmall, setFullscreenToggleSmall] = useState(null)
|
|
10
|
+
const [fullscreenToggleLarge, setFullscreenToggleLarge] = useState(null)
|
|
11
|
+
|
|
12
|
+
const columnDefinitions = [
|
|
13
|
+
{
|
|
14
|
+
accessor: "year",
|
|
15
|
+
label: "Year",
|
|
16
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
accessor: "newEnrollments",
|
|
20
|
+
label: "New Enrollments",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
accessor: "scheduledMeetings",
|
|
24
|
+
label: "Scheduled Meetings",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
accessor: "attendanceRate",
|
|
28
|
+
label: "Attendance Rate",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
accessor: "completedClasses",
|
|
32
|
+
label: "Completed Classes",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
accessor: "classCompletionRate",
|
|
36
|
+
label: "Class Completion Rate",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
accessor: "graduatedStudents",
|
|
40
|
+
label: "Graduated Students",
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
const tableProps = {
|
|
45
|
+
sticky: true
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<div>
|
|
50
|
+
<Flex justify="end">
|
|
51
|
+
<Button
|
|
52
|
+
marginBottom="sm"
|
|
53
|
+
onClick={() => fullscreenToggleSmall?.()}
|
|
54
|
+
text="Fullscreen Small Table"
|
|
55
|
+
variant="secondary"
|
|
56
|
+
/>
|
|
57
|
+
</Flex>
|
|
58
|
+
<AdvancedTable
|
|
59
|
+
allowFullScreen
|
|
60
|
+
columnDefinitions={columnDefinitions}
|
|
61
|
+
fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleSmall(() => toggleFullscreen)}
|
|
62
|
+
tableData={MOCK_DATA}
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<AdvancedTable.Header enableSorting />
|
|
66
|
+
<AdvancedTable.Body />
|
|
67
|
+
</AdvancedTable>
|
|
68
|
+
<Flex justify="end">
|
|
69
|
+
<Button
|
|
70
|
+
marginY="sm"
|
|
71
|
+
onClick={() => fullscreenToggleLarge?.()}
|
|
72
|
+
text="Fullscreen Large Table"
|
|
73
|
+
variant="secondary"
|
|
74
|
+
/>
|
|
75
|
+
</Flex>
|
|
76
|
+
<AdvancedTable
|
|
77
|
+
allowFullScreen
|
|
78
|
+
columnDefinitions={columnDefinitions}
|
|
79
|
+
fullScreenControl={({ toggleFullscreen }) => setFullscreenToggleLarge(() => toggleFullscreen)}
|
|
80
|
+
responsive="none"
|
|
81
|
+
tableData={PAGINATION_MOCK_DATA}
|
|
82
|
+
tableProps={tableProps}
|
|
83
|
+
{...props}
|
|
84
|
+
>
|
|
85
|
+
<AdvancedTable.Header enableSorting />
|
|
86
|
+
<AdvancedTable.Body />
|
|
87
|
+
</AdvancedTable>
|
|
88
|
+
</div>
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export default AdvancedTableFullscreen
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Trigger Fullscreen mode with the `allowFullScreen`and `fullScreenControl` props. `allowFullScreen` is a boolean that enables Fullscreen functionality for an Advanced Table. `fullScreenControl` is a callback function that receives an object containing the table's internal `toggleFullscreen` function, allowing you to store and trigger Fullscreen from the parent component. An external trigger (like a button) must be used to activate Fullscreen mode.
|
|
2
|
+
|
|
3
|
+
Exit Fullscreen mode by clicking the minimize top-right-corner icon or by pressing the "Escape" keyboard key.
|
|
@@ -41,10 +41,6 @@
|
|
|
41
41
|
font_color: "white",
|
|
42
42
|
expand_button_color: "white",
|
|
43
43
|
},
|
|
44
|
-
{
|
|
45
|
-
row_id: "15",
|
|
46
|
-
font_weight: "bold",
|
|
47
|
-
},
|
|
48
44
|
] %>
|
|
49
45
|
|
|
50
46
|
<%= pb_rails("advanced_table", props: { id: "row-styling", table_data: @table_data_with_id, column_definitions: column_definitions, row_styling: row_styling }) %>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import AdvancedTable from '../_advanced_table'
|
|
3
|
-
import
|
|
3
|
+
import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
|
|
4
4
|
import colors from '../../tokens/exports/_colors.module.scss'
|
|
5
5
|
|
|
6
6
|
|
|
@@ -48,10 +48,6 @@ const rowStyling = [
|
|
|
48
48
|
fontColor: colors.white,
|
|
49
49
|
expandButtonColor: colors.white,
|
|
50
50
|
},
|
|
51
|
-
{
|
|
52
|
-
rowId: "15",
|
|
53
|
-
fontWeight: "bold",
|
|
54
|
-
},
|
|
55
51
|
];
|
|
56
52
|
|
|
57
53
|
return (
|
|
@@ -59,7 +55,7 @@ const rowStyling = [
|
|
|
59
55
|
<AdvancedTable
|
|
60
56
|
columnDefinitions={columnDefinitions}
|
|
61
57
|
rowStyling={rowStyling}
|
|
62
|
-
tableData={
|
|
58
|
+
tableData={MOCK_DATA}
|
|
63
59
|
{...props}
|
|
64
60
|
/>
|
|
65
61
|
</div>
|
|
@@ -3,6 +3,5 @@ The `row_styling` prop can be used in conjunction with row ids to control certai
|
|
|
3
3
|
- `background_color` : use this to control the background color of the row
|
|
4
4
|
- `font_color`: use this to control font color for each row if needed, for example if using a darker background color.
|
|
5
5
|
- `expand_button_color`: use this to control the color of the expand icon if needed, for example if using a darker background color.
|
|
6
|
-
- `font_weight`: use this to control row font weight. Accepted values are `regular` (default appearance) and `bold`.
|
|
7
6
|
|
|
8
7
|
**NOTE:** Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
|
@@ -3,6 +3,5 @@ The `rowStyling` prop can be used in conjunction with row ids to control certain
|
|
|
3
3
|
- `backgroundColor` : use this to control the background color of the row
|
|
4
4
|
- `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
|
|
5
5
|
- `expandButtonColor`: use this to control the color of the expand icon if needed, for example if using a darker background color.
|
|
6
|
-
- `fontWeight`: use this to control row font weight. Accepted values are `regular` (default appearance) and `bold`.
|
|
7
6
|
|
|
8
7
|
**NOTE:** Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb
CHANGED
|
@@ -1,39 +1,47 @@
|
|
|
1
1
|
<% column_definitions = [
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
2
|
+
{
|
|
3
|
+
accessor: "year",
|
|
4
|
+
label: "Year",
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
accessor: "newEnrollments",
|
|
8
|
+
label: "New Enrollments",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
accessor: "scheduledMeetings",
|
|
12
|
+
label: "Scheduled Meetings",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
accessor: "attendanceRate",
|
|
16
|
+
label: "Attendance Rate",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
accessor: "completedClasses",
|
|
20
|
+
label: "Completed Classes",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
accessor: "classCompletionRate",
|
|
24
|
+
label: "Class Completion Rate",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
accessor: "graduatedStudents",
|
|
28
|
+
label: "Graduated Students",
|
|
29
|
+
}
|
|
31
30
|
] %>
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
32
|
+
<% table_data = 15.times.map do |index|
|
|
33
|
+
{
|
|
34
|
+
year: (2020 + index).to_s,
|
|
35
|
+
id: (2020 + index).to_s,
|
|
36
|
+
newEnrollments: (20 + index).to_s,
|
|
37
|
+
scheduledMeetings: (10 + index).to_s,
|
|
38
|
+
attendanceRate: "#{50 + index}%",
|
|
39
|
+
completedClasses: (3 + index).to_s,
|
|
40
|
+
classCompletionRate: "#{30 + index}%",
|
|
41
|
+
graduatedStudents: (19 + index).to_s,
|
|
42
|
+
}
|
|
43
|
+
end %>
|
|
44
|
+
|
|
45
|
+
<div style="max-height: 320px; overflow-y: auto;">
|
|
46
|
+
<%= pb_rails("advanced_table", props: { id: "table_props_sticky_table", table_data: table_data, column_definitions: column_definitions, table_props: { sticky: true }}) %>
|
|
47
|
+
</div>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import AdvancedTable from '../../pb_advanced_table/_advanced_table'
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
const tableData = Array.from({ length: 15 }, (_, index) => ({
|
|
5
|
+
year: String(2020 + index),
|
|
6
|
+
newEnrollments: String(20 + index),
|
|
7
|
+
scheduledMeetings: String(10 + index),
|
|
8
|
+
attendanceRate: `${50 + index}%`,
|
|
9
|
+
completedClasses: String(3 + index),
|
|
10
|
+
classCompletionRate: `${30 + index}%`,
|
|
11
|
+
graduatedStudents: String(19 + index),
|
|
12
|
+
}))
|
|
4
13
|
|
|
5
14
|
const AdvancedTableTablePropsStickyHeader = (props) => {
|
|
6
15
|
const columnDefinitions = [
|
|
7
16
|
{
|
|
8
17
|
accessor: "year",
|
|
9
18
|
label: "Year",
|
|
10
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
11
19
|
},
|
|
12
20
|
{
|
|
13
21
|
accessor: "newEnrollments",
|
|
@@ -36,17 +44,18 @@ const AdvancedTableTablePropsStickyHeader = (props) => {
|
|
|
36
44
|
]
|
|
37
45
|
|
|
38
46
|
const tableProps = {
|
|
39
|
-
sticky: true
|
|
47
|
+
sticky: true
|
|
40
48
|
}
|
|
41
49
|
|
|
42
50
|
return (
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
<div style={{ maxHeight: "320px", overflowY: "auto" }}>
|
|
52
|
+
<AdvancedTable
|
|
53
|
+
columnDefinitions={columnDefinitions}
|
|
54
|
+
tableData={tableData}
|
|
55
|
+
tableProps={tableProps}
|
|
56
|
+
{...props}
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
50
59
|
)
|
|
51
60
|
}
|
|
52
61
|
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md
CHANGED
|
@@ -2,6 +2,10 @@ Create a sticky header that works for responsive Advanced Tables by setting `sti
|
|
|
2
2
|
|
|
3
3
|
**NOTE**: This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
|
|
4
4
|
|
|
5
|
+
Scroll inside the table preview to see the header stick.
|
|
6
|
+
|
|
7
|
+
This example builds flat table data inline for the docs preview. For typical `table_data` setup, see [Default (Required Props)](/kits/advanced_table/default/rails#advanced_table_beta).
|
|
8
|
+
|
|
5
9
|
Expand the table above to see this in action.
|
|
6
10
|
|
|
7
11
|
A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#sticky-header) doc example above.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and
|
|
1
|
+
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and wrapping the table in a scroll container (or using `maxHeight`).
|
|
2
2
|
|
|
3
|
-
**NOTE**:
|
|
3
|
+
**NOTE**: The header is sticky within the table scroll area. The live example uses flat rows so you can scroll inside the preview without expanding subrows.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This example builds flat table data inline for the docs preview. For typical `tableData` setup, see [Default (Required Props)](/kits/advanced_table/default/react#advanced_table_default).
|
|
6
|
+
|
|
7
|
+
Expand the table above to see responsive behavior in action.
|
|
6
8
|
|
|
7
9
|
A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header) doc example above.
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"rowId": "1",
|
|
29
29
|
"backgroundColor": "#0056CF",
|
|
30
30
|
"fontColor": "#FFFFFF",
|
|
31
|
-
"expandButtonColor": "#FFFFFF"
|
|
32
|
-
"fontWeight": "bold"
|
|
31
|
+
"expandButtonColor": "#FFFFFF"
|
|
33
32
|
}
|
|
34
33
|
],
|
|
35
34
|
"expandByDepth": [
|
|
@@ -234,6 +233,11 @@
|
|
|
234
233
|
"customSort": true
|
|
235
234
|
}
|
|
236
235
|
},
|
|
236
|
+
"fullScreenControl": {
|
|
237
|
+
"requires": {
|
|
238
|
+
"allowFullScreen": true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
237
241
|
"enableSortingRemoval": {
|
|
238
242
|
"requires": {
|
|
239
243
|
"enableSorting": true
|
|
@@ -2950,7 +2954,9 @@
|
|
|
2950
2954
|
},
|
|
2951
2955
|
"hiddenProps": [
|
|
2952
2956
|
"sortControl",
|
|
2957
|
+
"fullScreenControl",
|
|
2953
2958
|
"expandedControl",
|
|
2959
|
+
"allowFullScreen",
|
|
2954
2960
|
"pagination",
|
|
2955
2961
|
"paginationProps"
|
|
2956
2962
|
],
|
|
@@ -73,7 +73,9 @@
|
|
|
73
73
|
},
|
|
74
74
|
"hiddenProps": [
|
|
75
75
|
"sortControl",
|
|
76
|
+
"fullScreenControl",
|
|
76
77
|
"expandedControl",
|
|
78
|
+
"allowFullScreen",
|
|
77
79
|
"pagination",
|
|
78
80
|
"paginationProps"
|
|
79
81
|
],
|
|
@@ -104,7 +106,7 @@
|
|
|
104
106
|
"tableProps": {
|
|
105
107
|
"container": false
|
|
106
108
|
},
|
|
107
|
-
"rowStyling": [{ "rowId": "1", "backgroundColor": "#0056CF", "fontColor": "#FFFFFF", "expandButtonColor": "#FFFFFF"
|
|
109
|
+
"rowStyling": [{ "rowId": "1", "backgroundColor": "#0056CF", "fontColor": "#FFFFFF", "expandButtonColor": "#FFFFFF" }],
|
|
108
110
|
"expandByDepth": [
|
|
109
111
|
{
|
|
110
112
|
"depth": 0,
|
|
@@ -289,6 +291,11 @@
|
|
|
289
291
|
"customSort": true
|
|
290
292
|
}
|
|
291
293
|
},
|
|
294
|
+
"fullScreenControl": {
|
|
295
|
+
"requires": {
|
|
296
|
+
"allowFullScreen": true
|
|
297
|
+
}
|
|
298
|
+
},
|
|
292
299
|
"enableSortingRemoval": {
|
|
293
300
|
"requires": {
|
|
294
301
|
"enableSorting": true
|
|
@@ -23,6 +23,7 @@ export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_tabl
|
|
|
23
23
|
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
|
24
24
|
export { default as AdvancedTableColumnHeadersVerticalBorder } from './_advanced_table_column_headers_vertical_border.jsx'
|
|
25
25
|
export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
|
|
26
|
+
export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
|
|
26
27
|
export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
|
|
27
28
|
export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
|
|
28
29
|
export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
You can add drag event listeners for
|
|
1
|
+
You can add drag event listeners for `drag`, `dragend`, `dragenter`, `dragleave`, `dragover`, `dragstart`, and `drop`.
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure
|
|
2
|
-
|
|
3
|
-
For lists that should stay separate, see [Independent Draggable Containers](#draggable_independent_containers).
|
|
1
|
+
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|
|
1
|
+
The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
|