@lanaco/lnc-react-ui 3.11.16 → 3.11.18
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 +11 -8
- package/lib/index.js +11 -8
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -53995,8 +53995,8 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
53995
53995
|
var inputProps = _objectSpread$c(_objectSpread$c(_objectSpread$c({}, themeProps), {}, {
|
|
53996
53996
|
debounceTime: 0
|
|
53997
53997
|
}, Column.inputProps), {}, {
|
|
53998
|
-
value: RowData[Column.accessor],
|
|
53999
|
-
defaultChecked: RowData[Column.accessor],
|
|
53998
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
53999
|
+
defaultChecked: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54000
54000
|
focused: focused,
|
|
54001
54001
|
onChange: standardOnChange,
|
|
54002
54002
|
onBlur: function onBlur(e) {
|
|
@@ -54039,7 +54039,7 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54039
54039
|
case inputType.SELECT:
|
|
54040
54040
|
inputComponent = /*#__PURE__*/React__default.createElement(Dropdown, _extends$4({}, inputProps, {
|
|
54041
54041
|
value: Column.inputProps.options.find(function (x) {
|
|
54042
|
-
return x.value === RowData[Column.accessor];
|
|
54042
|
+
return x.value === (Column === null || Column === void 0 ? void 0 : Column.objectAccessor) ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor];
|
|
54043
54043
|
}),
|
|
54044
54044
|
onChange: dropdownOnChange,
|
|
54045
54045
|
ref: inputRef
|
|
@@ -54070,9 +54070,9 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54070
54070
|
inputComponent = /*#__PURE__*/React__default.createElement(Column.editComponent, _extends$4({
|
|
54071
54071
|
ref: inputRef,
|
|
54072
54072
|
tabIndex: calculateTabIndex(),
|
|
54073
|
-
value: RowData[Column.accessor],
|
|
54073
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54074
54074
|
onChange: function onChange(event, value, id) {
|
|
54075
|
-
|
|
54075
|
+
_onChange(event, value, RowIndex, Index, Column, RowData, id);
|
|
54076
54076
|
},
|
|
54077
54077
|
focused: focused,
|
|
54078
54078
|
onBlur: handleBlur,
|
|
@@ -54094,9 +54094,10 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54094
54094
|
hasRender: Column.readonlyComponent ? true : false
|
|
54095
54095
|
}, themeProps), Column.readonlyComponent ? /*#__PURE__*/React__default.createElement(Column.readonlyComponent, {
|
|
54096
54096
|
rowData: RowData,
|
|
54097
|
-
value: RowData[Column.accessor],
|
|
54097
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54098
|
+
fullValue: RowData[Column.accessor],
|
|
54098
54099
|
disabled: true
|
|
54099
|
-
}) : RowData[Column.accessor]);
|
|
54100
|
+
}) : Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor]);
|
|
54100
54101
|
};
|
|
54101
54102
|
return /*#__PURE__*/React__default.createElement(HtmlCell, _extends$4({
|
|
54102
54103
|
"data-rowindex": RowIndex
|
|
@@ -72834,6 +72835,7 @@ var ActionsToolbar = /*#__PURE__*/React__default.forwardRef(function (props, ref
|
|
|
72834
72835
|
}, rest), /*#__PURE__*/React__default.createElement("div", null, showCreate && readOnly == false && /*#__PURE__*/React__default.createElement(Button$1, {
|
|
72835
72836
|
leadingIcon: "plus",
|
|
72836
72837
|
btnType: "outline",
|
|
72838
|
+
type: "button",
|
|
72837
72839
|
color: color,
|
|
72838
72840
|
size: size,
|
|
72839
72841
|
title: createText,
|
|
@@ -72848,7 +72850,8 @@ var ActionsToolbar = /*#__PURE__*/React__default.forwardRef(function (props, ref
|
|
|
72848
72850
|
btnType: "outline",
|
|
72849
72851
|
trailingIcon: "angle-down",
|
|
72850
72852
|
color: color,
|
|
72851
|
-
size: size
|
|
72853
|
+
size: size,
|
|
72854
|
+
type: "button"
|
|
72852
72855
|
})
|
|
72853
72856
|
}, showCopy && readOnly == false && /*#__PURE__*/React__default.createElement(DropdownItem, {
|
|
72854
72857
|
icon: "copy",
|
package/lib/index.js
CHANGED
|
@@ -54044,8 +54044,8 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54044
54044
|
var inputProps = _objectSpread$c(_objectSpread$c(_objectSpread$c({}, themeProps), {}, {
|
|
54045
54045
|
debounceTime: 0
|
|
54046
54046
|
}, Column.inputProps), {}, {
|
|
54047
|
-
value: RowData[Column.accessor],
|
|
54048
|
-
defaultChecked: RowData[Column.accessor],
|
|
54047
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54048
|
+
defaultChecked: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54049
54049
|
focused: focused,
|
|
54050
54050
|
onChange: standardOnChange,
|
|
54051
54051
|
onBlur: function onBlur(e) {
|
|
@@ -54088,7 +54088,7 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54088
54088
|
case inputType.SELECT:
|
|
54089
54089
|
inputComponent = /*#__PURE__*/React__default["default"].createElement(Dropdown, _extends__default$1["default"]({}, inputProps, {
|
|
54090
54090
|
value: Column.inputProps.options.find(function (x) {
|
|
54091
|
-
return x.value === RowData[Column.accessor];
|
|
54091
|
+
return x.value === (Column === null || Column === void 0 ? void 0 : Column.objectAccessor) ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor];
|
|
54092
54092
|
}),
|
|
54093
54093
|
onChange: dropdownOnChange,
|
|
54094
54094
|
ref: inputRef
|
|
@@ -54119,9 +54119,9 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54119
54119
|
inputComponent = /*#__PURE__*/React__default["default"].createElement(Column.editComponent, _extends__default$1["default"]({
|
|
54120
54120
|
ref: inputRef,
|
|
54121
54121
|
tabIndex: calculateTabIndex(),
|
|
54122
|
-
value: RowData[Column.accessor],
|
|
54122
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54123
54123
|
onChange: function onChange(event, value, id) {
|
|
54124
|
-
|
|
54124
|
+
_onChange(event, value, RowIndex, Index, Column, RowData, id);
|
|
54125
54125
|
},
|
|
54126
54126
|
focused: focused,
|
|
54127
54127
|
onBlur: handleBlur,
|
|
@@ -54143,9 +54143,10 @@ var EditableTableCell = function EditableTableCell(props) {
|
|
|
54143
54143
|
hasRender: Column.readonlyComponent ? true : false
|
|
54144
54144
|
}, themeProps), Column.readonlyComponent ? /*#__PURE__*/React__default["default"].createElement(Column.readonlyComponent, {
|
|
54145
54145
|
rowData: RowData,
|
|
54146
|
-
value: RowData[Column.accessor],
|
|
54146
|
+
value: Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor],
|
|
54147
|
+
fullValue: RowData[Column.accessor],
|
|
54147
54148
|
disabled: true
|
|
54148
|
-
}) : RowData[Column.accessor]);
|
|
54149
|
+
}) : Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor]);
|
|
54149
54150
|
};
|
|
54150
54151
|
return /*#__PURE__*/React__default["default"].createElement(HtmlCell, _extends__default$1["default"]({
|
|
54151
54152
|
"data-rowindex": RowIndex
|
|
@@ -72883,6 +72884,7 @@ var ActionsToolbar = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
72883
72884
|
}, rest), /*#__PURE__*/React__default["default"].createElement("div", null, showCreate && readOnly == false && /*#__PURE__*/React__default["default"].createElement(Button$1, {
|
|
72884
72885
|
leadingIcon: "plus",
|
|
72885
72886
|
btnType: "outline",
|
|
72887
|
+
type: "button",
|
|
72886
72888
|
color: color,
|
|
72887
72889
|
size: size,
|
|
72888
72890
|
title: createText,
|
|
@@ -72897,7 +72899,8 @@ var ActionsToolbar = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
72897
72899
|
btnType: "outline",
|
|
72898
72900
|
trailingIcon: "angle-down",
|
|
72899
72901
|
color: color,
|
|
72900
|
-
size: size
|
|
72902
|
+
size: size,
|
|
72903
|
+
type: "button"
|
|
72901
72904
|
})
|
|
72902
72905
|
}, showCopy && readOnly == false && /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
|
|
72903
72906
|
icon: "copy",
|