ods-component-lib 1.11.17 → 1.12.1
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/dist/index.modern.js
CHANGED
|
@@ -685,13 +685,13 @@ function grid(props) {
|
|
|
685
685
|
return React.createElement(Column, {
|
|
686
686
|
type: "buttons",
|
|
687
687
|
width: 110
|
|
688
|
-
}, React.createElement(Button$1, {
|
|
688
|
+
}, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
689
689
|
hint: "Edit",
|
|
690
690
|
visible: true,
|
|
691
691
|
disabled: false,
|
|
692
692
|
icon: "edit",
|
|
693
693
|
onClick: props.editButtonClick
|
|
694
|
-
}), React.createElement(Button$1, {
|
|
694
|
+
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
695
695
|
hint: "Delete",
|
|
696
696
|
visible: true,
|
|
697
697
|
disabled: false,
|
|
@@ -702,13 +702,13 @@ function grid(props) {
|
|
|
702
702
|
return React.createElement(Column, {
|
|
703
703
|
type: "buttons",
|
|
704
704
|
width: 110
|
|
705
|
-
}, React.createElement(React.Fragment, null, props.
|
|
705
|
+
}, React.createElement(React.Fragment, null, props.edit.allowUpdating && React.createElement(Button$1, {
|
|
706
706
|
name: "edit"
|
|
707
|
-
}), props.
|
|
707
|
+
}), props.edit.allowDeleting && React.createElement(Button$1, {
|
|
708
708
|
name: "delete"
|
|
709
709
|
})));
|
|
710
710
|
}
|
|
711
|
-
}(), React.createElement(Toolbar, null,
|
|
711
|
+
}(), React.createElement(Toolbar, null, React.createElement(Item$1, {
|
|
712
712
|
location: "after"
|
|
713
713
|
}, React.createElement(OdsButton, {
|
|
714
714
|
type: "primary",
|
|
@@ -724,6 +724,78 @@ function grid(props) {
|
|
|
724
724
|
}))));
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
+
var exportFormats$1 = ['xlsx', 'pdf'];
|
|
728
|
+
var searchEditorOptions$1 = {
|
|
729
|
+
placeholder: 'Search column'
|
|
730
|
+
};
|
|
731
|
+
function OdsDisplayGrid(props) {
|
|
732
|
+
return grid$1(props);
|
|
733
|
+
}
|
|
734
|
+
function grid$1(props) {
|
|
735
|
+
var headerCellRender = function headerCellRender(colProperties) {
|
|
736
|
+
return React.createElement("th", {
|
|
737
|
+
className: "dx-datagrid-headers"
|
|
738
|
+
}, colProperties.column.caption);
|
|
739
|
+
};
|
|
740
|
+
return React.createElement(React.Fragment, null, React.createElement(DataGrid, {
|
|
741
|
+
dataSource: props.dataSource,
|
|
742
|
+
columnAutoWidth: props.columnAutoWidth,
|
|
743
|
+
keyExpr: props.keyExpr,
|
|
744
|
+
allowColumnResizing: true,
|
|
745
|
+
columnResizingMode: "widget",
|
|
746
|
+
allowColumnReordering: true,
|
|
747
|
+
showRowLines: true,
|
|
748
|
+
showBorders: true,
|
|
749
|
+
width: "100%"
|
|
750
|
+
}, React.createElement(Paging, {
|
|
751
|
+
enabled: true,
|
|
752
|
+
defaultPageSize: props.pageSize
|
|
753
|
+
}), props.pagingEnable && React.createElement(Pager, {
|
|
754
|
+
visible: true,
|
|
755
|
+
displayMode: "full",
|
|
756
|
+
showPageSizeSelector: true,
|
|
757
|
+
showNavigationButtons: true,
|
|
758
|
+
allowedPageSizes: [5, 10, 20],
|
|
759
|
+
showInfo: true
|
|
760
|
+
}), props.searchEnable && React.createElement(SearchPanel, {
|
|
761
|
+
visible: true
|
|
762
|
+
}), props.filterEnable && React.createElement(FilterRow, {
|
|
763
|
+
visible: true
|
|
764
|
+
}), props.headerFilterEnable && React.createElement(HeaderFilter, {
|
|
765
|
+
visible: true
|
|
766
|
+
}), React.createElement(ColumnChooser, {
|
|
767
|
+
enabled: true,
|
|
768
|
+
mode: "select"
|
|
769
|
+
}, React.createElement(Position, {
|
|
770
|
+
my: "right top",
|
|
771
|
+
at: "right bottom",
|
|
772
|
+
of: ".dx-datagrid-column-chooser-button"
|
|
773
|
+
}), React.createElement(ColumnChooserSearch, {
|
|
774
|
+
enabled: true,
|
|
775
|
+
editorOptions: searchEditorOptions$1
|
|
776
|
+
}), React.createElement(ColumnChooserSelection, {
|
|
777
|
+
allowSelectAll: true,
|
|
778
|
+
selectByClick: true,
|
|
779
|
+
recursive: true
|
|
780
|
+
})), props.selectEnable && React.createElement(Selection, {
|
|
781
|
+
mode: "multiple",
|
|
782
|
+
deferred: true
|
|
783
|
+
}), React.createElement(Scrolling, {
|
|
784
|
+
mode: props.scrollingMode,
|
|
785
|
+
rowRenderingMode: props.scrollingMode
|
|
786
|
+
}), props.exportEnable === true && React.createElement(Export, {
|
|
787
|
+
enabled: true,
|
|
788
|
+
allowExportSelectedData: true,
|
|
789
|
+
formats: exportFormats$1
|
|
790
|
+
}), props.columns.map(function (col) {
|
|
791
|
+
return React.createElement(Column, Object.assign({
|
|
792
|
+
key: col.dataField
|
|
793
|
+
}, col, {
|
|
794
|
+
headerCellRender: headerCellRender
|
|
795
|
+
}), " ");
|
|
796
|
+
})));
|
|
797
|
+
}
|
|
798
|
+
|
|
727
799
|
var DxTreeList = function DxTreeList(props) {
|
|
728
800
|
var _useState = useState(props.dataSource),
|
|
729
801
|
dataSource = _useState[0];
|
|
@@ -796,5 +868,5 @@ var DxTreeView = function DxTreeView(props) {
|
|
|
796
868
|
}));
|
|
797
869
|
};
|
|
798
870
|
|
|
799
|
-
export { DxTreeList, DxTreeView, OdsAutoComplete, OdsBasicForm, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsCollapse, OdsDataGrid, OdsDateRangePicker, OdsDateRangePicker as OdsDatepicker, OdsDivider, OdsCollapse as OdsDropdown, OdsDropdownButton, OdsImage, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsLogin, OdsMessage, OdsModal, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsSearch, OdsSelect, OdsSelectableTable, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle };
|
|
871
|
+
export { DxTreeList, DxTreeView, OdsAutoComplete, OdsBasicForm, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsCollapse, OdsDataGrid, OdsDateRangePicker, OdsDateRangePicker as OdsDatepicker, OdsDisplayGrid, OdsDivider, OdsCollapse as OdsDropdown, OdsDropdownButton, OdsImage, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsLogin, OdsMessage, OdsModal, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsSearch, OdsSelect, OdsSelectableTable, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle };
|
|
800
872
|
//# sourceMappingURL=index.modern.js.map
|