dattatable 2.10.79 → 2.10.81
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.d.ts +1 -1
- package/build/common/listCfg.js +25 -7
- package/dist/dattatable.js +569 -569
- 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
|
@@ -52,11 +52,29 @@ var ListConfig = /** @class */ (function () {
|
|
|
52
52
|
var lookupItem = lookupData.items[i];
|
|
53
53
|
// Set the metadata type
|
|
54
54
|
lookupItem["__metadata"] = { type: list.ListItemEntityTypeFullName };
|
|
55
|
-
//
|
|
56
|
-
|
|
55
|
+
// See if the item exists
|
|
56
|
+
var createFl = true;
|
|
57
|
+
for (var j = 0; j < currItems.results.length; j++) {
|
|
58
|
+
var currItem = currItems.results[j];
|
|
59
|
+
// See if the item already exists
|
|
60
|
+
if (currItem[lookupData.field] == lookupItem[lookupData.field]) {
|
|
61
|
+
// Set the flag
|
|
62
|
+
createFl = false;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// See if we are creating the item
|
|
67
|
+
if (createFl) {
|
|
68
|
+
// Create the item
|
|
69
|
+
dstList.Items().add(lookupItem).batch(function (item) {
|
|
70
|
+
// Log
|
|
71
|
+
console.log("[" + lookupData.list + "] Item added: " + item[lookupData.field]);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
57
75
|
// Log
|
|
58
|
-
console.log("[" + lookupData.list + "] Item
|
|
59
|
-
}
|
|
76
|
+
console.log("[" + lookupData.list + "] Item already exists: " + lookupItem[lookupData.field]);
|
|
77
|
+
}
|
|
60
78
|
}
|
|
61
79
|
// Execute the batch job
|
|
62
80
|
dstList.execute(function () {
|
|
@@ -99,7 +117,7 @@ var ListConfig = /** @class */ (function () {
|
|
|
99
117
|
return new Promise(function (resolve, reject) {
|
|
100
118
|
// Get the list information
|
|
101
119
|
var list = new list_1.List({
|
|
102
|
-
listName: props.srcList
|
|
120
|
+
listName: props.srcList,
|
|
103
121
|
webUrl: props.srcWebUrl,
|
|
104
122
|
itemQuery: { Filter: "Id eq 0" },
|
|
105
123
|
onInitError: function () {
|
|
@@ -120,7 +138,7 @@ var ListConfig = /** @class */ (function () {
|
|
|
120
138
|
AllowContentTypes: list.ListInfo.AllowContentTypes,
|
|
121
139
|
BaseTemplate: list.ListInfo.BaseTemplate,
|
|
122
140
|
ContentTypesEnabled: list.ListInfo.ContentTypesEnabled,
|
|
123
|
-
Title: props.srcList
|
|
141
|
+
Title: props.srcList,
|
|
124
142
|
Hidden: list.ListInfo.Hidden,
|
|
125
143
|
NoCrawl: list.ListInfo.NoCrawl
|
|
126
144
|
},
|
|
@@ -536,7 +554,7 @@ var ListConfig = /** @class */ (function () {
|
|
|
536
554
|
props.showDialog ? loadingDialog_1.LoadingDialog.setBody("Generating the configuration for: " + list.Title) : null;
|
|
537
555
|
// Generate the lookup list configuration
|
|
538
556
|
_this.generate({
|
|
539
|
-
srcList: list,
|
|
557
|
+
srcList: list.Title,
|
|
540
558
|
srcWebUrl: props.srcWebUrl,
|
|
541
559
|
showDialog: false
|
|
542
560
|
}).then(
|