@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
package/dist/index.js
CHANGED
|
@@ -5287,9 +5287,7 @@ function mapDukeFormControlKind(kind, themePalette) {
|
|
|
5287
5287
|
...resolveDukeDrawingText(kind.caption, themePalette),
|
|
5288
5288
|
kind: kind.objectType.toLowerCase() === "editbox" ? "editbox" : "unknown",
|
|
5289
5289
|
legacyObjectType: kind.legacyObjectType,
|
|
5290
|
-
objectType: kind.objectType
|
|
5291
|
-
rawObj: kind.rawObj,
|
|
5292
|
-
rawProperties: kind.rawProperties
|
|
5290
|
+
objectType: kind.objectType
|
|
5293
5291
|
};
|
|
5294
5292
|
}
|
|
5295
5293
|
}
|
|
@@ -5306,6 +5304,8 @@ function mapDukeFormControl(control, controlIndex, workbookSheetIndex, themePale
|
|
|
5306
5304
|
name: control.name,
|
|
5307
5305
|
printable: control.printable,
|
|
5308
5306
|
rawClientData: control.formControl.rawClientData,
|
|
5307
|
+
rawObj: control.formControl.rawObj,
|
|
5308
|
+
rawProperties: control.formControl.rawProperties,
|
|
5309
5309
|
sheetIndex: workbookSheetIndex,
|
|
5310
5310
|
title: control.title,
|
|
5311
5311
|
workbookSheetIndex,
|
|
@@ -7490,18 +7490,14 @@ function xlsxFormControlKindToDukeKind(kind) {
|
|
|
7490
7490
|
caption: xlsxCaptionToDukeText(kind.caption),
|
|
7491
7491
|
kind: "unknown",
|
|
7492
7492
|
legacyObjectType: kind.legacyObjectType,
|
|
7493
|
-
objectType: "EditBox"
|
|
7494
|
-
rawObj: kind.rawObj,
|
|
7495
|
-
rawProperties: kind.rawProperties
|
|
7493
|
+
objectType: "EditBox"
|
|
7496
7494
|
};
|
|
7497
7495
|
case "unknown":
|
|
7498
7496
|
return {
|
|
7499
7497
|
caption: kind.caption ? xlsxCaptionToDukeText(kind.caption) : void 0,
|
|
7500
7498
|
kind: "unknown",
|
|
7501
7499
|
legacyObjectType: kind.legacyObjectType,
|
|
7502
|
-
objectType: kind.objectType
|
|
7503
|
-
rawObj: kind.rawObj,
|
|
7504
|
-
rawProperties: kind.rawProperties
|
|
7500
|
+
objectType: kind.objectType
|
|
7505
7501
|
};
|
|
7506
7502
|
default:
|
|
7507
7503
|
return { ...kind };
|
|
@@ -7516,9 +7512,7 @@ function dukeFormControlKindToInput(kind) {
|
|
|
7516
7512
|
caption: kind.caption,
|
|
7517
7513
|
kind: "unknown",
|
|
7518
7514
|
legacyObjectType: kind.legacyObjectType,
|
|
7519
|
-
objectType: kind.objectType
|
|
7520
|
-
rawObj: kind.rawObj,
|
|
7521
|
-
rawProperties: kind.rawProperties
|
|
7515
|
+
objectType: kind.objectType
|
|
7522
7516
|
};
|
|
7523
7517
|
}
|
|
7524
7518
|
return { ...kind };
|
|
@@ -7530,7 +7524,9 @@ function formControlInputFromDukeControl(control) {
|
|
|
7530
7524
|
formControl: {
|
|
7531
7525
|
kind: dukeFormControlKindToInput(control.formControl.kind),
|
|
7532
7526
|
macroName: control.formControl.macroName,
|
|
7533
|
-
rawClientData: control.formControl.rawClientData
|
|
7527
|
+
rawClientData: control.formControl.rawClientData,
|
|
7528
|
+
rawObj: control.formControl.rawObj,
|
|
7529
|
+
rawProperties: control.formControl.rawProperties
|
|
7534
7530
|
},
|
|
7535
7531
|
hidden: control.hidden,
|
|
7536
7532
|
kind: "formControl",
|
|
@@ -7547,7 +7543,9 @@ function xlsxFormControlInputToDukeDrawing(input) {
|
|
|
7547
7543
|
formControl: {
|
|
7548
7544
|
kind: xlsxFormControlKindToDukeKind(input.kind),
|
|
7549
7545
|
macroName: input.macroName,
|
|
7550
|
-
rawClientData: input.rawClientData
|
|
7546
|
+
rawClientData: input.rawClientData,
|
|
7547
|
+
rawObj: input.kind.kind === "editbox" || input.kind.kind === "unknown" ? input.kind.rawObj : void 0,
|
|
7548
|
+
rawProperties: input.kind.kind === "editbox" || input.kind.kind === "unknown" ? input.kind.rawProperties : void 0
|
|
7551
7549
|
},
|
|
7552
7550
|
hidden: input.hidden,
|
|
7553
7551
|
kind: "formControl",
|
|
@@ -9591,11 +9589,11 @@ function useXlsxViewerController(options) {
|
|
|
9591
9589
|
if (currentControl.formControl.kind.kind === "unknown" && nextKind.kind === "unknown") {
|
|
9592
9590
|
nextKind = {
|
|
9593
9591
|
...nextKind,
|
|
9594
|
-
legacyObjectType: nextKind.legacyObjectType ?? currentControl.formControl.kind.legacyObjectType
|
|
9595
|
-
rawObj: nextKind.rawObj ?? currentControl.formControl.kind.rawObj,
|
|
9596
|
-
rawProperties: nextKind.rawProperties ?? currentControl.formControl.kind.rawProperties
|
|
9592
|
+
legacyObjectType: nextKind.legacyObjectType ?? currentControl.formControl.kind.legacyObjectType
|
|
9597
9593
|
};
|
|
9598
9594
|
}
|
|
9595
|
+
const patchedRawObj = patch.kind?.kind === "editbox" || patch.kind?.kind === "unknown" ? patch.kind.rawObj : void 0;
|
|
9596
|
+
const patchedRawProperties = patch.kind?.kind === "editbox" || patch.kind?.kind === "unknown" ? patch.kind.rawProperties : void 0;
|
|
9599
9597
|
const nextInput = {
|
|
9600
9598
|
altText: "altText" in patch ? patch.altText : currentControl.altText,
|
|
9601
9599
|
anchor: nextAnchor,
|
|
@@ -9603,7 +9601,9 @@ function useXlsxViewerController(options) {
|
|
|
9603
9601
|
...currentInput.formControl,
|
|
9604
9602
|
kind: nextKind,
|
|
9605
9603
|
macroName: "macroName" in patch ? patch.macroName : currentControl.formControl.macroName,
|
|
9606
|
-
rawClientData: "rawClientData" in patch ? patch.rawClientData : currentControl.formControl.rawClientData
|
|
9604
|
+
rawClientData: "rawClientData" in patch ? patch.rawClientData : currentControl.formControl.rawClientData,
|
|
9605
|
+
rawObj: patchedRawObj ?? currentControl.formControl.rawObj,
|
|
9606
|
+
rawProperties: patchedRawProperties ?? currentControl.formControl.rawProperties
|
|
9607
9607
|
},
|
|
9608
9608
|
hidden: "hidden" in patch ? patch.hidden : currentControl.hidden,
|
|
9609
9609
|
kind: "formControl",
|