Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dpapejs/dpvue-ui

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dpapejs/dpvue-ui - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

es/progress/index.js

2

es/admin-manage/index.js

@@ -1,1 +0,1 @@

!function(){"use strict";var e={197:function(e){function t(){return t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)}var n=["attrs","props","domProps"],o=["class","style","directives"],i=["on","nativeOn"],r=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,s){for(var a in s)if(e[a])if(-1!==n.indexOf(a))e[a]=t({},e[a],s[a]);else if(-1!==o.indexOf(a)){var c=e[a]instanceof Array?e[a]:[e[a]],d=s[a]instanceof Array?s[a]:[s[a]];e[a]=c.concat(d)}else if(-1!==i.indexOf(a))for(var l in s[a])if(e[a][l]){var u=e[a][l]instanceof Array?e[a][l]:[e[a][l]],f=s[a][l]instanceof Array?s[a][l]:[s[a][l]];e[a][l]=u.concat(f)}else e[a][l]=s[a][l];else if("hook"==a)for(var p in s[a])e[a][p]=e[a][p]?r(e[a][p],s[a][p]):s[a][p];else e[a]=s[a];else e[a]=s[a];return e}),{})}}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){n.r(o),n.d(o,{default:function(){return v}});var e=n(197),t=n.n(e);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var t=r(document.querySelectorAll(e?"".concat(e," *"):"*")).map((function(e){return+window.getComputedStyle(e).zIndex||0}));return t.length?Math.max.apply(Math,r(t))+1:0}function a(e){var t=e.toLowerCase();if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return e;if(4===t.length){var n=t.substring(1);t="#"+n+n}return Array.from({length:3}).map((function(e,n){var o=2*n+1,i=t.split("").slice(o,o+2).join("");return parseInt("0x"+i)}))}function c(e,t,n,o,i,r,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):i&&(c=a?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}var d=c({name:"dpTooltip",props:{content:{type:String,default:""},position:{type:String,default:"top"},disabled:{type:Boolean,default:!1}},data:function(){return{fadeTooltip:!1,style:{},timer:void 0,zIndex:0,scrollTarget:void 0}},watch:{fadeTooltip:function(e){this.zIndex=e?s():0}},beforeDestroy:function(){this.$refs.content&&document.body.removeChild(this.$refs.content),this.removeEvents()},mounted:function(){this.init()},methods:{init:function(){var e=this.$refs.content;e&&document.body.appendChild(e);var t=this.scrollTargetEl?document.querySelector(t):document;this.scrollTarget=t||document,this.addEvents()},addEvents:function(){window.addEventListener("resize",this.resizeStyle,!1),this.scrollTarget.addEventListener("scroll",this.setScrollEvent,!1)},removeEvents:function(){window.removeEventListener("resize",this.resizeStyle,!1),this.scrollTarget.removeEventListener("scroll",this.setScrollEvent,!1)},resizeStyle:function(){this.fadeTooltip=!1,this.setStyle()},setScrollEvent:function(){this.fadeTooltip&&this.setStyle()},setStyle:function(){var e=this.$refs.content,t=this.$refs.tooltip;if(e&&t){var n=t.getBoundingClientRect(),o=n.left,i=n.width,r=n.top,s=n.height,a={};if("top"===this.position){var c=i-e.clientWidth;a.left="".concat(o+(c>0?c/2:0),"px"),a.top="".concat(r-s-10,"px")}if("right"===this.position){var d=s-e.clientHeight;a.left="".concat(o+i+10,"px"),a.top="".concat(r+(d>0?d/2:0),"px")}this.style=a}}},render:function(e){var t=this;return e("div",{class:"dp-tooltip",on:{mouseout:function(){t.disabled||(t.fadeTooltip=!1)},mouseover:function(){t.disabled||(t.fadeTooltip=!0,t.$nextTick((function(){t.setStyle()})))}},ref:"tooltip"},[e("div",{class:["dp-tooltip--content",this.fadeTooltip?"fade":"",this.position],style:[this.style,{zIndex:this.zIndex}],ref:"content"},[e("label",[this.content])]),this.$slots.default])}},undefined,undefined,!1,null,null,null);d.options.__file="src/modules/tooltip/index.vue";var l=d.exports,u=c({name:"dpAdminManageMenu",props:{menu:{type:Array,default:function(){return[]}},background:{type:String,default:void 0},textColor:{type:String,default:void 0},activeTextColor:{type:String,default:void 0},selected:{type:Function,default:void 0}},data:function(){return{show:!1,popupStyle:{},timer:null,hoverIndex:""}},beforeDestroy:function(){this.$refs.popup&&document.body.removeChild(this.$refs.popup),this.timer&&clearTimeout(this.timer)},mounted:function(){this.$refs.popup&&document.body.appendChild(this.$refs.popup)},methods:{setPopupStyle:function(){var e=this.$refs.menu.getBoundingClientRect(),t=e.top,n=e.left+e.width,o=s();this.popupStyle={top:t+"px",left:n+5+"px",zIndex:o}},closePopup:function(){this.popupStyle={zIndex:0},this.show=!1},onClose:function(){var e=this;this.timer&&clearTimeout(this.timer),this.timer=void 0,this.timer=setTimeout((function(){e.closePopup()}),300)}},render:function(e){var n=this;return e("div",t()([{class:"dp-admin-manage__menu",ref:"menu"},{on:{mouseover:function(){if(n.timer)return clearTimeout(n.timer),void(n.timer=void 0);n.setPopupStyle(),n.$nextTick((function(){n.show=!0}))},mouseleave:this.onClose}}]),[this.$slots.default,e("transition",{attrs:{name:"dp-admin-manage__fade-menu"}},[e("div",t()([{directives:[{name:"show",value:this.show}],ref:"popup",class:"dp-admin-manage--menu",style:this.popupStyle},{on:{mouseover:function(){n.timer&&clearTimeout(n.timer)},mouseleave:this.onClose}}]),[this.menu.map((function(o){var i=o.name,r=o.children,s=o.index,c={};if(n.background&&(c.background=n.background),n.textColor&&(c.color=n.textColor),n.activeTextColor&&n.selected&&n.selected(o)&&(c.color=n.activeTextColor),n.hoverIndex===s){var d=a(n.background);d!==n.background&&(c.background="rgb(".concat(d.map((function(e){return e-20})).join(","),")"))}return e("div",t()([{class:"dp-admin-manage--menu__item",style:c,on:{click:function(){n.timer&&clearTimeout(n.timer),n.timer=void 0,n.$emit("click-item",o),n.$nextTick((function(){n.show=!1}))}}},{on:{mouseover:function(){n.hoverIndex=s},mouseout:function(){n.hoverIndex=""}}}]),[e("div",{class:"text"},[e("label",[i]),r&&r.length>0?e("i",{class:"dp-icon-arrow-right"}):void 0])])}))])])])}},undefined,undefined,!1,null,null,null);u.options.__file="src/modules/admin-manage/menu.vue";var f=u.exports,p={name:"dpAdminManage",components:{Tooltip:l,Menu:f},props:{menus:{type:Array,default:function(){return[]}},contentId:{type:String,default:""},selected:{type:Function,default:void 0},closeSidebar:{type:Boolean,default:!1},closeSidebarType:{type:String,default:"mini",validator:function(e){return-1!==["mini","hide"].indexOf(e)}},sidebarBackground:{type:String,default:void 0},sidebarTextColor:{type:String,default:void 0},sidebarActiveTextColor:{type:String,default:void 0}},data:function(){return{showItem:{},menuData:[],hoverIndex:""}},watch:{menus:{deep:!0,handler:function(e){this.setMenuData(e)}}},created:function(){this.init()},methods:{init:function(){this.setMenuData(this.menus)},setMenuData:function(e){var t=this,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return Object.keys(t).forEach((function(o){var i=t[o];n[o]=i instanceof Array?i.map((function(t){return e(t)})):i})),n};return e instanceof Array?e.map((function(e){return t(e)})):t(e)}(e||this.menus),o=[],i=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return n.forEach((function(n,s){var a=i?"".concat(i,"_").concat(s):"dpui_".concat(s);if(n.index=a,n.children&&n.children.length>0){n.children=e(n.children,a);var c={};c[a]=!1,t.showItem=Object.assign({},t.showItem,c)}if(i&&t.selected&&t.selected(n)){var d=i.split("_").slice(0,2).join("_");o.push(d);var l=i.replace(d,"").split("_").filter((function(e){return""!==e}));l.forEach((function(e){var t=e;o.push("".concat(d,"_").concat(t))}))}r.push(n)})),r}(n);o.forEach((function(e){t.showItem[e]=!0})),o.length=0,this.menuData=i},menuClick:function(e){var t=e.children,n=e.index,o=e.disabled;if(t){var i=this.showItem[n];this.showItem[n]=!i}else!o&&!t&&this.$emit("menu-click",e)}},render:function(e){var n=this,o={paddingTop:"".concat(this.$scopedSlots.header?45:0,"px")},i={},r={};return this.closeSidebar&&(o.paddingLeft="".concat("mini"===this.closeSidebarType?40:0,"px"),i.width="".concat("mini"===this.closeSidebarType?40:0,"px"),r.paddingLeft="".concat("mini"===this.closeSidebarType?40:0,"px")),this.sidebarBackground&&(i.background=this.sidebarBackground),this.sidebarTextColor&&(i.color=this.sidebarTextColor),e("div",{class:["dp-admin-manage"],style:o},[e("nav",{class:"dp-admin-manage__sidebar",style:i},[this.$scopedSlots.sidebarLogo?this.$scopedSlots.sidebarLogo():void 0,"mini"===this.closeSidebarType||"hide"===this.closeSidebarType&&!this.closeSidebar?function o(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i.map((function(i){var s=i.name,c=i.children,d=i.icon,u=i.disabled,p=i.index,h=function(t){return n.$scopedSlots.icon?e("span",{class:["icon",{"close-menu":n.closeSidebar}]},[n.$scopedSlots.icon(t)]):t?e("span",{class:["icon",{"close-menu":n.closeSidebar}]},[e("i",{class:t})]):void 0},m=function(){var o={};if(n.closeSidebar||(o.paddingLeft="".concat(18*r+12,"px")),n.sidebarActiveTextColor&&n.selected&&n.selected(i)&&(o.color=n.sidebarActiveTextColor),n.hoverIndex===p){var l=a(n.sidebarBackground);l!==n.sidebarBackground&&(o.background="rgb(".concat(l.map((function(e){return e-20})).join(","),")"))}return e("div",t()([{class:["sidebar--item__content",{active:n.selected&&n.selected(i),disabled:u,"no-hover":n.sidebarBackground}],on:{click:n.menuClick.bind(n,i)},style:o},{on:{mouseover:function(){n.hoverIndex=p},mouseout:function(){n.hoverIndex=""}}}]),[e("div",{class:"sidebar--item__content--box"},[h(d),n.closeSidebar?void 0:e("label",{class:"name"},[s])]),!n.closeSidebar&&c&&c.length>0?e("i",{class:["dp-icon-arrow-up",{open:n.showItem[p]}]}):void 0])};return e("div",{class:"sidebar--item",key:p},[n.closeSidebar?c&&c.length>0?e(f,t()([{attrs:{menu:c,background:n.sidebarBackground,textColor:n.sidebarTextColor,activeTextColor:n.sidebarActiveTextColor,selected:n.selected}},{on:{"click-item":n.menuClick}}]),[m()]):e(l,{attrs:{content:s,disabled:u,position:"right"}},[m()]):m(),!n.closeSidebar&&c&&c.length>0?e("ul",{class:"sidebar--item__children",style:n.showItem[p]?{height:"".concat(46*c.length,"px")}:{}},[o(c,r+1)]):void 0])}))}(this.menuData):void 0]),this.$scopedSlots.header?e("header",{class:"dp-admin-manage__header",style:r},[this.$scopedSlots.header()]):void 0,e("div",{class:"dp-admin-manage__content",attrs:{id:this.contentId}},[this.$slots.default])])}},h=c(p,undefined,undefined,!1,null,null,null);h.options.__file="src/modules/admin-manage/index.vue";var m=h.exports;m.install=function(e){e.component(m.name,m)};var v=m}(),module.exports=o}();
!function(){"use strict";var e={197:function(e){function t(){return t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)}var n=["attrs","props","domProps"],o=["class","style","directives"],i=["on","nativeOn"],r=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,s){for(var a in s)if(e[a])if(-1!==n.indexOf(a))e[a]=t({},e[a],s[a]);else if(-1!==o.indexOf(a)){var c=e[a]instanceof Array?e[a]:[e[a]],d=s[a]instanceof Array?s[a]:[s[a]];e[a]=c.concat(d)}else if(-1!==i.indexOf(a))for(var l in s[a])if(e[a][l]){var u=e[a][l]instanceof Array?e[a][l]:[e[a][l]],f=s[a][l]instanceof Array?s[a][l]:[s[a][l]];e[a][l]=u.concat(f)}else e[a][l]=s[a][l];else if("hook"==a)for(var p in s[a])e[a][p]=e[a][p]?r(e[a][p],s[a][p]):s[a][p];else e[a]=s[a];else e[a]=s[a];return e}),{})}}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){n.r(o),n.d(o,{default:function(){return v}});var e=n(197),t=n.n(e);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){var t=r(document.querySelectorAll(e?"".concat(e," *"):"*")).map((function(e){return+window.getComputedStyle(e).zIndex||0}));return t.length?Math.max.apply(Math,r(t))+1:0}function a(e){var t=e.toLowerCase();if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return e;if(4===t.length){var n=t.substring(1);t="#"+n+n}return Array.from({length:3}).map((function(e,n){var o=2*n+1,i=t.split("").slice(o,o+2).join("");return parseInt("0x"+i)}))}function c(e,t,n,o,i,r,s,a){var c,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=c):i&&(c=a?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(d.functional){d._injectStyles=c;var l=d.render;d.render=function(e,t){return c.call(t),l(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,c):[c]}return{exports:e,options:d}}var d=c({name:"dpTooltip",props:{content:{type:String,default:""},position:{type:String,default:"top"},disabled:{type:Boolean,default:!1}},data:function(){return{fadeTooltip:!1,style:{},timer:void 0,zIndex:0,scrollTarget:void 0}},watch:{fadeTooltip:function(e){this.zIndex=e?s():0}},beforeDestroy:function(){this.$refs.content&&document.body.removeChild(this.$refs.content),this.removeEvents()},mounted:function(){this.init()},methods:{init:function(){var e=this.$refs.content;e&&document.body.appendChild(e);var t=this.scrollTargetEl?document.querySelector(t):document;this.scrollTarget=t||document,this.addEvents()},addEvents:function(){window.addEventListener("resize",this.resizeStyle,!1),this.scrollTarget.addEventListener("scroll",this.setScrollEvent,!1)},removeEvents:function(){window.removeEventListener("resize",this.resizeStyle,!1),this.scrollTarget.removeEventListener("scroll",this.setScrollEvent,!1)},resizeStyle:function(){this.fadeTooltip=!1,this.setStyle()},setScrollEvent:function(){this.fadeTooltip&&this.setStyle()},setStyle:function(){var e=this.$refs.content,t=this.$refs.tooltip;if(e&&t){var n=t.getBoundingClientRect(),o=n.left,i=n.width,r=n.top,s=n.height,a={};if("top"===this.position){var c=i-e.clientWidth;a.left="".concat(o+(c>0?c/2:0),"px"),a.top="".concat(r-s-10,"px")}if("right"===this.position){var d=s-e.clientHeight;a.left="".concat(o+i+10,"px"),a.top="".concat(r+(d>0?d/2:0),"px")}this.style=a}}},render:function(e){var t=this;return e("div",{class:"dp-tooltip",on:{mouseout:function(){t.disabled||(t.fadeTooltip=!1)},mouseover:function(){t.disabled||(t.fadeTooltip=!0,t.$nextTick((function(){t.setStyle()})))}},ref:"tooltip"},[e("div",{class:["dp-tooltip--content",this.fadeTooltip?"fade":"",this.position],style:[this.style,{zIndex:this.zIndex}],ref:"content"},[e("label",[this.content])]),this.$slots.default])}},undefined,undefined,!1,null,null,null);d.options.__file="src/modules/tooltip/index.vue";var l=d.exports,u=c({name:"dpAdminManageMenu",props:{menu:{type:Array,default:function(){return[]}},background:{type:String,default:void 0},textColor:{type:String,default:void 0},activeTextColor:{type:String,default:void 0},selected:{type:Function,default:void 0}},data:function(){return{show:!1,popupStyle:{},timer:null,hoverIndex:""}},beforeDestroy:function(){this.$refs.popup&&document.body.removeChild(this.$refs.popup),this.timer&&clearTimeout(this.timer)},mounted:function(){this.$refs.popup&&document.body.appendChild(this.$refs.popup)},methods:{setPopupStyle:function(){var e=this.$refs.menu.getBoundingClientRect(),t=e.top,n=e.left+e.width,o=s();this.popupStyle={top:t+"px",left:n+5+"px",zIndex:o}},closePopup:function(){this.popupStyle={zIndex:0},this.show=!1},onClose:function(){var e=this;this.timer&&clearTimeout(this.timer),this.timer=void 0,this.timer=setTimeout((function(){e.closePopup()}),300)}},render:function(e){var n=this;return e("div",t()([{class:"dp-admin-manage__menu",ref:"menu"},{on:{mouseover:function(){if(n.timer)return clearTimeout(n.timer),void(n.timer=void 0);n.setPopupStyle(),n.$nextTick((function(){n.show=!0}))},mouseleave:this.onClose}}]),[this.$slots.default,e("transition",{attrs:{name:"dp-admin-manage__fade-menu"}},[e("div",t()([{directives:[{name:"show",value:this.show}],ref:"popup",class:"dp-admin-manage--menu",style:this.popupStyle},{on:{mouseover:function(){n.timer&&clearTimeout(n.timer)},mouseleave:this.onClose}}]),[this.menu.map((function(o){var i=o.name,r=o.children,s=o.index,c={};if(n.background&&(c.background=n.background),n.textColor&&(c.color=n.textColor),n.activeTextColor&&n.selected&&n.selected(o)&&(c.color=n.activeTextColor),n.hoverIndex===s){var d=a(n.background);d!==n.background&&(c.background="rgb(".concat(d.map((function(e){return e-20})).join(","),")"))}return e("div",t()([{class:"dp-admin-manage--menu__item",style:c,on:{click:function(){n.timer&&clearTimeout(n.timer),n.timer=void 0,n.$emit("click-item",o),n.$nextTick((function(){n.show=!1}))}}},{on:{mouseover:function(){n.hoverIndex=s},mouseout:function(){n.hoverIndex=""}}}]),[e("div",{class:"text"},[e("label",[i]),r&&r.length>0?e("i",{class:"dp-icon-arrow-right"}):void 0])])}))])])])}},undefined,undefined,!1,null,null,null);u.options.__file="src/modules/admin-manage/menu.vue";var f=u.exports,p={name:"dpAdminManage",components:{Tooltip:l,Menu:f},props:{menus:{type:Array,default:function(){return[]}},contentId:{type:String,default:""},selected:{type:Function,default:void 0},closeSidebar:{type:Boolean,default:!1},closeSidebarType:{type:String,default:"mini",validator:function(e){return-1!==["mini","hide"].indexOf(e)}},sidebarBackground:{type:String,default:void 0},sidebarTextColor:{type:String,default:void 0},sidebarActiveTextColor:{type:String,default:void 0},mobile:{type:Boolean,default:!1}},data:function(){return{showItem:{},menuData:[],hoverIndex:""}},watch:{menus:{deep:!0,handler:function(e){this.setMenuData(e)}}},created:function(){this.init()},methods:{init:function(){this.setMenuData(this.menus)},setMenuData:function(e){var t=this,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return Object.keys(t).forEach((function(o){var i=t[o];n[o]=i instanceof Array?i.map((function(t){return e(t)})):i})),n};return e instanceof Array?e.map((function(e){return t(e)})):t(e)}(e||this.menus),o=[],i=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return n.forEach((function(n,s){var a=i?"".concat(i,"_").concat(s):"dpui_".concat(s);if(n.index=a,n.children&&n.children.length>0){n.children=e(n.children,a);var c={};c[a]=!1,t.showItem=Object.assign({},t.showItem,c)}if(i&&t.selected&&t.selected(n)){var d=i.split("_").slice(0,2).join("_");o.push(d);var l=i.replace(d,"").split("_").filter((function(e){return""!==e}));l.forEach((function(e){var t=e;o.push("".concat(d,"_").concat(t))}))}r.push(n)})),r}(n);o.forEach((function(e){t.showItem[e]=!0})),o.length=0,this.menuData=i},menuClick:function(e){var t=e.children,n=e.index,o=e.disabled;if(t){var i=this.showItem[n];this.showItem[n]=!i}else!o&&!t&&this.$emit("menu-click",e)}},render:function(e){var n=this,o={paddingTop:"".concat(this.$scopedSlots.header?45:0,"px")},i={},r={};return this.closeSidebar&&(o.paddingLeft="".concat("mini"===this.closeSidebarType?40:0,"px"),i.width="".concat("mini"===this.closeSidebarType?40:0,"px"),r.paddingLeft="".concat("mini"===this.closeSidebarType?40:0,"px")),this.sidebarBackground&&(i.background=this.sidebarBackground),this.sidebarTextColor&&(i.color=this.sidebarTextColor),e("div",{class:["dp-admin-manage",{"has-mobile":this.mobile},{show:!this.closeSidebar}],style:o},[this.mobile&&!this.closeSidebar?e("span",{class:"dp-admin-manage__sidebar-mask",on:{click:function(){n.$emit("update:closeSidebar",!0)}}}):void 0,e("nav",{class:["dp-admin-manage__sidebar",{"no-border":this.mobile&&!this.closeSidebar}],style:i},[this.$scopedSlots.sidebarLogo?this.$scopedSlots.sidebarLogo():void 0,"mini"===this.closeSidebarType||"hide"===this.closeSidebarType&&!this.closeSidebar?function o(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i.map((function(i){var s=i.name,c=i.children,d=i.icon,u=i.disabled,p=i.index,h=function(t){return n.$scopedSlots.icon?e("span",{class:["icon",{"close-menu":n.closeSidebar}]},[n.$scopedSlots.icon(t)]):t?e("span",{class:["icon",{"close-menu":n.closeSidebar}]},[e("i",{class:t})]):void 0},m=function(){var o={};if(n.closeSidebar||(o.paddingLeft="".concat(18*r+12,"px")),n.sidebarActiveTextColor&&n.selected&&n.selected(i)&&(o.color=n.sidebarActiveTextColor),n.hoverIndex===p){var l=a(n.sidebarBackground);l!==n.sidebarBackground&&(o.background="rgb(".concat(l.map((function(e){return e-20})).join(","),")"))}return e("div",t()([{class:["sidebar--item__content",{active:n.selected&&n.selected(i),disabled:u,"no-hover":n.sidebarBackground}],on:{click:n.menuClick.bind(n,i)},style:o},{on:{mouseover:function(){n.hoverIndex=p},mouseout:function(){n.hoverIndex=""}}}]),[e("div",{class:"sidebar--item__content--box"},[h(d),n.closeSidebar?void 0:e("label",{class:"name"},[s])]),!n.closeSidebar&&c&&c.length>0?e("i",{class:["dp-icon-arrow-up",{open:n.showItem[p]}]}):void 0])};return e("div",{class:"sidebar--item",key:p},[n.closeSidebar?c&&c.length>0?e(f,t()([{attrs:{menu:c,background:n.sidebarBackground,textColor:n.sidebarTextColor,activeTextColor:n.sidebarActiveTextColor,selected:n.selected}},{on:{"click-item":n.menuClick}}]),[m()]):e(l,{attrs:{content:s,disabled:u,position:"right"}},[m()]):m(),!n.closeSidebar&&c&&c.length>0?e("ul",{class:"sidebar--item__children",style:n.showItem[p]?{height:"".concat(46*c.length,"px")}:{}},[o(c,r+1)]):void 0])}))}(this.menuData):void 0]),this.$scopedSlots.header?e("header",{class:"dp-admin-manage__header",style:r},[this.$scopedSlots.header()]):void 0,e("div",{class:"dp-admin-manage__content",attrs:{id:this.contentId}},[this.$slots.default])])}},h=c(p,undefined,undefined,!1,null,null,null);h.options.__file="src/modules/admin-manage/index.vue";var m=h.exports;m.install=function(e){e.component(m.name,m)};var v=m}(),module.exports=o}();

@@ -1,1 +0,1 @@

!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return o}});var n=function(e,t,n,r,o,i,s,u){var f,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),s?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=f):o&&(f=u?function(){o.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:o),f)if(d.functional){d._injectStyles=f;var a=d.render;d.render=function(e,t){return f.call(t),a(e,t)}}else{var l=d.beforeCreate;d.beforeCreate=l?[].concat(l,f):[f]}return{exports:e,options:d}}({name:"dpFormItem",props:{label:{type:String,default:""},prop:{type:String,default:""}},computed:{required:function(){return!!this.getRequired&&this.getRequired(this.prop)},ruleOption:function(){return this.getRuleOption&&this.getRuleOption(this.prop)},message:function(){var e=this.ruleOption;return e&&e.message},verify:function(){return this.formSubmit&&this.formSubmit()||this.showMessage}},inject:{getRequired:{from:"getRequired",default:function(){}},getRuleOption:{form:"getRuleOption",default:function(){}},formSubmit:{from:"formSubmit",default:function(){}},setProp:{from:"setProp",default:function(){}}},data:function(){return{showMessage:!1}},created:function(){this.prop&&this.setProp&&this.setProp(this.prop)},render:function(e){return e("div",{class:["dp-formItem",{error:this.message&&this.verify}]},[e("div",{class:["dp-formItem__label",{required:this.required}]},[this.label]),e("div",{class:"dp-formItem__input"},[this.$slots.default]),this.message&&this.verify?e("div",{class:"dp-formItem__msg"},[this.message]):void 0])}},undefined,undefined,!1,null,null,null);n.options.__file="src/modules/form-item/index.vue";var r=n.exports;r.install=function(e){e.component(r.name,r)};var o=r;module.exports=t}();
!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return o}});var n=function(e,t,n,r,o,i,s,u){var a,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),s?(a=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},f._ssrRegister=a):o&&(a=u?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var d=f.render;f.render=function(e,t){return a.call(t),d(e,t)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:e,options:f}}({name:"dpFormItem",props:{label:{type:String,default:""},prop:{type:String,default:""}},computed:{required:function(){return!!this.getRequired&&this.getRequired(this.prop)},ruleOption:function(){return this.getRuleOption&&this.getRuleOption(this.prop)},message:function(){var e=this.ruleOption;return e&&e.message},verify:function(){return this.formSubmit&&this.formSubmit()||this.showMessage}},inject:{getRequired:{from:"getRequired",default:function(){}},getRuleOption:{form:"getRuleOption",default:function(){}},formSubmit:{from:"formSubmit",default:function(){}},setProp:{from:"setProp",default:function(){}}},data:function(){return{showMessage:!1}},created:function(){this.prop&&this.setProp&&this.setProp(this.prop)},render:function(e){return e("div",{class:["dp-formItem",{error:this.message&&this.verify}]},[this.label?e("div",{class:["dp-formItem__label",{required:this.required}]},[this.label]):void 0,e("div",{class:"dp-formItem__input"},[this.$slots.default]),this.message&&this.verify?e("div",{class:["dp-formItem__msg",{"no-label":!this.label}]},[this.message]):void 0])}},undefined,undefined,!1,null,null,null);n.options.__file="src/modules/form-item/index.vue";var r=n.exports;r.install=function(e){e.component(r.name,r)};var o=r;module.exports=t}();

@@ -1,1 +0,1 @@

!function(){"use strict";var t={197:function(t){function e(){return e=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},e.apply(this,arguments)}var r=["attrs","props","domProps"],n=["class","style","directives"],o=["on","nativeOn"],i=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,u){for(var a in u)if(t[a])if(-1!==r.indexOf(a))t[a]=e({},t[a],u[a]);else if(-1!==n.indexOf(a)){var s=t[a]instanceof Array?t[a]:[t[a]],f=u[a]instanceof Array?u[a]:[u[a]];t[a]=s.concat(f)}else if(-1!==o.indexOf(a))for(var c in u[a])if(t[a][c]){var l=t[a][c]instanceof Array?t[a][c]:[t[a][c]],d=u[a][c]instanceof Array?u[a][c]:[u[a][c]];t[a][c]=l.concat(d)}else t[a][c]=u[a][c];else if("hook"==a)for(var p in u[a])t[a][p]=t[a][p]?i(t[a][p],u[a][p]):u[a][p];else t[a]=u[a];else t[a]=u[a];return t}),{})}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};!function(){r.r(n),r.d(n,{default:function(){return s}});var t=r(197),e=r.n(t);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(t,e,r,n,o,i,u,a){var s,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},f._ssrRegister=s):o&&(s=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(f.functional){f._injectStyles=s;var c=f.render;f.render=function(t,e){return s.call(e),c(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:f}}({name:"dpForm",model:{event:"input",prop:"data"},props:{data:{type:Object,default:function(){}},rules:{type:Object,default:function(){}},layout:{type:String,default:"horizontal"},reset:{type:Boolean,default:!1}},provide:function(){var t=this;return{getRuleOption:this.getRuleOption,getRequired:function(e){if(!e||!t.rules[e])return!1;var r=t.rules[e],n=(r instanceof Array?r:[r]).find((function(t){return Boolean(t.required)}));return Boolean(n)},formSubmit:function(){return t.submit},formReset:function(){return t.reset},setProp:function(e){e&&(t.formProps=Array.from(new Set([].concat(i(t.formProps),[e]))))}}},data:function(){return{submit:!1,formProps:[]}},watch:{reset:function(t){t&&(this.submit=!1)}},methods:{onFormSubmit:function(t){var e=this;t&&t.preventDefault(),this.submit=!0,this.$emit("update:reset",!1);var r=!0;return this.formProps.some((function(t){return void 0!==e.getRuleOption(t)&&(r=!1,!0)})),!!r&&(this.$emit("submit"),!1)},disposeEnter:function(t){13===t.keyCode&&this.onFormSubmit()},getRuleOption:function(t){if(t&&this.rules[t]&&this.data){var e=this.data[t],r=this.rules[t],n=r instanceof Array?r:[r],o=n.find((function(t){return Boolean(t.required)}));if(o&&e instanceof Array&&0===e.length)return o;if(o&&!e)return o;var i=n.filter((function(t){return!Object.keys(t).includes("required")})),u=void 0;return i.some((function(t){var r=t.validator,n=t.regx,o={message:t.message,trigger:t.trigger};return r&&!r(e)||n&&!n.test(e)?(u=o,!0):void 0})),u}}},render:function(t){return t("form",e()([{class:["dp-form",this.layout],attrs:{action:""}},{on:{keydown:this.disposeEnter}},{on:{submit:this.onFormSubmit}}]),[this.$slots.default])}},undefined,undefined,!1,null,null,null);u.options.__file="src/modules/form/index.vue";var a=u.exports;a.install=function(t){t.component(a.name,a)};var s=a}(),module.exports=n}();
!function(){"use strict";var t={d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t.r(e),t.d(e,{default:function(){return u}});var o=function(t,e,r,n,o,i,u,a){var s,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},f._ssrRegister=s):o&&(s=a?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(f.functional){f._injectStyles=s;var l=f.render;f.render=function(t,e){return s.call(e),l(t,e)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,s):[s]}return{exports:t,options:f}}({name:"dpForm",model:{event:"input",prop:"data"},props:{data:{type:Object,default:function(){}},rules:{type:Object,default:function(){}},layout:{type:String,default:"horizontal"},reset:{type:Boolean,default:!1}},provide:function(){var t=this;return{getRuleOption:this.getRuleOption,getRequired:function(e){if(!e||!t.rules||!t.rules[e])return!1;var r=t.rules[e],n=(r instanceof Array?r:[r]).find((function(t){return Boolean(t.required)}));return Boolean(n)},formSubmit:function(){return t.submit},formReset:function(){return t.reset},setProp:function(e){e&&(t.formProps=Array.from(new Set([].concat(n(t.formProps),[e]))))}}},data:function(){return{submit:!1,formProps:[]}},watch:{reset:function(t){t&&(this.submit=!1)}},methods:{onFormSubmit:function(t){var e=this;t&&t.preventDefault(),this.submit=!0,this.$emit("update:reset",!1);var r=!0;return this.formProps.some((function(t){return void 0!==e.getRuleOption(t)&&(r=!1,!0)})),!!r&&(this.$emit("submit"),!1)},getRuleOption:function(t){if(t&&this.rules&&this.rules[t]&&this.data){var e=this.data[t],r=this.rules[t],n=r instanceof Array?r:[r],o=n.find((function(t){return Boolean(t.required)}));if(o&&e instanceof Array&&0===e.length)return o;if(o&&!e)return o;var i=n.filter((function(t){return!Object.keys(t).includes("required")})),u=void 0;return i.some((function(t){var r=t.validator,n=t.regx,o={message:t.message,trigger:t.trigger};return r&&!r(e)||n&&!n.test(e)?(u=o,!0):void 0})),u}}},render:function(t){return t("form",{class:["dp-form",this.layout],attrs:{action:""},on:{submit:this.onFormSubmit}},[this.$slots.default])}},undefined,undefined,!1,null,null,null);o.options.__file="src/modules/form/index.vue";var i=o.exports;i.install=function(t){t.component(i.name,i)};var u=i;module.exports=e}();

@@ -1,1 +0,1 @@

!function(){"use strict";var e={197:function(e){function t(){return t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],o=["on","nativeOn"],i=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,a){for(var s in a)if(e[s])if(-1!==n.indexOf(s))e[s]=t({},e[s],a[s]);else if(-1!==r.indexOf(s)){var d=e[s]instanceof Array?e[s]:[e[s]],l=a[s]instanceof Array?a[s]:[a[s]];e[s]=d.concat(l)}else if(-1!==o.indexOf(s))for(var u in a[s])if(e[s][u]){var c=e[s][u]instanceof Array?e[s][u]:[e[s][u]],f=a[s][u]instanceof Array?a[s][u]:[a[s][u]];e[s][u]=c.concat(f)}else e[s][u]=a[s][u];else if("hook"==s)for(var v in a[s])e[s][v]=e[s][v]?i(e[s][v],a[s][v]):a[s][v];else e[s]=a[s];else e[s]=a[s];return e}),{})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{default:function(){return g}});var e=n(197),t=n.n(e);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=function(e,t,n,r,o,i,a,s){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):o&&(d=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}({name:"dpLoading",data:function(){return{loadingTextColor:"",loadingText:"",loadingBackground:"",visible:!1,serve:!1,zIndex:0}},methods:{remove:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el),document.documentElement.classList.remove("dp-loading--unSroll"),this.$emit("remove")},leave:function(){this.visible=!1}},created:function(){var e,t;this.serve&&this.visible&&(this.zIndex=(t=i(document.querySelectorAll(e?"".concat(e," *"):"*")).map((function(e){return+window.getComputedStyle(e).zIndex||0}))).length?Math.max.apply(Math,i(t))+1:0,document.documentElement.classList.add("dp-loading--unSroll"))},render:function(e){return e("transition",t()([{attrs:{name:"dp-loading--fade"}},{on:{"after-leave":this.remove}}]),[e("div",{class:["dp-loading",{serve:this.serve}],style:this.serve?{zIndex:this.zIndex}:{},directives:[{name:"show",value:this.visible}]},[e("div",{class:"dp-loading--box",style:{color:this.loadingTextColor}},[e("i",{class:"dp-loading__icon dp-icon-loading"}),this.loadingText?e("p",{class:"dp-loading__text"},[this.loadingText]):void 0]),e("div",{class:"dp-loading--mask",style:this.loadingBackground?{background:this.loadingBackground,opacity:"initial"}:{}})])])}},undefined,undefined,!1,null,null,null);a.options.__file="src/modules/loading/src/index.vue";var s=a.exports,d=require("vue"),l=n.n(d)().extend(s),u={},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new l({data:e});return t.$mount(),t},f=function(e){if(!e)return{};var t={},n=["loading-text","loading-background","loading-text-color"];return Object.keys(e.attributes).filter((function(t){return n.includes(e.attributes[t].nodeName)})).forEach((function(n){var r=e.attributes[n],o=r.nodeValue,i=r.nodeName.split("-").map((function(e,t){return 0===t?e:e.substring(0,1).toLocaleUpperCase()+e.substring(1)})).join("");t[i]=o})),t},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=c(Object.assign({},{visible:!0},t));return t.serve||(e.style.position="relative",e.dataset.load_id=n),e.appendChild(r.$el),r}},p=void 0;u.service=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p&&p.leave(),p=void 0,p=v(document.body,Object.assign({},e,{serve:!0})),function(){p&&p.leave()}},u.install=function(e){var t={};e.directive("loading",{bind:function(e,n){if(n.value){var r=f(e),o="dp_"+(parseInt(1e3*Math.random())+Date.now());t[o]=v(e,r,o)}},componentUpdated:function(e,n){var r=n.value,o=e.dataset.load_id,i=t[o];if(!(i&&r||!i&&!r)){if(!r&&i)return i.$on("remove",(function(){e.style.position=""})),i.leave(),delete t[o],void delete e.dataset.load_id;var a=f(e),s="dp_"+(parseInt(1e3*Math.random())+Date.now());t[s]=v(e,a,s)}}}),e.prototype.$loading=u.service},u.close=function(){p&&p.leave(),p=void 0};var g=u}(),module.exports=r}();
!function(){"use strict";var e={197:function(e){function t(){return t=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t.apply(this,arguments)}var n=["attrs","props","domProps"],r=["class","style","directives"],o=["on","nativeOn"],i=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}};e.exports=function(e){return e.reduce((function(e,a){for(var s in a)if(e[s])if(-1!==n.indexOf(s))e[s]=t({},e[s],a[s]);else if(-1!==r.indexOf(s)){var d=e[s]instanceof Array?e[s]:[e[s]],l=a[s]instanceof Array?a[s]:[a[s]];e[s]=d.concat(l)}else if(-1!==o.indexOf(s))for(var u in a[s])if(e[s][u]){var c=e[s][u]instanceof Array?e[s][u]:[e[s][u]],f=a[s][u]instanceof Array?a[s][u]:[a[s][u]];e[s][u]=c.concat(f)}else e[s][u]=a[s][u];else if("hook"==s)for(var v in a[s])e[s][v]=e[s][v]?i(e[s][v],a[s][v]):a[s][v];else e[s]=a[s];else e[s]=a[s];return e}),{})}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{default:function(){return g}});var e=n(197),t=n.n(e);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=function(e,t,n,r,o,i,a,s){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):o&&(d=s?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}({name:"dpLoading",data:function(){return{loadingTextColor:"",loadingText:"",loadingBackground:"",visible:!1,serve:!1,zIndex:0}},methods:{remove:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el),document.documentElement.classList.remove("dp-loading--unSroll"),this.$emit("remove")},leave:function(){this.visible=!1}},created:function(){var e,t;this.zIndex=(t=i(document.querySelectorAll(e?"".concat(e," *"):"*")).map((function(e){return+window.getComputedStyle(e).zIndex||0}))).length?Math.max.apply(Math,i(t))+1:0,this.serve&&this.visible&&document.documentElement.classList.add("dp-loading--unSroll")},render:function(e){return e("transition",t()([{attrs:{name:"dp-loading--fade"}},{on:{"after-leave":this.remove}}]),[e("div",{class:["dp-loading",{serve:this.serve}],style:{zIndex:this.zIndex},directives:[{name:"show",value:this.visible}]},[e("div",{class:"dp-loading--box",style:{color:this.loadingTextColor}},[e("i",{class:"dp-loading__icon dp-icon-loading"}),this.loadingText?e("p",{class:"dp-loading__text"},[this.loadingText]):void 0]),e("div",{class:"dp-loading--mask",style:this.loadingBackground?{background:this.loadingBackground,opacity:"initial"}:{}})])])}},undefined,undefined,!1,null,null,null);a.options.__file="src/modules/loading/src/index.vue";var s=a.exports,d=require("vue"),l=n.n(d)().extend(s),u={},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new l({data:e});return t.$mount(),t},f=function(e){if(!e)return{};var t={},n=["loading-text","loading-background","loading-text-color"];return Object.keys(e.attributes).filter((function(t){return n.includes(e.attributes[t].nodeName)})).forEach((function(n){var r=e.attributes[n],o=r.nodeValue,i=r.nodeName.split("-").map((function(e,t){return 0===t?e:e.substring(0,1).toLocaleUpperCase()+e.substring(1)})).join("");t[i]=o})),t},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(e){var r=c(Object.assign({},{visible:!0},t));return t.serve||(e.style.position="relative",e.dataset.load_id=n),e.appendChild(r.$el),r}},p=void 0;u.service=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p&&p.leave(),p=void 0,p=v(document.body,Object.assign({},e,{serve:!0})),function(){p&&p.leave()}},u.install=function(e){var t={};e.directive("loading",{bind:function(e,n){if(n.value){var r=f(e),o="dp_"+(parseInt(1e3*Math.random())+Date.now());t[o]=v(e,r,o)}},componentUpdated:function(e,n){var r=n.value,o=e.dataset.load_id,i=t[o];if(!(i&&r||!i&&!r)){if(!r&&i)return i.$on("remove",(function(){e.style.position=""})),i.leave(),delete t[o],void delete e.dataset.load_id;var a=f(e),s="dp_"+(parseInt(1e3*Math.random())+Date.now());t[s]=v(e,a,s)}}}),e.prototype.$loading=u.service},u.close=function(){p&&p.leave(),p=void 0};var g=u}(),module.exports=r}();

@@ -1,1 +0,1 @@

!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return i}});var n=function(e,t,n,o,i,r,a,s){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):i&&(l=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var u=d.render;d.render=function(e,t){return l.call(t),u(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}({name:"dpRadio",props:{value:{type:[Number,String,Boolean],default:""},name:{type:[Number,String,Boolean],default:""}},methods:{changeValue:function(){this.name!==this.value&&this.$emit("input",this.name)}},render:function(e){return e("div",{on:{click:this.changeValue.bind(this)},class:["dp-radio",this.value===this.name?"active":""]},[e("span",{class:"dp-radio--value"}),e("span",{class:"dp-radio--label"},[this.$slots.default])])}},undefined,undefined,!1,null,null,null);n.options.__file="src/modules/radio/index.vue";var o=n.exports;o.install=function(e){e.component(o.name,o)};var i=o;module.exports=t}();
!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return i}});var n=function(e,t,n,o,i,r,a,s){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=d):i&&(d=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(e,t){return d.call(t),u(e,t)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}({name:"dpRadio",props:{value:{type:[Number,String],default:""},groups:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1}},methods:{changeValue:function(e){!this.disabled&&this.value!==e&&this.$emit("input",e)}},render:function(e){var t=this;return e("div",{class:["dp-radio",{disabled:this.disabled}]},[this.groups.map((function(n){return e("div",{on:{click:t.changeValue.bind(t,n.value)},class:["dp-radio__item",{active:t.value===n.value}]},[e("span",{class:"dp-radio__item--value"}),n.name?e("span",{class:"dp-radio__item--label"},[n.name]):void 0])}))])}},undefined,undefined,!1,null,null,null);n.options.__file="src/modules/radio/index.vue";var o=n.exports;o.install=function(e){e.component(o.name,o)};var i=o;module.exports=t}();
{
"name": "@dpapejs/dpvue-ui",
"version": "1.0.19",
"version": "1.0.20",
"description": "A Component Library for VueJs2.x",

@@ -5,0 +5,0 @@ "main": "es/index.js",

@@ -51,6 +51,60 @@ import Vue, { PluginObject } from 'vue'

/** Progress Component */
export class Progress { }
/** AdminManage Component */
export class AdminManage { }
/** TimePicker Component */
export class TimePicker { }
/** Form Component */
export class Form { }
/** FormItem Component */
export class FormItem { }
/** OverflowTooltip Component */
export class OverflowTooltip { }
/** Tabs Component */
export class Tabs { }
/** TabsItem Component */
export class TabsItem { }
/** DatePicker Component */
export class DatePicker { }
/** Tree Component */
export class Tree { }
/** Upload Component */
export class Upload { }
/** Switch Component */
export class Switch { }
/** Checkbox Component */
export class Checkbox { }
/** Divider Component */
export class Divider { }
/** Select Component */
export class Select { }
/** Table Component */
export class Table { }
/** Pagination Component */
export class Pagination { }
/** Message Fn */
export const Message: dpMessage
/** Message Fn */
/** Toast Fn */
export const Toast: {}
/** DialogBox Fn */
export const DialogBox: dpDialogBox

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc