@zohodesk/dot 1.0.0-temp-89 → 1.0.0-temp.888
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 +13 -0
- package/es/ActionButton/ActionButton.js +7 -4
- package/es/ActionButton/ActionButton.module.css +9 -25
- package/es/AlphabeticList/AlphabeticList.module.css +4 -7
- package/es/Attachment/Attachment.module.css +9 -20
- package/es/AttachmentViewer/AttachmentViewer.module.css +27 -89
- package/es/ChannelIcon/ChannelIcon.module.css +21 -30
- package/es/Drawer/Drawer.module.css +11 -59
- package/es/FlipCard/FlipCard.module.css +5 -14
- package/es/FormAction/FormAction.module.css +9 -34
- package/es/FreezeLayer/FreezeLayer.module.css +2 -6
- package/es/IconButton/IconButton.module.css +1 -1
- package/es/ImportantNotes/ImportantNotes.module.css +2 -7
- package/es/Loader/Loader.module.css +4 -25
- package/es/Message/Message.module.css +9 -42
- package/es/MessageBanner/MessageBanner.module.css +4 -12
- package/es/NewStar/NewStar.module.css +5 -42
- package/es/Provider.js +5 -105
- package/es/ToastMessage/ToastMessage.module.css +25 -96
- package/es/Upload/Upload.module.css +8 -27
- package/es/alert/AlertHeader/AlertHeader.module.css +3 -21
- package/es/alert/AlertLookup/AlertLookup.module.css +2 -6
- package/es/avatar/AvatarClose/AvatarClose.module.css +3 -9
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +4 -18
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +4 -3
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +9 -59
- package/es/avatar/AvatarThread/AvatarThread.module.css +5 -55
- package/es/avatar/AvatarUser/AvatarUser.module.css +10 -81
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +3 -10
- package/es/common/dot_animation.module.css +3 -16
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +3 -11
- package/es/docs/formDocs.js +5 -1
- package/es/docs/generalDocs.js +5 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +9 -21
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +4 -12
- package/es/emptystate/EditionPage/EditionPage.css +3 -9
- package/es/errorstate/EmptyStates.module.css +10 -13
- package/es/errorstate/Inconvenience/Inconvenience.module.css +0 -3
- 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 +3 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +16 -28
- package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +8 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +16 -29
- package/es/form/fields/CurrencyField/docs/CurrencyField__default.docs.js +36 -0
- package/es/form/fields/DateField/DateField.js +16 -28
- package/es/form/fields/DateField/docs/DateField__default.docs.js +8 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +82 -0
- package/es/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +49 -0
- package/es/form/fields/Fields.module.css +14 -49
- package/es/form/fields/MultiSelectField/MultiSelectField.js +16 -28
- package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +8 -1
- package/es/form/fields/SelectField/SelectField.js +16 -28
- package/es/form/fields/SelectField/docs/SelectField__default.docs.js +8 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +7 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +7 -19
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +32 -28
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
- package/es/form/fields/TextBoxField/TextBoxField.js +18 -43
- package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +28 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +72 -149
- package/es/form/fields/TextEditorField/TextEditorField.js +27 -44
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +9 -2
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -13
- package/es/form/fields/TextareaField/TextareaField.js +16 -28
- package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +8 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +4 -9
- package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
- package/es/form/fields/props/FieldCommonPropTypes.js +22 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +16 -52
- package/es/layout/SubtabLayout/SubtabLayout.module.css +29 -55
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +1 -4
- package/es/list/Comment/Comment.module.css +0 -5
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +21 -82
- package/es/list/Icons/Icons.module.css +1 -1
- package/es/list/ListLayout/ListLayout.module.css +14 -22
- package/es/list/ListStencils/ListStencils.module.css +6 -11
- package/es/list/SecondaryText/AccountName.js +34 -38
- package/es/list/SecondaryText/ContactName.js +18 -13
- package/es/list/SecondaryText/SecondaryText.module.css +14 -39
- package/es/list/SecondaryText/docs/SecondaryText__default.docs.js +114 -0
- package/es/list/SecondryPanel/docs/SecondryPanelDocs.module.css +2 -2
- package/es/list/SentimentStatus/SentimentStatus.module.css +1 -4
- package/es/list/TagNew/TagNew.module.css +7 -14
- package/es/list/Thread/Thread.module.css +1 -13
- package/es/list/UserTime/UserTime.module.css +0 -6
- package/es/list/listCommon.module.css +1 -9
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +6 -19
- package/es/list/status/StatusListItem/StatusListItem.module.css +15 -38
- 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 +12 -21
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +2 -5
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +3 -8
- package/es/lookup/header/lookupHeaderCommon.module.css +5 -15
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +3 -12
- package/es/setup/header/Button/HeaderButton.module.css +1 -3
- package/es/setup/header/Link/HeaderLink.module.css +1 -7
- package/es/setup/header/Search/Search.module.css +8 -19
- package/es/setup/header/Views/Views.module.css +5 -15
- package/es/setup/helptips/Link/HelpTipsLink.module.css +0 -1
- package/es/setup/helptips/ListGroup/ListGroup.module.css +1 -6
- package/es/setup/table/TableData/SetupTableData.module.css +3 -11
- package/es/setup/table/TableHead/SetupTableHead.module.css +0 -4
- package/es/setup/table/TableRow/SetupTableRow.module.css +2 -6
- package/es/utils/KeyboardApi.js +294 -0
- package/es/version2/AlertClose/AlertClose.module.css +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.module.css +9 -44
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +2 -25
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +3 -7
- package/es/version2/lookup/alertLookupCommonNew.module.css +1 -8
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +10 -26
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +10 -47
- package/lib/ActionButton/ActionButton.js +3 -7
- package/lib/ActionButton/ActionButton.module.css +1 -0
- package/lib/FreezeLayer/FreezeLayer.js +4 -29
- package/lib/ImportantNotes/ImportantNotes.js +3 -5
- package/lib/Provider.js +38 -115
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +38 -60
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +0 -1
- package/lib/docs/generalDocs.js +0 -16
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +161 -182
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +0 -3
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +1 -1
- package/lib/form/fields/CurrencyField/CurrencyField.js +8 -9
- 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/TagsMultiSelect/TagsMultiSelect.js +73 -110
- package/lib/form/fields/TextBoxField/TextBoxField.js +1 -1
- package/lib/form/fields/TextEditor/TextEditor.js +1 -4
- package/lib/form/fields/TextEditor/TextEditor.module.css +2 -13
- package/lib/form/fields/TextareaField/TextareaField.js +1 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/lib/list/GridStencils/GridStencils.module.css +1 -3
- package/lib/list/SecondaryText/AccountName.js +34 -38
- package/lib/list/SecondaryText/ContactName.js +18 -13
- package/lib/list/SecondaryText/SecondaryText.module.css +14 -29
- package/lib/list/status/StatusDropdown/StatusDropdown.js +118 -146
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +0 -3
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +3 -13
- package/lib/lookup/header/TicketHeader/TicketHeader.js +4 -7
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +52 -75
- package/lib/lookup/header/lookupHeaderCommon.module.css +2 -8
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/utils/General.js +24 -0
- package/lib/{deprecated/utils → utils}/KeyboardApi.js +0 -0
- package/package.json +5 -5
- package/lib/AttachmentViewer/Attachment.js +0 -28
- package/lib/AttachmentViewer/AttachmentImage.js +0 -133
- package/lib/AttachmentViewer/AttachmentViewer.js +0 -646
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -354
- package/lib/AttachmentViewer/docs/AttachmentViewer__default.docs.js +0 -123
- package/lib/AttachmentViewer/utils.js +0 -134
- package/lib/Provider/Config.js +0 -21
- package/lib/common/dot_animation.module.css +0 -27
- package/lib/common/dot_common.module.css +0 -4
- package/lib/deprecated/utils/General.js +0 -29
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
.container {
|
|
2
2
|
padding-left: var(--zd_size20);
|
|
3
|
-
}[dir=rtl] .container {
|
|
4
|
-
padding-right: var(--zd_size20);
|
|
5
3
|
}
|
|
6
4
|
.size70 {
|
|
7
5
|
flex-basis: var(--zd_size70);
|
|
@@ -30,15 +28,9 @@
|
|
|
30
28
|
.center {
|
|
31
29
|
text-align: center;
|
|
32
30
|
}
|
|
33
|
-
|
|
31
|
+
.left {
|
|
34
32
|
text-align: left;
|
|
35
33
|
}
|
|
36
|
-
|
|
34
|
+
.right {
|
|
37
35
|
text-align: right;
|
|
38
36
|
}
|
|
39
|
-
[dir=ltr] .right {
|
|
40
|
-
text-align: right;
|
|
41
|
-
}
|
|
42
|
-
[dir=rtl] .right {
|
|
43
|
-
text-align: left;
|
|
44
|
-
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
border-bottom: 1px solid var(--zdt_setuptablehead_border);
|
|
3
|
-
}[dir=ltr] .container {
|
|
4
3
|
padding-right: var(--zd_size40);
|
|
5
4
|
padding-left: var(--zd_size40);
|
|
6
|
-
}[dir=rtl] .container {
|
|
7
|
-
padding-left: var(--zd_size40);
|
|
8
|
-
padding-right: var(--zd_size40);
|
|
9
5
|
}
|
|
10
6
|
.subContainer {
|
|
11
7
|
height: var(--zd_size40);
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
.container {
|
|
2
2
|
position: relative;
|
|
3
|
-
height: var(--zd_size52);
|
|
4
|
-
border-bottom: 1px solid var(--zdt_setuptablerow_border);
|
|
5
|
-
}[dir=ltr] .container {
|
|
6
3
|
margin-right: var(--zd_size40);
|
|
7
4
|
margin-left: var(--zd_size40);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
margin-right: var(--zd_size40);
|
|
5
|
+
border-bottom: 1px solid var(--zdt_setuptablerow_border);
|
|
6
|
+
height: var(--zd_size52);
|
|
11
7
|
}
|
|
12
8
|
.container:hover {
|
|
13
9
|
background-color: var( --zdt_setuptablerow_hover_bg);
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
//$Id$
|
|
2
|
+
let isShortCutEnabled;
|
|
3
|
+
let showShortcut = {};
|
|
4
|
+
let shortcutdatas = {};
|
|
5
|
+
let additionalKey = {};
|
|
6
|
+
let _SpecialKeyMaps = {
|
|
7
|
+
8: 'backspace',
|
|
8
|
+
9: 'tab',
|
|
9
|
+
13: 'enter',
|
|
10
|
+
16: 'shift',
|
|
11
|
+
17: 'ctrl',
|
|
12
|
+
18: 'alt',
|
|
13
|
+
//20: 'capslock',
|
|
14
|
+
27: 'esc',
|
|
15
|
+
32: 'space',
|
|
16
|
+
//33: 'pageup',
|
|
17
|
+
//34: 'pagedown',
|
|
18
|
+
//35: 'end',
|
|
19
|
+
//36: 'home',
|
|
20
|
+
37: 'left',
|
|
21
|
+
38: 'up',
|
|
22
|
+
39: 'right',
|
|
23
|
+
40: 'down',
|
|
24
|
+
46: 'del',
|
|
25
|
+
91: 'meta',
|
|
26
|
+
93: 'meta',
|
|
27
|
+
224: 'meta',
|
|
28
|
+
43: 'plus',
|
|
29
|
+
// +
|
|
30
|
+
61: 'plus',
|
|
31
|
+
// = , in firefox
|
|
32
|
+
63: 'ques',
|
|
33
|
+
// ?
|
|
34
|
+
187: 'plus',
|
|
35
|
+
// =
|
|
36
|
+
191: 'slash' // /
|
|
37
|
+
|
|
38
|
+
};
|
|
39
|
+
export function Shortcut(target) {
|
|
40
|
+
_addEvent(target, 'keypress', keycallback);
|
|
41
|
+
|
|
42
|
+
_addEvent(target, 'keydown', keycallback);
|
|
43
|
+
|
|
44
|
+
_addEvent(target, 'keyup', keycallback);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
Shortcut.setState = function (isEnabled) {
|
|
48
|
+
isShortCutEnabled = isEnabled;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
Shortcut.addAll = function (keysObj, props) {
|
|
52
|
+
showShortcut = props.showShortcut;
|
|
53
|
+
isShortCutEnabled && keysObj.map((keyOptions, index) => {
|
|
54
|
+
Shortcut.add(keyOptions.keyCombo, keyOptions.keyCallback(props), keyOptions.keyAction, keyOptions.displayLabel || []);
|
|
55
|
+
return;
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* @param keycombo = 'z' or 'z+e' or 'shift+a' etc..
|
|
60
|
+
* @param callback = any function
|
|
61
|
+
* @param action = keypress or keydown or keyup
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Shortcut.bulkAdd = function (shortcutArray) {
|
|
66
|
+
showShortcut && shortcutArray.map(shortcutObj => {
|
|
67
|
+
Shortcut.add(shortcutObj.keyCombo, shortcutObj.keyCallback, shortcutObj.keyAction, shortcutObj.displayLabel || []);
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
Shortcut.add = function (keycombo, cpFunc, action, displayLabel) {
|
|
72
|
+
if (!keycombo || !isShortCutEnabled) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
let tempjson = {};
|
|
77
|
+
|
|
78
|
+
if (cpFunc === undefined) {
|
|
79
|
+
cpFunc = function (keycode, keyOptions, e) {
|
|
80
|
+
_defaultCallBack(keycode, keyOptions);
|
|
81
|
+
};
|
|
82
|
+
} else {
|
|
83
|
+
let oldfunc = cpFunc;
|
|
84
|
+
|
|
85
|
+
cpFunc = function (keycode, keyOptions, ev) {
|
|
86
|
+
oldfunc(keycode, ev);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
tempjson.key = keycombo.toLowerCase();
|
|
91
|
+
tempjson.displayLabel = displayLabel;
|
|
92
|
+
tempjson.keyOptions = cpFunc;
|
|
93
|
+
tempjson.action = action || 'keypress';
|
|
94
|
+
shortcutdatas[keycombo.toLowerCase()] = tempjson;
|
|
95
|
+
};
|
|
96
|
+
/*Shortcut.prototype.remove = function(){
|
|
97
|
+
|
|
98
|
+
};*/
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
Shortcut.removeAll = function () {
|
|
102
|
+
shortcutdatas = {};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
Shortcut.show = function () {
|
|
106
|
+
return Object.assign({}, shortcutdatas);
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
Shortcut.remove = function (keyCombo) {
|
|
110
|
+
keyCombo = Array.isArray(keyCombo) ? keyCombo : [keyCombo];
|
|
111
|
+
keyCombo.map(key => {
|
|
112
|
+
delete shortcutdatas[key];
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
Shortcut.init = function (doc) {
|
|
117
|
+
let documentshortcut = Shortcut(doc);
|
|
118
|
+
|
|
119
|
+
for (let method in documentshortcut) {
|
|
120
|
+
if (method.charAt(0) !== '_') {
|
|
121
|
+
Shortcut[method] = function (method) {
|
|
122
|
+
return function () {
|
|
123
|
+
return documentshortcut[method](...arguments);
|
|
124
|
+
};
|
|
125
|
+
}(method);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
function _addEvent(object, type, callback) {
|
|
131
|
+
if (object.addEventListener) {
|
|
132
|
+
object.addEventListener(type, callback, false);
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
object.attachEvent(`on${type}`, callback);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function keycallback(e) {
|
|
140
|
+
if (!isShortCutEnabled) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
let keyaction = e.type;
|
|
145
|
+
|
|
146
|
+
let keycode = _convertToKeyCharacter(e);
|
|
147
|
+
|
|
148
|
+
if (e.metaKey) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
_bindNeedData(e, keyaction);
|
|
153
|
+
|
|
154
|
+
if ('esc' !== keycode) {
|
|
155
|
+
if (_shortRestrictionPlaces(e)) {
|
|
156
|
+
//return if type any text in input tag or texta area
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
keycode = _eventModifiers(e) + keycode;
|
|
162
|
+
let keycodedata = shortcutdatas[keycode];
|
|
163
|
+
|
|
164
|
+
if (keycodedata) {
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (keycodedata && keyaction === keycodedata.action && keycodedata.keyOptions) {
|
|
169
|
+
keycodedata.keyOptions && keycodedata.keyOptions(keycode, keycodedata.keyOptions, e);
|
|
170
|
+
showShortcut({
|
|
171
|
+
type: 'SHORTCUT_SHOW',
|
|
172
|
+
displayLabel: keycodedata.displayLabel
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function _eventModifiers(e) {
|
|
178
|
+
if (e.shiftKey === true && e.metaKey === true) {
|
|
179
|
+
return 'command+shift+';
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (e.shiftKey === true && e.ctrlKey === true) {
|
|
183
|
+
return 'ctrl+shift+';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (e.altKey === true && e.ctrlKey === true) {
|
|
187
|
+
return 'alt+ctrl+';
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (e.ctrlKey === true) {
|
|
191
|
+
return 'ctrl+';
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (e.metaKey === true) {
|
|
195
|
+
return 'command+';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (e.shiftKey === true) {
|
|
199
|
+
return 'shift+';
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (additionalKey.zpress === true) {
|
|
203
|
+
return 'z+';
|
|
204
|
+
} else if (additionalKey.apress === true) {
|
|
205
|
+
return 'a+';
|
|
206
|
+
} else if (additionalKey.cpress === true) {
|
|
207
|
+
return 'c+';
|
|
208
|
+
} else if (additionalKey.dpress === true) {
|
|
209
|
+
return 'd+';
|
|
210
|
+
} else if (additionalKey.fpress === true) {
|
|
211
|
+
return 'f+';
|
|
212
|
+
} else if (additionalKey.kpress === true) {
|
|
213
|
+
return 'k+';
|
|
214
|
+
} else if (additionalKey.ppress === true) {
|
|
215
|
+
return 'p+';
|
|
216
|
+
} else if (additionalKey.rpress === true) {
|
|
217
|
+
return 'r+';
|
|
218
|
+
} else if (additionalKey.tpress === true) {
|
|
219
|
+
return 't+';
|
|
220
|
+
} else if (additionalKey.epress === true) {
|
|
221
|
+
return 'e+';
|
|
222
|
+
} else if (additionalKey.lpress === true) {
|
|
223
|
+
return 'l+';
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
return '';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function _bindNeedData(e, keyaction) {
|
|
230
|
+
let keyName = String.fromCharCode(e.keyCode).toLowerCase();
|
|
231
|
+
|
|
232
|
+
if (['z', 'a', 'c', 'd', 'f', 'k', 'p', 'r', 't', 'l', 'e'].indexOf(keyName) !== -1) {
|
|
233
|
+
let extraName = `${keyName}press`;
|
|
234
|
+
|
|
235
|
+
if (keyaction === 'keydown') {
|
|
236
|
+
additionalKey = !additionalKey[extraName] ? Object.assign({}, additionalKey, {
|
|
237
|
+
[extraName]: true
|
|
238
|
+
}) : additionalKey;
|
|
239
|
+
additionalKey[extraName] = true;
|
|
240
|
+
} else if (keyaction === 'keyup') {
|
|
241
|
+
additionalKey = !additionalKey[extraName] ? Object.assign({}, additionalKey, {
|
|
242
|
+
[extraName]: false
|
|
243
|
+
}) : additionalKey;
|
|
244
|
+
additionalKey[extraName] = false;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function _convertToKeyCharacter(e) {
|
|
250
|
+
let keyCode = e.keyCode || e.charCode;
|
|
251
|
+
let keyName = String.fromCharCode(keyCode).toLowerCase();
|
|
252
|
+
keyName = _SpecialKeyMaps.hasOwnProperty(keyCode) ? _SpecialKeyMaps[keyCode] : keyName;
|
|
253
|
+
return keyName;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function _defaultCallBack(keycombo, keyOptions) {
|
|
257
|
+
/*var keyElement = jQuery("[data-shortcut-key='" + keycombo + "']");
|
|
258
|
+
if (keyOptions.callbackflow !== undefined) {
|
|
259
|
+
keycombo = keyOptions.callbackflow.split(',');
|
|
260
|
+
var click = function(i, combo) {
|
|
261
|
+
setTimeout(function() {
|
|
262
|
+
jQuery("[data-shortcut-key='" + combo + "']").trigger('click');
|
|
263
|
+
}, i * 200);
|
|
264
|
+
};
|
|
265
|
+
for (var i = 0; i < keycombo.length; i++) {
|
|
266
|
+
var clickFunc = click.bind(this, i);
|
|
267
|
+
clickFunc(keycombo[i]);
|
|
268
|
+
highLightKeys(keycombo[i]);
|
|
269
|
+
}
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
if (keyElement.length === 1) {
|
|
273
|
+
keyElement.trigger('click');
|
|
274
|
+
highLightKeys(keycombo);
|
|
275
|
+
return;
|
|
276
|
+
}*/
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function _shortRestrictionPlaces(e) {
|
|
280
|
+
let _target = e.target;
|
|
281
|
+
let {
|
|
282
|
+
tagName
|
|
283
|
+
} = _target;
|
|
284
|
+
let keyCode = e.keyCode || e.charCode;
|
|
285
|
+
let isContentEditable = _target.contentEditable === 'true';
|
|
286
|
+
|
|
287
|
+
if (['TEXTAREA', 'INPUT', 'SELECT'].indexOf(tagName) !== -1 || //!SupportUI.CurrentUser.getKBStatus() ||
|
|
288
|
+
//restrict_keyUI() ||
|
|
289
|
+
keyCode >= 112 && keyCode <= 123 || isContentEditable) {
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return false;
|
|
294
|
+
}
|
|
@@ -11,38 +11,25 @@
|
|
|
11
11
|
top: 0;
|
|
12
12
|
z-index: 1000;
|
|
13
13
|
/*Hook for editor alert*/
|
|
14
|
-
pointer-events: none;
|
|
15
|
-
text-align: center;
|
|
16
|
-
}
|
|
17
|
-
[dir=ltr] .message {
|
|
18
14
|
right: 0;
|
|
15
|
+
text-align: center;
|
|
19
16
|
left: 0;
|
|
20
|
-
|
|
21
|
-
[dir=rtl] .message {
|
|
22
|
-
left: 0;
|
|
23
|
-
right: 0;
|
|
17
|
+
pointer-events: none;
|
|
24
18
|
}
|
|
25
19
|
|
|
26
20
|
.container {
|
|
21
|
+
padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75);
|
|
27
22
|
position: relative;
|
|
28
23
|
pointer-events: initial;
|
|
29
|
-
color: var(--globalnotification_text_color);
|
|
30
|
-
max-width: var(--zd_size490);
|
|
31
|
-
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
32
24
|
box-shadow: 0 4px 20px var(--globalnotification_box_shadow);
|
|
33
25
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
34
26
|
background-color: var(--globalnotification_bg_color);
|
|
35
27
|
border-style: solid;
|
|
36
28
|
border-color: var(--commonalert_border_color);
|
|
37
29
|
border-width: 2px 1px 1px 1px;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
padding: var(--zd_size18) var(--zd_size70) var(--zd_size19) var(--zd_size75);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
[dir=rtl] .container {
|
|
45
|
-
padding: var(--zd_size18) var(--zd_size75) var(--zd_size19) var(--zd_size70);
|
|
30
|
+
color: var(--globalnotification_text_color);
|
|
31
|
+
max-width: var(--zd_size490);
|
|
32
|
+
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
46
33
|
}
|
|
47
34
|
|
|
48
35
|
.icon {
|
|
@@ -51,15 +38,8 @@
|
|
|
51
38
|
position: absolute;
|
|
52
39
|
top: 0;
|
|
53
40
|
bottom: 0;
|
|
54
|
-
margin: auto 0;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
[dir=ltr] .icon {
|
|
58
41
|
left: var(--zd_size18);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
[dir=rtl] .icon {
|
|
62
|
-
right: var(--zd_size18);
|
|
42
|
+
margin: auto 0;
|
|
63
43
|
}
|
|
64
44
|
|
|
65
45
|
.success {
|
|
@@ -96,30 +76,15 @@
|
|
|
96
76
|
font-size: var(--zd_font_size14);
|
|
97
77
|
font-family: var(--zd_semibold);
|
|
98
78
|
composes: ftsmooth from '~@zohodesk/components/lib/common/common.module.css';
|
|
99
|
-
line-height: var(--zd_size20);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
[dir=ltr] .text {
|
|
103
79
|
text-align: left;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
[dir=rtl] .text {
|
|
107
|
-
text-align: right;
|
|
80
|
+
line-height: var(--zd_size20);
|
|
108
81
|
}
|
|
109
82
|
|
|
110
83
|
.close {
|
|
111
84
|
position: absolute;
|
|
112
85
|
top: 0;
|
|
113
86
|
bottom: 0;
|
|
114
|
-
height: var(--zd_size25);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
[dir=ltr] .close {
|
|
118
87
|
right: var(--zd_size12);
|
|
119
88
|
margin: auto 0 auto var(--zd_size25);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
[dir=rtl] .close {
|
|
123
|
-
left: var(--zd_size12);
|
|
124
|
-
margin: auto var(--zd_size25) auto 0;
|
|
89
|
+
height: var(--zd_size25);
|
|
125
90
|
}
|
|
@@ -11,13 +11,8 @@
|
|
|
11
11
|
}
|
|
12
12
|
.headerLayout {
|
|
13
13
|
min-height: var(--zd_size54);
|
|
14
|
-
}
|
|
15
|
-
[dir=ltr] .headerLayout {
|
|
16
14
|
padding: var(--zd_size15) var(--zd_size45) 0 var(--zd_size20);
|
|
17
15
|
}
|
|
18
|
-
[dir=rtl] .headerLayout {
|
|
19
|
-
padding: var(--zd_size15) var(--zd_size20) 0 var(--zd_size45);
|
|
20
|
-
}
|
|
21
16
|
|
|
22
17
|
.success {
|
|
23
18
|
--commonalert_border_color: var(--zdt_commonalert_success_border);
|
|
@@ -39,14 +34,10 @@
|
|
|
39
34
|
--commonalert_border_color: var(--zdt_commonalert_warning_border);
|
|
40
35
|
}
|
|
41
36
|
|
|
42
|
-
|
|
37
|
+
.extraSmall {
|
|
43
38
|
padding: var(--zd_size12) var(--zd_size45) var(--zd_size12) var(--zd_size16);
|
|
44
39
|
}
|
|
45
40
|
|
|
46
|
-
[dir=rtl] .extraSmall {
|
|
47
|
-
padding: var(--zd_size12) var(--zd_size16) var(--zd_size12) var(--zd_size45);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
41
|
.iconContainer {
|
|
51
42
|
height: var(--zd_size51);
|
|
52
43
|
width: var(--zd_size51);
|
|
@@ -54,6 +45,7 @@
|
|
|
54
45
|
|
|
55
46
|
.title {
|
|
56
47
|
color: var(--zdt_alertlookupnew_text);
|
|
48
|
+
margin: 0 var(--zd_size5) 0 var(--zd_size10);
|
|
57
49
|
font-size: var(--zd_font_size18);
|
|
58
50
|
line-height: var(--zd_size22);
|
|
59
51
|
font-family: var(--zd_bold);
|
|
@@ -61,14 +53,6 @@
|
|
|
61
53
|
vertical-align: middle;
|
|
62
54
|
}
|
|
63
55
|
|
|
64
|
-
[dir=ltr] .title {
|
|
65
|
-
margin: 0 var(--zd_size5) 0 var(--zd_size10);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
[dir=rtl] .title {
|
|
69
|
-
margin: 0 var(--zd_size10) 0 var(--zd_size5);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
56
|
.iconStyle {
|
|
73
57
|
display: block;
|
|
74
58
|
}
|
|
@@ -76,12 +60,5 @@
|
|
|
76
60
|
.close {
|
|
77
61
|
position: absolute;
|
|
78
62
|
top: var(--zd_size12);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
[dir=ltr] .close {
|
|
82
63
|
right: var(--zd_size12);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
[dir=rtl] .close {
|
|
86
|
-
left: var(--zd_size12);
|
|
87
64
|
}
|
|
@@ -3,21 +3,17 @@
|
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.innerSection {
|
|
6
|
+
padding: var(--zd_size17) var(--zd_size30) var(--zd_size30);
|
|
6
7
|
color: var(--zdt_alertlookupnew_text);
|
|
7
8
|
font-size: var(--zd_font_size14);
|
|
8
9
|
line-height: var(--zd_size18);
|
|
9
10
|
composes: wbreak from '~@zohodesk/components/lib/common/common.module.css';
|
|
10
|
-
padding: var(--zd_size17) var(--zd_size30) var(--zd_size30);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
.buttonGap {
|
|
14
14
|
margin: 0 0 0 var(--zd_size12);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
[dir=rtl] .buttonGap {
|
|
18
|
-
margin: 0 var(--zd_size12) 0 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
17
|
.confirmMsgText {
|
|
22
18
|
margin-top: var(--zd_size20);
|
|
23
19
|
}
|
|
@@ -27,8 +23,8 @@
|
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
.footer {
|
|
30
|
-
overflow: hidden;
|
|
31
26
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
27
|
+
overflow: hidden;
|
|
32
28
|
}
|
|
33
29
|
.horizontalScroll, .verticalScroll, .bothScroll {
|
|
34
30
|
height: 100%;
|
|
@@ -2,16 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
.noteContainer {
|
|
4
4
|
padding: var(--zd_size4) var(--zd_size30) 0;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
[dir=ltr] .noteContainer {
|
|
8
5
|
border-left: solid 1px var(--zdt_alertlookup_border);
|
|
9
6
|
}
|
|
10
7
|
|
|
11
|
-
[dir=rtl] .noteContainer {
|
|
12
|
-
border-right: solid 1px var(--zdt_alertlookup_border);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
8
|
.noteTitle {
|
|
16
9
|
font-size: var(--zd_font_size13);
|
|
17
10
|
font-family: var(--zd_semibold);
|
|
@@ -27,7 +20,7 @@
|
|
|
27
20
|
font-size: var(--zd_font_size12);
|
|
28
21
|
/* line-height: var(--zd_size14); */
|
|
29
22
|
color: var(--zdt_alertlookuop_text);
|
|
23
|
+
margin-bottom: var(--zd_size15);
|
|
30
24
|
list-style-type: disc;
|
|
31
25
|
line-height: initial;
|
|
32
|
-
margin-bottom: var(--zd_size15);
|
|
33
26
|
}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
.parentElement {
|
|
2
|
-
position: relative;
|
|
3
2
|
margin-bottom: var(--zd_size7);
|
|
3
|
+
position: relative;
|
|
4
4
|
}
|
|
5
5
|
.container {
|
|
6
|
+
background-color: var(--zdt_desktopnotification_bg);
|
|
6
7
|
color: var(--zdt_desktopnotification_text);
|
|
7
8
|
transition: all var(--zd_transition4);
|
|
8
9
|
position: relative;
|
|
10
|
+
transform-origin: right center;
|
|
9
11
|
max-height: 100%;
|
|
10
|
-
pointer-events: auto;
|
|
11
|
-
background-color: var(--zdt_desktopnotification_bg);
|
|
12
12
|
box-shadow: 0 4px 20px var(--zdt_desktopnotification_box_shadow);
|
|
13
13
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
14
|
-
|
|
15
|
-
[dir=ltr] .container {
|
|
16
|
-
transform-origin: right center;
|
|
17
|
-
}
|
|
18
|
-
[dir=rtl] .container {
|
|
19
|
-
transform-origin: left center;
|
|
14
|
+
pointer-events: auto;
|
|
20
15
|
}
|
|
21
16
|
.globalNotify {
|
|
22
17
|
max-width: var(--zd_size490);
|
|
@@ -32,17 +27,11 @@
|
|
|
32
27
|
/* Animation Style */
|
|
33
28
|
.closeAnimation {
|
|
34
29
|
max-height: 0;
|
|
35
|
-
transition: all var(--zd_transition3) 0.4s;
|
|
36
30
|
margin-bottom: 0;
|
|
31
|
+
transition: all var(--zd_transition3) 0.4s;
|
|
37
32
|
}
|
|
38
33
|
.animation {
|
|
39
34
|
composes: modeForward from '~@zohodesk/components/lib/common/animation.module.css';
|
|
40
|
-
}
|
|
41
|
-
[dir=ltr] .animation {
|
|
42
|
-
animation-duration: var(--zd_transition4);
|
|
43
|
-
-webkit-animation-duration: var(--zd_transition4);
|
|
44
|
-
}
|
|
45
|
-
[dir=rtl] .animation {
|
|
46
35
|
animation-duration: var(--zd_transition4);
|
|
47
36
|
-webkit-animation-duration: var(--zd_transition4);
|
|
48
37
|
}
|
|
@@ -51,8 +40,8 @@
|
|
|
51
40
|
composes: animation;
|
|
52
41
|
}
|
|
53
42
|
.leftnoanimate {
|
|
54
|
-
opacity: 1;
|
|
55
43
|
transform: translateX(0) scale(1);
|
|
44
|
+
opacity: 1;
|
|
56
45
|
}
|
|
57
46
|
.rightanimate {
|
|
58
47
|
composes: slideRight from '~@zohodesk/components/lib/common/animation.module.css';
|
|
@@ -61,20 +50,15 @@
|
|
|
61
50
|
}
|
|
62
51
|
/* Container Style */
|
|
63
52
|
.message {
|
|
53
|
+
padding: var(--zd_size10) var(--zd_size20) var(--zd_size10) var(--zd_size76);
|
|
54
|
+
border-top: 1px solid var(--zd_smoke1);
|
|
55
|
+
cursor: pointer;
|
|
64
56
|
position: relative;
|
|
65
57
|
color: var(--zd_smoke18);
|
|
66
58
|
font-size: var(--zd_font_size11);
|
|
67
59
|
composes: dotted textCap from '~@zohodesk/components/lib/common/common.module.css';
|
|
68
60
|
height: var(--zd_size33);
|
|
69
61
|
transition: padding var(--zd_transition3), height var(--zd_transition3);
|
|
70
|
-
border-top: 1px solid var(--zd_smoke1);
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
}
|
|
73
|
-
[dir=ltr] .message {
|
|
74
|
-
padding: var(--zd_size10) var(--zd_size20) var(--zd_size10) var(--zd_size76);
|
|
75
|
-
}
|
|
76
|
-
[dir=rtl] .message {
|
|
77
|
-
padding: var(--zd_size10) var(--zd_size76) var(--zd_size10) var(--zd_size20);
|
|
78
62
|
}
|
|
79
63
|
.message:hover {
|
|
80
64
|
background: var(--zd_alabaster);
|
|
@@ -101,6 +85,6 @@
|
|
|
101
85
|
margin-top: var(--zd_size20);
|
|
102
86
|
}
|
|
103
87
|
.footer {
|
|
104
|
-
overflow: hidden;
|
|
105
88
|
border-radius: 0 0 var(--zd_size10) var(--zd_size10);
|
|
89
|
+
overflow: hidden;
|
|
106
90
|
}
|