@mrxploder/saxvue 0.1.0 → 0.3.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.
Files changed (141) hide show
  1. package/README.md +303 -104
  2. package/dist/base.css +1 -1
  3. package/dist/base.js.LICENSE.txt +1 -1
  4. package/dist/base.min.css +1 -1
  5. package/dist/base.min.js.LICENSE.txt +1 -1
  6. package/dist/saxvue.css +1 -1
  7. package/dist/saxvue.js +1 -1
  8. package/dist/saxvue.js.LICENSE.txt +1 -1
  9. package/dist/saxvue.min.css +1 -1
  10. package/dist/saxvue.min.js +1 -1
  11. package/dist/saxvue.min.js.LICENSE.txt +1 -1
  12. package/dist/svAlert/index.js.LICENSE.txt +1 -1
  13. package/dist/svAlert/style.css +1 -1
  14. package/dist/svAvatar/index.js.LICENSE.txt +1 -1
  15. package/dist/svAvatar/style.css +1 -1
  16. package/dist/svAvatarGroup/index.js.LICENSE.txt +1 -1
  17. package/dist/svAvatarGroup/style.css +1 -1
  18. package/dist/svButton/index.js.LICENSE.txt +1 -1
  19. package/dist/svButton/style.css +1 -1
  20. package/dist/svCard/index.js.LICENSE.txt +1 -1
  21. package/dist/svCard/style.css +1 -1
  22. package/dist/svCardGroup/index.js.LICENSE.txt +1 -1
  23. package/dist/svCardGroup/style.css +1 -1
  24. package/dist/svCheckbox/index.js.LICENSE.txt +1 -1
  25. package/dist/svCheckbox/style.css +1 -1
  26. package/dist/svDialog/index.js.LICENSE.txt +1 -1
  27. package/dist/svDialog/style.css +1 -1
  28. package/dist/svInput/index.js.LICENSE.txt +1 -1
  29. package/dist/svInput/style.css +1 -1
  30. package/dist/svNavbar/index.js.LICENSE.txt +1 -1
  31. package/dist/svNavbar/style.css +1 -1
  32. package/dist/svNavbarGroup/index.js.LICENSE.txt +1 -1
  33. package/dist/svNavbarGroup/style.css +1 -1
  34. package/dist/svNavbarItem/index.js.LICENSE.txt +1 -1
  35. package/dist/svOption/index.js.LICENSE.txt +1 -1
  36. package/dist/svOption/style.css +1 -1
  37. package/dist/svOptionGroup/index.js.LICENSE.txt +1 -1
  38. package/dist/svOptionGroup/style.css +1 -1
  39. package/dist/svPagination/index.js.LICENSE.txt +1 -1
  40. package/dist/svPagination/style.css +1 -1
  41. package/dist/svRadio/index.js.LICENSE.txt +1 -1
  42. package/dist/svRadio/style.css +1 -1
  43. package/dist/svSelect/index.js +1 -1
  44. package/dist/svSelect/index.js.LICENSE.txt +1 -1
  45. package/dist/svSelect/style.css +1 -1
  46. package/dist/svSidebar/index.js.LICENSE.txt +1 -1
  47. package/dist/svSidebar/style.css +1 -1
  48. package/dist/svSidebarGroup/index.js.LICENSE.txt +1 -1
  49. package/dist/svSidebarGroup/style.css +1 -1
  50. package/dist/svSidebarItem/index.js.LICENSE.txt +1 -1
  51. package/dist/svSidebarItem/style.css +1 -1
  52. package/dist/svSwitch/index.js.LICENSE.txt +1 -1
  53. package/dist/svSwitch/style.css +1 -1
  54. package/dist/svTable/index.js.LICENSE.txt +1 -1
  55. package/dist/svTable/style.css +1 -1
  56. package/dist/svTableTd/index.js.LICENSE.txt +1 -1
  57. package/dist/svTableTh/index.js.LICENSE.txt +1 -1
  58. package/dist/svTableTh/style.css +1 -1
  59. package/dist/svTableTr/index.js.LICENSE.txt +1 -1
  60. package/dist/svTableTr/style.css +1 -1
  61. package/dist/svTooltip/index.js.LICENSE.txt +1 -1
  62. package/dist/svTooltip/style.css +1 -1
  63. package/package.json +11 -32
  64. package/dist/vsAlert/index.js +0 -2
  65. package/dist/vsAlert/index.js.LICENSE.txt +0 -5
  66. package/dist/vsAlert/style.css +0 -1
  67. package/dist/vsAvatar/index.js +0 -2
  68. package/dist/vsAvatar/index.js.LICENSE.txt +0 -5
  69. package/dist/vsAvatar/style.css +0 -1
  70. package/dist/vsAvatarGroup/index.js +0 -2
  71. package/dist/vsAvatarGroup/index.js.LICENSE.txt +0 -5
  72. package/dist/vsAvatarGroup/style.css +0 -1
  73. package/dist/vsButton/index.js +0 -2
  74. package/dist/vsButton/index.js.LICENSE.txt +0 -5
  75. package/dist/vsButton/style.css +0 -1
  76. package/dist/vsCard/index.js +0 -2
  77. package/dist/vsCard/index.js.LICENSE.txt +0 -5
  78. package/dist/vsCard/style.css +0 -1
  79. package/dist/vsCardGroup/index.js +0 -2
  80. package/dist/vsCardGroup/index.js.LICENSE.txt +0 -5
  81. package/dist/vsCardGroup/style.css +0 -1
  82. package/dist/vsCheckbox/index.js +0 -2
  83. package/dist/vsCheckbox/index.js.LICENSE.txt +0 -5
  84. package/dist/vsCheckbox/style.css +0 -1
  85. package/dist/vsDialog/index.js +0 -2
  86. package/dist/vsDialog/index.js.LICENSE.txt +0 -5
  87. package/dist/vsDialog/style.css +0 -1
  88. package/dist/vsInput/index.js +0 -2
  89. package/dist/vsInput/index.js.LICENSE.txt +0 -5
  90. package/dist/vsInput/style.css +0 -1
  91. package/dist/vsNavbar/index.js +0 -2
  92. package/dist/vsNavbar/index.js.LICENSE.txt +0 -5
  93. package/dist/vsNavbar/style.css +0 -1
  94. package/dist/vsNavbarGroup/index.js +0 -2
  95. package/dist/vsNavbarGroup/index.js.LICENSE.txt +0 -5
  96. package/dist/vsNavbarGroup/style.css +0 -1
  97. package/dist/vsNavbarItem/index.js +0 -2
  98. package/dist/vsNavbarItem/index.js.LICENSE.txt +0 -5
  99. package/dist/vsNavbarItem/style.css +0 -1
  100. package/dist/vsOption/index.js +0 -2
  101. package/dist/vsOption/index.js.LICENSE.txt +0 -5
  102. package/dist/vsOption/style.css +0 -1
  103. package/dist/vsOptionGroup/index.js +0 -2
  104. package/dist/vsOptionGroup/index.js.LICENSE.txt +0 -5
  105. package/dist/vsOptionGroup/style.css +0 -1
  106. package/dist/vsPagination/index.js +0 -2
  107. package/dist/vsPagination/index.js.LICENSE.txt +0 -5
  108. package/dist/vsPagination/style.css +0 -1
  109. package/dist/vsRadio/index.js +0 -2
  110. package/dist/vsRadio/index.js.LICENSE.txt +0 -5
  111. package/dist/vsRadio/style.css +0 -1
  112. package/dist/vsSelect/index.js +0 -2
  113. package/dist/vsSelect/index.js.LICENSE.txt +0 -5
  114. package/dist/vsSelect/style.css +0 -1
  115. package/dist/vsSidebar/index.js +0 -2
  116. package/dist/vsSidebar/index.js.LICENSE.txt +0 -5
  117. package/dist/vsSidebar/style.css +0 -1
  118. package/dist/vsSidebarGroup/index.js +0 -2
  119. package/dist/vsSidebarGroup/index.js.LICENSE.txt +0 -5
  120. package/dist/vsSidebarGroup/style.css +0 -1
  121. package/dist/vsSidebarItem/index.js +0 -2
  122. package/dist/vsSidebarItem/index.js.LICENSE.txt +0 -5
  123. package/dist/vsSidebarItem/style.css +0 -1
  124. package/dist/vsSwitch/index.js +0 -2
  125. package/dist/vsSwitch/index.js.LICENSE.txt +0 -5
  126. package/dist/vsSwitch/style.css +0 -1
  127. package/dist/vsTable/index.js +0 -2
  128. package/dist/vsTable/index.js.LICENSE.txt +0 -5
  129. package/dist/vsTable/style.css +0 -1
  130. package/dist/vsTableTd/index.js +0 -2
  131. package/dist/vsTableTd/index.js.LICENSE.txt +0 -5
  132. package/dist/vsTableTd/style.css +0 -1
  133. package/dist/vsTableTh/index.js +0 -2
  134. package/dist/vsTableTh/index.js.LICENSE.txt +0 -5
  135. package/dist/vsTableTh/style.css +0 -1
  136. package/dist/vsTableTr/index.js +0 -2
  137. package/dist/vsTableTr/index.js.LICENSE.txt +0 -5
  138. package/dist/vsTableTr/style.css +0 -1
  139. package/dist/vsTooltip/index.js +0 -2
  140. package/dist/vsTooltip/index.js.LICENSE.txt +0 -5
  141. package/dist/vsTooltip/style.css +0 -1
@@ -1 +0,0 @@
1
- .vs-sidebar__group{min-width:260px;padding:0;position:relative;width:100%}.vs-sidebar__group.open .vs-sidebar__group__content:after{opacity:1;transform:translate(0)}.vs-sidebar__group.open>.vs-sidebar__group__header .vs-sidebar__item{opacity:1}.vs-sidebar__group.open>.vs-sidebar__group__header .vs-sidebar__item__arrow{transform:rotate(45deg)!important}.vs-sidebar__group__header{align-items:center;display:flex;justify-content:center}.vs-sidebar__group__content{overflow:hidden;position:relative;transition:all .25s ease}.vs-sidebar__group__content:after{background:-color("color",.3);border-radius:0 10px 10px 0;content:"";height:100%;left:0;opacity:0;position:absolute;top:0;transform:translate(-100%);transition:all .25s ease;width:4px;z-index:60}.vs-sidebar__group__content .vs-sidebar__item{background:-color("background")}.vs-sidebar__group>.vs-sidebar__group__header .vs-sidebar__item:hover{padding-left:0}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsSidebarItem=t(require("vue")):e.vsSidebarItem=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};o.d(n,{default:()=>p});var i=o(594);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function a(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function l(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}const c=(0,i.defineComponent)({name:"VsIconArrow",props:{less:{type:Boolean,default:!1}},setup:(e,{attrs:t})=>()=>(0,i.h)("i",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({class:["vs-icon-arrow",{less:e.less}]},t))}),f=(0,i.defineComponent)({name:"VsSidebarItem",props:{to:{type:String,default:void 0},href:{type:String,default:void 0},target:{type:String,default:"_blank"},value:{type:String,default:void 0},id:{type:String,default:void 0},arrow:{type:Boolean,default:!1}},setup(e,{slots:t}){const r=(0,i.getCurrentInstance)(),o=r&&r.proxy?r.proxy.$parent:null,n=r&&r.proxy?r.proxy.$router:null;return()=>{const r=(0,i.h)("div",{class:"vs-sidebar__item__icon"},[t.icon?t.icon():null]),u=(0,i.h)("div",{class:"vs-sidebar__item__text-tooltip"},[t.default?t.default():null]),a=(0,i.h)("div",{class:"vs-sidebar__item__text"},[t.default?t.default():null]),l=(0,i.h)(c),s=(0,i.h)("div",{class:"vs-sidebar__item__arrow"},[t.arrow?t.arrow():l]);return(0,i.h)("button",{class:["vs-sidebar__item",{active:o&&o.getValue&&e.id==o.getValue,hasIcon:!!t.icon}],onClick:()=>{e.id&&o&&"function"==typeof o.handleClickItem&&o.handleClickItem(e.id),e.to&&n?n.push(e.to):e.href&&window.open(e.href,e.target)}},[t.icon?r:null,a,u,t.arrow?t.arrow():e.arrow?s:null])}}});f.install=e=>{e.component("VsSidebarItem",f)};const p=f;return n=n.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-icon-close{align-items:center;display:flex;height:30px;justify-content:center;position:relative;transition:all .25s ease;width:30px}.vs-icon-close:before{transform:rotate(-45deg)}.vs-icon-close:after,.vs-icon-close:before{background:-color("color",1);border-radius:2px;content:"";height:2px;position:absolute;transition:all .3s ease;width:16px}.vs-icon-close:after{transform:rotate(45deg)}.vs-icon-close.vs-icon-hover-less:hover:after,.vs-icon-close.vs-icon-hover-less:hover:before{transform:rotate(180deg);width:12px}.vs-icon-plus{align-items:center;cursor:pointer;display:flex;height:30px;justify-content:center;position:relative;transition:all .25s ease;width:30px}.vs-icon-plus:before{transform:rotate(0deg);transition:all .3s ease}.vs-icon-plus:after,.vs-icon-plus:before{background:-color("color",1);border-radius:2px;content:"";height:2px;position:absolute;width:14px}.vs-icon-plus:after{transform:rotate(90deg);transition:all .4s ease}.vs-icon-plus:hover:not(.less){transform:rotate(-90deg)}.vs-icon-plus.less:hover{transform:scale(.75)}.vs-icon-plus.less:after{transform:rotate(180deg)}.vs-icon-check{align-items:center;border-radius:inherit;display:flex;height:23px;justify-content:center;transition:all .25s ease;width:23px}.vs-icon-check span{display:block;height:13px;margin-top:-4px;position:relative;transform:rotate(45deg);width:8px}.vs-icon-check span .line1{background:transparent;border-radius:2px;border-radius:5px;bottom:0;content:"";height:2px;position:absolute;transition:all .2s ease;width:8px;z-index:100}.vs-icon-check span .line1:after{background:#fff;border-radius:5px 0 0 5px;content:"";height:2px;position:absolute;transition:all .25s ease;width:0}.vs-icon-check span .line2{background:transparent;border-radius:5px;bottom:0;content:"";height:13px;position:absolute;right:0;transition:all .2s ease;width:2px;z-index:100}.vs-icon-check span .line2:after{background:#fff;border-radius:5px 5px 0 0;bottom:0;content:"";height:0;position:absolute;transition:all .25s ease;width:2px}.vs-icon-check.active:before{width:8px}.vs-icon-check.active:after{width:4px}.vs-icon-check.indeterminate span{height:auto;margin:0;transform:rotate(0);width:auto}.vs-icon-check.indeterminate span:after{background:#fff;content:"";display:block;height:2px;position:relative;width:10px}.vs-icon-check.indeterminate span .line1{bottom:0;display:none;opacity:0;right:-1px;transform:rotate(-45deg)}.vs-icon-check.indeterminate span .line2{bottom:-.14rem!important;display:none;height:11px!important;right:0!important;transform:rotate(45deg)!important;transition:all .25s ease!important}.vs-icon-arrow{height:7px;pointer-events:none;transform:rotate(-135deg);transform-origin:center;transition:all .25s ease;width:7px}.vs-icon-arrow:after{height:1px;width:100%}.vs-icon-arrow:after,.vs-icon-arrow:before{background:-color("text");content:"";display:block;position:absolute;top:0}.vs-icon-arrow:before{height:100%;width:1px}.vs-sidebar__item{align-items:center;background:transparent;border:0;color:-color("text");display:flex;font-size:1rem;font-weight:700;justify-content:flex-start;opacity:.7;padding:15px 16px 14px;position:relative;text-align:left;transition:all .25s ease;width:100%}.vs-sidebar__item.hasIcon{padding:0}.vs-sidebar__item.hasIcon.active{padding-left:8px}.vs-sidebar__item.hasIcon:hover{opacity:1;padding-left:8px}.vs-sidebar__item:after{background:-color("color");border-radius:0 20px 20px 0;content:"";height:100%;left:-4px;position:absolute;top:0;transform:translate(-6px);transition:all .25s ease;width:10px;z-index:60}.vs-sidebar__item.active:not(.hasIcon){padding-left:25px}.vs-sidebar__item.active{color:-color("color");opacity:1}.vs-sidebar__item.active:after{transform:translate(0)}.vs-sidebar__item__icon{align-items:center;background:-color("background");display:flex;font-size:1.2rem;height:47px;justify-content:center;min-width:50px;z-index:50}.vs-sidebar__item:hover:not(.hasIcon){opacity:1;padding-left:25px}.vs-sidebar__item__text{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;transition:all .25s ease;white-space:nowrap;z-index:10}.vs-sidebar__item__arrow{height:7px;justify-self:flex-end;margin-left:auto;margin-right:15px;position:relative;transform:rotate(-135deg)!important;transition:all .25s ease;width:7px;z-index:80}.vs-sidebar__item__arrow .vs-icon-arrow:before{width:2px}.vs-sidebar__item__arrow .vs-icon-arrow:after{height:2px}.vs-sidebar__item__text-tooltip{font-size:.85rem;left:50px;opacity:0;pointer-events:none;position:fixed;transition:all .25s ease;white-space:nowrap}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsSwitch=t(require("vue")):e.vsSwitch=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function c(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}o.d(n,{default:()=>m});var i=o(594);const s=e=>["primary","secondary","success","danger","warning","dark","light","warn","facebook","twitter","youtube","pinterest","linkedin","snapchat","whatsapp","tumblr","reddit","spotify","amazon","medium","vimeo","skype","dribbble","slack","yahoo","twitch","discord","telegram","google-plus","messenger"].includes(e),u=e=>{const t=/^(rgb|rgba)/.test(e),r=/^(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d),(0|255|25[0-4]|2[0-4]\d|1\d\d|0?\d?\d)$/.test(e),o=/^(#)/.test(e);let n;if(t){const t=e.replace(/[rgba()]/g,"").split(",");n=`${t[0]},${t[1]},${t[2]}`}else if(o){const t=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,r,o)=>t+t+r+r+o+o);const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}(e);n=`${t.r},${t.g},${t.b}`}else if(s(e)){n=window.getComputedStyle(document.body).getPropertyValue("--vs-"+e)}else r&&(n=e);return n};function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const d={color:{type:String,default:null},danger:{type:Boolean,default:!1},success:{type:Boolean,default:!1},warn:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},active:{type:Boolean,default:!1}};function y(e){const t=(0,i.reactive)({componentColor:null,getColor:null});t.getColor=u(e&&e.color?e.color:null);const r=(0,i.computed)(()=>e&&("dark"===e.color||e.dark||"dark"===t.componentColor)),o=(0,i.computed)(()=>e&&(!!e.color||!!e.primary||!!e.success||!!e.warn||!!e.danger||!!e.dark));try{const e=(0,i.getCurrentInstance)();e&&e.proxy&&(e.proxy.getColor=t.getColor)}catch(e){}return p(p({},t),{},{isColorDark:r,isColor:o})}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}const g=(0,i.defineComponent)({name:"VsSwitch",props:b(b({},d),{},{value:{default:""},val:{default:""},notValue:{default:""},loading:{type:Boolean,default:!1},square:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},icon:{type:Boolean,default:!1}}),setup(e,{emit:t,slots:r,attrs:o}){(0,i.getCurrentInstance)();const{getColor:n}=y(e),l=(0,i.computed)(()=>{let t=!1;if(e.value){if("boolean"==typeof e.value)t=e.value;else if("object"==typeof e.value&&null!==e.value){const t=e.value,r=-1===t.indexOf(e.val)&&-1===JSON.stringify(t).indexOf(JSON.stringify(e.val));let o=0;return t.forEach((t,r)=>{JSON.stringify(t)==JSON.stringify(e.val)&&(o=r)}),!r}}else t=!1;return t}),a=r=>{if("boolean"==typeof e.value)t("input",!e.value);else if("object"==typeof e.value&&null!==e.value){const r=e.value,o=-1===r.indexOf(e.val)&&-1===JSON.stringify(r).indexOf(JSON.stringify(e.val));let n=0;r.forEach((t,r)=>{JSON.stringify(t)==JSON.stringify(e.val)&&(n=r)}),o?r.push(e.val):r.splice(n,1),t("input",r)}else e.val!==e.value?t("input",e.val):t("input",e.notValue||null);t("change",r)};return()=>{const t=(0,i.h)("div",{class:["vs-switch__circle"]},[r.circle?r.circle():null]),c=(0,i.h)("div",{class:["vs-switch__text","on"]},[r.on?r.on():r.default?r.default():null]),s=(0,i.h)("div",{class:["vs-switch__text","off"]},[r.off?r.off():r.default?r.default():null]),u=(0,i.h)("div",{class:["vs-switch__background"]}),f=(0,i.h)("input",b(b({},o),{},{type:"checkbox",checked:l.value,onInput:a,class:["vs-switch__input"]}));return(0,i.h)("div",{class:["vs-switch",{"vs-switch--loading":e.loading,"vs-switch--square":e.square,"vs-switch--indeterminate":e.indeterminate,"vs-switch--icon":e.icon},{"vs-component--primary":!(e.danger||e.success||e.warn||e.dark||e.color)},{"vs-component--danger":!!e.danger},{"vs-component--warn":!!e.warn},{"vs-component--success":!!e.success},{"vs-component--dark":!!e.dark}],style:{"--vs-color":e.color?n:""}},[f,t,c,s,u])}}});g.install=e=>{e.component("VsSwitch",g)};const m=g;return n=n.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-switch{--vs-color:var(--vs-primary)}@keyframes rotateSwitch{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.vs-switch{align-items:center;background:-color("gray-3");border:0;border-radius:20px;color:#fff;display:flex;height:28px;justify-content:center;min-width:48px;overflow:hidden;padding:5px;position:relative;transition:all .25s ease}.vs-switch--icon .vs-switch__input:checked~.vs-switch__circle{color:#fff!important}.vs-switch--icon .vs-switch__circle{background:transparent!important;box-shadow:none!important}.vs-switch--icon .vs-switch__circle i{font-size:1.3rem;opacity:1}.vs-switch--indeterminate .vs-switch__input{pointer-events:none}.vs-switch--indeterminate .vs-switch__circle{left:50%!important;transform:translate(-50%)}.vs-switch--square{border-radius:5px}.vs-switch--square .vs-switch__background,.vs-switch--square .vs-switch__circle{border-radius:5px!important}.vs-switch:after{animation:rotateSwitch .6s linear .25s infinite;border-radius:50%;border-right:3px dashed -color("color");border-top:3px dashed -color("color");border-color:transparent transparent -color("color") -color("color");border-style:solid solid dashed dashed;border-width:3px}.vs-switch:after,.vs-switch:before{content:"";height:calc(100% - 8px);opacity:0;pointer-events:none;position:absolute;transition:all 0s ease 0s;visibility:hidden;width:calc(100% - 8px);z-index:200}.vs-switch:before{animation:rotateSwitch .6s ease .25s infinite;border-radius:50%;border-right:3px solid -color("color");border-top:3px solid -color("color");border-color:transparent transparent -color("color") -color("color");border-style:solid;border-width:3px}.vs-switch--loading{border-radius:20px!important;min-width:28px!important;pointer-events:none;width:28px!important}.vs-switch--loading .vs-switch__circle{border-radius:50%!important}.vs-switch--loading .vs-switch__background{opacity:0!important}.vs-switch--loading:after,.vs-switch--loading:before{opacity:1;transition:all .25s ease .3s;visibility:visible}.vs-switch:hover{background:-color("gray-4")}.vs-switch:active{transform:scale(.9)}.vs-switch__background{background:-color("color");border-radius:inherit;border-radius:50%;height:auto;left:-100%;padding-bottom:100%;position:absolute;transform:scale(1);transition:all .25s ease-out;width:100%;z-index:2}.vs-switch__text{align-items:center;color:-color("text");display:flex;font-size:.7rem;justify-content:center;overflow:hidden;padding:5px 5px 5px 25px;position:relative;transition:all .25s ease .05s;white-space:nowrap;z-index:9}.vs-switch__text.on{opacity:0;position:absolute;transform:translate(-100%)}.vs-switch__text i{font-size:1rem;opacity:.7}.vs-switch__circle{align-items:center;background:-color("background");border-radius:20px;color:-color("text");display:flex;height:20px;justify-content:center;left:4px;position:absolute;transition:all .25s ease;width:20px;z-index:10}.vs-switch__circle i{font-size:.8rem}.vs-switch__input{border-radius:inherit;cursor:pointer;height:100%;left:0;margin:0;opacity:0!important;position:absolute;top:0;width:100%;z-index:100}.vs-switch__input:active:checked~.vs-switch__circle{left:calc(100% - 30px)}.vs-switch__input:active~.vs-switch__circle{width:25px}.vs-switch__input:checked~.vs-switch__background{border-radius:50%;left:0;opacity:1;padding-bottom:100%;transform:scale(1);transition:all .25s ease;width:100%}.vs-switch__input:checked~.vs-switch__text{color:#fff;padding-left:5px;padding-right:25px}.vs-switch__input:checked~.vs-switch__text i{opacity:1}.vs-switch__input:checked~.vs-switch__text.on{opacity:1;position:relative;transform:translate(0)}.vs-switch__input:checked~.vs-switch__text.off{opacity:0;position:absolute;transform:translate(100%)}.vs-switch__input:checked~.vs-switch__circle{box-shadow:-5px 0 25px 0 -color("background",.6);color:-color("color");left:calc(100% - 24px)}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsTable=t(require("vue")):e.vsTable=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},o={};function l(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,l),a.exports}l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};l.d(r,{default:()=>n});var a=l(594);const s=(0,a.defineComponent)({name:"VsTable",props:{value:{},striped:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["input"],setup(e,{emit:t,slots:o}){const l=(0,a.ref)(0),r=(0,a.ref)(null);(0,a.onMounted)(()=>{if(r.value){const e=r.value.querySelectorAll("th");l.value=e.length}});const s=(0,a.computed)(()=>Array.isArray(e.value));return()=>{const t=(0,a.h)("footer",{class:"vs-table__footer"},[o.footer?o.footer():null]),n=(0,a.h)("header",{class:"vs-table__header"},[o.header?o.header():null]),d=(0,a.h)("thead",{ref:r,class:"vs-table__thead"},[o.thead?o.thead():null]),u=(0,a.h)("tbody",{class:"vs-table_not-found"},[(0,a.h)("tr",[(0,a.h)("td",{colspan:l.value},[o.notFound?o.notFound():"No matching records found"])])]),c=(0,a.h)("tbody",{class:"vs-table__tbody"},[o.tbody?o.tbody():null]),f=(0,a.h)("div",{class:["vs-table",{isSelectedValue:!!e.value,striped:e.striped,isMultipleSelected:s.value}]},[(0,a.h)("table",{},[d,c,u])]);return(0,a.h)("div",{class:"vs-table-content"},[o.header&&n,f,o.footer&&t])}}});s.install=e=>{e.component("VsTable",s)};const n=s;return r=r.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-table-content{--vs-color:var(--vs-primary);border-radius:16px;width:100%}.vs-table{font-size:.9rem;margin:0;overflow:auto;width:100%}.vs-table table{border:0;border-collapse:collapse;margin:0;min-width:500px;width:100%}.vs-table.striped .vs-table__tr:nth-child(2n){background:-color("gray-1")!important}.vs-table_not-found{display:none;padding:20px;text-align:center;width:100%}.vs-table_not-found tr{text-align:center}.vs-table_not-found tr td{border:0;padding:20px}.vs-table__tbody:empty{background:#000;display:none}.vs-table__tbody:empty~.vs-table_not-found{display:table-row-group}.vs-table.isSelectedValue tr{cursor:pointer}.vs-table__footer{background:-color("gray-2");border-radius:0 0 14px 14px;padding:8px 10px}.vs-table__header{background:-color("gray-2");border-radius:14px 14px 0 0;padding:10px;width:100%}.vs-table__header~.vs-table .vs-table__th:first-child,.vs-table__header~.vs-table .vs-table__th:last-child{border-radius:0}.vs-table__thead{width:100%}.vs-table__thead .vs-table__th{background:-color("gray-2")}.vs-table__thead .vs-table__th:first-child{border-radius:14px 0 0 0}.vs-table__thead .vs-table__th:last-child{border-radius:0 14px 0 0}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsTableTd=t(require("vue")):e.vsTableTd=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},o={};function r(e){var s=o[e];if(void 0!==s)return s.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};r.d(s,{default:()=>i});var n=r(594);const d=(0,n.defineComponent)({name:"VsTableTd",props:{checkbox:{type:Boolean,default:!1},edit:{type:Boolean,default:!1}},emits:["click"],setup:(e,{slots:t,attrs:o,emit:r})=>()=>(0,n.h)("td",Object.assign({},o,{class:{"vs-table__td":!0,isCheckbox:e.checkbox,isEdit:e.edit},onClick:e=>r("click",e)}),t.default?t.default():null)});d.install=e=>{e.component("VsTd",d)};const i=d;return s=s.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-table__td{border:0;font-size:.8rem;padding:10px 12px;transition:all .25s ease}.vs-table__td:last-child{border-radius:0 15px 15px 0}.vs-table__td:first-child{border-radius:15px 0 0 15px}.vs-table__td.isCheckbox{width:23px}.vs-table__td.isEdit{cursor:pointer;text-decoration:underline}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsTableTh=t(require("vue")):e.vsTableTh=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,o),s.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};o.d(n,{default:()=>p});var s=o(594);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}const a=(0,s.defineComponent)({name:"VsIconArrow",props:{less:{type:Boolean,default:!1}},setup:(e,{attrs:t})=>()=>(0,s.h)("i",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({class:["vs-icon-arrow",{less:e.less}]},t))}),f=(0,s.defineComponent)({name:"VsTableTh",props:{sort:{type:Boolean,default:!1}},setup:(e,{slots:t,attrs:r})=>()=>{const o=(0,s.h)(a,{class:"icon-sort-2"}),n=(0,s.h)(a,{class:"icon-sort-1"}),i=(0,s.h)("div",{class:"vs-table__th__content__icons"},[n,o]),c=(0,s.h)("div",{class:"vs-table__th__content"},[t.default?t.default():null,e.sort?i:null]);return(0,s.h)("th",Object.assign({},r,{class:["vs-table__th",{sort:e.sort}]}),[c])}});f.install=e=>{e.component("VsTh",f)};const p=f;return n=n.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-icon-close{align-items:center;display:flex;height:30px;justify-content:center;position:relative;transition:all .25s ease;width:30px}.vs-icon-close:before{transform:rotate(-45deg)}.vs-icon-close:after,.vs-icon-close:before{background:-color("color",1);border-radius:2px;content:"";height:2px;position:absolute;transition:all .3s ease;width:16px}.vs-icon-close:after{transform:rotate(45deg)}.vs-icon-close.vs-icon-hover-less:hover:after,.vs-icon-close.vs-icon-hover-less:hover:before{transform:rotate(180deg);width:12px}.vs-icon-plus{align-items:center;cursor:pointer;display:flex;height:30px;justify-content:center;position:relative;transition:all .25s ease;width:30px}.vs-icon-plus:before{transform:rotate(0deg);transition:all .3s ease}.vs-icon-plus:after,.vs-icon-plus:before{background:-color("color",1);border-radius:2px;content:"";height:2px;position:absolute;width:14px}.vs-icon-plus:after{transform:rotate(90deg);transition:all .4s ease}.vs-icon-plus:hover:not(.less){transform:rotate(-90deg)}.vs-icon-plus.less:hover{transform:scale(.75)}.vs-icon-plus.less:after{transform:rotate(180deg)}.vs-icon-check{align-items:center;border-radius:inherit;display:flex;height:23px;justify-content:center;transition:all .25s ease;width:23px}.vs-icon-check span{display:block;height:13px;margin-top:-4px;position:relative;transform:rotate(45deg);width:8px}.vs-icon-check span .line1{background:transparent;border-radius:2px;border-radius:5px;bottom:0;content:"";height:2px;position:absolute;transition:all .2s ease;width:8px;z-index:100}.vs-icon-check span .line1:after{background:#fff;border-radius:5px 0 0 5px;content:"";height:2px;position:absolute;transition:all .25s ease;width:0}.vs-icon-check span .line2{background:transparent;border-radius:5px;bottom:0;content:"";height:13px;position:absolute;right:0;transition:all .2s ease;width:2px;z-index:100}.vs-icon-check span .line2:after{background:#fff;border-radius:5px 5px 0 0;bottom:0;content:"";height:0;position:absolute;transition:all .25s ease;width:2px}.vs-icon-check.active:before{width:8px}.vs-icon-check.active:after{width:4px}.vs-icon-check.indeterminate span{height:auto;margin:0;transform:rotate(0);width:auto}.vs-icon-check.indeterminate span:after{background:#fff;content:"";display:block;height:2px;position:relative;width:10px}.vs-icon-check.indeterminate span .line1{bottom:0;display:none;opacity:0;right:-1px;transform:rotate(-45deg)}.vs-icon-check.indeterminate span .line2{bottom:-.14rem!important;display:none;height:11px!important;right:0!important;transform:rotate(45deg)!important;transition:all .25s ease!important}.vs-icon-arrow{height:7px;pointer-events:none;transform:rotate(-135deg);transform-origin:center;transition:all .25s ease;width:7px}.vs-icon-arrow:after{height:1px;width:100%}.vs-icon-arrow:after,.vs-icon-arrow:before{background:-color("text");content:"";display:block;position:absolute;top:0}.vs-icon-arrow:before{height:100%;width:1px}.vs-table__th{border:0;font-size:.8rem;padding:10px 12px;text-align:left;transition:all .25s ease}.vs-table__th.sort .vs-table__th__content{pointer-events:none}.vs-table__th.sort:hover{background:-color("gray-3")}.vs-table__th[data-sort-type=asc] .icon-sort-2{margin-top:-7px;transform:rotate(45deg)!important}.vs-table__th[data-sort-type=asc] .icon-sort-1{margin-top:-1px;transform:rotate(45deg)!important}.vs-table__th[data-sort-type=desc] .icon-sort-2{margin-top:-7px}.vs-table__th[data-sort-type=desc] .icon-sort-1{margin-top:-1px;transform:rotate(-135deg)!important}.vs-table__th__content{align-items:center;display:flex;justify-content:flex-start;transition:all .25s ease}.vs-table__th__content__icons{align-items:center;display:flex;flex-direction:column;justify-content:center;margin-left:7px;transform:scale(.8)}.vs-table__th__content .vs-icon-arrow{display:block;position:relative}.vs-table__th__content .vs-icon-arrow.icon-sort-1{transform:rotate(45deg)}.vs-table__th__content .vs-icon-arrow.icon-sort-2{transform:rotate(-135deg)}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsTableTr=t(require("vue")):e.vsTableTr=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var l=n[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};o.d(a,{default:()=>s});var l=o(594);const d=(0,l.defineComponent)({name:"VsTableExpand",props:{colspan:{type:Number,default:0},onUnmounted:{type:Function,default:null}},setup(e,{slots:t,expose:n}){const o=(0,l.ref)(!0),a=(0,l.ref)(null);(0,l.watch)(o,t=>{t?setTimeout(()=>{e.onUnmounted&&e.onUnmounted()},300):(0,l.nextTick)(()=>{const e=a.value;e&&(e.style.height=`${e.scrollHeight}px`)})});return n({hidden:o,contentRef:a,setHidden:e=>{o.value=e}}),()=>{const n=(0,l.h)("div",{class:"vs-table__expand__td__content__sub"},t.default?t.default():null),d=(0,l.h)("div",{class:"vs-table__expand__td__content",ref:a},[n]),r=(0,l.h)("td",{class:"vs-table__expand__td",colspan:e.colspan},[d]),s=(0,l.h)("tr",{class:"vs-table__tr__expand"},[r]);return(0,l.h)("transition",{name:"fade-expand"},[!o.value&&s])}}}),r=(0,l.defineComponent)({name:"VsTableTr",props:{data:{},isSelected:{type:Boolean,default:!1},notClickSelected:{type:Boolean,default:!1},openExpandOnlyTd:{type:Boolean,default:!1}},emits:["selected","click"],setup(e,{emit:t,slots:n}){const o=(0,l.ref)(null),a=(0,l.getCurrentInstance)(),r=a&&a.proxy;(0,l.watch)(()=>e.data,()=>{const e=r&&r.$el;if(e&&e.style.removeProperty("--vs-color"),o.value){try{const e=o.value.proxy;e&&"hidden"in e&&(e.hidden=!0)}catch(e){}o.value=null}});const s=()=>{if(o.value){try{const e=o.value.proxy;e&&"function"==typeof e.setHidden&&e.setHidden(!e.hidden)}catch(e){}o.value=null}else{const e=r&&r.$parent&&r.$parent.$el,t=e?e.querySelectorAll("thead th").length:0,a=document.createElement("div"),s=(0,l.createApp)({render:()=>(0,l.h)(d,{colspan:t,onUnmounted:()=>{try{s.unmount(),a.parentNode&&a.parentNode.removeChild(a)}catch(e){}}},{default:()=>n.expand?n.expand():[]})}),c=s.mount(a);try{c&&"function"==typeof c.setHidden&&c.setHidden(!1)}catch(e){}const p=a.firstElementChild;p&&(e=>{const t=r&&r.$el;t&&t.parentNode&&(t.nextSibling?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e))})(p),o.value={app:s,container:a,proxy:c}}};return(0,l.onBeforeUnmount)(()=>{if(o.value){try{const e=o.value;e.app&&e.app.unmount(),e.container&&e.container.parentNode&&e.container.parentNode.removeChild(e.container)}catch(e){}o.value=null}}),()=>(0,l.h)("tr",{class:["vs-table__tr",{selected:e.isSelected,isExpand:!!o.value,expand:!!n.expand}],onClick:o=>{const a=o.target;if(n.expand&&(e.openExpandOnlyTd&&"TD"!=a.nodeName||a.className.includes("isEdit")||s()),"TD"==a.nodeName&&!e.notClickSelected){const n=r&&r.$parent;n&&"function"==typeof n.selected&&n.selected(e.data),t("selected",e.data)}t("click",o)}},n.default?n.default():null)}});r.install=e=>{e.component("VsTr",r)};const s=r;return a=a.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .isMultipleSelected .vs-table__tr .vs-table__td{border-radius:0!important}.vs-table__tr{border:0;padding:5px}.vs-table__tr.expand{cursor:pointer}.vs-table__tr.vs-change-color .vs-table__td{background:-color("color",.1)!important;color:-color("color",1)!important}.vs-table__tr.vs-change-color .vs-table__td:hover{background:-color("color",.2)!important}.vs-table__tr:first-of-type .vs-table__td:last-child{border-radius:0 0 15px 0}.vs-table__tr:first-of-type .vs-table__td:first-child{border-radius:0 0 0 15px}.vs-table__tr.isExpand:first-of-type .vs-table__td{background:-color("gray-1")!important;border-radius:0}.vs-table__tr.isExpand:not(:first-of-type) .vs-table__td{background:-color("gray-1")!important}.vs-table__tr.isExpand:not(:first-of-type) .vs-table__td:last-child{border-radius:0 15px 0 0}.vs-table__tr.isExpand:not(:first-of-type) .vs-table__td:first-child{border-radius:15px 0 0 0}.vs-table__tr.isExpand:not(:first-of-type)+.vs-table__tr__expand td{border-radius:0 0 15px 15px!important}.vs-table__tr.selected .vs-table__td{background:-color("color",.1)!important;color:-color("color",1)!important}.vs-table__tr .vs-table__td{background:-color("bg",.1);color:-color("bg",1)}.vs-table__tr.vs-change-color:hover .vs-table__td{background:-color("color",.2)!important}.vs-table__tr:hover .vs-table__td{background:-color("gray-1")}.vs-table__tr__expand,.vs-table__tr__expand td{border:0;transition:all .25s ease}.vs-table__tr__expand td{background:-color("gray-1")!important;padding:0}.vs-table__tr__expand td .vs-table__expand__td__content{display:block;overflow:hidden;transition:all .25s ease}.vs-table__tr__expand td .vs-table__expand__td__content__sub{padding:10px 15px;position:relative;z-index:1}.fade-expand-enter-active,.fade-expand-leave-active{transition:all .25s ease}.fade-expand-enter,.fade-expand-leave-to{opacity:0}.fade-expand-enter td .vs-table__expand__td__content,.fade-expand-leave-to td .vs-table__expand__td__content{height:0!important}
@@ -1,2 +0,0 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):"object"==typeof exports?exports.vsTooltip=t(require("vue")):e.vsTooltip=t(e.Vue)}(Object("undefined"!=typeof self?self:this),e=>(()=>{"use strict";var t={594(t){t.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,t,o){return(t=l(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}n.d(r,{default:()=>v});var s=n(594);const u=(e,t,o)=>{const n=t.getBoundingClientRect(),r=n.x,i=n.y,l=n.width,a=n.height,s=e.style,u=window.pageYOffset,d=e.clientHeight+n.y+u,c=u+window.innerHeight;if(r+l+10+e.getBoundingClientRect().width>window.innerWidth&&"right"==o&&(o="left",e.classList.remove("right"),e.classList.add("left")),r-10<e.getBoundingClientRect().width&&"left"==o&&(o="top",e.classList.remove("left"),e.classList.add("top")),c-d<30||"top"==o){s.top=i+u-e.clientHeight-8+"px";const t=r+(l-e.getBoundingClientRect().width)/2;t+e.getBoundingClientRect().width<window.innerWidth?t>0?s.left=`${t}px`:(s.left="10px",e.classList.add("notArrow")):(s.left="auto",s.right="10px",e.classList.add("notArrow"))}else if("bottom"==o){s.top=`${i+u+a+8}px`;const t=r+(l-e.getBoundingClientRect().width)/2;t+e.getBoundingClientRect().width<window.innerWidth?t>0?s.left=`${t}px`:(s.left="10px",e.classList.add("notArrow")):(s.left="auto",s.right="10px",e.classList.add("notArrow"))}else"left"==o?(s.top=`${i+u+(a-e.getBoundingClientRect().height)/2}px`,s.left=r-e.getBoundingClientRect().width-8+"px"):"right"==o&&(s.top=`${i+u+(a-e.getBoundingClientRect().height)/2}px`,s.left=`${r+l+8}px`)};const d={color:{type:String,default:null},danger:{type:Boolean,default:!1},success:{type:Boolean,default:!1},warn:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},active:{type:Boolean,default:!1}};function c(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?c(Object(o),!0).forEach(function(t){a(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}const f=(0,s.defineComponent)({name:"VsTooltip",props:p(p({},d),{},{value:{},loading:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1},left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},notHover:{type:Boolean,default:!1},shadow:{type:Boolean,default:!1},interactivity:{type:Boolean,default:!1},notArrow:{type:Boolean,default:!1},square:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},border:{type:Boolean,default:!1},borderThick:{type:Boolean,default:!1},delay:{type:[String,Number],default:null}}),setup(e,{slots:t,emit:o}){const n=(0,s.ref)(!1),r=(0,s.ref)(!1),i=(0,s.ref)(null),l=(0,s.ref)(null),a=()=>{const t=i.value;if(!t)return;((e,t)=>{const o=t||document.body;o.insertBefore(e,o.lastChild)})(t,document.body);let o="top";e.bottom?o="bottom":e.left?o="left":e.right&&(o="right"),u(t,l.value,o)},d=()=>{e.delay?setTimeout(()=>{n.value=!0,(0,s.nextTick)(()=>a())},Number(e.delay)):(n.value=!0,(0,s.nextTick)(()=>a()))},c=()=>{n.value=!1,o("input",!1)},p=()=>{let t="top";e.bottom?t="bottom":e.left?t="left":e.right&&(t="right");const o=i.value;o&&(0,s.nextTick)(()=>{u(o,l.value,t)})},f=e=>{e.target.closest(".vs-tooltip")||e.target.closest(".vs-tooltip-content")||c()};(0,s.watch)(()=>e.value,e=>{n.value=e,e&&(0,s.nextTick)(()=>a())}),(0,s.onMounted)(()=>{window.addEventListener("popstate",()=>{document.querySelectorAll(".vs-tooltip").forEach(e=>e.remove())}),window.addEventListener("resize",p),e.notHover&&window.addEventListener("mousedown",f),window.addEventListener("touchstart",f)}),(0,s.onBeforeUnmount)(()=>{n.value=!1,window.removeEventListener("resize",p),window.removeEventListener("mousedown",f),window.removeEventListener("touchstart",f)});const v=(0,s.getCurrentInstance)(),y=v&&v.proxy.getColor;return()=>{const o=(0,s.h)("div",{class:"vs-tooltip__loading"}),a=(0,s.h)("div",{ref:i,style:{"--vs-color":e.color?y:""},class:["vs-tooltip",{top:!e.bottom&&!e.left&&!e.right,bottom:e.bottom,left:e.left,right:e.right,shadow:e.shadow,notArrow:e.notArrow,square:e.square,circle:e.circle,border:e.border,borderThick:e.borderThick,loading:e.loading},{"vs-component--primary":!!e.primary},{"vs-component--danger":!!e.danger},{"vs-component--warn":!!e.warn},{"vs-component--success":!!e.success},{"vs-component--dark":!!e.dark}],onMouseenter:()=>{e.interactivity&&(r.value=!0,d())},onMouseleave:()=>{r.value=!1,c()}},[t.tooltip?t.tooltip():null,e.loading&&o]);return(0,s.h)("div",{ref:l,class:"vs-tooltip-content",onMouseenter:()=>{e.notHover||d()},onMouseleave:()=>{e.notHover||(e.interactivity?setTimeout(()=>{r.value||c()},250):c())}},[(0,s.h)("transition",{name:"vs-tooltip"},[n.value&&a]),t.default?t.default():null])}}});f.install=e=>{e.component("VsTooltip",f)};const v=f;return r=r.default})());
@@ -1,5 +0,0 @@
1
- /*!
2
- * Saxvue v0.0.1 by MrXploder 🖖 (https://github.com/MrXploder/saxvue)
3
- * Original proyect by Luis Daniel Rovira (https://lusaxweb.github.io/vuesax/)
4
- * Released under the MIT License.
5
- */
@@ -1 +0,0 @@
1
- .vs-tooltip{--vs-color:var(--vs-text)}.vs-tooltip-enter-active,.vs-tooltip-leave-active{transition:all .25s ease}.vs-tooltip-enter,.vs-tooltip-leave-to{opacity:0}.vs-tooltip-enter.top,.vs-tooltip-leave-to.top{transform:translateY(5px)}.vs-tooltip-enter.bottom,.vs-tooltip-leave-to.bottom{transform:translateY(-5px)}.vs-tooltip-enter.left,.vs-tooltip-leave-to.left{transform:translate(5px)}.vs-tooltip-enter.right,.vs-tooltip-leave-to.right{transform:translate(-5px)}.darken .vs-tooltip{--vs-color:var(--vs-gray-3);color:#fff}.darken .vs-tooltip:not(.vs-change-color){color:#fff!important}.vs-tooltip{background:-color("color");border-radius:12px;color:-color("background");font-size:.85rem;max-width:350px;min-height:30px;min-width:30px;padding:5px 10px;position:absolute;text-align:center;z-index:1000000}.vs-tooltip.loading{color:-color("background",.2)}.vs-tooltip.loading *{opacity:.5;pointer-events:none}.vs-tooltip__loading{border-radius:50%;display:block;height:22px;left:50%;opacity:1!important;position:absolute;top:50%;transform:translate(-50%,-50%);width:22px}.vs-tooltip__loading:after{animation:loadingTooltip .6s ease infinite;border:2px solid -color("background",0);border-radius:inherit;border-right-color:-color("background",1)}.vs-tooltip__loading:after,.vs-tooltip__loading:before{box-shadow:0 0 0 0 -color("color",1);box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:all .25s ease;width:100%}.vs-tooltip__loading:before{animation:loadingTooltip .6s linear infinite;border:2px solid -color("background",0);border-radius:inherit;border-right:2px dashed -color("background",1)}.vs-tooltip.borderThick{background:-color("background");box-shadow:0 2px 10px 0 -rgba(0,0,0,-var(shadow-opacity));color:-color("color")}.vs-tooltip.borderThick.top{border-bottom:4px solid -color("color")}.vs-tooltip.borderThick.top:after{bottom:-7px}.vs-tooltip.borderThick.left{border-right:4px solid -color("color")}.vs-tooltip.borderThick.left:after{right:-7px}.vs-tooltip.borderThick.right{border-left:4px solid -color("color")}.vs-tooltip.borderThick.right:after{left:-7px}.vs-tooltip.borderThick.bottom{border-top:4px solid -color("color")}.vs-tooltip.borderThick.bottom:after{top:-7px}.vs-tooltip.borderThick:before{background:inherit;border-radius:inherit;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.vs-tooltip.borderThick:after{background:-color("color")!important}.vs-tooltip.border{background:-color("background");border:2px solid -color("color");color:-color("color")}.vs-tooltip.border:before{background:inherit;border-radius:inherit;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.vs-tooltip.border:after{border:2px solid -color("color");height:12px!important;width:12px!important}.vs-tooltip.circle{border-radius:20px}.vs-tooltip.square{border-radius:0}.vs-tooltip.notArrow:after{display:none}.vs-tooltip.shadow{background:-color("background");box-shadow:0 2px 10px 0 -rgba(0,0,0,-var(shadow-opacity));color:-color("color")}.vs-tooltip.shadow:before{background:inherit;border-radius:inherit;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.vs-tooltip.shadow:after{box-shadow:0 2px 10px 0 -rgba(0,0,0,-var(shadow-opacity))}.vs-tooltip.isDark{--vs-color:var(--vs-gray-3);color:#fff}.vs-tooltip.top:after{border-radius:0 0 2px 0;bottom:-3px}.vs-tooltip.bottom:after,.vs-tooltip.top:after{background:inherit;content:"";height:10px;left:50%;position:absolute;transform:translate(-50%) rotate(45deg);width:10px;z-index:-2}.vs-tooltip.bottom:after{border-radius:2px 0 0 0;top:-3px}.vs-tooltip.left:after{border-radius:0 2px 0 0;right:-3px}.vs-tooltip.left:after,.vs-tooltip.right:after{background:inherit;content:"";height:10px;position:absolute;top:50%;transform:translateY(-50%) rotate(45deg);width:10px;z-index:-2}.vs-tooltip.right:after{border-radius:0 0 0 2px;left:-3px}@keyframes loadingTooltip{0%{transform:rotate(0)}to{transform:rotate(1turn)}}