@94ai/nf-timezone-picker 5.0.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.
Files changed (41) hide show
  1. package/.eslintrc.cjs +49 -0
  2. package/README.md +17 -0
  3. package/components.d.ts +8 -0
  4. package/lib/basic/date-table.vue.d.ts +86 -0
  5. package/lib/basic/month-table.vue.d.ts +51 -0
  6. package/lib/basic/time-spinner.vue.d.ts +42 -0
  7. package/lib/basic/year-table.vue.d.ts +26 -0
  8. package/lib/index.d.ts +333 -0
  9. package/lib/nf-timezone-picker.cjs.js +5984 -0
  10. package/lib/nf-timezone-picker.esm-bundler.js +5984 -0
  11. package/lib/nf-timezone-picker.vue.d.ts +157 -0
  12. package/lib/panel/date-range.vue.d.ts +55 -0
  13. package/lib/panel/date.vue.d.ts +35 -0
  14. package/lib/panel/month-range.vue.d.ts +30 -0
  15. package/lib/panel/time.vue.d.ts +27 -0
  16. package/lib/picker.vue.d.ts +142 -0
  17. package/lib/style/css.d.ts +1 -0
  18. package/lib/style/css.js +1 -0
  19. package/lib/style/index.d.ts +1 -0
  20. package/lib/style/index.js +1 -0
  21. package/package/basic/date-table.vue +448 -0
  22. package/package/basic/month-table.vue +253 -0
  23. package/package/basic/time-spinner.vue +316 -0
  24. package/package/basic/year-table.vue +101 -0
  25. package/package/index.ts +7 -0
  26. package/package/nf-timezone-picker.vue +50 -0
  27. package/package/panel/date-range.vue +700 -0
  28. package/package/panel/date.vue +607 -0
  29. package/package/panel/month-range.vue +293 -0
  30. package/package/panel/time-range.vue +254 -0
  31. package/package/panel/time-select.vue +178 -0
  32. package/package/panel/time.vue +189 -0
  33. package/package/picker/date-picker.js +43 -0
  34. package/package/picker/time-picker.js +39 -0
  35. package/package/picker/time-select.js +21 -0
  36. package/package/picker.vue +943 -0
  37. package/package/popper.js +1276 -0
  38. package/package/style/css.ts +1 -0
  39. package/package/style/index.ts +1 -0
  40. package/package.json +34 -0
  41. package/postcss.config.js +8 -0
package/.eslintrc.cjs ADDED
@@ -0,0 +1,49 @@
1
+ module.exports = {
2
+ "root": true,
3
+ "env": {
4
+ "node": true
5
+ },
6
+ "extends": [
7
+ "plugin:vue/essential"
8
+ ],
9
+ "parser": "vue-eslint-parser",
10
+ "parserOptions": {
11
+ "parser": "@typescript-eslint/parser",
12
+ "ecmaVersion": 2020,
13
+ "sourceType": "module"
14
+ },
15
+ "rules": {
16
+ "@typescript-eslint/ban-ts-ignore": "off",
17
+ "@typescript-eslint/explicit-function-return-type": "off",
18
+ "@typescript-eslint/no-explicit-any": "off",
19
+ "@typescript-eslint/no-var-requires": "off",
20
+ "@typescript-eslint/no-empty-function": "off",
21
+ "vue/custom-event-name-casing": "off",
22
+ "no-use-before-define": "off",
23
+ "@typescript-eslint/no-use-before-define": "off",
24
+ "@typescript-eslint/ban-ts-comment": "off",
25
+ "@typescript-eslint/ban-types": "off",
26
+ "@typescript-eslint/no-non-null-assertion": "off",
27
+ "@typescript-eslint/explicit-module-boundary-types": "off",
28
+ "@typescript-eslint/no-unused-vars": "off",
29
+ "vue/multi-word-component-names": [
30
+ "error",
31
+ {
32
+ "ignores": [
33
+ "index"
34
+ ]
35
+ }
36
+ ],
37
+ "no-console": "warn",
38
+ "no-debugger": "warn",
39
+ "prettier/prettier": [
40
+ "error",
41
+ {
42
+ "tabWidth": 2,
43
+ "singleQuote": true,
44
+ "semi": false,
45
+ "endOfLine": "auto"
46
+ }
47
+ ]
48
+ }
49
+ }
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # `@94ai/nf-timezone-picker`
2
+
3
+ el-date-picker今天回显支持时区(用来限定不同时区不能选中未来时间)
4
+
5
+ ## HomePage
6
+
7
+ 官网地址: https://oss.xccjh.top/common-ui/#/ai-index
8
+
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ import NfTimezonePicker from '@94ai/nf-timezone-picker' // or const NfTimezonePicker = require('@94ai/nf-timezone-picker');
14
+
15
+ Vue.use(NfAction)
16
+ ```
17
+
@@ -0,0 +1,8 @@
1
+ export {}
2
+
3
+ declare module 'vue' {
4
+ export interface GlobalComponents {
5
+ NfTimezonePicker: typeof import('@94ai/nf-timezone-picker/lib/nf-timezone-picker.vue')['default']
6
+
7
+ }
8
+ }
@@ -0,0 +1,86 @@
1
+ declare var _default: import("vue").DefineComponent<{
2
+ firstDayOfWeek: {
3
+ default: number;
4
+ type: NumberConstructor;
5
+ validator: (val: unknown) => boolean;
6
+ };
7
+ value: {};
8
+ defaultValue: {
9
+ validator(val: unknown): any;
10
+ };
11
+ date: {};
12
+ selectionMode: {
13
+ default: string;
14
+ };
15
+ showWeekNumber: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ disabledDate: {};
20
+ cellClassName: {};
21
+ minDate: {};
22
+ maxDate: {};
23
+ rangeState: {
24
+ default(): {
25
+ endDate: null;
26
+ selecting: boolean;
27
+ };
28
+ };
29
+ timezone: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ }, {}, {
34
+ tableRows: never[][];
35
+ lastRow: null;
36
+ lastColumn: null;
37
+ }, {
38
+ offsetDay(): number;
39
+ WEEKS(): string[];
40
+ year(): any;
41
+ month(): any;
42
+ startDate(): any;
43
+ rows(): any;
44
+ }, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
45
+ firstDayOfWeek: {
46
+ default: number;
47
+ type: NumberConstructor;
48
+ validator: (val: unknown) => boolean;
49
+ };
50
+ value: {};
51
+ defaultValue: {
52
+ validator(val: unknown): any;
53
+ };
54
+ date: {};
55
+ selectionMode: {
56
+ default: string;
57
+ };
58
+ showWeekNumber: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ disabledDate: {};
63
+ cellClassName: {};
64
+ minDate: {};
65
+ maxDate: {};
66
+ rangeState: {
67
+ default(): {
68
+ endDate: null;
69
+ selecting: boolean;
70
+ };
71
+ };
72
+ timezone: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ }>>, {
77
+ timezone: string;
78
+ selectionMode: string;
79
+ rangeState: {
80
+ endDate: null;
81
+ selecting: boolean;
82
+ };
83
+ firstDayOfWeek: number;
84
+ showWeekNumber: boolean;
85
+ }>;
86
+ export default _default;
@@ -0,0 +1,51 @@
1
+ declare var _default: import("vue").DefineComponent<{
2
+ disabledDate: {};
3
+ value: {};
4
+ selectionMode: {
5
+ default: string;
6
+ };
7
+ minDate: {};
8
+ maxDate: {};
9
+ defaultValue: {
10
+ validator(val: unknown): any;
11
+ };
12
+ date: {};
13
+ rangeState: {
14
+ default(): {
15
+ endDate: null;
16
+ selecting: boolean;
17
+ };
18
+ };
19
+ }, {}, {
20
+ months: string[];
21
+ tableRows: never[][];
22
+ lastRow: null;
23
+ lastColumn: null;
24
+ }, {
25
+ rows(): any;
26
+ }, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
27
+ disabledDate: {};
28
+ value: {};
29
+ selectionMode: {
30
+ default: string;
31
+ };
32
+ minDate: {};
33
+ maxDate: {};
34
+ defaultValue: {
35
+ validator(val: unknown): any;
36
+ };
37
+ date: {};
38
+ rangeState: {
39
+ default(): {
40
+ endDate: null;
41
+ selecting: boolean;
42
+ };
43
+ };
44
+ }>>, {
45
+ selectionMode: string;
46
+ rangeState: {
47
+ endDate: null;
48
+ selecting: boolean;
49
+ };
50
+ }>;
51
+ export default _default;
@@ -0,0 +1,42 @@
1
+ declare var _default: import("vue").DefineComponent<{
2
+ date: {};
3
+ defaultValue: {};
4
+ showSeconds: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ arrowControl: BooleanConstructor;
9
+ amPmMode: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ }, {}, {
14
+ selectableRange: never[];
15
+ currentScrollbar: null;
16
+ }, {
17
+ hours(): any;
18
+ minutes(): any;
19
+ seconds(): any;
20
+ hoursList(): any;
21
+ minutesList(): any;
22
+ arrowHourList(): any[];
23
+ arrowMinuteList(): any[];
24
+ arrowSecondList(): any[];
25
+ }, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
26
+ date: {};
27
+ defaultValue: {};
28
+ showSeconds: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ arrowControl: BooleanConstructor;
33
+ amPmMode: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>>, {
38
+ arrowControl: boolean;
39
+ showSeconds: boolean;
40
+ amPmMode: string;
41
+ }>;
42
+ export default _default;
@@ -0,0 +1,26 @@
1
+ declare var _default: import("vue").DefineComponent<{
2
+ disabledDate: {};
3
+ value: {};
4
+ defaultValue: {
5
+ validator(val: unknown): any;
6
+ };
7
+ date: {};
8
+ }, {}, {}, {
9
+ startYear(): number;
10
+ }, {
11
+ getCellStyle(year: any): {
12
+ disabled: any;
13
+ current: boolean;
14
+ today: boolean;
15
+ default: any;
16
+ };
17
+ handleYearTableClick(event: any): void;
18
+ }, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
19
+ disabledDate: {};
20
+ value: {};
21
+ defaultValue: {
22
+ validator(val: unknown): any;
23
+ };
24
+ date: {};
25
+ }>>, {}>;
26
+ export default _default;
package/lib/index.d.ts ADDED
@@ -0,0 +1,333 @@
1
+ import { PluginObject } from 'vue-demi';
2
+ declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
3
+ pickerVisible: boolean;
4
+ showClose: boolean;
5
+ userInput: null;
6
+ valueOnOpen: null;
7
+ unwatchPickerOptions: null;
8
+ }, Readonly<import("vue-demi").ExtractPropTypes<{
9
+ size: StringConstructor;
10
+ format: StringConstructor;
11
+ valueFormat: StringConstructor;
12
+ readonly: BooleanConstructor;
13
+ placeholder: StringConstructor;
14
+ startPlaceholder: StringConstructor;
15
+ endPlaceholder: StringConstructor;
16
+ prefixIcon: StringConstructor;
17
+ clearIcon: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ name: {
22
+ default: string;
23
+ validator: (val: any) => boolean;
24
+ };
25
+ disabled: BooleanConstructor;
26
+ clearable: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ id: {
31
+ default: string;
32
+ validator: (val: any) => boolean;
33
+ };
34
+ popperClass: StringConstructor;
35
+ editable: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ align: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ value: {};
44
+ defaultValue: {};
45
+ defaultTime: {};
46
+ rangeSeparator: {
47
+ default: string;
48
+ };
49
+ pickerOptions: {};
50
+ unlinkPanels: BooleanConstructor;
51
+ validateEvent: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ timezone: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ }>> & Readonly<import("vue-demi").ExtractPropTypes<{
60
+ type: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ timeArrowControl: BooleanConstructor;
65
+ }>>, Readonly<import("vue-demi").ExtractPropTypes<{
66
+ type: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ timeArrowControl: BooleanConstructor;
71
+ }>>, {}, {
72
+ name: string;
73
+ readonly: boolean;
74
+ disabled: boolean;
75
+ unlinkPanels: boolean;
76
+ clearIcon: string;
77
+ clearable: boolean;
78
+ id: string;
79
+ editable: boolean;
80
+ align: string;
81
+ rangeSeparator: string;
82
+ validateEvent: boolean;
83
+ timezone: string;
84
+ } & {
85
+ type: string;
86
+ timeArrowControl: boolean;
87
+ }, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{
88
+ size: StringConstructor;
89
+ format: StringConstructor;
90
+ valueFormat: StringConstructor;
91
+ readonly: BooleanConstructor;
92
+ placeholder: StringConstructor;
93
+ startPlaceholder: StringConstructor;
94
+ endPlaceholder: StringConstructor;
95
+ prefixIcon: StringConstructor;
96
+ clearIcon: {
97
+ type: StringConstructor;
98
+ default: string;
99
+ };
100
+ name: {
101
+ default: string;
102
+ validator: (val: any) => boolean;
103
+ };
104
+ disabled: BooleanConstructor;
105
+ clearable: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ id: {
110
+ default: string;
111
+ validator: (val: any) => boolean;
112
+ };
113
+ popperClass: StringConstructor;
114
+ editable: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ align: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ value: {};
123
+ defaultValue: {};
124
+ defaultTime: {};
125
+ rangeSeparator: {
126
+ default: string;
127
+ };
128
+ pickerOptions: {};
129
+ unlinkPanels: BooleanConstructor;
130
+ validateEvent: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ timezone: {
135
+ type: StringConstructor;
136
+ default: string;
137
+ };
138
+ }>> & Readonly<import("vue-demi").ExtractPropTypes<{
139
+ type: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ timeArrowControl: BooleanConstructor;
144
+ }>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
145
+ pickerVisible: boolean;
146
+ showClose: boolean;
147
+ userInput: null;
148
+ valueOnOpen: null;
149
+ unwatchPickerOptions: null;
150
+ } & import("vue/types/v3-component-options").ExtractComputedReturns<{
151
+ ranged(): boolean;
152
+ reference(): any;
153
+ refInput(): never[];
154
+ valueIsEmpty(): boolean;
155
+ triggerClass(): any;
156
+ selectionMode(): "week" | "month" | "year" | "dates" | "day";
157
+ haveTrigger(): any;
158
+ displayValue(): any;
159
+ parsedValue(): any;
160
+ _elFormItemSize(): any;
161
+ pickerSize(): any;
162
+ pickerDisabled(): any;
163
+ firstInputId(): {
164
+ id: any;
165
+ };
166
+ secondInputId(): {
167
+ id: any;
168
+ };
169
+ } & import("vue-demi").ComponentComputedOptions> & import("vue-demi").ComponentMethodOptions & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
170
+ type: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ timeArrowControl: BooleanConstructor;
175
+ }>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{
176
+ type: {
177
+ type: StringConstructor;
178
+ default: string;
179
+ };
180
+ timeArrowControl: BooleanConstructor;
181
+ }>>, {}, {}, {}, {}, import("vue-demi").DefineComponent<{
182
+ size: StringConstructor;
183
+ format: StringConstructor;
184
+ valueFormat: StringConstructor;
185
+ readonly: BooleanConstructor;
186
+ placeholder: StringConstructor;
187
+ startPlaceholder: StringConstructor;
188
+ endPlaceholder: StringConstructor;
189
+ prefixIcon: StringConstructor;
190
+ clearIcon: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ name: {
195
+ default: string;
196
+ validator: (val: any) => boolean;
197
+ };
198
+ disabled: BooleanConstructor;
199
+ clearable: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ id: {
204
+ default: string;
205
+ validator: (val: any) => boolean;
206
+ };
207
+ popperClass: StringConstructor;
208
+ editable: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ align: {
213
+ type: StringConstructor;
214
+ default: string;
215
+ };
216
+ value: {};
217
+ defaultValue: {};
218
+ defaultTime: {};
219
+ rangeSeparator: {
220
+ default: string;
221
+ };
222
+ pickerOptions: {};
223
+ unlinkPanels: BooleanConstructor;
224
+ validateEvent: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
228
+ timezone: {
229
+ type: StringConstructor;
230
+ default: string;
231
+ };
232
+ }, {}, {
233
+ pickerVisible: boolean;
234
+ showClose: boolean;
235
+ userInput: null;
236
+ valueOnOpen: null;
237
+ unwatchPickerOptions: null;
238
+ }, {
239
+ ranged(): boolean;
240
+ reference(): any;
241
+ refInput(): never[];
242
+ valueIsEmpty(): boolean;
243
+ triggerClass(): any;
244
+ selectionMode(): "week" | "month" | "year" | "dates" | "day";
245
+ haveTrigger(): any;
246
+ displayValue(): any;
247
+ parsedValue(): any;
248
+ _elFormItemSize(): any;
249
+ pickerSize(): any;
250
+ pickerDisabled(): any;
251
+ firstInputId(): {
252
+ id: any;
253
+ };
254
+ secondInputId(): {
255
+ id: any;
256
+ };
257
+ }, {}, any, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
258
+ size: StringConstructor;
259
+ format: StringConstructor;
260
+ valueFormat: StringConstructor;
261
+ readonly: BooleanConstructor;
262
+ placeholder: StringConstructor;
263
+ startPlaceholder: StringConstructor;
264
+ endPlaceholder: StringConstructor;
265
+ prefixIcon: StringConstructor;
266
+ clearIcon: {
267
+ type: StringConstructor;
268
+ default: string;
269
+ };
270
+ name: {
271
+ default: string;
272
+ validator: (val: any) => boolean;
273
+ };
274
+ disabled: BooleanConstructor;
275
+ clearable: {
276
+ type: BooleanConstructor;
277
+ default: boolean;
278
+ };
279
+ id: {
280
+ default: string;
281
+ validator: (val: any) => boolean;
282
+ };
283
+ popperClass: StringConstructor;
284
+ editable: {
285
+ type: BooleanConstructor;
286
+ default: boolean;
287
+ };
288
+ align: {
289
+ type: StringConstructor;
290
+ default: string;
291
+ };
292
+ value: {};
293
+ defaultValue: {};
294
+ defaultTime: {};
295
+ rangeSeparator: {
296
+ default: string;
297
+ };
298
+ pickerOptions: {};
299
+ unlinkPanels: BooleanConstructor;
300
+ validateEvent: {
301
+ type: BooleanConstructor;
302
+ default: boolean;
303
+ };
304
+ timezone: {
305
+ type: StringConstructor;
306
+ default: string;
307
+ };
308
+ }>>, {
309
+ name: string;
310
+ readonly: boolean;
311
+ disabled: boolean;
312
+ unlinkPanels: boolean;
313
+ clearIcon: string;
314
+ clearable: boolean;
315
+ id: string;
316
+ editable: boolean;
317
+ align: string;
318
+ rangeSeparator: string;
319
+ validateEvent: boolean;
320
+ timezone: string;
321
+ }>, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {
322
+ type: string;
323
+ timeArrowControl: boolean;
324
+ }> & {
325
+ props: {
326
+ type: {
327
+ type: StringConstructor;
328
+ default: string;
329
+ };
330
+ timeArrowControl: BooleanConstructor;
331
+ };
332
+ } & PluginObject<undefined>;
333
+ export default _default;