@94ai/nf-search-form 6.1.0 → 6.1.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.
@@ -1,112 +1,112 @@
1
- import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- value?: any;
4
- itemOptions?: NfSearchFormItemOption | undefined;
5
- itemWidth?: number | undefined;
6
- nfSearchFormModel?: Record<string, any> | undefined;
7
- }>, {
8
- value: undefined;
9
- itemOptions: () => {};
10
- itemWidth: number;
11
- nfSearchFormModel: () => {};
12
- }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
13
- input: (event: any) => void;
14
- "update:value": (event: any) => void;
15
- handleChangeProps: (event: string[]) => void;
16
- }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
- value?: any;
18
- itemOptions?: NfSearchFormItemOption | undefined;
19
- itemWidth?: number | undefined;
20
- nfSearchFormModel?: Record<string, any> | undefined;
21
- }>, {
22
- value: undefined;
23
- itemOptions: () => {};
24
- itemWidth: number;
25
- nfSearchFormModel: () => {};
26
- }>>>, {
27
- value: any;
28
- itemOptions: NfSearchFormItemOption;
29
- itemWidth: number;
30
- nfSearchFormModel: Record<string, any>;
31
- }>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
32
- slot: string;
33
- }) => any>> & Partial<Record<string, (_: {
34
- slot: string;
35
- }) => any>> & Partial<Record<string, (_: {
36
- slot: string;
37
- }) => any>> & Partial<Record<string, (_: {
38
- slot: string;
39
- }) => any>> & Partial<Record<string, (_: {
40
- slot: string;
41
- }) => any>> & Partial<Record<string, (_: {
42
- slot: string;
43
- }) => any>> & Partial<Record<string, (_: {
44
- slot: string;
45
- }) => any>> & Partial<Record<string, (_: {
46
- slot: string;
47
- }) => any>> & Partial<Record<string, (_: {
48
- slot: string;
49
- }) => any>> & Partial<Record<string, (_: {
50
- slot: string;
51
- }) => any>> & Partial<Record<string, (_: {
52
- slot: string;
53
- }) => any>> & Partial<Record<string, (_: {
54
- slot: string;
55
- }) => any>> & Partial<Record<string, (_: {
56
- slot: string;
57
- }) => any>> & Partial<Record<string, (_: {
58
- slot: string;
59
- }) => any>> & Partial<Record<string, (_: {
60
- slot: string;
61
- }) => any>> & Partial<Record<string, (_: {
62
- slot: string;
63
- }) => any>> & Partial<Record<string, (_: {
64
- slot: string;
65
- }) => any>> & Partial<Record<string, (_: {
66
- slot: string;
67
- }) => any>> & Partial<Record<string, (_: {
68
- slot: string;
69
- }) => any>> & Partial<Record<string, (_: {
70
- slot: string;
71
- }) => any>> & Partial<Record<string, (_: {
72
- slot: string;
73
- }) => any>> & Partial<Record<string, (_: {
74
- slot: string;
75
- }) => any>> & Partial<Record<string, (_: {
76
- slot: string;
77
- }) => any>> & Partial<Record<string, (_: {
78
- slot: string;
79
- }) => any>> & Partial<Record<string, (_: {
80
- slot: string;
81
- }) => any>> & Partial<Record<string, (_: {
82
- slot: string;
83
- }) => any>> & Partial<Record<string, (_: {
84
- slot: string;
85
- }) => any>> & Partial<Record<string, (_: {
86
- slot: string;
87
- }) => any>> & Partial<Record<string, (_: {
88
- slot: string;
89
- }) => any>> & Partial<Record<string, (_: {}) => any>>>;
90
- export default _default;
91
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
- declare type __VLS_TypePropsToRuntimeProps<T> = {
93
- [K in keyof T]-?: {} extends Pick<T, K> ? {
94
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
- } : {
96
- type: import('vue').PropType<T[K]>;
97
- required: true;
98
- };
99
- };
100
- declare type __VLS_WithDefaults<P, D> = {
101
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
102
- default: D[K];
103
- }> : P[K];
104
- };
105
- declare type __VLS_Prettify<T> = {
106
- [K in keyof T]: T[K];
107
- } & {};
108
- declare type __VLS_WithTemplateSlots<T, S> = T & {
109
- new (): {
110
- $scopedSlots: S;
111
- };
112
- };
1
+ import { NfSearchFormItemOption } from '@94ai/nf-search-form/lib/types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ value?: any;
4
+ itemOptions?: NfSearchFormItemOption | undefined;
5
+ itemWidth?: number | undefined;
6
+ nfSearchFormModel?: Record<string, any> | undefined;
7
+ }>, {
8
+ value: undefined;
9
+ itemOptions: () => {};
10
+ itemWidth: number;
11
+ nfSearchFormModel: () => {};
12
+ }>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
13
+ input: (event: any) => void;
14
+ "update:value": (event: any) => void;
15
+ handleChangeProps: (event: string[]) => void;
16
+ }, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
17
+ value?: any;
18
+ itemOptions?: NfSearchFormItemOption | undefined;
19
+ itemWidth?: number | undefined;
20
+ nfSearchFormModel?: Record<string, any> | undefined;
21
+ }>, {
22
+ value: undefined;
23
+ itemOptions: () => {};
24
+ itemWidth: number;
25
+ nfSearchFormModel: () => {};
26
+ }>>>, {
27
+ value: any;
28
+ itemOptions: NfSearchFormItemOption;
29
+ itemWidth: number;
30
+ nfSearchFormModel: Record<string, any>;
31
+ }>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
32
+ slot: string;
33
+ }) => any>> & Partial<Record<string, (_: {
34
+ slot: string;
35
+ }) => any>> & Partial<Record<string, (_: {
36
+ slot: string;
37
+ }) => any>> & Partial<Record<string, (_: {
38
+ slot: string;
39
+ }) => any>> & Partial<Record<string, (_: {
40
+ slot: string;
41
+ }) => any>> & Partial<Record<string, (_: {
42
+ slot: string;
43
+ }) => any>> & Partial<Record<string, (_: {
44
+ slot: string;
45
+ }) => any>> & Partial<Record<string, (_: {
46
+ slot: string;
47
+ }) => any>> & Partial<Record<string, (_: {
48
+ slot: string;
49
+ }) => any>> & Partial<Record<string, (_: {
50
+ slot: string;
51
+ }) => any>> & Partial<Record<string, (_: {
52
+ slot: string;
53
+ }) => any>> & Partial<Record<string, (_: {
54
+ slot: string;
55
+ }) => any>> & Partial<Record<string, (_: {
56
+ slot: string;
57
+ }) => any>> & Partial<Record<string, (_: {
58
+ slot: string;
59
+ }) => any>> & Partial<Record<string, (_: {
60
+ slot: string;
61
+ }) => any>> & Partial<Record<string, (_: {
62
+ slot: string;
63
+ }) => any>> & Partial<Record<string, (_: {
64
+ slot: string;
65
+ }) => any>> & Partial<Record<string, (_: {
66
+ slot: string;
67
+ }) => any>> & Partial<Record<string, (_: {
68
+ slot: string;
69
+ }) => any>> & Partial<Record<string, (_: {
70
+ slot: string;
71
+ }) => any>> & Partial<Record<string, (_: {
72
+ slot: string;
73
+ }) => any>> & Partial<Record<string, (_: {
74
+ slot: string;
75
+ }) => any>> & Partial<Record<string, (_: {
76
+ slot: string;
77
+ }) => any>> & Partial<Record<string, (_: {
78
+ slot: string;
79
+ }) => any>> & Partial<Record<string, (_: {
80
+ slot: string;
81
+ }) => any>> & Partial<Record<string, (_: {
82
+ slot: string;
83
+ }) => any>> & Partial<Record<string, (_: {
84
+ slot: string;
85
+ }) => any>> & Partial<Record<string, (_: {
86
+ slot: string;
87
+ }) => any>> & Partial<Record<string, (_: {
88
+ slot: string;
89
+ }) => any>> & Partial<Record<string, (_: {}) => any>>>;
90
+ export default _default;
91
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
92
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
93
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
94
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
95
+ } : {
96
+ type: import('vue').PropType<T[K]>;
97
+ required: true;
98
+ };
99
+ };
100
+ declare type __VLS_WithDefaults<P, D> = {
101
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
102
+ default: D[K];
103
+ }> : P[K];
104
+ };
105
+ declare type __VLS_Prettify<T> = {
106
+ [K in keyof T]: T[K];
107
+ } & {};
108
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
109
+ new (): {
110
+ $scopedSlots: S;
111
+ };
112
+ };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+
package/lib/types.d.ts CHANGED
@@ -1,70 +1,70 @@
1
- interface IExchangeKey {
2
- type: number;
3
- value?: any;
4
- }
5
- export declare type NfSearchFormItemOption = {
6
- key?: string;
7
- _index?: number;
8
- __index?: number;
9
- initHidden?: boolean;
10
- destory?: boolean;
11
- label?: string;
12
- addLabel?: string;
13
- prop?: string;
14
- width?: string;
15
- isShowColon?: boolean;
16
- hidden?: boolean;
17
- required?: boolean;
18
- rules?: Record<string, any>;
19
- size?: 'medium' | 'small' | 'mini';
20
- labelWidth?: string;
21
- 'is-range'?: boolean;
22
- showMessage?: boolean;
23
- inlineMessage?: boolean;
24
- getOptions?: (callback: (options: any[]) => void, formData: Record<string, any>) => void;
25
- changeProps?: string[];
26
- show?: (formData: Record<string, any>) => boolean;
27
- exchangeKey?: IExchangeKey;
28
- category?: string;
29
- initValue?: any;
30
- slot?: string;
31
- labelSlot?: string;
32
- inputSlot?: {
33
- prepend?: string;
34
- append?: string;
35
- suffix?: string;
36
- prefix?: string;
37
- doublePrepend?: string;
38
- doubleAppend?: string;
39
- doubleSuffix?: string;
40
- doublePrefix?: string;
41
- doubleSegment?: string;
42
- };
43
- class?: string;
44
- tooltip?: {
45
- slot: string;
46
- };
47
- type?: 'monthrange' | 'datetimerange' | 'daterange' | 'yearrange' | 'halfyearrange' | 'quarterrange' | 'date' | 'month' | 'week' | 'dates';
48
- element?: 'el-input' | 'el-select' | 'custom-select' | 'ai-select' | 'ai-custom-select' | 'nf-lazy-select' | 'el-input-number' | 'el-date-picker' | 'el-cascader' | 'el-time-select' | 'el-time-picker' | 'number-range' | 'nf-date-picker' | 'nf-timezone-picker' | 'nf-quarter-picker' | 'nf-half-year-picker' | 'nf-double-year' | 'nf-double-week' | 'nf-double-half-year' | 'nf-double-quarter' | 'nf-transfer-select';
49
- events?: Record<string, Function>;
50
- placeholder?: string;
51
- virtualList?: boolean;
52
- 'controls-position'?: 'right' | 'left';
53
- clearable?: boolean;
54
- startPlaceholder?: string;
55
- rangeSeparator?: string;
56
- endPlaceholder?: string;
57
- defaultTime?: string[];
58
- options?: {
59
- label: string;
60
- value: string | number;
61
- }[];
62
- 'picker-options'?: {
63
- start: string;
64
- step: string;
65
- end: string;
66
- };
67
- valueFormat?: string;
68
- min?: 0;
69
- };
70
- export {};
1
+ interface IExchangeKey {
2
+ type: number;
3
+ value?: any;
4
+ }
5
+ export declare type NfSearchFormItemOption = {
6
+ key?: string;
7
+ _index?: number;
8
+ __index?: number;
9
+ initHidden?: boolean;
10
+ destory?: boolean;
11
+ label?: string;
12
+ addLabel?: string;
13
+ prop?: string;
14
+ width?: string;
15
+ isShowColon?: boolean;
16
+ hidden?: boolean;
17
+ required?: boolean;
18
+ rules?: Record<string, any>;
19
+ size?: 'medium' | 'small' | 'mini';
20
+ labelWidth?: string;
21
+ 'is-range'?: boolean;
22
+ showMessage?: boolean;
23
+ inlineMessage?: boolean;
24
+ getOptions?: (callback: (options: any[]) => void, formData: Record<string, any>) => void;
25
+ changeProps?: string[];
26
+ show?: (formData: Record<string, any>) => boolean;
27
+ exchangeKey?: IExchangeKey;
28
+ category?: string;
29
+ initValue?: any;
30
+ slot?: string;
31
+ labelSlot?: string;
32
+ inputSlot?: {
33
+ prepend?: string;
34
+ append?: string;
35
+ suffix?: string;
36
+ prefix?: string;
37
+ doublePrepend?: string;
38
+ doubleAppend?: string;
39
+ doubleSuffix?: string;
40
+ doublePrefix?: string;
41
+ doubleSegment?: string;
42
+ };
43
+ class?: string;
44
+ tooltip?: {
45
+ slot: string;
46
+ };
47
+ type?: 'monthrange' | 'datetimerange' | 'daterange' | 'yearrange' | 'halfyearrange' | 'quarterrange' | 'date' | 'month' | 'week' | 'dates';
48
+ element?: 'el-input' | 'el-select' | 'custom-select' | 'ai-select' | 'ai-custom-select' | 'nf-lazy-select' | 'el-input-number' | 'el-date-picker' | 'el-cascader' | 'el-time-select' | 'el-time-picker' | 'number-range' | 'nf-date-picker' | 'nf-timezone-picker' | 'nf-quarter-picker' | 'nf-half-year-picker' | 'nf-double-year' | 'nf-double-week' | 'nf-double-half-year' | 'nf-double-quarter' | 'nf-transfer-select';
49
+ events?: Record<string, Function>;
50
+ placeholder?: string;
51
+ virtualList?: boolean;
52
+ 'controls-position'?: 'right' | 'left';
53
+ clearable?: boolean;
54
+ startPlaceholder?: string;
55
+ rangeSeparator?: string;
56
+ endPlaceholder?: string;
57
+ defaultTime?: string[];
58
+ options?: {
59
+ label: string;
60
+ value: string | number;
61
+ }[];
62
+ 'picker-options'?: {
63
+ start: string;
64
+ step: string;
65
+ end: string;
66
+ };
67
+ valueFormat?: string;
68
+ min?: 0;
69
+ };
70
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,23 +14,23 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-constants": "^6.1.0",
18
- "@94ai/common-utils": "^6.1.0",
19
- "@94ai/nf-button": "^6.1.0",
20
- "@94ai/nf-double-half-year": "^6.1.0",
21
- "@94ai/nf-double-quarter": "^6.1.0",
22
- "@94ai/nf-double-week": "^6.1.0",
23
- "@94ai/nf-double-year": "^6.1.0",
24
- "@94ai/nf-drawer": "^6.1.0",
25
- "@94ai/nf-form": "^6.1.0",
26
- "@94ai/nf-form-item": "^6.1.0",
27
- "@94ai/nf-half-year-picker": "^6.1.0",
28
- "@94ai/nf-lazy-select": "^6.1.0",
29
- "@94ai/nf-message": "^6.1.0",
30
- "@94ai/nf-quarter-picker": "^6.1.0",
31
- "@94ai/nf-theme-chalk": "^6.1.0",
32
- "@94ai/nf-transfer-select": "^6.1.0",
33
- "@94ai/nf-virtual-select": "^6.1.0",
17
+ "@94ai/common-constants": "^6.1.1",
18
+ "@94ai/common-utils": "^6.1.1",
19
+ "@94ai/nf-button": "^6.1.1",
20
+ "@94ai/nf-double-half-year": "^6.1.1",
21
+ "@94ai/nf-double-quarter": "^6.1.1",
22
+ "@94ai/nf-double-week": "^6.1.1",
23
+ "@94ai/nf-double-year": "^6.1.1",
24
+ "@94ai/nf-drawer": "^6.1.1",
25
+ "@94ai/nf-form": "^6.1.1",
26
+ "@94ai/nf-form-item": "^6.1.1",
27
+ "@94ai/nf-half-year-picker": "^6.1.1",
28
+ "@94ai/nf-lazy-select": "^6.1.1",
29
+ "@94ai/nf-message": "^6.1.1",
30
+ "@94ai/nf-quarter-picker": "^6.1.1",
31
+ "@94ai/nf-theme-chalk": "^6.1.1",
32
+ "@94ai/nf-transfer-select": "^6.1.1",
33
+ "@94ai/nf-virtual-select": "^6.1.1",
34
34
  "idb-keyval": "^6.2.1",
35
35
  "resize-observer-polyfill": "^1.5.1",
36
36
  "vue-demi": "^0.14.5",
@@ -50,5 +50,5 @@
50
50
  "types": "lib/index.d.ts",
51
51
  "main": "lib/nf-search-form.cjs.js",
52
52
  "module": "lib/nf-search-form.esm-bundler.js",
53
- "gitHead": "94f32b2ecdd1882631c6ba5b5630cb588ae538aa"
53
+ "gitHead": "8cf48ea7eb7ec9a63f472fa4f5f738f624e18c54"
54
54
  }