@blueking/date-picker 0.0.24 → 0.0.26

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.
@@ -379,13 +379,20 @@ const Ia = [
379
379
  "onUpdate:active": a[0] || (a[0] = (d) => e.$emit("update:modelValue", d))
380
380
  }, {
381
381
  default: C(() => [
382
- (g(!0), S($, null, R(i.panels, (d) => (g(), H(t(ga).TabPanel, {
383
- key: d.id,
384
- name: d.id,
385
- label: d.name
386
- }, null, 8, ["name", "label"]))), 128))
382
+ (g(!0), S(
383
+ $,
384
+ null,
385
+ R(i.panels, (d) => (g(), H(t(ga).TabPanel, {
386
+ key: d.id,
387
+ name: d.id,
388
+ label: d.name
389
+ }, null, 8, ["name", "label"]))),
390
+ 128
391
+ /* KEYED_FRAGMENT */
392
+ ))
387
393
  ]),
388
394
  _: 1
395
+ /* STABLE */
389
396
  }, 8, ["active"])
390
397
  ]));
391
398
  }
@@ -397,24 +404,41 @@ const ba = /* @__PURE__ */ G({
397
404
  },
398
405
  emits: ["submit"],
399
406
  setup(i) {
400
- return (e, a) => (g(), S($, null, [
401
- w(t(ma), {
402
- class: "common-submit",
403
- outline: !0,
404
- theme: "primary",
405
- disabled: e.disabled,
406
- onClick: a[0] || (a[0] = (d) => e.$emit("submit"))
407
- }, {
408
- default: C(() => [
409
- K(k(t(l)("确定")), 1)
410
- ]),
411
- _: 1
412
- }, 8, ["disabled"]),
413
- da("", !0)
414
- ], 64));
407
+ return (e, a) => (g(), S(
408
+ $,
409
+ null,
410
+ [
411
+ w(t(ma), {
412
+ class: "common-submit",
413
+ outline: !0,
414
+ theme: "primary",
415
+ disabled: e.disabled,
416
+ onClick: a[0] || (a[0] = (d) => e.$emit("submit"))
417
+ }, {
418
+ default: C(() => [
419
+ K(
420
+ k(t(l)("确定")),
421
+ 1
422
+ /* TEXT */
423
+ )
424
+ ]),
425
+ _: 1
426
+ /* STABLE */
427
+ }, 8, ["disabled"]),
428
+ da("v-if", !0)
429
+ ],
430
+ 64
431
+ /* STABLE_FRAGMENT */
432
+ ));
415
433
  }
416
434
  });
417
- const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { class: "date-panel-main" }, he = { class: "date-header" }, be = { class: "date-header-left" }, ve = { class: "date-header-center" }, pe = /* @__PURE__ */ s("span", { class: "date-split" }, null, -1), Ae = { class: "date-header-right" }, fe = { class: "date-content" }, ge = { class: "date-grid" }, xe = ["onClick"], ya = 6, ra = 7, wa = /* @__PURE__ */ G({
435
+ const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { class: "date-panel-main" }, he = { class: "date-header" }, be = { class: "date-header-left" }, ve = { class: "date-header-center" }, pe = /* @__PURE__ */ s(
436
+ "span",
437
+ { class: "date-split" },
438
+ null,
439
+ -1
440
+ /* HOISTED */
441
+ ), Ae = { class: "date-header-right" }, fe = { class: "date-content" }, ge = { class: "date-grid" }, xe = ["onClick"], ya = 6, ra = 7, wa = /* @__PURE__ */ G({
418
442
  __name: "date-panel",
419
443
  props: {
420
444
  format: { default: "YYYY-MM-DD HH:mm:ss" },
@@ -442,7 +466,11 @@ const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { c
442
466
  };
443
467
  return (o, b) => (g(), S("div", oe, [
444
468
  s("div", de, [
445
- K(k(t(l)("结束时间")) + " ", 1),
469
+ K(
470
+ k(t(l)("结束时间")) + " ",
471
+ 1
472
+ /* TEXT */
473
+ ),
446
474
  w(t(Xa), {
447
475
  size: "small",
448
476
  class: "title-check",
@@ -453,6 +481,7 @@ const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { c
453
481
  K(" now ")
454
482
  ]),
455
483
  _: 1
484
+ /* STABLE */
456
485
  }, 8, ["model-value"])
457
486
  ]),
458
487
  s("div", me, [
@@ -468,9 +497,17 @@ const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { c
468
497
  })
469
498
  ]),
470
499
  s("div", ve, [
471
- K(k(m.value.year()), 1),
500
+ K(
501
+ k(m.value.year()),
502
+ 1
503
+ /* TEXT */
504
+ ),
472
505
  pe,
473
- K(k(m.value.month() + 1), 1)
506
+ K(
507
+ k(m.value.month() + 1),
508
+ 1
509
+ /* TEXT */
510
+ )
474
511
  ]),
475
512
  s("div", Ae, [
476
513
  w(t(Da), {
@@ -485,49 +522,85 @@ const oe = { class: "date-panel" }, de = { class: "date-panel-title" }, me = { c
485
522
  ]),
486
523
  s("div", fe, [
487
524
  s("ul", ge, [
488
- (g(!0), S($, null, R(t(c), (f, P) => (g(), S("li", {
489
- class: "date-grid-item not-click",
490
- key: P
491
- }, k(f), 1))), 128))
525
+ (g(!0), S(
526
+ $,
527
+ null,
528
+ R(t(c), (f, P) => (g(), S(
529
+ "li",
530
+ {
531
+ class: "date-grid-item not-click",
532
+ key: P
533
+ },
534
+ k(f),
535
+ 1
536
+ /* TEXT */
537
+ ))),
538
+ 128
539
+ /* KEYED_FRAGMENT */
540
+ ))
492
541
  ]),
493
- (g(), S($, null, R(ya, (f) => s("ul", {
494
- class: "date-grid",
495
- key: f
496
- }, [
497
- (g(!0), S($, null, R(u.value.slice((f - 1) * ra, (f - 1) * ra + ra), (P) => (g(), S("li", {
498
- class: ea(["date-grid-item", {
499
- "is-last-month": P.isBefore(m.value, "month"),
500
- "is-next-month": P.isAfter(m.value, "month"),
501
- "is-today": P.isSame(t(_), "day"),
502
- "is-disabled": o.minDate && P.isBefore(o.minDate, "day"),
503
- "is-selected": a.modelValue && P.isSame(a.modelValue, "day")
504
- }]),
505
- key: P.unix(),
506
- onClick: Sa((j) => h(P), ["prevent"])
507
- }, k(P.date()), 11, xe))), 128))
508
- ])), 64))
542
+ (g(), S(
543
+ $,
544
+ null,
545
+ R(ya, (f) => s("ul", {
546
+ class: "date-grid",
547
+ key: f
548
+ }, [
549
+ (g(!0), S(
550
+ $,
551
+ null,
552
+ R(u.value.slice((f - 1) * ra, (f - 1) * ra + ra), (P) => (g(), S("li", {
553
+ class: ea(["date-grid-item", {
554
+ "is-last-month": P.isBefore(m.value, "month"),
555
+ "is-next-month": P.isAfter(m.value, "month"),
556
+ "is-today": P.isSame(t(_), "day"),
557
+ "is-disabled": o.minDate && P.isBefore(o.minDate, "day"),
558
+ "is-selected": a.modelValue && P.isSame(a.modelValue, "day")
559
+ }]),
560
+ key: P.unix(),
561
+ onClick: Sa((j) => h(P), ["prevent"])
562
+ }, k(P.date()), 11, xe))),
563
+ 128
564
+ /* KEYED_FRAGMENT */
565
+ ))
566
+ ])),
567
+ 64
568
+ /* STABLE_FRAGMENT */
569
+ ))
509
570
  ])
510
571
  ])
511
572
  ]));
512
573
  }
513
574
  });
514
- const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class: "date-picker" }, ye = /* @__PURE__ */ s("span", { class: "date-picker-icon" }, [
515
- /* @__PURE__ */ s("svg", {
516
- class: "date-content-icon",
517
- viewBox: "0 0 1024 1024",
518
- version: "1.1",
519
- xmlns: "http://www.w3.org/2000/svg",
520
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
521
- width: "14",
522
- height: "14"
523
- }, [
524
- /* @__PURE__ */ s("path", {
575
+ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class: "date-picker" }, ye = /* @__PURE__ */ s(
576
+ "span",
577
+ { class: "date-picker-icon" },
578
+ [
579
+ /* @__PURE__ */ s("svg", {
580
+ class: "date-content-icon",
581
+ viewBox: "0 0 1024 1024",
582
+ version: "1.1",
525
583
  xmlns: "http://www.w3.org/2000/svg",
526
- d: "M558.933 465.067h-93.866v93.866h93.866v-93.866z m0 162.133h-93.866v93.867h93.866V627.2z m371.2-533.333h-93.866V21.333c0-12.8-8.534-21.333-21.334-21.333S793.6 8.533 793.6 21.333V89.6H234.667V21.333c0-12.8-12.8-21.333-25.6-21.333s-21.334 8.533-21.334 21.333V89.6H93.867C42.667 93.867 0 136.533 0 187.733V934.4c0 46.933 42.667 89.6 93.867 89.6h836.266c51.2 0 93.867-42.667 93.867-93.867v-742.4c0-51.2-42.667-93.866-93.867-93.866z m46.934 836.266c0 25.6-21.334 46.934-46.934 46.934H93.867c-25.6 0-46.934-21.334-46.934-46.934V371.2h930.134v558.933z m0-605.866H46.933V187.733c0-25.6 21.334-46.933 46.934-46.933h93.866v68.267c0 12.8 8.534 21.333 21.334 21.333s21.333-8.533 21.333-21.333V140.8h558.933v68.267c0 12.8 8.534 21.333 21.334 21.333S832 221.867 832 209.067V140.8h93.867c25.6 0 46.933 21.333 46.933 46.933v136.534h4.267zM789.333 627.2h-93.866v93.867h93.866V627.2z m0-162.133h-93.866v93.866h93.866v-93.866z m-230.4 324.266h-93.866V883.2h93.866v-93.867z m-234.666 0h-89.6V883.2h93.866v-93.867h-4.266z m0-324.266h-89.6v93.866h93.866v-93.866h-4.266z m0 162.133h-89.6v93.867h93.866V627.2h-4.266z",
527
- fill: "#C4C6CC"
528
- })
529
- ])
530
- ], -1), we = ["placeholder", "value"], Me = /* @__PURE__ */ s("span", { class: "date-picker-split" }, "~", -1), Ee = ["placeholder", "value"], ze = { class: "show-format" }, Se = { class: "date-format-wrapper" }, Pe = { class: "content-title" }, De = { class: "content-table" }, Ce = /* @__PURE__ */ G({
584
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
585
+ width: "14",
586
+ height: "14"
587
+ }, [
588
+ /* @__PURE__ */ s("path", {
589
+ xmlns: "http://www.w3.org/2000/svg",
590
+ d: "M558.933 465.067h-93.866v93.866h93.866v-93.866z m0 162.133h-93.866v93.867h93.866V627.2z m371.2-533.333h-93.866V21.333c0-12.8-8.534-21.333-21.334-21.333S793.6 8.533 793.6 21.333V89.6H234.667V21.333c0-12.8-12.8-21.333-25.6-21.333s-21.334 8.533-21.334 21.333V89.6H93.867C42.667 93.867 0 136.533 0 187.733V934.4c0 46.933 42.667 89.6 93.867 89.6h836.266c51.2 0 93.867-42.667 93.867-93.867v-742.4c0-51.2-42.667-93.866-93.867-93.866z m46.934 836.266c0 25.6-21.334 46.934-46.934 46.934H93.867c-25.6 0-46.934-21.334-46.934-46.934V371.2h930.134v558.933z m0-605.866H46.933V187.733c0-25.6 21.334-46.933 46.934-46.933h93.866v68.267c0 12.8 8.534 21.333 21.334 21.333s21.333-8.533 21.333-21.333V140.8h558.933v68.267c0 12.8 8.534 21.333 21.334 21.333S832 221.867 832 209.067V140.8h93.867c25.6 0 46.933 21.333 46.933 46.933v136.534h4.267zM789.333 627.2h-93.866v93.867h93.866V627.2z m0-162.133h-93.866v93.866h93.866v-93.866z m-230.4 324.266h-93.866V883.2h93.866v-93.867z m-234.666 0h-89.6V883.2h93.866v-93.867h-4.266z m0-324.266h-89.6v93.866h93.866v-93.866h-4.266z m0 162.133h-89.6v93.867h93.866V627.2h-4.266z",
591
+ fill: "#C4C6CC"
592
+ })
593
+ ])
594
+ ],
595
+ -1
596
+ /* HOISTED */
597
+ ), we = ["placeholder", "value"], Me = /* @__PURE__ */ s(
598
+ "span",
599
+ { class: "date-picker-split" },
600
+ "~",
601
+ -1
602
+ /* HOISTED */
603
+ ), Ee = ["placeholder", "value"], ze = { class: "show-format" }, Se = { class: "date-format-wrapper" }, Pe = { class: "content-title" }, De = { class: "content-table" }, Ce = /* @__PURE__ */ G({
531
604
  __name: "date-picker",
532
605
  props: {
533
606
  value: {}
@@ -641,6 +714,7 @@ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class
641
714
  ];
642
715
  }),
643
716
  _: 1
717
+ /* STABLE */
644
718
  }, 8, ["is-show"]),
645
719
  Me,
646
720
  w(t(aa), {
@@ -681,12 +755,13 @@ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class
681
755
  ];
682
756
  }),
683
757
  _: 1
758
+ /* STABLE */
684
759
  }, 8, ["is-show"]),
685
760
  r.value || n.value ? (g(), H(t(Ja), {
686
761
  key: 0,
687
762
  class: "date-picker-clear",
688
763
  onClick: E
689
- })) : da("", !0)
764
+ })) : da("v-if", !0)
690
765
  ]),
691
766
  w(ba, {
692
767
  disabled: !(r.value && n.value),
@@ -694,7 +769,11 @@ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class
694
769
  }, null, 8, ["disabled"])
695
770
  ]),
696
771
  s("div", ze, [
697
- K(k(t(l)("支持多种时间格式自动转换")) + " ", 1),
772
+ K(
773
+ k(t(l)("支持多种时间格式自动转换")) + " ",
774
+ 1
775
+ /* TEXT */
776
+ ),
698
777
  w(t(aa), {
699
778
  trigger: "click",
700
779
  placement: "bottom",
@@ -702,19 +781,55 @@ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class
702
781
  }, {
703
782
  content: C(() => [
704
783
  s("div", Se, [
705
- s("div", Pe, k(t(l)("时间格式支持")), 1),
784
+ s(
785
+ "div",
786
+ Pe,
787
+ k(t(l)("时间格式支持")),
788
+ 1
789
+ /* TEXT */
790
+ ),
706
791
  s("table", De, [
707
792
  s("thead", null, [
708
793
  s("tr", null, [
709
- s("th", null, k(t(l)("格式")), 1),
710
- s("th", null, k(t(l)("示例")), 1)
794
+ s(
795
+ "th",
796
+ null,
797
+ k(t(l)("格式")),
798
+ 1
799
+ /* TEXT */
800
+ ),
801
+ s(
802
+ "th",
803
+ null,
804
+ k(t(l)("示例")),
805
+ 1
806
+ /* TEXT */
807
+ )
711
808
  ])
712
809
  ]),
713
810
  s("tbody", null, [
714
- (g(!0), S($, null, R(t(re), (z) => (g(), S("tr", { key: z }, [
715
- s("td", null, k(z), 1),
716
- s("td", null, k(t(b).format(z)), 1)
717
- ]))), 128))
811
+ (g(!0), S(
812
+ $,
813
+ null,
814
+ R(t(re), (z) => (g(), S("tr", { key: z }, [
815
+ s(
816
+ "td",
817
+ null,
818
+ k(z),
819
+ 1
820
+ /* TEXT */
821
+ ),
822
+ s(
823
+ "td",
824
+ null,
825
+ k(t(b).format(z)),
826
+ 1
827
+ /* TEXT */
828
+ )
829
+ ]))),
830
+ 128
831
+ /* KEYED_FRAGMENT */
832
+ ))
718
833
  ])
719
834
  ])
720
835
  ])
@@ -726,12 +841,18 @@ const Ie = { class: "date-wrapper" }, ke = { class: "date-input" }, _e = { class
726
841
  class: "format-button"
727
842
  }, {
728
843
  default: C(() => [
729
- K(k(t(l)("查看支持格式")), 1)
844
+ K(
845
+ k(t(l)("查看支持格式")),
846
+ 1
847
+ /* TEXT */
848
+ )
730
849
  ]),
731
850
  _: 1
851
+ /* STABLE */
732
852
  })
733
853
  ]),
734
854
  _: 1
855
+ /* STABLE */
735
856
  })
736
857
  ])
737
858
  ]));
@@ -821,43 +942,51 @@ const Ve = { class: "natural-picker" }, Te = ["onClick"], Be = "__", Ye = /* @__
821
942
  "no-match-text": t(l)("无匹配数据")
822
943
  }, {
823
944
  default: C(() => [
824
- (g(!0), S($, null, R(u.value, (v) => (g(), H(t(U).Option, {
825
- id: h(v),
826
- key: h(v),
827
- name: v.name
828
- }, {
829
- default: C(() => [
830
- s("div", {
831
- onClick: p[1] || (p[1] = Sa(() => {
832
- }, ["prevent", "stop"])),
833
- style: { width: "100%", padding: "0 12px", margin: "0 -12px" }
834
- }, [
835
- m.value === v.id ? (g(), H(t(Ca), {
836
- key: 0,
837
- style: { width: "100%" },
838
- type: "number",
839
- size: "small",
840
- prefix: v.prefix,
841
- suffix: v.suffix,
842
- clearable: !1,
843
- autofocus: !0,
844
- "show-control": !1,
845
- placeholder: t(l)("请输入"),
846
- modelValue: r.value,
847
- "onUpdate:modelValue": p[0] || (p[0] = (E) => r.value = E),
848
- onBlur: (E) => j(E, v),
849
- onKeypress: (E, y) => N(y, E, v)
850
- }, null, 8, ["prefix", "suffix", "placeholder", "modelValue", "onBlur", "onKeypress"])) : (g(), S("div", {
851
- key: 1,
852
- onClick: (E) => b(v),
853
- style: { width: "100%" }
854
- }, k(v.name), 9, Te))
855
- ])
856
- ]),
857
- _: 2
858
- }, 1032, ["id", "name"]))), 128))
945
+ (g(!0), S(
946
+ $,
947
+ null,
948
+ R(u.value, (v) => (g(), H(t(U).Option, {
949
+ id: h(v),
950
+ key: h(v),
951
+ name: v.name
952
+ }, {
953
+ default: C(() => [
954
+ s("div", {
955
+ onClick: p[1] || (p[1] = Sa(() => {
956
+ }, ["prevent", "stop"])),
957
+ style: { width: "100%", padding: "0 12px", margin: "0 -12px" }
958
+ }, [
959
+ m.value === v.id ? (g(), H(t(Ca), {
960
+ key: 0,
961
+ style: { width: "100%" },
962
+ type: "number",
963
+ size: "small",
964
+ prefix: v.prefix,
965
+ suffix: v.suffix,
966
+ clearable: !1,
967
+ autofocus: !0,
968
+ "show-control": !1,
969
+ placeholder: t(l)("请输入"),
970
+ modelValue: r.value,
971
+ "onUpdate:modelValue": p[0] || (p[0] = (E) => r.value = E),
972
+ onBlur: (E) => j(E, v),
973
+ onKeypress: (E, y) => N(y, E, v)
974
+ }, null, 8, ["prefix", "suffix", "placeholder", "modelValue", "onBlur", "onKeypress"])) : (g(), S("div", {
975
+ key: 1,
976
+ onClick: (E) => b(v),
977
+ style: { width: "100%" }
978
+ }, k(v.name), 9, Te))
979
+ ])
980
+ ]),
981
+ _: 2
982
+ /* DYNAMIC */
983
+ }, 1032, ["id", "name"]))),
984
+ 128
985
+ /* KEYED_FRAGMENT */
986
+ ))
859
987
  ]),
860
988
  _: 1
989
+ /* STABLE */
861
990
  }, 8, ["model-value", "prefix", "search-placeholder", "no-match-text"]),
862
991
  w(t(U), {
863
992
  class: "natural-unit",
@@ -867,13 +996,20 @@ const Ve = { class: "natural-picker" }, Te = ["onClick"], Be = "__", Ye = /* @__
867
996
  onChange: f
868
997
  }, {
869
998
  default: C(() => [
870
- (g(!0), S($, null, R(t(Ia), (v) => (g(), H(t(U).Option, {
871
- id: v.id,
872
- key: v.id,
873
- name: v.name
874
- }, null, 8, ["id", "name"]))), 128))
999
+ (g(!0), S(
1000
+ $,
1001
+ null,
1002
+ R(t(Ia), (v) => (g(), H(t(U).Option, {
1003
+ id: v.id,
1004
+ key: v.id,
1005
+ name: v.name
1006
+ }, null, 8, ["id", "name"]))),
1007
+ 128
1008
+ /* KEYED_FRAGMENT */
1009
+ ))
875
1010
  ]),
876
1011
  _: 1
1012
+ /* STABLE */
877
1013
  }, 8, ["model-value"]),
878
1014
  w(ba, { onSubmit: L })
879
1015
  ]));
@@ -923,16 +1059,24 @@ const je = { class: "recent-picker" }, $e = /* @__PURE__ */ G({
923
1059
  "popover-options": { boundary: "parent" }
924
1060
  }, {
925
1061
  default: C(() => [
926
- (g(!0), S($, null, R(t(Va), (h) => (g(), H(t(U).Option, {
927
- id: h.id,
928
- key: h.id,
929
- name: h.name
930
- }, null, 8, ["id", "name"]))), 128))
1062
+ (g(!0), S(
1063
+ $,
1064
+ null,
1065
+ R(t(Va), (h) => (g(), H(t(U).Option, {
1066
+ id: h.id,
1067
+ key: h.id,
1068
+ name: h.name
1069
+ }, null, 8, ["id", "name"]))),
1070
+ 128
1071
+ /* KEYED_FRAGMENT */
1072
+ ))
931
1073
  ]),
932
1074
  _: 1
1075
+ /* STABLE */
933
1076
  }, 8, ["modelValue"])
934
1077
  ]),
935
1078
  _: 1
1079
+ /* STABLE */
936
1080
  }, 8, ["modelValue", "prefix", "placeholder"]),
937
1081
  w(ba, {
938
1082
  disabled: !_.value,
@@ -2336,57 +2480,139 @@ const Ne = [
2336
2480
  onChange: c
2337
2481
  }, {
2338
2482
  default: C(() => [
2339
- (g(!0), S($, null, R(d.value, (m) => (g(), S($, null, [
2340
- m.label.length < 1 ? (g(!0), S($, { key: 0 }, R(m.options, (r) => (g(), H(t(U).Option, {
2341
- id: r.label,
2342
- name: r.label,
2343
- key: r.label
2344
- }, {
2345
- default: C(() => [
2346
- s("div", {
2347
- class: ea({
2348
- "timezone-picker-option": !0,
2349
- "is-selected": r.label === u.value
2350
- })
2351
- }, [
2352
- s("span", Le, k(t(l)("浏览器时间")) + " " + k(r.label), 1),
2353
- s("span", Ke, k(r.country) + ", " + k(r.abbreviation), 1),
2354
- s("span", qe, k(r.utc), 1)
2355
- ], 2)
2356
- ]),
2357
- _: 2
2358
- }, 1032, ["id", "name"]))), 128)) : (g(), S($, { key: 1 }, [
2359
- m.options.length ? (g(), H(t(U).Group, {
2360
- key: m.label,
2361
- label: m.label
2362
- }, {
2363
- default: C(() => [
2364
- (g(!0), S($, null, R(m.options, (r) => (g(), H(t(U).Option, {
2483
+ (g(!0), S(
2484
+ $,
2485
+ null,
2486
+ R(d.value, (m) => (g(), S(
2487
+ $,
2488
+ null,
2489
+ [
2490
+ m.label.length < 1 ? (g(!0), S(
2491
+ $,
2492
+ { key: 0 },
2493
+ R(m.options, (r) => (g(), H(t(U).Option, {
2365
2494
  id: r.label,
2366
2495
  name: r.label,
2367
2496
  key: r.label
2368
2497
  }, {
2369
2498
  default: C(() => [
2370
- s("div", {
2371
- class: ea({
2372
- "timezone-picker-option": !0,
2373
- "is-selected": r.label === u.value
2374
- })
2375
- }, [
2376
- s("span", Ue, k(r.label), 1),
2377
- s("span", Fe, k(r.country) + ", " + k(r.abbreviation), 1),
2378
- s("span", Ge, k(r.utc), 1)
2379
- ], 2)
2499
+ s(
2500
+ "div",
2501
+ {
2502
+ class: ea({
2503
+ "timezone-picker-option": !0,
2504
+ "is-selected": r.label === u.value
2505
+ })
2506
+ },
2507
+ [
2508
+ s(
2509
+ "span",
2510
+ Le,
2511
+ k(t(l)("浏览器时间")) + " " + k(r.label),
2512
+ 1
2513
+ /* TEXT */
2514
+ ),
2515
+ s(
2516
+ "span",
2517
+ Ke,
2518
+ k(r.country) + ", " + k(r.abbreviation),
2519
+ 1
2520
+ /* TEXT */
2521
+ ),
2522
+ s(
2523
+ "span",
2524
+ qe,
2525
+ k(r.utc),
2526
+ 1
2527
+ /* TEXT */
2528
+ )
2529
+ ],
2530
+ 2
2531
+ /* CLASS */
2532
+ )
2380
2533
  ]),
2381
2534
  _: 2
2382
- }, 1032, ["id", "name"]))), 128))
2383
- ]),
2384
- _: 2
2385
- }, 1032, ["label"])) : da("", !0)
2386
- ], 64))
2387
- ], 64))), 256))
2535
+ /* DYNAMIC */
2536
+ }, 1032, ["id", "name"]))),
2537
+ 128
2538
+ /* KEYED_FRAGMENT */
2539
+ )) : (g(), S(
2540
+ $,
2541
+ { key: 1 },
2542
+ [
2543
+ m.options.length ? (g(), H(t(U).Group, {
2544
+ key: m.label,
2545
+ label: m.label
2546
+ }, {
2547
+ default: C(() => [
2548
+ (g(!0), S(
2549
+ $,
2550
+ null,
2551
+ R(m.options, (r) => (g(), H(t(U).Option, {
2552
+ id: r.label,
2553
+ name: r.label,
2554
+ key: r.label
2555
+ }, {
2556
+ default: C(() => [
2557
+ s(
2558
+ "div",
2559
+ {
2560
+ class: ea({
2561
+ "timezone-picker-option": !0,
2562
+ "is-selected": r.label === u.value
2563
+ })
2564
+ },
2565
+ [
2566
+ s(
2567
+ "span",
2568
+ Ue,
2569
+ k(r.label),
2570
+ 1
2571
+ /* TEXT */
2572
+ ),
2573
+ s(
2574
+ "span",
2575
+ Fe,
2576
+ k(r.country) + ", " + k(r.abbreviation),
2577
+ 1
2578
+ /* TEXT */
2579
+ ),
2580
+ s(
2581
+ "span",
2582
+ Ge,
2583
+ k(r.utc),
2584
+ 1
2585
+ /* TEXT */
2586
+ )
2587
+ ],
2588
+ 2
2589
+ /* CLASS */
2590
+ )
2591
+ ]),
2592
+ _: 2
2593
+ /* DYNAMIC */
2594
+ }, 1032, ["id", "name"]))),
2595
+ 128
2596
+ /* KEYED_FRAGMENT */
2597
+ ))
2598
+ ]),
2599
+ _: 2
2600
+ /* DYNAMIC */
2601
+ }, 1032, ["label"])) : da("v-if", !0)
2602
+ ],
2603
+ 64
2604
+ /* STABLE_FRAGMENT */
2605
+ ))
2606
+ ],
2607
+ 64
2608
+ /* STABLE_FRAGMENT */
2609
+ ))),
2610
+ 256
2611
+ /* UNKEYED_FRAGMENT */
2612
+ ))
2388
2613
  ]),
2389
2614
  _: 1
2615
+ /* STABLE */
2390
2616
  }, 8, ["model-value", "placeholder", "no-match-text"]));
2391
2617
  }
2392
2618
  });
@@ -2448,24 +2674,42 @@ const Je = { class: "panel-wrapper" }, We = { class: "common-date-list" }, Ze =
2448
2674
  }, null, 8, ["modelValue", "panels"]),
2449
2675
  s("div", null, [
2450
2676
  s("ul", We, [
2451
- (g(!0), S($, null, R(P.value, (E, y) => (g(), S("li", {
2452
- class: ea({
2453
- "list-item": !0,
2454
- "is-recent-item": n.value === "recent"
2455
- }),
2456
- key: y,
2457
- onClick: (T) => j(E)
2458
- }, k(t(Ya)(E, t(d))), 11, Ze))), 128))
2677
+ (g(!0), S(
2678
+ $,
2679
+ null,
2680
+ R(P.value, (E, y) => (g(), S("li", {
2681
+ class: ea({
2682
+ "list-item": !0,
2683
+ "is-recent-item": n.value === "recent"
2684
+ }),
2685
+ key: y,
2686
+ onClick: (T) => j(E)
2687
+ }, k(t(Ya)(E, t(d))), 11, Ze))),
2688
+ 128
2689
+ /* KEYED_FRAGMENT */
2690
+ ))
2459
2691
  ])
2460
2692
  ]),
2461
- ia(s("div", Qe, [
2462
- w(t(Qa), {
2463
- type: "empty",
2464
- scene: "part",
2465
- class: "empty-content"
2466
- }),
2467
- s("div", Xe, k(t(l)("暂无最近使用记录")), 1)
2468
- ], 512), [
2693
+ ia(s(
2694
+ "div",
2695
+ Qe,
2696
+ [
2697
+ w(t(Qa), {
2698
+ type: "empty",
2699
+ scene: "part",
2700
+ class: "empty-content"
2701
+ }),
2702
+ s(
2703
+ "div",
2704
+ Xe,
2705
+ k(t(l)("暂无最近使用记录")),
2706
+ 1
2707
+ /* TEXT */
2708
+ )
2709
+ ],
2710
+ 512
2711
+ /* NEED_PATCH */
2712
+ ), [
2469
2713
  [fa, P.value.length < 1]
2470
2714
  ]),
2471
2715
  w(_a, {
@@ -2474,21 +2718,47 @@ const Je = { class: "panel-wrapper" }, We = { class: "common-date-list" }, Ze =
2474
2718
  "onUpdate:modelValue": v[1] || (v[1] = (E) => h.value = E),
2475
2719
  panels: t(ie)
2476
2720
  }, null, 8, ["modelValue", "panels"]),
2477
- (g(), H(La, null, [
2478
- (g(), H(Ka(N()), {
2479
- key: h.value,
2480
- type: h.value,
2481
- value: o.value,
2482
- onChange: j
2483
- }, null, 40, ["type", "value"]))
2484
- ], 1024)),
2721
+ (g(), H(
2722
+ La,
2723
+ null,
2724
+ [
2725
+ (g(), H(Ka(N()), {
2726
+ key: h.value,
2727
+ type: h.value,
2728
+ value: o.value,
2729
+ onChange: j
2730
+ }, null, 40, ["type", "value"]))
2731
+ ],
2732
+ 1024
2733
+ /* DYNAMIC_SLOTS */
2734
+ )),
2485
2735
  s("div", ai, [
2486
- K(k(t(u).label === t(b) ? t(l)("浏览器时间") : "") + " ", 1),
2736
+ K(
2737
+ k(t(u).label === t(b) ? t(l)("浏览器时间") : "") + " ",
2738
+ 1
2739
+ /* TEXT */
2740
+ ),
2487
2741
  s("span", ei, [
2488
- K(k(t(u).label) + " ", 1),
2489
- s("span", ii, k(t(u).country) + ", " + k(t(u).abbreviation), 1)
2742
+ K(
2743
+ k(t(u).label) + " ",
2744
+ 1
2745
+ /* TEXT */
2746
+ ),
2747
+ s(
2748
+ "span",
2749
+ ii,
2750
+ k(t(u).country) + ", " + k(t(u).abbreviation),
2751
+ 1
2752
+ /* TEXT */
2753
+ )
2490
2754
  ]),
2491
- s("span", ti, k(t(u).utc), 1),
2755
+ s(
2756
+ "span",
2757
+ ti,
2758
+ k(t(u).utc),
2759
+ 1
2760
+ /* TEXT */
2761
+ ),
2492
2762
  w(t(ma), {
2493
2763
  theme: "primary",
2494
2764
  size: "small",
@@ -2496,40 +2766,57 @@ const Je = { class: "panel-wrapper" }, We = { class: "common-date-list" }, Ze =
2496
2766
  onClick: L
2497
2767
  }, {
2498
2768
  default: C(() => [
2499
- K(k(t(l)("时区设置")), 1)
2769
+ K(
2770
+ k(t(l)("时区设置")),
2771
+ 1
2772
+ /* TEXT */
2773
+ )
2500
2774
  ]),
2501
2775
  _: 1
2776
+ /* STABLE */
2502
2777
  })
2503
2778
  ]),
2504
- ia(s("div", ni, [
2505
- w(Oe, {
2506
- value: p.timezone || t(b),
2507
- onChange: M
2508
- }, null, 8, ["value"])
2509
- ], 512), [
2779
+ ia(s(
2780
+ "div",
2781
+ ni,
2782
+ [
2783
+ w(Oe, {
2784
+ value: p.timezone || t(b),
2785
+ onChange: M
2786
+ }, null, 8, ["value"])
2787
+ ],
2788
+ 512
2789
+ /* NEED_PATCH */
2790
+ ), [
2510
2791
  [fa, m.value]
2511
2792
  ])
2512
2793
  ]));
2513
2794
  }
2514
2795
  });
2515
- const li = /* @__PURE__ */ s("svg", {
2516
- class: "date-content-icon",
2517
- viewBox: "0 0 1024 1024",
2518
- version: "1.1",
2519
- xmlns: "http://www.w3.org/2000/svg",
2520
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
2521
- width: "14",
2522
- height: "14"
2523
- }, [
2524
- /* @__PURE__ */ s("path", {
2525
- d: "M486.656 997.312c-268.288 0-486.656-218.304-486.656-486.656 0-268.288 218.304-486.656 486.656-486.656 268.352 0 486.656 218.304 486.656 486.656C973.376 779.008 755.008 997.312 486.656 997.312zM486.656 88c-233.088 0-422.656 189.568-422.656 422.656 0 233.088 189.568 422.656 422.656 422.656s422.656-189.632 422.656-422.656C909.376 277.568 719.744 88 486.656 88z",
2526
- fill: "#979BA5"
2527
- }),
2528
- /* @__PURE__ */ s("path", {
2529
- d: "M816.064 544 432.064 544 432.064 160 496.064 160 496.064 480 816.064 480Z",
2530
- fill: "#979BA5"
2531
- })
2532
- ], -1), ci = { class: "date-content-utc" }, si = { class: "date-tooltips-timezone" }, Bi = /* @__PURE__ */ G({
2796
+ const li = /* @__PURE__ */ s(
2797
+ "svg",
2798
+ {
2799
+ class: "date-content-icon",
2800
+ viewBox: "0 0 1024 1024",
2801
+ version: "1.1",
2802
+ xmlns: "http://www.w3.org/2000/svg",
2803
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
2804
+ width: "14",
2805
+ height: "14"
2806
+ },
2807
+ [
2808
+ /* @__PURE__ */ s("path", {
2809
+ d: "M486.656 997.312c-268.288 0-486.656-218.304-486.656-486.656 0-268.288 218.304-486.656 486.656-486.656 268.352 0 486.656 218.304 486.656 486.656C973.376 779.008 755.008 997.312 486.656 997.312zM486.656 88c-233.088 0-422.656 189.568-422.656 422.656 0 233.088 189.568 422.656 422.656 422.656s422.656-189.632 422.656-422.656C909.376 277.568 719.744 88 486.656 88z",
2810
+ fill: "#979BA5"
2811
+ }),
2812
+ /* @__PURE__ */ s("path", {
2813
+ d: "M816.064 544 432.064 544 432.064 160 496.064 160 496.064 480 816.064 480Z",
2814
+ fill: "#979BA5"
2815
+ })
2816
+ ],
2817
+ -1
2818
+ /* HOISTED */
2819
+ ), ci = { class: "date-content-utc" }, si = { class: "date-tooltips-timezone" }, Bi = /* @__PURE__ */ G({
2533
2820
  name: "DatePicker",
2534
2821
  __name: "date-picker",
2535
2822
  props: {
@@ -2596,91 +2883,141 @@ const li = /* @__PURE__ */ s("svg", {
2596
2883
  handleShowPanel: () => {
2597
2884
  o.value = !0;
2598
2885
  }
2599
- }), (y, T) => (g(), S("div", {
2600
- class: ea({
2601
- __bk_date_picker__: !0,
2602
- "is-simplicity": y.behavior === "simplicity",
2603
- "is-disabled": y.disabled
2604
- })
2605
- }, [
2606
- s("span", {
2607
- class: "date-icon",
2608
- onClick: p
2609
- }, [
2610
- w(t(Pa), { class: "date-icon-left" })
2611
- ]),
2612
- w(t(aa), {
2613
- trigger: "manual",
2614
- "is-show": o.value,
2615
- placement: "bottom-start",
2616
- theme: "light",
2617
- arrow: !1,
2618
- "ext-cls": "bk-date-picker-popover __bk-date-picker-popover__",
2619
- offset: { mainAxis: 10, crossAxis: 10, alignmentAxis: -32 },
2620
- onAfterHidden: L
2621
- }, {
2622
- content: C(() => [
2623
- w(ri, {
2624
- "default-value": y.modelValue,
2625
- timezone: y.timezone,
2626
- onChange: j,
2627
- "onUpdate:timezone": N
2628
- }, null, 8, ["default-value", "timezone"])
2886
+ }), (y, T) => (g(), S(
2887
+ "div",
2888
+ {
2889
+ class: ea({
2890
+ __bk_date_picker__: !0,
2891
+ "is-simplicity": y.behavior === "simplicity",
2892
+ "is-disabled": y.disabled
2893
+ })
2894
+ },
2895
+ [
2896
+ s("span", {
2897
+ class: "date-icon",
2898
+ onClick: p
2899
+ }, [
2900
+ w(t(Pa), { class: "date-icon-left" })
2629
2901
  ]),
2630
- default: C(() => {
2631
- var V;
2632
- return [
2633
- ia((g(), S("span", {
2634
- class: "date-content",
2635
- onClick: T[0] || (T[0] = (x) => o.value = !o.value),
2636
- ref_key: "dateContentRef",
2637
- ref: _,
2638
- onMouseenter: f,
2639
- onMouseleave: P
2640
- }, [
2641
- li,
2642
- s("span", null, k(t(Ya)(y.modelValue, m.value)), 1),
2643
- s("span", ci, k(r.value.abbreviation || ((V = r.value.utc) == null ? void 0 : V.replace("UTC", "").replace(":00", ""))), 1)
2644
- ], 32)), [
2645
- [t(ua), E]
2646
- ])
2647
- ];
2648
- }),
2649
- _: 1
2650
- }, 8, ["is-show"]),
2651
- s("span", {
2652
- class: "date-icon",
2653
- style: { "margin-left": "auto" },
2654
- onClick: v
2655
- }, [
2656
- w(t(Da), { class: "date-icon-right" })
2657
- ]),
2658
- w(t(aa), {
2659
- "is-show": b.value,
2660
- trigger: "manual",
2661
- target: _.value,
2662
- offset: 12,
2663
- placement: "top"
2664
- }, {
2665
- content: C(() => {
2666
- var V, x, I, z;
2667
- return [
2668
- s("div", {
2669
- ref_key: "dateTooltipsRef",
2670
- ref: u,
2671
- class: "__date-tooltips__",
2672
- style: Ua({ maxWidth: t(ta) === "en" ? "180px" : "156px" })
2673
- }, [
2674
- s("div", null, k((x = (V = n.value) == null ? void 0 : V[0]) == null ? void 0 : x.format(m.value)), 1),
2675
- K(" to "),
2676
- s("div", null, k((z = (I = n.value) == null ? void 0 : I[1]) == null ? void 0 : z.format(m.value)), 1),
2677
- s("div", si, k(r.value.label === t(A).tz.guess() ? `${t(l)("浏览器时间")} (${r.value.label})` : r.value.label), 1)
2678
- ], 4)
2679
- ];
2680
- }),
2681
- _: 1
2682
- }, 8, ["is-show", "target"])
2683
- ], 2));
2902
+ w(t(aa), {
2903
+ trigger: "manual",
2904
+ "is-show": o.value,
2905
+ placement: "bottom-start",
2906
+ theme: "light",
2907
+ arrow: !1,
2908
+ "ext-cls": "bk-date-picker-popover __bk-date-picker-popover__",
2909
+ offset: { mainAxis: 10, crossAxis: 10, alignmentAxis: -32 },
2910
+ onAfterHidden: L
2911
+ }, {
2912
+ content: C(() => [
2913
+ w(ri, {
2914
+ "default-value": y.modelValue,
2915
+ timezone: y.timezone,
2916
+ onChange: j,
2917
+ "onUpdate:timezone": N
2918
+ }, null, 8, ["default-value", "timezone"])
2919
+ ]),
2920
+ default: C(() => {
2921
+ var V;
2922
+ return [
2923
+ ia((g(), S(
2924
+ "span",
2925
+ {
2926
+ class: "date-content",
2927
+ onClick: T[0] || (T[0] = (x) => o.value = !o.value),
2928
+ ref_key: "dateContentRef",
2929
+ ref: _,
2930
+ onMouseenter: f,
2931
+ onMouseleave: P
2932
+ },
2933
+ [
2934
+ li,
2935
+ s(
2936
+ "span",
2937
+ null,
2938
+ k(t(Ya)(y.modelValue, m.value)),
2939
+ 1
2940
+ /* TEXT */
2941
+ ),
2942
+ s(
2943
+ "span",
2944
+ ci,
2945
+ k(r.value.abbreviation || ((V = r.value.utc) == null ? void 0 : V.replace("UTC", "").replace(":00", ""))),
2946
+ 1
2947
+ /* TEXT */
2948
+ )
2949
+ ],
2950
+ 32
2951
+ /* HYDRATE_EVENTS */
2952
+ )), [
2953
+ [t(ua), E]
2954
+ ])
2955
+ ];
2956
+ }),
2957
+ _: 1
2958
+ /* STABLE */
2959
+ }, 8, ["is-show"]),
2960
+ s("span", {
2961
+ class: "date-icon",
2962
+ style: { "margin-left": "auto" },
2963
+ onClick: v
2964
+ }, [
2965
+ w(t(Da), { class: "date-icon-right" })
2966
+ ]),
2967
+ w(t(aa), {
2968
+ "is-show": b.value,
2969
+ trigger: "manual",
2970
+ target: _.value,
2971
+ offset: 12,
2972
+ placement: "top"
2973
+ }, {
2974
+ content: C(() => {
2975
+ var V, x, I, z;
2976
+ return [
2977
+ s(
2978
+ "div",
2979
+ {
2980
+ ref_key: "dateTooltipsRef",
2981
+ ref: u,
2982
+ class: "__date-tooltips__",
2983
+ style: Ua({ maxWidth: t(ta) === "en" ? "180px" : "156px" })
2984
+ },
2985
+ [
2986
+ s(
2987
+ "div",
2988
+ null,
2989
+ k((x = (V = n.value) == null ? void 0 : V[0]) == null ? void 0 : x.format(m.value)),
2990
+ 1
2991
+ /* TEXT */
2992
+ ),
2993
+ K(" to "),
2994
+ s(
2995
+ "div",
2996
+ null,
2997
+ k((z = (I = n.value) == null ? void 0 : I[1]) == null ? void 0 : z.format(m.value)),
2998
+ 1
2999
+ /* TEXT */
3000
+ ),
3001
+ s(
3002
+ "div",
3003
+ si,
3004
+ k(r.value.label === t(A).tz.guess() ? `${t(l)("浏览器时间")} (${r.value.label})` : r.value.label),
3005
+ 1
3006
+ /* TEXT */
3007
+ )
3008
+ ],
3009
+ 4
3010
+ /* STYLE */
3011
+ )
3012
+ ];
3013
+ }),
3014
+ _: 1
3015
+ /* STABLE */
3016
+ }, 8, ["is-show", "target"])
3017
+ ],
3018
+ 2
3019
+ /* CLASS */
3020
+ ));
2684
3021
  }
2685
3022
  });
2686
3023
  A.extend(Ma);