@zohodesk/dot 1.9.0 → 1.9.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/README.md +12 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/es/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/es/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/es/form/fields/DateField/DateField.js +17 -7
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/es/form/fields/RadioField/RadioField.js +15 -5
- package/es/form/fields/SelectField/SelectField.js +17 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/es/form/fields/TextBoxField/TextBoxField.js +16 -6
- package/es/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/es/form/fields/TextareaField/TextareaField.js +15 -5
- package/es/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/es/list/SecondaryText/AccountName.js +23 -8
- package/es/list/SecondaryText/ContactName.js +18 -6
- package/es/list/SecondaryText/DepartmentText.js +13 -6
- package/es/list/SecondaryText/Email.js +19 -7
- package/es/list/SecondaryText/PhoneNumber.js +19 -7
- package/es/list/SecondaryText/PriorityText.js +13 -6
- package/es/list/SecondaryText/SecondaryText.js +17 -8
- package/es/list/SecondaryText/SecondaryText.module.css +40 -24
- package/es/list/SecondaryText/StatusText.js +13 -6
- package/es/list/SecondaryText/TicketId.js +8 -2
- package/es/list/SecondaryText/Website.js +16 -5
- package/es/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/es/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/es/list/SecondaryText/props/defaultProps.js +18 -0
- package/es/list/SecondaryText/props/propTypes.js +21 -0
- package/es/list/Subject/Subject.js +28 -12
- package/es/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/es/list/Subject/props/defaultProps.js +3 -1
- package/es/list/Subject/props/propTypes.js +5 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +17 -8
- package/lib/form/fields/CheckBoxField/__tests__/__snapshots__/CheckBoxField.spec.js.snap +21 -18
- package/lib/form/fields/CurrencyField/CurrencyField.js +10 -4
- package/lib/form/fields/DateField/DateField.js +17 -8
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +13 -6
- package/lib/form/fields/RadioField/RadioField.js +15 -5
- package/lib/form/fields/SelectField/SelectField.js +17 -8
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +16 -7
- package/lib/form/fields/TextBoxField/TextBoxField.js +16 -7
- package/lib/form/fields/TextEditorField/TextEditorField.js +10 -4
- package/lib/form/fields/TextareaField/TextareaField.js +15 -5
- package/lib/list/DepartmentDropDown/__tests__/__snapshots__/DepartmentDropDown.spec.js.snap +1 -1
- package/lib/list/SecondaryText/AccountName.js +27 -8
- package/lib/list/SecondaryText/ContactName.js +21 -6
- package/lib/list/SecondaryText/DepartmentText.js +15 -6
- package/lib/list/SecondaryText/Email.js +22 -7
- package/lib/list/SecondaryText/PhoneNumber.js +22 -7
- package/lib/list/SecondaryText/PriorityText.js +15 -6
- package/lib/list/SecondaryText/SecondaryText.js +26 -8
- package/lib/list/SecondaryText/SecondaryText.module.css +40 -24
- package/lib/list/SecondaryText/StatusText.js +15 -6
- package/lib/list/SecondaryText/TicketId.js +10 -2
- package/lib/list/SecondaryText/Website.js +18 -5
- package/lib/list/SecondaryText/__tests__/__snapshots__/AccountName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/ContactName.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/DepartmentText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Email.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PhoneNumber.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/PriorityText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/SecondaryText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/StatusText.spec.js.snap +1 -1
- package/lib/list/SecondaryText/__tests__/__snapshots__/Website.spec.js.snap +6 -2
- package/lib/list/SecondaryText/props/defaultProps.js +18 -0
- package/lib/list/SecondaryText/props/propTypes.js +22 -0
- package/lib/list/Subject/Subject.js +40 -13
- package/lib/list/Subject/__tests__/__snapshots__/Subject.spec.js.snap +14 -14
- package/lib/list/Subject/props/defaultProps.js +3 -1
- package/lib/list/Subject/props/propTypes.js +6 -1
- package/package.json +7 -7
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _ValidationMessage = _interopRequireDefault(require("../ValidationMessage/ValidationMessage"));
|
|
19
19
|
|
|
@@ -172,10 +172,16 @@ var TextEditorField = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
text: labelName,
|
|
173
173
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
174
174
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
175
|
-
|
|
175
|
+
isRequired: isMandatory,
|
|
176
|
+
isDisabled: isDisabled,
|
|
177
|
+
isReadOnly: isReadOnly,
|
|
178
|
+
palette: labelPalette,
|
|
176
179
|
onClick: this.handleLabelClick,
|
|
177
|
-
customClass:
|
|
178
|
-
|
|
180
|
+
customClass: {
|
|
181
|
+
label: labelCustomClass
|
|
182
|
+
},
|
|
183
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
184
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
179
185
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
180
186
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
181
187
|
}, /*#__PURE__*/_react["default"].createElement(_TextEditorWrapper["default"], _extends({
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Label = _interopRequireDefault(require("@zohodesk/components/es/Label/Label"));
|
|
16
|
+
var _Label = _interopRequireDefault(require("@zohodesk/components/es/v1/Label/Label"));
|
|
17
17
|
|
|
18
18
|
var _Textarea = _interopRequireDefault(require("@zohodesk/components/es/Textarea/Textarea"));
|
|
19
19
|
|
|
@@ -185,12 +185,22 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
renderProps: renderLabelProps
|
|
186
186
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
187
187
|
text: labelName,
|
|
188
|
-
|
|
188
|
+
isRequired: isMandatory,
|
|
189
|
+
isDisabled: isDisabled,
|
|
190
|
+
isReadOnly: isReadOnly,
|
|
191
|
+
palette: labelPalette,
|
|
192
|
+
customClass: {
|
|
193
|
+
label: labelCustomClass
|
|
194
|
+
},
|
|
189
195
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
190
|
-
|
|
191
|
-
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
196
|
+
testId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
192
197
|
htmlFor: uniqueId,
|
|
193
|
-
|
|
198
|
+
customId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label"),
|
|
199
|
+
tagAttributes: {
|
|
200
|
+
label: {
|
|
201
|
+
id: id
|
|
202
|
+
}
|
|
203
|
+
}
|
|
194
204
|
}, LabelProps))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
195
205
|
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
196
206
|
}, !renderRightPlaceholderNode ? textAreaContent : /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -77,6 +81,8 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
77
81
|
secondaryAccountHref = _this$props.secondaryAccountHref,
|
|
78
82
|
secondaryAccountClick = _this$props.secondaryAccountClick,
|
|
79
83
|
secondaryAccountText = _this$props.secondaryAccountText,
|
|
84
|
+
highlightData = _this$props.highlightData,
|
|
85
|
+
isHighlighted = _this$props.isHighlighted,
|
|
80
86
|
customProps = _this$props.customProps;
|
|
81
87
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
82
88
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
@@ -109,17 +115,30 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
109
115
|
className: _SecondaryTextModule["default"].link
|
|
110
116
|
}, LinkProps, {
|
|
111
117
|
ariaLabel: "Account Name ".concat(text)
|
|
112
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
119
|
+
$tagAttributes_text: TextProps,
|
|
120
|
+
$ui_size: "12",
|
|
121
|
+
$flag_dotted: true,
|
|
122
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
123
|
+
$ui_weight: fontWeight,
|
|
124
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
125
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
126
|
+
$tagAttributes_text: TextProps,
|
|
127
|
+
$ui_size: "12",
|
|
128
|
+
$flag_dotted: true,
|
|
129
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
130
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
131
|
+
}, text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
117
132
|
href: secondaryAccountHref,
|
|
118
133
|
onClick: secondaryAccountClick,
|
|
119
134
|
className: _SecondaryTextModule["default"].link
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
121
|
-
|
|
122
|
-
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
136
|
+
$tagAttributes_text: SecondaryTextProps,
|
|
137
|
+
$ui_size: "12",
|
|
138
|
+
$flag_dotted: true,
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : '')
|
|
141
|
+
}, secondaryAccountText))))));
|
|
123
142
|
}
|
|
124
143
|
}]);
|
|
125
144
|
|
|
@@ -15,6 +15,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
15
15
|
|
|
16
16
|
var _Layout = require("@zohodesk/components/es/Layout");
|
|
17
17
|
|
|
18
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
19
|
+
|
|
20
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
21
|
+
|
|
18
22
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
19
23
|
|
|
20
24
|
var _SentimentStatus = _interopRequireDefault(require("../SentimentStatus/SentimentStatus"));
|
|
@@ -81,6 +85,8 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
81
85
|
notAccessible = _this$props$notAccess === void 0 ? false : _this$props$notAccess,
|
|
82
86
|
fontWeight = _this$props.fontWeight,
|
|
83
87
|
i18nKeys = _this$props.i18nKeys,
|
|
88
|
+
highlightData = _this$props.highlightData,
|
|
89
|
+
isHighlighted = _this$props.isHighlighted,
|
|
84
90
|
customProps = _this$props.customProps;
|
|
85
91
|
var _i18nKeys$sentimentTi = i18nKeys.sentimentTitles,
|
|
86
92
|
sentimentTitles = _i18nKeys$sentimentTi === void 0 ? {
|
|
@@ -119,12 +125,21 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
119
125
|
className: _SecondaryTextModule["default"].link
|
|
120
126
|
}, LinkProps, {
|
|
121
127
|
ariaLabel: "Contact Name ".concat(text)
|
|
122
|
-
}), /*#__PURE__*/_react["default"].createElement("
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
+
}), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
129
|
+
$flag_dotted: true,
|
|
130
|
+
$ui_size: "12",
|
|
131
|
+
$ui_weight: fontWeight,
|
|
132
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
133
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
134
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
135
|
+
$tagAttributes_text: TextProps,
|
|
136
|
+
$ui_size: "12",
|
|
137
|
+
$flag_dotted: true,
|
|
138
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
139
|
+
$ui_weight: fontWeight,
|
|
140
|
+
$i18n_dataTitle: dataTitle,
|
|
141
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
142
|
+
}, text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
128
143
|
type: sentimentType,
|
|
129
144
|
dataTitle: sentimentDataTitle
|
|
130
145
|
})));
|
|
@@ -11,6 +11,10 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _propTypes = require("./props/propTypes");
|
|
13
13
|
|
|
14
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
15
|
+
|
|
16
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
17
|
+
|
|
14
18
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
15
19
|
|
|
16
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -57,12 +61,17 @@ var DepartmentText = /*#__PURE__*/function (_Component) {
|
|
|
57
61
|
className = _this$props.className,
|
|
58
62
|
text = _this$props.text,
|
|
59
63
|
dataTitle = _this$props.dataTitle,
|
|
60
|
-
dataId = _this$props.dataId
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
64
|
+
dataId = _this$props.dataId,
|
|
65
|
+
isHighlighted = _this$props.isHighlighted,
|
|
66
|
+
highlightData = _this$props.highlightData;
|
|
67
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
68
|
+
$ui_size: "12",
|
|
69
|
+
$flag_dotted: true,
|
|
70
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].departmentText, " ").concat(className ? className : ''),
|
|
71
|
+
$i18n_dataTitle: dataTitle,
|
|
72
|
+
customId: dataId,
|
|
73
|
+
testId: dataId,
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
66
75
|
}, text);
|
|
67
76
|
}
|
|
68
77
|
}]);
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
21
|
|
|
18
22
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -69,7 +73,9 @@ var Email = /*#__PURE__*/function (_Component) {
|
|
|
69
73
|
isLink = _this$props.isLink,
|
|
70
74
|
target = _this$props.target,
|
|
71
75
|
fontWeight = _this$props.fontWeight,
|
|
72
|
-
customProps = _this$props.customProps
|
|
76
|
+
customProps = _this$props.customProps,
|
|
77
|
+
isHighlighted = _this$props.isHighlighted,
|
|
78
|
+
highlightData = _this$props.highlightData;
|
|
73
79
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
74
80
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
75
81
|
_customProps$TextProp = customProps.TextProps,
|
|
@@ -81,12 +87,21 @@ var Email = /*#__PURE__*/function (_Component) {
|
|
|
81
87
|
urlName: urlName,
|
|
82
88
|
target: target,
|
|
83
89
|
className: _SecondaryTextModule["default"].link
|
|
84
|
-
}, LinkProps), /*#__PURE__*/_react["default"].createElement("
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
+
}, LinkProps), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
91
|
+
$flag_dotted: true,
|
|
92
|
+
$ui_size: "12",
|
|
93
|
+
$ui_weight: fontWeight,
|
|
94
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].linkWithText, " ").concat(className ? className : ''),
|
|
95
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
96
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
97
|
+
$tagAttributes_text: TextProps,
|
|
98
|
+
$ui_size: "12",
|
|
99
|
+
$flag_dotted: true,
|
|
100
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
|
|
101
|
+
$ui_weight: fontWeight,
|
|
102
|
+
$i18n_dataTitle: title,
|
|
103
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
104
|
+
}, text));
|
|
90
105
|
}
|
|
91
106
|
}]);
|
|
92
107
|
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _Link = _interopRequireDefault(require("../../Link/Link"));
|
|
17
21
|
|
|
18
22
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
@@ -71,7 +75,9 @@ var PhoneNumber = /*#__PURE__*/function (_Component) {
|
|
|
71
75
|
target = _this$props.target,
|
|
72
76
|
hasReload = _this$props.hasReload,
|
|
73
77
|
fontWeight = _this$props.fontWeight,
|
|
74
|
-
customProps = _this$props.customProps
|
|
78
|
+
customProps = _this$props.customProps,
|
|
79
|
+
isHighlighted = _this$props.isHighlighted,
|
|
80
|
+
highlightData = _this$props.highlightData;
|
|
75
81
|
var _customProps$LinkProp = customProps.LinkProps,
|
|
76
82
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
77
83
|
_customProps$TextProp = customProps.TextProps,
|
|
@@ -85,12 +91,21 @@ var PhoneNumber = /*#__PURE__*/function (_Component) {
|
|
|
85
91
|
target: target,
|
|
86
92
|
hasReload: hasReload,
|
|
87
93
|
className: _SecondaryTextModule["default"].link
|
|
88
|
-
}, LinkProps), /*#__PURE__*/_react["default"].createElement("
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
}, LinkProps), /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
95
|
+
$ui_size: "12",
|
|
96
|
+
$flag_dotted: true,
|
|
97
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].phoneNumber, " ").concat(_SecondaryTextModule["default"].phonetxt, " ").concat(className ? className : ''),
|
|
98
|
+
$ui_weight: fontWeight,
|
|
99
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
100
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
101
|
+
$tagAttributes_text: TextProps,
|
|
102
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"].phonetxt, " ").concat(className ? className : ''),
|
|
103
|
+
$ui_weight: fontWeight,
|
|
104
|
+
$ui_size: "12",
|
|
105
|
+
$flag_dotted: true,
|
|
106
|
+
$i18n_dataTitle: title,
|
|
107
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT
|
|
108
|
+
}, text));
|
|
94
109
|
}
|
|
95
110
|
}]);
|
|
96
111
|
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -60,12 +64,17 @@ var PriorityText = /*#__PURE__*/function (_Component) {
|
|
|
60
64
|
color = _this$props.color,
|
|
61
65
|
text = _this$props.text,
|
|
62
66
|
dataTitle = _this$props.dataTitle,
|
|
63
|
-
dataId = _this$props.dataId
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
67
|
+
dataId = _this$props.dataId,
|
|
68
|
+
isHighlighted = _this$props.isHighlighted,
|
|
69
|
+
highlightData = _this$props.highlightData;
|
|
70
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
71
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].priorityText, " ").concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
|
|
72
|
+
$flag_dotted: true,
|
|
73
|
+
$ui_size: "12",
|
|
74
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT,
|
|
75
|
+
$i18n_dataTitle: dataTitle,
|
|
76
|
+
customId: dataId,
|
|
77
|
+
testId: dataId
|
|
69
78
|
}, text);
|
|
70
79
|
}
|
|
71
80
|
}]);
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -21,7 +25,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
25
|
|
|
22
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; }
|
|
23
27
|
|
|
24
|
-
function
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
+
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
|
+
|
|
32
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
33
|
|
|
26
34
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
35
|
|
|
@@ -63,15 +71,25 @@ var SecondaryText = /*#__PURE__*/function (_Component) {
|
|
|
63
71
|
dataTitle = _this$props.dataTitle,
|
|
64
72
|
dataId = _this$props.dataId,
|
|
65
73
|
onClick = _this$props.onClick,
|
|
66
|
-
customProps = _this$props.customProps
|
|
74
|
+
customProps = _this$props.customProps,
|
|
75
|
+
isHighlighted = _this$props.isHighlighted,
|
|
76
|
+
highlightData = _this$props.highlightData;
|
|
67
77
|
var SecondaryTextProps = customProps.SecondaryTextProps;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"data-title": dataTitle,
|
|
71
|
-
"data-id": dataId,
|
|
72
|
-
"data-test-id": dataId,
|
|
78
|
+
|
|
79
|
+
var tagAttributes = _objectSpread(_objectSpread({}, SecondaryTextProps), {}, {
|
|
73
80
|
onClick: onClick
|
|
74
|
-
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
84
|
+
$tagAttributes_text: tagAttributes,
|
|
85
|
+
$ui_size: "12",
|
|
86
|
+
$flag_dotted: true,
|
|
87
|
+
$ui_className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''),
|
|
88
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT,
|
|
89
|
+
$i18n_dataTitle: dataTitle,
|
|
90
|
+
customId: dataId,
|
|
91
|
+
testId: dataId
|
|
92
|
+
}, text);
|
|
75
93
|
}
|
|
76
94
|
}]);
|
|
77
95
|
|
|
@@ -8,109 +8,120 @@
|
|
|
8
8
|
}[dir=rtl] .paidUserIcon {
|
|
9
9
|
margin-left: var(--zd_size5) ;
|
|
10
10
|
}
|
|
11
|
+
|
|
11
12
|
.icon {
|
|
12
13
|
display: block;
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
.disable {
|
|
15
17
|
cursor: not-allowed;
|
|
16
18
|
}
|
|
19
|
+
|
|
17
20
|
.textBold {
|
|
18
21
|
font-weight: var(--zd-fw-bold);
|
|
19
22
|
color: var(--zdt_secondaryText_black_text);
|
|
20
23
|
}
|
|
21
|
-
|
|
24
|
+
|
|
25
|
+
.link {
|
|
22
26
|
display: block
|
|
23
27
|
}
|
|
24
|
-
|
|
25
|
-
font-weight: var(--zd-fw-bold);
|
|
26
|
-
color: var(--zdt_secondaryText_black_text);
|
|
27
|
-
}
|
|
28
|
+
|
|
28
29
|
.ticketId,
|
|
29
30
|
.link,
|
|
30
|
-
.textStyle,
|
|
31
31
|
.secondaryText,
|
|
32
32
|
.ratingText,
|
|
33
33
|
.phoneNumber {
|
|
34
34
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
.secondaryText {
|
|
38
|
-
font-size: var(--zd_font_size12) ;
|
|
39
|
-
}
|
|
36
|
+
|
|
40
37
|
.ticketId,
|
|
41
|
-
.phoneNumber,
|
|
42
38
|
.ratingText {
|
|
43
39
|
font-size: var(--zd_font_size12) ;
|
|
44
40
|
}
|
|
45
|
-
|
|
41
|
+
|
|
42
|
+
.linkWithText {
|
|
43
|
+
color: var(--zdt_secondaryText_secondaryText_text);
|
|
44
|
+
max-width: 100% ;
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.linkWithText:hover {
|
|
49
|
+
color: var(--zdt_secondaryText_blue_text);
|
|
50
|
+
}
|
|
51
|
+
|
|
46
52
|
.secondaryText,
|
|
47
53
|
.phoneNumber {
|
|
48
|
-
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
49
54
|
max-width: 100% ;
|
|
50
|
-
display: block;
|
|
51
55
|
}
|
|
52
|
-
|
|
56
|
+
|
|
57
|
+
.secondaryText, .phoneNumber {
|
|
53
58
|
cursor: pointer;
|
|
54
59
|
}
|
|
55
|
-
|
|
60
|
+
|
|
56
61
|
.ticketIdLink,
|
|
57
62
|
.phoneNumber:hover,
|
|
58
63
|
.link:hover {
|
|
59
64
|
color: var(--zdt_secondaryText_blue_text);
|
|
60
65
|
}
|
|
66
|
+
|
|
61
67
|
/* .link:focus, .link:focus .textStyle, .link:focus .phoneNumber{
|
|
62
68
|
color: var(--zdt_secondaryText_blue_text);
|
|
63
69
|
} */
|
|
64
70
|
.ticketIdLink {
|
|
65
71
|
cursor: pointer;
|
|
66
72
|
}
|
|
67
|
-
|
|
73
|
+
|
|
74
|
+
.ticketIdLink:hover,
|
|
75
|
+
.ticketIdLink:focus {
|
|
68
76
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
69
77
|
}
|
|
78
|
+
|
|
70
79
|
.primaryAccountNameCnt {
|
|
71
80
|
max-width: 100% ;
|
|
72
81
|
}
|
|
82
|
+
|
|
73
83
|
/* status */
|
|
74
84
|
.font_regular {
|
|
75
85
|
font-weight: var(--zd-fw-normal);
|
|
76
86
|
}
|
|
87
|
+
|
|
77
88
|
.font_semibold {
|
|
78
89
|
font-weight: var(--zd-fw-semibold);
|
|
79
90
|
}
|
|
91
|
+
|
|
80
92
|
.font_bold {
|
|
81
93
|
font-weight: var(--zd-fw-bold);
|
|
82
94
|
}
|
|
95
|
+
|
|
83
96
|
.font_semibold,
|
|
84
97
|
.font_bold,
|
|
85
98
|
.textBold {
|
|
86
99
|
composes: ftsmooth from '~@zohodesk/components/es/common/common.module.css';
|
|
87
100
|
}
|
|
88
|
-
.priorityText,
|
|
89
|
-
.statusText {
|
|
90
|
-
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
91
|
-
}
|
|
92
101
|
|
|
93
102
|
.priorityText {
|
|
94
|
-
font-size: var(--zd_font_size12) ;
|
|
95
103
|
max-width: 100% ;
|
|
96
104
|
}
|
|
105
|
+
|
|
97
106
|
.departmentText {
|
|
98
|
-
font-size: var(--zd_font_size12) ;
|
|
99
107
|
color: var(--zdt_secondaryText_secondaryText_text);
|
|
100
108
|
max-width: 100% ;
|
|
101
|
-
composes: dotted from '~@zohodesk/components/es/common/common.module.css';
|
|
102
109
|
}
|
|
110
|
+
|
|
103
111
|
/* HappinessRating Style */
|
|
104
112
|
.happinessContainer {
|
|
105
113
|
composes: inlineBlockMiddle from '../listCommon.module.css';
|
|
106
114
|
}
|
|
115
|
+
|
|
107
116
|
.happinessImg {
|
|
108
117
|
width: var(--zd_size13) ;
|
|
109
118
|
vertical-align: middle;
|
|
110
119
|
}
|
|
120
|
+
|
|
111
121
|
[dir=ltr] .happinessImg {
|
|
112
122
|
margin: 0 var(--zd_size4) 0 0 ;
|
|
113
123
|
}
|
|
124
|
+
|
|
114
125
|
[dir=rtl] .happinessImg {
|
|
115
126
|
margin: 0 0 0 var(--zd_size4) ;
|
|
116
127
|
}
|
|
@@ -119,18 +130,23 @@
|
|
|
119
130
|
.gray {
|
|
120
131
|
color: var(--zdt_secondaryText_gray_text);
|
|
121
132
|
}
|
|
133
|
+
|
|
122
134
|
.orange {
|
|
123
135
|
color: var(--zdt_secondaryText_orage_text);
|
|
124
136
|
}
|
|
137
|
+
|
|
125
138
|
.green {
|
|
126
139
|
color: var(--zdt_secondaryText_green_text);
|
|
127
140
|
}
|
|
141
|
+
|
|
128
142
|
.red {
|
|
129
143
|
color: var(--zdt_secondaryText_red_text);
|
|
130
144
|
}
|
|
145
|
+
|
|
131
146
|
.blue {
|
|
132
147
|
color: var(--zdt_secondaryText_blue_text);
|
|
133
148
|
}
|
|
149
|
+
|
|
134
150
|
.black {
|
|
135
151
|
color: var(--zdt_secondaryText_black_text);
|
|
136
152
|
}
|
|
@@ -13,6 +13,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
+
var _Typography = _interopRequireDefault(require("@zohodesk/components/es/Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _Common = require("@zohodesk/components/es/utils/Common");
|
|
19
|
+
|
|
16
20
|
var _SecondaryTextModule = _interopRequireDefault(require("./SecondaryText.module.css"));
|
|
17
21
|
|
|
18
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -61,12 +65,17 @@ var StatusText = /*#__PURE__*/function (_Component) {
|
|
|
61
65
|
text = _this$props.text,
|
|
62
66
|
dataTitle = _this$props.dataTitle,
|
|
63
67
|
fontWeight = _this$props.fontWeight,
|
|
64
|
-
dataId = _this$props.dataId
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
|
|
68
|
+
dataId = _this$props.dataId,
|
|
69
|
+
isHighlighted = _this$props.isHighlighted,
|
|
70
|
+
highlightData = _this$props.highlightData;
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
72
|
+
$ui_className: "".concat(_SecondaryTextModule["default"][color], " ").concat(className ? className : ''),
|
|
73
|
+
$ui_weight: fontWeight,
|
|
74
|
+
$flag_dotted: true,
|
|
75
|
+
$ui_highlightConfig: isHighlighted ? highlightData : _Common.DUMMY_OBJECT,
|
|
76
|
+
$i18n_dataTitle: dataTitle,
|
|
77
|
+
customId: dataId,
|
|
78
|
+
testId: dataId
|
|
70
79
|
}, text);
|
|
71
80
|
}
|
|
72
81
|
}]);
|