@wimi/ui 0.4.28 → 0.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{en-DhNGHjon.mjs → en-DwKHS0PZ.mjs} +1 -1
  2. package/dist/{index-BaC29BWp.mjs → index-BwOFn6BI.mjs} +25 -25
  3. package/dist/index.css +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/index.umd.js +5 -5
  6. package/dist/{ja-oUejRXCF.mjs → ja-BExF6f6G.mjs} +1 -1
  7. package/dist/{ko-BVbI-A0K.mjs → ko-DuclhORl.mjs} +1 -1
  8. package/dist/{ru-g8HlZ7Wl.mjs → ru-SwjfH55G.mjs} +1 -1
  9. package/dist/typings/components/button/src/button.vue.d.ts +2 -2
  10. package/dist/typings/components/index.d.ts +0 -1
  11. package/dist/{zh-cn-BrKJFaO9.mjs → zh-cn-hMMMqYei.mjs} +1 -1
  12. package/dist/{zh-tw-BuDtPYbU.mjs → zh-tw-gfbI6awU.mjs} +1 -1
  13. package/package.json +1 -1
  14. package/dist/typings/components/grid-layout/demo/base.vue.d.ts +0 -2
  15. package/dist/typings/components/grid-layout/demo/line.vue.d.ts +0 -2
  16. package/dist/typings/components/grid-layout/index.d.ts +0 -4
  17. package/dist/typings/components/grid-layout/src/grid-item.vue.d.ts +0 -220
  18. package/dist/typings/components/grid-layout/src/helpers/EventEmitter.d.ts +0 -43
  19. package/dist/typings/components/grid-layout/src/helpers/common.d.ts +0 -193
  20. package/dist/typings/components/grid-layout/src/helpers/dom.d.ts +0 -2
  21. package/dist/typings/components/grid-layout/src/helpers/draggable.d.ts +0 -16
  22. package/dist/typings/components/grid-layout/src/helpers/responsive.d.ts +0 -41
  23. package/dist/typings/components/grid-layout/src/helpers/types.d.ts +0 -41
  24. package/dist/typings/components/grid-layout/src/hooks/useResize.d.ts +0 -7
  25. package/dist/typings/components/grid-layout/src/index.vue.d.ts +0 -367
  26. package/dist/typings/components/grid-layout/src/utils/index.d.ts +0 -7
@@ -1 +1 @@
1
- import{r as e,g as t}from"./index-BaC29BWp.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as j};
1
+ import{r as e,g as t}from"./index-BwOFn6BI.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e){return e+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(e){return e<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as j};
@@ -1 +1 @@
1
- import{r as e,g as t}from"./index-BaC29BWp.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as k};
1
+ import{r as e,g as t}from"./index-BwOFn6BI.mjs";function _(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=t(e),r={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return _.default.locale(r,null,!0),r}(e()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{l as k};
@@ -1 +1 @@
1
- import{r as _,g as t}from"./index-BaC29BWp.mjs";function e(_,t){for(var e=0;e<t.length;e++){const r=t[e];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in _)){const e=Object.getOwnPropertyDescriptor(r,t);e&&Object.defineProperty(_,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(_){function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),o="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),s="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function a(_,t,e){var r,n;return"m"===e?t?"минута":"минуту":_+" "+(r=+_,n={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),r%10==1&&r%100!=11?n[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?n[1]:n[2])}var m=function(_,t){return i.test(t)?r[_.month()]:n[_.month()]};m.s=n,m.f=r;var u=function(_,t){return i.test(t)?o[_.month()]:s[_.month()]};u.s=s,u.f=o;var f={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:m,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(f,null,!0),f}(_()));const s=/* @__PURE__ */e({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{s as r};
1
+ import{r as _,g as t}from"./index-BwOFn6BI.mjs";function e(_,t){for(var e=0;e<t.length;e++){const r=t[e];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in _)){const e=Object.getOwnPropertyDescriptor(r,t);e&&Object.defineProperty(_,t,e.get?e:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(_,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(_){function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var e=t(_),r="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),o="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),s="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),i=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function a(_,t,e){var r,n;return"m"===e?t?"минута":"минуту":_+" "+(r=+_,n={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[e].split("_"),r%10==1&&r%100!=11?n[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?n[1]:n[2])}var m=function(_,t){return i.test(t)?r[_.month()]:n[_.month()]};m.s=n,m.f=r;var u=function(_,t){return i.test(t)?o[_.month()]:s[_.month()]};u.s=s,u.f=o;var f={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:m,monthsShort:u,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(_){return _},meridiem:function(_){return _<4?"ночи":_<12?"утра":_<17?"дня":"вечера"}};return e.default.locale(f,null,!0),f}(_()));const s=/* @__PURE__ */e({__proto__:null,default:/* @__PURE__ */t(o)},[o]);export{s as r};
@@ -1,7 +1,7 @@
1
1
  import { WmButtonProps } from './types';
2
- declare var __VLS_9: {};
2
+ declare var __VLS_6: {};
3
3
  type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_9) => any;
4
+ default?: (props: typeof __VLS_6) => any;
5
5
  };
6
6
  declare const __VLS_component: import("vue").DefineComponent<WmButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WmButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
7
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -9,7 +9,6 @@ export * from './detail-info';
9
9
  export * from './drawer';
10
10
  export * from './echarts';
11
11
  export * from './form';
12
- export * from './grid-layout';
13
12
  export * from './icon';
14
13
  export * from './infinite-scroll';
15
14
  export * from './layout';
@@ -1 +1 @@
1
- import{r as t,g as e}from"./index-BaC29BWp.mjs";function r(t,e){for(var r=0;r<e.length;r++){const _=e[r];if("string"!=typeof _&&!Array.isArray(_))for(const e in _)if("default"!==e&&!(e in t)){const r=Object.getOwnPropertyDescriptor(_,e);r&&Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>_[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var _,n={exports:{}};var o=_?n.exports:(_=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),_={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return r.default.locale(_,null,!0),_}(t()));const l=/* @__PURE__ */r({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
1
+ import{r as t,g as e}from"./index-BwOFn6BI.mjs";function r(t,e){for(var r=0;r<e.length;r++){const _=e[r];if("string"!=typeof _&&!Array.isArray(_))for(const e in _)if("default"!==e&&!(e in t)){const r=Object.getOwnPropertyDescriptor(_,e);r&&Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>_[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var _,n={exports:{}};var o=_?n.exports:(_=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t),_={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var r=100*t+e;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return r.default.locale(_,null,!0),_}(t()));const l=/* @__PURE__ */r({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
@@ -1 +1 @@
1
- import{r as t,g as e}from"./index-BaC29BWp.mjs";function _(t,e){for(var _=0;_<e.length;_++){const r=e[_];if("string"!=typeof r&&!Array.isArray(r))for(const e in r)if("default"!==e&&!(e in t)){const _=Object.getOwnPropertyDescriptor(r,e);_&&Object.defineProperty(t,e,_.get?_:{enumerable:!0,get:()=>r[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var _=e(t),r={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"週":t+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var _=100*t+e;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return _.default.locale(r,null,!0),r}(t()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
1
+ import{r as t,g as e}from"./index-BwOFn6BI.mjs";function _(t,e){for(var _=0;_<e.length;_++){const r=e[_];if("string"!=typeof r&&!Array.isArray(r))for(const e in r)if("default"!==e&&!(e in t)){const _=Object.getOwnPropertyDescriptor(r,e);_&&Object.defineProperty(t,e,_.get?_:{enumerable:!0,get:()=>r[e]})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var r,n={exports:{}};var o=r?n.exports:(r=1,n.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var _=e(t),r={name:"zh-tw",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,e){return"W"===e?t+"週":t+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"},meridiem:function(t,e){var _=100*t+e;return _<600?"凌晨":_<900?"早上":_<1100?"上午":_<1300?"中午":_<1800?"下午":"晚上"}};return _.default.locale(r,null,!0),r}(t()));const l=/* @__PURE__ */_({__proto__:null,default:/* @__PURE__ */e(o)},[o]);export{l as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wimi/ui",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
4
4
  "description": "A vue library developed with dumi",
5
5
  "scripts": {
6
6
  "build": "vite build && vue-tsc --project ./tsconfig.build.json",
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,4 +0,0 @@
1
- import './src/style.scss';
2
- export { default as WmGridItem } from './src/grid-item.vue';
3
- export { default as WmGridLayout } from './src/index.vue';
4
- export * from './src/helpers/types';
@@ -1,220 +0,0 @@
1
- declare var __VLS_1: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
- isDraggable: {
7
- type: BooleanConstructor;
8
- default: any;
9
- };
10
- isResizable: {
11
- type: BooleanConstructor;
12
- default: any;
13
- };
14
- isBounded: {
15
- type: BooleanConstructor;
16
- default: any;
17
- };
18
- static: {
19
- type: BooleanConstructor;
20
- default: boolean;
21
- };
22
- minH: {
23
- type: NumberConstructor;
24
- default: number;
25
- };
26
- minW: {
27
- type: NumberConstructor;
28
- default: number;
29
- };
30
- maxH: {
31
- type: NumberConstructor;
32
- default: number;
33
- };
34
- maxW: {
35
- type: NumberConstructor;
36
- default: number;
37
- };
38
- x: {
39
- type: NumberConstructor;
40
- required: true;
41
- };
42
- y: {
43
- type: NumberConstructor;
44
- required: true;
45
- };
46
- w: {
47
- type: NumberConstructor;
48
- required: true;
49
- };
50
- h: {
51
- type: NumberConstructor;
52
- required: true;
53
- };
54
- i: {
55
- type: (StringConstructor | NumberConstructor)[];
56
- required: true;
57
- };
58
- dragIgnoreFrom: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- dragAllowFrom: {
63
- type: StringConstructor;
64
- default: any;
65
- };
66
- resizeIgnoreFrom: {
67
- type: StringConstructor;
68
- default: string;
69
- };
70
- preserveAspectRatio: {
71
- type: BooleanConstructor;
72
- default: boolean;
73
- };
74
- dragOption: {
75
- type: ObjectConstructor;
76
- default: () => {};
77
- };
78
- resizeOption: {
79
- type: ObjectConstructor;
80
- default: () => {};
81
- };
82
- }>, {
83
- state: {
84
- cols: number;
85
- containerWidth: number;
86
- rowHeight: number;
87
- margin: number[];
88
- maxRows: number;
89
- draggable: boolean | null;
90
- resizable: boolean | null;
91
- bounded: boolean | null;
92
- transformScale: number;
93
- useCssTransforms: boolean;
94
- useStyleCursor: boolean;
95
- isDragging: boolean;
96
- dragging: {
97
- top: number;
98
- left: number;
99
- };
100
- isResizing: boolean;
101
- resizing: {
102
- width: number;
103
- height: number;
104
- };
105
- style: Record<string, string>;
106
- rtl: boolean;
107
- };
108
- wrapper: import("vue").Ref<HTMLElement, HTMLElement>;
109
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
110
- resize: (...args: any[]) => void;
111
- "container-resized": (...args: any[]) => void;
112
- resized: (...args: any[]) => void;
113
- move: (...args: any[]) => void;
114
- moved: (...args: any[]) => void;
115
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
116
- isDraggable: {
117
- type: BooleanConstructor;
118
- default: any;
119
- };
120
- isResizable: {
121
- type: BooleanConstructor;
122
- default: any;
123
- };
124
- isBounded: {
125
- type: BooleanConstructor;
126
- default: any;
127
- };
128
- static: {
129
- type: BooleanConstructor;
130
- default: boolean;
131
- };
132
- minH: {
133
- type: NumberConstructor;
134
- default: number;
135
- };
136
- minW: {
137
- type: NumberConstructor;
138
- default: number;
139
- };
140
- maxH: {
141
- type: NumberConstructor;
142
- default: number;
143
- };
144
- maxW: {
145
- type: NumberConstructor;
146
- default: number;
147
- };
148
- x: {
149
- type: NumberConstructor;
150
- required: true;
151
- };
152
- y: {
153
- type: NumberConstructor;
154
- required: true;
155
- };
156
- w: {
157
- type: NumberConstructor;
158
- required: true;
159
- };
160
- h: {
161
- type: NumberConstructor;
162
- required: true;
163
- };
164
- i: {
165
- type: (StringConstructor | NumberConstructor)[];
166
- required: true;
167
- };
168
- dragIgnoreFrom: {
169
- type: StringConstructor;
170
- default: string;
171
- };
172
- dragAllowFrom: {
173
- type: StringConstructor;
174
- default: any;
175
- };
176
- resizeIgnoreFrom: {
177
- type: StringConstructor;
178
- default: string;
179
- };
180
- preserveAspectRatio: {
181
- type: BooleanConstructor;
182
- default: boolean;
183
- };
184
- dragOption: {
185
- type: ObjectConstructor;
186
- default: () => {};
187
- };
188
- resizeOption: {
189
- type: ObjectConstructor;
190
- default: () => {};
191
- };
192
- }>> & Readonly<{
193
- onResize?: (...args: any[]) => any;
194
- "onContainer-resized"?: (...args: any[]) => any;
195
- onResized?: (...args: any[]) => any;
196
- onMove?: (...args: any[]) => any;
197
- onMoved?: (...args: any[]) => any;
198
- }>, {
199
- static: boolean;
200
- preserveAspectRatio: boolean;
201
- isDraggable: boolean;
202
- isResizable: boolean;
203
- isBounded: boolean;
204
- minH: number;
205
- minW: number;
206
- maxH: number;
207
- maxW: number;
208
- dragIgnoreFrom: string;
209
- dragAllowFrom: string;
210
- resizeIgnoreFrom: string;
211
- dragOption: Record<string, any>;
212
- resizeOption: Record<string, any>;
213
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
214
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
215
- export default _default;
216
- type __VLS_WithSlots<T, S> = T & {
217
- new (): {
218
- $slots: S;
219
- };
220
- };
@@ -1,43 +0,0 @@
1
- export type EventType = number | string | symbol;
2
- export type EventHandler = (...payload: any[]) => void;
3
- export type EventHandlerSet = Set<EventHandler>;
4
- export type EventHandlerMap = Map<EventType, EventHandlerSet>;
5
- export interface EventEmitter {
6
- /**
7
- * 为指定的事件添加回调方法
8
- *
9
- * @param type 事件类型
10
- * @param handler 回调方法
11
- */
12
- on: (type: EventType, handler: EventHandler) => void;
13
- /**
14
- * 为指定的事件移除回调方法
15
- *
16
- * @param type 事件类型
17
- * @param handler 回调方法
18
- */
19
- off: (type: EventType, handler: EventHandler) => void;
20
- /**
21
- * 为指定的事件清除所有回调方法
22
- *
23
- * @param type 事件类型
24
- */
25
- clear: (type: EventType) => void;
26
- /**
27
- * 清除所有事件的所有回调方法
28
- */
29
- clearAll: () => void;
30
- /**
31
- * 派发特定的事件
32
- *
33
- * @param type 事件类型
34
- * @param payload 传入事件回调方法的参数
35
- */
36
- emit: (type: EventType, ...payload: any[]) => void;
37
- }
38
- /**
39
- * 创建一个自定义的事件发射器
40
- *
41
- * @returns 事件发射器
42
- */
43
- export declare function createEventEmitter(): EventEmitter;
@@ -1,193 +0,0 @@
1
- import type { InjectionKey } from 'vue';
2
- import type { EventEmitter } from './EventEmitter';
3
- import type { Layout, LayoutInstance, LayoutItem } from './types';
4
- export declare const LAYOUT_KEY: InjectionKey<LayoutInstance>;
5
- export declare const EMITTER_KEY: InjectionKey<EventEmitter>;
6
- /**
7
- * Return the bottom coordinate of the layout.
8
- *
9
- * @param layout Layout array.
10
- * @return Bottom coordinate.
11
- */
12
- export declare function bottom(layout: Layout): number;
13
- export declare function cloneLayout(layout: Layout): Layout;
14
- export declare function cloneLayoutItem(layoutItem: LayoutItem): LayoutItem;
15
- /**
16
- * Given two layoutitems, check if they collide.
17
- *
18
- * @return True if colliding.
19
- */
20
- export declare function collides(l1: LayoutItem, l2: LayoutItem): boolean;
21
- /**
22
- * Given a layout, compact it. This involves going down each y coordinate and removing gaps
23
- * between items.
24
- *
25
- * @param layout Layout.
26
- * @param verticalCompact Whether or not to compact the layout vertically.
27
- * @param minPositions
28
- * @return Compacted Layout.
29
- */
30
- export declare function compact(layout: Layout, verticalCompact?: boolean, minPositions?: any): Layout;
31
- /**
32
- * Compact an item in the layout.
33
- */
34
- export declare function compactItem(compareWith: Layout, l: LayoutItem, verticalCompact?: boolean, minPositions?: any): LayoutItem;
35
- /**
36
- * Given a layout, make sure all elements fit within its bounds.
37
- *
38
- * @param layout Layout array.
39
- * @param bounds Number of columns.
40
- */
41
- export declare function correctBounds(layout: Layout, bounds: {
42
- cols: number;
43
- }): Layout;
44
- /**
45
- * Get a layout item by ID. Used so we can override later on if necessary.
46
- *
47
- * @param layout Layout array.
48
- * @param id ID
49
- * @return Item at ID.
50
- */
51
- export declare function getLayoutItem(layout: Layout, id: number | string): LayoutItem | undefined;
52
- /**
53
- * Returns the first item this layout collides with.
54
- * It doesn't appear to matter which order we approach this from, although
55
- * perhaps that is the wrong thing to do.
56
- *
57
- * @param {Object} layoutItem Layout item.
58
- * @return {Object|undefined} A colliding layout item, or undefined.
59
- */
60
- export declare function getFirstCollision(layout: Layout, layoutItem: LayoutItem): LayoutItem | undefined;
61
- export declare function getAllCollisions(layout: Layout, layoutItem: LayoutItem): Array<LayoutItem>;
62
- /**
63
- * Get all static elements.
64
- * @param layout Array of layout objects.
65
- * @return Array of static layout items..
66
- */
67
- export declare function getStatics(layout: Layout): Array<LayoutItem>;
68
- /**
69
- * Move an element. Responsible for doing cascading movements of other elements.
70
- *
71
- * @param layout Full layout to modify.
72
- * @param layoutItem element to move.
73
- * @param x X position in grid units.
74
- * @param y Y position in grid units.
75
- * @param isUserAction If true, designates that the item we're moving is
76
- * being dragged/resized by th euser.
77
- */
78
- export declare function moveElement(layout: Layout, layoutItem: LayoutItem, x?: number, y?: number, isUserAction?: boolean, preventCollision?: boolean): Layout;
79
- /**
80
- * This is where the magic needs to happen - given a collision, move an element away from the collision.
81
- * We attempt to move it up if there's room, otherwise it goes below.
82
- *
83
- * @param layout Full layout to modify.
84
- * @param collidesWith Layout item we're colliding with.
85
- * @param itemToMove Layout item we're moving.
86
- * @param isUserAction If true, designates that the item we're moving is being dragged/resized
87
- * by the user.
88
- */
89
- export declare function moveElementAwayFromCollision(layout: Layout, collidesWith: LayoutItem, itemToMove: LayoutItem, isUserAction?: boolean): Layout;
90
- /**
91
- * Helper to convert a number to a percentage string.
92
- *
93
- * @param num Any number
94
- * @return That number as a percentage.
95
- */
96
- export declare function perc(num: number): string;
97
- export declare function setTransform(top: number, left: number, width: number, height: number): {
98
- transform: string;
99
- WebkitTransform: string;
100
- MozTransform: string;
101
- msTransform: string;
102
- OTransform: string;
103
- width: string;
104
- height: string;
105
- position: string;
106
- };
107
- /**
108
- * Just like the setTransform method, but instead it will return a negative value of right.
109
- *
110
- * @param top
111
- * @param right
112
- * @param width
113
- * @param height
114
- * @returns {{transform: string, WebkitTransform: string, MozTransform: string, msTransform: string, OTransform: string, width: string, height: string, position: string}}
115
- */
116
- export declare function setTransformRtl(top: number, right: number, width: number, height: number): {
117
- transform: string;
118
- WebkitTransform: string;
119
- MozTransform: string;
120
- msTransform: string;
121
- OTransform: string;
122
- width: string;
123
- height: string;
124
- position: string;
125
- };
126
- export declare function setTopLeft(top: number, left: number, width: number, height: number): {
127
- top: string;
128
- left: string;
129
- width: string;
130
- height: string;
131
- position: string;
132
- };
133
- /**
134
- * Just like the setTopLeft method, but instead, it will return a right property instead of left.
135
- *
136
- * @param top
137
- * @param right
138
- * @param width
139
- * @param height
140
- * @returns position style
141
- */
142
- export declare function setTopRight(top: number, right: number, width: number, height: number): {
143
- top: string;
144
- right: string;
145
- width: string;
146
- height: string;
147
- position: string;
148
- };
149
- /**
150
- * Get layout items sorted from top left to right and down.
151
- *
152
- * @return Layout, sorted static items first.
153
- */
154
- export declare function sortLayoutItemsByRowCol(layout: Layout): Layout;
155
- /**
156
- * Validate a layout. Throws errors.
157
- *
158
- * @param layout Array of layout items.
159
- * @param contextName Context name for errors.
160
- * @throw Validation error.
161
- */
162
- export declare function validateLayout(layout: Layout, contextName?: string): void;
163
- export declare function autoBindHandlers(el: Record<string, (...args: any[]) => any>, fns: Array<string>): void;
164
- /**
165
- * Convert a JS object to CSS string. Similar to React's output of CSS.
166
- * @param obj
167
- * @returns
168
- */
169
- export declare function createMarkup(obj: Record<string, any>): string;
170
- export declare const IS_UNITLESS: Record<string, boolean>;
171
- /**
172
- * Will add px to the end of style values which are Numbers.
173
- * @param name
174
- * @param value
175
- * @returns {*}
176
- */
177
- export declare function addPx(name: string, value: number | string): string | number;
178
- export declare const hyphenateRE: RegExp;
179
- /**
180
- * Hyphenate a camelCase string.
181
- *
182
- * @param str
183
- * @return
184
- */
185
- export declare function hyphenate(str: string): string;
186
- export declare function findItemInArray(array: any[], property: string, value: any): boolean;
187
- export declare function findAndRemove(array: any[], property: string, value: any): void;
188
- export declare function useNameHelper(block: string, namespace?: string): {
189
- b: () => string;
190
- be: (element: string) => string;
191
- bm: (modifier: string | number) => string;
192
- bem: (element: string, modifier: string | number) => string;
193
- };
@@ -1,2 +0,0 @@
1
- export declare function getDocumentDir(): string;
2
- export declare function setDocumentDir(dir: 'ltr' | 'rtl' | 'auto'): void;
@@ -1,16 +0,0 @@
1
- export declare function getControlPosition(e: MouseEvent): {
2
- x: number;
3
- y: number;
4
- };
5
- export declare function offsetXYFromParentOf(evt: MouseEvent): {
6
- x: number;
7
- y: number;
8
- };
9
- export declare function createCoreData(lastX: number, lastY: number, x: number, y: number): {
10
- deltaX: number;
11
- deltaY: number;
12
- lastX: number;
13
- lastY: number;
14
- x: number;
15
- y: number;
16
- };
@@ -1,41 +0,0 @@
1
- import type { Breakpoint, Breakpoints, Layout, ResponsiveLayout } from './types';
2
- /**
3
- * Given a width, find the highest breakpoint that matches is valid for it (width > breakpoint).
4
- *
5
- * @param breakpoints Breakpoints object (e.g. {lg: 1200, md: 960, ...})
6
- * @param width Screen width.
7
- * @return Highest breakpoint that is less than width.
8
- */
9
- export declare function getBreakpointFromWidth(breakpoints: Breakpoints, width: number): Breakpoint;
10
- /**
11
- * Given a breakpoint, get the # of cols set for it.
12
- * @param breakpoint Breakpoint name.
13
- * @param cols Map of breakpoints to cols.
14
- * @return Number of cols.
15
- */
16
- export declare function getColsFromBreakpoint(breakpoint: Breakpoint, cols: Breakpoints): number;
17
- /**
18
- * Given existing layouts and a new breakpoint, find or generate a new layout.
19
- *
20
- * This finds the layout above the new one and generates from it, if it exists.
21
- *
22
- * @param orgLayout Original layout.
23
- * @param layouts Existing layouts.
24
- * @param breakpoints All breakpoints.
25
- * @param breakpoint New breakpoint.
26
- * @param breakpoint Last breakpoint (for fallback).
27
- * @param cols Column count at new breakpoint.
28
- * @param verticalCompact Whether or not to compact the layout
29
- * vertically.
30
- * @return New layout.
31
- */
32
- export declare function findOrGenerateResponsiveLayout(orgLayout: Layout, layouts: ResponsiveLayout, breakpoints: Breakpoints, breakpoint: Breakpoint, _lastBreakpoint: Breakpoint, cols: number, verticalCompact: boolean): Layout;
33
- export declare function generateResponsiveLayout(layout: Layout, _breakpoints: Breakpoints, _breakpoint: Breakpoint, _lastBreakpoint: Breakpoint, cols: number, verticalCompact: boolean): Layout;
34
- /**
35
- * Given breakpoints, return an array of breakpoints sorted by width. This is usually
36
- * e.g. ['xxs', 'xs', 'sm', ...]
37
- *
38
- * @param breakpoints Key/value pair of breakpoint names to widths.
39
- * @return Sorted breakpoints.
40
- */
41
- export declare function sortBreakpoints(breakpoints: Breakpoints): Array<Breakpoint>;
@@ -1,41 +0,0 @@
1
- export interface LayoutItemRequired {
2
- w: number;
3
- h: number;
4
- x: number;
5
- y: number;
6
- i: number | string;
7
- }
8
- export interface LayoutItem extends LayoutItemRequired {
9
- minW?: number;
10
- minH?: number;
11
- maxW?: number;
12
- maxH?: number;
13
- moved?: boolean;
14
- static?: boolean;
15
- isDraggable?: boolean;
16
- isResizable?: boolean;
17
- }
18
- export type Layout = Array<LayoutItem>;
19
- export type Breakpoint = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
20
- export type Breakpoints = Record<Breakpoint, number>;
21
- export type ResponsiveLayout = Record<Breakpoint, Layout>;
22
- /** @internal */
23
- export interface LayoutInstance {
24
- responsive: boolean;
25
- lastBreakpoint: Breakpoint;
26
- cols: Breakpoints;
27
- colNum: number;
28
- rowHeight: number;
29
- width: number;
30
- margin: number[];
31
- isDraggable: boolean;
32
- isResizable: boolean;
33
- isBounded: boolean;
34
- transformScale: number;
35
- useCssTransforms: boolean;
36
- useStyleCursor: boolean;
37
- maxRows: number;
38
- isMirrored: boolean;
39
- increaseItem: (item: any) => void;
40
- decreaseItem: (item: any) => void;
41
- }