playbook_ui 14.7.0.pre.alpha.PBNTR667railstypeaheadformintegration4454 → 14.7.0.pre.alpha.spacingquickchange4482
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_light.md +1 -1
- data/app/pb_kits/playbook/pb_date/_date.scss +3 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb +26 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md +7 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb +38 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +0 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb +19 -0
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_draggable/draggable.html.erb +3 -0
- data/app/pb_kits/playbook/pb_draggable/draggable.rb +18 -0
- data/app/pb_kits/playbook/pb_draggable/draggable_container.html.erb +3 -0
- data/app/pb_kits/playbook/pb_draggable/draggable_container.rb +15 -0
- data/app/pb_kits/playbook/pb_draggable/draggable_item.html.erb +7 -0
- data/app/pb_kits/playbook/pb_draggable/draggable_item.rb +18 -0
- data/app/pb_kits/playbook/pb_draggable/index.js +125 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +12 -63
- data/app/pb_kits/playbook/pb_typeahead/index.ts +2 -36
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -5
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
- data/dist/chunks/{_typeahead-B-juiSkw.js → _typeahead-DhLic2Fe.js} +1 -1
- data/dist/chunks/{_weekday_stacked-DPqQHJ1l.js → _weekday_stacked-Mx8TYP5I.js} +1 -1
- data/dist/chunks/{lib-DpxYMiKe.js → lib-D-mTv-kp.js} +1 -1
- data/dist/chunks/{pb_form_validation-LqRlnmi6.js → pb_form_validation-BkWGwJsl.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +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/forms/builder/typeahead_field.rb +0 -13
- data/lib/playbook/version.rb +1 -1
- metadata +18 -6
@@ -5,19 +5,6 @@ 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
|
-
|
21
8
|
@template.pb_rails("typeahead", props: props)
|
22
9
|
end
|
23
10
|
end
|
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.7.0.pre.alpha.
|
4
|
+
version: 14.7.0.pre.alpha.spacingquickchange4482
|
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-
|
12
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1098,17 +1098,29 @@ files:
|
|
1098
1098
|
- app/pb_kits/playbook/pb_draggable/context/types.ts
|
1099
1099
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
|
1100
1100
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md
|
1101
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
|
1102
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md
|
1101
1103
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
|
1102
1104
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md
|
1103
1105
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
|
1104
1106
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md
|
1107
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
|
1108
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md
|
1105
1109
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
|
1106
1110
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
|
1111
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
|
1107
1112
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
|
1108
1113
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
|
1109
1114
|
- app/pb_kits/playbook/pb_draggable/docs/example.yml
|
1110
1115
|
- app/pb_kits/playbook/pb_draggable/docs/index.js
|
1116
|
+
- app/pb_kits/playbook/pb_draggable/draggable.html.erb
|
1117
|
+
- app/pb_kits/playbook/pb_draggable/draggable.rb
|
1111
1118
|
- app/pb_kits/playbook/pb_draggable/draggable.test.jsx
|
1119
|
+
- app/pb_kits/playbook/pb_draggable/draggable_container.html.erb
|
1120
|
+
- app/pb_kits/playbook/pb_draggable/draggable_container.rb
|
1121
|
+
- app/pb_kits/playbook/pb_draggable/draggable_item.html.erb
|
1122
|
+
- app/pb_kits/playbook/pb_draggable/draggable_item.rb
|
1123
|
+
- app/pb_kits/playbook/pb_draggable/index.js
|
1112
1124
|
- app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx
|
1113
1125
|
- app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx
|
1114
1126
|
- app/pb_kits/playbook/pb_drawer/_close_icon.tsx
|
@@ -3151,11 +3163,11 @@ files:
|
|
3151
3163
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3152
3164
|
- app/pb_kits/playbook/utilities/text.ts
|
3153
3165
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3154
|
-
- dist/chunks/_typeahead-
|
3155
|
-
- dist/chunks/_weekday_stacked-
|
3166
|
+
- dist/chunks/_typeahead-DhLic2Fe.js
|
3167
|
+
- dist/chunks/_weekday_stacked-Mx8TYP5I.js
|
3156
3168
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3157
|
-
- dist/chunks/lib-
|
3158
|
-
- dist/chunks/pb_form_validation-
|
3169
|
+
- dist/chunks/lib-D-mTv-kp.js
|
3170
|
+
- dist/chunks/pb_form_validation-BkWGwJsl.js
|
3159
3171
|
- dist/chunks/vendor.js
|
3160
3172
|
- dist/menu.yml
|
3161
3173
|
- dist/playbook-doc.js
|