dattatable 2.9.80 → 2.9.82
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 +1 -0
- package/build/common/documents.js +5 -1
- package/build/common/modal.js +9 -1
- package/dist/dattatable.js +457 -457
- 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 +4 -4
- 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/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +3 -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/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/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.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/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
|
@@ -25,6 +25,7 @@ export interface IDocumentsProps {
|
|
|
25
25
|
onActionsRendered?: (el: HTMLElement, col: Components.ITableColumn, file: Types.SP.Attachment | Types.SP.File) => void;
|
|
26
26
|
onFileAdded?: (file?: Types.SP.Attachment | Types.SP.File) => void;
|
|
27
27
|
onFileAdding?: (fileInfo?: Helper.IListFormAttachmentInfo) => PromiseLike<boolean> | boolean;
|
|
28
|
+
onFileError?: (err?: any) => void;
|
|
28
29
|
onFilterRendered?: (el: HTMLElement) => void;
|
|
29
30
|
onItemFormEditing?: {
|
|
30
31
|
onCreateEditForm?: (props: Components.IListFormEditProps) => Components.IListFormEditProps;
|
|
@@ -1048,7 +1048,9 @@ var Documents = /** @class */ (function () {
|
|
|
1048
1048
|
_this.refresh();
|
|
1049
1049
|
},
|
|
1050
1050
|
// Error
|
|
1051
|
-
function () {
|
|
1051
|
+
function (err) {
|
|
1052
|
+
// Call the event
|
|
1053
|
+
_this._props.onFileError ? _this._props.onFileError(err) : null;
|
|
1052
1054
|
// Hide the dialog
|
|
1053
1055
|
loadingDialog_1.LoadingDialog.hide();
|
|
1054
1056
|
});
|
|
@@ -1081,7 +1083,9 @@ var Documents = /** @class */ (function () {
|
|
|
1081
1083
|
var navProps = {
|
|
1082
1084
|
el: this._el,
|
|
1083
1085
|
brand: "Documents",
|
|
1086
|
+
className: "mt-3 rounded",
|
|
1084
1087
|
itemsEnd: itemsEnd,
|
|
1088
|
+
type: gd_sprest_bs_1.Components.NavbarTypes.Primary,
|
|
1085
1089
|
searchBox: this._props.enableSearch ? {
|
|
1086
1090
|
hideButton: true,
|
|
1087
1091
|
onChange: function (value) {
|
package/build/common/modal.js
CHANGED
|
@@ -167,7 +167,15 @@ var Modal = /** @class */ (function () {
|
|
|
167
167
|
// Sets the modal type
|
|
168
168
|
Modal.setType = function (type) { this._modal.setType(type); };
|
|
169
169
|
// Shows the modal
|
|
170
|
-
Modal.show = function () {
|
|
170
|
+
Modal.show = function () {
|
|
171
|
+
// See if the footer is empty
|
|
172
|
+
if (!this.FooterElement.hasChildNodes) {
|
|
173
|
+
// Hide the footer
|
|
174
|
+
this.FooterElement.classList.add("d-none");
|
|
175
|
+
}
|
|
176
|
+
// Show the modal
|
|
177
|
+
this._modal.show();
|
|
178
|
+
};
|
|
171
179
|
Modal._modal = null;
|
|
172
180
|
Modal._onCloseEvent = null;
|
|
173
181
|
// Modal Body
|