@lanaco/lnc-react-ui 2.1.37 → 2.1.38
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/lib/index.esm.js +14 -8
- package/lib/index.js +14 -8
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -42373,7 +42373,7 @@ var TableView = function TableView(props) {
|
|
|
42373
42373
|
var tabIndex = rowIndex * Columns.length + cellIndex + 50;
|
|
42374
42374
|
|
|
42375
42375
|
var onClick = function onClick() {
|
|
42376
|
-
ChangeToFormView(dataItem, rowIndex);
|
|
42376
|
+
props.disabled ? null : ChangeToFormView(dataItem, rowIndex);
|
|
42377
42377
|
};
|
|
42378
42378
|
|
|
42379
42379
|
if (!EnableFormView) onClick = function onClick() {};
|
|
@@ -42408,7 +42408,8 @@ var TableView = function TableView(props) {
|
|
|
42408
42408
|
LookupTakeItem(dataItem);
|
|
42409
42409
|
}
|
|
42410
42410
|
},
|
|
42411
|
-
icon: "arrow-right"
|
|
42411
|
+
icon: "arrow-right",
|
|
42412
|
+
disabled: props.disabled
|
|
42412
42413
|
}));
|
|
42413
42414
|
}
|
|
42414
42415
|
|
|
@@ -42421,7 +42422,8 @@ var TableView = function TableView(props) {
|
|
|
42421
42422
|
onChange: function onChange(e, val) {
|
|
42422
42423
|
return handleOnSelection(dataItem, val);
|
|
42423
42424
|
},
|
|
42424
|
-
id: rowIndex
|
|
42425
|
+
id: rowIndex,
|
|
42426
|
+
disabled: props.disabled
|
|
42425
42427
|
}));
|
|
42426
42428
|
};
|
|
42427
42429
|
|
|
@@ -42466,7 +42468,8 @@ var TableView = function TableView(props) {
|
|
|
42466
42468
|
if (IsLookup) return /*#__PURE__*/React__default.createElement(TableHeadCell$1, {
|
|
42467
42469
|
selectionCell: true,
|
|
42468
42470
|
key: -1,
|
|
42469
|
-
title: title
|
|
42471
|
+
title: title,
|
|
42472
|
+
disabled: props.disabled
|
|
42470
42473
|
});
|
|
42471
42474
|
if (!EnableSelection || ReadOnly || IsLookup && SelectionType === TableSelectionType.SINGLE) return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
42472
42475
|
return /*#__PURE__*/React__default.createElement(TableHeadCell$1, {
|
|
@@ -42478,7 +42481,8 @@ var TableView = function TableView(props) {
|
|
|
42478
42481
|
onChange: function onChange() {
|
|
42479
42482
|
return handleSelectAll(!SelectedEntirePage);
|
|
42480
42483
|
},
|
|
42481
|
-
id: "SelectedEntirePage"
|
|
42484
|
+
id: "SelectedEntirePage",
|
|
42485
|
+
disabled: props.disabled
|
|
42482
42486
|
}));
|
|
42483
42487
|
};
|
|
42484
42488
|
|
|
@@ -43048,7 +43052,7 @@ var DataView = function DataView(props) {
|
|
|
43048
43052
|
onClick: loading ? function () {} : function () {
|
|
43049
43053
|
return setDeleteConfirmationBoxOpen(true);
|
|
43050
43054
|
},
|
|
43051
|
-
disabled: Table.SelectedData.length === 0,
|
|
43055
|
+
disabled: props.disabled || Table.SelectedData.length === 0,
|
|
43052
43056
|
tooltip: Localization.DeleteSelected,
|
|
43053
43057
|
icon: "trash",
|
|
43054
43058
|
inverted: true
|
|
@@ -43079,7 +43083,8 @@ var DataView = function DataView(props) {
|
|
|
43079
43083
|
tooltip: Localization.Add,
|
|
43080
43084
|
onClick: freezeLoading() ? function () {} : GoToAdd,
|
|
43081
43085
|
icon: "plus",
|
|
43082
|
-
inverted: true
|
|
43086
|
+
inverted: true,
|
|
43087
|
+
disabled: props.disabled
|
|
43083
43088
|
}));
|
|
43084
43089
|
return null;
|
|
43085
43090
|
};
|
|
@@ -43150,7 +43155,8 @@ var DataView = function DataView(props) {
|
|
|
43150
43155
|
Localization: Localization.TableView,
|
|
43151
43156
|
Export: Export,
|
|
43152
43157
|
Icons: Icons,
|
|
43153
|
-
accentColor: props.accentColor
|
|
43158
|
+
accentColor: props.accentColor,
|
|
43159
|
+
disabled: props.disabled
|
|
43154
43160
|
}));
|
|
43155
43161
|
};
|
|
43156
43162
|
|
package/lib/index.js
CHANGED
|
@@ -42414,7 +42414,7 @@ var TableView = function TableView(props) {
|
|
|
42414
42414
|
var tabIndex = rowIndex * Columns.length + cellIndex + 50;
|
|
42415
42415
|
|
|
42416
42416
|
var onClick = function onClick() {
|
|
42417
|
-
ChangeToFormView(dataItem, rowIndex);
|
|
42417
|
+
props.disabled ? null : ChangeToFormView(dataItem, rowIndex);
|
|
42418
42418
|
};
|
|
42419
42419
|
|
|
42420
42420
|
if (!EnableFormView) onClick = function onClick() {};
|
|
@@ -42449,7 +42449,8 @@ var TableView = function TableView(props) {
|
|
|
42449
42449
|
LookupTakeItem(dataItem);
|
|
42450
42450
|
}
|
|
42451
42451
|
},
|
|
42452
|
-
icon: "arrow-right"
|
|
42452
|
+
icon: "arrow-right",
|
|
42453
|
+
disabled: props.disabled
|
|
42453
42454
|
}));
|
|
42454
42455
|
}
|
|
42455
42456
|
|
|
@@ -42462,7 +42463,8 @@ var TableView = function TableView(props) {
|
|
|
42462
42463
|
onChange: function onChange(e, val) {
|
|
42463
42464
|
return handleOnSelection(dataItem, val);
|
|
42464
42465
|
},
|
|
42465
|
-
id: rowIndex
|
|
42466
|
+
id: rowIndex,
|
|
42467
|
+
disabled: props.disabled
|
|
42466
42468
|
}));
|
|
42467
42469
|
};
|
|
42468
42470
|
|
|
@@ -42507,7 +42509,8 @@ var TableView = function TableView(props) {
|
|
|
42507
42509
|
if (IsLookup) return /*#__PURE__*/React__default['default'].createElement(TableHeadCell$1, {
|
|
42508
42510
|
selectionCell: true,
|
|
42509
42511
|
key: -1,
|
|
42510
|
-
title: title
|
|
42512
|
+
title: title,
|
|
42513
|
+
disabled: props.disabled
|
|
42511
42514
|
});
|
|
42512
42515
|
if (!EnableSelection || ReadOnly || IsLookup && SelectionType === TableSelectionType.SINGLE) return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
42513
42516
|
return /*#__PURE__*/React__default['default'].createElement(TableHeadCell$1, {
|
|
@@ -42519,7 +42522,8 @@ var TableView = function TableView(props) {
|
|
|
42519
42522
|
onChange: function onChange() {
|
|
42520
42523
|
return handleSelectAll(!SelectedEntirePage);
|
|
42521
42524
|
},
|
|
42522
|
-
id: "SelectedEntirePage"
|
|
42525
|
+
id: "SelectedEntirePage",
|
|
42526
|
+
disabled: props.disabled
|
|
42523
42527
|
}));
|
|
42524
42528
|
};
|
|
42525
42529
|
|
|
@@ -43089,7 +43093,7 @@ var DataView = function DataView(props) {
|
|
|
43089
43093
|
onClick: loading ? function () {} : function () {
|
|
43090
43094
|
return setDeleteConfirmationBoxOpen(true);
|
|
43091
43095
|
},
|
|
43092
|
-
disabled: Table.SelectedData.length === 0,
|
|
43096
|
+
disabled: props.disabled || Table.SelectedData.length === 0,
|
|
43093
43097
|
tooltip: Localization.DeleteSelected,
|
|
43094
43098
|
icon: "trash",
|
|
43095
43099
|
inverted: true
|
|
@@ -43120,7 +43124,8 @@ var DataView = function DataView(props) {
|
|
|
43120
43124
|
tooltip: Localization.Add,
|
|
43121
43125
|
onClick: freezeLoading() ? function () {} : GoToAdd,
|
|
43122
43126
|
icon: "plus",
|
|
43123
|
-
inverted: true
|
|
43127
|
+
inverted: true,
|
|
43128
|
+
disabled: props.disabled
|
|
43124
43129
|
}));
|
|
43125
43130
|
return null;
|
|
43126
43131
|
};
|
|
@@ -43191,7 +43196,8 @@ var DataView = function DataView(props) {
|
|
|
43191
43196
|
Localization: Localization.TableView,
|
|
43192
43197
|
Export: Export,
|
|
43193
43198
|
Icons: Icons,
|
|
43194
|
-
accentColor: props.accentColor
|
|
43199
|
+
accentColor: props.accentColor,
|
|
43200
|
+
disabled: props.disabled
|
|
43195
43201
|
}));
|
|
43196
43202
|
};
|
|
43197
43203
|
|