@cniot/android-pda-components 2.0.0-beta.3 → 2.0.0-beta.5

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/es/index.es.js CHANGED
@@ -70,7 +70,7 @@ var _classnames_2_5_1_classnames = { exports: {} };
70
70
  })();
71
71
  })(_classnames_2_5_1_classnames);
72
72
  var classNames = _classnames_2_5_1_classnames.exports;
73
- var index$11 = "";
73
+ var index$12 = "";
74
74
  function getTypeClass$2(type) {
75
75
  return {
76
76
  center: "op-overlay center",
@@ -106,7 +106,7 @@ function Overlay$1(props) {
106
106
  }
107
107
  }, props.children) : null;
108
108
  }
109
- var index$10 = "";
109
+ var index$11 = "";
110
110
  const blankFunc$6 = () => {
111
111
  };
112
112
  class PdaTitle extends React__default.Component {
@@ -285,7 +285,7 @@ var _keycode_2_2_1_keycode = { exports: {} };
285
285
  }
286
286
  })(_keycode_2_2_1_keycode, _keycode_2_2_1_keycode.exports);
287
287
  var keycode = _keycode_2_2_1_keycode.exports;
288
- var index$$ = "";
288
+ var index$10 = "";
289
289
  function Button$2(props) {
290
290
  const { type = "default", onClick, className = "", tabIndex = 1, dataClick = "" } = props;
291
291
  let opt = {};
@@ -308,7 +308,7 @@ Button$2.Group = ButtonGroup$1;
308
308
  const SPECIAL_KEY_MAP = ["fn"];
309
309
  const empty$3 = () => {
310
310
  };
311
- function index$_(props) {
311
+ function index$$(props) {
312
312
  const {
313
313
  onBack,
314
314
  icon,
@@ -514,7 +514,7 @@ function onAddEventListerScanBarcode$1(fn) {
514
514
  document.removeEventListener("BarcodeScan", callback);
515
515
  };
516
516
  }
517
- var index$Z = "";
517
+ var index$_ = "";
518
518
  class PdaInfoCard$2 extends React__default.Component {
519
519
  constructor(props) {
520
520
  super(props);
@@ -593,7 +593,7 @@ class PdaInfoCard$2 extends React__default.Component {
593
593
  }
594
594
  }
595
595
  PdaInfoCard$2.IMAGE_1 = `${window.PDA_IMAGE_PATH}O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png`;
596
- var index$Y = "";
596
+ var index$Z = "";
597
597
  class PdaListItem extends React__default.Component {
598
598
  constructor(props) {
599
599
  super(props);
@@ -639,7 +639,7 @@ class PdaListItem extends React__default.Component {
639
639
  }));
640
640
  }
641
641
  }
642
- var index$X = "";
642
+ var index$Y = "";
643
643
  function empty$2() {
644
644
  }
645
645
  function Confirm$1(props) {
@@ -684,7 +684,7 @@ function Confirm$1(props) {
684
684
  dataClick: item.dataClick
685
685
  }, item.label))) : null));
686
686
  }
687
- var index$W = "";
687
+ var index$X = "";
688
688
  function WindVaneLog(param) {
689
689
  const params = {
690
690
  domain: "logger",
@@ -777,12 +777,12 @@ function Toast$1(props) {
777
777
  className: "toast-message"
778
778
  }, message)) : null;
779
779
  }
780
- const defaultProps$j = {
780
+ const defaultProps$m = {
781
781
  maskClickable: true,
782
782
  stopPropagation: ["click"]
783
783
  };
784
784
  const InternalToast = (p2) => {
785
- const props = mergeProps$1(defaultProps$j, p2);
785
+ const props = mergeProps$1(defaultProps$m, p2);
786
786
  const {
787
787
  maskClickable,
788
788
  content,
@@ -814,12 +814,12 @@ function unmount$1(container) {
814
814
  container.parentNode.removeChild(container);
815
815
  }
816
816
  }
817
- const defaultProps$i = {
817
+ const defaultProps$l = {
818
818
  duration: 2e3
819
819
  };
820
820
  function show$1(p2) {
821
821
  const props = mergeProps$1(
822
- defaultProps$i,
822
+ defaultProps$l,
823
823
  p2
824
824
  );
825
825
  let timer = 0;
@@ -953,7 +953,7 @@ function confirm$1(props) {
953
953
  onClick: onNext
954
954
  }));
955
955
  }
956
- var index$V = "";
956
+ var index$W = "";
957
957
  function getTypeClass(type) {
958
958
  return {
959
959
  center: "op-overlay center",
@@ -989,7 +989,7 @@ function Overlay(props) {
989
989
  }
990
990
  }, props.children) : null;
991
991
  }
992
- var index$U = "";
992
+ var index$V = "";
993
993
  function Prompt$1(props) {
994
994
  const inputRef = React__default.useRef();
995
995
  const { data = {}, onNext } = props;
@@ -1066,7 +1066,7 @@ function splitMessage(message) {
1066
1066
  var msg = String(message).split("by Error:");
1067
1067
  return msg[1] || msg[0];
1068
1068
  }
1069
- var index$T = "";
1069
+ var index$U = "";
1070
1070
  function NotFound(props) {
1071
1071
  return /* @__PURE__ */ React__default.createElement("div", {
1072
1072
  style: { padding: "20%" }
@@ -1074,7 +1074,7 @@ function NotFound(props) {
1074
1074
  style: { fontSize: "60%" }
1075
1075
  }, "Not found")), /* @__PURE__ */ React__default.createElement("div", null, props.action.getPage()));
1076
1076
  }
1077
- var index$S = "";
1077
+ var index$T = "";
1078
1078
  function Loading$2(props) {
1079
1079
  const [showLoading, setShowLoading] = React__default.useState(props.visible);
1080
1080
  const edgeService = props.edgeService;
@@ -1143,7 +1143,7 @@ function Debug$1() {
1143
1143
  console.warn('Please stop using "Debug" Components');
1144
1144
  return null;
1145
1145
  }
1146
- var index$R = {
1146
+ var index$S = {
1147
1147
  Alert: Alert$1,
1148
1148
  Start,
1149
1149
  Toast: toast,
@@ -1154,7 +1154,7 @@ var index$R = {
1154
1154
  Loading: Loading$2,
1155
1155
  PlaySound: PlaySound$1
1156
1156
  };
1157
- var index$Q = "";
1157
+ var index$R = "";
1158
1158
  function Presentation(props) {
1159
1159
  const {
1160
1160
  image: image2 = Presentation.IMAGE_1,
@@ -1176,7 +1176,7 @@ Presentation.IMAGE_1 = `${window.PDA_IMAGE_PATH}O1CN019Ivkor1ksy3pMGDsz_!!600000
1176
1176
  Presentation.IMAGE_2 = `${window.PDA_IMAGE_PATH}O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png`;
1177
1177
  Presentation.IMAGE_3 = `${window.PDA_IMAGE_PATH}O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png`;
1178
1178
  Presentation.IMAGE_4 = `${window.PDA_IMAGE_PATH}O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif`;
1179
- var index$P = "";
1179
+ var index$Q = "";
1180
1180
  function empty$1() {
1181
1181
  }
1182
1182
  function List$3(props) {
@@ -1231,7 +1231,7 @@ function DefaultItem(props) {
1231
1231
  }, extra));
1232
1232
  }
1233
1233
  List$3.Item = DefaultItem;
1234
- var index$O = "";
1234
+ var index$P = "";
1235
1235
  const blankFunc$5 = () => {
1236
1236
  };
1237
1237
  class BaseLayoutContainer extends React__default.Component {
@@ -1621,7 +1621,7 @@ class BaseLayout extends React__default.Component {
1621
1621
  });
1622
1622
  }
1623
1623
  }
1624
- var index$N = "";
1624
+ var index$O = "";
1625
1625
  const blankFunc$1 = () => {
1626
1626
  };
1627
1627
  function Keyborard(props) {
@@ -1712,7 +1712,7 @@ function WakeKeyborard(props) {
1712
1712
  }) : null);
1713
1713
  }
1714
1714
  WakeKeyborard.Keyborard = Keyborard;
1715
- const classPrefix$o = "image-uploader";
1715
+ const classPrefix$r = "image-uploader";
1716
1716
  class PreviewItem extends Component {
1717
1717
  constructor(props) {
1718
1718
  super(props);
@@ -1720,7 +1720,7 @@ class PreviewItem extends Component {
1720
1720
  }
1721
1721
  renderDelete() {
1722
1722
  return /* @__PURE__ */ React__default.createElement("span", {
1723
- className: `${classPrefix$o}-cell-delete`,
1723
+ className: `${classPrefix$r}-cell-delete`,
1724
1724
  onClick: this.props.onDelete
1725
1725
  }, /* @__PURE__ */ React__default.createElement("img", {
1726
1726
  className: "uploader-delete-icon",
@@ -1733,20 +1733,20 @@ class PreviewItem extends Component {
1733
1733
  return /* @__PURE__ */ React__default.createElement("div", {
1734
1734
  className: "image-space-item"
1735
1735
  }, /* @__PURE__ */ React__default.createElement("div", {
1736
- className: `${classPrefix$o}-cell`,
1736
+ className: `${classPrefix$r}-cell`,
1737
1737
  style: { width: box, height: box }
1738
1738
  }, /* @__PURE__ */ React__default.createElement("div", {
1739
- className: `${classPrefix$o}-cell-image`,
1739
+ className: `${classPrefix$r}-cell-image`,
1740
1740
  style: { width: box, height: box }
1741
1741
  }, /* @__PURE__ */ React__default.createElement("img", {
1742
- className: `${classPrefix$o}-img`,
1742
+ className: `${classPrefix$r}-img`,
1743
1743
  src,
1744
1744
  fit: "cover",
1745
1745
  onClick: onView
1746
1746
  })), deletable && this.renderDelete()));
1747
1747
  }
1748
1748
  }
1749
- const classPrefix$n = "image-uploader";
1749
+ const classPrefix$q = "image-uploader";
1750
1750
  class UploadeButton extends Component {
1751
1751
  constructor(props) {
1752
1752
  super(props);
@@ -1757,10 +1757,10 @@ class UploadeButton extends Component {
1757
1757
  return /* @__PURE__ */ React__default.createElement("div", {
1758
1758
  className: `image-space-item`
1759
1759
  }, /* @__PURE__ */ React__default.createElement("div", {
1760
- className: `${classPrefix$n}-upload-button-wrap`,
1760
+ className: `${classPrefix$q}-upload-button-wrap`,
1761
1761
  onClick: this.props.onUpload
1762
1762
  }, /* @__PURE__ */ React__default.createElement("span", {
1763
- className: `${classPrefix$n}-upload-button image-uploader-cell`,
1763
+ className: `${classPrefix$q}-upload-button image-uploader-cell`,
1764
1764
  style: { width: box, height: box }
1765
1765
  }, /* @__PURE__ */ React__default.createElement("img", {
1766
1766
  className: "uploader-add-icon",
@@ -1769,8 +1769,8 @@ class UploadeButton extends Component {
1769
1769
  }))));
1770
1770
  }
1771
1771
  }
1772
- var index$M = "";
1773
- const classPrefix$m = "image-viewer";
1772
+ var index$N = "";
1773
+ const classPrefix$p = "image-viewer";
1774
1774
  class ImageViewer extends Component {
1775
1775
  constructor(props) {
1776
1776
  super(props);
@@ -1857,9 +1857,9 @@ class ImageViewer extends Component {
1857
1857
  }, /* @__PURE__ */ React__default.createElement("div", {
1858
1858
  className: `v-mask-content`
1859
1859
  }, /* @__PURE__ */ React__default.createElement("div", {
1860
- className: `${classPrefix$m}-content`
1860
+ className: `${classPrefix$p}-content`
1861
1861
  }, /* @__PURE__ */ React__default.createElement("div", {
1862
- className: `${classPrefix$m}-slides`
1862
+ className: `${classPrefix$p}-slides`
1863
1863
  }, /* @__PURE__ */ React__default.createElement("div", {
1864
1864
  className: "image-viewer-indicator"
1865
1865
  }, currentIndex + 1, " / ", images.length), /* @__PURE__ */ React__default.createElement("div", {
@@ -1899,10 +1899,10 @@ class ImageViewer extends Component {
1899
1899
  }, /* @__PURE__ */ React__default.createElement("path", {
1900
1900
  d: "M384 127.5l256.5 256.5-256.5 256.5-45-45 178.5-180h-390v-63h390l-178.5-180z"
1901
1901
  })))) : null))), loading2 ? /* @__PURE__ */ React__default.createElement("div", {
1902
- className: `${classPrefix$m}-loading`,
1902
+ className: `${classPrefix$p}-loading`,
1903
1903
  onClick: this.onClose
1904
1904
  }, /* @__PURE__ */ React__default.createElement("div", {
1905
- className: `${classPrefix$m}-loading-reactor`
1905
+ className: `${classPrefix$p}-loading-reactor`
1906
1906
  }, /* @__PURE__ */ React__default.createElement("svg", {
1907
1907
  viewBox: "0 0 32 32",
1908
1908
  width: "36",
@@ -1916,7 +1916,7 @@ class ImageViewer extends Component {
1916
1916
  })))) : null) : null);
1917
1917
  }
1918
1918
  }
1919
- const classPrefix$l = "image-uploader";
1919
+ const classPrefix$o = "image-uploader";
1920
1920
  class ImageUploader extends Component {
1921
1921
  constructor(props) {
1922
1922
  super(props);
@@ -1942,6 +1942,7 @@ class ImageUploader extends Component {
1942
1942
  __publicField(this, "handlerUploadNavigator", () => {
1943
1943
  const { beforeUpload, onBeforeUpload } = this.props;
1944
1944
  const dom = document.querySelector("#inputFile");
1945
+ dom.value = null;
1945
1946
  dom.click();
1946
1947
  dom.onchange = (e2) => {
1947
1948
  let fileData = e2.target.files[0];
@@ -2030,7 +2031,7 @@ class ImageUploader extends Component {
2030
2031
  } = this.props;
2031
2032
  const { images } = this.state;
2032
2033
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", {
2033
- className: `${classPrefix$l}`
2034
+ className: `${classPrefix$o}`
2034
2035
  }, /* @__PURE__ */ React__default.createElement("input", {
2035
2036
  type: "file",
2036
2037
  name: "file",
@@ -2038,7 +2039,7 @@ class ImageUploader extends Component {
2038
2039
  id: "inputFile",
2039
2040
  style: { display: "none" }
2040
2041
  }), /* @__PURE__ */ React__default.createElement("div", {
2041
- className: `${classPrefix$l}-wrap`
2042
+ className: `${classPrefix$o}-wrap`
2042
2043
  }, images && images.map((item, index2) => {
2043
2044
  return /* @__PURE__ */ React__default.createElement(PreviewItem, {
2044
2045
  src: item.url,
@@ -2052,9 +2053,9 @@ class ImageUploader extends Component {
2052
2053
  box,
2053
2054
  onUpload: this.onClickAdd
2054
2055
  }) : null)), loading2 ? /* @__PURE__ */ React__default.createElement("div", {
2055
- className: `${classPrefix$l}-loading`
2056
+ className: `${classPrefix$o}-loading`
2056
2057
  }, /* @__PURE__ */ React__default.createElement("div", {
2057
- className: `${classPrefix$l}-loading-reactor`
2058
+ className: `${classPrefix$o}-loading-reactor`
2058
2059
  }, /* @__PURE__ */ React__default.createElement("svg", {
2059
2060
  viewBox: "0 0 32 32",
2060
2061
  width: "36",
@@ -2128,9 +2129,9 @@ function takePhotoMethod2(compressSize = 200) {
2128
2129
  );
2129
2130
  });
2130
2131
  }
2132
+ var index$M = "";
2131
2133
  var index$L = "";
2132
2134
  var index$K = "";
2133
- var index$J = "";
2134
2135
  class PdaInfoCard$1 extends React__default.Component {
2135
2136
  constructor(props) {
2136
2137
  super(props);
@@ -2185,7 +2186,7 @@ class PdaInfoCard extends React__default.Component {
2185
2186
  }
2186
2187
  }
2187
2188
  __publicField(PdaInfoCard, "Step", PdaInfoCard$1);
2188
- var index$I = "";
2189
+ var index$J = "";
2189
2190
  class PdaFinishCard extends React__default.Component {
2190
2191
  constructor(props) {
2191
2192
  super(props);
@@ -2239,7 +2240,7 @@ class PdaFinishCard extends React__default.Component {
2239
2240
  }
2240
2241
  PdaFinishCard.SUCCESS = `${window.PDA_IMAGE_PATH}O1CN01OL2UYg24792knbTtC_!!6000000007343-1-tps-506-415.gif`;
2241
2242
  PdaFinishCard.ERROR_SUCCESS = `${window.PDA_IMAGE_PATH}O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif`;
2242
- var index$H = "";
2243
+ var index$I = "";
2243
2244
  class PdaDistanceCard extends React__default.Component {
2244
2245
  constructor(props) {
2245
2246
  super(props);
@@ -2280,7 +2281,7 @@ class PdaDistanceCard extends React__default.Component {
2280
2281
  }, /* @__PURE__ */ React__default.createElement("p", null, "\u8FDC"), /* @__PURE__ */ React__default.createElement("p", null, "\u8FD1")));
2281
2282
  }
2282
2283
  }
2283
- var index$G = "";
2284
+ var index$H = "";
2284
2285
  function SubCard(props) {
2285
2286
  const { title, context, name, tag, attrs = [], style } = props;
2286
2287
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -2306,7 +2307,7 @@ function SubCard(props) {
2306
2307
  }, text);
2307
2308
  })));
2308
2309
  }
2309
- var index$F = "";
2310
+ var index$G = "";
2310
2311
  function SelectCard(props) {
2311
2312
  const { title, label, select = true, onClick = (e2) => {
2312
2313
  } } = props;
@@ -2319,10 +2320,10 @@ function SelectCard(props) {
2319
2320
  className: "select-icon"
2320
2321
  }) : null, " "));
2321
2322
  }
2322
- var index$E = "";
2323
+ var index$F = "";
2323
2324
  function empty() {
2324
2325
  }
2325
- function index$D(props) {
2326
+ function index$E(props) {
2326
2327
  const { dataSource = [], onClickItem = empty } = props;
2327
2328
  let tabIndex = 1;
2328
2329
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -2350,7 +2351,7 @@ function index$D(props) {
2350
2351
  })));
2351
2352
  }));
2352
2353
  }
2353
- var index$C = "";
2354
+ var index$D = "";
2354
2355
  function usePersistFn(fn) {
2355
2356
  var fnRef = useRef(fn);
2356
2357
  fnRef.current = fn;
@@ -2676,7 +2677,7 @@ function InfiniteScroll(props) {
2676
2677
  className: "pda-infinite-scroll-view"
2677
2678
  }, /* @__PURE__ */ React__default.createElement("span", null, notMoreText)));
2678
2679
  }
2679
- var index$B = "";
2680
+ var index$C = "";
2680
2681
  function ActionSheet(props) {
2681
2682
  const {
2682
2683
  className = "",
@@ -2724,14 +2725,14 @@ function ActionSheet(props) {
2724
2725
  }, item.title);
2725
2726
  })) : null));
2726
2727
  }
2727
- var index$A = "";
2728
+ var index$B = "";
2728
2729
  function Tag(props) {
2729
2730
  const { className = void 0, label = "label", type = "success" } = props;
2730
2731
  return /* @__PURE__ */ React__default.createElement("div", {
2731
2732
  className: classNames({ [className]: true, "pda-tag": true, ["pda-tag-" + type]: true })
2732
2733
  }, label);
2733
2734
  }
2734
- var index$z = "";
2735
+ var index$A = "";
2735
2736
  function SimpleCard(props) {
2736
2737
  const { className = "", title = "", content = "", type = "default", onClick = () => {
2737
2738
  } } = props;
@@ -2744,7 +2745,7 @@ function SimpleCard(props) {
2744
2745
  className: "simple-card-content"
2745
2746
  }, content)) : null;
2746
2747
  }
2747
- var index$y = "";
2748
+ var index$z = "";
2748
2749
  function SimpleCardBlock(props) {
2749
2750
  const { className = void 0, dataSource = [], title = "", tag } = props;
2750
2751
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -2766,7 +2767,7 @@ function SimpleCardBlock(props) {
2766
2767
  });
2767
2768
  })) : null);
2768
2769
  }
2769
- var index$x = "";
2770
+ var index$y = "";
2770
2771
  function LatticeMouth(props) {
2771
2772
  const { row = 3, col = 3, dataSource = [], onClick } = props;
2772
2773
  return /* @__PURE__ */ React__default.createElement("div", {
@@ -2803,7 +2804,7 @@ function renderItem(dataSource, rowIndex, colIndex, col, onClick) {
2803
2804
  function getDataSourceItem$1(dataSource, rowIndex, colIndex, col) {
2804
2805
  return dataSource[rowIndex * col + colIndex];
2805
2806
  }
2806
- var index$w = "";
2807
+ var index$x = "";
2807
2808
  const DARK_STYLE = {
2808
2809
  "--base-font-size": "20px",
2809
2810
  "--background-color": "#282828",
@@ -2882,8 +2883,8 @@ function SplitContent(props) {
2882
2883
  className: "card-content"
2883
2884
  }, content[0]);
2884
2885
  }
2885
- var index$v = "";
2886
- function index$u(props) {
2886
+ var index$w = "";
2887
+ function index$v(props) {
2887
2888
  const {
2888
2889
  label = "\u8BF7\u9009\u62E9",
2889
2890
  dataSource = [],
@@ -3015,7 +3016,7 @@ function Loading(props) {
3015
3016
  "p-id": "2179"
3016
3017
  })), /* @__PURE__ */ React__default.createElement("div", null, text)));
3017
3018
  }
3018
- var index$t = "";
3019
+ var index$u = "";
3019
3020
  function getRightValue(value, max, min) {
3020
3021
  if (value !== "") {
3021
3022
  if (typeof min === "number") {
@@ -3029,7 +3030,7 @@ function getRightValue(value, max, min) {
3029
3030
  return value;
3030
3031
  }
3031
3032
  }
3032
- function index$s(props) {
3033
+ function index$t(props) {
3033
3034
  const {
3034
3035
  label = "",
3035
3036
  autoFocus = true,
@@ -3298,18 +3299,46 @@ function getVariableByJSON(params, engine) {
3298
3299
  class Filed extends JSONWatch {
3299
3300
  constructor(defaultData, validate = {}) {
3300
3301
  super(defaultData);
3301
- }
3302
- getProps(key) {
3302
+ this.validateStatusMap = {};
3303
+ this.validatorMap = {};
3304
+ }
3305
+ getProps(key, { validator, formatValue, handleValueInChange } = {}) {
3306
+ const realValidator = typeof validator !== "function" && validator !== "required" ? null : (val) => {
3307
+ if (validator === "required") {
3308
+ validator = (val2) => {
3309
+ return val2 == null || val2 === "" ? "\u5FC5\u586B" : null;
3310
+ };
3311
+ }
3312
+ this.validateStatusMap[key] = validator == null ? void 0 : validator(val);
3313
+ };
3314
+ this.validatorMap[key] = realValidator;
3315
+ const value = this.get(key);
3303
3316
  return {
3304
- value: this.get(key),
3305
- onChange: (value) => {
3306
- if (value && value.target && value.preventDefault) {
3307
- value = value.target.value;
3317
+ value: typeof formatValue === "function" ? formatValue(value, key) : value,
3318
+ onChange: (value2) => {
3319
+ if (value2 && value2.target && value2.preventDefault) {
3320
+ value2 = value2.target.value;
3321
+ }
3322
+ if (typeof handleValueInChange === "function") {
3323
+ value2 = handleValueInChange(value2, key);
3308
3324
  }
3309
- this.set(key, value);
3325
+ realValidator == null ? void 0 : realValidator(value2);
3326
+ this.set(key, value2);
3310
3327
  }
3311
3328
  };
3312
3329
  }
3330
+ getValidateStatus(key) {
3331
+ return this.validateStatusMap[key];
3332
+ }
3333
+ validate() {
3334
+ var _a, _b;
3335
+ (_b = (_a = Object.entries(this.validatorMap)) == null ? void 0 : _a.forEach) == null ? void 0 : _b.call(_a, ([key, _validator]) => {
3336
+ _validator == null ? void 0 : _validator(this.get(key));
3337
+ });
3338
+ const errorMessages = Object.entries(this.validateStatusMap).filter(([key, _validatorMessage]) => _validatorMessage);
3339
+ errorMessages.length > 0 && this.emit("$updated");
3340
+ return errorMessages.length === 0 ? Promise.resolve() : Promise.reject(Object.fromEntries(errorMessages));
3341
+ }
3313
3342
  getValue(key) {
3314
3343
  return this.get(key);
3315
3344
  }
@@ -3320,7 +3349,7 @@ class Filed extends JSONWatch {
3320
3349
  this.set(key, value);
3321
3350
  }
3322
3351
  }
3323
- function index$r(defaultData, validate) {
3352
+ function index$s(defaultData, validate) {
3324
3353
  const [, forceUpdate] = React__default.useState({});
3325
3354
  const [filed] = React__default.useState(() => {
3326
3355
  return new Filed(defaultData, validate);
@@ -3330,8 +3359,8 @@ function index$r(defaultData, validate) {
3330
3359
  });
3331
3360
  return filed;
3332
3361
  }
3333
- var index$q = "";
3334
- function index$p(props) {
3362
+ var index$r = "";
3363
+ function index$q(props) {
3335
3364
  const {
3336
3365
  label = "",
3337
3366
  defaultValue,
@@ -3368,7 +3397,7 @@ function index$p(props) {
3368
3397
  }
3369
3398
  })));
3370
3399
  }
3371
- var index$o = "";
3400
+ var index$p = "";
3372
3401
  var global$1 = "";
3373
3402
  const canUseDom$1 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
3374
3403
  if (canUseDom$1) {
@@ -3753,11 +3782,11 @@ var useUnmount = function(fn) {
3753
3782
  }, []);
3754
3783
  };
3755
3784
  var useUnmount$1 = useUnmount;
3756
- function isObject$2(value) {
3785
+ function isObject$3(value) {
3757
3786
  var type = typeof value;
3758
3787
  return value != null && (type == "object" || type == "function");
3759
3788
  }
3760
- var isObject_1 = isObject$2;
3789
+ var isObject_1 = isObject$3;
3761
3790
  var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
3762
3791
  var _freeGlobal = freeGlobal$1;
3763
3792
  var freeGlobal = _freeGlobal;
@@ -3835,7 +3864,7 @@ function isSymbol$1(value) {
3835
3864
  return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
3836
3865
  }
3837
3866
  var isSymbol_1 = isSymbol$1;
3838
- var baseTrim = _baseTrim, isObject$1 = isObject_1, isSymbol = isSymbol_1;
3867
+ var baseTrim = _baseTrim, isObject$2 = isObject_1, isSymbol = isSymbol_1;
3839
3868
  var NAN = 0 / 0;
3840
3869
  var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
3841
3870
  var reIsBinary = /^0b[01]+$/i;
@@ -3848,9 +3877,9 @@ function toNumber$1(value) {
3848
3877
  if (isSymbol(value)) {
3849
3878
  return NAN;
3850
3879
  }
3851
- if (isObject$1(value)) {
3880
+ if (isObject$2(value)) {
3852
3881
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
3853
- value = isObject$1(other) ? other + "" : other;
3882
+ value = isObject$2(other) ? other + "" : other;
3854
3883
  }
3855
3884
  if (typeof value != "string") {
3856
3885
  return value === 0 ? value : +value;
@@ -3860,16 +3889,16 @@ function toNumber$1(value) {
3860
3889
  return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
3861
3890
  }
3862
3891
  var toNumber_1 = toNumber$1;
3863
- var isObject = isObject_1, now = now_1, toNumber = toNumber_1;
3864
- var FUNC_ERROR_TEXT = "Expected a function";
3892
+ var isObject$1 = isObject_1, now = now_1, toNumber = toNumber_1;
3893
+ var FUNC_ERROR_TEXT$1 = "Expected a function";
3865
3894
  var nativeMax = Math.max, nativeMin = Math.min;
3866
- function debounce(func, wait, options) {
3895
+ function debounce$1(func, wait, options) {
3867
3896
  var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
3868
3897
  if (typeof func != "function") {
3869
- throw new TypeError(FUNC_ERROR_TEXT);
3898
+ throw new TypeError(FUNC_ERROR_TEXT$1);
3870
3899
  }
3871
3900
  wait = toNumber(wait) || 0;
3872
- if (isObject(options)) {
3901
+ if (isObject$1(options)) {
3873
3902
  leading = !!options.leading;
3874
3903
  maxing = "maxWait" in options;
3875
3904
  maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
@@ -3944,10 +3973,27 @@ function debounce(func, wait, options) {
3944
3973
  debounced.flush = flush2;
3945
3974
  return debounced;
3946
3975
  }
3947
- var debounce_1 = debounce;
3948
- var debounce$1 = debounce_1;
3976
+ var debounce_1 = debounce$1;
3949
3977
  var isBrowser$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
3950
3978
  var isBrowser$2 = isBrowser$1;
3979
+ var debounce = debounce_1, isObject = isObject_1;
3980
+ var FUNC_ERROR_TEXT = "Expected a function";
3981
+ function throttle(func, wait, options) {
3982
+ var leading = true, trailing = true;
3983
+ if (typeof func != "function") {
3984
+ throw new TypeError(FUNC_ERROR_TEXT);
3985
+ }
3986
+ if (isObject(options)) {
3987
+ leading = "leading" in options ? !!options.leading : leading;
3988
+ trailing = "trailing" in options ? !!options.trailing : trailing;
3989
+ }
3990
+ return debounce(func, wait, {
3991
+ "leading": leading,
3992
+ "maxWait": wait,
3993
+ "trailing": trailing
3994
+ });
3995
+ }
3996
+ var throttle_1 = throttle;
3951
3997
  var useUpdate = function() {
3952
3998
  var _a = __read(useState({}), 2), setState = _a[1];
3953
3999
  return useCallback(function() {
@@ -4009,7 +4055,7 @@ var createEffectWithTarget = function(useEffectType) {
4009
4055
  var createEffectWithTarget$1 = createEffectWithTarget;
4010
4056
  var useEffectWithTarget = createEffectWithTarget$1(useEffect);
4011
4057
  var useEffectWithTarget$1 = useEffectWithTarget;
4012
- var dayjs_min$1 = { exports: {} };
4058
+ var dayjs_min = { exports: {} };
4013
4059
  (function(module, exports) {
4014
4060
  !function(t2, e2) {
4015
4061
  module.exports = e2();
@@ -4298,8 +4344,8 @@ var dayjs_min$1 = { exports: {} };
4298
4344
  return O(1e3 * t3);
4299
4345
  }, O.en = D[g2], O.Ls = D, O.p = {}, O;
4300
4346
  });
4301
- })(dayjs_min$1);
4302
- var dayjs$1 = dayjs_min$1.exports;
4347
+ })(dayjs_min);
4348
+ var dayjs = dayjs_min.exports;
4303
4349
  function isNodeOrWeb() {
4304
4350
  var freeGlobal2 = (typeof global === "undefined" ? "undefined" : typeof global) == "object" && global && global.Object === Object && global;
4305
4351
  var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
@@ -4318,7 +4364,7 @@ function useDebounceFn(fn, options) {
4318
4364
  var fnRef = useLatest(fn);
4319
4365
  var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
4320
4366
  var debounced = useMemo(function() {
4321
- return debounce$1(function() {
4367
+ return debounce_1(function() {
4322
4368
  var args = [];
4323
4369
  for (var _i = 0; _i < arguments.length; _i++) {
4324
4370
  args[_i] = arguments[_i];
@@ -4496,7 +4542,7 @@ var _reactFastCompare_3_2_2_reactFastCompare = function isEqual(a, b2) {
4496
4542
  if (options.root && options.root.nodeType != 1 && options.root.nodeType != 9) {
4497
4543
  throw new Error("root must be a Document or Element");
4498
4544
  }
4499
- this._checkForIntersections = throttle(
4545
+ this._checkForIntersections = throttle2(
4500
4546
  this._checkForIntersections.bind(this),
4501
4547
  this.THROTTLE_TIMEOUT
4502
4548
  );
@@ -4841,7 +4887,7 @@ var _reactFastCompare_3_2_2_reactFastCompare = function isEqual(a, b2) {
4841
4887
  function now2() {
4842
4888
  return window.performance && performance.now && performance.now();
4843
4889
  }
4844
- function throttle(fn, timeout) {
4890
+ function throttle2(fn, timeout) {
4845
4891
  var timer = null;
4846
4892
  return function() {
4847
4893
  if (!timer) {
@@ -5026,6 +5072,33 @@ var useUnmountedRef = function() {
5026
5072
  return unmountedRef;
5027
5073
  };
5028
5074
  var useUnmountedRef$1 = useUnmountedRef;
5075
+ function useThrottleFn(fn, options) {
5076
+ var _a;
5077
+ if (isDev$2) {
5078
+ if (!isFunction(fn)) {
5079
+ console.error("useThrottleFn expected parameter is a function, got ".concat(typeof fn));
5080
+ }
5081
+ }
5082
+ var fnRef = useLatest(fn);
5083
+ var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
5084
+ var throttled = useMemo(function() {
5085
+ return throttle_1(function() {
5086
+ var args = [];
5087
+ for (var _i = 0; _i < arguments.length; _i++) {
5088
+ args[_i] = arguments[_i];
5089
+ }
5090
+ return fnRef.current.apply(fnRef, __spreadArray([], __read(args), false));
5091
+ }, wait, options);
5092
+ }, []);
5093
+ useUnmount$1(function() {
5094
+ throttled.cancel();
5095
+ });
5096
+ return {
5097
+ run: throttled,
5098
+ cancel: throttled.cancel,
5099
+ flush: throttled.flush
5100
+ };
5101
+ }
5029
5102
  var mask = "";
5030
5103
  const MIN_DISTANCE = 10;
5031
5104
  function getDirection(x, y) {
@@ -8428,7 +8501,7 @@ function withStopPropagation(events, element) {
8428
8501
  }
8429
8502
  return React__default.cloneElement(element, props);
8430
8503
  }
8431
- const classPrefix$k = `adm-mask`;
8504
+ const classPrefix$n = `adm-mask`;
8432
8505
  const opacityRecord = {
8433
8506
  default: 0.55,
8434
8507
  thin: 0.35,
@@ -8438,7 +8511,7 @@ const colorRecord$2 = {
8438
8511
  black: "0, 0, 0",
8439
8512
  white: "255, 255, 255"
8440
8513
  };
8441
- const defaultProps$h = {
8514
+ const defaultProps$k = {
8442
8515
  visible: true,
8443
8516
  destroyOnClose: false,
8444
8517
  forceRender: false,
@@ -8449,7 +8522,7 @@ const defaultProps$h = {
8449
8522
  stopPropagation: ["click"]
8450
8523
  };
8451
8524
  const Mask$1 = (p2) => {
8452
- const props = mergeProps(defaultProps$h, p2);
8525
+ const props = mergeProps(defaultProps$k, p2);
8453
8526
  const {
8454
8527
  locale
8455
8528
  } = useConfig();
@@ -8490,7 +8563,7 @@ const Mask$1 = (p2) => {
8490
8563
  }
8491
8564
  });
8492
8565
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
8493
- className: classPrefix$k,
8566
+ className: classPrefix$n,
8494
8567
  ref,
8495
8568
  "aria-hidden": true,
8496
8569
  style: Object.assign(Object.assign({}, props.style), {
@@ -8505,12 +8578,12 @@ const Mask$1 = (p2) => {
8505
8578
  }
8506
8579
  }
8507
8580
  }, props.onMaskClick && React__default.createElement("div", {
8508
- className: `${classPrefix$k}-aria-button`,
8581
+ className: `${classPrefix$n}-aria-button`,
8509
8582
  role: "button",
8510
8583
  "aria-label": locale.Mask.name,
8511
8584
  onClick: props.onMaskClick
8512
8585
  }), React__default.createElement("div", {
8513
- className: `${classPrefix$k}-content`
8586
+ className: `${classPrefix$n}-content`
8514
8587
  }, props.children))));
8515
8588
  return React__default.createElement(ShouldRender, {
8516
8589
  active,
@@ -10336,8 +10409,8 @@ function useWheel(handler, config2) {
10336
10409
  wheel: handler
10337
10410
  }, config2 || {}, "wheel");
10338
10411
  }
10339
- const classPrefix$j = `adm-popup`;
10340
- const defaultProps$g = Object.assign(Object.assign({}, defaultPopupBaseProps), {
10412
+ const classPrefix$m = `adm-popup`;
10413
+ const defaultProps$j = Object.assign(Object.assign({}, defaultPopupBaseProps), {
10341
10414
  closeOnSwipe: false,
10342
10415
  position: "bottom"
10343
10416
  });
@@ -10346,8 +10419,8 @@ const Popup$1 = (p2) => {
10346
10419
  locale,
10347
10420
  popup: componentConfig = {}
10348
10421
  } = useConfig();
10349
- const props = mergeProps(defaultProps$g, componentConfig, p2);
10350
- const bodyCls = classNames(`${classPrefix$j}-body`, props.bodyClassName, `${classPrefix$j}-body-position-${props.position}`);
10422
+ const props = mergeProps(defaultProps$j, componentConfig, p2);
10423
+ const bodyCls = classNames(`${classPrefix$m}-body`, props.bodyClassName, `${classPrefix$m}-body-position-${props.position}`);
10351
10424
  const [active, setActive] = useState(props.visible);
10352
10425
  const ref = useRef(null);
10353
10426
  useLockScroll(ref, props.disableBodyScroll && active ? "strict" : false);
@@ -10394,7 +10467,7 @@ const Popup$1 = (p2) => {
10394
10467
  });
10395
10468
  const maskVisible = useInnerVisible(active && props.visible);
10396
10469
  const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement("div", Object.assign({
10397
- className: classPrefix$j,
10470
+ className: classPrefix$m,
10398
10471
  onClick: props.onClick,
10399
10472
  style: {
10400
10473
  display: active ? void 0 : "none",
@@ -10437,7 +10510,7 @@ const Popup$1 = (p2) => {
10437
10510
  }),
10438
10511
  ref
10439
10512
  }, props.showCloseButton && React__default.createElement("a", {
10440
- className: classNames(`${classPrefix$j}-close-icon`, "adm-plain-anchor"),
10513
+ className: classNames(`${classPrefix$m}-close-icon`, "adm-plain-anchor"),
10441
10514
  onClick: () => {
10442
10515
  var _a;
10443
10516
  (_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
@@ -10453,10 +10526,10 @@ const Popup$1 = (p2) => {
10453
10526
  };
10454
10527
  var Popup = Popup$1;
10455
10528
  var safeArea = "";
10456
- const classPrefix$i = "adm-safe-area";
10529
+ const classPrefix$l = "adm-safe-area";
10457
10530
  const SafeArea$1 = (props) => {
10458
10531
  return withNativeProps(props, React__default.createElement("div", {
10459
- className: classNames(classPrefix$i, `${classPrefix$i}-position-${props.position}`)
10532
+ className: classNames(classPrefix$l, `${classPrefix$l}-position-${props.position}`)
10460
10533
  }));
10461
10534
  };
10462
10535
  var SafeArea = SafeArea$1;
@@ -10576,25 +10649,27 @@ function renderImperatively(element) {
10576
10649
  }));
10577
10650
  return {
10578
10651
  close: () => __awaiter(this, void 0, void 0, function* () {
10579
- var _a;
10652
+ var _a, _b, _c;
10580
10653
  if (!wrapperRef.current) {
10581
10654
  unmount2();
10655
+ (_b = (_a = element.props).afterClose) === null || _b === void 0 ? void 0 : _b.call(_a);
10582
10656
  } else {
10583
- (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.close();
10657
+ (_c = wrapperRef.current) === null || _c === void 0 ? void 0 : _c.close();
10584
10658
  }
10585
10659
  }),
10586
10660
  replace: (element2) => {
10587
10661
  var _a;
10588
10662
  (_a = wrapperRef.current) === null || _a === void 0 ? void 0 : _a.replace(element2);
10589
- }
10663
+ },
10664
+ isRendered: () => !!wrapperRef.current
10590
10665
  };
10591
10666
  }
10592
10667
  var autoCenter = "";
10593
- const classPrefix$h = "adm-auto-center";
10668
+ const classPrefix$k = "adm-auto-center";
10594
10669
  const AutoCenter$1 = (props) => withNativeProps(props, React__default.createElement("div", {
10595
- className: classPrefix$h
10670
+ className: classPrefix$k
10596
10671
  }, React__default.createElement("div", {
10597
- className: `${classPrefix$h}-content`
10672
+ className: `${classPrefix$k}-content`
10598
10673
  }, props.children)));
10599
10674
  var AutoCenter = AutoCenter$1;
10600
10675
  var image = "";
@@ -10655,20 +10730,20 @@ const BrokenImageIcon = () => React__default.createElement("svg", {
10655
10730
  fill: "#DBDBDB",
10656
10731
  fillRule: "nonzero"
10657
10732
  }));
10658
- const classPrefix$g = `adm-image`;
10659
- const defaultProps$f = {
10733
+ const classPrefix$j = `adm-image`;
10734
+ const defaultProps$i = {
10660
10735
  fit: "fill",
10661
10736
  placeholder: React__default.createElement("div", {
10662
- className: `${classPrefix$g}-tip`
10737
+ className: `${classPrefix$j}-tip`
10663
10738
  }, React__default.createElement(ImageIcon, null)),
10664
10739
  fallback: React__default.createElement("div", {
10665
- className: `${classPrefix$g}-tip`
10740
+ className: `${classPrefix$j}-tip`
10666
10741
  }, React__default.createElement(BrokenImageIcon, null)),
10667
10742
  lazy: false,
10668
10743
  draggable: false
10669
10744
  };
10670
10745
  const Image$1 = staged_1((p2) => {
10671
- const props = mergeProps(defaultProps$f, p2);
10746
+ const props = mergeProps(defaultProps$i, p2);
10672
10747
  const [loaded, setLoaded] = useState(false);
10673
10748
  const [failed, setFailed] = useState(false);
10674
10749
  const ref = useRef(null);
@@ -10695,7 +10770,7 @@ const Image$1 = staged_1((p2) => {
10695
10770
  const img = React__default.createElement("img", {
10696
10771
  ref: imgRef,
10697
10772
  id: props.id,
10698
- className: `${classPrefix$g}-img`,
10773
+ className: `${classPrefix$j}-img`,
10699
10774
  src,
10700
10775
  alt: props.alt,
10701
10776
  onClick: props.onClick,
@@ -10735,7 +10810,7 @@ const Image$1 = staged_1((p2) => {
10735
10810
  }
10736
10811
  return withNativeProps(props, React__default.createElement("div", {
10737
10812
  ref,
10738
- className: classPrefix$g,
10813
+ className: classPrefix$j,
10739
10814
  style,
10740
10815
  onClick: props.onContainerClick
10741
10816
  }, props.lazy && !initialized && React__default.createElement(LazyDetector, {
@@ -10745,25 +10820,56 @@ const Image$1 = staged_1((p2) => {
10745
10820
  }), renderInner()));
10746
10821
  });
10747
10822
  var Image = Image$1;
10823
+ var badge = "";
10824
+ const classPrefix$i = `adm-badge`;
10825
+ const dot = React__default.createElement(React__default.Fragment, null);
10826
+ const Badge$1 = (props) => {
10827
+ const {
10828
+ content,
10829
+ color,
10830
+ children
10831
+ } = props;
10832
+ const isDot = content === dot;
10833
+ const badgeClass = classNames(classPrefix$i, {
10834
+ [`${classPrefix$i}-fixed`]: !!children,
10835
+ [`${classPrefix$i}-dot`]: isDot,
10836
+ [`${classPrefix$i}-bordered`]: props.bordered
10837
+ });
10838
+ const element = content || content === 0 ? withNativeProps(props, React__default.createElement("div", {
10839
+ className: badgeClass,
10840
+ style: {
10841
+ "--color": color
10842
+ }
10843
+ }, !isDot && React__default.createElement("div", {
10844
+ className: `${classPrefix$i}-content`
10845
+ }, content))) : null;
10846
+ return children ? React__default.createElement("div", {
10847
+ className: classNames(`${classPrefix$i}-wrapper`, props.wrapperClassName),
10848
+ style: props.wrapperStyle
10849
+ }, children, element) : element;
10850
+ };
10851
+ var Badge = attachPropertiesToComponent(Badge$1, {
10852
+ dot
10853
+ });
10748
10854
  var button = "";
10749
10855
  var dotLoading = "";
10750
- const classPrefix$f = `adm-dot-loading`;
10856
+ const classPrefix$h = `adm-dot-loading`;
10751
10857
  const colorRecord$1 = {
10752
10858
  default: "var(--adm-color-weak)",
10753
10859
  primary: "var(--adm-color-primary)",
10754
10860
  white: "var(--adm-color-white)"
10755
10861
  };
10756
- const defaultProps$e = {
10862
+ const defaultProps$h = {
10757
10863
  color: "default"
10758
10864
  };
10759
10865
  const DotLoading$1 = memo((p2) => {
10760
10866
  var _a;
10761
- const props = mergeProps(defaultProps$e, p2);
10867
+ const props = mergeProps(defaultProps$h, p2);
10762
10868
  return withNativeProps(props, React__default.createElement("div", {
10763
10869
  style: {
10764
10870
  color: (_a = colorRecord$1[props.color]) !== null && _a !== void 0 ? _a : props.color
10765
10871
  },
10766
- className: classNames("adm-loading", classPrefix$f)
10872
+ className: classNames("adm-loading", classPrefix$h)
10767
10873
  }, React__default.createElement("svg", {
10768
10874
  height: "1em",
10769
10875
  viewBox: "0 0 100 40",
@@ -10807,8 +10913,8 @@ function isPromise(obj) {
10807
10913
  function isIOS() {
10808
10914
  return canUseDom$1 ? /ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()) : false;
10809
10915
  }
10810
- const classPrefix$e = `adm-button`;
10811
- const defaultProps$d = {
10916
+ const classPrefix$g = `adm-button`;
10917
+ const defaultProps$g = {
10812
10918
  color: "default",
10813
10919
  fill: "solid",
10814
10920
  block: false,
@@ -10821,7 +10927,7 @@ const defaultProps$d = {
10821
10927
  size: "middle"
10822
10928
  };
10823
10929
  const Button$1 = forwardRef((p2, ref) => {
10824
- const props = mergeProps(defaultProps$d, p2);
10930
+ const props = mergeProps(defaultProps$g, p2);
10825
10931
  const [innerLoading, setInnerLoading] = useState(false);
10826
10932
  const nativeButtonRef = useRef(null);
10827
10933
  const loading2 = props.loading === "auto" ? innerLoading : props.loading;
@@ -10850,24 +10956,24 @@ const Button$1 = forwardRef((p2, ref) => {
10850
10956
  ref: nativeButtonRef,
10851
10957
  type: props.type,
10852
10958
  onClick: handleClick,
10853
- className: classNames(classPrefix$e, {
10854
- [`${classPrefix$e}-${props.color}`]: props.color,
10855
- [`${classPrefix$e}-block`]: props.block,
10856
- [`${classPrefix$e}-disabled`]: disabled,
10857
- [`${classPrefix$e}-fill-outline`]: props.fill === "outline",
10858
- [`${classPrefix$e}-fill-none`]: props.fill === "none",
10859
- [`${classPrefix$e}-mini`]: props.size === "mini",
10860
- [`${classPrefix$e}-small`]: props.size === "small",
10861
- [`${classPrefix$e}-large`]: props.size === "large",
10862
- [`${classPrefix$e}-loading`]: loading2
10863
- }, `${classPrefix$e}-shape-${props.shape}`),
10959
+ className: classNames(classPrefix$g, {
10960
+ [`${classPrefix$g}-${props.color}`]: props.color,
10961
+ [`${classPrefix$g}-block`]: props.block,
10962
+ [`${classPrefix$g}-disabled`]: disabled,
10963
+ [`${classPrefix$g}-fill-outline`]: props.fill === "outline",
10964
+ [`${classPrefix$g}-fill-none`]: props.fill === "none",
10965
+ [`${classPrefix$g}-mini`]: props.size === "mini",
10966
+ [`${classPrefix$g}-small`]: props.size === "small",
10967
+ [`${classPrefix$g}-large`]: props.size === "large",
10968
+ [`${classPrefix$g}-loading`]: loading2
10969
+ }, `${classPrefix$g}-shape-${props.shape}`),
10864
10970
  disabled,
10865
10971
  onMouseDown: props.onMouseDown,
10866
10972
  onMouseUp: props.onMouseUp,
10867
10973
  onTouchStart: props.onTouchStart,
10868
10974
  onTouchEnd: props.onTouchEnd
10869
10975
  }, loading2 ? React__default.createElement("div", {
10870
- className: `${classPrefix$e}-loading-wrapper`
10976
+ className: `${classPrefix$g}-loading-wrapper`
10871
10977
  }, props.loadingIcon, props.loadingText) : React__default.createElement("span", null, props.children)));
10872
10978
  });
10873
10979
  var Button = Button$1;
@@ -11214,6 +11320,50 @@ function _defineProperty(e2, r2, t2) {
11214
11320
  writable: true
11215
11321
  }) : e2[r2] = t2, e2;
11216
11322
  }
11323
+ function useResizeEffect(effect, targetRef) {
11324
+ const fn = useMemoizedFn(effect);
11325
+ useIsomorphicLayoutEffect$2(() => {
11326
+ const target = targetRef.current;
11327
+ if (!target)
11328
+ return;
11329
+ if (window.ResizeObserver) {
11330
+ let animationFrame;
11331
+ const observer = new ResizeObserver(() => {
11332
+ animationFrame = window.requestAnimationFrame(() => fn(target));
11333
+ });
11334
+ observer.observe(target);
11335
+ return () => {
11336
+ window.cancelAnimationFrame(animationFrame);
11337
+ observer.disconnect();
11338
+ };
11339
+ } else {
11340
+ fn(target);
11341
+ }
11342
+ }, [targetRef]);
11343
+ }
11344
+ function observe(element, options, callback) {
11345
+ if (element && typeof MutationObserver !== "undefined") {
11346
+ let observer = new MutationObserver(() => {
11347
+ callback();
11348
+ });
11349
+ observer.observe(element, options);
11350
+ return () => {
11351
+ if (observer) {
11352
+ observer.disconnect();
11353
+ observer = null;
11354
+ }
11355
+ };
11356
+ }
11357
+ return () => {
11358
+ };
11359
+ }
11360
+ function useMutationEffect(effect, targetRef, options) {
11361
+ const fn = useMemoizedFn(effect);
11362
+ useEffect(() => {
11363
+ const cleanup = observe(targetRef.current, options, fn);
11364
+ return cleanup;
11365
+ }, [targetRef]);
11366
+ }
11217
11367
  function bound(position, min, max) {
11218
11368
  let ret = position;
11219
11369
  if (min !== void 0) {
@@ -11224,6 +11374,20 @@ function bound(position, min, max) {
11224
11374
  }
11225
11375
  return ret;
11226
11376
  }
11377
+ function traverseReactNode(children, fn) {
11378
+ let i = 0;
11379
+ function handle(target) {
11380
+ React__default.Children.forEach(target, (child) => {
11381
+ if (!_reactIs_18_3_1_reactIs.exports.isFragment(child)) {
11382
+ fn(child, i);
11383
+ i += 1;
11384
+ } else {
11385
+ handle(child.props.children);
11386
+ }
11387
+ });
11388
+ }
11389
+ handle(children);
11390
+ }
11227
11391
  var picker = "";
11228
11392
  function rubberband(distance, dimension, constant) {
11229
11393
  return distance * dimension * constant / (dimension + constant * distance);
@@ -11252,7 +11416,7 @@ function measureCSSLength(raw) {
11252
11416
  return 0;
11253
11417
  }
11254
11418
  }
11255
- const classPrefix$d = `adm-picker-view`;
11419
+ const classPrefix$f = `adm-picker-view`;
11256
11420
  const Wheel = memo((props) => {
11257
11421
  const {
11258
11422
  value,
@@ -11419,13 +11583,13 @@ const Wheel = memo((props) => {
11419
11583
  const previous = column[previousIndex];
11420
11584
  const next = column[nextIndex];
11421
11585
  return React__default.createElement("div", {
11422
- className: `${classPrefix$d}-column-accessible`
11586
+ className: `${classPrefix$f}-column-accessible`
11423
11587
  }, React__default.createElement("div", {
11424
- className: `${classPrefix$d}-column-accessible-current`,
11588
+ className: `${classPrefix$f}-column-accessible-current`,
11425
11589
  role: "button",
11426
11590
  "aria-label": current ? `\u5F53\u524D\u9009\u62E9\u7684\u662F\uFF1A${current.label}` : "\u5F53\u524D\u672A\u9009\u62E9"
11427
11591
  }, "-"), React__default.createElement("div", {
11428
- className: `${classPrefix$d}-column-accessible-button`,
11592
+ className: `${classPrefix$f}-column-accessible-button`,
11429
11593
  onClick: () => {
11430
11594
  if (!previous)
11431
11595
  return;
@@ -11434,7 +11598,7 @@ const Wheel = memo((props) => {
11434
11598
  role: previous ? "button" : "text",
11435
11599
  "aria-label": !previous ? "\u6CA1\u6709\u4E0A\u4E00\u9879" : `\u9009\u62E9\u4E0A\u4E00\u9879\uFF1A${previous.label}`
11436
11600
  }, "-"), React__default.createElement("div", {
11437
- className: `${classPrefix$d}-column-accessible-button`,
11601
+ className: `${classPrefix$f}-column-accessible-button`,
11438
11602
  onClick: () => {
11439
11603
  if (!next)
11440
11604
  return;
@@ -11445,16 +11609,16 @@ const Wheel = memo((props) => {
11445
11609
  }, "-"));
11446
11610
  }
11447
11611
  return React__default.createElement("div", {
11448
- className: `${classPrefix$d}-column`
11612
+ className: `${classPrefix$f}-column`
11449
11613
  }, React__default.createElement("div", {
11450
- className: `${classPrefix$d}-item-height-measure`,
11614
+ className: `${classPrefix$f}-item-height-measure`,
11451
11615
  ref: itemHeightMeasureRef
11452
11616
  }), React__default.createElement(animated.div, {
11453
11617
  ref: rootRef,
11454
11618
  style: {
11455
11619
  translateY: y
11456
11620
  },
11457
- className: `${classPrefix$d}-column-wheel`,
11621
+ className: `${classPrefix$f}-column-wheel`,
11458
11622
  "aria-hidden": true
11459
11623
  }, column.map((item, index2) => {
11460
11624
  var _a;
@@ -11468,14 +11632,14 @@ const Wheel = memo((props) => {
11468
11632
  return React__default.createElement("div", {
11469
11633
  key: (_a = item.key) !== null && _a !== void 0 ? _a : item.value,
11470
11634
  "data-selected": selected,
11471
- className: classNames(`${classPrefix$d}-column-item`, {
11472
- [`${classPrefix$d}-column-item-active`]: selected
11635
+ className: classNames(`${classPrefix$f}-column-item`, {
11636
+ [`${classPrefix$f}-column-item-active`]: selected
11473
11637
  }),
11474
11638
  onClick: handleClick,
11475
11639
  "aria-hidden": !selected,
11476
11640
  "aria-label": selected ? "active" : ""
11477
11641
  }, React__default.createElement("div", {
11478
- className: `${classPrefix$d}-column-item-label`
11642
+ className: `${classPrefix$f}-column-item-label`
11479
11643
  }, renderLabel(item)));
11480
11644
  })), renderAccessible());
11481
11645
  }, (prev, next) => {
@@ -11599,19 +11763,19 @@ function subscribe(onStoreChange) {
11599
11763
  function useMotionReduced() {
11600
11764
  return shim.exports.useSyncExternalStore(subscribe, isMotionReduced, isMotionReduced);
11601
11765
  }
11602
- const classPrefix$c = "adm-spin-loading";
11766
+ const classPrefix$e = "adm-spin-loading";
11603
11767
  const colorRecord = {
11604
11768
  default: "var(--adm-color-weak)",
11605
11769
  primary: "var(--adm-color-primary)",
11606
11770
  white: "var(--adm-color-white)"
11607
11771
  };
11608
- const defaultProps$c = {
11772
+ const defaultProps$f = {
11609
11773
  color: "default"
11610
11774
  };
11611
11775
  const circumference = 15 * 3.14159265358979 * 2;
11612
11776
  const SpinLoading$1 = memo((p2) => {
11613
11777
  var _a;
11614
- const props = mergeProps(defaultProps$c, p2);
11778
+ const props = mergeProps(defaultProps$f, p2);
11615
11779
  const motionReduced = useMotionReduced();
11616
11780
  const {
11617
11781
  percent
@@ -11631,16 +11795,16 @@ const SpinLoading$1 = memo((p2) => {
11631
11795
  }
11632
11796
  });
11633
11797
  return withNativeProps(props, React__default.createElement(animated.div, {
11634
- className: classPrefix$c,
11798
+ className: classPrefix$e,
11635
11799
  style: {
11636
11800
  "--color": (_a = colorRecord[props.color]) !== null && _a !== void 0 ? _a : props.color,
11637
11801
  "--percent": percent
11638
11802
  }
11639
11803
  }, React__default.createElement("svg", {
11640
- className: `${classPrefix$c}-svg`,
11804
+ className: `${classPrefix$e}-svg`,
11641
11805
  viewBox: "0 0 32 32"
11642
11806
  }, React__default.createElement(animated.circle, {
11643
- className: `${classPrefix$c}-fill`,
11807
+ className: `${classPrefix$e}-fill`,
11644
11808
  fill: "transparent",
11645
11809
  strokeWidth: "2",
11646
11810
  strokeDasharray: circumference,
@@ -11652,17 +11816,17 @@ const SpinLoading$1 = memo((p2) => {
11652
11816
  }))));
11653
11817
  });
11654
11818
  var SpinLoading = SpinLoading$1;
11655
- const classPrefix$b = `adm-picker-view`;
11656
- const defaultProps$b = {
11819
+ const classPrefix$d = `adm-picker-view`;
11820
+ const defaultProps$e = {
11657
11821
  defaultValue: [],
11658
11822
  renderLabel: defaultRenderLabel,
11659
11823
  mouseWheel: false,
11660
11824
  loadingContent: React__default.createElement("div", {
11661
- className: `${classPrefix$b}-loading-content`
11825
+ className: `${classPrefix$d}-loading-content`
11662
11826
  }, React__default.createElement(SpinLoading, null))
11663
11827
  };
11664
11828
  const PickerView$1 = memo((p2) => {
11665
- const props = mergeProps(defaultProps$b, p2);
11829
+ const props = mergeProps(defaultProps$e, p2);
11666
11830
  const [innerValue, setInnerValue] = useState(props.value === void 0 ? props.defaultValue : props.value);
11667
11831
  useEffect(() => {
11668
11832
  if (props.value === void 0)
@@ -11703,7 +11867,7 @@ const PickerView$1 = memo((p2) => {
11703
11867
  });
11704
11868
  }, []);
11705
11869
  return withNativeProps(props, React__default.createElement("div", {
11706
- className: `${classPrefix$b}`
11870
+ className: `${classPrefix$d}`
11707
11871
  }, props.loading ? props.loadingContent : React__default.createElement(React__default.Fragment, null, columns.map((column, index2) => React__default.createElement(Wheel, {
11708
11872
  key: index2,
11709
11873
  index: index2,
@@ -11713,20 +11877,20 @@ const PickerView$1 = memo((p2) => {
11713
11877
  renderLabel: props.renderLabel,
11714
11878
  mouseWheel: props.mouseWheel
11715
11879
  })), React__default.createElement("div", {
11716
- className: `${classPrefix$b}-mask`
11880
+ className: `${classPrefix$d}-mask`
11717
11881
  }, React__default.createElement("div", {
11718
- className: `${classPrefix$b}-mask-top`
11882
+ className: `${classPrefix$d}-mask-top`
11719
11883
  }), React__default.createElement("div", {
11720
- className: `${classPrefix$b}-mask-middle`
11884
+ className: `${classPrefix$d}-mask-middle`
11721
11885
  }), React__default.createElement("div", {
11722
- className: `${classPrefix$b}-mask-bottom`
11886
+ className: `${classPrefix$d}-mask-bottom`
11723
11887
  })))));
11724
11888
  });
11725
11889
  PickerView$1.displayName = "PickerView";
11726
11890
  var pickerView = "";
11727
11891
  var PickerView = PickerView$1;
11728
- const classPrefix$a = `adm-picker`;
11729
- const defaultProps$a = {
11892
+ const classPrefix$c = `adm-picker`;
11893
+ const defaultProps$d = {
11730
11894
  defaultValue: [],
11731
11895
  closeOnMaskClick: true,
11732
11896
  renderLabel: defaultRenderLabel,
@@ -11738,7 +11902,7 @@ const Picker$1 = memo(forwardRef((p2, ref) => {
11738
11902
  const {
11739
11903
  locale
11740
11904
  } = useConfig();
11741
- const props = mergeProps(defaultProps$a, {
11905
+ const props = mergeProps(defaultProps$d, {
11742
11906
  confirmText: locale.common.confirm,
11743
11907
  cancelText: locale.common.cancel
11744
11908
  }, p2);
@@ -11791,22 +11955,22 @@ const Picker$1 = memo(forwardRef((p2, ref) => {
11791
11955
  }
11792
11956
  });
11793
11957
  const pickerElement = withNativeProps(props, React__default.createElement("div", {
11794
- className: classPrefix$a
11958
+ className: classPrefix$c
11795
11959
  }, React__default.createElement("div", {
11796
- className: `${classPrefix$a}-header`
11960
+ className: `${classPrefix$c}-header`
11797
11961
  }, React__default.createElement("a", {
11798
11962
  role: "button",
11799
- className: `${classPrefix$a}-header-button`,
11963
+ className: `${classPrefix$c}-header-button`,
11800
11964
  onClick: () => {
11801
11965
  var _a2;
11802
11966
  (_a2 = props.onCancel) === null || _a2 === void 0 ? void 0 : _a2.call(props);
11803
11967
  setVisible(false);
11804
11968
  }
11805
11969
  }, props.cancelText), React__default.createElement("div", {
11806
- className: `${classPrefix$a}-header-title`
11970
+ className: `${classPrefix$c}-header-title`
11807
11971
  }, props.title), React__default.createElement("a", {
11808
11972
  role: "button",
11809
- className: classNames(`${classPrefix$a}-header-button`, props.loading && `${classPrefix$a}-header-button-disabled`),
11973
+ className: classNames(`${classPrefix$c}-header-button`, props.loading && `${classPrefix$c}-header-button-disabled`),
11810
11974
  onClick: () => {
11811
11975
  if (props.loading)
11812
11976
  return;
@@ -11815,7 +11979,7 @@ const Picker$1 = memo(forwardRef((p2, ref) => {
11815
11979
  },
11816
11980
  "aria-disabled": props.loading
11817
11981
  }, props.confirmText)), React__default.createElement("div", {
11818
- className: `${classPrefix$a}-body`
11982
+ className: `${classPrefix$c}-body`
11819
11983
  }, React__default.createElement(PickerView, {
11820
11984
  loading: props.loading,
11821
11985
  loadingContent: props.loadingContent,
@@ -11827,7 +11991,7 @@ const Picker$1 = memo(forwardRef((p2, ref) => {
11827
11991
  }))));
11828
11992
  const popupElement = React__default.createElement(Popup, {
11829
11993
  style: props.popupStyle,
11830
- className: classNames(`${classPrefix$a}-popup`, props.popupClassName),
11994
+ className: classNames(`${classPrefix$c}-popup`, props.popupClassName),
11831
11995
  visible,
11832
11996
  position: "bottom",
11833
11997
  onMaskClick: () => {
@@ -11883,14 +12047,269 @@ function prompt$1(props) {
11883
12047
  var Picker = attachPropertiesToComponent(Picker$1, {
11884
12048
  prompt: prompt$1
11885
12049
  });
12050
+ var tabs = "";
12051
+ const classPrefix$b = `adm-tabs`;
12052
+ const Tab = () => {
12053
+ return null;
12054
+ };
12055
+ const defaultProps$c = {
12056
+ activeLineMode: "auto",
12057
+ stretch: true,
12058
+ direction: "ltr"
12059
+ };
12060
+ const Tabs$1 = (p2) => {
12061
+ var _a;
12062
+ const props = mergeProps(defaultProps$c, p2);
12063
+ const tabListContainerRef = useRef(null);
12064
+ const activeLineRef = useRef(null);
12065
+ const keyToIndexRecord = {};
12066
+ let firstActiveKey = null;
12067
+ const panes = [];
12068
+ const isRTL = props.direction === "rtl";
12069
+ traverseReactNode(props.children, (child, index2) => {
12070
+ if (!isValidElement(child))
12071
+ return;
12072
+ const key = child.key;
12073
+ if (typeof key !== "string")
12074
+ return;
12075
+ if (index2 === 0) {
12076
+ firstActiveKey = key;
12077
+ }
12078
+ const length = panes.push(child);
12079
+ keyToIndexRecord[key] = length - 1;
12080
+ });
12081
+ const [activeKey, setActiveKey] = usePropsValue({
12082
+ value: props.activeKey,
12083
+ defaultValue: (_a = props.defaultActiveKey) !== null && _a !== void 0 ? _a : firstActiveKey,
12084
+ onChange: (v2) => {
12085
+ var _a2;
12086
+ if (v2 === null)
12087
+ return;
12088
+ (_a2 = props.onChange) === null || _a2 === void 0 ? void 0 : _a2.call(props, v2);
12089
+ }
12090
+ });
12091
+ const [{
12092
+ x,
12093
+ width
12094
+ }, inkApi] = useSpring(() => ({
12095
+ x: 0,
12096
+ width: 0,
12097
+ config: {
12098
+ tension: 300,
12099
+ clamp: true
12100
+ }
12101
+ }));
12102
+ const [{
12103
+ scrollLeft
12104
+ }, scrollApi] = useSpring(() => ({
12105
+ scrollLeft: 0,
12106
+ config: {
12107
+ tension: 300,
12108
+ clamp: true
12109
+ }
12110
+ }));
12111
+ const [{
12112
+ leftMaskOpacity,
12113
+ rightMaskOpacity
12114
+ }, maskApi] = useSpring(() => ({
12115
+ leftMaskOpacity: 0,
12116
+ rightMaskOpacity: 0,
12117
+ config: {
12118
+ clamp: true
12119
+ }
12120
+ }));
12121
+ function animate(immediate = false, fromMutation = false) {
12122
+ const container = tabListContainerRef.current;
12123
+ if (!container)
12124
+ return;
12125
+ const activeIndex = keyToIndexRecord[activeKey];
12126
+ if (activeIndex === void 0) {
12127
+ inkApi.start({
12128
+ x: 0,
12129
+ width: 0,
12130
+ immediate: true
12131
+ });
12132
+ return;
12133
+ }
12134
+ const activeLine = activeLineRef.current;
12135
+ if (!activeLine)
12136
+ return;
12137
+ const activeTabWrapper = container.children.item(activeIndex + 1);
12138
+ const activeTab = activeTabWrapper.children.item(0);
12139
+ const activeTabLeft = activeTab.offsetLeft;
12140
+ const activeTabWidth = activeTab.offsetWidth;
12141
+ const activeTabWrapperLeft = activeTabWrapper.offsetLeft;
12142
+ const activeTabWrapperWidth = activeTabWrapper.offsetWidth;
12143
+ const containerWidth = container.offsetWidth;
12144
+ const containerScrollWidth = container.scrollWidth;
12145
+ const containerScrollLeft = container.scrollLeft;
12146
+ const activeLineWidth = activeLine.offsetWidth;
12147
+ let x2 = 0;
12148
+ let width2 = 0;
12149
+ if (props.activeLineMode === "auto") {
12150
+ x2 = activeTabLeft;
12151
+ width2 = activeTabWidth;
12152
+ } else if (props.activeLineMode === "full") {
12153
+ x2 = activeTabWrapperLeft;
12154
+ width2 = activeTabWrapperWidth;
12155
+ } else {
12156
+ x2 = activeTabLeft + (activeTabWidth - activeLineWidth) / 2;
12157
+ }
12158
+ if (isRTL) {
12159
+ const w = ["auto", "full"].includes(props.activeLineMode) ? width2 : activeLineWidth;
12160
+ x2 = -(containerWidth - x2 - w);
12161
+ }
12162
+ inkApi.start({
12163
+ x: x2,
12164
+ width: width2,
12165
+ immediate
12166
+ });
12167
+ const maxScrollDistance = containerScrollWidth - containerWidth;
12168
+ if (maxScrollDistance <= 0)
12169
+ return;
12170
+ let nextScrollLeft = 0;
12171
+ if (isRTL) {
12172
+ nextScrollLeft = -bound(containerWidth / 2 - activeTabLeft + activeTabWidth / 2 - activeLineWidth, 0, maxScrollDistance);
12173
+ } else {
12174
+ nextScrollLeft = bound(activeTabLeft - (containerWidth - activeTabWidth) / 2, 0, maxScrollDistance);
12175
+ }
12176
+ if (!fromMutation || props.autoScroll !== false) {
12177
+ scrollApi.start({
12178
+ scrollLeft: nextScrollLeft,
12179
+ from: {
12180
+ scrollLeft: containerScrollLeft
12181
+ },
12182
+ immediate
12183
+ });
12184
+ }
12185
+ }
12186
+ useIsomorphicLayoutEffect$2(() => {
12187
+ animate(!x.isAnimating);
12188
+ }, []);
12189
+ useIsomorphicUpdateLayoutEffect(() => {
12190
+ animate();
12191
+ }, [activeKey, isRTL, props.activeLineMode]);
12192
+ useResizeEffect(() => {
12193
+ animate(!x.isAnimating);
12194
+ }, tabListContainerRef);
12195
+ useMutationEffect(() => {
12196
+ animate(!x.isAnimating, true);
12197
+ }, tabListContainerRef, {
12198
+ subtree: true,
12199
+ childList: true,
12200
+ characterData: true
12201
+ });
12202
+ const {
12203
+ run: updateMask
12204
+ } = useThrottleFn((immediate = false) => {
12205
+ const container = tabListContainerRef.current;
12206
+ if (!container)
12207
+ return;
12208
+ const scrollLeft2 = container.scrollLeft;
12209
+ let showLeftMask = false;
12210
+ let showRightMask = false;
12211
+ if (isRTL) {
12212
+ showLeftMask = Math.round(-scrollLeft2) + container.offsetWidth < container.scrollWidth;
12213
+ showRightMask = scrollLeft2 < 0;
12214
+ } else {
12215
+ showLeftMask = scrollLeft2 > 0;
12216
+ showRightMask = scrollLeft2 + container.offsetWidth < container.scrollWidth;
12217
+ }
12218
+ maskApi.start({
12219
+ leftMaskOpacity: showLeftMask ? 1 : 0,
12220
+ rightMaskOpacity: showRightMask ? 1 : 0,
12221
+ immediate
12222
+ });
12223
+ }, {
12224
+ wait: 100,
12225
+ trailing: true,
12226
+ leading: true
12227
+ });
12228
+ useIsomorphicLayoutEffect$2(() => {
12229
+ updateMask(true);
12230
+ }, []);
12231
+ return withNativeProps(props, React__default.createElement("div", {
12232
+ className: classPrefix$b,
12233
+ style: {
12234
+ direction: props.direction
12235
+ }
12236
+ }, React__default.createElement("div", {
12237
+ className: `${classPrefix$b}-header`
12238
+ }, React__default.createElement(animated.div, {
12239
+ className: classNames(`${classPrefix$b}-header-mask`, `${classPrefix$b}-header-mask-left`),
12240
+ style: {
12241
+ opacity: leftMaskOpacity
12242
+ }
12243
+ }), React__default.createElement(animated.div, {
12244
+ className: classNames(`${classPrefix$b}-header-mask`, `${classPrefix$b}-header-mask-right`),
12245
+ style: {
12246
+ opacity: rightMaskOpacity
12247
+ }
12248
+ }), React__default.createElement(animated.div, {
12249
+ className: `${classPrefix$b}-tab-list`,
12250
+ ref: tabListContainerRef,
12251
+ scrollLeft,
12252
+ onScroll: updateMask,
12253
+ role: "tablist"
12254
+ }, React__default.createElement(animated.div, {
12255
+ ref: activeLineRef,
12256
+ className: `${classPrefix$b}-tab-line`,
12257
+ style: {
12258
+ width: props.activeLineMode === "fixed" ? "var(--fixed-active-line-width, 30px)" : width,
12259
+ x
12260
+ }
12261
+ }), panes.map((pane) => withNativeProps(pane.props, React__default.createElement("div", {
12262
+ key: pane.key,
12263
+ className: classNames(`${classPrefix$b}-tab-wrapper`, {
12264
+ [`${classPrefix$b}-tab-wrapper-stretch`]: props.stretch
12265
+ })
12266
+ }, React__default.createElement("div", {
12267
+ onClick: () => {
12268
+ const {
12269
+ key
12270
+ } = pane;
12271
+ if (pane.props.disabled)
12272
+ return;
12273
+ if (key === void 0 || key === null) {
12274
+ return;
12275
+ }
12276
+ setActiveKey(key.toString());
12277
+ },
12278
+ className: classNames(`${classPrefix$b}-tab`, {
12279
+ [`${classPrefix$b}-tab-active`]: pane.key === activeKey,
12280
+ [`${classPrefix$b}-tab-disabled`]: pane.props.disabled
12281
+ }),
12282
+ role: "tab",
12283
+ "aria-selected": pane.key === activeKey
12284
+ }, pane.props.title)))))), panes.map((pane) => {
12285
+ if (pane.props.children === void 0) {
12286
+ return null;
12287
+ }
12288
+ const active = pane.key === activeKey;
12289
+ return React__default.createElement(ShouldRender, {
12290
+ key: pane.key,
12291
+ active,
12292
+ forceRender: pane.props.forceRender,
12293
+ destroyOnClose: pane.props.destroyOnClose
12294
+ }, React__default.createElement("div", {
12295
+ className: `${classPrefix$b}-content`,
12296
+ style: {
12297
+ display: active ? "block" : "none"
12298
+ }
12299
+ }, pane.props.children));
12300
+ })));
12301
+ };
12302
+ var Tabs = attachPropertiesToComponent(Tabs$1, {
12303
+ Tab
12304
+ });
11886
12305
  var checkList = "";
11887
12306
  var list = "";
11888
- const classPrefix$9 = `adm-list`;
11889
- const defaultProps$9 = {
12307
+ const classPrefix$a = `adm-list`;
12308
+ const defaultProps$b = {
11890
12309
  mode: "default"
11891
12310
  };
11892
12311
  const List$1 = forwardRef((p2, ref) => {
11893
- const props = mergeProps(defaultProps$9, p2);
12312
+ const props = mergeProps(defaultProps$b, p2);
11894
12313
  const nativeElementRef = useRef(null);
11895
12314
  useImperativeHandle(ref, () => ({
11896
12315
  get nativeElement() {
@@ -11898,20 +12317,20 @@ const List$1 = forwardRef((p2, ref) => {
11898
12317
  }
11899
12318
  }));
11900
12319
  return withNativeProps(props, React__default.createElement("div", {
11901
- className: classNames(classPrefix$9, `${classPrefix$9}-${props.mode}`),
12320
+ className: classNames(classPrefix$a, `${classPrefix$a}-${props.mode}`),
11902
12321
  ref: nativeElementRef
11903
12322
  }, props.header && React__default.createElement("div", {
11904
- className: `${classPrefix$9}-header`
12323
+ className: `${classPrefix$a}-header`
11905
12324
  }, props.header), React__default.createElement("div", {
11906
- className: `${classPrefix$9}-body`
12325
+ className: `${classPrefix$a}-body`
11907
12326
  }, React__default.createElement("div", {
11908
- className: `${classPrefix$9}-body-inner`
12327
+ className: `${classPrefix$a}-body-inner`
11909
12328
  }, props.children))));
11910
12329
  });
11911
12330
  function isNodeWithContent(node) {
11912
12331
  return node !== void 0 && node !== null && node !== false;
11913
12332
  }
11914
- const classPrefix$8 = `adm-list-item`;
12333
+ const classPrefix$9 = `adm-list-item`;
11915
12334
  const ListItem$1 = (props) => {
11916
12335
  var _a, _b;
11917
12336
  const {
@@ -11925,22 +12344,22 @@ const ListItem$1 = (props) => {
11925
12344
  const showArrow = (_b = arrow !== null && arrow !== void 0 ? arrow : arrowIcon) !== null && _b !== void 0 ? _b : clickable;
11926
12345
  const mergedArrowIcon = mergeProp(componentConfig.arrowIcon, arrow !== true ? arrow : null, arrowIcon !== true ? arrowIcon : null);
11927
12346
  const content = React__default.createElement("div", {
11928
- className: `${classPrefix$8}-content`
12347
+ className: `${classPrefix$9}-content`
11929
12348
  }, isNodeWithContent(props.prefix) && React__default.createElement("div", {
11930
- className: `${classPrefix$8}-content-prefix`
12349
+ className: `${classPrefix$9}-content-prefix`
11931
12350
  }, props.prefix), React__default.createElement("div", {
11932
- className: `${classPrefix$8}-content-main`
12351
+ className: `${classPrefix$9}-content-main`
11933
12352
  }, isNodeWithContent(props.title) && React__default.createElement("div", {
11934
- className: `${classPrefix$8}-title`
12353
+ className: `${classPrefix$9}-title`
11935
12354
  }, props.title), props.children, isNodeWithContent(props.description) && React__default.createElement("div", {
11936
- className: `${classPrefix$8}-description`
12355
+ className: `${classPrefix$9}-description`
11937
12356
  }, props.description)), isNodeWithContent(props.extra) && React__default.createElement("div", {
11938
- className: `${classPrefix$8}-content-extra`
12357
+ className: `${classPrefix$9}-content-extra`
11939
12358
  }, props.extra), showArrow && React__default.createElement("div", {
11940
- className: `${classPrefix$8}-content-arrow`
12359
+ className: `${classPrefix$9}-content-arrow`
11941
12360
  }, mergedArrowIcon || React__default.createElement(RightOutline, null)));
11942
12361
  return withNativeProps(props, React__default.createElement(clickable ? "a" : "div", {
11943
- className: classNames(`${classPrefix$8}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$8}-disabled`),
12362
+ className: classNames(`${classPrefix$9}`, clickable ? ["adm-plain-anchor"] : [], props.disabled && `${classPrefix$9}-disabled`),
11944
12363
  onClick: props.disabled ? void 0 : props.onClick
11945
12364
  }, content));
11946
12365
  };
@@ -11948,8 +12367,8 @@ var List = attachPropertiesToComponent(List$1, {
11948
12367
  Item: ListItem$1
11949
12368
  });
11950
12369
  const CheckListContext = createContext(null);
11951
- const classPrefix$7 = "adm-check-list";
11952
- const defaultProps$8 = {
12370
+ const classPrefix$8 = "adm-check-list";
12371
+ const defaultProps$a = {
11953
12372
  multiple: false,
11954
12373
  defaultValue: [],
11955
12374
  activeIcon: React__default.createElement(CheckOutline, null)
@@ -11958,7 +12377,7 @@ const CheckList$1 = (props) => {
11958
12377
  const {
11959
12378
  checkList: componentConfig = {}
11960
12379
  } = useConfig();
11961
- const mergedProps = mergeProps(defaultProps$8, componentConfig, props);
12380
+ const mergedProps = mergeProps(defaultProps$a, componentConfig, props);
11962
12381
  const [value, setValue] = usePropsValue(mergedProps);
11963
12382
  function check(val) {
11964
12383
  if (mergedProps.multiple) {
@@ -11988,10 +12407,10 @@ const CheckList$1 = (props) => {
11988
12407
  }
11989
12408
  }, withNativeProps(mergedProps, React__default.createElement(List, {
11990
12409
  mode: mergedProps.mode,
11991
- className: classPrefix$7
12410
+ className: classPrefix$8
11992
12411
  }, mergedProps.children)));
11993
12412
  };
11994
- const classPrefix$6 = `adm-check-list-item`;
12413
+ const classPrefix$7 = `adm-check-list-item`;
11995
12414
  const CheckListItem = (props) => {
11996
12415
  const context = useContext(CheckListContext);
11997
12416
  if (context === null) {
@@ -12003,11 +12422,11 @@ const CheckListItem = (props) => {
12003
12422
  const defaultExtra = active ? context.activeIcon : null;
12004
12423
  const renderExtra = context.extra ? context.extra(active) : defaultExtra;
12005
12424
  const extra = React__default.createElement("div", {
12006
- className: `${classPrefix$6}-extra`
12425
+ className: `${classPrefix$7}-extra`
12007
12426
  }, renderExtra);
12008
12427
  return withNativeProps(props, React__default.createElement(List.Item, {
12009
12428
  title: props.title,
12010
- className: classNames(classPrefix$6, readOnly && `${classPrefix$6}-readonly`, active && `${classPrefix$6}-active`),
12429
+ className: classNames(classPrefix$7, readOnly && `${classPrefix$7}-readonly`, active && `${classPrefix$7}-active`),
12011
12430
  description: props.description,
12012
12431
  prefix: props.prefix,
12013
12432
  onClick: (e2) => {
@@ -12031,15 +12450,15 @@ var CheckList = attachPropertiesToComponent(CheckList$1, {
12031
12450
  Item: CheckListItem
12032
12451
  });
12033
12452
  var centerPopup = "";
12034
- const classPrefix$5 = "adm-center-popup";
12035
- const defaultProps$7 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12453
+ const classPrefix$6 = "adm-center-popup";
12454
+ const defaultProps$9 = Object.assign(Object.assign({}, defaultPopupBaseProps), {
12036
12455
  getContainer: null
12037
12456
  });
12038
12457
  const CenterPopup$1 = (props) => {
12039
12458
  const {
12040
12459
  popup: componentConfig = {}
12041
12460
  } = useConfig();
12042
- const mergedProps = mergeProps(defaultProps$7, componentConfig, props);
12461
+ const mergedProps = mergeProps(defaultProps$9, componentConfig, props);
12043
12462
  const unmountedRef = useUnmountedRef$1();
12044
12463
  const style = useSpring({
12045
12464
  scale: mergedProps.visible ? 1 : 0.8,
@@ -12072,11 +12491,11 @@ const CenterPopup$1 = (props) => {
12072
12491
  useLockScroll(ref, mergedProps.disableBodyScroll && active);
12073
12492
  const maskVisible = useInnerVisible(active && mergedProps.visible);
12074
12493
  const body = React__default.createElement("div", {
12075
- className: classNames(`${classPrefix$5}-body`, mergedProps.bodyClassName),
12494
+ className: classNames(`${classPrefix$6}-body`, mergedProps.bodyClassName),
12076
12495
  style: mergedProps.bodyStyle
12077
12496
  }, mergedProps.children);
12078
12497
  const node = withStopPropagation(mergedProps.stopPropagation, withNativeProps(mergedProps, React__default.createElement("div", {
12079
- className: classPrefix$5,
12498
+ className: classPrefix$6,
12080
12499
  style: {
12081
12500
  display: active ? void 0 : "none",
12082
12501
  pointerEvents: active ? void 0 : "none"
@@ -12093,11 +12512,11 @@ const CenterPopup$1 = (props) => {
12093
12512
  }
12094
12513
  },
12095
12514
  style: mergedProps.maskStyle,
12096
- className: classNames(`${classPrefix$5}-mask`, mergedProps.maskClassName),
12515
+ className: classNames(`${classPrefix$6}-mask`, mergedProps.maskClassName),
12097
12516
  disableBodyScroll: false,
12098
12517
  stopPropagation: mergedProps.stopPropagation
12099
12518
  }), React__default.createElement("div", {
12100
- className: `${classPrefix$5}-wrap`,
12519
+ className: `${classPrefix$6}-wrap`,
12101
12520
  role: mergedProps.role,
12102
12521
  "aria-label": mergedProps["aria-label"]
12103
12522
  }, React__default.createElement(animated.div, {
@@ -12106,7 +12525,7 @@ const CenterPopup$1 = (props) => {
12106
12525
  }),
12107
12526
  ref
12108
12527
  }, mergedProps.showCloseButton && React__default.createElement("a", {
12109
- className: classNames(`${classPrefix$5}-close`, "adm-plain-anchor"),
12528
+ className: classNames(`${classPrefix$6}-close`, "adm-plain-anchor"),
12110
12529
  onClick: () => {
12111
12530
  var _a;
12112
12531
  (_a = mergedProps.onClose) === null || _a === void 0 ? void 0 : _a.call(mergedProps);
@@ -12119,6 +12538,45 @@ const CenterPopup$1 = (props) => {
12119
12538
  }, renderToContainer(mergedProps.getContainer, node));
12120
12539
  };
12121
12540
  var CenterPopup = CenterPopup$1;
12541
+ const CheckIcon = memo((props) => {
12542
+ return withNativeProps(props, React__default.createElement("svg", {
12543
+ viewBox: "0 0 40 40"
12544
+ }, React__default.createElement("path", {
12545
+ d: "M31.5541766,15 L28.0892433,15 L28.0892434,15 C27.971052,15 27.8576674,15.044522 27.7740471,15.1239792 L18.2724722,24.1625319 L13.2248725,19.3630279 L13.2248725,19.3630279 C13.1417074,19.2834412 13.0287551,19.2384807 12.9107898,19.2380079 L9.44474455,19.2380079 L9.44474454,19.2380079 C9.19869815,19.2384085 8.99957935,19.4284738 9,19.66253 C9,19.7747587 9.04719253,19.8823283 9.13066188,19.9616418 L17.0907466,27.5338228 C17.4170809,27.8442545 17.8447695,28 18.2713393,28 L18.2980697,28 C18.7168464,27.993643 19.133396,27.8378975 19.4530492,27.5338228 L31.8693384,15.7236361 L31.8693384,15.7236361 C32.0434167,15.5582251 32.0435739,15.2898919 31.8696892,15.1242941 C31.7860402,15.0446329 31.6725052,15 31.5541421,15 L31.5541766,15 Z",
12546
+ fill: "currentColor"
12547
+ })));
12548
+ });
12549
+ const NativeInput = (props) => {
12550
+ const inputRef = useRef(null);
12551
+ const handleClick = useMemoizedFn((e2) => {
12552
+ e2.stopPropagation();
12553
+ e2.stopImmediatePropagation();
12554
+ const latestChecked = e2.target.checked;
12555
+ if (latestChecked === props.checked)
12556
+ return;
12557
+ props.onChange(latestChecked);
12558
+ });
12559
+ useEffect(() => {
12560
+ if (props.disabled)
12561
+ return;
12562
+ if (!inputRef.current)
12563
+ return;
12564
+ const input2 = inputRef.current;
12565
+ input2.addEventListener("click", handleClick);
12566
+ return () => {
12567
+ input2.removeEventListener("click", handleClick);
12568
+ };
12569
+ }, [props.disabled, props.onChange]);
12570
+ return React__default.createElement("input", {
12571
+ ref: inputRef,
12572
+ type: props.type,
12573
+ checked: props.checked,
12574
+ onChange: () => {
12575
+ },
12576
+ disabled: props.disabled,
12577
+ id: props.id
12578
+ });
12579
+ };
12122
12580
  var datePicker = "";
12123
12581
  var isoWeeksInYear$1 = { exports: {} };
12124
12582
  (function(module, exports) {
@@ -12148,10 +12606,10 @@ var isLeapYear$1 = { exports: {} };
12148
12606
  })(isLeapYear$1);
12149
12607
  var isLeapYear = isLeapYear$1.exports;
12150
12608
  const TILL_NOW = "TILL_NOW";
12151
- dayjs$1.extend(isoWeek);
12152
- dayjs$1.extend(isoWeeksInYear);
12153
- dayjs$1.extend(isLeapYear);
12154
- const precisionRankRecord$1 = {
12609
+ dayjs.extend(isoWeek);
12610
+ dayjs.extend(isoWeeksInYear);
12611
+ dayjs.extend(isLeapYear);
12612
+ const precisionRankRecord$2 = {
12155
12613
  year: 0,
12156
12614
  month: 1,
12157
12615
  day: 2,
@@ -12159,7 +12617,7 @@ const precisionRankRecord$1 = {
12159
12617
  minute: 4,
12160
12618
  second: 5
12161
12619
  };
12162
- function generateDatePickerColumns$2(selected, min, max, precision, renderLabel, filter, tillNow) {
12620
+ function generateDatePickerColumns$3(selected, min, max, precision, renderLabel, filter, tillNow) {
12163
12621
  const ret = [];
12164
12622
  const minYear = min.getFullYear();
12165
12623
  const minMonth = min.getMonth() + 1;
@@ -12173,9 +12631,9 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12173
12631
  const maxHour = max.getHours();
12174
12632
  const maxMinute = max.getMinutes();
12175
12633
  const maxSecond = max.getSeconds();
12176
- const rank = precisionRankRecord$1[precision];
12634
+ const rank = precisionRankRecord$2[precision];
12177
12635
  const selectedYear = parseInt(selected[0]);
12178
- const firstDayInSelectedMonth = dayjs$1(convertStringArrayToDate$2([selected[0], selected[1], "1"]));
12636
+ const firstDayInSelectedMonth = dayjs(convertStringArrayToDate$3([selected[0], selected[1], "1"]));
12179
12637
  const selectedMonth = parseInt(selected[1]);
12180
12638
  const selectedDay = parseInt(selected[2]);
12181
12639
  const selectedHour = parseInt(selected[3]);
@@ -12195,19 +12653,19 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12195
12653
  for (let i = from; i <= to2; i++) {
12196
12654
  column.push(i);
12197
12655
  }
12198
- const prefix2 = selected.slice(0, precisionRankRecord$1[precision2]);
12656
+ const prefix2 = selected.slice(0, precisionRankRecord$2[precision2]);
12199
12657
  const currentFilter = filter === null || filter === void 0 ? void 0 : filter[precision2];
12200
12658
  if (currentFilter && typeof currentFilter === "function") {
12201
12659
  column = column.filter((i) => currentFilter(i, {
12202
12660
  get date() {
12203
12661
  const stringArray = [...prefix2, i.toString()];
12204
- return convertStringArrayToDate$2(stringArray);
12662
+ return convertStringArrayToDate$3(stringArray);
12205
12663
  }
12206
12664
  }));
12207
12665
  }
12208
12666
  return column;
12209
12667
  };
12210
- if (rank >= precisionRankRecord$1.year) {
12668
+ if (rank >= precisionRankRecord$2.year) {
12211
12669
  const lower = minYear;
12212
12670
  const upper = maxYear;
12213
12671
  const years = generateColumn(lower, upper, "year");
@@ -12216,7 +12674,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12216
12674
  value: v2.toString()
12217
12675
  })));
12218
12676
  }
12219
- if (rank >= precisionRankRecord$1.month) {
12677
+ if (rank >= precisionRankRecord$2.month) {
12220
12678
  const lower = isInMinYear ? minMonth : 1;
12221
12679
  const upper = isInMaxYear ? maxMonth : 12;
12222
12680
  const months = generateColumn(lower, upper, "month");
@@ -12225,7 +12683,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12225
12683
  value: v2.toString()
12226
12684
  })));
12227
12685
  }
12228
- if (rank >= precisionRankRecord$1.day) {
12686
+ if (rank >= precisionRankRecord$2.day) {
12229
12687
  const lower = isInMinMonth ? minDay : 1;
12230
12688
  const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
12231
12689
  const days = generateColumn(lower, upper, "day");
@@ -12234,7 +12692,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12234
12692
  value: v2.toString()
12235
12693
  })));
12236
12694
  }
12237
- if (rank >= precisionRankRecord$1.hour) {
12695
+ if (rank >= precisionRankRecord$2.hour) {
12238
12696
  const lower = isInMinDay ? minHour : 0;
12239
12697
  const upper = isInMaxDay ? maxHour : 23;
12240
12698
  const hours = generateColumn(lower, upper, "hour");
@@ -12243,7 +12701,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12243
12701
  value: v2.toString()
12244
12702
  })));
12245
12703
  }
12246
- if (rank >= precisionRankRecord$1.minute) {
12704
+ if (rank >= precisionRankRecord$2.minute) {
12247
12705
  const lower = isInMinHour ? minMinute : 0;
12248
12706
  const upper = isInMaxHour ? maxMinute : 59;
12249
12707
  const minutes = generateColumn(lower, upper, "minute");
@@ -12252,7 +12710,7 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12252
12710
  value: v2.toString()
12253
12711
  })));
12254
12712
  }
12255
- if (rank >= precisionRankRecord$1.second) {
12713
+ if (rank >= precisionRankRecord$2.second) {
12256
12714
  const lower = isInMinMinute ? minSecond : 0;
12257
12715
  const upper = isInMaxMinute ? maxSecond : 59;
12258
12716
  const seconds = generateColumn(lower, upper, "second");
@@ -12274,12 +12732,12 @@ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel,
12274
12732
  }
12275
12733
  return ret;
12276
12734
  }
12277
- function convertDateToStringArray$2(date) {
12735
+ function convertDateToStringArray$3(date) {
12278
12736
  if (!date)
12279
12737
  return [];
12280
12738
  return [date.getFullYear().toString(), (date.getMonth() + 1).toString(), date.getDate().toString(), date.getHours().toString(), date.getMinutes().toString(), date.getSeconds().toString()];
12281
12739
  }
12282
- function convertStringArrayToDate$2(value) {
12740
+ function convertStringArrayToDate$3(value) {
12283
12741
  var _a, _b, _c, _d, _e, _f;
12284
12742
  const yearString = (_a = value[0]) !== null && _a !== void 0 ? _a : "1900";
12285
12743
  const monthString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
@@ -12289,9 +12747,104 @@ function convertStringArrayToDate$2(value) {
12289
12747
  const secondString = (_f = value[5]) !== null && _f !== void 0 ? _f : "0";
12290
12748
  return new Date(parseInt(yearString), parseInt(monthString) - 1, parseInt(dateString), parseInt(hourString), parseInt(minuteString), parseInt(secondString));
12291
12749
  }
12292
- dayjs$1.extend(isoWeek);
12293
- dayjs$1.extend(isoWeeksInYear);
12294
- dayjs$1.extend(isLeapYear);
12750
+ var quarterOfYear$1 = { exports: {} };
12751
+ (function(module, exports) {
12752
+ !function(t2, n2) {
12753
+ module.exports = n2();
12754
+ }(commonjsGlobal, function() {
12755
+ var t2 = "month", n2 = "quarter";
12756
+ return function(e2, i) {
12757
+ var r2 = i.prototype;
12758
+ r2.quarter = function(t3) {
12759
+ return this.$utils().u(t3) ? Math.ceil((this.month() + 1) / 3) : this.month(this.month() % 3 + 3 * (t3 - 1));
12760
+ };
12761
+ var s = r2.add;
12762
+ r2.add = function(e3, i2) {
12763
+ return e3 = Number(e3), this.$utils().p(i2) === n2 ? this.add(3 * e3, t2) : s.bind(this)(e3, i2);
12764
+ };
12765
+ var u2 = r2.startOf;
12766
+ r2.startOf = function(e3, i2) {
12767
+ var r3 = this.$utils(), s2 = !!r3.u(i2) || i2;
12768
+ if (r3.p(e3) === n2) {
12769
+ var o = this.quarter() - 1;
12770
+ return s2 ? this.month(3 * o).startOf(t2).startOf("day") : this.month(3 * o + 2).endOf(t2).endOf("day");
12771
+ }
12772
+ return u2.bind(this)(e3, i2);
12773
+ };
12774
+ };
12775
+ });
12776
+ })(quarterOfYear$1);
12777
+ var quarterOfYear = quarterOfYear$1.exports;
12778
+ dayjs.extend(quarterOfYear);
12779
+ const precisionRankRecord$1 = {
12780
+ year: 0,
12781
+ quarter: 1
12782
+ };
12783
+ function generateDatePickerColumns$2(selected, min, max, precision, renderLabel, filter) {
12784
+ const ret = [];
12785
+ const minYear = min.getFullYear();
12786
+ const maxYear = max.getFullYear();
12787
+ const rank = precisionRankRecord$1[precision];
12788
+ const selectedYear = parseInt(selected[0]);
12789
+ const isInMinYear = selectedYear === minYear;
12790
+ const isInMaxYear = selectedYear === maxYear;
12791
+ const minDay = dayjs(min);
12792
+ const maxDay = dayjs(max);
12793
+ const minQuarter = minDay.quarter();
12794
+ const maxQuarter = maxDay.quarter();
12795
+ const generateColumn = (from, to2, precision2) => {
12796
+ let column = [];
12797
+ for (let i = from; i <= to2; i++) {
12798
+ column.push(i);
12799
+ }
12800
+ const prefix2 = selected.slice(0, precisionRankRecord$1[precision2]);
12801
+ const currentFilter = filter === null || filter === void 0 ? void 0 : filter[precision2];
12802
+ if (currentFilter && typeof currentFilter === "function") {
12803
+ column = column.filter((i) => currentFilter(i, {
12804
+ get date() {
12805
+ const stringArray = [...prefix2, i.toString()];
12806
+ return convertStringArrayToDate$2(stringArray);
12807
+ }
12808
+ }));
12809
+ }
12810
+ return column;
12811
+ };
12812
+ if (rank >= precisionRankRecord$1.year) {
12813
+ const lower = minYear;
12814
+ const upper = maxYear;
12815
+ const years = generateColumn(lower, upper, "year");
12816
+ ret.push(years.map((v2) => ({
12817
+ label: renderLabel("year", v2),
12818
+ value: v2.toString()
12819
+ })));
12820
+ }
12821
+ if (rank >= precisionRankRecord$1.quarter) {
12822
+ const lower = isInMinYear ? minQuarter : 1;
12823
+ const upper = isInMaxYear ? maxQuarter : 4;
12824
+ const quarters = generateColumn(lower, upper, "quarter");
12825
+ ret.push(quarters.map((v2) => ({
12826
+ label: renderLabel("quarter", v2),
12827
+ value: v2.toString()
12828
+ })));
12829
+ }
12830
+ return ret;
12831
+ }
12832
+ function convertDateToStringArray$2(date) {
12833
+ if (!date)
12834
+ return [];
12835
+ const day = dayjs(date);
12836
+ return [day.year().toString(), day.quarter().toString()];
12837
+ }
12838
+ function convertStringArrayToDate$2(value) {
12839
+ var _a, _b;
12840
+ const yearString = (_a = value[0]) !== null && _a !== void 0 ? _a : "1900";
12841
+ const quarterString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
12842
+ const day = dayjs().year(parseInt(yearString)).quarter(parseInt(quarterString)).hour(0).minute(0).second(0);
12843
+ return day.toDate();
12844
+ }
12845
+ dayjs.extend(isoWeek);
12846
+ dayjs.extend(isoWeeksInYear);
12847
+ dayjs.extend(isLeapYear);
12295
12848
  const precisionRankRecord = {
12296
12849
  year: 0,
12297
12850
  week: 1,
@@ -12305,8 +12858,8 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
12305
12858
  const selectedYear = parseInt(selected[0]);
12306
12859
  const isInMinYear = selectedYear === minYear;
12307
12860
  const isInMaxYear = selectedYear === maxYear;
12308
- const minDay = dayjs$1(min);
12309
- const maxDay = dayjs$1(max);
12861
+ const minDay = dayjs(min);
12862
+ const maxDay = dayjs(max);
12310
12863
  const minWeek = minDay.isoWeek();
12311
12864
  const maxWeek = maxDay.isoWeek();
12312
12865
  const minWeekday = minDay.isoWeekday();
@@ -12314,7 +12867,7 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
12314
12867
  const selectedWeek = parseInt(selected[1]);
12315
12868
  const isInMinWeek = isInMinYear && selectedWeek === minWeek;
12316
12869
  const isInMaxWeek = isInMaxYear && selectedWeek === maxWeek;
12317
- const selectedYearWeeks = dayjs$1(`${selectedYear}-01-01`).isoWeeksInYear();
12870
+ const selectedYearWeeks = dayjs(`${selectedYear}-01-01`).isoWeeksInYear();
12318
12871
  const generateColumn = (from, to2, precision2) => {
12319
12872
  let column = [];
12320
12873
  for (let i = from; i <= to2; i++) {
@@ -12364,7 +12917,7 @@ function generateDatePickerColumns$1(selected, min, max, precision, renderLabel,
12364
12917
  function convertDateToStringArray$1(date) {
12365
12918
  if (!date)
12366
12919
  return [];
12367
- const day = dayjs$1(date);
12920
+ const day = dayjs(date);
12368
12921
  return [day.isoWeekYear().toString(), day.isoWeek().toString(), day.isoWeekday().toString()];
12369
12922
  }
12370
12923
  function convertStringArrayToDate$1(value) {
@@ -12372,7 +12925,7 @@ function convertStringArrayToDate$1(value) {
12372
12925
  const yearString = (_a = value[0]) !== null && _a !== void 0 ? _a : "1900";
12373
12926
  const weekString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
12374
12927
  const weekdayString = (_c = value[2]) !== null && _c !== void 0 ? _c : "1";
12375
- const day = dayjs$1().year(parseInt(yearString)).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
12928
+ const day = dayjs().year(parseInt(yearString)).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
12376
12929
  return day.toDate();
12377
12930
  }
12378
12931
  const precisionLengthRecord = {
@@ -12386,9 +12939,11 @@ const precisionLengthRecord = {
12386
12939
  const convertDateToStringArray = (date, precision) => {
12387
12940
  if (precision.includes("week")) {
12388
12941
  return convertDateToStringArray$1(date);
12942
+ } else if (precision.includes("quarter")) {
12943
+ return convertDateToStringArray$2(date);
12389
12944
  } else {
12390
12945
  const datePrecision = precision;
12391
- const stringArray = convertDateToStringArray$2(date);
12946
+ const stringArray = convertDateToStringArray$3(date);
12392
12947
  return stringArray.slice(0, precisionLengthRecord[datePrecision]);
12393
12948
  }
12394
12949
  };
@@ -12400,15 +12955,19 @@ const convertStringArrayToDate = (value, precision) => {
12400
12955
  }
12401
12956
  if (precision.includes("week")) {
12402
12957
  return convertStringArrayToDate$1(value);
12403
- } else {
12958
+ } else if (precision.includes("quarter")) {
12404
12959
  return convertStringArrayToDate$2(value);
12960
+ } else {
12961
+ return convertStringArrayToDate$3(value);
12405
12962
  }
12406
12963
  };
12407
12964
  const generateDatePickerColumns = (selected, min, max, precision, renderLabel, filter, tillNow) => {
12408
12965
  if (precision.startsWith("week")) {
12409
12966
  return generateDatePickerColumns$1(selected, min, max, precision, renderLabel, filter);
12967
+ } else if (precision.startsWith("quarter")) {
12968
+ return generateDatePickerColumns$2(selected, min, max, precision, renderLabel, filter);
12410
12969
  } else {
12411
- return generateDatePickerColumns$2(selected, min, max, precision, renderLabel, filter, tillNow);
12970
+ return generateDatePickerColumns$3(selected, min, max, precision, renderLabel, filter, tillNow);
12412
12971
  }
12413
12972
  };
12414
12973
  function useRenderLabel(renderLabel) {
@@ -12432,14 +12991,14 @@ function useRenderLabel(renderLabel) {
12432
12991
  }, [renderLabel]);
12433
12992
  }
12434
12993
  const thisYear = new Date().getFullYear();
12435
- const defaultProps$6 = {
12994
+ const defaultProps$8 = {
12436
12995
  min: new Date(new Date().setFullYear(thisYear - 10)),
12437
12996
  max: new Date(new Date().setFullYear(thisYear + 10)),
12438
12997
  precision: "day",
12439
12998
  defaultValue: null
12440
12999
  };
12441
13000
  const DatePicker$1 = forwardRef((p2, ref) => {
12442
- const props = mergeProps(defaultProps$6, p2);
13001
+ const props = mergeProps(defaultProps$8, p2);
12443
13002
  const {
12444
13003
  renderLabel
12445
13004
  } = props;
@@ -12554,14 +13113,14 @@ const DialogActionButton = (props) => {
12554
13113
  disabled: action.disabled
12555
13114
  }, action.text));
12556
13115
  };
12557
- const defaultProps$5 = {
13116
+ const defaultProps$7 = {
12558
13117
  actions: [],
12559
13118
  closeOnAction: false,
12560
13119
  closeOnMaskClick: false,
12561
13120
  getContainer: null
12562
13121
  };
12563
13122
  const Dialog$1 = (p2) => {
12564
- const props = mergeProps(defaultProps$5, p2);
13123
+ const props = mergeProps(defaultProps$7, p2);
12565
13124
  const element = React__default.createElement(React__default.Fragment, null, !!props.image && React__default.createElement("div", {
12566
13125
  className: cls("image-container")
12567
13126
  }, React__default.createElement(Image, {
@@ -12652,7 +13211,7 @@ function alert(p2) {
12652
13211
  }));
12653
13212
  });
12654
13213
  }
12655
- const defaultProps$4 = {
13214
+ const defaultProps$6 = {
12656
13215
  confirmText: "\u786E\u8BA4",
12657
13216
  cancelText: "\u53D6\u6D88"
12658
13217
  };
@@ -12660,7 +13219,7 @@ function confirm(p2) {
12660
13219
  const {
12661
13220
  locale
12662
13221
  } = getDefaultConfig();
12663
- const props = mergeProps(defaultProps$4, {
13222
+ const props = mergeProps(defaultProps$6, {
12664
13223
  confirmText: locale.common.confirm,
12665
13224
  cancelText: locale.common.cancel
12666
13225
  }, p2);
@@ -12743,8 +13302,8 @@ function useInputHandleKeyDown({
12743
13302
  }, [enterKeyHint]);
12744
13303
  return handleKeydown;
12745
13304
  }
12746
- const classPrefix$4 = `adm-input`;
12747
- const defaultProps$3 = {
13305
+ const classPrefix$5 = `adm-input`;
13306
+ const defaultProps$5 = {
12748
13307
  defaultValue: "",
12749
13308
  clearIcon: React__default.createElement(CloseCircleFill, null),
12750
13309
  onlyShowClearWhenFocus: true
@@ -12754,7 +13313,7 @@ const Input$1 = forwardRef((props, ref) => {
12754
13313
  locale,
12755
13314
  input: componentConfig = {}
12756
13315
  } = useConfig();
12757
- const mergedProps = mergeProps(defaultProps$3, componentConfig, props);
13316
+ const mergedProps = mergeProps(defaultProps$5, componentConfig, props);
12758
13317
  const [value, setValue] = usePropsValue(mergedProps);
12759
13318
  const [hasFocus, setHasFocus] = useState(false);
12760
13319
  const compositionStartRef = useRef(false);
@@ -12803,10 +13362,10 @@ const Input$1 = forwardRef((props, ref) => {
12803
13362
  }
12804
13363
  })();
12805
13364
  return withNativeProps(mergedProps, React__default.createElement("div", {
12806
- className: classNames(`${classPrefix$4}`, mergedProps.disabled && `${classPrefix$4}-disabled`)
13365
+ className: classNames(`${classPrefix$5}`, mergedProps.disabled && `${classPrefix$5}-disabled`)
12807
13366
  }, React__default.createElement("input", {
12808
13367
  ref: nativeInputRef,
12809
- className: `${classPrefix$4}-element`,
13368
+ className: `${classPrefix$5}-element`,
12810
13369
  value,
12811
13370
  onChange: (e2) => {
12812
13371
  setValue(e2.target.value);
@@ -12822,6 +13381,7 @@ const Input$1 = forwardRef((props, ref) => {
12822
13381
  checkValue();
12823
13382
  (_a = mergedProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(mergedProps, e2);
12824
13383
  },
13384
+ onPaste: mergedProps.onPaste,
12825
13385
  id: mergedProps.id,
12826
13386
  placeholder: mergedProps.placeholder,
12827
13387
  disabled: mergedProps.disabled,
@@ -12859,7 +13419,7 @@ const Input$1 = forwardRef((props, ref) => {
12859
13419
  "aria-valuemin": mergedProps["aria-valuemin"],
12860
13420
  "aria-label": mergedProps["aria-label"]
12861
13421
  }), shouldShowClear && React__default.createElement("div", {
12862
- className: `${classPrefix$4}-clear`,
13422
+ className: `${classPrefix$5}-clear`,
12863
13423
  onMouseDown: (e2) => {
12864
13424
  e2.preventDefault();
12865
13425
  },
@@ -12877,7 +13437,7 @@ const Input$1 = forwardRef((props, ref) => {
12877
13437
  });
12878
13438
  var Input = Input$1;
12879
13439
  var navBar = "";
12880
- const classPrefix$3 = `adm-nav-bar`;
13440
+ const classPrefix$4 = `adm-nav-bar`;
12881
13441
  const defaultBackIcon = React__default.createElement(LeftOutline, null);
12882
13442
  const NavBar$1 = (props) => {
12883
13443
  const {
@@ -12892,33 +13452,33 @@ const NavBar$1 = (props) => {
12892
13452
  const mergedDefaultBackIcon = componentConfig.backIcon || defaultBackIcon;
12893
13453
  const mergedBackIcon = mergeProp(defaultBackIcon, componentConfig.backIcon, backArrow === true ? mergedDefaultBackIcon : backArrow, backIcon === true ? mergedDefaultBackIcon : backIcon);
12894
13454
  return withNativeProps(mergedProps, React__default.createElement("div", {
12895
- className: classNames(classPrefix$3)
13455
+ className: classNames(classPrefix$4)
12896
13456
  }, React__default.createElement("div", {
12897
- className: `${classPrefix$3}-left`,
13457
+ className: `${classPrefix$4}-left`,
12898
13458
  role: "button"
12899
13459
  }, back !== null && React__default.createElement("div", {
12900
- className: `${classPrefix$3}-back`,
13460
+ className: `${classPrefix$4}-back`,
12901
13461
  onClick: mergedProps.onBack
12902
13462
  }, mergedBackIcon && React__default.createElement("span", {
12903
- className: `${classPrefix$3}-back-arrow`
13463
+ className: `${classPrefix$4}-back-arrow`
12904
13464
  }, mergedBackIcon), React__default.createElement("span", {
12905
13465
  "aria-hidden": "true"
12906
13466
  }, back)), mergedProps.left), React__default.createElement("div", {
12907
- className: `${classPrefix$3}-title`
13467
+ className: `${classPrefix$4}-title`
12908
13468
  }, mergedProps.children), React__default.createElement("div", {
12909
- className: `${classPrefix$3}-right`
13469
+ className: `${classPrefix$4}-right`
12910
13470
  }, mergedProps.right)));
12911
13471
  };
12912
13472
  var NavBar = NavBar$1;
12913
13473
  var progressBar = "";
12914
- const classPrefix$2 = `adm-progress-bar`;
12915
- const defaultProps$2 = {
13474
+ const classPrefix$3 = `adm-progress-bar`;
13475
+ const defaultProps$4 = {
12916
13476
  percent: 0,
12917
13477
  rounded: true,
12918
13478
  text: false
12919
13479
  };
12920
13480
  const ProgressBar$1 = (p2) => {
12921
- const props = mergeProps(defaultProps$2, p2);
13481
+ const props = mergeProps(defaultProps$4, p2);
12922
13482
  const fillStyle = {
12923
13483
  width: `${props.percent}%`
12924
13484
  };
@@ -12932,17 +13492,118 @@ const ProgressBar$1 = (p2) => {
12932
13492
  return props.text;
12933
13493
  }();
12934
13494
  return withNativeProps(props, React__default.createElement("div", {
12935
- className: classNames(classPrefix$2, props.rounded && `${classPrefix$2}-rounded`)
13495
+ className: classNames(classPrefix$3, props.rounded && `${classPrefix$3}-rounded`)
12936
13496
  }, React__default.createElement("div", {
12937
- className: `${classPrefix$2}-trail`
13497
+ className: `${classPrefix$3}-trail`
12938
13498
  }, React__default.createElement("div", {
12939
- className: `${classPrefix$2}-fill`,
13499
+ className: `${classPrefix$3}-fill`,
12940
13500
  style: fillStyle
12941
13501
  })), isNodeWithContent(textElement) && React__default.createElement("div", {
12942
- className: `${classPrefix$2}-text`
13502
+ className: `${classPrefix$3}-text`
12943
13503
  }, textElement)));
12944
13504
  };
12945
13505
  var ProgressBar = ProgressBar$1;
13506
+ var radio = "";
13507
+ const RadioGroupContext = createContext(null);
13508
+ const defaultProps$3 = {
13509
+ disabled: false,
13510
+ defaultValue: null
13511
+ };
13512
+ const Group = (p2) => {
13513
+ const props = mergeProps(defaultProps$3, p2);
13514
+ const [value, setValue] = usePropsValue({
13515
+ value: props.value,
13516
+ defaultValue: props.defaultValue,
13517
+ onChange: (v2) => {
13518
+ var _a;
13519
+ if (v2 === null)
13520
+ return;
13521
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v2);
13522
+ }
13523
+ });
13524
+ return React__default.createElement(
13525
+ RadioGroupContext.Provider,
13526
+ {
13527
+ value: {
13528
+ value: value === null ? [] : [value],
13529
+ check: (v2) => {
13530
+ setValue(v2);
13531
+ },
13532
+ uncheck: () => {
13533
+ },
13534
+ disabled: props.disabled
13535
+ }
13536
+ },
13537
+ props.children
13538
+ );
13539
+ };
13540
+ const classPrefix$2 = `adm-radio`;
13541
+ const defaultProps$2 = {
13542
+ defaultChecked: false
13543
+ };
13544
+ const Radio = (p2) => {
13545
+ const props = mergeProps(defaultProps$2, p2);
13546
+ const groupContext = useContext(RadioGroupContext);
13547
+ let [checked, setChecked] = usePropsValue({
13548
+ value: props.checked,
13549
+ defaultValue: props.defaultChecked,
13550
+ onChange: props.onChange
13551
+ });
13552
+ let disabled = props.disabled;
13553
+ const {
13554
+ value
13555
+ } = props;
13556
+ if (groupContext && value !== void 0) {
13557
+ if (isDev) {
13558
+ if (p2.checked !== void 0) {
13559
+ devWarning("Radio", "When used within `Radio.Group`, the `checked` prop of `Radio` will not work.");
13560
+ }
13561
+ if (p2.defaultChecked !== void 0) {
13562
+ devWarning("Radio", "When used within `Radio.Group`, the `defaultChecked` prop of `Radio` will not work.");
13563
+ }
13564
+ }
13565
+ checked = groupContext.value.includes(value);
13566
+ setChecked = (innerChecked) => {
13567
+ var _a;
13568
+ if (innerChecked) {
13569
+ groupContext.check(value);
13570
+ } else {
13571
+ groupContext.uncheck(value);
13572
+ }
13573
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, innerChecked);
13574
+ };
13575
+ disabled = disabled || groupContext.disabled;
13576
+ }
13577
+ const renderIcon = () => {
13578
+ if (props.icon) {
13579
+ return React__default.createElement("div", {
13580
+ className: `${classPrefix$2}-custom-icon`
13581
+ }, props.icon(checked));
13582
+ }
13583
+ return React__default.createElement("div", {
13584
+ className: `${classPrefix$2}-icon`
13585
+ }, checked && React__default.createElement(CheckIcon, null));
13586
+ };
13587
+ return withNativeProps(props, React__default.createElement("label", {
13588
+ onClick: props.onClick,
13589
+ className: classNames(classPrefix$2, {
13590
+ [`${classPrefix$2}-checked`]: checked,
13591
+ [`${classPrefix$2}-disabled`]: disabled,
13592
+ [`${classPrefix$2}-block`]: props.block
13593
+ })
13594
+ }, React__default.createElement(NativeInput, {
13595
+ type: "radio",
13596
+ checked,
13597
+ onChange: setChecked,
13598
+ disabled,
13599
+ id: props.id
13600
+ }), renderIcon(), props.children && React__default.createElement("div", {
13601
+ className: `${classPrefix$2}-content`
13602
+ }, props.children)));
13603
+ };
13604
+ var index$o = attachPropertiesToComponent(Radio, {
13605
+ Group
13606
+ });
12946
13607
  var searchBar = "";
12947
13608
  const classPrefix$1 = `adm-search-bar`;
12948
13609
  const defaultProps$1 = {
@@ -13024,6 +13685,7 @@ const SearchBar$1 = forwardRef((props, ref) => {
13024
13685
  value,
13025
13686
  onChange: setValue,
13026
13687
  maxLength: mergedProps.maxLength,
13688
+ autoFocus: mergedProps.autoFocus,
13027
13689
  placeholder: mergedProps.placeholder,
13028
13690
  clearable: mergedProps.clearable,
13029
13691
  onlyShowClearWhenFocus: mergedProps.onlyShowClearWhenFocus,
@@ -13617,6 +14279,16 @@ function InnerStepper(p2, ref) {
13617
14279
  }
13618
14280
  const Stepper$1 = forwardRef(InnerStepper);
13619
14281
  var Stepper = Stepper$1;
14282
+ function useFieldV2(defaultData, validate) {
14283
+ const [, forceUpdate] = React__default.useState({});
14284
+ const [filed] = React__default.useState(() => {
14285
+ return new Filed(defaultData, validate);
14286
+ });
14287
+ React__default.useEffect(() => {
14288
+ filed.on("$updated", () => forceUpdate({}));
14289
+ }, []);
14290
+ return filed;
14291
+ }
13620
14292
  var index$n = "";
13621
14293
  function TagV2(props) {
13622
14294
  const { className = "", type, fontBold, color, backgroundColor } = props;
@@ -13825,7 +14497,6 @@ function ScanV2(props) {
13825
14497
  }, [onChange]);
13826
14498
  React__default.useEffect(() => {
13827
14499
  var _a;
13828
- console.log(`eee===`);
13829
14500
  inputRef.current.focus();
13830
14501
  (_a = inputRef.current) == null ? void 0 : _a.setAttribute("readonly", true);
13831
14502
  setTimeout(() => {
@@ -13928,6 +14599,7 @@ const CardType = {
13928
14599
  }, headerExtra == null ? void 0 : headerExtra.desc), /* @__PURE__ */ React__default.createElement("div", {
13929
14600
  className: "header-tag"
13930
14601
  }, (headerExtra == null ? void 0 : headerExtra.tags) && ((_b = (_a = headerExtra.tags) == null ? void 0 : _a.map) == null ? void 0 : _b.call(_a, (tag) => /* @__PURE__ */ React__default.createElement(TagV2, {
14602
+ key: tag == null ? void 0 : tag.text,
13931
14603
  type: tag == null ? void 0 : tag.type,
13932
14604
  fontBold: true,
13933
14605
  backgroundColor: tag == null ? void 0 : tag.backgroundColor
@@ -14011,9 +14683,9 @@ const CardType = {
14011
14683
  className: "content-tip"
14012
14684
  }, /* @__PURE__ */ React__default.createElement("div", {
14013
14685
  className: "content"
14014
- }, /* @__PURE__ */ React__default.createElement("div", {
14686
+ }, (content == null ? void 0 : content.label) ? /* @__PURE__ */ React__default.createElement("div", {
14015
14687
  className: "label"
14016
- }, content == null ? void 0 : content.label), /* @__PURE__ */ React__default.createElement("div", {
14688
+ }, content == null ? void 0 : content.label) : null, /* @__PURE__ */ React__default.createElement("div", {
14017
14689
  className: "value"
14018
14690
  }, content == null ? void 0 : content.value)), (content == null ? void 0 : content.tag) && (((_a = content.tag) == null ? void 0 : _a.type) || ((_b = content.tag) == null ? void 0 : _b.text) ? /* @__PURE__ */ React__default.createElement("div", {
14019
14691
  className: `tag ${((_c = content.tag) == null ? void 0 : _c.type) || "time"}`
@@ -14348,6 +15020,7 @@ function InputV2(props) {
14348
15020
  return /* @__PURE__ */ React__default.createElement("div", {
14349
15021
  className: `op-pda-input-v2 ${hasBorder ? "has-border" : ""}`
14350
15022
  }, /* @__PURE__ */ React__default.createElement(Input, {
15023
+ placeholder: "\u8BF7\u8F93\u5165",
14351
15024
  ...props
14352
15025
  }));
14353
15026
  }
@@ -14393,6 +15066,33 @@ const ROUND_MAP = /* @__PURE__ */ new Map([
14393
15066
  ["error", error],
14394
15067
  ["warning", warning]
14395
15068
  ]);
15069
+ const ToastForPages = ({ duration, ...restProps }) => {
15070
+ const [visible, setVisible] = React__default.useState(true);
15071
+ React__default.useEffect(() => {
15072
+ const timeId = setTimeout(() => {
15073
+ setVisible(false);
15074
+ }, duration || 5e3);
15075
+ return () => clearTimeout(timeId);
15076
+ }, []);
15077
+ return visible && /* @__PURE__ */ React__default.createElement(Toast, {
15078
+ data: restProps
15079
+ });
15080
+ };
15081
+ ToastForPages.toast = (props) => {
15082
+ const { title = "", message = "" } = props;
15083
+ const _props = { ...props, title, message };
15084
+ let toastRoot = document.getElementById("op-pda-active-toast-for-pages-root");
15085
+ if (!toastRoot) {
15086
+ toastRoot = document.createElement("div");
15087
+ toastRoot.id = "op-pda-active-toast-for-pages-root";
15088
+ document.body.appendChild(toastRoot);
15089
+ }
15090
+ ReactDOM__default.render(/* @__PURE__ */ React__default.createElement(ToastForPages, {
15091
+ key: Math.random(),
15092
+ ..._props,
15093
+ hasNext: false
15094
+ }), toastRoot);
15095
+ };
14396
15096
  var index$3 = "";
14397
15097
  function Alert(props) {
14398
15098
  const { data, onNext } = props;
@@ -14536,6 +15236,7 @@ function Debug() {
14536
15236
  }
14537
15237
  const PageFlowSystemPagesV2 = {
14538
15238
  Toast,
15239
+ ToastForPages,
14539
15240
  Alert,
14540
15241
  Confirm,
14541
15242
  Prompt,
@@ -14545,297 +15246,6 @@ const PageFlowSystemPagesV2 = {
14545
15246
  PlaySound,
14546
15247
  Debug
14547
15248
  };
14548
- var dayjs_min = { exports: {} };
14549
- (function(module, exports) {
14550
- !function(t2, e2) {
14551
- module.exports = e2();
14552
- }(commonjsGlobal, function() {
14553
- var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i = "second", s = "minute", u2 = "hour", a = "day", o = "week", c6 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
14554
- var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
14555
- return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
14556
- } }, m2 = function(t3, e3, n3) {
14557
- var r3 = String(t3);
14558
- return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
14559
- }, v2 = { s: m2, z: function(t3) {
14560
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i2 = n3 % 60;
14561
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i2, 2, "0");
14562
- }, m: function t3(e3, n3) {
14563
- if (e3.date() < n3.date())
14564
- return -t3(n3, e3);
14565
- var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i2 = e3.clone().add(r3, c6), s2 = n3 - i2 < 0, u3 = e3.clone().add(r3 + (s2 ? -1 : 1), c6);
14566
- return +(-(r3 + (n3 - i2) / (s2 ? i2 - u3 : u3 - i2)) || 0);
14567
- }, a: function(t3) {
14568
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
14569
- }, p: function(t3) {
14570
- return { M: c6, y: h2, w: o, d: a, D: d2, h: u2, m: s, s: i, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
14571
- }, u: function(t3) {
14572
- return void 0 === t3;
14573
- } }, g2 = "en", D = {};
14574
- D[g2] = M;
14575
- var p2 = "$isDayjsObject", S = function(t3) {
14576
- return t3 instanceof _ || !(!t3 || !t3[p2]);
14577
- }, w = function t3(e3, n3, r3) {
14578
- var i2;
14579
- if (!e3)
14580
- return g2;
14581
- if ("string" == typeof e3) {
14582
- var s2 = e3.toLowerCase();
14583
- D[s2] && (i2 = s2), n3 && (D[s2] = n3, i2 = s2);
14584
- var u3 = e3.split("-");
14585
- if (!i2 && u3.length > 1)
14586
- return t3(u3[0]);
14587
- } else {
14588
- var a2 = e3.name;
14589
- D[a2] = e3, i2 = a2;
14590
- }
14591
- return !r3 && i2 && (g2 = i2), i2 || !r3 && g2;
14592
- }, O = function(t3, e3) {
14593
- if (S(t3))
14594
- return t3.clone();
14595
- var n3 = "object" == typeof e3 ? e3 : {};
14596
- return n3.date = t3, n3.args = arguments, new _(n3);
14597
- }, b2 = v2;
14598
- b2.l = w, b2.i = S, b2.w = function(t3, e3) {
14599
- return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
14600
- };
14601
- var _ = function() {
14602
- function M2(t3) {
14603
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
14604
- }
14605
- var m3 = M2.prototype;
14606
- return m3.parse = function(t3) {
14607
- this.$d = function(t4) {
14608
- var e3 = t4.date, n3 = t4.utc;
14609
- if (null === e3)
14610
- return new Date(NaN);
14611
- if (b2.u(e3))
14612
- return new Date();
14613
- if (e3 instanceof Date)
14614
- return new Date(e3);
14615
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
14616
- var r3 = e3.match($);
14617
- if (r3) {
14618
- var i2 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
14619
- return n3 ? new Date(Date.UTC(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i2, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
14620
- }
14621
- }
14622
- return new Date(e3);
14623
- }(t3), this.init();
14624
- }, m3.init = function() {
14625
- var t3 = this.$d;
14626
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
14627
- }, m3.$utils = function() {
14628
- return b2;
14629
- }, m3.isValid = function() {
14630
- return !(this.$d.toString() === l2);
14631
- }, m3.isSame = function(t3, e3) {
14632
- var n3 = O(t3);
14633
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
14634
- }, m3.isAfter = function(t3, e3) {
14635
- return O(t3) < this.startOf(e3);
14636
- }, m3.isBefore = function(t3, e3) {
14637
- return this.endOf(e3) < O(t3);
14638
- }, m3.$g = function(t3, e3, n3) {
14639
- return b2.u(t3) ? this[e3] : this.set(n3, t3);
14640
- }, m3.unix = function() {
14641
- return Math.floor(this.valueOf() / 1e3);
14642
- }, m3.valueOf = function() {
14643
- return this.$d.getTime();
14644
- }, m3.startOf = function(t3, e3) {
14645
- var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
14646
- var i2 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
14647
- return r3 ? i2 : i2.endOf(a);
14648
- }, $2 = function(t4, e4) {
14649
- return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
14650
- }, y2 = this.$W, M3 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
14651
- switch (f3) {
14652
- case h2:
14653
- return r3 ? l3(1, 0) : l3(31, 11);
14654
- case c6:
14655
- return r3 ? l3(1, M3) : l3(0, M3 + 1);
14656
- case o:
14657
- var g3 = this.$locale().weekStart || 0, D2 = (y2 < g3 ? y2 + 7 : y2) - g3;
14658
- return l3(r3 ? m4 - D2 : m4 + (6 - D2), M3);
14659
- case a:
14660
- case d2:
14661
- return $2(v3 + "Hours", 0);
14662
- case u2:
14663
- return $2(v3 + "Minutes", 1);
14664
- case s:
14665
- return $2(v3 + "Seconds", 2);
14666
- case i:
14667
- return $2(v3 + "Milliseconds", 3);
14668
- default:
14669
- return this.clone();
14670
- }
14671
- }, m3.endOf = function(t3) {
14672
- return this.startOf(t3, false);
14673
- }, m3.$set = function(t3, e3) {
14674
- var n3, o2 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a] = f3 + "Date", n3[d2] = f3 + "Date", n3[c6] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s] = f3 + "Minutes", n3[i] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
14675
- if (o2 === c6 || o2 === h2) {
14676
- var y2 = this.clone().set(d2, 1);
14677
- y2.$d[l3]($2), y2.init(), this.$d = y2.set(d2, Math.min(this.$D, y2.daysInMonth())).$d;
14678
- } else
14679
- l3 && this.$d[l3]($2);
14680
- return this.init(), this;
14681
- }, m3.set = function(t3, e3) {
14682
- return this.clone().$set(t3, e3);
14683
- }, m3.get = function(t3) {
14684
- return this[b2.p(t3)]();
14685
- }, m3.add = function(r3, f3) {
14686
- var d3, l3 = this;
14687
- r3 = Number(r3);
14688
- var $2 = b2.p(f3), y2 = function(t3) {
14689
- var e3 = O(l3);
14690
- return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3);
14691
- };
14692
- if ($2 === c6)
14693
- return this.set(c6, this.$M + r3);
14694
- if ($2 === h2)
14695
- return this.set(h2, this.$y + r3);
14696
- if ($2 === a)
14697
- return y2(1);
14698
- if ($2 === o)
14699
- return y2(7);
14700
- var M3 = (d3 = {}, d3[s] = e2, d3[u2] = n2, d3[i] = t2, d3)[$2] || 1, m4 = this.$d.getTime() + r3 * M3;
14701
- return b2.w(m4, this);
14702
- }, m3.subtract = function(t3, e3) {
14703
- return this.add(-1 * t3, e3);
14704
- }, m3.format = function(t3) {
14705
- var e3 = this, n3 = this.$locale();
14706
- if (!this.isValid())
14707
- return n3.invalidDate || l2;
14708
- var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s2 = this.$H, u3 = this.$m, a2 = this.$M, o2 = n3.weekdays, c7 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i3, s3) {
14709
- return t4 && (t4[n4] || t4(e3, r3)) || i3[n4].slice(0, s3);
14710
- }, d3 = function(t4) {
14711
- return b2.s(s2 % 12 || 12, t4, "0");
14712
- }, $2 = f3 || function(t4, e4, n4) {
14713
- var r4 = t4 < 12 ? "AM" : "PM";
14714
- return n4 ? r4.toLowerCase() : r4;
14715
- };
14716
- return r3.replace(y, function(t4, r4) {
14717
- return r4 || function(t5) {
14718
- switch (t5) {
14719
- case "YY":
14720
- return String(e3.$y).slice(-2);
14721
- case "YYYY":
14722
- return b2.s(e3.$y, 4, "0");
14723
- case "M":
14724
- return a2 + 1;
14725
- case "MM":
14726
- return b2.s(a2 + 1, 2, "0");
14727
- case "MMM":
14728
- return h3(n3.monthsShort, a2, c7, 3);
14729
- case "MMMM":
14730
- return h3(c7, a2);
14731
- case "D":
14732
- return e3.$D;
14733
- case "DD":
14734
- return b2.s(e3.$D, 2, "0");
14735
- case "d":
14736
- return String(e3.$W);
14737
- case "dd":
14738
- return h3(n3.weekdaysMin, e3.$W, o2, 2);
14739
- case "ddd":
14740
- return h3(n3.weekdaysShort, e3.$W, o2, 3);
14741
- case "dddd":
14742
- return o2[e3.$W];
14743
- case "H":
14744
- return String(s2);
14745
- case "HH":
14746
- return b2.s(s2, 2, "0");
14747
- case "h":
14748
- return d3(1);
14749
- case "hh":
14750
- return d3(2);
14751
- case "a":
14752
- return $2(s2, u3, true);
14753
- case "A":
14754
- return $2(s2, u3, false);
14755
- case "m":
14756
- return String(u3);
14757
- case "mm":
14758
- return b2.s(u3, 2, "0");
14759
- case "s":
14760
- return String(e3.$s);
14761
- case "ss":
14762
- return b2.s(e3.$s, 2, "0");
14763
- case "SSS":
14764
- return b2.s(e3.$ms, 3, "0");
14765
- case "Z":
14766
- return i2;
14767
- }
14768
- return null;
14769
- }(t4) || i2.replace(":", "");
14770
- });
14771
- }, m3.utcOffset = function() {
14772
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
14773
- }, m3.diff = function(r3, d3, l3) {
14774
- var $2, y2 = this, M3 = b2.p(d3), m4 = O(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D2 = function() {
14775
- return b2.m(y2, m4);
14776
- };
14777
- switch (M3) {
14778
- case h2:
14779
- $2 = D2() / 12;
14780
- break;
14781
- case c6:
14782
- $2 = D2();
14783
- break;
14784
- case f2:
14785
- $2 = D2() / 3;
14786
- break;
14787
- case o:
14788
- $2 = (g3 - v3) / 6048e5;
14789
- break;
14790
- case a:
14791
- $2 = (g3 - v3) / 864e5;
14792
- break;
14793
- case u2:
14794
- $2 = g3 / n2;
14795
- break;
14796
- case s:
14797
- $2 = g3 / e2;
14798
- break;
14799
- case i:
14800
- $2 = g3 / t2;
14801
- break;
14802
- default:
14803
- $2 = g3;
14804
- }
14805
- return l3 ? $2 : b2.a($2);
14806
- }, m3.daysInMonth = function() {
14807
- return this.endOf(c6).$D;
14808
- }, m3.$locale = function() {
14809
- return D[this.$L];
14810
- }, m3.locale = function(t3, e3) {
14811
- if (!t3)
14812
- return this.$L;
14813
- var n3 = this.clone(), r3 = w(t3, e3, true);
14814
- return r3 && (n3.$L = r3), n3;
14815
- }, m3.clone = function() {
14816
- return b2.w(this.$d, this);
14817
- }, m3.toDate = function() {
14818
- return new Date(this.valueOf());
14819
- }, m3.toJSON = function() {
14820
- return this.isValid() ? this.toISOString() : null;
14821
- }, m3.toISOString = function() {
14822
- return this.$d.toISOString();
14823
- }, m3.toString = function() {
14824
- return this.$d.toUTCString();
14825
- }, M2;
14826
- }(), k2 = _.prototype;
14827
- return O.prototype = k2, [["$ms", r2], ["$s", i], ["$m", s], ["$H", u2], ["$W", a], ["$M", c6], ["$y", h2], ["$D", d2]].forEach(function(t3) {
14828
- k2[t3[1]] = function(e3) {
14829
- return this.$g(e3, t3[0], t3[1]);
14830
- };
14831
- }), O.extend = function(t3, e3) {
14832
- return t3.$i || (t3(e3, _, O), t3.$i = true), O;
14833
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
14834
- return O(1e3 * t3);
14835
- }, O.en = D[g2], O.Ls = D, O.p = {}, O;
14836
- });
14837
- })(dayjs_min);
14838
- var dayjs = dayjs_min.exports;
14839
15249
  var index = "";
14840
15250
  function DatePickerV2(props) {
14841
15251
  const {
@@ -14889,4 +15299,4 @@ function getFormatDate(val, format, initialValue) {
14889
15299
  return returnValue;
14890
15300
  }
14891
15301
  const ListItem = PdaListItem;
14892
- export { ActionSheet, index$D as AppList, BaseLayout, Button$2 as Button, ButtonV2, List$2 as Card, CardV2, Confirm$1 as Confirm, index$p as DatePicker, DatePickerV2, PdaDistanceCard as DistanceCard, PdaFinishCard as FinishCard, FinishCardV2, FooterV2, index$_ as Header, HeaderV2, IllustrationV2, ImageUploader, ImageUploaderV2, ImageViewer, InfiniteScroll, PdaInfoCard$2 as InfoCard, index$s as InputItem, InputV2, Keyborard, LatticeMouth, LatticeMouthV2, LayoutV2, List$3 as List, ListItem, List as ListV2, Loading, MenuListV2, NumberPickerV2, Overlay$1 as Overlay, PDA_IMAGE_PATH, index$R as PageFlowSystemPages, PageFlowSystemPagesV2, index$u as Picker, PopupV2, Presentation, ProgressBar as ProgressBarV2, ScanV2, SelectCard, SelectV2, SimpleCard, SimpleCardBlock, PdaInfoCard as Steps, SubCard, TableV2, Tag, TagV2, PdaListItem as TaskCard, TaskCardV2, TaskInputV2, PdaTitle as Title, Toast$1 as Toast, WakeKeyborard, index$r as useFiled, index$r as useFiledV2 };
15302
+ export { ActionSheet, index$E as AppList, Badge as BadgeV2, BaseLayout, Button$2 as Button, ButtonV2, List$2 as Card, CardV2, Confirm$1 as Confirm, index$q as DatePicker, DatePickerV2, PdaDistanceCard as DistanceCard, PdaFinishCard as FinishCard, FinishCardV2, FooterV2, index$$ as Header, HeaderV2, IllustrationV2, ImageUploader, ImageUploaderV2, ImageViewer, InfiniteScroll, PdaInfoCard$2 as InfoCard, index$t as InputItem, InputV2, Keyborard, LatticeMouth, LatticeMouthV2, LayoutV2, List$3 as List, ListItem, List as ListV2, Loading, MenuListV2, NumberPickerV2, Overlay$1 as Overlay, PDA_IMAGE_PATH, index$S as PageFlowSystemPages, PageFlowSystemPagesV2, index$v as Picker, PopupV2, Presentation, ProgressBar as ProgressBarV2, index$o as RadioV2, ScanV2, SelectCard, SelectV2, SimpleCard, SimpleCardBlock, PdaInfoCard as Steps, SubCard, TableV2, Tabs as TabsV2, Tag, TagV2, PdaListItem as TaskCard, TaskCardV2, TaskInputV2, PdaTitle as Title, Toast$1 as Toast, WakeKeyborard, index$s as useFiled, useFieldV2 as useFiledV2 };