@94ai/nf-double-week 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 +16 -0
- package/components.d.ts +8 -0
- package/lib/index.d.ts +326 -0
- package/lib/nf-double-week.cjs.js +3679 -0
- package/lib/nf-double-week.esm-bundler.js +3679 -0
- package/lib/nf-double-week.vue.d.ts +157 -0
- package/lib/picker.vue.d.ts +151 -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/week-range.vue.d.ts +42 -0
- package/lib/week-table.vue.d.ts +11 -0
- package/package/index.ts +8 -0
- package/package/nf-double-week.vue +35 -0
- package/package/picker.vue +779 -0
- package/package/popper.js +1276 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +1 -0
- package/package/week-range.vue +436 -0
- package/package/week-table.vue +296 -0
- package/package.json +34 -0
- package/postcss.config.js +8 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
timeArrowControl: BooleanConstructor;
|
|
3
|
+
}, {}, {}, {}, {}, import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
format: StringConstructor;
|
|
9
|
+
valueFormat: StringConstructor;
|
|
10
|
+
readonly: BooleanConstructor;
|
|
11
|
+
startPlaceholder: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
endPlaceholder: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
prefixIcon: StringConstructor;
|
|
20
|
+
clearIcon: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
name: {
|
|
25
|
+
default: string;
|
|
26
|
+
validator: (val: any) => boolean;
|
|
27
|
+
};
|
|
28
|
+
disabled: BooleanConstructor;
|
|
29
|
+
clearable: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
id: {
|
|
34
|
+
default: string;
|
|
35
|
+
validator: (val: any) => boolean;
|
|
36
|
+
};
|
|
37
|
+
popperClass: StringConstructor;
|
|
38
|
+
editable: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
align: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
value: {};
|
|
47
|
+
defaultValue: {};
|
|
48
|
+
defaultTime: {};
|
|
49
|
+
rangeSeparator: {
|
|
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
|
+
dateList: never[];
|
|
65
|
+
}, {
|
|
66
|
+
reference(): any;
|
|
67
|
+
refInput(): never[];
|
|
68
|
+
valueIsEmpty(): boolean;
|
|
69
|
+
triggerClass(): never;
|
|
70
|
+
haveTrigger(): true;
|
|
71
|
+
displayValue(): any;
|
|
72
|
+
parsedValue(): any;
|
|
73
|
+
_elFormItemSize(): any;
|
|
74
|
+
pickerSize(): never;
|
|
75
|
+
pickerDisabled(): never;
|
|
76
|
+
firstInputId(): {
|
|
77
|
+
id: any;
|
|
78
|
+
};
|
|
79
|
+
secondInputId(): {
|
|
80
|
+
id: any;
|
|
81
|
+
};
|
|
82
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
83
|
+
size: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: undefined;
|
|
86
|
+
};
|
|
87
|
+
format: StringConstructor;
|
|
88
|
+
valueFormat: StringConstructor;
|
|
89
|
+
readonly: BooleanConstructor;
|
|
90
|
+
startPlaceholder: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
endPlaceholder: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
prefixIcon: StringConstructor;
|
|
99
|
+
clearIcon: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
name: {
|
|
104
|
+
default: string;
|
|
105
|
+
validator: (val: any) => boolean;
|
|
106
|
+
};
|
|
107
|
+
disabled: BooleanConstructor;
|
|
108
|
+
clearable: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
id: {
|
|
113
|
+
default: string;
|
|
114
|
+
validator: (val: any) => boolean;
|
|
115
|
+
};
|
|
116
|
+
popperClass: StringConstructor;
|
|
117
|
+
editable: {
|
|
118
|
+
type: BooleanConstructor;
|
|
119
|
+
default: boolean;
|
|
120
|
+
};
|
|
121
|
+
align: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
value: {};
|
|
126
|
+
defaultValue: {};
|
|
127
|
+
defaultTime: {};
|
|
128
|
+
rangeSeparator: {
|
|
129
|
+
default: string;
|
|
130
|
+
};
|
|
131
|
+
pickerOptions: {};
|
|
132
|
+
unlinkPanels: BooleanConstructor;
|
|
133
|
+
validateEvent: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
}>>, {
|
|
138
|
+
name: string;
|
|
139
|
+
readonly: boolean;
|
|
140
|
+
disabled: boolean;
|
|
141
|
+
unlinkPanels: boolean;
|
|
142
|
+
size: string;
|
|
143
|
+
startPlaceholder: string;
|
|
144
|
+
endPlaceholder: string;
|
|
145
|
+
clearIcon: string;
|
|
146
|
+
clearable: boolean;
|
|
147
|
+
id: string;
|
|
148
|
+
editable: boolean;
|
|
149
|
+
align: string;
|
|
150
|
+
rangeSeparator: string;
|
|
151
|
+
validateEvent: boolean;
|
|
152
|
+
}>, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
153
|
+
timeArrowControl: BooleanConstructor;
|
|
154
|
+
}>>, {
|
|
155
|
+
timeArrowControl: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
export default _default;
|
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
startPlaceholder: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
endPlaceholder: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
prefixIcon: StringConstructor;
|
|
18
|
+
clearIcon: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
default: string;
|
|
24
|
+
validator: (val: any) => boolean;
|
|
25
|
+
};
|
|
26
|
+
disabled: BooleanConstructor;
|
|
27
|
+
clearable: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
id: {
|
|
32
|
+
default: string;
|
|
33
|
+
validator: (val: any) => boolean;
|
|
34
|
+
};
|
|
35
|
+
popperClass: StringConstructor;
|
|
36
|
+
editable: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
align: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
value: {};
|
|
45
|
+
defaultValue: {};
|
|
46
|
+
defaultTime: {};
|
|
47
|
+
rangeSeparator: {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
pickerOptions: {};
|
|
51
|
+
unlinkPanels: BooleanConstructor;
|
|
52
|
+
validateEvent: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
}, {}, {
|
|
57
|
+
pickerVisible: boolean;
|
|
58
|
+
showClose: boolean;
|
|
59
|
+
userInput: null;
|
|
60
|
+
valueOnOpen: null;
|
|
61
|
+
unwatchPickerOptions: null;
|
|
62
|
+
dateList: never[];
|
|
63
|
+
}, {
|
|
64
|
+
reference(): any;
|
|
65
|
+
refInput(): never[];
|
|
66
|
+
valueIsEmpty(): boolean;
|
|
67
|
+
triggerClass(): never;
|
|
68
|
+
haveTrigger(): true;
|
|
69
|
+
displayValue(): any;
|
|
70
|
+
parsedValue(): any;
|
|
71
|
+
_elFormItemSize(): any;
|
|
72
|
+
pickerSize(): never;
|
|
73
|
+
pickerDisabled(): never;
|
|
74
|
+
firstInputId(): {
|
|
75
|
+
id: any;
|
|
76
|
+
};
|
|
77
|
+
secondInputId(): {
|
|
78
|
+
id: any;
|
|
79
|
+
};
|
|
80
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
size: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
format: StringConstructor;
|
|
86
|
+
valueFormat: StringConstructor;
|
|
87
|
+
readonly: BooleanConstructor;
|
|
88
|
+
startPlaceholder: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
endPlaceholder: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
prefixIcon: StringConstructor;
|
|
97
|
+
clearIcon: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
name: {
|
|
102
|
+
default: string;
|
|
103
|
+
validator: (val: any) => boolean;
|
|
104
|
+
};
|
|
105
|
+
disabled: BooleanConstructor;
|
|
106
|
+
clearable: {
|
|
107
|
+
type: BooleanConstructor;
|
|
108
|
+
default: boolean;
|
|
109
|
+
};
|
|
110
|
+
id: {
|
|
111
|
+
default: string;
|
|
112
|
+
validator: (val: any) => boolean;
|
|
113
|
+
};
|
|
114
|
+
popperClass: StringConstructor;
|
|
115
|
+
editable: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: boolean;
|
|
118
|
+
};
|
|
119
|
+
align: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
value: {};
|
|
124
|
+
defaultValue: {};
|
|
125
|
+
defaultTime: {};
|
|
126
|
+
rangeSeparator: {
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
pickerOptions: {};
|
|
130
|
+
unlinkPanels: BooleanConstructor;
|
|
131
|
+
validateEvent: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
}>>, {
|
|
136
|
+
name: string;
|
|
137
|
+
readonly: boolean;
|
|
138
|
+
disabled: boolean;
|
|
139
|
+
unlinkPanels: boolean;
|
|
140
|
+
size: string;
|
|
141
|
+
startPlaceholder: string;
|
|
142
|
+
endPlaceholder: string;
|
|
143
|
+
clearIcon: string;
|
|
144
|
+
clearable: boolean;
|
|
145
|
+
id: string;
|
|
146
|
+
editable: boolean;
|
|
147
|
+
align: string;
|
|
148
|
+
rangeSeparator: string;
|
|
149
|
+
validateEvent: boolean;
|
|
150
|
+
}>;
|
|
151
|
+
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-week.css'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@94ai/nf-theme-chalk/lib/nf-double-week.scss'
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, any, {
|
|
2
|
+
popperClass: string;
|
|
3
|
+
value: never[];
|
|
4
|
+
defaultValue: null;
|
|
5
|
+
defaultTime: null;
|
|
6
|
+
minDate: string;
|
|
7
|
+
maxDate: string;
|
|
8
|
+
leftDate: Date;
|
|
9
|
+
rightDate: any;
|
|
10
|
+
rangeState: {
|
|
11
|
+
endDate: null;
|
|
12
|
+
selecting: boolean;
|
|
13
|
+
row: null;
|
|
14
|
+
column: null;
|
|
15
|
+
};
|
|
16
|
+
shortcuts: string;
|
|
17
|
+
visible: string;
|
|
18
|
+
disabledDate: string;
|
|
19
|
+
cellClassName: string;
|
|
20
|
+
firstDayOfWeek: number;
|
|
21
|
+
format: string;
|
|
22
|
+
arrowControl: boolean;
|
|
23
|
+
unlinkPanels: boolean;
|
|
24
|
+
dateUserInput: {
|
|
25
|
+
min: null;
|
|
26
|
+
max: null;
|
|
27
|
+
};
|
|
28
|
+
timeUserInput: {
|
|
29
|
+
min: null;
|
|
30
|
+
max: null;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
leftLabel(): string;
|
|
34
|
+
rightLabel(): string;
|
|
35
|
+
leftYear(): number;
|
|
36
|
+
leftMonth(): number;
|
|
37
|
+
rightYear(): any;
|
|
38
|
+
rightMonth(): any;
|
|
39
|
+
enableMonthArrow(): boolean;
|
|
40
|
+
enableYearArrow(): boolean;
|
|
41
|
+
}, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, any, {}, {
|
|
2
|
+
minDateTimestamp(): any;
|
|
3
|
+
maxDateTimestamp(): any;
|
|
4
|
+
rows(): never;
|
|
5
|
+
}, {
|
|
6
|
+
getCellClasses(cell: any): string;
|
|
7
|
+
isWeekActive(cell: any): boolean;
|
|
8
|
+
handleMouseMove(event: any, isManual: any): void;
|
|
9
|
+
handleClick(event: any): void;
|
|
10
|
+
}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
11
|
+
export default _default;
|
package/package/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NfDoubleWeek from './nf-double-week.vue'
|
|
2
|
+
import { Vue2, PluginObject } from 'vue-demi'
|
|
3
|
+
|
|
4
|
+
NfDoubleWeek.install = (app: typeof Vue2) => {
|
|
5
|
+
app!.component('nf-double-week', NfDoubleWeek)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default NfDoubleWeek as typeof NfDoubleWeek & PluginObject<undefined>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Picker from './picker.vue'
|
|
3
|
+
import WeekRangePanel from './week-range.vue'
|
|
4
|
+
|
|
5
|
+
const getPanel = function() {
|
|
6
|
+
return WeekRangePanel
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
mixins: [Picker],
|
|
11
|
+
|
|
12
|
+
name: 'NfDoubleWeek',
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
timeArrowControl: Boolean
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
watch: {
|
|
19
|
+
type(type) {
|
|
20
|
+
if (this.picker) {
|
|
21
|
+
this.unmountPicker()
|
|
22
|
+
this.panel = getPanel(type)
|
|
23
|
+
this.mountPicker()
|
|
24
|
+
} else {
|
|
25
|
+
this.panel = getPanel(type)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
created() {
|
|
31
|
+
this.panel = getPanel(this.type)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
</script>
|