ui_bibz 3.0.12 → 4.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +3 -3
  3. data/.github/workflows/linter.yml +13 -12
  4. data/.overcommit.yml +6 -0
  5. data/.rubocop.yml +6 -0
  6. data/.ruby-version +1 -1
  7. data/Gemfile +19 -12
  8. data/Gemfile.lock +178 -138
  9. data/app/assets/config/ui_bibz.js +12 -0
  10. data/app/assets/javascripts/forms/formula.js +82 -0
  11. data/app/assets/javascripts/forms/input-connected.js +132 -0
  12. data/app/assets/javascripts/forms/jquery.multi-select-extend.js +52 -0
  13. data/app/assets/javascripts/forms.js +160 -0
  14. data/app/assets/javascripts/interfaces.js +56 -0
  15. data/app/assets/javascripts/tables.js +49 -0
  16. data/app/assets/javascripts/ui_bibz_js.js +37 -0
  17. data/app/assets/stylesheets/navigations/_nav.sass +2 -0
  18. data/app/assets/stylesheets/navigations/_navbar.sass +12 -0
  19. data/app/assets/stylesheets/navigations/_progress_bar.sass +2 -0
  20. data/app/assets/stylesheets/navigations/_toolbar.sass +3 -0
  21. data/app/assets/stylesheets/sass/_boxes.sass +1 -0
  22. data/app/assets/stylesheets/sass/_containers.sass +2 -0
  23. data/app/assets/stylesheets/sass/_fixes.sass +2 -0
  24. data/app/assets/stylesheets/sass/_forms.sass +8 -0
  25. data/app/assets/stylesheets/sass/_navigations.sass +4 -0
  26. data/app/assets/stylesheets/sass/_notifications.sass +4 -0
  27. data/app/assets/stylesheets/sass/_tables.sass +2 -0
  28. data/app/assets/stylesheets/sass/_variables_mixins_functions.sass +3 -0
  29. data/app/assets/stylesheets/sass/boxes/_card.sass +4 -0
  30. data/app/assets/stylesheets/sass/containers/_panel.scss +330 -0
  31. data/app/assets/stylesheets/sass/forms/_bootstrap_select.sass +5 -0
  32. data/app/assets/stylesheets/sass/forms/_button.sass +3 -0
  33. data/app/assets/stylesheets/sass/forms/_date_picker.sass +3 -0
  34. data/app/assets/stylesheets/sass/forms/_form_check.sass +10 -0
  35. data/app/assets/stylesheets/sass/forms/_formula_field.sass +17 -0
  36. data/app/assets/stylesheets/sass/forms/_multiselect.sass +44 -0
  37. data/app/assets/stylesheets/sass/forms/_range.sass +44 -0
  38. data/app/assets/stylesheets/sass/forms/_slider.sass +136 -0
  39. data/app/assets/stylesheets/sass/forms/_surround_field.sass +25 -0
  40. data/app/assets/stylesheets/sass/notifications/_badge.sass +5 -0
  41. data/app/assets/stylesheets/sass/notifications/_glyph.sass +3 -0
  42. data/app/assets/stylesheets/sass/notifications/_star.sass +2 -0
  43. data/app/assets/stylesheets/sass/notifications/_toast.sass +3 -0
  44. data/app/assets/stylesheets/sass/tables/_table.sass +39 -0
  45. data/app/assets/stylesheets/sass/tables/_table_card.sass +39 -0
  46. data/app/assets/stylesheets/ui_bibz.sass +26 -0
  47. data/bin/test +3 -5
  48. data/config/importmap.rb +19 -0
  49. data/config/initializers/assets.rb +5 -0
  50. data/config/initializers/will_paginate.rb +1 -3
  51. data/lib/ui_bibz/builders/data_html_options_builder.rb +118 -0
  52. data/lib/ui_bibz/builders/html_classes_builder.rb +89 -0
  53. data/lib/ui_bibz/builders/html_options_builder.rb +22 -0
  54. data/lib/ui_bibz/concerns/models/searchable.rb +1 -1
  55. data/lib/ui_bibz/factory_methods/component_initialize_factory_method.rb +33 -0
  56. data/lib/ui_bibz/helpers/ui/core/boxes_helper.rb +12 -12
  57. data/lib/ui_bibz/helpers/ui/core/forms_helper.rb +50 -50
  58. data/lib/ui_bibz/helpers/ui/core/icons_helper.rb +6 -6
  59. data/lib/ui_bibz/helpers/ui/core/layouts_helper.rb +2 -2
  60. data/lib/ui_bibz/helpers/ui/core/lists_helper.rb +2 -2
  61. data/lib/ui_bibz/helpers/ui/core/navigations_helper.rb +12 -12
  62. data/lib/ui_bibz/helpers/ui/core/notifications_helper.rb +4 -4
  63. data/lib/ui_bibz/helpers/ui/core/windows_helper.rb +10 -2
  64. data/lib/ui_bibz/helpers/ui/ux_helper.rb +2 -2
  65. data/lib/ui_bibz/helpers/utils_helper.rb +2 -2
  66. data/lib/ui_bibz/infos.rb +3 -3
  67. data/lib/ui_bibz/inputs/ui_bibz_form/ui_bibz_form_builder.rb +12 -12
  68. data/lib/ui_bibz/inputs/ui_bibz_inputs/collection_input.rb +1 -1
  69. data/lib/ui_bibz/rails/engine.rb +21 -4
  70. data/lib/ui_bibz/strategies/component_initialize_abstract_strategy.rb +27 -0
  71. data/lib/ui_bibz/strategies/component_initialize_block_strategy.rb +31 -0
  72. data/lib/ui_bibz/strategies/component_initialize_hash_strategy.rb +18 -0
  73. data/lib/ui_bibz/strategies/component_initialize_standard_strategy.rb +18 -0
  74. data/lib/ui_bibz/ui/concerns/card_itemable_concern.rb +4 -4
  75. data/lib/ui_bibz/ui/concerns/notification_concern.rb +1 -1
  76. data/lib/ui_bibz/ui/core/boxes/card.rb +1 -1
  77. data/lib/ui_bibz/ui/core/boxes/card_accordion.rb +4 -4
  78. data/lib/ui_bibz/ui/core/boxes/card_column.rb +1 -1
  79. data/lib/ui_bibz/ui/core/boxes/card_deck.rb +1 -1
  80. data/lib/ui_bibz/ui/core/boxes/card_grid.rb +0 -3
  81. data/lib/ui_bibz/ui/core/boxes/card_group.rb +1 -1
  82. data/lib/ui_bibz/ui/core/boxes/components/card_body.rb +9 -9
  83. data/lib/ui_bibz/ui/core/boxes/components/card_col.rb +2 -2
  84. data/lib/ui_bibz/ui/core/boxes/components/card_list_group.rb +1 -1
  85. data/lib/ui_bibz/ui/core/boxes/components/card_row.rb +1 -1
  86. data/lib/ui_bibz/ui/core/component.rb +13 -62
  87. data/lib/ui_bibz/ui/core/forms/buttons/button.rb +3 -1
  88. data/lib/ui_bibz/ui/core/forms/buttons/button_group.rb +11 -11
  89. data/lib/ui_bibz/ui/core/forms/choices/box_switch_field.rb +7 -7
  90. data/lib/ui_bibz/ui/core/forms/choices/checkbox_field.rb +2 -2
  91. data/lib/ui_bibz/ui/core/forms/choices/choice_group.rb +5 -6
  92. data/lib/ui_bibz/ui/core/forms/choices/components/choice.rb +1 -1
  93. data/lib/ui_bibz/ui/core/forms/dates/date_picker_field.rb +15 -15
  94. data/lib/ui_bibz/ui/core/forms/dropdowns/components/dropdown_link.rb +1 -1
  95. data/lib/ui_bibz/ui/core/forms/dropdowns/dropdown.rb +5 -5
  96. data/lib/ui_bibz/ui/core/forms/numbers/slider_field.rb +1 -1
  97. data/lib/ui_bibz/ui/core/forms/selects/dropdown_select_field.rb +10 -10
  98. data/lib/ui_bibz/ui/core/forms/selects/multi_column_field.rb +2 -2
  99. data/lib/ui_bibz/ui/core/forms/surrounds/surround_field.rb +32 -32
  100. data/lib/ui_bibz/ui/core/forms/textareas/markdown_editor_field.rb +7 -8
  101. data/lib/ui_bibz/ui/core/icons/components/glyph_text.rb +1 -1
  102. data/lib/ui_bibz/ui/core/icons/glyph.rb +4 -3
  103. data/lib/ui_bibz/ui/core/layouts/row.rb +2 -2
  104. data/lib/ui_bibz/ui/core/lists/components/list.rb +4 -4
  105. data/lib/ui_bibz/ui/core/lists/list_group.rb +1 -1
  106. data/lib/ui_bibz/ui/core/navigations/breadcrumb.rb +6 -4
  107. data/lib/ui_bibz/ui/core/navigations/components/nav_link_span.rb +1 -2
  108. data/lib/ui_bibz/ui/core/navigations/components/navbar_form.rb +6 -5
  109. data/lib/ui_bibz/ui/core/navigations/components/toolbar_form.rb +2 -2
  110. data/lib/ui_bibz/ui/core/navigations/nav.rb +10 -6
  111. data/lib/ui_bibz/ui/core/navigations/navbar.rb +21 -19
  112. data/lib/ui_bibz/ui/core/navigations/pagination.rb +3 -3
  113. data/lib/ui_bibz/ui/core/navigations/toolbar.rb +5 -5
  114. data/lib/ui_bibz/ui/core/notifications/alert.rb +4 -5
  115. data/lib/ui_bibz/ui/core/notifications/badge.rb +6 -2
  116. data/lib/ui_bibz/ui/core/notifications/components/toast_header.rb +1 -1
  117. data/lib/ui_bibz/ui/core/notifications/progress_bar.rb +3 -3
  118. data/lib/ui_bibz/ui/core/notifications/toast.rb +8 -9
  119. data/lib/ui_bibz/ui/core/windows/components/offcanvas_body.rb +47 -0
  120. data/lib/ui_bibz/ui/core/windows/components/offcanvas_header.rb +54 -0
  121. data/lib/ui_bibz/ui/core/windows/modal.rb +9 -9
  122. data/lib/ui_bibz/ui/core/windows/offcanvas.rb +84 -0
  123. data/lib/ui_bibz/ui/extensions/core/component/glyph_extension.rb +4 -20
  124. data/lib/ui_bibz/ui/extensions/core/component/klass_extension.rb +11 -19
  125. data/lib/ui_bibz/ui/extensions/core/forms/connect_extension.rb +1 -1
  126. data/lib/ui_bibz/ui/ux/containers/components/panel_column.rb +3 -3
  127. data/lib/ui_bibz/ui/ux/containers/components/panel_deck.rb +3 -3
  128. data/lib/ui_bibz/ui/ux/containers/components/panel_group.rb +3 -3
  129. data/lib/ui_bibz/ui/ux/containers/components/panel_header.rb +4 -4
  130. data/lib/ui_bibz/ui/ux/containers/panel.rb +13 -13
  131. data/lib/ui_bibz/ui/ux/tables/components/actions.rb +4 -4
  132. data/lib/ui_bibz/ui/ux/tables/components/column.rb +1 -1
  133. data/lib/ui_bibz/ui/ux/tables/components/columns.rb +2 -2
  134. data/lib/ui_bibz/ui/ux/tables/extensions/sortable.rb +1 -1
  135. data/lib/ui_bibz/ui/ux/tables/table.rb +5 -5
  136. data/lib/ui_bibz/ui/ux/tables/table_card.rb +6 -6
  137. data/lib/ui_bibz/ui/ux/tables/table_search_field.rb +1 -1
  138. data/lib/ui_bibz/utils/breakdown_class_name_generator.rb +3 -3
  139. data/lib/ui_bibz/utils/screwdriver.rb +1 -1
  140. data/lib/ui_bibz/view_objects/glyph_component_view_object.rb +38 -0
  141. data/lib/ui_bibz.rb +25 -0
  142. data/test/builders/data_html_classes_builder_test.rb +37 -0
  143. data/test/builders/html_classes_builder_test.rb +76 -0
  144. data/test/dummy/Rakefile +1 -1
  145. data/test/dummy/app/assets/stylesheets/application.css +1 -15
  146. data/test/dummy/app/channels/application_cable/channel.rb +6 -0
  147. data/test/dummy/app/channels/application_cable/connection.rb +6 -0
  148. data/test/dummy/app/jobs/application_job.rb +9 -0
  149. data/test/dummy/app/mailers/application_mailer.rb +6 -0
  150. data/test/dummy/app/views/layouts/application.html.erb +10 -12
  151. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  152. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  153. data/test/dummy/bin/rails +3 -3
  154. data/test/dummy/bin/rake +2 -2
  155. data/test/dummy/bin/setup +12 -12
  156. data/test/dummy/config/application.rb +13 -17
  157. data/test/dummy/config/boot.rb +3 -3
  158. data/test/dummy/config/database.yml +2 -2
  159. data/test/dummy/config/environment.rb +1 -1
  160. data/test/dummy/config/environments/development.rb +21 -16
  161. data/test/dummy/config/environments/production.rb +16 -41
  162. data/test/dummy/config/environments/test.rb +19 -8
  163. data/test/dummy/config/importmap.rb +11 -0
  164. data/test/dummy/config/initializers/content_security_policy.rb +21 -24
  165. data/test/dummy/config/initializers/filter_parameter_logging.rb +6 -2
  166. data/test/dummy/config/initializers/inflections.rb +4 -4
  167. data/test/dummy/config/initializers/permissions_policy.rb +12 -0
  168. data/test/dummy/config/locales/en.yml +13 -3
  169. data/test/dummy/config/puma.rb +7 -2
  170. data/test/dummy/config/storage.yml +5 -5
  171. data/test/dummy/config.ru +2 -1
  172. data/test/simple_form_test.rb +24 -24
  173. data/test/ui/core/boxes/card_test.rb +2 -1
  174. data/test/ui/core/component_test.rb +2 -2
  175. data/test/ui/core/forms/buttons/button_group_test.rb +1 -1
  176. data/test/ui/core/forms/buttons/button_link_test.rb +1 -1
  177. data/test/ui/core/forms/buttons/button_refresh_test.rb +1 -1
  178. data/test/ui/core/forms/buttons/button_test.rb +2 -2
  179. data/test/ui/core/forms/choices/box_switch_field_test.rb +10 -10
  180. data/test/ui/core/forms/choices/checkbox_field_test.rb +1 -1
  181. data/test/ui/core/forms/choices/choice_group_test.rb +1 -1
  182. data/test/ui/core/forms/dropdowns/dropdown_test.rb +1 -1
  183. data/test/ui/core/forms/numbers/formula_field_test.rb +1 -1
  184. data/test/ui/core/forms/selects/dropdown_select_field_test.rb +2 -2
  185. data/test/ui/core/forms/selects/select_field_test.rb +1 -1
  186. data/test/ui/core/forms/surrounds/surround_field_test.rb +4 -4
  187. data/test/ui/core/forms/texts/auto_complete_field_test.rb +2 -2
  188. data/test/ui/core/icons/glyph_test.rb +8 -4
  189. data/test/ui/core/icons/star_test.rb +12 -6
  190. data/test/ui/core/navigations/breadcrumb_test.rb +1 -1
  191. data/test/ui/core/navigations/link_test.rb +1 -1
  192. data/test/ui/core/navigations/nav_test.rb +11 -0
  193. data/test/ui/core/notifications/alert_test.rb +1 -1
  194. data/test/ui/core/notifications/badge_test.rb +3 -3
  195. data/test/ui/core/notifications/popover_test.rb +4 -4
  196. data/test/ui/core/notifications/spinner_test.rb +1 -1
  197. data/test/ui/core/notifications/toast_test.rb +1 -1
  198. data/test/ui/core/notifications/tooltip_test.rb +4 -4
  199. data/test/ui/core/windows/offcanvas_test.rb +27 -0
  200. data/test/ui/ux/containers/panel_test.rb +1 -1
  201. data/test/ui/ux/tables/table_test.rb +3 -3
  202. data/test/view_objects/glyph_component_view_object_test.rb +17 -0
  203. data/ui_bibz.gemspec +6 -20
  204. data/vendor/assets/fonts/fontawesome/fa-brands-400.ttf +0 -0
  205. data/vendor/assets/fonts/fontawesome/fa-brands-400.woff2 +0 -0
  206. data/vendor/assets/fonts/fontawesome/fa-regular-400.ttf +0 -0
  207. data/vendor/assets/fonts/fontawesome/fa-regular-400.woff2 +0 -0
  208. data/vendor/assets/fonts/fontawesome/fa-solid-900.ttf +0 -0
  209. data/vendor/assets/fonts/fontawesome/fa-solid-900.woff2 +0 -0
  210. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.ttf +0 -0
  211. data/vendor/assets/fonts/fontawesome/fa-v4compatibility.woff2 +0 -0
  212. data/vendor/assets/javascripts/bootstrap-markdown.js +1 -1555
  213. data/vendor/assets/javascripts/bootstrap-multiselect.min.js +40 -1176
  214. data/vendor/assets/javascripts/bootstrap-switch.min.js +9 -21
  215. data/vendor/assets/javascripts/bs-custom-file-input.min.js +0 -1
  216. data/vendor/assets/javascripts/fontawesome/all.js +5977 -0
  217. data/vendor/assets/javascripts/fontawesome/all.min.js +6 -0
  218. data/vendor/assets/javascripts/fontawesome/brands.js +749 -0
  219. data/vendor/assets/javascripts/fontawesome/brands.min.js +6 -0
  220. data/vendor/assets/javascripts/fontawesome/conflict-detection.js +1138 -0
  221. data/vendor/assets/javascripts/fontawesome/conflict-detection.min.js +6 -0
  222. data/vendor/assets/javascripts/fontawesome/fontawesome.js +3126 -0
  223. data/vendor/assets/javascripts/fontawesome/fontawesome.min.js +6 -0
  224. data/vendor/assets/javascripts/fontawesome/regular.js +445 -0
  225. data/vendor/assets/javascripts/fontawesome/regular.min.js +6 -0
  226. data/vendor/assets/javascripts/fontawesome/solid.js +1672 -0
  227. data/vendor/assets/javascripts/fontawesome/solid.min.js +6 -0
  228. data/vendor/assets/javascripts/fontawesome/v4-shims.js +225 -0
  229. data/vendor/assets/javascripts/fontawesome/v4-shims.min.js +6 -0
  230. data/vendor/assets/javascripts/fuzzysort.js +562 -0
  231. data/vendor/assets/javascripts/jquery-3.7.0.min.js +2 -0
  232. data/vendor/assets/javascripts/jquery.multi-select.min.js +725 -1
  233. data/vendor/assets/stylesheets/bootstrap-multiselect.sass +115 -0
  234. data/vendor/assets/stylesheets/bootstrap-switch.scss +211 -0
  235. data/vendor/assets/stylesheets/fontawesome/_animated.scss +142 -9
  236. data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +13 -13
  237. data/vendor/assets/stylesheets/fontawesome/_core.scss +28 -6
  238. data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +2 -1
  239. data/vendor/assets/stylesheets/fontawesome/_functions.scss +57 -0
  240. data/vendor/assets/stylesheets/fontawesome/_icons.scss +7 -1438
  241. data/vendor/assets/stylesheets/fontawesome/_list.scss +4 -4
  242. data/vendor/assets/stylesheets/fontawesome/_mixins.scss +53 -34
  243. data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +25 -18
  244. data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +12 -3
  245. data/vendor/assets/stylesheets/fontawesome/_shims.scss +640 -664
  246. data/vendor/assets/stylesheets/fontawesome/_sizing.scss +16 -0
  247. data/vendor/assets/stylesheets/fontawesome/_stacked.scss +5 -4
  248. data/vendor/assets/stylesheets/fontawesome/_variables.scss +4896 -1393
  249. data/vendor/assets/stylesheets/fontawesome/brands.scss +17 -10
  250. data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +7 -2
  251. data/vendor/assets/stylesheets/fontawesome/regular.scss +13 -10
  252. data/vendor/assets/stylesheets/fontawesome/solid.scss +13 -11
  253. data/vendor/assets/stylesheets/fontawesome/v4-shims.scss +6 -1
  254. data/vendor/assets/stylesheets/multi-select.css +92 -0
  255. metadata +120 -348
  256. data/.gitlab-ci.yml +0 -17
  257. data/.travis.yml +0 -24
  258. data/lib/ui_bibz/ui/extensions/core/component/popover_extension.rb +0 -70
  259. data/structure.md +0 -68
  260. data/test/dummy/README.rdoc +0 -28
  261. data/test/dummy/app/assets/javascripts/application.js +0 -13
  262. data/test/dummy/app/javascripts/packs/index.js +0 -3
  263. data/test/dummy/config/initializers/application_controller_renderer.rb +0 -9
  264. data/test/dummy/config/initializers/assets.rb +0 -14
  265. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -8
  266. data/test/dummy/config/initializers/cookies_serializer.rb +0 -7
  267. data/test/dummy/config/initializers/mime_types.rb +0 -5
  268. data/test/dummy/config/initializers/session_store.rb +0 -5
  269. data/test/dummy/config/initializers/ui_bibz.rb +0 -5
  270. data/test/dummy/config/initializers/wrap_parameters.rb +0 -16
  271. data/test/dummy/config/secrets.yml +0 -22
  272. data/test/dummy/config/spring.rb +0 -8
  273. data/test/dummy/test/models/user_test.rb +0 -9
  274. data/vendor/assets/fonts/fa-brands-400.eot +0 -0
  275. data/vendor/assets/fonts/fa-brands-400.svg +0 -3570
  276. data/vendor/assets/fonts/fa-brands-400.ttf +0 -0
  277. data/vendor/assets/fonts/fa-brands-400.woff +0 -0
  278. data/vendor/assets/fonts/fa-brands-400.woff2 +0 -0
  279. data/vendor/assets/fonts/fa-regular-400.eot +0 -0
  280. data/vendor/assets/fonts/fa-regular-400.svg +0 -803
  281. data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
  282. data/vendor/assets/fonts/fa-regular-400.woff +0 -0
  283. data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
  284. data/vendor/assets/fonts/fa-solid-900.eot +0 -0
  285. data/vendor/assets/fonts/fa-solid-900.svg +0 -4938
  286. data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
  287. data/vendor/assets/fonts/fa-solid-900.woff +0 -0
  288. data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
  289. data/vendor/assets/javascripts/all.js +0 -4441
  290. data/vendor/assets/javascripts/all.min.js +0 -5
  291. data/vendor/assets/stylesheets/all.min.css +0 -5
  292. data/vendor/assets/stylesheets/fontawesome/_larger.scss +0 -23
  293. data/vendor/assets/stylesheets/svg-with-js.css +0 -5
  294. /data/{test/dummy/app/mailers/.keep → app/assets/stylesheets/sass/forms/_dropdown.sass} +0 -0
  295. /data/{test/dummy/app/views/users/index.html.erb → app/assets/stylesheets/sass/forms/_input_refresh_button.sass} +0 -0
@@ -0,0 +1,330 @@
1
+ $panel-spacer: .75rem !default;
2
+ $panel-spacer-y: .75rem !default;
3
+ $panel-spacer-x: 1.25rem !default;
4
+ $panel-border-width: $border-width !default;
5
+ $panel-border-radius: $border-radius !default;
6
+ $panel-border-color: $card-border-color;
7
+ $panel-inner-border-radius: calc(#{$panel-border-radius} - #{$panel-border-width}) !default;
8
+ $panel-cap-bg: $card-cap-bg;
9
+ $panel-bg: $card-bg;
10
+
11
+ $panel-img-overlay-padding: 1.25rem !default;
12
+
13
+ $panel-group-margin: $panel-spacer/2 !default;
14
+ $panel-deck-margin: $panel-group-margin !default;
15
+
16
+ $panel-columns-count: 3 !default;
17
+ $panel-columns-gap: 1.25rem !default;
18
+ $panel-columns-margin: $panel-spacer-y !default;
19
+
20
+ .panel {
21
+ margin: 0;
22
+ padding: 0;
23
+ position: relative;
24
+ display: flex;
25
+ flex-direction: column;
26
+ min-width: 0;
27
+ word-wrap: break-word;
28
+ background-color: $panel-bg;
29
+ background-clip: border-box;
30
+ border: $panel-border-width solid $panel-border-color;
31
+ @include border-radius($panel-border-radius);
32
+
33
+ > hr {
34
+ margin-right: 0;
35
+ margin-left: 0;
36
+ }
37
+
38
+ > .list-group:first-child {
39
+ .list-group-item:first-child {
40
+ @include border-top-radius($panel-border-radius);
41
+ }
42
+ }
43
+
44
+ > .list-group:last-child {
45
+ .list-group-item:last-child {
46
+ @include border-bottom-radius($panel-border-radius);
47
+ }
48
+ }
49
+
50
+ // Select all panel toolbar except the first
51
+ > .panel-toolbar ~ .panel-toolbar {
52
+ border-top: $panel-border-width solid $panel-border-color;
53
+ border-bottom: $panel-border-width solid $panel-border-color;
54
+ }
55
+
56
+ // Select first panel-toolbar
57
+ > .panel-toolbar {
58
+ border-top: none;
59
+ padding: $panel-spacer;
60
+ background-color: $panel-cap-bg;
61
+ border-bottom: $panel-border-width solid $panel-border-color;
62
+ }
63
+
64
+ > .panel-toolbar ~ .panel-toolbar {
65
+ border-bottom: none !important;
66
+ }
67
+ // Select last panel-toolbar
68
+
69
+ }
70
+
71
+ .panel-body {
72
+ // Enable `flex-grow: 1` for decks and groups so that panel blocks take up
73
+ // as much space as possible, ensuring footers are aligned to the bottom.
74
+ flex: 1 1 auto;
75
+ padding: $panel-spacer;
76
+ }
77
+
78
+ .panel-title {
79
+ margin-bottom: $panel-spacer-y;
80
+ }
81
+
82
+ .panel-subtitle {
83
+ margin-top: -($panel-spacer-y / 2);
84
+ margin-bottom: 0;
85
+ }
86
+
87
+ .panel-text:last-child {
88
+ margin-bottom: 0;
89
+ }
90
+
91
+ .panel-link {
92
+ &:hover {
93
+ text-decoration: none;
94
+ }
95
+
96
+ + .panel-link {
97
+ margin-left: $panel-spacer-x;
98
+ }
99
+ }
100
+
101
+ //
102
+ // Optional textual caps
103
+ //
104
+
105
+ .panel-header {
106
+ padding: $panel-spacer;
107
+ margin-bottom: 0; // Removes the default margin-bottom of <hN>
108
+ background-color: $panel-cap-bg;
109
+ border-bottom: $panel-border-width solid $panel-border-color;
110
+ display: flex;
111
+
112
+ > div:not(.dropdown) {
113
+ position: relative;
114
+ display: inline-flex;
115
+ vertical-align: middle;
116
+ }
117
+
118
+ &:first-child {
119
+ @include border-radius($panel-inner-border-radius $panel-inner-border-radius 0 0);
120
+ }
121
+
122
+ + .list-group {
123
+ .list-group-item:first-child {
124
+ border-top: 0;
125
+ }
126
+ }
127
+
128
+ .panel-title {
129
+ padding: 0;
130
+ margin: 0;
131
+ }
132
+ }
133
+
134
+
135
+ .panel-footer {
136
+ padding: $panel-spacer-y;
137
+ background-color: $panel-cap-bg;
138
+ border-top: $panel-border-width solid $panel-border-color;
139
+
140
+ &:last-child {
141
+ @include border-radius(0 0 $panel-inner-border-radius $panel-inner-border-radius);
142
+ }
143
+ }
144
+
145
+ .panel-toolbar .btn-toolbar{
146
+ margin: 0;
147
+ }
148
+
149
+ //
150
+ // Header navs
151
+ //
152
+
153
+ .panel-header-tabs {
154
+ margin-right: -($panel-spacer-x / 2);
155
+ margin-bottom: -$panel-spacer-y;
156
+ margin-left: 0;
157
+ border-bottom: 0;
158
+ }
159
+
160
+ .panel-header-pills {
161
+ margin-right: -($panel-spacer-x / 2);
162
+ margin-left: -($panel-spacer-x / 2);
163
+ }
164
+
165
+ // panel image
166
+ .panel-img-overlay {
167
+ position: absolute;
168
+ top: 0;
169
+ right: 0;
170
+ bottom: 0;
171
+ left: 0;
172
+ padding: $panel-img-overlay-padding;
173
+ }
174
+
175
+ .panel-img {
176
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
177
+ @include border-radius($panel-inner-border-radius);
178
+ }
179
+
180
+ // panel image caps
181
+ .panel-img-top {
182
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
183
+ @include border-top-radius($panel-inner-border-radius);
184
+ }
185
+
186
+ .panel-img-bottom {
187
+ width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
188
+ @include border-bottom-radius($panel-inner-border-radius);
189
+ }
190
+
191
+
192
+ // panel deck
193
+
194
+ .panel-deck {
195
+ display: flex;
196
+ padding: $panel-spacer;
197
+ flex-direction: column;
198
+
199
+ & > .panel {
200
+ margin-bottom: $panel-deck-margin;
201
+ }
202
+
203
+ @include media-breakpoint-up(sm) {
204
+ flex-flow: row wrap;
205
+ margin-right: -$panel-deck-margin;
206
+ margin-left: -$panel-deck-margin;
207
+
208
+ & > .panel {
209
+ display: flex;
210
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
211
+ flex: 1 0 0%;
212
+ flex-direction: column;
213
+ margin-right: $panel-deck-margin;
214
+ margin-bottom: 0; // Override the default
215
+ margin-left: $panel-deck-margin;
216
+ }
217
+ }
218
+ }
219
+
220
+
221
+ //
222
+ // panel groups
223
+ //
224
+
225
+ .panel-group {
226
+ display: flex;
227
+ flex-direction: column;
228
+
229
+ .panel {
230
+ border-radius: 0;
231
+ border: none;
232
+ border-right: $panel-border-width solid $panel-border-color;
233
+ margin-bottom: $panel-group-margin;
234
+ }
235
+
236
+ .panel:last-child {
237
+ border-right: none;
238
+ }
239
+
240
+ @include media-breakpoint-up(sm) {
241
+ flex-flow: row wrap;
242
+
243
+ .panel {
244
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
245
+ flex: 1 0 0%;
246
+ margin-bottom: 0;
247
+
248
+ + .panel {
249
+ margin-left: 0;
250
+ border-left: 0;
251
+ }
252
+
253
+
254
+ // Handle rounded corners
255
+ @if $enable-rounded {
256
+ &:first-child {
257
+ @include border-end-radius(0);
258
+
259
+ .panel-img-top,
260
+ .panel-header {
261
+ border-top-right-radius: 0;
262
+ }
263
+ .panel-img-bottom,
264
+ .panel-footer {
265
+ border-bottom-right-radius: 0;
266
+ }
267
+ }
268
+
269
+ &:last-child {
270
+ @include border-start-radius(0);
271
+
272
+ .panel-img-top,
273
+ .panel-header {
274
+ border-top-left-radius: 0;
275
+ }
276
+ .panel-img-bottom,
277
+ .panel-footer {
278
+ border-bottom-left-radius: 0;
279
+ }
280
+ }
281
+
282
+ &:only-child {
283
+ @include border-radius($panel-border-radius);
284
+
285
+ .panel-img-top,
286
+ .panel-header {
287
+ @include border-top-radius($panel-border-radius);
288
+ }
289
+ .panel-img-bottom,
290
+ .panel-footer {
291
+ @include border-bottom-radius($panel-border-radius);
292
+ }
293
+ }
294
+
295
+ &:not(:first-child):not(:last-child):not(:only-child) {
296
+ @include border-radius(0);
297
+
298
+ .panel-img-top,
299
+ .panel-img-bottom,
300
+ .panel-header,
301
+ .panel-footer {
302
+ @include border-radius(0);
303
+ }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+
311
+ //
312
+ // Columns
313
+ //
314
+
315
+ .panel-columns {
316
+ padding: $panel-spacer;
317
+ .panel {
318
+ margin-bottom: $panel-columns-margin;
319
+ }
320
+
321
+ @include media-breakpoint-up(sm) {
322
+ column-count: $panel-columns-count;
323
+ column-gap: $panel-columns-gap;
324
+
325
+ .panel {
326
+ display: inline-block; // Don't let them vertically span multiple columns
327
+ width: 100%; // Don't let their width change
328
+ }
329
+ }
330
+ }
@@ -0,0 +1,5 @@
1
+ .bootstrap-select button
2
+ min-height: 40px
3
+
4
+ .bootstrap-select .dropdown-menu li a
5
+ min-height: 32px
@@ -0,0 +1,3 @@
1
+ .btn
2
+ .empty-space
3
+ margin-left: -4px
@@ -0,0 +1,3 @@
1
+ .date_picker
2
+ min-width: 104px
3
+
@@ -0,0 +1,10 @@
1
+ @each $color, $value in $theme-colors
2
+ .form-check-input-#{$color}
3
+ &:checked
4
+ background-color: $value
5
+ border-color: $value
6
+
7
+ &:focus
8
+ border-color: $value
9
+ outline: 0
10
+ box-shadow: 0 0 0 $input-btn-focus-width rgba($value, $input-btn-focus-color-opacity)
@@ -0,0 +1,17 @@
1
+ .formula_field
2
+ input
3
+ border-bottom-right-radius: 0.25rem !important
4
+ border-top-right-radius: 0.25rem !important
5
+ .fix-border-right
6
+ border-bottom-right-radius: 0 !important
7
+ border-top-right-radius: 0 !important
8
+ width: 100%
9
+ .form-control[readonly]
10
+ background-color: darken($body-bg, 2%)
11
+ .formula-field_alert, .formula-field-result, .formula-field-sign
12
+ display: none
13
+ .formula-field:first-child
14
+ flex-grow: 3
15
+
16
+ .formula-field-alert
17
+ padding-top: 10px
@@ -0,0 +1,44 @@
1
+ .multiselect-container
2
+ padding: 10px
3
+ .multiselect-container > li > a > label
4
+ padding: 3px 20px 3px 10px
5
+ > input[type=checkbox]
6
+ margin-bottom: 0px
7
+
8
+ .multiselect-container
9
+ height: max-content // fix with bootstrap v 5.0.0-beta1
10
+ .filter
11
+ margin: 5px
12
+
13
+ .without-caret
14
+ .dropdown-toggle::after
15
+ content: none
16
+
17
+ .ui_surround_field > .multiselect-native-select .multiselect
18
+ border-radius: 0px
19
+
20
+ // .ui_surround_field .multiselect-native-select .multiselect
21
+ .ui_surround_field .multiselect-native-select:first-child .multiselect
22
+ @include border-start-radius($border-radius)
23
+
24
+ .ui_surround_field .multiselect-native-select:last-child .multiselect
25
+ @include border-end-radius($border-radius)
26
+
27
+ .multiselect-native-select
28
+ button.multiselect
29
+ padding-right: 30px !important
30
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")
31
+ .dropdown-menu
32
+ padding: 0
33
+ flex-direction: column
34
+ &.show
35
+ display: flex !important
36
+
37
+ .multiselect-filter
38
+ background-color: white
39
+ position: sticky
40
+ top: 0px
41
+ z-index: 1
42
+ .dropdown-menu
43
+ overflow: auto
44
+ max-height: 300px
@@ -0,0 +1,44 @@
1
+ // Fix Add datalist to range field
2
+ .form-range
3
+ appearance: auto
4
+
5
+ // Fix Add datalist to range field
6
+ input[type=range]
7
+ & + datalist
8
+ width: 100%
9
+ display: flex
10
+ justify-content: space-between
11
+
12
+
13
+ @each $color, $value in $theme-colors
14
+ .form-range-#{$color}
15
+ -webkit-appearance: none
16
+ appearance: none
17
+ &:focus
18
+ &::-webkit-slider-thumb
19
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width rgba($value, $input-btn-focus-color-opacity)
20
+ &::-webkit-slider-thumb
21
+ appearance: none
22
+ @include gradient-bg($value)
23
+ &:active
24
+ @include gradient-bg(lighten($value, 15%))
25
+ &::-webkit-slider-runnable-track
26
+ background-color: $value
27
+
28
+ .form-range-thumb-#{$color}
29
+ -webkit-appearance: none
30
+ appearance: none
31
+ &:focus
32
+ &::-webkit-slider-thumb
33
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width rgba($value, $input-btn-focus-color-opacity)
34
+ &::-webkit-slider-thumb
35
+ appearance: none
36
+ @include gradient-bg($value)
37
+ &:active
38
+ @include gradient-bg(lighten($value, 15%))
39
+
40
+ .form-range-track-#{$color}
41
+ -webkit-appearance: none
42
+ appearance: none
43
+ &::-webkit-slider-runnable-track
44
+ background-color: $value
@@ -0,0 +1,136 @@
1
+ $slider-bg-color: #DEE2E6
2
+ $slider-height: 8px
3
+ $slider-color: $primary
4
+ $thumb-size: 16px
5
+ $thumb-color: $primary
6
+ $thumb-radius: 50%
7
+
8
+ .slider
9
+ position: relative
10
+ height: $slider-height
11
+ border-radius: 10px
12
+ text-align: left
13
+ margin: .5rem 0
14
+ background-color: $slider-bg-color
15
+ & > div
16
+ position: absolute
17
+ left: 7px
18
+ right: 7px
19
+ height: $slider-height
20
+ & > .slider-inverse-left
21
+ position: absolute
22
+ left: 0
23
+ height: $slider-height
24
+ border-radius: 10px
25
+ background-color: $slider-bg-color
26
+ margin: 0 7px
27
+ & > .slider-inverse-right
28
+ position: absolute
29
+ right: 0
30
+ height: $slider-height
31
+ border-radius: 10px
32
+ background-color: $slider-bg-color
33
+ margin: 0 7px
34
+ & > .slider-range
35
+ position: absolute
36
+ left: 0
37
+ height: $slider-height
38
+ background-color: $slider-color
39
+ border-radius: 14px
40
+ & > .slider-thumb
41
+ position: absolute
42
+ top: -4px
43
+ z-index: 2
44
+ height: $thumb-size
45
+ width: $thumb-size
46
+ text-align: left
47
+ margin-left: -11px
48
+ cursor: pointer
49
+ //box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4)
50
+ background-color: $thumb-color
51
+ border-radius: $thumb-radius
52
+ outline: none
53
+ &:active
54
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width rgba($slider-color , $input-btn-focus-color-opacity)
55
+ & > input[type=range]
56
+ position: absolute
57
+ pointer-events: none
58
+ -webkit-appearance: none
59
+ cursor: pointer
60
+ z-index: 3
61
+ height: $slider-height
62
+ width: 100%
63
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"
64
+ filter: alpha(opacity=0)
65
+ -moz-opacity: 0
66
+ -khtml-opacity: 0
67
+ opacity: 0
68
+ div.slider
69
+ & > input[type=range]::-ms-track
70
+ -webkit-appearance: none
71
+ background: transparent
72
+ color: transparent
73
+ & > input[type=range]::-moz-range-track
74
+ -moz-appearance: none
75
+ background: transparent
76
+ color: transparent
77
+ & > input[type=range]:focus
78
+ outline: none
79
+ &::-webkit-slider-runnable-track
80
+ background: transparent
81
+ border: transparent
82
+ & > input[type=range]::-ms-thumb
83
+ pointer-events: all
84
+ width: $thumb-size
85
+ height: $thumb-size
86
+ border-radius: $thumb-radius
87
+ border: 0 none
88
+ & > input[type=range]::-moz-range-thumb
89
+ pointer-events: all
90
+ width: $thumb-size
91
+ height: $thumb-size
92
+ border-radius: $thumb-radius
93
+ border: 0 none
94
+ & > input[type=range]::-webkit-slider-thumb
95
+ pointer-events: all
96
+ width: $thumb-size
97
+ height: $thumb-size
98
+ border-radius: $thumb-radius
99
+ border: 0 none
100
+ -webkit-appearance: none
101
+ & > input[type=range]::-ms-fill-lower
102
+ background: transparent
103
+ border: 0 none
104
+ & > input[type=range]::-ms-fill-upper
105
+ background: transparent
106
+ border: 0 none
107
+ & > input[type=range]::-ms-tooltip
108
+ display: none
109
+
110
+ .slider.disabled > div > .slider-thumb, .slider.disabled > div > .slider-range
111
+ background-color: $gray-500
112
+
113
+ @each $color, $value in $theme-colors
114
+ .slider-#{$color}
115
+ input[type=range]
116
+ -webkit-appearance: none
117
+ appearance: none
118
+ &:focus, &:active, &:hover
119
+ &::-webkit-slider-thumb
120
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-btn-focus-width rgba($value, $input-btn-focus-color-opacity) !important
121
+ & > div
122
+ & > .slider-range
123
+ background-color: $value
124
+ & > .slider-thumb
125
+ background-color: $value
126
+
127
+ .slider-track-#{$color}
128
+ background-color: $value
129
+ input[type=range]::-webkit-slider-runnable-track
130
+ background-color: $value
131
+ appearance: none
132
+ & > div
133
+ & > .slider-inverse-right
134
+ background-color: $value
135
+ & > .slider-inverse-left
136
+ background-color: $value
@@ -0,0 +1,25 @@
1
+ .ui_surround_field
2
+ .custom-control
3
+ .custom-control-label
4
+ margin-left: 0px !important
5
+ padding-right: 10px
6
+ margin-right: 0
7
+ .custom-control-label:after, .custom-control-label:before
8
+ right: 0
9
+ left: 0
10
+
11
+ flex-wrap: nowrap
12
+ .mr-sm-2
13
+ margin-right: 0px !important
14
+ input:not(:first-child):not(:last-child)
15
+ border-radius: 0px
16
+ input
17
+ margin-left: 0.5rem
18
+ select:not(:first-child):not(:last-child)
19
+ border-radius: 0px
20
+
21
+ .form-group-invalid
22
+ & input
23
+ border-color: $danger
24
+ & .invalid-feedback
25
+ display: block
@@ -0,0 +1,5 @@
1
+ // fix undernline when the badge is a link
2
+ a.badge
3
+ text-decoration: none
4
+ &:hover
5
+ color: white
@@ -0,0 +1,3 @@
1
+ @each $key, $value in $states_colors
2
+ .glyph-#{$key}
3
+ color: $value
@@ -0,0 +1,2 @@
1
+ .stars-notation
2
+ white-space: nowrap
@@ -0,0 +1,3 @@
1
+ .toast .toast-header img
2
+ width: 20px
3
+ height: 20px
@@ -0,0 +1,39 @@
1
+ .table>tbody>tr:hover
2
+ td:last-child .dropdown-action
3
+ display: inherit
4
+
5
+ .table>tbody>tr
6
+ td:last-child
7
+ min-height: 48px
8
+ .dropdown-action
9
+ display: none
10
+
11
+ .table>:not(:first-child)
12
+ border-top: 2px solid
13
+
14
+ .table-search-field
15
+ .clear-search-btn
16
+ cursor: pointer
17
+ .glyph
18
+ margin: 0
19
+
20
+ .table
21
+ .action
22
+ width: 135px
23
+ .dropdown_select
24
+ margin-bottom: 0px !important
25
+ .progress
26
+ margin-top: .30rem
27
+ height: initial
28
+
29
+ .table-pagination-per-page
30
+ display: flex
31
+ align-items: center
32
+ justify-content: flex-end
33
+ margin-left: auto
34
+ select
35
+ width: 100px
36
+ margin-left: .5rem
37
+ strong
38
+ padding-left: .25rem
39
+ padding-right: .25rem