@corbe30/fortune-excel 2.2.2 → 2.2.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.
|
@@ -573,8 +573,8 @@ var FortuneSheet = /** @class */ (function (_super) {
|
|
|
573
573
|
var attrList = row.attributeList;
|
|
574
574
|
var ref = (0, method_1.getXmlAttibute)(attrList, "ref", null), refArr = (0, method_1.getMultiSequenceToNum)(ref), _display = (0, method_1.getXmlAttibute)(attrList, "display", null), _address = (0, method_1.getXmlAttibute)(attrList, "location", null), _tooltip = (0, method_1.getXmlAttibute)(attrList, "tooltip", null);
|
|
575
575
|
var _type = _address
|
|
576
|
-
? "
|
|
577
|
-
: "
|
|
576
|
+
? "cellrange"
|
|
577
|
+
: "webpage";
|
|
578
578
|
// external hyperlink
|
|
579
579
|
if (!_address) {
|
|
580
580
|
var rid_1 = attrList["r:id"];
|
|
@@ -583,7 +583,10 @@ var FortuneSheet = /** @class */ (function (_super) {
|
|
|
583
583
|
var findRid = relationshipList === null || relationshipList === void 0 ? void 0 : relationshipList.find(function (e) { return e.attributeList["Id"] === rid_1; });
|
|
584
584
|
if (findRid) {
|
|
585
585
|
_address = findRid.attributeList["Target"];
|
|
586
|
-
|
|
586
|
+
var type = (_a = findRid.attributeList["TargetMode"]) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase();
|
|
587
|
+
if (type === "external") {
|
|
588
|
+
_type = "webpage";
|
|
589
|
+
}
|
|
587
590
|
}
|
|
588
591
|
}
|
|
589
592
|
// match R1C1
|
|
@@ -298,4 +298,4 @@ export interface IfortunesheetHyperlinkValue {
|
|
|
298
298
|
linkType: IfortunesheetHyperlinkType;
|
|
299
299
|
display: string;
|
|
300
300
|
}
|
|
301
|
-
export type IfortunesheetHyperlinkType = "
|
|
301
|
+
export type IfortunesheetHyperlinkType = "webpage" | "cellrange" | "sheet";
|