@10yun/cv-mobile-ui 0.4.11 → 0.5.1
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/package.json +1 -1
- package/plugins/MessageBox.js +2 -2
- package/plugins/MessageTip.js +4 -4
- package/plugins/request.js +54 -39
- package/plugins/storage.js +1 -4
- package/plugins/utils.js +13 -0
- package/ui-cv/cv-draw-barcode/barcode.js +225 -202
- package/ui-cv/cv-draw-barcode/barcodes/Barcode.js +14 -17
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/CODE128.js +202 -164
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/CODE128A.js +58 -35
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/CODE128B.js +58 -36
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/CODE128C.js +58 -34
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/CODE128_AUTO.js +50 -41
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/auto.js +43 -57
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/constants.js +71 -30
- package/ui-cv/cv-draw-barcode/barcodes/CODE128/index.js +11 -29
- package/ui-cv/cv-draw-barcode/barcodes/CODE39/index.js +150 -77
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/EAN.js +122 -90
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/EAN13.js +169 -111
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/EAN2.js +77 -56
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/EAN5.js +84 -60
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/EAN8.js +133 -74
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/UPC.js +174 -156
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/UPCE.js +220 -174
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/constants.js +80 -21
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/encoder.js +18 -24
- package/ui-cv/cv-draw-barcode/barcodes/EAN_UPC/index.js +15 -39
- package/ui-cv/cv-draw-barcode/barcodes/GenericBarcode/index.js +80 -55
- package/ui-cv/cv-draw-barcode/barcodes/ITF/ITF.js +99 -69
- package/ui-cv/cv-draw-barcode/barcodes/ITF/ITF14.js +73 -45
- package/ui-cv/cv-draw-barcode/barcodes/ITF/constants.js +8 -8
- package/ui-cv/cv-draw-barcode/barcodes/ITF/index.js +6 -18
- package/ui-cv/cv-draw-barcode/barcodes/MSI/MSI.js +86 -66
- package/ui-cv/cv-draw-barcode/barcodes/MSI/MSI10.js +40 -33
- package/ui-cv/cv-draw-barcode/barcodes/MSI/MSI1010.js +41 -35
- package/ui-cv/cv-draw-barcode/barcodes/MSI/MSI11.js +42 -33
- package/ui-cv/cv-draw-barcode/barcodes/MSI/MSI1110.js +37 -35
- package/ui-cv/cv-draw-barcode/barcodes/MSI/checksums.js +22 -25
- package/ui-cv/cv-draw-barcode/barcodes/MSI/index.js +13 -34
- package/ui-cv/cv-draw-barcode/barcodes/codabar/index.js +120 -90
- package/ui-cv/cv-draw-barcode/barcodes/common.js +0 -0
- package/ui-cv/cv-draw-barcode/barcodes/index.js +32 -33
- package/ui-cv/cv-draw-barcode/barcodes/index.tmp.js +32 -33
- package/ui-cv/cv-draw-barcode/barcodes/pharmacode/index.js +93 -71
- package/ui-cv/cv-draw-barcode/cv-draw-barcode.vue +4 -4
- package/ui-cv/cv-icons/icons/default-icons.js +132 -0
- package/ui-cv/cv-icons/icons/icons-action.js +72 -0
- package/ui-cv/cv-icons/icons/icons-arrow.js +46 -0
- package/ui-cv/cv-icons/icons/icons-base.js +89 -0
- package/ui-cv/cv-icons/icons/icons-mall.js +34 -0
- package/ui-cv/cv-icons/icons/icons-media.js +44 -0
- package/ui-cv/cv-icons/icons/icons-order.js +33 -0
- package/ui-cv/cv-icons/icons/icons-people.js +46 -0
- package/ui-cv/cv-icons/icons/icons-status.js +32 -0
- package/ui-cv/cv-icons/icons/icons-wallet.js +15 -0
- package/ui-cv/cv-icons/icons.js +14 -13
- package/ui-cv/cv-lists-base/cv-lists-base.vue +0 -2
- package/ui-cv/cv-tab-lists/cv-tab-lists.vue +0 -2
- package/ui-uni/u-charts/u-charts.js +1093 -744
- package/ui-uni/uni-list/uni-refresh.wxs +1 -1
- package/ui-uni/uni-swipe-action-item/index.wxs +6 -6
|
@@ -1,42 +1,66 @@
|
|
|
1
|
-
|
|
1
|
+
import _constants from './constants.js';
|
|
2
|
+
import CODE128 from './CODE128.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var _createClass = (function () {
|
|
5
|
+
function defineProperties(target, props) {
|
|
6
|
+
for (var i = 0; i < props.length; i++) {
|
|
7
|
+
var descriptor = props[i];
|
|
8
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
9
|
+
descriptor.configurable = true;
|
|
10
|
+
if ('value' in descriptor) descriptor.writable = true;
|
|
11
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return function (Constructor, protoProps, staticProps) {
|
|
15
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
|
16
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
|
17
|
+
return Constructor;
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
6
20
|
|
|
7
|
-
|
|
21
|
+
function _classCallCheck(instance, Constructor) {
|
|
22
|
+
if (!(instance instanceof Constructor)) {
|
|
23
|
+
throw new TypeError('Cannot call a class as a function');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
8
26
|
|
|
9
|
-
|
|
27
|
+
function _possibleConstructorReturn(self, call) {
|
|
28
|
+
if (!self) {
|
|
29
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
30
|
+
}
|
|
31
|
+
return call && (typeof call === 'object' || typeof call === 'function') ? call : self;
|
|
32
|
+
}
|
|
10
33
|
|
|
11
|
-
|
|
34
|
+
function _inherits(subClass, superClass) {
|
|
35
|
+
if (typeof superClass !== 'function' && superClass !== null) {
|
|
36
|
+
throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);
|
|
37
|
+
}
|
|
38
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
39
|
+
constructor: { value: subClass, enumerable: false, writable: true, configurable: true }
|
|
40
|
+
});
|
|
41
|
+
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : (subClass.__proto__ = superClass);
|
|
42
|
+
}
|
|
12
43
|
|
|
13
|
-
var
|
|
44
|
+
var CODE128C = (function (_CODE) {
|
|
45
|
+
_inherits(CODE128C, _CODE);
|
|
46
|
+
function CODE128C(string, options) {
|
|
47
|
+
_classCallCheck(this, CODE128C);
|
|
48
|
+
return _possibleConstructorReturn(
|
|
49
|
+
this,
|
|
50
|
+
(CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options)
|
|
51
|
+
);
|
|
52
|
+
}
|
|
14
53
|
|
|
15
|
-
|
|
54
|
+
_createClass(CODE128C, [
|
|
55
|
+
{
|
|
56
|
+
key: 'valid',
|
|
57
|
+
value: function valid() {
|
|
58
|
+
return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
16
62
|
|
|
17
|
-
|
|
63
|
+
return CODE128C;
|
|
64
|
+
})(CODE128);
|
|
18
65
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
22
|
-
|
|
23
|
-
var CODE128C = function (_CODE) {
|
|
24
|
-
_inherits(CODE128C, _CODE);
|
|
25
|
-
|
|
26
|
-
function CODE128C(string, options) {
|
|
27
|
-
_classCallCheck(this, CODE128C);
|
|
28
|
-
|
|
29
|
-
return _possibleConstructorReturn(this, (CODE128C.__proto__ || Object.getPrototypeOf(CODE128C)).call(this, _constants.C_START_CHAR + string, options));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_createClass(CODE128C, [{
|
|
33
|
-
key: 'valid',
|
|
34
|
-
value: function valid() {
|
|
35
|
-
return new RegExp('^' + _constants.C_CHARS + '+$').test(this.data);
|
|
36
|
-
}
|
|
37
|
-
}]);
|
|
38
|
-
|
|
39
|
-
return CODE128C;
|
|
40
|
-
}(_CODE3.default);
|
|
41
|
-
|
|
42
|
-
exports.default = CODE128C;
|
|
66
|
+
export default CODE128C;
|
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
import CODE128 from './CODE128.js';
|
|
2
|
+
import autoFunc from './auto.js';
|
|
3
|
+
|
|
4
|
+
function _classCallCheck(instance, Constructor) {
|
|
5
|
+
if (!(instance instanceof Constructor)) {
|
|
6
|
+
throw new TypeError('Cannot call a class as a function');
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
function _possibleConstructorReturn(self, call) {
|
|
10
|
+
if (!self) {
|
|
11
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12
|
+
}
|
|
13
|
+
return call && (typeof call === 'object' || typeof call === 'function') ? call : self;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function _inherits(subClass, superClass) {
|
|
17
|
+
if (typeof superClass !== 'function' && superClass !== null) {
|
|
18
|
+
throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);
|
|
19
|
+
}
|
|
20
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
21
|
+
constructor: { value: subClass, enumerable: false, writable: true, configurable: true }
|
|
22
|
+
});
|
|
23
|
+
if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : (subClass.__proto__ = superClass);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var CODE128AUTO = (function (_CODE) {
|
|
27
|
+
_inherits(CODE128AUTO, _CODE);
|
|
28
|
+
|
|
29
|
+
function CODE128AUTO(data, options) {
|
|
30
|
+
_classCallCheck(this, CODE128AUTO);
|
|
31
|
+
|
|
32
|
+
// ASCII value ranges 0-127, 200-211
|
|
33
|
+
if (/^[\x00-\x7F\xC8-\xD3]+$/.test(data)) {
|
|
34
|
+
var _this = _possibleConstructorReturn(
|
|
35
|
+
this,
|
|
36
|
+
(CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, (0, autoFunc)(data), options)
|
|
37
|
+
);
|
|
38
|
+
} else {
|
|
39
|
+
var _this = _possibleConstructorReturn(
|
|
40
|
+
this,
|
|
41
|
+
(CODE128AUTO.__proto__ || Object.getPrototypeOf(CODE128AUTO)).call(this, data, options)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
return _possibleConstructorReturn(_this);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
return CODE128AUTO;
|
|
48
|
+
})(CODE128);
|
|
49
|
+
|
|
50
|
+
export default CODE128AUTO;
|
|
@@ -1,73 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
var _constants = require('./constants');
|
|
1
|
+
import _constants from './constants.js';
|
|
8
2
|
|
|
9
3
|
// Match Set functions
|
|
10
4
|
var matchSetALength = function matchSetALength(string) {
|
|
11
|
-
|
|
5
|
+
return string.match(new RegExp('^' + _constants.A_CHARS + '*'))[0].length;
|
|
12
6
|
};
|
|
13
7
|
var matchSetBLength = function matchSetBLength(string) {
|
|
14
|
-
|
|
8
|
+
return string.match(new RegExp('^' + _constants.B_CHARS + '*'))[0].length;
|
|
15
9
|
};
|
|
16
10
|
var matchSetC = function matchSetC(string) {
|
|
17
|
-
|
|
11
|
+
return string.match(new RegExp('^' + _constants.C_CHARS + '*'))[0];
|
|
18
12
|
};
|
|
19
13
|
|
|
20
14
|
// CODE128A or CODE128B
|
|
21
15
|
function autoSelectFromAB(string, isA) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA);
|
|
16
|
+
var ranges = isA ? _constants.A_CHARS : _constants.B_CHARS;
|
|
17
|
+
var untilC = string.match(new RegExp('^(' + ranges + '+?)(([0-9]{2}){2,})([^0-9]|$)'));
|
|
18
|
+
if (untilC) {
|
|
19
|
+
return untilC[1] + String.fromCharCode(204) + autoSelectFromC(string.substring(untilC[1].length));
|
|
20
|
+
}
|
|
21
|
+
var chars = string.match(new RegExp('^' + ranges + '+'))[0];
|
|
22
|
+
if (chars.length === string.length) {
|
|
23
|
+
return string;
|
|
24
|
+
}
|
|
25
|
+
return chars + String.fromCharCode(isA ? 205 : 206) + autoSelectFromAB(string.substring(chars.length), !isA);
|
|
36
26
|
}
|
|
37
|
-
|
|
38
27
|
// CODE128C
|
|
39
28
|
function autoSelectFromC(string) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
// Select A/B depending on the longest match
|
|
50
|
-
var isA = matchSetALength(string) >= matchSetBLength(string);
|
|
51
|
-
return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA);
|
|
29
|
+
var cMatch = matchSetC(string);
|
|
30
|
+
var length = cMatch.length;
|
|
31
|
+
if (length === string.length) {
|
|
32
|
+
return string;
|
|
33
|
+
}
|
|
34
|
+
string = string.substring(length);
|
|
35
|
+
// Select A/B depending on the longest match
|
|
36
|
+
var isA = matchSetALength(string) >= matchSetBLength(string);
|
|
37
|
+
return cMatch + String.fromCharCode(isA ? 206 : 205) + autoSelectFromAB(string, isA);
|
|
52
38
|
}
|
|
53
|
-
|
|
54
39
|
// Detect Code Set (A, B or C) and format the string
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
40
|
+
export default function (string) {
|
|
41
|
+
var newString = void 0;
|
|
42
|
+
var cLength = matchSetC(string).length;
|
|
43
|
+
|
|
44
|
+
// Select 128C if the string start with enough digits
|
|
45
|
+
if (cLength >= 2) {
|
|
46
|
+
newString = _constants.C_START_CHAR + autoSelectFromC(string);
|
|
47
|
+
} else {
|
|
48
|
+
// Select A/B depending on the longest match
|
|
49
|
+
var isA = matchSetALength(string) > matchSetBLength(string);
|
|
50
|
+
newString = (isA ? _constants.A_START_CHAR : _constants.B_START_CHAR) + autoSelectFromAB(string, isA);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return newString.replace(
|
|
54
|
+
/[\xCD\xCE]([^])[\xCD\xCE]/, // Any sequence between 205 and 206 characters
|
|
55
|
+
function (match, char) {
|
|
56
|
+
return String.fromCharCode(203) + char;
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -1,54 +1,95 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
|
|
7
1
|
var _SET_BY_CODE;
|
|
8
2
|
|
|
9
|
-
function _defineProperty(obj, key, value) {
|
|
3
|
+
function _defineProperty(obj, key, value) {
|
|
4
|
+
if (key in obj) {
|
|
5
|
+
Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });
|
|
6
|
+
} else {
|
|
7
|
+
obj[key] = value;
|
|
8
|
+
}
|
|
9
|
+
return obj;
|
|
10
|
+
}
|
|
10
11
|
|
|
11
12
|
// constants for internal usage
|
|
12
|
-
var SET_A =
|
|
13
|
-
var SET_B =
|
|
14
|
-
var SET_C =
|
|
15
|
-
|
|
13
|
+
var SET_A = 0;
|
|
14
|
+
var SET_B = 1;
|
|
15
|
+
var SET_C = 2;
|
|
16
16
|
// Special characters
|
|
17
|
-
var SHIFT =
|
|
18
|
-
var START_A =
|
|
19
|
-
var START_B =
|
|
20
|
-
var START_C =
|
|
21
|
-
var MODULO =
|
|
22
|
-
var STOP =
|
|
23
|
-
var FNC1 =
|
|
17
|
+
var SHIFT = 98;
|
|
18
|
+
var START_A = 103;
|
|
19
|
+
var START_B = 104;
|
|
20
|
+
var START_C = 105;
|
|
21
|
+
var MODULO = 103;
|
|
22
|
+
var STOP = 106;
|
|
23
|
+
var FNC1 = 207;
|
|
24
24
|
|
|
25
25
|
// Get set by start code
|
|
26
|
-
var
|
|
26
|
+
var _SET_BY_CODE = {};
|
|
27
|
+
var SET_BY_CODE =
|
|
28
|
+
({},
|
|
29
|
+
_defineProperty(_SET_BY_CODE, START_A, SET_A),
|
|
30
|
+
_defineProperty(_SET_BY_CODE, START_B, SET_B),
|
|
31
|
+
_defineProperty(_SET_BY_CODE, START_C, SET_C),
|
|
32
|
+
_SET_BY_CODE);
|
|
27
33
|
|
|
28
34
|
// Get next set by code
|
|
29
|
-
var SWAP =
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
var SWAP = {
|
|
36
|
+
101: SET_A,
|
|
37
|
+
100: SET_B,
|
|
38
|
+
99: SET_C
|
|
33
39
|
};
|
|
34
40
|
|
|
35
|
-
var A_START_CHAR =
|
|
36
|
-
var B_START_CHAR =
|
|
37
|
-
var C_START_CHAR =
|
|
41
|
+
var A_START_CHAR = String.fromCharCode(208); // START_A + 105
|
|
42
|
+
var B_START_CHAR = String.fromCharCode(209); // START_B + 105
|
|
43
|
+
var C_START_CHAR = String.fromCharCode(210); // START_C + 105
|
|
38
44
|
|
|
39
45
|
// 128A (Code Set A)
|
|
40
46
|
// ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4
|
|
41
|
-
var A_CHARS =
|
|
47
|
+
var A_CHARS = '[\x00-\x5F\xC8-\xCF]';
|
|
42
48
|
|
|
43
49
|
// 128B (Code Set B)
|
|
44
50
|
// ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4
|
|
45
|
-
var B_CHARS =
|
|
51
|
+
var B_CHARS = '[\x20-\x7F\xC8-\xCF]';
|
|
46
52
|
|
|
47
53
|
// 128C (Code Set C)
|
|
48
54
|
// 00–99 (encodes two digits with a single code point) and FNC1
|
|
49
|
-
var C_CHARS =
|
|
55
|
+
var C_CHARS = '(\xCF*[0-9]{2}\xCF*)';
|
|
50
56
|
|
|
51
57
|
// CODE128 includes 107 symbols:
|
|
52
58
|
// 103 data symbols, 3 start symbols (A, B and C), and 1 stop symbol (the last one)
|
|
53
59
|
// Each symbol consist of three black bars (1) and three white spaces (0).
|
|
54
|
-
var BARS =
|
|
60
|
+
var BARS = [
|
|
61
|
+
11011001100, 11001101100, 11001100110, 10010011000, 10010001100, 10001001100, 10011001000, 10011000100, 10001100100,
|
|
62
|
+
11001001000, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110,
|
|
63
|
+
11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110,
|
|
64
|
+
11101100100, 11100110100, 11100110010, 11011011000, 11011000110, 11000110110, 10100011000, 10001011000, 10001000110,
|
|
65
|
+
10110001000, 10001101000, 10001100010, 11010001000, 11000101000, 11000100010, 10110111000, 10110001110, 10001101110,
|
|
66
|
+
10111011000, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101000, 11011100010, 11011101110,
|
|
67
|
+
11101011000, 11101000110, 11100010110, 11101101000, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010,
|
|
68
|
+
10100110000, 10100001100, 10010110000, 10010000110, 10000101100, 10000100110, 10110010000, 10110000100, 10011010000,
|
|
69
|
+
10011000010, 10000110100, 10000110010, 11000010010, 11001010000, 11110111010, 11000010100, 10001111010, 10100111100,
|
|
70
|
+
10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110,
|
|
71
|
+
11011110110, 11110110110, 10101111000, 10100011110, 10001011110, 10111101000, 10111100010, 11110101000, 11110100010,
|
|
72
|
+
10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 11010010000, 11010011100, 1100011101011
|
|
73
|
+
];
|
|
74
|
+
|
|
75
|
+
export default {
|
|
76
|
+
SET_A: SET_A,
|
|
77
|
+
SET_B: SET_B,
|
|
78
|
+
SET_C: SET_C,
|
|
79
|
+
SHIFT: SHIFT,
|
|
80
|
+
START_A: START_A,
|
|
81
|
+
START_B: START_B,
|
|
82
|
+
START_C: START_C,
|
|
83
|
+
MODULO: MODULO,
|
|
84
|
+
STOP: STOP,
|
|
85
|
+
FNC1: FNC1,
|
|
86
|
+
SET_BY_CODE: SET_BY_CODE,
|
|
87
|
+
SWAP: SWAP,
|
|
88
|
+
A_START_CHAR: A_START_CHAR,
|
|
89
|
+
B_START_CHAR: B_START_CHAR,
|
|
90
|
+
C_START_CHAR: C_START_CHAR,
|
|
91
|
+
A_CHARS: A_CHARS,
|
|
92
|
+
B_CHARS: B_CHARS,
|
|
93
|
+
C_CHARS: C_CHARS,
|
|
94
|
+
BARS: BARS
|
|
95
|
+
};
|
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _CODE128A = require('./CODE128A.js');
|
|
13
|
-
|
|
14
|
-
var _CODE128A2 = _interopRequireDefault(_CODE128A);
|
|
15
|
-
|
|
16
|
-
var _CODE128B = require('./CODE128B.js');
|
|
17
|
-
|
|
18
|
-
var _CODE128B2 = _interopRequireDefault(_CODE128B);
|
|
19
|
-
|
|
20
|
-
var _CODE128C = require('./CODE128C.js');
|
|
21
|
-
|
|
22
|
-
var _CODE128C2 = _interopRequireDefault(_CODE128C);
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
exports.CODE128 = _CODE128_AUTO2.default;
|
|
27
|
-
exports.CODE128A = _CODE128A2.default;
|
|
28
|
-
exports.CODE128B = _CODE128B2.default;
|
|
29
|
-
exports.CODE128C = _CODE128C2.default;
|
|
1
|
+
import CODE128_AUTO from './CODE128_AUTO.js';
|
|
2
|
+
import CODE128A from './CODE128A.js';
|
|
3
|
+
import CODE128B from './CODE128B.js';
|
|
4
|
+
import CODE128C from './CODE128C.js';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
CODE128: CODE128_AUTO,
|
|
8
|
+
CODE128A: CODE128A,
|
|
9
|
+
CODE128B: CODE128B,
|
|
10
|
+
CODE128C: CODE128C
|
|
11
|
+
};
|