@zohodesk/dot 1.0.0-temp-109 → 1.0.0-temp-111
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 +15 -0
- package/es/ActionButton/ActionButton.js +12 -5
- package/es/Drawer/Drawer.js +23 -9
- package/es/Drawer/Drawer.module.css +1 -1
- package/es/Drawer/props/defaultProps.js +2 -1
- package/es/Drawer/props/propTypes.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +5 -53
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +15 -13
- package/es/form/fields/CheckBoxField/CheckBoxField.js +3 -2
- package/es/form/fields/CurrencyField/CurrencyField.js +43 -8
- package/es/form/fields/CurrencyField/props/defaultProps.js +1 -0
- package/es/form/fields/DateField/DateField.js +93 -8
- package/es/form/fields/DateField/props/defaultProps.js +1 -0
- package/es/form/fields/Fields.module.css +65 -0
- package/es/form/fields/MultiSelectField/MultiSelectField.js +91 -9
- package/es/form/fields/MultiSelectField/props/defaultProps.js +1 -0
- package/es/form/fields/PhoneField/PhoneField.js +3 -1
- package/es/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +99 -12
- package/es/form/fields/SelectField/props/defaultProps.js +1 -0
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +3 -1
- package/es/form/fields/TextBoxField/TextBoxField.js +59 -8
- package/es/form/fields/TextBoxField/props/defaultProps.js +1 -0
- package/es/form/fields/TextareaField/TextareaField.js +58 -12
- package/es/form/fields/TextareaField/props/defaultProps.js +1 -0
- package/es/list/Icons/DeleteIcon.js +2 -1
- package/es/list/Icons/SmartIcon.js +0 -1
- package/es/lookup/Lookup/Lookup.js +24 -12
- package/es/lookup/Lookup/props/defaultProps.js +2 -1
- package/es/lookup/Lookup/props/propTypes.js +2 -1
- package/es/lookup/header/Search/Search.js +5 -0
- package/es/version2/GlobalNotification/GlobalNotification.js +2 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +42 -52
- package/lib/ActionButton/ActionButton.js +15 -6
- package/lib/AlphabeticList/AlphabeticList.js +3 -1
- package/lib/Attachment/Attachment.js +3 -1
- package/lib/AttachmentViewer/AttachmentImage.js +3 -1
- package/lib/AttachmentViewer/AttachmentViewer.js +3 -1
- package/lib/AttachmentViewer/utils.js +4 -1
- package/lib/ChannelIcon/ChannelIcon.js +3 -1
- package/lib/Drawer/Drawer.js +26 -10
- package/lib/Drawer/Drawer.module.css +1 -1
- package/lib/Drawer/props/defaultProps.js +2 -1
- package/lib/Drawer/props/propTypes.js +2 -1
- package/lib/ExternalLink/ExternalLink.js +3 -1
- package/lib/FlipCard/FlipCard.js +3 -1
- package/lib/FormAction/FormAction.js +3 -1
- package/lib/FreezeLayer/FreezeLayer.js +3 -1
- package/lib/IconButton/IconButton.js +3 -1
- package/lib/IconButton/props/propTypes.js +4 -1
- package/lib/Image/Image.js +3 -1
- package/lib/ImportantNotes/ImportantNotes.js +3 -1
- package/lib/Link/Link.js +3 -1
- package/lib/Loader/Loader.js +3 -1
- package/lib/Message/Message.js +3 -1
- package/lib/MessageBanner/MessageBanner.js +3 -1
- package/lib/NewStar/NewStar.js +3 -1
- package/lib/PlusIcon/PlusIcon.js +3 -1
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/Upload/Upload.js +3 -1
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +3 -1
- package/lib/alert/AlertLookup/AlertLookup.js +35 -83
- package/lib/avatar/AvatarClose/AvatarClose.js +3 -1
- package/lib/avatar/AvatarCollision/AvatarCollision.js +3 -1
- package/lib/avatar/AvatarIcon/AvatarIcon.js +3 -1
- package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -1
- package/lib/avatar/AvatarThread/AvatarThread.js +3 -1
- package/lib/avatar/AvatarUser/AvatarUser.js +5 -2
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -1
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +3 -1
- package/lib/deprecated/utils/KeyboardApi.js +4 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +19 -15
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +3 -1
- package/lib/emptystate/EditionPage/EditionPage.js +3 -1
- package/lib/errorstate/Inconvenience/Inconvenience.js +3 -1
- package/lib/errorstate/LinkText/LinkText.js +3 -1
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -1
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -1
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -1
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -1
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -1
- package/lib/errorstate/WillBack/WillBack.js +3 -1
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +6 -3
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +4 -1
- package/lib/form/fields/CheckBoxField/props/propTypes.js +4 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +79 -42
- package/lib/form/fields/CurrencyField/props/defaultProps.js +5 -1
- package/lib/form/fields/CurrencyField/props/propTypes.js +4 -1
- package/lib/form/fields/DateField/DateField.js +131 -41
- package/lib/form/fields/DateField/props/defaultProps.js +4 -1
- package/lib/form/fields/DateField/props/propTypes.js +4 -1
- package/lib/form/fields/FieldContainer/FieldContainer.js +3 -1
- package/lib/form/fields/FieldContainer/props/defaultProps.js +4 -1
- package/lib/form/fields/FieldContainer/props/propTypes.js +4 -1
- package/lib/form/fields/Fields.module.css +65 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +138 -53
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +4 -1
- package/lib/form/fields/MultiSelectField/props/propTypes.js +4 -1
- package/lib/form/fields/PhoneField/PhoneField.js +6 -2
- package/lib/form/fields/PhoneField/props/defaultProps.js +2 -1
- package/lib/form/fields/RadioField/RadioField.js +4 -2
- package/lib/form/fields/SelectField/SelectField.js +153 -61
- package/lib/form/fields/SelectField/props/defaultProps.js +6 -2
- package/lib/form/fields/SelectField/props/propTypes.js +4 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +3 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +4 -2
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +4 -1
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +4 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +97 -44
- package/lib/form/fields/TextBoxField/props/defaultProps.js +6 -2
- package/lib/form/fields/TextBoxField/props/propTypes.js +4 -1
- package/lib/form/fields/TextEditor/TextEditor.js +4 -2
- package/lib/form/fields/TextEditorField/TextEditorField.js +3 -1
- package/lib/form/fields/TextEditorField/props/defaultProps.js +4 -1
- package/lib/form/fields/TextEditorField/props/propTypes.js +4 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +5 -2
- package/lib/form/fields/TextareaField/TextareaField.js +92 -45
- package/lib/form/fields/TextareaField/props/defaultProps.js +4 -1
- package/lib/form/fields/TextareaField/props/propTypes.js +4 -1
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +3 -1
- package/lib/form/layout/Field/Field.js +3 -1
- package/lib/form/layout/Section/Section.js +3 -1
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +3 -1
- package/lib/layout/SubtabLayout/SubtabLayout.js +3 -1
- package/lib/list/AvatarFlip/AvatarFlip.js +3 -1
- package/lib/list/BluePrintStatus/BluePrintStatus.js +3 -1
- package/lib/list/Comment/Comment.js +3 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +3 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +4 -1
- package/lib/list/Dot/Dot.js +3 -1
- package/lib/list/DotNew/DotNew.js +3 -1
- package/lib/list/GridStencils/GridStencils.js +3 -1
- package/lib/list/Icons/AddNewIcon.js +3 -1
- package/lib/list/Icons/CompleteIcon.js +3 -1
- package/lib/list/Icons/DeleteIcon.js +5 -2
- package/lib/list/Icons/EditIcon.js +3 -1
- package/lib/list/Icons/FloatingIcons.js +3 -1
- package/lib/list/Icons/ReadUnreadIcon.js +3 -1
- package/lib/list/Icons/SmartIcon.js +3 -2
- package/lib/list/ListLayout/ListLayout.js +3 -1
- package/lib/list/ListLayout/props/propTypes.js +4 -1
- package/lib/list/ListStencils/ListStencils.js +3 -1
- package/lib/list/SecondaryText/AccountName.js +3 -1
- package/lib/list/SecondaryText/ContactName.js +3 -1
- package/lib/list/SecondaryText/DepartmentText.js +3 -1
- package/lib/list/SecondaryText/Email.js +3 -1
- package/lib/list/SecondaryText/HappinessRating.js +3 -1
- package/lib/list/SecondaryText/PhoneNumber.js +3 -1
- package/lib/list/SecondaryText/PriorityText.js +3 -1
- package/lib/list/SecondaryText/SecondaryText.js +3 -1
- package/lib/list/SecondaryText/StatusText.js +3 -1
- package/lib/list/SecondaryText/TicketId.js +3 -1
- package/lib/list/SecondaryText/Website.js +3 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +3 -1
- package/lib/list/SentimentStatus/SentimentStatus.js +3 -1
- package/lib/list/Subject/Subject.js +3 -1
- package/lib/list/TagNew/TagNew.js +3 -1
- package/lib/list/Thread/Thread.js +3 -1
- package/lib/list/UserTime/UserTime.js +3 -1
- package/lib/list/status/StatusDropdown/StatusDropdown.js +3 -1
- package/lib/list/status/StatusDropdown/props/propTypes.js +4 -1
- package/lib/list/status/StatusListItem/StatusListItem.js +3 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +3 -1
- package/lib/lookup/Lookup/Lookup.js +29 -13
- package/lib/lookup/Lookup/props/defaultProps.js +2 -1
- package/lib/lookup/Lookup/props/propTypes.js +2 -1
- package/lib/lookup/Section/Section.js +3 -1
- package/lib/lookup/header/Close/Close.js +3 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +5 -2
- package/lib/lookup/header/Search/Search.js +8 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +5 -2
- package/lib/lookup/header/Title/Title.js +3 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +3 -1
- package/lib/setup/header/Button/Button.js +3 -1
- package/lib/setup/header/Link/Link.js +3 -1
- package/lib/setup/header/Search/Search.js +3 -1
- package/lib/setup/header/Views/Views.js +3 -1
- package/lib/setup/helptips/Description/Description.js +3 -1
- package/lib/setup/helptips/Link/Link.js +3 -1
- package/lib/setup/helptips/ListGroup/ListGroup.js +3 -1
- package/lib/setup/helptips/Title/Title.js +3 -1
- package/lib/setup/table/Table/Table.js +3 -1
- package/lib/setup/table/TableBody/TableBody.js +3 -1
- package/lib/setup/table/TableData/TableData.js +3 -1
- package/lib/setup/table/TableHead/TableHead.js +3 -1
- package/lib/setup/table/TableRow/TableRow.js +3 -1
- package/lib/setup/table/Text/Text.js +3 -1
- package/lib/svg/PlusIcon.js +3 -1
- package/lib/svg/SnippetIcon.js +3 -1
- package/lib/svg/TemplateIcon.js +3 -1
- package/lib/version2/AlertClose/AlertClose.js +3 -1
- package/lib/version2/GlobalNotification/GlobalNotification.js +5 -2
- package/lib/version2/alertIcons/AlarmAlertIcon.js +3 -1
- package/lib/version2/alertIcons/AlertIcons.js +3 -1
- package/lib/version2/alertIcons/DangerAlertIcon.js +3 -1
- package/lib/version2/alertIcons/ErrorAlertIcon.js +3 -1
- package/lib/version2/alertIcons/InfoAlertIcon.js +3 -1
- package/lib/version2/alertIcons/NotificationAlertIcon.js +3 -1
- package/lib/version2/alertIcons/SuccessAlertIcon.js +3 -1
- package/lib/version2/alertIcons/WarningAlertIcon.js +3 -1
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -1
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -1
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -1
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -1
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -1
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +3 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +70 -83
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +3 -1
- package/package.json +10 -8
|
@@ -21,8 +21,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
21
21
|
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; }
|
|
22
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); }
|
|
23
23
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
24
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
25
25
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
26
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
27
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
28
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
29
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -58,93 +60,74 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
58
60
|
_classCallCheck(this, AlertLookup);
|
|
59
61
|
_this = _super.call(this, props);
|
|
60
62
|
_this.getAriaId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
|
|
61
|
-
|
|
62
|
-
_this.getButtonRef = _this.getButtonRef.bind(_assertThisInitialized(_this));
|
|
63
|
+
// this.documentKeydownHandler = this.documentKeydownHandler.bind(this);
|
|
63
64
|
return _this;
|
|
64
65
|
}
|
|
66
|
+
|
|
67
|
+
// componentDidMount() {
|
|
68
|
+
// let { isActive } = this.props;
|
|
69
|
+
// if (isActive) {
|
|
70
|
+
// document.addEventListener('keydown', this.documentKeydownHandler)
|
|
71
|
+
// }
|
|
72
|
+
// }
|
|
73
|
+
|
|
74
|
+
// componentDidUpdate(prevProps) {
|
|
75
|
+
// let { isActive } = this.props;
|
|
76
|
+
// if (prevProps.isActive !== isActive) {
|
|
77
|
+
// isActive
|
|
78
|
+
// ? document.addEventListener('keydown', this.documentKeydownHandler)
|
|
79
|
+
// : document.removeEventListener('keydown', this.documentKeydownHandler);
|
|
80
|
+
// }
|
|
81
|
+
// }
|
|
82
|
+
// componentWillUnmount() {
|
|
83
|
+
// document.removeEventListener('keydown', this.documentKeydownHandler);
|
|
84
|
+
// }
|
|
85
|
+
|
|
86
|
+
// documentKeydownHandler(e = {}) {
|
|
87
|
+
// let { onSubmitClick, onCancelClick, isActive, onEsc, onClose } = this.props;
|
|
88
|
+
// if (e.keyCode === 27 && isActive) {
|
|
89
|
+
// e && e.preventDefault && e.preventDefault();
|
|
90
|
+
// onEsc == 'close'
|
|
91
|
+
// ? onClose && onClose(e)
|
|
92
|
+
// : onCancelClick && onCancelClick(e);
|
|
93
|
+
// } else if (e.keyCode === 13 && isActive) {
|
|
94
|
+
// e && e.preventDefault && e.preventDefault();
|
|
95
|
+
// onSubmitClick && onSubmitClick(e);
|
|
96
|
+
// }
|
|
97
|
+
// }
|
|
65
98
|
_createClass(AlertLookup, [{
|
|
66
|
-
key: "
|
|
67
|
-
value: function
|
|
68
|
-
var isActive = this.props.isActive;
|
|
69
|
-
if (isActive) {
|
|
70
|
-
document.addEventListener('keydown', this.documentKeydownHandler);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: "componentDidUpdate",
|
|
75
|
-
value: function componentDidUpdate(prevProps) {
|
|
76
|
-
var isActive = this.props.isActive;
|
|
77
|
-
if (prevProps.isActive !== isActive) {
|
|
78
|
-
isActive ? document.addEventListener('keydown', this.documentKeydownHandler) : document.removeEventListener('keydown', this.documentKeydownHandler);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}, {
|
|
82
|
-
key: "componentWillUnmount",
|
|
83
|
-
value: function componentWillUnmount() {
|
|
84
|
-
document.removeEventListener('keydown', this.documentKeydownHandler);
|
|
85
|
-
}
|
|
86
|
-
}, {
|
|
87
|
-
key: "documentKeydownHandler",
|
|
88
|
-
value: function documentKeydownHandler() {
|
|
89
|
-
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
99
|
+
key: "render",
|
|
100
|
+
value: function render() {
|
|
90
101
|
var _this$props = this.props,
|
|
102
|
+
isActive = _this$props.isActive,
|
|
103
|
+
size = _this$props.size,
|
|
104
|
+
_this$props$type = _this$props.type,
|
|
105
|
+
type = _this$props$type === void 0 ? 'danger' : _this$props$type,
|
|
106
|
+
title = _this$props.title,
|
|
107
|
+
message = _this$props.message,
|
|
108
|
+
confirmationMessage = _this$props.confirmationMessage,
|
|
109
|
+
submitText = _this$props.submitText,
|
|
110
|
+
cancelText = _this$props.cancelText,
|
|
91
111
|
onSubmitClick = _this$props.onSubmitClick,
|
|
92
112
|
onCancelClick = _this$props.onCancelClick,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
onClose = _this$props.onClose
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
// el && el.focus();
|
|
112
|
-
setTimeout(function () {
|
|
113
|
-
_this2.okButton && _this2.okButton.focus && _this2.okButton.focus();
|
|
114
|
-
}, 100);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}, {
|
|
118
|
-
key: "render",
|
|
119
|
-
value: function render() {
|
|
120
|
-
var _this$props2 = this.props,
|
|
121
|
-
isActive = _this$props2.isActive,
|
|
122
|
-
size = _this$props2.size,
|
|
123
|
-
_this$props2$type = _this$props2.type,
|
|
124
|
-
type = _this$props2$type === void 0 ? 'danger' : _this$props2$type,
|
|
125
|
-
title = _this$props2.title,
|
|
126
|
-
message = _this$props2.message,
|
|
127
|
-
confirmationMessage = _this$props2.confirmationMessage,
|
|
128
|
-
submitText = _this$props2.submitText,
|
|
129
|
-
cancelText = _this$props2.cancelText,
|
|
130
|
-
onSubmitClick = _this$props2.onSubmitClick,
|
|
131
|
-
onCancelClick = _this$props2.onCancelClick,
|
|
132
|
-
children = _this$props2.children,
|
|
133
|
-
forwardRef = _this$props2.forwardRef,
|
|
134
|
-
onClose = _this$props2.onClose,
|
|
135
|
-
headerChildren = _this$props2.headerChildren,
|
|
136
|
-
wrapHeader = _this$props2.wrapHeader,
|
|
137
|
-
dataId = _this$props2.dataId,
|
|
138
|
-
onLookupClick = _this$props2.onLookupClick,
|
|
139
|
-
_this$props2$customCl = _this$props2.customClass,
|
|
140
|
-
customClass = _this$props2$customCl === void 0 ? {} : _this$props2$customCl,
|
|
141
|
-
needIcon = _this$props2.needIcon,
|
|
142
|
-
a11y = _this$props2.a11y,
|
|
143
|
-
customProps = _this$props2.customProps,
|
|
144
|
-
align = _this$props2.align,
|
|
145
|
-
childAnimationName = _this$props2.childAnimationName,
|
|
146
|
-
isHtmlContent = _this$props2.isHtmlContent,
|
|
147
|
-
scroll = _this$props2.scroll;
|
|
113
|
+
children = _this$props.children,
|
|
114
|
+
forwardRef = _this$props.forwardRef,
|
|
115
|
+
onClose = _this$props.onClose,
|
|
116
|
+
headerChildren = _this$props.headerChildren,
|
|
117
|
+
wrapHeader = _this$props.wrapHeader,
|
|
118
|
+
dataId = _this$props.dataId,
|
|
119
|
+
onLookupClick = _this$props.onLookupClick,
|
|
120
|
+
_this$props$customCla = _this$props.customClass,
|
|
121
|
+
customClass = _this$props$customCla === void 0 ? {} : _this$props$customCla,
|
|
122
|
+
needIcon = _this$props.needIcon,
|
|
123
|
+
a11y = _this$props.a11y,
|
|
124
|
+
customProps = _this$props.customProps,
|
|
125
|
+
align = _this$props.align,
|
|
126
|
+
childAnimationName = _this$props.childAnimationName,
|
|
127
|
+
isHtmlContent = _this$props.isHtmlContent,
|
|
128
|
+
scroll = _this$props.scroll,
|
|
129
|
+
isDefaultFocus = _this$props.isDefaultFocus,
|
|
130
|
+
onEsc = _this$props.onEsc;
|
|
148
131
|
var _customProps$LookupPr = customProps.LookupProps,
|
|
149
132
|
LookupProps = _customProps$LookupPr === void 0 ? {} : _customProps$LookupPr,
|
|
150
133
|
_customProps$AlertHea = customProps.AlertHeaderProps,
|
|
@@ -168,6 +151,8 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
168
151
|
ariaDescribedby: a11y && a11y.ariaDescribedby ? a11y.ariaDescribedby : ariaMessageId + ' ' + ariaConfirmMsgId
|
|
169
152
|
};
|
|
170
153
|
return /*#__PURE__*/_react["default"].createElement(_Lookup["default"], _extends({
|
|
154
|
+
onClose: onEsc == 'close' ? onClose : onCancelClick,
|
|
155
|
+
needFocusScope: true,
|
|
171
156
|
isActive: isActive,
|
|
172
157
|
size: size,
|
|
173
158
|
dataId: dataId,
|
|
@@ -216,7 +201,9 @@ var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
|
216
201
|
dataId: dataId === 'alertPopup' ? 'alertConfirmButton' : "".concat(dataId, "_confirmButton"),
|
|
217
202
|
onClick: onSubmitClick,
|
|
218
203
|
palette: buttonPalette,
|
|
219
|
-
|
|
204
|
+
customProps: {
|
|
205
|
+
'data-a11y-autofocus': isDefaultFocus
|
|
206
|
+
}
|
|
220
207
|
}, PrimaryButtonProps)), cancelText && /*#__PURE__*/_react["default"].createElement(_Button["default"], _extends({
|
|
221
208
|
dataId: dataId === 'alertPopup' ? 'alertCancelButton' : "".concat(dataId, "_cancelButton"),
|
|
222
209
|
text: cancelText,
|
|
@@ -16,8 +16,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
22
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
21
23
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
22
24
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-111",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build": "react-cli build:component:cmjs",
|
|
23
23
|
"buildlocal": " react-cli build:component:cmjs && npm run rtl",
|
|
24
24
|
"build:es": "react-cli build:library:es",
|
|
25
|
-
"build:dev": "npm run
|
|
25
|
+
"build:dev": "npm run build:variables && npm run build && npm run build:es --module:mode=dev -- -w",
|
|
26
26
|
"rtl:watch": "react-cli rtl ./src ./es -w",
|
|
27
27
|
"rtl": "react-cli rtl ./src ./lib && react-cli rtl ./src ./es",
|
|
28
28
|
"prepare": "npm run init && npm run build && npm run build:es && npm run rtl",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
34
34
|
"test": "react-cli test",
|
|
35
35
|
"sstest": "react-cli sstest",
|
|
36
|
-
"common_package_build": "cd ../common && npm run build && cd ../
|
|
37
|
-
"docs": "npm run
|
|
36
|
+
"common_package_build": "cd ../common && npm run build && cd ../dot",
|
|
37
|
+
"docs": "npm run dubCheck && react-cli docs",
|
|
38
38
|
"postpublish": "react-cli postpublish",
|
|
39
39
|
"download": "rm package-lock.json && rm -rf node_modules/ && npm install",
|
|
40
40
|
"expublish": "npm publish --tag experimental-version"
|
|
@@ -44,19 +44,21 @@
|
|
|
44
44
|
"velocity-react": "1.4.3",
|
|
45
45
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
46
46
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
47
|
-
"@zohodesk/components": "1.0.0-
|
|
47
|
+
"@zohodesk/components": "1.0.0-alpha-255",
|
|
48
48
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
49
49
|
"@zohodesk/svg": "1.0.0-beta.49",
|
|
50
50
|
"@zohodesk/virtualizer": "1.0.3",
|
|
51
|
-
"react-sortable-hoc": "^0.8.3"
|
|
51
|
+
"react-sortable-hoc": "^0.8.3",
|
|
52
|
+
"@zohodesk/a11y": "1.3.4"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
55
|
"velocity-react": "1.4.3",
|
|
55
56
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
56
57
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
57
|
-
"@zohodesk/components": "1.0.0-
|
|
58
|
+
"@zohodesk/components": "1.0.0-alpha-255",
|
|
58
59
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
59
|
-
"@zohodesk/svg": "1.0.0-beta.48"
|
|
60
|
+
"@zohodesk/svg": "1.0.0-beta.48",
|
|
61
|
+
"@zohodesk/a11y": "1.3.4"
|
|
60
62
|
},
|
|
61
63
|
"react-cli": {
|
|
62
64
|
"preprocess": {
|