@weavy/uikit-react 11.0.1 → 12.1.0

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.
Files changed (242) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/README.md +3 -4
  3. package/changelog.md +30 -0
  4. package/dist/cjs/index.js +6 -6
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/types/client/WeavyClient.d.ts +1 -1
  7. package/dist/cjs/types/components/Image.d.ts +2 -0
  8. package/dist/cjs/types/components/PdfViewer.d.ts +6 -0
  9. package/dist/cjs/types/components/Preview.d.ts +58 -0
  10. package/dist/cjs/types/contexts/MessengerContext.d.ts +1 -2
  11. package/dist/cjs/types/hooks/useUser.d.ts +2 -1
  12. package/dist/cjs/types/types/Messenger.d.ts +0 -1
  13. package/dist/cjs/types/types/types.d.ts +11 -6
  14. package/dist/cjs/types/utils/fileUtilities.d.ts +16 -1
  15. package/dist/css/weavy-chat.css +2684 -0
  16. package/dist/css/weavy-messenger.css +3039 -0
  17. package/dist/css/weavy.css +3039 -0
  18. package/dist/esm/index.js +6 -6
  19. package/dist/esm/index.js.map +1 -1
  20. package/dist/esm/types/client/WeavyClient.d.ts +1 -1
  21. package/dist/esm/types/components/Image.d.ts +2 -0
  22. package/dist/esm/types/components/PdfViewer.d.ts +6 -0
  23. package/dist/esm/types/components/Preview.d.ts +58 -0
  24. package/dist/esm/types/contexts/MessengerContext.d.ts +1 -2
  25. package/dist/esm/types/hooks/useUser.d.ts +2 -1
  26. package/dist/esm/types/types/Messenger.d.ts +0 -1
  27. package/dist/esm/types/types/types.d.ts +11 -6
  28. package/dist/esm/types/utils/fileUtilities.d.ts +16 -1
  29. package/dist/index.d.ts +2 -3
  30. package/package.json +14 -4
  31. package/rollup.config.js +0 -2
  32. package/src/client/WeavyClient.ts +3 -3
  33. package/src/components/Attachment.tsx +5 -6
  34. package/src/components/Avatar.tsx +2 -3
  35. package/src/components/Chat.tsx +10 -14
  36. package/src/components/Conversation.tsx +21 -30
  37. package/src/components/ConversationBadge.tsx +1 -2
  38. package/src/components/ConversationForm.tsx +11 -18
  39. package/src/components/ConversationList.tsx +4 -5
  40. package/src/components/ConversationListItem.tsx +13 -15
  41. package/src/components/FileBrowser.tsx +2 -3
  42. package/src/components/Image.tsx +39 -7
  43. package/src/components/MeetingCard.tsx +7 -8
  44. package/src/components/Message.tsx +12 -13
  45. package/src/components/Messages.tsx +19 -19
  46. package/src/components/Messenger.tsx +5 -6
  47. package/src/components/NewConversation.tsx +5 -7
  48. package/src/components/PdfViewer.tsx +271 -0
  49. package/src/components/Presence.tsx +2 -2
  50. package/src/components/Preview.tsx +294 -0
  51. package/src/components/Reactions.tsx +8 -8
  52. package/src/components/SearchUsers.tsx +18 -17
  53. package/src/components/SeenBy.tsx +1 -2
  54. package/src/components/Typing.tsx +4 -4
  55. package/src/contexts/MessengerContext.tsx +4 -12
  56. package/src/contexts/PreviewContext.tsx +4 -6
  57. package/src/contexts/WeavyContext.tsx +8 -1
  58. package/src/hooks/useBadge.ts +1 -1
  59. package/src/hooks/useChat.ts +1 -1
  60. package/src/hooks/useConversation.ts +1 -2
  61. package/src/hooks/useConversations.ts +1 -1
  62. package/src/hooks/useFileUploader.ts +5 -1
  63. package/src/hooks/useMembers.ts +1 -1
  64. package/src/hooks/useMessages.ts +1 -1
  65. package/src/hooks/useMutateChat.ts +1 -1
  66. package/src/hooks/useMutateConversation.ts +1 -1
  67. package/src/hooks/useMutateConversationName.ts +1 -1
  68. package/src/hooks/useMutateDeleteReaction.ts +1 -1
  69. package/src/hooks/useMutateExternalBlobs.ts +1 -1
  70. package/src/hooks/useMutateMeeting.ts +1 -1
  71. package/src/hooks/useMutateMembers.ts +1 -1
  72. package/src/hooks/useMutateMessage.ts +2 -1
  73. package/src/hooks/useMutatePinned.ts +1 -1
  74. package/src/hooks/useMutateReaction.ts +1 -1
  75. package/src/hooks/useMutateRead.ts +1 -1
  76. package/src/hooks/useMutateRemoveMembers.ts +1 -1
  77. package/src/hooks/useMutateTyping.ts +1 -1
  78. package/src/hooks/usePresence.ts +8 -5
  79. package/src/hooks/useReactions.ts +0 -1
  80. package/src/hooks/useSearchUsers.ts +1 -1
  81. package/src/hooks/useUser.ts +4 -3
  82. package/src/index.ts +2 -2
  83. package/src/scss/theme/_alert.scss +73 -0
  84. package/src/scss/theme/_appbar.scss +112 -0
  85. package/src/scss/theme/_attachments.scss +74 -0
  86. package/src/scss/theme/_avatar.scss +54 -0
  87. package/src/scss/theme/_badge.scss +47 -0
  88. package/src/scss/theme/_buttons.scss +96 -0
  89. package/src/scss/theme/_card.scss +7 -0
  90. package/src/scss/theme/_checkbox.scss +56 -0
  91. package/src/scss/theme/_cm-editor.scss +42 -0
  92. package/src/scss/theme/_code.scss +115 -0
  93. package/src/scss/theme/_colors.scss +520 -0
  94. package/src/scss/theme/_config.scss +6 -0
  95. package/src/scss/theme/_content.scss +15 -0
  96. package/src/scss/theme/_conversations.scss +91 -0
  97. package/src/scss/theme/_dropdown.scss +86 -0
  98. package/src/scss/theme/_emoji.scss +5 -0
  99. package/src/scss/theme/_filebrowser.scss +26 -0
  100. package/src/scss/theme/_files.scss +140 -0
  101. package/src/scss/theme/_icons.scss +62 -0
  102. package/src/scss/theme/_image-grid.scss +63 -0
  103. package/src/scss/theme/_inputs.scss +28 -0
  104. package/src/scss/theme/_message-editor.scss +90 -0
  105. package/src/scss/theme/_messages.scss +238 -0
  106. package/src/scss/theme/_nav.scss +52 -0
  107. package/src/scss/theme/_overlays.scss +157 -0
  108. package/src/scss/theme/_pager.scss +19 -0
  109. package/src/scss/theme/_palette.scss +165 -0
  110. package/src/scss/theme/_pane.scss +16 -0
  111. package/src/scss/theme/_panels.scss +137 -0
  112. package/src/scss/theme/_picker-list.scss +37 -0
  113. package/src/scss/theme/_preview-embed.scss +38 -0
  114. package/src/scss/theme/_preview-html.scss +7 -0
  115. package/src/scss/theme/_preview-icon.scss +41 -0
  116. package/src/scss/theme/_preview-image.scss +86 -0
  117. package/src/scss/theme/_preview-media.scss +28 -0
  118. package/src/scss/theme/_preview-pdf.scss +838 -0
  119. package/src/scss/theme/_preview-text.scss +5 -0
  120. package/src/scss/theme/_preview.scss +105 -0
  121. package/src/scss/theme/_reactions.scss +58 -0
  122. package/src/scss/theme/_reboot.scss +41 -0
  123. package/src/scss/theme/_root.scss +2 -0
  124. package/src/scss/theme/_scroll.scss +55 -0
  125. package/src/scss/theme/_search.scss +68 -0
  126. package/src/scss/theme/_spinner.scss +63 -0
  127. package/src/scss/theme/_tables.scss +53 -0
  128. package/src/scss/theme/_toasts.scss +47 -0
  129. package/src/scss/theme/_turbo.scss +17 -0
  130. package/src/scss/theme/_typing.scss +26 -0
  131. package/src/scss/theme/_variables.scss +139 -0
  132. package/src/scss/theme/bootstrap/_accordion.scss +146 -0
  133. package/src/scss/theme/bootstrap/_alert.scss +71 -0
  134. package/src/scss/theme/bootstrap/_badge.scss +38 -0
  135. package/src/scss/theme/bootstrap/_breadcrumb.scss +40 -0
  136. package/src/scss/theme/bootstrap/_button-group.scss +142 -0
  137. package/src/scss/theme/bootstrap/_buttons.scss +186 -0
  138. package/src/scss/theme/bootstrap/_card.scss +234 -0
  139. package/src/scss/theme/bootstrap/_carousel.scss +229 -0
  140. package/src/scss/theme/bootstrap/_close.scss +40 -0
  141. package/src/scss/theme/bootstrap/_containers.scss +41 -0
  142. package/src/scss/theme/bootstrap/_dropdown.scss +248 -0
  143. package/src/scss/theme/bootstrap/_forms.scss +9 -0
  144. package/src/scss/theme/bootstrap/_functions.scss +302 -0
  145. package/src/scss/theme/bootstrap/_grid.scss +33 -0
  146. package/src/scss/theme/bootstrap/_helpers.scss +10 -0
  147. package/src/scss/theme/bootstrap/_images.scss +42 -0
  148. package/src/scss/theme/bootstrap/_list-group.scss +191 -0
  149. package/src/scss/theme/bootstrap/_maps.scss +54 -0
  150. package/src/scss/theme/bootstrap/_mixins.scss +43 -0
  151. package/src/scss/theme/bootstrap/_modal.scss +237 -0
  152. package/src/scss/theme/bootstrap/_nav.scss +172 -0
  153. package/src/scss/theme/bootstrap/_navbar.scss +276 -0
  154. package/src/scss/theme/bootstrap/_offcanvas.scss +143 -0
  155. package/src/scss/theme/bootstrap/_pagination.scss +109 -0
  156. package/src/scss/theme/bootstrap/_placeholders.scss +51 -0
  157. package/src/scss/theme/bootstrap/_popover.scss +196 -0
  158. package/src/scss/theme/bootstrap/_progress.scss +59 -0
  159. package/src/scss/theme/bootstrap/_reboot.scss +610 -0
  160. package/src/scss/theme/bootstrap/_root.scss +73 -0
  161. package/src/scss/theme/bootstrap/_spinners.scss +85 -0
  162. package/src/scss/theme/bootstrap/_tables.scss +164 -0
  163. package/src/scss/theme/bootstrap/_toasts.scss +70 -0
  164. package/src/scss/theme/bootstrap/_tooltip.scss +120 -0
  165. package/src/scss/theme/bootstrap/_transitions.scss +27 -0
  166. package/src/scss/theme/bootstrap/_type.scss +106 -0
  167. package/src/scss/theme/bootstrap/_utilities.scss +647 -0
  168. package/src/scss/theme/bootstrap/_variables.scss +1633 -0
  169. package/src/scss/theme/bootstrap/forms/_floating-labels.scss +74 -0
  170. package/src/scss/theme/bootstrap/forms/_form-check.scss +175 -0
  171. package/src/scss/theme/bootstrap/forms/_form-control.scss +194 -0
  172. package/src/scss/theme/bootstrap/forms/_form-range.scss +91 -0
  173. package/src/scss/theme/bootstrap/forms/_form-select.scss +71 -0
  174. package/src/scss/theme/bootstrap/forms/_form-text.scss +11 -0
  175. package/src/scss/theme/bootstrap/forms/_input-group.scss +129 -0
  176. package/src/scss/theme/bootstrap/forms/_labels.scss +36 -0
  177. package/src/scss/theme/bootstrap/forms/_validation.scss +12 -0
  178. package/src/scss/theme/bootstrap/helpers/_clearfix.scss +3 -0
  179. package/src/scss/theme/bootstrap/helpers/_color-bg.scss +10 -0
  180. package/src/scss/theme/bootstrap/helpers/_colored-links.scss +12 -0
  181. package/src/scss/theme/bootstrap/helpers/_position.scss +36 -0
  182. package/src/scss/theme/bootstrap/helpers/_ratio.scss +26 -0
  183. package/src/scss/theme/bootstrap/helpers/_stacks.scss +15 -0
  184. package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +15 -0
  185. package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +7 -0
  186. package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +8 -0
  187. package/src/scss/theme/bootstrap/helpers/_vr.scss +8 -0
  188. package/src/scss/theme/bootstrap/mixins/_alert.scss +15 -0
  189. package/src/scss/theme/bootstrap/mixins/_backdrop.scss +14 -0
  190. package/src/scss/theme/bootstrap/mixins/_banner.scss +9 -0
  191. package/src/scss/theme/bootstrap/mixins/_border-radius.scss +78 -0
  192. package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +18 -0
  193. package/src/scss/theme/bootstrap/mixins/_breakpoints.scss +127 -0
  194. package/src/scss/theme/bootstrap/mixins/_buttons.scss +70 -0
  195. package/src/scss/theme/bootstrap/mixins/_caret.scss +64 -0
  196. package/src/scss/theme/bootstrap/mixins/_clearfix.scss +9 -0
  197. package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +7 -0
  198. package/src/scss/theme/bootstrap/mixins/_container.scss +11 -0
  199. package/src/scss/theme/bootstrap/mixins/_deprecate.scss +10 -0
  200. package/src/scss/theme/bootstrap/mixins/_forms.scss +152 -0
  201. package/src/scss/theme/bootstrap/mixins/_gradients.scss +47 -0
  202. package/src/scss/theme/bootstrap/mixins/_grid.scss +151 -0
  203. package/src/scss/theme/bootstrap/mixins/_image.scss +16 -0
  204. package/src/scss/theme/bootstrap/mixins/_list-group.scss +24 -0
  205. package/src/scss/theme/bootstrap/mixins/_lists.scss +7 -0
  206. package/src/scss/theme/bootstrap/mixins/_pagination.scss +10 -0
  207. package/src/scss/theme/bootstrap/mixins/_reset-text.scss +17 -0
  208. package/src/scss/theme/bootstrap/mixins/_resize.scss +6 -0
  209. package/src/scss/theme/bootstrap/mixins/_table-variants.scss +24 -0
  210. package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +8 -0
  211. package/src/scss/theme/bootstrap/mixins/_transition.scss +26 -0
  212. package/src/scss/theme/bootstrap/mixins/_utilities.scss +97 -0
  213. package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +29 -0
  214. package/src/scss/theme/bootstrap/utilities/_api.scss +47 -0
  215. package/src/scss/theme/bootstrap/vendor/_rfs.scss +354 -0
  216. package/src/scss/theme/bs/_badge.scss +20 -0
  217. package/src/scss/theme/bs/_buttons.scss +185 -0
  218. package/src/scss/theme/bs/_dropdown.scss +86 -0
  219. package/src/scss/theme/bs/_forms.scss +161 -0
  220. package/src/scss/theme/bs/_list-group.scss +73 -0
  221. package/src/scss/theme/bs/_tables.scss +46 -0
  222. package/src/scss/theme/fonts/_fontmapping-roboto.scss +129 -0
  223. package/src/scss/theme/fonts/_fontmapping-segoe-ui.scss +127 -0
  224. package/src/scss/theme/fonts/_index.scss +2 -0
  225. package/src/scss/theme/mixins/_backdrop.scss +13 -0
  226. package/src/scss/theme/mixins/_palette.scss +165 -0
  227. package/src/scss/theme/mixins/_position.scss +33 -0
  228. package/src/scss/theme/mixins/_scrollbar.scss +110 -0
  229. package/src/scss/weavy-chat.scss +31 -0
  230. package/src/scss/weavy-messenger.scss +60 -0
  231. package/src/scss/weavy.scss +2 -0
  232. package/src/types/Messenger.ts +1 -1
  233. package/src/types/types.ts +14 -9
  234. package/src/ui/Button.tsx +3 -4
  235. package/src/ui/Dropdown.tsx +4 -5
  236. package/src/ui/Icon.tsx +75 -39
  237. package/src/ui/Overlay.tsx +2 -3
  238. package/src/utils/fileUtilities.ts +280 -72
  239. package/src/utils/scrollbarDetection.js +48 -0
  240. package/dist/cjs/types/utils/styles.d.ts +0 -17
  241. package/dist/esm/types/utils/styles.d.ts +0 -17
  242. package/src/utils/styles.ts +0 -42
@@ -0,0 +1,838 @@
1
+ @use "config" as *;
2
+ @use "inputs";
3
+ @use "mixins/backdrop";
4
+ @use "mixins/scrollbar";
5
+
6
+ $zindex-fixed: $zindex-fixed !default;
7
+ $border-radius: $border-radius !default;
8
+ $opacity-backdrop: $opacity-backdrop !default;
9
+
10
+ :root {
11
+ --pdfViewer-padding-bottom: 0;
12
+ --page-margin: 2rem auto;
13
+ --page-border: none;
14
+ --spreadHorizontalWrapped-margin-LR: -3.5px;
15
+ --zoom-factor: 1;
16
+ --viewport-scale-factor: 1;
17
+ }
18
+
19
+ // How to test?
20
+ @media screen and (forced-colors: active) {
21
+ :root {
22
+ --pdfViewer-padding-bottom: 9px;
23
+ --page-margin: 9px auto 0;
24
+ --page-border: none;
25
+ --spreadHorizontalWrapped-margin-LR: 4.5px;
26
+ }
27
+ }
28
+
29
+ :root {
30
+ --annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
31
+ }
32
+
33
+ :root {
34
+ --xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");
35
+ }
36
+
37
+ .wy-content-pdf {
38
+
39
+ .wy-input[data-pdf-target=pageNumber] {
40
+ width: 3rem;
41
+ }
42
+
43
+ .wy-input[data-pdf-target=zoomLevel] {
44
+ width: 5rem;
45
+ }
46
+
47
+ .wy-pdf-container {
48
+ position: absolute;
49
+ width: 100%;
50
+ height: 100%;
51
+ bottom: 0;
52
+ left: 0;
53
+
54
+ @include scrollbar.scroll-y;
55
+ @include scrollbar.scroll-x;
56
+
57
+ .wy-scrollbars & {
58
+ @include scrollbar.custom-scrollbar;
59
+
60
+ @supports (overflow-y: overlay) {
61
+ overflow-y: overlay;
62
+ }
63
+ }
64
+ }
65
+ /* Copyright 2014 Mozilla Foundation
66
+ *
67
+ * Licensed under the Apache License, Version 2.0 (the "License");
68
+ * you may not use this file except in compliance with the License.
69
+ * You may obtain a copy of the License at
70
+ *
71
+ * http://www.apache.org/licenses/LICENSE-2.0
72
+ *
73
+ * Unless required by applicable law or agreed to in writing, software
74
+ * distributed under the License is distributed on an "AS IS" BASIS,
75
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
76
+ * See the License for the specific language governing permissions and
77
+ * limitations under the License.
78
+ */
79
+
80
+ .textLayer {
81
+ position: absolute;
82
+ text-align: initial;
83
+ left: 0;
84
+ top: 0;
85
+ right: 0;
86
+ bottom: 0;
87
+ overflow: hidden;
88
+ opacity: 0.2;
89
+ line-height: 1;
90
+ -webkit-text-size-adjust: none;
91
+ -moz-text-size-adjust: none;
92
+ text-size-adjust: none;
93
+ }
94
+
95
+ .textLayer span,
96
+ .textLayer br {
97
+ color: transparent;
98
+ position: absolute;
99
+ white-space: pre;
100
+ cursor: text;
101
+ transform-origin: 0% 0%;
102
+ }
103
+ /* Only necessary in Google Chrome, see issue 14205, and most unfortunately
104
+ * the problem doesn't show up in "text" reference tests. */
105
+ .textLayer span.markedContent {
106
+ top: 0;
107
+ height: 0;
108
+ }
109
+
110
+ .textLayer .highlight {
111
+ margin: -1px;
112
+ padding: 1px;
113
+ background-color: rgba(180, 0, 170, 1);
114
+ border-radius: 4px;
115
+ }
116
+
117
+ .textLayer .highlight.appended {
118
+ position: initial;
119
+ }
120
+
121
+ .textLayer .highlight.begin {
122
+ border-radius: 4px 0 0 4px;
123
+ }
124
+
125
+ .textLayer .highlight.end {
126
+ border-radius: 0 4px 4px 0;
127
+ }
128
+
129
+ .textLayer .highlight.middle {
130
+ border-radius: 0;
131
+ }
132
+
133
+ .textLayer .highlight.selected {
134
+ background-color: rgba(0, 100, 0, 1);
135
+ }
136
+
137
+ .textLayer ::-moz-selection {
138
+ background: rgba(0, 0, 255, 1);
139
+ }
140
+
141
+ .textLayer ::selection {
142
+ background: rgba(0, 0, 255, 1);
143
+ }
144
+ /* Avoids https://github.com/mozilla/pdf.js/issues/13840 in Chrome */
145
+ .textLayer br::-moz-selection {
146
+ background: transparent;
147
+ }
148
+
149
+ .textLayer br::selection {
150
+ background: transparent;
151
+ }
152
+
153
+ .textLayer .endOfContent {
154
+ display: block;
155
+ position: absolute;
156
+ left: 0;
157
+ top: 100%;
158
+ right: 0;
159
+ bottom: 0;
160
+ z-index: -1;
161
+ cursor: default;
162
+ -webkit-user-select: none;
163
+ -moz-user-select: none;
164
+ user-select: none;
165
+ }
166
+
167
+ .textLayer .endOfContent.active {
168
+ top: 0;
169
+ }
170
+
171
+
172
+
173
+
174
+ .annotationLayer section {
175
+ position: absolute;
176
+ text-align: initial;
177
+ }
178
+
179
+ .annotationLayer .linkAnnotation > a,
180
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a {
181
+ position: absolute;
182
+ font-size: 1em;
183
+ top: 0;
184
+ left: 0;
185
+ width: 100%;
186
+ height: 100%;
187
+ }
188
+
189
+ .annotationLayer .buttonWidgetAnnotation.pushButton > canvas {
190
+ position: relative;
191
+ top: 0;
192
+ left: 0;
193
+ z-index: -1;
194
+ }
195
+
196
+ .annotationLayer .linkAnnotation > a:hover,
197
+ .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
198
+ opacity: 0.2;
199
+ background: rgba(255, 255, 0, 1);
200
+ box-shadow: 0 2px 10px rgba(255, 255, 0, 1);
201
+ }
202
+
203
+ .annotationLayer .textAnnotation img {
204
+ position: absolute;
205
+ cursor: pointer;
206
+ }
207
+
208
+ .annotationLayer .textWidgetAnnotation input,
209
+ .annotationLayer .textWidgetAnnotation textarea,
210
+ .annotationLayer .choiceWidgetAnnotation select,
211
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
212
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
213
+ background-image: var(--annotation-unfocused-field-background);
214
+ border: 1px solid transparent;
215
+ box-sizing: border-box;
216
+ font-size: 9px;
217
+ height: 100%;
218
+ margin: 0;
219
+ padding: 0 3px;
220
+ vertical-align: top;
221
+ width: 100%;
222
+ }
223
+
224
+ .annotationLayer .choiceWidgetAnnotation select option {
225
+ padding: 0;
226
+ }
227
+
228
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
229
+ border-radius: 50%;
230
+ }
231
+
232
+ .annotationLayer .textWidgetAnnotation textarea {
233
+ font: message-box;
234
+ font-size: 9px;
235
+ resize: none;
236
+ }
237
+
238
+ .annotationLayer .textWidgetAnnotation input[disabled],
239
+ .annotationLayer .textWidgetAnnotation textarea[disabled],
240
+ .annotationLayer .choiceWidgetAnnotation select[disabled],
241
+ .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
242
+ .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
243
+ background: none;
244
+ border: 1px solid transparent;
245
+ cursor: not-allowed;
246
+ }
247
+
248
+ .annotationLayer .textWidgetAnnotation input:hover,
249
+ .annotationLayer .textWidgetAnnotation textarea:hover,
250
+ .annotationLayer .choiceWidgetAnnotation select:hover,
251
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
252
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
253
+ border: 1px solid rgba(0, 0, 0, 1);
254
+ }
255
+
256
+ .annotationLayer .textWidgetAnnotation input:focus,
257
+ .annotationLayer .textWidgetAnnotation textarea:focus,
258
+ .annotationLayer .choiceWidgetAnnotation select:focus {
259
+ background: none;
260
+ border: 1px solid transparent;
261
+ }
262
+
263
+ .annotationLayer .textWidgetAnnotation input :focus,
264
+ .annotationLayer .textWidgetAnnotation textarea :focus,
265
+ .annotationLayer .choiceWidgetAnnotation select :focus,
266
+ .annotationLayer .buttonWidgetAnnotation.checkBox :focus,
267
+ .annotationLayer .buttonWidgetAnnotation.radioButton :focus {
268
+ background-image: none;
269
+ background-color: transparent;
270
+ outline: auto;
271
+ }
272
+
273
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
274
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
275
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
276
+ background-color: rgba(0, 0, 0, 1);
277
+ content: "";
278
+ display: block;
279
+ position: absolute;
280
+ }
281
+
282
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
283
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
284
+ height: 80%;
285
+ left: 45%;
286
+ width: 1px;
287
+ }
288
+
289
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
290
+ transform: rotate(45deg);
291
+ }
292
+
293
+ .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
294
+ transform: rotate(-45deg);
295
+ }
296
+
297
+ .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
298
+ border-radius: 50%;
299
+ height: 50%;
300
+ left: 30%;
301
+ top: 20%;
302
+ width: 50%;
303
+ }
304
+
305
+ .annotationLayer .textWidgetAnnotation input.comb {
306
+ font-family: monospace;
307
+ padding-left: 2px;
308
+ padding-right: 0;
309
+ }
310
+
311
+ .annotationLayer .textWidgetAnnotation input.comb:focus {
312
+ /*
313
+ * Letter spacing is placed on the right side of each character. Hence, the
314
+ * letter spacing of the last character may be placed outside the visible
315
+ * area, causing horizontal scrolling. We avoid this by extending the width
316
+ * when the element has focus and revert this when it loses focus.
317
+ */
318
+ width: 103%;
319
+ }
320
+
321
+ .annotationLayer .buttonWidgetAnnotation.checkBox input,
322
+ .annotationLayer .buttonWidgetAnnotation.radioButton input {
323
+ -webkit-appearance: none;
324
+ -moz-appearance: none;
325
+ appearance: none;
326
+ padding: 0;
327
+ }
328
+
329
+ .annotationLayer .popupWrapper {
330
+ position: absolute;
331
+ width: 20em;
332
+ }
333
+
334
+ .annotationLayer .popup {
335
+ position: absolute;
336
+ z-index: 200;
337
+ max-width: 20em;
338
+ background-color: rgba(255, 255, 153, 1);
339
+ box-shadow: 0 2px 5px rgba(136, 136, 136, 1);
340
+ border-radius: 2px;
341
+ padding: 6px;
342
+ margin-left: 5px;
343
+ cursor: pointer;
344
+ font: message-box;
345
+ font-size: 9px;
346
+ white-space: normal;
347
+ word-wrap: break-word;
348
+ }
349
+
350
+ .annotationLayer .popup > * {
351
+ font-size: 9px;
352
+ }
353
+
354
+ .annotationLayer .popup h1 {
355
+ display: inline-block;
356
+ }
357
+
358
+ .annotationLayer .popupDate {
359
+ display: inline-block;
360
+ margin-left: 5px;
361
+ }
362
+
363
+ .annotationLayer .popupContent {
364
+ border-top: 1px solid rgba(51, 51, 51, 1);
365
+ margin-top: 2px;
366
+ padding-top: 2px;
367
+ }
368
+
369
+ .annotationLayer .richText > * {
370
+ white-space: pre-wrap;
371
+ }
372
+
373
+ .annotationLayer .highlightAnnotation,
374
+ .annotationLayer .underlineAnnotation,
375
+ .annotationLayer .squigglyAnnotation,
376
+ .annotationLayer .strikeoutAnnotation,
377
+ .annotationLayer .freeTextAnnotation,
378
+ .annotationLayer .lineAnnotation svg line,
379
+ .annotationLayer .squareAnnotation svg rect,
380
+ .annotationLayer .circleAnnotation svg ellipse,
381
+ .annotationLayer .polylineAnnotation svg polyline,
382
+ .annotationLayer .polygonAnnotation svg polygon,
383
+ .annotationLayer .caretAnnotation,
384
+ .annotationLayer .inkAnnotation svg polyline,
385
+ .annotationLayer .stampAnnotation,
386
+ .annotationLayer .fileAttachmentAnnotation {
387
+ cursor: pointer;
388
+ }
389
+
390
+
391
+
392
+
393
+ .xfaLayer .highlight {
394
+ margin: -1px;
395
+ padding: 1px;
396
+ background-color: rgba(239, 203, 237, 1);
397
+ border-radius: 4px;
398
+ }
399
+
400
+ .xfaLayer .highlight.appended {
401
+ position: initial;
402
+ }
403
+
404
+ .xfaLayer .highlight.begin {
405
+ border-radius: 4px 0 0 4px;
406
+ }
407
+
408
+ .xfaLayer .highlight.end {
409
+ border-radius: 0 4px 4px 0;
410
+ }
411
+
412
+ .xfaLayer .highlight.middle {
413
+ border-radius: 0;
414
+ }
415
+
416
+ .xfaLayer .highlight.selected {
417
+ background-color: rgba(203, 223, 203, 1);
418
+ }
419
+
420
+ .xfaLayer ::-moz-selection {
421
+ background: rgba(0, 0, 255, 1);
422
+ }
423
+
424
+ .xfaLayer ::selection {
425
+ background: rgba(0, 0, 255, 1);
426
+ }
427
+
428
+ .xfaPage {
429
+ overflow: hidden;
430
+ position: relative;
431
+ }
432
+
433
+ .xfaContentarea {
434
+ position: absolute;
435
+ }
436
+
437
+ .xfaPrintOnly {
438
+ display: none;
439
+ }
440
+
441
+ .xfaLayer {
442
+ position: absolute;
443
+ text-align: initial;
444
+ top: 0;
445
+ left: 0;
446
+ transform-origin: 0 0;
447
+ line-height: 1.2;
448
+ }
449
+
450
+ .xfaLayer * {
451
+ color: inherit;
452
+ font: inherit;
453
+ font-style: inherit;
454
+ font-weight: inherit;
455
+ font-kerning: inherit;
456
+ letter-spacing: -0.01px;
457
+ text-align: inherit;
458
+ text-decoration: inherit;
459
+ box-sizing: border-box;
460
+ background-color: transparent;
461
+ padding: 0;
462
+ margin: 0;
463
+ pointer-events: auto;
464
+ line-height: inherit;
465
+ }
466
+
467
+ .xfaLayer div {
468
+ pointer-events: none;
469
+ }
470
+
471
+ .xfaLayer svg {
472
+ pointer-events: none;
473
+ }
474
+
475
+ .xfaLayer svg * {
476
+ pointer-events: none;
477
+ }
478
+
479
+ .xfaLayer a {
480
+ color: blue;
481
+ }
482
+
483
+ .xfaRich li {
484
+ margin-left: 3em;
485
+ }
486
+
487
+ .xfaFont {
488
+ color: black;
489
+ font-weight: normal;
490
+ font-kerning: none;
491
+ font-size: 10px;
492
+ font-style: normal;
493
+ letter-spacing: 0;
494
+ text-decoration: none;
495
+ vertical-align: 0;
496
+ }
497
+
498
+ .xfaCaption {
499
+ overflow: hidden;
500
+ flex: 0 0 auto;
501
+ }
502
+
503
+ .xfaCaptionForCheckButton {
504
+ overflow: hidden;
505
+ flex: 1 1 auto;
506
+ }
507
+
508
+ .xfaLabel {
509
+ height: 100%;
510
+ width: 100%;
511
+ }
512
+
513
+ .xfaLeft {
514
+ display: flex;
515
+ flex-direction: row;
516
+ align-items: center;
517
+ }
518
+
519
+ .xfaRight {
520
+ display: flex;
521
+ flex-direction: row-reverse;
522
+ align-items: center;
523
+ }
524
+
525
+ .xfaLeft > .xfaCaption,
526
+ .xfaLeft > .xfaCaptionForCheckButton,
527
+ .xfaRight > .xfaCaption,
528
+ .xfaRight > .xfaCaptionForCheckButton {
529
+ max-height: 100%;
530
+ }
531
+
532
+ .xfaTop {
533
+ display: flex;
534
+ flex-direction: column;
535
+ align-items: flex-start;
536
+ }
537
+
538
+ .xfaBottom {
539
+ display: flex;
540
+ flex-direction: column-reverse;
541
+ align-items: flex-start;
542
+ }
543
+
544
+ .xfaTop > .xfaCaption,
545
+ .xfaTop > .xfaCaptionForCheckButton,
546
+ .xfaBottom > .xfaCaption,
547
+ .xfaBottom > .xfaCaptionForCheckButton {
548
+ width: 100%;
549
+ }
550
+
551
+ .xfaBorder {
552
+ background-color: transparent;
553
+ position: absolute;
554
+ pointer-events: none;
555
+ }
556
+
557
+ .xfaWrapped {
558
+ width: 100%;
559
+ height: 100%;
560
+ }
561
+
562
+ .xfaTextfield:focus,
563
+ .xfaSelect:focus {
564
+ background-image: none;
565
+ background-color: transparent;
566
+ outline: auto;
567
+ outline-offset: -1px;
568
+ }
569
+
570
+ .xfaCheckbox:focus,
571
+ .xfaRadio:focus {
572
+ outline: auto;
573
+ }
574
+
575
+ .xfaTextfield,
576
+ .xfaSelect {
577
+ height: 100%;
578
+ width: 100%;
579
+ flex: 1 1 auto;
580
+ border: none;
581
+ resize: none;
582
+ background-image: var(--xfa-unfocused-field-background);
583
+ }
584
+
585
+ .xfaTop > .xfaTextfield,
586
+ .xfaTop > .xfaSelect,
587
+ .xfaBottom > .xfaTextfield,
588
+ .xfaBottom > .xfaSelect {
589
+ flex: 0 1 auto;
590
+ }
591
+
592
+ .xfaButton {
593
+ cursor: pointer;
594
+ width: 100%;
595
+ height: 100%;
596
+ border: none;
597
+ text-align: center;
598
+ }
599
+
600
+ .xfaLink {
601
+ width: 100%;
602
+ height: 100%;
603
+ position: absolute;
604
+ top: 0;
605
+ left: 0;
606
+ }
607
+
608
+ .xfaCheckbox,
609
+ .xfaRadio {
610
+ width: 100%;
611
+ height: 100%;
612
+ flex: 0 0 auto;
613
+ border: none;
614
+ }
615
+
616
+ .xfaRich {
617
+ white-space: pre-wrap;
618
+ width: 100%;
619
+ height: 100%;
620
+ }
621
+
622
+ .xfaImage {
623
+ -o-object-position: left top;
624
+ object-position: left top;
625
+ -o-object-fit: contain;
626
+ object-fit: contain;
627
+ width: 100%;
628
+ height: 100%;
629
+ }
630
+
631
+ .xfaLrTb,
632
+ .xfaRlTb,
633
+ .xfaTb {
634
+ display: flex;
635
+ flex-direction: column;
636
+ align-items: stretch;
637
+ }
638
+
639
+ .xfaLr {
640
+ display: flex;
641
+ flex-direction: row;
642
+ align-items: stretch;
643
+ }
644
+
645
+ .xfaRl {
646
+ display: flex;
647
+ flex-direction: row-reverse;
648
+ align-items: stretch;
649
+ }
650
+
651
+ .xfaTb > div {
652
+ justify-content: left;
653
+ }
654
+
655
+ .xfaPosition {
656
+ position: relative;
657
+ }
658
+
659
+ .xfaArea {
660
+ position: relative;
661
+ }
662
+
663
+ .xfaValignMiddle {
664
+ display: flex;
665
+ align-items: center;
666
+ }
667
+
668
+ .xfaTable {
669
+ display: flex;
670
+ flex-direction: column;
671
+ align-items: stretch;
672
+ }
673
+
674
+ .xfaTable .xfaRow {
675
+ display: flex;
676
+ flex-direction: row;
677
+ align-items: stretch;
678
+ }
679
+
680
+ .xfaTable .xfaRlRow {
681
+ display: flex;
682
+ flex-direction: row-reverse;
683
+ align-items: stretch;
684
+ flex: 1;
685
+ }
686
+
687
+ .xfaTable .xfaRlRow > div {
688
+ flex: 1;
689
+ }
690
+
691
+ .xfaNonInteractive input,
692
+ .xfaNonInteractive textarea,
693
+ .xfaDisabled input,
694
+ .xfaDisabled textarea,
695
+ .xfaReadOnly input,
696
+ .xfaReadOnly textarea {
697
+ background: initial;
698
+ }
699
+
700
+ @media print {
701
+ .xfaTextfield,
702
+ .xfaSelect {
703
+ background: transparent;
704
+ }
705
+
706
+ .xfaSelect {
707
+ -webkit-appearance: none;
708
+ -moz-appearance: none;
709
+ appearance: none;
710
+ text-indent: 1px;
711
+ text-overflow: "";
712
+ }
713
+ }
714
+
715
+
716
+
717
+ .pdfViewer {
718
+ padding-bottom: var(--pdfViewer-padding-bottom);
719
+ }
720
+
721
+ .pdfViewer .canvasWrapper {
722
+ overflow: hidden;
723
+ }
724
+
725
+ .pdfViewer .page {
726
+ direction: ltr;
727
+ width: 816px;
728
+ height: 1056px;
729
+ margin: var(--page-margin);
730
+ position: relative;
731
+ overflow: visible;
732
+ border: var(--page-border);
733
+ background-clip: content-box;
734
+ //border-image: url(/images/pdf/shadow.png) 9 9 repeat;
735
+ box-shadow: $box-shadow-sm;
736
+ background-color: rgba(255, 255, 255, 1);
737
+ }
738
+
739
+ .pdfViewer .dummyPage {
740
+ position: relative;
741
+ width: 0;
742
+ /* The height is set via JS, see `BaseViewer.#ensurePageViewVisible`. */
743
+ }
744
+
745
+ .pdfViewer.removePageBorders .page {
746
+ margin: 0 auto 10px;
747
+ border: none;
748
+ }
749
+
750
+ .pdfViewer.singlePageView {
751
+ display: inline-block;
752
+ }
753
+
754
+ .pdfViewer.singlePageView .page {
755
+ margin: 0;
756
+ border: none;
757
+ }
758
+
759
+ .pdfViewer.scrollHorizontal,
760
+ .pdfViewer.scrollWrapped,
761
+ .spread {
762
+ margin-left: 3.5px;
763
+ margin-right: 3.5px;
764
+ text-align: center;
765
+ }
766
+
767
+ .pdfViewer.scrollHorizontal,
768
+ .spread {
769
+ white-space: nowrap;
770
+ }
771
+
772
+ .pdfViewer.removePageBorders,
773
+ .pdfViewer.scrollHorizontal .spread,
774
+ .pdfViewer.scrollWrapped .spread {
775
+ margin-left: 0;
776
+ margin-right: 0;
777
+ }
778
+
779
+ .spread .page,
780
+ .spread .dummyPage,
781
+ .pdfViewer.scrollHorizontal .page,
782
+ .pdfViewer.scrollWrapped .page,
783
+ .pdfViewer.scrollHorizontal .spread,
784
+ .pdfViewer.scrollWrapped .spread {
785
+ display: inline-block;
786
+ vertical-align: middle;
787
+ }
788
+
789
+ .spread .page,
790
+ .pdfViewer.scrollHorizontal .page,
791
+ .pdfViewer.scrollWrapped .page {
792
+ margin-left: var(--spreadHorizontalWrapped-margin-LR);
793
+ margin-right: var(--spreadHorizontalWrapped-margin-LR);
794
+ }
795
+
796
+ .pdfViewer.removePageBorders .spread .page,
797
+ .pdfViewer.removePageBorders.scrollHorizontal .page,
798
+ .pdfViewer.removePageBorders.scrollWrapped .page {
799
+ margin-left: 5px;
800
+ margin-right: 5px;
801
+ }
802
+
803
+ .pdfViewer .page canvas {
804
+ margin: 0;
805
+ display: block;
806
+ }
807
+
808
+ .pdfViewer .page canvas[hidden] {
809
+ display: none;
810
+ }
811
+
812
+ .pdfViewer .page .loadingIcon {
813
+ position: absolute;
814
+ display: block;
815
+ left: 0;
816
+ top: 0;
817
+ right: 0;
818
+ bottom: 0;
819
+ //background: url("/images/pdf/loading-icon.gif") center no-repeat;
820
+ }
821
+
822
+ .pdfViewer .page .loadingIcon.notVisible {
823
+ background: none;
824
+ }
825
+
826
+ .pdfPresentationMode .pdfViewer {
827
+ padding-bottom: 0;
828
+ }
829
+
830
+ .pdfPresentationMode .spread {
831
+ margin: 0;
832
+ }
833
+
834
+ .pdfPresentationMode .pdfViewer .page {
835
+ margin: 0 auto;
836
+ border: 2px solid transparent;
837
+ }
838
+ }