ui_bibz 2.0.0.beta2.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -7
- data/Gemfile.lock +63 -63
- data/app/assets/javascripts/interface.coffee +6 -1
- data/app/assets/javascripts/ui_bibz.coffee +1 -0
- data/app/assets/stylesheets/_custom_variables.sass +20 -0
- data/app/assets/stylesheets/_panel.scss +314 -0
- data/app/assets/stylesheets/boxes.sass +5 -0
- data/app/assets/stylesheets/containers.sass +2 -0
- data/app/assets/stylesheets/fix-bootstrap-4.sass +4 -0
- data/app/assets/stylesheets/fix-dropdown-select.sass +1 -0
- data/app/assets/stylesheets/fix_addon.sass +187 -0
- data/app/assets/stylesheets/forms.sass +60 -0
- data/app/assets/stylesheets/navigations.sass +11 -0
- data/app/assets/stylesheets/notifications.sass +10 -0
- data/app/assets/stylesheets/{table.sass → tables.sass} +0 -0
- data/app/assets/stylesheets/ui_bibz.sass +11 -91
- data/config/initializers/ui_bibz.rb +6 -4
- data/lib/ui_bibz.rb +5 -0
- data/lib/ui_bibz/helpers/ui/ux_helper.rb +4 -0
- data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +38 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/auto_complete_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/base_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/collection_input.rb +15 -11
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/string_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_choice_group_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_formula_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +0 -0
- data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +10 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_radio_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_select_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_switch_field_input.rb +0 -0
- data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_text_field_input.rb +0 -0
- data/lib/ui_bibz/rails/engine.rb +3 -9
- data/lib/ui_bibz/ui/core/boxes/card.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/card_column.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/card_deck.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/card_group.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -1
- data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -1
- data/lib/ui_bibz/ui/core/component.rb +34 -3
- data/lib/ui_bibz/ui/core/forms/buttons/button.rb +11 -7
- data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +5 -1
- data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +2 -2
- data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_link.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +7 -2
- data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +63 -0
- data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +5 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +1 -1
- data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +7 -3
- data/lib/ui_bibz/ui/core/icons/glyph.rb +10 -2
- data/lib/ui_bibz/ui/core/icons/star.rb +1 -1
- data/lib/ui_bibz/ui/core/layouts/col.rb +1 -1
- data/lib/ui_bibz/ui/core/layouts/container.rb +1 -1
- data/lib/ui_bibz/ui/core/layouts/row.rb +1 -1
- data/lib/ui_bibz/ui/core/lists/components/list.rb +1 -1
- data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +1 -1
- data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +1 -1
- data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +3 -3
- data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +19 -17
- data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/link.rb +8 -2
- data/lib/ui_bibz/ui/core/navigations/nav.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/navbar.rb +10 -5
- data/lib/ui_bibz/ui/core/navigations/pagination.rb +1 -1
- data/lib/ui_bibz/ui/core/navigations/toolbar.rb +5 -8
- data/lib/ui_bibz/ui/core/notifications/alert.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/badge.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/components/bar.rb +1 -1
- data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
- data/lib/ui_bibz/ui/core/windows/modal.rb +1 -1
- data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +22 -4
- data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +51 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +48 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +50 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +52 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +46 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +61 -0
- data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +38 -0
- data/lib/ui_bibz/ui/ux/containers/panel.rb +104 -0
- data/lib/ui_bibz/ui/ux/tables/components/thead.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/table.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/table_card.rb +1 -1
- data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
- data/lib/ui_bibz/utils/internationalization.rb +3 -0
- data/lib/ui_bibz/version.rb +1 -1
- data/test/factories/user.rb +1 -1
- data/test/simple_form_test.rb +2 -2
- data/test/support/factory_bot.rb +9 -0
- data/test/test_helper.rb +0 -1
- data/test/ui/core/boxes/card_test.rb +1 -1
- data/test/ui/core/component_test.rb +8 -1
- data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
- data/test/ui/core/forms/buttons/button_test.rb +2 -2
- data/test/ui/core/forms/choices/choice_group_test.rb +1 -1
- data/test/ui/core/forms/dropdowns/dropdown_test.rb +1 -1
- data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
- data/test/ui/core/forms/selects/dropdown_select_field_test.rb +1 -1
- data/test/ui/core/forms/selects/multi_select_field_test.rb +1 -1
- data/test/ui/core/forms/selects/select_field_test.rb +1 -1
- data/test/ui/core/forms/surrounds/surround_field_test.rb +3 -3
- data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
- data/test/ui/core/forms/texts/text_field_test.rb +1 -1
- data/test/ui/core/icons/glyph_test.rb +6 -4
- data/test/ui/core/icons/star_test.rb +6 -6
- data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
- data/test/ui/core/navigations/navbar_test.rb +1 -1
- data/test/ui/core/notifications/alert_test.rb +1 -1
- data/test/ui/core/notifications/badge_test.rb +2 -2
- data/test/ui/ux/containers/panel_test.rb +143 -0
- data/test/ui/ux/tables/table_test.rb +3 -3
- data/ui_bibz.gemspec +3 -12
- data/vendor/assets/javascripts/bootstrap-markdown.js +12 -12
- data/vendor/assets/javascripts/jquery-ui.min.js +6 -0
- data/vendor/assets/stylesheets/jquery-ui.min.css +6 -0
- metadata +63 -27
- data/app/inputs/ui_bibz_form/ui_bibz_form_builder.rb +0 -36
- data/test/support/factory_girl.rb +0 -6
@@ -0,0 +1,187 @@
|
|
1
|
+
$input-group-btn-border-color: $input-border-color
|
2
|
+
|
3
|
+
.input-group-addon
|
4
|
+
@if $enable-flex
|
5
|
+
// do nothing
|
6
|
+
@else
|
7
|
+
display: table-cell
|
8
|
+
|
9
|
+
&:not(:first-child):not(:last-child)
|
10
|
+
@include border-radius(0)
|
11
|
+
|
12
|
+
|
13
|
+
.input-group-addon
|
14
|
+
@if $enable-flex
|
15
|
+
// do nothing
|
16
|
+
@else
|
17
|
+
width: 1%
|
18
|
+
|
19
|
+
white-space: nowrap
|
20
|
+
vertical-align: middle
|
21
|
+
|
22
|
+
|
23
|
+
//
|
24
|
+
// Base styles
|
25
|
+
//
|
26
|
+
|
27
|
+
.input-group
|
28
|
+
position: relative
|
29
|
+
display: flex
|
30
|
+
align-items: center
|
31
|
+
width: 100%
|
32
|
+
|
33
|
+
.form-control
|
34
|
+
// Ensure that the input is always above the *appended* addon button for
|
35
|
+
// proper border colors.
|
36
|
+
position: relative
|
37
|
+
z-index: 2
|
38
|
+
flex: 1 1 auto
|
39
|
+
// Add width 1% and flex-basis auto to ensure that button will not wrap out
|
40
|
+
// the column. Applies to IE Edge+ and Firefox. Chrome does not require this.
|
41
|
+
width: 1%
|
42
|
+
margin-bottom: 0
|
43
|
+
|
44
|
+
// Bring the "active" form control to the front
|
45
|
+
@include hover-focus-active
|
46
|
+
z-index: 3
|
47
|
+
|
48
|
+
.input-group-addon,
|
49
|
+
.input-group-btn,
|
50
|
+
.input-group .form-control
|
51
|
+
&:not(:first-child):not(:last-child)
|
52
|
+
@include border-radius(0)
|
53
|
+
|
54
|
+
.input-group-addon,
|
55
|
+
.input-group-btn
|
56
|
+
white-space: nowrap
|
57
|
+
|
58
|
+
|
59
|
+
// Sizing options
|
60
|
+
//
|
61
|
+
// Remix the default form control sizing classes into new ones for easier
|
62
|
+
// manipulation.
|
63
|
+
|
64
|
+
.input-group-lg > .form-control,
|
65
|
+
.input-group-lg > .input-group-addon,
|
66
|
+
.input-group-lg > .input-group-btn > .btn
|
67
|
+
@extend .form-control-lg
|
68
|
+
|
69
|
+
.input-group-sm > .form-control,
|
70
|
+
.input-group-sm > .input-group-addon,
|
71
|
+
.input-group-sm > .input-group-btn > .btn
|
72
|
+
@extend .form-control-sm
|
73
|
+
|
74
|
+
|
75
|
+
//
|
76
|
+
// Text input groups
|
77
|
+
//
|
78
|
+
|
79
|
+
.input-group-addon
|
80
|
+
padding: $input-btn-padding-y $input-btn-padding-x
|
81
|
+
margin-bottom: 0 // Allow use of <label> elements by overriding our default margin-bottom
|
82
|
+
font-size: $font-size-base // Match inputs
|
83
|
+
font-weight: $font-weight-normal
|
84
|
+
line-height: $input-btn-line-height
|
85
|
+
color: $input-group-addon-color
|
86
|
+
text-align: center
|
87
|
+
background-color: $input-group-addon-bg
|
88
|
+
background-clip: padding-box
|
89
|
+
border: $input-btn-border-width solid $input-group-addon-border-color
|
90
|
+
@include border-radius($input-border-radius)
|
91
|
+
|
92
|
+
// Sizing
|
93
|
+
&.form-control-sm
|
94
|
+
padding: $input-btn-padding-y-sm $input-btn-padding-x-sm
|
95
|
+
font-size: $font-size-sm
|
96
|
+
@include border-radius($input-border-radius-sm)
|
97
|
+
|
98
|
+
|
99
|
+
&.form-control-lg
|
100
|
+
padding: $input-btn-padding-y-lg $input-btn-padding-x-lg
|
101
|
+
font-size: $font-size-lg
|
102
|
+
@include border-radius($input-border-radius-lg)
|
103
|
+
|
104
|
+
|
105
|
+
// scss-lint:disable QualifyingElement
|
106
|
+
// Nuke default margins from checkboxes and radios to vertically center within.
|
107
|
+
input[type="radio"],
|
108
|
+
input[type="checkbox"]
|
109
|
+
margin-top: 0
|
110
|
+
|
111
|
+
// scss-lint:enable QualifyingElement
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
//
|
116
|
+
// Reset rounded corners
|
117
|
+
//
|
118
|
+
|
119
|
+
.input-group .form-control:not(:last-child),
|
120
|
+
.input-group-addon:not(:last-child),
|
121
|
+
.input-group-btn:not(:last-child) > .btn,
|
122
|
+
.input-group-btn:not(:last-child) > .btn-group > .btn,
|
123
|
+
.input-group-btn:not(:last-child) > .dropdown-toggle,
|
124
|
+
.input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),
|
125
|
+
.input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn
|
126
|
+
@include border-right-radius(0)
|
127
|
+
|
128
|
+
.input-group-addon:not(:last-child)
|
129
|
+
border-right: 0
|
130
|
+
|
131
|
+
.input-group .form-control:not(:first-child),
|
132
|
+
.input-group-addon:not(:first-child),
|
133
|
+
.input-group-btn:not(:first-child) > .btn,
|
134
|
+
.input-group-btn:not(:first-child) > .btn-group > .btn,
|
135
|
+
.input-group-btn:not(:first-child) > .dropdown-toggle,
|
136
|
+
.input-group-btn:not(:last-child) > .btn:not(:first-child),
|
137
|
+
.input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn
|
138
|
+
@include border-left-radius(0)
|
139
|
+
|
140
|
+
.form-control + .input-group-addon:not(:first-child)
|
141
|
+
border-left: 0
|
142
|
+
|
143
|
+
|
144
|
+
//
|
145
|
+
// Button input groups
|
146
|
+
//
|
147
|
+
|
148
|
+
.input-group-btn
|
149
|
+
position: relative
|
150
|
+
// Jankily prevent input button groups from wrapping with `white-space` and
|
151
|
+
// `font-size` in combination with `inline-block` on buttons.
|
152
|
+
font-size: 0
|
153
|
+
white-space: nowrap
|
154
|
+
|
155
|
+
// Negative margin for spacing, position for bringing hovered/focused/actived
|
156
|
+
// element above the siblings.
|
157
|
+
> .btn
|
158
|
+
position: relative
|
159
|
+
background-clip: padding-box
|
160
|
+
border: $input-btn-border-width solid $input-group-btn-border-color
|
161
|
+
|
162
|
+
+ .btn
|
163
|
+
margin-left: (-$input-btn-border-width)
|
164
|
+
|
165
|
+
|
166
|
+
// Bring the "active" button to the front
|
167
|
+
@include hover-focus-active
|
168
|
+
z-index: 3
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
// Negative margin to only have a single, shared border between the two
|
173
|
+
&:not(:last-child)
|
174
|
+
> .btn,
|
175
|
+
> .btn-group
|
176
|
+
margin-right: (-$input-btn-border-width)
|
177
|
+
|
178
|
+
|
179
|
+
&:not(:first-child)
|
180
|
+
> .btn,
|
181
|
+
> .btn-group
|
182
|
+
z-index: 2
|
183
|
+
margin-left: (-$input-btn-border-width)
|
184
|
+
// Because specificity
|
185
|
+
@include hover-focus-active
|
186
|
+
z-index: 3
|
187
|
+
|
@@ -0,0 +1,60 @@
|
|
1
|
+
.multiselect-container
|
2
|
+
.filter
|
3
|
+
margin: 5px
|
4
|
+
|
5
|
+
.formula_field
|
6
|
+
input
|
7
|
+
border-bottom-right-radius: 0.25rem !important
|
8
|
+
border-top-right-radius: 0.25rem !important
|
9
|
+
.fix-border-right
|
10
|
+
border-bottom-right-radius: 0 !important
|
11
|
+
border-top-right-radius: 0 !important
|
12
|
+
width: 100%
|
13
|
+
.form-control[readonly]
|
14
|
+
background-color: white
|
15
|
+
.formula-field_alert, .formula-field-result, .formula-field-sign
|
16
|
+
display: none
|
17
|
+
|
18
|
+
.formula-field-alert
|
19
|
+
padding-top: 10px
|
20
|
+
|
21
|
+
.select-field-refresh
|
22
|
+
.btn
|
23
|
+
padding: 10px 16px
|
24
|
+
|
25
|
+
.input-group-addon.abc-checkbox label, .input-group-addon.abc-radio label
|
26
|
+
margin-bottom: 0
|
27
|
+
|
28
|
+
.checkbox-inline, .radio-inline
|
29
|
+
display: inline-block
|
30
|
+
margin-right: 10px
|
31
|
+
|
32
|
+
.input-group-btn
|
33
|
+
.input-refresh-button
|
34
|
+
//padding: 10px 16px
|
35
|
+
|
36
|
+
.input-group-btn
|
37
|
+
label.btn
|
38
|
+
margin: 0
|
39
|
+
|
40
|
+
.fix-label
|
41
|
+
margin-right: -11px
|
42
|
+
|
43
|
+
.date_picker
|
44
|
+
min-width: 104px
|
45
|
+
|
46
|
+
.ui_surround_field
|
47
|
+
select
|
48
|
+
-webkit-appearance: none
|
49
|
+
.mr-sm-2
|
50
|
+
margin-right: 0px !important
|
51
|
+
input:not(:first-child):not(:last-child)
|
52
|
+
border-radius: 0px
|
53
|
+
.abc-radio.input-group-addon, .abc-checkbox.input-group-addon
|
54
|
+
input
|
55
|
+
margin-left: 17px
|
56
|
+
select:not(:first-child):not(:last-child)
|
57
|
+
border-radius: 0px
|
58
|
+
|
59
|
+
//.btn.without-text
|
60
|
+
padding-right: 3px
|
File without changes
|
@@ -7,11 +7,13 @@ $enable-flex: true
|
|
7
7
|
|
8
8
|
//@import bootstrap-sprockets
|
9
9
|
//@import bootstrap/_variables
|
10
|
-
|
11
|
-
|
10
|
+
@import bootstrap/_functions
|
11
|
+
@import bootstrap/_variables
|
12
|
+
@import _custom_variables
|
12
13
|
@import bootstrap
|
13
14
|
@import tether.min
|
14
15
|
|
16
|
+
@import jquery-ui.min
|
15
17
|
|
16
18
|
//$brand-secondary: $gray-lighter
|
17
19
|
//$states_colors: (success: $brand-success, primary: $brand-primary, secondary: $brand-secondary, info: $brand-info, danger: $brand-danger, warning: $brand-warning, light: $brand-light, dark: $brand-dark)
|
@@ -40,96 +42,14 @@ $states_colors: $theme-colors
|
|
40
42
|
//@import fix-dropdown-select
|
41
43
|
|
42
44
|
// Components
|
43
|
-
@import
|
44
|
-
|
45
|
-
|
46
|
-
@
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
// Glyph section
|
52
|
-
@each $key, $value in $states_colors
|
53
|
-
.glyph-#{$key}
|
54
|
-
color: $value
|
45
|
+
@import containers
|
46
|
+
@import tables
|
47
|
+
@import forms
|
48
|
+
@import navigations
|
49
|
+
@import notifications
|
50
|
+
@import boxes
|
51
|
+
@import fix_addon
|
55
52
|
|
56
53
|
// Other section
|
57
54
|
.ui-bibz-clear
|
58
55
|
clear: both
|
59
|
-
|
60
|
-
.stars-notation
|
61
|
-
white-space: nowrap
|
62
|
-
|
63
|
-
|
64
|
-
.multiselect-container
|
65
|
-
.filter
|
66
|
-
margin: 5px
|
67
|
-
|
68
|
-
.formula_field
|
69
|
-
input
|
70
|
-
border-bottom-right-radius: 0.25rem !important
|
71
|
-
border-top-right-radius: 0.25rem !important
|
72
|
-
.fix-border-right
|
73
|
-
border-bottom-right-radius: 0 !important
|
74
|
-
border-top-right-radius: 0 !important
|
75
|
-
width: 100%
|
76
|
-
.form-control[readonly]
|
77
|
-
background-color: white
|
78
|
-
.formula-field_alert, .formula-field-result, .formula-field-sign
|
79
|
-
display: none
|
80
|
-
|
81
|
-
.formula-field-alert
|
82
|
-
padding-top: 10px
|
83
|
-
|
84
|
-
.select-field-refresh
|
85
|
-
.btn
|
86
|
-
padding: 10px 16px
|
87
|
-
|
88
|
-
.input-group-addon.abc-checkbox label, .input-group-addon.abc-radio label
|
89
|
-
margin-bottom: 0
|
90
|
-
|
91
|
-
.checkbox-inline, .radio-inline
|
92
|
-
display: inline-block
|
93
|
-
margin-right: 10px
|
94
|
-
|
95
|
-
.input-group-btn
|
96
|
-
.input-refresh-button
|
97
|
-
padding: 10px 16px
|
98
|
-
|
99
|
-
.input-group-btn
|
100
|
-
label.btn
|
101
|
-
margin: 0
|
102
|
-
|
103
|
-
.fix-label
|
104
|
-
margin-right: -11px
|
105
|
-
|
106
|
-
.date_picker
|
107
|
-
min-width: 104px
|
108
|
-
|
109
|
-
.navbar
|
110
|
-
.simple_form
|
111
|
-
input
|
112
|
-
width: auto
|
113
|
-
.form-control
|
114
|
-
width: auto
|
115
|
-
.form-group
|
116
|
-
display: inline-block
|
117
|
-
|
118
|
-
.ui_surround_field
|
119
|
-
select
|
120
|
-
-webkit-appearance: none
|
121
|
-
.mr-sm-2
|
122
|
-
margin-right: 0px !important
|
123
|
-
input:not(:first-child):not(:last-child)
|
124
|
-
border-radius: 0px
|
125
|
-
.abc-radio.input-group-addon, .abc-checkbox.input-group-addon
|
126
|
-
input
|
127
|
-
margin-left: 17px
|
128
|
-
select:not(:first-child):not(:last-child)
|
129
|
-
border-radius: 0px
|
130
|
-
|
131
|
-
.btn.without-text
|
132
|
-
padding-right: 3px
|
133
|
-
|
134
|
-
.progress-bar-line
|
135
|
-
height: 1px
|
@@ -1,7 +1,9 @@
|
|
1
|
-
SimpleForm.
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
unless defined?(SimpleForm).nil?
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
# Namespaces where SimpleForm should look for custom input classes that
|
4
|
+
# override default inputs.
|
5
|
+
config.custom_inputs_namespaces << "UiBibzInputs"
|
6
|
+
end
|
5
7
|
end
|
6
8
|
|
7
9
|
Rails.application.config.autoload_paths += Dir[File.join(Rails.root, "app", "ui", "**", "*.rb")].each {|l| require l }
|
data/lib/ui_bibz.rb
CHANGED
@@ -45,6 +45,7 @@ module UiBibz
|
|
45
45
|
|
46
46
|
module Numbers
|
47
47
|
autoload :FormulaField, "ui_bibz/ui/core/forms/numbers/formula_field"
|
48
|
+
autoload :NumberField, "ui_bibz/ui/core/forms/numbers/number_field"
|
48
49
|
end
|
49
50
|
|
50
51
|
module Selects
|
@@ -129,6 +130,10 @@ module UiBibz
|
|
129
130
|
autoload :TablePaginationPerPage, "ui_bibz/ui/ux/tables/table_pagination_per_page"
|
130
131
|
end
|
131
132
|
|
133
|
+
module Containers
|
134
|
+
autoload :Panel, "ui_bibz/ui/ux/containers/panel"
|
135
|
+
end
|
136
|
+
|
132
137
|
end
|
133
138
|
end
|
134
139
|
|