x-essential-lib 0.10.1 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.1",
3
+ "version": "0.10.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -35,11 +35,12 @@
35
35
  "mitt": "^3.0.1",
36
36
  "oxfmt": "^0.55.0",
37
37
  "oxlint": "^1.70.0",
38
+ "rolldown": "^1.1.2",
38
39
  "sass": "^1.101.0",
39
40
  "tsdown": "^0.22.3",
40
41
  "typescript": "^6.0.3",
41
42
  "vite": "^8.0.16",
42
- "x-config-lib": "^0.1.2",
43
+ "x-config-lib": "^0.1.5",
43
44
  "x-config-oxfmt": "^0.1.3",
44
45
  "x-config-oxlint": "^0.1.2"
45
46
  },
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime.mam1o4z7.js";var t={badge:`Badge`,open:`Open`,close:`Close`,dismiss:`Dismiss`,confirmEdit:{ok:`OK`,cancel:`Cancel`},dataIterator:{noResultsText:`No matching records found`,loadingText:`Loading items...`},dataTable:{itemsPerPageText:`Rows per page:`,ariaLabel:{sortDescending:`Sorted descending.`,sortAscending:`Sorted ascending.`,sortNone:`Not sorted.`,activateNone:`Activate to remove sorting.`,activateDescending:`Activate to sort descending.`,activateAscending:`Activate to sort ascending.`},sortBy:`Sort by`},dataFooter:{itemsPerPageText:`Items per page:`,itemsPerPageAll:`All`,nextPage:`Next page`,prevPage:`Previous page`,firstPage:`First page`,lastPage:`Last page`,pageText:`{0}-{1} of {2}`},dateRangeInput:{divider:`to`},datePicker:{itemsSelected:`{0} selected`,range:{title:`Select dates`,header:`Enter dates`},title:`Select date`,header:`Enter date`,input:{placeholder:`Enter date`}},noDataText:`No data available`,carousel:{prev:`Previous visual`,next:`Next visual`,ariaLabel:{delimiter:`Carousel slide {0} of {1}`}},calendar:{moreEvents:`{0} more`,today:`Today`},input:{clear:`Clear {0}`,prependAction:`{0} prepended action`,appendAction:`{0} appended action`,otp:`Please enter OTP character {0}`},fileInput:{counter:`{0} files`,counterSize:`{0} files ({1} in total)`},timePicker:{am:`AM`,pm:`PM`,title:`Select Time`},pagination:{ariaLabel:{root:`Pagination Navigation`,next:`Next page`,previous:`Previous page`,page:`Go to page {0}`,currentPage:`Page {0}, Current page`,first:`First page`,last:`Last page`}},stepper:{next:`Next`,prev:`Previous`},rating:{ariaLabel:{item:`Rating {0} of {1}`}},loading:`Loading...`,infiniteScroll:{loadMore:`Load more`,empty:`No more`}},n={common:{ask:`Do you want to {verb} {object} <{name}> ?`,cancel:`Cancel`,confirm:`Confirm`,responding:`Responding...`}},r=e({default:()=>i}),i={$vuetify:t,dlg:n};export{r as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime.mam1o4z7.js";var t={badge:`徽章`,open:`Open`,close:`关闭`,dismiss:`Dismiss`,confirmEdit:{ok:`OK`,cancel:`Cancel`},dataIterator:{noResultsText:`没有符合条件的结果`,loadingText:`加载中...`},dataTable:{itemsPerPageText:`每页数目:`,ariaLabel:{sortDescending:`:降序排列。`,sortAscending:`:升序排列。`,sortNone:`:未排序。`,activateNone:`点击以移除排序。`,activateDescending:`点击以降序排列。`,activateAscending:`点击以升序排列。`},sortBy:`排序方式`},dataFooter:{itemsPerPageText:`每页数目:`,itemsPerPageAll:`全部`,nextPage:`下一页`,prevPage:`上一页`,firstPage:`首页`,lastPage:`尾页`,pageText:`{0}-{1} 共 {2}`},dateRangeInput:{divider:`to`},datePicker:{itemsSelected:`{0} selected`,range:{title:`Select dates`,header:`Enter dates`},title:`Select date`,header:`Enter date`,input:{placeholder:`Enter date`}},noDataText:`没有数据`,carousel:{prev:`上一张`,next:`下一张`,ariaLabel:{delimiter:`Carousel slide {0} of {1}`}},calendar:{moreEvents:`还有 {0} 项`,today:`Today`},input:{clear:`Clear {0}`,prependAction:`{0} prepended action`,appendAction:`{0} appended action`,otp:`Please enter OTP character {0}`},fileInput:{counter:`{0} 个文件`,counterSize:`{0} 个文件(共 {1})`},timePicker:{am:`AM`,pm:`PM`,title:`Select Time`},pagination:{ariaLabel:{root:`分页导航`,next:`下一页`,previous:`上一页`,page:`转到页面 {0}`,currentPage:`当前页 {0}`,first:`First page`,last:`Last page`}},stepper:{next:`Next`,prev:`Previous`},rating:{ariaLabel:{item:`Rating {0} of {1}`}},loading:`Loading...`,infiniteScroll:{loadMore:`Load more`,empty:`No more`}},n={common:{ask:`你想要{verb}{object} <{name}> ?`,cancel:`取消`,confirm:`确定`,responding:`响应中...`}},r=e({default:()=>i}),i={$vuetify:t,dlg:n};export{r as t};
@@ -1 +0,0 @@
1
- var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
package/dist/style.css DELETED
@@ -1 +0,0 @@
1
- .fade-leave-active[data-v-x-essential-lib-c3545c8d]{transition:opacity .5s}.fade-leave-to[data-v-x-essential-lib-c3545c8d]{opacity:0}.x-cont[data-v-x-essential-lib-c3545c8d]{justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.lds-spinner[data-v-x-essential-lib-c3545c8d]{color:official;width:40px;height:40px;display:inline-block;position:relative}.lds-spinner div[data-v-x-essential-lib-c3545c8d]{transform-origin:20px 20px;animation:1.2s linear infinite lds-spinner-x-essential-lib-c3545c8d}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:after{content:" ";background:#9e9e9e;border-radius:5%;width:2px;height:6px;display:block;position:absolute;top:3px;left:18px}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:first-child{animation-delay:-1.1s;transform:rotate(0)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(2){animation-delay:-1s;transform:rotate(30deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(3){animation-delay:-.9s;transform:rotate(60deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(4){animation-delay:-.8s;transform:rotate(90deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(5){animation-delay:-.7s;transform:rotate(120deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(6){animation-delay:-.6s;transform:rotate(150deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(7){animation-delay:-.5s;transform:rotate(180deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(8){animation-delay:-.4s;transform:rotate(210deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(9){animation-delay:-.3s;transform:rotate(240deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(10){animation-delay:-.2s;transform:rotate(270deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(11){animation-delay:-.1s;transform:rotate(300deg)}.lds-spinner div[data-v-x-essential-lib-c3545c8d]:nth-child(12){animation-delay:0s;transform:rotate(330deg)}@keyframes lds-spinner-x-essential-lib-c3545c8d{0%{opacity:1}to{opacity:0}}.x-item[data-v-x-essential-lib-cfcda9d9]{width:600px}@media (width<=600px){.x-item[data-v-x-essential-lib-cfcda9d9]{width:calc(100vw - 16px)}}.x-cont[data-v-x-essential-lib-b973907d]{z-index:9999;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}
@@ -1,3 +0,0 @@
1
- import{computed as e,getCurrentInstance as t,getCurrentScope as n,hasInjectionContext as r,inject as i,onMounted as a,shallowRef as o,toValue as s,unref as c,watch as l,watchEffect as u}from"vue";const d=new WeakMap,f=(...e)=>{let a=e[0],o=t()?.proxy??n();if(o==null&&!r())throw Error(`injectLocal must be called in setup`);return o&&d.has(o)&&a in d.get(o)?d.get(o)[a]:i(...e)},p=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;const m=Object.prototype.toString,h=e=>m.call(e)===`[object Object]`;function g(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function _(e){return Array.isArray(e)?e:[e]}function v(e,t,n){return l(e,t,{...n,immediate:!0})}const y=p?window:void 0;p&&window.document,p&&window.navigator,p&&window.location;function b(e){let t=s(e);return t?.$el??t}function x(...t){let n=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),r=e(()=>{let e=_(s(t[0])).filter(e=>e!=null);return e.every(e=>typeof e!=`string`)?e:void 0});return v(()=>[r.value?.map(e=>b(e))??[y].filter(e=>e!=null),_(s(r.value?t[1]:t[0])),_(c(r.value?t[2]:t[1])),s(r.value?t[3]:t[2])],([e,t,r,i],a,o)=>{if(!e?.length||!t?.length||!r?.length)return;let s=h(i)?{...i}:i,c=e.flatMap(e=>t.flatMap(t=>r.map(r=>n(e,t,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function S(){let e=o(!1),n=t();return n&&a(()=>{e.value=!0},n),e}function ee(t){let n=S();return e(()=>(n.value,!!t()))}const te=Symbol(`vueuse-ssr-width`);function ne(){let e=r()?f(te,null):null;return typeof e==`number`?e:void 0}function re(t,n={}){let{window:r=y,ssrWidth:i=ne()}=n,a=ee(()=>r&&`matchMedia`in r&&typeof r.matchMedia==`function`),c=o(typeof i==`number`),l=o(),d=o(!1);return u(()=>{if(c.value){c.value=!a.value,d.value=s(t).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),r=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||r);return n&&a&&(a=i>=g(n[1])),r&&a&&(a=i<=g(r[1])),t?!a:a});return}a.value&&(l.value=r.matchMedia(s(t)),d.value=l.value.matches)}),x(l,`change`,e=>{d.value=e.matches},{passive:!0}),e(()=>d.value)}function ie(e){return re(`(prefers-color-scheme: dark)`,e)}
2
- /*! js-cookie v3.0.8 | MIT */
3
- function C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!==`__proto__`&&(e[r]=n[r])}return e}var w={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function T(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=C({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(s in r||(r[s]=e.read(o,s)),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,C({},t,{expires:-1}))},withAttributes:function(e){return T(this.converter,C({},this.attributes,e))},withConverter:function(e){return T(C({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var E=T(w,{path:`/`});function D(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var O=typeof global==`object`&&global&&global.Object===Object&&global,k=typeof self==`object`&&self&&self.Object===Object&&self,A=(O||k||Function(`return this`)()).Symbol;function j(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var M=Array.isArray,N=Object.prototype,P=N.hasOwnProperty,F=N.toString,I=A?A.toStringTag:void 0;function L(e){var t=P.call(e,I),n=e[I];try{e[I]=void 0;var r=!0}catch{}var i=F.call(e);return r&&(t?e[I]=n:delete e[I]),i}var R=Object.prototype.toString;function ae(e){return R.call(e)}var z=`[object Null]`,B=`[object Undefined]`,V=A?A.toStringTag:void 0;function H(e){return e==null?e===void 0?B:z:V&&V in Object(e)?L(e):ae(e)}function U(e){return typeof e==`object`&&!!e}var W=`[object Symbol]`;function G(e){return typeof e==`symbol`||U(e)&&H(e)==W}var K=1/0,q=A?A.prototype:void 0,J=q?q.toString:void 0;function Y(e){if(typeof e==`string`)return e;if(M(e))return j(e,Y)+``;if(G(e))return J?J.call(e):``;var t=e+``;return t==`0`&&1/e==-K?`-0`:t}function oe(e){return e==null?``:Y(e)}function se(e){return oe(e).toLowerCase()}var X=[61,()=>[],[]],Z=[62,e=>[e],[``,``,``]],Q=[63,e=>[Record,e,e,e],[``,``,``,``,``,``,``]],ce=[64,e=>[e,Z,Array],[``,``,``,``]],le=[65,e=>[Record,e,Q,Array],[``,``,``,``,``]],$=[66,e=>[X,Record,e,e,e,ce,e,le,Map],[``,``,``,``,``,``,``,``,``,``]],ue=[67,(e,t)=>[X,Record,t,$,t,e,t,e,Z,t,Q,t,e,t,e,Z,t,Q,t,e,t,e,t,t,e,e],`................................................`.split(`.`)];export{E as a,D as i,X as n,ie as o,se as r,ue as t};