@itfin/components 1.2.38 → 1.2.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.2.38",
3
+ "version": "1.2.44",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -27,6 +27,7 @@
27
27
  "core-js": "^3.7.0",
28
28
  "debug": "^4.2.0",
29
29
  "intersection-observer": "^0.12.2",
30
+ "@vue/composition-api": "^1.7.1",
30
31
  "lodash": "^4.17.20",
31
32
  "luxon": "^3.1.1",
32
33
  "pdfjs-dist": "^2.10.377",
@@ -55,7 +56,7 @@
55
56
  "sass": "^1.29.0",
56
57
  "sass-loader": "^10.0.5",
57
58
  "vue-class-component": "^7.2.6",
58
- "vue-template-compiler": "^2.6.12"
59
+ "vue-template-compiler": "=2.6.14"
59
60
  },
60
61
  "eslintConfig": {
61
62
  "root": true,
@@ -14,7 +14,7 @@
14
14
  @import './components/icon';
15
15
  @import './components/modal';
16
16
  @import './components/pagination';
17
- @import './components/pdf-viewer';
17
+ //@import './components/pdf-viewer'; // не включати, зламає генерацію пдф зі сторінок
18
18
  @import './components/popover';
19
19
  @import './components/segmeneted-control';
20
20
  @import './components/select';
@@ -1013,6 +1013,9 @@
1013
1013
  <slot v-bind="slotProps" name="footer"></slot>
1014
1014
  </div>
1015
1015
  </template>
1016
+ <style lang="scss">
1017
+ @import './styles/index.scss';
1018
+ </style>
1016
1019
  <script>
1017
1020
  import {
1018
1021
  Component, Prop, Vue, Watch,
@@ -0,0 +1,205 @@
1
+ /* Copyright 2014 Mozilla Foundation
2
+ *
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+
16
+ .pdf-app .annotationLayer section {
17
+ position: absolute;
18
+ }
19
+
20
+ .pdf-app .annotationLayer .linkAnnotation > a,
21
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton > a {
22
+ position: absolute;
23
+ font-size: 1em;
24
+ top: 0;
25
+ left: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ }
29
+
30
+ .pdf-app .annotationLayer .linkAnnotation > a:hover,
31
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
32
+ opacity: 0.2;
33
+ background: rgba(255, 255, 0, 1);
34
+ box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
35
+ }
36
+
37
+ .pdf-app .annotationLayer .textAnnotation img {
38
+ position: absolute;
39
+ cursor: pointer;
40
+ }
41
+
42
+ .pdf-app .annotationLayer .textWidgetAnnotation input,
43
+ .pdf-app .annotationLayer .textWidgetAnnotation textarea,
44
+ .pdf-app .annotationLayer .choiceWidgetAnnotation select,
45
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,
46
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input {
47
+ background-color: rgba(0, 54, 255, 0.13);
48
+ border: 1px solid transparent;
49
+ box-sizing: border-box;
50
+ font-size: 9px;
51
+ height: 100%;
52
+ margin: 0;
53
+ padding: 0 3px;
54
+ vertical-align: top;
55
+ width: 100%;
56
+ }
57
+
58
+ .pdf-app .annotationLayer .choiceWidgetAnnotation select option {
59
+ padding: 0;
60
+ }
61
+
62
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input {
63
+ border-radius: 50%;
64
+ }
65
+
66
+ .pdf-app .annotationLayer .textWidgetAnnotation textarea {
67
+ font: message-box;
68
+ font-size: 9px;
69
+ resize: none;
70
+ }
71
+
72
+ .pdf-app .annotationLayer .textWidgetAnnotation input[disabled],
73
+ .pdf-app .annotationLayer .textWidgetAnnotation textarea[disabled],
74
+ .pdf-app .annotationLayer .choiceWidgetAnnotation select[disabled],
75
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
76
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
77
+ background: none;
78
+ border: 1px solid transparent;
79
+ cursor: not-allowed;
80
+ }
81
+
82
+ .pdf-app .annotationLayer .textWidgetAnnotation input:hover,
83
+ .pdf-app .annotationLayer .textWidgetAnnotation textarea:hover,
84
+ .pdf-app .annotationLayer .choiceWidgetAnnotation select:hover,
85
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
86
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
87
+ border: 1px solid rgba(0, 0, 0, 1);
88
+ }
89
+
90
+ .pdf-app .annotationLayer .textWidgetAnnotation input:focus,
91
+ .pdf-app .annotationLayer .textWidgetAnnotation textarea:focus,
92
+ .pdf-app .annotationLayer .choiceWidgetAnnotation select:focus {
93
+ background: none;
94
+ border: 1px solid transparent;
95
+ }
96
+
97
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
98
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
99
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
100
+ background-color: rgba(0, 0, 0, 1);
101
+ content: "";
102
+ display: block;
103
+ position: absolute;
104
+ }
105
+
106
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
107
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
108
+ height: 80%;
109
+ left: 45%;
110
+ width: 1px;
111
+ }
112
+
113
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
114
+ transform: rotate(45deg);
115
+ }
116
+
117
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
118
+ transform: rotate(-45deg);
119
+ }
120
+
121
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
122
+ border-radius: 50%;
123
+ height: 50%;
124
+ left: 30%;
125
+ top: 20%;
126
+ width: 50%;
127
+ }
128
+
129
+ .pdf-app .annotationLayer .textWidgetAnnotation input.comb {
130
+ font-family: monospace;
131
+ padding-left: 2px;
132
+ padding-right: 0;
133
+ }
134
+
135
+ .pdf-app .annotationLayer .textWidgetAnnotation input.comb:focus {
136
+ /*
137
+ * Letter spacing is placed on the right side of each character. Hence, the
138
+ * letter spacing of the last character may be placed outside the visible
139
+ * area, causing horizontal scrolling. We avoid this by extending the width
140
+ * when the element has focus and revert this when it loses focus.
141
+ */
142
+ width: 115%;
143
+ }
144
+
145
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.checkBox input,
146
+ .pdf-app .annotationLayer .buttonWidgetAnnotation.radioButton input {
147
+ appearance: none;
148
+ padding: 0;
149
+ }
150
+
151
+ .pdf-app .annotationLayer .popupWrapper {
152
+ position: absolute;
153
+ width: 20em;
154
+ }
155
+
156
+ .pdf-app .annotationLayer .popup {
157
+ position: absolute;
158
+ z-index: 200;
159
+ max-width: 20em;
160
+ background-color: rgba(255, 255, 153, 1);
161
+ box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
162
+ border-radius: 2px;
163
+ padding: 6px;
164
+ margin-left: 5px;
165
+ cursor: pointer;
166
+ font: message-box;
167
+ font-size: 9px;
168
+ word-wrap: break-word;
169
+ }
170
+
171
+ .pdf-app .annotationLayer .popup > * {
172
+ font-size: 9px;
173
+ }
174
+
175
+ .pdf-app .annotationLayer .popup h1 {
176
+ display: inline-block;
177
+ }
178
+
179
+ .pdf-app .annotationLayer .popup span {
180
+ display: inline-block;
181
+ margin-left: 5px;
182
+ }
183
+
184
+ .pdf-app .annotationLayer .popup p {
185
+ border-top: 1px solid rgba(51, 51, 51, 1);
186
+ margin-top: 2px;
187
+ padding-top: 2px;
188
+ }
189
+
190
+ .pdf-app .annotationLayer .highlightAnnotation,
191
+ .pdf-app .annotationLayer .underlineAnnotation,
192
+ .pdf-app .annotationLayer .squigglyAnnotation,
193
+ .pdf-app .annotationLayer .strikeoutAnnotation,
194
+ .pdf-app .annotationLayer .freeTextAnnotation,
195
+ .pdf-app .annotationLayer .lineAnnotation svg line,
196
+ .pdf-app .annotationLayer .squareAnnotation svg rect,
197
+ .pdf-app .annotationLayer .circleAnnotation svg ellipse,
198
+ .pdf-app .annotationLayer .polylineAnnotation svg polyline,
199
+ .pdf-app .annotationLayer .polygonAnnotation svg polygon,
200
+ .pdf-app .annotationLayer .caretAnnotation,
201
+ .pdf-app .annotationLayer .inkAnnotation svg polyline,
202
+ .pdf-app .annotationLayer .stampAnnotation,
203
+ .pdf-app .annotationLayer .fileAttachmentAnnotation {
204
+ cursor: pointer;
205
+ }