@fangzhongya/vue-archive 0.0.60 → 0.0.62
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/index.css +1 -1
- package/dist/node/index.cjs +206 -135
- package/dist/node/index.d.cts +28 -10
- package/dist/node/index.d.ts +28 -10
- package/dist/node/index.js +206 -135
- package/dist/packages/components/compo/index.cjs +1 -1
- package/dist/packages/components/compo/index.js +12 -10
- package/dist/packages/components/use/code.d.ts +17 -25
- package/dist/packages/components/use/index.cjs +1 -1
- package/dist/packages/components/use/index.js +1 -1
- package/dist/packages/components/use/retrie/array/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/boolean/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/choice/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/function/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/number/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/object/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/other/index.d.ts +2 -2
- package/dist/packages/components/use/retrie/select/index.d.ts +2 -2
- package/dist/packages/config.d.ts +26 -5
- package/dist/packages/page/index/index.vue2.cjs +1 -1
- package/dist/packages/page/index/index.vue2.js +1 -1
- package/dist/packages/utils/common.cjs +1 -1
- package/dist/packages/utils/common.d.ts +11 -12
- package/dist/packages/utils/common.js +149 -84
- package/dist/packages/utils/glob.cjs +2 -2
- package/dist/packages/utils/glob.js +140 -158
- package/package.json +3 -3
|
@@ -12,8 +12,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
12
12
|
default(): {};
|
|
13
13
|
};
|
|
14
14
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
-
error: (...args: any[]) => void;
|
|
16
15
|
value: (...args: any[]) => void;
|
|
16
|
+
error: (...args: any[]) => void;
|
|
17
17
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
18
18
|
modelValue: {
|
|
19
19
|
type: null;
|
|
@@ -27,8 +27,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
27
27
|
default(): {};
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{
|
|
30
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
31
30
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
config: Record<string, any>;
|
|
34
34
|
disabled: boolean;
|
|
@@ -18,8 +18,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
|
-
change: (...args: any[]) => void;
|
|
22
21
|
value: (...args: any[]) => void;
|
|
22
|
+
change: (...args: any[]) => void;
|
|
23
23
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
24
24
|
modelValue: {
|
|
25
25
|
type: null;
|
|
@@ -39,8 +39,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}>> & Readonly<{
|
|
42
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
43
42
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
config: Record<string, any>;
|
|
46
46
|
disabled: boolean;
|
|
@@ -14,8 +14,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
-
error: (...args: any[]) => void;
|
|
18
17
|
value: (...args: any[]) => void;
|
|
18
|
+
error: (...args: any[]) => void;
|
|
19
19
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
20
|
modelValue: {
|
|
21
21
|
type: null;
|
|
@@ -31,8 +31,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
}>> & Readonly<{
|
|
34
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
35
34
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
config: Record<string, any>;
|
|
38
38
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
@@ -4,14 +4,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: null;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
-
error: (...args: any[]) => void;
|
|
8
7
|
value: (...args: any[]) => void;
|
|
8
|
+
error: (...args: any[]) => void;
|
|
9
9
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: null;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
15
14
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -4,14 +4,14 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: null;
|
|
5
5
|
};
|
|
6
6
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
|
-
error: (...args: any[]) => void;
|
|
8
7
|
value: (...args: any[]) => void;
|
|
8
|
+
error: (...args: any[]) => void;
|
|
9
9
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
10
10
|
modelValue: {
|
|
11
11
|
type: null;
|
|
12
12
|
};
|
|
13
13
|
}>> & Readonly<{
|
|
14
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
15
14
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -33,8 +33,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
-
error: (...args: any[]) => void;
|
|
37
36
|
value: (...args: any[]) => void;
|
|
37
|
+
error: (...args: any[]) => void;
|
|
38
38
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
39
39
|
modelValue: {
|
|
40
40
|
type: null;
|
|
@@ -69,8 +69,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
}>> & Readonly<{
|
|
72
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
73
72
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
75
|
config: Record<string, any>;
|
|
76
76
|
disabled: boolean;
|
|
@@ -19,8 +19,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
22
|
-
change: (...args: any[]) => void;
|
|
23
22
|
value: (...args: any[]) => void;
|
|
23
|
+
change: (...args: any[]) => void;
|
|
24
24
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
25
|
modelValue: {
|
|
26
26
|
type: null;
|
|
@@ -41,8 +41,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
}>> & Readonly<{
|
|
44
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
45
44
|
onValue?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
config: Record<string, any>;
|
|
48
48
|
disabled: boolean;
|
|
@@ -10,14 +10,35 @@ export type Globs = Record<string, GetRaw> | GetRaw;
|
|
|
10
10
|
export interface GlobComs {
|
|
11
11
|
[key: string]: AsyncComponentLoader;
|
|
12
12
|
}
|
|
13
|
+
export type FangMatch = string | RegExp;
|
|
13
14
|
export interface Component {
|
|
14
15
|
dir: string;
|
|
15
16
|
cwd?: string;
|
|
16
17
|
extensions?: Array<string>;
|
|
17
18
|
alias?: string;
|
|
18
|
-
|
|
19
|
-
matchs?: Array<
|
|
20
|
-
matchexts?: Array<
|
|
19
|
+
getAliass?: (naem: string, type: string, config: Component) => string[];
|
|
20
|
+
matchs?: Array<FangMatch>;
|
|
21
|
+
matchexts?: Array<FangMatch>;
|
|
22
|
+
/**
|
|
23
|
+
* 不匹配目录数组
|
|
24
|
+
* 从头开始匹配
|
|
25
|
+
*/
|
|
26
|
+
nomatchs?: Array<FangMatch>;
|
|
27
|
+
/**
|
|
28
|
+
* 不匹配文件路径
|
|
29
|
+
* 从尾部开始匹配
|
|
30
|
+
*/
|
|
31
|
+
nomatchexts?: Array<FangMatch>;
|
|
32
|
+
matchextss?: FangMatch;
|
|
33
|
+
/**
|
|
34
|
+
* 获取匹配数组
|
|
35
|
+
*/
|
|
36
|
+
isMatch?(url: string, naem: string, names?: Array<string>, config?: Component): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 多个时获取那个
|
|
39
|
+
*/
|
|
40
|
+
getMatchs?(urls: Array<string>, name: string, type: string, config?: Component): string;
|
|
41
|
+
getNameValue?: (url: string, config?: Component) => string;
|
|
21
42
|
directives?: string;
|
|
22
43
|
urls?: Array<string>;
|
|
23
44
|
dirUrls?: Array<string>;
|
|
@@ -25,8 +46,8 @@ export interface Component {
|
|
|
25
46
|
export interface Components extends Component {
|
|
26
47
|
resolver?: Component;
|
|
27
48
|
urls?: string[];
|
|
28
|
-
comprops?:
|
|
29
|
-
curprops?:
|
|
49
|
+
comprops?: Array<FangMatch>;
|
|
50
|
+
curprops?: Array<FangMatch>;
|
|
30
51
|
components: GlobComs;
|
|
31
52
|
componentsRaw: Globs;
|
|
32
53
|
example?: ExampleObj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),a=require("../../components/header/index.vue.cjs"),r=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),_=require("vue-router"),l={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},h={class:"index-body"},p={class:"index-div"},x={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},g=e.defineComponent({__name:"index",setup(E){const n=_.useRoute(),t=e.ref({});function s(i){t.value=i}e.watch(()=>n.query?.id,()=>{o()});function o(){n.query?.id&&(t.value=u.getCompoName(n.query.id+"")[0])}return o(),(i,V)=>(e.openBlock(),e.createElementBlock("div",l,[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",m,[e.createVNode(d,{value:t.value,onChange:s},null,8,["value"])])])),[[e.unref(c),{right:{}}]]),e.createElementVNode("div",h,[e.createElementVNode("div",p,[e.createElementVNode("div",x,[e.createVNode(a)]),e.createElementVNode("div",q,[e.createElementVNode("div",N,[(e.openBlock(),e.createBlock(r,{key:t.value
|
|
1
|
+
"use strict";const e=require("vue"),c=require("../../directives/adjust/index.cjs"),d=require("../../components/aside/index.vue.cjs"),a=require("../../components/header/index.vue.cjs"),r=require("../../components/main/index.vue.cjs"),u=require("../../utils/glob.cjs"),_=require("vue-router"),l={class:"__document-index"},v={class:"index-aside"},m={class:"index-aside-div"},h={class:"index-body"},p={class:"index-div"},x={class:"index-header"},q={class:"index-main"},N={class:"index-main-div"},g=e.defineComponent({__name:"index",setup(E){const n=_.useRoute(),t=e.ref({});function s(i){t.value=i}e.watch(()=>n.query?.id,()=>{o()});function o(){n.query?.id&&(t.value=u.getCompoName(n.query.id+"")[0])}return o(),(i,V)=>(e.openBlock(),e.createElementBlock("div",l,[e.withDirectives((e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",m,[e.createVNode(d,{value:t.value,onChange:s},null,8,["value"])])])),[[e.unref(c),{right:{}}]]),e.createElementVNode("div",h,[e.createElementVNode("div",p,[e.createElementVNode("div",x,[e.createVNode(a)]),e.createElementVNode("div",q,[e.createElementVNode("div",N,[(e.openBlock(),e.createBlock(r,{key:t.value?.name,value:t.value},null,8,["value"]))])])])])]))}});module.exports=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./storage.cjs");require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const A=require("@fangzhongya/utils/name/humpToLine"),C=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");require("@fangzhongya/utils/basic/string/firstLower");require("@fangzhongya/utils/basic/array/duplicateRemoval");require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const q=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const m=require("@fangzhongya/utils/judge/matchsStart"),h=require("@fangzhongya/utils/judge/matchsEnd"),N=["vue","js","ts"];function R(t){let e=A.humpToLine(t.name),r=[];return t.alias&&r.push(t.alias+"-"+e),r}function $(t,e,r){const s=m.matchsStart(t,e);return s&&r&&r.length>0?!m.matchsStart(t,r):s}function O(t,e,r){const s=h.matchsEnd(t,e);return s&&r&&r.length>0?!h.matchsEnd(t,r):s}function T(t,e){e.lastIndex=0;const r=e.exec(t);if(!r)return"";const s=r.index;return t.substring(0,s)}function z(t){const e=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(`${e(t)}$`)}function x(t,e){if(e&&e.length>0)for(const r of e)if(typeof r=="string"){if(t.endsWith(r)){const s=t.replace(z(r),"");if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}}else{const s=T(t,r);if(s){const a=new RegExp("^.*/([^/]+)$");let u=s.match(a);if(u)return u[1]}}return""}function c(t,e,r){const s=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let a=t.indexOf(s),u=e.dir.substring(0,e.dir.indexOf(s))+t.substring(a),l="";if(e.getNameValue)l=e.getNameValue(t,e);else{const n=e.matchextss;n?l=x(t,[n]):l=x(t,e.matchexts)}if(l){let n={suffix:q.getSuffix(t),name:C.lineToLargeHump(l),value:l,adir:"",alias:e.alias,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0,url:u,comprops:e.comprops,curprops:e.curprops,dir:e.dir,cwd:e.cwd,tdir:r,key:t};return n.aliasNames=R(n),n}}function S(t,e,r,s,a){if($(t,e.matchs,e.nomatchs)){let u=!1;if(e.isMatch?u=e.isMatch(t,"",[],e):u=O(t,e.matchexts,e.nomatchexts),u){const l=e.getMatchs;if(l){const n=l(r,"","",e);return c(n,e,a)}else{const n=e.matchextss;if(n){if(typeof n=="string"){if(t.endsWith(n))return c(s,e,a)}else if(n.test(t))return c(s,e,a)}else return c(s,e,a)}}}}function K(t){g.setSession("aside.key",t)}function L(){return g.getSession("aside.key")}function U(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function w(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.includes(s))return!0}else if(s.test(t))return!0}return!1}function E(t,e){if(e)for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="string"){if(t.endsWith(s))return!0}else if(s.test(t))return!0}return!1}function V(t,e,r,s){const a=[],u=[],l=U(e.dir);return t.forEach(n=>{const p=e.dir.replace(/^\.\/|((\.\.\/)+)/,"/");let M=n.indexOf(p),d=e.dir.substring(0,e.dir.indexOf(p))+n.substring(M);const b=new RegExp("^"+e.dir);let o=d.replace(b,"");if(e.comprops&&w("/"+o,e.comprops)||e.curprops&&E("/"+o,e.curprops)){let i={};i.url=d,i.comprops=e.comprops,i.curprops=e.curprops,i.value=o,i.dir=e.dir,i.cwd=e.cwd,i.suffix=q.getSuffix(n),i.tdir=l,i.key=n,i.raw="",i.getRaw=f(r,n),a.push(i)}else{let i=S(o,e,t,n,l);console.log("value",i),i&&(i.component=s[i.key],i.getRaw=f(r,i.key),u.push(i))}}),{props:a,components:u}}function f(t,e){return typeof t=="function"?t:t?t[e]:null}exports.defaultExtensions=N;exports.getAsideKey=L;exports.getComponentsArr=V;exports.getRawValue=f;exports.getUrlName=S;exports.isComprops=w;exports.isCurprops=E;exports.setAsideKey=K;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AsyncComponentLoader } from '../../vue/dist/vue.esm-bundler.js';
|
|
2
|
-
import {
|
|
2
|
+
import { Component, Components, Globs, GlobComs, GetRaw, FangMatch } from '../config';
|
|
3
3
|
export declare const defaultExtensions: string[];
|
|
4
4
|
/**
|
|
5
5
|
* 判断是否匹配
|
|
@@ -16,8 +16,8 @@ export interface TextObj {
|
|
|
16
16
|
}
|
|
17
17
|
export interface PropObj {
|
|
18
18
|
url: string;
|
|
19
|
-
comprops
|
|
20
|
-
curprops
|
|
19
|
+
comprops?: Array<FangMatch>;
|
|
20
|
+
curprops?: Array<FangMatch>;
|
|
21
21
|
name: string;
|
|
22
22
|
value: string;
|
|
23
23
|
suffix: string;
|
|
@@ -28,8 +28,8 @@ export interface PropObj {
|
|
|
28
28
|
}
|
|
29
29
|
export interface PropsObj extends TextObj {
|
|
30
30
|
url: string;
|
|
31
|
-
comprops
|
|
32
|
-
curprops
|
|
31
|
+
comprops?: Array<FangMatch>;
|
|
32
|
+
curprops?: Array<FangMatch>;
|
|
33
33
|
dir: string;
|
|
34
34
|
tdir: string;
|
|
35
35
|
key: string;
|
|
@@ -58,14 +58,13 @@ export interface ComponentsObj extends Component, TextObj {
|
|
|
58
58
|
adir: string;
|
|
59
59
|
aliasNames: Array<string>;
|
|
60
60
|
component?: AsyncComponentLoader;
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
comprops?: Array<FangMatch>;
|
|
62
|
+
curprops?: Array<FangMatch>;
|
|
63
63
|
tests: {
|
|
64
64
|
[key: string]: TestsObj;
|
|
65
65
|
} | undefined;
|
|
66
66
|
mds?: MdObj[];
|
|
67
67
|
}
|
|
68
|
-
export declare function getMatchs(matchexts?: Array<string>, extensions?: Array<string>, matchs?: Array<string>): string[];
|
|
69
68
|
/**
|
|
70
69
|
* 通过url 地址获取对应数据
|
|
71
70
|
* @param url
|
|
@@ -74,14 +73,14 @@ export declare function getMatchs(matchexts?: Array<string>, extensions?: Array<
|
|
|
74
73
|
* @param alias
|
|
75
74
|
* @returns
|
|
76
75
|
*/
|
|
77
|
-
export declare function getUrlName(url: string,
|
|
76
|
+
export declare function getUrlName(url: string, config: Components, urls: Array<string>, key: string, tdir: string): ComponentsObj | undefined;
|
|
78
77
|
export declare function setAsideKey(key: string): void;
|
|
79
78
|
export declare function getAsideKey(): string;
|
|
80
|
-
export declare function isComprops(url: string, comprops
|
|
81
|
-
export declare function isCurprops(url: string, comprops
|
|
79
|
+
export declare function isComprops(url: string, comprops?: Array<FangMatch>): boolean;
|
|
80
|
+
export declare function isCurprops(url: string, comprops?: Array<FangMatch>): boolean;
|
|
82
81
|
export interface ComponentsObjs {
|
|
83
82
|
props: Array<PropsObj>;
|
|
84
83
|
components: Array<ComponentsObj>;
|
|
85
84
|
}
|
|
86
|
-
export declare function getComponentsArr(urls: Array<string>, v: Components, comRaw: Globs, com: GlobComs
|
|
85
|
+
export declare function getComponentsArr(urls: Array<string>, v: Components, comRaw: Globs, com: GlobComs): ComponentsObjs;
|
|
87
86
|
export declare function getRawValue(comRaw: Globs, key: string): GetRaw | null;
|
|
@@ -1,117 +1,182 @@
|
|
|
1
|
-
import { getSession as
|
|
1
|
+
import { getSession as M, setSession as $ } from "./storage.js";
|
|
2
2
|
import "@fangzhongya/utils/basic/object/mergeObject";
|
|
3
3
|
import "@fangzhongya/utils/basic/array/toggleArray";
|
|
4
|
-
import { humpToLine as
|
|
4
|
+
import { humpToLine as N } from "@fangzhongya/utils/name/humpToLine";
|
|
5
5
|
import { lineToLargeHump as R } from "@fangzhongya/utils/name/lineToLargeHump";
|
|
6
|
-
import
|
|
6
|
+
import "@fangzhongya/utils/basic/string/appearNum";
|
|
7
7
|
import "@fangzhongya/utils/basic/string/firstLower";
|
|
8
8
|
import "@fangzhongya/utils/basic/array/duplicateRemoval";
|
|
9
9
|
import "@fangzhongya/utils/basic/array/asyncMergeArray";
|
|
10
10
|
import "@fangzhongya/utils/basic/string/firstUpper";
|
|
11
|
-
import { getSuffix as
|
|
11
|
+
import { getSuffix as g } from "@fangzhongya/utils/urls/getSuffix";
|
|
12
12
|
import "@fangzhongya/utils/basic/array/replaceAfter";
|
|
13
|
-
|
|
13
|
+
import { matchsStart as m } from "@fangzhongya/utils/judge/matchsStart";
|
|
14
|
+
import { matchsEnd as d } from "@fangzhongya/utils/judge/matchsEnd";
|
|
15
|
+
const Q = ["vue", "js", "ts"];
|
|
16
|
+
function S(t) {
|
|
17
|
+
let e = N(t.name), r = [];
|
|
18
|
+
return t.alias && r.push(t.alias + "-" + e), r;
|
|
19
|
+
}
|
|
20
|
+
function b(t, e, r) {
|
|
21
|
+
const s = m(t, e);
|
|
22
|
+
return s && r && r.length > 0 ? !m(t, r) : s;
|
|
23
|
+
}
|
|
24
|
+
function O(t, e, r) {
|
|
25
|
+
const s = d(t, e);
|
|
26
|
+
return s && r && r.length > 0 ? !d(t, r) : s;
|
|
27
|
+
}
|
|
14
28
|
function z(t, e) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
e.lastIndex = 0;
|
|
30
|
+
const r = e.exec(t);
|
|
31
|
+
if (!r) return "";
|
|
32
|
+
const s = r.index;
|
|
33
|
+
return t.substring(0, s);
|
|
34
|
+
}
|
|
35
|
+
function A(t) {
|
|
36
|
+
const e = (r) => r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
37
|
+
return new RegExp(`${e(t)}$`);
|
|
19
38
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
function h(t, e) {
|
|
40
|
+
if (e && e.length > 0)
|
|
41
|
+
for (const r of e)
|
|
42
|
+
if (typeof r == "string") {
|
|
43
|
+
if (t.endsWith(r)) {
|
|
44
|
+
const s = t.replace(A(r), "");
|
|
45
|
+
if (s) {
|
|
46
|
+
const l = new RegExp("^.*/([^/]+)$");
|
|
47
|
+
let u = s.match(l);
|
|
48
|
+
if (u)
|
|
49
|
+
return u[1];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
const s = z(t, r);
|
|
54
|
+
if (s) {
|
|
55
|
+
const l = new RegExp("^.*/([^/]+)$");
|
|
56
|
+
let u = s.match(l);
|
|
57
|
+
if (u)
|
|
58
|
+
return u[1];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return "";
|
|
25
62
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
63
|
+
function f(t, e, r) {
|
|
64
|
+
const s = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
65
|
+
let l = t.indexOf(s), u = e.dir.substring(0, e.dir.indexOf(s)) + t.substring(l), a = "";
|
|
66
|
+
if (e.getNameValue)
|
|
67
|
+
a = e.getNameValue(t, e);
|
|
68
|
+
else {
|
|
69
|
+
const n = e.matchextss;
|
|
70
|
+
n ? a = h(t, [n]) : a = h(t, e.matchexts);
|
|
71
|
+
}
|
|
72
|
+
if (a) {
|
|
73
|
+
let n = {
|
|
74
|
+
suffix: g(t),
|
|
75
|
+
name: R(a),
|
|
76
|
+
value: a,
|
|
77
|
+
adir: "",
|
|
78
|
+
alias: e.alias,
|
|
79
|
+
aliasNames: [],
|
|
80
|
+
raw: "",
|
|
81
|
+
getRaw: null,
|
|
82
|
+
mds: [],
|
|
83
|
+
tests: void 0,
|
|
84
|
+
url: u,
|
|
85
|
+
comprops: e.comprops,
|
|
86
|
+
curprops: e.curprops,
|
|
87
|
+
dir: e.dir,
|
|
88
|
+
cwd: e.cwd,
|
|
89
|
+
tdir: r,
|
|
90
|
+
key: t
|
|
91
|
+
};
|
|
92
|
+
return n.aliasNames = S(n), n;
|
|
93
|
+
}
|
|
35
94
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
tdir: "",
|
|
56
|
-
adir: c,
|
|
57
|
-
alias: i,
|
|
58
|
-
aliass: o,
|
|
59
|
-
aliasNames: [],
|
|
60
|
-
raw: "",
|
|
61
|
-
getRaw: null,
|
|
62
|
-
mds: [],
|
|
63
|
-
tests: void 0
|
|
64
|
-
};
|
|
65
|
-
return p.aliasNames = z(p, f), p;
|
|
95
|
+
function C(t, e, r, s, l) {
|
|
96
|
+
if (b(t, e.matchs, e.nomatchs)) {
|
|
97
|
+
let u = !1;
|
|
98
|
+
if (e.isMatch ? u = e.isMatch(t, "", [], e) : u = O(t, e.matchexts, e.nomatchexts), u) {
|
|
99
|
+
const a = e.getMatchs;
|
|
100
|
+
if (a) {
|
|
101
|
+
const n = a(r, "", "", e);
|
|
102
|
+
return f(n, e, l);
|
|
103
|
+
} else {
|
|
104
|
+
const n = e.matchextss;
|
|
105
|
+
if (n) {
|
|
106
|
+
if (typeof n == "string") {
|
|
107
|
+
if (t.endsWith(n))
|
|
108
|
+
return f(s, e, l);
|
|
109
|
+
} else if (n.test(t))
|
|
110
|
+
return f(s, e, l);
|
|
111
|
+
} else
|
|
112
|
+
return f(s, e, l);
|
|
113
|
+
}
|
|
66
114
|
}
|
|
67
115
|
}
|
|
68
116
|
}
|
|
69
|
-
function
|
|
70
|
-
|
|
117
|
+
function X(t) {
|
|
118
|
+
$("aside.key", t);
|
|
71
119
|
}
|
|
72
|
-
function
|
|
73
|
-
return
|
|
120
|
+
function Y() {
|
|
121
|
+
return M("aside.key");
|
|
74
122
|
}
|
|
75
|
-
function
|
|
123
|
+
function D(t) {
|
|
76
124
|
let e = t.match(/\/([^\/]+)\/$/);
|
|
77
125
|
return e && e.length > 1 ? e[1] : "";
|
|
78
126
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
127
|
+
function T(t, e) {
|
|
128
|
+
if (e)
|
|
129
|
+
for (let r = 0; r < e.length; r++) {
|
|
130
|
+
const s = e[r];
|
|
131
|
+
if (typeof s == "string") {
|
|
132
|
+
if (t.includes(s))
|
|
133
|
+
return !0;
|
|
134
|
+
} else if (s.test(t))
|
|
135
|
+
return !0;
|
|
136
|
+
}
|
|
137
|
+
return !1;
|
|
81
138
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
139
|
+
function U(t, e) {
|
|
140
|
+
if (e)
|
|
141
|
+
for (let r = 0; r < e.length; r++) {
|
|
142
|
+
const s = e[r];
|
|
143
|
+
if (typeof s == "string") {
|
|
144
|
+
if (t.endsWith(s))
|
|
145
|
+
return !0;
|
|
146
|
+
} else if (s.test(t))
|
|
147
|
+
return !0;
|
|
148
|
+
}
|
|
149
|
+
return !1;
|
|
84
150
|
}
|
|
85
|
-
function
|
|
86
|
-
const
|
|
87
|
-
return t.forEach((
|
|
88
|
-
const
|
|
89
|
-
let
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
if (
|
|
93
|
-
let
|
|
94
|
-
|
|
151
|
+
function Z(t, e, r, s) {
|
|
152
|
+
const l = [], u = [], a = D(e.dir);
|
|
153
|
+
return t.forEach((n) => {
|
|
154
|
+
const p = e.dir.replace(/^\.\/|((\.\.\/)+)/, "/");
|
|
155
|
+
let w = n.indexOf(p), c = e.dir.substring(0, e.dir.indexOf(p)) + n.substring(w);
|
|
156
|
+
const E = new RegExp("^" + e.dir);
|
|
157
|
+
let o = c.replace(E, "");
|
|
158
|
+
if (e.comprops && T("/" + o, e.comprops) || e.curprops && U("/" + o, e.curprops)) {
|
|
159
|
+
let i = {};
|
|
160
|
+
i.url = c, i.comprops = e.comprops, i.curprops = e.curprops, i.value = o, i.dir = e.dir, i.cwd = e.cwd, i.suffix = g(n), i.tdir = a, i.key = n, i.raw = "", i.getRaw = x(r, n), l.push(i);
|
|
95
161
|
} else {
|
|
96
|
-
let
|
|
97
|
-
|
|
162
|
+
let i = C(o, e, t, n, a);
|
|
163
|
+
console.log("value", i), i && (i.component = s[i.key], i.getRaw = x(r, i.key), u.push(i));
|
|
98
164
|
}
|
|
99
165
|
}), {
|
|
100
|
-
props:
|
|
101
|
-
components:
|
|
166
|
+
props: l,
|
|
167
|
+
components: u
|
|
102
168
|
};
|
|
103
169
|
}
|
|
104
170
|
function x(t, e) {
|
|
105
171
|
return typeof t == "function" ? t : t ? t[e] : null;
|
|
106
172
|
}
|
|
107
173
|
export {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
O as getMatchs,
|
|
174
|
+
Q as defaultExtensions,
|
|
175
|
+
Y as getAsideKey,
|
|
176
|
+
Z as getComponentsArr,
|
|
112
177
|
x as getRawValue,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
178
|
+
C as getUrlName,
|
|
179
|
+
T as isComprops,
|
|
180
|
+
U as isCurprops,
|
|
181
|
+
X as setAsideKey
|
|
117
182
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`)}async function me(t,e){let n=t;if(t&&(e.comprops||e.curprops)){let r=(await
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../config.cjs"),B=require("@fangzhongya/utils/html/getVueText"),c=require("./common.cjs"),F=require("@fangzhongya/utils/basic/object/mergeObject");require("@fangzhongya/utils/basic/array/toggleArray");const T=require("@fangzhongya/utils/name/humpToLine"),A=require("@fangzhongya/utils/name/lineToLargeHump");require("@fangzhongya/utils/basic/string/appearNum");const W=require("@fangzhongya/utils/basic/string/firstLower"),D=require("@fangzhongya/utils/basic/array/duplicateRemoval"),M=require("@fangzhongya/utils/basic/array/asyncMergeArray");require("@fangzhongya/utils/basic/string/firstUpper");const w=require("@fangzhongya/utils/urls/getSuffix");require("@fangzhongya/utils/basic/array/replaceAfter");const J=require("./index.cjs"),h={},R={},I=[],K={},j={},g={};function Q(){return q.getConfig("example")}function X(t,e,n,r){const a=F.mergeObject(e,n||{},3,!0);a.exampless=a.exampless||[],a.examplessRaw=a.examplessRaw||[];const s=[],i=a.examples;i&&Object.keys(i).forEach(o=>{s.push(o),j[o]=i[o]});const l=a.examplesRaw,u=[];if(a.urls&&a.urls.length>0?(a.exampless=a.urls,a.urls.forEach(o=>{u.push(o),l&&(g[o]=N(l,o))})):(a.exampless=s,l&&Object.keys(l).forEach(o=>{u.push(o),g[o]=N(l,o)})),a.examples=void 0,e.tests&&r){const o=e.testsNanme||"/tests/";typeof o=="string"?Object.keys(r).forEach(f=>{f.includes(o)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))}):Object.keys(r).forEach(f=>{o.test(f)&&(a.exampless.push(f),u.push(f),g[f]=N(r,f))})}a.exampless=[...new Set(a.exampless)],a.examplessRaw=[...new Set(u)],a.examplesRaw=void 0,K[t]=a}function N(t,e){return typeof t=="function"?t:t&&(t[e]||t)}const b={};function Y(t){const e=q.getConfig("resolve");if(b[t])return b[t];for(let n of e)if(t.startsWith(n.find+"/")){const a=n.replacement.replaceAll("\\","/")+t.replace(n.find+"/","/");return b[t]=a,a}}async function Z(t,e){let n="";if(e=="vue"?n=B.getVueTexts(t).script:(e=="js"||e=="ts"||e=="")&&(n=t),n){const r=await J.getTextImport(n),a=[];return r&&r.length>0&&r.forEach(s=>{if(s)if(s.startsWith("./")||s.startsWith("../"))a.push(s);else{const i=Y(s);i&&a.push(i)}}),a}}function _(t){return new Promise(e=>{t?t.raw?e(t.raw):t.getRaw?t.getRaw(t).then(n=>{const r=C(n);t.raw=r,t.getRaw=null,e(r)}):e(""):e("")})}function U(t,e){t=(t||"")+"";let n="";switch(t){case"1":n=e.tdir+"/";break;case"2":n=e.adir+"/";break;case"3":n=e.tdir+"/"+e.adir+"/";break}return n}function z(t,e,n){t=(t||"")+"",n=(n||"")+"";let r=T.humpToLine(e.name),a=[];t==="1"?e.alias&&a.push(e.alias+"-"+r):t==="3"?e.alias&&e.alias+"":t==="4"?e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))}):t=="9"&&(a.push(r),e.aliasNames?.forEach(i=>{a.push(T.humpToLine(i))})),a.length==0&&a.push(r);let s=[];return n==="1"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(l,W.firstLower(l))}):n==="2"?a.forEach(i=>{let l=A.lineToLargeHump(i);s.push(i,l,W.firstLower(l))}):s=[...a],s=[...new Set(s)],s}function y(t,e,n,r){const a=[];return n.examplessRaw.forEach(s=>{for(let i=0;i<e.length;i++){const l=e[i];if(s==t+l+n.md+".md"){a.push({cwd:n.cwd||r.cwd,topurl:t,comkey:r.key,suffix:w.getSuffix(s),name:r.name,value:l,key:s,raw:"",getRaw:c.getRawValue(g,s)});break}}}),a}function P(t){O();const e=h[t];if(e.tests&&Object.keys(e.tests).length>0)return e.tests;{const n=K[e.dir],r=n.dir+U(n.level||0,e),a=z(n.aliaslevel||0,e,n.componentName||0);e.mds=y(r,a,n,e);const s={};return n.exampless.forEach(i=>{for(let l=0;l<a.length;l++){const u=a[l];if(i.startsWith(r+u+"/")){const o=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),f=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let p=i.match(o)||i.match(f);if(p&&p.length>0){let m="";p&&p.length>1&&(m=p[1]),s[i]={topurl:r,name:u,value:m,suffix:w.getSuffix(i),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:i,dir:e.dir,url:i,component:j[i],raw:"",getRaw:c.getRawValue(g,i)};break}}}}),n.tests&&k(s,e,n),e.tests=s,s}}function k(t,e,n){const r=e.url.substring(0,e.url.lastIndexOf("/"+e.value+"/"))+"/"+e.value,a=n.testsNanme||"/tests/";typeof a=="string"?n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:w.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:c.getRawValue(g,s)});else if(s.startsWith(r+a)){const i=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u.length>0){let o="";u&&u.length>1&&(o=u[1]),t[s]={topurl:r,name:e.value,value:o,suffix:w.getSuffix(s),comname:e.name,comkey:e.key,cwd:n.cwd||e.cwd,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:c.getRawValue(g,s)}}}}}):n.examplessRaw.forEach(s=>{if(s.startsWith(r+"/")){if(s==r+n.md+".md")e.mds=e.mds||[],e.mds.push({cwd:e.cwd,topurl:r,comkey:e.key,suffix:w.getSuffix(s),name:e.name,value:e.value,key:s,raw:"",getRaw:c.getRawValue(g,s)});else if(a.test(s)){const i=new RegExp("/([^/]+)/index\\."+c.defaultExtensions.join("|")+"$"),l=new RegExp("/([^/]+)\\."+c.defaultExtensions.join("|")+"$");let u=s.match(i)||s.match(l);if(u&&u.length>0){let o="";u&&u.length>1&&(o=u[1]),t[s]={cwd:n.cwd||e.cwd,topurl:r,name:e.value,value:o,suffix:w.getSuffix(s),comname:e.name,comkey:e.key,key:s,dir:e.dir,url:s,component:j[s],raw:"",getRaw:c.getRawValue(g,s)}}}}})}function ee(t){if(t){const e=P(t);return Object.values(e)}else return[]}function te(t,e,n){O();const r=P(n),a=[];if(e){let s=r[e];if(s)return a.push(s),a}return Object.values(r).forEach(s=>{s.name+"/"+s.value==t&&a.push(s)}),a}function se(t){return P(t),h[t].mds}async function V(t,e,n){let r=t.key,a=t.dir,s=t.url,i=t.comprops,l=t.curprops,u=await Z(e,n||t.suffix)||[],o=s.split("/");return u.map(f=>{if(f.startsWith("./")){let p=o.slice(0,o.length-1).join("/"),m=f.substring(2);const d=p.replace(/^\.\/|((\.\.\/)+)/,"/");let x=r.indexOf(d)+d.length;return{key:r.substring(0,x)+"/"+m,name:f,cwd:t.cwd,comprops:i,curprops:l,value:m,suffix:w.getSuffix(f),head:p,dir:a,url:p+"/"+m}}else if(f.startsWith("../")){let p=f.split("/"),m=0;for(let L=0;L<p.length;L++)if(p[L]!=".."){m=L;break}let d=p.slice(m,p.length),x=o.slice(0,o.length-m-1).join("/"),E=d.join("/");const S=x.replace(/^\.\/|((\.\.\/)+)/,"/");let G=r.indexOf(S)+S.length;return{key:r.substring(0,G)+"/"+E,name:E,cwd:t.cwd,comprops:i,curprops:l,value:E,suffix:w.getSuffix(f),head:x,dir:a,url:x+"/"+E}}else{const p=a.replace(/^\.\/|((\.\.\/)+)/,"/");let m=f.indexOf(p)+p.length,d=f.substring(m),x=a.substring(0,a.length-1);return{key:f,name:d,comprops:i,curprops:l,value:d,suffix:w.getSuffix(f),head:x,dir:a,cwd:t.cwd,url:x+"/"+d}}})}function ne(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>({...r,raw:"",suffix:w.getSuffix(r.key),getRaw:c.getRawValue(g,r.key)}));M.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(l=>{const u=C(l);s.raw=u,s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}function re(){const t=Q();q.getConfig("components")?.forEach(n=>{const r=le(n);let a=n.dir||"";X(a,t,n.example,r)})}const $="default";function ae(t){let e=T.humpToLine(t.name),n=[...t.aliasNames];n.push(e),n.forEach(r=>{I.push({name:r,value:t.key})})}function ie(t,e){e?.forEach(n=>{h[n.key]=n,ae(n)})}function le(t){let e,n;const r=t.resolver;r&&Object.keys(r).forEach(s=>{typeof t[s]>"u"&&(t[s]=r[s])}),e=t.alias||$;let a=t?.urls||Object.keys(t.componentsRaw);return n=c.getComponentsArr(a,t,t.componentsRaw,t.components),n&&n?.props&&n.props.forEach(s=>{R[s.url]=s}),ie(e,n.components),t.componentsRaw}function oe(t){return O(),h[t]}function O(){return Object.keys(h).length==0&&re(),Object.values(h)}function ue(){return O(),R}function fe(t,e,n){O();const r=[];if(n){let s=h[n];if(s&&s.key)return[s]}let a=T.humpToLine(t);return I.forEach(s=>{e?s.name.includes(a)&&r.push(h[s.value]):s.name==a&&r.push(h[s.value])}),D.duplicateRemoval(r,"key")}async function ce(t,e){let n=t;if(t){let r=(await V(e,t)).filter(a=>c.isComprops(a.key,e.comprops)||c.isCurprops(a.key,e.curprops));n=await H(r)+n}return n}function pe(t){const e=t.url,n=t.key;return R[e]||R[e+".js"]||R[e+".ts"]||R[n]||R[n+".js"]||R[n+".ts"]}function v(t){return new Promise(e=>{if(t&&t.length>0){let n=t.map(r=>pe(r)).filter(r=>!!r);M.asyncMergeArray(n,(r,a,s,i)=>{s.raw?r():s.getRaw?s.getRaw(s).then(async l=>{const u=C(l);let o=await ce(u,t[i]);s.raw=o,s.getRaw=null,r()}):r()}).then(()=>{e(n)})}else e([])})}async function H(t){return((await v(t))?.map(r=>r.raw)||[]).join(`
|
|
2
|
+
`)}async function me(t,e){let n=t;if(t&&(e.comprops||e.curprops)){let r=(await V(e,t)).filter(s=>c.isComprops(s.key,e.comprops)||c.isCurprops(s.key,e.curprops));n=await H(r)+n}return n}function C(t){return t&&typeof t=="object"?t.default||"":(t||"")+""}function ge(t){return new Promise(e=>{if(t){O();const n=h[t];n?n.raw?e(n.raw):n.getRaw?n.getRaw(n).then(r=>{const a=C(r);me(a,n).then(s=>{n.raw=s,n.getRaw=null,e(s)})}):e(""):e("")}else e("")})}exports.defaultName=$;exports.getCompoName=fe;exports.getCompoNameKey=oe;exports.getCompoNameObj=O;exports.getComponentPropsObjs=ue;exports.getGetRawValue=C;exports.getKeyMds=se;exports.getLevelUrl=U;exports.getLocalTextArr=ne;exports.getLocalTextComponents=ge;exports.getLocalTextTests=_;exports.getPropsRaws=v;exports.getTestImportUrl=V;exports.getTestName=ee;exports.getTestNameObj=te;
|