etendo-ui-library 1.3.37 → 1.3.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/dist-native/components/cards/components/card/components/switchRowCard/SwitchRowCard.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.getIconByType=exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../../../../../../assets/images/icons");var _SwitchRowCard=require("./SwitchRowCard.style");var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/cards/components/card/components/switchRowCard/SwitchRowCard.tsx";var DOTS='··································································································';var getIconByType=exports.getIconByType=function getIconByType(_ref){var row=_ref.row,item=_ref.item,_ref$color=_ref.color,color=_ref$color===void 0?{}:_ref$color;if(row!=null&&row.key&&item[row.key]){switch(row.type){case'date':return _react.default.createElement(_icons.CalendarIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:16}});case'time':return _react.default.createElement(_icons.TimeIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:16}});case'boolean':return item[row.key]?_react.default.createElement(_icons.CheckTrueIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:11}}):_react.default.createElement(_icons.CheckFalseIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:11}});default:break;}}};var SwitchRowCard=function SwitchRowCard(_ref2){var row=_ref2.row,item=_ref2.item,_ref2$color=_ref2.color,color=_ref2$color===void 0?{}:_ref2$color;if(!row){return;}if(row.type!=='string'&&row.type){return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:11}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{numberOfLines:1,ellipsizeMode:"clip",style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsRight],__self:_this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:11}},DOTS)),_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.getIconByType=exports.default=void 0;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _icons=require("../../../../../../assets/images/icons");var _SwitchRowCard=require("./SwitchRowCard.style");var _this=this,_jsxFileName="/home/jenkins/agent/workspace/etendo_ui_library_develop/etendo_ui_library/src/components/cards/components/card/components/switchRowCard/SwitchRowCard.tsx";var DOTS='··································································································';var getIconByType=exports.getIconByType=function getIconByType(_ref){var row=_ref.row,item=_ref.item,_ref$color=_ref.color,color=_ref$color===void 0?{}:_ref$color;if(row!=null&&row.key&&item[row.key]){switch(row.type){case'date':return _react.default.createElement(_icons.CalendarIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:22,columnNumber:16}});case'time':return _react.default.createElement(_icons.TimeIcon,{style:_SwitchRowCard.styles.calendar,fill:color.color,__self:_this,__source:{fileName:_jsxFileName,lineNumber:24,columnNumber:16}});case'boolean':return item[row.key]?_react.default.createElement(_icons.CheckTrueIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:27,columnNumber:11}}):_react.default.createElement(_icons.CheckFalseIcon,{style:_SwitchRowCard.styles.check,stroke:color.color,fill:'transparent',__self:_this,__source:{fileName:_jsxFileName,lineNumber:33,columnNumber:11}});default:break;}}};var SwitchRowCard=function SwitchRowCard(_ref2){var row=_ref2.row,item=_ref2.item,_ref2$color=_ref2.color,color=_ref2$color===void 0?{}:_ref2$color;if(!row){return;}if(row.type!=='string'&&row.type){return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.row,__self:_this,__source:{fileName:_jsxFileName,lineNumber:51,columnNumber:7}},_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:52,columnNumber:9}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:53,columnNumber:11}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{numberOfLines:1,ellipsizeMode:"clip",style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsRight,{textOverflow:'clip'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:59,columnNumber:11}},DOTS)),_react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.rowWitchdotsContainer,__self:_this,__source:{fileName:_jsxFileName,lineNumber:71,columnNumber:9}},_react.default.createElement(_reactNative.Text,{numberOfLines:1,ellipsizeMode:"clip",style:[_SwitchRowCard.styles.dots,_SwitchRowCard.styles.alignDotsLeft,{textOverflow:'clip'}],__self:_this,__source:{fileName:_jsxFileName,lineNumber:72,columnNumber:11}},DOTS),getIconByType({row:row,item:item,color:color}),row.type!=='boolean'&&_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textValue,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:85,columnNumber:13}},row!=null&&row.key?item[row.key]:'')));}return _react.default.createElement(_reactNative.View,{style:_SwitchRowCard.styles.column,__self:_this,__source:{fileName:_jsxFileName,lineNumber:98,columnNumber:5}},_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textName,color],ellipsizeMode:"tail",numberOfLines:1,__self:_this,__source:{fileName:_jsxFileName,lineNumber:99,columnNumber:7}},row==null?void 0:row.label),_react.default.createElement(_reactNative.Text,{style:[_SwitchRowCard.styles.textValue,color],ellipsizeMode:"tail",numberOfLines:2,__self:_this,__source:{fileName:_jsxFileName,lineNumber:105,columnNumber:7}},row!=null&&row.key?item[row.key]:''));};var _default=exports.default=SwitchRowCard;
|
|
@@ -55,13 +55,21 @@ var SwitchRowCard = function SwitchRowCard(_ref2) {
|
|
|
55
55
|
}, row === null || row === void 0 ? void 0 : row.label), /*#__PURE__*/React.createElement(Text, {
|
|
56
56
|
numberOfLines: 1,
|
|
57
57
|
ellipsizeMode: "clip",
|
|
58
|
-
style: [styles.dots, styles.alignDotsRight
|
|
58
|
+
style: [styles.dots, styles.alignDotsRight,
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
{
|
|
61
|
+
textOverflow: 'clip'
|
|
62
|
+
}]
|
|
59
63
|
}, DOTS)), /*#__PURE__*/React.createElement(View, {
|
|
60
64
|
style: styles.rowWitchdotsContainer
|
|
61
65
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
62
66
|
numberOfLines: 1,
|
|
63
67
|
ellipsizeMode: "clip",
|
|
64
|
-
style: [styles.dots, styles.alignDotsLeft
|
|
68
|
+
style: [styles.dots, styles.alignDotsLeft,
|
|
69
|
+
// @ts-ignore
|
|
70
|
+
{
|
|
71
|
+
textOverflow: 'clip'
|
|
72
|
+
}]
|
|
65
73
|
}, DOTS), getIconByType({
|
|
66
74
|
row: row,
|
|
67
75
|
item: item,
|