kuppayam 0.2.2.pre.materialize → 0.2.3.pre.materialize

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2e3c09738450913c37f7e62321c2cd4b5b4cb6daf71e629b57f85575c1a4af0
4
- data.tar.gz: b3a6b53b892fa02ca93b89abdac902a2098203cb51a3ed1509d3466f90b36538
3
+ metadata.gz: b5989cc34e58716e632c69ab84dd4998b72ba20d69e957f1bf76758874af7116
4
+ data.tar.gz: 8f916b5ab4ec456b10c437d5b852a508f2c666554b7d26ff91191ec593229dd6
5
5
  SHA512:
6
- metadata.gz: 2d91584df35dcc5a3574221e4a8a4dc8592b62856d6bdd2c55b465b4d985d6975736fd2714a648a4d81c5a0b7a34d7fb90ec7f789001eb59ea2efd545a7cfa57
7
- data.tar.gz: b84d38f0da4f30a7b647a262975865266e1bc509a5ff19704059cf27903da33050daceae55060326e9f50f52f1f992582ef7332c9298aa5a0f6983b84b6f5349
6
+ metadata.gz: ecc13904113bce3c5f289a5c684f8922bf1d8b824f0bb934042331db707b6ed40687b658425777074f53a0d739c95a8e114731cfb74a68a64ea639ebc06f2e7c
7
+ data.tar.gz: a33cf4a7203818fce0244442bbffbb120ab3711d5d496576deb82d950fcf99aa82f8fc320d59125f8f60706173d33ee66b638c2b2d7c83ea841c6b1e735a90f3
@@ -13,6 +13,7 @@ function sendAjaxRequest(url, mType){
13
13
  var imageUploadModalId = "div_modal_image_upload";
14
14
  var genericModalId = "div_modal_generic";
15
15
  var largeModalId = "div_modal_large";
16
+ var fullScreenModalId = "div_modal_fullscreen";
16
17
  var messageModalId = "div_modal_message";
17
18
 
18
19
  // Call this function by passing model Id, heading and a bodyContent.
@@ -75,6 +76,19 @@ function showLargeModal(heading, bodyContent, showHeading){
75
76
  }, 1000);
76
77
  }
77
78
 
79
+ // Call this function by passing model Id, heading and a bodyContent.
80
+ // it will pop up bootstrap 3 modal.
81
+ function showFullScreenModal(bodyContent){
82
+ $('#' + fullScreenModalId + ' div.modal-body-main').html(bodyContent);
83
+ $('#' + fullScreenModalId).modal({show: true, backdrop: 'static', keyboard: false});
84
+ $('#' + fullScreenModalId + ' .modal-header').hide();
85
+
86
+ setTimeout(function() {
87
+ $('#' + fullScreenModalId).modal('handleUpdate'); //Update backdrop on modal show
88
+ $('#' + fullScreenModalId).scrollTop(0); //reset modal to top position
89
+ }, 1000);
90
+ }
91
+
78
92
  // Call this function by passing heading and a message.
79
93
  // it will pop up bootstrap 3 modal which shows the heading and message as content body.
80
94
  function showMessageModal(heading, message, modalId){
@@ -109,6 +123,10 @@ function closeLargeModal(modalId){
109
123
  $('#' + largeModalId).modal('hide');
110
124
  }
111
125
 
126
+ function closeFullScreenModal(){
127
+ $('#' + fullScreenModalId).modal('hide');
128
+ }
129
+
112
130
  function closeMessageModal(modalId){
113
131
  $('#' + messageModalId).modal('hide');
114
132
 
@@ -0,0 +1,55 @@
1
+ /* Style for Freezing Table Columns */
2
+
3
+ .table-scroll {
4
+ position:relative;
5
+ /*max-width:600px;*/
6
+ margin:auto;
7
+ overflow:hidden;
8
+ }
9
+ .table-wrap {
10
+ width:100%;
11
+ overflow:auto;
12
+ }
13
+ .table-scroll table {
14
+ width:100%;
15
+ margin:auto;
16
+ border-collapse:separate;
17
+ border-spacing:0;
18
+ }
19
+ .table-scroll th, .table-scroll td {
20
+ padding:5px 10px;
21
+ white-space:nowrap;
22
+ vertical-align:top;
23
+ }
24
+
25
+ .table-clone {
26
+ position:absolute;
27
+ top:0;
28
+ left:0;
29
+ min-width: 100% !important;
30
+ }
31
+ .table-clone th, .table-clone td {
32
+ visibility:hidden;
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ max-width: 80px !important;
37
+ }
38
+
39
+ .table-clone td, .table-clone th {
40
+ border-color:transparent
41
+ }
42
+ .table-clone tbody th {
43
+ visibility:visible;
44
+ color:red;
45
+ }
46
+ .table-clone .frozen {
47
+ background:#fafafa;
48
+ visibility:visible;
49
+ }
50
+ .table-clone thead, .table-clone tfoot{background:transparent;}
51
+
52
+
53
+ .table-full.table-clone thead tr > th.fixed-side:last-child {
54
+ width: 150px;
55
+ }
@@ -0,0 +1,13 @@
1
+ /* A usefull class to overlay elements and make them appear fullscreen */
2
+ .kuppayam-overlay {
3
+ position: fixed;
4
+ width: 100%;
5
+ height: 100%;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ background: rgba(51,51,51,0.7);
11
+ z-index: 10;
12
+ }
13
+
@@ -20,6 +20,8 @@
20
20
  *= require materialize/custom.scss
21
21
 
22
22
  *= require general/handycss.css
23
+ *= require general/handyoverlay.css
24
+ *= require general/frozen-tables.css
23
25
 
24
26
  *= require wysihtml5/src/bootstrap-wysihtml5.css
25
27
  *= require multiselect/css/multi-select.css
@@ -17,7 +17,11 @@
17
17
  *= require xenon-forms.css
18
18
  *= require xenon-components.css
19
19
  *= require xenon-skins.css
20
+
20
21
  *= require general/handycss.css
22
+ *= require general/handyoverlay.css
23
+ *= require general/frozen-tables.css
24
+
21
25
  *= require xenon/custom.css
22
26
  *= require wysihtml5/src/bootstrap-wysihtml5.css
23
27
  *= require multiselect/css/multi-select.css
@@ -87,4 +87,13 @@ module RenderHelper
87
87
  }
88
88
  end
89
89
  end
90
+
91
+ def render_current_action
92
+ respond_to do |format|
93
+ format.html {}
94
+ format.js {
95
+ render params[:action]
96
+ }
97
+ end
98
+ end
90
99
  end
@@ -67,6 +67,18 @@
67
67
  </div><!-- /.modal-dialog -->
68
68
  </div><!-- /.modal -->
69
69
 
70
+ <div id="div_modal_fullscreen" class="modal">
71
+ <div class="modal-dialog modal-lg" style="width: 99% !important;margin:10px !important">
72
+ <div class="modal-content">
73
+ <div class="modal-header">
74
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
75
+ <h3 class="modal-title">Modal title</h3>
76
+ </div>
77
+ <div class="modal-body-main"></div>
78
+ </div><!-- /.modal-content -->
79
+ </div><!-- /.modal-dialog -->
80
+ </div><!-- /.modal -->
81
+
70
82
  <div id="div_modal_message" class="modal fade">
71
83
  <div class="modal-dialog">
72
84
  <div class="modal-content">
@@ -1,3 +1,3 @@
1
1
  module Kuppayam
2
- VERSION = '0.2.2.pre.materialize'
2
+ VERSION = '0.2.3.pre.materialize'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuppayam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.pre.materialize
4
+ version: 0.2.3.pre.materialize
5
5
  platform: ruby
6
6
  authors:
7
7
  - kpvarma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -523,7 +523,9 @@ files:
523
523
  - app/assets/javascripts/materialize/vendors.min.js
524
524
  - app/assets/sketches/defaults.sketch
525
525
  - app/assets/sketches/logo.sketch
526
+ - app/assets/stylesheets/general/frozen-tables.css
526
527
  - app/assets/stylesheets/general/handycss.css
528
+ - app/assets/stylesheets/general/handyoverlay.css
527
529
  - app/assets/stylesheets/jquery_and_family.css
528
530
  - app/assets/stylesheets/kuppayam-materialize.css
529
531
  - app/assets/stylesheets/kuppayam-xenon.css