dattatable 1.5.1 → 1.5.2
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/documents.d.ts +1 -0
- package/build/documents.js +6 -5
- package/dist/dattatable.js +657 -657
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- 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 +5 -5
- 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/enums/ActionButtonTypes.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 +1 -1
- 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/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -1
- package/docs/modules.html +1 -1
- package/package.json +2 -2
- package/pnpm-lock.yaml +16 -16
package/build/documents.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IDocumentsProps {
|
|
|
21
21
|
enableSearch?: boolean;
|
|
22
22
|
listName: string;
|
|
23
23
|
query?: Types.IODataQuery;
|
|
24
|
+
onActionsRendered?: (el: HTMLElement, col: Components.ITableColumn, file: Types.SP.Attachment | Types.SP.File) => void;
|
|
24
25
|
onFilterRendered?: (el: HTMLElement) => void;
|
|
25
26
|
onItemFormEditing?: {
|
|
26
27
|
onCreateEditForm?: (props: Components.IListFormEditProps) => Components.IListFormEditProps;
|
package/build/documents.js
CHANGED
|
@@ -443,6 +443,7 @@ var Documents = /** @class */ (function () {
|
|
|
443
443
|
_this.renderActionButtons(el, file);
|
|
444
444
|
// Call the custom event
|
|
445
445
|
customEvent ? customEvent(el, col, file) : null;
|
|
446
|
+
_this._props.onActionsRendered ? _this._props.onActionsRendered(el, col, file) : null;
|
|
446
447
|
};
|
|
447
448
|
}
|
|
448
449
|
else {
|
|
@@ -598,7 +599,7 @@ var Documents = /** @class */ (function () {
|
|
|
598
599
|
content: "Delete",
|
|
599
600
|
btnProps: {
|
|
600
601
|
// Render the icon button
|
|
601
|
-
className: "p-1",
|
|
602
|
+
className: "p-1 btn-actions-delete",
|
|
602
603
|
iconType: x_1.x,
|
|
603
604
|
iconSize: 24,
|
|
604
605
|
isDisabled: !this.CanDelete,
|
|
@@ -634,7 +635,7 @@ var Documents = /** @class */ (function () {
|
|
|
634
635
|
content: "Download",
|
|
635
636
|
btnProps: {
|
|
636
637
|
// Render the icon button
|
|
637
|
-
className: "p-1",
|
|
638
|
+
className: "p-1 btn-actions-download",
|
|
638
639
|
iconType: fileEarmarkArrowDown_1.fileEarmarkArrowDown,
|
|
639
640
|
iconSize: 24,
|
|
640
641
|
isDisabled: !this.CanView,
|
|
@@ -651,7 +652,7 @@ var Documents = /** @class */ (function () {
|
|
|
651
652
|
content: "Edit",
|
|
652
653
|
btnProps: {
|
|
653
654
|
// Render the icon button
|
|
654
|
-
className: "p-1",
|
|
655
|
+
className: "p-1 btn-actions-edit",
|
|
655
656
|
iconType: inputCursorText_1.inputCursorText,
|
|
656
657
|
iconSize: 24,
|
|
657
658
|
isDisabled: (!isWopi || !this.CanEdit),
|
|
@@ -669,7 +670,7 @@ var Documents = /** @class */ (function () {
|
|
|
669
670
|
content: "Properties",
|
|
670
671
|
btnProps: {
|
|
671
672
|
// Render the icon button
|
|
672
|
-
className: "p-1",
|
|
673
|
+
className: "p-1 btn-actions-properties",
|
|
673
674
|
iconType: layoutTextSidebar_1.layoutTextSidebar,
|
|
674
675
|
iconSize: 24,
|
|
675
676
|
isDisabled: !this.CanEdit && !this.CanView,
|
|
@@ -762,7 +763,7 @@ var Documents = /** @class */ (function () {
|
|
|
762
763
|
content: "View",
|
|
763
764
|
btnProps: {
|
|
764
765
|
// Render the icon button
|
|
765
|
-
className: "img-flip-x p-1",
|
|
766
|
+
className: "img-flip-x p-1 btn-actions-view",
|
|
766
767
|
iconType: front_1.front,
|
|
767
768
|
iconSize: 24,
|
|
768
769
|
isDisabled: !this.CanView,
|