dattatable 2.10.91 → 2.10.93
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/list.d.ts +4 -1
- package/build/common/list.js +16 -2
- package/build/dashboard/index.js +2 -2
- package/dist/dattatable.js +569 -569
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.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 +6 -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 +4 -3
- 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/list.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import { IItemFormCreateProps, IItemFormEditProps, IItemFormViewProps } from "."
|
|
|
4
4
|
export interface IListProps<T = Types.SP.ListItem> {
|
|
5
5
|
camlQuery?: string;
|
|
6
6
|
itemQuery?: Types.IODataQuery;
|
|
7
|
-
|
|
7
|
+
listId?: string;
|
|
8
|
+
listName?: string;
|
|
8
9
|
viewName?: string;
|
|
9
10
|
onInitError?: (...args: any[]) => void;
|
|
10
11
|
onInitialized?: () => void;
|
|
@@ -37,6 +38,8 @@ export declare class List<T = Types.SP.ListItem> {
|
|
|
37
38
|
get ListViews(): Types.SP.ViewOData[];
|
|
38
39
|
private _items;
|
|
39
40
|
get Items(): T[];
|
|
41
|
+
private _listId;
|
|
42
|
+
get ListId(): string;
|
|
40
43
|
private _listName;
|
|
41
44
|
get ListName(): string;
|
|
42
45
|
private _odata;
|
package/build/common/list.js
CHANGED
|
@@ -25,6 +25,8 @@ var List = /** @class */ (function () {
|
|
|
25
25
|
this._listViews = null;
|
|
26
26
|
// Items
|
|
27
27
|
this._items = null;
|
|
28
|
+
// List Id
|
|
29
|
+
this._listId = null;
|
|
28
30
|
// List Name
|
|
29
31
|
this._listName = null;
|
|
30
32
|
// OData query
|
|
@@ -54,6 +56,7 @@ var List = /** @class */ (function () {
|
|
|
54
56
|
this._requestDigest = null;
|
|
55
57
|
// Save the properties
|
|
56
58
|
this._camlQuery = props.camlQuery;
|
|
59
|
+
this._listId = props.listId;
|
|
57
60
|
this._listName = props.listName;
|
|
58
61
|
this._odata = props.itemQuery;
|
|
59
62
|
this._onInitError = props.onInitError;
|
|
@@ -154,6 +157,11 @@ var List = /** @class */ (function () {
|
|
|
154
157
|
enumerable: false,
|
|
155
158
|
configurable: true
|
|
156
159
|
});
|
|
160
|
+
Object.defineProperty(List.prototype, "ListId", {
|
|
161
|
+
get: function () { return this._listId; },
|
|
162
|
+
enumerable: false,
|
|
163
|
+
configurable: true
|
|
164
|
+
});
|
|
157
165
|
Object.defineProperty(List.prototype, "ListName", {
|
|
158
166
|
get: function () { return this._listName; },
|
|
159
167
|
enumerable: false,
|
|
@@ -294,12 +302,18 @@ var List = /** @class */ (function () {
|
|
|
294
302
|
var _this = this;
|
|
295
303
|
// Return a promise
|
|
296
304
|
return new Promise(function (resolve, reject) {
|
|
297
|
-
|
|
305
|
+
// Set the web
|
|
306
|
+
var web = (0, gd_sprest_bs_1.Web)(_this.WebUrl, {
|
|
298
307
|
disableCache: true,
|
|
299
308
|
requestDigest: _this._requestDigest
|
|
300
|
-
})
|
|
309
|
+
});
|
|
310
|
+
// Get the list
|
|
311
|
+
var list = _this.ListId ? web.Lists().getById(_this.ListId) : web.Lists(_this.ListName);
|
|
301
312
|
// Query the list content types
|
|
302
313
|
list.execute(function (list) {
|
|
314
|
+
// Set the list id/name
|
|
315
|
+
_this._listId = list.Id;
|
|
316
|
+
_this._listName = list.Title;
|
|
303
317
|
// Save the list information
|
|
304
318
|
_this._listInfo = list;
|
|
305
319
|
}, function () {
|
package/build/dashboard/index.js
CHANGED
|
@@ -234,7 +234,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
234
234
|
// Render the navigation
|
|
235
235
|
var navProps_2 = this._props.subNavigation || {};
|
|
236
236
|
var className = (headerIsVisible || navIsVisible ? null : "sub-nav-border") +
|
|
237
|
-
(navProps_2.className ? " " : "")
|
|
237
|
+
(navProps_2.className ? " " + navProps_2.className : "");
|
|
238
238
|
new navigation_1.Navigation({
|
|
239
239
|
el: this._props.el.querySelector("#sub-navigation"),
|
|
240
240
|
className: className,
|
|
@@ -299,7 +299,7 @@ var Dashboard = /** @class */ (function () {
|
|
|
299
299
|
// Render the footer
|
|
300
300
|
var footer = this._props.footer || {};
|
|
301
301
|
new footer_1.Footer({
|
|
302
|
-
className: "bg-sharepoint rounded-bottom" + (footer.className ? " " : "")
|
|
302
|
+
className: "bg-sharepoint rounded-bottom" + (footer.className ? " " + footer.className : ""),
|
|
303
303
|
el: this._props.el.querySelector("#footer"),
|
|
304
304
|
items: footer.items,
|
|
305
305
|
itemsEnd: footer.itemsEnd,
|