@cniot/android-pda-components 2.0.0-beta.20 → 2.0.0-beta.22
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/README.md +6 -0
- package/es/index.cjs.js +10 -10
- package/es/index.es.js +45 -44
- package/package.json +1 -1
package/es/index.es.js
CHANGED
|
@@ -2771,7 +2771,7 @@ var _classnames_2_5_1_classnames = { exports: {} };
|
|
|
2771
2771
|
})();
|
|
2772
2772
|
})(_classnames_2_5_1_classnames);
|
|
2773
2773
|
var classNames = _classnames_2_5_1_classnames.exports;
|
|
2774
|
-
var index$
|
|
2774
|
+
var index$14 = "";
|
|
2775
2775
|
function getTypeClass$2(type) {
|
|
2776
2776
|
return {
|
|
2777
2777
|
center: "op-overlay center",
|
|
@@ -2807,7 +2807,7 @@ function Overlay$1(props) {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
}, props.children) : null;
|
|
2809
2809
|
}
|
|
2810
|
-
var index$
|
|
2810
|
+
var index$13 = "";
|
|
2811
2811
|
const blankFunc$6 = () => {
|
|
2812
2812
|
};
|
|
2813
2813
|
class PdaTitle extends React__default.Component {
|
|
@@ -2986,7 +2986,7 @@ var _keycode_2_2_1_keycode = { exports: {} };
|
|
|
2986
2986
|
}
|
|
2987
2987
|
})(_keycode_2_2_1_keycode, _keycode_2_2_1_keycode.exports);
|
|
2988
2988
|
var keycode = _keycode_2_2_1_keycode.exports;
|
|
2989
|
-
var index$
|
|
2989
|
+
var index$12 = "";
|
|
2990
2990
|
function Button$2(props) {
|
|
2991
2991
|
const { type = "default", onClick, className = "", tabIndex = 1, dataClick = "" } = props;
|
|
2992
2992
|
let opt = {};
|
|
@@ -3009,7 +3009,7 @@ Button$2.Group = ButtonGroup$1;
|
|
|
3009
3009
|
const SPECIAL_KEY_MAP = ["fn"];
|
|
3010
3010
|
const empty$3 = () => {
|
|
3011
3011
|
};
|
|
3012
|
-
function index$
|
|
3012
|
+
function index$11(props) {
|
|
3013
3013
|
const {
|
|
3014
3014
|
onBack,
|
|
3015
3015
|
icon,
|
|
@@ -3215,7 +3215,7 @@ function onAddEventListerScanBarcode$1(fn) {
|
|
|
3215
3215
|
document.removeEventListener("BarcodeScan", callback);
|
|
3216
3216
|
};
|
|
3217
3217
|
}
|
|
3218
|
-
var index
|
|
3218
|
+
var index$10 = "";
|
|
3219
3219
|
class PdaInfoCard$2 extends React__default.Component {
|
|
3220
3220
|
constructor(props) {
|
|
3221
3221
|
super(props);
|
|
@@ -3294,7 +3294,7 @@ class PdaInfoCard$2 extends React__default.Component {
|
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
PdaInfoCard$2.IMAGE_1 = `${window.PDA_IMAGE_PATH}O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png`;
|
|
3297
|
-
var index
|
|
3297
|
+
var index$$ = "";
|
|
3298
3298
|
class PdaListItem extends React__default.Component {
|
|
3299
3299
|
constructor(props) {
|
|
3300
3300
|
super(props);
|
|
@@ -3340,7 +3340,7 @@ class PdaListItem extends React__default.Component {
|
|
|
3340
3340
|
}));
|
|
3341
3341
|
}
|
|
3342
3342
|
}
|
|
3343
|
-
var index$
|
|
3343
|
+
var index$_ = "";
|
|
3344
3344
|
function empty$2() {
|
|
3345
3345
|
}
|
|
3346
3346
|
function Confirm$1(props) {
|
|
@@ -3385,7 +3385,7 @@ function Confirm$1(props) {
|
|
|
3385
3385
|
dataClick: item.dataClick
|
|
3386
3386
|
}, item.label))) : null));
|
|
3387
3387
|
}
|
|
3388
|
-
var index$
|
|
3388
|
+
var index$Z = "";
|
|
3389
3389
|
function WindVaneLog(param) {
|
|
3390
3390
|
const params = {
|
|
3391
3391
|
domain: "logger",
|
|
@@ -3654,7 +3654,7 @@ function confirm$1(props) {
|
|
|
3654
3654
|
onClick: onNext
|
|
3655
3655
|
}));
|
|
3656
3656
|
}
|
|
3657
|
-
var index$
|
|
3657
|
+
var index$Y = "";
|
|
3658
3658
|
function getTypeClass(type) {
|
|
3659
3659
|
return {
|
|
3660
3660
|
center: "op-overlay center",
|
|
@@ -3690,7 +3690,7 @@ function Overlay(props) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
}, props.children) : null;
|
|
3692
3692
|
}
|
|
3693
|
-
var index$
|
|
3693
|
+
var index$X = "";
|
|
3694
3694
|
function Prompt$1(props) {
|
|
3695
3695
|
const inputRef = React__default.useRef();
|
|
3696
3696
|
const { data = {}, onNext } = props;
|
|
@@ -3774,7 +3774,7 @@ function splitMessage(message) {
|
|
|
3774
3774
|
var msg = String(message).split("by Error:");
|
|
3775
3775
|
return msg[1] || msg[0];
|
|
3776
3776
|
}
|
|
3777
|
-
var index$
|
|
3777
|
+
var index$W = "";
|
|
3778
3778
|
function NotFound(props) {
|
|
3779
3779
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
3780
3780
|
style: { padding: "20%" }
|
|
@@ -3782,8 +3782,8 @@ function NotFound(props) {
|
|
|
3782
3782
|
style: { fontSize: "60%" }
|
|
3783
3783
|
}, "Not found")), /* @__PURE__ */ React__default.createElement("div", null, props.action.getPage()));
|
|
3784
3784
|
}
|
|
3785
|
-
var index$
|
|
3786
|
-
function Loading$
|
|
3785
|
+
var index$V = "";
|
|
3786
|
+
function Loading$1(props) {
|
|
3787
3787
|
const [showLoading, setShowLoading] = React__default.useState(props.visible);
|
|
3788
3788
|
const edgeService = props.edgeService;
|
|
3789
3789
|
React__default.useEffect(
|
|
@@ -3851,7 +3851,7 @@ function Debug$1() {
|
|
|
3851
3851
|
console.warn('Please stop using "Debug" Components');
|
|
3852
3852
|
return null;
|
|
3853
3853
|
}
|
|
3854
|
-
var index$
|
|
3854
|
+
var index$U = {
|
|
3855
3855
|
Alert: Alert$1,
|
|
3856
3856
|
Start,
|
|
3857
3857
|
Toast: toast,
|
|
@@ -3859,10 +3859,10 @@ var index$T = {
|
|
|
3859
3859
|
NotFound,
|
|
3860
3860
|
Debug: Debug$1,
|
|
3861
3861
|
Prompt: Prompt$1,
|
|
3862
|
-
Loading: Loading$
|
|
3862
|
+
Loading: Loading$1,
|
|
3863
3863
|
PlaySound: PlaySound$1
|
|
3864
3864
|
};
|
|
3865
|
-
var index$
|
|
3865
|
+
var index$T = "";
|
|
3866
3866
|
function Presentation(props) {
|
|
3867
3867
|
const {
|
|
3868
3868
|
image: image2 = Presentation.IMAGE_1,
|
|
@@ -3884,7 +3884,7 @@ Presentation.IMAGE_1 = `${window.PDA_IMAGE_PATH}O1CN019Ivkor1ksy3pMGDsz_!!600000
|
|
|
3884
3884
|
Presentation.IMAGE_2 = `${window.PDA_IMAGE_PATH}O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png`;
|
|
3885
3885
|
Presentation.IMAGE_3 = `${window.PDA_IMAGE_PATH}O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png`;
|
|
3886
3886
|
Presentation.IMAGE_4 = `${window.PDA_IMAGE_PATH}O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif`;
|
|
3887
|
-
var index$
|
|
3887
|
+
var index$S = "";
|
|
3888
3888
|
function empty$1() {
|
|
3889
3889
|
}
|
|
3890
3890
|
function List$3(props) {
|
|
@@ -3939,7 +3939,7 @@ function DefaultItem(props) {
|
|
|
3939
3939
|
}, extra));
|
|
3940
3940
|
}
|
|
3941
3941
|
List$3.Item = DefaultItem;
|
|
3942
|
-
var index$
|
|
3942
|
+
var index$R = "";
|
|
3943
3943
|
const blankFunc$5 = () => {
|
|
3944
3944
|
};
|
|
3945
3945
|
class BaseLayoutContainer extends React__default.Component {
|
|
@@ -4341,7 +4341,7 @@ class BaseLayout extends React__default.Component {
|
|
|
4341
4341
|
});
|
|
4342
4342
|
}
|
|
4343
4343
|
}
|
|
4344
|
-
var index$
|
|
4344
|
+
var index$Q = "";
|
|
4345
4345
|
const blankFunc$1 = () => {
|
|
4346
4346
|
};
|
|
4347
4347
|
function Keyborard(props) {
|
|
@@ -4489,7 +4489,7 @@ class UploadeButton extends Component {
|
|
|
4489
4489
|
}))));
|
|
4490
4490
|
}
|
|
4491
4491
|
}
|
|
4492
|
-
var index$
|
|
4492
|
+
var index$P = "";
|
|
4493
4493
|
const classPrefix$p = "image-viewer";
|
|
4494
4494
|
class ImageViewer extends Component {
|
|
4495
4495
|
constructor(props) {
|
|
@@ -4755,7 +4755,7 @@ class ImageUploader extends Component {
|
|
|
4755
4755
|
}, /* @__PURE__ */ React__default.createElement("input", {
|
|
4756
4756
|
type: "file",
|
|
4757
4757
|
name: "file",
|
|
4758
|
-
accept: "image/*",
|
|
4758
|
+
accept: "image/*,video/*",
|
|
4759
4759
|
id: "inputFile",
|
|
4760
4760
|
style: { display: "none" }
|
|
4761
4761
|
}), /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -4849,9 +4849,9 @@ function takePhotoMethod2(compressSize = 200) {
|
|
|
4849
4849
|
);
|
|
4850
4850
|
});
|
|
4851
4851
|
}
|
|
4852
|
+
var index$O = "";
|
|
4852
4853
|
var index$N = "";
|
|
4853
4854
|
var index$M = "";
|
|
4854
|
-
var index$L = "";
|
|
4855
4855
|
class PdaInfoCard$1 extends React__default.Component {
|
|
4856
4856
|
constructor(props) {
|
|
4857
4857
|
super(props);
|
|
@@ -4906,7 +4906,7 @@ class PdaInfoCard extends React__default.Component {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
}
|
|
4908
4908
|
__publicField(PdaInfoCard, "Step", PdaInfoCard$1);
|
|
4909
|
-
var index$
|
|
4909
|
+
var index$L = "";
|
|
4910
4910
|
class PdaFinishCard extends React__default.Component {
|
|
4911
4911
|
constructor(props) {
|
|
4912
4912
|
super(props);
|
|
@@ -4960,7 +4960,7 @@ class PdaFinishCard extends React__default.Component {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
PdaFinishCard.SUCCESS = `${window.PDA_IMAGE_PATH}O1CN01OL2UYg24792knbTtC_!!6000000007343-1-tps-506-415.gif`;
|
|
4962
4962
|
PdaFinishCard.ERROR_SUCCESS = `${window.PDA_IMAGE_PATH}O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif`;
|
|
4963
|
-
var index$
|
|
4963
|
+
var index$K = "";
|
|
4964
4964
|
class PdaDistanceCard extends React__default.Component {
|
|
4965
4965
|
constructor(props) {
|
|
4966
4966
|
super(props);
|
|
@@ -5001,7 +5001,7 @@ class PdaDistanceCard extends React__default.Component {
|
|
|
5001
5001
|
}, /* @__PURE__ */ React__default.createElement("p", null, i18n.get("\u8FDC")), /* @__PURE__ */ React__default.createElement("p", null, i18n.get("\u8FD1"))));
|
|
5002
5002
|
}
|
|
5003
5003
|
}
|
|
5004
|
-
var index$
|
|
5004
|
+
var index$J = "";
|
|
5005
5005
|
function SubCard(props) {
|
|
5006
5006
|
const { title, context, name, tag, attrs = [], style } = props;
|
|
5007
5007
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -5027,7 +5027,7 @@ function SubCard(props) {
|
|
|
5027
5027
|
}, text);
|
|
5028
5028
|
})));
|
|
5029
5029
|
}
|
|
5030
|
-
var index$
|
|
5030
|
+
var index$I = "";
|
|
5031
5031
|
function SelectCard(props) {
|
|
5032
5032
|
const { title, label, select = true, onClick = (e2) => {
|
|
5033
5033
|
} } = props;
|
|
@@ -5040,10 +5040,10 @@ function SelectCard(props) {
|
|
|
5040
5040
|
className: "select-icon"
|
|
5041
5041
|
}) : null, " "));
|
|
5042
5042
|
}
|
|
5043
|
-
var index$
|
|
5043
|
+
var index$H = "";
|
|
5044
5044
|
function empty() {
|
|
5045
5045
|
}
|
|
5046
|
-
function index$
|
|
5046
|
+
function index$G(props) {
|
|
5047
5047
|
const { dataSource = [], onClickItem = empty } = props;
|
|
5048
5048
|
let tabIndex = 1;
|
|
5049
5049
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -5071,7 +5071,7 @@ function index$F(props) {
|
|
|
5071
5071
|
})));
|
|
5072
5072
|
}));
|
|
5073
5073
|
}
|
|
5074
|
-
var index$
|
|
5074
|
+
var index$F = "";
|
|
5075
5075
|
function usePersistFn(fn) {
|
|
5076
5076
|
var fnRef = useRef(fn);
|
|
5077
5077
|
fnRef.current = fn;
|
|
@@ -5297,7 +5297,7 @@ function getScrollParent$1(el, root2) {
|
|
|
5297
5297
|
}
|
|
5298
5298
|
return root2;
|
|
5299
5299
|
}
|
|
5300
|
-
function Loading
|
|
5300
|
+
function Loading(props) {
|
|
5301
5301
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
5302
5302
|
style: {
|
|
5303
5303
|
color: props.color || "#999"
|
|
@@ -5393,11 +5393,11 @@ function InfiniteScroll(props) {
|
|
|
5393
5393
|
ref: elementRef
|
|
5394
5394
|
}, hasMore ? /* @__PURE__ */ React__default.createElement("div", {
|
|
5395
5395
|
className: "pda-infinite-scroll-view"
|
|
5396
|
-
}, /* @__PURE__ */ React__default.createElement("span", null, loadingText), /* @__PURE__ */ React__default.createElement(Loading
|
|
5396
|
+
}, /* @__PURE__ */ React__default.createElement("span", null, loadingText), /* @__PURE__ */ React__default.createElement(Loading, null)) : /* @__PURE__ */ React__default.createElement("div", {
|
|
5397
5397
|
className: "pda-infinite-scroll-view"
|
|
5398
5398
|
}, /* @__PURE__ */ React__default.createElement("span", null, notMoreText)));
|
|
5399
5399
|
}
|
|
5400
|
-
var index$
|
|
5400
|
+
var index$E = "";
|
|
5401
5401
|
function ActionSheet(props) {
|
|
5402
5402
|
const {
|
|
5403
5403
|
className = "",
|
|
@@ -5445,14 +5445,14 @@ function ActionSheet(props) {
|
|
|
5445
5445
|
}, item.title);
|
|
5446
5446
|
})) : null));
|
|
5447
5447
|
}
|
|
5448
|
-
var index$
|
|
5448
|
+
var index$D = "";
|
|
5449
5449
|
function Tag(props) {
|
|
5450
5450
|
const { className = void 0, label = "label", type = "success" } = props;
|
|
5451
5451
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
5452
5452
|
className: classNames({ [className]: true, "pda-tag": true, ["pda-tag-" + type]: true })
|
|
5453
5453
|
}, label);
|
|
5454
5454
|
}
|
|
5455
|
-
var index$
|
|
5455
|
+
var index$C = "";
|
|
5456
5456
|
function SimpleCard(props) {
|
|
5457
5457
|
const { className = "", title = "", content = "", type = "default", onClick = () => {
|
|
5458
5458
|
} } = props;
|
|
@@ -5465,7 +5465,7 @@ function SimpleCard(props) {
|
|
|
5465
5465
|
className: "simple-card-content"
|
|
5466
5466
|
}, content)) : null;
|
|
5467
5467
|
}
|
|
5468
|
-
var index$
|
|
5468
|
+
var index$B = "";
|
|
5469
5469
|
function SimpleCardBlock(props) {
|
|
5470
5470
|
const { className = void 0, dataSource = [], title = "", tag } = props;
|
|
5471
5471
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -5487,7 +5487,7 @@ function SimpleCardBlock(props) {
|
|
|
5487
5487
|
});
|
|
5488
5488
|
})) : null);
|
|
5489
5489
|
}
|
|
5490
|
-
var index$
|
|
5490
|
+
var index$A = "";
|
|
5491
5491
|
function LatticeMouth(props) {
|
|
5492
5492
|
const { row = 3, col = 3, dataSource = [], onClick } = props;
|
|
5493
5493
|
return /* @__PURE__ */ React__default.createElement("div", {
|
|
@@ -5524,7 +5524,7 @@ function renderItem(dataSource, rowIndex, colIndex, col, onClick) {
|
|
|
5524
5524
|
function getDataSourceItem$1(dataSource, rowIndex, colIndex, col) {
|
|
5525
5525
|
return dataSource[rowIndex * col + colIndex];
|
|
5526
5526
|
}
|
|
5527
|
-
var index$
|
|
5527
|
+
var index$z = "";
|
|
5528
5528
|
const DARK_STYLE = {
|
|
5529
5529
|
"--base-font-size": "20px",
|
|
5530
5530
|
"--background-color": "#282828",
|
|
@@ -5603,8 +5603,8 @@ function SplitContent(props) {
|
|
|
5603
5603
|
className: "card-content"
|
|
5604
5604
|
}, content[0]);
|
|
5605
5605
|
}
|
|
5606
|
-
var index$
|
|
5607
|
-
function index$
|
|
5606
|
+
var index$y = "";
|
|
5607
|
+
function index$x(props) {
|
|
5608
5608
|
const {
|
|
5609
5609
|
label = i18n.get("\u8BF7\u9009\u62E9"),
|
|
5610
5610
|
dataSource = [],
|
|
@@ -5716,7 +5716,7 @@ function SearchIcon() {
|
|
|
5716
5716
|
fillRule: "nonzero"
|
|
5717
5717
|
}))));
|
|
5718
5718
|
}
|
|
5719
|
-
function
|
|
5719
|
+
function index$w(props) {
|
|
5720
5720
|
const { visible, text = "LOADING..." } = props;
|
|
5721
5721
|
if (!visible) {
|
|
5722
5722
|
return null;
|
|
@@ -18354,7 +18354,8 @@ function ScanV2(props) {
|
|
|
18354
18354
|
},
|
|
18355
18355
|
onChange = function() {
|
|
18356
18356
|
},
|
|
18357
|
-
noEnter = false
|
|
18357
|
+
noEnter = false,
|
|
18358
|
+
notValidateEmptyWhenOnScan
|
|
18358
18359
|
} = props;
|
|
18359
18360
|
const inputRef = React__default.useRef(null);
|
|
18360
18361
|
const [scanValue, setScanValue] = React__default.useState(defaultValue);
|
|
@@ -18401,7 +18402,7 @@ function ScanV2(props) {
|
|
|
18401
18402
|
onKeyUp: (e2) => {
|
|
18402
18403
|
const { code, keyCode } = e2;
|
|
18403
18404
|
const value = String(e2.target.value).trim();
|
|
18404
|
-
if ((code === "Enter" || keyCode === 13) && value.length > 0 && !noEnter) {
|
|
18405
|
+
if ((code === "Enter" || keyCode === 13) && (notValidateEmptyWhenOnScan || value.length > 0) && !noEnter) {
|
|
18405
18406
|
onScan(value, setScanValue);
|
|
18406
18407
|
}
|
|
18407
18408
|
}
|
|
@@ -19124,7 +19125,7 @@ const PageFlowSystemPagesV2 = {
|
|
|
19124
19125
|
Prompt,
|
|
19125
19126
|
Start,
|
|
19126
19127
|
NotFound,
|
|
19127
|
-
Loading,
|
|
19128
|
+
Loading: Loading$1,
|
|
19128
19129
|
PlaySound,
|
|
19129
19130
|
Debug
|
|
19130
19131
|
};
|
|
@@ -19274,4 +19275,4 @@ function getFormatDate(val, format2, initialValue) {
|
|
|
19274
19275
|
return returnValue;
|
|
19275
19276
|
}
|
|
19276
19277
|
const ListItem = PdaListItem;
|
|
19277
|
-
export { ActionSheet, index$
|
|
19278
|
+
export { ActionSheet, index$G as AppList, Badge as BadgeV2, BaseLayout, Button$2 as Button, ButtonV2, List$2 as Card, CardV2, Confirm$1 as Confirm, index$r as DatePicker, DatePickerV2, PdaDistanceCard as DistanceCard, PdaFinishCard as FinishCard, FinishCardV2, FooterV2, index$11 as Header, HeaderV2, IllustrationV2, ImageUploader, ImageUploaderV2, ImageViewer, ImageViewer as ImageViewerV2, InfiniteScroll, PdaInfoCard$2 as InfoCard, InputFieldV2, index$u as InputItem, InputV2, Keyborard, LatticeMouth, LatticeMouthV2, LayoutV2, List$3 as List, ListItem, List as ListV2, index$w as Loading, MenuListV2, NumberPickerV2, Overlay$1 as Overlay, PDA_IMAGE_PATH, index$U as PageFlowSystemPages, PageFlowSystemPagesV2, index$x as Picker, PopupV2, Presentation, ProgressBar as ProgressBarV2, index$p 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, useFieldV2, index$t as useFiled };
|