dattatable 0.9.3 → 0.9.7
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/documents.d.ts +71 -0
- package/build/common/documents.js +922 -0
- package/build/common/index.d.ts +2 -0
- package/build/common/index.js +6 -2
- package/build/common/installRequired.js +1 -1
- package/build/common/methods.d.ts +3 -0
- package/build/common/methods.js +41 -0
- package/build/dashboard/navigation.js +1 -1
- package/build/index.js +3 -1
- package/build/styles.js +1 -1
- package/dist/dattatable.js +1017 -764
- package/dist/dattatable.min.js +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +51 -8
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +18 -0
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +3 -0
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/modules.html +2 -2
- package/package.json +10 -9
- package/pnpm-lock.yaml +206 -176
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Components, Types } from "gd-sprest-bs";
|
|
2
|
+
import { DataTable } from "../dashboard/table";
|
|
3
|
+
/**
|
|
4
|
+
* Properties
|
|
5
|
+
*/
|
|
6
|
+
export interface IDocumentsProps {
|
|
7
|
+
enableSearch?: boolean;
|
|
8
|
+
query?: Types.IODataQuery;
|
|
9
|
+
table?: {
|
|
10
|
+
columns: Components.ITableColumn[];
|
|
11
|
+
dtProps?: any;
|
|
12
|
+
onRendered?: (el?: HTMLElement, dt?: any) => void;
|
|
13
|
+
rows?: any[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Documents
|
|
18
|
+
* Renders a data table containing the contents of a document library.
|
|
19
|
+
*/
|
|
20
|
+
export declare class Documents {
|
|
21
|
+
private static _props;
|
|
22
|
+
/** The data table. */
|
|
23
|
+
private static _dt;
|
|
24
|
+
static get DataTable(): DataTable;
|
|
25
|
+
/** The document set item id. */
|
|
26
|
+
private static _docSetId;
|
|
27
|
+
static get DocSetId(): number;
|
|
28
|
+
static set DocSetId(value: number);
|
|
29
|
+
/** The library name. */
|
|
30
|
+
private static _listName;
|
|
31
|
+
static get ListName(): string;
|
|
32
|
+
static set ListName(value: string);
|
|
33
|
+
private static _canDelete;
|
|
34
|
+
static get CanDelete(): boolean;
|
|
35
|
+
static set CanDelete(value: boolean);
|
|
36
|
+
private static _canEdit;
|
|
37
|
+
static get CanEdit(): boolean;
|
|
38
|
+
static set CanEdit(value: boolean);
|
|
39
|
+
private static _canView;
|
|
40
|
+
static get CanView(): boolean;
|
|
41
|
+
static set CanView(value: boolean);
|
|
42
|
+
private static _rootFolder;
|
|
43
|
+
static get RootFolder(): Types.SP.FolderOData;
|
|
44
|
+
private static _elTable;
|
|
45
|
+
static get TableElement(): HTMLElement;
|
|
46
|
+
private static _templatesFiles;
|
|
47
|
+
static get TemplateFiles(): Types.SP.File[];
|
|
48
|
+
private static _templateFolders;
|
|
49
|
+
static get TemplateFolders(): Types.SP.Folder[];
|
|
50
|
+
/** Templates Library (Optional) */
|
|
51
|
+
private static _templatesUrl;
|
|
52
|
+
static get TemplatesUrl(): string;
|
|
53
|
+
static set TemplatesUrl(value: string);
|
|
54
|
+
/**
|
|
55
|
+
* Copies a file to a folder to the library
|
|
56
|
+
* @param item The dropdown item containing the file/folder to copy.
|
|
57
|
+
*/
|
|
58
|
+
private static copyFile;
|
|
59
|
+
private static generateItems;
|
|
60
|
+
private static getFileExt;
|
|
61
|
+
private static isWopi;
|
|
62
|
+
private static load;
|
|
63
|
+
private static renderActionButtons;
|
|
64
|
+
private static renderFileIcon;
|
|
65
|
+
private static renderNavigation;
|
|
66
|
+
private static renderTable;
|
|
67
|
+
/** Public Methods */
|
|
68
|
+
static refresh(): void;
|
|
69
|
+
static render(el: HTMLElement): void;
|
|
70
|
+
static search(value: string): void;
|
|
71
|
+
}
|