ods-component-lib 1.17.183 → 1.17.185
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Partial<{
|
|
3
3
|
href: string;
|
|
4
|
-
target?:
|
|
4
|
+
target?: string;
|
|
5
5
|
onClick?: (event: import("react").MouseEvent<HTMLAnchorElement, MouseEvent>) => void;
|
|
6
6
|
} & import("antd/es/button/button").BaseButtonProps & Pick<import("react").AnchorHTMLAttributes<HTMLButtonElement | HTMLAnchorElement>, "slot" | "style" | "title" | "role" | "className" | "onMouseEnter" | "onMouseLeave" | "children" | "id" | "tabIndex" | "autoFocus" | "placeholder" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "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" | "onSelect" | "defaultValue" | "onChange" | "download" | "href" | "hrefLang" | "media" | "ping" | "target" | "referrerPolicy" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "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" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "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";
|
package/dist/index.js
CHANGED
|
@@ -1265,62 +1265,6 @@ function OdsLogin(props) {
|
|
|
1265
1265
|
}, "Log in"))));
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
|
-
var EditSvg = function EditSvg() {
|
|
1269
|
-
return React__default.createElement("svg", {
|
|
1270
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1271
|
-
width: "18",
|
|
1272
|
-
height: "17",
|
|
1273
|
-
viewBox: "0 0 18 17",
|
|
1274
|
-
fill: "none"
|
|
1275
|
-
}, React__default.createElement("path", {
|
|
1276
|
-
d: "M4.83333 13.1667L1.5 14.0001L2.33333 10.6667L12.3333 0.666748L14.8333 3.16675L4.83333 13.1667Z",
|
|
1277
|
-
stroke: "#535353",
|
|
1278
|
-
"stroke-linejoin": "round"
|
|
1279
|
-
}), React__default.createElement("path", {
|
|
1280
|
-
d: "M0.666748 16.5H17.3334",
|
|
1281
|
-
stroke: "#535353",
|
|
1282
|
-
"stroke-linejoin": "round"
|
|
1283
|
-
}));
|
|
1284
|
-
};
|
|
1285
|
-
|
|
1286
|
-
var DeleteSvg = function DeleteSvg() {
|
|
1287
|
-
return React__default.createElement("svg", {
|
|
1288
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1289
|
-
width: "18",
|
|
1290
|
-
height: "18",
|
|
1291
|
-
viewBox: "0 0 18 18",
|
|
1292
|
-
fill: "none"
|
|
1293
|
-
}, React__default.createElement("path", {
|
|
1294
|
-
d: "M3.16675 5.25H14.8334L14.0001 17.3333H4.00008L3.16675 5.25Z",
|
|
1295
|
-
stroke: "#535353",
|
|
1296
|
-
"stroke-linejoin": "round"
|
|
1297
|
-
}), React__default.createElement("path", {
|
|
1298
|
-
d: "M9 7.3335V14.8335",
|
|
1299
|
-
stroke: "#535353",
|
|
1300
|
-
"stroke-linejoin": "round"
|
|
1301
|
-
}), React__default.createElement("path", {
|
|
1302
|
-
d: "M6.0835 7.3335L6.50016 14.8335",
|
|
1303
|
-
stroke: "#535353",
|
|
1304
|
-
"stroke-linejoin": "round"
|
|
1305
|
-
}), React__default.createElement("path", {
|
|
1306
|
-
d: "M11.9167 7.3335L11.5001 14.8335",
|
|
1307
|
-
stroke: "#535353",
|
|
1308
|
-
"stroke-linejoin": "round"
|
|
1309
|
-
}), React__default.createElement("path", {
|
|
1310
|
-
d: "M3.16675 4.75C3.16675 3.64543 4.06218 2.75 5.16675 2.75H12.8334C13.938 2.75 14.8334 3.64543 14.8334 4.75V5.25H3.16675V4.75Z",
|
|
1311
|
-
stroke: "#535353",
|
|
1312
|
-
"stroke-linejoin": "round"
|
|
1313
|
-
}), React__default.createElement("path", {
|
|
1314
|
-
d: "M7.3335 2.75008V2.33342C7.3335 1.41294 8.07969 0.666748 9.00016 0.666748V0.666748C9.92064 0.666748 10.6668 1.41294 10.6668 2.33342V2.75008",
|
|
1315
|
-
stroke: "#535353",
|
|
1316
|
-
"stroke-linejoin": "round"
|
|
1317
|
-
}), React__default.createElement("path", {
|
|
1318
|
-
d: "M0.666748 5.25H17.3334",
|
|
1319
|
-
stroke: "#535353",
|
|
1320
|
-
"stroke-linejoin": "round"
|
|
1321
|
-
}));
|
|
1322
|
-
};
|
|
1323
|
-
|
|
1324
1268
|
var exportFormats = ['xlsx'];
|
|
1325
1269
|
var renderMenuItem = function renderMenuItem() {
|
|
1326
1270
|
return React__default.createElement(dataGrid.Export, {
|
|
@@ -1527,35 +1471,35 @@ function grid(props, dataGridRef) {
|
|
|
1527
1471
|
dataField: "Actions",
|
|
1528
1472
|
fixed: true,
|
|
1529
1473
|
allowSorting: false,
|
|
1530
|
-
buttons: ['edit', 'delete'],
|
|
1531
1474
|
caption: props.ColumnAction,
|
|
1532
1475
|
type: "buttons",
|
|
1533
1476
|
showInColumnChooser: false
|
|
1534
|
-
}, props.edit.allowUpdating && React__default.createElement(
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
}, React__default.createElement(
|
|
1541
|
-
|
|
1542
|
-
|
|
1477
|
+
}, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1478
|
+
hint: props.HintEdit,
|
|
1479
|
+
visible: true,
|
|
1480
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1481
|
+
icon: "edit",
|
|
1482
|
+
onClick: props.editButtonClick
|
|
1483
|
+
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1484
|
+
hint: props.HintDelete,
|
|
1485
|
+
visible: true,
|
|
1486
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1487
|
+
icon: "trash",
|
|
1488
|
+
onClick: props.deleteButtonClick
|
|
1489
|
+
}));
|
|
1543
1490
|
} else {
|
|
1544
1491
|
return React__default.createElement(dataGrid.Column, {
|
|
1545
1492
|
dataField: "Actions",
|
|
1546
1493
|
caption: "Actions",
|
|
1547
1494
|
type: "buttons",
|
|
1548
|
-
showInColumnChooser: false
|
|
1549
|
-
|
|
1550
|
-
|
|
1495
|
+
showInColumnChooser: false
|
|
1496
|
+
}, React__default.createElement(React__default.Fragment, null, props.edit.allowUpdating && React__default.createElement(dataGrid.Button, {
|
|
1497
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1551
1498
|
name: "edit"
|
|
1552
|
-
}, React__default.createElement(
|
|
1553
|
-
|
|
1554
|
-
}, React__default.createElement(EditSvg, null))), props.edit.allowDeleting && React__default.createElement(devextremeReact.Template, {
|
|
1499
|
+
}), props.edit.allowDeleting && React__default.createElement(dataGrid.Button, {
|
|
1500
|
+
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1555
1501
|
name: "delete"
|
|
1556
|
-
}
|
|
1557
|
-
className: "custom-icon"
|
|
1558
|
-
}, React__default.createElement(DeleteSvg, null)))));
|
|
1502
|
+
})));
|
|
1559
1503
|
}
|
|
1560
1504
|
}(), React__default.createElement(dataGrid.Toolbar, null, props.pageTitle && React__default.createElement(dataGrid.Item, {
|
|
1561
1505
|
location: "before"
|
|
@@ -1564,14 +1508,12 @@ function grid(props, dataGridRef) {
|
|
|
1564
1508
|
className: "dx-header-title"
|
|
1565
1509
|
}, props.pageTitle)), React__default.createElement(dataGrid.Item, {
|
|
1566
1510
|
location: "before"
|
|
1567
|
-
}, React__default.createElement("div", {
|
|
1568
|
-
className: "dx-header-action"
|
|
1569
1511
|
}, React__default.createElement(OdsButton, {
|
|
1570
1512
|
className: "dx-add-new",
|
|
1571
1513
|
type: "primary",
|
|
1572
1514
|
disabled: props.actionPermission == undefined ? false : !props.actionPermission,
|
|
1573
1515
|
onClick: props.onAddButton
|
|
1574
|
-
}, props.AddNewButtonName))
|
|
1516
|
+
}, props.AddNewButtonName)), React__default.createElement(dataGrid.Item, {
|
|
1575
1517
|
name: "searchPanel"
|
|
1576
1518
|
}), React__default.createElement(dataGrid.Item, {
|
|
1577
1519
|
name: "applyFilterButton"
|