kaui 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/app/assets/config/kaui_manifest.js +2 -44
  4. data/app/assets/javascripts/application.js +12 -0
  5. data/app/assets/javascripts/kaui/kaui.js +7 -452
  6. data/app/assets/javascripts/kaui/kaui_override.js +441 -0
  7. data/app/assets/stylesheets/application.css +23 -0
  8. data/app/assets/stylesheets/kaui/account.css +34 -0
  9. data/app/assets/stylesheets/kaui/audit.css +19 -0
  10. data/app/assets/stylesheets/kaui/common.css +550 -0
  11. data/app/assets/stylesheets/kaui/datatable.css +71 -0
  12. data/app/assets/stylesheets/kaui/header.css +129 -0
  13. data/app/assets/stylesheets/kaui/home.css +72 -0
  14. data/app/assets/stylesheets/kaui/invoice.css +37 -0
  15. data/app/assets/stylesheets/kaui/kaui.css +152 -0
  16. data/app/assets/stylesheets/kaui/overdue.css +7 -0
  17. data/app/assets/stylesheets/kaui/payment.css +28 -0
  18. data/app/assets/stylesheets/kaui/subscription.css +15 -0
  19. data/app/assets/stylesheets/kaui/tags.css +137 -0
  20. data/app/assets/stylesheets/kaui/timeline.css +5 -0
  21. data/app/assets/stylesheets/kaui/tooltip.css +16 -0
  22. data/app/controllers/kaui/account_tags_controller.rb +1 -1
  23. data/app/controllers/kaui/admin_allowed_users_controller.rb +1 -1
  24. data/app/controllers/kaui/admin_tenants_controller.rb +3 -3
  25. data/app/controllers/kaui/bundle_tags_controller.rb +1 -1
  26. data/app/controllers/kaui/engine_controller_util.rb +1 -1
  27. data/app/controllers/kaui/home_controller.rb +21 -12
  28. data/app/controllers/kaui/invoice_tags_controller.rb +1 -1
  29. data/app/controllers/kaui/invoices_controller.rb +6 -1
  30. data/app/controllers/kaui/payment_methods_controller.rb +1 -1
  31. data/app/controllers/kaui/subscriptions_controller.rb +9 -8
  32. data/app/controllers/kaui/transactions_controller.rb +1 -1
  33. data/app/helpers/kaui/object_helper.rb +16 -1
  34. data/app/models/kaui/admin_tenant.rb +1 -1
  35. data/app/models/kaui/catalog.rb +2 -2
  36. data/app/models/kaui/invoice_payment.rb +1 -1
  37. data/app/models/kaui/overdue.rb +2 -2
  38. data/app/models/kaui/tag.rb +2 -2
  39. data/app/models/kaui/tag_definition.rb +1 -1
  40. data/app/views/kaui/accounts/_billing_info.html.erb +2 -4
  41. data/app/views/kaui/accounts/_form.html.erb +3 -3
  42. data/app/views/kaui/accounts/index.html.erb +0 -1
  43. data/app/views/kaui/admin_tenants/new_overdue_config.html.erb +5 -5
  44. data/app/views/kaui/home/_advanced_search_modal.html.erb +22 -1
  45. data/app/views/kaui/invoices/show.html.erb +2 -1
  46. data/app/views/kaui/layouts/kaui_header.html.erb +2 -18
  47. data/app/views/kaui/refunds/_form.html.erb +50 -2
  48. data/app/views/kaui/subscriptions/_cancel_by_date_modal.html.erb +1 -1
  49. data/app/views/kaui/subscriptions/_edit_form.html.erb +1 -1
  50. data/app/views/kaui/subscriptions/_form.html.erb +1 -1
  51. data/app/views/kaui/subscriptions/edit_bcd.erb +1 -1
  52. data/app/views/kaui/tag_definitions/_form.html.erb +1 -2
  53. data/config/routes.rb +1 -0
  54. data/lib/kaui/engine.rb +1 -4
  55. data/lib/kaui/version.rb +1 -1
  56. data/lib/kaui.rb +10 -10
  57. metadata +29 -130
  58. data/app/assets/javascripts/jquery.spin.js +0 -76
  59. data/app/assets/javascripts/kaui_application.js +0 -25
  60. data/app/assets/javascripts/spin.js +0 -76
  61. data/app/assets/stylesheets/bootstrap_and_overrides.scss +0 -240
  62. data/app/assets/stylesheets/kaui/account.scss +0 -52
  63. data/app/assets/stylesheets/kaui/audit.scss +0 -42
  64. data/app/assets/stylesheets/kaui/common.scss +0 -765
  65. data/app/assets/stylesheets/kaui/datatable.scss +0 -115
  66. data/app/assets/stylesheets/kaui/header.scss +0 -197
  67. data/app/assets/stylesheets/kaui/home.scss +0 -89
  68. data/app/assets/stylesheets/kaui/invoice.scss +0 -58
  69. data/app/assets/stylesheets/kaui/kaui.scss +0 -265
  70. data/app/assets/stylesheets/kaui/kaui_bootstrap.scss +0 -3
  71. data/app/assets/stylesheets/kaui/overdue.scss +0 -11
  72. data/app/assets/stylesheets/kaui/payment.scss +0 -43
  73. data/app/assets/stylesheets/kaui/subscription.scss +0 -27
  74. data/app/assets/stylesheets/kaui/tags.scss +0 -208
  75. data/app/assets/stylesheets/kaui/timeline.scss +0 -7
  76. data/app/assets/stylesheets/kaui/tooltip.scss +0 -15
  77. data/app/assets/stylesheets/kaui_application.css +0 -12
@@ -1,765 +0,0 @@
1
- /*
2
- * Basic & Common
3
- */
4
- @import url(https://fonts.googleapis.com/css?family=Lato:400,700,900,300);
5
- $smphone: unquote("max-width: 450px");
6
- $phone: unquote("max-width: 768px");
7
- $tablet: unquote("max-width: 1024px");
8
- body {
9
- background: #f9f9f9;
10
- animation: all 0.5s;
11
- font-family: "Lato", sans-serif;
12
- color: rgb(119, 119, 119);
13
- padding-bottom: 50px;
14
- }
15
-
16
- h1, h2, h3 {
17
- margin: 0 0 20px;
18
- font-family: "Lato", sans-serif;
19
- }
20
-
21
- h1 {
22
- font-size: 18px;
23
- color: #e44c3a;
24
- text-transform: capitalize;
25
- line-height: 1.333;
26
- padding: 0 30px 10px;
27
- border-bottom: 1px solid #ccc;
28
- font-weight: 700;
29
- }
30
-
31
- h2 {
32
- font-size: 20px;
33
- color: rgb(49, 49, 49);
34
- line-height: 1.5;
35
- text-align: center;
36
- }
37
-
38
- h3 {
39
- font-size: 16px;
40
- color: rgb(49, 49, 49);
41
- line-height: 1.5;
42
- text-align: center;
43
- }
44
-
45
- p {
46
- font-size: 14px;
47
- color: #999;
48
- line-height: 20px;
49
- text-align: left;
50
- margin: 0 0 20px;
51
- font-weight: 700;
52
-
53
- span {
54
- font-size: 14px;
55
- margin: 0 10px;
56
- }
57
-
58
- &.title-align {
59
- padding-left: 30px;
60
- }
61
- }
62
-
63
- a {
64
- color: #00919d;
65
- transition: all 0.3s;
66
-
67
- &:hover {
68
- text-decoration: none;
69
- color: darken(#00919d, 10%);
70
- }
71
-
72
- //fa-times highly associated with delete
73
- .fa-times {
74
- color: #e44c3a;
75
-
76
- &:hover {
77
- color: darken(#e44c3a, 10%);
78
- }
79
- }
80
- }
81
-
82
- span {
83
- &.success, &.fail {
84
- display: inline-block;
85
- font-size: 14px;
86
- color: #fff;
87
- font-weight: 400;
88
- padding: 0px 10px;
89
- background-color: #df4232;
90
- }
91
-
92
- &.success {
93
- background-color: #5eca8f;
94
- }
95
-
96
- &.label {
97
- font-size: 14px;
98
- line-height: 20px;
99
- padding: 0 5px;
100
- display: inline-block;
101
- font-weight: normal;
102
- color: rgb(119, 119, 119);
103
-
104
- &.label-default, &.label-success, &.label-warning, &.label-danger {
105
- color: #fff;
106
- }
107
- }
108
- }
109
-
110
- input, textarea, select {
111
- border: 1px solid #cccccc;
112
- border-radius: 0;
113
- background: #fff;
114
- line-height: 28px;
115
- height: 30px;
116
- font-size: 14px;
117
- padding: 0 5px;
118
- outline-color: #7dc7cd;
119
-
120
- &::-webkit-input-placeholder {
121
- color: #aaaaaa;
122
- font-weight: strong;
123
- font-style: italic;
124
- }
125
-
126
- &:-moz-placeholder {
127
- /* Firefox 18- */
128
- color: #aaaaaa;
129
- font-weight: strong;
130
- font-style: italic;
131
- }
132
-
133
- &::-moz-placeholder {
134
- /* Firefox 19+ */
135
- color: #aaaaaa;
136
- font-weight: strong;
137
- font-style: italic;
138
- }
139
-
140
- &:-ms-input-placeholder {
141
- color: #aaaaaa;
142
- font-weight: strong;
143
- font-style: italic;
144
- }
145
- }
146
-
147
- input[type=radio], input[type=checkbox] {
148
- height: 15px;
149
- line-height: 30px;
150
- }
151
-
152
- textarea {
153
- line-height: 16px;
154
- }
155
-
156
- button, input[type="submit"] {
157
- background: #00919d;
158
- color: #fff;
159
- text-transform: uppercase;
160
- font-size: 12px;
161
- padding: 10px 30px;
162
- border-radius: 14px;
163
- line-height: 12px;
164
- border: 0;
165
- transition: all 0.5s;
166
-
167
- &:hover {
168
- background: darken(#00919d, 10%);
169
- color: #fff;
170
- }
171
- }
172
-
173
- label {
174
- cursor: pointer;
175
- font-size: 100%;
176
- color: #585858;
177
- text-transform: none;
178
- font-weight: normal;
179
- }
180
-
181
- hr {
182
- border-color: #ccc;
183
- }
184
-
185
- table {
186
- width: 100%;
187
- font-size: 14px;
188
- font-weight: 300;
189
- border: 1px solid #f3f3f3;
190
- padding: 0 60px;
191
-
192
- @media ($phone) {
193
- padding: 0 5px;
194
- }
195
-
196
- th {
197
- background: #f3f3f3;
198
- color: #989898;
199
- font-size: 14px;
200
- font-weight: 700;
201
- text-transform: uppercase;
202
- padding: 10px 20px;
203
-
204
- @media ($phone) {
205
- padding: 5px;
206
- word-break: break-word;
207
- }
208
- }
209
-
210
- tr {
211
- border-bottom: 1px solid #f3f3f3;
212
-
213
- &:last-of-type {
214
- border: 0;
215
- }
216
- }
217
-
218
- td {
219
- padding: 20px;
220
-
221
- @media ($phone) {
222
- padding: 5px;
223
- word-break: break-word;
224
- }
225
- }
226
-
227
- &.mobile-data {
228
- > span {
229
- display: none;
230
- }
231
-
232
- @media ($phone) {
233
- padding: 0;
234
- display: block;
235
- line-height: 0;
236
- position: relative;
237
- font-size: 0;
238
- margin-bottom: 20px;
239
-
240
- > span {
241
- display: block;
242
- font-size: 40px;
243
- position: absolute;
244
- right: 0;
245
- bottom: -40px;
246
- cursor: pointer;
247
- color: #ccc;
248
- z-index: 10;
249
-
250
- &.left {
251
- right: auto;
252
- left: 0;
253
- }
254
-
255
- &.center {
256
- font-size: 20px;
257
- text-align: center;
258
- width: 100%;
259
- bottom: -20px;
260
- z-index: 5;
261
- }
262
- }
263
-
264
- tbody {
265
- display: inline-block;
266
- font-size: 0;
267
- width: 50%;
268
- }
269
-
270
- thead {
271
- display: inline-block;
272
- width: 50%;
273
- }
274
-
275
- tr {
276
- display: none;
277
- line-height: initial;
278
- width: 100%;
279
- }
280
-
281
- tr:first-of-type {
282
- display: inline-block;
283
-
284
- th, td {
285
- width: 100% !important;
286
- box-sizing: border-box;
287
- }
288
- }
289
-
290
- td, th {
291
- padding: 5px;
292
- display: block;
293
- width: 100%;
294
- word-break: break-word;
295
- }
296
- }
297
- }
298
-
299
- &.transparent {
300
- border: 0;
301
- background-color: transparent;
302
-
303
- th, td, tr {
304
- border: 0;
305
- background-color: transparent;
306
- }
307
-
308
- th {
309
- font-weight: 700;
310
- text-transform: none;
311
- color: #585858 ;
312
- }
313
-
314
- th, td {
315
- padding: 5px;
316
-
317
- @media ($phone) {
318
- padding: 2px;
319
- font-size: 10px;
320
- }
321
- }
322
-
323
- td {
324
- font-weight: normal;
325
- color: #777777;
326
- }
327
- }
328
- }
329
-
330
- table.transparent {
331
- margin-bottom: 30px;
332
-
333
- @media ($phone) {
334
- th {
335
- width: 40%;
336
- word-break: break-all;
337
- }
338
-
339
- td {
340
- width: 60%;
341
- word-break: break-all;
342
- }
343
- }
344
- }
345
-
346
- table.subtitle {
347
- margin-bottom: 10px;
348
- th, td {
349
- padding-left: 0 !important;
350
- }
351
- }
352
-
353
- .container {
354
- max-width: 1200px;
355
- width: 100%;
356
- margin: 0 auto;
357
- }
358
-
359
- .text-uppercase {
360
- text-transform: uppercase;
361
- }
362
-
363
- .text-capitalize {
364
- text-transform: capitalize;
365
- }
366
-
367
- .column-block {
368
- padding: 30px 15px;
369
- border-radius: 20px;
370
- border: 1px solid #ccc;
371
- background: #fff;
372
- width: 100%;
373
- margin-bottom: 50px;
374
-
375
- &.square {
376
- border-radius: 0;
377
- box-shadow: 1px 3px 1px rgba(0, 0, 0, .11);
378
- border: 0;
379
- }
380
- }
381
-
382
- .info-wrapper {
383
- border: 1px solid #ccc;
384
- }
385
-
386
- .fix-position {
387
- padding-left: 20px;
388
-
389
- @media ($phone) {
390
- padding-left: 15px;
391
- }
392
- }
393
-
394
- > .row {
395
- > .col-md-5 {
396
- @media ($phone) {
397
- padding: 0 15px 0 25px;
398
- }
399
- }
400
- }
401
-
402
- .toggler {
403
- border-bottom: 1px solid #ddd;
404
- padding: 0 25px;
405
- font-size: 14px;
406
- line-height: 50px;
407
- max-height: 50px;
408
- overflow: hidden;
409
- transition: all 0.5s;
410
-
411
- @media ($phone) {
412
- padding: 0 10px;
413
- }
414
-
415
- &:last-of-type {
416
- border: 0;
417
- }
418
-
419
- &:hover {
420
- background-color: #f9f9f9;
421
- }
422
-
423
- &.toggled {
424
- background-color: #f9f9f9;
425
- max-height: 1500px;
426
-
427
- .first-line {
428
- font-weight: 900;
429
-
430
- > .fa-caret-down {
431
- display: none;
432
- }
433
-
434
- > .fa-caret-up {
435
- display: inline-block;
436
- }
437
- }
438
-
439
- }
440
-
441
- .fa-star {
442
- color: #00919d;
443
- }
444
-
445
- .first-line {
446
- cursor: pointer;
447
-
448
- @media ($phone) {
449
- font-size: 12px;
450
- }
451
-
452
- > .fa-caret-down {
453
- float: right;
454
- margin-left: 30px;
455
- display: inline-block;
456
- line-height: 50px;
457
- color: #999;
458
- }
459
-
460
- > .fa-caret-up {
461
- float: right;
462
- margin-left: 30px;
463
- display: none;
464
- line-height: 50px;
465
- color: #999;
466
- }
467
-
468
- a {
469
- float: right;
470
- margin-left: 30px;
471
-
472
- &.default-payment-method, &.non-default-payment-method {
473
- float: left;
474
- margin-left: 0;
475
- margin-right: 10px;
476
- }
477
- }
478
- }
479
-
480
- .expires {
481
- float: right;
482
-
483
- @media ($phone) {
484
- display: none;
485
- }
486
- }
487
-
488
- .toggle {
489
- .actions {
490
- margin: 0 -25px;
491
- padding: 0 25px;
492
- text-align: center;
493
- border-bottom: 1px solid #ccc;
494
- margin-bottom: 30px;
495
-
496
- @media ($phone) {
497
- margin: 0 -10px;
498
- padding: 0 10px;
499
- }
500
-
501
- a {
502
- margin: 0 5px;
503
- text-transform: uppercase;
504
- font-size: 12px;
505
-
506
- i {
507
- margin: 0 5px 0 0;
508
- }
509
-
510
- @media ($phone) {
511
- width: 32%;
512
- display: inline-block;
513
- text-align: center;
514
- margin: 0;
515
- font-size: 10px;
516
- }
517
- }
518
- }
519
-
520
- table {
521
- line-height: initial;
522
- margin: 0 0 30px;
523
- }
524
- }
525
- }
526
-
527
- .filter-select {
528
- margin: 10px 20px 30px 0;
529
- }
530
-
531
- hr.breathe {
532
- margin-top: 45px;
533
- margin-bottom: 45px;
534
- }
535
-
536
- form[id^="new_tag_definition"] {
537
- div:first-of-type {
538
- margin-bottom: 0;
539
- }
540
-
541
- #object_types {
542
- div {
543
- margin-bottom: 15px;
544
-
545
- .tag-definition-add-link {
546
- padding-right: 0;
547
- }
548
-
549
- .tag-definition-select {
550
- display: inline-block;
551
- width: calc(unquote("100% - 25px"));
552
- }
553
- }
554
- }
555
- }
556
-
557
- /* The switch - the box around the slider */
558
- .switch-half-container {
559
- padding-top: 9px !important;
560
- }
561
-
562
- .switch-half {
563
- position: relative;
564
- display: inline-block;
565
- margin-bottom: 0;
566
- width: 20px;
567
- height: 12px;
568
-
569
-
570
- /* Hide default HTML checkbox */
571
- input {display:none;}
572
-
573
- /* The slider */
574
- .slider {
575
- position: absolute;
576
- cursor: pointer;
577
- top: 0;
578
- left: 0;
579
- right: 0;
580
- bottom: 0;
581
- background-color: #ccc;
582
- -webkit-transition: .4s;
583
- transition: .4s;
584
- }
585
-
586
- .slider:before {
587
- position: absolute;
588
- content: "";
589
- height: 10px;
590
- width: 10px;
591
- left: 1px;
592
- bottom: 1px;
593
- background-color: white;
594
- -webkit-transition: .4s;
595
- transition: .4s;
596
- }
597
-
598
- input:checked + .slider {
599
- background-color: #00919d;
600
- }
601
-
602
- input:focus + .slider {
603
- box-shadow: 0 0 1px #2196F3;
604
- }
605
-
606
- input:checked + .slider:before {
607
- -webkit-transform: translateX(8px);
608
- -ms-transform: translateX(8px);
609
- transform: translateX(8px);
610
- }
611
- }
612
-
613
- .switch {
614
- position: relative;
615
- display: inline-block;
616
- width: 36px;
617
- height: 20px;
618
-
619
-
620
- /* Hide default HTML checkbox */
621
- input {display:none;}
622
-
623
- /* The slider */
624
- .slider {
625
- position: absolute;
626
- cursor: pointer;
627
- top: 0;
628
- left: 0;
629
- right: 0;
630
- bottom: 0;
631
- background-color: #ccc;
632
- -webkit-transition: .4s;
633
- transition: .4s;
634
- }
635
-
636
- .slider:before {
637
- position: absolute;
638
- content: "";
639
- height: 16px;
640
- width: 16px;
641
- left: 2px;
642
- bottom: 2px;
643
- background-color: white;
644
- -webkit-transition: .4s;
645
- transition: .4s;
646
- }
647
-
648
- input:checked + .slider {
649
- background-color: #00919d;
650
- }
651
-
652
- input:focus + .slider {
653
- box-shadow: 0 0 1px #2196F3;
654
- }
655
-
656
- input:checked + .slider:before {
657
- -webkit-transform: translateX(16px);
658
- -ms-transform: translateX(16px);
659
- transform: translateX(16px);
660
- }
661
- }
662
-
663
- /* Rounded sliders */
664
- .slider.round {
665
- border-radius: 26px;
666
- }
667
-
668
- .slider.round:before {
669
- border-radius: 50%;
670
- }
671
-
672
- .ui-helper-hidden-accessible {
673
- display: none;
674
- }
675
-
676
- .autocomplete-allowed-user, .autocomplete-override {
677
- list-style: none;
678
- padding-left: 10px;
679
- }
680
-
681
- .plugin-suggestion{
682
- white-space: nowrap;
683
- }
684
-
685
- .toggle-container{
686
- padding-right: 0;
687
- width: 55px;
688
- }
689
-
690
- .toggle-label {
691
- text-align: left !important;
692
- }
693
-
694
- .spinner {
695
- padding-top: 3.5px;
696
- width: 40px;
697
- color: #00919d;
698
- display: none;
699
- }
700
-
701
- .footer-notice {
702
- .modal-footer {
703
- text-align: left;
704
- padding-bottom: 0;
705
-
706
- .alert {
707
- margin-bottom: 0;
708
-
709
- .label-default {
710
- color: white;
711
- }
712
- }
713
- }
714
- }
715
-
716
- .copy-icon {
717
- cursor: pointer;
718
- }
719
-
720
- .switch-tenant-active {
721
- color: #00919d;
722
- }
723
-
724
- /* Required for https://github.com/killbill/killbill-admin-ui/issues/262 */
725
- .ui-autocomplete {
726
- position: absolute;
727
- z-index: 1000;
728
- float: left;
729
- display: none;
730
- min-width: 160px;
731
- padding: 4px 0;
732
- margin: 2px 0 0 0;
733
- list-style: none;
734
- background-color: #ffffff;
735
- border-color: rgba(0, 0, 0, 0.2);
736
- border-style: solid;
737
- border-width: 1px;
738
- border-radius: 5px;
739
- box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
740
- background-clip: padding-box;
741
-
742
- .ui-menu-item {
743
- display: block;
744
- padding: 3px 15px;
745
- clear: both;
746
- font-weight: normal;
747
- line-height: 18px;
748
- color: #555555;
749
- white-space: nowrap;
750
-
751
- .ui-state-active, .ui-state-hover {
752
- color: #ffffff;
753
- text-decoration: none;
754
- background-color: #0088cc;
755
- border-radius: 0px;
756
- -webkit-border-radius: 0px;
757
- -moz-border-radius: 0px;
758
- background-image: none;
759
- }
760
- }
761
- }
762
-
763
- .ui-helper-hidden-accessible {
764
- display: none;
765
- }