ods-component-lib 1.18.30 → 1.18.31
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/components/devextreme/OdsDatagridProps.d.ts +2 -0
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +1 -0
- package/dist/index.d.ts +0 -4
- package/dist/index.js +11 -116
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -116
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
- /package/dist/components/antd/datepicker/{OdsDateRangepicker.d.ts → OdsDateRangePicker.d.ts} +0 -0
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert, AutoComplete, Button, Dropdown, Calendar, Card as Card$1, Checkbox, DatePicker, Divider,
|
|
1
|
+
import { Alert, AutoComplete, Button, Dropdown, Calendar, Card as Card$1, Checkbox, DatePicker, Divider, Image, Input, InputNumber, List, Modal, notification, Radio, Rate, Select, Space, Spin, Switch, Tabs, Table, Tag, Timeline, TimePicker, Typography, Form, theme, Tooltip } from 'antd';
|
|
2
2
|
import styled, { ThemeProvider } from 'styled-components';
|
|
3
3
|
import React, { useState, useRef, useEffect, useMemo, useCallback } from 'react';
|
|
4
4
|
import Marquee from 'react-fast-marquee';
|
|
@@ -6,7 +6,6 @@ import Card from 'antd/es/card/Card';
|
|
|
6
6
|
import { EyeTwoTone, EyeInvisibleOutlined, FrownOutlined, MehOutlined, SmileOutlined, HeartOutlined, UserOutlined, LockOutlined, InfoCircleOutlined } from '@ant-design/icons';
|
|
7
7
|
import 'react-phone-input-2/lib/style.css';
|
|
8
8
|
import PhoneInput from 'react-phone-input-2';
|
|
9
|
-
import message from 'antd/es/message';
|
|
10
9
|
import Parser from 'html-react-parser';
|
|
11
10
|
import { locale, loadMessages } from 'devextreme/localization';
|
|
12
11
|
import DataGrid$1, { DataGrid, LoadPanel, Paging, Pager, SearchPanel, FilterRow, FilterPanel, HeaderFilter, ColumnChooser, Position, ColumnChooserSearch, ColumnChooserSelection, Selection, Editing, Popup, Form as Form$1, Scrolling, Export, Column, RequiredRule, Button as Button$1, Toolbar, Item as Item$1, Summary, TotalItem, StateStoring, Sorting } from 'devextreme-react/data-grid';
|
|
@@ -527,55 +526,6 @@ function OdsCollapse(props) {
|
|
|
527
526
|
}, props.children)));
|
|
528
527
|
}
|
|
529
528
|
|
|
530
|
-
var _templateObject$9;
|
|
531
|
-
var StyledInput = styled(Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
532
|
-
|
|
533
|
-
function OdsInput(props) {
|
|
534
|
-
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
535
|
-
theme: lightTheme
|
|
536
|
-
}, React.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
var layout = {
|
|
540
|
-
labelCol: {
|
|
541
|
-
span: 8
|
|
542
|
-
},
|
|
543
|
-
wrapperCol: {
|
|
544
|
-
span: 16
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
function renderElement(type) {
|
|
548
|
-
switch (type) {
|
|
549
|
-
case 'text':
|
|
550
|
-
return React.createElement(OdsInput, null);
|
|
551
|
-
default:
|
|
552
|
-
return React.createElement(OdsInput, null);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
function OdsBasicForm(props) {
|
|
556
|
-
var onFinish = function onFinish(values) {
|
|
557
|
-
console.log('Received values:', values);
|
|
558
|
-
};
|
|
559
|
-
var onFinishFailed = function onFinishFailed(errorInfo) {
|
|
560
|
-
console.log('Failed:', errorInfo);
|
|
561
|
-
};
|
|
562
|
-
return React.createElement(Form, Object.assign({
|
|
563
|
-
onFinish: onFinish,
|
|
564
|
-
onFinishFailed: onFinishFailed
|
|
565
|
-
}, layout), props.formItems.map(function (formItem) {
|
|
566
|
-
return React.createElement(Form.Item, {
|
|
567
|
-
label: formItem.label,
|
|
568
|
-
name: formItem.name,
|
|
569
|
-
rules: formItem.rules
|
|
570
|
-
}, renderElement(formItem.formItemType));
|
|
571
|
-
}), props.formButtons.map(function (formButton) {
|
|
572
|
-
React.createElement(Form.Item, null, React.createElement(OdsButton, {
|
|
573
|
-
type: formButton.type,
|
|
574
|
-
htmlType: formButton.htmlType
|
|
575
|
-
}, formButton.children));
|
|
576
|
-
}));
|
|
577
|
-
}
|
|
578
|
-
|
|
579
529
|
function OdsImagePreviewGroup() {
|
|
580
530
|
var _useState = useState(false),
|
|
581
531
|
visible = _useState[0],
|
|
@@ -614,6 +564,15 @@ function OdsImage(props) {
|
|
|
614
564
|
return React.createElement(React.Fragment, null, isMultiple ? React.createElement(Image, Object.assign({}, props)) : React.createElement(OdsImagePreviewGroup, Object.assign({}, props)));
|
|
615
565
|
}
|
|
616
566
|
|
|
567
|
+
var _templateObject$9;
|
|
568
|
+
var StyledInput = styled(Input)(_templateObject$9 || (_templateObject$9 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
569
|
+
|
|
570
|
+
function OdsInput(props) {
|
|
571
|
+
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
572
|
+
theme: lightTheme
|
|
573
|
+
}, React.createElement(StyledInput, Object.assign({}, props), props === null || props === void 0 ? void 0 : props.children)));
|
|
574
|
+
}
|
|
575
|
+
|
|
617
576
|
function OdsPassword(props) {
|
|
618
577
|
return React.createElement(React.Fragment, null, React.createElement(ThemeProvider, {
|
|
619
578
|
theme: lightTheme
|
|
@@ -679,68 +638,6 @@ function OdsList(props) {
|
|
|
679
638
|
}, props.children)));
|
|
680
639
|
}
|
|
681
640
|
|
|
682
|
-
function OdsMessage(type, content, duration) {
|
|
683
|
-
if (duration === void 0) {
|
|
684
|
-
duration = 10;
|
|
685
|
-
}
|
|
686
|
-
var _message$useMessage = message.useMessage(),
|
|
687
|
-
messageApi = _message$useMessage[0];
|
|
688
|
-
var success = function success() {
|
|
689
|
-
messageApi.open({
|
|
690
|
-
type: 'success',
|
|
691
|
-
content: content,
|
|
692
|
-
duration: duration
|
|
693
|
-
});
|
|
694
|
-
};
|
|
695
|
-
var error = function error() {
|
|
696
|
-
messageApi.open({
|
|
697
|
-
type: 'error',
|
|
698
|
-
content: content,
|
|
699
|
-
duration: duration
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
var warning = function warning() {
|
|
703
|
-
messageApi.open({
|
|
704
|
-
type: 'warning',
|
|
705
|
-
content: content,
|
|
706
|
-
duration: duration
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
var info = function info() {
|
|
710
|
-
messageApi.open({
|
|
711
|
-
type: 'info',
|
|
712
|
-
content: content,
|
|
713
|
-
duration: duration
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
var loading = function loading() {
|
|
717
|
-
messageApi.open({
|
|
718
|
-
type: 'loading',
|
|
719
|
-
content: content,
|
|
720
|
-
duration: duration
|
|
721
|
-
});
|
|
722
|
-
};
|
|
723
|
-
var contentt;
|
|
724
|
-
switch (type) {
|
|
725
|
-
case "info":
|
|
726
|
-
contentt = React.createElement("div", null, info);
|
|
727
|
-
break;
|
|
728
|
-
case "error":
|
|
729
|
-
contentt = React.createElement("div", null, error);
|
|
730
|
-
break;
|
|
731
|
-
case "warning":
|
|
732
|
-
contentt = React.createElement("div", null, warning);
|
|
733
|
-
break;
|
|
734
|
-
case "loading":
|
|
735
|
-
contentt = React.createElement("div", null, loading);
|
|
736
|
-
break;
|
|
737
|
-
case "success":
|
|
738
|
-
contentt = React.createElement("div", null, success);
|
|
739
|
-
break;
|
|
740
|
-
}
|
|
741
|
-
return React.createElement(React.Fragment, null, contentt);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
641
|
function OdsModal(props) {
|
|
745
642
|
return React.createElement(React.Fragment, null, React.createElement(Modal, Object.assign({}, props, {
|
|
746
643
|
open: props.open,
|
|
@@ -17287,8 +17184,8 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17287
17184
|
e.editorOptions.onFocusIn = disableScrolling;
|
|
17288
17185
|
e.editorOptions.onFocusOut = enableScrolling;
|
|
17289
17186
|
}
|
|
17290
|
-
if (props.
|
|
17291
|
-
props.
|
|
17187
|
+
if (props.handleEditorPreparing) {
|
|
17188
|
+
props.handleEditorPreparing(e);
|
|
17292
17189
|
}
|
|
17293
17190
|
}
|
|
17294
17191
|
if (e.editorOptions && e.rowType === 'data' && e.parentType === 'dataRow') {
|
|
@@ -17658,5 +17555,5 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17658
17555
|
})));
|
|
17659
17556
|
};
|
|
17660
17557
|
|
|
17661
|
-
export { DxTreeList, DxTreeView, OdsAlert, OdsAutoComplete, OdsBannerAlert,
|
|
17558
|
+
export { DxTreeList, DxTreeView, OdsAlert, OdsAutoComplete, OdsBannerAlert, OdsBasicTable, OdsButton, OdsCalendar, OdsCard, OdsCheckbox, OdsCheckboxGroup, OdsCollapse, OdsCustomMultiSelect, OdsDataGrid, OdsDataGridNew, OdsDateRangePicker, OdsDatepicker, OdsDisplayGrid, OdsDivider, OdsCollapse as OdsDropdown, OdsDropdownButton, OdsImage, OdsInput, OdsInputNumber, OdsLink, OdsList, OdsLogin, OdsModal, OdsNotification, OdsParagraph, OdsPassword, OdsPhoneInput, OdsProfDataGrid, OdsRadio, OdsRadioGroup, OdsRangeTimepicker, OdsRate, OdsRemoteDataGrid, OdsSearch, OdsSelect, OdsSelectableTable, OdsSpin, OdsSwitch, OdsTab, OdsBasicTable as OdsTable, OdsTag, OdsText, OdsTextArea, OdsTimeline, OdsTimepicker, OdsTitle };
|
|
17662
17559
|
//# sourceMappingURL=index.modern.js.map
|