playbook_ui_docs 14.11.1.pre.alpha.play1724darkmodeauditmap5413 → 14.11.1.pre.alpha.play1724darkmodeauditmap5437

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 364db9a32d67ef8695aa48175b6281ce41ca017ababac0f98507a349efb31f57
4
- data.tar.gz: 51c8d0f6422756b9f015b98b56aebf4c25fef5ac4536e225e3004b831a132276
3
+ metadata.gz: bf9e3e90c0b82a626878831e937c127b1c36a74445f5d4408c1e7031bb3644f1
4
+ data.tar.gz: ccd4f9115b4ac4b246cdcfd64dad1f2f4056da0addb2c84ebfe65b36a55d77dd
5
5
  SHA512:
6
- metadata.gz: b107c5b9a7271ac4c9b28c8476b0127cfd2149f7f5e2b9466ad8204f2e68c4c0c99a67a5d28c011d2ab7f0265a9ba6fcf5017b381624620e0c34b3ba142aa345
7
- data.tar.gz: 55542d06b2056c8c4f617b2acbfdb0e9a66115d4352d51f342e3fcbc0bb90924f9740d26382ffaea54a4a1cf4677e2de140d599b70b89e53bb599dde600bd682
6
+ metadata.gz: 8f478cd314e7990975d3c5f4bb8425dba8de16c73ce5cd2e91828391154e908abc73ae70cdd1089c4b194f190918619179011b24949fab14946d7201f68ee694
7
+ data.tar.gz: 2e3dc90e6c2c84e01fa82e879002f58b13c2f2e19fda7e19ced0918182341f16d9e6a4a945d915474e807b0a1ad57c3f72f36bc3271ae7433ca1340e56b6ff11
@@ -2,4 +2,4 @@ The `defaultDate`/`default_date` prop has a null or empty string value by defaul
2
2
 
3
3
  If you use a Date object without UTC time standardization the Date Picker kit may misinterpret that date as yesterdays date (consequence of timezone differentials and the Javascript Date Object constructor). See [this GitHub issue for more information](https://github.com/powerhome/playbook/issues/1167) and the anti-pattern examples below.
4
4
 
5
-
5
+ You can leverage the `defaultDate`/`default_date` prop with custom logic in your filter or controller files where the determination of the default value changes based on user interaction. The page can load with an initial default date picker value or placeholder text, then after filter submission save the submitted values as the "new default" (via state or params).
@@ -0,0 +1,38 @@
1
+ <%= pb_rails("selectable_list",
2
+ props: {
3
+ enable_drag: true,
4
+ variant: "radio",
5
+ items: [
6
+ { drag_id: "41",
7
+ text: "Task 1",
8
+ input_options: {
9
+ value: "1",
10
+ name: "radio-name",
11
+ }
12
+ },
13
+ { drag_id: "42",
14
+ text: "Task 2",
15
+ checked: true,
16
+ input_options: {
17
+ value: "2",
18
+ name: "radio-name",
19
+ }
20
+ },
21
+ { drag_id: "43",
22
+ text: "Task 3",
23
+ input_options: {
24
+ value: "3",
25
+ name: "radio-name",
26
+ }
27
+ },
28
+ { drag_id: "44",
29
+ text: "Task 4",
30
+ input_options: {
31
+ value: "4",
32
+ name: "radio-name",
33
+ }
34
+ }
35
+ ]
36
+ }
37
+ )
38
+ %>
@@ -0,0 +1,3 @@
1
+ For a simplified version of the Draggable API for the SelectableList kit, you can do the following:
2
+
3
+ The SelectableList kit is optimized to work with the draggable kit. To enable drag, use the `enable_drag` prop on SelectableList kit AND `drag_id` prop within the SelectableList kit prop. An additional optional boolean prop (set to true by default) of `drag_handle` is also available on SelectableList kit to show the drag handle icon.
@@ -11,6 +11,7 @@ examples:
11
11
  rails:
12
12
  - draggable_default_rails: Default
13
13
  - draggable_with_list_rails: Draggable with List Kit
14
+ - draggable_with_selectable_list_rails: Draggable with SelectableList Kit
14
15
  - draggable_with_cards_rails: Draggable with Cards
15
16
 
16
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.11.1.pre.alpha.play1724darkmodeauditmap5413
4
+ version: 14.11.1.pre.alpha.play1724darkmodeauditmap5437
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-16 00:00:00.000000000 Z
12
+ date: 2025-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -684,6 +684,8 @@ files:
684
684
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
685
685
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
686
686
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
687
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb
688
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
687
689
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
688
690
  - app/pb_kits/playbook/pb_draggable/docs/index.js
689
691
  - app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx