@itfin/components 1.3.75 → 1.3.78
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
|
@@ -979,29 +979,29 @@
|
|
|
979
979
|
</div>
|
|
980
980
|
</div>
|
|
981
981
|
<!--#if !MOZCENTRAL-->
|
|
982
|
-
<div id="printServiceOverlay" class="container hidden"
|
|
983
|
-
<div class="dialog"
|
|
984
|
-
<div class="row"
|
|
985
|
-
<span data-l10n-id="print_progress_message"
|
|
986
|
-
>Preparing document for printing…</span
|
|
987
|
-
|
|
988
|
-
</div
|
|
989
|
-
<div class="row"
|
|
990
|
-
<progress value="0" max="100"></progress
|
|
991
|
-
<span
|
|
992
|
-
data-l10n-id="print_progress_percent"
|
|
993
|
-
data-l10n-args='{ "progress": 0 }'
|
|
994
|
-
class="relative-progress"
|
|
995
|
-
>0%</span
|
|
996
|
-
|
|
997
|
-
</div
|
|
998
|
-
<div class="buttonRow"
|
|
999
|
-
<button id="printCancel" class="overlayButton"
|
|
1000
|
-
<span data-l10n-id="print_progress_close">Cancel</span
|
|
1001
|
-
</button
|
|
1002
|
-
</div
|
|
1003
|
-
</div
|
|
1004
|
-
</div
|
|
982
|
+
<!-- <div id="printServiceOverlay" class="container hidden">-->
|
|
983
|
+
<!-- <div class="dialog">-->
|
|
984
|
+
<!-- <div class="row">-->
|
|
985
|
+
<!-- <span data-l10n-id="print_progress_message"-->
|
|
986
|
+
<!-- >Preparing document for printing…</span-->
|
|
987
|
+
<!-- >-->
|
|
988
|
+
<!-- </div>-->
|
|
989
|
+
<!-- <div class="row">-->
|
|
990
|
+
<!-- <progress value="0" max="100"></progress>-->
|
|
991
|
+
<!-- <span-->
|
|
992
|
+
<!-- data-l10n-id="print_progress_percent"-->
|
|
993
|
+
<!-- data-l10n-args='{ "progress": 0 }'-->
|
|
994
|
+
<!-- class="relative-progress"-->
|
|
995
|
+
<!-- >0%</span-->
|
|
996
|
+
<!-- >-->
|
|
997
|
+
<!-- </div>-->
|
|
998
|
+
<!-- <div class="buttonRow">-->
|
|
999
|
+
<!-- <button id="printCancel" class="overlayButton">-->
|
|
1000
|
+
<!-- <span data-l10n-id="print_progress_close">Cancel</span>-->
|
|
1001
|
+
<!-- </button>-->
|
|
1002
|
+
<!-- </div>-->
|
|
1003
|
+
<!-- </div>-->
|
|
1004
|
+
<!-- </div>-->
|
|
1005
1005
|
<!--#endif-->
|
|
1006
1006
|
<!--#if CHROME-->
|
|
1007
1007
|
<!--#include viewer-snippet-chrome-overlays.html-->
|
|
@@ -1026,7 +1026,7 @@ import * as pdfApp from './pdfjs-dist/lib/web/app';
|
|
|
1026
1026
|
|
|
1027
1027
|
import { AppOptions } from './pdfjs-dist/lib/web/app_options';
|
|
1028
1028
|
import './pdfjs-dist/lib/web/genericcom';
|
|
1029
|
-
import './pdfjs-dist/lib/web/pdf_print_service';
|
|
1029
|
+
// import './pdfjs-dist/lib/web/pdf_print_service';
|
|
1030
1030
|
import './pdfjs-dist/build/pdf.worker.entry';
|
|
1031
1031
|
|
|
1032
1032
|
import getAppConfig from './utils/pdf-config';
|
|
@@ -1046,8 +1046,8 @@ const errorHandler = console.error.bind(console);
|
|
|
1046
1046
|
// pdf_print_service reassigns window.print.
|
|
1047
1047
|
// Assign original window.print on component destroy.
|
|
1048
1048
|
// Once pdf is opened again assign window.print = pdfjs.print
|
|
1049
|
-
const pdfPrint = window.print.bind(window);
|
|
1050
|
-
window.print = window.__nativePrint__ || pdfPrint;
|
|
1049
|
+
// const pdfPrint = window.print.bind(window);
|
|
1050
|
+
// window.print = window.__nativePrint__ || pdfPrint;
|
|
1051
1051
|
|
|
1052
1052
|
export default
|
|
1053
1053
|
@Component({
|
|
@@ -1129,14 +1129,14 @@ class PdfViewer extends Vue {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
created() {
|
|
1132
|
-
window.print = pdfPrint;
|
|
1132
|
+
// window.print = pdfPrint;
|
|
1133
1133
|
pdfApp.PDFViewerApplication.isViewerEmbedded = !this.title;
|
|
1134
1134
|
this.$emit('after-created', pdfApp.PDFViewerApplication);
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
1137
|
mounted() {
|
|
1138
1138
|
this.pdfInputId = `input${Math.random()}`;
|
|
1139
|
-
this.addPrintContainer();
|
|
1139
|
+
// this.addPrintContainer();
|
|
1140
1140
|
const config = getAppConfig(this.$el, this.idConfig, this.pdfInputId);
|
|
1141
1141
|
|
|
1142
1142
|
if (pdfApp.PDFViewerApplication) {
|
|
@@ -1243,27 +1243,27 @@ class PdfViewer extends Vue {
|
|
|
1243
1243
|
this.isFindbarHidden = !(findbar && findbar.opened);
|
|
1244
1244
|
}
|
|
1245
1245
|
|
|
1246
|
-
addPrintContainer() {
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
}
|
|
1246
|
+
// addPrintContainer() {
|
|
1247
|
+
// const printElId = 'printContainer';
|
|
1248
|
+
// const el = document.createElement('div');
|
|
1249
|
+
// el.id = printElId;
|
|
1250
|
+
// document.body.appendChild(el);
|
|
1251
|
+
//
|
|
1252
|
+
// const styleEl = document.createElement('style');
|
|
1253
|
+
// styleEl.type = 'text/css';
|
|
1254
|
+
// styleEl.innerHTML = `
|
|
1255
|
+
// @media print {
|
|
1256
|
+
// body > *:not(#printContainer) {
|
|
1257
|
+
// display: none !important;
|
|
1258
|
+
// }
|
|
1259
|
+
// }`;
|
|
1260
|
+
// document.head.appendChild(styleEl);
|
|
1261
|
+
//
|
|
1262
|
+
// this.$once('hook:beforeDestroy', () => {
|
|
1263
|
+
// document.body.removeChild(el);
|
|
1264
|
+
// document.head.removeChild(styleEl);
|
|
1265
|
+
// });
|
|
1266
|
+
// }
|
|
1267
1267
|
|
|
1268
1268
|
destroyPdf() {
|
|
1269
1269
|
this.clearCacheTimeout();
|
|
@@ -1277,7 +1277,7 @@ class PdfViewer extends Vue {
|
|
|
1277
1277
|
el && el.remove();
|
|
1278
1278
|
|
|
1279
1279
|
// __nativePrint__ is assigned in pdf_print_service.js
|
|
1280
|
-
window.print = window.__nativePrint__ || window.print;
|
|
1280
|
+
// window.print = window.__nativePrint__ || window.print;
|
|
1281
1281
|
}
|
|
1282
1282
|
|
|
1283
1283
|
toggleTheme() {
|
|
@@ -92,7 +92,7 @@ class itfTable2 extends Vue {
|
|
|
92
92
|
@Prop({ type: String, default: null }) editableProperty;
|
|
93
93
|
@Prop({ default: null }) active;
|
|
94
94
|
@Prop({ default: 45 }) indicatorWidth;
|
|
95
|
-
@Prop({ type: String, default: null, validator: (val) => ['order', 'checkbox', 'toggle', 'property'].includes(val) }) indicatorType;
|
|
95
|
+
@Prop({ type: String, default: null, validator: (val) => ['order', 'checkbox', 'toggle', 'property', 'none'].includes(val) }) indicatorType;
|
|
96
96
|
@Prop({ type: String, default: null }) stateName; // save state to storage
|
|
97
97
|
@Prop({ type: Object, default: () => ({}) }) schema;
|
|
98
98
|
@ModelSync('value', 'input', { type: Array, default: () => ([]) }) selectedIds;
|