@visactor/react-vtable 1.9.2-alpha.1 → 1.9.2-alpha.3
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/cjs/components/radio/radio.js +2 -1
- package/cjs/components/tag/tag.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/react-vtable.js +9 -17
- package/dist/react-vtable.min.js +2 -2
- package/es/components/radio/radio.js +2 -1
- package/es/components/tag/tag.js +1 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -60,4 +60,5 @@ function RadioComponent(baseProps, ref) {
|
|
|
60
60
|
}, rest));
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
exports.Radio = react_1.default.forwardRef(RadioComponent), exports.Radio.displayName = "Radio";
|
|
63
|
+
exports.Radio = react_1.default.forwardRef(RadioComponent), exports.Radio.displayName = "Radio";
|
|
64
|
+
//# sourceMappingURL=radio.js.map
|
|
@@ -44,5 +44,4 @@ function TagComponent(baseProps, ref) {
|
|
|
44
44
|
}, rest));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
exports.Tag = react_1.default.forwardRef(TagComponent), exports.Tag.displayName = "Tag";
|
|
48
|
-
//# sourceMappingURL=tag.js.map
|
|
47
|
+
exports.Tag = react_1.default.forwardRef(TagComponent), exports.Tag.displayName = "Tag";
|
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -18,5 +18,5 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), exports.version = void 0, __exportStar(require("./tables"), exports), __exportStar(require("./table-components"), exports),
|
|
21
|
-
__exportStar(require("./components"), exports), exports.version = "1.9.2-alpha.
|
|
21
|
+
__exportStar(require("./components"), exports), exports.version = "1.9.2-alpha.3";
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.9.2-alpha.
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.9.2-alpha.3\";\n"]}
|
package/dist/react-vtable.js
CHANGED
|
@@ -4485,14 +4485,8 @@
|
|
|
4485
4485
|
return needTestLetter && (index = testLetter(desc, index)), index;
|
|
4486
4486
|
}
|
|
4487
4487
|
function testLetter(string, index) {
|
|
4488
|
-
let negativeWrongMatch = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
|
|
4489
4488
|
let i = index;
|
|
4490
|
-
for (; regLetter.test(string[i - 1]) && regLetter.test(string[i]) || regPunctuation.test(string[i]);) if (i--, i <= 0) return
|
|
4491
|
-
return i;
|
|
4492
|
-
}
|
|
4493
|
-
function testLetter2(string, index) {
|
|
4494
|
-
let i = index;
|
|
4495
|
-
for (; regLetter.test(string[i - 1]) && regLetter.test(string[i]) || regPunctuation.test(string[i]);) if (i++, i >= string.length) return i;
|
|
4489
|
+
for (; regLetter.test(string[i - 1]) && regLetter.test(string[i]) || regPunctuation.test(string[i]);) if (i--, i <= 0) return index;
|
|
4496
4490
|
return i;
|
|
4497
4491
|
}
|
|
4498
4492
|
function measureTextCanvas(text, character) {
|
|
@@ -7471,7 +7465,7 @@
|
|
|
7471
7465
|
validCheck(attribute, theme, aabbBounds, graphic) {
|
|
7472
7466
|
if (!graphic) return !0;
|
|
7473
7467
|
if (null != attribute.forceBoundsHeight || null != attribute.forceBoundsWidth) return !0;
|
|
7474
|
-
if (graphic.shadowRoot
|
|
7468
|
+
if (graphic.shadowRoot) return !0;
|
|
7475
7469
|
const {
|
|
7476
7470
|
visible = theme.visible
|
|
7477
7471
|
} = attribute;
|
|
@@ -8876,22 +8870,20 @@
|
|
|
8876
8870
|
});
|
|
8877
8871
|
break;
|
|
8878
8872
|
}
|
|
8879
|
-
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth, "break-
|
|
8880
|
-
if ("" !== str && "" === clip.str
|
|
8873
|
+
const clip = layoutObj.textMeasure.clipText(str, layoutObj.textOptions, maxLineWidth, "break-word" === wordBreak);
|
|
8874
|
+
if ("" !== str && "" === clip.str) {
|
|
8881
8875
|
if (ellipsis) {
|
|
8882
8876
|
const clipEllipsis = layoutObj.textMeasure.clipTextWithSuffix(str, layoutObj.textOptions, maxLineWidth, ellipsis, !1, suffixPosition);
|
|
8883
8877
|
clip.str = null !== (_c = clipEllipsis.str) && void 0 !== _c ? _c : "", clip.width = null !== (_d = clipEllipsis.width) && void 0 !== _d ? _d : 0;
|
|
8884
8878
|
} else clip.str = "", clip.width = 0;
|
|
8885
8879
|
needCut = !1;
|
|
8886
8880
|
}
|
|
8887
|
-
linesLayout.push({
|
|
8881
|
+
if (linesLayout.push({
|
|
8888
8882
|
str: clip.str,
|
|
8889
8883
|
width: clip.width
|
|
8890
|
-
});
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
let newStr = str.substring(cutLength);
|
|
8894
|
-
"keep-all" === wordBreak && (newStr = newStr.replace(/^\s+/g, "")), lines.splice(i + 1, 0, newStr);
|
|
8884
|
+
}), clip.str.length === str.length) ;else if (needCut) {
|
|
8885
|
+
const newStr = str.substring(clip.str.length);
|
|
8886
|
+
lines.splice(i + 1, 0, newStr);
|
|
8895
8887
|
}
|
|
8896
8888
|
}
|
|
8897
8889
|
let maxWidth = 0;
|
|
@@ -19696,7 +19688,7 @@
|
|
|
19696
19688
|
const Checkbox = React.forwardRef(CheckboxComponent);
|
|
19697
19689
|
Checkbox.displayName = 'Checkbox';
|
|
19698
19690
|
|
|
19699
|
-
const version = "1.9.2-alpha.
|
|
19691
|
+
const version = "1.9.2-alpha.3";
|
|
19700
19692
|
|
|
19701
19693
|
Object.defineProperty(exports, 'register', {
|
|
19702
19694
|
enumerable: true,
|