zuora_connect_ui 0.1.7 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c08838df29b6d1a55de752eb6d9ddb56dfa2452e
4
- data.tar.gz: dc9171a065f43b45fa33a51a496df17b819a506d
3
+ metadata.gz: b15db5e5bc714c83a7a878100b3eafb1892e01b7
4
+ data.tar.gz: f51f07b1a557b601d6c74202efb7c79cf2baa762
5
5
  SHA512:
6
- metadata.gz: 88f0bd784ccae55212cf27234e0640bdccc0c515e8b9ce43d77efbb453c871127d88a1ecb42f16625d249c6fe4db90b5ea55d48ace1e097ae7f1f712c7ddefaf
7
- data.tar.gz: a3cd751d7ac9bf73d72fba8521cd3f4abe779915bdd467d1ef716797591df8efebff1b261e26db7eaeeb42a08dfce71836fb7350131cea2a6a034b487d78297c
6
+ metadata.gz: 9384312078e4d703880880a154f3253201dac76f9f2534784b92d4fd7fbf412e0e2741496f8ff062bd74646a82c9e6d96150d370eaca1ccf2068976e6e3d8a4c
7
+ data.tar.gz: 44264c4751c22a8f8af89684b2177757ebd0df46a23082902c252afc931a4b0a46780b7ba5dbd896c052e1d6d3605e17ea6663b85562b29006ca650ae820eca9
@@ -25,10 +25,11 @@
25
25
  //= require dataTables/jquery.dataTables
26
26
  //= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
27
27
  //= require dataTables/extras/dataTables.responsive
28
- //= require dataTables/extras/dataTables.responsive
29
28
  //= require dataTables/extras/dataTables.colReorder
30
29
  //= require dataTables/extras/dataTables.select
31
30
  //
32
31
  //
32
+ //= require zuora_connect_ui/app
33
+ //= require zuora_connect_ui/datatable
33
34
  //= require zuora_connect_ui/input
34
35
  //
@@ -0,0 +1,16 @@
1
+ const APP_NAME = '<%= Rails.application.class.parent_name %>';
2
+
3
+ function debounce(func, wait, immediate) {
4
+ var timeout;
5
+ return function() {
6
+ var context = this, args = arguments;
7
+ var later = function() {
8
+ timeout = null;
9
+ if (!immediate) func.apply(context, args);
10
+ };
11
+ var callNow = immediate && !timeout;
12
+ clearTimeout(timeout);
13
+ timeout = setTimeout(later, wait);
14
+ if (callNow) func.apply(context, args);
15
+ };
16
+ };
@@ -18,7 +18,7 @@ h1 {
18
18
  font-size: 1.625rem;
19
19
  line-height: 2.25rem;
20
20
  font-weight: 600;
21
- letter-spacing: .0125rem;
21
+ letter-spacing: 0.0125rem;
22
22
  }
23
23
  h2 {
24
24
  color: $primary;
@@ -33,7 +33,7 @@ h3 {
33
33
  }
34
34
  h4 {
35
35
  color: $primary;
36
- font-size: .75rem;
36
+ font-size: 0.75rem;
37
37
  line-height: 1rem;
38
38
  font-weight: 600;
39
39
  letter-spacing: -0.0125rem;
@@ -48,6 +48,23 @@ select {
48
48
  -moz-appearance: none;
49
49
  }
50
50
 
51
+ .zc-spin {
52
+ display: inline-block;
53
+ -webkit-animation: zc-spin 2s infinite linear;
54
+ animation: zc-spin 2s infinite linear;
55
+ }
56
+
57
+ @keyframes zc-spin {
58
+ 0% {
59
+ -webkit-transform: rotate(0deg);
60
+ transform: rotate(0deg);
61
+ }
62
+ 100% {
63
+ -webkit-transform: rotate(-359deg);
64
+ transform: rotate(-359deg);
65
+ }
66
+ }
67
+
51
68
  // Potential to remove focus ring from select
52
69
  // :-moz-focusring {
53
70
  // color: transparent;
@@ -61,8 +78,8 @@ select {
61
78
  text-align: center;
62
79
  }
63
80
 
64
- .center{
65
- text-align: center
81
+ .center {
82
+ text-align: center;
66
83
  }
67
84
 
68
85
  #content {
@@ -81,8 +98,7 @@ select {
81
98
  padding: 6px 0;
82
99
  box-shadow: 0 1px 8px -1px $neutral-shadow;
83
100
  border-radius: 0;
84
- font-size: .875rem;
85
-
101
+ font-size: 0.875rem;
86
102
 
87
103
  // working on the arrow for dropdowns
88
104
  // &:before {
@@ -100,10 +116,10 @@ select {
100
116
 
101
117
  > li {
102
118
  &.divider {
103
- margin: .5rem;
119
+ margin: 0.5rem;
104
120
  }
105
121
  > a {
106
- padding: .25rem .75rem;
122
+ padding: 0.25rem 0.75rem;
107
123
  // If we aren't using Font Awesome or Glyphicons, this next block can all go
108
124
  span.fa {
109
125
  margin-right: 10px;
@@ -117,7 +133,7 @@ select {
117
133
  color: $dropdown-link-color;
118
134
  }
119
135
  }
120
- &:hover{
136
+ &:hover {
121
137
  span.glyphicons {
122
138
  &:before {
123
139
  color: $dropdown-link-hover-color;
@@ -12,31 +12,34 @@
12
12
 
13
13
  label {
14
14
  white-space: nowrap;
15
- padding: 0rem .5rem;
15
+ padding: 0rem 0.5rem;
16
16
  }
17
17
  }
18
18
 
19
19
  .icon {
20
20
  position: relative;
21
- top: .125rem;
21
+ top: 0.125rem;
22
22
  font-size: 15px;
23
23
  line-height: 1.25rem;
24
24
  color: $neutral-2;
25
25
  }
26
- &:hover .icon, &:focus .icon {
26
+ &:hover .icon,
27
+ &:focus .icon {
27
28
  color: $neutral-1;
28
29
  }
29
30
  }
30
31
  }
31
32
 
32
- td.actions.center, th.actions.center {
33
+ td.actions.center,
34
+ th.actions.center {
35
+ vertical-align: middle;
33
36
  width: 0px;
34
37
  padding: 0rem 0rem 0rem 8px;
35
38
 
36
39
  .table-btn {
37
40
  font-size: 1.25rem;
38
- padding: .375rem;
39
- margin: .375rem;
41
+ padding: 0.375rem;
42
+ margin: 0.375rem;
40
43
  }
41
44
  }
42
45
 
@@ -44,47 +47,32 @@ td.actions.center, th.actions.center {
44
47
  padding-left: 15px;
45
48
  }
46
49
 
47
- .tools_table.children.table-bordered>thead>tr {
50
+ .tools_table.children.table-bordered > thead > tr {
48
51
  color: black !important;
49
52
  background-color: inherit;
50
53
  background-image: none;
51
54
  }
52
55
 
53
- // .table_search input[type="search"]{
54
- // margin-left: 10px;
55
- // height: 34px;
56
- // padding: 6px 12px;
57
- // font-size: 12px;
58
- // line-height: 1.42857143;
59
- // color: #555;
60
- // background-color: #fff;
61
- // background-image: none;
62
- // border: 1px solid #ccc;
63
- // border-radius: 4px;
64
- // -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
65
- // box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
66
- // -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
67
- // transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
68
- // }
69
-
70
- select[multiple], select[size] {
56
+ select[multiple],
57
+ select[size] {
71
58
  height: auto !important;
72
59
  }
73
60
  .select2-selection--multiple .select2-search {
74
61
  width: initial;
75
- position: initial
62
+ position: initial;
76
63
  }
77
- .has-feedback .select2 + .glyphicon.form-control-feedback{
64
+ .has-feedback .select2 + .glyphicon.form-control-feedback {
78
65
  top: 19px;
79
66
  right: 15px;
80
67
  }
81
- .has-error .select2-dropdown, .has-error .select2-selection {
68
+ .has-error .select2-dropdown,
69
+ .has-error .select2-selection {
82
70
  border-color: #a94442 !important;
83
71
  }
84
72
 
85
- div.dataTables_processing{
73
+ div.dataTables_processing {
86
74
  background-color: white !important;
87
- opacity: .8;
75
+ opacity: 0.8;
88
76
  z-index: 20;
89
77
  top: inherit;
90
78
  left: inherit;
@@ -99,6 +87,7 @@ div.dataTables_processing{
99
87
  }
100
88
 
101
89
  table.dataTable {
90
+ width: 100%;
102
91
  margin-top: 0px !important;
103
92
  margin-bottom: 0px !important;
104
93
  border-bottom: 1px solid $neutral-3;
@@ -106,23 +95,25 @@ table.dataTable {
106
95
  > thead > tr > th {
107
96
  background-color: $neutral-4;
108
97
  text-transform: uppercase;
109
- font-size: .75rem;
98
+ font-size: 0.75rem;
110
99
  font-weight: 600;
111
- padding: 1rem 4rem 1rem .5rem;
100
+ padding: 1rem 4rem 1rem 0.5rem;
112
101
  border-top: 1px solid $neutral-3 !important;
113
102
  border-bottom: 1px solid $neutral-3;
114
103
 
115
- &.sorting:after, &.sorting_asc:after, &.sorting_desc:after {
104
+ &.sorting:after,
105
+ &.sorting_asc:after,
106
+ &.sorting_desc:after {
116
107
  position: absolute;
117
108
  top: unset;
118
109
  bottom: 1rem;
119
- right: .5rem;
110
+ right: 0.5rem;
120
111
  font-family: webicons;
121
112
  opacity: 1;
122
113
  color: $primary;
123
114
  }
124
115
 
125
- &.sorting{
116
+ &.sorting {
126
117
  &:after {
127
118
  content: "";
128
119
  }
@@ -139,10 +130,16 @@ table.dataTable {
139
130
  }
140
131
  }
141
132
  }
142
- > tbody > tr > td {
143
- padding: 1rem .5rem;
144
- border-top: none;
145
- vertical-align: middle;
133
+ > tbody > tr {
134
+ &.selected {
135
+ background: $neutral-3;
136
+ }
137
+
138
+ > td {
139
+ padding: 1rem 0.5rem;
140
+ border-top: none;
141
+ vertical-align: middle;
142
+ }
146
143
  }
147
144
  }
148
145
 
@@ -158,7 +155,7 @@ div.dataTables_scrollBody table.dataTable thead th.sorting_desc:after {
158
155
  justify-content: space-between;
159
156
 
160
157
  .btn-group .btn + .btn {
161
- margin-left: .5rem;
158
+ margin-left: 0.5rem;
162
159
  }
163
160
 
164
161
  .dropdown {
@@ -170,13 +167,18 @@ div.dataTables_scrollBody table.dataTable thead th.sorting_desc:after {
170
167
  }
171
168
 
172
169
  .table-btn {
173
- float: left;
170
+ float: left;
171
+
172
+ &:hover,
173
+ &.active {
174
+ color: $primary;
175
+ }
174
176
  }
175
177
 
176
178
  .search-wrapper {
177
179
  border-left: 1px solid $neutral-3;
178
180
  display: flex;
179
- margin: .5rem 0;
181
+ margin: 0.5rem 0;
180
182
  width: 2.5rem;
181
183
  overflow: hidden;
182
184
 
@@ -185,13 +187,13 @@ div.dataTables_scrollBody table.dataTable thead th.sorting_desc:after {
185
187
  transition: width 0.3s ease-in-out;
186
188
 
187
189
  .table-btn {
188
- margin: 0 .5rem;
190
+ margin: 0 0.5rem;
189
191
  }
190
192
 
191
193
  .form-control[name="table[search]"] {
192
194
  line-height: 1rem;
193
- padding: .5rem 0;
194
- font-size: .875rem;
195
+ padding: 0.5rem 0;
196
+ font-size: 0.875rem;
195
197
  height: 100%;
196
198
  border: none;
197
199
  box-shadow: none;
@@ -210,39 +212,41 @@ div.dataTables_scrollBody table.dataTable thead th.sorting_desc:after {
210
212
  }
211
213
  }
212
214
 
213
- // Workflow Context Menu
214
- ul.context-menu-list {
215
- border-radius: 2px;
216
- box-shadow: 0 1px 8px -1px $neutral-shadow; // TODO: replace with variable name
217
- font-size: .875rem;
218
- min-width: 8rem;
219
-
220
- .context-menu-item {
221
- color: $support-1;
222
- padding: .25rem .75rem;
223
-
224
- &.context-menu-hover {
225
- background-color: $neutral-3;
226
- }
227
- }
228
- }
215
+ // // Workflow Context Menu
216
+ // ul.context-menu-list {
217
+ // border-radius: 2px;
218
+ // box-shadow: 0 1px 8px -1px $neutral-shadow; // TODO: replace with variable name
219
+ // font-size: 0.875rem;
220
+ // min-width: 8rem;
221
+
222
+ // .context-menu-item {
223
+ // color: $support-1;
224
+ // padding: 0.25rem 0.75rem;
225
+
226
+ // &.context-menu-hover {
227
+ // background-color: $neutral-3;
228
+ // }
229
+ // }
230
+ // }
229
231
 
230
- .context-menu-action {
231
- padding: 2px;
232
- font-size: 1.25rem;
233
- line-height: 1rem;
234
- border: none;
235
- color: $support-1;
236
- }
232
+ // .context-menu-action {
233
+ // padding: 2px;
234
+ // font-size: 1.25rem;
235
+ // line-height: 1rem;
236
+ // border: none;
237
+ // color: $support-1;
238
+ // }
237
239
 
238
- .table_footer {
239
- padding: .75rem .5rem;
240
+ .table-footer {
241
+ width: 100%;
242
+ padding: 0.75rem 0.5rem;
240
243
  display: flex;
241
244
  flex-direction: row;
242
245
  justify-content: space-between;
243
246
  align-items: center;
244
247
 
245
- > .dataTables_info, .dataTables_paginate {
248
+ > .dataTables_info,
249
+ .dataTables_paginate {
246
250
  flex: 1;
247
251
  }
248
252
 
@@ -266,20 +270,22 @@ ul.context-menu-list {
266
270
  color: $neutral-4;
267
271
  }
268
272
  &.disabled {
269
- a, a:hover, a:focus {
273
+ a,
274
+ a:hover,
275
+ a:focus {
270
276
  color: $neutral-2;
271
277
  background-color: none;
272
278
  cursor: not-allowed;
273
279
  }
274
280
  }
275
- &.first, &.last {
281
+ &.first,
282
+ &.last {
276
283
  display: none;
277
284
  }
278
285
  }
279
-
280
286
  }
281
287
 
282
- .table-bordered .small>tbody>tr>td {
288
+ .table-bordered .small > tbody > tr > td {
283
289
  padding-top: 1px;
284
290
  padding-bottom: 1px;
285
291
  padding-left: 1px;
@@ -1,75 +1,75 @@
1
1
  .datepicker {
2
- padding: 0 1rem .5rem 1rem;
2
+ padding: 0 1rem 0.5rem 1rem;
3
3
  }
4
4
 
5
5
  .datepicker-switch,
6
6
  .datepicker .prev,
7
7
  .datepicker .next {
8
- padding: 1rem 0;
8
+ padding: 1rem 0;
9
9
  }
10
10
 
11
11
  .datepicker-switch {
12
- font-size: .9rem;
13
- font-weight: 400;
14
- min-width: 10rem;
12
+ font-size: 0.9rem;
13
+ font-weight: 400;
14
+ min-width: 10rem;
15
15
  }
16
16
 
17
17
  .datepicker .prev,
18
- .datepicker .next, {
19
- color: $support-1;
20
- font-size: .7rem;
21
- font-weight: 700;
18
+ .datepicker .next {
19
+ color: $support-1;
20
+ font-size: 0.7rem;
21
+ font-weight: 700;
22
22
  }
23
23
 
24
24
  .datepicker .prev:hover,
25
25
  .datepicker .next:hover,
26
26
  .datepicker .datepicker-switch:hover {
27
- background: $neutral-4;
27
+ background: $neutral-4;
28
28
  }
29
29
 
30
30
  .datepicker .dow {
31
- font-size: .75rem;
32
- font-weight: 400;
33
- color: rgb(110, 124, 137);
34
- padding-top: 0;
35
- padding-bottom: .75rem;
31
+ font-size: 0.75rem;
32
+ font-weight: 400;
33
+ color: rgb(110, 124, 137);
34
+ padding-top: 0;
35
+ padding-bottom: 0.75rem;
36
36
  }
37
37
 
38
38
  .datepicker table tr td.day {
39
- font-size: .75rem;
40
- border-radius: 0;
39
+ font-size: 0.75rem;
40
+ border-radius: 0;
41
41
 
42
- &:hover {
43
- background-color: $neutral-3;
44
- }
42
+ &:hover {
43
+ background-color: $neutral-3;
44
+ }
45
45
 
46
- &.active,
47
- &.active:hover {
48
- background-color: $support-1;
49
- background-image: none;
50
- }
46
+ &.active,
47
+ &.active:hover {
48
+ background-color: $support-1;
49
+ background-image: none;
50
+ }
51
51
  }
52
52
 
53
53
  .datepicker table tr td.disabled,
54
54
  .datepicker table tr td.disabled:hover {
55
- background: $neutral-2;
56
- color: #a5a3b6;
57
- cursor: not-allowed;
55
+ background: $neutral-2;
56
+ color: #a5a3b6;
57
+ cursor: not-allowed;
58
58
  }
59
59
 
60
60
  .zuo-datepicker.date {
61
- display: block;
61
+ display: block;
62
62
 
63
- .input-group-addon {
64
- font-size: 1.1rem;
65
- color: $support-1;
66
- background-color: transparent;
67
- border: none;
68
- padding: 1rem 0;
69
- position: absolute;
70
- top: 0;
71
- right: 0;
72
- width: unset;
73
- cursor: pointer;
74
- }
63
+ .input-group-addon {
64
+ font-size: 1.1rem;
65
+ color: $support-1;
66
+ background-color: transparent;
67
+ border: none;
68
+ padding: 1rem 0;
69
+ position: absolute;
70
+ top: 0;
71
+ right: 0;
72
+ width: unset;
73
+ cursor: pointer;
74
+ }
75
75
  }
@@ -1,164 +1,170 @@
1
- .grid_view{
2
- .chic-let{
1
+ .grid_view {
2
+ width: 100%;
3
+
4
+ .chic-let {
3
5
  a:visited {
4
- color: #74818e;
6
+ color: #74818e;
5
7
  }
6
8
  a:link {
7
- color: #6C96A1;
9
+ color: #6c96a1;
8
10
  }
9
11
  a {
10
- color: #384B5D;
11
- text-decoration: none;
12
+ color: #384b5d;
13
+ text-decoration: none;
12
14
  }
13
15
  a {
14
- background-color: transparent;
16
+ background-color: transparent;
15
17
  }
16
18
  }
17
19
  @-webkit-keyframes iconHover {
18
20
  0% {
19
- opacity: 1; }
21
+ opacity: 1;
22
+ }
20
23
  100% {
21
- opacity: 0; } }
24
+ opacity: 0;
25
+ }
26
+ }
22
27
 
23
- @-webkit-keyframes contentHover {
28
+ @-webkit-keyframes contentHover {
24
29
  0% {
25
- opacity: 0; }
30
+ opacity: 0;
31
+ }
26
32
  100% {
27
- opacity: 1; } }
33
+ opacity: 1;
34
+ }
35
+ }
28
36
 
29
- .chic-let:hover .app-icon {
30
- -webkit-animation: iconHover .1s linear forwards;
31
- animation: iconHover .1s linear forwards;
37
+ .chic-let:hover .app-icon {
38
+ -webkit-animation: iconHover 0.1s linear forwards;
39
+ animation: iconHover 0.1s linear forwards;
32
40
  }
33
41
 
34
42
  .chic-let:hover .description {
35
- display: inline-block;
43
+ display: inline-block;
36
44
  }
37
45
 
38
46
  .chic-let:hover {
39
- box-shadow: 0 0 90px 10px rgba(0, 0, 0, 0.1);
40
- cursor: pointer;
41
- z-index: 25;
42
- }
43
- .chic-let:hover .card-content {
44
- width: 100%;
45
- margin-left: 0px;
46
- padding-right: 20px;
47
- -webkit-animation: contentHover .4s linear forwards;
48
- animation: contentHover .4s linear forwards;
49
- }
50
- .chic-let {
51
- font-family: "brandon-grotesque", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
52
- border: 1px solid #ebebeb;
53
- border-radius: 5px;
54
- padding: 7px 10px 10px 10px;
55
- position: relative;
56
- width: 32.333333%;
57
- height: 115px;
58
- margin: 5px;
59
- z-index:1;
60
- background: #ffffff;
61
- }
62
- .card {
63
- max-height: 325px;
64
- margin-top: 15px
65
- }
66
-
67
- .zuora-certified {
68
- background: #4d4d4d;
69
- padding: 5px 10px;
70
- border-radius: 5px 0 5px 0;
71
- color: #fff;
72
- position: absolute;
73
- top: 0;
74
- left: 0;
75
- box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.1);
76
- font-size: 8px;
77
- letter-spacing: .1em;
78
- display: block;
79
- width: 90px;
80
- float: left;
81
- z-index: 8;
82
- }
83
-
84
- .card a:link {
85
- color: #4d4d4d;
86
- }
87
-
88
-
89
- .chic-let .partner-logo {
90
- position: absolute;
91
- max-width: 60px;
92
- max-height: 40px;
93
- top: 10px;
94
- right: 10px;
95
- }
47
+ box-shadow: 0 0 90px 10px rgba(0, 0, 0, 0.1);
48
+ cursor: pointer;
49
+ z-index: 25;
50
+ }
51
+ .chic-let:hover .card-content {
52
+ width: 100%;
53
+ margin-left: 0px;
54
+ padding-right: 20px;
55
+ -webkit-animation: contentHover 0.4s linear forwards;
56
+ animation: contentHover 0.4s linear forwards;
57
+ }
58
+ .chic-let {
59
+ font-family: "brandon-grotesque", "Helvetica Neue", Helvetica, Arial,
60
+ sans-serif !important;
61
+ border: 1px solid #ebebeb;
62
+ border-radius: 5px;
63
+ padding: 7px 10px 10px 10px;
64
+ position: relative;
65
+ width: 32.333333%;
66
+ height: 115px;
67
+ margin: 5px;
68
+ z-index: 1;
69
+ background: #ffffff;
70
+ }
71
+ .card {
72
+ max-height: 325px;
73
+ margin-top: 15px;
74
+ }
96
75
 
97
- .chic-let .app-icon {
98
- height: 99px;
99
- width: 99px;
100
- border-radius: 5px;
101
- margin-right: 10px;
102
- position: relative;
103
- -webkit-animation: icon .5s linear forwards;
104
- animation: icon .5s linear forwards;
105
- }
76
+ .zuora-certified {
77
+ background: #4d4d4d;
78
+ padding: 5px 10px;
79
+ border-radius: 5px 0 5px 0;
80
+ color: #fff;
81
+ position: absolute;
82
+ top: 0;
83
+ left: 0;
84
+ box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.1);
85
+ font-size: 8px;
86
+ letter-spacing: 0.1em;
87
+ display: block;
88
+ width: 90px;
89
+ float: left;
90
+ z-index: 8;
91
+ }
106
92
 
93
+ .card a:link {
94
+ color: #4d4d4d;
95
+ }
107
96
 
108
- .chic-let .card-content {
109
- position: absolute;
110
- width: 244px;
111
- top: 40px;
112
- margin-left: 100px;
113
- }
97
+ .chic-let .partner-logo {
98
+ position: absolute;
99
+ max-width: 60px;
100
+ max-height: 40px;
101
+ top: 10px;
102
+ right: 10px;
103
+ }
114
104
 
115
- .chic-let .card-top{
116
- margin-bottom: -53px;
117
- }
105
+ .chic-let .app-icon {
106
+ height: 99px;
107
+ width: 99px;
108
+ border-radius: 5px;
109
+ margin-right: 10px;
110
+ position: relative;
111
+ -webkit-animation: icon 0.5s linear forwards;
112
+ animation: icon 0.5s linear forwards;
113
+ }
118
114
 
119
- .buttons{
120
- display: none;
121
- }
122
- .chic-let:hover .buttons{
123
- display: block;
124
- padding: 5px;
125
- width: 33.33%;
126
- float: right;
127
- }
115
+ .chic-let .card-content {
116
+ position: absolute;
117
+ width: 244px;
118
+ top: 40px;
119
+ margin-left: 100px;
120
+ }
128
121
 
122
+ .chic-let .card-top {
123
+ margin-bottom: -53px;
124
+ }
129
125
 
130
- .chic-let:hover .card-top {
131
- -webkit-animation: iconHover .1s linear forwards;
132
- animation: iconHover .1s linear forwards;
133
- }
126
+ .buttons {
127
+ display: none;
128
+ }
129
+ .chic-let:hover .buttons {
130
+ display: block;
131
+ padding: 5px;
132
+ width: 33.33%;
133
+ float: right;
134
+ }
134
135
 
135
- .chic-let .category {
136
- font-size: 9px;
137
- font-weight: 900;
138
- line-height: 7px;
139
- margin: 0 0 4px 0;
140
- color: #9EB1C0;
141
- letter-spacing: .06em;
142
- }
136
+ .chic-let:hover .card-top {
137
+ -webkit-animation: iconHover 0.1s linear forwards;
138
+ animation: iconHover 0.1s linear forwards;
139
+ }
143
140
 
144
- .chic-let .app-title {
145
- font-size: 17px;
146
- line-height: 18px;
147
- margin: -1px 0 0 0;
148
- font-weight: 300;
149
- }
150
- .text-uppercase, .initialism {
151
- text-transform: uppercase;
152
- }
141
+ .chic-let .category {
142
+ font-size: 9px;
143
+ font-weight: 900;
144
+ line-height: 7px;
145
+ margin: 0 0 4px 0;
146
+ color: #9eb1c0;
147
+ letter-spacing: 0.06em;
148
+ }
153
149
 
150
+ .chic-let .app-title {
151
+ font-size: 17px;
152
+ line-height: 18px;
153
+ margin: -1px 0 0 0;
154
+ font-weight: 300;
155
+ }
156
+ .text-uppercase,
157
+ .initialism {
158
+ text-transform: uppercase;
159
+ }
154
160
 
155
- .chic-let .description {
156
- font-size: 11px;
157
- line-height: 16px;
158
- display: none;
159
- color: #9EB1C0;
160
- font-weight: 300;
161
- }
161
+ .chic-let .description {
162
+ font-size: 11px;
163
+ line-height: 16px;
164
+ display: none;
165
+ color: #9eb1c0;
166
+ font-weight: 300;
167
+ }
162
168
 
163
169
  #watermark {
164
170
  position: absolute;
@@ -168,7 +174,6 @@
168
174
  margin-left: -10px;
169
175
  width: 100%;
170
176
  font-weight: 100;
171
- color: #6EC5AB;
177
+ color: #6ec5ab;
172
178
  }
173
179
  }
174
-
@@ -35,15 +35,15 @@ module DatatableHelper
35
35
  end
36
36
 
37
37
  def return_cookie_filters(cookie_key, filter_key, values: nil, defaults: nil, type: nil)
38
- raise "Error" if values.nil? && type != "boolean"
38
+ raise "Error" if values.nil? && type != "boolean"
39
39
  values = ["false"] if type == "boolean"
40
40
  values = values.map {|v| v[1].to_s} if type == "select" || values[0].class == Array
41
41
  defaults ||= [] if type == "select"
42
- if !cookies[cookie_key].blank?
42
+ if cookies[cookie_key].present?
43
43
  json = JSON.parse(cookies[cookie_key])
44
- if !json[filter_key].blank?
44
+ if json[filter_key].present?
45
45
  checked_envs ||= json[filter_key] if type == "boolean" || type == "select"
46
- checked_envs ||= values.map {|v| json[filter_key].include?(v) ? v : nil }.compact
46
+ checked_envs ||= values.map {|v| json[filter_key].include?(v) ? v : nil }.compact
47
47
  end
48
48
  end
49
49
  checked_envs ||= defaults.nil? ? (type == "checkbox" ? values : nil) : defaults
@@ -21,9 +21,13 @@
21
21
  </li>
22
22
  </ul>
23
23
  </div>
24
- <% elsif table_filter["type"] == "select" %>
24
+ <% elsif ["select", "group-select"].include?(table_filter["type"]) %>
25
25
  <div class="btn-group <%= index > 0 ? 'select2-bootstrap-prepend' : '' %> <%= (index + 1 != filter_count && filter_count > 1) ? 'select2-bootstrap-append' : '' %>">
26
- <%= select_tag(table_filter["name"].parameterize('_'), options_for_select( table_filter["values"], table_filter["selection"]), options = { :class => 'form-control input-sm', :prompt => prompt, :data =>{:placeholder => placeholder, "allow-clear" => allow_clear }, :style =>''}) %>
26
+ <% if table_filter["type"] == "select" %>
27
+ <%= select_tag(table_filter["name"].parameterize('_'), options_for_select(table_filter["values"], table_filter["selection"]), options = {:prompt => prompt, :data =>{:placeholder => placeholder, "allow-clear" => allow_clear }}) %>
28
+ <% elsif table_filter["type"] == "group-select" %>
29
+ <%= select_tag(table_filter["name"].parameterize('_'), grouped_options_for_select(table_filter["values"], table_filter["selection"]), options = {:prompt => prompt, :data =>{:placeholder => placeholder, "allow-clear" => allow_clear }}) %>
30
+ <% end %>
27
31
  </div>
28
32
  <% content_for :scripts do %>
29
33
  $('#<%= "#{table_name}_content" %>').find('select[name="<%= table_filter["name"].parameterize('_') %>"]').select2({theme: "bootstrap", minimumResultsForSearch: <%= searchable %>, width: '<%= width %>', allowClear: <%= allow_clear %>})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnectUi
4
- VERSION = '0.1.7'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-16 00:00:00.000000000 Z
11
+ date: 2018-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -146,6 +146,7 @@ files:
146
146
  - LICENSE.txt
147
147
  - README.md
148
148
  - app/assets/javascripts/zuora_connect_ui.js
149
+ - app/assets/javascripts/zuora_connect_ui/app.js.erb
149
150
  - app/assets/javascripts/zuora_connect_ui/datatable.js
150
151
  - app/assets/javascripts/zuora_connect_ui/input.js
151
152
  - app/assets/stylesheets/_zuora_connect_ui.scss