MCPcopy
hub / github.com/webpack/webpack / _getParentDescription

Function _getParentDescription

test/configCases/inner-graph/issue-11678/module.js:1158–1212  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1156 }
1157}
1158function _getParentDescription(name) {
1159 let text = "";
1160 if (_parentTableSelection) {
1161 switch (name) {
1162 case ModuleNameEnum.SIHEADER:
1163 {
1164 const hPk = getPKfromModule();
1165 text +=
1166 SITITLE +
1167 " " +
1168 hPk.idSiBook +
1169 '<span class="subtitle"> / ' +
1170 hPk.siHeaderId +
1171 "</small>";
1172 }
1173 break;
1174 case ModuleNameEnum.JOB:
1175 text +=
1176 _parentTableSelection.job_matchcode +
1177 ' <span class="subtitle">(' +
1178 _parentTableSelection.job_intno +
1179 ")</small>";
1180 break;
1181 case ModuleNameEnum.CEHEADER:
1182 text +=
1183 CETITLE +
1184 " " +
1185 _parentTableSelection.cehe_bookid +
1186 "/" +
1187 _parentTableSelection.cehe_headerid +
1188 " - Var. " +
1189 _parentTableSelection.cehe_variantid;
1190 break;
1191 case ModuleNameEnum.ORDER:
1192 text +=
1193 ORDERTITLE +
1194 " " +
1195 _parentTableSelection.orde_orderbookid +
1196 "/" +
1197 _parentTableSelection.orde_orderheaderid;
1198 break;
1199 case ModuleNameEnum.CIHEADER:
1200 text +=
1201 CITITLE +
1202 " " +
1203 _parentTableSelection.cihe_bookid +
1204 "/" +
1205 _parentTableSelection.cihe_ciheaderid;
1206 break;
1207 default:
1208 throw new Error('Invalid event "' + name + '"');
1209 }
1210 }
1211 return text;
1212}
1213async function onClickTable(selection, formState) {
1214 const selectionLength = selection.length;
1215 if (selectionLength === 0) {

Callers 1

_showTableInTableFunction · 0.85

Calls 1

getPKfromModuleFunction · 0.85

Tested by

no test coverage detected