playbook_ui 13.21.0.pre.alpha.PLAY12582474 → 13.21.0.pre.alpha.PLAY12582514
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/table_body.rb +1 -1
- data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +9 -9
- data/app/pb_kits/playbook/pb_button/button.rb +5 -5
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +10 -10
- data/app/pb_kits/playbook/pb_currency/currency.rb +4 -4
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +8 -7
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb +7 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx +41 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -2
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +3 -3
- data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -1
- data/app/pb_kits/playbook/pb_form/form.rb +4 -4
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +9 -9
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +17 -17
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +0 -2
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +9 -9
- data/app/pb_kits/playbook/pb_list/list.rb +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +4 -4
- data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +6 -6
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +8 -8
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +8 -8
- data/app/pb_kits/playbook/pb_select/select.rb +6 -6
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
- data/app/pb_kits/playbook/pb_stat_value/stat_value.rb +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -1
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +9 -8
- data/app/pb_kits/playbook/pb_text_input/text_input.test.js +1 -1
- data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +6 -6
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +8 -8
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/forms/builder/action_area.rb +2 -2
- data/lib/playbook/forms/builder/checkbox_field.rb +2 -2
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
- data/lib/playbook/forms/builder/date_picker_field.rb +1 -1
- data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
- data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -1
- data/lib/playbook/forms/builder/multi_level_select_field.rb +1 -1
- data/lib/playbook/forms/builder/select_field.rb +1 -1
- data/lib/playbook/forms/builder/typeahead_field.rb +1 -1
- data/lib/playbook/kit_base.rb +2 -2
- data/lib/playbook/pb_doc_helper.rb +5 -5
- data/lib/playbook/pb_forms_helper.rb +1 -1
- data/lib/playbook/props/percentage.rb +2 -2
- data/lib/playbook/props.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +16 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0dd38dd97e8c632b8821888bfd3e15a2d357c941f76cb1e7672ad60450903f7
|
4
|
+
data.tar.gz: b8d9ead67a51d3d96dd50c71ee8a5f5e33f4be1112df425ca1ea9e7a1a3307c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654314ebddb64ce6547c51c51c434296381b9f70f3101610b5f8fd70712c2ecf1236c37e528d3a52828c2de237413106b039570ec051ce4fc115e5a4b6d12f60
|
7
|
+
data.tar.gz: 846774c0f9715ff7fbdad5a017e0308a921b62256db62e06fe6213cee136431b3cbab70fccb8ac99b283c064776b2ece40c0c1f1b8683a9243e56fde9053cb1d
|
@@ -11,7 +11,7 @@ module Playbook
|
|
11
11
|
def render_row_and_children(row, column_definitions, current_depth = 0)
|
12
12
|
output = ActiveSupport::SafeBuffer.new
|
13
13
|
|
14
|
-
output << pb_rails("advanced_table/table_row", props: { row
|
14
|
+
output << pb_rails("advanced_table/table_row", props: { row:, column_definitions:, depth: current_depth })
|
15
15
|
|
16
16
|
if row[:children].present?
|
17
17
|
row[:children].each do |child_row|
|
@@ -42,27 +42,27 @@ module Playbook
|
|
42
42
|
|
43
43
|
def standard_options
|
44
44
|
{
|
45
|
-
align
|
46
|
-
id
|
45
|
+
align:,
|
46
|
+
id:,
|
47
47
|
className: classname,
|
48
48
|
chartData: chart_data,
|
49
49
|
dark: dark ? "dark" : "",
|
50
50
|
type: chart_type,
|
51
|
-
title
|
51
|
+
title:,
|
52
52
|
subTitle: subtitle,
|
53
53
|
axisTitle: axis_title,
|
54
54
|
pointStart: point_start,
|
55
55
|
xAxisCategories: x_axis_categories,
|
56
56
|
yAxisMin: y_axis_min,
|
57
57
|
yAxisMax: y_axis_max,
|
58
|
-
legend
|
58
|
+
legend:,
|
59
59
|
toggleLegendClick: toggle_legend_click,
|
60
|
-
height
|
61
|
-
colors
|
62
|
-
layout
|
60
|
+
height:,
|
61
|
+
colors:,
|
62
|
+
layout:,
|
63
63
|
verticalAlign: vertical_align,
|
64
|
-
x
|
65
|
-
y
|
64
|
+
x:,
|
65
|
+
y:,
|
66
66
|
}
|
67
67
|
end
|
68
68
|
|
@@ -36,13 +36,13 @@ module Playbook
|
|
36
36
|
def options
|
37
37
|
options = {
|
38
38
|
class: classname,
|
39
|
-
disabled
|
40
|
-
id
|
39
|
+
disabled:,
|
40
|
+
id:,
|
41
41
|
role: "button",
|
42
42
|
tabindex: 0,
|
43
|
-
type
|
44
|
-
value
|
45
|
-
form
|
43
|
+
type:,
|
44
|
+
value:,
|
45
|
+
form:,
|
46
46
|
}.compact
|
47
47
|
combined_html_options.merge!(options) if combined_html_options.present?
|
48
48
|
end
|
@@ -42,15 +42,15 @@ module Playbook
|
|
42
42
|
|
43
43
|
def chart_options
|
44
44
|
{
|
45
|
-
align
|
46
|
-
id
|
47
|
-
colors
|
45
|
+
align:,
|
46
|
+
id:,
|
47
|
+
colors:,
|
48
48
|
chartData: chart_data,
|
49
49
|
dark: dark ? "dark" : "",
|
50
|
-
title
|
51
|
-
height
|
50
|
+
title:,
|
51
|
+
height:,
|
52
52
|
type: style,
|
53
|
-
legend
|
53
|
+
legend:,
|
54
54
|
dataLabelHtml: data_label_html,
|
55
55
|
dataLabels: data_labels,
|
56
56
|
tooltipHtml: tooltip_html,
|
@@ -60,11 +60,11 @@ module Playbook
|
|
60
60
|
innerSize: inner_size,
|
61
61
|
zMin: z_min,
|
62
62
|
startAngle: start_angle,
|
63
|
-
rounded
|
64
|
-
layout
|
63
|
+
rounded:,
|
64
|
+
layout:,
|
65
65
|
verticalAlign: vertical_align,
|
66
|
-
x
|
67
|
-
y
|
66
|
+
x:,
|
67
|
+
y:,
|
68
68
|
}
|
69
69
|
end
|
70
70
|
|
@@ -51,14 +51,14 @@ module Playbook
|
|
51
51
|
{
|
52
52
|
classname: "dollar_sign",
|
53
53
|
color: "light",
|
54
|
-
dark
|
54
|
+
dark:,
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
58
58
|
def caption_props
|
59
59
|
{
|
60
60
|
text: label,
|
61
|
-
dark
|
61
|
+
dark:,
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -67,7 +67,7 @@ module Playbook
|
|
67
67
|
size: size_value,
|
68
68
|
text: abbreviate ? abbreviated_value : whole_value,
|
69
69
|
classname: "pb_currency_value",
|
70
|
-
dark
|
70
|
+
dark:,
|
71
71
|
}
|
72
72
|
end
|
73
73
|
|
@@ -76,7 +76,7 @@ module Playbook
|
|
76
76
|
text: units_element,
|
77
77
|
color: "light",
|
78
78
|
classname: "unit",
|
79
|
-
dark
|
79
|
+
dark:,
|
80
80
|
}
|
81
81
|
end
|
82
82
|
|
@@ -135,6 +135,9 @@ useEffect(() => {
|
|
135
135
|
}, scrollContainer)
|
136
136
|
})
|
137
137
|
const filteredProps = {...props}
|
138
|
+
if (filteredProps.marginBottom === undefined) {
|
139
|
+
filteredProps.marginBottom = "sm"
|
140
|
+
}
|
138
141
|
delete filteredProps?.position
|
139
142
|
|
140
143
|
const classes = classnames(
|
@@ -17,6 +17,7 @@
|
|
17
17
|
error: object.error,
|
18
18
|
id: object.picker_id,
|
19
19
|
label: object.hide_label ? nil : object.label,
|
20
|
+
margin_bottom: "none",
|
20
21
|
name: object.name,
|
21
22
|
placeholder: object.placeholder,
|
22
23
|
required: object.required,
|
@@ -81,4 +82,4 @@
|
|
81
82
|
}
|
82
83
|
})
|
83
84
|
<% end %>
|
84
|
-
<% end %>
|
85
|
+
<% end %>
|
@@ -75,7 +75,8 @@ module Playbook
|
|
75
75
|
default: [1900, 2100]
|
76
76
|
|
77
77
|
def classname
|
78
|
-
|
78
|
+
default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
|
79
|
+
generate_classname("pb_date_picker_kit") + default_margin_bottom
|
79
80
|
end
|
80
81
|
|
81
82
|
def date_picker_config
|
@@ -87,17 +88,17 @@ module Playbook
|
|
87
88
|
disableRange: disable_range,
|
88
89
|
disableWeekdays: disable_weekdays,
|
89
90
|
enableTime: enable_time,
|
90
|
-
format
|
91
|
+
format:,
|
91
92
|
hideIcon: hide_icon,
|
92
|
-
inline
|
93
|
+
inline:,
|
93
94
|
maxDate: max_date,
|
94
95
|
minDate: min_date,
|
95
|
-
mode
|
96
|
+
mode:,
|
96
97
|
pickerId: picker_id,
|
97
|
-
plugins
|
98
|
-
position
|
98
|
+
plugins:,
|
99
|
+
position:,
|
99
100
|
positionElement: position_element,
|
100
|
-
required
|
101
|
+
required:,
|
101
102
|
selectionType: selection_type,
|
102
103
|
showTimezone: show_timezone,
|
103
104
|
staticPosition: static_position,
|
@@ -0,0 +1,7 @@
|
|
1
|
+
|
2
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-none", margin_bottom: "none"}) %>
|
3
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-xs", margin_bottom: "xs"}) %>
|
4
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-sm", margin_bottom: "sm"}) %>
|
5
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-md", margin_bottom: "md"}) %>
|
6
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-lg", margin_bottom: "lg"}) %>
|
7
|
+
<%= pb_rails("date_picker", props: { picker_id: "date-picker-xl", margin_bottom: "xl"}) %>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
import React from 'react'
|
3
|
+
|
4
|
+
import DatePicker from '../_date_picker'
|
5
|
+
|
6
|
+
const DatePickerMarginBottom = (props) => (
|
7
|
+
<div>
|
8
|
+
<DatePicker
|
9
|
+
marginBottom="none"
|
10
|
+
pickerId="date-picker-none"
|
11
|
+
{...props}
|
12
|
+
/>
|
13
|
+
<DatePicker
|
14
|
+
marginBottom="xs"
|
15
|
+
pickerId="date-picker-xs"
|
16
|
+
{...props}
|
17
|
+
/>
|
18
|
+
<DatePicker
|
19
|
+
marginBottom="sm"
|
20
|
+
pickerId="date-picker-sm"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
<DatePicker
|
24
|
+
marginBottom="md"
|
25
|
+
pickerId="date-picker-md"
|
26
|
+
{...props}
|
27
|
+
/>
|
28
|
+
<DatePicker
|
29
|
+
marginBottom="lg"
|
30
|
+
pickerId="date-picker-lg"
|
31
|
+
{...props}
|
32
|
+
/>
|
33
|
+
<DatePicker
|
34
|
+
marginBottom="xl"
|
35
|
+
pickerId="date-picker-xl"
|
36
|
+
{...props}
|
37
|
+
/>
|
38
|
+
</div>
|
39
|
+
)
|
40
|
+
|
41
|
+
export default DatePickerMarginBottom
|
@@ -20,6 +20,7 @@ examples:
|
|
20
20
|
- date_picker_hooks: Hooks
|
21
21
|
- date_picker_year_range: Year Range
|
22
22
|
- date_picker_anti_patterns: Anti-Patterns
|
23
|
+
- date_picker_margin_bottom: Margin Bottom
|
23
24
|
- date_picker_inline: Inline
|
24
25
|
- date_picker_month_and_year: Month & Year Only
|
25
26
|
- date_picker_week: Week
|
@@ -48,6 +49,7 @@ examples:
|
|
48
49
|
- date_picker_flatpickr_methods: Flatpickr Methods
|
49
50
|
- date_picker_hooks: Hooks
|
50
51
|
- date_picker_year_range: Year Range
|
52
|
+
- date_picker_margin_bottom: Margin Bottom
|
51
53
|
- date_picker_inline: Inline
|
52
54
|
- date_picker_month_and_year: Month & Year Only
|
53
55
|
- date_picker_week: Week
|
@@ -19,6 +19,7 @@ export { default as DatePickerWeek } from './_date_picker_week.jsx'
|
|
19
19
|
export { default as DatePickerPositions } from './_date_picker_positions.jsx'
|
20
20
|
export { default as DatePickerPositionsElement } from './_date_picker_positions_element.jsx'
|
21
21
|
export { default as DatePickerAllowInput } from './_date_picker_allow_input'
|
22
|
+
export { default as DatePickerMarginBottom} from './_date_picker_margin_bottom'
|
22
23
|
export { default as DatePickerQuickPickReact } from './_date_picker_quick_pick_react'
|
23
24
|
export { default as DatePickerQuickPickRangeLimit } from './_date_picker_quick_pick_range_limit'
|
24
25
|
export { default as DatePickerOnClose } from './_date_picker_on_close.jsx'
|
@@ -16,7 +16,7 @@ module Playbook
|
|
16
16
|
if type == "rails"
|
17
17
|
render inline: source
|
18
18
|
elsif type == "react"
|
19
|
-
react_component example_key.camelize, { dark:
|
19
|
+
react_component example_key.camelize, { dark: }
|
20
20
|
elsif type == "swift"
|
21
21
|
## render the markdown file
|
22
22
|
render inline: source
|
@@ -18,11 +18,11 @@ module Playbook
|
|
18
18
|
|
19
19
|
def form_options
|
20
20
|
{
|
21
|
-
id
|
22
|
-
aria
|
21
|
+
id:,
|
22
|
+
aria:,
|
23
23
|
class: classname,
|
24
|
-
data
|
25
|
-
validate
|
24
|
+
data:,
|
25
|
+
validate:,
|
26
26
|
}.merge(prop(:options) || prop(:form_system_options) || {})
|
27
27
|
end
|
28
28
|
end
|
@@ -24,22 +24,22 @@ module Playbook
|
|
24
24
|
|
25
25
|
def chart_options
|
26
26
|
{
|
27
|
-
id
|
27
|
+
id:,
|
28
28
|
chartData: chart_data,
|
29
29
|
circumference: full_circle ? [0, 360] : [-100, 100],
|
30
30
|
dark: dark ? "dark" : "",
|
31
31
|
disableAnimation: disable_animation,
|
32
|
-
height
|
33
|
-
min
|
34
|
-
max
|
35
|
-
title
|
36
|
-
suffix
|
37
|
-
prefix
|
32
|
+
height:,
|
33
|
+
min:,
|
34
|
+
max:,
|
35
|
+
title:,
|
36
|
+
suffix:,
|
37
|
+
prefix:,
|
38
38
|
showLabels: show_labels,
|
39
|
-
style
|
39
|
+
style:,
|
40
40
|
tooltipHtml: tooltip_html,
|
41
41
|
type: style,
|
42
|
-
colors
|
42
|
+
colors:,
|
43
43
|
}
|
44
44
|
end
|
45
45
|
|
@@ -49,28 +49,28 @@ module Playbook
|
|
49
49
|
|
50
50
|
def city_emphasis_props
|
51
51
|
{
|
52
|
-
address_house_style
|
53
|
-
address_house_style2
|
54
|
-
city_state
|
55
|
-
dark
|
56
|
-
home_id
|
57
|
-
home_url
|
58
|
-
new_window
|
59
|
-
territory
|
60
|
-
zip
|
52
|
+
address_house_style:,
|
53
|
+
address_house_style2:,
|
54
|
+
city_state:,
|
55
|
+
dark:,
|
56
|
+
home_id:,
|
57
|
+
home_url:,
|
58
|
+
new_window:,
|
59
|
+
territory:,
|
60
|
+
zip:,
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
64
64
|
def street_emphasis_props
|
65
65
|
{
|
66
|
-
address_house_style
|
67
|
-
address_house_style2
|
68
|
-
city_state_zip
|
69
|
-
dark
|
70
|
-
home_id
|
71
|
-
home_url
|
72
|
-
new_window
|
73
|
-
territory
|
66
|
+
address_house_style:,
|
67
|
+
address_house_style2:,
|
68
|
+
city_state_zip:,
|
69
|
+
dark:,
|
70
|
+
home_id:,
|
71
|
+
home_url:,
|
72
|
+
new_window:,
|
73
|
+
territory:,
|
74
74
|
}
|
75
75
|
end
|
76
76
|
|
@@ -40,27 +40,27 @@ module Playbook
|
|
40
40
|
|
41
41
|
def chart_options
|
42
42
|
{
|
43
|
-
align
|
44
|
-
id
|
43
|
+
align:,
|
44
|
+
id:,
|
45
45
|
className: classname,
|
46
46
|
chartData: chart_data,
|
47
47
|
dark: dark ? "dark" : "",
|
48
48
|
type: chart_type,
|
49
|
-
title
|
49
|
+
title:,
|
50
50
|
subTitle: subtitle,
|
51
51
|
axisTitle: axis_title,
|
52
52
|
pointStart: point_start,
|
53
53
|
xAxisCategories: x_axis_categories,
|
54
54
|
yAxisMin: y_axis_min,
|
55
55
|
yAxisMax: y_axis_max,
|
56
|
-
legend
|
56
|
+
legend:,
|
57
57
|
toggleLegendClick: toggle_legend_click,
|
58
|
-
height
|
59
|
-
colors
|
60
|
-
layout
|
58
|
+
height:,
|
59
|
+
colors:,
|
60
|
+
layout:,
|
61
61
|
verticalAlign: vertical_align,
|
62
|
-
x
|
63
|
-
y
|
62
|
+
x:,
|
63
|
+
y:,
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -41,7 +41,6 @@ module Playbook
|
|
41
41
|
dark ? "dark" : nil
|
42
42
|
end
|
43
43
|
|
44
|
-
# rubocop:disable Style/CaseLikeIf
|
45
44
|
def layout_class
|
46
45
|
if layout == "right"
|
47
46
|
"layout_right"
|
@@ -51,7 +50,6 @@ module Playbook
|
|
51
50
|
""
|
52
51
|
end
|
53
52
|
end
|
54
|
-
# rubocop:enable Style/CaseLikeIf
|
55
53
|
|
56
54
|
def size_class
|
57
55
|
size ? "large" : nil
|
@@ -26,14 +26,14 @@ module Playbook
|
|
26
26
|
|
27
27
|
def multi_level_select_options
|
28
28
|
{
|
29
|
-
id
|
29
|
+
id:,
|
30
30
|
inputDisplay: input_display,
|
31
|
-
name
|
31
|
+
name:,
|
32
32
|
treeData: tree_data,
|
33
33
|
returnAllSelected: return_all_selected,
|
34
34
|
selectedIds: selected_ids,
|
35
|
-
input_name
|
36
|
-
variant
|
35
|
+
input_name:,
|
36
|
+
variant:,
|
37
37
|
}
|
38
38
|
end
|
39
39
|
end
|
@@ -18,15 +18,15 @@ module Playbook
|
|
18
18
|
|
19
19
|
def passphrase_options
|
20
20
|
{
|
21
|
-
dark
|
22
|
-
id
|
23
|
-
confirmation
|
21
|
+
dark:,
|
22
|
+
id:,
|
23
|
+
confirmation:,
|
24
24
|
inputProps: input_props,
|
25
|
-
label
|
25
|
+
label:,
|
26
26
|
showTipsBelow: show_tips_below,
|
27
|
-
tips
|
27
|
+
tips:,
|
28
28
|
uncontrolled: true,
|
29
|
-
value
|
29
|
+
value:,
|
30
30
|
}.compact
|
31
31
|
end
|
32
32
|
end
|
@@ -28,17 +28,17 @@ module Playbook
|
|
28
28
|
|
29
29
|
def phone_number_input_options
|
30
30
|
{
|
31
|
-
id
|
32
|
-
dark
|
33
|
-
disabled
|
34
|
-
error
|
31
|
+
id:,
|
32
|
+
dark:,
|
33
|
+
disabled:,
|
34
|
+
error:,
|
35
35
|
initialCountry: initial_country,
|
36
|
-
label
|
37
|
-
name
|
36
|
+
label:,
|
37
|
+
name:,
|
38
38
|
onlyCountries: only_countries,
|
39
39
|
preferredCountries: preferred_countries,
|
40
|
-
required
|
41
|
-
value
|
40
|
+
required:,
|
41
|
+
value:,
|
42
42
|
}
|
43
43
|
end
|
44
44
|
end
|
@@ -39,16 +39,16 @@ module Playbook
|
|
39
39
|
|
40
40
|
def rich_text_options
|
41
41
|
{
|
42
|
-
id
|
43
|
-
inline
|
42
|
+
id:,
|
43
|
+
inline:,
|
44
44
|
className: classname,
|
45
|
-
focus
|
46
|
-
simple
|
47
|
-
sticky
|
45
|
+
focus:,
|
46
|
+
simple:,
|
47
|
+
sticky:,
|
48
48
|
toolbarBottom: toolbar_bottom,
|
49
|
-
value
|
50
|
-
template
|
51
|
-
placeholder
|
49
|
+
value:,
|
50
|
+
template:,
|
51
|
+
placeholder:,
|
52
52
|
}
|
53
53
|
end
|
54
54
|
end
|
@@ -28,13 +28,13 @@ module Playbook
|
|
28
28
|
|
29
29
|
def all_attributes
|
30
30
|
{
|
31
|
-
id
|
31
|
+
id:,
|
32
32
|
prompt: blank_selection,
|
33
|
-
disabled
|
34
|
-
required
|
35
|
-
multiple
|
36
|
-
onchange
|
37
|
-
include_blank
|
33
|
+
disabled:,
|
34
|
+
required:,
|
35
|
+
multiple:,
|
36
|
+
onchange:,
|
37
|
+
include_blank:,
|
38
38
|
}.merge(attributes)
|
39
39
|
end
|
40
40
|
|