@open-file-viewer/core 0.1.19 → 0.1.21
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/dist/index.cjs +323 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +323 -71
- package/dist/index.js.map +1 -1
- package/dist/style.css +98 -59
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -605,6 +605,26 @@
|
|
|
605
605
|
font-weight: 600;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
+
.ofv-pdf-web-fallback {
|
|
609
|
+
display: flex;
|
|
610
|
+
width: 100%;
|
|
611
|
+
max-width: 100%;
|
|
612
|
+
height: 100%;
|
|
613
|
+
min-height: 480px;
|
|
614
|
+
min-width: 0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.ofv-pdf-web-fallback-frame {
|
|
618
|
+
flex: 1 1 auto;
|
|
619
|
+
width: 100%;
|
|
620
|
+
max-width: 100%;
|
|
621
|
+
min-width: 0;
|
|
622
|
+
height: 100%;
|
|
623
|
+
min-height: inherit;
|
|
624
|
+
border: 0;
|
|
625
|
+
background: #fff;
|
|
626
|
+
}
|
|
627
|
+
|
|
608
628
|
.ofv-panel {
|
|
609
629
|
width: 100%;
|
|
610
630
|
max-width: 100%;
|
|
@@ -786,15 +806,31 @@
|
|
|
786
806
|
}
|
|
787
807
|
|
|
788
808
|
.ofv-msdoc-line-numbered {
|
|
789
|
-
padding: calc(44px * var(--ofv-office-zoom, 1)) calc(
|
|
809
|
+
padding: calc(44px * var(--ofv-office-zoom, 1)) calc(114px * var(--ofv-office-zoom, 1)) calc(86px * var(--ofv-office-zoom, 1)) calc(132px * var(--ofv-office-zoom, 1));
|
|
810
|
+
font-size: calc(9pt * var(--ofv-office-zoom, 1));
|
|
811
|
+
line-height: 1.25;
|
|
790
812
|
}
|
|
791
813
|
|
|
792
814
|
.ofv-msdoc-page-header {
|
|
815
|
+
position: relative;
|
|
793
816
|
margin: 0 0 calc(8px * var(--ofv-office-zoom, 1));
|
|
794
817
|
padding: 0 0 calc(8px * var(--ofv-office-zoom, 1));
|
|
795
818
|
border-bottom: 1px solid #6b7280;
|
|
796
819
|
}
|
|
797
820
|
|
|
821
|
+
.ofv-msdoc-oasis-header::before {
|
|
822
|
+
position: absolute;
|
|
823
|
+
top: calc(20px * var(--ofv-office-zoom, 1));
|
|
824
|
+
right: calc(100% + 28px * var(--ofv-office-zoom, 1));
|
|
825
|
+
width: calc(30px * var(--ofv-office-zoom, 1));
|
|
826
|
+
color: #111827;
|
|
827
|
+
content: "1";
|
|
828
|
+
font-family: "Times New Roman", Times, serif;
|
|
829
|
+
font-size: calc(12px * var(--ofv-office-zoom, 1));
|
|
830
|
+
font-weight: 400;
|
|
831
|
+
text-align: right;
|
|
832
|
+
}
|
|
833
|
+
|
|
798
834
|
.ofv-msdoc-oasis-logo {
|
|
799
835
|
display: flex;
|
|
800
836
|
align-items: center;
|
|
@@ -813,7 +849,7 @@
|
|
|
813
849
|
}
|
|
814
850
|
|
|
815
851
|
.ofv-msdoc-oasis-logo-image img {
|
|
816
|
-
width: calc(
|
|
852
|
+
width: calc(190px * var(--ofv-office-zoom, 1));
|
|
817
853
|
height: auto;
|
|
818
854
|
max-width: 100%;
|
|
819
855
|
object-fit: contain;
|
|
@@ -864,6 +900,10 @@
|
|
|
864
900
|
line-height: 1.18;
|
|
865
901
|
}
|
|
866
902
|
|
|
903
|
+
.ofv-msdoc-line-numbered .ofv-msdoc-title {
|
|
904
|
+
font-size: calc(20px * var(--ofv-office-zoom, 1));
|
|
905
|
+
}
|
|
906
|
+
|
|
867
907
|
.ofv-msdoc-form-document .ofv-msdoc-title {
|
|
868
908
|
color: #111827;
|
|
869
909
|
font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
|
|
@@ -879,6 +919,11 @@
|
|
|
879
919
|
line-height: 1.2;
|
|
880
920
|
}
|
|
881
921
|
|
|
922
|
+
.ofv-msdoc-line-numbered .ofv-msdoc-subtitle {
|
|
923
|
+
margin-bottom: calc(14px * var(--ofv-office-zoom, 1));
|
|
924
|
+
font-size: calc(16px * var(--ofv-office-zoom, 1));
|
|
925
|
+
}
|
|
926
|
+
|
|
882
927
|
.ofv-msdoc-heading {
|
|
883
928
|
margin: calc(18px * var(--ofv-office-zoom, 1)) 0 calc(6px * var(--ofv-office-zoom, 1));
|
|
884
929
|
color: #000099;
|
|
@@ -973,50 +1018,66 @@
|
|
|
973
1018
|
|
|
974
1019
|
.ofv-msdoc-toc {
|
|
975
1020
|
display: grid;
|
|
976
|
-
grid-template-columns: auto max-content;
|
|
977
|
-
column-gap: calc(
|
|
1021
|
+
grid-template-columns: auto minmax(calc(20px * var(--ofv-office-zoom, 1)), 1fr) max-content;
|
|
1022
|
+
column-gap: calc(3px * var(--ofv-office-zoom, 1));
|
|
978
1023
|
align-items: baseline;
|
|
979
|
-
margin: calc(
|
|
1024
|
+
margin: calc(1px * var(--ofv-office-zoom, 1)) 0;
|
|
980
1025
|
color: #0000ee;
|
|
981
1026
|
}
|
|
982
1027
|
|
|
983
|
-
.ofv-msdoc-toc
|
|
984
|
-
|
|
985
|
-
grid-row: 1;
|
|
986
|
-
align-self: end;
|
|
987
|
-
border-bottom: 1px dotted #9ca3af;
|
|
988
|
-
content: "";
|
|
1028
|
+
.ofv-msdoc-line-numbered .ofv-msdoc-toc {
|
|
1029
|
+
color: #111827;
|
|
989
1030
|
}
|
|
990
1031
|
|
|
991
1032
|
.ofv-msdoc-toc span {
|
|
992
1033
|
position: relative;
|
|
993
1034
|
z-index: 1;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.ofv-msdoc-toc-title {
|
|
994
1038
|
background: #fff;
|
|
1039
|
+
white-space: nowrap;
|
|
995
1040
|
}
|
|
996
1041
|
|
|
997
|
-
.ofv-msdoc-toc
|
|
998
|
-
|
|
1042
|
+
.ofv-msdoc-toc-number {
|
|
1043
|
+
display: inline-block;
|
|
1044
|
+
min-width: calc(28px * var(--ofv-office-zoom, 1));
|
|
999
1045
|
}
|
|
1000
1046
|
|
|
1001
|
-
.ofv-msdoc-toc
|
|
1002
|
-
|
|
1047
|
+
.ofv-msdoc-toc-leader {
|
|
1048
|
+
align-self: center;
|
|
1049
|
+
height: 0;
|
|
1050
|
+
border-bottom: 1px dotted #111827;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.ofv-msdoc-toc-page {
|
|
1054
|
+
padding-left: calc(2px * var(--ofv-office-zoom, 1));
|
|
1055
|
+
background: #fff;
|
|
1003
1056
|
text-align: right;
|
|
1004
1057
|
}
|
|
1005
1058
|
|
|
1006
1059
|
.ofv-msdoc-toc-level-2 {
|
|
1007
|
-
margin-left: calc(
|
|
1060
|
+
margin-left: calc(16px * var(--ofv-office-zoom, 1));
|
|
1008
1061
|
}
|
|
1009
1062
|
|
|
1010
1063
|
.ofv-msdoc-toc-level-3 {
|
|
1011
|
-
margin-left: calc(
|
|
1064
|
+
margin-left: calc(32px * var(--ofv-office-zoom, 1));
|
|
1012
1065
|
}
|
|
1013
1066
|
|
|
1014
|
-
.ofv-msdoc-code {
|
|
1067
|
+
.ofv-msdoc-page .ofv-msdoc-code {
|
|
1015
1068
|
margin: 0 calc(22px * var(--ofv-office-zoom, 1));
|
|
1069
|
+
padding: 0 calc(4px * var(--ofv-office-zoom, 1));
|
|
1070
|
+
background: #e5e5e5;
|
|
1016
1071
|
color: #800000;
|
|
1017
1072
|
font-family: "Courier New", Courier, monospace;
|
|
1018
|
-
font-size: calc(
|
|
1019
|
-
line-height: 1.
|
|
1073
|
+
font-size: calc(8px * var(--ofv-office-zoom, 1));
|
|
1074
|
+
line-height: 1.05;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.ofv-msdoc-page .ofv-msdoc-code-ruler {
|
|
1078
|
+
display: flex;
|
|
1079
|
+
justify-content: space-between;
|
|
1080
|
+
color: #111827;
|
|
1020
1081
|
}
|
|
1021
1082
|
|
|
1022
1083
|
.ofv-msdoc-table {
|
|
@@ -1090,42 +1151,38 @@
|
|
|
1090
1151
|
}
|
|
1091
1152
|
|
|
1092
1153
|
.ofv-msdoc-training-page {
|
|
1093
|
-
padding: calc(
|
|
1154
|
+
padding: calc(74px * var(--ofv-office-zoom, 1)) calc(68px * var(--ofv-office-zoom, 1));
|
|
1094
1155
|
color: #111;
|
|
1095
1156
|
font-family: SimSun, "Songti SC", serif;
|
|
1096
|
-
font-size: calc(
|
|
1097
|
-
line-height: 1.
|
|
1157
|
+
font-size: calc(10pt * var(--ofv-office-zoom, 1));
|
|
1158
|
+
line-height: 1.55;
|
|
1098
1159
|
}
|
|
1099
1160
|
|
|
1100
1161
|
.ofv-msdoc-training-page::after {
|
|
1101
1162
|
position: absolute;
|
|
1102
|
-
inset: calc(
|
|
1163
|
+
inset: calc(110px * var(--ofv-office-zoom, 1)) calc(66px * var(--ofv-office-zoom, 1)) calc(70px * var(--ofv-office-zoom, 1));
|
|
1103
1164
|
border: 1px solid #111;
|
|
1104
1165
|
content: "";
|
|
1105
1166
|
pointer-events: none;
|
|
1106
1167
|
}
|
|
1107
1168
|
|
|
1108
|
-
.ofv-msdoc-training-page:first-child::after {
|
|
1109
|
-
top: calc(120px * var(--ofv-office-zoom, 1));
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
1169
|
.ofv-msdoc-training-page > * {
|
|
1113
1170
|
position: relative;
|
|
1114
1171
|
z-index: 1;
|
|
1115
1172
|
}
|
|
1116
1173
|
|
|
1117
1174
|
.ofv-msdoc-training-page .ofv-msdoc-title {
|
|
1118
|
-
margin: 0 0 calc(
|
|
1175
|
+
margin: 0 0 calc(8px * var(--ofv-office-zoom, 1));
|
|
1119
1176
|
color: #111;
|
|
1120
1177
|
font-family: SimHei, "Microsoft YaHei", sans-serif;
|
|
1121
|
-
font-size: calc(
|
|
1122
|
-
line-height: 1.
|
|
1178
|
+
font-size: calc(16pt * var(--ofv-office-zoom, 1));
|
|
1179
|
+
line-height: 1.3;
|
|
1123
1180
|
text-align: center;
|
|
1124
1181
|
}
|
|
1125
1182
|
|
|
1126
|
-
.ofv-msdoc-training-
|
|
1183
|
+
.ofv-msdoc-training-paragraph {
|
|
1127
1184
|
margin: 0;
|
|
1128
|
-
padding: calc(
|
|
1185
|
+
padding: calc(2px * var(--ofv-office-zoom, 1)) calc(4px * var(--ofv-office-zoom, 1));
|
|
1129
1186
|
white-space: pre-line;
|
|
1130
1187
|
}
|
|
1131
1188
|
|
|
@@ -1148,7 +1205,7 @@
|
|
|
1148
1205
|
|
|
1149
1206
|
.ofv-msdoc-training-table td {
|
|
1150
1207
|
box-sizing: border-box;
|
|
1151
|
-
padding: calc(
|
|
1208
|
+
padding: calc(3px * var(--ofv-office-zoom, 1)) calc(5px * var(--ofv-office-zoom, 1));
|
|
1152
1209
|
border: 1px solid #111;
|
|
1153
1210
|
vertical-align: middle;
|
|
1154
1211
|
white-space: pre-line;
|
|
@@ -1164,7 +1221,7 @@
|
|
|
1164
1221
|
|
|
1165
1222
|
.ofv-msdoc-training-identity td:nth-child(even) {
|
|
1166
1223
|
width: 25%;
|
|
1167
|
-
height: calc(
|
|
1224
|
+
height: calc(36px * var(--ofv-office-zoom, 1));
|
|
1168
1225
|
}
|
|
1169
1226
|
|
|
1170
1227
|
.ofv-msdoc-training-section {
|
|
@@ -1173,7 +1230,7 @@
|
|
|
1173
1230
|
|
|
1174
1231
|
.ofv-msdoc-training-section-head td {
|
|
1175
1232
|
width: 50%;
|
|
1176
|
-
padding: calc(
|
|
1233
|
+
padding: calc(7px * var(--ofv-office-zoom, 1));
|
|
1177
1234
|
font-family: SimHei, "Microsoft YaHei", sans-serif;
|
|
1178
1235
|
font-size: calc(11pt * var(--ofv-office-zoom, 1));
|
|
1179
1236
|
font-weight: 700;
|
|
@@ -1199,16 +1256,14 @@
|
|
|
1199
1256
|
}
|
|
1200
1257
|
|
|
1201
1258
|
.ofv-msdoc-training-switches .ofv-msdoc-training-image {
|
|
1202
|
-
width: calc(
|
|
1203
|
-
height: calc(
|
|
1259
|
+
width: calc(128px * var(--ofv-office-zoom, 1));
|
|
1260
|
+
height: calc(138px * var(--ofv-office-zoom, 1));
|
|
1204
1261
|
}
|
|
1205
1262
|
|
|
1206
1263
|
.ofv-msdoc-training-plan td:first-child { width: 10%; }
|
|
1207
1264
|
.ofv-msdoc-training-plan td { height: calc(34px * var(--ofv-office-zoom, 1)); text-align: center; }
|
|
1208
1265
|
.ofv-msdoc-training-plan tr:first-child td { height: auto; }
|
|
1209
1266
|
.ofv-msdoc-training-plan tr:last-child td { height: calc(88px * var(--ofv-office-zoom, 1)); text-align: left; }
|
|
1210
|
-
.ofv-msdoc-training-page:nth-child(2) .ofv-msdoc-training-plan td { height: calc(38px * var(--ofv-office-zoom, 1)); }
|
|
1211
|
-
.ofv-msdoc-training-page:nth-child(2) .ofv-msdoc-training-plan tr:last-child td { height: calc(104px * var(--ofv-office-zoom, 1)); }
|
|
1212
1267
|
.ofv-msdoc-training-assignment td { text-align: center; }
|
|
1213
1268
|
|
|
1214
1269
|
.ofv-msdoc-training-equipment {
|
|
@@ -1220,7 +1275,6 @@
|
|
|
1220
1275
|
.ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(3) { width: 27%; }
|
|
1221
1276
|
.ofv-msdoc-training-equipment tr:not(:first-child) td:nth-child(4) { width: 22%; text-align: center; }
|
|
1222
1277
|
.ofv-msdoc-training-equipment tr:nth-child(n+3) td { height: calc(33px * var(--ofv-office-zoom, 1)); }
|
|
1223
|
-
.ofv-msdoc-training-equipment td { padding-block: calc(3px * var(--ofv-office-zoom, 1)); }
|
|
1224
1278
|
|
|
1225
1279
|
.ofv-msdoc-training-people td:first-child { width: 29%; padding: 0; }
|
|
1226
1280
|
.ofv-msdoc-training-people td:nth-child(2) { width: 22%; }
|
|
@@ -1231,26 +1285,14 @@
|
|
|
1231
1285
|
width: 34%;
|
|
1232
1286
|
padding: calc(3px * var(--ofv-office-zoom, 1));
|
|
1233
1287
|
}
|
|
1234
|
-
.ofv-msdoc-training-work-table td:last-child {
|
|
1235
|
-
|
|
1236
|
-
padding-block: calc(4px * var(--ofv-office-zoom, 1));
|
|
1237
|
-
}
|
|
1238
|
-
.ofv-msdoc-training-work-table .ofv-msdoc-training-image { height: calc(132px * var(--ofv-office-zoom, 1)); }
|
|
1288
|
+
.ofv-msdoc-training-work-table td:last-child { width: 66%; }
|
|
1289
|
+
.ofv-msdoc-training-work-table .ofv-msdoc-training-image { height: calc(115px * var(--ofv-office-zoom, 1)); }
|
|
1239
1290
|
.ofv-msdoc-training-work { break-inside: avoid; }
|
|
1240
1291
|
|
|
1241
|
-
.ofv-msdoc-training-page:nth-child(3) {
|
|
1242
|
-
line-height: 1.75;
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1245
|
-
.ofv-msdoc-training-page:nth-child(4) {
|
|
1246
|
-
line-height: 1.55;
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
1292
|
.ofv-msdoc-training-quality td:first-child { width: 18%; text-align: center; }
|
|
1250
1293
|
.ofv-msdoc-training-quality td:nth-child(2) { width: 55%; }
|
|
1251
1294
|
.ofv-msdoc-training-quality td:nth-child(3) { width: 27%; text-align: center; }
|
|
1252
|
-
.ofv-msdoc-training-quality td {
|
|
1253
|
-
.ofv-msdoc-training-quality tr:last-child td { height: calc(220px * var(--ofv-office-zoom, 1)); }
|
|
1295
|
+
.ofv-msdoc-training-quality tr:last-child td { height: calc(105px * var(--ofv-office-zoom, 1)); }
|
|
1254
1296
|
|
|
1255
1297
|
.ofv-msdoc-training-reflection {
|
|
1256
1298
|
margin: calc(20px * var(--ofv-office-zoom, 1));
|
|
@@ -1261,8 +1303,6 @@
|
|
|
1261
1303
|
|
|
1262
1304
|
.ofv-msdoc-training-score {
|
|
1263
1305
|
margin-top: calc(18px * var(--ofv-office-zoom, 1));
|
|
1264
|
-
font-size: calc(10pt * var(--ofv-office-zoom, 1));
|
|
1265
|
-
line-height: 1.35;
|
|
1266
1306
|
}
|
|
1267
1307
|
.ofv-msdoc-training-score tr:first-child td {
|
|
1268
1308
|
background: #a6e600;
|
|
@@ -1275,7 +1315,6 @@
|
|
|
1275
1315
|
.ofv-msdoc-training-score td:nth-child(2) { width: 58%; }
|
|
1276
1316
|
.ofv-msdoc-training-score td:nth-child(3),
|
|
1277
1317
|
.ofv-msdoc-training-score td:nth-child(4) { width: 11%; text-align: center; }
|
|
1278
|
-
.ofv-msdoc-training-score td { padding-block: calc(5px * var(--ofv-office-zoom, 1)); }
|
|
1279
1318
|
|
|
1280
1319
|
.ofv-msdoc-training-footer {
|
|
1281
1320
|
position: absolute !important;
|