annil 1.0.0 → 1.0.1
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/CHANGELOG.md +8 -0
- package/README.md +8 -2
- package/dist/api/DefineComponent/ReturnType/test/normalComponentDoc.test.js.map +1 -1
- package/dist/api/DefineComponent/ReturnType/test/normalPageDoc.test.js.map +1 -1
- package/dist/api/DefineComponent/index.js +18 -13
- package/dist/api/DefineComponent/index.js.map +1 -1
- package/dist/api/RootComponent/Lifetimes/LifetimesConstraint.d.ts +4 -1
- package/dist/api/RootComponent/Properties/{expected/normalEmpty.js → test/normalEmpty.test.js} +1 -1
- package/dist/api/RootComponent/Properties/test/normalEmpty.test.js.map +1 -0
- package/dist/api/RootComponent/Watch/test/WatchProperties.test.js +1 -1
- package/dist/api/RootComponent/Watch/test/WatchProperties.test.js.map +1 -1
- package/dist/api/SubComponent/SubComputed/test/normal.test.js.map +1 -1
- package/dist/api/SubComponent/SubData/test/error.test.js.map +1 -1
- package/dist/api/SubComponent/SubData/test/normal.test.js.map +1 -1
- package/dist/api/SubComponent/SubInstance/test/normal.test.js.map +1 -1
- package/dist/api/SubComponent/SubPageLifetimes/test/normal.test.js.map +1 -1
- package/dist/api/SubComponent/SubWatch/test/WatchRootData.test.js.map +1 -1
- package/dist/api/SubComponent/index.d.ts +1 -1
- package/dist/api/SubComponent/index.js.map +1 -1
- package/dist/behaviors/BComputedAndWatch/data-tracer.js +0 -3
- package/dist/behaviors/BComputedAndWatch/data-tracer.js.map +1 -1
- package/dist/behaviors/BComputedAndWatch/index.js +2 -1
- package/dist/behaviors/BComputedAndWatch/index.js.map +1 -1
- package/dist/behaviors/BComputedAndWatch/initComputed.js +3 -11
- package/dist/behaviors/BComputedAndWatch/initComputed.js.map +1 -1
- package/dist/behaviors/BComputedAndWatch/isEqual.js.map +1 -1
- package/dist/behaviors/BStore.js.map +1 -1
- package/dist/behaviors/BbeforeCreated.js.map +1 -1
- package/dist/types/GetComponentPrefix.js +1 -4
- package/dist/types/GetComponentPrefix.js.map +1 -1
- package/dist/types/ReplacePrefix.js +1 -4
- package/dist/types/ReplacePrefix.js.map +1 -1
- package/dist/utils/InternalFieldProtection.d.ts +2 -0
- package/dist/utils/InternalFieldProtection.js +11 -0
- package/dist/utils/InternalFieldProtection.js.map +1 -0
- package/dist/utils/collector.d.ts +5 -0
- package/dist/utils/collector.js +21 -0
- package/dist/utils/collector.js.map +1 -0
- package/dist/utils/createdHijack.d.ts +0 -0
- package/dist/utils/createdHijack.js +2 -0
- package/dist/utils/createdHijack.js.map +1 -0
- package/dist/utils/customEventsHandle.d.ts +2 -0
- package/dist/utils/customEventsHandle.js +20 -0
- package/dist/utils/customEventsHandle.js.map +1 -0
- package/dist/utils/eventsHandle.d.ts +2 -0
- package/dist/utils/eventsHandle.js +5 -0
- package/dist/utils/eventsHandle.js.map +1 -0
- package/dist/utils/funcConfigHandle.d.ts +2 -0
- package/dist/utils/funcConfigHandle.js +18 -0
- package/dist/utils/funcConfigHandle.js.map +1 -0
- package/dist/utils/onLoadHijack.d.ts +3 -0
- package/dist/utils/onLoadHijack.js +16 -0
- package/dist/utils/onLoadHijack.js.map +1 -0
- package/dist/utils/onLoadReceivedDataHandle.d.ts +3 -0
- package/dist/utils/onLoadReceivedDataHandle.js +14 -0
- package/dist/utils/onLoadReceivedDataHandle.js.map +1 -0
- package/dist/utils/rootComponentFieldHandle.d.ts +3 -0
- package/dist/utils/rootComponentFieldHandle.js +13 -0
- package/dist/utils/rootComponentFieldHandle.js.map +1 -0
- package/dist/utils/subComponentsHandle.d.ts +3 -0
- package/dist/utils/subComponentsHandle.js +12 -0
- package/dist/utils/subComponentsHandle.js.map +1 -0
- package/package.json +4 -3
- package/src/api/DefineComponent/ReturnType/test/normalComponentDoc.test.ts +2 -1
- package/src/api/DefineComponent/ReturnType/test/normalPageDoc.test.ts +2 -1
- package/src/api/DefineComponent/index.ts +27 -22
- package/src/api/RootComponent/Computed/test/normal.test.ts +1 -1
- package/src/api/RootComponent/Lifetimes/LifetimesConstraint.ts +8 -7
- package/src/api/RootComponent/PageLifetimes/test/normal.test.ts +1 -1
- package/src/api/RootComponent/Watch/test/WatchComputed.test.ts +1 -1
- package/src/api/RootComponent/Watch/test/WatchData.test.ts +1 -1
- package/src/api/RootComponent/Watch/test/WatchProperties.test.ts +8 -2
- package/src/api/SubComponent/SubComputed/test/normal.test.ts +2 -1
- package/src/api/SubComponent/SubData/test/error.test.ts +2 -1
- package/src/api/SubComponent/SubData/test/normal.test.ts +2 -1
- package/src/api/SubComponent/SubInstance/test/normal.test.ts +2 -1
- package/src/api/SubComponent/SubPageLifetimes/test/normal.test.ts +2 -1
- package/src/api/SubComponent/SubWatch/test/WatchRootData.test.ts +2 -1
- package/src/api/SubComponent/SubWatch/test/error.test.ts +1 -1
- package/src/api/SubComponent/index.ts +9 -1
- package/src/behaviors/BComputedAndWatch/data-tracer.ts +0 -3
- package/src/behaviors/BComputedAndWatch/index.ts +8 -4
- package/src/behaviors/BComputedAndWatch/initComputed.ts +25 -18
- package/src/behaviors/BComputedAndWatch/isEqual.ts +1 -0
- package/src/behaviors/BStore.ts +3 -1
- package/src/behaviors/BbeforeCreated.ts +3 -1
- package/src/types/GetComponentPrefix.ts +11 -11
- package/src/types/ReplacePrefix.ts +9 -10
- package/src/utils/InternalFieldProtection.ts +18 -0
- package/src/utils/collector.ts +41 -0
- package/src/utils/createdHijack.ts +21 -0
- package/src/utils/customEventsHandle.ts +31 -0
- package/src/utils/eventsHandle.ts +10 -0
- package/src/utils/funcConfigHandle.ts +30 -0
- package/src/utils/onLoadHijack.ts +30 -0
- package/src/utils/onLoadReceivedDataHandle.ts +31 -0
- package/src/utils/rootComponentFieldHandle.ts +27 -0
- package/src/utils/subComponentsHandle.ts +25 -0
- package/dist/api/RootComponent/Data/expected/error.js +0 -10
- package/dist/api/RootComponent/Data/expected/error.js.map +0 -1
- package/dist/api/RootComponent/Data/expected/normal.d.ts +0 -1
- package/dist/api/RootComponent/Data/expected/normal.js +0 -33
- package/dist/api/RootComponent/Data/expected/normal.js.map +0 -1
- package/dist/api/RootComponent/Properties/expected/error.d.ts +0 -1
- package/dist/api/RootComponent/Properties/expected/error.js +0 -38
- package/dist/api/RootComponent/Properties/expected/error.js.map +0 -1
- package/dist/api/RootComponent/Properties/expected/normalEmpty.d.ts +0 -1
- package/dist/api/RootComponent/Properties/expected/normalEmpty.js.map +0 -1
- package/dist/api/RootComponent/Properties/expected/normalOptional.d.ts +0 -1
- package/dist/api/RootComponent/Properties/expected/normalOptional.js +0 -80
- package/dist/api/RootComponent/Properties/expected/normalOptional.js.map +0 -1
- package/dist/api/RootComponent/Properties/expected/normalRequired.d.ts +0 -69
- package/dist/api/RootComponent/Properties/expected/normalRequired.js +0 -44
- package/dist/api/RootComponent/Properties/expected/normalRequired.js.map +0 -1
- package/dist/api/RootComponent/Properties/test/normalEmpty.test..d.ts +0 -1
- package/dist/api/RootComponent/Properties/test/normalEmpty.test..js +0 -20
- package/dist/api/RootComponent/Properties/test/normalEmpty.test..js.map +0 -1
- package/dist/types/RestorePropTypeOfList.d.ts +0 -2
- package/dist/types/RestorePropTypeOfList.js +0 -3
- package/dist/types/RestorePropTypeOfList.js.map +0 -1
- package/dist/utils/preprocessingOptions.d.ts +0 -18
- package/dist/utils/preprocessingOptions.js +0 -184
- package/dist/utils/preprocessingOptions.js.map +0 -1
- package/src/api/RootComponent/Data/expected/error.ts +0 -14
- package/src/api/RootComponent/Data/expected/normal.ts +0 -68
- package/src/api/RootComponent/Properties/expected/error.ts +0 -49
- package/src/api/RootComponent/Properties/expected/normalEmpty.ts +0 -33
- package/src/api/RootComponent/Properties/expected/normalOptional.ts +0 -136
- package/src/api/RootComponent/Properties/expected/normalRequired.ts +0 -100
- package/src/types/RestorePropTypeOfList.ts +0 -20
- package/src/utils/preprocessingOptions.ts +0 -334
- /package/dist/api/RootComponent/{Data/expected/error.d.ts → Properties/test/normalEmpty.test.d.ts} +0 -0
- /package/src/api/RootComponent/Properties/test/{normalEmpty.test..ts → normalEmpty.test.ts} +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Func } from "hry-types/src/Misc/Func";
|
|
2
|
+
import type { ComponentOptions, FuncConfig } from "../api/DefineComponent";
|
|
3
|
+
import type { RootComponentDoc } from "../api/RootComponent/RootComponentDoc";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 把配置为函数的字段方法收集到funcConfig中
|
|
7
|
+
*/
|
|
8
|
+
export function funcFieldsCollect(
|
|
9
|
+
config: Record<string, Func>,
|
|
10
|
+
funcConfig: FuncConfig,
|
|
11
|
+
type: "pageLifetimes" | "lifetimes" | "watch",
|
|
12
|
+
) {
|
|
13
|
+
for (const key in config) {
|
|
14
|
+
const handler = config[key];
|
|
15
|
+
// 收集声明周期函数
|
|
16
|
+
const tempCache: object = funcConfig[type] ||= {};
|
|
17
|
+
const filedList: Func[] = tempCache[key] ||= [];
|
|
18
|
+
|
|
19
|
+
filedList.push(handler);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 其他字段加入到componentOptions对应字段配置中
|
|
24
|
+
export function otherFieldsHandle(
|
|
25
|
+
componentOptions: ComponentOptions,
|
|
26
|
+
rootComponentOptions: Omit<RootComponentDoc, "customEvents" | "events" | "pageLifetimes">,
|
|
27
|
+
) {
|
|
28
|
+
for (const key in rootComponentOptions) {
|
|
29
|
+
const config = rootComponentOptions[key];
|
|
30
|
+
// 好像只有behaviors是数组吧?.
|
|
31
|
+
|
|
32
|
+
if (Array.isArray(config)) {
|
|
33
|
+
/* istanbul ignore next */
|
|
34
|
+
componentOptions[key] ||= [];
|
|
35
|
+
|
|
36
|
+
componentOptions[key].push(...config);
|
|
37
|
+
} else {
|
|
38
|
+
Object.assign(componentOptions[key] ||= {}, config);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// export function createdHijack(
|
|
2
|
+
// componentOptions: ComponentOptions,
|
|
3
|
+
// before: Func[] = [],
|
|
4
|
+
// after: Func[] = [],
|
|
5
|
+
// ) {
|
|
6
|
+
// const lifetimes = componentOptions.lifetimes ||= {};
|
|
7
|
+
// // const originalOptions = deepClone(options);
|
|
8
|
+
// const originalCreatedFn = lifetimes.created;
|
|
9
|
+
|
|
10
|
+
// lifetimes.created = function() {
|
|
11
|
+
// before.forEach((func) => {
|
|
12
|
+
// func.call(this, componentOptions);
|
|
13
|
+
// });
|
|
14
|
+
|
|
15
|
+
// originalCreatedFn && originalCreatedFn.call(this);
|
|
16
|
+
|
|
17
|
+
// after.forEach((func) => {
|
|
18
|
+
// func.call(this, componentOptions);
|
|
19
|
+
// });
|
|
20
|
+
// };
|
|
21
|
+
// }
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ComponentOptions } from "../api/DefineComponent";
|
|
2
|
+
import type { FullCustomEvents, ShortCustomeEvents } from "../api/RootComponent/CustomEvents/CustomEventConstraint";
|
|
3
|
+
import type { Instance } from "../behaviors/BComputedAndWatch/types";
|
|
4
|
+
// 类型守卫
|
|
5
|
+
function IsFullCustomEvents(
|
|
6
|
+
customEventOptions: FullCustomEvents | ShortCustomeEvents,
|
|
7
|
+
): customEventOptions is FullCustomEvents {
|
|
8
|
+
return Object.prototype.toString.call(customEventOptions) === "[object Object]";
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 把customEvents字段配置变成函数放入到componentOptions.methods中
|
|
13
|
+
*/
|
|
14
|
+
export function customEventsHandle(componentOptions: ComponentOptions, customEventsConfig: object) {
|
|
15
|
+
/* istanbul ignore next */
|
|
16
|
+
componentOptions.methods ||= {};
|
|
17
|
+
|
|
18
|
+
for (const key in customEventsConfig) {
|
|
19
|
+
const customEventOptions = customEventsConfig[key];
|
|
20
|
+
|
|
21
|
+
if (IsFullCustomEvents(customEventOptions)) {
|
|
22
|
+
componentOptions.methods[key] = function(detail: unknown) {
|
|
23
|
+
(this as unknown as Instance).triggerEvent(key, detail, customEventOptions.options);
|
|
24
|
+
};
|
|
25
|
+
} else {
|
|
26
|
+
componentOptions.methods[key] = function(detail: unknown) {
|
|
27
|
+
(this as unknown as Instance).triggerEvent(key, detail);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentOptions } from "../api/DefineComponent";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 把customEvents字段配置变成函数放入到componentOptions.methods中
|
|
5
|
+
*/
|
|
6
|
+
export function eventsHandle(componentOptions: ComponentOptions, eventsConfig: object) {
|
|
7
|
+
componentOptions.methods ||= {};
|
|
8
|
+
|
|
9
|
+
Object.assign(componentOptions.methods, eventsConfig);
|
|
10
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Func } from "hry-types/src/Misc/_api";
|
|
2
|
+
import type { ComponentOptions, FuncConfig } from "../api/DefineComponent";
|
|
3
|
+
/**
|
|
4
|
+
* 把函数配置放入一个配置中依次运行
|
|
5
|
+
*/
|
|
6
|
+
function _funcConfigHandle(methodsConfig: object, configList: Record<string, Func[]>) {
|
|
7
|
+
for (const key in configList) {
|
|
8
|
+
methodsConfig[key] = function(...args: unknown[]) {
|
|
9
|
+
configList[key].forEach(ele => ele.call(this, ...args));
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function funcConfigHandle(
|
|
15
|
+
componentOptions: ComponentOptions,
|
|
16
|
+
isPage: boolean | undefined,
|
|
17
|
+
funcConfig: FuncConfig,
|
|
18
|
+
) {
|
|
19
|
+
if (isPage) {
|
|
20
|
+
// 页面时 生命周期方法(即 on 开头的方法),(https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/component.html)
|
|
21
|
+
// 测试框架无法测试page特性
|
|
22
|
+
funcConfig.pageLifetimes && _funcConfigHandle(componentOptions.methods ||= {}, funcConfig.pageLifetimes);
|
|
23
|
+
} else {
|
|
24
|
+
// 组件时
|
|
25
|
+
funcConfig.pageLifetimes && _funcConfigHandle(componentOptions.pageLifetimes ||= {}, funcConfig.pageLifetimes);
|
|
26
|
+
}
|
|
27
|
+
funcConfig.lifetimes && _funcConfigHandle(componentOptions.lifetimes ||= {}, funcConfig.lifetimes);
|
|
28
|
+
|
|
29
|
+
funcConfig.watch && _funcConfigHandle(componentOptions.watch ||= {}, funcConfig.watch);
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Func } from "hry-types/src/Misc/Func";
|
|
2
|
+
import type { ComponentOptions } from "../api/DefineComponent";
|
|
3
|
+
import { deepClone } from "./deepClone";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* onLoad生命周期劫持函数
|
|
7
|
+
*/
|
|
8
|
+
/* istanbul ignore next */
|
|
9
|
+
export function onLoadHijack(
|
|
10
|
+
options: ComponentOptions,
|
|
11
|
+
before: Func[],
|
|
12
|
+
after: Func[] = [],
|
|
13
|
+
) {
|
|
14
|
+
options.methods ||= {};
|
|
15
|
+
|
|
16
|
+
const cloneOpt = deepClone(options);
|
|
17
|
+
const originalOnLoad: Func | undefined = options.methods.onLoad;
|
|
18
|
+
|
|
19
|
+
options.methods.onLoad = function(props: unknown) {
|
|
20
|
+
before.forEach((func) => {
|
|
21
|
+
func.call(this, props, cloneOpt);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
originalOnLoad?.call(this, props);
|
|
25
|
+
|
|
26
|
+
after.forEach((func) => {
|
|
27
|
+
func.call(this, props, cloneOpt);
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { PageInstance } from "../api/RootComponent/Instance/RootComponentInstance";
|
|
2
|
+
import { INNERMARKER } from "./InnerMarker";
|
|
3
|
+
/**
|
|
4
|
+
* 对页面onLoad的参数data处理
|
|
5
|
+
* 1. 多余字段检测
|
|
6
|
+
* 2. 少传字段报错
|
|
7
|
+
* 3. 类型错误报错
|
|
8
|
+
* 针对通过 navigateTo传过来的数据解析
|
|
9
|
+
* @param option - option中的url是拼接了encodeURIComponent转码的data对象的,key为INNERMARKER.url
|
|
10
|
+
*/
|
|
11
|
+
export function onLoadReceivedDataHandle(
|
|
12
|
+
this: PageInstance,
|
|
13
|
+
option: Record<typeof INNERMARKER.url, string>,
|
|
14
|
+
) {
|
|
15
|
+
const innerData: string | undefined = option[INNERMARKER.url];
|
|
16
|
+
// 未使用自定义的navigateTo
|
|
17
|
+
if (innerData === undefined) return;
|
|
18
|
+
const optionData = JSON.parse(decodeURIComponent(innerData));
|
|
19
|
+
|
|
20
|
+
// 使用navigateTo
|
|
21
|
+
for (const key in optionData) {
|
|
22
|
+
option[key] = optionData[key];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// setData会触发计算属性 继承属性等 。
|
|
26
|
+
this.setData(option as any);
|
|
27
|
+
|
|
28
|
+
delete option[INNERMARKER.url];
|
|
29
|
+
|
|
30
|
+
delete this.data[INNERMARKER.url];
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ComponentOptions, FuncConfig } from "../api/DefineComponent";
|
|
2
|
+
import type { RootComponentDoc } from "../api/RootComponent/RootComponentDoc";
|
|
3
|
+
import { funcFieldsCollect, otherFieldsHandle } from "./collector";
|
|
4
|
+
|
|
5
|
+
import { customEventsHandle } from "./customEventsHandle";
|
|
6
|
+
import { eventsHandle } from "./eventsHandle";
|
|
7
|
+
|
|
8
|
+
export function rootComponentFieldHandle(
|
|
9
|
+
rootComponentConfig: RootComponentDoc,
|
|
10
|
+
componentOptions: ComponentOptions,
|
|
11
|
+
funcConfig: FuncConfig,
|
|
12
|
+
) {
|
|
13
|
+
rootComponentConfig.customEvents && customEventsHandle(componentOptions, rootComponentConfig.customEvents);
|
|
14
|
+
|
|
15
|
+
rootComponentConfig.events && eventsHandle(componentOptions, rootComponentConfig.events);
|
|
16
|
+
|
|
17
|
+
// 框架不支持测试页面
|
|
18
|
+
/* istanbul ignore next */
|
|
19
|
+
rootComponentConfig.pageLifetimes
|
|
20
|
+
&& funcFieldsCollect(rootComponentConfig.pageLifetimes, funcConfig, "pageLifetimes");
|
|
21
|
+
|
|
22
|
+
rootComponentConfig.lifetimes && funcFieldsCollect(rootComponentConfig.lifetimes, funcConfig, "lifetimes");
|
|
23
|
+
|
|
24
|
+
rootComponentConfig.watch && funcFieldsCollect(rootComponentConfig.watch, funcConfig, "watch");
|
|
25
|
+
|
|
26
|
+
otherFieldsHandle(componentOptions, rootComponentConfig);
|
|
27
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ComponentOptions, FuncConfig } from "../api/DefineComponent";
|
|
2
|
+
import type { SubComponentOptions } from "../api/SubComponent";
|
|
3
|
+
import { funcFieldsCollect, otherFieldsHandle } from "./collector";
|
|
4
|
+
|
|
5
|
+
import { eventsHandle } from "./eventsHandle";
|
|
6
|
+
|
|
7
|
+
export function subComponentsHandle(
|
|
8
|
+
componentOptions: ComponentOptions,
|
|
9
|
+
subComponents: SubComponentOptions[],
|
|
10
|
+
funcConfig: FuncConfig,
|
|
11
|
+
) {
|
|
12
|
+
subComponents.forEach((subOption) => {
|
|
13
|
+
subOption.events && eventsHandle(componentOptions, subOption.events);
|
|
14
|
+
|
|
15
|
+
// 框架不支持测试页面
|
|
16
|
+
/* istanbul ignore next */
|
|
17
|
+
subOption.pageLifetimes && funcFieldsCollect(subOption.pageLifetimes, funcConfig, "pageLifetimes");
|
|
18
|
+
|
|
19
|
+
subOption.lifetimes && funcFieldsCollect(subOption.lifetimes, funcConfig, "lifetimes");
|
|
20
|
+
|
|
21
|
+
subOption.watch && funcFieldsCollect(subOption.watch, funcConfig, "watch");
|
|
22
|
+
|
|
23
|
+
otherFieldsHandle(componentOptions, subOption);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Data/expected/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,aAAa,EAAE,CAAC;IACd,UAAU,EAAE;QACV,GAAG,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QAEJ,GAAG,EAAE,GAAG;KACT;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Checking } from "hry-types";
|
|
2
|
-
import { RootComponent } from "../..";
|
|
3
|
-
const RootDoc = RootComponent()({
|
|
4
|
-
data: {
|
|
5
|
-
gender: "male",
|
|
6
|
-
num: 123,
|
|
7
|
-
_innernalFields: false,
|
|
8
|
-
},
|
|
9
|
-
methods: {
|
|
10
|
-
foo() {
|
|
11
|
-
Checking;
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
Checking;
|
|
16
|
-
const EmptyDataRootDoc = RootComponent()({
|
|
17
|
-
data: {},
|
|
18
|
-
methods: {
|
|
19
|
-
M1() {
|
|
20
|
-
Checking;
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
Checking;
|
|
25
|
-
const noDataRootDoc = RootComponent()({
|
|
26
|
-
methods: {
|
|
27
|
-
M1() {
|
|
28
|
-
Checking;
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
Checking;
|
|
33
|
-
//# sourceMappingURL=normal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normal.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Data/expected/normal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAC9B,IAAI,EAAE;QACJ,MAAM,EAAsB,MAAM;QAClC,GAAG,EAAE,GAAG;QACR,eAAe,EAAE,KAAK;KACvB;IACD,OAAO,EAAE;QACP,GAAG;YAED,QAAoE,CAAC;QACvE,CAAC;KACF;CACF,CAAC,CAAC;AASH,QAA4D,CAAC;AAK7D,MAAM,gBAAgB,GAAG,aAAa,EAAE,CAAC;IACvC,IAAI,EAAE,EAAE;IACR,OAAO,EAAE;QACP,EAAE;YAEA,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAA6E,CAAC;AAK9E,MAAM,aAAa,GAAG,aAAa,EAAE,CAAC;IACpC,OAAO,EAAE;QACP,EAAE;YAEA,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAA0E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RootComponent } from "../../../../index";
|
|
2
|
-
RootComponent()({
|
|
3
|
-
properties: {
|
|
4
|
-
num: {
|
|
5
|
-
type: Number,
|
|
6
|
-
values: 123,
|
|
7
|
-
},
|
|
8
|
-
bool: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
value: true,
|
|
11
|
-
optionalType: [String],
|
|
12
|
-
},
|
|
13
|
-
union: {
|
|
14
|
-
type: Number,
|
|
15
|
-
value: 123,
|
|
16
|
-
optionalTypes: [String],
|
|
17
|
-
observable: "",
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
RootComponent()({
|
|
22
|
-
properties: {
|
|
23
|
-
str: {
|
|
24
|
-
type: String,
|
|
25
|
-
value: 123,
|
|
26
|
-
},
|
|
27
|
-
optionalObj: {
|
|
28
|
-
type: Object,
|
|
29
|
-
value: null,
|
|
30
|
-
},
|
|
31
|
-
str_num: {
|
|
32
|
-
type: String,
|
|
33
|
-
value: 123,
|
|
34
|
-
optionalTypes: [Number],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Properties/expected/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAqB,MAAM,mBAAmB,CAAC;AAIrE,aAAa,EAAE,CAAC;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,MAAM;YAEZ,MAAM,EAAE,GAAG;SACZ;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,IAAI;YAEX,YAAY,EAAE,CAAC,MAAM,CAAC;SACvB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;YACV,aAAa,EAAE,CAAC,MAAM,CAAC;YAEvB,UAAU,EAAE,EAAE;SACf;KACF;CACF,CAAC,CAAC;AAGH,aAAa,EAAE,CAAC;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,MAAM;YAEZ,KAAK,EAAE,GAAG;SACX;QACD,WAAW,EAAE;YAEX,IAAI,EAAE,MAAiC;YAEvC,KAAK,EAAE,IAAI;SACZ;QACD,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YAEZ,KAAK,EAAE,GAAG;YACV,aAAa,EAAE,CAAC,MAAM,CAAC;SACxB;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalEmpty.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Properties/expected/normalEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC;IAC/B,UAAU,EAAE,EAAE;IACd,OAAO,EAAE;QACP,GAAG;YAED,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAAsE,CAAC;AAKvE,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC;IACnC,OAAO,EAAE;QACP,GAAG;YAED,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAAsE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Checking } from "hry-types";
|
|
2
|
-
import { RootComponent } from "../..";
|
|
3
|
-
const OptionalDoc = RootComponent()({
|
|
4
|
-
properties: {
|
|
5
|
-
optional_num: {
|
|
6
|
-
type: Number,
|
|
7
|
-
value: 123,
|
|
8
|
-
},
|
|
9
|
-
optional_gender: {
|
|
10
|
-
type: String,
|
|
11
|
-
value: "male",
|
|
12
|
-
},
|
|
13
|
-
optional_tuple: {
|
|
14
|
-
type: Array,
|
|
15
|
-
value: [1, "a", true],
|
|
16
|
-
},
|
|
17
|
-
optional_obj: {
|
|
18
|
-
type: Object,
|
|
19
|
-
value: {
|
|
20
|
-
id: "id",
|
|
21
|
-
age: 20,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
optional_objOrNull: {
|
|
25
|
-
type: Object,
|
|
26
|
-
value: null,
|
|
27
|
-
},
|
|
28
|
-
optional_union: {
|
|
29
|
-
type: String,
|
|
30
|
-
value: "string",
|
|
31
|
-
optionalTypes: [Number],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
methods: {
|
|
35
|
-
foo() {
|
|
36
|
-
Checking;
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
Checking;
|
|
41
|
-
const OptionalDocWhenIsPage = RootComponent()({
|
|
42
|
-
isPage: true,
|
|
43
|
-
properties: {
|
|
44
|
-
optional_num: {
|
|
45
|
-
type: Number,
|
|
46
|
-
value: 123,
|
|
47
|
-
},
|
|
48
|
-
optional_gender: {
|
|
49
|
-
type: String,
|
|
50
|
-
value: "male",
|
|
51
|
-
},
|
|
52
|
-
optional_tuple: {
|
|
53
|
-
type: Array,
|
|
54
|
-
value: [1, "a", true],
|
|
55
|
-
},
|
|
56
|
-
optional_obj: {
|
|
57
|
-
type: Object,
|
|
58
|
-
value: {
|
|
59
|
-
id: "id",
|
|
60
|
-
age: 20,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
optional_objOrNull: {
|
|
64
|
-
type: Object,
|
|
65
|
-
value: null,
|
|
66
|
-
},
|
|
67
|
-
optional_union: {
|
|
68
|
-
type: String,
|
|
69
|
-
value: "string",
|
|
70
|
-
optionalTypes: [Number],
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
methods: {
|
|
74
|
-
foo() {
|
|
75
|
-
Checking;
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
Checking;
|
|
80
|
-
//# sourceMappingURL=normalOptional.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalOptional.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Properties/expected/normalOptional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAMtC,MAAM,WAAW,GAAG,aAAa,EAAE,CAAC;IAClC,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;SACX;QACD,eAAe,EAAE;YACf,IAAI,EAAE,MAAyC;YAC/C,KAAK,EAAE,MAAM;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE,KAA2D;YACjE,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAA8B;SACnD;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAiC;YACvC,KAAK,EAAE;gBACL,EAAE,EAAE,IAAI;gBACR,GAAG,EAAE,EAAE;aACR;SACF;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,MAAwC;YAC9C,KAAK,EAAE,IAAI;SACZ;QACD,cAAc,EAAE;YACd,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,CAAC,MAAM,CAAC;SACxB;KACF;IACD,OAAO,EAAE;QACP,GAAG;YAED,QAWC,CAAC;QACJ,CAAC;KACF;CACF,CAAC,CAAC;AAaH,QAA0E,CAAC;AAG3E,MAAM,qBAAqB,GAAG,aAAa,EAAE,CAAC;IAC5C,MAAM,EAAE,IAAI;IACZ,UAAU,EAAE;QACV,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,GAAG;SACX;QACD,eAAe,EAAE;YACf,IAAI,EAAE,MAAyC;YAC/C,KAAK,EAAE,MAAM;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE,KAA2D;YACjE,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAA8B;SACnD;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,MAAiC;YACvC,KAAK,EAAE;gBACL,EAAE,EAAE,IAAI;gBACR,GAAG,EAAE,EAAE;aACR;SACF;QACD,kBAAkB,EAAE;YAClB,IAAI,EAAE,MAAwC;YAC9C,KAAK,EAAE,IAAI;SACZ;QACD,cAAc,EAAE;YACd,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,QAAQ;YACf,aAAa,EAAE,CAAC,MAAM,CAAC;SACxB;KACF;IACD,OAAO,EAAE;QACP,GAAG;YAED,QAWC,CAAC;QACJ,CAAC;KACF;CACF,CAAC,CAAC;AAaH,QAA8F,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { SpecificType } from "../../../../types/SpecificType";
|
|
2
|
-
export type Mock_User = {
|
|
3
|
-
id: string;
|
|
4
|
-
age?: number;
|
|
5
|
-
};
|
|
6
|
-
export type Mock_Cart = {
|
|
7
|
-
id: string;
|
|
8
|
-
selectedCount: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const mock_requiredSingle: {
|
|
11
|
-
str: StringConstructor;
|
|
12
|
-
num: NumberConstructor;
|
|
13
|
-
bool: BooleanConstructor;
|
|
14
|
-
arr: ArrayConstructor;
|
|
15
|
-
obj: ObjectConstructor;
|
|
16
|
-
tuple: SpecificType<[string, number, boolean]>;
|
|
17
|
-
union_str: SpecificType<"male" | "female">;
|
|
18
|
-
union_num: SpecificType<0 | 1 | 2>;
|
|
19
|
-
union_bool: SpecificType<boolean>;
|
|
20
|
-
union_arr: SpecificType<string[] | number[]>;
|
|
21
|
-
union_obj: SpecificType<Mock_User | Mock_Cart>;
|
|
22
|
-
};
|
|
23
|
-
export declare const mock_requiredUnion: {
|
|
24
|
-
union_str_num_bool: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
optionalTypes: (NumberConstructor | BooleanConstructor)[];
|
|
27
|
-
};
|
|
28
|
-
union_literalStr_Literalnum: {
|
|
29
|
-
type: SpecificType<"male" | "female">;
|
|
30
|
-
optionalTypes: SpecificType<0 | 1 | 2>[];
|
|
31
|
-
};
|
|
32
|
-
union_mockUser_num: {
|
|
33
|
-
type: SpecificType<Mock_User>;
|
|
34
|
-
optionalTypes: NumberConstructor[];
|
|
35
|
-
};
|
|
36
|
-
union_num_mockUser: {
|
|
37
|
-
type: NumberConstructor;
|
|
38
|
-
optionalTypes: SpecificType<Mock_User>[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export declare const mock_requiredTypes: {
|
|
42
|
-
union_str_num_bool: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
optionalTypes: (NumberConstructor | BooleanConstructor)[];
|
|
45
|
-
};
|
|
46
|
-
union_literalStr_Literalnum: {
|
|
47
|
-
type: SpecificType<"male" | "female">;
|
|
48
|
-
optionalTypes: SpecificType<0 | 1 | 2>[];
|
|
49
|
-
};
|
|
50
|
-
union_mockUser_num: {
|
|
51
|
-
type: SpecificType<Mock_User>;
|
|
52
|
-
optionalTypes: NumberConstructor[];
|
|
53
|
-
};
|
|
54
|
-
union_num_mockUser: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
optionalTypes: SpecificType<Mock_User>[];
|
|
57
|
-
};
|
|
58
|
-
str: StringConstructor;
|
|
59
|
-
num: NumberConstructor;
|
|
60
|
-
bool: BooleanConstructor;
|
|
61
|
-
arr: ArrayConstructor;
|
|
62
|
-
obj: ObjectConstructor;
|
|
63
|
-
tuple: SpecificType<[string, number, boolean]>;
|
|
64
|
-
union_str: SpecificType<"male" | "female">;
|
|
65
|
-
union_num: SpecificType<0 | 1 | 2>;
|
|
66
|
-
union_bool: SpecificType<boolean>;
|
|
67
|
-
union_arr: SpecificType<string[] | number[]>;
|
|
68
|
-
union_obj: SpecificType<Mock_User | Mock_Cart>;
|
|
69
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Checking } from "hry-types";
|
|
2
|
-
import { RootComponent } from "../..";
|
|
3
|
-
export const mock_requiredSingle = {
|
|
4
|
-
str: String,
|
|
5
|
-
num: Number,
|
|
6
|
-
bool: Boolean,
|
|
7
|
-
arr: Array,
|
|
8
|
-
obj: Object,
|
|
9
|
-
tuple: Array,
|
|
10
|
-
union_str: String,
|
|
11
|
-
union_num: Number,
|
|
12
|
-
union_bool: Boolean,
|
|
13
|
-
union_arr: Array,
|
|
14
|
-
union_obj: Object,
|
|
15
|
-
};
|
|
16
|
-
export const mock_requiredUnion = {
|
|
17
|
-
union_str_num_bool: {
|
|
18
|
-
type: String,
|
|
19
|
-
optionalTypes: [Number, Boolean],
|
|
20
|
-
},
|
|
21
|
-
union_literalStr_Literalnum: {
|
|
22
|
-
type: String,
|
|
23
|
-
optionalTypes: [Number],
|
|
24
|
-
},
|
|
25
|
-
union_mockUser_num: {
|
|
26
|
-
type: Object,
|
|
27
|
-
optionalTypes: [Number],
|
|
28
|
-
},
|
|
29
|
-
union_num_mockUser: {
|
|
30
|
-
type: Number,
|
|
31
|
-
optionalTypes: [Object],
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const mock_requiredTypes = Object.assign(Object.assign({}, mock_requiredSingle), mock_requiredUnion);
|
|
35
|
-
const RequiredDoc = RootComponent()({
|
|
36
|
-
properties: mock_requiredTypes,
|
|
37
|
-
methods: {
|
|
38
|
-
foo() {
|
|
39
|
-
Checking;
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
Checking;
|
|
44
|
-
//# sourceMappingURL=normalRequired.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalRequired.js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Properties/expected/normalRequired.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAIhD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAsBtC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;IACX,IAAI,EAAE,OAAO;IACb,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,KAA2D;IAClE,SAAS,EAAE,MAAyC;IACpD,SAAS,EAAE,MAAiC;IAC5C,UAAU,EAAE,OAAqC;IACjD,SAAS,EAAE,KAA0C;IACrD,SAAS,EAAE,MAA6C;CAChB,CAAC;AAK3C,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KACjC;IACD,2BAA2B,EAAE;QAC3B,IAAI,EAAE,MAAyC;QAC/C,aAAa,EAAE,CAAC,MAAiC,CAAC;KACnD;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAiC;QACvC,aAAa,EAAE,CAAC,MAAM,CAAC;KACxB;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,CAAC,MAAiC,CAAC;KACnD;CACsC,CAAC;AAK1C,MAAM,CAAC,MAAM,kBAAkB,GAAG,gCAC7B,mBAAmB,GACnB,kBAAkB,CACiB,CAAC;AAoBzC,MAAM,WAAW,GAAG,aAAa,EAAE,CAAC;IAClC,UAAU,EAAE,kBAAkB;IAC9B,OAAO,EAAE;QACP,GAAG;YAED,QAAyE,CAAC;QAC5E,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAA2E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Checking } from "hry-types";
|
|
2
|
-
import { RootComponent } from "../..";
|
|
3
|
-
const emptyObj = RootComponent()({
|
|
4
|
-
properties: {},
|
|
5
|
-
methods: {
|
|
6
|
-
foo() {
|
|
7
|
-
Checking;
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
Checking;
|
|
12
|
-
const noProperties = RootComponent()({
|
|
13
|
-
methods: {
|
|
14
|
-
foo() {
|
|
15
|
-
Checking;
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
Checking;
|
|
20
|
-
//# sourceMappingURL=normalEmpty.test..js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalEmpty.test..js","sourceRoot":"","sources":["../../../../../src/api/RootComponent/Properties/test/normalEmpty.test..ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC;IAC/B,UAAU,EAAE,EAAE;IACd,OAAO,EAAE;QACP,GAAG;YAED,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAIa,CAAC;AAKd,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC;IACnC,OAAO,EAAE;QACP,GAAG;YAED,QAAyC,CAAC;QAC5C,CAAC;KACF;CACF,CAAC,CAAC;AAGH,QAIa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RestorePropTypeOfList.js","sourceRoot":"","sources":["../../src/types/RestorePropTypeOfList.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,WAAW,CAAC;AAmBhD,QAAuC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Func } from "hry-types/src/Misc/Func";
|
|
2
|
-
import type { ComponentOptions, FuncConfig } from "../api/DefineComponent";
|
|
3
|
-
import type { PageInstance } from "../api/RootComponent/Instance/RootComponentInstance";
|
|
4
|
-
import type { RootComponentDoc } from "../api/RootComponent/RootComponentDoc";
|
|
5
|
-
import type { SubComponentOptions } from "../api/SubComponent";
|
|
6
|
-
import type { Instance } from "../behaviors/BComputedAndWatch/types";
|
|
7
|
-
import { INNERMARKER } from "./InnerMarker";
|
|
8
|
-
export declare function rootComponentFieldHandle(rootComponentConfig: RootComponentDoc, componentOptions: ComponentOptions, funcConfig: FuncConfig): void;
|
|
9
|
-
export declare function subComponentsHandle(componentOptions: ComponentOptions, subComponents: SubComponentOptions[], funcConfig: FuncConfig): void;
|
|
10
|
-
export declare function funcConfigHandle(componentOptions: ComponentOptions, isPage: boolean | undefined, funcConfig: FuncConfig): void;
|
|
11
|
-
export declare function createdHijack(componentOptions: ComponentOptions, before?: Func[], after?: Func[]): void;
|
|
12
|
-
export declare function addComputedFieldToMethods(componentOptions: ComponentOptions): void;
|
|
13
|
-
export declare function attachedHijack(componentOptions: ComponentOptions, beforeHandleList?: Func[], afterHandleList?: Func[]): void;
|
|
14
|
-
export declare function detachedHijack(componentOptions: ComponentOptions, beforeHandleList?: Func[], afterHandleList?: Func[]): void;
|
|
15
|
-
export declare function storeHandle(this: Instance): void;
|
|
16
|
-
export declare function excludeFields(config: object, excludeKeys: string[]): void;
|
|
17
|
-
export declare function onLoadHijack(options: ComponentOptions, before: Func[], after?: Func[]): void;
|
|
18
|
-
export declare function onLoadReceivedDataHandle(this: PageInstance, option: Record<typeof INNERMARKER.url, string>): void;
|