@cniot/android-pda-components 0.1.4 → 0.1.8
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/build/assets/{index.ff0a70b9.js → index.2fd41665.js} +76 -25
- package/build/assets/{index.26b85a59.css → index.4025a3ff.css} +1 -1
- package/build/assets/{vendor.c6d73e0c.js → vendor.999402d8.js} +10 -8
- package/build/index.html +3 -3
- package/change.md +5 -0
- package/doc/index.jsx +9 -4
- package/es/index.cjs.js +4 -2
- package/es/index.es.js +264 -52
- package/es/style.css +1 -1
- package/package.json +2 -1
package/es/index.es.js
CHANGED
|
@@ -36,7 +36,7 @@ var __publicField = (obj, key, value) => {
|
|
|
36
36
|
import React, { useState, useEffect, useRef, cloneElement, useCallback } from "react";
|
|
37
37
|
import ReactDOM from "react-dom";
|
|
38
38
|
var global = "";
|
|
39
|
-
var
|
|
39
|
+
var classnames = { exports: {} };
|
|
40
40
|
/*!
|
|
41
41
|
Copyright (c) 2018 Jed Watson.
|
|
42
42
|
Licensed under the MIT License (MIT), see
|
|
@@ -82,9 +82,9 @@ var _classnames_2_3_1_classnames = { exports: {} };
|
|
|
82
82
|
window.classNames = classNames2;
|
|
83
83
|
}
|
|
84
84
|
})();
|
|
85
|
-
})(
|
|
86
|
-
var classNames =
|
|
87
|
-
var index$
|
|
85
|
+
})(classnames);
|
|
86
|
+
var classNames = classnames.exports;
|
|
87
|
+
var index$o = "";
|
|
88
88
|
function getTypeClass$1(type) {
|
|
89
89
|
return {
|
|
90
90
|
"center": "op-overlay center",
|
|
@@ -110,7 +110,7 @@ function Overlay(props) {
|
|
|
110
110
|
className: getTypeClass$1(verticalPosition)
|
|
111
111
|
}, option), props.children) : null;
|
|
112
112
|
}
|
|
113
|
-
var index$
|
|
113
|
+
var index$n = "";
|
|
114
114
|
const blankFunc$5 = () => {
|
|
115
115
|
};
|
|
116
116
|
class PdaTitle extends React.Component {
|
|
@@ -149,7 +149,136 @@ class PdaTitle extends React.Component {
|
|
|
149
149
|
}, menuList)));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
var
|
|
152
|
+
var keycode$1 = { exports: {} };
|
|
153
|
+
(function(module, exports) {
|
|
154
|
+
function keyCode(searchInput) {
|
|
155
|
+
if (searchInput && typeof searchInput === "object") {
|
|
156
|
+
var hasKeyCode = searchInput.which || searchInput.keyCode || searchInput.charCode;
|
|
157
|
+
if (hasKeyCode)
|
|
158
|
+
searchInput = hasKeyCode;
|
|
159
|
+
}
|
|
160
|
+
if (typeof searchInput === "number")
|
|
161
|
+
return names[searchInput];
|
|
162
|
+
var search = String(searchInput);
|
|
163
|
+
var foundNamedKey = codes[search.toLowerCase()];
|
|
164
|
+
if (foundNamedKey)
|
|
165
|
+
return foundNamedKey;
|
|
166
|
+
var foundNamedKey = aliases[search.toLowerCase()];
|
|
167
|
+
if (foundNamedKey)
|
|
168
|
+
return foundNamedKey;
|
|
169
|
+
if (search.length === 1)
|
|
170
|
+
return search.charCodeAt(0);
|
|
171
|
+
return void 0;
|
|
172
|
+
}
|
|
173
|
+
keyCode.isEventKey = function isEventKey(event, nameOrCode) {
|
|
174
|
+
if (event && typeof event === "object") {
|
|
175
|
+
var keyCode2 = event.which || event.keyCode || event.charCode;
|
|
176
|
+
if (keyCode2 === null || keyCode2 === void 0) {
|
|
177
|
+
return false;
|
|
178
|
+
}
|
|
179
|
+
if (typeof nameOrCode === "string") {
|
|
180
|
+
var foundNamedKey = codes[nameOrCode.toLowerCase()];
|
|
181
|
+
if (foundNamedKey) {
|
|
182
|
+
return foundNamedKey === keyCode2;
|
|
183
|
+
}
|
|
184
|
+
var foundNamedKey = aliases[nameOrCode.toLowerCase()];
|
|
185
|
+
if (foundNamedKey) {
|
|
186
|
+
return foundNamedKey === keyCode2;
|
|
187
|
+
}
|
|
188
|
+
} else if (typeof nameOrCode === "number") {
|
|
189
|
+
return nameOrCode === keyCode2;
|
|
190
|
+
}
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
exports = module.exports = keyCode;
|
|
195
|
+
var codes = exports.code = exports.codes = {
|
|
196
|
+
"backspace": 8,
|
|
197
|
+
"tab": 9,
|
|
198
|
+
"enter": 13,
|
|
199
|
+
"shift": 16,
|
|
200
|
+
"ctrl": 17,
|
|
201
|
+
"alt": 18,
|
|
202
|
+
"pause/break": 19,
|
|
203
|
+
"caps lock": 20,
|
|
204
|
+
"esc": 27,
|
|
205
|
+
"space": 32,
|
|
206
|
+
"page up": 33,
|
|
207
|
+
"page down": 34,
|
|
208
|
+
"end": 35,
|
|
209
|
+
"home": 36,
|
|
210
|
+
"left": 37,
|
|
211
|
+
"up": 38,
|
|
212
|
+
"right": 39,
|
|
213
|
+
"down": 40,
|
|
214
|
+
"insert": 45,
|
|
215
|
+
"delete": 46,
|
|
216
|
+
"command": 91,
|
|
217
|
+
"left command": 91,
|
|
218
|
+
"right command": 93,
|
|
219
|
+
"numpad *": 106,
|
|
220
|
+
"numpad +": 107,
|
|
221
|
+
"numpad -": 109,
|
|
222
|
+
"numpad .": 110,
|
|
223
|
+
"numpad /": 111,
|
|
224
|
+
"num lock": 144,
|
|
225
|
+
"scroll lock": 145,
|
|
226
|
+
"my computer": 182,
|
|
227
|
+
"my calculator": 183,
|
|
228
|
+
";": 186,
|
|
229
|
+
"=": 187,
|
|
230
|
+
",": 188,
|
|
231
|
+
"-": 189,
|
|
232
|
+
".": 190,
|
|
233
|
+
"/": 191,
|
|
234
|
+
"`": 192,
|
|
235
|
+
"[": 219,
|
|
236
|
+
"\\": 220,
|
|
237
|
+
"]": 221,
|
|
238
|
+
"'": 222
|
|
239
|
+
};
|
|
240
|
+
var aliases = exports.aliases = {
|
|
241
|
+
"windows": 91,
|
|
242
|
+
"\u21E7": 16,
|
|
243
|
+
"\u2325": 18,
|
|
244
|
+
"\u2303": 17,
|
|
245
|
+
"\u2318": 91,
|
|
246
|
+
"ctl": 17,
|
|
247
|
+
"control": 17,
|
|
248
|
+
"option": 18,
|
|
249
|
+
"pause": 19,
|
|
250
|
+
"break": 19,
|
|
251
|
+
"caps": 20,
|
|
252
|
+
"return": 13,
|
|
253
|
+
"escape": 27,
|
|
254
|
+
"spc": 32,
|
|
255
|
+
"spacebar": 32,
|
|
256
|
+
"pgup": 33,
|
|
257
|
+
"pgdn": 34,
|
|
258
|
+
"ins": 45,
|
|
259
|
+
"del": 46,
|
|
260
|
+
"cmd": 91
|
|
261
|
+
};
|
|
262
|
+
/*!
|
|
263
|
+
* Programatically add the following
|
|
264
|
+
*/
|
|
265
|
+
for (i = 97; i < 123; i++)
|
|
266
|
+
codes[String.fromCharCode(i)] = i - 32;
|
|
267
|
+
for (var i = 48; i < 58; i++)
|
|
268
|
+
codes[i - 48] = i;
|
|
269
|
+
for (i = 1; i < 13; i++)
|
|
270
|
+
codes["f" + i] = i + 111;
|
|
271
|
+
for (i = 0; i < 10; i++)
|
|
272
|
+
codes["numpad " + i] = i + 96;
|
|
273
|
+
var names = exports.names = exports.title = {};
|
|
274
|
+
for (i in codes)
|
|
275
|
+
names[codes[i]] = i;
|
|
276
|
+
for (var alias in aliases) {
|
|
277
|
+
codes[alias] = aliases[alias];
|
|
278
|
+
}
|
|
279
|
+
})(keycode$1, keycode$1.exports);
|
|
280
|
+
var keycode = keycode$1.exports;
|
|
281
|
+
var index$m = "";
|
|
153
282
|
function Button(props) {
|
|
154
283
|
const { type = "default", onClick, className = "" } = props;
|
|
155
284
|
return /* @__PURE__ */ React.createElement("button", {
|
|
@@ -163,12 +292,35 @@ function ButtonGroup(props) {
|
|
|
163
292
|
}, props.children);
|
|
164
293
|
}
|
|
165
294
|
Button.Group = ButtonGroup;
|
|
166
|
-
var index$
|
|
167
|
-
const empty$
|
|
295
|
+
var index$l = "";
|
|
296
|
+
const empty$3 = () => {
|
|
168
297
|
};
|
|
169
|
-
function index$
|
|
170
|
-
const {
|
|
298
|
+
function index$k(props) {
|
|
299
|
+
const {
|
|
300
|
+
onBack,
|
|
301
|
+
icon,
|
|
302
|
+
title,
|
|
303
|
+
menus = [],
|
|
304
|
+
onClickMenuItem = empty$3,
|
|
305
|
+
cancelMenuText,
|
|
306
|
+
menuShortcutKey,
|
|
307
|
+
backShortcutKey
|
|
308
|
+
} = props;
|
|
171
309
|
const [showMenus, setShowMenus] = React.useState(false);
|
|
310
|
+
React.useEffect(function() {
|
|
311
|
+
if (menuShortcutKey) {
|
|
312
|
+
return bindShortcutKey(getShortcutKeyCodes(menuShortcutKey), function() {
|
|
313
|
+
setShowMenus(true);
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}, [menuShortcutKey]);
|
|
317
|
+
React.useEffect(function() {
|
|
318
|
+
if (backShortcutKey && onBack) {
|
|
319
|
+
return bindShortcutKey(getShortcutKeyCodes(backShortcutKey), function() {
|
|
320
|
+
onBack("back");
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
}, [backShortcutKey, onBack]);
|
|
172
324
|
return /* @__PURE__ */ React.createElement("div", {
|
|
173
325
|
className: "pda-header"
|
|
174
326
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -204,7 +356,28 @@ function index$i(props) {
|
|
|
204
356
|
onClick: () => setShowMenus(false)
|
|
205
357
|
}, cancelMenuText)) : null)));
|
|
206
358
|
}
|
|
207
|
-
|
|
359
|
+
function getShortcutKeyCodes(shortcutKey) {
|
|
360
|
+
const shortcutKeys = shortcutKey.indexOf(",") > -1 ? shortcutKey.split(",") : [shortcutKey];
|
|
361
|
+
return shortcutKeys.map((k) => {
|
|
362
|
+
const kc = keycode(k);
|
|
363
|
+
if (kc === void 0) {
|
|
364
|
+
console.warn("OPButton.shortcutKey error key value by:", k);
|
|
365
|
+
}
|
|
366
|
+
return kc;
|
|
367
|
+
}).filter((k) => !!k);
|
|
368
|
+
}
|
|
369
|
+
function bindShortcutKey(keys, callback) {
|
|
370
|
+
function keyUpCallback(event) {
|
|
371
|
+
if (keys.indexOf(event.keyCode) > -1) {
|
|
372
|
+
callback && callback(event);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
document.addEventListener("keyup", keyUpCallback);
|
|
376
|
+
return function() {
|
|
377
|
+
document.removeEventListener("keyup", keyUpCallback);
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
var index$j = "";
|
|
208
381
|
class PdaInfoCard$2 extends React.Component {
|
|
209
382
|
constructor(props) {
|
|
210
383
|
super(props);
|
|
@@ -262,7 +435,7 @@ class PdaInfoCard$2 extends React.Component {
|
|
|
262
435
|
}
|
|
263
436
|
}
|
|
264
437
|
PdaInfoCard$2.IMAGE_1 = "https://img.alicdn.com/imgextra/i2/O1CN01qYuxip1ME9zhdL9XG_!!6000000001402-2-tps-150-150.png";
|
|
265
|
-
var index$
|
|
438
|
+
var index$i = "";
|
|
266
439
|
class PdaListItem extends React.Component {
|
|
267
440
|
constructor(props) {
|
|
268
441
|
super(props);
|
|
@@ -308,11 +481,11 @@ class PdaListItem extends React.Component {
|
|
|
308
481
|
})) : null);
|
|
309
482
|
}
|
|
310
483
|
}
|
|
311
|
-
var index$
|
|
312
|
-
function empty$
|
|
484
|
+
var index$h = "";
|
|
485
|
+
function empty$2() {
|
|
313
486
|
}
|
|
314
487
|
function Confirm(props) {
|
|
315
|
-
const { title = "title", message = null, subMessage = [], okText = "okText", cancelText = null, onClick = empty$
|
|
488
|
+
const { title = "title", message = null, subMessage = [], okText = "okText", cancelText = null, onClick = empty$2, type = "primary" } = props;
|
|
316
489
|
return /* @__PURE__ */ React.createElement("div", {
|
|
317
490
|
className: classNames({ "confirm-wrap": true, ["confirm-" + type]: true })
|
|
318
491
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -336,7 +509,7 @@ function Confirm(props) {
|
|
|
336
509
|
onClick: () => onClick(true)
|
|
337
510
|
}, okText)));
|
|
338
511
|
}
|
|
339
|
-
var index$
|
|
512
|
+
var index$g = "";
|
|
340
513
|
function resolveContainer(getContainer) {
|
|
341
514
|
const container = typeof getContainer === "function" ? getContainer() : getContainer;
|
|
342
515
|
return container || document.body;
|
|
@@ -382,14 +555,15 @@ const defaultProps$1 = {
|
|
|
382
555
|
stopPropagation: ["click"]
|
|
383
556
|
};
|
|
384
557
|
const InternalToast = (p) => {
|
|
385
|
-
mergeProps(defaultProps$1, p);
|
|
558
|
+
const props = mergeProps(defaultProps$1, p);
|
|
559
|
+
const { maskClickable, content, icon, position, title, message, type } = props;
|
|
386
560
|
return /* @__PURE__ */ React.createElement(Overlay, {
|
|
387
561
|
verticalPosition: "bottom",
|
|
388
562
|
closable: true
|
|
389
563
|
}, /* @__PURE__ */ React.createElement(Toast, {
|
|
390
|
-
title
|
|
391
|
-
message
|
|
392
|
-
type
|
|
564
|
+
title,
|
|
565
|
+
message,
|
|
566
|
+
type
|
|
393
567
|
}));
|
|
394
568
|
};
|
|
395
569
|
const containers = [];
|
|
@@ -536,7 +710,7 @@ function splitMessage(message) {
|
|
|
536
710
|
var msg = String(message).split("by Error:");
|
|
537
711
|
return msg[1] || msg[0];
|
|
538
712
|
}
|
|
539
|
-
var index$
|
|
713
|
+
var index$f = "";
|
|
540
714
|
function NotFound(props) {
|
|
541
715
|
return /* @__PURE__ */ React.createElement("div", {
|
|
542
716
|
style: { padding: "20%" }
|
|
@@ -719,7 +893,7 @@ function createHashHistory(b) {
|
|
|
719
893
|
}
|
|
720
894
|
};
|
|
721
895
|
}
|
|
722
|
-
var index$
|
|
896
|
+
var index$e = "";
|
|
723
897
|
function Debug(props) {
|
|
724
898
|
const { appManager } = props;
|
|
725
899
|
const pages = Array.from(appManager.pageManager.keys()).reverse();
|
|
@@ -769,7 +943,7 @@ function Loading$1(props) {
|
|
|
769
943
|
style: { position: "absolute", left: 0, top: 0, zIndex: 100 }
|
|
770
944
|
}, "LOADING...") : null;
|
|
771
945
|
}
|
|
772
|
-
var index$
|
|
946
|
+
var index$d = {
|
|
773
947
|
Alert,
|
|
774
948
|
Start,
|
|
775
949
|
Toast: toast,
|
|
@@ -779,7 +953,7 @@ var index$b = {
|
|
|
779
953
|
Prompt,
|
|
780
954
|
Loading: Loading$1
|
|
781
955
|
};
|
|
782
|
-
var index$
|
|
956
|
+
var index$c = "";
|
|
783
957
|
function Presentation(props) {
|
|
784
958
|
const {
|
|
785
959
|
image = Presentation.IMAGE_1,
|
|
@@ -801,11 +975,11 @@ Presentation.IMAGE_1 = "https://img.alicdn.com/imgextra/i3/O1CN019Ivkor1ksy3pMGD
|
|
|
801
975
|
Presentation.IMAGE_2 = "https://img.alicdn.com/imgextra/i1/O1CN01lhSunu1X4VPw1Mlas_!!6000000002870-2-tps-352-158.png";
|
|
802
976
|
Presentation.IMAGE_3 = "https://img.alicdn.com/imgextra/i1/O1CN01mreYXo1XfbUsQ7hip_!!6000000002951-2-tps-322-144.png";
|
|
803
977
|
Presentation.IMAGE_4 = "https://img.alicdn.com/imgextra/i3/O1CN017gNM8F1Fmmcfti7Dg_!!6000000000530-1-tps-414-286.gif";
|
|
804
|
-
var index$
|
|
805
|
-
function empty() {
|
|
978
|
+
var index$b = "";
|
|
979
|
+
function empty$1() {
|
|
806
980
|
}
|
|
807
981
|
function List(props) {
|
|
808
|
-
const { dataSource = [], onClickItem, onItemClick = empty } = props;
|
|
982
|
+
const { dataSource = [], onClickItem, onItemClick = empty$1 } = props;
|
|
809
983
|
return /* @__PURE__ */ React.createElement("div", {
|
|
810
984
|
className: "android-pda-list"
|
|
811
985
|
}, dataSource.map((item, index2) => {
|
|
@@ -847,7 +1021,7 @@ function DefaultItem(props) {
|
|
|
847
1021
|
}, extra));
|
|
848
1022
|
}
|
|
849
1023
|
List.Item = DefaultItem;
|
|
850
|
-
var index$
|
|
1024
|
+
var index$a = "";
|
|
851
1025
|
const blankFunc$4 = () => {
|
|
852
1026
|
};
|
|
853
1027
|
class BaseLayoutContainer extends React.Component {
|
|
@@ -921,21 +1095,23 @@ class RfidOnce$1 extends React.Component {
|
|
|
921
1095
|
this._handleRfidScan = (e) => {
|
|
922
1096
|
const { onRfidOnce, onRfidBoxOnce, onRfidPalletOnce } = this.props;
|
|
923
1097
|
const data = e.param;
|
|
924
|
-
const isBox =
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
1098
|
+
const isBox = data.rfidData.startsWith("0F006");
|
|
1099
|
+
const isPallet = data.rfidData.startsWith("0F011");
|
|
1100
|
+
if (isPallet) {
|
|
1101
|
+
let rfidData = data.rfidData;
|
|
1102
|
+
data.originData = rfidData;
|
|
1103
|
+
data.rfidData = rfidData.substr(5, 12);
|
|
1104
|
+
}
|
|
1105
|
+
if (onRfidBoxOnce && isBox) {
|
|
1106
|
+
this._stopWork();
|
|
1107
|
+
onRfidBoxOnce(data);
|
|
1108
|
+
} else if (onRfidPalletOnce && isPallet) {
|
|
1109
|
+
this._stopWork();
|
|
1110
|
+
onRfidPalletOnce(data);
|
|
935
1111
|
}
|
|
936
1112
|
if (onRfidOnce) {
|
|
937
1113
|
this._stopWork();
|
|
938
|
-
onRfidOnce(
|
|
1114
|
+
onRfidOnce(data);
|
|
939
1115
|
}
|
|
940
1116
|
};
|
|
941
1117
|
this._startWork = (e) => {
|
|
@@ -993,13 +1169,21 @@ class RfidOnce extends React.Component {
|
|
|
993
1169
|
this._handleRfidScan = (e) => {
|
|
994
1170
|
const { onRfidScan, onRfidBoxScan, onRfidPalletScan } = this.props;
|
|
995
1171
|
const data = e.param;
|
|
996
|
-
const isBox =
|
|
1172
|
+
const isBox = data.rfidData.startsWith("0F006");
|
|
1173
|
+
const isPallet = data.rfidData.startsWith("0F011");
|
|
1174
|
+
if (isPallet) {
|
|
1175
|
+
let rfidData = data.rfidData;
|
|
1176
|
+
data.originData = rfidData;
|
|
1177
|
+
data.rfidData = rfidData.substr(5, 12);
|
|
1178
|
+
}
|
|
997
1179
|
if (isBox && onRfidBoxScan) {
|
|
998
1180
|
onRfidBoxScan(data);
|
|
999
|
-
} else if (
|
|
1181
|
+
} else if (isPallet && onRfidPalletScan) {
|
|
1000
1182
|
onRfidPalletScan(data);
|
|
1001
1183
|
}
|
|
1002
|
-
onRfidScan
|
|
1184
|
+
if (onRfidScan) {
|
|
1185
|
+
onRfidScan(data);
|
|
1186
|
+
}
|
|
1003
1187
|
};
|
|
1004
1188
|
this._startWork = (e) => {
|
|
1005
1189
|
document.addEventListener("ContinuousRfidScan", this._handleRfidScan);
|
|
@@ -1138,7 +1322,7 @@ class BaseLayout extends React.Component {
|
|
|
1138
1322
|
return /* @__PURE__ */ React.createElement(BaseLayoutContainer, __spreadValues({}, props));
|
|
1139
1323
|
}
|
|
1140
1324
|
}
|
|
1141
|
-
var index$
|
|
1325
|
+
var index$9 = "";
|
|
1142
1326
|
const blankFunc = () => {
|
|
1143
1327
|
};
|
|
1144
1328
|
function WakeKeyborard(props) {
|
|
@@ -1186,8 +1370,8 @@ function WakeKeyborard(props) {
|
|
|
1186
1370
|
}
|
|
1187
1371
|
}) : null);
|
|
1188
1372
|
}
|
|
1189
|
-
var index$
|
|
1190
|
-
var index$
|
|
1373
|
+
var index$8 = "";
|
|
1374
|
+
var index$7 = "";
|
|
1191
1375
|
class PdaInfoCard$1 extends React.Component {
|
|
1192
1376
|
constructor(props) {
|
|
1193
1377
|
super(props);
|
|
@@ -1207,10 +1391,10 @@ class PdaInfoCard$1 extends React.Component {
|
|
|
1207
1391
|
className: classNames({ "pda-step-indictor-bottom": true, "pda-step-indictor-bottom-hidden": isLast })
|
|
1208
1392
|
})), /* @__PURE__ */ React.createElement("div", {
|
|
1209
1393
|
className: classNames({ "pda-step": true, "pda-step-dark": !isActive })
|
|
1210
|
-
}, /* @__PURE__ */ React.createElement("
|
|
1394
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
1211
1395
|
className: "pda-step-title"
|
|
1212
1396
|
}, title), infoList.map((item, index22) => {
|
|
1213
|
-
return /* @__PURE__ */ React.createElement("
|
|
1397
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1214
1398
|
key: index22,
|
|
1215
1399
|
className: "pda-step-list"
|
|
1216
1400
|
}, /* @__PURE__ */ React.createElement("span", null, item.label || ""), "\xA0\xA0", /* @__PURE__ */ React.createElement("span", null, item.content || ""));
|
|
@@ -1241,7 +1425,7 @@ class PdaInfoCard extends React.Component {
|
|
|
1241
1425
|
}
|
|
1242
1426
|
}
|
|
1243
1427
|
__publicField(PdaInfoCard, "Step", PdaInfoCard$1);
|
|
1244
|
-
var index$
|
|
1428
|
+
var index$6 = "";
|
|
1245
1429
|
class PdaFinishCard extends React.Component {
|
|
1246
1430
|
constructor(props) {
|
|
1247
1431
|
super(props);
|
|
@@ -1277,7 +1461,7 @@ class PdaFinishCard extends React.Component {
|
|
|
1277
1461
|
}
|
|
1278
1462
|
PdaFinishCard.SUCCESS = "https://img.alicdn.com/imgextra/i2/O1CN01yYwwSx1uNV0M1gHlQ_!!6000000006025-1-tps-630-436.gif";
|
|
1279
1463
|
PdaFinishCard.ERROR_SUCCESS = "https://img.alicdn.com/imgextra/i3/O1CN01p5Oc5t1VMFWtBomQc_!!6000000002638-1-tps-600-456.gif";
|
|
1280
|
-
var index$
|
|
1464
|
+
var index$5 = "";
|
|
1281
1465
|
class PdaDistanceCard extends React.Component {
|
|
1282
1466
|
constructor(props) {
|
|
1283
1467
|
super(props);
|
|
@@ -1312,7 +1496,7 @@ class PdaDistanceCard extends React.Component {
|
|
|
1312
1496
|
}, /* @__PURE__ */ React.createElement("p", null, "\u8FDC"), /* @__PURE__ */ React.createElement("p", null, "\u8FD1")));
|
|
1313
1497
|
}
|
|
1314
1498
|
}
|
|
1315
|
-
var index$
|
|
1499
|
+
var index$4 = "";
|
|
1316
1500
|
function SubCard(props) {
|
|
1317
1501
|
const { title, context, name, tag, attrs = [], style } = props;
|
|
1318
1502
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -1338,6 +1522,34 @@ function SubCard(props) {
|
|
|
1338
1522
|
}, text);
|
|
1339
1523
|
})));
|
|
1340
1524
|
}
|
|
1525
|
+
var index$3 = "";
|
|
1526
|
+
function empty() {
|
|
1527
|
+
}
|
|
1528
|
+
function index$2(props) {
|
|
1529
|
+
const { dataSource = [], onClickItem = empty } = props;
|
|
1530
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1531
|
+
className: "pda-app-list"
|
|
1532
|
+
}, dataSource.map((item) => {
|
|
1533
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1534
|
+
className: "pda-app-group",
|
|
1535
|
+
key: item.groupName
|
|
1536
|
+
}, /* @__PURE__ */ React.createElement("h2", {
|
|
1537
|
+
className: "group-name"
|
|
1538
|
+
}, item.groupName), /* @__PURE__ */ React.createElement("div", {
|
|
1539
|
+
className: "group-apps"
|
|
1540
|
+
}, item.list.map((it) => {
|
|
1541
|
+
return /* @__PURE__ */ React.createElement("div", {
|
|
1542
|
+
className: "app-item",
|
|
1543
|
+
key: it.name,
|
|
1544
|
+
onClick: () => onClickItem(it)
|
|
1545
|
+
}, /* @__PURE__ */ React.createElement("span", {
|
|
1546
|
+
className: "app-name"
|
|
1547
|
+
}, it.name), /* @__PURE__ */ React.createElement("span", {
|
|
1548
|
+
className: "app-subname"
|
|
1549
|
+
}, it.subname));
|
|
1550
|
+
})));
|
|
1551
|
+
}));
|
|
1552
|
+
}
|
|
1341
1553
|
var index$1 = "";
|
|
1342
1554
|
function usePersistFn(fn) {
|
|
1343
1555
|
var fnRef = useRef(fn);
|
|
@@ -1674,4 +1886,4 @@ function PdaActionSheet(props) {
|
|
|
1674
1886
|
})));
|
|
1675
1887
|
}
|
|
1676
1888
|
const ListItem = PdaListItem;
|
|
1677
|
-
export { PdaActionSheet as ActionSheet, BaseLayout, Button, Confirm, PdaDistanceCard as DistanceCard, PdaFinishCard as FinishCard, index$
|
|
1889
|
+
export { PdaActionSheet as ActionSheet, index$2 as AppList, BaseLayout, Button, Confirm, PdaDistanceCard as DistanceCard, PdaFinishCard as FinishCard, index$k as Header, InfiniteScroll, PdaInfoCard$2 as InfoCard, List, ListItem, Overlay, index$d as PageFlowSystemPages, Presentation, PdaInfoCard as Steps, SubCard, PdaListItem as TaskCard, PdaTitle as Title, Toast, WakeKeyborard };
|
package/es/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0}div{box-sizing:border-box}.op-overlay{top:0;left:0;position:fixed;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background-color:#0006;z-index:100}.op-overlay.center{align-items:center;justify-content:center}.op-overlay.top{align-items:flex-start;justify-content:center}.op-overlay.bottom{align-items:flex-end;justify-content:center}.pda-header{display:flex;flex-direction:row;align-items:center;color:#fff;height:84px}.pda-header .pda-goback{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);width:18px;height:32px;background-size:100%;margin-left:28px;margin-right:8px}.pda-header .pda-header-icon{height:36px;width:36px;margin-left:16px;background-size:100%}.pda-header .pda-header-icon-scan{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png)}.pda-header .pda-header-icon-select{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png)}.pda-header .pda-header-icon-read{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png)}.pda-header .pda-title-text{margin-left:16px;font-size:40px}.pda-header .pda-header-more{height:36px;width:36px;background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);background-size:100%;background-repeat:no-repeat;background-position:center;margin-left:auto}.pda-button{display:block;box-sizing:border-box;padding-right:0;text-align:center;font-size:40px;height:90px;line-height:90px;color:#fff;background-color:#f3f4f8;border-radius:10px;width:100%;border-width:0}.pda-button.pda-button-default{color:#000}.pda-button:active{background-color:#979797}.pda-button.pda-button-primary{background-color:#0091ea}.pda-button.pda-button-primary:active{background-color:#0074bb}.pda-button.pda-button-dark{background-color:#282828}.pda-button.pda-button-dark:active{background-color:#979797}.pda-button.pda-button-cutout{color:#0091ea;border-width:4px;border-color:#0091ea}.button-group{display:flex;flex-direction:row;padding:20px 24px;width:100%}.button-group .pda-button:not(:last-child){margin-right:16px}.pda-header{background-color:#000;display:flex;flex-direction:row;align-items:center;color:#fff;height:84px}.pda-header .header-click-area{height:100%;display:flex;align-items:center;flex-direction:row}.pda-header .pda-goback{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);width:18px;height:32px;background-size:100%;margin-left:28px;margin-right:8px}.pda-header .pda-header-icon{height:36px;width:36px;margin-left:16px;background-size:100%;background-repeat:no-repeat}.pda-header .pda-header-icon-scan{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png)}.pda-header .pda-header-icon-select{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png)}.pda-header .pda-header-icon-read{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png)}.pda-header .pda-title-text{margin-left:16px;font-size:40px;flex:1}.pda-header .pda-header-more{height:36px;width:36px;margin-left:16px;background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);background-size:100%;background-repeat:no-repeat;background-position:center;margin-right:15px}.pda-header .pda-menus{background-color:#fff;border-radius:8px;width:100%;padding:24px;display:flex;flex-direction:column}.pda-header .pda-menus>*{margin-bottom:12px}.pda-info-card{border-radius:16px;padding:24px 16px;background-color:#fff;word-break:break-word}.pda-info-card .divda-info-card-title{font-size:32px}.pda-info-card .pda-info-card-title-section{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.pda-info-card .pda-info-card-title-section .pda-info-card-title{font-size:32px;color:#666}.pda-info-card .pda-info-card-title-section .pda-info-card-tag{display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;background-color:#fc0;border-radius:8px}.pda-info-card .pda-info-card-highlight-section{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.pda-info-card .pda-info-card-highlight-section .pda-info-card-title{font-size:32px;color:#666;margin-top:20px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight{font-size:80px;line-height:64px;color:#0091ea;font-weight:bold;display:flex;flex-direction:row;align-items:flex-end}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight1CN{font-size:64px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2{font-size:50px;line-height:40px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2CN{font-size:40px;line-height:40px}.pda-info-card .pda-info-card-bold{font-weight:bold;font-size:40px;line-height:48px;color:#000;margin-top:12px}.pda-info-card .pda-info-card-list{margin-top:8px;color:#4a4a4a;font-size:32px;line-height:32px;word-break:break-all}.pda-info-card-progress{background-color:#f3f4f8;height:12px;border-radius:6px;margin-top:17px}.pda-info-card-progress .pda-info-card-progress-inside{background-color:#0091ea;height:12px;border-radius:6px}.pda-info-card.pda-info-card-dark{background-color:#000}.pda-info-card.pda-info-card-dark .pda-info-card-title{color:#ffffff60}.pda-info-card.pda-info-card-dark .pda-info-card-highlight{color:#fff}.pda-info-card.pda-info-card-dark .pda-info-card-bold{color:#fff}.pda-info-card.pda-info-card-dark .pda-info-card-list{color:#ffffff60}.pda-list-item{padding:24px 16px;border-radius:16px;position:relative}.pda-list-item div{margin:0}.pda-list-item>div,.pda-list-item>div{margin-bottom:16px}.pda-list-item .pda-listitem-highlight{width:100%;font-size:40px;line-height:40px;font-weight:bold;color:#fff;display:flex;flex-direction:row;justify-content:space-between}.pda-list-item .pda-listitem-highlight div:first-child{flex:1;word-break:normal;white-space:normal;word-break:break-word}.pda-list-item .pda-listitem-header,.pda-list-item .pda-listitem-state-text,.pda-list-item .pda-listitem-subinfo{font-size:32px;line-height:32px;color:#ffffff60;word-break:break-all}.pda-list-item .pda-listitem-state-block{display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:0}.pda-list-item .pda-listitem-state-block>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;margin-bottom:12px;margin-right:12px;font-size:24px;line-height:24px}.pda-list-item .pda-listitem-state-block>div.success{background-color:#0f0}.pda-list-item .pda-listitem-state-block>div.warning{background-color:#fc0}.pda-list-item .pda-listitem-state-block>div.error{background-color:red}.pda-list-item .pda-listitem-icon{position:absolute;top:0;right:0;width:60px;height:60px;background-color:#0091ea;border-radius:0 16px;display:flex;justify-content:center;align-items:center}.pda-list-item .listitem-icon-container{background-size:100%;background-repeat:no-repeat;width:16px;height:24px}.pda-list-item .listitem-icon-next{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01FkZisA1tCg1sj3b6U_!!6000000005866-2-tps-40-58.png)}.confirm-wrap{background:#ffffff;border-radius:6px 6px 0 0;padding:24px 20px;width:100%}.confirm-wrap .confirm-title{font-size:2.4rem;font-weight:700}.confirm-wrap .confirm-message{font-size:2.2rem;margin-bottom:1rem}.confirm-wrap .confirm-sub-message{font-size:2.2rem;margin-bottom:1rem}.confirm-wrap .confirm-btns{display:flex}.confirm-wrap .confirm-btns .confirm-cancel-button{margin-right:2%}.confirm-wrap.confirm-warning{background-color:red}.confirm-wrap.confirm-warning .pda-button{background-color:transparent;color:#000;border:2px solid black;border-radius:40px}.toast-wrap{background:#00FF00;border-radius:6px;padding:10px 15px;width:100%;box-sizing:border-box}.toast-wrap.warning{background-color:#ffcb00}.toast-wrap.error{background-color:red}.toast-wrap .toast-title{font-size:2.4rem;font-weight:700}.toast-wrap .toast-message{font-size:1.9rem}.mini-app-start-page{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh}.mini-app-start-page button{padding:.3em 3em;border-radius:6px;border:none;font-size:36px;background-color:#00bdff;color:#fff;margin-top:20px}.mini-app-start-page button:active{transform:scale(.95)}.mini-app-start-page .desc{opacity:.3}.local-debug-side{position:absolute;right:0;bottom:0}.presentation-card{margin:12px;background-color:#fff;border-radius:6px;text-align:center;padding:20px 6px}.presentation-card img{width:70%;height:auto}.presentation-card.transparent{background-color:transparent;color:#fff}.presentation-card .text{margin-top:12px;font-weight:700;font-size:32px}.presentation-card .sub-text{margin-top:6px;font-weight:700;font-size:24px}.android-pda-list .default-item{background-color:#282828;font-size:36px;padding:10px;border-radius:6px;color:#fff;display:flex;justify-content:space-between;align-items:center;cursor:pointer;margin-bottom:10px}.android-pda-list .default-item:hover,.android-pda-list .default-item:active,.android-pda-list .default-item:focus{background-color:#686868}.android-pda-list .default-item .text{flex:1}.android-pda-list .default-item .sub-text{font-size:80%;opacity:.7}.android-pda-list .default-item .sub-tags{display:flex}.android-pda-list .default-item .sub-tags .sub-tag-item{background-color:#0f0;padding:2px;font-size:60%;margin-right:3px;border-radius:2px;color:#000;line-height:1em}.android-pda-list .default-item .sub-tags .sub-tag-item:first-child{margin-left:0}.android-pda-list .default-item .extra{font-size:80%;opacity:.7}.baselayout-wrapper{height:100%;min-height:100%;display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000}.baselayout-wrapper .baselayout-container{padding:0 24px 16px;overflow-x:auto;flex:1}.baselayout-wrapper .baselayout-container>*{margin-top:16px}.baselayout-wrapper .baselayout-footer{padding:16px 0}.wakekeyborard .wakekeyborard-icon{width:80px;height:80px;background-image:url(https://img.alicdn.com/imgextra/i3/O1CN01kxYh3U25Xzr9nAcYp_!!6000000007537-2-tps-240-240.png);background-size:100%;position:fixed;right:24px;bottom:24px}.wakekeyborard .wakekeyborard-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#dedede33}.wakekeyborard .wakekeyborard-inputbox{display:flex;flex-direction:row;height:85px;position:absolute;bottom:0;left:0;right:0}.wakekeyborard .wakekeyborard-inputbox input{flex:2}.wakekeyborard .wakekeyborard-inputbox button{flex:1}.pda-step-card{display:flex;flex-direction:row}.pda-step-card .pda-step-indictor{display:flex;flex-direction:column;align-items:center;margin-right:16px}.pda-step-card .pda-step-indictor .pda-step-indictor-top{width:1px;background-color:#bec0c6;flex:1}.pda-step-card .pda-step-indictor .pda-step-indictor-top-hidden{background-color:#fff0}.pda-step-card .pda-step-indictor .pda-step-indictor-center{height:24px;width:24px;border-radius:12px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-center-active{background-color:#0091ea}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom{flex:1;width:1px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom-hidden{background-color:#fff0}.pda-step{border-radius:16px;padding:24px 16px;background-color:#fff;margin-bottom:16px}.pda-step p{margin:0}.pda-step .pda-step-title{font-size:60px;color:#0091ea}.pda-step .pda-step-list{margin-top:8px;color:#4a4a4a;font-size:32px;line-height:32px}.pda-step.pda-step-dark{background-color:#000}.pda-step.pda-step-dark .pda-step-title{color:#fff}.pda-step.pda-step-dark .pda-step-list{color:#bec0c6}.pda-finish-card-top{height:100%;display:flex;flex-direction:column;align-items:center;color:#fff}.pda-finish-card-top .pda-finish-card-img{width:100%;margin:100px auto 0}.pda-finish-card-top .pda-finish-card-title{font-size:50px;line-height:45px;color:#fff;font-weight:500;margin-bottom:16px}.pda-finish-card-top .pda-finish-card-list{margin-top:16px;color:#ffffff80;font-size:32px;line-height:30px}.pda-distance-card{border-radius:16px;padding:36px 16px;background-color:#fff}.pda-distance-card p{margin:0;font-size:28px;color:#738399}.pda-distance-card .pda-distance-card-highlight{font-size:60px;line-height:64px;color:#0091ea}.pda-distance-card .pda-distance-indictor{margin-top:36px;display:flex}.pda-distance-card .pda-distance-card-progress{background-color:#ebecf2;height:34px;border-radius:6px;border:4px solid #D9D9D9;margin-top:8px;position:relative}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-indictor{position:absolute;bottom:0;left:5px}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-inside{background-color:#0091ea;height:26px;border-radius:6px 0 0 6px}.pda-distance-card .pda-distance-label{display:flex;justify-content:space-between}.android-sub-card{background:#282828;border-radius:16px;padding:10px;color:#fff}.android-sub-card .android-sub-card-title-section{display:flex;justify-content:space-between}.android-sub-card .android-sub-card-title-section .android-sub-card-title{opacity:.6;font-size:21.312px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag{margin-bottom:0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;color:#fff;font-size:15.984px;line-height:15.984px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.success{background-color:#0f0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.warning{background-color:#fc0;color:#000}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.error{background-color:red}.android-sub-card .android-sub-card-context{font-size:39.6px;margin:-6px 0}.android-sub-card .android-sub-card-name{font-size:26.4px}.android-sub-card .android-sub-card-attrs{opacity:.6;font-size:21.12px}.pda-infinite-scroll{margin-top:10px}.pda-infinite-scroll span{color:#999}.pda-infinite-scroll .pda-infinite-scroll-view{display:flex;align-items:center;justify-content:center}.pda-action-sheet{position:absolute;z-index:1000;width:100%;height:100%;background-color:#00000059;display:none}.pda-action-sheet .pda-action-sheet-body{position:absolute;background-color:#fff;z-index:1010;width:100%;bottom:0;left:0;border-radius:9.9px 9.9px 0 0;padding-bottom:10.56px}.pda-action-sheet .pda-action-sheet-body .pda-action-sheet-item{margin:10.56px 15.84px 0;background-color:#f3f4f8;height:54px;display:flex;align-items:center;justify-content:center;font-size:24px;border-radius:9.9px}.pda-action-sheet.show{display:block}.pda-action-sheet.show .pda-action-sheet-body{animation:slide-in .3s ease-out}@keyframes slide-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
|
|
1
|
+
*{margin:0;padding:0}div{box-sizing:border-box}.op-overlay{top:0;left:0;position:fixed;right:0;bottom:0;display:flex;justify-content:center;align-items:center;background-color:#0006;z-index:100}.op-overlay.center{align-items:center;justify-content:center}.op-overlay.top{align-items:flex-start;justify-content:center}.op-overlay.bottom{align-items:flex-end;justify-content:center}.pda-header{display:flex;flex-direction:row;align-items:center;color:#fff;height:84px}.pda-header .pda-goback{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);width:18px;height:32px;background-size:100%;margin-left:28px;margin-right:8px}.pda-header .pda-header-icon{height:36px;width:36px;margin-left:16px;background-size:100%}.pda-header .pda-header-icon-scan{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png)}.pda-header .pda-header-icon-select{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png)}.pda-header .pda-header-icon-read{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png)}.pda-header .pda-title-text{margin-left:16px;font-size:40px}.pda-header .pda-header-more{height:36px;width:36px;background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);background-size:100%;background-repeat:no-repeat;background-position:center;margin-left:auto}.pda-button{display:block;box-sizing:border-box;padding-right:0;text-align:center;font-size:40px;height:90px;line-height:90px;color:#fff;background-color:#f3f4f8;border-radius:10px;width:100%;border-width:0}.pda-button.pda-button-default{color:#000}.pda-button:active{background-color:#979797}.pda-button.pda-button-primary{background-color:#0091ea}.pda-button.pda-button-primary:active{background-color:#0074bb}.pda-button.pda-button-dark{background-color:#282828}.pda-button.pda-button-dark:active{background-color:#979797}.pda-button.pda-button-cutout{color:#0091ea;border-width:4px;border-color:#0091ea}.button-group{display:flex;flex-direction:row;padding:20px 24px;width:100%}.button-group .pda-button:not(:last-child){margin-right:16px}.pda-header{background-color:#000;display:flex;flex-direction:row;align-items:center;color:#fff;height:84px}.pda-header .header-click-area{height:100%;display:flex;align-items:center;flex-direction:row}.pda-header .pda-goback{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);width:18px;height:32px;background-size:100%;margin-left:28px;margin-right:8px}.pda-header .pda-header-icon{height:36px;width:36px;margin-left:16px;background-size:100%;background-repeat:no-repeat}.pda-header .pda-header-icon-scan{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png)}.pda-header .pda-header-icon-select{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png)}.pda-header .pda-header-icon-read{background-image:url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png)}.pda-header .pda-title-text{margin-left:16px;font-size:40px;flex:1}.pda-header .pda-header-more{height:36px;width:36px;margin-left:16px;background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);background-size:100%;background-repeat:no-repeat;background-position:center;margin-right:15px}.pda-header .pda-menus{background-color:#fff;border-radius:8px;width:100%;padding:24px;display:flex;flex-direction:column}.pda-header .pda-menus>*{margin-bottom:12px}.pda-info-card{border-radius:16px;padding:24px 16px;background-color:#fff;word-break:break-word}.pda-info-card .divda-info-card-title{font-size:32px}.pda-info-card .pda-info-card-title-section{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.pda-info-card .pda-info-card-title-section .pda-info-card-title{font-size:32px;color:#666}.pda-info-card .pda-info-card-title-section .pda-info-card-tag{display:flex;align-items:center;justify-content:center;height:36px;padding:0 8px;background-color:#fc0;border-radius:8px}.pda-info-card .pda-info-card-highlight-section{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start}.pda-info-card .pda-info-card-highlight-section .pda-info-card-title{font-size:32px;color:#666;margin-top:20px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight{font-size:80px;line-height:64px;color:#0091ea;font-weight:bold;display:flex;flex-direction:row;align-items:flex-end}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight1CN{font-size:64px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2{font-size:50px;line-height:40px}.pda-info-card .pda-info-card-highlight-section .pda-info-card-highlight .pda-info-card-highlight2CN{font-size:40px;line-height:40px}.pda-info-card .pda-info-card-bold{font-weight:bold;font-size:40px;line-height:48px;color:#000;margin-top:12px}.pda-info-card .pda-info-card-list{margin-top:8px;color:#4a4a4a;font-size:32px;line-height:32px;word-break:break-all}.pda-info-card-progress{background-color:#f3f4f8;height:12px;border-radius:6px;margin-top:17px}.pda-info-card-progress .pda-info-card-progress-inside{background-color:#0091ea;height:12px;border-radius:6px}.pda-info-card.pda-info-card-dark{background-color:#000}.pda-info-card.pda-info-card-dark .pda-info-card-title{color:#ffffff60}.pda-info-card.pda-info-card-dark .pda-info-card-highlight{color:#fff}.pda-info-card.pda-info-card-dark .pda-info-card-bold{color:#fff}.pda-info-card.pda-info-card-dark .pda-info-card-list{color:#ffffff60}.pda-list-item{padding:24px 16px;border-radius:16px;position:relative}.pda-list-item div{margin:0}.pda-list-item>div,.pda-list-item>div{margin-bottom:16px}.pda-list-item .pda-listitem-highlight{width:100%;font-size:40px;line-height:40px;font-weight:bold;color:#fff;display:flex;flex-direction:row;justify-content:space-between}.pda-list-item .pda-listitem-highlight div:first-child{flex:1;word-break:normal;white-space:normal;word-break:break-word}.pda-list-item .pda-listitem-header,.pda-list-item .pda-listitem-state-text,.pda-list-item .pda-listitem-subinfo{font-size:32px;line-height:32px;color:#ffffff60;word-break:break-all}.pda-list-item .pda-listitem-state-block{display:flex;flex-direction:row;flex-wrap:wrap;margin-bottom:0}.pda-list-item .pda-listitem-state-block>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;margin-bottom:12px;margin-right:12px;font-size:24px;line-height:24px}.pda-list-item .pda-listitem-state-block>div.success{background-color:#0f0}.pda-list-item .pda-listitem-state-block>div.warning{background-color:#fc0}.pda-list-item .pda-listitem-state-block>div.error{background-color:red}.pda-list-item .pda-listitem-icon{position:absolute;top:0;right:0;width:60px;height:60px;background-color:#0091ea;border-radius:0 16px;display:flex;justify-content:center;align-items:center}.pda-list-item .listitem-icon-container{background-size:100%;background-repeat:no-repeat;width:16px;height:24px}.pda-list-item .listitem-icon-next{background-image:url(https://img.alicdn.com/imgextra/i4/O1CN01FkZisA1tCg1sj3b6U_!!6000000005866-2-tps-40-58.png)}.confirm-wrap{background:#ffffff;border-radius:6px 6px 0 0;padding:24px 20px;width:100%}.confirm-wrap .confirm-title{font-size:2.4rem;font-weight:700}.confirm-wrap .confirm-message{font-size:2.2rem;margin-bottom:1rem}.confirm-wrap .confirm-sub-message{font-size:2.2rem;margin-bottom:1rem}.confirm-wrap .confirm-btns{display:flex}.confirm-wrap .confirm-btns .confirm-cancel-button{margin-right:2%}.confirm-wrap.confirm-warning{background-color:red}.confirm-wrap.confirm-warning .pda-button{background-color:transparent;color:#000;border:2px solid black;border-radius:40px}.toast-wrap{background:#00FF00;border-radius:6px;padding:10px 15px;width:100%;box-sizing:border-box}.toast-wrap.warning{background-color:#ffcb00}.toast-wrap.error{background-color:red}.toast-wrap .toast-title{font-size:2.4rem;font-weight:700}.toast-wrap .toast-message{font-size:1.9rem}.mini-app-start-page{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100vw;height:100vh}.mini-app-start-page button{padding:.3em 3em;border-radius:6px;border:none;font-size:36px;background-color:#00bdff;color:#fff;margin-top:20px}.mini-app-start-page button:active{transform:scale(.95)}.mini-app-start-page .desc{opacity:.3}.local-debug-side{position:absolute;right:0;bottom:0}.presentation-card{margin:12px;background-color:#fff;border-radius:6px;text-align:center;padding:20px 6px}.presentation-card img{width:70%;height:auto}.presentation-card.transparent{background-color:transparent;color:#fff}.presentation-card .text{margin-top:12px;font-weight:700;font-size:32px}.presentation-card .sub-text{margin-top:6px;font-weight:700;font-size:24px}.android-pda-list .default-item{background-color:#282828;font-size:36px;padding:10px;border-radius:6px;color:#fff;display:flex;justify-content:space-between;align-items:center;cursor:pointer;margin-bottom:10px}.android-pda-list .default-item:hover,.android-pda-list .default-item:active,.android-pda-list .default-item:focus{background-color:#686868}.android-pda-list .default-item .text{flex:1}.android-pda-list .default-item .sub-text{font-size:80%;opacity:.7}.android-pda-list .default-item .sub-tags{display:flex}.android-pda-list .default-item .sub-tags .sub-tag-item{background-color:#0f0;padding:2px;font-size:60%;margin-right:3px;border-radius:2px;color:#000;line-height:1em}.android-pda-list .default-item .sub-tags .sub-tag-item:first-child{margin-left:0}.android-pda-list .default-item .extra{font-size:80%;opacity:.7}.baselayout-wrapper{height:100%;min-height:100%;display:flex;flex-direction:column;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#000}.baselayout-wrapper .baselayout-container{padding:0 24px 16px;overflow-x:auto;flex:1}.baselayout-wrapper .baselayout-container>*{margin-top:16px}.baselayout-wrapper .baselayout-footer{padding:16px 0}.wakekeyborard .wakekeyborard-icon{width:80px;height:80px;background-image:url(https://img.alicdn.com/imgextra/i3/O1CN01kxYh3U25Xzr9nAcYp_!!6000000007537-2-tps-240-240.png);background-size:100%;position:fixed;right:24px;bottom:24px}.wakekeyborard .wakekeyborard-overlay{position:fixed;top:0;right:0;left:0;bottom:0;background-color:#dedede33}.wakekeyborard .wakekeyborard-inputbox{display:flex;flex-direction:row;height:85px;position:absolute;bottom:0;left:0;right:0}.wakekeyborard .wakekeyborard-inputbox input{flex:2}.wakekeyborard .wakekeyborard-inputbox button{flex:1}.pda-step-card{display:flex;flex-direction:row}.pda-step-card .pda-step-indictor{display:flex;flex-direction:column;align-items:center;margin-right:16px}.pda-step-card .pda-step-indictor .pda-step-indictor-top{width:1px;background-color:#bec0c6;flex:1}.pda-step-card .pda-step-indictor .pda-step-indictor-top-hidden{background-color:#fff0}.pda-step-card .pda-step-indictor .pda-step-indictor-center{height:24px;width:24px;border-radius:12px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-center-active{background-color:#0091ea}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom{flex:1;width:1px;background-color:#bec0c6}.pda-step-card .pda-step-indictor .pda-step-indictor-bottom-hidden{background-color:#fff0}.pda-step{border-radius:16px;padding:24px 16px;background-color:#fff;margin-bottom:16px}.pda-step p{margin:0}.pda-step .pda-step-title{font-size:60px;color:#0091ea}.pda-step .pda-step-list{margin-top:8px;color:#4a4a4a;font-size:32px;line-height:32px}.pda-step.pda-step-dark{background-color:#000}.pda-step.pda-step-dark .pda-step-title{color:#fff}.pda-step.pda-step-dark .pda-step-list{color:#bec0c6}.pda-finish-card-top{height:100%;display:flex;flex-direction:column;align-items:center;color:#fff}.pda-finish-card-top .pda-finish-card-img{width:100%;margin:100px auto 0}.pda-finish-card-top .pda-finish-card-title{font-size:50px;line-height:45px;color:#fff;font-weight:500;margin-bottom:16px}.pda-finish-card-top .pda-finish-card-list{margin-top:16px;color:#ffffff80;font-size:32px;line-height:30px}.pda-distance-card{border-radius:16px;padding:36px 16px;background-color:#fff}.pda-distance-card p{margin:0;font-size:28px;color:#738399}.pda-distance-card .pda-distance-card-highlight{font-size:60px;line-height:64px;color:#0091ea}.pda-distance-card .pda-distance-indictor{margin-top:36px;display:flex}.pda-distance-card .pda-distance-card-progress{background-color:#ebecf2;height:34px;border-radius:6px;border:4px solid #D9D9D9;margin-top:8px;position:relative}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-indictor{position:absolute;bottom:0;left:5px}.pda-distance-card .pda-distance-card-progress .pda-distance-card-progress-inside{background-color:#0091ea;height:26px;border-radius:6px 0 0 6px}.pda-distance-card .pda-distance-label{display:flex;justify-content:space-between}.android-sub-card{background:#282828;border-radius:16px;padding:10px;color:#fff}.android-sub-card .android-sub-card-title-section{display:flex;justify-content:space-between}.android-sub-card .android-sub-card-title-section .android-sub-card-title{opacity:.6;font-size:21.312px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag{margin-bottom:0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div{padding:6px 10px;border-radius:4px;background-color:#0091ea;color:#fff;font-size:15.984px;line-height:15.984px}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.success{background-color:#0f0}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.warning{background-color:#fc0;color:#000}.android-sub-card .android-sub-card-title-section .android-sub-card-tag>div.error{background-color:red}.android-sub-card .android-sub-card-context{font-size:39.6px;margin:-6px 0}.android-sub-card .android-sub-card-name{font-size:26.4px}.android-sub-card .android-sub-card-attrs{opacity:.6;font-size:21.12px}.pda-app-list .pda-app-group{margin:25px}.pda-app-list .pda-app-group .group-name{line-height:1em;margin:0;font-size:32px;color:#fff;font-weight:400;opacity:.6}.pda-app-list .pda-app-group .group-apps{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:25px}.pda-app-list .pda-app-group .group-apps .app-item{display:flex;flex-direction:column;justify-content:center;align-items:center;background-image:linear-gradient(138deg,#0091EA 0%,#095FFF 100%);border-radius:12px;font-size:32px;color:#fff;min-height:126px;flex:1;min-width:48%;max-width:48%;margin-bottom:25px;cursor:pointer}.pda-app-list .pda-app-group .group-apps .app-item:hover{background-image:linear-gradient(45deg,#0091EA 0%,#095FFF 100%)}.pda-app-list .pda-app-group .group-apps .app-item .app-name{text-align:center}.pda-app-list .pda-app-group .group-apps .app-item .app-subname{font-size:50%}.pda-infinite-scroll{margin-top:10px}.pda-infinite-scroll span{color:#999}.pda-infinite-scroll .pda-infinite-scroll-view{display:flex;align-items:center;justify-content:center}.pda-action-sheet{position:absolute;z-index:1000;width:100%;height:100%;background-color:#00000059;display:none}.pda-action-sheet .pda-action-sheet-body{position:absolute;background-color:#fff;z-index:1010;width:100%;bottom:0;left:0;border-radius:9.9px 9.9px 0 0;padding-bottom:10.56px}.pda-action-sheet .pda-action-sheet-body .pda-action-sheet-item{margin:10.56px 15.84px 0;background-color:#f3f4f8;height:54px;display:flex;align-items:center;justify-content:center;font-size:24px;border-radius:9.9px}.pda-action-sheet.show{display:block}.pda-action-sheet.show .pda-action-sheet-body{animation:slide-in .3s ease-out}@keyframes slide-in{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cniot/android-pda-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./es/index.cjs.js",
|
|
6
6
|
"module": "./es/index.es.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ahooks": "^2.10.11",
|
|
17
17
|
"classnames": "^2.3.1",
|
|
18
18
|
"history": "^5.0.1",
|
|
19
|
+
"keycode": "^2.2.1",
|
|
19
20
|
"less": "^4.1.1",
|
|
20
21
|
"react": "^17.0.2",
|
|
21
22
|
"react-dom": "^17.0.2"
|