playbook_ui 14.11.1.pre.alpha.PBNTR798datepickerturbo5537 → 14.11.1.pre.alpha.PBNTR7495495
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/CustomCell.tsx +18 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +27 -5
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +17 -2
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +23 -1
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +29 -0
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +61 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +50 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +60 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md +5 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +78 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +53 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +52 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json +42 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json +299 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +6 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +10 -22
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +1 -6
- data/app/pb_kits/playbook/pb_radio/_radio.scss +8 -12
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +3 -8
- data/dist/chunks/_typeahead-D_mMNEad.js +36 -0
- data/dist/chunks/_weekday_stacked-CGe59pJD.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +14 -5
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +0 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +0 -3
- data/dist/chunks/_typeahead-TN5aDUj9.js +0 -36
- data/dist/chunks/_weekday_stacked-BcnpLG66.js +0 -45
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.11.1.pre.alpha.
|
4
|
+
version: 14.11.1.pre.alpha.PBNTR7495495
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -302,12 +302,21 @@ files:
|
|
302
302
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md
|
303
303
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx
|
304
304
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md
|
305
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
|
305
306
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
|
306
307
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
|
307
308
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
|
308
309
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md
|
309
310
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
|
310
311
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
|
312
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
|
313
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
|
314
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
|
315
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
|
316
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
|
317
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
|
318
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx
|
319
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md
|
311
320
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
|
312
321
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
|
313
322
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
|
@@ -322,6 +331,8 @@ files:
|
|
322
331
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md
|
323
332
|
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
|
324
333
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
|
334
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json
|
335
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json
|
325
336
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json
|
326
337
|
- app/pb_kits/playbook/pb_advanced_table/docs/example.yml
|
327
338
|
- app/pb_kits/playbook/pb_advanced_table/docs/index.js
|
@@ -930,8 +941,6 @@ files:
|
|
930
941
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
|
931
942
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
|
932
943
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
|
933
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb
|
934
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md
|
935
944
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.html.erb
|
936
945
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.jsx
|
937
946
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_week.md
|
@@ -3264,8 +3273,8 @@ files:
|
|
3264
3273
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3265
3274
|
- app/pb_kits/playbook/utilities/text.ts
|
3266
3275
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3267
|
-
- dist/chunks/_typeahead-
|
3268
|
-
- dist/chunks/_weekday_stacked-
|
3276
|
+
- dist/chunks/_typeahead-D_mMNEad.js
|
3277
|
+
- dist/chunks/_weekday_stacked-CGe59pJD.js
|
3269
3278
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3270
3279
|
- dist/chunks/lib-OFT985dg.js
|
3271
3280
|
- dist/chunks/pb_form_validation-CrsXd1-Y.js
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<%= pb_rails("date_picker", props: { picker_id: "date-picker-turbo-frames", custom_event_type: "datePickerLoader" }) %>
|
2
|
-
<%= pb_rails("button", props: { id: "date-picker-loader", text: "Click Event Simulation" }) %>
|
3
|
-
|
4
|
-
<script>
|
5
|
-
document.getElementById("date-picker-loader").addEventListener("click", () => {
|
6
|
-
window.document.dispatchEvent(
|
7
|
-
new CustomEvent("datePickerLoader", {
|
8
|
-
bubbles: true,
|
9
|
-
})
|
10
|
-
)
|
11
|
-
console.log("Event 'datePickerLoader' dispatched - in a real implementation, this event would trigger the date picker's reinitialization through the custom_event_type prop connection")
|
12
|
-
})
|
13
|
-
</script>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The `custom_event_type` prop allows you to specify a custom event that will trigger the date picker's initialization, in addition to the default initialization on `DOMContentLoaded`. This is particularly useful in dynamic contexts like Turbo Frame updates where you need to reinitialize the date picker after new content loads. For Turbo integration, use `custom_event_type: "turbo:before-render"` to ensure the date picker properly reinitializes after Turbo navigation events.
|
2
|
-
|
3
|
-
In this example, we demonstrate the setup pattern by connecting a button to dispatch a "datePickerLoader" event - while the date picker's event listener is properly configured through the `custom_event_type` prop, this demo only logs the event dispatch to the console to illustrate the connection structure.
|