lula2 0.8.11 → 0.9.0
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/_app/immutable/chunks/{BwQjulyY.js → CdJEnKns.js} +1 -1
- package/dist/_app/immutable/chunks/{B0U_2Wn0.js → D0gFZGZF.js} +1 -1
- package/dist/_app/immutable/chunks/{RG1JlO7P.js → S6YlURmO.js} +1 -1
- package/dist/_app/immutable/chunks/{BfBT_e06.js → hVr0KxW1.js} +1 -1
- package/dist/_app/immutable/entry/{app.Bfooy4tR.js → app.ByeCP5Xm.js} +2 -2
- package/dist/_app/immutable/entry/start.FuG7wFo0.js +1 -0
- package/dist/_app/immutable/nodes/{0.DF7RwD08.js → 0.CjWUor9S.js} +1 -1
- package/dist/_app/immutable/nodes/{1.DgvEOIW7.js → 1.GZ_FtWiS.js} +1 -1
- package/dist/_app/immutable/nodes/{2.DytJrAZ3.js → 2.DaglxKDX.js} +1 -1
- package/dist/_app/immutable/nodes/{3.B4YILzBR.js → 3.DROCg9aC.js} +1 -1
- package/dist/_app/immutable/nodes/{4.BK6VqOWz.js → 4.DueKxC_Y.js} +1 -1
- package/dist/_app/version.json +1 -1
- package/dist/cli/commands/ui.js +19 -18
- package/dist/cli/server/index.js +19 -18
- package/dist/cli/server/server.js +19 -18
- package/dist/cli/server/spreadsheetRoutes.js +19 -18
- package/dist/cli/server/websocketServer.js +19 -18
- package/dist/index.html +6 -6
- package/dist/index.js +19 -18
- package/package.json +1 -1
- package/dist/_app/immutable/entry/start.9KqV0Jfd.js +0 -1
|
@@ -1598,6 +1598,7 @@ __export(spreadsheetRoutes_exports, {
|
|
|
1598
1598
|
default: () => spreadsheetRoutes_default,
|
|
1599
1599
|
detectValueType: () => detectValueType,
|
|
1600
1600
|
extractFamilyFromControlId: () => extractFamilyFromControlId,
|
|
1601
|
+
formatMappingEntry: () => formatMappingEntry,
|
|
1601
1602
|
parseCSV: () => parseCSV,
|
|
1602
1603
|
parseUploadedFile: () => parseUploadedFile,
|
|
1603
1604
|
processImportParameters: () => processImportParameters,
|
|
@@ -2078,6 +2079,16 @@ function extractFamilyFromControlId(controlId) {
|
|
|
2078
2079
|
}
|
|
2079
2080
|
return controlId.substring(0, 2).toUpperCase();
|
|
2080
2081
|
}
|
|
2082
|
+
function formatMappingEntry(mapping) {
|
|
2083
|
+
const justification = mapping.description || mapping.justification || "";
|
|
2084
|
+
const status = mapping.status || "Unknown";
|
|
2085
|
+
const cci = mapping.cci || "";
|
|
2086
|
+
const finalJustification = justification.trim() !== "" ? justification : `[${status}]`;
|
|
2087
|
+
if (cci.trim() !== "") {
|
|
2088
|
+
return `CCI ${cci}: ${finalJustification}`;
|
|
2089
|
+
}
|
|
2090
|
+
return finalJustification;
|
|
2091
|
+
}
|
|
2081
2092
|
function exportAsCSV(controls, metadata, mappingsColumn, res) {
|
|
2082
2093
|
return exportAsCSVWithMapping(controls, metadata, { mappings: mappingsColumn }, res);
|
|
2083
2094
|
}
|
|
@@ -2169,11 +2180,7 @@ function exportAsCSVWithMapping(controls, metadata, columnMappings, res) {
|
|
|
2169
2180
|
}
|
|
2170
2181
|
if (value === void 0 || value === null) return '""';
|
|
2171
2182
|
if (fieldName === "mappings" && Array.isArray(value)) {
|
|
2172
|
-
const mappingsStr = value.map((m) =>
|
|
2173
|
-
const justification = m.description || m.justification || "";
|
|
2174
|
-
const status = m.status || "Unknown";
|
|
2175
|
-
return justification.trim() !== "" ? justification : `[${status}]`;
|
|
2176
|
-
}).join("\n");
|
|
2183
|
+
const mappingsStr = value.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
2177
2184
|
return `"${mappingsStr.replace(/"/g, '""')}"`;
|
|
2178
2185
|
}
|
|
2179
2186
|
if (Array.isArray(value)) return `"${value.join("; ").replace(/"/g, '""')}"`;
|
|
@@ -2264,12 +2271,8 @@ async function exportAsExcelWithMapping(controls, metadata, columnMappings, res)
|
|
|
2264
2271
|
if (isMappingColumn) {
|
|
2265
2272
|
const mappingsValue = control["mappings"];
|
|
2266
2273
|
if (Array.isArray(mappingsValue) && mappingsValue.length > 0) {
|
|
2267
|
-
const mappingsStr = mappingsValue.map((m) => m
|
|
2268
|
-
|
|
2269
|
-
value = mappingsStr;
|
|
2270
|
-
} else {
|
|
2271
|
-
value = control[fieldName];
|
|
2272
|
-
}
|
|
2274
|
+
const mappingsStr = mappingsValue.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
2275
|
+
value = mappingsStr;
|
|
2273
2276
|
} else {
|
|
2274
2277
|
value = control[fieldName];
|
|
2275
2278
|
}
|
|
@@ -2277,11 +2280,7 @@ async function exportAsExcelWithMapping(controls, metadata, columnMappings, res)
|
|
|
2277
2280
|
value = control[fieldName];
|
|
2278
2281
|
}
|
|
2279
2282
|
if (fieldName === "mappings" && Array.isArray(value)) {
|
|
2280
|
-
const mappingsStr = value.map((m) =>
|
|
2281
|
-
const justification = m.description || m.justification || "";
|
|
2282
|
-
const status = m.status || "Unknown";
|
|
2283
|
-
return justification.trim() !== "" ? justification : `[${status}]`;
|
|
2284
|
-
}).join("\n");
|
|
2283
|
+
const mappingsStr = value.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
2285
2284
|
exportControl[displayName] = mappingsStr;
|
|
2286
2285
|
} else if (Array.isArray(value)) {
|
|
2287
2286
|
exportControl[displayName] = value.join("; ");
|
|
@@ -2417,7 +2416,8 @@ var init_spreadsheetRoutes = __esm({
|
|
|
2417
2416
|
mappings: controlMappings.map((m) => ({
|
|
2418
2417
|
uuid: m.uuid,
|
|
2419
2418
|
status: m.status,
|
|
2420
|
-
description: m.justification || ""
|
|
2419
|
+
description: m.justification || "",
|
|
2420
|
+
cci: m.cci || ""
|
|
2421
2421
|
}))
|
|
2422
2422
|
};
|
|
2423
2423
|
});
|
|
@@ -2527,7 +2527,8 @@ var init_spreadsheetRoutes = __esm({
|
|
|
2527
2527
|
mappings: controlMappings.map((m) => ({
|
|
2528
2528
|
uuid: m.uuid,
|
|
2529
2529
|
status: m.status,
|
|
2530
|
-
description: m.justification || ""
|
|
2530
|
+
description: m.justification || "",
|
|
2531
|
+
cci: m.cci || ""
|
|
2531
2532
|
}))
|
|
2532
2533
|
};
|
|
2533
2534
|
});
|
package/dist/index.html
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
<link rel="icon" href="/lula.png" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
8
|
|
|
9
|
-
<link rel="modulepreload" href="/_app/immutable/entry/start.
|
|
10
|
-
<link rel="modulepreload" href="/_app/immutable/chunks/
|
|
9
|
+
<link rel="modulepreload" href="/_app/immutable/entry/start.FuG7wFo0.js">
|
|
10
|
+
<link rel="modulepreload" href="/_app/immutable/chunks/CdJEnKns.js">
|
|
11
11
|
<link rel="modulepreload" href="/_app/immutable/chunks/DHuA7MQr.js">
|
|
12
|
-
<link rel="modulepreload" href="/_app/immutable/entry/app.
|
|
12
|
+
<link rel="modulepreload" href="/_app/immutable/entry/app.ByeCP5Xm.js">
|
|
13
13
|
<link rel="modulepreload" href="/_app/immutable/chunks/DSxRA67V.js">
|
|
14
14
|
<link rel="modulepreload" href="/_app/immutable/chunks/Ew6_cz_0.js">
|
|
15
15
|
<link rel="modulepreload" href="/_app/immutable/chunks/CC6oS456.js">
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
<div style="display: contents">
|
|
20
20
|
<script>
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
__sveltekit_1h3h5rz = {
|
|
23
23
|
base: ""
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
const element = document.currentScript.parentElement;
|
|
27
27
|
|
|
28
28
|
Promise.all([
|
|
29
|
-
import("/_app/immutable/entry/start.
|
|
30
|
-
import("/_app/immutable/entry/app.
|
|
29
|
+
import("/_app/immutable/entry/start.FuG7wFo0.js"),
|
|
30
|
+
import("/_app/immutable/entry/app.ByeCP5Xm.js")
|
|
31
31
|
]).then(([kit, app]) => {
|
|
32
32
|
kit.start(app, element);
|
|
33
33
|
});
|
package/dist/index.js
CHANGED
|
@@ -3170,6 +3170,7 @@ __export(spreadsheetRoutes_exports, {
|
|
|
3170
3170
|
default: () => spreadsheetRoutes_default,
|
|
3171
3171
|
detectValueType: () => detectValueType,
|
|
3172
3172
|
extractFamilyFromControlId: () => extractFamilyFromControlId,
|
|
3173
|
+
formatMappingEntry: () => formatMappingEntry,
|
|
3173
3174
|
parseCSV: () => parseCSV,
|
|
3174
3175
|
parseUploadedFile: () => parseUploadedFile,
|
|
3175
3176
|
processImportParameters: () => processImportParameters,
|
|
@@ -3650,6 +3651,16 @@ function extractFamilyFromControlId(controlId) {
|
|
|
3650
3651
|
}
|
|
3651
3652
|
return controlId.substring(0, 2).toUpperCase();
|
|
3652
3653
|
}
|
|
3654
|
+
function formatMappingEntry(mapping) {
|
|
3655
|
+
const justification = mapping.description || mapping.justification || "";
|
|
3656
|
+
const status = mapping.status || "Unknown";
|
|
3657
|
+
const cci = mapping.cci || "";
|
|
3658
|
+
const finalJustification = justification.trim() !== "" ? justification : `[${status}]`;
|
|
3659
|
+
if (cci.trim() !== "") {
|
|
3660
|
+
return `CCI ${cci}: ${finalJustification}`;
|
|
3661
|
+
}
|
|
3662
|
+
return finalJustification;
|
|
3663
|
+
}
|
|
3653
3664
|
function exportAsCSV(controls, metadata, mappingsColumn, res) {
|
|
3654
3665
|
return exportAsCSVWithMapping(controls, metadata, { mappings: mappingsColumn }, res);
|
|
3655
3666
|
}
|
|
@@ -3741,11 +3752,7 @@ function exportAsCSVWithMapping(controls, metadata, columnMappings, res) {
|
|
|
3741
3752
|
}
|
|
3742
3753
|
if (value === void 0 || value === null) return '""';
|
|
3743
3754
|
if (fieldName === "mappings" && Array.isArray(value)) {
|
|
3744
|
-
const mappingsStr = value.map((m) =>
|
|
3745
|
-
const justification = m.description || m.justification || "";
|
|
3746
|
-
const status = m.status || "Unknown";
|
|
3747
|
-
return justification.trim() !== "" ? justification : `[${status}]`;
|
|
3748
|
-
}).join("\n");
|
|
3755
|
+
const mappingsStr = value.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
3749
3756
|
return `"${mappingsStr.replace(/"/g, '""')}"`;
|
|
3750
3757
|
}
|
|
3751
3758
|
if (Array.isArray(value)) return `"${value.join("; ").replace(/"/g, '""')}"`;
|
|
@@ -3836,12 +3843,8 @@ async function exportAsExcelWithMapping(controls, metadata, columnMappings, res)
|
|
|
3836
3843
|
if (isMappingColumn) {
|
|
3837
3844
|
const mappingsValue = control["mappings"];
|
|
3838
3845
|
if (Array.isArray(mappingsValue) && mappingsValue.length > 0) {
|
|
3839
|
-
const mappingsStr = mappingsValue.map((m) => m
|
|
3840
|
-
|
|
3841
|
-
value = mappingsStr;
|
|
3842
|
-
} else {
|
|
3843
|
-
value = control[fieldName];
|
|
3844
|
-
}
|
|
3846
|
+
const mappingsStr = mappingsValue.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
3847
|
+
value = mappingsStr;
|
|
3845
3848
|
} else {
|
|
3846
3849
|
value = control[fieldName];
|
|
3847
3850
|
}
|
|
@@ -3849,11 +3852,7 @@ async function exportAsExcelWithMapping(controls, metadata, columnMappings, res)
|
|
|
3849
3852
|
value = control[fieldName];
|
|
3850
3853
|
}
|
|
3851
3854
|
if (fieldName === "mappings" && Array.isArray(value)) {
|
|
3852
|
-
const mappingsStr = value.map((m) =>
|
|
3853
|
-
const justification = m.description || m.justification || "";
|
|
3854
|
-
const status = m.status || "Unknown";
|
|
3855
|
-
return justification.trim() !== "" ? justification : `[${status}]`;
|
|
3856
|
-
}).join("\n");
|
|
3855
|
+
const mappingsStr = value.map((m) => formatMappingEntry(m)).join("\n\n");
|
|
3857
3856
|
exportControl[displayName] = mappingsStr;
|
|
3858
3857
|
} else if (Array.isArray(value)) {
|
|
3859
3858
|
exportControl[displayName] = value.join("; ");
|
|
@@ -3989,7 +3988,8 @@ var init_spreadsheetRoutes = __esm({
|
|
|
3989
3988
|
mappings: controlMappings.map((m) => ({
|
|
3990
3989
|
uuid: m.uuid,
|
|
3991
3990
|
status: m.status,
|
|
3992
|
-
description: m.justification || ""
|
|
3991
|
+
description: m.justification || "",
|
|
3992
|
+
cci: m.cci || ""
|
|
3993
3993
|
}))
|
|
3994
3994
|
};
|
|
3995
3995
|
});
|
|
@@ -4099,7 +4099,8 @@ var init_spreadsheetRoutes = __esm({
|
|
|
4099
4099
|
mappings: controlMappings.map((m) => ({
|
|
4100
4100
|
uuid: m.uuid,
|
|
4101
4101
|
status: m.status,
|
|
4102
|
-
description: m.justification || ""
|
|
4102
|
+
description: m.justification || "",
|
|
4103
|
+
cci: m.cci || ""
|
|
4103
4104
|
}))
|
|
4104
4105
|
};
|
|
4105
4106
|
});
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/BwQjulyY.js";export{o as load_css,r as start};
|