zuora_connect_ui 0.3.3 → 0.4.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
- SHA1:
3
- metadata.gz: e91a1174df107571f526d268137adf4424ac9d01
4
- data.tar.gz: 5799c197ff5646eb598938e1df7e42deb91ec3a8
2
+ SHA256:
3
+ metadata.gz: 3d63d29c57d20a9c1eb88fc78c616dec7b53c0c45115358932b88c00debbb4a2
4
+ data.tar.gz: 40fa35fbbe9983db7f11acab7ad187b1757c81bb96087933e4f838c816b0abd8
5
5
  SHA512:
6
- metadata.gz: 9950439175f0572b7ef7b5eccb0e6d070d9bcfc1e86683b5052b9bed2b93bcac01012e7665e68267104902606f292baa177bdf057a93c9d1714f6368949bdfed
7
- data.tar.gz: c04d6f689ba811616fce2a683bf13a12f140cba47a085e3857596a1715551193690031cfdf0d5f3a58823e75d72ee25ffcd9d07c19fe41c1d3b1cb96aa1c6568
6
+ metadata.gz: d37c5ab3080824e92c7362d2b99a5431bc9a682062e7042d2c280796ee627c58330c7cfeccc7486f8c27a9cb6fd2ec9928e36922070baf316d104d89eb8e544a
7
+ data.tar.gz: 145fb63670ffcb637af9c69e4df4089f2560c6b6f387ce33b756c1a7ee96e4932d0af5b44623f358dcc37e97daef1c3fde4ba94e899c244ba96a61b5a1094a39
@@ -8,6 +8,10 @@ $(document).on('change.select2', 'select', function(e) {
8
8
  $("label[for='" + $(this).attr('id') + "']").toggleClass('floating', !['', null].includes($(this).val()));
9
9
  });
10
10
 
11
+ $(document).on('change change.select2', '.zuo-form-group.has-error > input, .zuo-form-group.has-error > select', function(e) {
12
+ $(this).parent('.zuo-form-group').removeClass('has-error');
13
+ });
14
+
11
15
  $(document).on('show', '.zuo-datepicker', function(e) {
12
16
  $(this).children('.zuo-floating-label').addClass('floating');
13
17
  });
@@ -133,8 +133,8 @@ $panel-default-border: #fff;
133
133
  @import "bootstrap";
134
134
 
135
135
  // Awesome Bootstrap Checkbox
136
- $font-family-icon: webicons;
137
- $check-icon: "\E936";
136
+ $font-family-icon: "Material Icons Outlined";
137
+ $check-icon: "\e0cd";
138
138
  @import "css/awesome-bootstrap-checkbox";
139
139
 
140
140
  // Select2
@@ -153,6 +153,7 @@ $check-icon: "\E936";
153
153
  // Zui Icons + Muli Font
154
154
  @import url("https://d3ntcvh9ql14ma.cloudfront.net/zui/1.4.0/css/zui.icons.css");
155
155
  @import url("https://fonts.googleapis.com/css?family=Muli:400,600,700");
156
+ @import url("https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined");
156
157
 
157
158
  // Zuora Connect UI
158
159
  @import "zuora_connect_ui/base";
@@ -155,3 +155,7 @@ select {
155
155
  }
156
156
  }
157
157
  }
158
+ i.material-icons {
159
+ font-size: 18px;
160
+ color: $anj-neutral;
161
+ }
@@ -274,38 +274,48 @@ ul.context-menu-list {
274
274
  .table-footer {
275
275
  width: 100%;
276
276
  padding: 0.75rem 0.5rem;
277
- display: flex;
278
- align-items: center;
279
-
277
+ display: inline-block;
278
+ color: $anj-neutral;
280
279
  > .dataTables_info,
280
+ .select_container,
281
281
  .dataTables_paginate {
282
- flex: 1;
282
+ display: inline-block;
283
+ }
284
+ .dataTables_paginate {
285
+ float: right;
283
286
  }
284
-
285
287
  .dataTables_info {
286
288
  padding: 0;
287
289
  }
290
+ .select2-container .select2-selection {
291
+ margin-bottom: 4px;
292
+ .select2-selection__rendered {
293
+ color: $anj-neutral;
294
+ }
295
+ .select2-selection__rendered {
296
+ padding-left: 5px;
297
+ }
298
+ .select2-selection__arrow b {
299
+ border-color: $anj-neutral transparent transparent transparent;
300
+ }
301
+ }
288
302
  }
289
-
290
303
  // Prev 1 2 3 Next
291
304
  .dataTables_paginate {
292
305
  .pagination .paginate_button {
293
306
  a {
294
307
  color: $support-1;
295
- background-color: none;
308
+ background-color: transparent;
296
309
  border: none;
297
310
  margin: 4px;
298
- padding: 2px 8px;
311
+ padding: 2px 5px;
299
312
  border-radius: 2px;
300
313
  }
301
- &.active a {
302
- color: $neutral-4;
303
- }
304
314
  &.disabled {
305
315
  a,
306
316
  a:hover,
307
317
  a:focus {
308
- color: $neutral-2;
318
+ color: $anj-neutral;
309
319
  background-color: none;
310
320
  cursor: not-allowed;
311
321
  }
@@ -315,6 +325,9 @@ ul.context-menu-list {
315
325
  display: none;
316
326
  }
317
327
  }
328
+ &.active {
329
+ color: $anj-neutral;
330
+ }
318
331
  }
319
332
 
320
333
  .table-bordered .small > tbody > tr > td {
@@ -109,8 +109,36 @@ input[type="file"] {
109
109
  }
110
110
  }
111
111
 
112
- .has-error .zuo-textbox {
113
- border-bottom: 1px solid $support-4;
112
+ .zuo-form-group {
113
+ margin-bottom: 1rem;
114
+ position: relative;
115
+
116
+ > .zuo-support-label {
117
+ position: absolute;
118
+ top: 3rem;
119
+ font-size: 0.75rem;
120
+ font-weight: normal;
121
+ line-height: 1;
122
+ margin-bottom: 0;
123
+ color: $anj-neutral;
124
+ }
125
+ }
126
+
127
+ .has-error {
128
+ > .zuo-textbox,
129
+ > .zuo-textbox:focus {
130
+ border-bottom: 1px solid $support-4;
131
+ }
132
+ > .zuo-support-label,
133
+ > .zuo-floating-label,
134
+ > .zuo-textbox:not([readonly]):focus + .zuo-floating-label,
135
+ > select + .select2-container--open + .zuo-floating-label {
136
+ color: $anj-danger;
137
+ }
138
+ }
139
+
140
+ .required > label::after {
141
+ content: "*";
114
142
  }
115
143
 
116
144
  label.zuo-floating-label {
@@ -139,6 +167,8 @@ select + .select2-container--open + .zuo-floating-label {
139
167
  }
140
168
 
141
169
  .select2-container {
170
+ padding-top: 0.01px;
171
+
142
172
  .select2-selection {
143
173
  border: none;
144
174
  }
@@ -256,7 +286,7 @@ select + .select2-container--open + .zuo-floating-label {
256
286
  border-bottom: 1px solid #e9ebee;
257
287
  }
258
288
 
259
- &.select2-container--open.select2-container--below .select2-selection {
289
+ &.select2-container--open .select2-selection {
260
290
  border-bottom: 1px solid $support-1;
261
291
 
262
292
  .select2-selection__arrow:before {
@@ -119,13 +119,15 @@
119
119
  "pagingType": "<%= quick_loading ? 'simple' : 'full_numbers' %>",
120
120
  "language" : {
121
121
  "paginate" : {
122
- "previous" : "<span class='z-icon-arrow-left' />",
123
- "next" : "<span class='z-icon-arrow-right' />"
124
- }
122
+ "previous" : "<i class='material-icons'>keyboard_arrow_left</i>",
123
+ "next" : "<i class='material-icons'>keyboard_arrow_right</i>"
124
+ },
125
+ "info": "Showing",
126
+ "infoFiltered": ""
125
127
  },
126
128
  "bProcessing": true,
127
129
  "bServerSide": true,
128
- "bInfo": <%= !quick_loading %>,
130
+ "bInfo": true,
129
131
  "colReorder": true,
130
132
  <% if defined?(table_group_actions) && table_group_actions.present? %>
131
133
  "select": { style: 'multi'},
@@ -228,7 +230,6 @@
228
230
  }).on('processing.dt', function(e, settings, processing) {
229
231
  $('#<%= table_name %>_content .table_refresh').toggleClass('zc-spin', processing);
230
232
  });
231
-
232
233
  initTable(
233
234
  <%= table_name %>.api(),
234
235
  '<%= table_name %>',
@@ -236,5 +237,6 @@
236
237
  columns,
237
238
  <%= raw table_filters.to_json %>
238
239
  );
240
+
239
241
  }
240
242
  <% end %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnectUi
4
- VERSION = '0.3.3'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.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: 2019-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.4.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.4.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-ui-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -226,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubyforge_project:
230
- rubygems_version: 2.6.8
229
+ rubygems_version: 3.0.3
231
230
  signing_key:
232
231
  specification_version: 4
233
232
  summary: Summary of Connect UI