ofd-view 0.1.44 → 0.1.46

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
- /***/ 822:
14
+ /***/ 995:
15
15
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16
16
 
17
17
  "use strict";
@@ -25,7 +25,7 @@ __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-b44a7a5c]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-b44a7a5c]{display:none}.vdr[data-v-b44a7a5c]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-b44a7a5c]{display:block}.handle[data-v-b44a7a5c]{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-b44a7a5c]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-b44a7a5c]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-b44a7a5c]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-b44a7a5c]{left:-10px;cursor:w-resize}.handle-ml[data-v-b44a7a5c],.handle-mr[data-v-b44a7a5c]{top:50%;margin-top:-5px}.handle-mr[data-v-b44a7a5c]{right:-10px;cursor:e-resize}.handle-bl[data-v-b44a7a5c]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-b44a7a5c]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-b44a7a5c]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-b44a7a5c]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-b44a7a5c]{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-b44a7a5c]:before{content:\"\\2716\"}.close[data-v-b44a7a5c]{top:5px;right:2px;position:absolute}", ""]);
28
+ ___CSS_LOADER_EXPORT___.push([module.id, ".vdr[data-v-316ef3a2]{touch-action:none;position:absolute;box-sizing:border-box;border:1px dashed #ddd;cursor:move}.vdr button[data-v-316ef3a2]{display:none}.vdr[data-v-316ef3a2]:hover{border:1px solid #fd397a;background:rgba(253,57,122,.08)}.vdr:hover button[data-v-316ef3a2]{display:block}.handle[data-v-316ef3a2]{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-316ef3a2]{top:-10px;left:-10px;cursor:nw-resize}.handle-tm[data-v-316ef3a2]{top:-10px;left:50%;margin-left:-5px;cursor:n-resize}.handle-tr[data-v-316ef3a2]{top:-10px;right:-10px;cursor:ne-resize}.handle-ml[data-v-316ef3a2]{left:-10px;cursor:w-resize}.handle-ml[data-v-316ef3a2],.handle-mr[data-v-316ef3a2]{top:50%;margin-top:-5px}.handle-mr[data-v-316ef3a2]{right:-10px;cursor:e-resize}.handle-bl[data-v-316ef3a2]{bottom:-10px;left:-10px;cursor:sw-resize}.handle-bm[data-v-316ef3a2]{bottom:-10px;left:50%;margin-left:-5px;cursor:s-resize}.handle-br[data-v-316ef3a2]{bottom:-10px;right:-10px;cursor:se-resize}@media only screen and (max-width:768px){[class*=handle-][data-v-316ef3a2]:before{content:\"\";left:-10px;right:-10px;bottom:-10px;top:-10px;position:absolute}}.close[data-v-316ef3a2]{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-316ef3a2]:before{content:\"\\2716\"}.close[data-v-316ef3a2]{top:5px;right:2px;position:absolute}", ""]);
29
29
  // Exports
30
30
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
31
31
 
@@ -174,19 +174,19 @@ module.exports = function (i) {
174
174
 
175
175
  /***/ }),
176
176
 
177
- /***/ 891:
177
+ /***/ 190:
178
178
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
179
179
 
180
180
  // style-loader: Adds some css to the DOM by adding a <style> tag
181
181
 
182
182
  // load the styles
183
- var content = __webpack_require__(822);
183
+ var content = __webpack_require__(995);
184
184
  if(content.__esModule) content = content.default;
185
185
  if(typeof content === 'string') content = [[module.id, content, '']];
186
186
  if(content.locals) module.exports = content.locals;
187
187
  // add the styles to the DOM
188
188
  var add = (__webpack_require__(402)/* ["default"] */ .Z)
189
- var update = add("3ac38ce4", content, true, {"sourceMap":false,"shadowMode":false});
189
+ var update = add("49ea6102", content, true, {"sourceMap":false,"shadowMode":false});
190
190
 
191
191
  /***/ }),
192
192
 
@@ -587,8 +587,8 @@ var staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',
587
587
 
588
588
  ;// CONCATENATED MODULE: ./packages/ofdView/src/index.vue?vue&type=template&id=18db0fa8&scoped=true&
589
589
 
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=b44a7a5c&scoped=true&
591
- var draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
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=316ef3a2&scoped=true&
591
+ var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"vdr",class:{
592
592
  draggable: _vm.draggable,
593
593
  resizable: _vm.resizable,
594
594
  active: _vm.enabled,
@@ -596,7 +596,7 @@ var draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_render = functi
596
596
  resizing: _vm.resizing
597
597
  },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)
598
598
  }
599
- var draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_staticRenderFns = []
599
+ var draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns = []
600
600
 
601
601
 
602
602
  ;// 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&
@@ -642,9 +642,6 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
642
642
  editable: {
643
643
  type: Boolean, default: true
644
644
  },
645
- originBottom: {
646
- type: Boolean, default: true
647
- },
648
645
  w: {
649
646
  type: Number,
650
647
  default: 200,
@@ -895,7 +892,7 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
895
892
  this.section.length = 0;
896
893
  let t = 10;
897
894
  for (let i = 0; i < this.pagesCount; i++) {
898
- t = t + (i > 0 ? this.pages[this.originBottom ? i : i - 1].viewport.height : 0) + (i > 0 ? 9 + 2 : 0);
895
+ t = t + (i > 0 ? this.pages[i - 1].viewport.height : 0) + (i > 0 ? 9 + 2 : 0);
899
896
  this.section.push({
900
897
  t,
901
898
  o: this.pages[i].div.offsetLeft + 9
@@ -935,7 +932,7 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
935
932
  _emitPlaced(pageIndex) {
936
933
  this.$emit('placed', pageIndex, this.index, {
937
934
  x: (this.left - this.section[pageIndex].o) / this.pages[pageIndex].viewport.width,
938
- 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,
935
+ y: ((this.top - this.section[pageIndex].t)) / this.pages[pageIndex].viewport.height,
939
936
  w: this.elmW / this.pages[pageIndex].viewport.width,
940
937
  h: this.elmH / this.pages[pageIndex].viewport.height
941
938
  }, this.stampId);
@@ -950,8 +947,9 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
950
947
  this.parentH = parentH;
951
948
  if (this.w > this.parentW) this.width = parentW;
952
949
  if (this.h > this.parentH) this.height = parentH;
953
- if ((this.x + this.w) > this.parentW) this.width = parentW - this.x;
954
- if ((this.y + this.h) > this.parentH) this.height = parentH - this.y;
950
+ if ((this.x + this.w) > this.parentW && parentW - this.x > 0) this.width = parentW - this.x;
951
+ if ((this.y + this.h) > this.parentH && parentH - this.y > 0) this.height = parentH - this.y;
952
+
955
953
  }
956
954
  this.elmW = this.width;
957
955
  this.elmH = this.height;
@@ -1190,9 +1188,9 @@ function matchesSelectorToParentElements(el, selector, baseNode) {
1190
1188
 
1191
1189
  ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=script&lang=js&
1192
1190
  /* harmony default export */ var draggable_resizable_draggable_resizablevue_type_script_lang_js_ = (draggable_resizablevue_type_script_lang_js_);
1193
- // 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=b44a7a5c&prod&scoped=true&lang=css&
1194
- var draggable_resizablevue_type_style_index_0_id_b44a7a5c_prod_scoped_true_lang_css_ = __webpack_require__(891);
1195
- ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=b44a7a5c&prod&scoped=true&lang=css&
1191
+ // 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=316ef3a2&prod&scoped=true&lang=css&
1192
+ var draggable_resizablevue_type_style_index_0_id_316ef3a2_prod_scoped_true_lang_css_ = __webpack_require__(190);
1193
+ ;// CONCATENATED MODULE: ./packages/draggable-resizable/draggable-resizable.vue?vue&type=style&index=0&id=316ef3a2&prod&scoped=true&lang=css&
1196
1194
 
1197
1195
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1198
1196
  /* globals __VUE_SSR_CONTEXT__ */
@@ -1303,11 +1301,11 @@ function normalizeComponent(
1303
1301
 
1304
1302
  var component = normalizeComponent(
1305
1303
  draggable_resizable_draggable_resizablevue_type_script_lang_js_,
1306
- draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_render,
1307
- draggable_resizablevue_type_template_id_b44a7a5c_scoped_true_staticRenderFns,
1304
+ draggable_resizablevue_type_template_id_316ef3a2_scoped_true_render,
1305
+ draggable_resizablevue_type_template_id_316ef3a2_scoped_true_staticRenderFns,
1308
1306
  false,
1309
1307
  null,
1310
- "b44a7a5c",
1308
+ "316ef3a2",
1311
1309
  null
1312
1310
 
1313
1311
  )