phecda-core 2.0.0-alpha.7 → 2.0.1-alpha.0
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.d.ts +21 -3
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/dist/index.global.js +0 -682
- package/dist/pipe-5d060247.d.ts +0 -21
- package/dist/preset/index.d.ts +0 -1
- package/dist/preset/index.global.js +0 -209
- package/dist/preset/index.js +0 -228
- package/dist/preset/index.mjs +0 -186
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export { a as isArray, b as isBoolean, k as isCnName, m as isDate, l as isEnName, o as isHexColor, j as isIdCard, g as isLandline, h as isMailBox, f as isMobile, c as isNumber, e as isObject, i as isOption, p as isPostalCode, d as isString, n as isWechat, t as toNumber, q as toString } from './pipe-5d060247.js';
|
|
2
|
-
|
|
3
1
|
interface NameSpace {
|
|
4
2
|
[name: string]: Phecda;
|
|
5
3
|
}
|
|
@@ -128,4 +126,24 @@ declare function Watcher(eventName: keyof Events, options?: {
|
|
|
128
126
|
declare function Effect(eventName: string, options?: any): (obj: any, key: string) => void;
|
|
129
127
|
declare function Storage(storeKey?: string): (target: any, key?: PropertyKey) => void;
|
|
130
128
|
|
|
131
|
-
|
|
129
|
+
declare function isOption(): (obj: any, key: PropertyKey) => void;
|
|
130
|
+
declare function isArray(info?: string): (obj: any, key: PropertyKey) => void;
|
|
131
|
+
declare function isBoolean(info?: string): (obj: any, key: PropertyKey) => void;
|
|
132
|
+
declare function isNumber(info?: string): (obj: any, key: PropertyKey) => void;
|
|
133
|
+
declare function isString(info?: string): (obj: any, key: PropertyKey) => void;
|
|
134
|
+
declare function isObject(info?: string): (obj: any, key: PropertyKey) => void;
|
|
135
|
+
declare function isMobile(info?: string): (obj: any, key: PropertyKey) => void;
|
|
136
|
+
declare function isLandline(info?: string): (obj: any, key: PropertyKey) => void;
|
|
137
|
+
declare function isMailBox(info?: string): (obj: any, key: PropertyKey) => void;
|
|
138
|
+
declare function isIdCard(info?: string): (obj: any, key: PropertyKey) => void;
|
|
139
|
+
declare function isCnName(info?: string): (obj: any, key: PropertyKey) => void;
|
|
140
|
+
declare function isEnName(info?: string): (obj: any, key: PropertyKey) => void;
|
|
141
|
+
declare function isDate(info?: string): (obj: any, key: PropertyKey) => void;
|
|
142
|
+
declare function isWechat(info?: string): (obj: any, key: PropertyKey) => void;
|
|
143
|
+
declare function isHexColor(info?: string): (obj: any, key: PropertyKey) => void;
|
|
144
|
+
declare function isPostalCode(info?: string): (obj: any, key: PropertyKey) => void;
|
|
145
|
+
|
|
146
|
+
declare function toNumber(): (obj: any, key: PropertyKey) => void;
|
|
147
|
+
declare function toString(): (obj: any, key: PropertyKey) => void;
|
|
148
|
+
|
|
149
|
+
export { Assign, Bind, ClassValue, Clear, DataMap, Effect, Empty, Err, Events, Expose, Global, Handler, Ignore, Init, Inject, InjectData, NameSpace, Phecda, Pipe, Provide, Rule, Storage, Tag, UsePipeOptions, Watcher, activeInstance, addDecoToClass, classToValue, getBind, getExposeKey, getHandler, getInitEvent, getModelState, getOwnExposeKey, getOwnHandler, getOwnIgnoreKey, getOwnInitEvent, getOwnModelState, getOwnState, getProperty, getState, getTag, init, injectProperty, isArray, isBoolean, isCnName, isDate, isEnName, isHexColor, isIdCard, isLandline, isMailBox, isMobile, isNumber, isObject, isOption, isPhecda, isPostalCode, isString, isWechat, plainToClass, regisHandler, regisInitEvent, register, registerAsync, setExposeKey, setIgnoreKey, setModelVar, setState, snapShot, to, toNumber, toString, validate };
|
package/dist/index.js
CHANGED
|
@@ -346,6 +346,7 @@ function Pipe(v) {
|
|
|
346
346
|
__name(Pipe, "Pipe");
|
|
347
347
|
function Tag(tag) {
|
|
348
348
|
return (target) => {
|
|
349
|
+
init(target.prototype);
|
|
349
350
|
target.prototype.__TAG__ = tag;
|
|
350
351
|
};
|
|
351
352
|
}
|
|
@@ -382,6 +383,7 @@ function Global(target) {
|
|
|
382
383
|
}
|
|
383
384
|
__name(Global, "Global");
|
|
384
385
|
function Empty(_target) {
|
|
386
|
+
init(_target.prototype);
|
|
385
387
|
}
|
|
386
388
|
__name(Empty, "Empty");
|
|
387
389
|
var DataMap = {};
|
package/dist/index.mjs
CHANGED
|
@@ -255,6 +255,7 @@ function Pipe(v) {
|
|
|
255
255
|
__name(Pipe, "Pipe");
|
|
256
256
|
function Tag(tag) {
|
|
257
257
|
return (target) => {
|
|
258
|
+
init(target.prototype);
|
|
258
259
|
target.prototype.__TAG__ = tag;
|
|
259
260
|
};
|
|
260
261
|
}
|
|
@@ -291,6 +292,7 @@ function Global(target) {
|
|
|
291
292
|
}
|
|
292
293
|
__name(Global, "Global");
|
|
293
294
|
function Empty(_target) {
|
|
295
|
+
init(_target.prototype);
|
|
294
296
|
}
|
|
295
297
|
__name(Empty, "Empty");
|
|
296
298
|
var DataMap = {};
|