evui 2.1.2 → 2.1.3

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.
@@ -1,2 +1,2 @@
1
- (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[2],{745:function(t,e,i){var n=i(746);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=(0,i(13).default)("51ebe6e6",n,!1,{});n.locals||t.hot.accept(746,(function(){var e=i(746);"string"==typeof e&&(e=[[t.i,e,""]]),o(e)})),t.hot.dispose((function(){o()}))},746:function(t,e,i){},752:function(t,e,i){"use strict";var n=i(11),o=i.n(n);function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var r={components:{ContextMenuChild:function(){return i.e(1).then(i.bind(null,761))}},props:{visibility:{type:String,default:"visible",validator:function(t){return["visible","hidden","collapse","inherit","initial","unset"].indexOf(t)>-1}},depth:{type:Number,default:0},rowIndex:{type:Number,default:0},items:{type:Array,default:function(){return[]},validator:function(t){return null!=t&&t.constructor===Array}}},data:function(){return{prefixEvui:"contextmenu",top:0,left:0,width:0,height:0,clientRect:null,clientRectLeft:0,isHScroll:!1,isVScroll:!1,scrollbarSize:16,directionToShow:"right",rowHeight:29,focusedRowKey:""}},computed:{ctxMenuStyle:function(){return 0===this.depth?"":"\n visibility: ".concat(this.visibility,";\n top: ").concat(this.top,"px;\n left: ").concat(this.left,"px;\n ")}},watch:{visibility:function(t){"visible"===t&&this.setPosition()}},methods:{onRowClick:function(t,e,i){t.disabled||this.$emit("click",function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){o()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},t,{depth:e,rowIdx:i,scope:this}))},onClick:function(t){t.disabled||this.$emit("click",t)},onMouseOver:function(t,e,i){i.disabled?this.focusedRowKey="":this.focusedRowKey=this.getRowKey(t,e,i.text)},onMouseLeave:function(){this.focusedRowKey=""},setPosition:function(){var t=this.$parent.$parent;if(!this.clientRect&&(this.clientRect=this.getClientRect(),this.clientRect)){var e=document.scrollingElement||document.documentElement||document.body;this.isHScroll=window.innerWidth<e.scrollWidth,this.isVScroll=window.innerHeight<e.scrollHeight,this.width=this.clientRect.width||0,this.height=this.clientRect.height||0,this.top=this.rowIndex*this.rowHeight}if(this.clientRect&&t){var i,n=t.getClientRect(),o=t.clientRectLeft,c=n.width||0,r=n.y||0,s=t.directionToShow,l=this.top,u=0;i=1===this.depth?c:c+o;var h=window.innerHeight-(l+r)-(this.isHScroll?this.scrollbarSize:0),d=window.innerWidth-(n.x+c)-(this.isVScroll?this.scrollbarSize:0);this.height>h&&(l-=this.height-h),"left"===s||this.width>d?(u=-this.width,this.directionToShow="left"):(u=c,this.directionToShow="right"),this.clientRectLeft=i,this.top=l,this.left=u}},getClientRect:function(){return this.$el&&this.$el.firstElementChild&&this.$el.firstElementChild.getClientRects()[0]||{}},getRowCls:function(t){return{"contextmenu-row":!0,"exist-arrow":!!t.items,disabled:!!t.disabled}},getRowKey:function(t,e,i){return"rowKey_".concat(t,"_").concat(e,"_").concat(i)}}};e.a=r},753:function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return o}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.prefixEvui,style:t.ctxMenuStyle,on:{mouseleave:t.onMouseLeave}},[i("div",{staticClass:"contextmenu-body"},t._l(t.items,(function(e,n){return i("div",{key:t.getRowKey(t.depth,n,e.text),class:t.getRowCls(e),attrs:{disabled:e.disabled},on:{click:function(i){return t.onRowClick(e,t.depth,n)},mouseover:function(i){return t.onMouseOver(t.depth,n,e)}}},[e.icon?i("ev-icon",{attrs:{cls:e.icon+" contextmenu-row-icon"}}):t._e(),t._v("\n "+t._s(e.text)+"\n "),e.items?i("ev-icon",{attrs:{cls:"ei-arrow-right2 menu-arrow"}}):t._e()],1)})),0),t._v(" "),t._l(t.items,(function(e,n){return e.items?i("context-menu-child",{key:"children_menu_"+e.text+"_"+t.depth+"_"+n,attrs:{depth:t.depth+1,"row-index":n,"row-key":t.getRowKey(t.depth,n,e.text),"focused-row-key":t.focusedRowKey,items:e.items},on:{click:t.onClick}}):t._e()}))],2)},o=[];n._withStripped=!0},757:function(t,e,i){"use strict";var n=i(745);i.n(n).a},759:function(t,e,i){"use strict";i.r(e);var n=i(753),o=i(752),c=(i(757),i(2)),r=Object(c.a)(o.a,n.render,n.staticRenderFns,!1,null,null,null),s=i(12);s.install(i(7)),s.compatible&&(t.hot.accept(),s.isRecorded("bb14cba6")?s.reload("bb14cba6",r.options):s.createRecord("bb14cba6",r.options),t.hot.accept(753,function(t){n=i(753),s.rerender("bb14cba6",{render:n.render,staticRenderFns:n.staticRenderFns})}.bind(this))),r.options.__file="src/components/contextmenu/contextmenu.vue",e.default=r.exports}}]);
1
+ (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[2],{745:function(t,e,i){var n=i(746);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=(0,i(13).default)("51ebe6e6",n,!1,{});n.locals||t.hot.accept(746,(function(){var e=i(746);"string"==typeof e&&(e=[[t.i,e,""]]),o(e)})),t.hot.dispose((function(){o()}))},746:function(t,e,i){},751:function(t,e,i){"use strict";var n=i(11),o=i.n(n);function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var r={components:{ContextMenuChild:function(){return i.e(1).then(i.bind(null,761))}},props:{visibility:{type:String,default:"visible",validator:function(t){return["visible","hidden","collapse","inherit","initial","unset"].indexOf(t)>-1}},depth:{type:Number,default:0},rowIndex:{type:Number,default:0},items:{type:Array,default:function(){return[]},validator:function(t){return null!=t&&t.constructor===Array}}},data:function(){return{prefixEvui:"contextmenu",top:0,left:0,width:0,height:0,clientRect:null,clientRectLeft:0,isHScroll:!1,isVScroll:!1,scrollbarSize:16,directionToShow:"right",rowHeight:29,focusedRowKey:""}},computed:{ctxMenuStyle:function(){return 0===this.depth?"":"\n visibility: ".concat(this.visibility,";\n top: ").concat(this.top,"px;\n left: ").concat(this.left,"px;\n ")}},watch:{visibility:function(t){"visible"===t&&this.setPosition()}},methods:{onRowClick:function(t,e,i){t.disabled||this.$emit("click",function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){o()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},t,{depth:e,rowIdx:i,scope:this}))},onClick:function(t){t.disabled||this.$emit("click",t)},onMouseOver:function(t,e,i){i.disabled?this.focusedRowKey="":this.focusedRowKey=this.getRowKey(t,e,i.text)},onMouseLeave:function(){this.focusedRowKey=""},setPosition:function(){var t=this.$parent.$parent;if(!this.clientRect&&(this.clientRect=this.getClientRect(),this.clientRect)){var e=document.scrollingElement||document.documentElement||document.body;this.isHScroll=window.innerWidth<e.scrollWidth,this.isVScroll=window.innerHeight<e.scrollHeight,this.width=this.clientRect.width||0,this.height=this.clientRect.height||0,this.top=this.rowIndex*this.rowHeight}if(this.clientRect&&t){var i,n=t.getClientRect(),o=t.clientRectLeft,c=n.width||0,r=n.y||0,s=t.directionToShow,l=this.top,u=0;i=1===this.depth?c:c+o;var h=window.innerHeight-(l+r)-(this.isHScroll?this.scrollbarSize:0),d=window.innerWidth-(n.x+c)-(this.isVScroll?this.scrollbarSize:0);this.height>h&&(l-=this.height-h),"left"===s||this.width>d?(u=-this.width,this.directionToShow="left"):(u=c,this.directionToShow="right"),this.clientRectLeft=i,this.top=l,this.left=u}},getClientRect:function(){return this.$el&&this.$el.firstElementChild&&this.$el.firstElementChild.getClientRects()[0]||{}},getRowCls:function(t){return{"contextmenu-row":!0,"exist-arrow":!!t.items,disabled:!!t.disabled}},getRowKey:function(t,e,i){return"rowKey_".concat(t,"_").concat(e,"_").concat(i)}}};e.a=r},752:function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return o}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.prefixEvui,style:t.ctxMenuStyle,on:{mouseleave:t.onMouseLeave}},[i("div",{staticClass:"contextmenu-body"},t._l(t.items,(function(e,n){return i("div",{key:t.getRowKey(t.depth,n,e.text),class:t.getRowCls(e),attrs:{disabled:e.disabled},on:{click:function(i){return t.onRowClick(e,t.depth,n)},mouseover:function(i){return t.onMouseOver(t.depth,n,e)}}},[e.icon?i("ev-icon",{attrs:{cls:e.icon+" contextmenu-row-icon"}}):t._e(),t._v("\n "+t._s(e.text)+"\n "),e.items?i("ev-icon",{attrs:{cls:"ei-arrow-right2 menu-arrow"}}):t._e()],1)})),0),t._v(" "),t._l(t.items,(function(e,n){return e.items?i("context-menu-child",{key:"children_menu_"+e.text+"_"+t.depth+"_"+n,attrs:{depth:t.depth+1,"row-index":n,"row-key":t.getRowKey(t.depth,n,e.text),"focused-row-key":t.focusedRowKey,items:e.items},on:{click:t.onClick}}):t._e()}))],2)},o=[];n._withStripped=!0},757:function(t,e,i){"use strict";var n=i(745);i.n(n).a},759:function(t,e,i){"use strict";i.r(e);var n=i(752),o=i(751),c=(i(757),i(2)),r=Object(c.a)(o.a,n.render,n.staticRenderFns,!1,null,null,null),s=i(12);s.install(i(7)),s.compatible&&(t.hot.accept(),s.isRecorded("bb14cba6")?s.reload("bb14cba6",r.options):s.createRecord("bb14cba6",r.options),t.hot.accept(752,function(t){n=i(752),s.rerender("bb14cba6",{render:n.render,staticRenderFns:n.staticRenderFns})}.bind(this))),r.options.__file="src/components/contextmenu/contextmenu.vue",e.default=r.exports}}]);
2
2
  //# sourceMappingURL=2.evui.min.js.map
@@ -1,2 +1,2 @@
1
- (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[3],{750:function(e,t,n){"use strict";var i={components:{SubMenu:function(){return n.e(4).then(n.bind(null,762))}},props:{name:{type:String,default:""},firstIcon:{type:String,default:""},lastIcon:{type:String,default:""},children:{type:Array,default:function(){return[]}},selectedName:{type:String,default:""},active:{type:Boolean,default:!0},depth:{type:Number,default:1},hidden:{type:Boolean,default:!1}},data:function(){return{isExpanded:!0}},computed:{classes:function(){return{"ev-menu-item":!0,first:1===this.depth,active:this.active,selected:!this.children.length&&this.name===this.selectedName}}},methods:{onClick:function(){this.children.length?this.isExpanded=!this.isExpanded:this.$emit("menu-click",this.name)},onEmitClick:function(e){this.$emit("menu-click",e)}}};t.a=i},751:function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return c}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hidden?e._e():n("div",{class:{first:1===e.depth}},[n("div",{class:e.classes,on:{click:e.onClick}},[e.firstIcon?n("ev-icon",{staticStyle:{"margin-right":"5px"},attrs:{cls:e.firstIcon}}):e._e(),e._v("\n "+e._s(e.name)+"\n "),e.lastIcon?n("ev-icon",{staticStyle:{"margin-left":"auto"},attrs:{cls:e.lastIcon}}):e._e(),e._v(" "),e.children.length?[e.isExpanded?n("ev-icon",{key:"down",staticStyle:{"margin-left":"auto",opacity:".5"},attrs:{cls:"ei-s ei-arrow-down"}}):n("ev-icon",{key:"up",staticStyle:{"margin-left":"auto",opacity:".5"},attrs:{cls:"ei-s ei-arrow-up"}})]:e._e()],2),e._v(" "),e.isExpanded?[e.children.length?n("sub-menu",{attrs:{menu:e.children,depth:e.depth+1,"selected-name":e.selectedName},on:{"menu-click":e.onEmitClick}}):e._e()]:e._e()],2)},c=[];i._withStripped=!0},760:function(e,t,n){"use strict";n.r(t);var i=n(751),c=n(750),s=n(2),a=Object(s.a)(c.a,i.render,i.staticRenderFns,!1,null,null,null),r=n(12);r.install(n(7)),r.compatible&&(e.hot.accept(),r.isRecorded("3e0a978d")?r.reload("3e0a978d",a.options):r.createRecord("3e0a978d",a.options),e.hot.accept(751,function(e){i=n(751),r.rerender("3e0a978d",{render:i.render,staticRenderFns:i.staticRenderFns})}.bind(this))),a.options.__file="src/components/menu/menu.nav.item.vue",t.default=a.exports}}]);
1
+ (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[3],{749:function(e,t,n){"use strict";var i={components:{SubMenu:function(){return n.e(4).then(n.bind(null,762))}},props:{name:{type:String,default:""},firstIcon:{type:String,default:""},lastIcon:{type:String,default:""},children:{type:Array,default:function(){return[]}},selectedName:{type:String,default:""},active:{type:Boolean,default:!0},depth:{type:Number,default:1},hidden:{type:Boolean,default:!1}},data:function(){return{isExpanded:!0}},computed:{classes:function(){return{"ev-menu-item":!0,first:1===this.depth,active:this.active,selected:!this.children.length&&this.name===this.selectedName}}},methods:{onClick:function(){this.children.length?this.isExpanded=!this.isExpanded:this.$emit("menu-click",this.name)},onEmitClick:function(e){this.$emit("menu-click",e)}}};t.a=i},750:function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return c}));var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hidden?e._e():n("div",{class:{first:1===e.depth}},[n("div",{class:e.classes,on:{click:e.onClick}},[e.firstIcon?n("ev-icon",{staticStyle:{"margin-right":"5px"},attrs:{cls:e.firstIcon}}):e._e(),e._v("\n "+e._s(e.name)+"\n "),e.lastIcon?n("ev-icon",{staticStyle:{"margin-left":"auto"},attrs:{cls:e.lastIcon}}):e._e(),e._v(" "),e.children.length?[e.isExpanded?n("ev-icon",{key:"down",staticStyle:{"margin-left":"auto",opacity:".5"},attrs:{cls:"ei-s ei-arrow-down"}}):n("ev-icon",{key:"up",staticStyle:{"margin-left":"auto",opacity:".5"},attrs:{cls:"ei-s ei-arrow-up"}})]:e._e()],2),e._v(" "),e.isExpanded?[e.children.length?n("sub-menu",{attrs:{menu:e.children,depth:e.depth+1,"selected-name":e.selectedName},on:{"menu-click":e.onEmitClick}}):e._e()]:e._e()],2)},c=[];i._withStripped=!0},760:function(e,t,n){"use strict";n.r(t);var i=n(750),c=n(749),s=n(2),a=Object(s.a)(c.a,i.render,i.staticRenderFns,!1,null,null,null),r=n(12);r.install(n(7)),r.compatible&&(e.hot.accept(),r.isRecorded("3e0a978d")?r.reload("3e0a978d",a.options):r.createRecord("3e0a978d",a.options),e.hot.accept(750,function(e){i=n(750),r.rerender("3e0a978d",{render:i.render,staticRenderFns:i.staticRenderFns})}.bind(this))),a.options.__file="src/components/menu/menu.nav.item.vue",t.default=a.exports}}]);
2
2
  //# sourceMappingURL=3.evui.min.js.map
@@ -1,2 +1,2 @@
1
- (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[4],{749:function(e,n,t){"use strict";var r={components:{MenuItem:function(){return Promise.resolve().then(t.bind(null,760))}},props:{menu:{type:Array,default:function(){return[]}},depth:{type:Number,default:1},selectedName:{type:String,default:""}},methods:{onClick:function(e){this.$emit("menu-click",e)}}};n.a=r},754:function(e,n,t){"use strict";t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c}));var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",e._l(e.menu,(function(n){return t("li",{key:n.name,staticClass:"ev-menu-sub"},[t("menu-item",e._b({attrs:{depth:e.depth,"selected-name":e.selectedName},on:{"menu-click":e.onClick}},"menu-item",n,!1))],1)})),0)},c=[];r._withStripped=!0},762:function(e,n,t){"use strict";t.r(n);var r=t(754),c=t(749),i=t(2),u=Object(i.a)(c.a,r.render,r.staticRenderFns,!1,null,null,null),s=t(12);s.install(t(7)),s.compatible&&(e.hot.accept(),s.isRecorded("4ac19d94")?s.reload("4ac19d94",u.options):s.createRecord("4ac19d94",u.options),e.hot.accept(754,function(e){r=t(754),s.rerender("4ac19d94",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),u.options.__file="src/components/menu/menu.nav.sub.vue",n.default=u.exports}}]);
1
+ (window.webpackJsonpevui=window.webpackJsonpevui||[]).push([[4],{753:function(e,n,t){"use strict";var r={components:{MenuItem:function(){return Promise.resolve().then(t.bind(null,760))}},props:{menu:{type:Array,default:function(){return[]}},depth:{type:Number,default:1},selectedName:{type:String,default:""}},methods:{onClick:function(e){this.$emit("menu-click",e)}}};n.a=r},754:function(e,n,t){"use strict";t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return c}));var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ul",e._l(e.menu,(function(n){return t("li",{key:n.name,staticClass:"ev-menu-sub"},[t("menu-item",e._b({attrs:{depth:e.depth,"selected-name":e.selectedName},on:{"menu-click":e.onClick}},"menu-item",n,!1))],1)})),0)},c=[];r._withStripped=!0},762:function(e,n,t){"use strict";t.r(n);var r=t(754),c=t(753),i=t(2),u=Object(i.a)(c.a,r.render,r.staticRenderFns,!1,null,null,null),s=t(12);s.install(t(7)),s.compatible&&(e.hot.accept(),s.isRecorded("4ac19d94")?s.reload("4ac19d94",u.options):s.createRecord("4ac19d94",u.options),e.hot.accept(754,function(e){r=t(754),s.rerender("4ac19d94",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),u.options.__file="src/components/menu/menu.nav.sub.vue",n.default=u.exports}}]);
2
2
  //# sourceMappingURL=4.evui.min.js.map