@zohodesk/dot 1.3.0 → 1.3.2
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/.cli/PropLessFiles.html +1 -1
- package/.cli/PropValidationExcludeFilesArray.js +1 -1
- package/.cli/propValidation_report.html +1 -1
- package/README.md +21 -12
- package/assets/Appearance/dark/mode/Dot_DarkMode.module.css +163 -553
- package/assets/Appearance/dark/themes/blue/blue_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/green/green_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/orange/orange_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/red/red_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/dark/themes/yellow/yellow_DotTheme_DarkTheme.module.css +3 -12
- package/assets/Appearance/light/mode/Dot_LightMode.module.css +163 -553
- package/assets/Appearance/light/themes/blue/blue_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/green/green_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/orange/orange_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/red/red_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/light/themes/yellow/yellow_DotTheme_LightTheme.module.css +3 -12
- package/assets/Appearance/pureDark/mode/Dot_PureDarkMode.module.css +163 -553
- package/assets/Appearance/pureDark/themes/blue/blue_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/green/green_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/orange/orange_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/red/red_DotTheme_PureDarkTheme.module.css +3 -12
- package/assets/Appearance/pureDark/themes/yellow/yellow_DotTheme_PureDarkTheme.module.css +3 -12
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +466 -0
- package/coverage/IconButton/IconButton.module.css.html +151 -0
- package/coverage/IconButton/index.html +131 -0
- package/coverage/IconButton/props/defaultProps.js.html +136 -0
- package/coverage/IconButton/props/index.html +131 -0
- package/coverage/IconButton/props/propTypes.js.html +187 -0
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +4 -0
- package/coverage/coverage-summary.json +5 -1
- package/coverage/index.html +40 -10
- package/es/IconButton/__tests__/IconButton.spec.js +148 -0
- package/es/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/es/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/es/v1/ActionButton/ActionButton.js +2 -2
- package/es/v1/AlphabeticList/AlphabeticList.js +6 -2
- package/es/v1/Attachment/Attachment.js +78 -75
- package/es/v1/AttachmentViewer/AttachmentImage.js +44 -63
- package/es/v1/Image/Image.js +26 -33
- package/es/v1/Loader/Loader.js +12 -18
- package/es/v1/Message/Message.js +16 -42
- package/es/v1/PlusIcon/PlusIcon.js +25 -37
- package/es/v1/Separator/Separator.js +40 -47
- package/es/v1/Upload/Upload.js +59 -66
- package/es/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/es/v1/alert/AlertHeader/props/defaultProps.js +12 -0
- package/es/v1/alert/AlertHeader/props/propTypes.js +20 -0
- package/es/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/es/v1/alert/AlertLookup/props/defaultProps.js +13 -0
- package/es/v1/alert/AlertLookup/props/propTypes.js +36 -0
- package/es/v1/avatar/AvatarClose/AvatarClose.js +32 -43
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +41 -52
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +38 -43
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +52 -63
- package/es/v1/avatar/AvatarThread/AvatarThread.js +62 -69
- package/es/v1/avatar/AvatarUser/AvatarUser.js +93 -100
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +81 -88
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/es/v1/form/fields/DateField/DateField.js +6 -6
- package/es/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/es/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/es/v1/form/fields/RadioField/RadioField.js +89 -97
- package/es/v1/form/fields/SelectField/SelectField.js +139 -154
- package/es/v1/layout/SetupDetailLayout/SetupDetailLayout.js +154 -197
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +108 -124
- package/es/v1/list/SecondaryText/AccountName.js +61 -69
- package/es/v1/list/SecondaryText/ContactName.js +66 -74
- package/es/v1/list/SecondaryText/DepartmentText.js +15 -27
- package/es/v1/list/SecondaryText/Email.js +32 -40
- package/es/v1/list/SecondaryText/HappinessRating.js +17 -25
- package/es/v1/list/SecondaryText/PhoneNumber.js +36 -44
- package/es/v1/list/SecondaryText/PriorityText.js +16 -28
- package/es/v1/list/SecondaryText/SecondaryText.js +21 -33
- package/es/v1/list/SecondaryText/StatusText.js +17 -29
- package/es/v1/list/SecondaryText/TicketId.js +33 -45
- package/es/v1/list/SecondaryText/Website.js +22 -30
- package/es/v1/list/SecondryPanel/SecondryPanel.js +66 -83
- package/es/v1/list/SentimentStatus/SentimentStatus.js +18 -29
- package/es/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/es/v1/list/status/StatusListItem/StatusListItem.js +75 -100
- package/es/v1/lookup/EmptyPage/EmptyPage.js +15 -26
- package/es/v1/lookup/Section/Section.js +14 -20
- package/es/v1/svg/PlusIcon.js +20 -27
- package/es/v1/svg/SnippetIcon.js +22 -29
- package/es/v1/svg/TemplateIcon.js +23 -30
- package/lib/IconButton/__tests__/IconButton.spec.js +156 -0
- package/lib/IconButton/__tests__/__snapshots__/IconButton.spec.js.snap +316 -0
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -1
- package/lib/v1/ActionButton/ActionButton.js +2 -2
- package/lib/v1/AlphabeticList/AlphabeticList.js +7 -3
- package/lib/v1/Attachment/Attachment.js +77 -112
- package/lib/v1/AttachmentViewer/AttachmentImage.js +61 -96
- package/lib/v1/Image/Image.js +26 -71
- package/lib/v1/Loader/Loader.js +12 -55
- package/lib/v1/Message/Message.js +23 -80
- package/lib/v1/PlusIcon/PlusIcon.js +25 -71
- package/lib/v1/Separator/Separator.js +44 -85
- package/lib/v1/Upload/Upload.js +58 -103
- package/lib/v1/alert/AlertHeader/AlertHeader.js +5 -4
- package/lib/v1/alert/AlertHeader/props/defaultProps.js +19 -0
- package/lib/v1/alert/AlertHeader/props/propTypes.js +31 -0
- package/lib/v1/alert/AlertLookup/AlertLookup.js +6 -4
- package/lib/v1/alert/AlertLookup/props/defaultProps.js +20 -0
- package/lib/v1/alert/AlertLookup/props/propTypes.js +47 -0
- package/lib/v1/avatar/AvatarClose/AvatarClose.js +32 -77
- package/lib/v1/avatar/AvatarCollision/AvatarCollision.js +41 -86
- package/lib/v1/avatar/AvatarIcon/AvatarIcon.js +37 -80
- package/lib/v1/avatar/AvatarStatus/AvatarStatus.js +52 -97
- package/lib/v1/avatar/AvatarThread/AvatarThread.js +61 -106
- package/lib/v1/avatar/AvatarUser/AvatarUser.js +95 -140
- package/lib/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +85 -130
- package/lib/v1/form/fields/CheckBoxField/CheckBoxField.js +6 -6
- package/lib/v1/form/fields/CurrencyField/CurrencyField.js +6 -6
- package/lib/v1/form/fields/DateField/DateField.js +6 -6
- package/lib/v1/form/fields/FieldContainer/FieldContainer.js +6 -6
- package/lib/v1/form/fields/MultiSelectField/MultiSelectField.js +6 -6
- package/lib/v1/form/fields/PhoneField/PhoneField.js +6 -6
- package/lib/v1/form/fields/RadioField/RadioField.js +91 -137
- package/lib/v1/form/fields/SelectField/SelectField.js +149 -200
- package/lib/v1/layout/SetupDetailLayout/SetupDetailLayout.js +160 -253
- package/lib/v1/layout/SubtabLayout/SubtabLayout.js +107 -206
- package/lib/v1/list/SecondaryText/AccountName.js +63 -113
- package/lib/v1/list/SecondaryText/ContactName.js +67 -117
- package/lib/v1/list/SecondaryText/DepartmentText.js +16 -66
- package/lib/v1/list/SecondaryText/Email.js +32 -82
- package/lib/v1/list/SecondaryText/HappinessRating.js +21 -68
- package/lib/v1/list/SecondaryText/PhoneNumber.js +36 -86
- package/lib/v1/list/SecondaryText/PriorityText.js +16 -66
- package/lib/v1/list/SecondaryText/SecondaryText.js +19 -69
- package/lib/v1/list/SecondaryText/StatusText.js +17 -67
- package/lib/v1/list/SecondaryText/TicketId.js +33 -83
- package/lib/v1/list/SecondaryText/Website.js +29 -72
- package/lib/v1/list/SecondryPanel/SecondryPanel.js +69 -168
- package/lib/v1/list/SentimentStatus/SentimentStatus.js +19 -64
- package/lib/v1/list/status/StatusDropdown/StatusDropdown.js +2 -2
- package/lib/v1/list/status/StatusListItem/StatusListItem.js +81 -137
- package/lib/v1/lookup/EmptyPage/EmptyPage.js +43 -93
- package/lib/v1/lookup/Section/Section.js +14 -58
- package/lib/v1/svg/PlusIcon.js +20 -65
- package/lib/v1/svg/SnippetIcon.js +22 -67
- package/lib/v1/svg/TemplateIcon.js +23 -68
- package/package.json +12 -12
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports
|
|
6
|
+
exports.SubtabContent = SubtabContent;
|
|
7
|
+
exports.SubtabFooter = SubtabFooter;
|
|
8
|
+
exports.SubtabHeader = SubtabHeader;
|
|
9
|
+
exports["default"] = SubtabLayout;
|
|
9
10
|
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
|
|
@@ -25,221 +26,121 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
25
26
|
|
|
26
27
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
28
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
dataId = _this$props.dataId,
|
|
77
|
-
isPeekView = _this$props.isPeekView;
|
|
78
|
-
return /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, {
|
|
79
|
-
customClass: "".concat(_SubtabLayoutModule["default"].tabHead, " ").concat(needShadow ? _SubtabLayoutModule["default"].shadowStyle : '', " ").concat(needBorder ? "".concat(_SubtabLayoutModule["default"][type], "_borderStyle") : '')
|
|
80
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
81
|
-
alignBox: "row",
|
|
82
|
-
className: " ".concat(className, " ").concat(isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peek") : _SubtabLayoutModule["default"][type]),
|
|
83
|
-
align: "vertical"
|
|
84
|
-
}, onAdd || children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
85
|
-
className: "".concat(_SubtabLayoutModule["default"].left, " ").concat(needPlusIconLine ? _SubtabLayoutModule["default"].plusIconLine : '')
|
|
86
|
-
}, onAdd ? /*#__PURE__*/_react["default"].createElement(_PlusIcon["default"], {
|
|
87
|
-
dataId: dataId,
|
|
88
|
-
onClick: onAdd
|
|
89
|
-
}) : children) : null, title ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
90
|
-
className: "".concat(_SubtabLayoutModule["default"].title, " ").concat(onAdd ? _SubtabLayoutModule["default"].cursor : ''),
|
|
91
|
-
onClick: onAdd ? onAdd : null
|
|
92
|
-
}, title) : null, getLeftPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
93
|
-
flexible: true,
|
|
94
|
-
shrink: true,
|
|
95
|
-
adjust: getRightPlaceHolder ? true : false,
|
|
96
|
-
className: leftClassName
|
|
97
|
-
}, label ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
-
className: _SubtabLayoutModule["default"].label
|
|
99
|
-
}, label) : null, getLeftPlaceHolder), getRightPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
100
|
-
flexible: true,
|
|
101
|
-
shrink: true,
|
|
102
|
-
adjust: getLeftPlaceHolder ? true : false,
|
|
103
|
-
className: rightClassName
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
105
|
-
alignBox: "row",
|
|
106
|
-
align: "vertical",
|
|
107
|
-
className: _SubtabLayoutModule["default"].aside
|
|
108
|
-
}, getRightPlaceHolder))));
|
|
109
|
-
}
|
|
110
|
-
}]);
|
|
111
|
-
|
|
112
|
-
return SubtabHeader;
|
|
113
|
-
}(_react["default"].Component);
|
|
29
|
+
function SubtabHeader(props) {
|
|
30
|
+
var onAdd = props.onAdd,
|
|
31
|
+
getLeftPlaceHolder = props.getLeftPlaceHolder,
|
|
32
|
+
title = props.title,
|
|
33
|
+
label = props.label,
|
|
34
|
+
getRightPlaceHolder = props.getRightPlaceHolder,
|
|
35
|
+
type = props.type,
|
|
36
|
+
leftClassName = props.leftClassName,
|
|
37
|
+
rightClassName = props.rightClassName,
|
|
38
|
+
className = props.className,
|
|
39
|
+
needBorder = props.needBorder,
|
|
40
|
+
needShadow = props.needShadow,
|
|
41
|
+
needPlusIconLine = props.needPlusIconLine,
|
|
42
|
+
children = props.children,
|
|
43
|
+
dataId = props.dataId,
|
|
44
|
+
isPeekView = props.isPeekView;
|
|
45
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, {
|
|
46
|
+
customClass: "".concat(_SubtabLayoutModule["default"].tabHead, " ").concat(needShadow ? _SubtabLayoutModule["default"].shadowStyle : '', " ").concat(needBorder ? "".concat(_SubtabLayoutModule["default"][type], "_borderStyle") : '')
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
48
|
+
alignBox: "row",
|
|
49
|
+
className: " ".concat(className, " ").concat(isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peek") : _SubtabLayoutModule["default"][type]),
|
|
50
|
+
align: "vertical"
|
|
51
|
+
}, onAdd || children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
52
|
+
className: "".concat(_SubtabLayoutModule["default"].left, " ").concat(needPlusIconLine ? _SubtabLayoutModule["default"].plusIconLine : '')
|
|
53
|
+
}, onAdd ? /*#__PURE__*/_react["default"].createElement(_PlusIcon["default"], {
|
|
54
|
+
dataId: dataId,
|
|
55
|
+
onClick: onAdd
|
|
56
|
+
}) : children) : null, title ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
57
|
+
className: "".concat(_SubtabLayoutModule["default"].title, " ").concat(onAdd ? _SubtabLayoutModule["default"].cursor : ''),
|
|
58
|
+
onClick: onAdd ? onAdd : null
|
|
59
|
+
}, title) : null, getLeftPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
60
|
+
flexible: true,
|
|
61
|
+
shrink: true,
|
|
62
|
+
adjust: getRightPlaceHolder ? true : false,
|
|
63
|
+
className: leftClassName
|
|
64
|
+
}, label ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
+
className: _SubtabLayoutModule["default"].label
|
|
66
|
+
}, label) : null, getLeftPlaceHolder), getRightPlaceHolder && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
67
|
+
flexible: true,
|
|
68
|
+
shrink: true,
|
|
69
|
+
adjust: getLeftPlaceHolder ? true : false,
|
|
70
|
+
className: rightClassName
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
72
|
+
alignBox: "row",
|
|
73
|
+
align: "vertical",
|
|
74
|
+
className: _SubtabLayoutModule["default"].aside
|
|
75
|
+
}, getRightPlaceHolder))));
|
|
76
|
+
}
|
|
114
77
|
|
|
115
|
-
exports.SubtabHeader = SubtabHeader;
|
|
116
78
|
SubtabHeader.propTypes = _propTypes.SubtabHeader_propTypes;
|
|
117
79
|
SubtabHeader.defaultProps = _defaultProps.SubtabHeader_defaultProps;
|
|
118
80
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
alignBox: "row",
|
|
146
|
-
align: "vertical",
|
|
147
|
-
className: " ".concat(_SubtabLayoutModule["default"].footer, " ").concat(needPadding ? isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peekFooter") : "".concat(_SubtabLayoutModule["default"][type], "_detailFooter") : '', " ").concat(_SubtabLayoutModule["default"][size], " ").concat(className),
|
|
148
|
-
dataId: dataId
|
|
149
|
-
}, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
150
|
-
flexible: true,
|
|
151
|
-
shrink: true,
|
|
152
|
-
className: leftClassName
|
|
153
|
-
}, children) : null, getRightFooterPlaceHolder ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
154
|
-
flexible: true,
|
|
155
|
-
shrink: true,
|
|
156
|
-
className: rightClassName
|
|
157
|
-
}, getRightFooterPlaceHolder) : null);
|
|
158
|
-
}
|
|
159
|
-
}]);
|
|
160
|
-
|
|
161
|
-
return SubtabFooter;
|
|
162
|
-
}(_react["default"].Component);
|
|
81
|
+
function SubtabFooter(props) {
|
|
82
|
+
var isPeekView = props.isPeekView,
|
|
83
|
+
getRightFooterPlaceHolder = props.getRightFooterPlaceHolder,
|
|
84
|
+
dataId = props.dataId,
|
|
85
|
+
children = props.children,
|
|
86
|
+
className = props.className,
|
|
87
|
+
leftClassName = props.leftClassName,
|
|
88
|
+
rightClassName = props.rightClassName,
|
|
89
|
+
size = props.size,
|
|
90
|
+
needPadding = props.needPadding,
|
|
91
|
+
type = props.type;
|
|
92
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
93
|
+
alignBox: "row",
|
|
94
|
+
align: "vertical",
|
|
95
|
+
className: " ".concat(_SubtabLayoutModule["default"].footer, " ").concat(needPadding ? isPeekView ? "".concat(_SubtabLayoutModule["default"][type], "_peekFooter") : "".concat(_SubtabLayoutModule["default"][type], "_detailFooter") : '', " ").concat(_SubtabLayoutModule["default"][size], " ").concat(className),
|
|
96
|
+
dataId: dataId
|
|
97
|
+
}, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
98
|
+
flexible: true,
|
|
99
|
+
shrink: true,
|
|
100
|
+
className: leftClassName
|
|
101
|
+
}, children) : null, getRightFooterPlaceHolder ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
102
|
+
flexible: true,
|
|
103
|
+
shrink: true,
|
|
104
|
+
className: rightClassName
|
|
105
|
+
}, getRightFooterPlaceHolder) : null);
|
|
106
|
+
}
|
|
163
107
|
|
|
164
|
-
exports.SubtabFooter = SubtabFooter;
|
|
165
108
|
SubtabFooter.propTypes = _propTypes.SubtabFooter_propTypes;
|
|
166
109
|
SubtabFooter.defaultProps = _defaultProps.SubtabFooter_defaultProps;
|
|
167
110
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
scroll = _this$props3.scroll,
|
|
185
|
-
className = _this$props3.className,
|
|
186
|
-
eleRef = _this$props3.eleRef,
|
|
187
|
-
dataId = _this$props3.dataId,
|
|
188
|
-
onScroll = _this$props3.onScroll;
|
|
189
|
-
return /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
190
|
-
scroll: scroll,
|
|
191
|
-
isScrollAttribute: true,
|
|
192
|
-
onScroll: onScroll,
|
|
193
|
-
customClass: className ? className : '',
|
|
194
|
-
eleRef: eleRef,
|
|
195
|
-
dataId: dataId
|
|
196
|
-
}, children);
|
|
197
|
-
}
|
|
198
|
-
}]);
|
|
199
|
-
|
|
200
|
-
return SubtabContent;
|
|
201
|
-
}(_react["default"].Component);
|
|
111
|
+
function SubtabContent(props) {
|
|
112
|
+
var children = props.children,
|
|
113
|
+
scroll = props.scroll,
|
|
114
|
+
className = props.className,
|
|
115
|
+
eleRef = props.eleRef,
|
|
116
|
+
dataId = props.dataId,
|
|
117
|
+
onScroll = props.onScroll;
|
|
118
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
119
|
+
scroll: scroll,
|
|
120
|
+
isScrollAttribute: true,
|
|
121
|
+
onScroll: onScroll,
|
|
122
|
+
customClass: className ? className : '',
|
|
123
|
+
eleRef: eleRef,
|
|
124
|
+
dataId: dataId
|
|
125
|
+
}, children);
|
|
126
|
+
}
|
|
202
127
|
|
|
203
|
-
exports.SubtabContent = SubtabContent;
|
|
204
128
|
SubtabContent.propTypes = _propTypes.SubtabContent_propTypes;
|
|
205
129
|
SubtabContent.defaultProps = _defaultProps.SubtabContent_defaultProps;
|
|
206
130
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
_createClass(SubtabLayout, [{
|
|
219
|
-
key: "render",
|
|
220
|
-
value: function render() {
|
|
221
|
-
var _this$props4 = this.props,
|
|
222
|
-
children = _this$props4.children,
|
|
223
|
-
dataId = _this$props4.dataId;
|
|
224
|
-
return /*#__PURE__*/_react["default"].createElement(_Card.Card, _extends({
|
|
225
|
-
isScrollAttribute: true,
|
|
226
|
-
dataId: dataId
|
|
227
|
-
}, this.props, {
|
|
228
|
-
childTypes: {
|
|
229
|
-
cardHeader: SubtabHeader,
|
|
230
|
-
cardContent: SubtabContent
|
|
231
|
-
}
|
|
232
|
-
}), children);
|
|
131
|
+
function SubtabLayout(props) {
|
|
132
|
+
var children = props.children,
|
|
133
|
+
dataId = props.dataId;
|
|
134
|
+
return /*#__PURE__*/_react["default"].createElement(_Card.Card, _extends({
|
|
135
|
+
isScrollAttribute: true,
|
|
136
|
+
dataId: dataId
|
|
137
|
+
}, props, {
|
|
138
|
+
childTypes: {
|
|
139
|
+
cardHeader: SubtabHeader,
|
|
140
|
+
cardContent: SubtabContent
|
|
233
141
|
}
|
|
234
|
-
}
|
|
142
|
+
}), children);
|
|
143
|
+
}
|
|
235
144
|
|
|
236
|
-
return SubtabLayout;
|
|
237
|
-
}(_react["default"].Component);
|
|
238
|
-
|
|
239
|
-
exports["default"] = SubtabLayout;
|
|
240
145
|
SubtabLayout.defaultProps = _defaultProps.SubtabLayout_defaultProps;
|
|
241
|
-
SubtabLayout.propTypes = _propTypes.SubtabLayout_propTypes;
|
|
242
|
-
// SubtabLayout.docs = {
|
|
243
|
-
// componentGroup: 'Template'
|
|
244
|
-
// };
|
|
245
|
-
// }
|
|
146
|
+
SubtabLayout.propTypes = _propTypes.SubtabLayout_propTypes;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports["default"] =
|
|
6
|
+
exports["default"] = AccountName;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _defaultProps = require("../../../list/SecondaryText/props/defaultProps");
|
|
13
11
|
|
|
@@ -21,116 +19,68 @@ var _SecondaryTextModule = _interopRequireDefault(require("../../../list/Seconda
|
|
|
21
19
|
|
|
22
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
21
|
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
22
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
23
|
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
24
|
+
function AccountName(props) {
|
|
25
|
+
var dataTitle = props.dataTitle,
|
|
26
|
+
dataId = props.dataId,
|
|
27
|
+
urlName = props.urlName,
|
|
28
|
+
urlData = props.urlData,
|
|
29
|
+
onClick = props.onClick,
|
|
30
|
+
isLink = props.isLink,
|
|
31
|
+
className = props.className,
|
|
32
|
+
text = props.text,
|
|
33
|
+
href = props.href,
|
|
34
|
+
_props$notAccessible = props.notAccessible,
|
|
35
|
+
notAccessible = _props$notAccessible === void 0 ? false : _props$notAccessible,
|
|
36
|
+
fontWeight = props.fontWeight,
|
|
37
|
+
secondaryAccountHref = props.secondaryAccountHref,
|
|
38
|
+
secondaryAccountClick = props.secondaryAccountClick,
|
|
39
|
+
secondaryAccountText = props.secondaryAccountText,
|
|
40
|
+
customProps = props.customProps;
|
|
41
|
+
var _customProps$LinkProp = customProps.LinkProps,
|
|
42
|
+
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
43
|
+
_customProps$TextProp = customProps.TextProps,
|
|
44
|
+
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp,
|
|
45
|
+
_customProps$Secondar = customProps.SecondaryTextProps,
|
|
46
|
+
SecondaryTextProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
47
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
48
|
+
alignBox: "row",
|
|
49
|
+
align: "baseline",
|
|
50
|
+
isCover: false,
|
|
51
|
+
"data-title": dataTitle,
|
|
52
|
+
dataId: dataId
|
|
53
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
54
|
+
flexible: true
|
|
55
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
56
|
+
alignBox: "row",
|
|
57
|
+
align: "baseline",
|
|
58
|
+
isCover: false,
|
|
59
|
+
className: _SecondaryTextModule["default"].primaryAccountNameCnt
|
|
60
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
61
|
+
className: _SecondaryTextModule["default"].primaryAccountName,
|
|
62
|
+
shrink: true
|
|
63
|
+
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
64
|
+
href: href,
|
|
65
|
+
urlName: urlName,
|
|
66
|
+
urlData: urlData,
|
|
67
|
+
onClick: onClick,
|
|
68
|
+
dataId: "".concat(dataId, "_link"),
|
|
69
|
+
className: _SecondaryTextModule["default"].link
|
|
70
|
+
}, LinkProps, {
|
|
71
|
+
ariaLabel: "Account Name ".concat(text)
|
|
72
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
74
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
75
|
+
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
|
|
76
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
77
|
+
href: secondaryAccountHref,
|
|
78
|
+
onClick: secondaryAccountClick,
|
|
79
|
+
className: _SecondaryTextModule["default"].link
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
81
|
+
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
82
|
+
}, SecondaryTextProps), secondaryAccountText))))));
|
|
83
|
+
}
|
|
43
84
|
|
|
44
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
-
|
|
46
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
-
|
|
48
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
-
|
|
50
|
-
var AccountName = /*#__PURE__*/function (_Component) {
|
|
51
|
-
_inherits(AccountName, _Component);
|
|
52
|
-
|
|
53
|
-
var _super = _createSuper(AccountName);
|
|
54
|
-
|
|
55
|
-
function AccountName() {
|
|
56
|
-
_classCallCheck(this, AccountName);
|
|
57
|
-
|
|
58
|
-
return _super.apply(this, arguments);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
_createClass(AccountName, [{
|
|
62
|
-
key: "render",
|
|
63
|
-
value: function render() {
|
|
64
|
-
var _this$props = this.props,
|
|
65
|
-
dataTitle = _this$props.dataTitle,
|
|
66
|
-
dataId = _this$props.dataId,
|
|
67
|
-
urlName = _this$props.urlName,
|
|
68
|
-
urlData = _this$props.urlData,
|
|
69
|
-
onClick = _this$props.onClick,
|
|
70
|
-
isLink = _this$props.isLink,
|
|
71
|
-
className = _this$props.className,
|
|
72
|
-
text = _this$props.text,
|
|
73
|
-
href = _this$props.href,
|
|
74
|
-
_this$props$notAccess = _this$props.notAccessible,
|
|
75
|
-
notAccessible = _this$props$notAccess === void 0 ? false : _this$props$notAccess,
|
|
76
|
-
fontWeight = _this$props.fontWeight,
|
|
77
|
-
secondaryAccountHref = _this$props.secondaryAccountHref,
|
|
78
|
-
secondaryAccountClick = _this$props.secondaryAccountClick,
|
|
79
|
-
secondaryAccountText = _this$props.secondaryAccountText,
|
|
80
|
-
customProps = _this$props.customProps;
|
|
81
|
-
var _customProps$LinkProp = customProps.LinkProps,
|
|
82
|
-
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
83
|
-
_customProps$TextProp = customProps.TextProps,
|
|
84
|
-
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp,
|
|
85
|
-
_customProps$Secondar = customProps.SecondaryTextProps,
|
|
86
|
-
SecondaryTextProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
87
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
88
|
-
alignBox: "row",
|
|
89
|
-
align: "baseline",
|
|
90
|
-
isCover: false,
|
|
91
|
-
"data-title": dataTitle,
|
|
92
|
-
dataId: dataId
|
|
93
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
94
|
-
flexible: true
|
|
95
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
96
|
-
alignBox: "row",
|
|
97
|
-
align: "baseline",
|
|
98
|
-
isCover: false,
|
|
99
|
-
className: _SecondaryTextModule["default"].primaryAccountNameCnt
|
|
100
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
101
|
-
className: _SecondaryTextModule["default"].primaryAccountName,
|
|
102
|
-
shrink: true
|
|
103
|
-
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
104
|
-
href: href,
|
|
105
|
-
urlName: urlName,
|
|
106
|
-
urlData: urlData,
|
|
107
|
-
onClick: onClick,
|
|
108
|
-
dataId: "".concat(dataId, "_link"),
|
|
109
|
-
className: _SecondaryTextModule["default"].link
|
|
110
|
-
}, LinkProps, {
|
|
111
|
-
ariaLabel: "Account Name ".concat(text)
|
|
112
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
113
|
-
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
114
|
-
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
115
|
-
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
|
|
116
|
-
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
117
|
-
href: secondaryAccountHref,
|
|
118
|
-
onClick: secondaryAccountClick,
|
|
119
|
-
className: _SecondaryTextModule["default"].link
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
121
|
-
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
122
|
-
}, SecondaryTextProps), secondaryAccountText))))));
|
|
123
|
-
}
|
|
124
|
-
}]);
|
|
125
|
-
|
|
126
|
-
return AccountName;
|
|
127
|
-
}(_react.Component);
|
|
128
|
-
|
|
129
|
-
exports["default"] = AccountName;
|
|
130
85
|
AccountName.propTypes = _propTypes.AccountName_propTypes;
|
|
131
|
-
AccountName.defaultProps = _defaultProps.AccountName_defaultProps;
|
|
132
|
-
// AccountName.docs = {
|
|
133
|
-
// folderName: 'List',
|
|
134
|
-
// componentGroup: 'AccountName'
|
|
135
|
-
// };
|
|
136
|
-
// }
|
|
86
|
+
AccountName.defaultProps = _defaultProps.AccountName_defaultProps;
|