@extend-ai/react-xlsx 0.16.1 → 0.16.2
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/dist/duke_sheets_wasm_bg.wasm +0 -0
- package/dist/index.cjs +18 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/xlsx-worker.js +3 -3
- package/dist/xlsx-worker.js.map +1 -1
- package/package.json +2 -2
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -5337,9 +5337,7 @@ function mapDukeFormControlKind(kind, themePalette) {
|
|
|
5337
5337
|
...resolveDukeDrawingText(kind.caption, themePalette),
|
|
5338
5338
|
kind: kind.objectType.toLowerCase() === "editbox" ? "editbox" : "unknown",
|
|
5339
5339
|
legacyObjectType: kind.legacyObjectType,
|
|
5340
|
-
objectType: kind.objectType
|
|
5341
|
-
rawObj: kind.rawObj,
|
|
5342
|
-
rawProperties: kind.rawProperties
|
|
5340
|
+
objectType: kind.objectType
|
|
5343
5341
|
};
|
|
5344
5342
|
}
|
|
5345
5343
|
}
|
|
@@ -5356,6 +5354,8 @@ function mapDukeFormControl(control, controlIndex, workbookSheetIndex, themePale
|
|
|
5356
5354
|
name: control.name,
|
|
5357
5355
|
printable: control.printable,
|
|
5358
5356
|
rawClientData: control.formControl.rawClientData,
|
|
5357
|
+
rawObj: control.formControl.rawObj,
|
|
5358
|
+
rawProperties: control.formControl.rawProperties,
|
|
5359
5359
|
sheetIndex: workbookSheetIndex,
|
|
5360
5360
|
title: control.title,
|
|
5361
5361
|
workbookSheetIndex,
|
|
@@ -7541,18 +7541,14 @@ function xlsxFormControlKindToDukeKind(kind) {
|
|
|
7541
7541
|
caption: xlsxCaptionToDukeText(kind.caption),
|
|
7542
7542
|
kind: "unknown",
|
|
7543
7543
|
legacyObjectType: kind.legacyObjectType,
|
|
7544
|
-
objectType: "EditBox"
|
|
7545
|
-
rawObj: kind.rawObj,
|
|
7546
|
-
rawProperties: kind.rawProperties
|
|
7544
|
+
objectType: "EditBox"
|
|
7547
7545
|
};
|
|
7548
7546
|
case "unknown":
|
|
7549
7547
|
return {
|
|
7550
7548
|
caption: kind.caption ? xlsxCaptionToDukeText(kind.caption) : void 0,
|
|
7551
7549
|
kind: "unknown",
|
|
7552
7550
|
legacyObjectType: kind.legacyObjectType,
|
|
7553
|
-
objectType: kind.objectType
|
|
7554
|
-
rawObj: kind.rawObj,
|
|
7555
|
-
rawProperties: kind.rawProperties
|
|
7551
|
+
objectType: kind.objectType
|
|
7556
7552
|
};
|
|
7557
7553
|
default:
|
|
7558
7554
|
return { ...kind };
|
|
@@ -7567,9 +7563,7 @@ function dukeFormControlKindToInput(kind) {
|
|
|
7567
7563
|
caption: kind.caption,
|
|
7568
7564
|
kind: "unknown",
|
|
7569
7565
|
legacyObjectType: kind.legacyObjectType,
|
|
7570
|
-
objectType: kind.objectType
|
|
7571
|
-
rawObj: kind.rawObj,
|
|
7572
|
-
rawProperties: kind.rawProperties
|
|
7566
|
+
objectType: kind.objectType
|
|
7573
7567
|
};
|
|
7574
7568
|
}
|
|
7575
7569
|
return { ...kind };
|
|
@@ -7581,7 +7575,9 @@ function formControlInputFromDukeControl(control) {
|
|
|
7581
7575
|
formControl: {
|
|
7582
7576
|
kind: dukeFormControlKindToInput(control.formControl.kind),
|
|
7583
7577
|
macroName: control.formControl.macroName,
|
|
7584
|
-
rawClientData: control.formControl.rawClientData
|
|
7578
|
+
rawClientData: control.formControl.rawClientData,
|
|
7579
|
+
rawObj: control.formControl.rawObj,
|
|
7580
|
+
rawProperties: control.formControl.rawProperties
|
|
7585
7581
|
},
|
|
7586
7582
|
hidden: control.hidden,
|
|
7587
7583
|
kind: "formControl",
|
|
@@ -7598,7 +7594,9 @@ function xlsxFormControlInputToDukeDrawing(input) {
|
|
|
7598
7594
|
formControl: {
|
|
7599
7595
|
kind: xlsxFormControlKindToDukeKind(input.kind),
|
|
7600
7596
|
macroName: input.macroName,
|
|
7601
|
-
rawClientData: input.rawClientData
|
|
7597
|
+
rawClientData: input.rawClientData,
|
|
7598
|
+
rawObj: input.kind.kind === "editbox" || input.kind.kind === "unknown" ? input.kind.rawObj : void 0,
|
|
7599
|
+
rawProperties: input.kind.kind === "editbox" || input.kind.kind === "unknown" ? input.kind.rawProperties : void 0
|
|
7602
7600
|
},
|
|
7603
7601
|
hidden: input.hidden,
|
|
7604
7602
|
kind: "formControl",
|
|
@@ -9642,11 +9640,11 @@ function useXlsxViewerController(options) {
|
|
|
9642
9640
|
if (currentControl.formControl.kind.kind === "unknown" && nextKind.kind === "unknown") {
|
|
9643
9641
|
nextKind = {
|
|
9644
9642
|
...nextKind,
|
|
9645
|
-
legacyObjectType: nextKind.legacyObjectType ?? currentControl.formControl.kind.legacyObjectType
|
|
9646
|
-
rawObj: nextKind.rawObj ?? currentControl.formControl.kind.rawObj,
|
|
9647
|
-
rawProperties: nextKind.rawProperties ?? currentControl.formControl.kind.rawProperties
|
|
9643
|
+
legacyObjectType: nextKind.legacyObjectType ?? currentControl.formControl.kind.legacyObjectType
|
|
9648
9644
|
};
|
|
9649
9645
|
}
|
|
9646
|
+
const patchedRawObj = patch.kind?.kind === "editbox" || patch.kind?.kind === "unknown" ? patch.kind.rawObj : void 0;
|
|
9647
|
+
const patchedRawProperties = patch.kind?.kind === "editbox" || patch.kind?.kind === "unknown" ? patch.kind.rawProperties : void 0;
|
|
9650
9648
|
const nextInput = {
|
|
9651
9649
|
altText: "altText" in patch ? patch.altText : currentControl.altText,
|
|
9652
9650
|
anchor: nextAnchor,
|
|
@@ -9654,7 +9652,9 @@ function useXlsxViewerController(options) {
|
|
|
9654
9652
|
...currentInput.formControl,
|
|
9655
9653
|
kind: nextKind,
|
|
9656
9654
|
macroName: "macroName" in patch ? patch.macroName : currentControl.formControl.macroName,
|
|
9657
|
-
rawClientData: "rawClientData" in patch ? patch.rawClientData : currentControl.formControl.rawClientData
|
|
9655
|
+
rawClientData: "rawClientData" in patch ? patch.rawClientData : currentControl.formControl.rawClientData,
|
|
9656
|
+
rawObj: patchedRawObj ?? currentControl.formControl.rawObj,
|
|
9657
|
+
rawProperties: patchedRawProperties ?? currentControl.formControl.rawProperties
|
|
9658
9658
|
},
|
|
9659
9659
|
hidden: "hidden" in patch ? patch.hidden : currentControl.hidden,
|
|
9660
9660
|
kind: "formControl",
|