sales-frontend-bridge 0.0.36 → 0.0.38
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/index.cjs +23 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -64
- package/dist/index.d.ts +45 -64
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -2322,6 +2322,8 @@ var ExtraData = {
|
|
|
2322
2322
|
args: [`roleCd=11,21`, `aaa=bbb`]
|
|
2323
2323
|
}
|
|
2324
2324
|
};
|
|
2325
|
+
var policyNumber = "300034894";
|
|
2326
|
+
var fpInfo = { uniqNo: "2210000" };
|
|
2325
2327
|
|
|
2326
2328
|
// src/oz/hooks/use-document-info.tsx
|
|
2327
2329
|
var import_react = __toESM(require_react());
|
|
@@ -2456,6 +2458,12 @@ function PromiseWithResolvers() {
|
|
|
2456
2458
|
});
|
|
2457
2459
|
return { promise, resolve, reject };
|
|
2458
2460
|
}
|
|
2461
|
+
function ensureArray(arg) {
|
|
2462
|
+
return Array.isArray(arg) ? DeepCopy(arg) : [];
|
|
2463
|
+
}
|
|
2464
|
+
function DeepCopy(arg) {
|
|
2465
|
+
return JSON.parse(JSON.stringify(arg));
|
|
2466
|
+
}
|
|
2459
2467
|
|
|
2460
2468
|
// src/oz/utils/bridge-util/oz-wrapper-util.ts
|
|
2461
2469
|
async function CreateOzViewer(ozParam) {
|
|
@@ -2790,12 +2798,18 @@ async function CreateOzParam(documentList, extraData = {}) {
|
|
|
2790
2798
|
if (data.inputJson) {
|
|
2791
2799
|
result.push(`${prefix}connection.inputjson=${JSON.stringify(data.inputJson)}`);
|
|
2792
2800
|
}
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
}
|
|
2801
|
+
const args = [
|
|
2802
|
+
// 모든서식에 공통으로 필요한 docCd param 추가
|
|
2803
|
+
`docCd=${docCode}`,
|
|
2804
|
+
...ensureArray(data.args)
|
|
2805
|
+
];
|
|
2806
|
+
args.forEach((arg, idx2) => result.push(`${prefix}connection.args${idx2 + 1}=${arg}`));
|
|
2807
|
+
const extraParam = [
|
|
2808
|
+
// connection.args의 갯수만큼 pcount 보정
|
|
2809
|
+
`connection.pcount=${args.length}`,
|
|
2810
|
+
...ensureArray(data.extraParam)
|
|
2811
|
+
];
|
|
2812
|
+
extraParam.forEach((param) => result.push(`${prefix}${param}`));
|
|
2799
2813
|
return result;
|
|
2800
2814
|
});
|
|
2801
2815
|
const params = [
|
|
@@ -2891,15 +2905,18 @@ exports.commonOzParam = commonOzParam;
|
|
|
2891
2905
|
exports.commonPdfExportParam = commonPdfExportParam;
|
|
2892
2906
|
exports.disableFocusOnValidation = disableFocusOnValidation;
|
|
2893
2907
|
exports.enableFocusOnValidation = enableFocusOnValidation;
|
|
2908
|
+
exports.ensureArray = ensureArray;
|
|
2894
2909
|
exports.extractFileName = extractFileName;
|
|
2895
2910
|
exports.fetchDocument = fetchDocument;
|
|
2896
2911
|
exports.fetchFont = fetchFont;
|
|
2912
|
+
exports.fpInfo = fpInfo;
|
|
2897
2913
|
exports.getCurrentPage = getCurrentPage;
|
|
2898
2914
|
exports.getFileListByGlobalIndex = getFileListByGlobalIndex;
|
|
2899
2915
|
exports.getReportCountMemo = getReportCountMemo;
|
|
2900
2916
|
exports.getTotalPageMemo = getTotalPageMemo;
|
|
2901
2917
|
exports.getTotalPageOnAllDocuments = getTotalPageOnAllDocuments;
|
|
2902
2918
|
exports.isCommentMode = isCommentMode;
|
|
2919
|
+
exports.policyNumber = policyNumber;
|
|
2903
2920
|
exports.setCheckEform = setCheckEform;
|
|
2904
2921
|
exports.setDisableCommentMode = setDisableCommentMode;
|
|
2905
2922
|
exports.setEnableCommentMode = setEnableCommentMode;
|