playbook_ui 18.2.0.pre.alpha.20261030hotfix20694 → 18.2.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/Components/TablePagination.tsx +6 -28
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +9 -26
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -43
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +3 -8
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +6 -19
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +1 -1
- data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +1 -3
- data/app/pb_kits/playbook/pb_avatar/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_background/_background.tsx +1 -3
- data/app/pb_kits/playbook/pb_background/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -3
- data/app/pb_kits/playbook/pb_caption/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +1 -4
- data/app/pb_kits/playbook/pb_contact/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_container/_container.tsx +1 -3
- data/app/pb_kits/playbook/pb_container/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +1 -3
- data/app/pb_kits/playbook/pb_currency/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx +1 -3
- data/app/pb_kits/playbook/pb_dashboard_value/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date/_date.tsx +1 -3
- data/app/pb_kits/playbook/pb_date/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -4
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +49 -51
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +56 -56
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_calendar_input_icon.scss +1 -1
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +1 -3
- data/app/pb_kits/playbook/pb_date_range_inline/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.tsx +1 -3
- data/app/pb_kits/playbook/pb_date_range_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.tsx +1 -4
- data/app/pb_kits/playbook/pb_date_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_time/_date_time.tsx +1 -3
- data/app/pb_kits/playbook/pb_date_time/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.tsx +1 -3
- data/app/pb_kits/playbook/pb_date_year_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_detail/_detail.tsx +1 -3
- data/app/pb_kits/playbook/pb_detail/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -16
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +36 -292
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom.md +2 -7
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_custom_rails.md +2 -7
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +4 -191
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +3 -160
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -17
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +0 -11
- data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +3 -6
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -28
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +0 -1383
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +0 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown_index.test.js +0 -1444
- data/app/pb_kits/playbook/pb_dropdown/hooks/useHandleOnKeydown.tsx +22 -41
- data/app/pb_kits/playbook/pb_dropdown/index.js +103 -606
- data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +3 -7
- data/app/pb_kits/playbook/pb_dropdown/kit.schema.json +2 -95
- data/app/pb_kits/playbook/pb_dropdown/quickpick/index.ts +18 -60
- data/app/pb_kits/playbook/pb_dropdown/quickpick_helper.rb +3 -92
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +19 -51
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +11 -33
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +2 -5
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/MultiSelectTriggerDisplay.tsx +3 -9
- data/app/pb_kits/playbook/pb_dropdown/utilities/index.ts +1 -8
- data/app/pb_kits/playbook/pb_filter/Filter/InteractiveFilter.tsx +1 -1
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +1 -8
- 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_filter/filter.html.erb +4 -4
- data/app/pb_kits/playbook/pb_filter/filter.rb +0 -28
- data/app/pb_kits/playbook/pb_filter/filter.test.js +0 -41
- data/app/pb_kits/playbook/pb_form/docs/{_form_loading_rails.md → _form_loading.md} +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_validation.html.erb +4 -27
- data/app/pb_kits/playbook/pb_form/docs/{_form_validation_rails.md → _form_validation.md} +4 -4
- data/app/pb_kits/playbook/pb_form/docs/example.yml +0 -7
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_checkbox.txt +1 -6
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_dropdown.txt +1 -6
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_multi_level_select.txt +0 -1
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_multi_select.txt +0 -1
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_phone_number.txt +0 -1
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_star_rating.txt +1 -6
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_textarea.txt +1 -5
- data/app/pb_kits/playbook/pb_form/docs/snippets/validation_time_zone_select.txt +0 -1
- data/app/pb_kits/playbook/pb_form/pb_form_validation.js +34 -51
- data/app/pb_kits/playbook/pb_full_screen/_full_screen.scss +1 -12
- data/app/pb_kits/playbook/pb_full_screen/_full_screen.tsx +2 -11
- data/app/pb_kits/playbook/pb_full_screen/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_full_screen/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_full_screen/full_screen.test.jsx +9 -23
- data/app/pb_kits/playbook/pb_highlight/_highlight.tsx +1 -3
- data/app/pb_kits/playbook/pb_highlight/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +1 -3
- data/app/pb_kits/playbook/pb_icon_stat_value/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.tsx +1 -3
- data/app/pb_kits/playbook/pb_icon_value/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_image/_image.tsx +1 -3
- data/app/pb_kits/playbook/pb_image/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.tsx +1 -3
- data/app/pb_kits/playbook/pb_label_pill/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.tsx +1 -3
- data/app/pb_kits/playbook/pb_label_value/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -3
- data/app/pb_kits/playbook/pb_legend/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_default.md +3 -3
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_playground.json +3 -3
- data/app/pb_kits/playbook/pb_map/docs/_playground.overrides.json +3 -3
- data/app/pb_kits/playbook/pb_message/_message.tsx +1 -3
- data/app/pb_kits/playbook/pb_message/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/index.js +4 -19
- data/app/pb_kits/playbook/pb_multi_level_select/kit.schema.json +0 -7
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb +1 -4
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +3 -7
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +1 -3
- data/app/pb_kits/playbook/pb_multiple_users/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +2 -4
- data/app/pb_kits/playbook/pb_multiple_users_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -3
- data/app/pb_kits/playbook/pb_online_status/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_person/_person.tsx +1 -3
- data/app/pb_kits/playbook/pb_person/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +7 -10
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +0 -1
- data/app/pb_kits/playbook/pb_phone_number_input/index.ts +2 -7
- data/app/pb_kits/playbook/pb_phone_number_input/kit.schema.json +0 -8
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +1 -5
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +0 -12
- data/app/pb_kits/playbook/pb_pill/_pill.tsx +1 -3
- data/app/pb_kits/playbook/pb_pill/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx +1 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +3 -10
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +1 -16
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +4 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.overrides.json +4 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md +3 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx +13 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx +3 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_markdown_support.jsx +2 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx +13 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.md +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +5 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx +8 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md +4 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_extensions.md +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_markdown_support.md +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb +2 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js +1 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js +5 -7
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_rails.js +8 -19
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_custom.jsx +1 -1
- data/app/pb_kits/playbook/pb_source/_source.tsx +1 -3
- data/app/pb_kits/playbook/pb_source/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_star_rating/index.js +4 -8
- data/app/pb_kits/playbook/pb_star_rating/kit.schema.json +0 -7
- data/app/pb_kits/playbook/pb_star_rating/star_rating.rb +1 -6
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +1 -3
- data/app/pb_kits/playbook/pb_stat_change/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.tsx +1 -3
- data/app/pb_kits/playbook/pb_stat_value/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_table/_table.tsx +197 -70
- data/app/pb_kits/playbook/pb_table/index.ts +122 -53
- data/app/pb_kits/playbook/pb_table/styles/_sticky_columns.scss +3 -26
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +8 -27
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -3
- data/app/pb_kits/playbook/pb_time_range_inline/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -3
- data/app/pb_kits/playbook/pb_time_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -3
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +1 -3
- data/app/pb_kits/playbook/pb_timestamp/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_title_count/_title_count.tsx +1 -3
- data/app/pb_kits/playbook/pb_title_count/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +1 -3
- data/app/pb_kits/playbook/pb_title_detail/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -73
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +12 -158
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/components/PillRenderer.tsx +11 -15
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +30 -29
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +5 -5
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +2 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.html.erb +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.jsx +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.md +7 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills_rails.md +3 -3
- data/app/pb_kits/playbook/pb_typeahead/kit.schema.json +3 -3
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +3 -3
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -3
- data/app/pb_kits/playbook/pb_user/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +1 -3
- data/app/pb_kits/playbook/pb_user_badge/kit.schema.json +0 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +1 -3
- data/app/pb_kits/playbook/pb_weekday_stacked/kit.schema.json +0 -1
- data/app/pb_kits/playbook/utilities/test/globalProps/onClick.test.js +0 -441
- data/dist/ai/all-schemas.json +64 -341
- data/dist/ai/external-dependencies.json +1 -1
- data/dist/ai/forms.json +21 -27
- data/dist/ai/index.json +3 -3
- data/dist/ai/kits/avatar.schema.json +0 -1
- data/dist/ai/kits/background.schema.json +0 -1
- data/dist/ai/kits/button.schema.json +1 -1
- data/dist/ai/kits/caption.schema.json +0 -1
- data/dist/ai/kits/checkbox.schema.json +5 -7
- data/dist/ai/kits/contact.schema.json +0 -1
- data/dist/ai/kits/container.schema.json +0 -1
- data/dist/ai/kits/currency.schema.json +0 -1
- data/dist/ai/kits/dashboard_value.schema.json +0 -1
- data/dist/ai/kits/date.schema.json +0 -1
- data/dist/ai/kits/date_picker.schema.json +3 -4
- data/dist/ai/kits/date_range_inline.schema.json +0 -1
- data/dist/ai/kits/date_range_stacked.schema.json +0 -1
- data/dist/ai/kits/date_stacked.schema.json +0 -1
- data/dist/ai/kits/date_time.schema.json +0 -1
- data/dist/ai/kits/date_time_stacked.schema.json +0 -1
- data/dist/ai/kits/date_year_stacked.schema.json +0 -1
- data/dist/ai/kits/detail.schema.json +0 -1
- data/dist/ai/kits/dropdown.schema.json +15 -198
- data/dist/ai/kits/highlight.schema.json +0 -1
- data/dist/ai/kits/icon_stat_value.schema.json +0 -1
- data/dist/ai/kits/icon_value.schema.json +0 -1
- data/dist/ai/kits/image.schema.json +0 -1
- data/dist/ai/kits/label_pill.schema.json +0 -1
- data/dist/ai/kits/label_value.schema.json +0 -1
- data/dist/ai/kits/legend.schema.json +0 -1
- data/dist/ai/kits/message.schema.json +0 -1
- data/dist/ai/kits/multi_level_select.schema.json +6 -15
- data/dist/ai/kits/multiple_users.schema.json +0 -1
- data/dist/ai/kits/multiple_users_stacked.schema.json +0 -1
- data/dist/ai/kits/online_status.schema.json +0 -1
- data/dist/ai/kits/person.schema.json +0 -1
- data/dist/ai/kits/phone_number_input.schema.json +7 -18
- data/dist/ai/kits/pill.schema.json +0 -1
- data/dist/ai/kits/rich_text_editor.schema.json +1 -1
- data/dist/ai/kits/select.schema.json +6 -25
- data/dist/ai/kits/source.schema.json +0 -1
- data/dist/ai/kits/star_rating.schema.json +5 -14
- data/dist/ai/kits/stat_change.schema.json +0 -1
- data/dist/ai/kits/stat_value.schema.json +0 -1
- data/dist/ai/kits/text_input.schema.json +3 -4
- data/dist/ai/kits/textarea.schema.json +3 -4
- data/dist/ai/kits/time_picker.schema.json +3 -4
- data/dist/ai/kits/time_range_inline.schema.json +0 -1
- data/dist/ai/kits/time_stacked.schema.json +0 -1
- data/dist/ai/kits/timestamp.schema.json +0 -1
- data/dist/ai/kits/title_count.schema.json +0 -1
- data/dist/ai/kits/title_detail.schema.json +0 -1
- data/dist/ai/kits/typeahead.schema.json +6 -7
- data/dist/ai/kits/user.schema.json +0 -1
- data/dist/ai/kits/user_badge.schema.json +0 -1
- data/dist/ai/kits/weekday_stacked.schema.json +0 -1
- data/dist/ai/playgrounds/dropdown.json +1 -1
- data/dist/ai/playgrounds/index.json +1 -1
- data/dist/ai/playgrounds/map.json +1 -1
- data/dist/ai/playgrounds/rich_text_editor.json +1 -1
- data/dist/ai/playgrounds/typeahead.json +1 -1
- data/dist/chunks/{_tooltip-oLlDlk9r.js → _detail-BqqzPTNr.js} +2 -2
- data/dist/chunks/{_pb_line_graph-BKwbOeqo.js → _pb_line_graph-BGyCJjgG.js} +1 -1
- data/dist/chunks/_table-A9O3w0UR.js +1 -0
- data/dist/chunks/_typeahead-C7iPR5ZF.js +1 -0
- data/dist/chunks/{globalProps-BivjwRew.js → globalProps-K1DCn3il.js} +1 -1
- data/dist/chunks/lib-7vm9BMqp.js +29 -0
- data/dist/chunks/{time_picker_helper-DfKvHCJu.js → time_picker_helper-BZutIzB3.js} +1 -1
- data/dist/chunks/vendor.js +2 -2
- data/dist/menu.yml +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/forms/builder/checkbox_field.rb +0 -1
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -5
- data/lib/playbook/forms/builder/select_field.rb +1 -5
- data/lib/playbook/version.rb +2 -2
- metadata +17 -83
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_section_separator.jsx +0 -90
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_section_separator.md +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_custom_content.html.erb +0 -58
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_custom_content.md +0 -10
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_initial_options.jsx +0 -45
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_initial_options.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_loading.jsx +0 -43
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_loading.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_multi_select.jsx +0 -44
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_multi_select.md +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_multi_select_rails.html.erb +0 -44
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_multi_select_rails.md +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_rich_results.jsx +0 -64
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_rich_results.md +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_search.html.erb +0 -43
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_async_search.md +0 -55
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_controlled_selection.jsx +0 -42
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_controlled_selection.md +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_external_search.jsx +0 -58
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_external_search.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_form.jsx +0 -50
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_form_react.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_no_options_text.html.erb +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_no_options_text.jsx +0 -35
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_no_options_text_rails.md +0 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_no_options_text_react.md +0 -3
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_option_creation.html.erb +0 -16
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_option_creation.jsx +0 -27
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_option_creation_rails.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_option_creation_react.md +0 -9
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_enable_time.html.erb +0 -33
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_enable_time.jsx +0 -42
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_enable_time.md +0 -24
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_highlight.jsx +0 -101
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_highlight.md +0 -3
- data/app/pb_kits/playbook/pb_dropdown/dropdown_creation.test.jsx +0 -414
- data/app/pb_kits/playbook/pb_dropdown/dropdown_form.test.jsx +0 -173
- data/app/pb_kits/playbook/pb_dropdown/hooks/useAsyncOptions.ts +0 -179
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownFormFields.tsx +0 -83
- data/app/pb_kits/playbook/pb_dropdown/utilities/optionCreation.ts +0 -21
- data/app/pb_kits/playbook/pb_dropdown/utilities/quickpickDateSync.test.ts +0 -24
- data/app/pb_kits/playbook/pb_dropdown/utilities/quickpickDateSync.ts +0 -137
- data/app/pb_kits/playbook/pb_filter/docs/_filter_one_click.html.erb +0 -38
- data/app/pb_kits/playbook/pb_filter/docs/_filter_one_click.jsx +0 -69
- data/app/pb_kits/playbook/pb_filter/docs/_filter_one_click.md +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_description_react.md +0 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_default_values.jsx +0 -898
- data/app/pb_kits/playbook/pb_form/docs/_form_default_values_react.md +0 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_defaults.jsx +0 -879
- data/app/pb_kits/playbook/pb_form/docs/_form_defaults_react.md +0 -29
- data/app/pb_kits/playbook/pb_form/docs/_form_loading.jsx +0 -75
- data/app/pb_kits/playbook/pb_form/docs/_form_loading_react.md +0 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_model_values.jsx +0 -147
- data/app/pb_kits/playbook/pb_form/docs/_form_model_values_react.md +0 -16
- data/app/pb_kits/playbook/pb_form/docs/_form_multi_column.jsx +0 -164
- data/app/pb_kits/playbook/pb_form/docs/_form_multi_column_react.md +0 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_validation.jsx +0 -1057
- data/app/pb_kits/playbook/pb_form/docs/_form_validation_react.md +0 -26
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_advanced_table_sticky_header.jsx +0 -73
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_advanced_table_sticky_header.md +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_required_indicator.html.erb +0 -9
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_table/utilities/stickyColumns.test.ts +0 -266
- data/app/pb_kits/playbook/pb_table/utilities/stickyColumns.ts +0 -145
- data/app/pb_kits/playbook/pb_typeahead/components/usePillDropIndicator.ts +0 -155
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills_react.md +0 -7
- data/dist/chunks/_pagination-BerABFl1.js +0 -1
- data/dist/chunks/_typeahead-Cyk5N5Po.js +0 -1
- data/dist/chunks/lib-C50eCpoN.js +0 -29
- data/dist/chunks/quickpickDateSync-DLDx4zce.js +0 -1
- /data/app/pb_kits/playbook/pb_form/docs/{_description_rails.md → _description.md} +0 -0
- /data/app/pb_kits/playbook/pb_form/docs/{_form_default_values_rails.md → _form_default_values.md} +0 -0
- /data/app/pb_kits/playbook/pb_form/docs/{_form_defaults_rails.md → _form_defaults.md} +0 -0
- /data/app/pb_kits/playbook/pb_form/docs/{_form_model_values_rails.md → _form_model_values.md} +0 -0
- /data/app/pb_kits/playbook/pb_form/docs/{_form_multi_column_rails.md → _form_multi_column.md} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea7a2cbd41fa905d1b87ea9045bf7b2ba422f28fb0a2b573d236bdc9298ac3ff
|
|
4
|
+
data.tar.gz: a33468825a7669e840ba73fa1e57c838bba54a00e8900d942de1285e6dd418f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d3d5f31785f165d440106d964e9c2e594972664f7f01447bf93ffc3b83b0c3d0c2c7c0d53af0ada8ce2737cd0189b9a9dd39521b291bf7638e7ad398e660f6e
|
|
7
|
+
data.tar.gz: 037a62fcdd8ecf9417080645b462bf7f3a3ccc2a2f96baf7feed75b10f17aa43c7b5491711bdc947f4ed28a61a247579cb016c11962e4a7f745615fa5417fd93
|
|
@@ -1,55 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Pagination from "../../pb_pagination/_pagination";
|
|
3
|
-
import SectionSeparator from "../../pb_section_separator/_section_separator";
|
|
4
3
|
|
|
5
4
|
interface TablePaginationProps {
|
|
5
|
+
table: any;
|
|
6
6
|
onChange: (page: number) => void;
|
|
7
7
|
position: "top" | "bottom";
|
|
8
8
|
range?: number;
|
|
9
|
-
sectionSeparator?: boolean;
|
|
10
|
-
table: any;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
const TablePagination: React.FC<TablePaginationProps> = ({
|
|
12
|
+
table,
|
|
14
13
|
onChange,
|
|
15
14
|
position,
|
|
16
|
-
range = 5
|
|
17
|
-
sectionSeparator = false,
|
|
18
|
-
table,
|
|
15
|
+
range = 5
|
|
19
16
|
}) => {
|
|
20
17
|
const current = table.getState().pagination.pageIndex + 1;
|
|
21
18
|
const total = table.getPageCount();
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
if (total <= 1) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const pagination = (
|
|
20
|
+
return (
|
|
29
21
|
<Pagination
|
|
30
22
|
current={current}
|
|
31
23
|
key={`pagination-${position}-${current}`}
|
|
32
|
-
marginBottom={
|
|
33
|
-
|
|
34
|
-
marginTop={!sectionSeparator && position === "bottom" ? "xs" : undefined}
|
|
24
|
+
marginBottom={position === "top" ? "xs" : undefined}
|
|
25
|
+
marginTop={position === "bottom" ? "xs" : undefined}
|
|
35
26
|
onChange={onChange}
|
|
36
|
-
paddingY={sectionSeparator ? "xs" : undefined}
|
|
37
27
|
range={range}
|
|
38
28
|
total={total}
|
|
39
29
|
/>
|
|
40
30
|
);
|
|
41
|
-
|
|
42
|
-
if (!sectionSeparator) {
|
|
43
|
-
return pagination;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<>
|
|
48
|
-
<SectionSeparator />
|
|
49
|
-
{pagination}
|
|
50
|
-
{position === "top" && <SectionSeparator />}
|
|
51
|
-
</>
|
|
52
|
-
);
|
|
53
31
|
};
|
|
54
32
|
|
|
55
33
|
export default TablePagination;
|
|
@@ -491,10 +491,12 @@
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
// First
|
|
494
|
+
// First column separator/border
|
|
495
495
|
.table-header-cells:first-child,
|
|
496
|
-
|
|
497
|
-
|
|
496
|
+
.table-header-cells-custom:first-child,
|
|
497
|
+
td:first-child,
|
|
498
|
+
.pb_table_td:first-child,
|
|
499
|
+
.checkbox-cell.checkbox-cell-header:first-child {
|
|
498
500
|
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
|
499
501
|
}
|
|
500
502
|
|
|
@@ -502,14 +504,6 @@
|
|
|
502
504
|
box-shadow: inset 1px 0px 0px 0px var(--column-border-color) !important;
|
|
503
505
|
}
|
|
504
506
|
|
|
505
|
-
// Separate checkbox column (Rails + React): separator on the first data column
|
|
506
|
-
.table-header-cells-custom + th[colspan="1"],
|
|
507
|
-
.table-header-cells-custom + .table-header-cells[colspan="1"],
|
|
508
|
-
td.checkbox-cell + td,
|
|
509
|
-
td.checkbox-cell + .pb_table_td {
|
|
510
|
-
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
507
|
// Color for collapsible trail
|
|
514
508
|
.collapsible-trail {
|
|
515
509
|
background-color: $border_light !important;
|
|
@@ -721,12 +715,6 @@
|
|
|
721
715
|
box-shadow: 0 0 0 0 !important;
|
|
722
716
|
}
|
|
723
717
|
|
|
724
|
-
// Re-apply after the nth-child(2) clear above (checkbox column layouts)
|
|
725
|
-
td.checkbox-cell + td,
|
|
726
|
-
td.checkbox-cell + .pb_table_td {
|
|
727
|
-
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
718
|
.pb_advanced_table_header,
|
|
731
719
|
.pb_advanced_table_body {
|
|
732
720
|
th.sticky-left,
|
|
@@ -828,15 +816,10 @@
|
|
|
828
816
|
}
|
|
829
817
|
|
|
830
818
|
.table-header-cells:first-child,
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
.table-header-cells-custom + th[colspan="1"],
|
|
837
|
-
.table-header-cells-custom + .table-header-cells[colspan="1"],
|
|
838
|
-
td.checkbox-cell + td,
|
|
839
|
-
td.checkbox-cell + .pb_table_td {
|
|
819
|
+
.table-header-cells-custom:first-child,
|
|
820
|
+
td:first-child,
|
|
821
|
+
.pb_table_td:first-child,
|
|
822
|
+
.checkbox-cell.checkbox-cell-header:first-child {
|
|
840
823
|
box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
|
|
841
824
|
}
|
|
842
825
|
|
|
@@ -293,7 +293,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
|
293
293
|
onChange={onPageChange}
|
|
294
294
|
position="top"
|
|
295
295
|
range={paginationProps?.range}
|
|
296
|
-
sectionSeparator={paginationProps?.sectionSeparator}
|
|
297
296
|
table={table}
|
|
298
297
|
/>
|
|
299
298
|
)}
|
|
@@ -376,7 +375,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
|
|
|
376
375
|
onChange={onPageChange}
|
|
377
376
|
position="bottom"
|
|
378
377
|
range={paginationProps?.range}
|
|
379
|
-
sectionSeparator={paginationProps?.sectionSeparator}
|
|
380
378
|
table={table}
|
|
381
379
|
/>
|
|
382
380
|
)}
|
|
@@ -1385,47 +1385,6 @@ test("cascadeCollapse=true with header toggle all: collapse all then expand all
|
|
|
1385
1385
|
})
|
|
1386
1386
|
})
|
|
1387
1387
|
|
|
1388
|
-
test("pagination does not render section separators by default", () => {
|
|
1389
|
-
const { container } = render(
|
|
1390
|
-
<AdvancedTable
|
|
1391
|
-
columnDefinitions={columnDefinitions}
|
|
1392
|
-
data={{ testid: testId }}
|
|
1393
|
-
pagination
|
|
1394
|
-
paginationProps={{ pageSize: 1 }}
|
|
1395
|
-
tableData={MOCK_DATA}
|
|
1396
|
-
/>
|
|
1397
|
-
)
|
|
1398
|
-
|
|
1399
|
-
expect(container.querySelectorAll(".pb_paginate")).toHaveLength(2)
|
|
1400
|
-
expect(container.querySelectorAll(".pb_section_separator_kit")).toHaveLength(0)
|
|
1401
|
-
})
|
|
1402
|
-
|
|
1403
|
-
test("paginationProps.sectionSeparator renders separators for top and bottom pagination", () => {
|
|
1404
|
-
const { container } = render(
|
|
1405
|
-
<AdvancedTable
|
|
1406
|
-
columnDefinitions={columnDefinitions}
|
|
1407
|
-
data={{ testid: testId }}
|
|
1408
|
-
pagination
|
|
1409
|
-
paginationProps={{ pageSize: 1, sectionSeparator: true }}
|
|
1410
|
-
tableData={MOCK_DATA}
|
|
1411
|
-
tableProps={{ container: false }}
|
|
1412
|
-
/>
|
|
1413
|
-
)
|
|
1414
|
-
|
|
1415
|
-
const paginations = container.querySelectorAll(".pb_paginate")
|
|
1416
|
-
const separators = container.querySelectorAll(".pb_section_separator_kit")
|
|
1417
|
-
|
|
1418
|
-
expect(paginations).toHaveLength(2)
|
|
1419
|
-
expect(separators).toHaveLength(3)
|
|
1420
|
-
expect(paginations[0]).toHaveClass("ml_lg")
|
|
1421
|
-
expect(paginations[0]).toHaveClass("py_xs")
|
|
1422
|
-
expect(paginations[1]).toHaveClass("ml_lg")
|
|
1423
|
-
expect(paginations[1]).toHaveClass("py_xs")
|
|
1424
|
-
expect(separators[0].nextElementSibling).toBe(paginations[0])
|
|
1425
|
-
expect(paginations[0].nextElementSibling).toBe(separators[1])
|
|
1426
|
-
expect(separators[2].nextElementSibling).toBe(paginations[1])
|
|
1427
|
-
})
|
|
1428
|
-
|
|
1429
1388
|
const groupedColumnDefinitions = [
|
|
1430
1389
|
{
|
|
1431
1390
|
accessor: "year",
|
|
@@ -1518,5 +1477,4 @@ test("single header row does not mark every column as last-header-cell", () => {
|
|
|
1518
1477
|
expect(headers[0]).not.toHaveClass("last-header-cell")
|
|
1519
1478
|
expect(groupEnds).toHaveLength(1)
|
|
1520
1479
|
expect(kit.querySelector("tbody td.last-cell")).not.toBeInTheDocument()
|
|
1521
|
-
})
|
|
1522
|
-
|
|
1480
|
+
})
|
|
@@ -3,5 +3,4 @@
|
|
|
3
3
|
- `pageIndex`: An optional prop to set which page is set to open on initial load. Default is '0'
|
|
4
4
|
- `pageSize`: An optional prop to set total number of rows for each page before the Table paginates. Default is '20'
|
|
5
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'
|
|
6
|
-
- `onPageChange`: A callback function that gives to access to the current page index.
|
|
7
|
-
- `sectionSeparator`: Adds section separators and Table filter-pattern spacing around pagination. Default is `false`. See the [Section Separator](https://playbook.powerapp.cloud/kits/advanced_table/react#pagination-section-separator) example.
|
|
6
|
+
- `onPageChange`: A callback function that gives to access to the current page index.
|
|
@@ -67,7 +67,6 @@ examples:
|
|
|
67
67
|
- advanced_table_with_custom_header_multi_header: Custom Header with Multiple Headers
|
|
68
68
|
- advanced_table_pagination: Pagination
|
|
69
69
|
- advanced_table_pagination_with_props: Pagination Props
|
|
70
|
-
- advanced_table_pagination_section_separator: Pagination Section Separator
|
|
71
70
|
- advanced_table_loading: Loading State
|
|
72
71
|
- advanced_table_inline_row_loading: Inline Row Loading
|
|
73
72
|
- advanced_table_column_headers: Multi-Header Columns
|
|
@@ -13,7 +13,6 @@ export { default as AdvancedTableCustomCell } from './_advanced_table_custom_cel
|
|
|
13
13
|
export { default as AdvancedTableFullWidthCell } from './_advanced_table_full_width_cell.jsx'
|
|
14
14
|
export { default as AdvancedTablePagination } from './_advanced_table_pagination.jsx'
|
|
15
15
|
export { default as AdvancedTablePaginationWithProps } from './_advanced_table_pagination_with_props.jsx'
|
|
16
|
-
export { default as AdvancedTablePaginationSectionSeparator } from './_advanced_table_pagination_section_separator.jsx'
|
|
17
16
|
export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
|
|
18
17
|
export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
|
|
19
18
|
export { default as AdvancedTableSelectableRows } from './_advanced_table_selectable_rows.jsx'
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
<%= pb_content_tag(:thead) do %>
|
|
2
2
|
<% object.header_rows.each_with_index do |header_row, row_index| %>
|
|
3
|
-
<% is_lowest_header_row = row_index == header_rows.size - 1 %>
|
|
4
3
|
<%= pb_rails("table/table_row") do %>
|
|
5
|
-
<% if object.selectable_rows && object.enable_toggle_expansion == "none" %>
|
|
6
|
-
|
|
7
|
-
<%= object.render_select_all_header %>
|
|
8
|
-
<% else %>
|
|
9
|
-
<%= object.render_select_all_header_spacer %>
|
|
10
|
-
<% end %>
|
|
4
|
+
<% if row_index == 0 && object.selectable_rows && object.enable_toggle_expansion == "none" %>
|
|
5
|
+
<%= object.render_select_all_header %>
|
|
11
6
|
<% end %>
|
|
12
7
|
<% header_row.each_with_index do |cell, cell_index| %>
|
|
13
8
|
<% header_component = object.header_component_info(cell, cell_index, row_index) %>
|
|
14
9
|
<%= pb_rails(header_component[:name], props: header_component[:props]) do %>
|
|
15
10
|
<%= pb_rails("flex", props: { align: "center", justify: object.header_flex_justify(cell, cell_index, row_index), text_align: object.header_flex_text_align(cell) }) do %>
|
|
16
|
-
<% if cell_index.zero? &&
|
|
11
|
+
<% if cell_index.zero? && row_index === header_rows.size - 1 %>
|
|
17
12
|
<% if object.selectable_rows && object.enable_toggle_expansion != "none" %>
|
|
18
13
|
<%= pb_rails("flex/flex_item", props: { padding_right: "xs" }) do %>
|
|
19
14
|
<%= object.render_select_all_checkbox %>
|
|
@@ -58,8 +58,13 @@ module Playbook
|
|
|
58
58
|
# Selectable Rows No Subrows - checkboxes in their own first cell
|
|
59
59
|
def render_select_all_header
|
|
60
60
|
if selectable_rows
|
|
61
|
+
additional_classes = []
|
|
62
|
+
additional_classes << "table-header-cells-custom"
|
|
63
|
+
additional_classes << "header-cells-with-actions" if show_actions_bar
|
|
64
|
+
additional_classes << "checkbox-cell-header"
|
|
65
|
+
additional_classes << "pinned-left" if responsive == "scroll"
|
|
61
66
|
pb_rails("table/table_header", props: {
|
|
62
|
-
classname:
|
|
67
|
+
classname: additional_classes.join(" "),
|
|
63
68
|
}) do
|
|
64
69
|
pb_rails("checkbox", props: {
|
|
65
70
|
id: "#{table_id ? "#{table_id}-" : ''}select-all-rows",
|
|
@@ -71,15 +76,6 @@ module Playbook
|
|
|
71
76
|
end
|
|
72
77
|
end
|
|
73
78
|
|
|
74
|
-
# Empty checkbox-column cell for upper multi-header rows so columns stay aligned
|
|
75
|
-
def render_select_all_header_spacer
|
|
76
|
-
if selectable_rows
|
|
77
|
-
pb_rails("table/table_header", props: {
|
|
78
|
-
classname: select_all_header_classname,
|
|
79
|
-
})
|
|
80
|
-
end
|
|
81
|
-
end
|
|
82
|
-
|
|
83
79
|
# Selectable Rows w/ Subrows - checkboxes part of toggleable first cell
|
|
84
80
|
def render_select_all_checkbox
|
|
85
81
|
if selectable_rows
|
|
@@ -216,15 +212,6 @@ module Playbook
|
|
|
216
212
|
|
|
217
213
|
private
|
|
218
214
|
|
|
219
|
-
def select_all_header_classname
|
|
220
|
-
additional_classes = []
|
|
221
|
-
additional_classes << "table-header-cells-custom"
|
|
222
|
-
additional_classes << "header-cells-with-actions" if show_actions_bar
|
|
223
|
-
additional_classes << "checkbox-cell-header"
|
|
224
|
-
additional_classes << "pinned-left" if responsive == "scroll"
|
|
225
|
-
additional_classes.join(" ")
|
|
226
|
-
end
|
|
227
|
-
|
|
228
215
|
def header_layout_styles(cell)
|
|
229
216
|
original_def = find_original_column_def_for_cell(cell)
|
|
230
217
|
return {} unless original_def
|
|
@@ -189,7 +189,7 @@ module Playbook
|
|
|
189
189
|
|
|
190
190
|
pb_rails("checkbox", props: {
|
|
191
191
|
id: "#{prefix}select-row-#{row_id || row.object_id}",
|
|
192
|
-
indeterminate_main:
|
|
192
|
+
indeterminate_main: !last_row,
|
|
193
193
|
indeterminate_main_labels: ["", ""],
|
|
194
194
|
indeterminate_parent: indeterminate_parent,
|
|
195
195
|
name: "#{prefix}select-row-#{row_id || row.object_id}",
|
|
@@ -3,7 +3,6 @@ import classnames from 'classnames'
|
|
|
3
3
|
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
5
5
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
|
6
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
7
6
|
import { getPlacementProps } from './Utilities/GetPlacementPropsHelper'
|
|
8
7
|
|
|
9
8
|
import Image from "../pb_image/_image";
|
|
@@ -34,7 +33,7 @@ export type AvatarProps = {
|
|
|
34
33
|
name?: string,
|
|
35
34
|
size?: "md" | "lg" | "sm" | "xl" | "xs" | "xxs",
|
|
36
35
|
status?: "away" | "offline" | "online",
|
|
37
|
-
} & GlobalProps
|
|
36
|
+
} & GlobalProps
|
|
38
37
|
|
|
39
38
|
const firstTwoInitials = (name: string) =>
|
|
40
39
|
name.split(/\s/).map((name) => name[0])
|
|
@@ -95,7 +94,6 @@ const Avatar = (props: AvatarProps): React.ReactElement => {
|
|
|
95
94
|
{...ariaProps}
|
|
96
95
|
{...dataProps}
|
|
97
96
|
{...htmlProps}
|
|
98
|
-
{...globalEventProps(props)}
|
|
99
97
|
className={classes}
|
|
100
98
|
id={id}
|
|
101
99
|
>
|
|
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
4
4
|
import { GlobalProps, globalProps, globalInlineProps } from '../utilities/globalProps'
|
|
5
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
6
5
|
|
|
7
6
|
type BackgroundColors = 'gradient' |
|
|
8
7
|
'dark' |'light' | 'white' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'primary' | 'shadow' |
|
|
@@ -36,7 +35,7 @@ type BackgroundProps = {
|
|
|
36
35
|
padding?: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl',
|
|
37
36
|
tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'tr' | 'th' | 'td' | 'thead' | 'col',
|
|
38
37
|
transition?: 'fade' | 'blur' | 'scale',
|
|
39
|
-
} & GlobalProps
|
|
38
|
+
} & GlobalProps
|
|
40
39
|
|
|
41
40
|
type ResponsiveProp<T> = T | {
|
|
42
41
|
xs?: T,
|
|
@@ -167,7 +166,6 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
|
167
166
|
{...ariaProps}
|
|
168
167
|
{...dataProps}
|
|
169
168
|
{...htmlProps}
|
|
170
|
-
{...globalEventProps(props)}
|
|
171
169
|
alt={alt}
|
|
172
170
|
className={classes}
|
|
173
171
|
id={id}
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
4
4
|
import { deprecatedProps, globalProps, GlobalProps } from '../utilities/globalProps'
|
|
5
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
6
5
|
|
|
7
6
|
type CaptionProps = {
|
|
8
7
|
aria?: {[key: string]: string},
|
|
@@ -16,7 +15,7 @@ type CaptionProps = {
|
|
|
16
15
|
tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "caption",
|
|
17
16
|
text?: string,
|
|
18
17
|
variant?: null | "link",
|
|
19
|
-
} & GlobalProps
|
|
18
|
+
} & GlobalProps;
|
|
20
19
|
|
|
21
20
|
const Caption = (props: CaptionProps): React.ReactElement => {
|
|
22
21
|
if (props.variant) deprecatedProps() //variant prop is deprecated, use color instead
|
|
@@ -63,7 +62,6 @@ const Caption = (props: CaptionProps): React.ReactElement => {
|
|
|
63
62
|
{...ariaProps}
|
|
64
63
|
{...dataProps}
|
|
65
64
|
{...htmlProps}
|
|
66
|
-
{...globalEventProps(props)}
|
|
67
65
|
className={css}
|
|
68
66
|
id={id}
|
|
69
67
|
>
|
|
@@ -3,7 +3,6 @@ import classnames from 'classnames'
|
|
|
3
3
|
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
5
5
|
import { globalProps } from '../utilities/globalProps'
|
|
6
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
7
6
|
|
|
8
7
|
import Body from '../pb_body/_body'
|
|
9
8
|
import Caption from '../pb_caption/_caption'
|
|
@@ -65,7 +64,7 @@ type ContactProps = {
|
|
|
65
64
|
iconEnabled?: boolean
|
|
66
65
|
id?: string
|
|
67
66
|
unstyled?: boolean
|
|
68
|
-
}
|
|
67
|
+
}
|
|
69
68
|
|
|
70
69
|
const Contact = (props: ContactProps): React.ReactElement => {
|
|
71
70
|
const {
|
|
@@ -126,7 +125,6 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
|
126
125
|
{...ariaProps}
|
|
127
126
|
{...dataProps}
|
|
128
127
|
{...htmlProps}
|
|
129
|
-
{...globalEventProps(props)}
|
|
130
128
|
className={classes}
|
|
131
129
|
id={id}
|
|
132
130
|
>
|
|
@@ -141,7 +139,6 @@ const Contact = (props: ContactProps): React.ReactElement => {
|
|
|
141
139
|
{...ariaProps}
|
|
142
140
|
{...dataProps}
|
|
143
141
|
{...htmlProps}
|
|
144
|
-
{...globalEventProps(props)}
|
|
145
142
|
className={classes}
|
|
146
143
|
id={id}
|
|
147
144
|
>
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
4
4
|
import { globalProps, GlobalProps } from '../utilities/globalProps'
|
|
5
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
6
5
|
|
|
7
6
|
type ContainerProps = {
|
|
8
7
|
aria?: { [key: string]: string },
|
|
@@ -12,7 +11,7 @@ type ContainerProps = {
|
|
|
12
11
|
htmlOptions?: { [key: string]: string | number | boolean | (() => void) | ((event: any) => void) | any },
|
|
13
12
|
tag?: "div" | "span" | "a" | "button" | "option" | "table" | "tbody" | "thead" | "tfoot" | "tr" | "td" | "th" | "img" | "section" | "article" | "main" | "header" | "footer" | "nav" | "aside"
|
|
14
13
|
id?: string,
|
|
15
|
-
} & GlobalProps
|
|
14
|
+
} & GlobalProps
|
|
16
15
|
|
|
17
16
|
const Container = (props: ContainerProps): React.ReactElement => {
|
|
18
17
|
const {
|
|
@@ -37,7 +36,6 @@ const Container = (props: ContainerProps): React.ReactElement => {
|
|
|
37
36
|
{...ariaProps}
|
|
38
37
|
{...dataProps}
|
|
39
38
|
{...htmlProps}
|
|
40
|
-
{...globalEventProps(props)}
|
|
41
39
|
className={classes}
|
|
42
40
|
id={id}
|
|
43
41
|
>
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
|
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
|
5
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
6
5
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
7
6
|
|
|
8
7
|
import Body from '../pb_body/_body'
|
|
@@ -29,7 +28,7 @@ type CurrencyProps = {
|
|
|
29
28
|
unit?: string,
|
|
30
29
|
unstyled?: boolean,
|
|
31
30
|
commaSeparator?: boolean,
|
|
32
|
-
}
|
|
31
|
+
}
|
|
33
32
|
|
|
34
33
|
const sizes: {lg: 1, md: 3, sm: 4} = {
|
|
35
34
|
lg: 1,
|
|
@@ -133,7 +132,6 @@ const Currency = (props: CurrencyProps): React.ReactElement => {
|
|
|
133
132
|
{...ariaProps}
|
|
134
133
|
{...dataProps}
|
|
135
134
|
{...htmlProps}
|
|
136
|
-
{...globalEventProps(props)}
|
|
137
135
|
className={classes}
|
|
138
136
|
id={id}
|
|
139
137
|
>
|
|
@@ -2,7 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
|
|
4
4
|
import { globalProps } from '../utilities/globalProps'
|
|
5
|
-
import { GlobalEventProps, globalEventProps } from '../utilities/globalEventProps'
|
|
6
5
|
|
|
7
6
|
import Body from '../pb_body/_body'
|
|
8
7
|
import StatChange from '../pb_stat_change/_stat_change'
|
|
@@ -24,7 +23,7 @@ type DashboardValueProps = {
|
|
|
24
23
|
unit?: string,
|
|
25
24
|
value?: string | number
|
|
26
25
|
}
|
|
27
|
-
}
|
|
26
|
+
}
|
|
28
27
|
|
|
29
28
|
const DashboardValue = (props: DashboardValueProps): React.ReactElement => {
|
|
30
29
|
const {
|
|
@@ -53,7 +52,6 @@ const DashboardValue = (props: DashboardValueProps): React.ReactElement => {
|
|
|
53
52
|
{...ariaProps}
|
|
54
53
|
{...dataProps}
|
|
55
54
|
{...htmlProps}
|
|
56
|
-
{...globalEventProps(props)}
|
|
57
55
|
className={classes}
|
|
58
56
|
id={id}
|
|
59
57
|
>
|
|
@@ -3,7 +3,6 @@ import classnames from "classnames";
|
|
|
3
3
|
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
5
5
|
import { globalProps } from "../utilities/globalProps";
|
|
6
|
-
import { GlobalEventProps, globalEventProps } from "../utilities/globalEventProps";
|
|
7
6
|
import DateTime from '../pb_kit/dateTime';
|
|
8
7
|
|
|
9
8
|
import Body from "../pb_body/_body";
|
|
@@ -25,7 +24,7 @@ type PbDateProps = {
|
|
|
25
24
|
size?: "sm" | "md" | "lg";
|
|
26
25
|
unstyled?: boolean;
|
|
27
26
|
value: Date;
|
|
28
|
-
}
|
|
27
|
+
};
|
|
29
28
|
|
|
30
29
|
const PbDate = (props: PbDateProps): React.ReactElement => {
|
|
31
30
|
const {
|
|
@@ -65,7 +64,6 @@ const PbDate = (props: PbDateProps): React.ReactElement => {
|
|
|
65
64
|
{...ariaProps}
|
|
66
65
|
{...dataProps}
|
|
67
66
|
{...htmlProps}
|
|
68
|
-
{...globalEventProps(props)}
|
|
69
67
|
className={classes}
|
|
70
68
|
id={id}
|
|
71
69
|
>
|