vhx-quartz 0.10.16 → 0.11.16

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
  SHA1:
3
- metadata.gz: feee024c1605d7cf1de59087144b06e9cb85543c
4
- data.tar.gz: fb95a941f992fc10fe7a8f8faddab2b4588bf529
3
+ metadata.gz: 79be6af99f904cb801f69cac1161d5c6df32c5a3
4
+ data.tar.gz: 4619a01d100a6c6728adc046541d8b972ee970ff
5
5
  SHA512:
6
- metadata.gz: 56c8eb5d8f05c0c07b4612f46dd66c4a108bf952774e950325e0c73cc9f2a1a336f9d846ba36845859d9395fa31fe6f9febfd194b0cad11a569aeb5eaeffcc3b
7
- data.tar.gz: 29a0b62c21cf7ecd061752411c3c9755a85745884814c8f521ed8871e6fdc467f7b2fe63d6b41887d05a10daa1ba012e732cd4c0e6f48c1d4a39604f9f50160c
6
+ metadata.gz: c40bfdfad8c075126fdfe3a0094ac17d0ec4f3f9153631bdcea40597da6c562e9efd5500ccd2971dfe60e2e5cc41884d586fd57207f8eba7bfeca00d97ee479f
7
+ data.tar.gz: 4b47fea76cf028d060bdf65f8d8a19302e1b46cdb8390f125b29dfc6010e41e7fb0136a8a42d522aa66e6dfb60e55f937c855c4da6ae8575ae7e88560b36bd01
@@ -1,5 +1,5 @@
1
1
  module Vhx
2
2
  module Quartz
3
- VERSION = "0.10.16"
3
+ VERSION = "0.11.16"
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
3
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4
4
 
5
5
  vhxm.components.shared.filter.constants = Object.freeze({
6
6
  date: {
@@ -179,14 +179,16 @@ vhxm.components.shared.filter.ui.applied = {
179
179
  return parent_ctrl;
180
180
  },
181
181
  view: function view(ctrl) {
182
+ var isSingle = ctrl.state.selected().length <= 1;
183
+
182
184
  return m('div', [ctrl.state.selected().map(function (item) {
183
- return m('span.c-filter--applied.inline', [m('a.text--navy', {
185
+ return m('span.c-filter--applied.inline', [m('a.text--navy' + (isSingle ? '.margin-right-small' : ''), {
184
186
  href: '#',
185
187
  onclick: function onclick(event) {
186
188
  event.preventDefault();
187
189
  ctrl.openFilter(item);
188
190
  }
189
- }, item.label), m('a.icon--center.icon-x-navy.icon--xxsmall', {
191
+ }, item.label), isSingle ? '' : m('a.icon--center.icon-x-navy.icon--xxsmall', {
190
192
  onclick: function onclick(event) {
191
193
  event.preventDefault();
192
194
  ctrl.handleFilterRemoveClick(item);
@@ -2,7 +2,11 @@
2
2
 
3
3
  vhxm.components.shared.radio.controller = function (opts) {
4
4
  var self = this;
5
+ opts = opts || {};
5
6
 
7
+ if (typeof opts.checkedByDefault === 'undefined') {
8
+ opts.checkedByDefault = true;
9
+ }
6
10
  self.state = new vhxm.components.shared.radio.state();
7
11
 
8
12
  opts.items.map(function (item) {
@@ -11,9 +15,13 @@ vhxm.components.shared.radio.controller = function (opts) {
11
15
  }
12
16
  });
13
17
 
14
- if (!self.state.isChecked()) {
18
+ if (opts.checkedByDefault && !self.state.isChecked()) {
15
19
  self.state.isChecked(opts.items[0].value);
16
20
  }
21
+
22
+ if (opts.api) {
23
+ opts.api(self);
24
+ }
17
25
  };
18
26
 
19
27
  vhxm.components.shared.radio.state = function () {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vhx-quartz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.16
4
+ version: 0.11.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Robertson, Courtney Burton, Steven Bone, David Gonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties