my_admin 0.1.7 → 0.1.8

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: eb58b243db464f0f62f615b7a368898da4f5aefd
4
- data.tar.gz: c59d26325d7a3af268d10ce0aa635ff820852189
3
+ metadata.gz: 0076e65765943afe3323f0cccf1e1ea692a0035b
4
+ data.tar.gz: 30ea921e81f540abb18ab272b8defe3f43c40535
5
5
  SHA512:
6
- metadata.gz: 8f5e4b091dba90b6477792ddc3ed8f6a156026bb6455dae09c7ee539160c3db133d60e2e34d45bd97b106df3e11b662bc61811e7656ca37da6cd30e473e15005
7
- data.tar.gz: 66a84ef518d4627a9b32bbf0b5ddbb7eb9a3bb3ec4affa09b93900d43bf44686d2ac9b9df7db9b15e34b791ecd7a5f197afa6ea9f17cd860999bfaf3bb9b37ff
6
+ metadata.gz: 98a53655fe79f1e5e3f703fd0b50cba1cfb01583cc3e94c4c4caabee0ba28f6d599a27a75378d0fafc64ea919bd7b4b8f46bcc6a3b30ec041d8f1bf96b7bcc94
7
+ data.tar.gz: 72e279033951de71e0d8b44b02dcf561e04eee54446bcdd4665a26d2dc517ab330d851881815d508d5870dd0409a1fe7306d4c8a279dcfa490bd3f56deacbb98
@@ -52,6 +52,7 @@
52
52
  //= require my_admin/plugins/datepicker/locales/bootstrap-datepicker.pt-BR
53
53
  //= require my_admin/plugins/timepicker/bootstrap-timepicker.min
54
54
  //= require my_admin/plugins/xeditable/bootstrap-editable.min
55
+ //= require my_admin/plugins/sweetalert/sweetalert.min
55
56
  //= require my_admin/jquery.maskMoney
56
57
  //= require my_admin/jquery.dateFormat
57
58
  //= require my_admin/locale/pt-br/validate
@@ -11,6 +11,30 @@ String.prototype.replaceAll = function(de, para){
11
11
  return (str);
12
12
  }
13
13
 
14
+ var showLoading = function(e, message){
15
+ if(e) {
16
+ $(e).html($('#loading').html());
17
+ } else {
18
+ $('#loading').show();
19
+ }
20
+
21
+ if(!message)
22
+ {
23
+ message = "Carregando";
24
+ }
25
+
26
+ $('#loading .spinner-text').html(message);
27
+
28
+ }
29
+
30
+ var hideLoading = function(e){
31
+ if(e) {
32
+
33
+ } else {
34
+ $('#loading').hide();
35
+ }
36
+ }
37
+
14
38
  var updateFieldRemote = function(path, model, field, field_remote_name, value)
15
39
  {
16
40
  var id = "#" + model + "_" + field_remote_name + "_id";
@@ -0,0 +1 @@
1
+ !function(e,t,n){"use strict";!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i="function"==typeof require&&require;if(!l&&i)return i(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(o,a,r){function s(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(r,"__esModule",{value:!0});var l,i,u,c,d=o("./modules/handle-dom"),f=o("./modules/utils"),p=o("./modules/handle-swal-dom"),m=o("./modules/handle-click"),v=o("./modules/handle-key"),y=s(v),b=o("./modules/default-params"),h=s(b),g=o("./modules/set-params"),w=s(g);r["default"]=u=c=function(){function o(e){var t=a;return t[e]===n?h["default"][e]:t[e]}var a=arguments[0];if((0,d.addClass)(t.body,"stop-scrolling"),(0,p.resetInput)(),a===n)return(0,f.logStr)("SweetAlert expects at least 1 attribute!"),!1;var r=(0,f.extend)({},h["default"]);switch(typeof a){case"string":r.title=a,r.text=arguments[1]||"",r.type=arguments[2]||"";break;case"object":if(a.title===n)return(0,f.logStr)('Missing "title" argument!'),!1;r.title=a.title;for(var s in h["default"])r[s]=o(s);r.confirmButtonText=r.showCancelButton?"Confirm":h["default"].confirmButtonText,r.confirmButtonText=o("confirmButtonText"),r.doneFunction=arguments[1]||null;break;default:return(0,f.logStr)('Unexpected type of argument! Expected "string" or "object", got '+typeof a),!1}(0,w["default"])(r),(0,p.fixVerticalPosition)(),(0,p.openModal)(arguments[1]);for(var u=(0,p.getModal)(),v=u.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],g=function(e){return(0,m.handleButton)(e,r,u)},C=0;C<v.length;C++)for(var S=0;S<b.length;S++){var x=b[S];v[C][x]=g}(0,p.getOverlay)().onclick=g,l=e.onkeydown;var k=function(e){return(0,y["default"])(e,r,u)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){i!==n&&(i.focus(),i=n)},0)},c.enableButtons()},u.setDefaults=c.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");(0,f.extend)(h["default"],e)},u.close=c.close=function(){var o=(0,p.getModal)();(0,d.fadeOut)((0,p.getOverlay)(),5),(0,d.fadeOut)(o,5),(0,d.removeClass)(o,"showSweetAlert"),(0,d.addClass)(o,"hideSweetAlert"),(0,d.removeClass)(o,"visible");var a=o.querySelector(".sa-icon.sa-success");(0,d.removeClass)(a,"animate"),(0,d.removeClass)(a.querySelector(".sa-tip"),"animateSuccessTip"),(0,d.removeClass)(a.querySelector(".sa-long"),"animateSuccessLong");var r=o.querySelector(".sa-icon.sa-error");(0,d.removeClass)(r,"animateErrorIcon"),(0,d.removeClass)(r.querySelector(".sa-x-mark"),"animateXMark");var s=o.querySelector(".sa-icon.sa-warning");return(0,d.removeClass)(s,"pulseWarning"),(0,d.removeClass)(s.querySelector(".sa-body"),"pulseWarningIns"),(0,d.removeClass)(s.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");(0,d.removeClass)(o,e)},300),(0,d.removeClass)(t.body,"stop-scrolling"),e.onkeydown=l,e.previousActiveElement&&e.previousActiveElement.focus(),i=n,clearTimeout(o.timeout),!0},u.showInputError=c.showInputError=function(e){var t=(0,p.getModal)(),n=t.querySelector(".sa-input-error");(0,d.addClass)(n,"show");var o=t.querySelector(".sa-error-container");(0,d.addClass)(o,"show"),o.querySelector("p").innerHTML=e,setTimeout(function(){u.enableButtons()},1),t.querySelector("input").focus()},u.resetInputError=c.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=(0,p.getModal)(),n=t.querySelector(".sa-input-error");(0,d.removeClass)(n,"show");var o=t.querySelector(".sa-error-container");(0,d.removeClass)(o,"show")},u.disableButtons=c.disableButtons=function(e){var t=(0,p.getModal)(),n=t.querySelector("button.confirm"),o=t.querySelector("button.cancel");n.disabled=!0,o.disabled=!0},u.enableButtons=c.enableButtons=function(e){var t=(0,p.getModal)(),n=t.querySelector("button.confirm"),o=t.querySelector("button.cancel");n.disabled=!1,o.disabled=!1},"undefined"!=typeof e?e.sweetAlert=e.swal=u:(0,f.logStr)("SweetAlert is a frontend module!"),a.exports=r["default"]},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1};n["default"]=o,t.exports=n["default"]},{}],3:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t("./utils"),r=(t("./handle-swal-dom"),t("./handle-dom")),s=function(t,n,o){function s(e){m&&n.confirmButtonColor&&(p.style.backgroundColor=e)}var u,c,d,f=t||e.event,p=f.target||f.srcElement,m=-1!==p.className.indexOf("confirm"),v=-1!==p.className.indexOf("sweet-overlay"),y=(0,r.hasClass)(o,"visible"),b=n.doneFunction&&"true"===o.getAttribute("data-has-done-function");switch(m&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=(0,a.colorLuminance)(u,-.04),d=(0,a.colorLuminance)(u,-.14)),f.type){case"mouseover":s(c);break;case"mouseout":s(u);break;case"mousedown":s(d);break;case"mouseup":s(c);break;case"focus":var h=o.querySelector("button.confirm"),g=o.querySelector("button.cancel");m?g.style.boxShadow="none":h.style.boxShadow="none";break;case"click":var w=o===p,C=(0,r.isDescendant)(o,p);if(!w&&!C&&y&&!n.allowOutsideClick)break;m&&b&&y?l(o,n):b&&y||v?i(o,n):(0,r.isDescendant)(o,p)&&"BUTTON"===p.tagName&&sweetAlert.close()}},l=function(e,t){var n=!0;(0,r.hasClass)(e,"show-input")&&(n=e.querySelector("input").value,n||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},i=function(e,t){var n=String(t.doneFunction).replace(/\s/g,""),o="function("===n.substring(0,9)&&")"!==n.substring(9,10);o&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};o["default"]={handleButton:s,handleConfirm:l,handleCancel:i},n.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},s=function(e,t){r(e,t)||(e.className+=" "+t)},l=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(r(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t<e.length;++t)u(e[t])},d=function(e){e.style.opacity="",e.style.display="none"},f=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},p=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},m=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},v=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function a(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(a,t)};o()}e.style.display="block"},y=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function a(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(a,t):e.style.display="none"};o()},b=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},h=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=b,a.stopEventPropagation=h},{}],5:[function(t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./handle-dom"),s=t("./handle-swal-dom"),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m<d.length;m++)if(f===d[m]){p=m;break}9===i?(f=-1===p?u:p===d.length-1?d[0]:d[p+1],(0,r.stopEventPropagation)(l),f.focus(),o.confirmButtonColor&&(0,s.setFocusStyle)(f,o.confirmButtonColor)):13===i?("INPUT"===f.tagName&&(f=u,u.focus()),f=-1===p?u:n):27===i&&o.allowEscapeKey===!0?(f=c,(0,r.fireClick)(f,l)):f=n}};a["default"]=l,o.exports=a["default"]},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,o,a){function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(a,"__esModule",{value:!0});var s=n("./utils"),l=n("./handle-dom"),i=n("./default-params"),u=r(i),c=n("./injected-html"),d=r(c),f=".sweet-alert",p=".sweet-overlay",m=function(){var e=t.createElement("div");for(e.innerHTML=d["default"];e.firstChild;)t.body.appendChild(e.firstChild)},v=function x(){var e=t.querySelector(f);return e||(m(),e=x()),e},y=function(){var e=v();return e?e.querySelector("input"):void 0},b=function(){return t.querySelector(p)},h=function(e,t){var n=(0,s.hexToRgb)(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},g=function(n){var o=v();(0,l.fadeIn)(b(),10),(0,l.show)(o),(0,l.addClass)(o,"showSweetAlert"),(0,l.removeClass)(o,"hideSweetAlert"),e.previousActiveElement=t.activeElement;var a=o.querySelector("button.confirm");a.focus(),setTimeout(function(){(0,l.addClass)(o,"visible")},500);var r=o.getAttribute("data-timer");if("null"!==r&&""!==r){var s=n;o.timeout=setTimeout(function(){var e=(s||null)&&"true"===o.getAttribute("data-has-done-function");e?s(null):sweetAlert.close()},r)}},w=function(){var e=v(),t=y();(0,l.removeClass)(e,"show-input"),t.value=u["default"].inputValue,t.setAttribute("type",u["default"].inputType),t.setAttribute("placeholder",u["default"].inputPlaceholder),C()},C=function(e){if(e&&13===e.keyCode)return!1;var t=v(),n=t.querySelector(".sa-input-error");(0,l.removeClass)(n,"show");var o=t.querySelector(".sa-error-container");(0,l.removeClass)(o,"show")},S=function(){var e=v();e.style.marginTop=(0,l.getTopMargin)(v())};a.sweetAlertInitialize=m,a.getModal=v,a.getOverlay=b,a.getInput=y,a.setFocusStyle=h,a.openModal=g,a.resetInput=w,a.resetInputError=C,a.fixVerticalPosition=S},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>';n["default"]=o,t.exports=n["default"]},{}],8:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});var a=e("./utils"),r=e("./handle-swal-dom"),s=e("./handle-dom"),l=["error","warning","info","success","input","prompt"],i=function(e){var t=(0,r.getModal)(),o=t.querySelector("h2"),i=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(o.innerHTML=e.html?e.title:(0,s.escapeHtml)(e.title).split("\n").join("<br>"),i.innerHTML=e.html?e.text:(0,s.escapeHtml)(e.text||"").split("\n").join("<br>"),e.text&&(0,s.show)(i),e.customClass)(0,s.addClass)(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");(0,s.removeClass)(t,d),t.setAttribute("data-custom-class","")}if((0,s.hide)(t.querySelectorAll(".sa-icon")),e.type&&!(0,a.isIE8)()){var f=function(){for(var o=!1,a=0;a<l.length;a++)if(e.type===l[a]){o=!0;break}if(!o)return logStr("Unknown alert type: "+e.type),{v:!1};var i=["success","error","warning","info"],u=n;-1!==i.indexOf(e.type)&&(u=t.querySelector(".sa-icon.sa-"+e.type),(0,s.show)(u));var c=(0,r.getInput)();switch(e.type){case"success":(0,s.addClass)(u,"animate"),(0,s.addClass)(u.querySelector(".sa-tip"),"animateSuccessTip"),(0,s.addClass)(u.querySelector(".sa-long"),"animateSuccessLong");break;case"error":(0,s.addClass)(u,"animateErrorIcon"),(0,s.addClass)(u.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":(0,s.addClass)(u,"pulseWarning"),(0,s.addClass)(u.querySelector(".sa-body"),"pulseWarningIns"),(0,s.addClass)(u.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":c.setAttribute("type",e.inputType),c.value=e.inputValue,c.setAttribute("placeholder",e.inputPlaceholder),(0,s.addClass)(t,"show-input"),setTimeout(function(){c.focus(),c.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof f)return f.v}if(e.imageUrl){var p=t.querySelector(".sa-icon.sa-custom");p.style.backgroundImage="url("+e.imageUrl+")",(0,s.show)(p);var m=80,v=80;if(e.imageSize){var y=e.imageSize.toString().split("x"),b=y[0],h=y[1];b&&h?(m=b,v=h):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}p.setAttribute("style",p.getAttribute("style")+"width:"+m+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?u.style.display="inline-block":(0,s.hide)(u),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":(0,s.hide)(c),e.cancelButtonText&&(u.innerHTML=(0,s.escapeHtml)(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=(0,s.escapeHtml)(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,(0,r.setFocusStyle)(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var g=!!e.doneFunction;t.setAttribute("data-has-done-function",g),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)};o["default"]=i,t.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},r=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},s=function(){return e.attachEvent&&!e.addEventListener},l=function(t){"undefined"!=typeof e&&e.console&&e.console.log("SweetAlert: "+t)},i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,a="#";for(o=0;3>o;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=("00"+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document);
File without changes
File without changes
File without changes
@@ -24,8 +24,10 @@
24
24
  *= require my_admin/plugins/timepicker/bootstrap-timepicker.min
25
25
  *= require my_admin/plugins/xeditable/bootstrap-editable
26
26
  *= require my_admin/plugins/icheck/flat/_all
27
+ *= require my_admin/plugins/sweetalert/sweetalert
27
28
  *= require my_admin/style
28
29
  *= require my_admin/themes
30
+ *= require my_admin/loading
29
31
  *= require my_admin/my_admin
30
32
  *= require my_admin
31
33
  */
@@ -0,0 +1,94 @@
1
+ /* Loading Overlay*/
2
+ .loading {
3
+ height: 100%;
4
+ position: fixed;
5
+ top: 0;
6
+ width: 100%;
7
+ -webkit-animation:fadein 2s;
8
+ -moz-animation:fadein 2s;
9
+ -o-animation:fadein 2s;
10
+ animation:fadein 2s;
11
+ display: none;
12
+ z-index: 200000;
13
+ }
14
+ @-moz-keyframes fadein {
15
+ from {opacity:0}
16
+ to {opacity:1}
17
+ }
18
+ @-webkit-keyframes fadein {
19
+ from {opacity:0}
20
+ to {opacity:1}
21
+ }
22
+ @-o-keyframes fadein {
23
+ from {opacity:0}
24
+ to {opacity:1}
25
+ }
26
+ @keyframes fadein {
27
+ from {opacity:0}
28
+ to {opacity:1}
29
+ }
30
+
31
+ .spinner-wrapper {
32
+ min-width:100%;
33
+ min-height:100%;
34
+ height:100%;
35
+ top:0;
36
+ left:0;
37
+ background:rgba(50,50,50,0.93);
38
+ position:absolute;
39
+ z-index:300;
40
+ }
41
+
42
+ .spinner-text {
43
+ position:absolute;
44
+ top:41.5%;
45
+ left:47%;
46
+ margin:16px 0 0 35px;
47
+ font-size:9px;
48
+ font-family:Arial;
49
+ color:#BBB;
50
+ letter-spacing:1px;
51
+ font-weight:700;
52
+ text-transform: uppercase;
53
+ }
54
+ .spinner-image {
55
+ margin:0;
56
+ display:block;
57
+ position:absolute;
58
+ left:45%;
59
+ top:40%;
60
+ border:25px solid rgba(200,200,200,0.2);
61
+ width:1px;
62
+ height:1px;
63
+ border-left-color:transparent;
64
+ border-right-color:transparent;
65
+ -webkit-border-radius:50px;
66
+ -moz-border-radius:50px;
67
+ border-radius:50px;
68
+ -webkit-animation:spin 1.5s infinite;
69
+ -moz-animation:spin 1.5s infinite;
70
+ animation:spin 1.5s infinite;
71
+ }
72
+
73
+ .show_more.spinner-image {
74
+ position: relative;
75
+ }
76
+
77
+ @-webkit-keyframes spin {
78
+ 0%,100% {-webkit-transform:rotate(0deg) scale(1)}
79
+ 50% {-webkit-transform:rotate(720deg) scale(0.6)}
80
+ }
81
+
82
+ @-moz-keyframes spin {
83
+ 0%,100% {-moz-transform:rotate(0deg) scale(1)}
84
+ 50% {-moz-transform:rotate(720deg) scale(0.6)}
85
+ }
86
+ @-o-keyframes spin {
87
+ 0%,100% {-o-transform:rotate(0deg) scale(1)}
88
+ 50% {-o-transform:rotate(720deg) scale(0.6)}
89
+ }
90
+ @keyframes spin {
91
+ 0%,100% {transform:rotate(0deg) scale(1)}
92
+ 50% {transform:rotate(720deg) scale(0.6)}
93
+ }
94
+
@@ -16,4 +16,5 @@
16
16
 
17
17
  #nprogress .bar{
18
18
  background: #31B4FF;
19
- }
19
+ }
20
+
@@ -0,0 +1,933 @@
1
+ body.stop-scrolling {
2
+ height: 100%;
3
+ overflow: hidden; }
4
+
5
+ .sweet-overlay {
6
+ background-color: black;
7
+ /* IE8 */
8
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
9
+ /* IE8 */
10
+ background-color: rgba(0, 0, 0, 0.4);
11
+ position: fixed;
12
+ left: 0;
13
+ right: 0;
14
+ top: 0;
15
+ bottom: 0;
16
+ display: none;
17
+ z-index: 10000; }
18
+
19
+ .sweet-alert {
20
+ background-color: white;
21
+ font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
22
+ width: 478px;
23
+ padding: 17px;
24
+ border-radius: 5px;
25
+ text-align: center;
26
+ position: fixed;
27
+ left: 50%;
28
+ top: 50%;
29
+ margin-left: -256px;
30
+ margin-top: -200px;
31
+ overflow: hidden;
32
+ display: none;
33
+ z-index: 99999; }
34
+ @media all and (max-width: 540px) {
35
+ .sweet-alert {
36
+ width: auto;
37
+ margin-left: 0;
38
+ margin-right: 0;
39
+ left: 15px;
40
+ right: 15px; } }
41
+ .sweet-alert h2 {
42
+ color: #575757;
43
+ font-size: 30px;
44
+ text-align: center;
45
+ font-weight: 600;
46
+ text-transform: none;
47
+ position: relative;
48
+ margin: 25px 0;
49
+ padding: 0;
50
+ line-height: 40px;
51
+ display: block; }
52
+ .sweet-alert p {
53
+ color: #797979;
54
+ font-size: 16px;
55
+ text-align: center;
56
+ font-weight: 300;
57
+ position: relative;
58
+ text-align: inherit;
59
+ float: none;
60
+ margin: 0;
61
+ padding: 0;
62
+ line-height: normal; }
63
+ .sweet-alert fieldset {
64
+ border: none;
65
+ position: relative; }
66
+ .sweet-alert .sa-error-container {
67
+ background-color: #f1f1f1;
68
+ margin-left: -17px;
69
+ margin-right: -17px;
70
+ overflow: hidden;
71
+ padding: 0 10px;
72
+ max-height: 0;
73
+ webkit-transition: padding 0.15s, max-height 0.15s;
74
+ transition: padding 0.15s, max-height 0.15s; }
75
+ .sweet-alert .sa-error-container.show {
76
+ padding: 10px 0;
77
+ max-height: 100px;
78
+ webkit-transition: padding 0.2s, max-height 0.2s;
79
+ transition: padding 0.25s, max-height 0.25s; }
80
+ .sweet-alert .sa-error-container .icon {
81
+ display: inline-block;
82
+ width: 24px;
83
+ height: 24px;
84
+ border-radius: 50%;
85
+ background-color: #ea7d7d;
86
+ color: white;
87
+ line-height: 24px;
88
+ text-align: center;
89
+ margin-right: 3px; }
90
+ .sweet-alert .sa-error-container p {
91
+ display: inline-block; }
92
+ .sweet-alert .sa-input-error {
93
+ position: absolute;
94
+ top: 29px;
95
+ right: 26px;
96
+ width: 20px;
97
+ height: 20px;
98
+ opacity: 0;
99
+ -webkit-transform: scale(0.5);
100
+ transform: scale(0.5);
101
+ -webkit-transform-origin: 50% 50%;
102
+ transform-origin: 50% 50%;
103
+ -webkit-transition: all 0.1s;
104
+ transition: all 0.1s; }
105
+ .sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
106
+ content: "";
107
+ width: 20px;
108
+ height: 6px;
109
+ background-color: #f06e57;
110
+ border-radius: 3px;
111
+ position: absolute;
112
+ top: 50%;
113
+ margin-top: -4px;
114
+ left: 50%;
115
+ margin-left: -9px; }
116
+ .sweet-alert .sa-input-error::before {
117
+ -webkit-transform: rotate(-45deg);
118
+ transform: rotate(-45deg); }
119
+ .sweet-alert .sa-input-error::after {
120
+ -webkit-transform: rotate(45deg);
121
+ transform: rotate(45deg); }
122
+ .sweet-alert .sa-input-error.show {
123
+ opacity: 1;
124
+ -webkit-transform: scale(1);
125
+ transform: scale(1); }
126
+ .sweet-alert input {
127
+ width: 100%;
128
+ box-sizing: border-box;
129
+ border-radius: 3px;
130
+ border: 1px solid #d7d7d7;
131
+ height: 43px;
132
+ margin-top: 10px;
133
+ margin-bottom: 17px;
134
+ font-size: 18px;
135
+ box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
136
+ padding: 0 12px;
137
+ display: none;
138
+ -webkit-transition: all 0.3s;
139
+ transition: all 0.3s; }
140
+ .sweet-alert input:focus {
141
+ outline: none;
142
+ box-shadow: 0px 0px 3px #c4e6f5;
143
+ border: 1px solid #b4dbed; }
144
+ .sweet-alert input:focus::-moz-placeholder {
145
+ transition: opacity 0.3s 0.03s ease;
146
+ opacity: 0.5; }
147
+ .sweet-alert input:focus:-ms-input-placeholder {
148
+ transition: opacity 0.3s 0.03s ease;
149
+ opacity: 0.5; }
150
+ .sweet-alert input:focus::-webkit-input-placeholder {
151
+ transition: opacity 0.3s 0.03s ease;
152
+ opacity: 0.5; }
153
+ .sweet-alert input::-moz-placeholder {
154
+ color: #bdbdbd; }
155
+ .sweet-alert input:-ms-input-placeholder {
156
+ color: #bdbdbd; }
157
+ .sweet-alert input::-webkit-input-placeholder {
158
+ color: #bdbdbd; }
159
+ .sweet-alert.show-input input {
160
+ display: block; }
161
+ .sweet-alert .sa-confirm-button-container {
162
+ display: inline-block;
163
+ position: relative; }
164
+ .sweet-alert .la-ball-fall {
165
+ position: absolute;
166
+ left: 50%;
167
+ top: 50%;
168
+ margin-left: -27px;
169
+ margin-top: 4px;
170
+ opacity: 0;
171
+ visibility: hidden; }
172
+ .sweet-alert button {
173
+ background-color: #8CD4F5;
174
+ color: white;
175
+ border: none;
176
+ box-shadow: none;
177
+ font-size: 17px;
178
+ font-weight: 500;
179
+ -webkit-border-radius: 4px;
180
+ border-radius: 5px;
181
+ padding: 10px 32px;
182
+ margin: 26px 5px 0 5px;
183
+ cursor: pointer; }
184
+ .sweet-alert button:focus {
185
+ outline: none;
186
+ box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
187
+ .sweet-alert button:hover {
188
+ background-color: #7ecff4; }
189
+ .sweet-alert button:active {
190
+ background-color: #5dc2f1; }
191
+ .sweet-alert button.cancel {
192
+ background-color: #C1C1C1; }
193
+ .sweet-alert button.cancel:hover {
194
+ background-color: #b9b9b9; }
195
+ .sweet-alert button.cancel:active {
196
+ background-color: #a8a8a8; }
197
+ .sweet-alert button.cancel:focus {
198
+ box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
199
+ .sweet-alert button[disabled] {
200
+ opacity: .6;
201
+ cursor: default; }
202
+ .sweet-alert button.confirm[disabled] {
203
+ color: transparent; }
204
+ .sweet-alert button.confirm[disabled] ~ .la-ball-fall {
205
+ opacity: 1;
206
+ visibility: visible;
207
+ transition-delay: 0s; }
208
+ .sweet-alert button::-moz-focus-inner {
209
+ border: 0; }
210
+ .sweet-alert[data-has-cancel-button=false] button {
211
+ box-shadow: none !important; }
212
+ .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
213
+ padding-bottom: 40px; }
214
+ .sweet-alert .sa-icon {
215
+ width: 80px;
216
+ height: 80px;
217
+ border: 4px solid gray;
218
+ -webkit-border-radius: 40px;
219
+ border-radius: 40px;
220
+ border-radius: 50%;
221
+ margin: 20px auto;
222
+ padding: 0;
223
+ position: relative;
224
+ box-sizing: content-box; }
225
+ .sweet-alert .sa-icon.sa-error {
226
+ border-color: #F27474; }
227
+ .sweet-alert .sa-icon.sa-error .sa-x-mark {
228
+ position: relative;
229
+ display: block; }
230
+ .sweet-alert .sa-icon.sa-error .sa-line {
231
+ position: absolute;
232
+ height: 5px;
233
+ width: 47px;
234
+ background-color: #F27474;
235
+ display: block;
236
+ top: 37px;
237
+ border-radius: 2px; }
238
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
239
+ -webkit-transform: rotate(45deg);
240
+ transform: rotate(45deg);
241
+ left: 17px; }
242
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
243
+ -webkit-transform: rotate(-45deg);
244
+ transform: rotate(-45deg);
245
+ right: 16px; }
246
+ .sweet-alert .sa-icon.sa-warning {
247
+ border-color: #F8BB86; }
248
+ .sweet-alert .sa-icon.sa-warning .sa-body {
249
+ position: absolute;
250
+ width: 5px;
251
+ height: 47px;
252
+ left: 50%;
253
+ top: 10px;
254
+ -webkit-border-radius: 2px;
255
+ border-radius: 2px;
256
+ margin-left: -2px;
257
+ background-color: #F8BB86; }
258
+ .sweet-alert .sa-icon.sa-warning .sa-dot {
259
+ position: absolute;
260
+ width: 7px;
261
+ height: 7px;
262
+ -webkit-border-radius: 50%;
263
+ border-radius: 50%;
264
+ margin-left: -3px;
265
+ left: 50%;
266
+ bottom: 10px;
267
+ background-color: #F8BB86; }
268
+ .sweet-alert .sa-icon.sa-info {
269
+ border-color: #C9DAE1; }
270
+ .sweet-alert .sa-icon.sa-info::before {
271
+ content: "";
272
+ position: absolute;
273
+ width: 5px;
274
+ height: 29px;
275
+ left: 50%;
276
+ bottom: 17px;
277
+ border-radius: 2px;
278
+ margin-left: -2px;
279
+ background-color: #C9DAE1; }
280
+ .sweet-alert .sa-icon.sa-info::after {
281
+ content: "";
282
+ position: absolute;
283
+ width: 7px;
284
+ height: 7px;
285
+ border-radius: 50%;
286
+ margin-left: -3px;
287
+ top: 19px;
288
+ background-color: #C9DAE1;
289
+ left: 50%; }
290
+ .sweet-alert .sa-icon.sa-success {
291
+ border-color: #A5DC86; }
292
+ .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
293
+ content: '';
294
+ -webkit-border-radius: 40px;
295
+ border-radius: 40px;
296
+ border-radius: 50%;
297
+ position: absolute;
298
+ width: 60px;
299
+ height: 120px;
300
+ background: white;
301
+ -webkit-transform: rotate(45deg);
302
+ transform: rotate(45deg); }
303
+ .sweet-alert .sa-icon.sa-success::before {
304
+ -webkit-border-radius: 120px 0 0 120px;
305
+ border-radius: 120px 0 0 120px;
306
+ top: -7px;
307
+ left: -33px;
308
+ -webkit-transform: rotate(-45deg);
309
+ transform: rotate(-45deg);
310
+ -webkit-transform-origin: 60px 60px;
311
+ transform-origin: 60px 60px; }
312
+ .sweet-alert .sa-icon.sa-success::after {
313
+ -webkit-border-radius: 0 120px 120px 0;
314
+ border-radius: 0 120px 120px 0;
315
+ top: -11px;
316
+ left: 30px;
317
+ -webkit-transform: rotate(-45deg);
318
+ transform: rotate(-45deg);
319
+ -webkit-transform-origin: 0px 60px;
320
+ transform-origin: 0px 60px; }
321
+ .sweet-alert .sa-icon.sa-success .sa-placeholder {
322
+ width: 80px;
323
+ height: 80px;
324
+ border: 4px solid rgba(165, 220, 134, 0.2);
325
+ -webkit-border-radius: 40px;
326
+ border-radius: 40px;
327
+ border-radius: 50%;
328
+ box-sizing: content-box;
329
+ position: absolute;
330
+ left: -4px;
331
+ top: -4px;
332
+ z-index: 2; }
333
+ .sweet-alert .sa-icon.sa-success .sa-fix {
334
+ width: 5px;
335
+ height: 90px;
336
+ background-color: white;
337
+ position: absolute;
338
+ left: 28px;
339
+ top: 8px;
340
+ z-index: 1;
341
+ -webkit-transform: rotate(-45deg);
342
+ transform: rotate(-45deg); }
343
+ .sweet-alert .sa-icon.sa-success .sa-line {
344
+ height: 5px;
345
+ background-color: #A5DC86;
346
+ display: block;
347
+ border-radius: 2px;
348
+ position: absolute;
349
+ z-index: 2; }
350
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
351
+ width: 25px;
352
+ left: 14px;
353
+ top: 46px;
354
+ -webkit-transform: rotate(45deg);
355
+ transform: rotate(45deg); }
356
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
357
+ width: 47px;
358
+ right: 8px;
359
+ top: 38px;
360
+ -webkit-transform: rotate(-45deg);
361
+ transform: rotate(-45deg); }
362
+ .sweet-alert .sa-icon.sa-custom {
363
+ background-size: contain;
364
+ border-radius: 0;
365
+ border: none;
366
+ background-position: center center;
367
+ background-repeat: no-repeat; }
368
+
369
+ /*
370
+ * Animations
371
+ */
372
+ @-webkit-keyframes showSweetAlert {
373
+ 0% {
374
+ transform: scale(0.7);
375
+ -webkit-transform: scale(0.7); }
376
+ 45% {
377
+ transform: scale(1.05);
378
+ -webkit-transform: scale(1.05); }
379
+ 80% {
380
+ transform: scale(0.95);
381
+ -webkit-transform: scale(0.95); }
382
+ 100% {
383
+ transform: scale(1);
384
+ -webkit-transform: scale(1); } }
385
+
386
+ @keyframes showSweetAlert {
387
+ 0% {
388
+ transform: scale(0.7);
389
+ -webkit-transform: scale(0.7); }
390
+ 45% {
391
+ transform: scale(1.05);
392
+ -webkit-transform: scale(1.05); }
393
+ 80% {
394
+ transform: scale(0.95);
395
+ -webkit-transform: scale(0.95); }
396
+ 100% {
397
+ transform: scale(1);
398
+ -webkit-transform: scale(1); } }
399
+
400
+ @-webkit-keyframes hideSweetAlert {
401
+ 0% {
402
+ transform: scale(1);
403
+ -webkit-transform: scale(1); }
404
+ 100% {
405
+ transform: scale(0.5);
406
+ -webkit-transform: scale(0.5); } }
407
+
408
+ @keyframes hideSweetAlert {
409
+ 0% {
410
+ transform: scale(1);
411
+ -webkit-transform: scale(1); }
412
+ 100% {
413
+ transform: scale(0.5);
414
+ -webkit-transform: scale(0.5); } }
415
+
416
+ @-webkit-keyframes slideFromTop {
417
+ 0% {
418
+ top: 0%; }
419
+ 100% {
420
+ top: 50%; } }
421
+
422
+ @keyframes slideFromTop {
423
+ 0% {
424
+ top: 0%; }
425
+ 100% {
426
+ top: 50%; } }
427
+
428
+ @-webkit-keyframes slideToTop {
429
+ 0% {
430
+ top: 50%; }
431
+ 100% {
432
+ top: 0%; } }
433
+
434
+ @keyframes slideToTop {
435
+ 0% {
436
+ top: 50%; }
437
+ 100% {
438
+ top: 0%; } }
439
+
440
+ @-webkit-keyframes slideFromBottom {
441
+ 0% {
442
+ top: 70%; }
443
+ 100% {
444
+ top: 50%; } }
445
+
446
+ @keyframes slideFromBottom {
447
+ 0% {
448
+ top: 70%; }
449
+ 100% {
450
+ top: 50%; } }
451
+
452
+ @-webkit-keyframes slideToBottom {
453
+ 0% {
454
+ top: 50%; }
455
+ 100% {
456
+ top: 70%; } }
457
+
458
+ @keyframes slideToBottom {
459
+ 0% {
460
+ top: 50%; }
461
+ 100% {
462
+ top: 70%; } }
463
+
464
+ .showSweetAlert[data-animation=pop] {
465
+ -webkit-animation: showSweetAlert 0.3s;
466
+ animation: showSweetAlert 0.3s; }
467
+
468
+ .showSweetAlert[data-animation=none] {
469
+ -webkit-animation: none;
470
+ animation: none; }
471
+
472
+ .showSweetAlert[data-animation=slide-from-top] {
473
+ -webkit-animation: slideFromTop 0.3s;
474
+ animation: slideFromTop 0.3s; }
475
+
476
+ .showSweetAlert[data-animation=slide-from-bottom] {
477
+ -webkit-animation: slideFromBottom 0.3s;
478
+ animation: slideFromBottom 0.3s; }
479
+
480
+ .hideSweetAlert[data-animation=pop] {
481
+ -webkit-animation: hideSweetAlert 0.2s;
482
+ animation: hideSweetAlert 0.2s; }
483
+
484
+ .hideSweetAlert[data-animation=none] {
485
+ -webkit-animation: none;
486
+ animation: none; }
487
+
488
+ .hideSweetAlert[data-animation=slide-from-top] {
489
+ -webkit-animation: slideToTop 0.4s;
490
+ animation: slideToTop 0.4s; }
491
+
492
+ .hideSweetAlert[data-animation=slide-from-bottom] {
493
+ -webkit-animation: slideToBottom 0.3s;
494
+ animation: slideToBottom 0.3s; }
495
+
496
+ @-webkit-keyframes animateSuccessTip {
497
+ 0% {
498
+ width: 0;
499
+ left: 1px;
500
+ top: 19px; }
501
+ 54% {
502
+ width: 0;
503
+ left: 1px;
504
+ top: 19px; }
505
+ 70% {
506
+ width: 50px;
507
+ left: -8px;
508
+ top: 37px; }
509
+ 84% {
510
+ width: 17px;
511
+ left: 21px;
512
+ top: 48px; }
513
+ 100% {
514
+ width: 25px;
515
+ left: 14px;
516
+ top: 45px; } }
517
+
518
+ @keyframes animateSuccessTip {
519
+ 0% {
520
+ width: 0;
521
+ left: 1px;
522
+ top: 19px; }
523
+ 54% {
524
+ width: 0;
525
+ left: 1px;
526
+ top: 19px; }
527
+ 70% {
528
+ width: 50px;
529
+ left: -8px;
530
+ top: 37px; }
531
+ 84% {
532
+ width: 17px;
533
+ left: 21px;
534
+ top: 48px; }
535
+ 100% {
536
+ width: 25px;
537
+ left: 14px;
538
+ top: 45px; } }
539
+
540
+ @-webkit-keyframes animateSuccessLong {
541
+ 0% {
542
+ width: 0;
543
+ right: 46px;
544
+ top: 54px; }
545
+ 65% {
546
+ width: 0;
547
+ right: 46px;
548
+ top: 54px; }
549
+ 84% {
550
+ width: 55px;
551
+ right: 0px;
552
+ top: 35px; }
553
+ 100% {
554
+ width: 47px;
555
+ right: 8px;
556
+ top: 38px; } }
557
+
558
+ @keyframes animateSuccessLong {
559
+ 0% {
560
+ width: 0;
561
+ right: 46px;
562
+ top: 54px; }
563
+ 65% {
564
+ width: 0;
565
+ right: 46px;
566
+ top: 54px; }
567
+ 84% {
568
+ width: 55px;
569
+ right: 0px;
570
+ top: 35px; }
571
+ 100% {
572
+ width: 47px;
573
+ right: 8px;
574
+ top: 38px; } }
575
+
576
+ @-webkit-keyframes rotatePlaceholder {
577
+ 0% {
578
+ transform: rotate(-45deg);
579
+ -webkit-transform: rotate(-45deg); }
580
+ 5% {
581
+ transform: rotate(-45deg);
582
+ -webkit-transform: rotate(-45deg); }
583
+ 12% {
584
+ transform: rotate(-405deg);
585
+ -webkit-transform: rotate(-405deg); }
586
+ 100% {
587
+ transform: rotate(-405deg);
588
+ -webkit-transform: rotate(-405deg); } }
589
+
590
+ @keyframes rotatePlaceholder {
591
+ 0% {
592
+ transform: rotate(-45deg);
593
+ -webkit-transform: rotate(-45deg); }
594
+ 5% {
595
+ transform: rotate(-45deg);
596
+ -webkit-transform: rotate(-45deg); }
597
+ 12% {
598
+ transform: rotate(-405deg);
599
+ -webkit-transform: rotate(-405deg); }
600
+ 100% {
601
+ transform: rotate(-405deg);
602
+ -webkit-transform: rotate(-405deg); } }
603
+
604
+ .animateSuccessTip {
605
+ -webkit-animation: animateSuccessTip 0.75s;
606
+ animation: animateSuccessTip 0.75s; }
607
+
608
+ .animateSuccessLong {
609
+ -webkit-animation: animateSuccessLong 0.75s;
610
+ animation: animateSuccessLong 0.75s; }
611
+
612
+ .sa-icon.sa-success.animate::after {
613
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
614
+ animation: rotatePlaceholder 4.25s ease-in; }
615
+
616
+ @-webkit-keyframes animateErrorIcon {
617
+ 0% {
618
+ transform: rotateX(100deg);
619
+ -webkit-transform: rotateX(100deg);
620
+ opacity: 0; }
621
+ 100% {
622
+ transform: rotateX(0deg);
623
+ -webkit-transform: rotateX(0deg);
624
+ opacity: 1; } }
625
+
626
+ @keyframes animateErrorIcon {
627
+ 0% {
628
+ transform: rotateX(100deg);
629
+ -webkit-transform: rotateX(100deg);
630
+ opacity: 0; }
631
+ 100% {
632
+ transform: rotateX(0deg);
633
+ -webkit-transform: rotateX(0deg);
634
+ opacity: 1; } }
635
+
636
+ .animateErrorIcon {
637
+ -webkit-animation: animateErrorIcon 0.5s;
638
+ animation: animateErrorIcon 0.5s; }
639
+
640
+ @-webkit-keyframes animateXMark {
641
+ 0% {
642
+ transform: scale(0.4);
643
+ -webkit-transform: scale(0.4);
644
+ margin-top: 26px;
645
+ opacity: 0; }
646
+ 50% {
647
+ transform: scale(0.4);
648
+ -webkit-transform: scale(0.4);
649
+ margin-top: 26px;
650
+ opacity: 0; }
651
+ 80% {
652
+ transform: scale(1.15);
653
+ -webkit-transform: scale(1.15);
654
+ margin-top: -6px; }
655
+ 100% {
656
+ transform: scale(1);
657
+ -webkit-transform: scale(1);
658
+ margin-top: 0;
659
+ opacity: 1; } }
660
+
661
+ @keyframes animateXMark {
662
+ 0% {
663
+ transform: scale(0.4);
664
+ -webkit-transform: scale(0.4);
665
+ margin-top: 26px;
666
+ opacity: 0; }
667
+ 50% {
668
+ transform: scale(0.4);
669
+ -webkit-transform: scale(0.4);
670
+ margin-top: 26px;
671
+ opacity: 0; }
672
+ 80% {
673
+ transform: scale(1.15);
674
+ -webkit-transform: scale(1.15);
675
+ margin-top: -6px; }
676
+ 100% {
677
+ transform: scale(1);
678
+ -webkit-transform: scale(1);
679
+ margin-top: 0;
680
+ opacity: 1; } }
681
+
682
+ .animateXMark {
683
+ -webkit-animation: animateXMark 0.5s;
684
+ animation: animateXMark 0.5s; }
685
+
686
+ @-webkit-keyframes pulseWarning {
687
+ 0% {
688
+ border-color: #F8D486; }
689
+ 100% {
690
+ border-color: #F8BB86; } }
691
+
692
+ @keyframes pulseWarning {
693
+ 0% {
694
+ border-color: #F8D486; }
695
+ 100% {
696
+ border-color: #F8BB86; } }
697
+
698
+ .pulseWarning {
699
+ -webkit-animation: pulseWarning 0.75s infinite alternate;
700
+ animation: pulseWarning 0.75s infinite alternate; }
701
+
702
+ @-webkit-keyframes pulseWarningIns {
703
+ 0% {
704
+ background-color: #F8D486; }
705
+ 100% {
706
+ background-color: #F8BB86; } }
707
+
708
+ @keyframes pulseWarningIns {
709
+ 0% {
710
+ background-color: #F8D486; }
711
+ 100% {
712
+ background-color: #F8BB86; } }
713
+
714
+ .pulseWarningIns {
715
+ -webkit-animation: pulseWarningIns 0.75s infinite alternate;
716
+ animation: pulseWarningIns 0.75s infinite alternate; }
717
+
718
+ @-webkit-keyframes rotate-loading {
719
+ 0% {
720
+ transform: rotate(0deg); }
721
+ 100% {
722
+ transform: rotate(360deg); } }
723
+
724
+ @keyframes rotate-loading {
725
+ 0% {
726
+ transform: rotate(0deg); }
727
+ 100% {
728
+ transform: rotate(360deg); } }
729
+
730
+ /* Internet Explorer 9 has some special quirks that are fixed here */
731
+ /* The icons are not animated. */
732
+ /* This file is automatically merged into sweet-alert.min.js through Gulp */
733
+ /* Error icon */
734
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
735
+ -ms-transform: rotate(45deg) \9; }
736
+
737
+ .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
738
+ -ms-transform: rotate(-45deg) \9; }
739
+
740
+ /* Success icon */
741
+ .sweet-alert .sa-icon.sa-success {
742
+ border-color: transparent\9; }
743
+
744
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
745
+ -ms-transform: rotate(45deg) \9; }
746
+
747
+ .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
748
+ -ms-transform: rotate(-45deg) \9; }
749
+
750
+ /*!
751
+ * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
752
+ * Copyright 2015 Daniel Cardoso <@DanielCardoso>
753
+ * Licensed under MIT
754
+ */
755
+ .la-ball-fall,
756
+ .la-ball-fall > div {
757
+ position: relative;
758
+ -webkit-box-sizing: border-box;
759
+ -moz-box-sizing: border-box;
760
+ box-sizing: border-box; }
761
+
762
+ .la-ball-fall {
763
+ display: block;
764
+ font-size: 0;
765
+ color: #fff; }
766
+
767
+ .la-ball-fall.la-dark {
768
+ color: #333; }
769
+
770
+ .la-ball-fall > div {
771
+ display: inline-block;
772
+ float: none;
773
+ background-color: currentColor;
774
+ border: 0 solid currentColor; }
775
+
776
+ .la-ball-fall {
777
+ width: 54px;
778
+ height: 18px; }
779
+
780
+ .la-ball-fall > div {
781
+ width: 10px;
782
+ height: 10px;
783
+ margin: 4px;
784
+ border-radius: 100%;
785
+ opacity: 0;
786
+ -webkit-animation: ball-fall 1s ease-in-out infinite;
787
+ -moz-animation: ball-fall 1s ease-in-out infinite;
788
+ -o-animation: ball-fall 1s ease-in-out infinite;
789
+ animation: ball-fall 1s ease-in-out infinite; }
790
+
791
+ .la-ball-fall > div:nth-child(1) {
792
+ -webkit-animation-delay: -200ms;
793
+ -moz-animation-delay: -200ms;
794
+ -o-animation-delay: -200ms;
795
+ animation-delay: -200ms; }
796
+
797
+ .la-ball-fall > div:nth-child(2) {
798
+ -webkit-animation-delay: -100ms;
799
+ -moz-animation-delay: -100ms;
800
+ -o-animation-delay: -100ms;
801
+ animation-delay: -100ms; }
802
+
803
+ .la-ball-fall > div:nth-child(3) {
804
+ -webkit-animation-delay: 0ms;
805
+ -moz-animation-delay: 0ms;
806
+ -o-animation-delay: 0ms;
807
+ animation-delay: 0ms; }
808
+
809
+ .la-ball-fall.la-sm {
810
+ width: 26px;
811
+ height: 8px; }
812
+
813
+ .la-ball-fall.la-sm > div {
814
+ width: 4px;
815
+ height: 4px;
816
+ margin: 2px; }
817
+
818
+ .la-ball-fall.la-2x {
819
+ width: 108px;
820
+ height: 36px; }
821
+
822
+ .la-ball-fall.la-2x > div {
823
+ width: 20px;
824
+ height: 20px;
825
+ margin: 8px; }
826
+
827
+ .la-ball-fall.la-3x {
828
+ width: 162px;
829
+ height: 54px; }
830
+
831
+ .la-ball-fall.la-3x > div {
832
+ width: 30px;
833
+ height: 30px;
834
+ margin: 12px; }
835
+
836
+ /*
837
+ * Animation
838
+ */
839
+ @-webkit-keyframes ball-fall {
840
+ 0% {
841
+ opacity: 0;
842
+ -webkit-transform: translateY(-145%);
843
+ transform: translateY(-145%); }
844
+ 10% {
845
+ opacity: .5; }
846
+ 20% {
847
+ opacity: 1;
848
+ -webkit-transform: translateY(0);
849
+ transform: translateY(0); }
850
+ 80% {
851
+ opacity: 1;
852
+ -webkit-transform: translateY(0);
853
+ transform: translateY(0); }
854
+ 90% {
855
+ opacity: .5; }
856
+ 100% {
857
+ opacity: 0;
858
+ -webkit-transform: translateY(145%);
859
+ transform: translateY(145%); } }
860
+
861
+ @-moz-keyframes ball-fall {
862
+ 0% {
863
+ opacity: 0;
864
+ -moz-transform: translateY(-145%);
865
+ transform: translateY(-145%); }
866
+ 10% {
867
+ opacity: .5; }
868
+ 20% {
869
+ opacity: 1;
870
+ -moz-transform: translateY(0);
871
+ transform: translateY(0); }
872
+ 80% {
873
+ opacity: 1;
874
+ -moz-transform: translateY(0);
875
+ transform: translateY(0); }
876
+ 90% {
877
+ opacity: .5; }
878
+ 100% {
879
+ opacity: 0;
880
+ -moz-transform: translateY(145%);
881
+ transform: translateY(145%); } }
882
+
883
+ @-o-keyframes ball-fall {
884
+ 0% {
885
+ opacity: 0;
886
+ -o-transform: translateY(-145%);
887
+ transform: translateY(-145%); }
888
+ 10% {
889
+ opacity: .5; }
890
+ 20% {
891
+ opacity: 1;
892
+ -o-transform: translateY(0);
893
+ transform: translateY(0); }
894
+ 80% {
895
+ opacity: 1;
896
+ -o-transform: translateY(0);
897
+ transform: translateY(0); }
898
+ 90% {
899
+ opacity: .5; }
900
+ 100% {
901
+ opacity: 0;
902
+ -o-transform: translateY(145%);
903
+ transform: translateY(145%); } }
904
+
905
+ @keyframes ball-fall {
906
+ 0% {
907
+ opacity: 0;
908
+ -webkit-transform: translateY(-145%);
909
+ -moz-transform: translateY(-145%);
910
+ -o-transform: translateY(-145%);
911
+ transform: translateY(-145%); }
912
+ 10% {
913
+ opacity: .5; }
914
+ 20% {
915
+ opacity: 1;
916
+ -webkit-transform: translateY(0);
917
+ -moz-transform: translateY(0);
918
+ -o-transform: translateY(0);
919
+ transform: translateY(0); }
920
+ 80% {
921
+ opacity: 1;
922
+ -webkit-transform: translateY(0);
923
+ -moz-transform: translateY(0);
924
+ -o-transform: translateY(0);
925
+ transform: translateY(0); }
926
+ 90% {
927
+ opacity: .5; }
928
+ 100% {
929
+ opacity: 0;
930
+ -webkit-transform: translateY(145%);
931
+ -moz-transform: translateY(145%);
932
+ -o-transform: translateY(145%);
933
+ transform: translateY(145%); } }
@@ -16,6 +16,7 @@
16
16
  <%#= raw javascript_include_merged :my_admin %>
17
17
 
18
18
  <%= stylesheet_link_tag "my_admin/application", media: "all", "data-turbolinks-track" => true %>
19
+ <%= stylesheet_link_tag "my_admin_application", media: "all", "data-turbolinks-track" => true %>
19
20
  <%= javascript_include_tag "my_admin/application", "data-turbolinks-track" => true %>
20
21
  <%= javascript_include_tag "my_admin_application", "data-turbolinks-track" => true %>
21
22
 
@@ -87,5 +88,12 @@
87
88
  </div>
88
89
  </div>
89
90
 
91
+ <div class="loading" id="loading">
92
+ <div class="spinner-wrapper">
93
+ <span class="spinner-text">Carregando</span>
94
+ <span class="spinner-image"></span>
95
+ </div>
96
+ </div>
97
+
90
98
  </body>
91
99
  </html>
@@ -16,6 +16,7 @@
16
16
  <%#= raw javascript_include_merged :my_admin_locked %>
17
17
 
18
18
  <%= stylesheet_link_tag "my_admin/application_locked", media: "all", "data-turbolinks-track" => true %>
19
+ <%= stylesheet_link_tag "my_admin_application_locked", media: "all", "data-turbolinks-track" => true %>
19
20
  <%= javascript_include_tag "my_admin/application_locked", "data-turbolinks-track" => true %>
20
21
  <%= javascript_include_tag "my_admin_application_locked", "data-turbolinks-track" => true %>
21
22
 
@@ -16,6 +16,7 @@
16
16
  <%#= raw javascript_include_merged :my_admin_off %>
17
17
 
18
18
  <%= stylesheet_link_tag "my_admin/application_off", media: "all", "data-turbolinks-track" => true %>
19
+ <%= stylesheet_link_tag "my_admin_application_off", media: "all", "data-turbolinks-track" => true %>
19
20
  <%= javascript_include_tag "my_admin/application_off", "data-turbolinks-track" => true %>
20
21
  <%= javascript_include_tag "my_admin_application_off", "data-turbolinks-track" => true %>
21
22
 
@@ -1,3 +1,3 @@
1
1
  module MyAdmin
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Vinicius von Gal dos Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-28 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -699,6 +699,7 @@ files:
699
699
  - app/assets/javascripts/my_admin/plugins/slimscroll/jquery.slimscroll.js
700
700
  - app/assets/javascripts/my_admin/plugins/slimscroll/jquery.slimscroll.min.js
701
701
  - app/assets/javascripts/my_admin/plugins/sparklines/jquery.sparklines.min.js
702
+ - app/assets/javascripts/my_admin/plugins/sweetalert/sweetalert.min.js
702
703
  - app/assets/javascripts/my_admin/plugins/tagsinput/jquery.tagsinput.min.js
703
704
  - app/assets/javascripts/my_admin/plugins/timepicker/bootstrap-timepicker.min.js
704
705
  - app/assets/javascripts/my_admin/plugins/touch-punch/jquery.touch-punch.min.js
@@ -715,12 +716,16 @@ files:
715
716
  - app/assets/javascripts/my_admin/plugins/xeditable/demo.js
716
717
  - app/assets/javascripts/my_admin/plugins/xeditable/demo.min.js
717
718
  - app/assets/javascripts/my_admin/rails.js
719
+ - app/assets/stylesheets/application.css
720
+ - app/assets/stylesheets/application_locked.css
721
+ - app/assets/stylesheets/application_off.css
718
722
  - app/assets/stylesheets/my_admin.css
719
723
  - app/assets/stylesheets/my_admin/application.css
720
724
  - app/assets/stylesheets/my_admin/application_locked.css
721
725
  - app/assets/stylesheets/my_admin/application_off.css
722
726
  - app/assets/stylesheets/my_admin/bootstrap-responsive.css
723
727
  - app/assets/stylesheets/my_admin/bootstrap.css.erb
728
+ - app/assets/stylesheets/my_admin/loading.css
724
729
  - app/assets/stylesheets/my_admin/my_admin.css
725
730
  - app/assets/stylesheets/my_admin/plugins/chosen/chosen.css.erb
726
731
  - app/assets/stylesheets/my_admin/plugins/colorbox/colorbox.css.erb
@@ -805,6 +810,7 @@ files:
805
810
  - app/assets/stylesheets/my_admin/plugins/pageguide/pageguide.css
806
811
  - app/assets/stylesheets/my_admin/plugins/plupload/jquery.plupload.queue.css.erb
807
812
  - app/assets/stylesheets/my_admin/plugins/select2/select2.css.erb
813
+ - app/assets/stylesheets/my_admin/plugins/sweetalert/sweetalert.css
808
814
  - app/assets/stylesheets/my_admin/plugins/tagsinput/jquery.tagsinput.css
809
815
  - app/assets/stylesheets/my_admin/plugins/timepicker/bootstrap-timepicker.min.css
810
816
  - app/assets/stylesheets/my_admin/plugins/xeditable/bootstrap-editable.css
@@ -978,7 +984,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
978
984
  version: '0'
979
985
  requirements: []
980
986
  rubyforge_project: my_admin
981
- rubygems_version: 2.2.2
987
+ rubygems_version: 2.6.7
982
988
  signing_key:
983
989
  specification_version: 4
984
990
  summary: MyAdmin