dattatable 2.10.72 → 2.10.73
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/build/common/listCfg.js +30 -8
- package/dist/dattatable.js +581 -581
- package/dist/dattatable.min.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +3 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +2 -2
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/common/listCfg.js
CHANGED
|
@@ -147,6 +147,10 @@ var ListConfig = /** @class */ (function () {
|
|
|
147
147
|
var fieldRefs = [];
|
|
148
148
|
for (var j = 0; j < ct.FieldLinks.results.length; j++) {
|
|
149
149
|
var fieldLink = ct.FieldLinks.results[j];
|
|
150
|
+
// Ignore the Taxonomy fields, they will get added automatically
|
|
151
|
+
if (fieldLink.Name == "TaxCatchAll" || fieldLink.Name == "TaxCatchAllLabel") {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
150
154
|
// Get the field
|
|
151
155
|
var field = list.getField(fieldLink.Name);
|
|
152
156
|
// See if this is a lookup field
|
|
@@ -328,18 +332,33 @@ var ListConfig = /** @class */ (function () {
|
|
|
328
332
|
// Remove all properties, except for the TextField property
|
|
329
333
|
var removeProps = [];
|
|
330
334
|
var props_1 = schemaXml.querySelector("ArrayOfProperty");
|
|
331
|
-
|
|
335
|
+
var _loop_2 = function (j) {
|
|
332
336
|
// See if this isn't the text field property
|
|
333
337
|
var prop = props_1.children[j];
|
|
334
338
|
if (prop.querySelector("Name").innerHTML == "TextField") {
|
|
335
339
|
// Find the hidden text field for this MMS field
|
|
336
|
-
var
|
|
337
|
-
if (
|
|
338
|
-
//
|
|
339
|
-
fields[
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
var field_1 = list.getFieldById(prop.querySelector("Value").innerHTML);
|
|
341
|
+
if (field_1) {
|
|
342
|
+
// Ensure we haven't already added it
|
|
343
|
+
if (fields[field_1.InternalName] != true) {
|
|
344
|
+
// Append the field
|
|
345
|
+
fields[field_1.InternalName] = true;
|
|
346
|
+
cfgProps.ListCfg[0].CustomFields.push({
|
|
347
|
+
name: field_1.InternalName,
|
|
348
|
+
schemaXml: field_1.SchemaXml
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
// Parse the content types
|
|
352
|
+
gd_sprest_bs_1.Helper.Executor(cfgProps.ListCfg[0].ContentTypes, function (ct) {
|
|
353
|
+
// Parse the field links
|
|
354
|
+
for (var i = 0; i < ct.FieldRefs.length; i++) {
|
|
355
|
+
// See if this is the target field
|
|
356
|
+
if (ct.FieldRefs[i] == field_1.InternalName) {
|
|
357
|
+
// Remove this from the content types
|
|
358
|
+
ct.FieldRefs.splice(i, 1);
|
|
359
|
+
break;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
343
362
|
});
|
|
344
363
|
}
|
|
345
364
|
}
|
|
@@ -347,6 +366,9 @@ var ListConfig = /** @class */ (function () {
|
|
|
347
366
|
// Remove it
|
|
348
367
|
removeProps.push(prop);
|
|
349
368
|
}
|
|
369
|
+
};
|
|
370
|
+
for (var j = props_1.children.length - 1; j >= 0; j--) {
|
|
371
|
+
_loop_2(j);
|
|
350
372
|
}
|
|
351
373
|
// Remove the properties
|
|
352
374
|
for (var i = 0; i < removeProps.length; i++) {
|