orange-rails 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: f27d2152e43e18871624a9612754ee504dd67905
4
- data.tar.gz: c92fe386e90de7f2d26a8d04ad97e7ea00035b03
2
+ SHA256:
3
+ metadata.gz: acd26360aa52d76f528bb90417a90aa7c00067ba79038940ace9ffbd8c9ccbf9
4
+ data.tar.gz: 4665ebd80a4a8c3875e6cbf85843520c88626e885b0b5048c0b49fea61f03efb
5
5
  SHA512:
6
- metadata.gz: 3af08b1aaabbf8650ac211ba9113c2c15537dd3a607b75885680d083d63bc8f9ba19cbcd8f8152259d84cb0b6f05edf6861a2869209cff7e5e603ee3a37a07b6
7
- data.tar.gz: 863dccac2bbcc706cff74defa932898fd3a47db3e3200d011dbb51368980af37e8a5e6916d5e72c3172035d09c50d6b586077e12369bc9e146116280f4cdb0bd
6
+ metadata.gz: 6dcbc2a8e2014f0695f68e839499c8df29b5a78a9d9a835a04cf5f42383e79513fd8f3c50749a073ed194899223c7b1967d6c497891fc8cd621ef3df79674ab1
7
+ data.tar.gz: 7345fe3b737e2a77cda74490ea893c5f4e3ea2f6a6bd691d9f3bd3d5610a43a530c48ce83d5fc1e68966563f0fdb0838b997368348dd538ae367e6e2e1346d84
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- orange-rails (0.2.0)
4
+ orange-rails (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  module Orange
2
2
  module Rails
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
@@ -1 +1,2 @@
1
- Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),matches=function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)},function(){"use strict";var n="is-full",l="is-open",a="div.form-dropdown",c=".form-dropdown__input",i=".form-dropdown__text",u=document.querySelectorAll(a);function d(e){var t=e.target.closest(a);!function(e){return e.classList.contains(l)}(t)?t.classList.add(l):t.classList.remove(l)}function f(e){e.stopPropagation();var t=e.target,r=t.innerText,o=t.closest(a);o.querySelector(c).value=r,o.querySelector(i).innerText=r,o.classList.add(n),o.classList.remove(l)}u.length&&function(){for(var e=0;e<u.length;e++){var t=u[e],r=t.querySelector(c).value;"string"==typeof r&&""!==r&&(t.querySelector(i).innerText=r,t.classList.add(n)),t.addEventListener("click",d,!1);for(var o=t.querySelectorAll(".form-dropdown__menu li"),s=0;s<o.length;s++){o[s].addEventListener("click",f,!1)}}document.querySelector("body").addEventListener("click",function(e){e.target.closest(a)||(e.stopPropagation(),function(){for(var e=0;e<u.length;e++){u[e].classList.remove(l)}}())})}()}(),function(){"use strict";var o="is-full",r=document.querySelectorAll(".form.form--large input.form__input");function s(e){var t=e.target,r=""!==t.value&&null!==t.value;r?t.classList.add(o):t.classList.remove(o),"focusin"===e.type&&t.classList.add(o),"focusout"!==e.type||r||t.classList.remove(o)}r.length&&function(){for(var e=0;e<r.length;e++){var t=r[e];"string"==typeof t.value&&""!==t.value&&t.classList.add(o),t.addEventListener("focusin",s,!1),t.addEventListener("focusout",s,!1)}}()}(),function(){"use strict";var o="is-full",r=document.querySelectorAll(".form textarea.form__textarea");function s(e){var t=e.target,r=""!==t.value&&null!==t.value;r?t.classList.add(o):t.classList.remove(o),"focusin"===e.type&&t.classList.add(o),"focusout"!==e.type||r||t.classList.remove(o)}function n(e){var t=e.target;t.value?(t.style.height="0px",t.style.height=t.scrollHeight+"px"):t.style.height=""}r.length&&function(){for(var e=0;e<r.length;e++){var t=r[e];"string"==typeof t.value&&""!==t.value&&t.classList.add(o),t.addEventListener("focusin",s,!1),t.addEventListener("focusout",s,!1),t.hasAttribute("data-auto-expand")&&t.addEventListener("input",n,!1)}}()}(),function(){"use strict";var o="On",s="Off",n="data-enabled",l="data-disabled",a="is-checked",c=".form .toggle",i=".toggle",u=".toggle__value",d=document.querySelectorAll(c);function f(e){var t=e.target,r=t.closest(c);v(t,r.querySelector(u))}function v(e,t){if(e.checked){if(t){var r=t.getAttribute(n)||o;t.innerText=r}e.closest(i).classList.add(a)}else{if(t){r=t.getAttribute(l)||s;t.innerText=r}e.closest(i).classList.remove(a)}}d.length&&function(){for(var e=0;d.length>e;e++){var t=d[e],r=t.querySelector("input[type='checkbox']");v(r,t.querySelector(u)),r.addEventListener("change",f,!1)}}()}();
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=0)}([function(e,t,n){n(1),e.exports=n(7)},function(e,t,n){"use strict";n.r(t);n(2),n(3),n(4),n(5),n(6)},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){!function(){const e="is-full",t="is-open",n="div.form-dropdown",o=".form-dropdown__input",r=".form-dropdown__menu li",l=".form-dropdown__text",s=document.querySelectorAll(n);function c(e){let o=e.target.closest(n);o.classList.contains(t)?o.classList.remove(t):o.classList.add(t)}function i(r){r.stopPropagation();var s=r.target,c=s.innerText,i=s.closest(n);i.querySelector(o).value=c,i.querySelector(l).innerText=c,i.classList.add(e),i.classList.remove(t)}s.length&&function(){for(let t=0;t<s.length;t++){let n=s[t],u=n.querySelector(o).value;"string"==typeof u&&""!==u&&(n.querySelector(l).innerText=u,n.classList.add(e)),n.addEventListener("click",c,!1);let a=n.querySelectorAll(r);for(let e=0;e<a.length;e++){a[e].addEventListener("click",i,!1)}}document.querySelector("body").addEventListener("click",function(e){e.target.closest(n)||(e.stopPropagation(),function(){for(var e=0;e<s.length;e++){s[e].classList.remove(t)}}())})}()}()},function(e,t){!function(){const e="On",t="Off",n="data-enabled",o="data-disabled",r="is-checked",l=".toggle",s="input[type='checkbox']",c=".toggle__value",i=document.querySelectorAll(l);function u(e){const t=e.target,n=t.closest(l);a(t,n.querySelector(c))}function a(s,c){let i=s.closest(l);if(s.checked){if(c){let t=c.getAttribute(n)||e;c.innerText=t}i.classList.add(r)}else{if(c){let e=c.getAttribute(o)||t;c.innerText=e}i.classList.remove(r)}}i.length&&function(){for(let e=0;i.length>e;e++){let t=i[e],n=t.querySelector(s);a(n,t.querySelector(c)),n.addEventListener("change",u,!1)}}(),document.addEventListener("click",function(e){e.target.classList.contains("toggle__input")&&u(e)})}()},function(e,t){!function(){const e="is-full",t=document.querySelectorAll(".form.form--large input.form__input");function n(t){let n=t.target,o=""!==n.value&&null!==n.value;o?n.classList.add(e):n.classList.remove(e),"focusin"===t.type&&n.classList.add(e),"focusout"!==t.type||o||n.classList.remove(e)}t.length&&function(){for(var o=0;o<t.length;o++){let r=t[o];"string"==typeof r.value&&""!==r.value&&r.classList.add(e),r.addEventListener("focusin",n,!1),r.addEventListener("focusout",n,!1)}}()}()},function(e,t){!function(){const e="is-full",t="data-auto-expand",n=document.querySelectorAll(".form textarea.form__textarea");function o(t){let n=t.target,o=""!==n.value&&null!==n.value;o?n.classList.add(e):n.classList.remove(e),"focusin"===t.type&&n.classList.add(e),"focusout"!==t.type||o||n.classList.remove(e)}function r(e){let t=e.target;t.value?(t.style.height="0px",t.style.height=t.scrollHeight+"px"):t.style.height=""}n.length&&function(){for(let l=0;l<n.length;l++){let s=n[l];"string"==typeof s.value&&""!==s.value&&s.classList.add(e),s.addEventListener("focusin",o,!1),s.addEventListener("focusout",o,!1),s.hasAttribute(t)&&s.addEventListener("input",r,!1)}}()}()},function(e,t,n){}]);
2
+ //# sourceMappingURL=orange.min.js.map
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orange-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Kulp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-17 00:00:00.000000000 Z
11
+ date: 2019-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -116,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.6.14.1
119
+ rubygems_version: 3.0.1
121
120
  signing_key:
122
121
  specification_version: 4
123
122
  summary: Rails helper for Orange UI.