@lanaco/lnc-react-ui 3.11.15 → 3.11.17

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 CHANGED
@@ -47932,6 +47932,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
47932
47932
  };
47933
47933
  if (btnType === "filled") {
47934
47934
  return /*#__PURE__*/React__default.createElement(FilledButton, _extends$4({
47935
+ ref: ref,
47935
47936
  "data-type": "filled"
47936
47937
  }, themeProps, {
47937
47938
  onFocus: onFocus,
@@ -47943,6 +47944,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
47943
47944
  }
47944
47945
  if (btnType === "tinted") {
47945
47946
  return /*#__PURE__*/React__default.createElement(TintedButton, _extends$4({
47947
+ ref: ref,
47946
47948
  "data-type": "tinted"
47947
47949
  }, themeProps, {
47948
47950
  onFocus: onFocus,
@@ -47953,6 +47955,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
47953
47955
  }
47954
47956
  if (btnType === "outline") {
47955
47957
  return /*#__PURE__*/React__default.createElement(OutlineButton, _extends$4({
47958
+ ref: ref,
47956
47959
  "data-type": "outline"
47957
47960
  }, themeProps, {
47958
47961
  onFocus: onFocus,
@@ -47963,6 +47966,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
47963
47966
  }
47964
47967
  if (btnType === "basic") {
47965
47968
  return /*#__PURE__*/React__default.createElement(BasicButton, _extends$4({
47969
+ ref: ref,
47966
47970
  "data-type": "basic"
47967
47971
  }, themeProps, {
47968
47972
  onFocus: onFocus,
@@ -47972,6 +47976,7 @@ var Button = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
47972
47976
  }, rest), renderIcon());
47973
47977
  }
47974
47978
  return /*#__PURE__*/React__default.createElement(FilledButton, _extends$4({
47979
+ ref: ref,
47975
47980
  "data-type": "filled",
47976
47981
  size: size
47977
47982
  }, themeProps, {
@@ -53990,8 +53995,8 @@ var EditableTableCell = function EditableTableCell(props) {
53990
53995
  var inputProps = _objectSpread$c(_objectSpread$c(_objectSpread$c({}, themeProps), {}, {
53991
53996
  debounceTime: 0
53992
53997
  }, Column.inputProps), {}, {
53993
- value: RowData[Column.accessor],
53994
- 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],
53995
54000
  focused: focused,
53996
54001
  onChange: standardOnChange,
53997
54002
  onBlur: function onBlur(e) {
@@ -54034,7 +54039,7 @@ var EditableTableCell = function EditableTableCell(props) {
54034
54039
  case inputType.SELECT:
54035
54040
  inputComponent = /*#__PURE__*/React__default.createElement(Dropdown, _extends$4({}, inputProps, {
54036
54041
  value: Column.inputProps.options.find(function (x) {
54037
- 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];
54038
54043
  }),
54039
54044
  onChange: dropdownOnChange,
54040
54045
  ref: inputRef
@@ -54065,9 +54070,9 @@ var EditableTableCell = function EditableTableCell(props) {
54065
54070
  inputComponent = /*#__PURE__*/React__default.createElement(Column.editComponent, _extends$4({
54066
54071
  ref: inputRef,
54067
54072
  tabIndex: calculateTabIndex(),
54068
- 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],
54069
54074
  onChange: function onChange(event, value, id) {
54070
- return _onChange(event, value, RowIndex, Index, Column, RowData, id);
54075
+ _onChange(event, value, RowIndex, Index, Column, RowData, id);
54071
54076
  },
54072
54077
  focused: focused,
54073
54078
  onBlur: handleBlur,
@@ -54089,9 +54094,9 @@ var EditableTableCell = function EditableTableCell(props) {
54089
54094
  hasRender: Column.readonlyComponent ? true : false
54090
54095
  }, themeProps), Column.readonlyComponent ? /*#__PURE__*/React__default.createElement(Column.readonlyComponent, {
54091
54096
  rowData: RowData,
54092
- 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],
54093
54098
  disabled: true
54094
- }) : RowData[Column.accessor]);
54099
+ }) : Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor]);
54095
54100
  };
54096
54101
  return /*#__PURE__*/React__default.createElement(HtmlCell, _extends$4({
54097
54102
  "data-rowindex": RowIndex
package/lib/index.js CHANGED
@@ -47981,6 +47981,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (props,
47981
47981
  };
47982
47982
  if (btnType === "filled") {
47983
47983
  return /*#__PURE__*/React__default["default"].createElement(FilledButton, _extends__default$1["default"]({
47984
+ ref: ref,
47984
47985
  "data-type": "filled"
47985
47986
  }, themeProps, {
47986
47987
  onFocus: onFocus,
@@ -47992,6 +47993,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (props,
47992
47993
  }
47993
47994
  if (btnType === "tinted") {
47994
47995
  return /*#__PURE__*/React__default["default"].createElement(TintedButton, _extends__default$1["default"]({
47996
+ ref: ref,
47995
47997
  "data-type": "tinted"
47996
47998
  }, themeProps, {
47997
47999
  onFocus: onFocus,
@@ -48002,6 +48004,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (props,
48002
48004
  }
48003
48005
  if (btnType === "outline") {
48004
48006
  return /*#__PURE__*/React__default["default"].createElement(OutlineButton, _extends__default$1["default"]({
48007
+ ref: ref,
48005
48008
  "data-type": "outline"
48006
48009
  }, themeProps, {
48007
48010
  onFocus: onFocus,
@@ -48012,6 +48015,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (props,
48012
48015
  }
48013
48016
  if (btnType === "basic") {
48014
48017
  return /*#__PURE__*/React__default["default"].createElement(BasicButton, _extends__default$1["default"]({
48018
+ ref: ref,
48015
48019
  "data-type": "basic"
48016
48020
  }, themeProps, {
48017
48021
  onFocus: onFocus,
@@ -48021,6 +48025,7 @@ var Button = /*#__PURE__*/React__default["default"].forwardRef(function (props,
48021
48025
  }, rest), renderIcon());
48022
48026
  }
48023
48027
  return /*#__PURE__*/React__default["default"].createElement(FilledButton, _extends__default$1["default"]({
48028
+ ref: ref,
48024
48029
  "data-type": "filled",
48025
48030
  size: size
48026
48031
  }, themeProps, {
@@ -54039,8 +54044,8 @@ var EditableTableCell = function EditableTableCell(props) {
54039
54044
  var inputProps = _objectSpread$c(_objectSpread$c(_objectSpread$c({}, themeProps), {}, {
54040
54045
  debounceTime: 0
54041
54046
  }, Column.inputProps), {}, {
54042
- value: RowData[Column.accessor],
54043
- 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],
54044
54049
  focused: focused,
54045
54050
  onChange: standardOnChange,
54046
54051
  onBlur: function onBlur(e) {
@@ -54083,7 +54088,7 @@ var EditableTableCell = function EditableTableCell(props) {
54083
54088
  case inputType.SELECT:
54084
54089
  inputComponent = /*#__PURE__*/React__default["default"].createElement(Dropdown, _extends__default$1["default"]({}, inputProps, {
54085
54090
  value: Column.inputProps.options.find(function (x) {
54086
- 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];
54087
54092
  }),
54088
54093
  onChange: dropdownOnChange,
54089
54094
  ref: inputRef
@@ -54114,9 +54119,9 @@ var EditableTableCell = function EditableTableCell(props) {
54114
54119
  inputComponent = /*#__PURE__*/React__default["default"].createElement(Column.editComponent, _extends__default$1["default"]({
54115
54120
  ref: inputRef,
54116
54121
  tabIndex: calculateTabIndex(),
54117
- 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],
54118
54123
  onChange: function onChange(event, value, id) {
54119
- return _onChange(event, value, RowIndex, Index, Column, RowData, id);
54124
+ _onChange(event, value, RowIndex, Index, Column, RowData, id);
54120
54125
  },
54121
54126
  focused: focused,
54122
54127
  onBlur: handleBlur,
@@ -54138,9 +54143,9 @@ var EditableTableCell = function EditableTableCell(props) {
54138
54143
  hasRender: Column.readonlyComponent ? true : false
54139
54144
  }, themeProps), Column.readonlyComponent ? /*#__PURE__*/React__default["default"].createElement(Column.readonlyComponent, {
54140
54145
  rowData: RowData,
54141
- 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],
54142
54147
  disabled: true
54143
- }) : RowData[Column.accessor]);
54148
+ }) : Column !== null && Column !== void 0 && Column.objectAccessor ? RowData[Column.accessor][Column === null || Column === void 0 ? void 0 : Column.objectAccessor] : RowData[Column.accessor]);
54144
54149
  };
54145
54150
  return /*#__PURE__*/React__default["default"].createElement(HtmlCell, _extends__default$1["default"]({
54146
54151
  "data-rowindex": RowIndex
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
3
  "type": "module",
4
- "version": "3.11.15",
4
+ "version": "3.11.17",
5
5
  "description": "component library",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.esm.js",