ods-component-lib 1.17.72 → 1.17.76
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.
|
@@ -3,9 +3,9 @@ export declare const StyledButton: import("styled-components").StyledComponent<i
|
|
|
3
3
|
href: string;
|
|
4
4
|
target?: import("react").HTMLAttributeAnchorTarget;
|
|
5
5
|
onClick?: (event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
6
|
-
} & import("antd/es/button/button").BaseButtonProps & Pick<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "slot" | "style" | "title" | "download" | "href" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "
|
|
6
|
+
} & import("antd/es/button/button").BaseButtonProps & Pick<import("react").AnchorHTMLAttributes<HTMLAnchorElement | HTMLButtonElement>, "slot" | "style" | "title" | "download" | "href" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
7
7
|
htmlType?: "button" | "submit" | "reset";
|
|
8
8
|
onClick?: (event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
|
-
} & Pick<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "form" | "slot" | "style" | "title" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "
|
|
9
|
+
} & Pick<import("react").ButtonHTMLAttributes<HTMLButtonElement>, "form" | "slot" | "style" | "title" | "name" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">> & import("react").RefAttributes<HTMLElement>> & {
|
|
10
10
|
Group: import("react").FC<import("antd/es/button").ButtonGroupProps>;
|
|
11
11
|
}, any, {}, never>;
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,6 @@ require('react-phone-input-2/lib/style.css');
|
|
|
11
11
|
var PhoneInput = _interopDefault(require('react-phone-input-2'));
|
|
12
12
|
var message = _interopDefault(require('antd/es/message'));
|
|
13
13
|
var Parser = _interopDefault(require('html-react-parser'));
|
|
14
|
-
var reactI18next = require('react-i18next');
|
|
15
14
|
var localization = require('devextreme/localization');
|
|
16
15
|
var dataGrid = require('devextreme-react/data-grid');
|
|
17
16
|
var form = require('devextreme-react/form');
|
|
@@ -21,7 +20,6 @@ var jsPDF = _interopDefault(require('jspdf'));
|
|
|
21
20
|
var exceljs = require('exceljs');
|
|
22
21
|
var fileSaverEs = require('file-saver-es');
|
|
23
22
|
var moment = _interopDefault(require('moment'));
|
|
24
|
-
var i18n = _interopDefault(require('i18next'));
|
|
25
23
|
var devextremeReact = require('devextreme-react');
|
|
26
24
|
var AspNetData = require('devextreme-aspnet-data-nojquery');
|
|
27
25
|
var treeView = require('devextreme-react/tree-view');
|
|
@@ -1188,53 +1186,6 @@ function OdsLogin(props) {
|
|
|
1188
1186
|
}, "Log in"))));
|
|
1189
1187
|
}
|
|
1190
1188
|
|
|
1191
|
-
var resources = {
|
|
1192
|
-
en: {
|
|
1193
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1194
|
-
},
|
|
1195
|
-
tr: {
|
|
1196
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1197
|
-
},
|
|
1198
|
-
pl: {
|
|
1199
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1200
|
-
},
|
|
1201
|
-
ru: {
|
|
1202
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1203
|
-
},
|
|
1204
|
-
es: {
|
|
1205
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1206
|
-
},
|
|
1207
|
-
de: {
|
|
1208
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1209
|
-
},
|
|
1210
|
-
fr: {
|
|
1211
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1212
|
-
},
|
|
1213
|
-
it: {
|
|
1214
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1215
|
-
},
|
|
1216
|
-
ua: {
|
|
1217
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1218
|
-
},
|
|
1219
|
-
et: {
|
|
1220
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1221
|
-
},
|
|
1222
|
-
lv: {
|
|
1223
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1224
|
-
},
|
|
1225
|
-
lt: {
|
|
1226
|
-
translation: JSON.parse(localStorage.getItem("LanguageSelect"))
|
|
1227
|
-
}
|
|
1228
|
-
};
|
|
1229
|
-
i18n.use(reactI18next.initReactI18next).init({
|
|
1230
|
-
resources: resources,
|
|
1231
|
-
lng: "en",
|
|
1232
|
-
keySeparator: false,
|
|
1233
|
-
interpolation: {
|
|
1234
|
-
escapeValue: false
|
|
1235
|
-
}
|
|
1236
|
-
});
|
|
1237
|
-
|
|
1238
1189
|
var exportFormats = ['xlsx'];
|
|
1239
1190
|
var searchEditorOptions = {
|
|
1240
1191
|
placeholder: 'Search column'
|
|
@@ -1248,12 +1199,9 @@ var renderMenuItem = function renderMenuItem() {
|
|
|
1248
1199
|
};
|
|
1249
1200
|
function OdsDataGrid(props) {
|
|
1250
1201
|
var dataGridRef = React.useRef(null);
|
|
1251
|
-
console.log('deneme12: ', sessionStorage.getItem("locale"));
|
|
1252
1202
|
return grid(props, dataGridRef);
|
|
1253
1203
|
}
|
|
1254
1204
|
function grid(props, dataGridRef) {
|
|
1255
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
1256
|
-
t = _useTranslation.t;
|
|
1257
1205
|
var headerCellRender = function headerCellRender(colProperties) {
|
|
1258
1206
|
return React__default.createElement("th", {
|
|
1259
1207
|
className: "dx-datagrid-headers",
|
|
@@ -1441,18 +1389,18 @@ function grid(props, dataGridRef) {
|
|
|
1441
1389
|
if (props.customPopup !== undefined) {
|
|
1442
1390
|
return React__default.createElement(dataGrid.Column, {
|
|
1443
1391
|
dataField: "Actions",
|
|
1444
|
-
caption:
|
|
1392
|
+
caption: props.ColumnAction,
|
|
1445
1393
|
type: "buttons",
|
|
1446
1394
|
width: 110,
|
|
1447
1395
|
showInColumnChooser: false
|
|
1448
1396
|
}, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1449
|
-
hint:
|
|
1397
|
+
hint: props.HintEdit,
|
|
1450
1398
|
visible: true,
|
|
1451
1399
|
disabled: false,
|
|
1452
1400
|
icon: "edit",
|
|
1453
1401
|
onClick: props.editButtonClick
|
|
1454
1402
|
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1455
|
-
hint:
|
|
1403
|
+
hint: props.HintDelete,
|
|
1456
1404
|
visible: true,
|
|
1457
1405
|
disabled: false,
|
|
1458
1406
|
icon: "trash",
|
|
@@ -1490,7 +1438,7 @@ function grid(props, dataGridRef) {
|
|
|
1490
1438
|
style: {
|
|
1491
1439
|
marginBottom: "10px"
|
|
1492
1440
|
}
|
|
1493
|
-
},
|
|
1441
|
+
}, props.AddNewButtonName)), React__default.createElement(dataGrid.Item, {
|
|
1494
1442
|
name: "searchPanel"
|
|
1495
1443
|
}), React__default.createElement(dataGrid.Item, {
|
|
1496
1444
|
name: "applyFilterButton"
|