ucb_rails_user 8.1.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -2
  3. data/app/assets/javascripts/ucb_rails_user/ucb_rails_user.js +0 -56
  4. data/app/assets/stylesheets/ucb_rails_user/components/impersonations.css +26 -0
  5. data/app/assets/stylesheets/ucb_rails_user/components/users_table.css +52 -3
  6. data/app/assets/stylesheets/ucb_rails_user/typeahead_tweaks.css +51 -0
  7. data/app/controllers/concerns/ucb_rails_user/users_controller_concerns.rb +24 -5
  8. data/app/views/ucb_rails_user/impersonations/index.html.erb +17 -5
  9. data/app/views/ucb_rails_user/users/_user.html.erb +1 -3
  10. data/app/views/ucb_rails_user/users/edit.html.erb +4 -2
  11. data/app/views/ucb_rails_user/users/impersonate_search.html.erb +25 -0
  12. data/app/views/ucb_rails_user/users/index.html.erb +115 -30
  13. data/app/views/ucb_rails_user/users/new.html.erb +15 -17
  14. data/app/views/ucb_rails_user/users/search.html.erb +15 -0
  15. data/config/importmap.rb +2 -0
  16. data/lib/ucb_rails_user/configuration/cas.rb +6 -7
  17. data/lib/ucb_rails_user/engine.rb +3 -2
  18. data/lib/ucb_rails_user/spec_helpers.rb +1 -1
  19. data/lib/ucb_rails_user/version.rb +1 -1
  20. data/lib/ucb_rails_user.rb +1 -0
  21. metadata +78 -64
  22. data/app/assets/javascripts/ucb_rails_user/datatables.js +0 -16891
  23. data/app/assets/javascripts/ucb_rails_user/esm/bloodhound.js +0 -953
  24. data/app/assets/javascripts/ucb_rails_user/esm/datatables.js +0 -28437
  25. data/app/assets/javascripts/ucb_rails_user/esm/typeahead.js +0 -1538
  26. data/app/assets/javascripts/ucb_rails_user/typeahead.bundle.js +0 -2451
  27. data/app/assets/stylesheets/ucb_rails_user/pagy_tailwind.css +0 -21
  28. data/app/assets/stylesheets/ucb_rails_user/typeahead_tweaks.sass +0 -43
@@ -1,21 +0,0 @@
1
- .pagy {
2
- @apply flex space-x-1 font-semibold text-sm text-gray-500;
3
- a:not(.gap) {
4
- @apply block rounded-lg px-3 py-1 bg-gray-200;
5
- &:hover {
6
- @apply bg-gray-300;
7
- }
8
- &:not([href]) { /* disabled links */
9
- @apply text-gray-300 bg-gray-100 cursor-default;
10
- }
11
- &.current {
12
- @apply text-white bg-gray-400;
13
- }
14
- }
15
- label {
16
- @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
17
- input {
18
- @apply bg-gray-100 border-none rounded-md;
19
- }
20
- }
21
- }
@@ -1,43 +0,0 @@
1
- // Ironically, Bootstrap 3.x breaks styles in typeahead.js - these styles provide the needed repair
2
- // source: https://gist.github.com/AntMooreWebDev/2f7e423a11bc74359323995df4494167
3
-
4
- .twitter-typeahead .tt-query,
5
- .twitter-typeahead .tt-hint
6
- margin-bottom: 0
7
-
8
- .twitter-typeahead
9
- display: block !important
10
-
11
- .tt-menu
12
- // make this wide enough to accomodate the org unit code and name
13
- width: 400px
14
- min-width: 160px
15
- margin-top: 2px
16
- padding: 5px
17
- background-color: #ffffff
18
- border: 1px solid #cccccc
19
- border: 1px solid rgba(0, 0, 0, 0.15)
20
- border-radius: 4px
21
- -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175)
22
- box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175)
23
- background-clip: padding-box
24
-
25
- .tt-suggestion
26
- display: block
27
- padding: 3px 20px
28
- width: 100%
29
-
30
- .tt-suggestion.tt-selectable
31
- margin: 5px 0px 5px 0px
32
-
33
- .tt-suggestion.tt-cursor
34
- color: #fff
35
- background-color: #428bca
36
-
37
- .tt-suggestion.tt-cursor a
38
- color: #fff
39
-
40
- .tt-suggestion p
41
- margin: 0
42
-
43
-