@zohodesk/dot 1.0.0-temp-145 → 1.0.0-temp-146
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 +16 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +304 -303
- package/assets/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/green/greenDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/orange/orangeDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/red/redDarkDotTheme.module.css +9 -9
- package/assets/Appearance/dark/themes/yellow/yellowDarkDotTheme.module.css +9 -9
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +299 -298
- package/assets/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/green/greenDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/orange/orangeDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/red/redDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/default/themes/yellow/yellowDefaultDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +307 -306
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/green/greenPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/red/redPureDarkDotTheme.module.css +9 -9
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkDotTheme.module.css +9 -9
- package/css_error.log +1 -0
- package/es/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/es/Drawer/Drawer.module.css +42 -3
- package/es/FreezeLayer/FreezeLayer.js +2 -7
- package/es/FreezeLayer/props/propTypes.js +2 -1
- package/es/FreezeLayer/useFreezeLayer.js +0 -2
- package/es/Message/Message.module.css +1 -1
- package/es/PlusIcon/PlusIcon.module.css +5 -2
- package/es/Provider/Config.js +1 -2
- package/es/TagWithIcon/TagWithIcon.js +41 -0
- package/es/TagWithIcon/TagWithIcon.module.css +56 -0
- package/es/TagWithIcon/props/defaultProps.js +8 -0
- package/es/TagWithIcon/props/propTypes.js +12 -0
- package/es/ToastMessage/ToastMessage.module.css +7 -6
- package/es/common/dot_boxShadow.module.css +38 -0
- package/es/common/dot_docStyle.module.css +35 -0
- package/es/form/fields/TextEditor/TextEditor.js +16 -10
- package/es/form/fields/TextEditor/TextEditor.module.css +161 -63
- package/es/layout/SubtabLayout/SubtabLayout.module.css +21 -2
- package/es/list/DotNew/DotNew.module.css +8 -5
- package/es/list/TagNew/TagNew.module.css +4 -2
- package/es/lookup/Section/LookupSection.module.css +2 -2
- package/es/lookup/Section/Section.js +0 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/es/version2/lookup/AlertHeader/AlertHeader.js +1 -2
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/lib/AlphabeticList/AlphabeticList.js +1 -1
- package/lib/AttachmentViewer/AttachmentImage.js +1 -1
- package/lib/AttachmentViewer/AttachmentViewer.module.css +4 -5
- package/lib/Drawer/Drawer.module.css +42 -3
- package/lib/ExternalLink/ExternalLink.js +1 -1
- package/lib/FreezeLayer/FreezeLayer.js +2 -10
- package/lib/FreezeLayer/props/propTypes.js +4 -2
- package/lib/FreezeLayer/useFreezeLayer.js +0 -2
- package/lib/Message/Message.module.css +1 -1
- package/lib/PlusIcon/PlusIcon.module.css +5 -2
- package/lib/Provider/Config.js +1 -2
- package/lib/TagWithIcon/TagWithIcon.js +71 -0
- package/lib/TagWithIcon/TagWithIcon.module.css +56 -0
- package/lib/TagWithIcon/props/defaultProps.js +15 -0
- package/lib/TagWithIcon/props/propTypes.js +20 -0
- package/lib/ToastMessage/ToastMessage.js +2 -1
- package/lib/ToastMessage/ToastMessage.module.css +7 -6
- package/lib/alert/AlertLookup/AlertLookup.js +1 -1
- package/lib/avatar/AvatarUser/AvatarUser.js +1 -1
- package/lib/common/dot_boxShadow.module.css +38 -0
- package/lib/common/dot_docStyle.module.css +35 -0
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +1 -1
- package/lib/form/fields/DateField/DateField.js +1 -1
- package/lib/form/fields/FieldContainer/FieldContainer.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/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +18 -11
- package/lib/form/fields/TextEditor/TextEditor.module.css +161 -63
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -1
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +21 -2
- package/lib/list/DotNew/DotNew.module.css +8 -5
- package/lib/list/ListStencils/ListStencils.js +1 -1
- package/lib/list/SecondaryText/AccountName.js +1 -1
- package/lib/list/SecondaryText/Email.js +1 -1
- package/lib/list/SecondaryText/HappinessRating.js +1 -1
- package/lib/list/SecondaryText/PhoneNumber.js +1 -1
- package/lib/list/SecondaryText/Website.js +1 -1
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -1
- package/lib/list/TagNew/TagNew.module.css +4 -2
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -1
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -1
- package/lib/lookup/Lookup/Lookup.js +1 -1
- package/lib/lookup/Section/LookupSection.module.css +2 -2
- package/lib/lookup/Section/Section.js +0 -1
- package/lib/lookup/header/Close/Close.js +1 -1
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +1 -1
- package/lib/lookup/header/Search/Search.js +1 -1
- package/lib/lookup/header/TicketHeader/TicketHeader.js +1 -1
- package/lib/lookup/header/Title/Title.js +1 -1
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/lib/version2/AlertClose/AlertClose.js +1 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +4 -1
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -2
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +0 -1
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +23 -2
- package/package.json +10 -18
- package/es/Hooks/Dragger/css/Dragger.module.css +0 -3
- package/es/Hooks/Dragger/useDragger.js +0 -74
- package/es/Hooks/Dragger/utils/DraggerUtil.js +0 -33
- package/lib/Hooks/Dragger/css/Dragger.module.css +0 -3
- package/lib/Hooks/Dragger/useDragger.js +0 -80
- package/lib/Hooks/Dragger/utils/DraggerUtil.js +0 -65
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
position: relative;
|
|
18
18
|
display: inline-block;
|
|
19
19
|
pointer-events: initial;
|
|
20
|
-
box-shadow:
|
|
20
|
+
box-shadow: var(--zd_bs_message_container);
|
|
21
21
|
border-radius: 0 0 5px 5px;
|
|
22
22
|
background: var(--zdt_message_default_bg);
|
|
23
23
|
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
composes: dinblk from '~@zohodesk/components/lib/common/common.module.css';
|
|
3
3
|
border-radius: 50%;
|
|
4
|
-
box-shadow:
|
|
4
|
+
box-shadow: var(--zd_bs_plusicon_container);
|
|
5
5
|
cursor: pointer;
|
|
6
6
|
background-color: var(--zdt_plusicon_bg);
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
.plusIcon {
|
|
9
10
|
border: 1px solid var(--zdt_plusicon_border);
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
.icon {
|
|
12
14
|
color: var(--zdt_plusicon_text);
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.plusIcon:hover {
|
|
15
18
|
border-color: var(--zdt_plusicon_hover_border);
|
|
16
|
-
}
|
|
19
|
+
}
|
package/lib/Provider/Config.js
CHANGED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _defaultProps = require("./props/defaultProps");
|
|
10
|
+
var _propTypes = require("./props/propTypes");
|
|
11
|
+
var _Layout = require("@zohodesk/components/es/Layout");
|
|
12
|
+
var _Icon = _interopRequireDefault(require("@zohodesk/icons/es/Icon"));
|
|
13
|
+
var _TagWithIconModule = _interopRequireDefault(require("./TagWithIcon.module.css"));
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
16
|
+
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); } }
|
|
17
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
18
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
19
|
+
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); }
|
|
20
|
+
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); }
|
|
21
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
22
|
+
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); }; }
|
|
23
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
24
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
25
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
27
|
+
var TagWithIcon = /*#__PURE__*/function (_React$Component) {
|
|
28
|
+
_inherits(TagWithIcon, _React$Component);
|
|
29
|
+
var _super = _createSuper(TagWithIcon);
|
|
30
|
+
function TagWithIcon() {
|
|
31
|
+
_classCallCheck(this, TagWithIcon);
|
|
32
|
+
return _super.apply(this, arguments);
|
|
33
|
+
}
|
|
34
|
+
_createClass(TagWithIcon, [{
|
|
35
|
+
key: "render",
|
|
36
|
+
value: function render() {
|
|
37
|
+
var _this$props = this.props,
|
|
38
|
+
text = _this$props.text,
|
|
39
|
+
iconName = _this$props.iconName,
|
|
40
|
+
iconSize = _this$props.iconSize,
|
|
41
|
+
palette = _this$props.palette,
|
|
42
|
+
iconClass = _this$props.iconClass,
|
|
43
|
+
isBold = _this$props.isBold,
|
|
44
|
+
size = _this$props.size,
|
|
45
|
+
dataId = _this$props.dataId,
|
|
46
|
+
className = _this$props.className,
|
|
47
|
+
title = _this$props.title;
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
49
|
+
isInline: true,
|
|
50
|
+
alignBox: "row",
|
|
51
|
+
align: "vertical",
|
|
52
|
+
isCover: false,
|
|
53
|
+
className: "".concat(_TagWithIconModule["default"].wrapper, " ").concat(_TagWithIconModule["default"][palette], " ").concat(_TagWithIconModule["default"][size], " ").concat(className),
|
|
54
|
+
dataId: dataId,
|
|
55
|
+
title: title
|
|
56
|
+
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
57
|
+
name: iconName,
|
|
58
|
+
size: iconSize,
|
|
59
|
+
iconClass: "".concat(text ? _TagWithIconModule["default"].iconSpace : '', " ").concat(iconClass, " ")
|
|
60
|
+
}) : null, text ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
61
|
+
shrink: true,
|
|
62
|
+
"data-title": text,
|
|
63
|
+
className: "".concat(_TagWithIconModule["default"].text, " ").concat(_TagWithIconModule["default"][size], "_text ").concat(isBold ? _TagWithIconModule["default"].bold : '')
|
|
64
|
+
}, text) : null);
|
|
65
|
+
}
|
|
66
|
+
}]);
|
|
67
|
+
return TagWithIcon;
|
|
68
|
+
}(_react["default"].Component);
|
|
69
|
+
exports["default"] = TagWithIcon;
|
|
70
|
+
TagWithIcon.propTypes = _propTypes.propTypes;
|
|
71
|
+
TagWithIcon.defaultProps = _defaultProps.defaultProps;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.varClass {
|
|
2
|
+
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
3
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
4
|
+
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
5
|
+
--tag_small_fontSize: var(--zd_font_size10);
|
|
6
|
+
--tag_large_fontSize: var(--zd_font_size12);
|
|
7
|
+
}
|
|
8
|
+
.wrapper {
|
|
9
|
+
composes: varClass;
|
|
10
|
+
color: var(--tag_text_color);
|
|
11
|
+
background-color: var(--tag_bg_color);
|
|
12
|
+
}
|
|
13
|
+
.small,
|
|
14
|
+
.large {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
height: var(--zd_size18);
|
|
17
|
+
}
|
|
18
|
+
.small, .large {
|
|
19
|
+
border: 1px solid;
|
|
20
|
+
border-color: var(--tag_border_color);
|
|
21
|
+
border-radius: var(--zd_size4);
|
|
22
|
+
padding: 0 var(--zd_size6);
|
|
23
|
+
}
|
|
24
|
+
.bold {
|
|
25
|
+
composes: semibold from '~@zohodesk/components/lib/common/common.module.css';
|
|
26
|
+
}
|
|
27
|
+
.small_text {
|
|
28
|
+
font-size: var(--tag_small_fontSize);
|
|
29
|
+
}
|
|
30
|
+
.large_text {
|
|
31
|
+
font-size: var(--tag_large_fontSize);
|
|
32
|
+
}
|
|
33
|
+
.text {
|
|
34
|
+
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
35
|
+
}
|
|
36
|
+
[dir=ltr] .iconSpace{
|
|
37
|
+
margin-right: var(--zd_size4);
|
|
38
|
+
}
|
|
39
|
+
[dir=rtl] .iconSpace{
|
|
40
|
+
margin-left: var(--zd_size4);
|
|
41
|
+
}
|
|
42
|
+
.yellow {
|
|
43
|
+
--tag_bg_color: var(--zdt_tagWithIconYellow_bg);
|
|
44
|
+
--tag_text_color: var(--zdt_tagWithIconYellow_text);
|
|
45
|
+
--tag_border_color: var(--zdt_tagWithIconYellow_border);
|
|
46
|
+
}
|
|
47
|
+
.grey {
|
|
48
|
+
--tag_bg_color: var(--zdt_tagWithIconGrey_bg);
|
|
49
|
+
--tag_text_color: var(--zdt_tagWithIconGrey_text);
|
|
50
|
+
--tag_border_color: var(--zdt_tagWithIconGrey_border);
|
|
51
|
+
}
|
|
52
|
+
.blue {
|
|
53
|
+
--tag_bg_color: var(--zdt_tagWithIconBlue_bg);
|
|
54
|
+
--tag_text_color: var(--zdt_tagWithIconBlue_text);
|
|
55
|
+
--tag_border_color: var(--zdt_tagWithIconBlue_border);
|
|
56
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = void 0;
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
iconSize: '9',
|
|
9
|
+
size: 'large',
|
|
10
|
+
iconClass: '',
|
|
11
|
+
isBold: true,
|
|
12
|
+
palette: 'grey',
|
|
13
|
+
className: ''
|
|
14
|
+
};
|
|
15
|
+
exports.defaultProps = defaultProps;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.propTypes = void 0;
|
|
7
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
var propTypes = {
|
|
10
|
+
iconClass: _propTypes["default"].string,
|
|
11
|
+
iconName: _propTypes["default"].string,
|
|
12
|
+
iconSize: _propTypes["default"].string,
|
|
13
|
+
title: _propTypes["default"].string,
|
|
14
|
+
isBold: _propTypes["default"].bool,
|
|
15
|
+
palette: _propTypes["default"].oneOf(['yellow', 'blue', 'grey']),
|
|
16
|
+
size: _propTypes["default"].oneOf('small', 'large'),
|
|
17
|
+
className: _propTypes["default"].string,
|
|
18
|
+
text: _propTypes["default"].string
|
|
19
|
+
};
|
|
20
|
+
exports.propTypes = propTypes;
|
|
@@ -25,7 +25,8 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
25
25
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
26
26
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
27
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
28
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } //components
|
|
29
|
+
//style
|
|
29
30
|
function ToastMessageUI(props) {
|
|
30
31
|
var _useState = (0, _react.useState)(props.messageState),
|
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
max-height: 100%;
|
|
5
5
|
border-radius: 5px;
|
|
6
|
-
box-shadow:
|
|
6
|
+
box-shadow: var(--zd_bs_toastmessage_container);
|
|
7
7
|
background-color: var(--zdt_toastmessage_default_bg);
|
|
8
8
|
margin-bottom: var(--zd_size7);
|
|
9
9
|
}[dir=ltr] .container {
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
.alertleft {
|
|
150
150
|
padding: var(--zd_size15) var(--zd_size25);
|
|
151
151
|
}
|
|
152
|
+
|
|
152
153
|
.alertico {
|
|
153
154
|
min-width: var(--zd_size50);
|
|
154
155
|
}
|
|
@@ -232,17 +233,17 @@
|
|
|
232
233
|
background: var(--zdt_toastmessage_dropdown_bg);
|
|
233
234
|
}
|
|
234
235
|
|
|
235
|
-
.dropdown
|
|
236
|
+
.dropdown>i {
|
|
236
237
|
position: absolute;
|
|
237
238
|
top: 50%;
|
|
238
239
|
}
|
|
239
240
|
|
|
240
|
-
[dir=ltr] .dropdown
|
|
241
|
+
[dir=ltr] .dropdown>i {
|
|
241
242
|
left: 50%;
|
|
242
243
|
transform: translate(-50%, -50%);
|
|
243
244
|
}
|
|
244
245
|
|
|
245
|
-
[dir=rtl] .dropdown
|
|
246
|
+
[dir=rtl] .dropdown>i {
|
|
246
247
|
right: 50%;
|
|
247
248
|
transform: translate(50%, -50%);
|
|
248
249
|
}
|
|
@@ -260,7 +261,7 @@
|
|
|
260
261
|
transition: padding var(--zd_transition3), height var(--zd_transition3);
|
|
261
262
|
border-top: 1px solid var(--zdt_toastmessage_message_border);
|
|
262
263
|
cursor: pointer;
|
|
263
|
-
margin:0;
|
|
264
|
+
margin: 0;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
[dir=ltr] .message {
|
|
@@ -325,4 +326,4 @@
|
|
|
325
326
|
|
|
326
327
|
.primaryPlain {
|
|
327
328
|
color: var(--zdt_toastmessage_primary_text);
|
|
328
|
-
}
|
|
329
|
+
}
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var AlertLookup = /*#__PURE__*/function (_Component) {
|
|
34
34
|
_inherits(AlertLookup, _Component);
|
|
35
35
|
var _super = _createSuper(AlertLookup);
|
|
@@ -25,7 +25,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
25
25
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
26
26
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
27
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/
|
|
29
29
|
/**** Methods ****/
|
|
30
30
|
var AvatarUser = /*#__PURE__*/function (_React$Component) {
|
|
31
31
|
_inherits(AvatarUser, _React$Component);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* attachment viewer */
|
|
3
|
+
--zd_bs_attachmentviewer_selected: var(--zd_bs_contrast_outline, 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset);
|
|
4
|
+
|
|
5
|
+
/* texteditor */
|
|
6
|
+
--zd_bs_texteditor_menu: var(--zd_bs_contrast_outline, -1px 1px 2px 0 var(--zdt_texteditor_menu_after_box_shadow));
|
|
7
|
+
--zd_bs_texteditor_ul: var(--zd_bs_contrast_outline, 0 1px 32px 0 var(--zdt_texteditor_dropdown_box_shadow));
|
|
8
|
+
|
|
9
|
+
/* subtab layout */
|
|
10
|
+
--zd_bs_subtablayout_shadow: var(--zd_bs_contrast_outline, 0 0 6px var(--zdt_subtablayout_shadowstyle_box_shadow));
|
|
11
|
+
|
|
12
|
+
/* drawer */
|
|
13
|
+
--zd_bs_drawer_shadow: var(--zd_bs_contrast_outline, 0 6px 12px var(--zdt_drawer_default_box_shadow));
|
|
14
|
+
|
|
15
|
+
/* dot new */
|
|
16
|
+
--zd_bs_dotnew_shadow: var(--zd_bs_contrast_outline, 0 0 15px 1px var(--zdt_dotnew_default_box_shadow));
|
|
17
|
+
|
|
18
|
+
/* tag new */
|
|
19
|
+
--zd_bs_tagnew_shadow: var(--zd_bs_contrast_outline, 0 8px 30px 0 var(--zdt_tagnew_default_box_shadow));
|
|
20
|
+
|
|
21
|
+
/* lookup section */
|
|
22
|
+
--zd_bs_lookupsection_shadow: var(--zd_bs_contrast_outline, 0px 4px 20px var(--zdt_lookupsection_box_shadow));
|
|
23
|
+
|
|
24
|
+
/* message */
|
|
25
|
+
--zd_bs_message_container: var(--zd_bs_contrast_outline, 0 0 19px 1px var(--zdt_message_default_box_shadow));
|
|
26
|
+
|
|
27
|
+
/* plus icon */
|
|
28
|
+
--zd_bs_plusicon_container: var(--zd_bs_contrast_outline, 0 2px 3px 0 var(--zdt_plusicon_box_shadow));
|
|
29
|
+
|
|
30
|
+
/* toast message */
|
|
31
|
+
--zd_bs_toastmessage_container: var(--zd_bs_contrast_outline, 0 5px 40px 7px var(--zdt_toastmessage_default_box_shadow));
|
|
32
|
+
|
|
33
|
+
/* global notification */
|
|
34
|
+
--zd_bs_globalnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--globalnotification_box_shadow));
|
|
35
|
+
|
|
36
|
+
/* desktop notification */
|
|
37
|
+
--zd_bs_desktopnotification_container: var(--zd_bs_contrast_outline, 0 4px 20px var(--zdt_desktopnotification_box_shadow));
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[data-mode='default']:global(.zd-contrast) {
|
|
2
|
+
color: #000;
|
|
3
|
+
background: #fff;
|
|
4
|
+
border-color: #000;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
[data-mode='dark']:global(.zd-contrast) {
|
|
8
|
+
color: #fff;
|
|
9
|
+
background-color: #101319;
|
|
10
|
+
border-color: #fff;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[data-mode='pureDark']:global(.zd-contrast) {
|
|
14
|
+
color: #fff;
|
|
15
|
+
background-color: #080808;
|
|
16
|
+
border-color: #fff;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:global(.zd-contrast) {
|
|
20
|
+
--zd_bs_contrast_outline: 0 0 2px var(--zdt_contrast_shadow);
|
|
21
|
+
--zd_bs_contrast_none: 0 0 0 transparent;
|
|
22
|
+
--zd_lightmode_grey_bg: -0%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:global(.zd-contrast-level1) {
|
|
26
|
+
--zd_contrastLevel: 10;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:global(.zd-contrast-level2) {
|
|
30
|
+
--zd_contrastLevel: 20;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:global(.zd-contrast-level3) {
|
|
34
|
+
--zd_contrastLevel: 40;
|
|
35
|
+
}
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var CheckBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(CheckBoxField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(CheckBoxField);
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(CurrencyField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(CurrencyField);
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(DateField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(DateField);
|
|
@@ -25,7 +25,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
25
25
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
26
26
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
27
27
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
28
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
28
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** Icons ****/ /**** CSS ****/
|
|
29
29
|
var FieldContainer = /*#__PURE__*/function (_PureComponent) {
|
|
30
30
|
_inherits(FieldContainer, _PureComponent);
|
|
31
31
|
var _super = _createSuper(FieldContainer);
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /** CSS */
|
|
33
33
|
var MultiSelectField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(MultiSelectField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(MultiSelectField);
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var PhoneField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(PhoneField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(PhoneField);
|
|
@@ -27,7 +27,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
27
27
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
29
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /** Css */
|
|
31
31
|
var RadioField = /*#__PURE__*/function (_PureComponent) {
|
|
32
32
|
_inherits(RadioField, _PureComponent);
|
|
33
33
|
var _super = _createSuper(RadioField);
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** props ****/ /** CSS */
|
|
33
33
|
var SelectField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(SelectField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(SelectField);
|
|
@@ -25,7 +25,7 @@ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructur
|
|
|
25
25
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
26
26
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
27
27
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
28
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } /**** css ****/
|
|
29
29
|
var TagsMultiSelectField = function TagsMultiSelectField(props) {
|
|
30
30
|
var _useState = (0, _react.useState)(0),
|
|
31
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -29,7 +29,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
29
29
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
30
30
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /**** Libraries ****/ /**** Components ****/ /**** CSS ****/
|
|
33
33
|
var TextBoxField = /*#__PURE__*/function (_PureComponent) {
|
|
34
34
|
_inherits(TextBoxField, _PureComponent);
|
|
35
35
|
var _super = _createSuper(TextBoxField);
|
|
@@ -27,7 +27,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
27
27
|
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
28
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
29
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
30
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
30
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /***** Libraries *****/ /***** Methods *****/ //import './ZohoDeskEditor_Init';
|
|
31
|
+
/***** components *****/
|
|
31
32
|
/* eslint-disable camelcase */
|
|
32
33
|
/* eslint-disable no-undef */
|
|
33
34
|
/* eslint-disable react/no-deprecated */
|
|
@@ -111,6 +112,11 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
111
112
|
}
|
|
112
113
|
defaultObj = Object.assign(defaultObj, editorOptions);
|
|
113
114
|
ZohoDeskEditor_Init.init(editorMode, fontFamily, initCallback, fontSize);
|
|
115
|
+
ZohoDeskEditor_Init.quoteData = {
|
|
116
|
+
STYLE: {
|
|
117
|
+
'margin': '0 0 0 4px'
|
|
118
|
+
}
|
|
119
|
+
};
|
|
114
120
|
ZohoDeskEditor.create && ZohoDeskEditor.create(defaultObj);
|
|
115
121
|
}
|
|
116
122
|
}
|
|
@@ -215,16 +221,17 @@ var TextEditor = /*#__PURE__*/function (_Component) {
|
|
|
215
221
|
if (!global.editor[id]) {
|
|
216
222
|
global.editor[id] = editorObj;
|
|
217
223
|
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
style.type = 'text/css';
|
|
222
|
-
if (style.styleSheet) {
|
|
223
|
-
|
|
224
|
-
} else {
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
head.appendChild(style);
|
|
224
|
+
// const css = 'blockquote {margin:0 0 0 4px; }',
|
|
225
|
+
// head = editorObj.doc.head || editorObj.doc.getElementsByTagName('head')[0],
|
|
226
|
+
// style = document.createElement('style');
|
|
227
|
+
// style.type = 'text/css';
|
|
228
|
+
// if (style.styleSheet) {
|
|
229
|
+
// style.styleSheet.cssText = css;
|
|
230
|
+
// } else {
|
|
231
|
+
// style.appendChild(editorObj.doc.createTextNode(css));
|
|
232
|
+
// }
|
|
233
|
+
// head.appendChild(style);
|
|
234
|
+
|
|
228
235
|
editorCallback && editorCallback(editorObj);
|
|
229
236
|
var iframe = (0, _selectn["default"])('iframe.contentDocument.body', editorObj) || null;
|
|
230
237
|
var iframeHead = (0, _selectn["default"])('iframe.contentDocument.head', editorObj) || null;
|