@opentinyvue/vue-date-picker 2.22.0 → 3.22.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.
package/lib/index.js CHANGED
@@ -245,7 +245,7 @@ var DatePicker = defineComponent({
245
245
  });
246
246
  }
247
247
  });
248
- var version = "2.22.0";
248
+ var version = "3.22.0";
249
249
  DatePicker.model = {
250
250
  prop: "modelValue",
251
251
  event: "update:modelValue"
package/lib/pc.js CHANGED
@@ -1,37 +1,3 @@
1
- import Picker from '@opentinyvue/vue-picker';
2
- import { $props } from '@opentinyvue/vue-common';
3
- import { extend } from '@opentinyvue/utils';
4
-
5
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
6
- var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
7
- if (render) {
8
- options.render = render;
9
- options.staticRenderFns = staticRenderFns;
10
- options._compiled = true;
11
- }
12
- var hook;
13
- if (injectStyles) {
14
- hook = injectStyles;
15
- }
16
- if (hook) {
17
- if (options.functional) {
18
- options._injectStyles = hook;
19
- var originalRender = options.render;
20
- options.render = function renderWithStyleInjection(h, context) {
21
- hook.call(context);
22
- return originalRender(h, context);
23
- };
24
- } else {
25
- var existing = options.beforeCreate;
26
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
27
- }
28
- }
29
- return {
30
- exports: scriptExports,
31
- options
32
- };
33
- }
34
-
35
1
  function _extends() {
36
2
  return _extends = Object.assign ? Object.assign.bind() : function(n) {
37
3
  for (var e = 1; e < arguments.length; e++) {
@@ -41,6 +7,9 @@ function _extends() {
41
7
  return n;
42
8
  }, _extends.apply(null, arguments);
43
9
  }
10
+ import Picker from "@opentinyvue/vue-picker";
11
+ import { $props } from "@opentinyvue/vue-common";
12
+ import { extend } from "@opentinyvue/utils";
44
13
  var DatePicker = extend(true, {
45
14
  props: _extends({}, $props, {
46
15
  _constants: {
@@ -55,16 +24,6 @@ var DatePicker = extend(true, {
55
24
  }
56
25
  })
57
26
  }, Picker);
58
- var __vue2_render, __vue2_staticRenderFns;
59
- var __cssModules = {};
60
- var __component__ = /* @__PURE__ */ normalizeComponent(DatePicker, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles);
61
- function __vue2_injectStyles(context) {
62
- for (var o in __cssModules) {
63
- this[o] = __cssModules[o];
64
- }
65
- }
66
- var pc = /* @__PURE__ */ function() {
67
- return __component__.exports;
68
- }();
69
-
70
- export { pc as default };
27
+ export {
28
+ DatePicker as default
29
+ };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-date-picker",
3
3
  "type": "module",
4
- "version": "2.22.0",
4
+ "version": "3.22.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/utils": "~2.22.0",
12
- "@opentinyvue/vue-common": "~2.22.0",
13
- "@opentinyvue/vue-icon": "~2.22.0",
14
- "@opentinyvue/vue-picker": "~2.22.0",
11
+ "@opentinyvue/utils": "~3.22.0",
12
+ "@opentinyvue/vue-common": "~3.22.0",
13
+ "@opentinyvue/vue-icon": "~3.22.0",
14
+ "@opentinyvue/vue-picker": "~3.22.0",
15
15
  "@opentinyvue/vue-renderless": "~3.22.0",
16
16
  "@opentinyvue/vue-theme": "~3.22.0"
17
17
  },
package/src/index.d.ts CHANGED
@@ -110,7 +110,9 @@ export declare const datePickerProps: {
110
110
  prefixIcon: ObjectConstructor;
111
111
  clearIcon: {
112
112
  type: ObjectConstructor;
113
- default(): any;
113
+ default(): import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
114
+ [key: string]: any;
115
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
114
116
  };
115
117
  name: {
116
118
  default: string;
@@ -205,5 +207,391 @@ export declare const datePickerProps: {
205
207
  tiny_theme: StringConstructor;
206
208
  tiny_chart_theme: ObjectConstructor;
207
209
  };
208
- declare const _default: any;
210
+ declare const _default: import("@vue/runtime-core").DefineComponent<{
211
+ tabindex: {
212
+ type: StringConstructor;
213
+ default: string;
214
+ };
215
+ timeFormat: StringConstructor;
216
+ suffixIcon: ObjectConstructor;
217
+ label: StringConstructor;
218
+ shape: StringConstructor;
219
+ tip: StringConstructor;
220
+ changeOnConfirm: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ popperAppendToBody: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
228
+ isutc8: {
229
+ type: BooleanConstructor;
230
+ default: boolean;
231
+ };
232
+ dbTimezone: NumberConstructor;
233
+ timezoneOffset: NumberConstructor;
234
+ iso8601: BooleanConstructor;
235
+ autoFormat: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ title: StringConstructor;
240
+ blank: {
241
+ type: BooleanConstructor;
242
+ default: boolean;
243
+ };
244
+ type: {
245
+ type: PropType<"date" | "year" | "month" | "dates" | "years" | "yearrange" | "week" | "daterange" | "datetimerange" | "monthrange" | "datetime">;
246
+ default: string;
247
+ };
248
+ _constants: {
249
+ type: ObjectConstructor;
250
+ default: () => {
251
+ MonthDay: number;
252
+ Minutes: number;
253
+ Hours: number;
254
+ TotalMonth: number;
255
+ Max: string;
256
+ Min: string;
257
+ Hour: string;
258
+ Minute: string;
259
+ CapYear: string;
260
+ CapMonth: string;
261
+ CapDate: string;
262
+ CapHour: string;
263
+ CapMinute: string;
264
+ YearMonth: string;
265
+ DateTime: string;
266
+ Date: string;
267
+ HookMounted: string;
268
+ Hidden: string;
269
+ Year: string;
270
+ Day: string;
271
+ };
272
+ };
273
+ timeArrowControl: BooleanConstructor;
274
+ timeEditable: {
275
+ type: BooleanConstructor;
276
+ default: boolean;
277
+ };
278
+ size: StringConstructor;
279
+ format: StringConstructor;
280
+ valueFormat: StringConstructor;
281
+ readonly: BooleanConstructor;
282
+ placeholder: StringConstructor;
283
+ startPlaceholder: StringConstructor;
284
+ endPlaceholder: StringConstructor;
285
+ prefixIcon: ObjectConstructor;
286
+ clearIcon: {
287
+ type: ObjectConstructor;
288
+ default(): import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
289
+ [key: string]: any;
290
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
291
+ };
292
+ name: {
293
+ default: string;
294
+ validator: (value: any) => boolean;
295
+ };
296
+ disabled: BooleanConstructor;
297
+ clearable: {
298
+ type: BooleanConstructor;
299
+ default: boolean;
300
+ };
301
+ id: {
302
+ default: string;
303
+ validator: (value: any) => boolean;
304
+ };
305
+ popperClass: StringConstructor;
306
+ editable: {
307
+ type: BooleanConstructor;
308
+ default: boolean;
309
+ };
310
+ align: {
311
+ type: StringConstructor;
312
+ default: string;
313
+ };
314
+ modelValue: {};
315
+ defaultValue: {};
316
+ defaultTime: {};
317
+ rangeSeparator: {
318
+ type: (StringConstructor | ObjectConstructor)[];
319
+ default: string;
320
+ };
321
+ pickerOptions: {};
322
+ unlinkPanels: BooleanConstructor;
323
+ validateEvent: {
324
+ type: BooleanConstructor;
325
+ default: boolean;
326
+ };
327
+ isRange: BooleanConstructor;
328
+ arrowControl: BooleanConstructor;
329
+ timezoneData: {};
330
+ showTimezone: {
331
+ type: BooleanConstructor;
332
+ default: boolean;
333
+ };
334
+ defaultTimezone: {};
335
+ visible: BooleanConstructor;
336
+ minDate: {
337
+ type: DateConstructor;
338
+ default: () => Date;
339
+ validator: (val: Date) => boolean;
340
+ };
341
+ maxDate: {
342
+ type: DateConstructor;
343
+ default: () => Date;
344
+ validator: (val: Date) => boolean;
345
+ };
346
+ formatter: {
347
+ type: FunctionConstructor;
348
+ default: (type: any, value: any) => any;
349
+ };
350
+ componentName: {
351
+ type: StringConstructor;
352
+ default: string;
353
+ };
354
+ displayOnly: {
355
+ type: BooleanConstructor;
356
+ default: boolean;
357
+ };
358
+ step: {
359
+ type: ObjectConstructor;
360
+ default(): {
361
+ hour: number;
362
+ minute: number;
363
+ second: number;
364
+ };
365
+ };
366
+ showWeekNumber: {
367
+ type: BooleanConstructor;
368
+ default: boolean;
369
+ };
370
+ formatWeeks: FunctionConstructor;
371
+ changeCompat: {
372
+ type: BooleanConstructor;
373
+ default: boolean;
374
+ };
375
+ nowClick: {
376
+ type: FunctionConstructor;
377
+ };
378
+ tiny_mode: StringConstructor;
379
+ tiny_mode_root: BooleanConstructor;
380
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
381
+ tiny_renderless: FunctionConstructor;
382
+ tiny_theme: StringConstructor;
383
+ tiny_chart_theme: ObjectConstructor;
384
+ }, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
385
+ [key: string]: any;
386
+ }>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
387
+ tabindex: {
388
+ type: StringConstructor;
389
+ default: string;
390
+ };
391
+ timeFormat: StringConstructor;
392
+ suffixIcon: ObjectConstructor;
393
+ label: StringConstructor;
394
+ shape: StringConstructor;
395
+ tip: StringConstructor;
396
+ changeOnConfirm: {
397
+ type: BooleanConstructor;
398
+ default: boolean;
399
+ };
400
+ popperAppendToBody: {
401
+ type: BooleanConstructor;
402
+ default: boolean;
403
+ };
404
+ isutc8: {
405
+ type: BooleanConstructor;
406
+ default: boolean;
407
+ };
408
+ dbTimezone: NumberConstructor;
409
+ timezoneOffset: NumberConstructor;
410
+ iso8601: BooleanConstructor;
411
+ autoFormat: {
412
+ type: BooleanConstructor;
413
+ default: boolean;
414
+ };
415
+ title: StringConstructor;
416
+ blank: {
417
+ type: BooleanConstructor;
418
+ default: boolean;
419
+ };
420
+ type: {
421
+ type: PropType<"date" | "year" | "month" | "dates" | "years" | "yearrange" | "week" | "daterange" | "datetimerange" | "monthrange" | "datetime">;
422
+ default: string;
423
+ };
424
+ _constants: {
425
+ type: ObjectConstructor;
426
+ default: () => {
427
+ MonthDay: number;
428
+ Minutes: number;
429
+ Hours: number;
430
+ TotalMonth: number;
431
+ Max: string;
432
+ Min: string;
433
+ Hour: string;
434
+ Minute: string;
435
+ CapYear: string;
436
+ CapMonth: string;
437
+ CapDate: string;
438
+ CapHour: string;
439
+ CapMinute: string;
440
+ YearMonth: string;
441
+ DateTime: string;
442
+ Date: string;
443
+ HookMounted: string;
444
+ Hidden: string;
445
+ Year: string;
446
+ Day: string;
447
+ };
448
+ };
449
+ timeArrowControl: BooleanConstructor;
450
+ timeEditable: {
451
+ type: BooleanConstructor;
452
+ default: boolean;
453
+ };
454
+ size: StringConstructor;
455
+ format: StringConstructor;
456
+ valueFormat: StringConstructor;
457
+ readonly: BooleanConstructor;
458
+ placeholder: StringConstructor;
459
+ startPlaceholder: StringConstructor;
460
+ endPlaceholder: StringConstructor;
461
+ prefixIcon: ObjectConstructor;
462
+ clearIcon: {
463
+ type: ObjectConstructor;
464
+ default(): import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
465
+ [key: string]: any;
466
+ }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
467
+ };
468
+ name: {
469
+ default: string;
470
+ validator: (value: any) => boolean;
471
+ };
472
+ disabled: BooleanConstructor;
473
+ clearable: {
474
+ type: BooleanConstructor;
475
+ default: boolean;
476
+ };
477
+ id: {
478
+ default: string;
479
+ validator: (value: any) => boolean;
480
+ };
481
+ popperClass: StringConstructor;
482
+ editable: {
483
+ type: BooleanConstructor;
484
+ default: boolean;
485
+ };
486
+ align: {
487
+ type: StringConstructor;
488
+ default: string;
489
+ };
490
+ modelValue: {};
491
+ defaultValue: {};
492
+ defaultTime: {};
493
+ rangeSeparator: {
494
+ type: (StringConstructor | ObjectConstructor)[];
495
+ default: string;
496
+ };
497
+ pickerOptions: {};
498
+ unlinkPanels: BooleanConstructor;
499
+ validateEvent: {
500
+ type: BooleanConstructor;
501
+ default: boolean;
502
+ };
503
+ isRange: BooleanConstructor;
504
+ arrowControl: BooleanConstructor;
505
+ timezoneData: {};
506
+ showTimezone: {
507
+ type: BooleanConstructor;
508
+ default: boolean;
509
+ };
510
+ defaultTimezone: {};
511
+ visible: BooleanConstructor;
512
+ minDate: {
513
+ type: DateConstructor;
514
+ default: () => Date;
515
+ validator: (val: Date) => boolean;
516
+ };
517
+ maxDate: {
518
+ type: DateConstructor;
519
+ default: () => Date;
520
+ validator: (val: Date) => boolean;
521
+ };
522
+ formatter: {
523
+ type: FunctionConstructor;
524
+ default: (type: any, value: any) => any;
525
+ };
526
+ componentName: {
527
+ type: StringConstructor;
528
+ default: string;
529
+ };
530
+ displayOnly: {
531
+ type: BooleanConstructor;
532
+ default: boolean;
533
+ };
534
+ step: {
535
+ type: ObjectConstructor;
536
+ default(): {
537
+ hour: number;
538
+ minute: number;
539
+ second: number;
540
+ };
541
+ };
542
+ showWeekNumber: {
543
+ type: BooleanConstructor;
544
+ default: boolean;
545
+ };
546
+ formatWeeks: FunctionConstructor;
547
+ changeCompat: {
548
+ type: BooleanConstructor;
549
+ default: boolean;
550
+ };
551
+ nowClick: {
552
+ type: FunctionConstructor;
553
+ };
554
+ tiny_mode: StringConstructor;
555
+ tiny_mode_root: BooleanConstructor;
556
+ tiny_template: (ObjectConstructor | FunctionConstructor)[];
557
+ tiny_renderless: FunctionConstructor;
558
+ tiny_theme: StringConstructor;
559
+ tiny_chart_theme: ObjectConstructor;
560
+ }>>, {
561
+ name: string;
562
+ disabled: boolean;
563
+ type: "date" | "year" | "month" | "dates" | "years" | "yearrange" | "week" | "daterange" | "datetimerange" | "monthrange" | "datetime";
564
+ id: string;
565
+ visible: boolean;
566
+ tiny_mode_root: boolean;
567
+ _constants: Record<string, any>;
568
+ componentName: string;
569
+ tabindex: string;
570
+ popperAppendToBody: boolean;
571
+ readonly: boolean;
572
+ clearable: boolean;
573
+ validateEvent: boolean;
574
+ displayOnly: boolean;
575
+ iso8601: boolean;
576
+ isutc8: boolean;
577
+ rangeSeparator: string | Record<string, any>;
578
+ changeOnConfirm: boolean;
579
+ autoFormat: boolean;
580
+ blank: boolean;
581
+ timeArrowControl: boolean;
582
+ timeEditable: boolean;
583
+ clearIcon: Record<string, any>;
584
+ editable: boolean;
585
+ align: string;
586
+ unlinkPanels: boolean;
587
+ isRange: boolean;
588
+ arrowControl: boolean;
589
+ showTimezone: boolean;
590
+ minDate: Date;
591
+ maxDate: Date;
592
+ formatter: Function;
593
+ step: Record<string, any>;
594
+ showWeekNumber: boolean;
595
+ changeCompat: boolean;
596
+ }, {}>;
209
597
  export default _default;