@zohodesk/dot 1.0.0-temp-76 → 1.0.0-temp-77
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 +5 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +0 -2
- package/assets/Appearance/default/mode/dotDefaultMode.module.css +0 -2
- 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 -82
- 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.js +3 -5
- 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/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/dropdown/ToggleDropDown/ToggleDropDown.js +1 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +6 -19
- 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/Fields.module.css +14 -49
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +9 -4
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +7 -19
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
- package/es/form/fields/TextEditor/TextEditor.module.css +72 -149
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -13
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +4 -9
- 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/DepartmentDropDown/DepartmentDropDown.js +1 -1
- package/es/list/DotNew/DotNew.module.css +3 -3
- package/es/list/GridStencils/GridStencils.module.css +19 -71
- 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/SecondaryText.module.css +3 -13
- 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.js +1 -2
- 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/ModuleHeader/ModuleHeader.js +3 -8
- package/es/lookup/header/Search/LookupSearch.module.css +12 -21
- package/es/lookup/header/TicketHeader/TicketHeader.js +4 -7
- 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 -21
- 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/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.module.css +1 -0
- package/lib/FreezeLayer/FreezeLayer.js +4 -31
- package/lib/ImportantNotes/ImportantNotes.js +3 -5
- 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 +11 -20
- 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/status/StatusDropdown/StatusDropdown.js +37 -44
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +3 -8
- package/lib/lookup/header/TicketHeader/TicketHeader.js +4 -7
- 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/package.json +3 -2
- package/lib/AttachmentViewer/Attachment.js +0 -28
- package/lib/AttachmentViewer/AttachmentImage.js +0 -129
- package/lib/AttachmentViewer/AttachmentViewer.js +0 -645
- package/lib/AttachmentViewer/AttachmentViewer.module.css +0 -346
- 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,346 +0,0 @@
|
|
|
1
|
-
.header {
|
|
2
|
-
height: var(--zd_size40);
|
|
3
|
-
position: relative;
|
|
4
|
-
z-index: 1;
|
|
5
|
-
composes: alignVertical from '~@zohodesk/components/lib/common/common.module.css';
|
|
6
|
-
background-color: var(--zdt_attachmentviewer_header_bg);
|
|
7
|
-
padding: 0 var(--zd_size15);
|
|
8
|
-
border-bottom: 1px solid var(--zdt_attachmentviewer_header_border);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.title {
|
|
12
|
-
max-width: 50%;
|
|
13
|
-
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
[dir=ltr] .title {
|
|
17
|
-
padding-right: var(--zd_size15);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
[dir=rtl] .title {
|
|
21
|
-
padding-left: var(--zd_size15);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.count {
|
|
25
|
-
position: absolute;
|
|
26
|
-
composes: xMiddle from '~@zohodesk/components/lib/common/common.module.css';
|
|
27
|
-
padding: 0 var(--zd_size10);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.title,
|
|
31
|
-
.count {
|
|
32
|
-
color: var(--zdt_attachmentviewer_title_text);
|
|
33
|
-
font-size: var(--zd_font_size15);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[dir=ltr] .menuBar {
|
|
37
|
-
padding-left: var(--zd_size5);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[dir=rtl] .menuBar {
|
|
41
|
-
padding-right: var(--zd_size5);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.mbleMenuBar {
|
|
45
|
-
align-self: baseline;
|
|
46
|
-
margin-top: var(--zd_size8);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
[dir=ltr] .menu+.menu {
|
|
50
|
-
margin-left: var(--zd_size22);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
[dir=rtl] .menu+.menu {
|
|
54
|
-
margin-right: var(--zd_size22);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.mobileMenu+.mobileMenu {
|
|
58
|
-
margin-bottom: var(--zd_size22);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.menuIcon {
|
|
62
|
-
--iconColor: var(--zdt_attachmentviewer_title_text);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.nrmlArrowBox {
|
|
66
|
-
width: var(--zd_size80);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.mbleArrowBox {
|
|
70
|
-
width: var(--zd_size50);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.arrowBox:hover {
|
|
74
|
-
background-color: var(--zdt_attachmentviewer_arrow_bg_hover);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.arrow {
|
|
78
|
-
color: var(--zdt_attachmentviewer_title_text);
|
|
79
|
-
font-size: var(--zd_font_size22);
|
|
80
|
-
height: var(--zd_size38);
|
|
81
|
-
width: var(--zd_size38);
|
|
82
|
-
line-height: var(--zd_size36);
|
|
83
|
-
border-radius: 50%;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.preview {
|
|
88
|
-
composes: posrel from '~@zohodesk/components/lib/common/common.module.css';
|
|
89
|
-
text-align: center;
|
|
90
|
-
margin: var(--zd_size20) 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.zoomIn {
|
|
94
|
-
max-height: 100%;
|
|
95
|
-
max-width: 90%;
|
|
96
|
-
position: absolute;
|
|
97
|
-
composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.zoomOut {
|
|
101
|
-
cursor: zoom-out;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.button {
|
|
105
|
-
position: absolute;
|
|
106
|
-
bottom: var(--zd_size23);
|
|
107
|
-
z-index: 3;
|
|
108
|
-
border: 1px solid var(--zdt_attachmentviewer_button_border);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
[dir=ltr] .button {
|
|
112
|
-
right: var(--zd_size20);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
[dir=rtl] .button {
|
|
116
|
-
left: var(--zd_size20);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.visible {
|
|
120
|
-
visibility: visible;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.hidden {
|
|
124
|
-
visibility: hidden;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.footer {
|
|
128
|
-
width: 100%;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
transition: height var(--zd_transition3);
|
|
131
|
-
background-color: var(--zdt_attachmentviewer_footer_bg);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.footerHeight {
|
|
135
|
-
height: var(--zd_size75);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.footerHide {
|
|
139
|
-
height: 0;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.listContainer {
|
|
143
|
-
padding: 0 var(--zd_size18);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.imgItem {
|
|
147
|
-
height: var(--zd_size60);
|
|
148
|
-
min-width: var(--zd_size40);
|
|
149
|
-
position: relative;
|
|
150
|
-
transition: border var(--zd_transition3);
|
|
151
|
-
border-width: 2px;
|
|
152
|
-
border-style: solid;
|
|
153
|
-
border-color: var(--dot_mirror);
|
|
154
|
-
border-radius: 3px;
|
|
155
|
-
padding: var(--zd_size2);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.imgItem:hover {
|
|
159
|
-
border-color: var(--zdt_attachmentviewer_hover_border);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
[dir=ltr] .imgItem+.imgItem {
|
|
163
|
-
margin-left: var(--zd_size12);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
[dir=rtl] .imgItem+.imgItem {
|
|
167
|
-
margin-right: var(--zd_size12);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.image {
|
|
171
|
-
cursor: pointer;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.selected, .selected:hover {
|
|
175
|
-
border-color: var(--zdt_attachmentviewer_selected_border);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.selected::after {
|
|
179
|
-
content: '';
|
|
180
|
-
position: absolute;
|
|
181
|
-
top: 0;
|
|
182
|
-
width: 100%;
|
|
183
|
-
height: 100%;
|
|
184
|
-
opacity: 0.3;
|
|
185
|
-
background-color: var(--zdt_attachmentviewer_selected_after_bg);
|
|
186
|
-
box-shadow: 0 0 4px 2px var(--zdt_attachmentviewer_selected_box_shadow) inset;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
[dir=ltr] .selected::after {
|
|
190
|
-
left: 0;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
[dir=rtl] .selected::after {
|
|
194
|
-
right: 0;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.zoomIcon {
|
|
198
|
-
font-size: var(--zd_font_size15);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.newTabIcon {
|
|
202
|
-
font-size: var(--zd_font_size12);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.appIcon {
|
|
206
|
-
font-size: var(--zd_font_size9);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.thumpIcon {
|
|
210
|
-
color: var(--zdt_attachmentviewer_title_text);
|
|
211
|
-
transition: transform var(--zd_transition3);
|
|
212
|
-
transform: rotateX(180deg);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.thumpIconActive {
|
|
216
|
-
transform: rotateX(0deg);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.isAudio {
|
|
220
|
-
composes: audioImage from '../common/dot_common.module.css';
|
|
221
|
-
width: var(--zd_size100);
|
|
222
|
-
background-size: 100% 100%;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.isAudio .image {
|
|
226
|
-
opacity: 0;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.video {
|
|
230
|
-
position: absolute;
|
|
231
|
-
top: 0;
|
|
232
|
-
bottom: 0;
|
|
233
|
-
margin: auto;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
[dir=ltr] .video {
|
|
237
|
-
left: 0;
|
|
238
|
-
right: 0;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
[dir=rtl] .video {
|
|
242
|
-
right: 0;
|
|
243
|
-
left: 0;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.imgBox {
|
|
247
|
-
position: absolute;
|
|
248
|
-
transition: var(--zd_transition3) ease-in-out;
|
|
249
|
-
opacity: 0;
|
|
250
|
-
overflow: auto;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.imgBox>img {
|
|
254
|
-
object-fit: contain;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.imgRef {
|
|
258
|
-
width: 100%;
|
|
259
|
-
height: 100%;
|
|
260
|
-
max-width: 100%;
|
|
261
|
-
max-height: 100%;
|
|
262
|
-
composes: dflex from '~@zohodesk/components/lib/common/common.module.css';
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.img {
|
|
266
|
-
transition: var(--zd_transition3) ease-in-out;
|
|
267
|
-
margin: auto;
|
|
268
|
-
cursor: zoom-in;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.imgRef .normalImg {
|
|
272
|
-
max-width: inherit;
|
|
273
|
-
max-height: inherit;
|
|
274
|
-
cursor: zoom-in;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.imgRef .zoomedImg {
|
|
278
|
-
max-width: initial;
|
|
279
|
-
max-height: initial;
|
|
280
|
-
cursor: zoom-out;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.previewBox {
|
|
284
|
-
position: relative;
|
|
285
|
-
overflow: hidden;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.spinLoad {
|
|
289
|
-
position: absolute;
|
|
290
|
-
composes: middleBoth from '~@zohodesk/components/lib/common/common.module.css';
|
|
291
|
-
height: var(--zd_font_size18);
|
|
292
|
-
width: var(--zd_font_size18);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.loader {
|
|
296
|
-
height: 100%;
|
|
297
|
-
width: 100%;
|
|
298
|
-
composes: rotate from '../common/dot_animation.module.css';
|
|
299
|
-
composes: infinite from '~@zohodesk/components/lib/common/animation.module.css';
|
|
300
|
-
border: 2px solid var(--zdt_attachmentviewer_loader_border);
|
|
301
|
-
border-top-color: var(--zdt_attachmentviewer_loader_border_top);
|
|
302
|
-
border-radius: 50%;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
[dir=ltr] .loader {
|
|
306
|
-
animation-duration: var(--zd_transition8);
|
|
307
|
-
animation-timing-function: linear;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
[dir=rtl] .loader {
|
|
311
|
-
animation-duration: var(--zd_transition8);
|
|
312
|
-
animation-timing-function: linear;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.hide {
|
|
316
|
-
opacity: 0;
|
|
317
|
-
visibility: hidden;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.author {
|
|
321
|
-
max-width: var(--zd_size200);
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
[dir=ltr] .author {
|
|
325
|
-
padding-left: var(--zd_size15);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
[dir=rtl] .author {
|
|
329
|
-
padding-right: var(--zd_size15);
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
.authorName {
|
|
333
|
-
font-size: var(--zd_font_size15);
|
|
334
|
-
color: var(--zdt_attachmentviewer_title_text);
|
|
335
|
-
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
336
|
-
margin: 0 var(--zd_size10);
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.btn {
|
|
340
|
-
height: 100%;
|
|
341
|
-
width: 100%;
|
|
342
|
-
background-color: var(--dot_mirror);
|
|
343
|
-
border: 0;
|
|
344
|
-
cursor: pointer;
|
|
345
|
-
}
|
|
346
|
-
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ZoomEvent = exports.Zoom = void 0;
|
|
7
|
-
|
|
8
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
-
|
|
10
|
-
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); } }
|
|
11
|
-
|
|
12
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
-
|
|
14
|
-
var Zoom = /*#__PURE__*/function () {
|
|
15
|
-
function Zoom() {
|
|
16
|
-
_classCallCheck(this, Zoom);
|
|
17
|
-
|
|
18
|
-
var matrix = [1, 0, 0, 1, 0, 0]; // current view transform
|
|
19
|
-
|
|
20
|
-
this.m = matrix; // alias
|
|
21
|
-
|
|
22
|
-
this.scale = 1; // current scale
|
|
23
|
-
|
|
24
|
-
this.pos = {
|
|
25
|
-
x: 0,
|
|
26
|
-
y: 0
|
|
27
|
-
}; // current position of origin
|
|
28
|
-
|
|
29
|
-
this.dirty = true;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_createClass(Zoom, [{
|
|
33
|
-
key: "applyTo",
|
|
34
|
-
value: function applyTo(el) {
|
|
35
|
-
var dirty = this.dirty,
|
|
36
|
-
m = this.m;
|
|
37
|
-
|
|
38
|
-
if (dirty) {
|
|
39
|
-
this.update();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
el.style.transform = "matrix(".concat(m[0], ",").concat(m[1], ",").concat(m[2], ",").concat(m[3], ",").concat(m[4], ",").concat(m[5], ")");
|
|
43
|
-
el.style.transformOrigin = '0 0';
|
|
44
|
-
}
|
|
45
|
-
}, {
|
|
46
|
-
key: "update",
|
|
47
|
-
value: function update() {
|
|
48
|
-
// m[4], m[5] - need to set transforms based on positions. Currently set to 0 to zoom based on center
|
|
49
|
-
var m = this.m,
|
|
50
|
-
scale = this.scale,
|
|
51
|
-
pos = this.pos;
|
|
52
|
-
this.dirty = false;
|
|
53
|
-
m[3] = m[0] = scale;
|
|
54
|
-
m[2] = m[1] = 0;
|
|
55
|
-
m[4] = pos.x;
|
|
56
|
-
m[5] = pos.y;
|
|
57
|
-
}
|
|
58
|
-
}, {
|
|
59
|
-
key: "pan",
|
|
60
|
-
value: function pan(amount) {
|
|
61
|
-
if (this.dirty) {
|
|
62
|
-
this.update();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
this.pos.x += amount.x;
|
|
66
|
-
this.pos.y += amount.y;
|
|
67
|
-
this.dirty = true;
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
70
|
-
key: "scaleAt",
|
|
71
|
-
value: function scaleAt(at, amount) {
|
|
72
|
-
// at in screen coords
|
|
73
|
-
var dirty = this.dirty,
|
|
74
|
-
pos = this.pos;
|
|
75
|
-
|
|
76
|
-
if (dirty) {
|
|
77
|
-
this.update();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
this.scale *= amount;
|
|
81
|
-
this.pos.x = at.x - (at.x - pos.x) * amount;
|
|
82
|
-
this.pos.y = at.y - (at.y - pos.y) * amount;
|
|
83
|
-
this.dirty = true;
|
|
84
|
-
}
|
|
85
|
-
}]);
|
|
86
|
-
|
|
87
|
-
return Zoom;
|
|
88
|
-
}();
|
|
89
|
-
|
|
90
|
-
exports.Zoom = Zoom;
|
|
91
|
-
;
|
|
92
|
-
|
|
93
|
-
var ZoomEvent = /*#__PURE__*/function () {
|
|
94
|
-
function ZoomEvent() {
|
|
95
|
-
_classCallCheck(this, ZoomEvent);
|
|
96
|
-
|
|
97
|
-
this.pos = [];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
_createClass(ZoomEvent, [{
|
|
101
|
-
key: "on",
|
|
102
|
-
value: function on(dir, ele, zoom, event) {
|
|
103
|
-
if (dir === 'in') {
|
|
104
|
-
var x = event.pageX - ele.width / 2;
|
|
105
|
-
var y = event.pageY - ele.height / 2;
|
|
106
|
-
this.pos.push({
|
|
107
|
-
x: x,
|
|
108
|
-
y: y
|
|
109
|
-
});
|
|
110
|
-
zoom.scaleAt({
|
|
111
|
-
x: x,
|
|
112
|
-
y: y
|
|
113
|
-
}, 1.6);
|
|
114
|
-
zoom.applyTo(ele);
|
|
115
|
-
} else if (this.pos.length) {
|
|
116
|
-
var _this$pos$pop = this.pos.pop(),
|
|
117
|
-
_x = _this$pos$pop.x,
|
|
118
|
-
_y = _this$pos$pop.y;
|
|
119
|
-
|
|
120
|
-
zoom.scaleAt({
|
|
121
|
-
x: _x,
|
|
122
|
-
y: _y
|
|
123
|
-
}, 1 / 1.6);
|
|
124
|
-
zoom.applyTo(ele);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
event.preventDefault();
|
|
128
|
-
}
|
|
129
|
-
}]);
|
|
130
|
-
|
|
131
|
-
return ZoomEvent;
|
|
132
|
-
}();
|
|
133
|
-
|
|
134
|
-
exports.ZoomEvent = ZoomEvent;
|
package/lib/Provider/Config.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDotLibraryConfig = getDotLibraryConfig;
|
|
7
|
-
exports.setDotLibraryConfig = setDotLibraryConfig;
|
|
8
|
-
var config = {
|
|
9
|
-
freezeLayer: {
|
|
10
|
-
enable: function enable() {},
|
|
11
|
-
disable: function disable() {}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function getDotLibraryConfig(key) {
|
|
16
|
-
return config[key];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function setDotLibraryConfig(configObj) {
|
|
20
|
-
config = Object.assign({}, config, configObj);
|
|
21
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
[dir=ltr] .rotate{
|
|
3
|
-
animation-name: rotate-ltr ;
|
|
4
|
-
}
|
|
5
|
-
[dir=rtl] .rotate{
|
|
6
|
-
animation-name: rotate-rtl ;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@keyframes rotate-ltr {
|
|
10
|
-
from {
|
|
11
|
-
transform: rotate(0);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
to {
|
|
15
|
-
transform: rotate(360deg);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@keyframes rotate-rtl {
|
|
20
|
-
from {
|
|
21
|
-
transform: rotate(0);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
to {
|
|
25
|
-
transform: rotate(-360deg);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatCurrency = formatCurrency;
|
|
7
|
-
|
|
8
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
9
|
-
|
|
10
|
-
function formatCurrency(number, symbol) {
|
|
11
|
-
// format number 1000000 to 1,234,567
|
|
12
|
-
if (number && number != 0) {
|
|
13
|
-
var typeOfData = _typeof(number);
|
|
14
|
-
|
|
15
|
-
var isDecimal = typeOfData == 'string' ? number.indexOf('.') != -1 : !Number.isInteger(number);
|
|
16
|
-
|
|
17
|
-
if (isDecimal) {
|
|
18
|
-
var val = number.toString().split('.');
|
|
19
|
-
var arr1 = "".concat(val[0].replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
20
|
-
var finalVal = "".concat(symbol).concat(arr1, ".").concat(val[1]);
|
|
21
|
-
return finalVal;
|
|
22
|
-
} else {
|
|
23
|
-
var value = "".concat(symbol).concat(number.toString().replace(/\D/g, '').replace(/\B(?=(\d{3})+(?!\d))/g, ','));
|
|
24
|
-
return value;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return number;
|
|
29
|
-
}
|