st-comp 0.0.279 → 0.0.281

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 (229) hide show
  1. package/es/ChartLayout.cjs +1 -1
  2. package/es/ChartLayout.js +13 -14
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +377 -376
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +294 -294
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +19 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +260 -260
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +579 -553
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +17 -17
  15. package/es/KlinePlus.cjs +2 -2
  16. package/es/KlinePlus.js +23 -24
  17. package/es/MonacoEditor.cjs +1 -1
  18. package/es/MonacoEditor.js +30 -29
  19. package/es/Pagination.cjs +1 -1
  20. package/es/Pagination.js +517 -425
  21. package/es/PasswordPrompt.cjs +1 -1
  22. package/es/PasswordPrompt.js +3 -3
  23. package/es/Table.cjs +1 -1
  24. package/es/Table.js +43 -43
  25. package/es/User.cjs +1 -1
  26. package/es/User.js +898 -866
  27. package/es/VarSelectDialog.cjs +3 -3
  28. package/es/VarSelectDialog.js +110 -109
  29. package/es/VarietyAiHelper.cjs +7 -7
  30. package/es/VarietyAiHelper.js +615 -464
  31. package/es/VarietyAutoComplete.cjs +1 -1
  32. package/es/VarietyAutoComplete.js +11 -11
  33. package/es/VarietySearch.cjs +18 -18
  34. package/es/VarietySearch.js +3079 -2913
  35. package/es/{VarietySelect-41daac7b.js → VarietySelect-3fc0f0ce.js} +5 -5
  36. package/es/{VarietySelect-d58eee29.cjs → VarietySelect-d2d25a3d.cjs} +1 -1
  37. package/es/VarietyTextCopy.cjs +3 -3
  38. package/es/VarietyTextCopy.js +51 -51
  39. package/es/VirtualTable.cjs +13 -1
  40. package/es/VirtualTable.js +1927 -2259
  41. package/es/_baseClone-f8e5d3ba.cjs +1 -0
  42. package/es/_baseClone-fb6a3947.js +210 -0
  43. package/es/base-d987e5c9.cjs +5 -0
  44. package/es/base-dd156b8e.js +790 -0
  45. package/es/{castArray-7741a212.js → castArray-18eb6a41.js} +1 -1
  46. package/es/{castArray-35947698.cjs → castArray-d9ffe84a.cjs} +1 -1
  47. package/es/clamp-17c4d8aa.cjs +1 -0
  48. package/es/clamp-c7512966.js +10 -0
  49. package/es/config-provider-06d8207f.js +86 -0
  50. package/es/config-provider-bb61bd3e.cjs +1 -0
  51. package/es/debounce-0a98a9c6.js +57 -0
  52. package/es/debounce-37b17615.cjs +1 -0
  53. package/es/dropdown-8fa21bfd.cjs +1 -0
  54. package/es/dropdown-bcf8d198.js +178 -0
  55. package/es/el-autocomplete-13b9e372.cjs +1 -0
  56. package/es/el-autocomplete-419bfbcf.js +434 -0
  57. package/es/el-button-ee9fe159.js +343 -0
  58. package/es/el-button-fac5e058.cjs +1 -0
  59. package/es/el-checkbox-6cf1a71c.cjs +1 -0
  60. package/es/el-checkbox-b5ac7f04.js +566 -0
  61. package/es/el-dialog-060b3735.js +252 -0
  62. package/es/el-dialog-54aebacd.cjs +1 -0
  63. package/es/el-divider-3f0320be.cjs +1 -0
  64. package/es/el-divider-c5d72961.js +51 -0
  65. package/es/el-empty-552baf04.js +159 -0
  66. package/es/el-empty-58bc2a10.cjs +1 -0
  67. package/es/el-form-item-2be6b683.js +1265 -0
  68. package/es/el-form-item-758dfefa.cjs +12 -0
  69. package/es/el-input-7fe53030.cjs +1 -0
  70. package/es/el-input-d23f5442.js +761 -0
  71. package/es/el-input-number-484fb184.js +390 -0
  72. package/es/el-input-number-f0f4eedb.cjs +1 -0
  73. package/es/el-loading-9d3e405c.js +190 -0
  74. package/es/el-loading-fafaaa7b.cjs +1 -0
  75. package/es/el-menu-item-0ac22681.js +824 -0
  76. package/es/el-menu-item-c91ae430.cjs +1 -0
  77. package/es/el-message-box-568a0aa6.js +481 -0
  78. package/es/el-message-box-ceacb54e.cjs +1 -0
  79. package/es/el-overlay-9f36e73c.cjs +1 -0
  80. package/es/el-overlay-cb5c85aa.js +444 -0
  81. package/es/el-popconfirm-4a8cd35c.cjs +1 -0
  82. package/es/el-popconfirm-6f8e65c8.js +190 -0
  83. package/es/el-popper-0454c8e8.js +2235 -0
  84. package/es/el-popper-acd0ff35.cjs +1 -0
  85. package/es/{el-scrollbar-323542e7.js → el-scrollbar-0a42c1d0.js} +4 -9
  86. package/es/{el-scrollbar-bc3f790d.cjs → el-scrollbar-225c6c9e.cjs} +1 -1
  87. package/es/el-segmented-64dc7258.js +168 -0
  88. package/es/el-segmented-eb3c8e65.cjs +1 -0
  89. package/es/el-select-a573c78b.js +1535 -0
  90. package/es/el-select-c317294a.cjs +1 -0
  91. package/es/el-table-column-1c443963.js +3651 -0
  92. package/es/el-table-column-f555115d.cjs +14 -0
  93. package/es/el-tag-2d8a3fe7.js +77 -0
  94. package/es/el-tag-dca1292c.cjs +1 -0
  95. package/es/el-text-649c986a.cjs +1 -0
  96. package/es/el-text-761e6717.js +84 -0
  97. package/es/index-11181b5f.cjs +1 -0
  98. package/es/index-21a3dc89.cjs +1 -0
  99. package/es/index-33e039e3.cjs +1 -0
  100. package/es/index-3806160e.js +710 -0
  101. package/es/{index-a9246d17.cjs → index-4614e8e9.cjs} +109 -109
  102. package/es/{index-44a382a5.js → index-53beef02.js} +12 -12
  103. package/es/index-5cada1ed.cjs +1 -0
  104. package/es/index-6a36e1fc.cjs +1 -0
  105. package/es/{index-eb96e074.js → index-6a52dc7c.js} +235 -236
  106. package/es/index-71ba4c28.cjs +1 -0
  107. package/es/index-78dab605.js +141 -0
  108. package/es/index-798fec2d.cjs +1 -0
  109. package/es/index-9573f74b.js +372 -0
  110. package/es/index-a181f161.js +429 -0
  111. package/es/{index-a33b2fb8.js → index-ab0ad219.js} +5090 -5090
  112. package/es/index-beb5cb7d.cjs +1 -0
  113. package/es/index-c09fc6f5.js +131 -0
  114. package/es/index-ceae4c47.cjs +1 -0
  115. package/es/index-d372e68f.cjs +5 -0
  116. package/es/index-d9379af4.js +413 -0
  117. package/es/index-dddacf80.js +47 -0
  118. package/es/index-de9ad85c.js +12 -0
  119. package/es/index-e2e58ea9.js +468 -0
  120. package/es/index-f5474dcc.cjs +3 -0
  121. package/es/{python-a3db9620.cjs → python-60e79979.cjs} +1 -1
  122. package/es/{python-8a1664e6.js → python-673bf8b8.js} +32 -31
  123. package/es/{raf-8249652f.cjs → raf-735cc598.cjs} +1 -1
  124. package/es/{raf-80ef0c0a.js → raf-b4fd1e12.js} +1 -1
  125. package/es/scroll-07bade1e.cjs +1 -0
  126. package/es/scroll-70271cb1.js +35 -0
  127. package/es/style.css +1 -1
  128. package/es/toNumber-b47ceb68.cjs +1 -0
  129. package/es/toNumber-f077c66a.js +31 -0
  130. package/es/use-form-item-76516e50.cjs +2 -0
  131. package/es/use-form-item-784142b4.js +422 -0
  132. package/es/use-global-config-7ff9a1c2.cjs +1 -0
  133. package/es/use-global-config-9a4ccf33.js +71 -0
  134. package/es/validator-1926345b.cjs +1 -0
  135. package/es/{validator-c60a8956.js → validator-a66ec4f8.js} +1 -1
  136. package/es/vnode-6f7b84f0.cjs +1 -0
  137. package/es/vnode-8ee9bf4e.js +12 -0
  138. package/es/{zh-cn-b59a0910.js → zh-cn-51c2e528.js} +36 -33
  139. package/es/zh-cn-ad12d9f5.cjs +1 -0
  140. package/lib/bundle.js +1 -1
  141. package/lib/bundle.umd.cjs +265 -246
  142. package/lib/{index-62fa175a.js → index-7282d3be.js} +52335 -50156
  143. package/lib/{python-4a48fa39.js → python-418be57d.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/package.json +1 -1
  146. package/es/_initCloneObject-5e73c9c8.js +0 -81
  147. package/es/_initCloneObject-a5832933.cjs +0 -1
  148. package/es/base-a5af3db3.js +0 -288
  149. package/es/base-ef747d02.cjs +0 -5
  150. package/es/config-provider-06ea6b42.cjs +0 -1
  151. package/es/config-provider-88b637a8.js +0 -59
  152. package/es/dayjs.min-2c20abe6.cjs +0 -1
  153. package/es/dayjs.min-8313b006.js +0 -299
  154. package/es/debounce-62f5b6e8.cjs +0 -1
  155. package/es/debounce-8d53f4dd.js +0 -83
  156. package/es/dropdown-4ce4c3e2.cjs +0 -1
  157. package/es/dropdown-72fbc15d.js +0 -178
  158. package/es/el-autocomplete-6cafcdf1.js +0 -329
  159. package/es/el-autocomplete-e0857c5b.cjs +0 -1
  160. package/es/el-button-613e0bb2.cjs +0 -1
  161. package/es/el-button-94d3de38.js +0 -272
  162. package/es/el-checkbox-6d4cb393.js +0 -459
  163. package/es/el-checkbox-e90762df.cjs +0 -1
  164. package/es/el-dialog-02942e22.cjs +0 -1
  165. package/es/el-dialog-5e30161f.js +0 -276
  166. package/es/el-divider-4713d74c.cjs +0 -1
  167. package/es/el-divider-4e059794.js +0 -45
  168. package/es/el-empty-1697ded8.cjs +0 -1
  169. package/es/el-empty-33cb66f1.js +0 -183
  170. package/es/el-form-item-44f060d8.cjs +0 -12
  171. package/es/el-form-item-9e8969ea.js +0 -1269
  172. package/es/el-input-342b2def.js +0 -531
  173. package/es/el-input-9a9a7f7f.cjs +0 -1
  174. package/es/el-input-number-65c847d6.cjs +0 -1
  175. package/es/el-input-number-c22b803a.js +0 -311
  176. package/es/el-loading-8179b497.cjs +0 -1
  177. package/es/el-loading-bcc51e3d.js +0 -203
  178. package/es/el-menu-item-339baf6d.js +0 -768
  179. package/es/el-menu-item-83186444.cjs +0 -1
  180. package/es/el-message-box-035b699c.js +0 -489
  181. package/es/el-message-box-c62d3217.cjs +0 -1
  182. package/es/el-overlay-3e17604b.js +0 -324
  183. package/es/el-overlay-8f1da9e8.cjs +0 -1
  184. package/es/el-popconfirm-4e32ec1b.cjs +0 -1
  185. package/es/el-popconfirm-f8a86e2c.js +0 -162
  186. package/es/el-popper-a4f3ae4d.cjs +0 -1
  187. package/es/el-popper-fbd0dcea.js +0 -2094
  188. package/es/el-segmented-56bd58a8.js +0 -142
  189. package/es/el-segmented-833ac177.cjs +0 -1
  190. package/es/el-select-44fa547d.js +0 -1256
  191. package/es/el-select-70806166.cjs +0 -1
  192. package/es/el-table-column-3e2cdfca.cjs +0 -14
  193. package/es/el-table-column-b74a857d.js +0 -3432
  194. package/es/el-tag-66c83156.js +0 -117
  195. package/es/el-tag-9c2f329f.cjs +0 -1
  196. package/es/el-text-034bd3f4.js +0 -67
  197. package/es/el-text-6b2374bb.cjs +0 -1
  198. package/es/index-00f6ca75.cjs +0 -1
  199. package/es/index-185792a7.cjs +0 -1
  200. package/es/index-1e2a38ab.js +0 -113
  201. package/es/index-2e331d74.js +0 -10
  202. package/es/index-3153c1db.cjs +0 -1
  203. package/es/index-5216d5f5.js +0 -406
  204. package/es/index-5c0dd943.cjs +0 -1
  205. package/es/index-657047bb.js +0 -513
  206. package/es/index-870b6c9d.cjs +0 -1
  207. package/es/index-8c2d7e05.js +0 -368
  208. package/es/index-960806da.js +0 -314
  209. package/es/index-9780a537.cjs +0 -1
  210. package/es/index-9d16cea8.cjs +0 -1
  211. package/es/index-ac8dc53d.cjs +0 -1
  212. package/es/index-bb833443.cjs +0 -1
  213. package/es/index-c5f2d372.js +0 -326
  214. package/es/index-c6584658.js +0 -163
  215. package/es/index-d77a7336.js +0 -204
  216. package/es/index-eea0bcb3.cjs +0 -1
  217. package/es/index-f034b910.js +0 -60
  218. package/es/index-f1c702f6.cjs +0 -1
  219. package/es/index-f58b2920.cjs +0 -1
  220. package/es/scroll-679bd6bf.js +0 -35
  221. package/es/scroll-b108dabd.cjs +0 -1
  222. package/es/use-form-common-props-ac666630.cjs +0 -1
  223. package/es/use-form-common-props-ed72e914.js +0 -364
  224. package/es/use-global-config-23472471.cjs +0 -1
  225. package/es/use-global-config-ee406d58.js +0 -72
  226. package/es/validator-366dbf39.cjs +0 -1
  227. package/es/vnode-5ddb7ed1.js +0 -14
  228. package/es/vnode-b906ae6d.cjs +0 -1
  229. package/es/zh-cn-c21d12d8.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const e=require("vue"),r=require("./index-00f6ca75.cjs"),c=require("./base-ef747d02.cjs"),p=require("./use-form-common-props-ac666630.cjs"),f=c.buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:p.componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),y={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},h=e.defineComponent({name:"ElTag"}),v=e.defineComponent({...h,props:f,emits:y,setup(l,{emit:i}){const k=l,C=p.useFormSize(),n=c.useNamespace("tag"),u=e.computed(()=>{const{type:o,hit:s,effect:t,closable:a,round:b}=k;return[n.b(),n.is("closable",a),n.m(o||"primary"),n.m(C.value),n.m(t),n.is("hit",s),n.is("round",b)]}),d=o=>{i("close",o)},m=o=>{i("click",o)},g=o=>{var s,t,a;(a=(t=(s=o==null?void 0:o.component)==null?void 0:s.subTree)==null?void 0:t.component)!=null&&a.bum&&(o.component.subTree.component.bum=null)};return(o,s)=>o.disableTransitions?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(e.Transition,{key:1,name:`${e.unref(n).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:g},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:m},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(d,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var z=c._export_sfc(v,[["__file","tag.vue"]]);const _=c.withInstall(z);exports.ElTag=_;exports.tagProps=f;
@@ -1 +0,0 @@
1
- "use strict";const a=require("vue"),c=require("./index-9780a537.cjs");function s(e,t,o){var r=e==null?void 0:c.baseGet(e,t);return r===void 0?o:r}var d={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const u=e=>(t,o)=>m(t,o,a.unref(e)),m=(e,t,o)=>s(o,e,e).replace(/\{(\w+)\}/g,(r,n)=>{var l;return`${(l=t==null?void 0:t[n])!=null?l:`{${n}}`}`}),p=e=>{const t=a.computed(()=>a.unref(e).name),o=a.isRef(e)?e:a.ref(e);return{lang:t,locale:o,t:u(e)}},i=Symbol("localeContextKey"),h=e=>{const t=e||a.inject(i,a.ref());return p(a.computed(()=>t.value||d))};exports.get=s;exports.localeContextKey=i;exports.useLocale=h;
@@ -1,326 +0,0 @@
1
- import { defineComponent as x, inject as Z, ref as f, computed as R, onBeforeUnmount as oe, toRef as q, openBlock as k, createBlock as D, Transition as ae, unref as w, withCtx as ee, withDirectives as re, createElementVNode as $, normalizeClass as P, withModifiers as se, normalizeStyle as j, vShow as ne, createElementBlock as te, Fragment as ie, createVNode as G, watch as X, nextTick as Y, provide as ce, reactive as ue, onActivated as ve, onMounted as fe, onUpdated as me, resolveDynamicComponent as de, renderSlot as pe, createCommentVNode as he } from "vue";
2
- import { c as I, u as F } from "./use-form-common-props-ed72e914.js";
3
- import { B as be, r as ge, G as C } from "./el-scrollbar-323542e7.js";
4
- import { b as K, _ as U, u as le, s as ye, e as Se, p as N, n as J, f as we, w as ze } from "./base-a5af3db3.js";
5
- import { b as _e, u as Ee } from "./el-popper-fbd0dcea.js";
6
- const V = Symbol("scrollbarContextKey"), Te = K({
7
- vertical: Boolean,
8
- size: String,
9
- move: Number,
10
- ratio: {
11
- type: Number,
12
- required: !0
13
- },
14
- always: Boolean
15
- }), He = "Thumb", Ce = /* @__PURE__ */ x({
16
- __name: "thumb",
17
- props: Te,
18
- setup(z) {
19
- const d = z, r = Z(V), l = le("scrollbar");
20
- r || _e(He, "can not inject scrollbar context");
21
- const c = f(), m = f(), g = f({}), p = f(!1);
22
- let s = !1, n = !1, v = 0, y = 0, o = ye ? document.onselectstart : null;
23
- const e = R(() => be[d.vertical ? "vertical" : "horizontal"]), h = R(() => ge({
24
- size: d.size,
25
- move: d.move,
26
- bar: e.value
27
- })), b = R(() => c.value[e.value.offset] ** 2 / r.wrapElement[e.value.scrollSize] / d.ratio / m.value[e.value.offset]), T = (i) => {
28
- var S;
29
- if (i.stopPropagation(), i.ctrlKey || [1, 2].includes(i.button))
30
- return;
31
- (S = window.getSelection()) == null || S.removeAllRanges(), E(i);
32
- const u = i.currentTarget;
33
- u && (g.value[e.value.axis] = u[e.value.offset] - (i[e.value.client] - u.getBoundingClientRect()[e.value.direction]));
34
- }, _ = (i) => {
35
- if (!m.value || !c.value || !r.wrapElement)
36
- return;
37
- const S = Math.abs(i.target.getBoundingClientRect()[e.value.direction] - i[e.value.client]), u = m.value[e.value.offset] / 2, t = (S - u) * 100 * b.value / c.value[e.value.offset];
38
- r.wrapElement[e.value.scroll] = t * r.wrapElement[e.value.scrollSize] / 100;
39
- }, E = (i) => {
40
- i.stopImmediatePropagation(), s = !0, v = r.wrapElement.scrollHeight, y = r.wrapElement.scrollWidth, document.addEventListener("mousemove", B), document.addEventListener("mouseup", L), o = document.onselectstart, document.onselectstart = () => !1;
41
- }, B = (i) => {
42
- if (!c.value || !m.value || s === !1)
43
- return;
44
- const S = g.value[e.value.axis];
45
- if (!S)
46
- return;
47
- const u = (c.value.getBoundingClientRect()[e.value.direction] - i[e.value.client]) * -1, t = m.value[e.value.offset] - S, a = (u - t) * 100 * b.value / c.value[e.value.offset];
48
- e.value.scroll === "scrollLeft" ? r.wrapElement[e.value.scroll] = a * y / 100 : r.wrapElement[e.value.scroll] = a * v / 100;
49
- }, L = () => {
50
- s = !1, g.value[e.value.axis] = 0, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L), A(), n && (p.value = !1);
51
- }, W = () => {
52
- n = !1, p.value = !!d.size;
53
- }, O = () => {
54
- n = !0, p.value = s;
55
- };
56
- oe(() => {
57
- A(), document.removeEventListener("mouseup", L);
58
- });
59
- const A = () => {
60
- document.onselectstart !== o && (document.onselectstart = o);
61
- };
62
- return I(q(r, "scrollbarElement"), "mousemove", W), I(q(r, "scrollbarElement"), "mouseleave", O), (i, S) => (k(), D(ae, {
63
- name: w(l).b("fade"),
64
- persisted: ""
65
- }, {
66
- default: ee(() => [
67
- re($("div", {
68
- ref_key: "instance",
69
- ref: c,
70
- class: P([w(l).e("bar"), w(l).is(w(e).key)]),
71
- onMousedown: _,
72
- onClick: se(() => {
73
- }, ["stop"])
74
- }, [
75
- $("div", {
76
- ref_key: "thumb",
77
- ref: m,
78
- class: P(w(l).e("thumb")),
79
- style: j(w(h)),
80
- onMousedown: T
81
- }, null, 38)
82
- ], 42, ["onClick"]), [
83
- [ne, i.always || p.value]
84
- ])
85
- ]),
86
- _: 1
87
- }, 8, ["name"]));
88
- }
89
- });
90
- var Q = /* @__PURE__ */ U(Ce, [["__file", "thumb.vue"]]);
91
- const Re = K({
92
- always: {
93
- type: Boolean,
94
- default: !0
95
- },
96
- minSize: {
97
- type: Number,
98
- required: !0
99
- }
100
- }), Le = /* @__PURE__ */ x({
101
- __name: "bar",
102
- props: Re,
103
- setup(z, { expose: d }) {
104
- const r = z, l = Z(V), c = f(0), m = f(0), g = f(""), p = f(""), s = f(1), n = f(1);
105
- return d({
106
- handleScroll: (o) => {
107
- if (o) {
108
- const e = o.offsetHeight - C, h = o.offsetWidth - C;
109
- m.value = o.scrollTop * 100 / e * s.value, c.value = o.scrollLeft * 100 / h * n.value;
110
- }
111
- },
112
- update: () => {
113
- const o = l == null ? void 0 : l.wrapElement;
114
- if (!o)
115
- return;
116
- const e = o.offsetHeight - C, h = o.offsetWidth - C, b = e ** 2 / o.scrollHeight, T = h ** 2 / o.scrollWidth, _ = Math.max(b, r.minSize), E = Math.max(T, r.minSize);
117
- s.value = b / (e - b) / (_ / (e - _)), n.value = T / (h - T) / (E / (h - E)), p.value = _ + C < e ? `${_}px` : "", g.value = E + C < h ? `${E}px` : "";
118
- }
119
- }), (o, e) => (k(), te(ie, null, [
120
- G(Q, {
121
- move: c.value,
122
- ratio: n.value,
123
- size: g.value,
124
- always: o.always
125
- }, null, 8, ["move", "ratio", "size", "always"]),
126
- G(Q, {
127
- move: m.value,
128
- ratio: s.value,
129
- size: p.value,
130
- vertical: "",
131
- always: o.always
132
- }, null, 8, ["move", "ratio", "size", "always"])
133
- ], 64));
134
- }
135
- });
136
- var Ne = /* @__PURE__ */ U(Le, [["__file", "bar.vue"]]);
137
- const ke = K({
138
- distance: {
139
- type: Number,
140
- default: 0
141
- },
142
- height: {
143
- type: [String, Number],
144
- default: ""
145
- },
146
- maxHeight: {
147
- type: [String, Number],
148
- default: ""
149
- },
150
- native: Boolean,
151
- wrapStyle: {
152
- type: Se([String, Object, Array]),
153
- default: ""
154
- },
155
- wrapClass: {
156
- type: [String, Array],
157
- default: ""
158
- },
159
- viewClass: {
160
- type: [String, Array],
161
- default: ""
162
- },
163
- viewStyle: {
164
- type: [String, Array, Object],
165
- default: ""
166
- },
167
- noresize: Boolean,
168
- tag: {
169
- type: String,
170
- default: "div"
171
- },
172
- always: Boolean,
173
- minSize: {
174
- type: Number,
175
- default: 20
176
- },
177
- tabindex: {
178
- type: [String, Number],
179
- default: void 0
180
- },
181
- id: String,
182
- role: String,
183
- ...Ee(["ariaLabel", "ariaOrientation"])
184
- }), Pe = {
185
- "end-reached": (z) => ["left", "right", "top", "bottom"].includes(z),
186
- scroll: ({
187
- scrollTop: z,
188
- scrollLeft: d
189
- }) => [z, d].every(N)
190
- }, Be = "ElScrollbar", Oe = x({
191
- name: Be
192
- }), Ae = /* @__PURE__ */ x({
193
- ...Oe,
194
- props: ke,
195
- emits: Pe,
196
- setup(z, { expose: d, emit: r }) {
197
- const l = z, c = le("scrollbar");
198
- let m, g, p, s = 0, n = 0, v = "";
199
- const y = {
200
- bottom: !1,
201
- top: !1,
202
- right: !1,
203
- left: !1
204
- }, o = f(), e = f(), h = f(), b = f(), T = R(() => {
205
- const t = {};
206
- return l.height && (t.height = J(l.height)), l.maxHeight && (t.maxHeight = J(l.maxHeight)), [l.wrapStyle, t];
207
- }), _ = R(() => [
208
- l.wrapClass,
209
- c.e("wrap"),
210
- { [c.em("wrap", "hidden-default")]: !l.native }
211
- ]), E = R(() => [c.e("view"), l.viewClass]), B = (t) => {
212
- var a;
213
- return (a = y[t]) != null ? a : !1;
214
- }, L = {
215
- top: "bottom",
216
- bottom: "top",
217
- left: "right",
218
- right: "left"
219
- }, W = (t) => {
220
- const a = L[v];
221
- if (!a)
222
- return;
223
- const H = t[v], M = t[a];
224
- H && !y[v] && (y[v] = !0), !M && y[a] && (y[a] = !1);
225
- }, O = () => {
226
- var t;
227
- if (e.value) {
228
- (t = b.value) == null || t.handleScroll(e.value);
229
- const a = s, H = n;
230
- s = e.value.scrollTop, n = e.value.scrollLeft;
231
- const M = {
232
- bottom: s + e.value.clientHeight >= e.value.scrollHeight - l.distance,
233
- top: s <= l.distance && a !== 0,
234
- right: n + e.value.clientWidth >= e.value.scrollWidth - l.distance && H !== n,
235
- left: n <= l.distance && H !== 0
236
- };
237
- if (r("scroll", {
238
- scrollTop: s,
239
- scrollLeft: n
240
- }), a !== s && (v = s > a ? "bottom" : "top"), H !== n && (v = n > H ? "right" : "left"), l.distance > 0) {
241
- if (B(v))
242
- return;
243
- W(M);
244
- }
245
- M[v] && r("end-reached", v);
246
- }
247
- };
248
- function A(t, a) {
249
- we(t) ? e.value.scrollTo(t) : N(t) && N(a) && e.value.scrollTo(t, a);
250
- }
251
- const i = (t) => {
252
- N(t) && (e.value.scrollTop = t);
253
- }, S = (t) => {
254
- N(t) && (e.value.scrollLeft = t);
255
- }, u = () => {
256
- var t;
257
- (t = b.value) == null || t.update(), y[v] = !1;
258
- };
259
- return X(() => l.noresize, (t) => {
260
- t ? (m == null || m(), g == null || g(), p == null || p()) : ({ stop: m } = F(h, u), { stop: g } = F(e, u), p = I("resize", u));
261
- }, { immediate: !0 }), X(() => [l.maxHeight, l.height], () => {
262
- l.native || Y(() => {
263
- var t;
264
- u(), e.value && ((t = b.value) == null || t.handleScroll(e.value));
265
- });
266
- }), ce(V, ue({
267
- scrollbarElement: o,
268
- wrapElement: e
269
- })), ve(() => {
270
- e.value && (e.value.scrollTop = s, e.value.scrollLeft = n);
271
- }), fe(() => {
272
- l.native || Y(() => {
273
- u();
274
- });
275
- }), me(() => u()), d({
276
- wrapRef: e,
277
- update: u,
278
- scrollTo: A,
279
- setScrollTop: i,
280
- setScrollLeft: S,
281
- handleScroll: O
282
- }), (t, a) => (k(), te("div", {
283
- ref_key: "scrollbarRef",
284
- ref: o,
285
- class: P(w(c).b())
286
- }, [
287
- $("div", {
288
- ref_key: "wrapRef",
289
- ref: e,
290
- class: P(w(_)),
291
- style: j(w(T)),
292
- tabindex: t.tabindex,
293
- onScroll: O
294
- }, [
295
- (k(), D(de(t.tag), {
296
- id: t.id,
297
- ref_key: "resizeRef",
298
- ref: h,
299
- class: P(w(E)),
300
- style: j(t.viewStyle),
301
- role: t.role,
302
- "aria-label": t.ariaLabel,
303
- "aria-orientation": t.ariaOrientation
304
- }, {
305
- default: ee(() => [
306
- pe(t.$slots, "default")
307
- ]),
308
- _: 3
309
- }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
310
- ], 46, ["tabindex"]),
311
- t.native ? he("v-if", !0) : (k(), D(Ne, {
312
- key: 0,
313
- ref_key: "barRef",
314
- ref: b,
315
- always: t.always,
316
- "min-size": t.minSize
317
- }, null, 8, ["always", "min-size"]))
318
- ], 2));
319
- }
320
- });
321
- var Me = /* @__PURE__ */ U(Ae, [["__file", "scrollbar.vue"]]);
322
- const Ie = ze(Me);
323
- export {
324
- Ie as E,
325
- Pe as s
326
- };
@@ -1,163 +0,0 @@
1
- import { defineComponent as h, computed as a, ref as T, unref as s, openBlock as u, createBlock as R, mergeProps as U, withCtx as v, createElementBlock as $, normalizeClass as D, toDisplayString as c, createCommentVNode as b, renderSlot as g, createTextVNode as K } from "vue";
2
- import { i as f, g as r, E as V } from "./el-popper-fbd0dcea.js";
3
- import { d } from "./dropdown-72fbc15d.js";
4
- import { b as O, o as H, u as I, n as L, _ as z, A as F, w as j } from "./base-a5af3db3.js";
5
- const q = O({
6
- trigger: f.trigger,
7
- triggerKeys: f.triggerKeys,
8
- placement: d.placement,
9
- disabled: f.disabled,
10
- visible: r.visible,
11
- transition: r.transition,
12
- popperOptions: d.popperOptions,
13
- tabindex: d.tabindex,
14
- content: r.content,
15
- popperStyle: r.popperStyle,
16
- popperClass: r.popperClass,
17
- enterable: {
18
- ...r.enterable,
19
- default: !0
20
- },
21
- effect: {
22
- ...r.effect,
23
- default: "light"
24
- },
25
- teleported: r.teleported,
26
- appendTo: r.appendTo,
27
- title: String,
28
- width: {
29
- type: [String, Number],
30
- default: 150
31
- },
32
- offset: {
33
- type: Number,
34
- default: void 0
35
- },
36
- showAfter: {
37
- type: Number,
38
- default: 0
39
- },
40
- hideAfter: {
41
- type: Number,
42
- default: 200
43
- },
44
- autoClose: {
45
- type: Number,
46
- default: 0
47
- },
48
- showArrow: {
49
- type: Boolean,
50
- default: !0
51
- },
52
- persistent: {
53
- type: Boolean,
54
- default: !0
55
- },
56
- "onUpdate:visible": {
57
- type: Function
58
- }
59
- }), G = {
60
- "update:visible": (t) => H(t),
61
- "before-enter": () => !0,
62
- "before-leave": () => !0,
63
- "after-enter": () => !0,
64
- "after-leave": () => !0
65
- }, J = "onUpdate:visible", M = h({
66
- name: "ElPopover"
67
- }), Q = /* @__PURE__ */ h({
68
- ...M,
69
- props: q,
70
- emits: G,
71
- setup(t, { expose: p, emit: n }) {
72
- const o = t, y = a(() => o[J]), i = I("popover"), l = T(), w = a(() => {
73
- var e;
74
- return (e = s(l)) == null ? void 0 : e.popperRef;
75
- }), E = a(() => [
76
- {
77
- width: L(o.width)
78
- },
79
- o.popperStyle
80
- ]), P = a(() => [i.b(), o.popperClass, { [i.m("plain")]: !!o.content }]), C = a(() => o.transition === `${i.namespace.value}-fade-in-linear`), k = () => {
81
- var e;
82
- (e = l.value) == null || e.hide();
83
- }, S = () => {
84
- n("before-enter");
85
- }, A = () => {
86
- n("before-leave");
87
- }, B = () => {
88
- n("after-enter");
89
- }, N = () => {
90
- n("update:visible", !1), n("after-leave");
91
- };
92
- return p({
93
- popperRef: w,
94
- hide: k
95
- }), (e, _) => (u(), R(s(V), U({
96
- ref_key: "tooltipRef",
97
- ref: l
98
- }, e.$attrs, {
99
- trigger: e.trigger,
100
- "trigger-keys": e.triggerKeys,
101
- placement: e.placement,
102
- disabled: e.disabled,
103
- visible: e.visible,
104
- transition: e.transition,
105
- "popper-options": e.popperOptions,
106
- tabindex: e.tabindex,
107
- content: e.content,
108
- offset: e.offset,
109
- "show-after": e.showAfter,
110
- "hide-after": e.hideAfter,
111
- "auto-close": e.autoClose,
112
- "show-arrow": e.showArrow,
113
- "aria-label": e.title,
114
- effect: e.effect,
115
- enterable: e.enterable,
116
- "popper-class": s(P),
117
- "popper-style": s(E),
118
- teleported: e.teleported,
119
- "append-to": e.appendTo,
120
- persistent: e.persistent,
121
- "gpu-acceleration": s(C),
122
- "onUpdate:visible": s(y),
123
- onBeforeShow: S,
124
- onBeforeHide: A,
125
- onShow: B,
126
- onHide: N
127
- }), {
128
- content: v(() => [
129
- e.title ? (u(), $("div", {
130
- key: 0,
131
- class: D(s(i).e("title")),
132
- role: "title"
133
- }, c(e.title), 3)) : b("v-if", !0),
134
- g(e.$slots, "default", {}, () => [
135
- K(c(e.content), 1)
136
- ])
137
- ]),
138
- default: v(() => [
139
- e.$slots.reference ? g(e.$slots, "reference", { key: 0 }) : b("v-if", !0)
140
- ]),
141
- _: 3
142
- }, 16, ["trigger", "trigger-keys", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "append-to", "persistent", "gpu-acceleration", "onUpdate:visible"]));
143
- }
144
- });
145
- var W = /* @__PURE__ */ z(Q, [["__file", "popover.vue"]]);
146
- const m = (t, p) => {
147
- const n = p.arg || p.value, o = n == null ? void 0 : n.popperRef;
148
- o && (o.triggerRef = t);
149
- };
150
- var X = {
151
- mounted(t, p) {
152
- m(t, p);
153
- },
154
- updated(t, p) {
155
- m(t, p);
156
- }
157
- };
158
- const Y = "popover", Z = F(X, Y), re = j(W, {
159
- directive: Z
160
- });
161
- export {
162
- re as E
163
- };