ods-component-lib 1.17.197 → 1.18.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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const DynamicIcon: ({ iconName }: {
3
+ iconName: any;
4
+ }) => React.JSX.Element;
5
+ export default DynamicIcon;
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+ import { IDataGridOptions, IEditingProps, ISelectionProps, IButtonProps } from 'devextreme-react/data-grid';
3
+ interface IButtonGroup extends IButtonProps {
4
+ type?: string;
5
+ label?: string;
6
+ onclick?: React.MouseEventHandler<HTMLElement>;
7
+ actionPermission?: boolean;
8
+ }
9
+ interface IEditingoptions extends IEditingProps {
10
+ formItems?: any[];
11
+ title?: string;
12
+ }
13
+ interface ISelectOptions extends ISelectionProps {
14
+ selectEnable: boolean;
15
+ }
16
+ interface IOdsDataGridProps extends IDataGridOptions {
17
+ actionButtonGroup?: IButtonGroup[];
18
+ toolbarButtonGroup?: IButtonGroup[];
19
+ exportFileName?: string;
20
+ summaryTotalColumnName?: string;
21
+ storeState?: boolean;
22
+ summaryTotalDataCount?: number;
23
+ summaryTotalDataDisplayLabel?: string;
24
+ summaryTotalPagesize?: number;
25
+ editHintLabel?: string;
26
+ editButtonClick?: any;
27
+ deleteButtonClick?: any;
28
+ pageTitle?: string;
29
+ pageSize?: number;
30
+ pagingEnable?: boolean;
31
+ searchEnable?: boolean;
32
+ filterEnable?: boolean;
33
+ headerFilterEnable?: boolean;
34
+ columnChooserPositionDisabled?: boolean;
35
+ editEnable?: boolean;
36
+ popupTitle?: string;
37
+ scroll?: any;
38
+ exportEnable?: boolean;
39
+ customPopup?: boolean;
40
+ onExportingCustom?: any;
41
+ filterEnabledShow?: boolean;
42
+ scrolUseNative?: boolean;
43
+ formItems?: any[];
44
+ hintForDeleteButton?: string;
45
+ hintForEditButton?: string;
46
+ exportFormats?: string[];
47
+ actionPermission?: boolean;
48
+ columns: any[];
49
+ actionColumnEnable?: boolean;
50
+ edit?: IEditingoptions;
51
+ selectOptions?: ISelectOptions;
52
+ actionColumnCaption?: string;
53
+ }
54
+ declare function OdsDataGridNew(props: IOdsDataGridProps): React.JSX.Element;
55
+ export default OdsDataGridNew;
@@ -1,27 +1,39 @@
1
1
  import React from 'react';
2
- interface DataGridProps {
3
- isApplyButtonClicked: boolean;
4
- token: string;
2
+ import { IDataGridOptions, IButtonProps, ISelectionProps, IEditingProps } from 'devextreme-react/data-grid';
3
+ interface IOdsDataGridProps extends IDataGridOptions {
4
+ token?: string;
5
+ isApplyButtonClicked?: boolean;
5
6
  language: string;
6
- requestData: any;
7
- apiUrl: string;
7
+ requestData?: any;
8
+ apiUrl?: string;
8
9
  exportFileName: string;
9
10
  filterEnabledShow: boolean;
10
- columns: IDataGridColumn[];
11
- pageTitle: string;
11
+ pageTitle?: string;
12
12
  toolbarButtonGroup?: IButtonGroup[];
13
+ actionButtonGroup?: IButtonGroup[];
13
14
  key: string;
15
+ columns: any[];
16
+ pageSize: number;
17
+ actionColumnEnable: boolean;
18
+ selectOptions?: ISelectOptions;
19
+ columnChooserPositionDisabled?: boolean;
20
+ pagingEnable?: boolean;
21
+ edit?: IEditingoptions;
22
+ isServerSide: boolean;
23
+ actionColumnCaption?: string;
14
24
  }
15
- interface IDataGridColumn {
16
- dataField: string;
17
- dataType: string;
18
- caption: string;
19
- visible?: boolean;
25
+ interface IEditingoptions extends IEditingProps {
26
+ formItems?: any[];
27
+ title?: string;
20
28
  }
21
- interface IButtonGroup {
22
- type: string;
23
- label: string;
24
- onclick: React.MouseEventHandler<HTMLElement>;
29
+ interface ISelectOptions extends ISelectionProps {
30
+ selectEnable: boolean;
25
31
  }
26
- declare const OdsRemoteDataGrid: (props: DataGridProps) => React.JSX.Element;
32
+ interface IButtonGroup extends IButtonProps {
33
+ type?: string;
34
+ label?: string;
35
+ onclick?: React.MouseEventHandler<HTMLElement>;
36
+ actionPermission?: boolean;
37
+ }
38
+ declare const OdsRemoteDataGrid: (props: IOdsDataGridProps) => React.JSX.Element;
27
39
  export default OdsRemoteDataGrid;
package/dist/index.css CHANGED
@@ -74,4 +74,163 @@ tr:first-child {
74
74
 
75
75
  ._1hTxK._3umXw {
76
76
  background-color: #E6F4FF;
77
+ }
78
+
79
+ ._3XxAq{
80
+ max-width: 230px;
81
+ min-width: 230px;
82
+ }
83
+
84
+
85
+
86
+ ._q4jkZ > ._1UPzZ, ._q4jkZ > ._1XbNt {
87
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
88
+ }
89
+
90
+ ._q4jkZ ._1UPzZ, ._1GEDH + ._1UPzZ, ._1UPzZ._4V16J {
91
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
92
+ }
93
+
94
+ ._q4jkZ > ._1GEDH, ._q4jkZ > ._1UPzZ, ._q4jkZ > ._1XbNt {
95
+ border-left: 1px solid rgba(0, 0, 0, 0.06);
96
+ border-right: 1px solid rgba(0, 0, 0, 0.06);
97
+ border-radius: 5px;
98
+ }
99
+
100
+ ._q4jkZ > ._3mbXf, ._q4jkZ > ._1GEDH {
101
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
102
+ }
103
+
104
+ ._1GEDH ._2NiLf ._2CvVM > td {
105
+ border-bottom: 1px solid rgba(0, 0, 0, 0.06);
106
+ }
107
+
108
+ ._36VXO ._3udtX > td {
109
+ border-left: 1px solid rgba(0, 0, 0, 0.06);
110
+ border-right: 1px solid rgba(0, 0, 0, 0.06);
111
+ }
112
+
113
+ ._1GEDH {
114
+ border-bottom: none;
115
+ }
116
+
117
+ ._2jY0l {
118
+ padding: 8px 16px 0 16px;
119
+ }
120
+
121
+ ._2P5bw{
122
+ font-family: Manrope;
123
+ font-size: 14px;
124
+ font-style: normal;
125
+ font-weight: 600;
126
+ line-height: 22px;
127
+ }
128
+
129
+ ._1GEDH {
130
+ color: #000000E0;
131
+ }
132
+
133
+
134
+ ._pljbP {
135
+ border-radius: 6px;
136
+ }
137
+
138
+ ._3nKdN, ._23Fql {
139
+ background-color: #E6F4FF;
140
+ }
141
+
142
+ ._1hTxK._3umXw {
143
+ background-color: #E6F4FF;
144
+ }
145
+
146
+
147
+ ._14hGA{
148
+ border-radius: 6px;
149
+ border: 1px solid var(--colorPrimaryBase, #1677FF);
150
+ background: var(--colorPrimaryBase, #1677FF);
151
+ box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.02);
152
+
153
+ }
154
+
155
+
156
+ /*.dx-item-content.dx-toolbar-item-content {
157
+ padding: 0 16px;
158
+ }
159
+ .dx-toolbar-after .dx-toolbar-item, .dx-toolbar-after .dx-toolbar-item:last-child {
160
+ padding: 0 0 0 12px !important;
161
+ }*/
162
+
163
+ ._3YUEG > ._3PA4V, ._3YUEG._3PA4V, ._nCVgW > ._3PA4V, ._nCVgW._3PA4V {
164
+ width: 150px;
165
+ border-radius: 6px;
166
+ }
167
+
168
+ ._2jY0l ._39Ful {
169
+ margin-bottom: 8px !important;
170
+ }
171
+
172
+ ._3UDfa._1YpJq._jgr8O._1nt2x._rCTdR._1p-OE._3HXdb._1Niat {
173
+ border-radius: 6px;
174
+ }
175
+
176
+ /* .dx-widget.dx-button.dx-button-mode-contained.dx-button-normal.dx-button-has-icon.dx-item.dx-buttongroup-item.dx-item-content.dx-buttongroup-item-content.dx-buttongroup-first-item.dx-buttongroup-last-item.dx-shape-standard.dx-dropdownbutton-action.dx-buttongroup-item-has-width {
177
+ border-radius: 6px;
178
+ }
179
+
180
+ .dx-header-title{
181
+ color: var(--colorTextHeading, var(--colorText, rgba(0, 0, 0, 0.88)));
182
+ font-family: Manrope;
183
+ font-size: 16px;
184
+ font-style: normal;
185
+ font-weight: 600;
186
+ line-height: 24px;
187
+ margin-bottom:0 !important;
188
+ } */
189
+
190
+ tr._2CvVM._3Xrp3._19iuB._3udtX {
191
+ height: 38px;
192
+ }
193
+
194
+ ._36VXO._8U8_Y._q4jkZ {
195
+ border-radius: 16px;
196
+ }
197
+
198
+ ._3mbXf {
199
+ border-radius: 6px;
200
+ }
201
+
202
+ ._36VXO ._8U8_Y ._q4jkZ {
203
+ border: 1px solid rgba(0, 0, 0, 0.06);
204
+ }
205
+ /*.dx-item.dx-toolbar-item.dx-toolbar-button {
206
+ padding: 0 16px 0 0 0 !important;
207
+ }*/
208
+
209
+ ._1GEDH._HwHQd._1Dint{
210
+ padding: 0 !important;
211
+ }
212
+
213
+
214
+ ._3XxAq{
215
+ max-width: 230px;
216
+ min-width: 230px;
217
+ }
218
+
219
+ ._1vjE3 ._3WQXH {
220
+ width: 100%;
221
+ }
222
+
223
+ ._33d3- {
224
+ overflow: visible;
225
+ }
226
+
227
+
228
+ ._206-B ._1IVO- {
229
+ padding-left: 12px !important;
230
+ }
231
+
232
+ ._39Ful ._1IVO- {
233
+ padding: 0;
234
+ /* -webkit-padding-end: 5px; */
235
+ padding-inline-end: 0 !important;
77
236
  }
package/dist/index.d.ts CHANGED
@@ -47,10 +47,10 @@ import OdsLogin from "./components/custom/OdsLogin";
47
47
  import OdsDataGrid from "./components/devextreme/OdsDataGrid";
48
48
  import OdsDisplayGrid from "./components/devextreme/OdsDisplayGrid";
49
49
  import OdsProfDataGrid from "./components/devextreme/OdsProfDataGrid";
50
- import OdsRefactoredGrid from "./components/devextreme/OdsRefactoredGrid";
51
- import OdsRemoteDataGrid from "./components/devextreme/OdsRemoteDataGrid";
52
50
  import DxTreeList from "./components/devextreme/treeview/DxTreeList";
53
51
  import DxTreeView from "./components/devextreme/treeview/DxTreeView";
52
+ import OdsDataGridNew from "./components/devextreme/OdsDataGridNew";
53
+ import OdsRemoteDataGrid from "./components/devextreme/OdsRemoteDataGrid";
54
54
  export { OdsButton };
55
55
  export { OdsInput };
56
56
  export { OdsDropdownButton };
@@ -86,7 +86,6 @@ export { OdsSelectableTable };
86
86
  export { OdsTag };
87
87
  export { OdsTimeline };
88
88
  export { OdsRangeTimepicker };
89
- export { OdsDataGrid };
90
89
  export { OdsLogin };
91
90
  export { OdsInputNumber };
92
91
  export { OdsPhoneInput };
@@ -97,10 +96,11 @@ export { OdsLink };
97
96
  export { OdsNotification };
98
97
  export { DxTreeView };
99
98
  export { DxTreeList };
100
- export { OdsDisplayGrid };
101
- export { OdsProfDataGrid };
102
- export { OdsRemoteDataGrid };
103
99
  export { OdsAlert };
104
100
  export { OdsBannerAlert };
105
101
  export { OdsCustomMultiSelect };
106
- export { OdsRefactoredGrid };
102
+ export { OdsDataGrid };
103
+ export { OdsDisplayGrid };
104
+ export { OdsProfDataGrid };
105
+ export { OdsDataGridNew };
106
+ export { OdsRemoteDataGrid };