activeadmin_addons_rails6 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +24 -0
  4. data/app/assets/images/fileicons/file_extension_3gp.png +0 -0
  5. data/app/assets/images/fileicons/file_extension_7z.png +0 -0
  6. data/app/assets/images/fileicons/file_extension_ace.png +0 -0
  7. data/app/assets/images/fileicons/file_extension_ai.png +0 -0
  8. data/app/assets/images/fileicons/file_extension_aif.png +0 -0
  9. data/app/assets/images/fileicons/file_extension_aiff.png +0 -0
  10. data/app/assets/images/fileicons/file_extension_amr.png +0 -0
  11. data/app/assets/images/fileicons/file_extension_asf.png +0 -0
  12. data/app/assets/images/fileicons/file_extension_asx.png +0 -0
  13. data/app/assets/images/fileicons/file_extension_bat.png +0 -0
  14. data/app/assets/images/fileicons/file_extension_bin.png +0 -0
  15. data/app/assets/images/fileicons/file_extension_bmp.png +0 -0
  16. data/app/assets/images/fileicons/file_extension_bup.png +0 -0
  17. data/app/assets/images/fileicons/file_extension_cab.png +0 -0
  18. data/app/assets/images/fileicons/file_extension_cbr.png +0 -0
  19. data/app/assets/images/fileicons/file_extension_cda.png +0 -0
  20. data/app/assets/images/fileicons/file_extension_cdl.png +0 -0
  21. data/app/assets/images/fileicons/file_extension_cdr.png +0 -0
  22. data/app/assets/images/fileicons/file_extension_chm.png +0 -0
  23. data/app/assets/images/fileicons/file_extension_dat.png +0 -0
  24. data/app/assets/images/fileicons/file_extension_divx.png +0 -0
  25. data/app/assets/images/fileicons/file_extension_dll.png +0 -0
  26. data/app/assets/images/fileicons/file_extension_dmg.png +0 -0
  27. data/app/assets/images/fileicons/file_extension_doc.png +0 -0
  28. data/app/assets/images/fileicons/file_extension_docx.png +0 -0
  29. data/app/assets/images/fileicons/file_extension_dss.png +0 -0
  30. data/app/assets/images/fileicons/file_extension_dvf.png +0 -0
  31. data/app/assets/images/fileicons/file_extension_dwg.png +0 -0
  32. data/app/assets/images/fileicons/file_extension_eml.png +0 -0
  33. data/app/assets/images/fileicons/file_extension_eps.png +0 -0
  34. data/app/assets/images/fileicons/file_extension_exe.png +0 -0
  35. data/app/assets/images/fileicons/file_extension_fla.png +0 -0
  36. data/app/assets/images/fileicons/file_extension_flv.png +0 -0
  37. data/app/assets/images/fileicons/file_extension_gif.png +0 -0
  38. data/app/assets/images/fileicons/file_extension_gz.png +0 -0
  39. data/app/assets/images/fileicons/file_extension_hqx.png +0 -0
  40. data/app/assets/images/fileicons/file_extension_htm.png +0 -0
  41. data/app/assets/images/fileicons/file_extension_html.png +0 -0
  42. data/app/assets/images/fileicons/file_extension_ifo.png +0 -0
  43. data/app/assets/images/fileicons/file_extension_indd.png +0 -0
  44. data/app/assets/images/fileicons/file_extension_iso.png +0 -0
  45. data/app/assets/images/fileicons/file_extension_jar.png +0 -0
  46. data/app/assets/images/fileicons/file_extension_jpeg.png +0 -0
  47. data/app/assets/images/fileicons/file_extension_jpg.png +0 -0
  48. data/app/assets/images/fileicons/file_extension_lnk.png +0 -0
  49. data/app/assets/images/fileicons/file_extension_log.png +0 -0
  50. data/app/assets/images/fileicons/file_extension_m4a.png +0 -0
  51. data/app/assets/images/fileicons/file_extension_m4b.png +0 -0
  52. data/app/assets/images/fileicons/file_extension_m4p.png +0 -0
  53. data/app/assets/images/fileicons/file_extension_m4v.png +0 -0
  54. data/app/assets/images/fileicons/file_extension_mcd.png +0 -0
  55. data/app/assets/images/fileicons/file_extension_mdb.png +0 -0
  56. data/app/assets/images/fileicons/file_extension_mid.png +0 -0
  57. data/app/assets/images/fileicons/file_extension_mov.png +0 -0
  58. data/app/assets/images/fileicons/file_extension_mp2.png +0 -0
  59. data/app/assets/images/fileicons/file_extension_mp3.png +0 -0
  60. data/app/assets/images/fileicons/file_extension_mp4.png +0 -0
  61. data/app/assets/images/fileicons/file_extension_mpeg.png +0 -0
  62. data/app/assets/images/fileicons/file_extension_mpg.png +0 -0
  63. data/app/assets/images/fileicons/file_extension_msi.png +0 -0
  64. data/app/assets/images/fileicons/file_extension_mswmm.png +0 -0
  65. data/app/assets/images/fileicons/file_extension_ogg.png +0 -0
  66. data/app/assets/images/fileicons/file_extension_pdf.png +0 -0
  67. data/app/assets/images/fileicons/file_extension_png.png +0 -0
  68. data/app/assets/images/fileicons/file_extension_pps.png +0 -0
  69. data/app/assets/images/fileicons/file_extension_ppt.png +0 -0
  70. data/app/assets/images/fileicons/file_extension_pptx.png +0 -0
  71. data/app/assets/images/fileicons/file_extension_ps.png +0 -0
  72. data/app/assets/images/fileicons/file_extension_psd.png +0 -0
  73. data/app/assets/images/fileicons/file_extension_pst.png +0 -0
  74. data/app/assets/images/fileicons/file_extension_ptb.png +0 -0
  75. data/app/assets/images/fileicons/file_extension_pub.png +0 -0
  76. data/app/assets/images/fileicons/file_extension_qbb.png +0 -0
  77. data/app/assets/images/fileicons/file_extension_qbw.png +0 -0
  78. data/app/assets/images/fileicons/file_extension_qxd.png +0 -0
  79. data/app/assets/images/fileicons/file_extension_ram.png +0 -0
  80. data/app/assets/images/fileicons/file_extension_rar.png +0 -0
  81. data/app/assets/images/fileicons/file_extension_rm.png +0 -0
  82. data/app/assets/images/fileicons/file_extension_rmvb.png +0 -0
  83. data/app/assets/images/fileicons/file_extension_rtf.png +0 -0
  84. data/app/assets/images/fileicons/file_extension_sea.png +0 -0
  85. data/app/assets/images/fileicons/file_extension_ses.png +0 -0
  86. data/app/assets/images/fileicons/file_extension_sit.png +0 -0
  87. data/app/assets/images/fileicons/file_extension_sitx.png +0 -0
  88. data/app/assets/images/fileicons/file_extension_ss.png +0 -0
  89. data/app/assets/images/fileicons/file_extension_swf.png +0 -0
  90. data/app/assets/images/fileicons/file_extension_tgz.png +0 -0
  91. data/app/assets/images/fileicons/file_extension_thm.png +0 -0
  92. data/app/assets/images/fileicons/file_extension_tif.png +0 -0
  93. data/app/assets/images/fileicons/file_extension_tmp.png +0 -0
  94. data/app/assets/images/fileicons/file_extension_torrent.png +0 -0
  95. data/app/assets/images/fileicons/file_extension_ttf.png +0 -0
  96. data/app/assets/images/fileicons/file_extension_txt.png +0 -0
  97. data/app/assets/images/fileicons/file_extension_unknown.png +0 -0
  98. data/app/assets/images/fileicons/file_extension_vcd.png +0 -0
  99. data/app/assets/images/fileicons/file_extension_vob.png +0 -0
  100. data/app/assets/images/fileicons/file_extension_wav.png +0 -0
  101. data/app/assets/images/fileicons/file_extension_wma.png +0 -0
  102. data/app/assets/images/fileicons/file_extension_wmv.png +0 -0
  103. data/app/assets/images/fileicons/file_extension_wps.png +0 -0
  104. data/app/assets/images/fileicons/file_extension_xls.png +0 -0
  105. data/app/assets/images/fileicons/file_extension_xlsx.png +0 -0
  106. data/app/assets/images/fileicons/file_extension_xpi.png +0 -0
  107. data/app/assets/images/fileicons/file_extension_zip.png +0 -0
  108. data/app/assets/images/material/icons/keyboard_arrow_down.svg +4 -0
  109. data/app/assets/images/material/icons/keyboard_arrow_left.svg +4 -0
  110. data/app/assets/images/material/icons/keyboard_arrow_right.svg +4 -0
  111. data/app/assets/images/material/icons/keyboard_arrow_up.svg +4 -0
  112. data/app/assets/images/material/icons/today.svg +4 -0
  113. data/app/assets/javascripts/activeadmin_addons/all.js +753 -0
  114. data/app/assets/stylesheets/activeadmin_addons/addons/interactive_select_tag.scss +30 -0
  115. data/app/assets/stylesheets/activeadmin_addons/addons/material-datepicker.scss +173 -0
  116. data/app/assets/stylesheets/activeadmin_addons/addons/material-toggle_bool.scss +52 -0
  117. data/app/assets/stylesheets/activeadmin_addons/addons/toggle_bool.scss +52 -0
  118. data/app/assets/stylesheets/activeadmin_addons/all.scss +19 -0
  119. data/app/assets/stylesheets/activeadmin_addons/imports/jquery-datepicker.scss +1 -0
  120. data/app/assets/stylesheets/activeadmin_addons/imports/webpack/jquery-datepicker.scss +1 -0
  121. data/app/assets/stylesheets/activeadmin_addons/inputs/color-picker.scss +4 -0
  122. data/app/assets/stylesheets/activeadmin_addons/inputs/date-time-picker.scss +5 -0
  123. data/app/assets/stylesheets/activeadmin_addons/inputs/numeric-range-filter.scss +12 -0
  124. data/app/assets/stylesheets/activeadmin_addons/inputs/select2.scss +3 -0
  125. data/app/assets/stylesheets/activeadmin_addons/inputs/selected-list.scss +27 -0
  126. data/app/assets/stylesheets/activeadmin_addons/material.scss +53 -0
  127. data/app/assets/stylesheets/activeadmin_addons/vendor/palette-color-picker.scss +155 -0
  128. data/app/inputs/active_admin/inputs/select_input.rb +11 -0
  129. data/app/inputs/ajax_filter_input.rb +6 -0
  130. data/app/inputs/color_picker_input.rb +37 -0
  131. data/app/inputs/date_range_input.rb +5 -0
  132. data/app/inputs/date_time_picker_input.rb +64 -0
  133. data/app/inputs/nested_level_input.rb +51 -0
  134. data/app/inputs/nested_select_input.rb +88 -0
  135. data/app/inputs/numeric_range_filter_input.rb +27 -0
  136. data/app/inputs/range_select_input.rb +6 -0
  137. data/app/inputs/search_select_filter_input.rb +12 -0
  138. data/app/inputs/search_select_input.rb +29 -0
  139. data/app/inputs/selected_list_input.rb +54 -0
  140. data/app/inputs/tags_input.rb +55 -0
  141. data/app/javascript/activeadmin_addons/addons/interactive_select_tag.js +95 -0
  142. data/app/javascript/activeadmin_addons/addons/toggle_bool.js +39 -0
  143. data/app/javascript/activeadmin_addons/all.js +14 -0
  144. data/app/javascript/activeadmin_addons/config.js +10 -0
  145. data/app/javascript/activeadmin_addons/inputs/color-picker.js +16 -0
  146. data/app/javascript/activeadmin_addons/inputs/date-time-picker.js +28 -0
  147. data/app/javascript/activeadmin_addons/inputs/nested-select.js +170 -0
  148. data/app/javascript/activeadmin_addons/inputs/search-select.js +76 -0
  149. data/app/javascript/activeadmin_addons/inputs/select2.js +52 -0
  150. data/app/javascript/activeadmin_addons/inputs/selected-list.js +107 -0
  151. data/app/javascript/activeadmin_addons/inputs/tags.js +76 -0
  152. data/app/javascript/activeadmin_addons/vendor/jquery_palette_color_picker/palette-color-picker.js +265 -0
  153. data/lib/activeadmin_addons.rb +27 -0
  154. data/lib/activeadmin_addons/active_admin_config.rb +9 -0
  155. data/lib/activeadmin_addons/addons/attachment_builder.rb +60 -0
  156. data/lib/activeadmin_addons/addons/bool_builder.rb +31 -0
  157. data/lib/activeadmin_addons/addons/image_builder.rb +12 -0
  158. data/lib/activeadmin_addons/addons/list_builder.rb +73 -0
  159. data/lib/activeadmin_addons/addons/number_builder.rb +25 -0
  160. data/lib/activeadmin_addons/addons/state_builder.rb +39 -0
  161. data/lib/activeadmin_addons/addons/tag_builder.rb +91 -0
  162. data/lib/activeadmin_addons/addons/toggle_bool_builder.rb +44 -0
  163. data/lib/activeadmin_addons/engine.rb +19 -0
  164. data/lib/activeadmin_addons/support/custom_builder.rb +91 -0
  165. data/lib/activeadmin_addons/support/enumerize_formtastic_support.rb +18 -0
  166. data/lib/activeadmin_addons/support/input_base.rb +53 -0
  167. data/lib/activeadmin_addons/support/input_helpers/filter_input.rb +8 -0
  168. data/lib/activeadmin_addons/support/input_helpers/filter_input_methods.rb +32 -0
  169. data/lib/activeadmin_addons/support/input_helpers/input_html_helpers.rb +43 -0
  170. data/lib/activeadmin_addons/support/input_helpers/input_methods.rb +67 -0
  171. data/lib/activeadmin_addons/support/input_helpers/input_options_handler.rb +90 -0
  172. data/lib/activeadmin_addons/support/input_helpers/select_helpers.rb +89 -0
  173. data/lib/activeadmin_addons/support/set_datepicker.rb +13 -0
  174. data/lib/activeadmin_addons/version.rb +3 -0
  175. data/lib/activeadmin_addons_rails_6.rb +5 -0
  176. data/lib/generators/activeadmin_addons/assets/assets_generator.rb +53 -0
  177. data/lib/generators/activeadmin_addons/install/install_generator.rb +19 -0
  178. data/lib/generators/activeadmin_addons/install/templates/initializer.rb +12 -0
  179. data/lib/generators/activeadmin_addons/webpacker/webpacker_generator.rb +35 -0
  180. data/lib/tasks/activeadmin_addons_tasks.rake +4 -0
  181. data/vendor/assets/select2/select2.css +481 -0
  182. data/vendor/assets/select2/select2.full.js +6820 -0
  183. metadata +544 -0
@@ -0,0 +1,30 @@
1
+ .tag-select-container {
2
+ max-width: 125px;
3
+ max-height: 50px;
4
+
5
+ .interactive-tag {
6
+ height: 28px;
7
+ width: 125px;
8
+
9
+ .status_tag {
10
+ cursor: pointer;
11
+ }
12
+ }
13
+
14
+ .interactive-tag-hidden {
15
+ display: none;
16
+ }
17
+
18
+ .select-container-hidden {
19
+ display: none;
20
+ }
21
+
22
+ .interactive-tag-select {
23
+ width: 100%;
24
+ height: 100%;
25
+ }
26
+ }
27
+
28
+ .select2-container {
29
+ margin: 0;
30
+ }
@@ -0,0 +1,173 @@
1
+ $dt-bg-border-color: #fff;
2
+ $dt-bg-button-color: #fff;
3
+ $dt-header-bg-color: #fff;
4
+ $dt-border-color: #fff;
5
+ $dt-bg: #fff;
6
+
7
+ $dt-primary-color: $am-theme-primary;
8
+ $dt-label-color: rgba(0, 0, 0, .7);
9
+ $dt-header-color: rgba(0, 0, 0, .54);
10
+
11
+ $dt-selected-bg-color: $am-theme-primary;
12
+ $dt-selected-color: #fff;
13
+ $dt-hour-border-color: #ddd;
14
+
15
+ li.input.date_time_picker .date-time-picker-input {
16
+ z-index: 2 !important;
17
+ background: $dt-selected-color asset-url('active_material/icons/event.svg') 10px no-repeat;
18
+ padding-left: 40px;
19
+ }
20
+
21
+ div.xdsoft_datetimepicker {
22
+ font-family: 'RobotoDraft', sans-serif;
23
+ background: $dt-bg-border-color;
24
+ border-radius: 2px;
25
+ box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 -1px 1px rgba(0, 0, 0, .12);
26
+ padding: 0 12px 8px;
27
+ z-index: 1;
28
+ color: $dt-label-color;
29
+
30
+ .xdsoft_datepicker {
31
+ margin-top: 5px;
32
+ width: 250px;
33
+ }
34
+
35
+ .xdsoft_datepicker.active + .xdsoft_timepicker {
36
+ width: 68px;
37
+ padding-left: 10px;
38
+ margin-top: 30px;
39
+ border-left: 1px solid $dt-hour-border-color;
40
+ }
41
+
42
+ .xdsoft_timepicker .xdsoft_time_box {
43
+ border-bottom: 1px solid $dt-hour-border-color;
44
+ }
45
+
46
+ .xdsoft_timepicker .xdsoft_time_box>div>div {
47
+ background: $dt-bg-button-color;
48
+ border-top: 1px solid $dt-hour-border-color;
49
+ color: $dt-label-color;
50
+ }
51
+
52
+ .xdsoft_label {
53
+ background-color: $dt-bg-border-color;
54
+ font-weight: 600;
55
+
56
+ &.xdsoft_month {
57
+ width: 90px;
58
+ padding-right: 0;
59
+
60
+ i {
61
+ display: none;
62
+ }
63
+ }
64
+
65
+ &.xdsoft_year {
66
+ padding-left: 0;
67
+ margin-left: 0;
68
+
69
+ i {
70
+ display: none;
71
+ }
72
+ }
73
+
74
+ & > .xdsoft_select {
75
+ border: 1px solid $dt-border-color;
76
+ background: $dt-bg-border-color;
77
+ }
78
+
79
+ & > .xdsoft_select > div > .xdsoft_option {
80
+ font-weight: 400;
81
+
82
+ &:hover {
83
+ color: $dt-primary-color;
84
+ background: $dt-bg-border-color;
85
+ }
86
+
87
+ &.xdsoft_current {
88
+ background: $dt-selected-bg-color;
89
+ color: $dt-selected-color;
90
+ box-shadow: unset;
91
+ }
92
+ }
93
+ }
94
+
95
+ .xdsoft_calendar td,
96
+ .xdsoft_calendar th {
97
+ background: $dt-bg-button-color;
98
+ color: $dt-label-color;
99
+ border: 0;
100
+ width: 32px;
101
+ height: 32px;
102
+ border-radius: 50%;
103
+ text-align: center;
104
+
105
+ div {
106
+ padding: 0;
107
+ }
108
+ }
109
+
110
+ .xdsoft_calendar th {
111
+ background: $dt-header-bg-color;
112
+ font-weight: 500;
113
+ color: $dt-header-color;
114
+
115
+ }
116
+
117
+ .xdsoft_calendar td.xdsoft_default,
118
+ .xdsoft_calendar td.xdsoft_current,
119
+ .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current {
120
+ color: $dt-selected-bg-color;
121
+ background: $dt-bg;
122
+ box-shadow: unset;
123
+ }
124
+
125
+ .xdsoft_calendar td:hover,
126
+ .xdsoft_timepicker .xdsoft_time_box>div>div:hover {
127
+ color: $dt-primary-color !important;
128
+ background: $dt-bg-border-color !important;
129
+ }
130
+
131
+ .xdsoft_calendar td.xdsoft_today {
132
+ &,
133
+ &.xdsoft_current {
134
+ background: $dt-selected-bg-color !important;
135
+ color: $dt-selected-color !important;
136
+ }
137
+ }
138
+
139
+ .xdsoft_time_box {
140
+ border: 1px solid $dt-border-color;
141
+ }
142
+
143
+ .xdsoft_mounthpicker button {
144
+ width: 24px;
145
+ height: 24px;
146
+
147
+ &.xdsoft_prev {
148
+ background: asset-url('material/icons/keyboard_arrow_left.svg') no-repeat;
149
+ }
150
+
151
+ &.xdsoft_today_button {
152
+ background: asset-url('material/icons/today.svg') no-repeat;
153
+ }
154
+
155
+ &.xdsoft_next {
156
+ background: asset-url('material/icons/keyboard_arrow_right.svg') no-repeat;
157
+ }
158
+ }
159
+
160
+ .xdsoft_timepicker > button {
161
+ &.xdsoft_prev {
162
+ width: 24px;
163
+ height: 24px;
164
+ background: asset-url('material/icons/keyboard_arrow_up.svg') no-repeat;
165
+ }
166
+
167
+ &.xdsoft_next {
168
+ width: 24px;
169
+ height: 24px;
170
+ background: asset-url('material/icons/keyboard_arrow_down.svg') no-repeat;
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,52 @@
1
+ $inactive-button: #aaa;
2
+ $inactive-bg: #ddd;
3
+ $active-button: $am-theme-primary;
4
+ $active-bg: rgba($active-button, .6);
5
+
6
+ $box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
7
+
8
+ .toggle-bool-switches-container {
9
+ text-align: center;
10
+
11
+ .toggle-bool-switch {
12
+ cursor: pointer;
13
+
14
+ background: $inactive-bg;
15
+ background-image: none;
16
+ box-shadow: $box-shadow;
17
+
18
+ width: 36px;
19
+ height: 14px;
20
+ display: inline-block;
21
+ position: relative;
22
+ border-radius: 9px;
23
+
24
+ &::before {
25
+ content: '';
26
+ background: $inactive-button;
27
+ background-image: none;
28
+ box-shadow: none;
29
+
30
+ display: inline-block;
31
+ width: 22px;
32
+ height: 22px;
33
+ border-radius: 50%;
34
+ position: absolute;
35
+ left: -3px;
36
+ top: -3px;
37
+
38
+ transition: all .25s linear;
39
+ transform: translateX(0);
40
+ }
41
+
42
+ &.on {
43
+ background: $active-bg;
44
+ background-image: none;
45
+
46
+ &::before {
47
+ left: calc(100% - 15px);
48
+ background: $active-button;
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,52 @@
1
+ $inactive-bg: #6a7176;
2
+ $inactive-shadow: #4d5256;
3
+ $active-bg: #4dbcff;
4
+ $active-shadow: #2f749e;
5
+ $button-bg: #fff;
6
+ $button-shadow: #dfe1e2;
7
+
8
+ $box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 1px #fff inset;
9
+
10
+ .toggle-bool-switches-container {
11
+ text-align: center;
12
+
13
+ .toggle-bool-switch {
14
+ cursor: pointer;
15
+
16
+ background: $inactive-bg;
17
+ background-image: linear-gradient(180deg, $inactive-bg, $inactive-shadow);
18
+ box-shadow: $box-shadow;
19
+
20
+ width: 40px;
21
+ height: 16px;
22
+ display: inline-block;
23
+ position: relative;
24
+
25
+ &::before {
26
+ content: '';
27
+
28
+ background: $button-bg;
29
+ background-image: linear-gradient(180deg, $button-bg, $button-shadow);
30
+ box-shadow: $box-shadow;
31
+
32
+ display: inline-block;
33
+ width: 20px;
34
+ height: 12px;
35
+ position: absolute;
36
+ left: 3px;
37
+ top: 2px;
38
+
39
+ transition: all .25s linear;
40
+ transform: translateX(0);
41
+ }
42
+
43
+ &.on {
44
+ background: $active-bg;
45
+ background-image: linear-gradient(180deg, $active-bg, $active-shadow);
46
+
47
+ &::before {
48
+ left: calc(100% - 23px);
49
+ }
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,19 @@
1
+ @import 'select2';
2
+ @import 'imports/jquery-datepicker';
3
+ @import 'vendor/palette-color-picker';
4
+
5
+ @import 'inputs/numeric-range-filter';
6
+ @import 'inputs/color-picker';
7
+ @import 'inputs/date-time-picker';
8
+ @import 'inputs/select2';
9
+ @import 'inputs/selected-list';
10
+ @import 'addons/toggle_bool';
11
+ @import 'addons/interactive_select_tag';
12
+
13
+ $error-color: #932419;
14
+
15
+ li.error {
16
+ .select2-selection {
17
+ border-color: $error-color;
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ @import 'jquery.xdan.datetimepicker';
@@ -0,0 +1 @@
1
+ @import 'jquery-datetimepicker/build/jquery.datetimepicker.min.css';
@@ -0,0 +1,4 @@
1
+ .palette-color-picker-bubble {
2
+ padding: 14px 0 14px 16px;
3
+ z-index: 10;
4
+ }
@@ -0,0 +1,5 @@
1
+ input[type=text] {
2
+ &.date-time-picker-input {
3
+ width: 110px;
4
+ }
5
+ }
@@ -0,0 +1,12 @@
1
+ .filter_numeric_range_filter {
2
+ input[type=number] {
3
+ width: 96px;
4
+ padding-right: 0;
5
+ }
6
+
7
+ .separator {
8
+ display: inline-block;
9
+ width: 12px;
10
+ text-align: center;
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ .select2-search__field {
2
+ line-height: 20px;
3
+ }
@@ -0,0 +1,27 @@
1
+ $selected-list-btn-color: #aaa;
2
+ $selected-list-btn-hover-color: #333;
3
+
4
+ .selected-list-container {
5
+ display: inline-block;
6
+ width: 80%;
7
+
8
+ .selected-item {
9
+ height: 25px;
10
+ }
11
+ }
12
+
13
+ .selected-item {
14
+ display: table;
15
+ cursor: pointer;
16
+
17
+ &::before {
18
+ color: $selected-list-btn-color;
19
+ content: '\2716\00a0\00a0';
20
+ }
21
+
22
+ &:hover {
23
+ &::before {
24
+ color: $selected-list-btn-hover-color;
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,53 @@
1
+ @import 'active_material';
2
+ @import './addons/material-datepicker';
3
+ @import './addons/material-toggle_bool';
4
+
5
+ // Select
6
+ .filter_select,
7
+ .search_select_filter {
8
+ .select2.select2-container.select2-container--default {
9
+ width: 100% !important;
10
+ }
11
+ }
12
+
13
+ .select2-container .select2-selection--single {
14
+ height: 42px;
15
+
16
+ .select2-selection__rendered {
17
+ line-height: 42px;
18
+ }
19
+
20
+ .select2-selection__arrow {
21
+ height: 40px;
22
+ }
23
+ }
24
+
25
+ // Date Range
26
+ .input.date_range {
27
+ input.datepicker {
28
+ background: #fff asset-url('active_material/icons/event.svg') 10px no-repeat;
29
+ padding-left: 40px;
30
+ }
31
+ }
32
+
33
+ // Numeric Range Filter
34
+ .filter_numeric_range_filter {
35
+ &.input.string input,
36
+ &.input.stringish input,
37
+ &.input.numberic input {
38
+ width: calc(50% - 6px);
39
+ }
40
+ }
41
+
42
+ // Errors
43
+ li.error {
44
+ .select2-selection {
45
+ border-color: $am-theme-error;
46
+ }
47
+ }
48
+
49
+ .input.string.error input,
50
+ .input.stringish.error input,
51
+ .input.numberic.error input {
52
+ border-color: $am-theme-error;
53
+ }