@zohodesk/dot 1.0.0-beta.233 → 1.0.0-beta.234

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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.234
6
+
7
+ - AlertLookup V1 => isHtmlContent prop added
8
+
5
9
  # 1.0.0-beta.233
6
10
 
7
11
  - ToggleDropDown , StatusDropdown => preventParentScroll implemented
@@ -70,7 +74,7 @@ In this Library, we Provide Some Basic Components to Build Your Application
70
74
 
71
75
  # 1.0.0-beta.216
72
76
 
73
- - CurrencyField => formatCurrency call if check fixed (vavlue will formatted when isActive is false)
77
+ - CurrencyField => formatCurrency call if check fixed (value will formatted when isActive is false)
74
78
 
75
79
  # 1.0.0-beta.215
76
80
 
@@ -90,7 +90,8 @@ export default class AlertLookup extends Component {
90
90
  iconName,
91
91
  iconClass,
92
92
  iconSize,
93
- customProps
93
+ customProps,
94
+ isHtmlContent
94
95
  } = this.props;
95
96
  const {
96
97
  LookupProps = {},
@@ -120,7 +121,11 @@ export default class AlertLookup extends Component {
120
121
  className: style.section
121
122
  }, /*#__PURE__*/React.createElement("div", {
122
123
  className: `${style.innerSection} ${sectionClassName}`
123
- }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
124
+ }, children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, isHtmlContent && message ? /*#__PURE__*/React.createElement("div", {
125
+ dangerouslySetInnerHTML: {
126
+ __html: message
127
+ }
128
+ }) : /*#__PURE__*/React.createElement("div", null, message), confirmationMessage && /*#__PURE__*/React.createElement("div", {
124
129
  className: style.text
125
130
  }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/React.createElement(FormAction, {
126
131
  size: "small",
@@ -172,7 +177,8 @@ AlertLookup.propTypes = {
172
177
  PrimaryButtonProps: PropTypes.object,
173
178
  SecondaryButtonProps: PropTypes.object
174
179
  }),
175
- onEsc: PropTypes.oneOf(['close', 'cancel'])
180
+ onEsc: PropTypes.oneOf(['close', 'cancel']),
181
+ isHtmlContent: PropTypes.bool
176
182
  };
177
183
  AlertLookup.defaultProps = {
178
184
  isActive: false,
@@ -185,7 +191,8 @@ AlertLookup.defaultProps = {
185
191
  customClass: '',
186
192
  isDefaultFocus: true,
187
193
  customProps: {},
188
- onEsc: 'cancel'
194
+ onEsc: 'cancel',
195
+ isHtmlContent: false
189
196
  };
190
197
 
191
198
  if (false) {
@@ -80,12 +80,13 @@ export default class AlertLookup__default extends Component {
80
80
  },
81
81
  onCancelClick: this.onCancel,
82
82
  title: "Delete Ticket",
83
- message: "Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.",
83
+ message: "<h2>Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.</h2>",
84
84
  confirmationMessage: "Would you like to delete?",
85
85
  submitText: "Delete",
86
86
  cancelText: "Cancel",
87
87
  onClose: this.onClose,
88
- onEsc: "close"
88
+ onEsc: "close",
89
+ isHtmlContent: true
89
90
  }), /*#__PURE__*/React.createElement(AlertLookup, {
90
91
  isActive: lookup === 'remoteAssist' ? true : false,
91
92
  type: "remoteAssist",
@@ -95,7 +96,7 @@ export default class AlertLookup__default extends Component {
95
96
  },
96
97
  onCancelClick: this.onCancel,
97
98
  title: "Remote Assist",
98
- message: /*#__PURE__*/React.createElement("div", null, "You are about to send an invite for remote assistance to", ' ', /*#__PURE__*/React.createElement("b", null, "antro.avemaxa@gmail.com")),
99
+ message: /*#__PURE__*/React.createElement("div", null, "You are about to send an invite for remote assistance to ", /*#__PURE__*/React.createElement("b", null, "antro.avemaxa@gmail.com")),
99
100
  confirmationMessage: "Would you like to continue?",
100
101
  submitText: "Continue",
101
102
  cancelText: "Cancel"
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes";
2
-
3
1
  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); }
4
2
 
5
3
  import React, { Component, Fragment } from 'react';
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes";
2
-
3
1
  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); }
4
2
 
5
3
  import React from 'react';
@@ -138,7 +138,8 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
138
138
  iconName = _this$props2.iconName,
139
139
  iconClass = _this$props2.iconClass,
140
140
  iconSize = _this$props2.iconSize,
141
- customProps = _this$props2.customProps;
141
+ customProps = _this$props2.customProps,
142
+ isHtmlContent = _this$props2.isHtmlContent;
142
143
  var _customProps$LookupPr = customProps.LookupProps,
143
144
  LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
144
145
  _customProps$AlertHea = customProps.AlertHeaderProps,
@@ -169,7 +170,11 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
169
170
  className: _AlertLookupModule["default"].section
170
171
  }, /*#__PURE__*/_react["default"].createElement("div", {
171
172
  className: "".concat(_AlertLookupModule["default"].innerSection, " ").concat(sectionClassName)
172
- }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", null, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
173
+ }, children ? children : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isHtmlContent && message ? /*#__PURE__*/_react["default"].createElement("div", {
174
+ dangerouslySetInnerHTML: {
175
+ __html: message
176
+ }
177
+ }) : /*#__PURE__*/_react["default"].createElement("div", null, message), confirmationMessage && /*#__PURE__*/_react["default"].createElement("div", {
173
178
  className: _AlertLookupModule["default"].text
174
179
  }, confirmationMessage))), submitText || onSubmitClick || cancelText || onCancelClick ? /*#__PURE__*/_react["default"].createElement(_FormAction["default"], {
175
180
  size: "small",
@@ -225,7 +230,8 @@ AlertLookup.propTypes = {
225
230
  PrimaryButtonProps: _propTypes["default"].object,
226
231
  SecondaryButtonProps: _propTypes["default"].object
227
232
  }),
228
- onEsc: _propTypes["default"].oneOf(['close', 'cancel'])
233
+ onEsc: _propTypes["default"].oneOf(['close', 'cancel']),
234
+ isHtmlContent: _propTypes["default"].bool
229
235
  };
230
236
  AlertLookup.defaultProps = {
231
237
  isActive: false,
@@ -238,7 +244,8 @@ AlertLookup.defaultProps = {
238
244
  customClass: '',
239
245
  isDefaultFocus: true,
240
246
  customProps: {},
241
- onEsc: 'cancel'
247
+ onEsc: 'cancel',
248
+ isHtmlContent: false
242
249
  };
243
250
 
244
251
  if (false) {
@@ -131,12 +131,13 @@ var AlertLookup__default = /*#__PURE__*/function (_Component) {
131
131
  },
132
132
  onCancelClick: this.onCancel,
133
133
  title: "Delete Ticket",
134
- message: "Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.",
134
+ message: "<h2>Deleting this Ticket will move their Activities, and Time Entry to the Recycle Bin.</h2>",
135
135
  confirmationMessage: "Would you like to delete?",
136
136
  submitText: "Delete",
137
137
  cancelText: "Cancel",
138
138
  onClose: this.onClose,
139
- onEsc: "close"
139
+ onEsc: "close",
140
+ isHtmlContent: true
140
141
  }), /*#__PURE__*/_react["default"].createElement(_AlertLookup["default"], {
141
142
  isActive: lookup === 'remoteAssist' ? true : false,
142
143
  type: "remoteAssist",
@@ -146,7 +147,7 @@ var AlertLookup__default = /*#__PURE__*/function (_Component) {
146
147
  },
147
148
  onCancelClick: this.onCancel,
148
149
  title: "Remote Assist",
149
- message: /*#__PURE__*/_react["default"].createElement("div", null, "You are about to send an invite for remote assistance to", ' ', /*#__PURE__*/_react["default"].createElement("b", null, "antro.avemaxa@gmail.com")),
150
+ message: /*#__PURE__*/_react["default"].createElement("div", null, "You are about to send an invite for remote assistance to ", /*#__PURE__*/_react["default"].createElement("b", null, "antro.avemaxa@gmail.com")),
150
151
  confirmationMessage: "Would you like to continue?",
151
152
  submitText: "Continue",
152
153
  cancelText: "Cancel"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-beta.233",
3
+ "version": "1.0.0-beta.234",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",