playbook_ui 14.8.0.pre.rc.3 → 14.8.0.pre.rc.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
  3. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +63 -12
  5. data/app/pb_kits/playbook/pb_timeline/_timeline.scss +43 -1
  6. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +6 -2
  7. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.html.erb +94 -0
  8. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.jsx +180 -0
  9. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.md +1 -0
  10. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +5 -3
  11. data/app/pb_kits/playbook/pb_timeline/docs/index.js +2 -0
  12. data/app/pb_kits/playbook/pb_timeline/timeline.rb +11 -1
  13. data/app/pb_kits/playbook/pb_timeline/timeline.test.js +4 -4
  14. data/app/pb_kits/playbook/pb_typeahead/index.ts +36 -2
  15. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +5 -2
  16. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +4 -0
  17. data/dist/chunks/{_typeahead-CFuWkfWK.js → _typeahead-DEskmS_o.js} +1 -1
  18. data/dist/chunks/{_weekday_stacked-OvN7ix-I.js → _weekday_stacked-f4faf8xD.js} +2 -2
  19. data/dist/chunks/{lib-D-mTv-kp.js → lib-DpxYMiKe.js} +1 -1
  20. data/dist/chunks/{pb_form_validation-BkWGwJsl.js → pb_form_validation-LqRlnmi6.js} +1 -1
  21. data/dist/chunks/vendor.js +1 -1
  22. data/dist/playbook-doc.js +1 -1
  23. data/dist/playbook-rails-react-bindings.js +1 -1
  24. data/dist/playbook-rails.js +1 -1
  25. data/dist/playbook.css +1 -1
  26. data/lib/playbook/forms/builder/typeahead_field.rb +13 -0
  27. data/lib/playbook/version.rb +1 -1
  28. metadata +9 -6
@@ -5,6 +5,19 @@ module Playbook
5
5
  class Builder
6
6
  def typeahead(name, _options = {}, _html_options = {}, props: {})
7
7
  props[:name] = name
8
+
9
+ input_id = "#{name}_input"
10
+ props[:input_options] ||= {}
11
+ props[:input_options][:id] ||= input_id
12
+
13
+ props[:label] = @template.label(@object_name, name, for: props[:input_options][:id]) if props[:label] == true
14
+
15
+ if props[:validation]
16
+ validation_message = props[:validation][:message]
17
+ props[:input_options][:data] ||= {}
18
+ props[:input_options][:data][:validation_message] = validation_message
19
+ end
20
+
8
21
  @template.pb_rails("typeahead", props: props)
9
22
  end
10
23
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.7.0"
5
- VERSION = "14.8.0.pre.rc.3"
5
+ VERSION = "14.8.0.pre.rc.5"
6
6
  end
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.8.0.pre.rc.3
4
+ version: 14.8.0.pre.rc.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-11-14 00:00:00.000000000 Z
12
+ date: 2024-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2782,6 +2782,9 @@ files:
2782
2782
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.html.erb
2783
2783
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx
2784
2784
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md
2785
+ - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.html.erb
2786
+ - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.jsx
2787
+ - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.md
2785
2788
  - app/pb_kits/playbook/pb_timeline/docs/example.yml
2786
2789
  - app/pb_kits/playbook/pb_timeline/docs/index.js
2787
2790
  - app/pb_kits/playbook/pb_timeline/item.html.erb
@@ -3163,11 +3166,11 @@ files:
3163
3166
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3164
3167
  - app/pb_kits/playbook/utilities/text.ts
3165
3168
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3166
- - dist/chunks/_typeahead-CFuWkfWK.js
3167
- - dist/chunks/_weekday_stacked-OvN7ix-I.js
3169
+ - dist/chunks/_typeahead-DEskmS_o.js
3170
+ - dist/chunks/_weekday_stacked-f4faf8xD.js
3168
3171
  - dist/chunks/lazysizes-B7xYodB-.js
3169
- - dist/chunks/lib-D-mTv-kp.js
3170
- - dist/chunks/pb_form_validation-BkWGwJsl.js
3172
+ - dist/chunks/lib-DpxYMiKe.js
3173
+ - dist/chunks/pb_form_validation-LqRlnmi6.js
3171
3174
  - dist/chunks/vendor.js
3172
3175
  - dist/menu.yml
3173
3176
  - dist/playbook-doc.js