Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xiaohaih/condition-core

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xiaohaih/condition-core - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

2

CHANGELOG.md
# @xiaohaih/condition-core
## 0.1.10
## 0.1.9

@@ -4,0 +6,0 @@

378

dist/index.d.ts

@@ -1,4 +0,3 @@

import * as _vue_composition_api from '@vue/composition-api';
import * as vue from 'vue';
import { Ref, PropType, ExtractPropTypes } from 'vue-demi';
import * as vue_demi from 'vue-demi';
import { Ref, PropType, UnwrapRef, ExtractPropTypes } from 'vue-demi';

@@ -62,16 +61,3 @@ /** 容器注入的 key */

*/
declare const _default$4: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{
child: CommonMethod[];
wrapperInstance: ProvideValue;
query: _vue_composition_api.Ref<{
[x: string]: string;
}>;
getQuery: () => {
[x: string]: string;
};
initQuery: () => void;
querySearch: () => Promise<string | undefined>;
resetAndSearch: () => void;
reset: () => void;
}> & _vue_composition_api.Data, {}, {}, {
declare const _default$4: vue_demi.DefineComponent<{
readonly tag: {

@@ -101,3 +87,17 @@ readonly type: PropType<string | object>;

};
}, _vue_composition_api.ExtractPropTypes<{
}, {
child: CommonMethod[];
wrapperInstance: ProvideValue;
query: vue_demi.Ref<Record<string, string>>;
getQuery: () => {
[x: string]: string;
};
initQuery: () => void;
querySearch: () => Promise<string | undefined>;
resetAndSearch: () => void;
reset: () => void;
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {
ready: (query: Record<string, any>) => boolean;
search: (query: Record<string, any>) => boolean;
}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{
readonly tag: {

@@ -127,42 +127,5 @@ readonly type: PropType<string | object>;

};
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{
readonly tag: string | object;
readonly datum: Record<string, any>;
readonly toast: (msg: string) => void;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly realtime?: boolean | undefined;
readonly immediateSearch?: boolean | undefined;
} & {
onReady?: ((query: Record<string, any>) => any) | undefined;
}>> & {
onSearch?: ((query: Record<string, any>) => any) | undefined;
}, _vue_composition_api.ShallowUnwrapRef<{
child: CommonMethod[];
wrapperInstance: ProvideValue;
query: _vue_composition_api.Ref<{
[x: string]: string;
}>;
getQuery: () => {
[x: string]: string;
};
initQuery: () => void;
querySearch: () => Promise<string | undefined>;
resetAndSearch: () => void;
reset: () => void;
}>, _vue_composition_api.Data, {}, {}, {}, {}, {
ready: (query: Record<string, any>) => boolean;
search: (query: Record<string, any>) => boolean;
}, {
readonly tag: string | object;
readonly datum: Record<string, any>;
readonly toast: (msg: string) => void;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly realtime?: boolean | undefined;
readonly immediateSearch?: boolean | undefined;
} & {
onReady?: ((query: Record<string, any>) => any) | undefined;
onSearch?: ((query: Record<string, any>) => any) | undefined;
}, {

@@ -172,3 +135,3 @@ readonly tag: string | object;

readonly toast: (msg: string) => void;
}, true>);
}>;

@@ -178,16 +141,3 @@ /**

*/
declare const _default$3: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>;
customFilterMethod: _vue_composition_api.ComputedRef<((value: string) => void) | undefined>;
blur: () => void;
updateCheckedValue: (value: string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}> & _vue_composition_api.Data, {}, {}, {
declare const _default$3: vue_demi.DefineComponent<{
readonly valueKey: {

@@ -250,3 +200,16 @@ readonly type: PropType<string>;

};
}, _vue_composition_api.ExtractPropTypes<{
}, {
checked: vue_demi.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: vue_demi.Ref<boolean>;
insetHide: vue_demi.Ref<boolean>;
finalOption: vue_demi.ComputedRef<Record<string, any>[]>;
customFilterMethod: vue_demi.ComputedRef<((value: string) => void) | undefined>;
blur: () => void;
updateCheckedValue: (value: string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{
readonly valueKey: {

@@ -309,57 +272,6 @@ readonly type: PropType<string>;

};
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{
readonly query: Record<string, any>;
}>>, {
readonly options: Record<string, any>[];
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly valueKey: string;
readonly labelKey: string;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly multiple?: boolean | undefined;
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined;
readonly filterMethod?: ((val: string, data: Record<string, any>) => boolean) | undefined;
}, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>;
customFilterMethod: _vue_composition_api.ComputedRef<((value: string) => void) | undefined>;
blur: () => void;
updateCheckedValue: (value: string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, {
readonly query: Record<string, any>;
readonly options: Record<string, any>[];
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly valueKey: string;
readonly labelKey: string;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly multiple?: boolean | undefined;
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined;
readonly filterMethod?: ((val: string, data: Record<string, any>) => boolean) | undefined;
}, {
readonly options: Record<string, any>[];
readonly emptyValue: string | null | undefined;
}, true>);
}>;

@@ -369,13 +281,3 @@ /**

*/
declare const _default$2: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
debounceChange: (value: string) => void;
enterHandler: (ev: KeyboardEvent | string) => void;
reset: () => CommonMethod;
}> & _vue_composition_api.Data, {}, {}, {
declare const _default$2: vue_demi.DefineComponent<{
/**

@@ -428,3 +330,13 @@ * debounce change 事件

};
}, _vue_composition_api.ExtractPropTypes<{
}, {
checked: vue_demi.Ref<string>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: vue_demi.Ref<boolean>;
insetHide: vue_demi.Ref<boolean>;
debounceChange: (value: string) => void;
enterHandler: (ev: KeyboardEvent | string) => void;
reset: () => CommonMethod;
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{
/**

@@ -477,46 +389,6 @@ * debounce change 事件

};
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{
readonly query: Record<string, any>;
readonly field: string;
}>>, {
readonly emptyValue: string | null | undefined;
readonly waitTime: number;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly realtime?: boolean | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
}, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
debounceChange: (value: string) => void;
enterHandler: (ev: KeyboardEvent | string) => void;
reset: () => CommonMethod;
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, {
readonly query: Record<string, any>;
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly waitTime: number;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly realtime?: boolean | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
}, {
readonly emptyValue: string | null | undefined;
readonly waitTime: number;
}, true>);
}>;

@@ -526,13 +398,3 @@ /**

*/
declare const _default$1: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
updateCheckedValue: (value: null | string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}> & _vue_composition_api.Data, {}, {}, {
declare const _default$1: vue_demi.DefineComponent<{
readonly range: {

@@ -584,3 +446,13 @@ readonly type: PropType<boolean>;

};
}, _vue_composition_api.ExtractPropTypes<{
}, {
checked: vue_demi.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: vue_demi.Ref<boolean>;
insetHide: vue_demi.Ref<boolean>;
updateCheckedValue: (value: null | string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{
readonly range: {

@@ -632,48 +504,6 @@ readonly type: PropType<boolean>;

};
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{
readonly query: Record<string, any>;
readonly field: string;
}>>, {
readonly emptyValue: string | null | undefined;
readonly range: boolean;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly beginField?: string | undefined;
readonly endField?: string | undefined;
}, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<string | string[]>;
getQuery: () => {
[x: string]: any;
};
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
updateCheckedValue: (value: null | string | string[]) => void;
change: (value: string | string[]) => void;
reset: () => CommonMethod;
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, {
readonly query: Record<string, any>;
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly range: boolean;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly beginField?: string | undefined;
readonly endField?: string | undefined;
}, {
readonly emptyValue: string | null | undefined;
readonly range: boolean;
}, true>);
}>;

@@ -684,11 +514,3 @@ type ValueType = string | number | null | undefined;

*/
declare const _default: vue.ComponentOptions<vue.default, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<ValueType[]>;
getQuery: () => {};
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>;
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
change: (values: ValueType[] | ValueType) => void;
reset: () => CommonMethod;
}> & _vue_composition_api.Data, {}, {}, {
declare const _default: vue_demi.DefineComponent<{
readonly fields: {

@@ -754,3 +576,11 @@ readonly type: PropType<string[]>;

};
}, _vue_composition_api.ExtractPropTypes<{
}, {
checked: vue_demi.Ref<ValueType[]>;
getQuery: () => {};
finalOption: vue_demi.ComputedRef<Record<string, any>[]>;
insetDisabled: vue_demi.Ref<boolean>;
insetHide: vue_demi.Ref<boolean>;
change: (values: ValueType[] | ValueType) => void;
reset: () => CommonMethod;
}, unknown, {}, {}, vue_demi.ComponentOptionsMixin, vue_demi.ComponentOptionsMixin, {}, string, vue_demi.VNodeProps & vue_demi.AllowedComponentProps & vue_demi.ComponentCustomProps, Readonly<vue_demi.ExtractPropTypes<{
readonly fields: {

@@ -816,53 +646,7 @@ readonly type: PropType<string[]>;

};
}>> & Omit<vue.VueConstructor<vue.default>, never> & (new (...args: any[]) => _vue_composition_api.ComponentRenderProxy<{
readonly query: Record<string, any>;
}>>, {
readonly options: Record<string, any>[];
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly valueKey: string;
readonly emitPath: boolean;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined;
readonly fields?: string[] | undefined;
readonly childrenKey?: string | undefined;
}, _vue_composition_api.ShallowUnwrapRef<{
checked: _vue_composition_api.Ref<ValueType[]>;
getQuery: () => {};
finalOption: _vue_composition_api.ComputedRef<Record<string, any>[]>;
insetDisabled: _vue_composition_api.Ref<boolean>;
insetHide: _vue_composition_api.Ref<boolean>;
change: (values: ValueType[] | ValueType) => void;
reset: () => CommonMethod;
}>, _vue_composition_api.Data, {}, {}, {}, {}, {}, {
readonly query: Record<string, any>;
readonly options: Record<string, any>[];
readonly field: string;
readonly emptyValue: string | null | undefined;
readonly valueKey: string;
readonly emitPath: boolean;
} & {
readonly resetToInitialValue?: boolean | undefined;
readonly backfill?: Record<string, any> | undefined;
readonly as?: string | undefined;
readonly disabled?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly hide?: boolean | ((query: Record<string, any>) => any) | undefined;
readonly validator?: ((query: Record<string, any>) => any) | ((query: Record<string, any>) => Promise<any>) | undefined;
readonly depend?: boolean | undefined;
readonly dependFields?: string | string[] | undefined;
readonly getOptions?: ((cb: (data: Record<string, any>[]) => void, query: Record<string, any>) => any) | undefined;
readonly fields?: string[] | undefined;
readonly childrenKey?: string | undefined;
}, {
readonly options: Record<string, any>[];
readonly emptyValue: string | null | undefined;
readonly emitPath: boolean;
}, true>);
}>;

@@ -1268,2 +1052,10 @@ /** 公共 props */

type BuiltInField = 'field' | 'query';
/** 将值改为原始值或引用值 */
type MaybeRef<T> = T | Ref<T>;
/** 将整个集合改为原始值或引用值 */
type DeepMaybeRef<T> = T extends Ref<infer V> ? MaybeRef<V> : T extends (...args: any) => any ? MaybeRef<T> : T extends Array<any> | Record<string, any> ? {
[K in keyof T]: DeepMaybeRef<T[K]>;
} : MaybeRef<T>;
/** 获取实际值(去除 ref 引用) */
type ToRaw<T> = UnwrapRef<T>;
interface WrapperProps extends Omit<ExtractPropTypes<OmitDefaultKey<typeof wrapperProps>>, BuiltInField> {

@@ -1270,0 +1062,0 @@ }

{
"name": "@xiaohaih/condition-core",
"version": "0.1.9",
"version": "0.1.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc