@94ai/nf-double-year 3.1.13
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/.eslintrc.cjs +49 -0
- package/README.md +18 -0
- package/components.d.ts +8 -0
- package/lib/index.d.ts +361 -0
- package/lib/nf-double-year.cjs.js +3230 -0
- package/lib/nf-double-year.esm-bundler.js +3230 -0
- package/lib/nf-double-year.vue.d.ts +171 -0
- package/lib/picker.vue.d.ts +156 -0
- package/lib/style/css.d.ts +1 -0
- package/lib/style/css.js +1 -0
- package/lib/style/index.d.ts +1 -0
- package/lib/style/index.js +1 -0
- package/lib/year-range.vue.d.ts +7 -0
- package/lib/year-table.vue.d.ts +62 -0
- package/package/index.ts +8 -0
- package/package/nf-double-year.vue +39 -0
- package/package/picker.vue +945 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +1 -0
- package/package/year-range.vue +234 -0
- package/package/year-table.vue +216 -0
- package/package.json +34 -0
- package/postcss.config.js +8 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
type: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
timeArrowControl: BooleanConstructor;
|
|
7
|
+
}, {}, {}, {}, {}, import("vue").DefineComponent<{
|
|
8
|
+
size: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
format: StringConstructor;
|
|
13
|
+
valueFormat: StringConstructor;
|
|
14
|
+
readonly: BooleanConstructor;
|
|
15
|
+
placeholder: StringConstructor;
|
|
16
|
+
startPlaceholder: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
endPlaceholder: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
prefixIcon: StringConstructor;
|
|
25
|
+
clearIcon: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
name: {
|
|
30
|
+
default: string;
|
|
31
|
+
validator: (val: any) => boolean;
|
|
32
|
+
};
|
|
33
|
+
disabled: BooleanConstructor;
|
|
34
|
+
clearable: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
id: {
|
|
39
|
+
default: string;
|
|
40
|
+
validator: (val: any) => boolean;
|
|
41
|
+
};
|
|
42
|
+
popperClass: StringConstructor;
|
|
43
|
+
editable: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
align: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
value: {};
|
|
52
|
+
defaultValue: {};
|
|
53
|
+
defaultTime: {};
|
|
54
|
+
rangeSeparator: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
pickerOptions: {};
|
|
59
|
+
unlinkPanels: BooleanConstructor;
|
|
60
|
+
validateEvent: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}, {}, {
|
|
65
|
+
pickerVisible: boolean;
|
|
66
|
+
showClose: boolean;
|
|
67
|
+
userInput: null;
|
|
68
|
+
valueOnOpen: null;
|
|
69
|
+
unwatchPickerOptions: null;
|
|
70
|
+
}, {
|
|
71
|
+
ranged(): boolean;
|
|
72
|
+
reference(): any;
|
|
73
|
+
refInput(): never[];
|
|
74
|
+
valueIsEmpty(): boolean;
|
|
75
|
+
triggerClass(): never;
|
|
76
|
+
selectionMode(): "week" | "month" | "year" | "dates" | "day";
|
|
77
|
+
haveTrigger(): boolean;
|
|
78
|
+
displayValue(): any;
|
|
79
|
+
parsedValue(): any;
|
|
80
|
+
_elFormItemSize(): any;
|
|
81
|
+
pickerSize(): never;
|
|
82
|
+
pickerDisabled(): never;
|
|
83
|
+
firstInputId(): {
|
|
84
|
+
id: any;
|
|
85
|
+
};
|
|
86
|
+
secondInputId(): {
|
|
87
|
+
id: any;
|
|
88
|
+
};
|
|
89
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
90
|
+
size: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: undefined;
|
|
93
|
+
};
|
|
94
|
+
format: StringConstructor;
|
|
95
|
+
valueFormat: StringConstructor;
|
|
96
|
+
readonly: BooleanConstructor;
|
|
97
|
+
placeholder: StringConstructor;
|
|
98
|
+
startPlaceholder: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
endPlaceholder: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
prefixIcon: StringConstructor;
|
|
107
|
+
clearIcon: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
name: {
|
|
112
|
+
default: string;
|
|
113
|
+
validator: (val: any) => boolean;
|
|
114
|
+
};
|
|
115
|
+
disabled: BooleanConstructor;
|
|
116
|
+
clearable: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
id: {
|
|
121
|
+
default: string;
|
|
122
|
+
validator: (val: any) => boolean;
|
|
123
|
+
};
|
|
124
|
+
popperClass: StringConstructor;
|
|
125
|
+
editable: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
align: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
value: {};
|
|
134
|
+
defaultValue: {};
|
|
135
|
+
defaultTime: {};
|
|
136
|
+
rangeSeparator: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
pickerOptions: {};
|
|
141
|
+
unlinkPanels: BooleanConstructor;
|
|
142
|
+
validateEvent: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
}>>, {
|
|
147
|
+
name: string;
|
|
148
|
+
readonly: boolean;
|
|
149
|
+
disabled: boolean;
|
|
150
|
+
unlinkPanels: boolean;
|
|
151
|
+
size: string;
|
|
152
|
+
startPlaceholder: string;
|
|
153
|
+
endPlaceholder: string;
|
|
154
|
+
clearIcon: string;
|
|
155
|
+
clearable: boolean;
|
|
156
|
+
id: string;
|
|
157
|
+
editable: boolean;
|
|
158
|
+
align: string;
|
|
159
|
+
rangeSeparator: string;
|
|
160
|
+
validateEvent: boolean;
|
|
161
|
+
}>, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
162
|
+
type: {
|
|
163
|
+
type: StringConstructor;
|
|
164
|
+
default: string;
|
|
165
|
+
};
|
|
166
|
+
timeArrowControl: BooleanConstructor;
|
|
167
|
+
}>>, {
|
|
168
|
+
type: string;
|
|
169
|
+
timeArrowControl: boolean;
|
|
170
|
+
}>;
|
|
171
|
+
export default _default;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
format: StringConstructor;
|
|
7
|
+
valueFormat: StringConstructor;
|
|
8
|
+
readonly: BooleanConstructor;
|
|
9
|
+
placeholder: StringConstructor;
|
|
10
|
+
startPlaceholder: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
endPlaceholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
prefixIcon: StringConstructor;
|
|
19
|
+
clearIcon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
name: {
|
|
24
|
+
default: string;
|
|
25
|
+
validator: (val: any) => boolean;
|
|
26
|
+
};
|
|
27
|
+
disabled: BooleanConstructor;
|
|
28
|
+
clearable: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
id: {
|
|
33
|
+
default: string;
|
|
34
|
+
validator: (val: any) => boolean;
|
|
35
|
+
};
|
|
36
|
+
popperClass: StringConstructor;
|
|
37
|
+
editable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
align: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
value: {};
|
|
46
|
+
defaultValue: {};
|
|
47
|
+
defaultTime: {};
|
|
48
|
+
rangeSeparator: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
pickerOptions: {};
|
|
53
|
+
unlinkPanels: BooleanConstructor;
|
|
54
|
+
validateEvent: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
}, {}, {
|
|
59
|
+
pickerVisible: boolean;
|
|
60
|
+
showClose: boolean;
|
|
61
|
+
userInput: null;
|
|
62
|
+
valueOnOpen: null;
|
|
63
|
+
unwatchPickerOptions: null;
|
|
64
|
+
}, {
|
|
65
|
+
ranged(): boolean;
|
|
66
|
+
reference(): any;
|
|
67
|
+
refInput(): never[];
|
|
68
|
+
valueIsEmpty(): boolean;
|
|
69
|
+
triggerClass(): never;
|
|
70
|
+
selectionMode(): "week" | "month" | "year" | "dates" | "day";
|
|
71
|
+
haveTrigger(): boolean;
|
|
72
|
+
displayValue(): any;
|
|
73
|
+
parsedValue(): any;
|
|
74
|
+
_elFormItemSize(): any;
|
|
75
|
+
pickerSize(): never;
|
|
76
|
+
pickerDisabled(): never;
|
|
77
|
+
firstInputId(): {
|
|
78
|
+
id: any;
|
|
79
|
+
};
|
|
80
|
+
secondInputId(): {
|
|
81
|
+
id: any;
|
|
82
|
+
};
|
|
83
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
size: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
format: StringConstructor;
|
|
89
|
+
valueFormat: StringConstructor;
|
|
90
|
+
readonly: BooleanConstructor;
|
|
91
|
+
placeholder: StringConstructor;
|
|
92
|
+
startPlaceholder: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
endPlaceholder: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
prefixIcon: StringConstructor;
|
|
101
|
+
clearIcon: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
name: {
|
|
106
|
+
default: string;
|
|
107
|
+
validator: (val: any) => boolean;
|
|
108
|
+
};
|
|
109
|
+
disabled: BooleanConstructor;
|
|
110
|
+
clearable: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
id: {
|
|
115
|
+
default: string;
|
|
116
|
+
validator: (val: any) => boolean;
|
|
117
|
+
};
|
|
118
|
+
popperClass: StringConstructor;
|
|
119
|
+
editable: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
align: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
value: {};
|
|
128
|
+
defaultValue: {};
|
|
129
|
+
defaultTime: {};
|
|
130
|
+
rangeSeparator: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
pickerOptions: {};
|
|
135
|
+
unlinkPanels: BooleanConstructor;
|
|
136
|
+
validateEvent: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
}>>, {
|
|
141
|
+
name: string;
|
|
142
|
+
readonly: boolean;
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
unlinkPanels: boolean;
|
|
145
|
+
size: string;
|
|
146
|
+
startPlaceholder: string;
|
|
147
|
+
endPlaceholder: string;
|
|
148
|
+
clearIcon: string;
|
|
149
|
+
clearable: boolean;
|
|
150
|
+
id: string;
|
|
151
|
+
editable: boolean;
|
|
152
|
+
align: string;
|
|
153
|
+
rangeSeparator: string;
|
|
154
|
+
validateEvent: boolean;
|
|
155
|
+
}>;
|
|
156
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/lib/style/css.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/css/nf-double-year.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/nf-double-year.scss'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, any, {}, {
|
|
2
|
+
btnDisabled(): any;
|
|
3
|
+
leftYear(): any;
|
|
4
|
+
rightYear(): any;
|
|
5
|
+
enableYearArrow(): any;
|
|
6
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
defaultValue: {
|
|
3
|
+
validator(val: unknown): any;
|
|
4
|
+
};
|
|
5
|
+
disabledDate: {};
|
|
6
|
+
date: {};
|
|
7
|
+
value: {};
|
|
8
|
+
year: {};
|
|
9
|
+
minDate: {};
|
|
10
|
+
maxDate: {};
|
|
11
|
+
selectionMode: {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
rangeState: {
|
|
15
|
+
default(): {
|
|
16
|
+
endDate: null;
|
|
17
|
+
selecting: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, {}, {}, {
|
|
21
|
+
startYear(): number;
|
|
22
|
+
}, {
|
|
23
|
+
getCellStyle(year: any): {
|
|
24
|
+
disabled: any;
|
|
25
|
+
today: boolean;
|
|
26
|
+
default: any;
|
|
27
|
+
'start-date': boolean;
|
|
28
|
+
'end-date': any;
|
|
29
|
+
'in-range': any;
|
|
30
|
+
current: boolean;
|
|
31
|
+
};
|
|
32
|
+
nextTenYear(): void;
|
|
33
|
+
prevTenYear(): void;
|
|
34
|
+
handleYearTableClick(event: any): void;
|
|
35
|
+
handleMouseMove(event: any): void;
|
|
36
|
+
}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
defaultValue: {
|
|
38
|
+
validator(val: unknown): any;
|
|
39
|
+
};
|
|
40
|
+
disabledDate: {};
|
|
41
|
+
date: {};
|
|
42
|
+
value: {};
|
|
43
|
+
year: {};
|
|
44
|
+
minDate: {};
|
|
45
|
+
maxDate: {};
|
|
46
|
+
selectionMode: {
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
rangeState: {
|
|
50
|
+
default(): {
|
|
51
|
+
endDate: null;
|
|
52
|
+
selecting: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
selectionMode: string;
|
|
57
|
+
rangeState: {
|
|
58
|
+
endDate: null;
|
|
59
|
+
selecting: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
62
|
+
export default _default;
|
package/package/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NfDoubleYear from './nf-double-year.vue'
|
|
2
|
+
import { Vue2, PluginObject } from 'vue-demi'
|
|
3
|
+
|
|
4
|
+
NfDoubleYear.install = (app: typeof Vue2) => {
|
|
5
|
+
app!.component('nf-double-year', NfDoubleYear)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default NfDoubleYear as typeof NfDoubleYear & PluginObject<undefined>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Picker from './picker.vue'
|
|
3
|
+
import YearRangePanel from './year-range.vue'
|
|
4
|
+
|
|
5
|
+
const getPanel = function() {
|
|
6
|
+
return YearRangePanel
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
mixins: [Picker],
|
|
11
|
+
|
|
12
|
+
name: 'NfDoubleYear',
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'yearrange'
|
|
18
|
+
},
|
|
19
|
+
timeArrowControl: Boolean
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
watch: {
|
|
23
|
+
type(type) {
|
|
24
|
+
if (this.picker) {
|
|
25
|
+
this.unmountPicker()
|
|
26
|
+
this.panel = getPanel(type)
|
|
27
|
+
this.mountPicker()
|
|
28
|
+
} else {
|
|
29
|
+
this.panel = getPanel(type)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
created() {
|
|
35
|
+
this.panel = getPanel(this.type)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
</script>
|