@easyv/biz-components 1.0.24 → 1.0.26
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/_virtual/index.es2.js +2 -2
- package/dist/_virtual/index.es3.js +2 -2
- package/dist/_virtual/index.es4.js +2 -2
- package/dist/components/ai-model-select/ai-model-select-panel.d.ts +6 -0
- package/dist/components/ai-model-select/ai-model-select-panel.es.js +32 -5
- package/dist/components/ai-model-select/ai-model-select-panel.es.js.map +1 -1
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/.pnpm/co-web-worker@1.0.1/node_modules/co-web-worker/index.es.js +1 -1
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +1 -1
- package/dist/stats.html +1 -1
- package/dist/tailwindcss.pkg.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/wait-something/index.d.ts +9 -0
- package/dist/utils/wait-something/index.es.js +21 -0
- package/dist/utils/wait-something/index.es.js.map +1 -0
- package/package.json +1 -1
package/dist/tailwindcss.pkg.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }body .biz-box-border{box-sizing:border-box}body .biz-flex{display:flex}body .biz-contents{display:contents}body .biz-hidden{display:none}body .biz-h-3{height:.75rem}body .biz-h-3\.5{height:.875rem}body .biz-h-4{height:1rem}body .biz-h-5{height:1.25rem}body .biz-h-6{height:1.5rem}body .biz-h-8{height:2rem}body .biz-h-full{height:100%}body .biz-max-h-\[450px\]{max-height:450px}body .biz-min-h-10{min-height:2.5rem}body .biz-w-0{width:0}body .biz-w-3{width:.75rem}body .biz-w-3\.5{width:.875rem}body .biz-w-4{width:1rem}body .biz-w-5{width:1.25rem}body .biz-w-6{width:1.5rem}body .biz-w-\[0\.4rem\]{width:.4rem}body .biz-w-\[160px\]{width:160px}body .biz-w-full{width:100%}body .biz-flex-1{flex:1 1 0%}body .biz-cursor-pointer{cursor:pointer}body .biz-select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}body .biz-flex-col{flex-direction:column}body .biz-items-center{align-items:center}body .biz-justify-center{justify-content:center}body .biz-justify-between{justify-content:space-between}body .biz-gap-1{gap:.25rem}body .biz-gap-2{gap:.5rem}body .biz-gap-2\.5{gap:.625rem}body .biz-gap-3{gap:.75rem}body .biz-overflow-auto{overflow:auto}body .biz-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .biz-whitespace-pre-wrap{white-space:pre-wrap}body .biz-rounded-\[4px\]{border-radius:4px}body .biz-rounded-full{border-radius:9999px}body .biz-rounded-lg{border-radius:.5rem}body .biz-rounded-md{border-radius:.375rem}body .biz-bg-\[\#000\]{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}body .biz-bg-\[\#181B22\]{--tw-bg-opacity:1;background-color:rgb(24 27 34/var(--tw-bg-opacity,1))}body .biz-bg-\[\#FFFFFF14\]{background-color:#ffffff14}body .biz-bg-bg-white{background-color:#ffffff0a}body .biz-bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity,1))}body .biz-px-3{padding-left:.75rem;padding-right:.75rem}body .biz-px-4{padding-left:1rem;padding-right:1rem}body .biz-py-1{padding-bottom:.25rem;padding-top:.25rem}body .biz-py-3{padding-bottom:.75rem;padding-top:.75rem}body .biz-py-\[3px\]{padding-bottom:3px;padding-top:3px}body .biz-pt-1{padding-top:.25rem}body .biz-text-\[14px\]{font-size:14px}body .biz-text-text-2{--tw-text-opacity:1;color:rgb(180 183 193/var(--tw-text-opacity,1))}body .biz-text-text-3{--tw-text-opacity:1;color:rgb(117 120 129/var(--tw-text-opacity,1))}body .biz-border-one{border:1px solid #ffffff0f}body .biz-flex-center{align-items:center;display:flex;justify-content:center}body .hover\:biz-bg-bg-white:hover{background-color:#ffffff0a}body .hover\:biz-text-text-1:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}body :is(.biz-group:hover .group-hover\:\!biz-flex){display:flex!important}
|
|
1
|
+
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }body .biz-box-border{box-sizing:border-box}body .biz-flex{display:flex}body .biz-contents{display:contents}body .biz-hidden{display:none}body .biz-h-3{height:.75rem}body .biz-h-3\.5{height:.875rem}body .biz-h-4{height:1rem}body .biz-h-5{height:1.25rem}body .biz-h-6{height:1.5rem}body .biz-h-8{height:2rem}body .biz-h-\[200px\]{height:200px}body .biz-h-full{height:100%}body .biz-max-h-\[450px\]{max-height:450px}body .biz-min-h-10{min-height:2.5rem}body .biz-w-0{width:0}body .biz-w-3{width:.75rem}body .biz-w-3\.5{width:.875rem}body .biz-w-4{width:1rem}body .biz-w-5{width:1.25rem}body .biz-w-6{width:1.5rem}body .biz-w-\[0\.4rem\]{width:.4rem}body .biz-w-\[160px\]{width:160px}body .biz-w-full{width:100%}body .biz-flex-1{flex:1 1 0%}body .biz-cursor-pointer{cursor:pointer}body .biz-select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}body .biz-flex-col{flex-direction:column}body .biz-items-center{align-items:center}body .biz-justify-center{justify-content:center}body .biz-justify-between{justify-content:space-between}body .biz-gap-1{gap:.25rem}body .biz-gap-2{gap:.5rem}body .biz-gap-2\.5{gap:.625rem}body .biz-gap-3{gap:.75rem}body .biz-overflow-auto{overflow:auto}body .biz-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .biz-whitespace-pre-wrap{white-space:pre-wrap}body .biz-rounded-\[4px\]{border-radius:4px}body .biz-rounded-full{border-radius:9999px}body .biz-rounded-lg{border-radius:.5rem}body .biz-rounded-md{border-radius:.375rem}body .biz-bg-\[\#000\]{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}body .biz-bg-\[\#181B22\]{--tw-bg-opacity:1;background-color:rgb(24 27 34/var(--tw-bg-opacity,1))}body .biz-bg-\[\#FFFFFF14\]{background-color:#ffffff14}body .biz-bg-bg-white{background-color:#ffffff0a}body .biz-bg-slate-500{--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity,1))}body .biz-px-3{padding-left:.75rem;padding-right:.75rem}body .biz-px-4{padding-left:1rem;padding-right:1rem}body .biz-py-1{padding-bottom:.25rem;padding-top:.25rem}body .biz-py-3{padding-bottom:.75rem;padding-top:.75rem}body .biz-py-\[3px\]{padding-bottom:3px;padding-top:3px}body .biz-pt-1{padding-top:.25rem}body .biz-text-\[14px\]{font-size:14px}body .biz-text-text-2{--tw-text-opacity:1;color:rgb(180 183 193/var(--tw-text-opacity,1))}body .biz-text-text-3{--tw-text-opacity:1;color:rgb(117 120 129/var(--tw-text-opacity,1))}body .biz-border-one{border:1px solid #ffffff0f}body .biz-flex-center{align-items:center;display:flex;justify-content:center}body .hover\:biz-bg-bg-white:hover{background-color:#ffffff0a}body .hover\:biz-text-text-1:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}body :is(.biz-group:hover .group-hover\:\!biz-flex){display:flex!important}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** 等待一个时间,单位是毫秒 */
|
|
2
|
+
export declare function wait(time: number): Promise<unknown>;
|
|
3
|
+
/** 等待某个条件成立
|
|
4
|
+
* @param waitFn 等待条件
|
|
5
|
+
* @param everyWaitTime 每次等待时间,单位是毫秒
|
|
6
|
+
* @param maxWaitTime 最大等待时间,单位是毫秒, 默认是 3 秒
|
|
7
|
+
* @returns 'success' | 'timeout'
|
|
8
|
+
*/
|
|
9
|
+
export declare function waitSomeThingBeTrue(waitFn: () => boolean, everyWaitTime: number, maxWaitTime?: number): Promise<'success' | 'timeout'>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function wait(time) {
|
|
2
|
+
return new Promise((resolve) => {
|
|
3
|
+
setTimeout(resolve, time);
|
|
4
|
+
});
|
|
5
|
+
}
|
|
6
|
+
async function waitSomeThingBeTrue(waitFn, everyWaitTime, maxWaitTime = 3e3) {
|
|
7
|
+
return wait(everyWaitTime).then(() => {
|
|
8
|
+
if (waitFn()) {
|
|
9
|
+
return "success";
|
|
10
|
+
}
|
|
11
|
+
if (maxWaitTime > 0) {
|
|
12
|
+
return waitSomeThingBeTrue(waitFn, everyWaitTime, maxWaitTime - everyWaitTime);
|
|
13
|
+
}
|
|
14
|
+
return "timeout";
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
wait,
|
|
19
|
+
waitSomeThingBeTrue
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../src/utils/wait-something/index.ts"],"sourcesContent":["/** 等待一个时间,单位是毫秒 */\nexport function wait(time: number) {\n return new Promise((resolve) => {\n setTimeout(resolve, time);\n });\n}\n\n/** 等待某个条件成立\n * @param waitFn 等待条件\n * @param everyWaitTime 每次等待时间,单位是毫秒\n * @param maxWaitTime 最大等待时间,单位是毫秒, 默认是 3 秒\n * @returns 'success' | 'timeout'\n */\nexport async function waitSomeThingBeTrue(\n waitFn: () => boolean,\n everyWaitTime: number,\n maxWaitTime: number = 3000,\n): Promise<'success' | 'timeout'> {\n return wait(everyWaitTime).then(() => {\n if (waitFn()) {\n return 'success';\n }\n if (maxWaitTime > 0) {\n return waitSomeThingBeTrue(waitFn, everyWaitTime, maxWaitTime - everyWaitTime);\n }\n return 'timeout';\n });\n}\n"],"names":[],"mappings":"AACO,SAAS,KAAK,MAAc;AAC1B,SAAA,IAAI,QAAQ,CAAC,YAAY;AAC9B,eAAW,SAAS,IAAI;AAAA,EAAA,CACzB;AACH;AAQA,eAAsB,oBACpB,QACA,eACA,cAAsB,KACU;AAChC,SAAO,KAAK,aAAa,EAAE,KAAK,MAAM;AACpC,QAAI,UAAU;AACL,aAAA;AAAA,IAAA;AAET,QAAI,cAAc,GAAG;AACnB,aAAO,oBAAoB,QAAQ,eAAe,cAAc,aAAa;AAAA,IAAA;AAExE,WAAA;AAAA,EAAA,CACR;AACH;"}
|