ofd-view 0.1.37 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-eeede7ac]{touch-action:non
32
32
 
33
33
  /***/ }),
34
34
 
35
- /***/ 500:
35
+ /***/ 651:
36
36
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
37
37
 
38
38
  "use strict";
@@ -46,7 +46,7 @@ __webpack_require__.r(__webpack_exports__);
46
46
 
47
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
48
  // Module
49
- ___CSS_LOADER_EXPORT___.push([module.id, ".stamp[data-v-6faeafe5]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}", ""]);
49
+ ___CSS_LOADER_EXPORT___.push([module.id, ".stamp[data-v-e41229f6]{background-position:50%;background-repeat:no-repeat;background-size:contain;width:100%;height:100%}", ""]);
50
50
  // Exports
51
51
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
52
52
 
@@ -190,19 +190,19 @@ var update = add("2a35904a", content, true, {"sourceMap":false,"shadowMode":fals
190
190
 
191
191
  /***/ }),
192
192
 
193
- /***/ 861:
193
+ /***/ 29:
194
194
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
195
195
 
196
196
  // style-loader: Adds some css to the DOM by adding a <style> tag
197
197
 
198
198
  // load the styles
199
- var content = __webpack_require__(500);
199
+ var content = __webpack_require__(651);
200
200
  if(content.__esModule) content = content.default;
201
201
  if(typeof content === 'string') content = [[module.id, content, '']];
202
202
  if(content.locals) module.exports = content.locals;
203
203
  // add the styles to the DOM
204
204
  var add = (__webpack_require__(402)/* ["default"] */ .Z)
205
- var update = add("9adb26a2", content, true, {"sourceMap":false,"shadowMode":false});
205
+ var update = add("3dac57a6", content, true, {"sourceMap":false,"shadowMode":false});
206
206
 
207
207
  /***/ }),
208
208
 
@@ -574,8 +574,8 @@ if (typeof window !== 'undefined') {
574
574
  // Indicate to webpack that this file can be concatenated
575
575
  /* harmony default export */ var setPublicPath = (null);
576
576
 
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=6faeafe5&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._t("default")],2),_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=e41229f6&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._t("openFileRef")],2),_vm._m(3)]),_vm._v(" "),_vm._m(4)])
579
579
  }
580
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"}})])
581
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("文档属性…")])])])])
@@ -585,7 +585,7 @@ var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',
585
585
  }]
586
586
 
587
587
 
588
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=6faeafe5&scoped=true&
588
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=e41229f6&scoped=true&
589
589
 
590
590
  ;// 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&
591
591
  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:{
@@ -1368,6 +1368,16 @@ var component = normalizeComponent(
1368
1368
  this.mem.openOFD(val)
1369
1369
  }
1370
1370
  }
1371
+ },
1372
+
1373
+ stamps: {
1374
+ immediate: true,
1375
+ handler(val) {
1376
+ if (this.config && this.mem && val.length > 0) {
1377
+ this.config.toolbar.openFile.hidden = true
1378
+ this.config.secondaryToolbar.openFileButton.hidden = true
1379
+ }
1380
+ }
1371
1381
  }
1372
1382
  },
1373
1383
 
@@ -1432,6 +1442,7 @@ var component = normalizeComponent(
1432
1442
 
1433
1443
  methods: {
1434
1444
  getViewerConfiguration() {
1445
+ console.log(this.$slots)
1435
1446
  let errorWrapper = null
1436
1447
  errorWrapper = {
1437
1448
  container: document.getElementById('errorWrapper'),
@@ -1446,7 +1457,7 @@ var component = normalizeComponent(
1446
1457
  appContainer: document.body,
1447
1458
  mainContainer: document.getElementById('viewerContainer'),
1448
1459
  viewerContainer: document.getElementById('viewer'),
1449
- openFileTip: document.getElementById('openFileTip'),
1460
+ // openFileTip: this.$slots?.openFileRef?.[0].elm,
1450
1461
  toolbar: {
1451
1462
  container: document.getElementById('toolbarViewer'),
1452
1463
  numPages: document.getElementById('numPages'),
@@ -1560,9 +1571,9 @@ var component = normalizeComponent(
1560
1571
 
1561
1572
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=script&lang=js&
1562
1573
  /* harmony default export */ var ofdView_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
1563
- // 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=6faeafe5&prod&scoped=true&lang=css&
1564
- var srcvue_type_style_index_0_id_6faeafe5_prod_scoped_true_lang_css_ = __webpack_require__(861);
1565
- ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=style&index=0&id=6faeafe5&prod&scoped=true&lang=css&
1574
+ // 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=e41229f6&prod&scoped=true&lang=css&
1575
+ var srcvue_type_style_index_0_id_e41229f6_prod_scoped_true_lang_css_ = __webpack_require__(29);
1576
+ ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=style&index=0&id=e41229f6&prod&scoped=true&lang=css&
1566
1577
 
1567
1578
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue
1568
1579
 
@@ -1579,7 +1590,7 @@ var src_component = normalizeComponent(
1579
1590
  staticRenderFns,
1580
1591
  false,
1581
1592
  null,
1582
- "6faeafe5",
1593
+ "e41229f6",
1583
1594
  null
1584
1595
 
1585
1596
  )