@zohodesk/dot 1.0.0-temp-68 → 1.0.0-temp-69
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 +1 -0
- package/es/ActionButton/ActionButton.module.css +25 -9
- package/es/AlphabeticList/AlphabeticList.module.css +7 -4
- package/es/Attachment/Attachment.module.css +20 -9
- package/es/ChannelIcon/ChannelIcon.module.css +30 -21
- package/es/Drawer/Drawer.module.css +59 -11
- package/es/FlipCard/FlipCard.module.css +14 -5
- package/es/FormAction/FormAction.module.css +34 -9
- package/es/FreezeLayer/FreezeLayer.module.css +6 -2
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.module.css +7 -2
- package/es/Loader/Loader.module.css +25 -4
- package/es/Message/Message.module.css +42 -9
- package/es/MessageBanner/MessageBanner.module.css +12 -4
- package/es/NewStar/NewStar.module.css +42 -5
- package/es/ToastMessage/ToastMessage.module.css +96 -25
- package/es/Upload/Upload.module.css +27 -8
- package/es/alert/AlertHeader/AlertHeader.module.css +21 -3
- package/es/alert/AlertLookup/AlertLookup.module.css +6 -2
- package/es/avatar/AvatarClose/AvatarClose.module.css +9 -3
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +18 -4
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +3 -4
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +59 -9
- package/es/avatar/AvatarThread/AvatarThread.module.css +55 -5
- package/es/avatar/AvatarUser/AvatarUser.module.css +81 -10
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +10 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +11 -3
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +19 -6
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +12 -4
- package/es/emptystate/EditionPage/EditionPage.css +9 -3
- package/es/errorstate/EmptyStates.module.css +13 -10
- package/es/errorstate/Inconvenience/Inconvenience.module.css +3 -0
- package/es/errorstate/LinkText/LinkText.module.css +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +2 -2
- package/es/errorstate/WillBack/WillBack.module.css +1 -3
- package/es/form/fields/Fields.module.css +49 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +19 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +4 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +150 -73
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +13 -2
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +9 -4
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +52 -16
- package/es/layout/SubtabLayout/SubtabLayout.module.css +55 -29
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +4 -1
- package/es/list/Comment/Comment.module.css +5 -0
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +70 -16
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/ListLayout/ListLayout.module.css +22 -14
- package/es/list/ListStencils/ListStencils.module.css +11 -6
- package/es/list/SecondaryText/AccountName.js +38 -34
- package/es/list/SecondaryText/ContactName.js +13 -18
- package/es/list/SecondaryText/SecondaryText.module.css +37 -12
- package/es/list/SentimentStatus/SentimentStatus.module.css +4 -1
- package/es/list/TagNew/TagNew.module.css +14 -7
- package/es/list/Thread/Thread.module.css +13 -1
- package/es/list/UserTime/UserTime.module.css +6 -0
- package/es/list/listCommon.module.css +9 -1
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +19 -6
- package/es/list/status/StatusListItem/StatusListItem.module.css +38 -15
- package/es/lookup/Lookup/Lookup.module.css +2 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/header/Close/LookupClose.module.css +4 -4
- package/es/lookup/header/Search/LookupSearch.module.css +21 -12
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +5 -2
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -3
- package/es/lookup/header/lookupHeaderCommon.module.css +16 -6
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +12 -3
- package/es/setup/header/Button/HeaderButton.module.css +3 -1
- package/es/setup/header/Link/HeaderLink.module.css +7 -1
- package/es/setup/header/Search/Search.module.css +19 -8
- package/es/setup/header/Views/Views.module.css +15 -5
- package/es/setup/helptips/Link/HelpTipsLink.module.css +1 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +6 -1
- package/es/setup/table/TableData/SetupTableData.module.css +11 -3
- package/es/setup/table/TableHead/SetupTableHead.module.css +4 -0
- package/es/setup/table/TableRow/SetupTableRow.module.css +6 -2
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +44 -9
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +25 -2
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +7 -3
- package/es/version2/lookup/alertLookupCommonNew.module.css +8 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +26 -10
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +47 -10
- package/lib/ActionButton/ActionButton.module.css +0 -1
- package/lib/FreezeLayer/FreezeLayer.js +31 -4
- package/lib/Provider/Config.js +21 -0
- package/lib/deprecated/utils/General.js +29 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +8 -7
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +1 -1
- package/lib/form/fields/PhoneField/PhoneField.js +1 -1
- package/lib/form/fields/RadioField/RadioField.js +1 -1
- package/lib/form/fields/SelectField/SelectField.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.module.css +13 -2
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +38 -34
- package/lib/list/SecondaryText/ContactName.js +13 -18
- package/lib/list/SecondaryText/SecondaryText.module.css +28 -13
- package/lib/list/status/StatusDropdown/StatusDropdown.js +44 -37
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/utils/General.js +0 -24
- package/package.json +2 -2
package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css
CHANGED
|
@@ -5,20 +5,27 @@
|
|
|
5
5
|
composes: varClass;
|
|
6
6
|
min-height: var(--zd_size54);
|
|
7
7
|
position: relative;
|
|
8
|
+
color: var(--zdt_desktopnotification_text);
|
|
8
9
|
background-color: var(--alert_lookup_bg_color);
|
|
9
10
|
border-style: solid;
|
|
10
11
|
border-color: var(--commonalert_border_color);
|
|
11
12
|
border-width: 2px 0 0 0;
|
|
12
|
-
color: var(--zdt_desktopnotification_text);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.title {
|
|
16
|
-
margin: 0 var(--zd_size5) 0 var(--zd_size10);
|
|
17
16
|
font-size: var(--zd_font_size18);
|
|
18
17
|
line-height: var(--zd_size22);
|
|
19
18
|
font-family: var(--zd_bold);
|
|
20
19
|
composes: ftsmooth wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
21
20
|
}
|
|
21
|
+
|
|
22
|
+
[dir=ltr] .title {
|
|
23
|
+
margin: 0 var(--zd_size5) 0 var(--zd_size10);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[dir=rtl] .title {
|
|
27
|
+
margin: 0 var(--zd_size10) 0 var(--zd_size5);
|
|
28
|
+
}
|
|
22
29
|
|
|
23
30
|
.infoText {
|
|
24
31
|
font-size: var(--zd_font_size14);
|
|
@@ -50,8 +57,11 @@
|
|
|
50
57
|
|
|
51
58
|
|
|
52
59
|
/* Primary Header */
|
|
53
|
-
.primary {
|
|
54
|
-
|
|
60
|
+
[dir=ltr] .primary {
|
|
61
|
+
padding: var(--zd_size15) var(--zd_size45) 0 var(--zd_size20);
|
|
62
|
+
}
|
|
63
|
+
[dir=rtl] .primary {
|
|
64
|
+
padding: var(--zd_size15) var(--zd_size20) 0 var(--zd_size45);
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
.primary .iconContainer {
|
|
@@ -66,14 +76,26 @@
|
|
|
66
76
|
.primary .close {
|
|
67
77
|
position: absolute;
|
|
68
78
|
top: var(--zd_size12);
|
|
69
|
-
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[dir=ltr] .primary .close {
|
|
82
|
+
right: var(--zd_size12);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[dir=rtl] .primary .close {
|
|
86
|
+
left: var(--zd_size12);
|
|
70
87
|
}
|
|
71
88
|
|
|
72
89
|
/* Secondary Header */
|
|
73
90
|
.secondary {
|
|
74
|
-
padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75);
|
|
75
|
-
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
76
91
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
92
|
+
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
93
|
+
}
|
|
94
|
+
[dir=ltr] .secondary {
|
|
95
|
+
padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75);
|
|
96
|
+
}
|
|
97
|
+
[dir=rtl] .secondary {
|
|
98
|
+
padding: var(--zd_size18) var(--zd_size75) var(--zd_size19) var(--zd_size70);
|
|
77
99
|
}
|
|
78
100
|
|
|
79
101
|
.secondary .infoText {
|
|
@@ -86,15 +108,30 @@
|
|
|
86
108
|
position: absolute;
|
|
87
109
|
top: 0;
|
|
88
110
|
bottom: 0;
|
|
89
|
-
left: var(--zd_size18);
|
|
90
111
|
margin: auto 0;
|
|
91
112
|
}
|
|
92
113
|
|
|
114
|
+
[dir=ltr] .secondary .iconContainer {
|
|
115
|
+
left: var(--zd_size18);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[dir=rtl] .secondary .iconContainer {
|
|
119
|
+
right: var(--zd_size18);
|
|
120
|
+
}
|
|
121
|
+
|
|
93
122
|
.secondary .close {
|
|
94
123
|
position: absolute;
|
|
95
124
|
top: 0;
|
|
96
125
|
bottom: 0;
|
|
97
|
-
right: var(--zd_size12);
|
|
98
|
-
margin: auto 0 auto var(--zd_size25);
|
|
99
126
|
height: var(--zd_size25);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
[dir=ltr] .secondary .close {
|
|
130
|
+
right: var(--zd_size12);
|
|
131
|
+
margin: auto 0 auto var(--zd_size25);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[dir=rtl] .secondary .close {
|
|
135
|
+
left: var(--zd_size12);
|
|
136
|
+
margin: auto var(--zd_size25) auto 0;
|
|
100
137
|
}
|
|
@@ -17,10 +17,10 @@ var _VelocityAnimationGroup = _interopRequireDefault(require("@zohodesk/componen
|
|
|
17
17
|
|
|
18
18
|
var _FreezeLayerModule = _interopRequireDefault(require("./FreezeLayer.module.css"));
|
|
19
19
|
|
|
20
|
-
var _KeyboardApi = require("../utils/KeyboardApi");
|
|
21
|
-
|
|
22
20
|
var _ZindexProvider = require("@zohodesk/components/lib/Provider/ZindexProvider");
|
|
23
21
|
|
|
22
|
+
var _Config = require("../Provider/Config");
|
|
23
|
+
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
26
|
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); }
|
|
@@ -63,10 +63,29 @@ var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
|
63
63
|
isChildActive: false
|
|
64
64
|
};
|
|
65
65
|
_this.getNextIndex = (0, _ZindexProvider.getZIndex)(_assertThisInitialized(_this));
|
|
66
|
+
_this.isFreezeLayerEnabled = false;
|
|
66
67
|
return _this;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
_createClass(FreezeLayer, [{
|
|
71
|
+
key: "enableFreeze",
|
|
72
|
+
value: function enableFreeze() {
|
|
73
|
+
if (!this.isFreezeLayerEnabled) {
|
|
74
|
+
this.isFreezeLayerEnabled = true;
|
|
75
|
+
var freezeLayerEnable = ((0, _Config.getDotLibraryConfig)('freezeLayer') || {}).enable;
|
|
76
|
+
freezeLayerEnable && freezeLayerEnable();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}, {
|
|
80
|
+
key: "disableFreeze",
|
|
81
|
+
value: function disableFreeze() {
|
|
82
|
+
if (this.isFreezeLayerEnabled) {
|
|
83
|
+
this.isFreezeLayerEnabled = false;
|
|
84
|
+
var freezeLayerDisable = ((0, _Config.getDotLibraryConfig)('freezeLayer') || {}).disable;
|
|
85
|
+
freezeLayerDisable && freezeLayerDisable();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}, {
|
|
70
89
|
key: "componentDidMount",
|
|
71
90
|
value: function componentDidMount() {
|
|
72
91
|
var isActive = this.props.isActive;
|
|
@@ -75,6 +94,7 @@ var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
|
75
94
|
this.setState({
|
|
76
95
|
isChildActive: true
|
|
77
96
|
});
|
|
97
|
+
this.enableFreeze();
|
|
78
98
|
}
|
|
79
99
|
}
|
|
80
100
|
}, {
|
|
@@ -86,7 +106,8 @@ var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
|
86
106
|
|
|
87
107
|
if (isActive != prevProps.isActive) {
|
|
88
108
|
if (isActive) {
|
|
89
|
-
|
|
109
|
+
this.enableFreeze(); // Shortcut && Shortcut.setState(false);
|
|
110
|
+
|
|
90
111
|
this.setState({
|
|
91
112
|
isActive: true
|
|
92
113
|
}, function () {
|
|
@@ -95,7 +116,8 @@ var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
|
95
116
|
});
|
|
96
117
|
});
|
|
97
118
|
} else {
|
|
98
|
-
|
|
119
|
+
this.disableFreeze(); // Shortcut && Shortcut.setState(true);
|
|
120
|
+
|
|
99
121
|
this.setState({
|
|
100
122
|
isChildActive: false
|
|
101
123
|
}, function () {
|
|
@@ -106,6 +128,11 @@ var FreezeLayer = /*#__PURE__*/function (_Component) {
|
|
|
106
128
|
}
|
|
107
129
|
}
|
|
108
130
|
}
|
|
131
|
+
}, {
|
|
132
|
+
key: "componentWillUnmount",
|
|
133
|
+
value: function componentWillUnmount() {
|
|
134
|
+
this.disableFreeze();
|
|
135
|
+
}
|
|
109
136
|
}, {
|
|
110
137
|
key: "render",
|
|
111
138
|
value: function render() {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDotLibraryConfig = getDotLibraryConfig;
|
|
7
|
+
exports.setDotLibraryConfig = setDotLibraryConfig;
|
|
8
|
+
var config = {
|
|
9
|
+
freezeLayer: {
|
|
10
|
+
enable: function enable() {},
|
|
11
|
+
disable: function disable() {}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
function getDotLibraryConfig(key) {
|
|
16
|
+
return config[key];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function setDotLibraryConfig(configObj) {
|
|
20
|
+
config = Object.assign({}, config, configObj);
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formatCurrency = formatCurrency;
|
|
7
|
+
|
|
8
|
+
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); }
|
|
9
|
+
|
|
10
|
+
function formatCurrency(number, symbol) {
|
|
11
|
+
// format number 1000000 to 1,234,567
|
|
12
|
+
if (number && number != 0) {
|
|
13
|
+
var typeOfData = _typeof(number);
|
|
14
|
+
|
|
15
|
+
var isDecimal = typeOfData == 'string' ? number.indexOf('.') != -1 : !Number.isInteger(number);
|
|
16
|
+
|
|
17
|
+
if (isDecimal) {
|
|
18
|
+
var val = number.toString().split('.');
|
|
19
|
+
var arr1 = "".concat(val[0].replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
20
|
+
var finalVal = "".concat(symbol).concat(arr1, ".").concat(val[1]);
|
|
21
|
+
return finalVal;
|
|
22
|
+
} else {
|
|
23
|
+
var value = "".concat(symbol).concat(number.toString().replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
24
|
+
return value;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return number;
|
|
29
|
+
}
|
|
@@ -154,7 +154,7 @@ var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
154
154
|
|
|
155
155
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
156
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
157
|
-
"data-title": isDisabled ? title :
|
|
157
|
+
"data-title": isDisabled ? title : null
|
|
158
158
|
}, isDirectCol && labelElement, /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
159
|
className: "".concat(isDirectCol ? _FieldsModule["default"].fieldContainer : _FieldsModule["default"].checkboxFieldContainer, " ").concat(isDirectCol && labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
160
160
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -23,8 +23,6 @@ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
|
23
23
|
|
|
24
24
|
var _FieldsModule = _interopRequireDefault(require("../Fields.module.css"));
|
|
25
25
|
|
|
26
|
-
var _General = require("../../../utils/General");
|
|
27
|
-
|
|
28
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
27
|
|
|
30
28
|
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); }
|
|
@@ -145,7 +143,8 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
145
143
|
needReadOnlyStyle = _this$props3.needReadOnlyStyle,
|
|
146
144
|
isClickable = _this$props3.isClickable,
|
|
147
145
|
userCurrencyType = _this$props3.userCurrencyType,
|
|
148
|
-
customProps = _this$props3.customProps
|
|
146
|
+
customProps = _this$props3.customProps,
|
|
147
|
+
formatCurrency = _this$props3.formatCurrency;
|
|
149
148
|
var _customProps$LabelPro = customProps.LabelProps,
|
|
150
149
|
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
151
150
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
@@ -158,7 +157,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
158
157
|
var formatValue = value;
|
|
159
158
|
|
|
160
159
|
if (!isActive && value != 0) {
|
|
161
|
-
formatValue =
|
|
160
|
+
formatValue = formatCurrency(value, userCurrencyType);
|
|
162
161
|
} else {
|
|
163
162
|
formatValue = value;
|
|
164
163
|
}
|
|
@@ -166,7 +165,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
166
165
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
167
166
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
168
167
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
169
|
-
"data-title": isDisabled ? title :
|
|
168
|
+
"data-title": isDisabled ? title : null
|
|
170
169
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
170
|
className: _FieldsModule["default"].labelContainer
|
|
172
171
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -266,7 +265,8 @@ CurrencyField.propTypes = {
|
|
|
266
265
|
TextBoxProps: _propTypes["default"].object,
|
|
267
266
|
ValidationMessageProps1: _propTypes["default"].object,
|
|
268
267
|
ValidationMessageProps2: _propTypes["default"].object
|
|
269
|
-
})
|
|
268
|
+
}),
|
|
269
|
+
formatCurrency: _propTypes["default"].func
|
|
270
270
|
};
|
|
271
271
|
CurrencyField.defaultProps = {
|
|
272
272
|
errorType: 'primary',
|
|
@@ -282,7 +282,8 @@ CurrencyField.defaultProps = {
|
|
|
282
282
|
labelCustomClass: '',
|
|
283
283
|
isClickable: false,
|
|
284
284
|
needReadOnlyStyle: true,
|
|
285
|
-
customProps: {}
|
|
285
|
+
customProps: {},
|
|
286
|
+
formatCurrency: function formatCurrency() {}
|
|
286
287
|
};
|
|
287
288
|
|
|
288
289
|
if (false) {
|
|
@@ -172,7 +172,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
172
172
|
var getAriaId = htmlId ? htmlId : this.getNextId();
|
|
173
173
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
174
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
175
|
-
"data-title": isDisabled ? title :
|
|
175
|
+
"data-title": isDisabled ? title : null
|
|
176
176
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
177
177
|
className: _FieldsModule["default"].labelContainer
|
|
178
178
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -185,7 +185,7 @@ var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
185
185
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
186
186
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
187
187
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
188
|
-
"data-title": isDisabled ? title :
|
|
188
|
+
"data-title": isDisabled ? title : null
|
|
189
189
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
190
190
|
className: _FieldsModule["default"].labelContainer
|
|
191
191
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -169,7 +169,7 @@ var PhoneField = /*#__PURE__*/function (_PureComponent) {
|
|
|
169
169
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
170
170
|
alignBox: "row",
|
|
171
171
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : ''),
|
|
172
|
-
"data-title": isDisabled ? title :
|
|
172
|
+
"data-title": isDisabled ? title : null
|
|
173
173
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
174
174
|
flexible: true
|
|
175
175
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxField["default"], _extends({
|
|
@@ -106,7 +106,7 @@ var RadioField = /*#__PURE__*/function (_PureComponent) {
|
|
|
106
106
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
107
107
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
108
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
109
|
-
"data-title": isDisabled ? title :
|
|
109
|
+
"data-title": isDisabled ? title : null
|
|
110
110
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
111
111
|
text: labelName,
|
|
112
112
|
size: "medium",
|
|
@@ -153,7 +153,7 @@ var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
153
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
154
154
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
155
155
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
156
|
-
"data-title": isDisabled ? title :
|
|
156
|
+
"data-title": isDisabled ? title : null
|
|
157
157
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
158
|
className: _FieldsModule["default"].labelContainer
|
|
159
159
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -147,7 +147,7 @@ var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
|
147
147
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
148
148
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
149
149
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
150
|
-
"data-title": isDisabled ? title :
|
|
150
|
+
"data-title": isDisabled ? title : null
|
|
151
151
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
152
|
className: _FieldsModule["default"].labelContainer
|
|
153
153
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -649,7 +649,18 @@
|
|
|
649
649
|
right: 0;
|
|
650
650
|
left: 0;
|
|
651
651
|
}
|
|
652
|
-
.readOnly :global .KB_Editor_menus
|
|
653
|
-
.editorHide :global .KB_Editor {
|
|
652
|
+
.readOnly :global .KB_Editor_menus {
|
|
654
653
|
display: none !important;
|
|
655
654
|
}
|
|
655
|
+
.editorHide :global .KB_Editor {
|
|
656
|
+
position: absolute !important;
|
|
657
|
+
top: 0;
|
|
658
|
+
opacity: 0;
|
|
659
|
+
visibility: hidden;
|
|
660
|
+
}
|
|
661
|
+
[dir=ltr] .editorHide :global .KB_Editor {
|
|
662
|
+
left: 0;
|
|
663
|
+
}
|
|
664
|
+
[dir=rtl] .editorHide :global .KB_Editor {
|
|
665
|
+
right: 0;
|
|
666
|
+
}
|
|
@@ -143,7 +143,7 @@ var TextareaField = /*#__PURE__*/function (_PureComponent) {
|
|
|
143
143
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
144
144
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
145
145
|
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
146
|
-
"data-title": isDisabled ? title :
|
|
146
|
+
"data-title": isDisabled ? title : null
|
|
147
147
|
}, labelName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
148
|
className: _FieldsModule["default"].labelContainer
|
|
149
149
|
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], _extends({
|
|
@@ -82,40 +82,44 @@ var AccountName = /*#__PURE__*/function (_Component) {
|
|
|
82
82
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp,
|
|
83
83
|
_customProps$Secondar = customProps.SecondaryTextProps,
|
|
84
84
|
SecondaryTextProps = _customProps$Secondar === void 0 ? {} : _customProps$Secondar;
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
85
|
+
return (
|
|
86
|
+
/*#__PURE__*/
|
|
87
|
+
// <Container
|
|
88
|
+
// alignBox='row'
|
|
89
|
+
// align='baseline'
|
|
90
|
+
// isCover={false}
|
|
91
|
+
// data-title={dataTitle}
|
|
92
|
+
// dataId={dataId}
|
|
93
|
+
// >
|
|
94
|
+
// <Box flexible>
|
|
95
|
+
_react["default"].createElement("div", {
|
|
96
|
+
className: _SecondaryTextModule["default"].primaryAccountNameCnt,
|
|
97
|
+
"data-title": dataTitle,
|
|
98
|
+
"data-id": dataId
|
|
99
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
100
|
+
className: _SecondaryTextModule["default"].primaryAccountName,
|
|
101
|
+
shrink: true
|
|
102
|
+
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
103
|
+
href: href,
|
|
104
|
+
urlName: urlName,
|
|
105
|
+
urlData: urlData,
|
|
106
|
+
onClick: onClick,
|
|
107
|
+
dataId: "".concat(dataId, "_link"),
|
|
108
|
+
className: "".concat(_SecondaryTextModule["default"].gridItem, " ").concat(_SecondaryTextModule["default"].link)
|
|
109
|
+
}, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
110
|
+
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
111
|
+
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
112
|
+
className: "".concat(_SecondaryTextModule["default"].gridItem, " ").concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : '')
|
|
113
|
+
}, TextProps), text)), secondaryAccountText && /*#__PURE__*/_react["default"].createElement(_Link["default"], {
|
|
114
|
+
href: secondaryAccountHref,
|
|
115
|
+
onClick: secondaryAccountClick,
|
|
116
|
+
className: "".concat(_SecondaryTextModule["default"].gridItem, " ").concat(_SecondaryTextModule["default"].link)
|
|
117
|
+
}, /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
118
|
+
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
119
|
+
}, SecondaryTextProps), secondaryAccountText))) // </Box>
|
|
120
|
+
// </Container>
|
|
121
|
+
|
|
122
|
+
);
|
|
119
123
|
}
|
|
120
124
|
}]);
|
|
121
125
|
|
|
@@ -93,36 +93,30 @@ var ContactName = /*#__PURE__*/function (_Component) {
|
|
|
93
93
|
LinkProps = _customProps$LinkProp === void 0 ? {} : _customProps$LinkProp,
|
|
94
94
|
_customProps$TextProp = customProps.TextProps,
|
|
95
95
|
TextProps = _customProps$TextProp === void 0 ? {} : _customProps$TextProp;
|
|
96
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
dataId: dataId
|
|
101
|
-
}, isPaidUser && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
102
|
-
className: _SecondaryTextModule["default"].paidUserIcon,
|
|
103
|
-
title: paidTitle
|
|
104
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
97
|
+
className: _SecondaryTextModule["default"].contactNameCnt,
|
|
98
|
+
"data-id": dataId
|
|
99
|
+
}, isPaidUser && /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
105
100
|
name: "ZD-paiduser",
|
|
106
|
-
iconClass: _SecondaryTextModule["default"].
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
101
|
+
iconClass: _SecondaryTextModule["default"].paidUserIcon,
|
|
102
|
+
title: paidTitle
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isLink ? /*#__PURE__*/_react["default"].createElement(_Link["default"], _extends({
|
|
110
104
|
urlName: urlName,
|
|
111
105
|
href: href,
|
|
112
106
|
urlData: urlData,
|
|
113
107
|
onClick: onClick,
|
|
114
108
|
title: dataTitle,
|
|
115
109
|
dataId: "".concat(dataId, "_link"),
|
|
116
|
-
className: _SecondaryTextModule["default"].link
|
|
110
|
+
className: "".concat(_SecondaryTextModule["default"].gridItem, " ").concat(_SecondaryTextModule["default"].link)
|
|
117
111
|
}, LinkProps), /*#__PURE__*/_react["default"].createElement("div", {
|
|
118
112
|
className: "".concat(_SecondaryTextModule["default"].textStyle, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '')
|
|
119
113
|
}, text)) : /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
120
|
-
className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
114
|
+
className: "".concat(_SecondaryTextModule["default"].gridItem, " ").concat(_SecondaryTextModule["default"].secondaryText, " ").concat(_SecondaryTextModule["default"]["font_".concat(fontWeight)], " ").concat(className ? className : '', " ").concat(notAccessible ? _SecondaryTextModule["default"].disable : ''),
|
|
121
115
|
"data-title": dataTitle
|
|
122
|
-
}, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(
|
|
116
|
+
}, TextProps), text)), sentimentType && /*#__PURE__*/_react["default"].createElement(_SentimentStatus["default"], {
|
|
123
117
|
type: sentimentType,
|
|
124
118
|
dataTitle: sentimentDataTitle
|
|
125
|
-
}))
|
|
119
|
+
}));
|
|
126
120
|
}
|
|
127
121
|
}]);
|
|
128
122
|
|
|
@@ -164,7 +158,8 @@ ContactName.defaultProps = {
|
|
|
164
158
|
dataId: 'contactName',
|
|
165
159
|
fontWeight: 'regular',
|
|
166
160
|
i18nKeys: {},
|
|
167
|
-
customProps: {}
|
|
161
|
+
customProps: {},
|
|
162
|
+
sentimentType: 'positive'
|
|
168
163
|
};
|
|
169
164
|
|
|
170
165
|
if (false) {
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
.paidUserIcon {
|
|
2
|
-
vertical-align: middle;
|
|
3
|
-
bottom: var(--zd_size1);
|
|
4
|
-
position: relative;
|
|
5
|
-
font-size: var(--zd_font_size8);
|
|
6
|
-
}[dir=ltr] .paidUserIcon {
|
|
7
|
-
margin-right: var(--zd_size5);
|
|
8
|
-
}[dir=rtl] .paidUserIcon {
|
|
9
|
-
margin-left: var(--zd_size5);
|
|
10
|
-
}
|
|
11
1
|
.icon {
|
|
12
2
|
display: block;
|
|
13
3
|
}
|
|
@@ -67,9 +57,6 @@ display: block
|
|
|
67
57
|
.ticketIdLink:hover, .ticketIdLink:focus {
|
|
68
58
|
color: var(--zdt_secondaryText_blue_hover_text);
|
|
69
59
|
}
|
|
70
|
-
.primaryAccountNameCnt {
|
|
71
|
-
max-width: 100%;
|
|
72
|
-
}
|
|
73
60
|
/* status */
|
|
74
61
|
.font_regular {
|
|
75
62
|
font-family: var(--zd_regular);
|
|
@@ -134,3 +121,31 @@ display: block
|
|
|
134
121
|
.black {
|
|
135
122
|
color: var(--zdt_secondaryText_black_text);
|
|
136
123
|
}
|
|
124
|
+
/* Contact Name */
|
|
125
|
+
.contactNameCnt {
|
|
126
|
+
display: inline-grid;
|
|
127
|
+
grid-template-columns: minmax(auto,max-content) 1fr minmax(auto,max-content);
|
|
128
|
+
align-items: baseline;
|
|
129
|
+
}
|
|
130
|
+
.paidUserIcon {
|
|
131
|
+
vertical-align: middle;
|
|
132
|
+
bottom: var(--zd_size1);
|
|
133
|
+
position: relative;
|
|
134
|
+
font-size: var(--zd_font_size8);
|
|
135
|
+
}
|
|
136
|
+
[dir=ltr] .paidUserIcon {
|
|
137
|
+
margin-right: var(--zd_size5);
|
|
138
|
+
}
|
|
139
|
+
[dir=rtl] .paidUserIcon {
|
|
140
|
+
margin-left: var(--zd_size5);
|
|
141
|
+
}
|
|
142
|
+
.gridItem {
|
|
143
|
+
min-width: 0;
|
|
144
|
+
}
|
|
145
|
+
/* Account Name */
|
|
146
|
+
.primaryAccountNameCnt {
|
|
147
|
+
max-width: 100%;
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: 1fr minmax(auto,max-content);
|
|
150
|
+
align-items: baseline;
|
|
151
|
+
}
|