ofd-view 0.1.21 → 0.1.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,49 @@
1
1
  (function webpackUniversalModuleDefinition(root, factory) {
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
3
+ module.exports = factory(require("ofd.js"));
4
4
  else if(typeof define === 'function' && define.amd)
5
5
  define([], factory);
6
6
  else if(typeof exports === 'object')
7
- exports["ofd-view"] = factory();
7
+ exports["ofd-view"] = factory(require("ofd.js"));
8
8
  else
9
- root["ofd-view"] = factory();
10
- })((typeof self !== 'undefined' ? self : this), function() {
9
+ root["ofd-view"] = factory(root["ofd"]);
10
+ })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__485__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
- /******/ // The require scope
14
- /******/ var __webpack_require__ = {};
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 485:
16
+ /***/ (function(module) {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__485__;
19
+
20
+ /***/ })
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ var __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ var module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
+ /******/
44
+ /******/ // Return the exports of the module
45
+ /******/ return module.exports;
46
+ /******/ }
15
47
  /******/
16
48
  /************************************************************************/
17
49
  /******/ /* webpack/runtime/define property getters */
@@ -49,6 +81,8 @@ return /******/ (function() { // webpackBootstrap
49
81
  /******/
50
82
  /************************************************************************/
51
83
  var __webpack_exports__ = {};
84
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
85
+ !function() {
52
86
  // ESM COMPAT FLAG
53
87
  __webpack_require__.r(__webpack_exports__);
54
88
 
@@ -74,159 +108,900 @@ if (typeof window !== 'undefined') {
74
108
  // Indicate to webpack that this file can be concatenated
75
109
  /* harmony default export */ var setPublicPath = (null);
76
110
 
77
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=5f966ce0&scoped=true&
78
- var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)
79
- }
80
- var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_c('div',{attrs:{"id":"mainContainer"}},[_c('div',{staticClass:"secondaryToolbar hidden doorHangerRight",attrs:{"id":"secondaryToolbar"}},[_c('div',{attrs:{"id":"secondaryToolbarButtonContainer"}},[_c('button',{staticClass:"secondaryToolbarButton openFile visibleLargeView",attrs:{"id":"secondaryOpenFile","title":"打开文件","tabindex":"52","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"secondaryToolbarButton print visibleMediumView",attrs:{"id":"secondaryPrint","title":"打印","tabindex":"53","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('button',{staticClass:"secondaryToolbarButton documentProperties",attrs:{"id":"documentProperties","title":"文档属性…","tabindex":"69","data-l10n-id":"document_properties","aria-controls":"documentPropertiesDialog"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_label"}},[_vm._v("文档属性…")])])])]),_vm._v(" "),_c('div',{staticClass:"toolbar"},[_c('div',{attrs:{"id":"toolbarContainer"}},[_c('div',{attrs:{"id":"toolbarViewer"}},[_c('div',{attrs:{"id":"toolbarViewerLeft"}},[_c('div',{staticClass:"splitToolbarButton hiddenSmallView"},[_c('button',{staticClass:"toolbarButton pageUp",attrs:{"title":"上一页","id":"previous","tabindex":"13","data-l10n-id":"previous"}},[_c('span',{attrs:{"data-l10n-id":"previous_label"}},[_vm._v("上一页")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton pageDown",attrs:{"title":"下一页","id":"next","tabindex":"14","data-l10n-id":"next"}},[_c('span',{attrs:{"data-l10n-id":"next_label"}},[_vm._v("下一页")])])]),_c('input',{staticClass:"toolbarField pageNumber",attrs:{"type":"number","id":"pageNumber","title":"页面","value":"1","size":"4","min":"1","tabindex":"15","data-l10n-id":"page","autocomplete":"off"}}),_c('span',{staticClass:"toolbarLabel",attrs:{"id":"numPages"}})]),_c('div',{attrs:{"id":"toolbarViewerRight"}},[_c('button',{staticClass:"toolbarButton openFile hiddenLargeView",attrs:{"id":"openFile","title":"打开文件","tabindex":"32","data-l10n-id":"open_file"}},[_c('span',{attrs:{"data-l10n-id":"open_file_label"}},[_vm._v("打开")])]),_c('button',{staticClass:"toolbarButton print hiddenMediumView",attrs:{"id":"print","title":"打印","tabindex":"33","data-l10n-id":"print"}},[_c('span',{attrs:{"data-l10n-id":"print_label"}},[_vm._v("打印")])]),_c('div',{staticClass:"verticalToolbarSeparator hiddenSmallView"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"secondaryToolbarToggle","title":"工具","tabindex":"36","data-l10n-id":"tools","aria-expanded":"false","aria-controls":"secondaryToolbar"}},[_c('span',{attrs:{"data-l10n-id":"tools_label"}},[_vm._v("工具")])])]),_c('div',{attrs:{"id":"toolbarViewerMiddle"}},[_c('div',{staticClass:"splitToolbarButton"},[_c('button',{staticClass:"toolbarButton zoomOut",attrs:{"id":"zoomOut","title":"缩小","tabindex":"21","data-l10n-id":"zoom_out"}},[_c('span',{attrs:{"data-l10n-id":"zoom_out_label"}},[_vm._v("缩小")])]),_c('div',{staticClass:"splitToolbarButtonSeparator"}),_c('button',{staticClass:"toolbarButton zoomIn",attrs:{"id":"zoomIn","title":"放大","tabindex":"22","data-l10n-id":"zoom_in"}},[_c('span',{attrs:{"data-l10n-id":"zoom_in_label"}},[_vm._v("放大")])])]),_c('span',{staticClass:"dropdownToolbarButton",attrs:{"id":"scaleSelectContainer"}},[_c('select',{attrs:{"id":"scaleSelect","title":"缩放","tabindex":"23","data-l10n-id":"zoom"}},[_c('option',{attrs:{"id":"pageAutoOption","title":"","value":"auto","selected":"selected","data-l10n-id":"page_scale_auto"}},[_vm._v("自动缩放")]),_c('option',{attrs:{"id":"pageActualOption","title":"","value":"page-actual","data-l10n-id":"page_scale_actual"}},[_vm._v("实际大小")]),_c('option',{attrs:{"id":"pageFitOption","title":"","value":"page-fit","data-l10n-id":"page_scale_fit"}},[_vm._v("适合页面")]),_c('option',{attrs:{"id":"pageWidthOption","title":"","value":"page-width","data-l10n-id":"page_scale_width"}},[_vm._v("适合页宽")]),_c('option',{attrs:{"id":"customScaleOption","title":"","value":"custom","disabled":"disabled","hidden":"true"}}),_c('option',{attrs:{"title":"","value":"0.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 50 }"}},[_vm._v("50%")]),_c('option',{attrs:{"title":"","value":"0.75","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 75 }"}},[_vm._v("75%")]),_c('option',{attrs:{"title":"","value":"1","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 100 }"}},[_vm._v("100%")]),_c('option',{attrs:{"title":"","value":"1.25","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 125 }"}},[_vm._v("125%")]),_c('option',{attrs:{"title":"","value":"1.5","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 150 }"}},[_vm._v("150%")]),_c('option',{attrs:{"title":"","value":"2","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 200 }"}},[_vm._v("200%")]),_c('option',{attrs:{"title":"","value":"3","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 300 }"}},[_vm._v("300%")]),_c('option',{attrs:{"title":"","value":"4","data-l10n-id":"page_scale_percent","data-l10n-args":"{ \"scale\": 400 }"}},[_vm._v("400%")])])])])])])]),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"}})]),_c('div',{attrs:{"id":"errorWrapper","hidden":"true"}},[_c('div',{attrs:{"id":"errorMessageLeft"}},[_c('span',{attrs:{"id":"errorMessage"}}),_c('button',{attrs:{"id":"errorShowMore","data-l10n-id":"error_more_info"}},[_vm._v(" More Information ")]),_c('button',{attrs:{"id":"errorShowLess","data-l10n-id":"error_less_info","hidden":"true"}},[_vm._v(" Less Information ")])]),_c('div',{attrs:{"id":"errorMessageRight"}},[_c('button',{attrs:{"id":"errorClose","data-l10n-id":"error_close"}},[_vm._v(" Close ")])]),_c('div',{staticClass:"clearBoth"}),_c('textarea',{attrs:{"id":"errorMoreInfo","hidden":"true","readonly":"readonly"}})])]),_vm._v(" "),_c('div',{attrs:{"id":"dialogContainer"}},[_c('dialog',{attrs:{"id":"documentPropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileNameLabel","data-l10n-id":"document_properties_file_name"}},[_vm._v("文件名:")]),_c('p',{attrs:{"id":"fileNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"fileSizeLabel","data-l10n-id":"document_properties_file_size"}},[_vm._v("文件大小:")]),_c('p',{attrs:{"id":"fileSizeField","aria-labelledby":"fileSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"titleLabel","data-l10n-id":"document_properties_title"}},[_vm._v("标题:")]),_c('p',{attrs:{"id":"titleField","aria-labelledby":"titleLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"authorLabel","data-l10n-id":"document_properties_author"}},[_vm._v("作者:")]),_c('p',{attrs:{"id":"authorField","aria-labelledby":"authorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"subjectLabel","data-l10n-id":"document_properties_subject"}},[_vm._v("主题:")]),_c('p',{attrs:{"id":"subjectField","aria-labelledby":"subjectLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"keywordsLabel","data-l10n-id":"document_properties_keywords"}},[_vm._v("关键词:")]),_c('p',{attrs:{"id":"keywordsField","aria-labelledby":"keywordsLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creationDateLabel","data-l10n-id":"document_properties_creation_date"}},[_vm._v("创建日期:")]),_c('p',{attrs:{"id":"creationDateField","aria-labelledby":"creationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"modificationDateLabel","data-l10n-id":"document_properties_modification_date"}},[_vm._v("修改日期:")]),_c('p',{attrs:{"id":"modificationDateField","aria-labelledby":"modificationDateLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"creatorLabel","data-l10n-id":"document_properties_creator"}},[_vm._v("创建者:")]),_c('p',{attrs:{"id":"creatorField","aria-labelledby":"creatorLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"producerLabel","data-l10n-id":"document_properties_producer"}},[_vm._v("OFD 生成器:")]),_c('p',{attrs:{"id":"producerField","aria-labelledby":"producerLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"versionLabel","data-l10n-id":"document_properties_version"}},[_vm._v("OFD 版本:")]),_c('p',{attrs:{"id":"versionField","aria-labelledby":"versionLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageCountLabel","data-l10n-id":"document_properties_page_count"}},[_vm._v("页数:")]),_c('p',{attrs:{"id":"pageCountField","aria-labelledby":"pageCountLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"pageSizeLabel","data-l10n-id":"document_properties_page_size"}},[_vm._v("页面大小:")]),_c('p',{attrs:{"id":"pageSizeField","aria-labelledby":"pageSizeLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row",attrs:{"hidden":"hidden"}},[_c('span',{attrs:{"id":"linearizedLabel","data-l10n-id":"document_properties_linearized"}},[_vm._v("快速 Web 视图:")]),_c('p',{attrs:{"id":"linearizedField","aria-labelledby":"linearizedLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"documentPropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])]),_c('dialog',{staticStyle:{"min-width":"200px"},attrs:{"id":"printServiceDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"data-l10n-id":"print_progress_message"}},[_vm._v("正在准备打印文档…")])]),_c('div',{staticClass:"row"},[_c('progress',{attrs:{"id":"printProgress","value":"0","max":"100"}}),_c('span',{staticClass:"relative-progress",attrs:{"data-l10n-id":"print_progress_percent","data-l10n-args":"{ \"progress\": 0 }"}},[_vm._v("0%")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"printCancel"}},[_c('span',{attrs:{"data-l10n-id":"print_progress_close"}},[_vm._v("取消")])])])]),_c('dialog',{attrs:{"id":"signaturePropertiesDialog"}},[_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signerLabel"}},[_vm._v("签章人:")]),_c('p',{attrs:{"id":"signerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"providerLabel"}},[_vm._v("签章提供者:")]),_c('p',{attrs:{"id":"providerField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"hashedValueLabel"}},[_vm._v("原文摘要值:")]),_c('p',{attrs:{"id":"hashedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signedValueLabel"}},[_vm._v("签名值:")]),_c('p',{attrs:{"id":"signedValueField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signMethodLabel"}},[_vm._v("签名算法:")]),_c('p',{attrs:{"id":"signMethodField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"signVersionLabel"}},[_vm._v("版本号:")]),_c('p',{attrs:{"id":"signVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"verifyLabel"}},[_vm._v("验签结果:")]),_c('p',{attrs:{"id":"verifyField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"separator"}),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealIDLabel"}},[_vm._v("印章标识:")]),_c('p',{attrs:{"id":"sealIDField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealNameLabel"}},[_vm._v("印章名称:")]),_c('p',{attrs:{"id":"sealNameField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealTypeLabel"}},[_vm._v("印章类型:")]),_c('p',{attrs:{"id":"sealTypeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealAuthTimeLabel"}},[_vm._v("有效时间:")]),_c('p',{attrs:{"id":"sealAuthTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealMakeTimeLabel"}},[_vm._v("制章日期:")]),_c('p',{attrs:{"id":"sealMakeTimeField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"row"},[_c('span',{attrs:{"id":"sealVersionLabel"}},[_vm._v("印章版本:")]),_c('p',{attrs:{"id":"sealVersionField","aria-labelledby":"fileNameLabel"}},[_vm._v("-")])]),_c('div',{staticClass:"buttonRow"},[_c('button',{staticClass:"dialogButton",attrs:{"id":"signaturePropertiesClose"}},[_c('span',{attrs:{"data-l10n-id":"document_properties_close"}},[_vm._v("关闭")])])])])])])
81
- }]
82
-
83
-
84
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=5f966ce0&scoped=true&
85
-
86
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
87
-
88
-
89
- /* harmony default export */ var srcvue_type_script_lang_js_ = ({
90
- name: "OfdView",
91
- props: {
92
-
93
- },
94
-
95
- watch: {
96
-
97
- },
98
-
99
-
100
- data() {
101
- return {
102
-
103
- config: null,
104
- }
105
- },
106
-
107
- mounted() {
108
- if (!this.config) {
109
- this.config = this.getViewerConfiguration()
110
- //vue下viewerContainer必须设置height
111
- // this.containerHeight = `${window.innerHeight - 100}px`
112
- let img = new Image();
113
- img.style.position = 'absolute';
114
- img.style.left = 0;
115
- img.style.right = 0;
116
- img.style.margin = 'auto';
117
- img.style.top = 0;
118
- img.style.bottom = 0;
119
- img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3a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AsAAAAADYANwAABMwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
120
- img.draggable = false;
121
- this.config.loadingContainer = img
122
- // config.onPageChanging = pageNumber => {
123
- // // console.log(pageNumber)
124
- // }
125
- // config.parserOFDSuccess = core => {
126
- // // console.log(core)
127
- // }
128
- // config.onPageScale = scale => {
129
- // // console.log(scale)
130
- // }
131
- }
132
- this.$emit('ofdViewReady', this.config)
133
- },
134
-
135
- methods: {
136
- getViewerConfiguration() {
137
- let errorWrapper = null
138
- errorWrapper = {
139
- container: document.getElementById('errorWrapper'),
140
- errorMessage: document.getElementById('errorMessage'),
141
- closeButton: document.getElementById('errorClose'),
142
- errorMoreInfo: document.getElementById('errorMoreInfo'),
143
- moreInfoButton: document.getElementById('errorShowMore'),
144
- lessInfoButton: document.getElementById('errorShowLess'),
145
- }
146
-
147
- return {
148
- appContainer: document.body,
149
- mainContainer: document.getElementById('viewerContainer'),
150
- viewerContainer: document.getElementById('viewer'),
151
- toolbar: {
152
- container: document.getElementById('toolbarViewer'),
153
- numPages: document.getElementById('numPages'),
154
- pageNumber: document.getElementById('pageNumber'),
155
- scaleSelect: document.getElementById('scaleSelect'),
156
- customScaleOption: document.getElementById('customScaleOption'),
157
- previous: document.getElementById('previous'),
158
- next: document.getElementById('next'),
159
- zoomIn: document.getElementById('zoomIn'),
160
- zoomOut: document.getElementById('zoomOut'),
161
- openFile: document.getElementById('openFile'),
162
- print: document.getElementById('print'),
163
- },
164
- secondaryToolbar: {
165
- toolbar: document.getElementById('secondaryToolbar'),
166
- toggleButton: document.getElementById('secondaryToolbarToggle'),
167
- toolbarButtonContainer: document.getElementById(
168
- 'secondaryToolbarButtonContainer'
169
- ),
170
- openFileButton: document.getElementById('secondaryOpenFile'),
171
- printButton: document.getElementById('secondaryPrint'),
172
- documentPropertiesButton: document.getElementById('documentProperties'),
173
- },
174
- sidebar: {
175
- // Divs (and sidebar button)
176
- outerContainer: document.getElementById('outerContainer'),
177
- viewerContainer: document.getElementById('viewerContainer'),
178
- },
179
- sidebarResizer: {
180
- outerContainer: document.getElementById('outerContainer'),
181
- },
182
- documentProperties: {
183
- dialog: document.getElementById('documentPropertiesDialog'),
184
- closeButton: document.getElementById('documentPropertiesClose'),
185
- fields: {
186
- fileName: document.getElementById('fileNameField'),
187
- fileSize: document.getElementById('fileSizeField'),
188
- title: document.getElementById('titleField'),
189
- author: document.getElementById('authorField'),
190
- subject: document.getElementById('subjectField'),
191
- keywords: document.getElementById('keywordsField'),
192
- creationDate: document.getElementById('creationDateField'),
193
- modificationDate: document.getElementById('modificationDateField'),
194
- creator: document.getElementById('creatorField'),
195
- producer: document.getElementById('producerField'),
196
- version: document.getElementById('versionField'),
197
- pageCount: document.getElementById('pageCountField'),
198
- pageSize: document.getElementById('pageSizeField'),
199
- linearized: document.getElementById('linearizedField'),
200
- },
201
- },
202
- signatureProperties: {
203
- dialog: document.getElementById('signaturePropertiesDialog'),
204
- closeButton: document.getElementById('signaturePropertiesClose'),
205
- fields: {
206
- signer: document.getElementById('signerField'),
207
- provider: document.getElementById('providerField'),
208
- hashedValue: document.getElementById('hashedValueField'),
209
- signedValue: document.getElementById('signedValueField'),
210
- signMethod: document.getElementById('signMethodField'),
211
- signVersion: document.getElementById('signVersionField'),
212
- verify: document.getElementById('verifyField'),
213
-
214
- sealID: document.getElementById('sealIDField'),
215
- sealName: document.getElementById('sealNameField'),
216
- sealType: document.getElementById('sealTypeField'),
217
- sealAuthTime: document.getElementById('sealAuthTimeField'),
218
- sealMakeTime: document.getElementById('sealMakeTimeField'),
219
- sealVersion: document.getElementById('sealVersionField'),
220
- },
221
- },
222
- errorWrapper,
223
- printContainer: document.getElementById('printContainer'),
224
- openFileInputName: 'fileInput',
225
- }
226
- }
227
- }
228
- });
111
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=template&id=26db05e2&scoped=true&
112
+ var render = function render() {
113
+ var _vm = this,
114
+ _c = _vm._self._c;
115
+ return _vm._m(0);
116
+ };
117
+ var staticRenderFns = [function () {
118
+ var _vm = this,
119
+ _c = _vm._self._c;
120
+ return _c('div', {
121
+ attrs: {
122
+ "id": "outerContainer"
123
+ }
124
+ }, [_c('div', {
125
+ attrs: {
126
+ "id": "mainContainer"
127
+ }
128
+ }, [_c('div', {
129
+ staticClass: "secondaryToolbar hidden doorHangerRight",
130
+ attrs: {
131
+ "id": "secondaryToolbar"
132
+ }
133
+ }, [_c('div', {
134
+ attrs: {
135
+ "id": "secondaryToolbarButtonContainer"
136
+ }
137
+ }, [_c('button', {
138
+ staticClass: "secondaryToolbarButton openFile visibleLargeView",
139
+ attrs: {
140
+ "id": "secondaryOpenFile",
141
+ "title": "打开文件",
142
+ "tabindex": "52",
143
+ "data-l10n-id": "open_file"
144
+ }
145
+ }, [_c('span', {
146
+ attrs: {
147
+ "data-l10n-id": "open_file_label"
148
+ }
149
+ }, [_vm._v("打开")])]), _c('button', {
150
+ staticClass: "secondaryToolbarButton print visibleMediumView",
151
+ attrs: {
152
+ "id": "secondaryPrint",
153
+ "title": "打印",
154
+ "tabindex": "53",
155
+ "data-l10n-id": "print"
156
+ }
157
+ }, [_c('span', {
158
+ attrs: {
159
+ "data-l10n-id": "print_label"
160
+ }
161
+ }, [_vm._v("打印")])]), _c('button', {
162
+ staticClass: "secondaryToolbarButton documentProperties",
163
+ attrs: {
164
+ "id": "documentProperties",
165
+ "title": "文档属性…",
166
+ "tabindex": "69",
167
+ "data-l10n-id": "document_properties",
168
+ "aria-controls": "documentPropertiesDialog"
169
+ }
170
+ }, [_c('span', {
171
+ attrs: {
172
+ "data-l10n-id": "document_properties_label"
173
+ }
174
+ }, [_vm._v("文档属性…")])])])]), _vm._v(" "), _c('div', {
175
+ staticClass: "toolbar"
176
+ }, [_c('div', {
177
+ attrs: {
178
+ "id": "toolbarContainer"
179
+ }
180
+ }, [_c('div', {
181
+ attrs: {
182
+ "id": "toolbarViewer"
183
+ }
184
+ }, [_c('div', {
185
+ attrs: {
186
+ "id": "toolbarViewerLeft"
187
+ }
188
+ }, [_c('div', {
189
+ staticClass: "splitToolbarButton hiddenSmallView"
190
+ }, [_c('button', {
191
+ staticClass: "toolbarButton pageUp",
192
+ attrs: {
193
+ "title": "上一页",
194
+ "id": "previous",
195
+ "tabindex": "13",
196
+ "data-l10n-id": "previous"
197
+ }
198
+ }, [_c('span', {
199
+ attrs: {
200
+ "data-l10n-id": "previous_label"
201
+ }
202
+ }, [_vm._v("上一页")])]), _c('div', {
203
+ staticClass: "splitToolbarButtonSeparator"
204
+ }), _c('button', {
205
+ staticClass: "toolbarButton pageDown",
206
+ attrs: {
207
+ "title": "下一页",
208
+ "id": "next",
209
+ "tabindex": "14",
210
+ "data-l10n-id": "next"
211
+ }
212
+ }, [_c('span', {
213
+ attrs: {
214
+ "data-l10n-id": "next_label"
215
+ }
216
+ }, [_vm._v("下一页")])])]), _c('input', {
217
+ staticClass: "toolbarField pageNumber",
218
+ attrs: {
219
+ "type": "number",
220
+ "id": "pageNumber",
221
+ "title": "页面",
222
+ "value": "1",
223
+ "size": "4",
224
+ "min": "1",
225
+ "tabindex": "15",
226
+ "data-l10n-id": "page",
227
+ "autocomplete": "off"
228
+ }
229
+ }), _c('span', {
230
+ staticClass: "toolbarLabel",
231
+ attrs: {
232
+ "id": "numPages"
233
+ }
234
+ })]), _c('div', {
235
+ attrs: {
236
+ "id": "toolbarViewerRight"
237
+ }
238
+ }, [_c('button', {
239
+ staticClass: "toolbarButton openFile hiddenLargeView",
240
+ attrs: {
241
+ "id": "openFile",
242
+ "title": "打开文件",
243
+ "tabindex": "32",
244
+ "data-l10n-id": "open_file"
245
+ }
246
+ }, [_c('span', {
247
+ attrs: {
248
+ "data-l10n-id": "open_file_label"
249
+ }
250
+ }, [_vm._v("打开")])]), _c('button', {
251
+ staticClass: "toolbarButton print hiddenMediumView",
252
+ attrs: {
253
+ "id": "print",
254
+ "title": "打印",
255
+ "tabindex": "33",
256
+ "data-l10n-id": "print"
257
+ }
258
+ }, [_c('span', {
259
+ attrs: {
260
+ "data-l10n-id": "print_label"
261
+ }
262
+ }, [_vm._v("打印")])]), _c('div', {
263
+ staticClass: "verticalToolbarSeparator hiddenSmallView"
264
+ }), _c('button', {
265
+ staticClass: "toolbarButton",
266
+ attrs: {
267
+ "id": "secondaryToolbarToggle",
268
+ "title": "工具",
269
+ "tabindex": "36",
270
+ "data-l10n-id": "tools",
271
+ "aria-expanded": "false",
272
+ "aria-controls": "secondaryToolbar"
273
+ }
274
+ }, [_c('span', {
275
+ attrs: {
276
+ "data-l10n-id": "tools_label"
277
+ }
278
+ }, [_vm._v("工具")])])]), _c('div', {
279
+ attrs: {
280
+ "id": "toolbarViewerMiddle"
281
+ }
282
+ }, [_c('div', {
283
+ staticClass: "splitToolbarButton"
284
+ }, [_c('button', {
285
+ staticClass: "toolbarButton zoomOut",
286
+ attrs: {
287
+ "id": "zoomOut",
288
+ "title": "缩小",
289
+ "tabindex": "21",
290
+ "data-l10n-id": "zoom_out"
291
+ }
292
+ }, [_c('span', {
293
+ attrs: {
294
+ "data-l10n-id": "zoom_out_label"
295
+ }
296
+ }, [_vm._v("缩小")])]), _c('div', {
297
+ staticClass: "splitToolbarButtonSeparator"
298
+ }), _c('button', {
299
+ staticClass: "toolbarButton zoomIn",
300
+ attrs: {
301
+ "id": "zoomIn",
302
+ "title": "放大",
303
+ "tabindex": "22",
304
+ "data-l10n-id": "zoom_in"
305
+ }
306
+ }, [_c('span', {
307
+ attrs: {
308
+ "data-l10n-id": "zoom_in_label"
309
+ }
310
+ }, [_vm._v("放大")])])]), _c('span', {
311
+ staticClass: "dropdownToolbarButton",
312
+ attrs: {
313
+ "id": "scaleSelectContainer"
314
+ }
315
+ }, [_c('select', {
316
+ attrs: {
317
+ "id": "scaleSelect",
318
+ "title": "缩放",
319
+ "tabindex": "23",
320
+ "data-l10n-id": "zoom"
321
+ }
322
+ }, [_c('option', {
323
+ attrs: {
324
+ "id": "pageAutoOption",
325
+ "title": "",
326
+ "value": "auto",
327
+ "selected": "selected",
328
+ "data-l10n-id": "page_scale_auto"
329
+ }
330
+ }, [_vm._v("自动缩放")]), _c('option', {
331
+ attrs: {
332
+ "id": "pageActualOption",
333
+ "title": "",
334
+ "value": "page-actual",
335
+ "data-l10n-id": "page_scale_actual"
336
+ }
337
+ }, [_vm._v("实际大小")]), _c('option', {
338
+ attrs: {
339
+ "id": "pageFitOption",
340
+ "title": "",
341
+ "value": "page-fit",
342
+ "data-l10n-id": "page_scale_fit"
343
+ }
344
+ }, [_vm._v("适合页面")]), _c('option', {
345
+ attrs: {
346
+ "id": "pageWidthOption",
347
+ "title": "",
348
+ "value": "page-width",
349
+ "data-l10n-id": "page_scale_width"
350
+ }
351
+ }, [_vm._v("适合页宽")]), _c('option', {
352
+ attrs: {
353
+ "id": "customScaleOption",
354
+ "title": "",
355
+ "value": "custom",
356
+ "disabled": "disabled",
357
+ "hidden": "true"
358
+ }
359
+ }), _c('option', {
360
+ attrs: {
361
+ "title": "",
362
+ "value": "0.5",
363
+ "data-l10n-id": "page_scale_percent",
364
+ "data-l10n-args": "{ \"scale\": 50 }"
365
+ }
366
+ }, [_vm._v("50%")]), _c('option', {
367
+ attrs: {
368
+ "title": "",
369
+ "value": "0.75",
370
+ "data-l10n-id": "page_scale_percent",
371
+ "data-l10n-args": "{ \"scale\": 75 }"
372
+ }
373
+ }, [_vm._v("75%")]), _c('option', {
374
+ attrs: {
375
+ "title": "",
376
+ "value": "1",
377
+ "data-l10n-id": "page_scale_percent",
378
+ "data-l10n-args": "{ \"scale\": 100 }"
379
+ }
380
+ }, [_vm._v("100%")]), _c('option', {
381
+ attrs: {
382
+ "title": "",
383
+ "value": "1.25",
384
+ "data-l10n-id": "page_scale_percent",
385
+ "data-l10n-args": "{ \"scale\": 125 }"
386
+ }
387
+ }, [_vm._v("125%")]), _c('option', {
388
+ attrs: {
389
+ "title": "",
390
+ "value": "1.5",
391
+ "data-l10n-id": "page_scale_percent",
392
+ "data-l10n-args": "{ \"scale\": 150 }"
393
+ }
394
+ }, [_vm._v("150%")]), _c('option', {
395
+ attrs: {
396
+ "title": "",
397
+ "value": "2",
398
+ "data-l10n-id": "page_scale_percent",
399
+ "data-l10n-args": "{ \"scale\": 200 }"
400
+ }
401
+ }, [_vm._v("200%")]), _c('option', {
402
+ attrs: {
403
+ "title": "",
404
+ "value": "3",
405
+ "data-l10n-id": "page_scale_percent",
406
+ "data-l10n-args": "{ \"scale\": 300 }"
407
+ }
408
+ }, [_vm._v("300%")]), _c('option', {
409
+ attrs: {
410
+ "title": "",
411
+ "value": "4",
412
+ "data-l10n-id": "page_scale_percent",
413
+ "data-l10n-args": "{ \"scale\": 400 }"
414
+ }
415
+ }, [_vm._v("400%")])])])])])])]), _c('div', {
416
+ attrs: {
417
+ "id": "viewerContainer",
418
+ "tabindex": "0"
419
+ }
420
+ }, [_c('div', {
421
+ staticClass: "pdfViewer",
422
+ attrs: {
423
+ "id": "viewer"
424
+ }
425
+ })]), _c('div', {
426
+ attrs: {
427
+ "id": "errorWrapper",
428
+ "hidden": "true"
429
+ }
430
+ }, [_c('div', {
431
+ attrs: {
432
+ "id": "errorMessageLeft"
433
+ }
434
+ }, [_c('span', {
435
+ attrs: {
436
+ "id": "errorMessage"
437
+ }
438
+ }), _c('button', {
439
+ attrs: {
440
+ "id": "errorShowMore",
441
+ "data-l10n-id": "error_more_info"
442
+ }
443
+ }, [_vm._v(" More Information ")]), _c('button', {
444
+ attrs: {
445
+ "id": "errorShowLess",
446
+ "data-l10n-id": "error_less_info",
447
+ "hidden": "true"
448
+ }
449
+ }, [_vm._v(" Less Information ")])]), _c('div', {
450
+ attrs: {
451
+ "id": "errorMessageRight"
452
+ }
453
+ }, [_c('button', {
454
+ attrs: {
455
+ "id": "errorClose",
456
+ "data-l10n-id": "error_close"
457
+ }
458
+ }, [_vm._v(" Close ")])]), _c('div', {
459
+ staticClass: "clearBoth"
460
+ }), _c('textarea', {
461
+ attrs: {
462
+ "id": "errorMoreInfo",
463
+ "hidden": "true",
464
+ "readonly": "readonly"
465
+ }
466
+ })])]), _vm._v(" "), _c('div', {
467
+ attrs: {
468
+ "id": "dialogContainer"
469
+ }
470
+ }, [_c('dialog', {
471
+ attrs: {
472
+ "id": "documentPropertiesDialog"
473
+ }
474
+ }, [_c('div', {
475
+ staticClass: "row"
476
+ }, [_c('span', {
477
+ attrs: {
478
+ "id": "fileNameLabel",
479
+ "data-l10n-id": "document_properties_file_name"
480
+ }
481
+ }, [_vm._v("文件名:")]), _c('p', {
482
+ attrs: {
483
+ "id": "fileNameField",
484
+ "aria-labelledby": "fileNameLabel"
485
+ }
486
+ }, [_vm._v("-")])]), _c('div', {
487
+ staticClass: "row"
488
+ }, [_c('span', {
489
+ attrs: {
490
+ "id": "fileSizeLabel",
491
+ "data-l10n-id": "document_properties_file_size"
492
+ }
493
+ }, [_vm._v("文件大小:")]), _c('p', {
494
+ attrs: {
495
+ "id": "fileSizeField",
496
+ "aria-labelledby": "fileSizeLabel"
497
+ }
498
+ }, [_vm._v("-")])]), _c('div', {
499
+ staticClass: "separator"
500
+ }), _c('div', {
501
+ staticClass: "row"
502
+ }, [_c('span', {
503
+ attrs: {
504
+ "id": "titleLabel",
505
+ "data-l10n-id": "document_properties_title"
506
+ }
507
+ }, [_vm._v("标题:")]), _c('p', {
508
+ attrs: {
509
+ "id": "titleField",
510
+ "aria-labelledby": "titleLabel"
511
+ }
512
+ }, [_vm._v("-")])]), _c('div', {
513
+ staticClass: "row"
514
+ }, [_c('span', {
515
+ attrs: {
516
+ "id": "authorLabel",
517
+ "data-l10n-id": "document_properties_author"
518
+ }
519
+ }, [_vm._v("作者:")]), _c('p', {
520
+ attrs: {
521
+ "id": "authorField",
522
+ "aria-labelledby": "authorLabel"
523
+ }
524
+ }, [_vm._v("-")])]), _c('div', {
525
+ staticClass: "row"
526
+ }, [_c('span', {
527
+ attrs: {
528
+ "id": "subjectLabel",
529
+ "data-l10n-id": "document_properties_subject"
530
+ }
531
+ }, [_vm._v("主题:")]), _c('p', {
532
+ attrs: {
533
+ "id": "subjectField",
534
+ "aria-labelledby": "subjectLabel"
535
+ }
536
+ }, [_vm._v("-")])]), _c('div', {
537
+ staticClass: "row"
538
+ }, [_c('span', {
539
+ attrs: {
540
+ "id": "keywordsLabel",
541
+ "data-l10n-id": "document_properties_keywords"
542
+ }
543
+ }, [_vm._v("关键词:")]), _c('p', {
544
+ attrs: {
545
+ "id": "keywordsField",
546
+ "aria-labelledby": "keywordsLabel"
547
+ }
548
+ }, [_vm._v("-")])]), _c('div', {
549
+ staticClass: "row"
550
+ }, [_c('span', {
551
+ attrs: {
552
+ "id": "creationDateLabel",
553
+ "data-l10n-id": "document_properties_creation_date"
554
+ }
555
+ }, [_vm._v("创建日期:")]), _c('p', {
556
+ attrs: {
557
+ "id": "creationDateField",
558
+ "aria-labelledby": "creationDateLabel"
559
+ }
560
+ }, [_vm._v("-")])]), _c('div', {
561
+ staticClass: "row"
562
+ }, [_c('span', {
563
+ attrs: {
564
+ "id": "modificationDateLabel",
565
+ "data-l10n-id": "document_properties_modification_date"
566
+ }
567
+ }, [_vm._v("修改日期:")]), _c('p', {
568
+ attrs: {
569
+ "id": "modificationDateField",
570
+ "aria-labelledby": "modificationDateLabel"
571
+ }
572
+ }, [_vm._v("-")])]), _c('div', {
573
+ staticClass: "row"
574
+ }, [_c('span', {
575
+ attrs: {
576
+ "id": "creatorLabel",
577
+ "data-l10n-id": "document_properties_creator"
578
+ }
579
+ }, [_vm._v("创建者:")]), _c('p', {
580
+ attrs: {
581
+ "id": "creatorField",
582
+ "aria-labelledby": "creatorLabel"
583
+ }
584
+ }, [_vm._v("-")])]), _c('div', {
585
+ staticClass: "separator"
586
+ }), _c('div', {
587
+ staticClass: "row"
588
+ }, [_c('span', {
589
+ attrs: {
590
+ "id": "producerLabel",
591
+ "data-l10n-id": "document_properties_producer"
592
+ }
593
+ }, [_vm._v("OFD 生成器:")]), _c('p', {
594
+ attrs: {
595
+ "id": "producerField",
596
+ "aria-labelledby": "producerLabel"
597
+ }
598
+ }, [_vm._v("-")])]), _c('div', {
599
+ staticClass: "row"
600
+ }, [_c('span', {
601
+ attrs: {
602
+ "id": "versionLabel",
603
+ "data-l10n-id": "document_properties_version"
604
+ }
605
+ }, [_vm._v("OFD 版本:")]), _c('p', {
606
+ attrs: {
607
+ "id": "versionField",
608
+ "aria-labelledby": "versionLabel"
609
+ }
610
+ }, [_vm._v("-")])]), _c('div', {
611
+ staticClass: "row"
612
+ }, [_c('span', {
613
+ attrs: {
614
+ "id": "pageCountLabel",
615
+ "data-l10n-id": "document_properties_page_count"
616
+ }
617
+ }, [_vm._v("页数:")]), _c('p', {
618
+ attrs: {
619
+ "id": "pageCountField",
620
+ "aria-labelledby": "pageCountLabel"
621
+ }
622
+ }, [_vm._v("-")])]), _c('div', {
623
+ staticClass: "row"
624
+ }, [_c('span', {
625
+ attrs: {
626
+ "id": "pageSizeLabel",
627
+ "data-l10n-id": "document_properties_page_size"
628
+ }
629
+ }, [_vm._v("页面大小:")]), _c('p', {
630
+ attrs: {
631
+ "id": "pageSizeField",
632
+ "aria-labelledby": "pageSizeLabel"
633
+ }
634
+ }, [_vm._v("-")])]), _c('div', {
635
+ staticClass: "separator"
636
+ }), _c('div', {
637
+ staticClass: "row",
638
+ attrs: {
639
+ "hidden": "hidden"
640
+ }
641
+ }, [_c('span', {
642
+ attrs: {
643
+ "id": "linearizedLabel",
644
+ "data-l10n-id": "document_properties_linearized"
645
+ }
646
+ }, [_vm._v("快速 Web 视图:")]), _c('p', {
647
+ attrs: {
648
+ "id": "linearizedField",
649
+ "aria-labelledby": "linearizedLabel"
650
+ }
651
+ }, [_vm._v("-")])]), _c('div', {
652
+ staticClass: "buttonRow"
653
+ }, [_c('button', {
654
+ staticClass: "dialogButton",
655
+ attrs: {
656
+ "id": "documentPropertiesClose"
657
+ }
658
+ }, [_c('span', {
659
+ attrs: {
660
+ "data-l10n-id": "document_properties_close"
661
+ }
662
+ }, [_vm._v("关闭")])])])]), _c('dialog', {
663
+ staticStyle: {
664
+ "min-width": "200px"
665
+ },
666
+ attrs: {
667
+ "id": "printServiceDialog"
668
+ }
669
+ }, [_c('div', {
670
+ staticClass: "row"
671
+ }, [_c('span', {
672
+ attrs: {
673
+ "data-l10n-id": "print_progress_message"
674
+ }
675
+ }, [_vm._v("正在准备打印文档…")])]), _c('div', {
676
+ staticClass: "row"
677
+ }, [_c('progress', {
678
+ attrs: {
679
+ "id": "printProgress",
680
+ "value": "0",
681
+ "max": "100"
682
+ }
683
+ }), _c('span', {
684
+ staticClass: "relative-progress",
685
+ attrs: {
686
+ "data-l10n-id": "print_progress_percent",
687
+ "data-l10n-args": "{ \"progress\": 0 }"
688
+ }
689
+ }, [_vm._v("0%")])]), _c('div', {
690
+ staticClass: "buttonRow"
691
+ }, [_c('button', {
692
+ staticClass: "dialogButton",
693
+ attrs: {
694
+ "id": "printCancel"
695
+ }
696
+ }, [_c('span', {
697
+ attrs: {
698
+ "data-l10n-id": "print_progress_close"
699
+ }
700
+ }, [_vm._v("取消")])])])]), _c('dialog', {
701
+ attrs: {
702
+ "id": "signaturePropertiesDialog"
703
+ }
704
+ }, [_c('div', {
705
+ staticClass: "row"
706
+ }, [_c('span', {
707
+ attrs: {
708
+ "id": "signerLabel"
709
+ }
710
+ }, [_vm._v("签章人:")]), _c('p', {
711
+ attrs: {
712
+ "id": "signerField",
713
+ "aria-labelledby": "fileNameLabel"
714
+ }
715
+ }, [_vm._v("-")])]), _c('div', {
716
+ staticClass: "row"
717
+ }, [_c('span', {
718
+ attrs: {
719
+ "id": "providerLabel"
720
+ }
721
+ }, [_vm._v("签章提供者:")]), _c('p', {
722
+ attrs: {
723
+ "id": "providerField",
724
+ "aria-labelledby": "fileNameLabel"
725
+ }
726
+ }, [_vm._v("-")])]), _c('div', {
727
+ staticClass: "row"
728
+ }, [_c('span', {
729
+ attrs: {
730
+ "id": "hashedValueLabel"
731
+ }
732
+ }, [_vm._v("原文摘要值:")]), _c('p', {
733
+ attrs: {
734
+ "id": "hashedValueField",
735
+ "aria-labelledby": "fileNameLabel"
736
+ }
737
+ }, [_vm._v("-")])]), _c('div', {
738
+ staticClass: "row"
739
+ }, [_c('span', {
740
+ attrs: {
741
+ "id": "signedValueLabel"
742
+ }
743
+ }, [_vm._v("签名值:")]), _c('p', {
744
+ attrs: {
745
+ "id": "signedValueField",
746
+ "aria-labelledby": "fileNameLabel"
747
+ }
748
+ }, [_vm._v("-")])]), _c('div', {
749
+ staticClass: "row"
750
+ }, [_c('span', {
751
+ attrs: {
752
+ "id": "signMethodLabel"
753
+ }
754
+ }, [_vm._v("签名算法:")]), _c('p', {
755
+ attrs: {
756
+ "id": "signMethodField",
757
+ "aria-labelledby": "fileNameLabel"
758
+ }
759
+ }, [_vm._v("-")])]), _c('div', {
760
+ staticClass: "row"
761
+ }, [_c('span', {
762
+ attrs: {
763
+ "id": "signVersionLabel"
764
+ }
765
+ }, [_vm._v("版本号:")]), _c('p', {
766
+ attrs: {
767
+ "id": "signVersionField",
768
+ "aria-labelledby": "fileNameLabel"
769
+ }
770
+ }, [_vm._v("-")])]), _c('div', {
771
+ staticClass: "row"
772
+ }, [_c('span', {
773
+ attrs: {
774
+ "id": "verifyLabel"
775
+ }
776
+ }, [_vm._v("验签结果:")]), _c('p', {
777
+ attrs: {
778
+ "id": "verifyField",
779
+ "aria-labelledby": "fileNameLabel"
780
+ }
781
+ }, [_vm._v("-")])]), _c('div', {
782
+ staticClass: "separator"
783
+ }), _c('div', {
784
+ staticClass: "row"
785
+ }, [_c('span', {
786
+ attrs: {
787
+ "id": "sealIDLabel"
788
+ }
789
+ }, [_vm._v("印章标识:")]), _c('p', {
790
+ attrs: {
791
+ "id": "sealIDField",
792
+ "aria-labelledby": "fileNameLabel"
793
+ }
794
+ }, [_vm._v("-")])]), _c('div', {
795
+ staticClass: "row"
796
+ }, [_c('span', {
797
+ attrs: {
798
+ "id": "sealNameLabel"
799
+ }
800
+ }, [_vm._v("印章名称:")]), _c('p', {
801
+ attrs: {
802
+ "id": "sealNameField",
803
+ "aria-labelledby": "fileNameLabel"
804
+ }
805
+ }, [_vm._v("-")])]), _c('div', {
806
+ staticClass: "row"
807
+ }, [_c('span', {
808
+ attrs: {
809
+ "id": "sealTypeLabel"
810
+ }
811
+ }, [_vm._v("印章类型:")]), _c('p', {
812
+ attrs: {
813
+ "id": "sealTypeField",
814
+ "aria-labelledby": "fileNameLabel"
815
+ }
816
+ }, [_vm._v("-")])]), _c('div', {
817
+ staticClass: "row"
818
+ }, [_c('span', {
819
+ attrs: {
820
+ "id": "sealAuthTimeLabel"
821
+ }
822
+ }, [_vm._v("有效时间:")]), _c('p', {
823
+ attrs: {
824
+ "id": "sealAuthTimeField",
825
+ "aria-labelledby": "fileNameLabel"
826
+ }
827
+ }, [_vm._v("-")])]), _c('div', {
828
+ staticClass: "row"
829
+ }, [_c('span', {
830
+ attrs: {
831
+ "id": "sealMakeTimeLabel"
832
+ }
833
+ }, [_vm._v("制章日期:")]), _c('p', {
834
+ attrs: {
835
+ "id": "sealMakeTimeField",
836
+ "aria-labelledby": "fileNameLabel"
837
+ }
838
+ }, [_vm._v("-")])]), _c('div', {
839
+ staticClass: "row"
840
+ }, [_c('span', {
841
+ attrs: {
842
+ "id": "sealVersionLabel"
843
+ }
844
+ }, [_vm._v("印章版本:")]), _c('p', {
845
+ attrs: {
846
+ "id": "sealVersionField",
847
+ "aria-labelledby": "fileNameLabel"
848
+ }
849
+ }, [_vm._v("-")])]), _c('div', {
850
+ staticClass: "buttonRow"
851
+ }, [_c('button', {
852
+ staticClass: "dialogButton",
853
+ attrs: {
854
+ "id": "signaturePropertiesClose"
855
+ }
856
+ }, [_c('span', {
857
+ attrs: {
858
+ "data-l10n-id": "document_properties_close"
859
+ }
860
+ }, [_vm._v("关闭")])])])])])]);
861
+ }];
862
+
863
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=26db05e2&scoped=true&
864
+
865
+ // EXTERNAL MODULE: external {"commonjs":"ofd.js","commonjs2":"ofd.js","root":"ofd"}
866
+ var external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_ = __webpack_require__(485);
867
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=script&lang=js&
229
868
 
869
+ /* harmony default export */ var srcvue_type_script_lang_js_ = ({
870
+ name: "OfdView",
871
+ props: {
872
+ url: {
873
+ type: String,
874
+ required: true
875
+ }
876
+ },
877
+ watch: {},
878
+ data() {
879
+ return {
880
+ config: null
881
+ };
882
+ },
883
+ mounted() {
884
+ if (!this.config) {
885
+ this.config = this.getViewerConfiguration();
886
+ //vue下viewerContainer必须设置height
887
+ // this.containerHeight = `${window.innerHeight - 100}px`
888
+ let img = new Image();
889
+ img.style.position = 'absolute';
890
+ img.style.left = 0;
891
+ img.style.right = 0;
892
+ img.style.margin = 'auto';
893
+ img.style.top = 0;
894
+ img.style.bottom = 0;
895
+ img.src = 'data:image/gif;base64,R0lGODlhNgA3APMAAP///zAyOJKTlkdJTzw+RN/g4XV2euPj5M/Q0WtscaChpDAyODAyODAyODAyODAyOCH5BAkKAAAAIf4aQ3JlYXRlZCB3aXRoIGFqYXhsb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MwQyEmrvTjrzbv/YCiOZGmeaKqurDAMAlsKRE3EsjjYxJDrPN8PRLPhfohELYHQuGBDgIJXU0Q5CKqtOXsdP0otITHjfTtiW2lnE37StXUwFNaSScXaGZvm4r0jU1RWV1hhTIWJiouMjVcFBjUGBY4WBWw1A5RDT3sTkVQGnGYYaUOYPaVip3MXoDyiP3k3GAeoAwdRnRoHoAa5lcHCw8TFxscduyjKIrOeRKRAbSe3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOw==';
896
+ img.draggable = false;
897
+ this.config.loadingContainer = img;
898
+ // config.onPageChanging = pageNumber => {
899
+ // // console.log(pageNumber)
900
+ // }
901
+ // config.parserOFDSuccess = core => {
902
+ // // console.log(core)
903
+ // }
904
+ // config.onPageScale = scale => {
905
+ // // console.log(scale)
906
+ // }
907
+ }
908
+
909
+ (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_.openOFDViewer)(this.config);
910
+ if (this.url) {
911
+ (0,external_commonjs_ofd_js_commonjs2_ofd_js_root_ofd_.openOFD)(this.url);
912
+ }
913
+ this.$emit('ofdViewReady', this.config);
914
+ },
915
+ methods: {
916
+ getViewerConfiguration() {
917
+ let errorWrapper = null;
918
+ errorWrapper = {
919
+ container: document.getElementById('errorWrapper'),
920
+ errorMessage: document.getElementById('errorMessage'),
921
+ closeButton: document.getElementById('errorClose'),
922
+ errorMoreInfo: document.getElementById('errorMoreInfo'),
923
+ moreInfoButton: document.getElementById('errorShowMore'),
924
+ lessInfoButton: document.getElementById('errorShowLess')
925
+ };
926
+ return {
927
+ appContainer: document.body,
928
+ mainContainer: document.getElementById('viewerContainer'),
929
+ viewerContainer: document.getElementById('viewer'),
930
+ toolbar: {
931
+ container: document.getElementById('toolbarViewer'),
932
+ numPages: document.getElementById('numPages'),
933
+ pageNumber: document.getElementById('pageNumber'),
934
+ scaleSelect: document.getElementById('scaleSelect'),
935
+ customScaleOption: document.getElementById('customScaleOption'),
936
+ previous: document.getElementById('previous'),
937
+ next: document.getElementById('next'),
938
+ zoomIn: document.getElementById('zoomIn'),
939
+ zoomOut: document.getElementById('zoomOut'),
940
+ openFile: document.getElementById('openFile'),
941
+ print: document.getElementById('print')
942
+ },
943
+ secondaryToolbar: {
944
+ toolbar: document.getElementById('secondaryToolbar'),
945
+ toggleButton: document.getElementById('secondaryToolbarToggle'),
946
+ toolbarButtonContainer: document.getElementById('secondaryToolbarButtonContainer'),
947
+ openFileButton: document.getElementById('secondaryOpenFile'),
948
+ printButton: document.getElementById('secondaryPrint'),
949
+ documentPropertiesButton: document.getElementById('documentProperties')
950
+ },
951
+ sidebar: {
952
+ // Divs (and sidebar button)
953
+ outerContainer: document.getElementById('outerContainer'),
954
+ viewerContainer: document.getElementById('viewerContainer')
955
+ },
956
+ sidebarResizer: {
957
+ outerContainer: document.getElementById('outerContainer')
958
+ },
959
+ documentProperties: {
960
+ dialog: document.getElementById('documentPropertiesDialog'),
961
+ closeButton: document.getElementById('documentPropertiesClose'),
962
+ fields: {
963
+ fileName: document.getElementById('fileNameField'),
964
+ fileSize: document.getElementById('fileSizeField'),
965
+ title: document.getElementById('titleField'),
966
+ author: document.getElementById('authorField'),
967
+ subject: document.getElementById('subjectField'),
968
+ keywords: document.getElementById('keywordsField'),
969
+ creationDate: document.getElementById('creationDateField'),
970
+ modificationDate: document.getElementById('modificationDateField'),
971
+ creator: document.getElementById('creatorField'),
972
+ producer: document.getElementById('producerField'),
973
+ version: document.getElementById('versionField'),
974
+ pageCount: document.getElementById('pageCountField'),
975
+ pageSize: document.getElementById('pageSizeField'),
976
+ linearized: document.getElementById('linearizedField')
977
+ }
978
+ },
979
+ signatureProperties: {
980
+ dialog: document.getElementById('signaturePropertiesDialog'),
981
+ closeButton: document.getElementById('signaturePropertiesClose'),
982
+ fields: {
983
+ signer: document.getElementById('signerField'),
984
+ provider: document.getElementById('providerField'),
985
+ hashedValue: document.getElementById('hashedValueField'),
986
+ signedValue: document.getElementById('signedValueField'),
987
+ signMethod: document.getElementById('signMethodField'),
988
+ signVersion: document.getElementById('signVersionField'),
989
+ verify: document.getElementById('verifyField'),
990
+ sealID: document.getElementById('sealIDField'),
991
+ sealName: document.getElementById('sealNameField'),
992
+ sealType: document.getElementById('sealTypeField'),
993
+ sealAuthTime: document.getElementById('sealAuthTimeField'),
994
+ sealMakeTime: document.getElementById('sealMakeTimeField'),
995
+ sealVersion: document.getElementById('sealVersionField')
996
+ }
997
+ },
998
+ errorWrapper,
999
+ printContainer: document.getElementById('printContainer'),
1000
+ openFileInputName: 'fileInput'
1001
+ };
1002
+ }
1003
+ }
1004
+ });
230
1005
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
231
1006
  /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
232
1007
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
@@ -341,56 +1116,51 @@ var component = normalizeComponent(
341
1116
  staticRenderFns,
342
1117
  false,
343
1118
  null,
344
- "5f966ce0",
1119
+ "26db05e2",
345
1120
  null
346
1121
 
347
1122
  )
348
1123
 
349
1124
  /* harmony default export */ var ofdView_src = (component.exports);
350
1125
  ;// CONCATENATED MODULE: ./packages/ofdView/index.js
351
-
352
-
353
- ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src);//注册组件
354
-
355
- /* harmony default export */ var ofdView = (ofdView_src);
356
1126
 
1127
+ ofdView_src.install = Vue => Vue.component(ofdView_src.name, ofdView_src); //注册组件
1128
+
1129
+ /* harmony default export */ var ofdView = (ofdView_src);
357
1130
  ;// CONCATENATED MODULE: ./packages/index.js
358
-
359
- // import PdvView from './pdfView'
360
-
361
- const components = [
362
- ofdView,
363
- // PdvView
364
- ]
365
-
366
- // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
367
- const install = function (Vue) {
368
-
369
- // 判断是否安装
370
- if (install.installed) return
371
- // 遍历注册全局组件
372
- components.map(component => Vue.component(component.name, component))
373
- }
374
-
375
- // 判断是否是直接引入文件
376
- if (typeof window !== 'undefined' && window.Vue) {
377
- install(window.Vue)
378
- }
379
-
380
- /* harmony default export */ var packages_0 = ({
381
- // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
382
- install,
383
- // 以下是具体的组件列表
384
- OfdView: ofdView,
385
- // PdvView
386
- });
387
1131
 
1132
+ // import PdvView from './pdfView'
1133
+
1134
+ const components = [ofdView
1135
+ // PdvView
1136
+ ];
1137
+
1138
+ // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
1139
+ const install = function (Vue) {
1140
+ // 判断是否安装
1141
+ if (install.installed) return;
1142
+ // 遍历注册全局组件
1143
+ components.map(component => Vue.component(component.name, component));
1144
+ };
1145
+
1146
+ // 判断是否是直接引入文件
1147
+ if (typeof window !== 'undefined' && window.Vue) {
1148
+ install(window.Vue);
1149
+ }
1150
+ /* harmony default export */ var packages_0 = ({
1151
+ // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
1152
+ install,
1153
+ // 以下是具体的组件列表
1154
+ OfdView: ofdView
1155
+ // PdvView
1156
+ });
388
1157
  ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
389
1158
 
390
1159
 
391
1160
  /* harmony default export */ var entry_lib = (packages_0);
392
1161
 
393
1162
 
1163
+ }();
394
1164
  /******/ return __webpack_exports__;
395
1165
  /******/ })()
396
1166
  ;