ofd-view 0.1.34 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 966:
14
+ /***/ 868:
15
15
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
16
 
17
17
  "use strict";
@@ -25,7 +25,28 @@ __webpack_require__.r(__webpack_exports__);
25
25
 
26
26
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
27
27
  // Module
28
- ___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-6cdf0a0c]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-6cdf0a0c]{display:none}.vdr[data-v-6cdf0a0c]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-6cdf0a0c]{display:block}.handle[data-v-6cdf0a0c]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-6cdf0a0c]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-6cdf0a0c]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-6cdf0a0c]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-6cdf0a0c]{left:-10px;cursor:w-resize}.handle-ml[data-v-6cdf0a0c],.handle-mr[data-v-6cdf0a0c]{top:50%;margin-top:-5px}.handle-mr[data-v-6cdf0a0c]{right:-10px;cursor:e-resize}.handle-bl[data-v-6cdf0a0c]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-6cdf0a0c]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-6cdf0a0c]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-6cdf0a0c]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-6cdf0a0c]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-6cdf0a0c]:before{content:\"\\2716\"}.close[data-v-6cdf0a0c]{top:5px;right:2px;position:absolute}", ""]);
28
+ ___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-eeede7ac]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-eeede7ac]{display:none}.vdr[data-v-eeede7ac]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-eeede7ac]{display:block}.handle[data-v-eeede7ac]{box-sizing:border-box;display:none;position:absolute;width:10px;height:10px;font-size:1px;background:rgba(253,57,122,.08);border:1px solid #fd397a}.handle-tl[data-v-eeede7ac]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-eeede7ac]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-eeede7ac]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-eeede7ac]{left:-10px;cursor:w-resize}.handle-ml[data-v-eeede7ac],.handle-mr[data-v-eeede7ac]{top:50%;margin-top:-5px}.handle-mr[data-v-eeede7ac]{right:-10px;cursor:e-resize}.handle-bl[data-v-eeede7ac]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-eeede7ac]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-eeede7ac]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-eeede7ac]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-eeede7ac]{background:orange;color:red;border-radius:12px;line-height:20px;text-align:center;height:20px;width:20px;font-size:18px;padding:1px}.close[data-v-eeede7ac]:before{content:\"\\2716\"}.close[data-v-eeede7ac]{top:5px;right:2px;position:absolute}", ""]);
29
+ // Exports
30
+ /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
31
+
32
+
33
+ /***/ }),
34
+
35
+ /***/ 310:
36
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
37
+
38
+ "use strict";
39
+ __webpack_require__.r(__webpack_exports__);
40
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81);
41
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
42
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(645);
43
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
44
+ // Imports
45
+
46
+
47
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
48
+ // Module
49
+ ___CSS_LOADER_EXPORT___.push([module.id, ".stamp[data-v-a406d886]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}", ""]);
29
50
  // Exports
30
51
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
31
52
 
@@ -153,19 +174,35 @@ module.exports = function (i) {
153
174
 
154
175
  /***/ }),
155
176
 
156
- /***/ 565:
177
+ /***/ 901:
178
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
179
+
180
+ // style-loader: Adds some css to the DOM by adding a <style> tag
181
+
182
+ // load the styles
183
+ var content = __webpack_require__(868);
184
+ if(content.__esModule) content = content.default;
185
+ if(typeof content === 'string') content = [[module.id, content, '']];
186
+ if(content.locals) module.exports = content.locals;
187
+ // add the styles to the DOM
188
+ var add = (__webpack_require__(402)/* ["default"] */ .Z)
189
+ var update = add("2a35904a", content, true, {"sourceMap":false,"shadowMode":false});
190
+
191
+ /***/ }),
192
+
193
+ /***/ 215:
157
194
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
158
195
 
159
196
  // style-loader: Adds some css to the DOM by adding a <style> tag
160
197
 
161
198
  // load the styles
162
- var content = __webpack_require__(966);
199
+ var content = __webpack_require__(310);
163
200
  if(content.__esModule) content = content.default;
164
201
  if(typeof content === 'string') content = [[module.id, content, '']];
165
202
  if(content.locals) module.exports = content.locals;
166
203
  // add the styles to the DOM
167
204
  var add = (__webpack_require__(402)/* ["default"] */ .Z)
168
- var update = add("ca85196c", content, true, {"sourceMap":false,"shadowMode":false});
205
+ var update = add("01943751", content, true, {"sourceMap":false,"shadowMode":false});
169
206
 
170
207
  /***/ }),
171
208
 
@@ -537,21 +574,22 @@ if (typeof window !== 'undefined') {
537
574
  // Indicate to webpack that this file can be concatenated
538
575
  /* harmony default export */ var setPublicPath = (null);
539
576
 
540
- ;// 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=2691045a&scoped=true&
541
- var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_vm._m(0),_vm._v(" "),_c('div',{attrs:{"id":"mainContainer"}},[_vm._m(1),_vm._v(" "),_vm._m(2),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"}},_vm._l((_vm.stamps),function(stamp,index){return (_vm.viewVisible)?_c('vue-draggable-resizable',{key:stamp.key,attrs:{"w":stamp.w ? stamp.w : 174,"h":stamp.h ? stamp.h : 174,"parent":_vm.config.viewerContainer,"customForStamp":true,"eventBus":_vm.eventBus,"handles":['tl', 'tr', 'bl', 'br'],"index":index,"x":stamp.x,"y":stamp.located ? stamp.y : stamp.y + _vm.config.mainContainer.scrollTop,"pages":_vm.pdfViewer._pages,"currentPage":_vm.sp,"stampId":stamp.source.stampId,"draggable":_vm.draggable,"resizable":_vm.resizable,"editable":_vm.editable},on:{"dropitem":_vm.removeStamp,"dragstop":_vm.onStampDragStop,"placed":_vm.placed}},[_c('div',{staticClass:"stamp",style:({backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'})})]):_vm._e()}),1)]),_vm._m(3)]),_vm._v(" "),_vm._m(4)])
577
+ ;// 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=a406d886&scoped=true&
578
+ var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"outerContainer"}},[_vm._m(0),_vm._v(" "),_c('div',{attrs:{"id":"mainContainer"}},[_vm._m(1),_vm._v(" "),_vm._m(2),_c('div',{attrs:{"id":"viewerContainer","tabindex":"0"}},[_c('div',{staticClass:"pdfViewer",attrs:{"id":"viewer"},on:{"dragover":function($event){$event.preventDefault();return _vm.onStampDragOver.apply(null, arguments)}}},_vm._l((_vm.stamps),function(stamp,index){return (_vm.viewVisible)?_c('vue-draggable-resizable',{attrs:{"w":stamp.w ? stamp.w : 174,"h":stamp.h ? stamp.h : 174,"parent":_vm.config.viewerContainer,"customForStamp":true,"eventBus":_vm.eventBus,"handles":['tl', 'tr', 'bl', 'br'],"index":index,"x":stamp.x,"y":stamp.located ? stamp.y : stamp.y + _vm.config.mainContainer.scrollTop,"pages":_vm.ofdViewer._pages,"currentPage":_vm.sp,"origin-bottom":false,"stampId":stamp.source.stampId,"draggable":_vm.draggable,"resizable":_vm.resizable,"editable":_vm.editable},on:{"dropitem":_vm.removeStamp,"dragstop":_vm.onStampDragStop,"placed":_vm.placed}},[_c('div',{staticClass:"stamp",style:({backgroundImage : 'url(data:image/png;base64,' + stamp.source.stampBase64 + ')'})})]):_vm._e()}),1),_vm._m(3)]),_vm._m(4)]),_vm._v(" "),_vm._m(5)])
542
579
  }
543
580
  var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{attrs:{"id":"sidebarContainer"}},[_c('div',{attrs:{"id":"toolbarSidebar"}},[_c('div',{attrs:{"id":"toolbarSidebarLeft"}},[_c('div',{staticClass:"splitToolbarButton toggled",attrs:{"id":"sidebarViewButtons","role":"radiogroup"}})]),_c('div',{attrs:{"id":"toolbarSidebarRight"}},[_c('div',{staticClass:"hidden",attrs:{"id":"outlineOptionsContainer"}},[_c('div',{staticClass:"verticalToolbarSeparator"}),_c('button',{staticClass:"toolbarButton",attrs:{"id":"currentOutlineItem","disabled":"disabled","title":"Find Current Outline Item","tabindex":"6","data-l10n-id":"current_outline_item"}},[_c('span',{attrs:{"data-l10n-id":"current_outline_item_label"}},[_vm._v("Current Outline Item")])])])])]),_c('div',{attrs:{"id":"sidebarContent"}},[_c('div',{attrs:{"id":"signaturesView"}})]),_c('div',{attrs:{"id":"sidebarResizer"}})])
544
581
  },function (){var _vm=this,_c=_vm._self._c;return _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("文档属性…")])])])])
545
582
  },function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"toolbar"},[_c('div',{attrs:{"id":"toolbarContainer"}},[_c('div',{attrs:{"id":"toolbarViewer"}},[_c('div',{attrs:{"id":"toolbarViewerLeft"}},[_c('button',{staticClass:"toolbarButton",attrs:{"id":"sidebarToggle","title":"Toggle Sidebar","tabindex":"11","data-l10n-id":"toggle_sidebar","aria-expanded":"false","aria-controls":"sidebarContainer"}},[_c('span',{attrs:{"data-l10n-id":"toggle_sidebar_label"}},[_vm._v("切换侧栏")])]),_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%")])])])])])])])
583
+ },function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticStyle:{"display":"flex","flex-direction":"column","width":"100%","height":"100%","justify-content":"center","align-items":"center"},attrs:{"id":"openFileTip"}},[_c('div',{staticClass:"thumbnail",staticStyle:{"display":"flex","flex-direction":"column","justify-items":"center","align-items":"center","width":"400px","height":"200px"}},[_c('h3',{staticClass:"toolbarLabel",staticStyle:{"margin-top":"50px"}},[_vm._v(" 点击打开文件 ")]),_c('span',{staticClass:"toolbarLabel"},[_vm._v("仅支持OFD文件 ")])])])
546
584
  },function (){var _vm=this,_c=_vm._self._c;return _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"}})])
547
585
  },function (){var _vm=this,_c=_vm._self._c;return _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("关闭")])])])])])
548
586
  }]
549
587
 
550
588
 
551
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=2691045a&scoped=true&
589
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=a406d886&scoped=true&
552
590
 
553
- ;// 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/draggable-resizable/draggable-resizable.vue?vue&type=template&id=6cdf0a0c&scoped=true&
554
- var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
591
+ ;// 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/draggable-resizable/draggable-resizable.vue?vue&type=template&id=eeede7ac&scoped=true&
592
+ var draggable_resizablevue_type_template_id_eeede7ac_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
555
593
  draggable: _vm.draggable,
556
594
  resizable: _vm.resizable,
557
595
  active: _vm.enabled,
@@ -559,7 +597,7 @@ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_render = functi
559
597
  resizing: _vm.resizing
560
598
  },style:(_vm.style),on:{"mousedown":_vm.elmDown,"touchstart":_vm.elmDown}},[(_vm.editable)?_c('button',{staticClass:"btn btn-danger btn-elevate btn-pill btn-icon btn-elevate-air btn-sm",staticStyle:{"position":"absolute","right":"5px","top":"-20px"},attrs:{"type":"button"},on:{"click":function($event){$event.stopPropagation();return _vm.dropItem.apply(null, arguments)}}},[_c('span',{staticClass:"close"})]):_vm._e(),_vm._l((_vm.handles),function(handle){return (_vm.resizable)?_c('div',{key:handle,staticClass:"handle",class:'handle-' + handle,style:({ display: _vm.enabled ? 'block' : 'none'}),on:{"mousedown":function($event){return _vm.handleDown(handle, $event)},"touchstart":function($event){return _vm.handleDown(handle, $event)}}}):_vm._e()}),_vm._t("default")],2)
561
599
  }
562
- var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns = []
600
+ var draggable_resizablevue_type_template_id_eeede7ac_scoped_true_staticRenderFns = []
563
601
 
564
602
 
565
603
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
@@ -605,6 +643,9 @@ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns
605
643
  editable: {
606
644
  type: Boolean, default: true
607
645
  },
646
+ originBottom: {
647
+ type: Boolean, default: true
648
+ },
608
649
  w: {
609
650
  type: Number,
610
651
  default: 200,
@@ -855,12 +896,16 @@ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns
855
896
  this.section.length = 0;
856
897
  let t = 10;
857
898
  for(let i = 0; i < this.pagesCount; i++){
858
- t = t + (i > 0 ? this.pages[i].viewport.height : 0) + (i > 0 ? 9+2 : 0);
899
+ t = t + (i > 0 ? this.pages[this.originBottom?i:i-1].viewport.height : 0) + (i > 0 ? 9+2 : 0);
859
900
  this.section.push({
860
901
  t,
861
902
  o: this.pages[i].div.offsetLeft + 9
862
903
  });
863
904
  }
905
+ this.section.push({
906
+ t: this.section[this.pagesCount-1].t + this.pages[this.pagesCount-1].viewport.height +9+2,
907
+ o: this.pages[this.pagesCount-1].div.offsetLeft + 9
908
+ });
864
909
  },
865
910
  stampResize(){
866
911
  if(this.scale != null){
@@ -891,7 +936,7 @@ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns
891
936
  _emitPlaced(pageIndex){
892
937
  this.$emit('placed', pageIndex, this.index, {
893
938
  x : (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,
894
- y: (this.pages[pageIndex].viewport.height - (this.top + this.elmH - this.section[pageIndex].t)) / this.pages[pageIndex].viewport.height,
939
+ y: (!this.originBottom ? (this.top - this.section[pageIndex].t) : (this.pages[pageIndex].viewport.height - (this.top + this.elmH - this.section[pageIndex].t))) / this.pages[pageIndex].viewport.height,
895
940
  w: this.elmW / this.pages[pageIndex].viewport.width,
896
941
  h: this.elmH / this.pages[pageIndex].viewport.height
897
942
  }, this.stampId);
@@ -1140,15 +1185,15 @@ var draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns
1140
1185
  },
1141
1186
  currentPage: function(newVal){
1142
1187
  this.stampAreaUpdate(newVal);
1143
- }
1188
+ },
1144
1189
  }
1145
1190
  });
1146
1191
 
1147
1192
  ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
1148
1193
  /* harmony default export */ var draggable_resizable_draggable_resizablevue_type_script_lang_js_ = (draggable_resizablevue_type_script_lang_js_);
1149
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=6cdf0a0c&prod&scoped=true&lang=css&
1150
- var draggable_resizablevue_type_style_index_0_id_6cdf0a0c_prod_scoped_true_lang_css_ = __webpack_require__(565);
1151
- ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=6cdf0a0c&prod&scoped=true&lang=css&
1194
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=eeede7ac&prod&scoped=true&lang=css&
1195
+ var draggable_resizablevue_type_style_index_0_id_eeede7ac_prod_scoped_true_lang_css_ = __webpack_require__(901);
1196
+ ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=eeede7ac&prod&scoped=true&lang=css&
1152
1197
 
1153
1198
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1154
1199
  /* globals __VUE_SSR_CONTEXT__ */
@@ -1259,11 +1304,11 @@ function normalizeComponent(
1259
1304
 
1260
1305
  var component = normalizeComponent(
1261
1306
  draggable_resizable_draggable_resizablevue_type_script_lang_js_,
1262
- draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_render,
1263
- draggable_resizablevue_type_template_id_6cdf0a0c_scoped_true_staticRenderFns,
1307
+ draggable_resizablevue_type_template_id_eeede7ac_scoped_true_render,
1308
+ draggable_resizablevue_type_template_id_eeede7ac_scoped_true_staticRenderFns,
1264
1309
  false,
1265
1310
  null,
1266
- "6cdf0a0c",
1311
+ "eeede7ac",
1267
1312
  null
1268
1313
 
1269
1314
  )
@@ -1280,7 +1325,7 @@ var component = normalizeComponent(
1280
1325
  },
1281
1326
  props: {
1282
1327
  file: {
1283
- required: true
1328
+ required: false
1284
1329
  },
1285
1330
  mem: {
1286
1331
  required: true,
@@ -1320,6 +1365,7 @@ var component = normalizeComponent(
1320
1365
  immediate: true,
1321
1366
  handler(val) {
1322
1367
  if (this.config && this.mem) {
1368
+ this.ofdViewer = null
1323
1369
  this.mem.openOFD(val)
1324
1370
  }
1325
1371
  }
@@ -1333,6 +1379,7 @@ var component = normalizeComponent(
1333
1379
  config: null,
1334
1380
  eventBus: null,
1335
1381
  sp: 1,
1382
+ ofdViewer: null
1336
1383
  }
1337
1384
  },
1338
1385
 
@@ -1357,17 +1404,26 @@ var component = normalizeComponent(
1357
1404
  }
1358
1405
  this.config.parserOFDSuccess = core => {
1359
1406
  // console.log(core)
1360
- this.$emit('viewready', core)
1361
1407
  }
1362
- // config.onPageScale = scale => {
1363
- // // console.log(scale)
1364
- // }
1408
+ this.config.onPageScale = scale => {
1409
+ // this.viewVisible = false
1410
+ this.eventBus.dispatch('stampResize', {source: null});
1411
+ }
1412
+ this.config.onViewportChange = view => {
1413
+ if (!this.ofdViewer) {
1414
+ this.viewVisible = true
1415
+ this.$emit('viewready', view)
1416
+ }
1417
+ this.ofdViewer = view
1418
+ // this.eventBus.dispatch('stampResize', {source: null});
1419
+ }
1365
1420
  this.config.secret = this.secret
1366
1421
  this.config.digest = this.digest
1367
1422
  this.config.sidebarForceOpen = this.sidebarForceOpen
1368
1423
  this.config.signatureViewerForceCheck = this.signatureViewerForceCheck
1369
1424
 
1370
1425
  this.mem.initOFDViewer(this.config)
1426
+ this.eventBus = this.mem.getEventBus()
1371
1427
  }
1372
1428
  if (this.file) {
1373
1429
  this.mem.openOFD(this.file)
@@ -1391,6 +1447,7 @@ var component = normalizeComponent(
1391
1447
  appContainer: document.body,
1392
1448
  mainContainer: document.getElementById('viewerContainer'),
1393
1449
  viewerContainer: document.getElementById('viewer'),
1450
+ openFileTip: document.getElementById('openFileTip'),
1394
1451
  toolbar: {
1395
1452
  container: document.getElementById('toolbarViewer'),
1396
1453
  numPages: document.getElementById('numPages'),
@@ -1504,21 +1561,26 @@ var component = normalizeComponent(
1504
1561
 
1505
1562
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1506
1563
  /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
1564
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ofdView/src/index.vue?vue&type=style&index=0&id=a406d886&prod&scoped=true&lang=css&
1565
+ var srcvue_type_style_index_0_id_a406d886_prod_scoped_true_lang_css_ = __webpack_require__(215);
1566
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=style&index=0&id=a406d886&prod&scoped=true&lang=css&
1567
+
1507
1568
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue
1508
1569
 
1509
1570
 
1510
1571
 
1572
+ ;
1511
1573
 
1512
1574
 
1513
1575
  /* normalize component */
1514
- ;
1576
+
1515
1577
  var src_component = normalizeComponent(
1516
1578
  ofdView_srcvue_type_script_lang_js_,
1517
1579
  render,
1518
1580
  staticRenderFns,
1519
1581
  false,
1520
1582
  null,
1521
- "2691045a",
1583
+ "a406d886",
1522
1584
  null
1523
1585
 
1524
1586
  )