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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -7
  3. data/Gemfile.lock +63 -63
  4. data/app/assets/javascripts/interface.coffee +6 -1
  5. data/app/assets/javascripts/ui_bibz.coffee +1 -0
  6. data/app/assets/stylesheets/_custom_variables.sass +20 -0
  7. data/app/assets/stylesheets/_panel.scss +314 -0
  8. data/app/assets/stylesheets/boxes.sass +5 -0
  9. data/app/assets/stylesheets/containers.sass +2 -0
  10. data/app/assets/stylesheets/fix-bootstrap-4.sass +4 -0
  11. data/app/assets/stylesheets/fix-dropdown-select.sass +1 -0
  12. data/app/assets/stylesheets/fix_addon.sass +187 -0
  13. data/app/assets/stylesheets/forms.sass +60 -0
  14. data/app/assets/stylesheets/navigations.sass +11 -0
  15. data/app/assets/stylesheets/notifications.sass +10 -0
  16. data/app/assets/stylesheets/{table.sass → tables.sass} +0 -0
  17. data/app/assets/stylesheets/ui_bibz.sass +11 -91
  18. data/config/initializers/ui_bibz.rb +6 -4
  19. data/lib/ui_bibz.rb +5 -0
  20. data/lib/ui_bibz/helpers/ui/ux_helper.rb +4 -0
  21. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +38 -0
  22. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/auto_complete_field_input.rb +0 -0
  23. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/base_input.rb +0 -0
  24. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/collection_input.rb +15 -11
  25. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/string_input.rb +0 -0
  26. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_auto_complete_field_input.rb +0 -0
  27. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_choice_group_input.rb +0 -0
  28. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_date_picker_field_input.rb +0 -0
  29. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_dropdown_select_field_input.rb +0 -0
  30. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_formula_field_input.rb +0 -0
  31. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_markdown_editor_field_input.rb +0 -0
  32. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_column_field_input.rb +0 -0
  33. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_multi_select_field_input.rb +0 -0
  34. data/lib/ui_bibz/inputs/ui_bibz_inputs/ui_number_field_input.rb +10 -0
  35. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_radio_field_input.rb +0 -0
  36. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_select_field_input.rb +0 -0
  37. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_switch_field_input.rb +0 -0
  38. data/{app → lib/ui_bibz}/inputs/ui_bibz_inputs/ui_text_field_input.rb +0 -0
  39. data/lib/ui_bibz/rails/engine.rb +3 -9
  40. data/lib/ui_bibz/ui/core/boxes/card.rb +1 -1
  41. data/lib/ui_bibz/ui/core/boxes/card_column.rb +1 -1
  42. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +1 -1
  43. data/lib/ui_bibz/ui/core/boxes/card_group.rb +1 -1
  44. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_link.rb +1 -1
  45. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_text.rb +1 -1
  46. data/lib/ui_bibz/ui/core/boxes/components/body/card_body_title.rb +1 -1
  47. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +1 -1
  48. data/lib/ui_bibz/ui/core/boxes/components/card_footer.rb +1 -1
  49. data/lib/ui_bibz/ui/core/boxes/components/card_header.rb +1 -1
  50. data/lib/ui_bibz/ui/core/boxes/components/card_image.rb +1 -1
  51. data/lib/ui_bibz/ui/core/boxes/jumbotron.rb +1 -1
  52. data/lib/ui_bibz/ui/core/component.rb +34 -3
  53. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +11 -7
  54. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +5 -1
  55. data/lib/ui_bibz/ui/core/forms/buttons/button_link.rb +1 -1
  56. data/lib/ui_bibz/ui/core/forms/buttons/button_refresh.rb +2 -2
  57. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +1 -1
  58. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +1 -1
  59. data/lib/ui_bibz/ui/core/forms/choices/radio_field.rb +1 -1
  60. data/lib/ui_bibz/ui/core/forms/choices/switch_field.rb +1 -1
  61. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +1 -1
  62. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_header.rb +1 -1
  63. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_link.rb +1 -1
  64. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +1 -1
  65. data/lib/ui_bibz/ui/core/forms/dropdowns/split_dropdown.rb +1 -1
  66. data/lib/ui_bibz/ui/core/forms/numbers/formula_field.rb +7 -2
  67. data/lib/ui_bibz/ui/core/forms/numbers/number_field.rb +63 -0
  68. data/lib/ui_bibz/ui/core/forms/selects/abstract_select.rb +1 -1
  69. data/lib/ui_bibz/ui/core/forms/selects/select_field.rb +5 -1
  70. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_addon.rb +1 -1
  71. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button.rb +1 -1
  72. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_link.rb +1 -1
  73. data/lib/ui_bibz/ui/core/forms/surrounds/components/surround_button_refresh.rb +1 -1
  74. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +1 -1
  75. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +1 -1
  76. data/lib/ui_bibz/ui/core/forms/texts/text_field.rb +7 -3
  77. data/lib/ui_bibz/ui/core/icons/glyph.rb +10 -2
  78. data/lib/ui_bibz/ui/core/icons/star.rb +1 -1
  79. data/lib/ui_bibz/ui/core/layouts/col.rb +1 -1
  80. data/lib/ui_bibz/ui/core/layouts/container.rb +1 -1
  81. data/lib/ui_bibz/ui/core/layouts/row.rb +1 -1
  82. data/lib/ui_bibz/ui/core/lists/components/list.rb +1 -1
  83. data/lib/ui_bibz/ui/core/lists/components/list/list_body.rb +1 -1
  84. data/lib/ui_bibz/ui/core/lists/components/list/list_header.rb +1 -1
  85. data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
  86. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +1 -1
  87. data/lib/ui_bibz/ui/core/navigations/components/breadcrumb_link.rb +3 -3
  88. data/lib/ui_bibz/ui/core/navigations/components/nav_dropdown.rb +1 -1
  89. data/lib/ui_bibz/ui/core/navigations/components/nav_link.rb +1 -1
  90. data/lib/ui_bibz/ui/core/navigations/components/nav_link_link.rb +1 -1
  91. data/lib/ui_bibz/ui/core/navigations/components/nav_link_list.rb +1 -1
  92. data/lib/ui_bibz/ui/core/navigations/components/nav_text.rb +1 -1
  93. data/lib/ui_bibz/ui/core/navigations/components/navbar_brand.rb +1 -1
  94. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +19 -17
  95. data/lib/ui_bibz/ui/core/navigations/components/navbar_text.rb +1 -1
  96. data/lib/ui_bibz/ui/core/navigations/components/pagination_link.rb +1 -1
  97. data/lib/ui_bibz/ui/core/navigations/link.rb +8 -2
  98. data/lib/ui_bibz/ui/core/navigations/nav.rb +1 -1
  99. data/lib/ui_bibz/ui/core/navigations/navbar.rb +10 -5
  100. data/lib/ui_bibz/ui/core/navigations/pagination.rb +1 -1
  101. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +5 -8
  102. data/lib/ui_bibz/ui/core/notifications/alert.rb +1 -1
  103. data/lib/ui_bibz/ui/core/notifications/badge.rb +1 -1
  104. data/lib/ui_bibz/ui/core/notifications/components/alert_body.rb +1 -1
  105. data/lib/ui_bibz/ui/core/notifications/components/alert_header.rb +1 -1
  106. data/lib/ui_bibz/ui/core/notifications/components/bar.rb +1 -1
  107. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +1 -1
  108. data/lib/ui_bibz/ui/core/windows/components/modal_body.rb +1 -1
  109. data/lib/ui_bibz/ui/core/windows/components/modal_footer.rb +1 -1
  110. data/lib/ui_bibz/ui/core/windows/components/modal_header.rb +1 -1
  111. data/lib/ui_bibz/ui/core/windows/modal.rb +1 -1
  112. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +22 -4
  113. data/lib/ui_bibz/ui/ux/containers/components/panel_body.rb +51 -0
  114. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +48 -0
  115. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +50 -0
  116. data/lib/ui_bibz/ui/ux/containers/components/panel_footer.rb +52 -0
  117. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +46 -0
  118. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +61 -0
  119. data/lib/ui_bibz/ui/ux/containers/components/panel_toolbar.rb +38 -0
  120. data/lib/ui_bibz/ui/ux/containers/panel.rb +104 -0
  121. data/lib/ui_bibz/ui/ux/tables/components/thead.rb +1 -1
  122. data/lib/ui_bibz/ui/ux/tables/table.rb +1 -1
  123. data/lib/ui_bibz/ui/ux/tables/table_card.rb +1 -1
  124. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
  125. data/lib/ui_bibz/utils/internationalization.rb +3 -0
  126. data/lib/ui_bibz/version.rb +1 -1
  127. data/test/factories/user.rb +1 -1
  128. data/test/simple_form_test.rb +2 -2
  129. data/test/support/factory_bot.rb +9 -0
  130. data/test/test_helper.rb +0 -1
  131. data/test/ui/core/boxes/card_test.rb +1 -1
  132. data/test/ui/core/component_test.rb +8 -1
  133. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  134. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  135. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
  136. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  137. data/test/ui/core/forms/choices/choice_group_test.rb +1 -1
  138. data/test/ui/core/forms/dropdowns/dropdown_test.rb +1 -1
  139. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  140. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +1 -1
  141. data/test/ui/core/forms/selects/multi_select_field_test.rb +1 -1
  142. data/test/ui/core/forms/selects/select_field_test.rb +1 -1
  143. data/test/ui/core/forms/surrounds/surround_field_test.rb +3 -3
  144. data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
  145. data/test/ui/core/forms/texts/text_field_test.rb +1 -1
  146. data/test/ui/core/icons/glyph_test.rb +6 -4
  147. data/test/ui/core/icons/star_test.rb +6 -6
  148. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  149. data/test/ui/core/navigations/navbar_test.rb +1 -1
  150. data/test/ui/core/notifications/alert_test.rb +1 -1
  151. data/test/ui/core/notifications/badge_test.rb +2 -2
  152. data/test/ui/ux/containers/panel_test.rb +143 -0
  153. data/test/ui/ux/tables/table_test.rb +3 -3
  154. data/ui_bibz.gemspec +3 -12
  155. data/vendor/assets/javascripts/bootstrap-markdown.js +12 -12
  156. data/vendor/assets/javascripts/jquery-ui.min.js +6 -0
  157. data/vendor/assets/stylesheets/jquery-ui.min.css +6 -0
  158. metadata +63 -27
  159. data/app/inputs/ui_bibz_form/ui_bibz_form_builder.rb +0 -36
  160. data/test/support/factory_girl.rb +0 -6
@@ -0,0 +1,5 @@
1
+ // Custom css
2
+ @each $key, $value in $states_colors
3
+ .card-#{$key}
4
+ .card-header
5
+ background-color: $value
@@ -0,0 +1,2 @@
1
+ @import _panel
2
+
@@ -9,3 +9,7 @@
9
9
  label, span.help-block
10
10
  color: $value
11
11
 
12
+
13
+ // Fix bootstrap-select
14
+ .bootstrap-select.btn-group .dropdown-toggle .filter-option
15
+ display: inline-grid !important
@@ -269,3 +269,4 @@ div.bootstrap-select
269
269
  a
270
270
  color: white
271
271
  border: 0px
272
+
@@ -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
@@ -0,0 +1,11 @@
1
+ .navbar
2
+ .simple_form
3
+ input
4
+ width: auto
5
+ .form-control
6
+ width: auto
7
+ .form-group
8
+ display: inline-block
9
+
10
+ .progress-bar-line
11
+ height: 1px
@@ -0,0 +1,10 @@
1
+ .stars-notation
2
+ white-space: nowrap
3
+
4
+ // Glyph section
5
+ @each $key, $value in $states_colors
6
+ .glyph-#{$key}
7
+ color: $value
8
+
9
+ .glyph
10
+ padding: .25rem 0
File without changes
@@ -7,11 +7,13 @@ $enable-flex: true
7
7
 
8
8
  //@import bootstrap-sprockets
9
9
  //@import bootstrap/_variables
10
- //@import bootstrap/functions
11
- //@import bootstrap/variables
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 table
44
-
45
- // Custom css
46
- @each $key, $value in $states_colors
47
- .card-#{$key}
48
- .card-header
49
- background-color: $value
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.setup do |config|
2
- # Namespaces where SimpleForm should look for custom input classes that
3
- # override default inputs.
4
- config.custom_inputs_namespaces << "UiBibzInputs"
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