iking-web-ui-pro 0.0.2 → 0.0.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.
- package/dist/IKApprovalProcess/index.es.js +1 -1
- package/dist/IKApprovalProcess/index.umd.js +1 -1
- package/dist/IKApprovalProcess/style.css +1 -1
- package/dist/IKApprovalProcessDetail/style.css +1 -1
- package/dist/IKCalendar/index.es.js +1 -1
- package/dist/IKCalendar/index.umd.js +1 -1
- package/dist/IKCalendar/style.css +1 -1
- package/dist/IKDetailPreviewFiles/index.es.js +244 -1424
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -1
- package/dist/IKDetailPreviewFiles/style.css +1 -1
- package/dist/IKExpandCollapse/index.es.js +143 -1323
- package/dist/IKExpandCollapse/index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKSearch/index.es.js +1 -1
- package/dist/IKSearch/index.umd.js +1 -1
- package/dist/IKSearch/style.css +1 -1
- package/dist/IKVerticalStepBar/index.es.js +190 -1370
- package/dist/IKVerticalStepBar/index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkBaseDialog/index.es.js +234 -0
- package/dist/IkBaseDialog/index.umd.js +1 -0
- package/dist/IkBaseDialog/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +336 -1517
- package/dist/IkBtnSetting/index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkIconPicker/index.es.js +2885 -1449
- package/dist/IkIconPicker/index.umd.js +5 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkPageFull/index.es.js +1678 -2859
- package/dist/IkPageFull/index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPicker/index.es.js +1 -1
- package/dist/IkPicker/index.umd.js +1 -1
- package/dist/IkPicker/style.css +1 -1
- package/dist/IkPickerUser/index.es.js +255 -237
- package/dist/IkPickerUser/index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkSchedule/index.es.js +2181 -3362
- package/dist/IkSchedule/index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSvgIcon/index.es.js +125 -1310
- package/dist/IkSvgIcon/index.umd.js +1 -1
- package/dist/IkUploadFile/index.es.js +955 -596
- package/dist/IkUploadFile/index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/index.es.js +113 -110
- package/dist/IkUploadImage/index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12914 -11169
- package/dist/index.umd.js +10 -6
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/IkSvgIcon/style.css +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(x,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(x=typeof globalThis<"u"?globalThis:x||self,c(x.index={},x.Vue))})(this,function(x,c){"use strict";const ne=(e,t)=>{if(e.install=n=>{for(const i of[e,...Object.values(t??{})])n.component(i.name,i)},t)for(const[n,i]of Object.entries(t))e[n]=i;return e},oe=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},B=/^[a-z0-9]+(-[a-z0-9]+)*$/,F=(e,t,n,i="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;i=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const l=o.pop(),a=o.pop(),f={provider:o.length>0?o[0]:i,prefix:a,name:l};return t&&!N(f)?null:f}const r=o[0],s=r.split("-");if(s.length>1){const l={provider:i,prefix:s.shift(),name:s.join("-")};return t&&!N(l)?null:l}if(n&&i===""){const l={provider:i,prefix:"",name:r};return t&&!N(l,n)?null:l}return null},N=(e,t)=>e?!!((e.provider===""||e.provider.match(B))&&(t&&e.prefix===""||e.prefix.match(B))&&e.name.match(B)):!1,ie=Object.freeze({left:0,top:0,width:16,height:16}),P=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...ie,...P}),$=Object.freeze({...O,body:"",hidden:!1});function ze(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function re(e,t){const n=ze(e,t);for(const i in $)i in P?i in e&&!(i in n)&&(n[i]=P[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function Ae(e,t){const n=e.icons,i=e.aliases||Object.create(null),o=Object.create(null);function r(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const l=i[s]&&i[s].parent,a=l&&r(l);a&&(o[s]=[l].concat(a))}return o[s]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(r),o}function Ve(e,t,n){const i=e.icons,o=e.aliases||Object.create(null);let r={};function s(l){r=re(i[l]||o[l],r)}return s(t),n.forEach(s),re(e,r)}function se(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const i=Ae(e);for(const o in i){const r=i[o];r&&(t(o,Ve(e,o,r)),n.push(o))}return n}const $e={provider:"",aliases:{},not_found:{},...ie};function D(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ce(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!D(e,$e))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o.match(B)||typeof r.body!="string"||!D(r,$))return null}const i=t.aliases||Object.create(null);for(const o in i){const r=i[o],s=r.parent;if(!o.match(B)||typeof s!="string"||!n[s]&&!i[s]||!D(r,$))return null}return t}const le=Object.create(null);function De(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function C(e,t){const n=le[e]||(le[e]=Object.create(null));return n[t]||(n[t]=De(e,t))}function H(e,t){return ce(t)?se(t,(n,i)=>{i?e.icons[n]=i:e.missing.add(n)}):[]}function He(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let E=!1;function ae(e){return typeof e=="boolean"&&(E=e),E}function Re(e){const t=typeof e=="string"?F(e,!0,E):e;if(t){const n=C(t.provider,t.prefix),i=t.name;return n.icons[i]||(n.missing.has(i)?null:void 0)}}function qe(e,t){const n=F(e,!0,E);if(!n)return!1;const i=C(n.provider,n.prefix);return He(i,n.name,t)}function Qe(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),E&&!t&&!e.prefix){let o=!1;return ce(e)&&(e.prefix="",se(e,(r,s)=>{s&&qe(r,s)&&(o=!0)})),o}const n=e.prefix;if(!N({provider:t,prefix:n,name:"a"}))return!1;const i=C(t,n);return!!H(i,e)}const fe=Object.freeze({width:null,height:null}),ue=Object.freeze({...fe,...P}),Ke=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ue=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split(Ke);if(i===null||!i.length)return e;const o=[];let r=i.shift(),s=Ue.test(r);for(;;){if(s){const l=parseFloat(r);isNaN(l)?o.push(r):o.push(Math.ceil(l*t*n)/n)}else o.push(r);if(r=i.shift(),r===void 0)return o.join("");s=!s}}const We=e=>e==="unset"||e==="undefined"||e==="none";function Ge(e,t){const n={...O,...e},i={...ue,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,i].forEach(d=>{const p=[],m=d.hFlip,S=d.vFlip;let k=d.rotate;m?S?k+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):S&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let w;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:w=o.height/2+o.top,p.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,p.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}k%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),p.length&&(r='<g transform="'+p.join(" ")+'">'+r+"</g>")});const s=i.width,l=i.height,a=o.width,f=o.height;let u,y;s===null?(y=l===null?"1em":l==="auto"?f:l,u=de(y,a/f)):(u=s==="auto"?a:s,y=l===null?de(u,f/a):l==="auto"?f:l);const h={},g=(d,p)=>{We(p)||(h[d]=p.toString())};return g("width",u),g("height",y),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+a.toString()+" "+f.toString(),{attributes:h,body:r}}const Je=/\sid="(\S+)"/g,Xe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ye=0;function Ze(e,t=Xe){const n=[];let i;for(;i=Je.exec(e);)n.push(i[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const s=typeof t=="function"?t(r):t+(Ye++).toString(),l=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const R=Object.create(null);function et(e,t){R[e]=t}function q(e){return R[e]||R[""]}function Q(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const K=Object.create(null),j=["https://api.simplesvg.com","https://api.unisvg.com"],M=[];for(;j.length>0;)j.length===1||Math.random()>.5?M.push(j.shift()):M.push(j.pop());K[""]=Q({resources:["https://api.iconify.design"].concat(M)});function tt(e,t){const n=Q(t);return n===null?!1:(K[e]=n,!0)}function U(e){return K[e]}let pe=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function nt(e,t){const n=U(e);if(!n)return 0;let i;if(!n.maxURL)i=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const r=t+".json?icons=";i=n.maxURL-o-n.path.length-r.length}return i}function ot(e){return e===404}const it=(e,t,n)=>{const i=[],o=nt(e,t),r="icons";let s={type:r,provider:e,prefix:t,icons:[]},l=0;return n.forEach((a,f)=>{l+=a.length+1,l>=o&&f>0&&(i.push(s),s={type:r,provider:e,prefix:t,icons:[]},l=a.length),s.icons.push(a)}),i.push(s),i};function rt(e){if(typeof e=="string"){const t=U(e);if(t)return t.path}return"/"}const st={prepare:it,send:(e,t,n)=>{if(!pe){n("abort",424);return}let i=rt(t.provider);switch(t.type){case"icons":{const r=t.prefix,l=t.icons.join(","),a=new URLSearchParams({icons:l});i+=r+".json?"+a.toString();break}case"custom":{const r=t.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;pe(e+i).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{n(ot(s)?"abort":"next",s)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})}};function ct(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return e.forEach(o=>{if(i.name===o.name&&i.prefix===o.prefix&&i.provider===o.provider)return;i=o;const r=o.provider,s=o.prefix,l=o.name,a=n[r]||(n[r]=Object.create(null)),f=a[s]||(a[s]=C(r,s));let u;l in f.icons?u=t.loaded:s===""||f.missing.has(l)?u=t.missing:u=t.pending;const y={provider:r,prefix:s,name:l};u.push(y)}),t}function he(e,t){e.forEach(n=>{const i=n.loaderCallbacks;i&&(n.loaderCallbacks=i.filter(o=>o.id!==t))})}function lt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const i=e.provider,o=e.prefix;t.forEach(r=>{const s=r.icons,l=s.pending.length;s.pending=s.pending.filter(a=>{if(a.prefix!==o)return!0;const f=a.name;if(e.icons[f])s.loaded.push({provider:i,prefix:o,name:f});else if(e.missing.has(f))s.missing.push({provider:i,prefix:o,name:f});else return n=!0,!0;return!1}),s.pending.length!==l&&(n||he([e],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let at=0;function ft(e,t,n){const i=at++,o=he.bind(null,n,i);if(!t.pending.length)return o;const r={id:i,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),o}function ut(e,t=!0,n=!1){const i=[];return e.forEach(o=>{const r=typeof o=="string"?F(o,t,n):o;r&&i.push(r)}),i}var dt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pt(e,t,n,i){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let b=e.resources.slice(0);for(s=[];b.length>1;){const I=Math.floor(Math.random()*b.length);s.push(b[I]),b=b.slice(0,I).concat(b.slice(I+1))}s=s.concat(b)}else s=e.resources.slice(r).concat(e.resources.slice(0,r));const l=Date.now();let a="pending",f=0,u,y=null,h=[],g=[];typeof i=="function"&&g.push(i);function d(){y&&(clearTimeout(y),y=null)}function p(){a==="pending"&&(a="aborted"),d(),h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function m(b,I){I&&(g=[]),typeof b=="function"&&g.push(b)}function S(){return{startTime:l,payload:t,status:a,queriesSent:f,queriesPending:h.length,subscribe:m,abort:p}}function k(){a="failed",g.forEach(b=>{b(void 0,u)})}function w(){h.forEach(b=>{b.status==="pending"&&(b.status="aborted")}),h=[]}function Le(b,I,T){const V=I!=="success";switch(h=h.filter(v=>v!==b),a){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=T,k();return}if(V){u=T,h.length||(s.length?te():k());return}if(d(),w(),!e.random){const v=e.resources.indexOf(b.resource);v!==-1&&v!==e.index&&(e.index=v)}a="completed",g.forEach(v=>{v(T)})}function te(){if(a!=="pending")return;d();const b=s.shift();if(b===void 0){if(h.length){y=setTimeout(()=>{d(),a==="pending"&&(w(),k())},e.timeout);return}k();return}const I={status:"pending",resource:b,callback:(T,V)=>{Le(I,T,V)}};h.push(I),f++,y=setTimeout(te,e.rotate),n(b,t,I.callback)}return setTimeout(te),S}function ge(e){const t={...dt,...e};let n=[];function i(){n=n.filter(l=>l().status==="pending")}function o(l,a,f){const u=pt(t,l,a,(y,h)=>{i(),f&&f(y,h)});return n.push(u),u}function r(l){return n.find(a=>l(a))||null}return{query:o,find:r,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:i}}function me(){}const W=Object.create(null);function ht(e){if(!W[e]){const t=U(e);if(!t)return;const n=ge(t),i={config:t,redundancy:n};W[e]=i}return W[e]}function gt(e,t,n){let i,o;if(typeof e=="string"){const r=q(e);if(!r)return n(void 0,424),me;o=r.send;const s=ht(e);s&&(i=s.redundancy)}else{const r=Q(e);if(r){i=ge(r);const s=e.resources?e.resources[0]:"",l=q(s);l&&(o=l.send)}}return!i||!o?(n(void 0,424),me):i.query(t,o,n)().abort}const ye="iconify2",_="iconify",be=_+"-count",ke=_+"-version",we=36e5,mt=168;function G(e,t){try{return e.getItem(t)}catch{}}function J(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ie(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return J(e,be,t.toString())}function Y(e){return parseInt(G(e,be))||0}const L={local:!0,session:!0},Se={local:new Set,session:new Set};let Z=!1;function yt(e){Z=e}let z=typeof window>"u"?{}:window;function xe(e){const t=e+"Storage";try{if(z&&z[t]&&typeof z[t].length=="number")return z[t]}catch{}L[e]=!1}function Ce(e,t){const n=xe(e);if(!n)return;const i=G(n,ke);if(i!==ye){if(i){const l=Y(n);for(let a=0;a<l;a++)Ie(n,_+a.toString())}J(n,ke,ye),X(n,0);return}const o=Math.floor(Date.now()/we)-mt,r=l=>{const a=_+l.toString(),f=G(n,a);if(typeof f=="string"){try{const u=JSON.parse(f);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}Ie(n,a)}};let s=Y(n);for(let l=s-1;l>=0;l--)r(l)||(l===s-1?(s--,X(n,s)):Se[e].add(l))}function ve(){if(!Z){yt(!0);for(const e in L)Ce(e,t=>{const n=t.data,i=t.provider,o=n.prefix,r=C(i,o);if(!H(r,n).length)return!1;const s=n.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,s):s,!0})}}function bt(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const i in L)Ce(i,o=>{const r=o.data;return o.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}function kt(e,t){Z||ve();function n(i){let o;if(!L[i]||!(o=xe(i)))return;const r=Se[i];let s;if(r.size)r.delete(s=Array.from(r).shift());else if(s=Y(o),!X(o,s+1))return;const l={cached:Math.floor(Date.now()/we),provider:e.provider,data:t};return J(o,_+s.toString(),JSON.stringify(l))}t.lastModified&&!bt(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Be(){}function wt(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lt(e)}))}function It(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:i}=e,o=e.iconsToLoad;delete e.iconsToLoad;let r;if(!o||!(r=q(n)))return;r.prepare(n,i,o).forEach(l=>{gt(n,l,a=>{if(typeof a!="object")l.icons.forEach(f=>{e.missing.add(f)});else try{const f=H(e,a);if(!f.length)return;const u=e.pendingIcons;u&&f.forEach(y=>{u.delete(y)}),kt(e,a)}catch(f){console.error(f)}wt(e)})})}))}const St=(e,t)=>{const n=ut(e,!0,ae()),i=ct(n);if(!i.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(i.loaded,i.missing,i.pending,Be)}),()=>{a=!1}}const o=Object.create(null),r=[];let s,l;return i.pending.forEach(a=>{const{provider:f,prefix:u}=a;if(u===l&&f===s)return;s=f,l=u,r.push(C(f,u));const y=o[f]||(o[f]=Object.create(null));y[u]||(y[u]=[])}),i.pending.forEach(a=>{const{provider:f,prefix:u,name:y}=a,h=C(f,u),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(y)||(g.add(y),o[f][u].push(y))}),r.forEach(a=>{const{provider:f,prefix:u}=a;o[f][u].length&&It(a,o[f][u])}),t?ft(t,i,r):Be};function xt(e,t){const n={...e};for(const i in t){const o=t[i],r=typeof o;i in fe?(o===null||o&&(r==="string"||r==="number"))&&(n[i]=o):r===typeof n[i]&&(n[i]=i==="rotate"?o%4:o)}return n}const Ct=/[\s,]+/;function vt(e,t){t.split(Ct).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Bt(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function i(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:i(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?i(r):0)}}return t}function Et(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function jt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _t(e){return"data:image/svg+xml,"+jt(e)}function Tt(e){return'url("'+_t(e)+'")'}const Ee={...ue,inline:!1},Ft={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Nt={display:"inline-block"},ee={backgroundColor:"currentColor"},je={backgroundColor:"transparent"},_e={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Te={webkitMask:ee,mask:ee,background:je};for(const e in Te){const t=Te[e];for(const n in _e)t[e+n]=_e[n]}const A={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";A[e+"-flip"]=t,A[e.slice(0,1)+"-flip"]=t,A[e+"Flip"]=t});function Fe(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ne=(e,t)=>{const n=xt(Ee,t),i={...Ft},o=t.mode||"svg",r={},s=t.style,l=typeof s=="object"&&!(s instanceof Array)?s:{};for(let p in t){const m=t[p];if(m!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[p]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&vt(n,m);break;case"color":r.color=m;break;case"rotate":typeof m=="string"?n[p]=Bt(m):typeof m=="number"&&(n[p]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete i["aria-hidden"];break;default:{const S=A[p];S?(m===!0||m==="true"||m===1)&&(n[S]=!0):Ee[p]===void 0&&(i[p]=m)}}}const a=Ge(e,n),f=a.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){i.style={...r,...l},Object.assign(i,f);let p=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),i.innerHTML=Ze(a.body,m?()=>m+"ID"+p++:"iconifyVue"),c.h("svg",i)}const{body:u,width:y,height:h}=e,g=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),d=Et(u,{...f,width:y+"",height:h+""});return i.style={...r,"--svg":Tt(d),width:Fe(f.width),height:Fe(f.height),...Nt,...g?ee:je,...l},c.h("span",i)};if(ae(!0),et("",st),typeof document<"u"&&typeof window<"u"){ve();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!Qe(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const i="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;tt(n,o)||console.error(i)}catch{console.error(i)}}}}const Pt={...O,body:""},Pe=c.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=F(e,!1,!0))===null)return this.abortLoading(),null;const i=Re(n);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:St([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:i,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Ne(Pt,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Ne({...O,...t.data},n)}}),Ot={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},Mt=["xlink:href"],Lt=["src"],zt={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},At=["xlink:href"],Vt=["src"],$t=c.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(e){const t=e,n=c.computed(()=>{var r;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(r=t.name)!=null&&r.includes(":")?"iconify":"svg"}),i=c.computed(()=>{const r=[];if(t.flip)switch(t.flip){case"horizontal":r.push("rotateY(180deg)");break;case"vertical":r.push("rotateX(180deg)");break;case"both":r.push("rotateX(180deg)"),r.push("rotateY(180deg)");break}return t.rotate&&r.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...r.length&&{transform:r.join(" ")},padding:t.padding}}),o=c.computed(()=>document.body.getAttribute("data-theme")==="dark");return(r,s)=>{const l=c.resolveComponent("el-tooltip");return r.notip||!r.title?(c.openBlock(),c.createElementBlock("i",{key:0,class:c.normalizeClass(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[r.name]:n.value==="unocss","show-bg":r.showBg||r.bg,default:r.size==="default",small:r.size==="small",big:r.size==="big",warning:r.warning}]),style:c.normalizeStyle(i.value)},[n.value==="iconify"?(c.openBlock(),c.createBlock(c.unref(Pe),{key:0,icon:r.name},null,8,["icon"])):n.value==="svg"?(c.openBlock(),c.createElementBlock("svg",Ot,[c.createElementVNode("use",{"xlink:href":`#${r.name}`},null,8,Mt)])):n.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:r.name,class:"basicHeight basicWidth"},null,8,Lt)):c.createCommentVNode("v-if",!0)],6)):(c.openBlock(),c.createBlock(l,{key:1,effect:o.value?"dark":"light",content:r.title},{default:c.withCtx(()=>[c.createElementVNode("i",c.mergeProps({class:["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[r.name]:n.value==="unocss","show-bg":r.showBg||r.bg,default:r.size==="default",small:r.size==="small",big:r.size==="big",warning:r.warning}],style:i.value},r.$attrs),[n.value==="iconify"?(c.openBlock(),c.createBlock(c.unref(Pe),{key:0,icon:r.name},null,8,["icon"])):n.value==="svg"?(c.openBlock(),c.createElementBlock("svg",zt,[c.createElementVNode("use",{"xlink:href":`#${r.name}`},null,8,At)])):n.value==="img"?(c.openBlock(),c.createElementBlock("img",{key:2,src:r.name,class:"basicHeight basicWidth"},null,8,Vt)):c.createCommentVNode("v-if",!0)],16)]),_:1},8,["effect","content"]))}}}),Gt="",Oe=ne(oe($t,[["__scopeId","data-v-1957ff53"]])),Dt={class:"content"},Ht={class:"top"},Rt=["onClick"],qt=["id"],Qt=["onClick"],Kt=c.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(e,{emit:t}){const n=e,i=t,o=c.computed(()=>Number(n.active.indexOf("-")>0?n.active.split("-")[0]:n.active)),r=c.computed(()=>n.active.indexOf("-")>0?Number(n.active.split("-")[1]):0),s=h=>{let g="",d=h+1;return d<o.value?g="before-bg":d===o.value?g="active-bg":d>o.value&&(g="after-bg"),`${g} index`},l=h=>{let g="",d=h+1;return d<o.value?g="before-text":d===o.value?g="active-text":d>o.value&&(g="after-text"),`${g} text`},a=h=>{let g="",d=h+1;return d<o.value?g="before-style":d<n.list.length&&(g="after-style"),`${g} bottom`},f=(h,g)=>{let d="",p=h+1,m=g+1;return p<o.value?d="before-text":p===o.value?m<r.value?d="before-text":m===r.value?d="active-text":m>r.value&&(d="after-text"):p>o.value&&(d="after-text"),`${d} child-text`},u=(h,g)=>{n.needClick&&(h[n.propsField.children]||(i("update:active",g+""),i("click",h)))},y=(h,g)=>{h.show=!h.show;let d=document.getElementById(`children${g}`);h.show?d.style.display="none":d.style.display="block"};return(h,g)=>(c.openBlock(),c.createElementBlock("div",Dt,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(e.list,(d,p)=>{var m,S;return c.openBlock(),c.createElementBlock("div",{class:"line-block",key:p},[c.createElementVNode("div",Ht,[c.createElementVNode("div",{class:c.normalizeClass(s(p))},c.toDisplayString(p+1),3),c.createElementVNode("div",{class:c.normalizeClass(l(p)),style:c.normalizeStyle(e.needClick?"cursor: pointer;":""),onClick:k=>u(d,p+1)},[c.createTextVNode(c.toDisplayString(d[e.propsField.name])+" ",1),c.createCommentVNode(` <i\r
|
|
1
|
+
(function(d,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils"],e):(d=typeof globalThis<"u"?globalThis:d||self,e(d.index={},d.Vue,d["iking-utils"]))})(this,function(d,e,z){"use strict";const g=(s,n)=>{if(s.install=o=>{for(const c of[s,...Object.values(n??{})])o.component(c.name,c)},n)for(const[o,c]of Object.entries(n))s[o]=c;return s},w=(s,n)=>{const o=s.__vccOpts||s;for(const[c,t]of n)o[c]=t;return o},S={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},_={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$=["xlink:href"],E=["src"],V={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},N=["xlink:href"],I=["src"],u=g(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(s){const n=s,o=e.computed(()=>{var t;return/^http?:\/\//.test(n.name)?"img":/i-[^:]+:[^:]+/.test(n.name)?"unocss":n.name.startsWith("iksig")?"iksig":(t=n.name)!=null&&t.includes(":")?"iconify":"svg"}),c=e.computed(()=>{const t=[];if(n.flip)switch(n.flip){case"horizontal":t.push("rotateY(180deg)");break;case"vertical":t.push("rotateX(180deg)");break;case"both":t.push("rotateX(180deg)"),t.push("rotateY(180deg)");break}return n.rotate&&t.push(`rotate(${n.rotate%360}deg)`),{...n.color&&{color:n.color},...n.size&&{fontSize:typeof n.size=="number"?`${n.size}px`:n.size},...t.length&&{transform:t.join(" ")},padding:n.padding,...n.color&&o.value!=="iksig"?{"--ik-color-icon-dark":n.color,"--ik-color-icon-light":z.ikColor.setOpacity(n.color,n.opacity||.4)}:{}}});return(t,p)=>{const k=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",S,[t.notip||!t.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning}]),style:e.normalizeStyle(c.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(c.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",_,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,$)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,E)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(k,{key:1,content:t.title},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[t.name]:o.value==="unocss","show-bg":t.showBg||t.bg,default:t.size==="default",small:t.size==="small",big:t.size==="big",warning:t.warning}]),style:e.normalizeStyle(c.value)},[o.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${t.name}`),style:e.normalizeStyle(c.value)},null,6)):o.value==="svg"?(e.openBlock(),e.createElementBlock("svg",V,[e.createElementVNode("use",{"xlink:href":`#${t.name}`},null,8,N)])):o.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.name,class:"h-[1em] w-[1em]"},null,8,I)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),j={class:"content"},F={class:"top"},O=["onClick"],x=["id"],T=["onClick"],v=e.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(s,{emit:n}){const o=s,c=n,t=e.computed(()=>Number(o.active.indexOf("-")>0?o.active.split("-")[0]:o.active)),p=e.computed(()=>o.active.indexOf("-")>0?Number(o.active.split("-")[1]):0),k=a=>{let i="",l=a+1;return l<t.value?i="before-bg":l===t.value?i="active-bg":l>t.value&&(i="after-bg"),`${i} index`},q=a=>{let i="",l=a+1;return l<t.value?i="before-text":l===t.value?i="active-text":l>t.value&&(i="after-text"),`${i} text`},K=a=>{let i="",l=a+1;return l<t.value?i="before-style":l<o.list.length&&(i="after-style"),`${i} bottom`},D=(a,i)=>{let l="",r=a+1,m=i+1;return r<t.value?l="before-text":r===t.value?m<p.value?l="before-text":m===p.value?l="active-text":m>p.value&&(l="after-text"):r>t.value&&(l="after-text"),`${l} child-text`},B=(a,i)=>{o.needClick&&(a[o.propsField.children]||(c("update:active",i+""),c("click",a)))},C=(a,i)=>{a.show=!a.show;let l=document.getElementById(`children${i}`);a.show?l.style.display="none":l.style.display="block"};return(a,i)=>(e.openBlock(),e.createElementBlock("div",j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.list,(l,r)=>{var m,b;return e.openBlock(),e.createElementBlock("div",{class:"line-block",key:r},[e.createElementVNode("div",F,[e.createElementVNode("div",{class:e.normalizeClass(k(r))},e.toDisplayString(r+1),3),e.createElementVNode("div",{class:e.normalizeClass(q(r)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),onClick:f=>B(l,r+1)},[e.createTextVNode(e.toDisplayString(l[s.propsField.name])+" ",1),e.createCommentVNode(` <i\r
|
|
2
2
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
3
3
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
4
4
|
@click="changeShow(item, index)"\r
|
|
5
|
-
></i> `),(m=
|
|
5
|
+
></i> `),(m=l[s.propsField.children])!=null&&m.length&&!l.show?(e.openBlock(),e.createBlock(e.unref(u),{key:0,class:"ikapprove",onClick:f=>C(l,r),name:"iksvg_zhankai"},null,8,["onClick"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(` <i\r
|
|
6
6
|
v-if="item[propsField.children]?.length && item.show"\r
|
|
7
7
|
@click="changeShow(item, index)"\r
|
|
8
8
|
class="ikapprove icon-a-putongjiantoushouqi"\r
|
|
9
|
-
></i> `),(
|
|
9
|
+
></i> `),(b=l[s.propsField.children])!=null&&b.length&&l.show?(e.openBlock(),e.createBlock(e.unref(u),{key:1,class:"ikapprove",onClick:f=>C(l,r),name:"iksvg_shouqi"},null,8,["onClick"])):e.createCommentVNode("v-if",!0)],14,O)]),e.createElementVNode("ul",{class:e.normalizeClass(K(r))},[e.createElementVNode("div",{id:`children${r}`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l[s.propsField.children],(f,h)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(D(r,h)),style:e.normalizeStyle(s.needClick?"cursor: pointer;":""),key:h,onClick:Y=>B(f,r+1+"-"+(h+1))},e.toDisplayString(f.name),15,T))),128))],8,x)],2)])}),128))]))}}),M="",y=g(w(v,[["__scopeId","data-v-240cff4f"]]));d.IKVerticalStepBar=y,d.default=y,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
*[data-v-240cff4f]{margin:0;padding:0}.content[data-v-240cff4f]{width:100%;height:100%;border-top-left-radius:20px;border-bottom-left-radius:20px;padding:32px 28px}.content .line-block .top[data-v-240cff4f]{display:flex}.content .line-block .top .index[data-v-240cff4f]{width:32px;height:32px;display:flex;justify-content:center;align-items:center;border-radius:4px;font-size:18px;font-weight:550}.content .line-block .top .text[data-v-240cff4f]{line-height:32px;margin-left:20px;font-size:18px;font-weight:700}.content .line-block .active-text[data-v-240cff4f]{color:var(--ik-step-item-active-color, "#039ef7")}.content .line-block .before-text[data-v-240cff4f]{color:var(--ik-color-font-title)}.content .line-block .after-text[data-v-240cff4f]{color:var(--el-color-info, "#181c3266")}.content .line-block .before-bg[data-v-240cff4f]{color:var(--ik-step-item-active-color, #333)!important;background-color:var(--ik-step-item-num-greater-bg)}.content .line-block .active-bg[data-v-240cff4f]{background-color:var(--ik-step-item-active-color, #039ef7);color:var(--el-color-white, #fff)}.content .line-block .after-bg[data-v-240cff4f]{background-color:var(--ik-step-item-num-bg, #f3f6f9);color:var(--ik-step-item-text-color, #a2a6b8)}.content .line-block .bottom[data-v-240cff4f]{margin-left:16px;border-width:0 0 0 1px;padding:10px 0 20px 52px;margin-top:4px;margin-bottom:4px}.content .line-block .before-style[data-v-240cff4f]{border-color:var(--ik-step-item-active-color, #029ef7);border-style:solid}.content .line-block .after-style[data-v-240cff4f]{border-color:var(--el-color-info, #ccc);border-style:dashed}.content .line-block li[data-v-240cff4f]{line-height:30px}.content .line-block .child-text[data-v-240cff4f]{padding:5px 0}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { defineComponent as h, computed as k, resolveComponent as p, openBlock as s, createElementBlock as i, normalizeClass as a, normalizeStyle as r, createElementVNode as u, createCommentVNode as v, createBlock as m, withCtx as c, unref as b, mergeModels as z, useModel as I, ref as $, mergeProps as B, createSlots as C, renderSlot as g, createTextVNode as S, toDisplayString as V } from "vue";
|
|
2
|
+
import { ikColor as j } from "iking-utils";
|
|
3
|
+
const y = (n, l) => {
|
|
4
|
+
if (n.install = (o) => {
|
|
5
|
+
for (const t of [n, ...Object.values(l ?? {})])
|
|
6
|
+
o.component(t.name, t);
|
|
7
|
+
}, l)
|
|
8
|
+
for (const [o, t] of Object.entries(l))
|
|
9
|
+
n[o] = t;
|
|
10
|
+
return n;
|
|
11
|
+
}, O = (n, l) => {
|
|
12
|
+
const o = n.__vccOpts || n;
|
|
13
|
+
for (const [t, e] of l)
|
|
14
|
+
o[t] = e;
|
|
15
|
+
return o;
|
|
16
|
+
}, T = { class: "inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center" }, D = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "h-[1em] w-[1em]",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}, M = ["xlink:href"], N = ["src"], q = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "h-[1em] w-[1em]",
|
|
23
|
+
"aria-hidden": "true"
|
|
24
|
+
}, E = ["xlink:href"], F = ["src"], X = /* @__PURE__ */ h({
|
|
25
|
+
name: "IkSvgIcon",
|
|
26
|
+
__name: "index",
|
|
27
|
+
props: {
|
|
28
|
+
name: {},
|
|
29
|
+
flip: {},
|
|
30
|
+
rotate: {},
|
|
31
|
+
color: {},
|
|
32
|
+
opacity: { default: 0.5 },
|
|
33
|
+
size: { default: "" },
|
|
34
|
+
bg: { type: Boolean, default: !1 },
|
|
35
|
+
showBg: { type: Boolean, default: !1 },
|
|
36
|
+
padding: { default: "0" },
|
|
37
|
+
warning: { type: Boolean },
|
|
38
|
+
notip: { type: Boolean, default: !1 },
|
|
39
|
+
title: {}
|
|
40
|
+
},
|
|
41
|
+
setup(n) {
|
|
42
|
+
const l = n, o = k(() => {
|
|
43
|
+
var e;
|
|
44
|
+
return /^http?:\/\//.test(l.name) ? "img" : /i-[^:]+:[^:]+/.test(l.name) ? "unocss" : l.name.startsWith("iksig") ? "iksig" : (e = l.name) != null && e.includes(":") ? "iconify" : "svg";
|
|
45
|
+
}), t = k(() => {
|
|
46
|
+
const e = [];
|
|
47
|
+
if (l.flip)
|
|
48
|
+
switch (l.flip) {
|
|
49
|
+
case "horizontal":
|
|
50
|
+
e.push("rotateY(180deg)");
|
|
51
|
+
break;
|
|
52
|
+
case "vertical":
|
|
53
|
+
e.push("rotateX(180deg)");
|
|
54
|
+
break;
|
|
55
|
+
case "both":
|
|
56
|
+
e.push("rotateX(180deg)"), e.push("rotateY(180deg)");
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
return l.rotate && e.push(`rotate(${l.rotate % 360}deg)`), {
|
|
60
|
+
...l.color && { color: l.color },
|
|
61
|
+
...l.size && { fontSize: typeof l.size == "number" ? `${l.size}px` : l.size },
|
|
62
|
+
...e.length && { transform: e.join(" ") },
|
|
63
|
+
padding: l.padding,
|
|
64
|
+
...l.color && o.value !== "iksig" ? {
|
|
65
|
+
"--ik-color-icon-dark": l.color,
|
|
66
|
+
"--ik-color-icon-light": j.setOpacity(l.color, l.opacity || 0.4)
|
|
67
|
+
} : {}
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
return (e, d) => {
|
|
71
|
+
const f = p("el-tooltip");
|
|
72
|
+
return s(), i("span", T, [
|
|
73
|
+
e.notip || !e.title ? (s(), i(
|
|
74
|
+
"i",
|
|
75
|
+
{
|
|
76
|
+
key: 0,
|
|
77
|
+
class: a(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
78
|
+
[e.name]: o.value === "unocss",
|
|
79
|
+
"show-bg": e.showBg || e.bg,
|
|
80
|
+
default: e.size === "default",
|
|
81
|
+
small: e.size === "small",
|
|
82
|
+
big: e.size === "big",
|
|
83
|
+
warning: e.warning
|
|
84
|
+
}]),
|
|
85
|
+
style: r(t.value)
|
|
86
|
+
},
|
|
87
|
+
[
|
|
88
|
+
o.value === "iksig" ? (s(), i(
|
|
89
|
+
"i",
|
|
90
|
+
{
|
|
91
|
+
key: 0,
|
|
92
|
+
class: a(`iksig ${e.name}`),
|
|
93
|
+
style: r(t.value)
|
|
94
|
+
},
|
|
95
|
+
null,
|
|
96
|
+
6
|
|
97
|
+
/* CLASS, STYLE */
|
|
98
|
+
)) : o.value === "svg" ? (s(), i("svg", D, [
|
|
99
|
+
u("use", {
|
|
100
|
+
"xlink:href": `#${e.name}`
|
|
101
|
+
}, null, 8, M)
|
|
102
|
+
])) : o.value === "img" ? (s(), i("img", {
|
|
103
|
+
key: 2,
|
|
104
|
+
src: e.name,
|
|
105
|
+
class: "h-[1em] w-[1em]"
|
|
106
|
+
}, null, 8, N)) : v("v-if", !0)
|
|
107
|
+
],
|
|
108
|
+
6
|
|
109
|
+
/* CLASS, STYLE */
|
|
110
|
+
)) : (s(), m(f, {
|
|
111
|
+
key: 1,
|
|
112
|
+
content: e.title
|
|
113
|
+
}, {
|
|
114
|
+
default: c(() => [
|
|
115
|
+
u(
|
|
116
|
+
"i",
|
|
117
|
+
{
|
|
118
|
+
class: a(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition", {
|
|
119
|
+
[e.name]: o.value === "unocss",
|
|
120
|
+
"show-bg": e.showBg || e.bg,
|
|
121
|
+
default: e.size === "default",
|
|
122
|
+
small: e.size === "small",
|
|
123
|
+
big: e.size === "big",
|
|
124
|
+
warning: e.warning
|
|
125
|
+
}]),
|
|
126
|
+
style: r(t.value)
|
|
127
|
+
},
|
|
128
|
+
[
|
|
129
|
+
o.value === "iksig" ? (s(), i(
|
|
130
|
+
"i",
|
|
131
|
+
{
|
|
132
|
+
key: 0,
|
|
133
|
+
class: a(`iksig ${e.name}`),
|
|
134
|
+
style: r(t.value)
|
|
135
|
+
},
|
|
136
|
+
null,
|
|
137
|
+
6
|
|
138
|
+
/* CLASS, STYLE */
|
|
139
|
+
)) : o.value === "svg" ? (s(), i("svg", q, [
|
|
140
|
+
u("use", {
|
|
141
|
+
"xlink:href": `#${e.name}`
|
|
142
|
+
}, null, 8, E)
|
|
143
|
+
])) : o.value === "img" ? (s(), i("img", {
|
|
144
|
+
key: 2,
|
|
145
|
+
src: e.name,
|
|
146
|
+
class: "h-[1em] w-[1em]"
|
|
147
|
+
}, null, 8, F)) : v("v-if", !0)
|
|
148
|
+
],
|
|
149
|
+
6
|
|
150
|
+
/* CLASS, STYLE */
|
|
151
|
+
)
|
|
152
|
+
]),
|
|
153
|
+
_: 1
|
|
154
|
+
/* STABLE */
|
|
155
|
+
}, 8, ["content"]))
|
|
156
|
+
]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}), Y = y(X), P = /* @__PURE__ */ h({
|
|
160
|
+
__name: "CloseIcon",
|
|
161
|
+
setup(n) {
|
|
162
|
+
return (l, o) => (s(), m(b(Y), {
|
|
163
|
+
name: "iksvg_guanbidanchuang",
|
|
164
|
+
warning: "",
|
|
165
|
+
title: "关闭"
|
|
166
|
+
}));
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
const U = /* @__PURE__ */ O(P, [["__scopeId", "data-v-c39a4108"]]), W = /* @__PURE__ */ h({
|
|
170
|
+
__name: "IkBaseDialog",
|
|
171
|
+
props: /* @__PURE__ */ z({
|
|
172
|
+
title: { default: "" },
|
|
173
|
+
cancelText: { default: "取消" },
|
|
174
|
+
confirmText: { default: "确认" }
|
|
175
|
+
}, {
|
|
176
|
+
modelValue: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: !1
|
|
179
|
+
},
|
|
180
|
+
modelModifiers: {}
|
|
181
|
+
}),
|
|
182
|
+
emits: ["update:modelValue"],
|
|
183
|
+
setup(n) {
|
|
184
|
+
const l = I(n, "modelValue"), o = $(!1), t = () => {
|
|
185
|
+
o.value = !o.value;
|
|
186
|
+
};
|
|
187
|
+
return (e, d) => {
|
|
188
|
+
const f = p("IkSvgIcon"), _ = p("el-dialog");
|
|
189
|
+
return s(), m(_, B({
|
|
190
|
+
modelValue: l.value,
|
|
191
|
+
"onUpdate:modelValue": d[0] || (d[0] = (w) => l.value = w)
|
|
192
|
+
}, e.$attrs, {
|
|
193
|
+
"close-icon": U,
|
|
194
|
+
fullscreen: o.value
|
|
195
|
+
}), C({
|
|
196
|
+
header: c(() => [
|
|
197
|
+
u("div", null, [
|
|
198
|
+
g(e.$slots, "header", {}, () => [
|
|
199
|
+
S(
|
|
200
|
+
V(e.title),
|
|
201
|
+
1
|
|
202
|
+
/* TEXT */
|
|
203
|
+
)
|
|
204
|
+
])
|
|
205
|
+
]),
|
|
206
|
+
e.$attrs.showClose ? (s(), m(f, {
|
|
207
|
+
key: 0,
|
|
208
|
+
onClick: t,
|
|
209
|
+
name: o.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
210
|
+
class: "absolute! top-[18px] right-[50px] icon-dialog-full",
|
|
211
|
+
title: o.value ? "退出全屏" : "全屏"
|
|
212
|
+
}, null, 8, ["name", "title"])) : v("v-if", !0)
|
|
213
|
+
]),
|
|
214
|
+
default: c(() => [
|
|
215
|
+
g(e.$slots, "default")
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
/* DYNAMIC */
|
|
219
|
+
}, [
|
|
220
|
+
e.$slots.footer ? {
|
|
221
|
+
name: "footer",
|
|
222
|
+
fn: c(() => [
|
|
223
|
+
g(e.$slots, "footer")
|
|
224
|
+
]),
|
|
225
|
+
key: "0"
|
|
226
|
+
} : void 0
|
|
227
|
+
]), 1040, ["modelValue", "fullscreen"]);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
}), H = y(W);
|
|
231
|
+
export {
|
|
232
|
+
H as IkBaseDialog,
|
|
233
|
+
H as default
|
|
234
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("iking-utils")):typeof define=="function"&&define.amd?define(["exports","vue","iking-utils"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={},i.Vue,i["iking-utils"]))})(this,function(i,e,d){"use strict";const c=(s,l)=>{if(s.install=n=>{for(const t of[s,...Object.values(l??{})])n.component(t.name,t)},l)for(const[n,t]of Object.entries(l))s[n]=t;return s},f=(s,l)=>{const n=s.__vccOpts||s;for(const[t,o]of l)n[t]=o;return n},p={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},g={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},k=["xlink:href"],u=["src"],h={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},y=["xlink:href"],_=["src"],B=c(e.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(s){const l=s,n=e.computed(()=>{var o;return/^http?:\/\//.test(l.name)?"img":/i-[^:]+:[^:]+/.test(l.name)?"unocss":l.name.startsWith("iksig")?"iksig":(o=l.name)!=null&&o.includes(":")?"iconify":"svg"}),t=e.computed(()=>{const o=[];if(l.flip)switch(l.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}return l.rotate&&o.push(`rotate(${l.rotate%360}deg)`),{...l.color&&{color:l.color},...l.size&&{fontSize:typeof l.size=="number"?`${l.size}px`:l.size},...o.length&&{transform:o.join(" ")},padding:l.padding,...l.color&&n.value!=="iksig"?{"--ik-color-icon-dark":l.color,"--ik-color-icon-light":d.ikColor.setOpacity(l.color,l.opacity||.4)}:{}}});return(o,a)=>{const r=e.resolveComponent("el-tooltip");return e.openBlock(),e.createElementBlock("span",p,[o.notip||!o.title?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning}]),style:e.normalizeStyle(t.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(t.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",g,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,k)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,u)):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(r,{key:1,content:o.title},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning}]),style:e.normalizeStyle(t.value)},[n.value==="iksig"?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(`iksig ${o.name}`),style:e.normalizeStyle(t.value)},null,6)):n.value==="svg"?(e.openBlock(),e.createElementBlock("svg",h,[e.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,y)])):n.value==="img"?(e.openBlock(),e.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,_)):e.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),w=e.defineComponent({__name:"CloseIcon",setup(s){return(l,n)=>(e.openBlock(),e.createBlock(e.unref(B),{name:"iksvg_guanbidanchuang",warning:"",title:"关闭"}))}}),S="",C=f(w,[["__scopeId","data-v-c39a4108"]]),m=c(e.defineComponent({__name:"IkBaseDialog",props:e.mergeModels({title:{default:""},cancelText:{default:"取消"},confirmText:{default:"确认"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const l=e.useModel(s,"modelValue"),n=e.ref(!1),t=()=>{n.value=!n.value};return(o,a)=>{const r=e.resolveComponent("IkSvgIcon"),z=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(z,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=b=>l.value=b)},o.$attrs,{"close-icon":C,fullscreen:n.value}),e.createSlots({header:e.withCtx(()=>[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),o.$attrs.showClose?(e.openBlock(),e.createBlock(r,{key:0,onClick:t,name:n.value?"iksvg_tuichuquanping":"iksvg_quanping-daohang",class:"absolute! top-[18px] right-[50px] icon-dialog-full",title:n.value?"退出全屏":"全屏"},null,8,["name","title"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:2},[o.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"footer")]),key:"0"}:void 0]),1040,["modelValue","fullscreen"])}}}));i.IkBaseDialog=m,i.default=m,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ik-svg-icon.ik-icon[data-v-c39a4108]{--ik-color-icon-dark: var(--ik-color-bgicon-dark);--ik-color-icon-light: var(--ik-color-bgicon-light)}
|