@everchron/ec-shards 6.1.4 → 6.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18827,12 +18827,12 @@ var data_list_item_component = normalizeComponent(
18827
18827
  )
18828
18828
 
18829
18829
  /* harmony default export */ var data_list_item = (data_list_item_component.exports);
18830
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"03ddda9c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=template&id=f0295fd2&
18831
- var dialogvue_type_template_id_f0295fd2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.lazyLoad)?_c('dialog',{ref:"dialog",staticClass:"ecs-dialog",class:'ecs-dialog-' + _vm.size},[_c('div',{staticClass:"ecs-dialog-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-dialog-footer",class:[_vm.stackedFooter ? 'ecs-dialog-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]):_vm._e()}
18832
- var dialogvue_type_template_id_f0295fd2_staticRenderFns = []
18830
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"03ddda9c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=template&id=8a55364c&
18831
+ var dialogvue_type_template_id_8a55364c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.lazyLoad)?_c('dialog',{ref:"dialog",staticClass:"ecs-dialog",class:'ecs-dialog-' + _vm.size},[_c('div',{staticClass:"ecs-dialog-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-dialog-footer",class:[_vm.stackedFooter ? 'ecs-dialog-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]):_vm._e()}
18832
+ var dialogvue_type_template_id_8a55364c_staticRenderFns = []
18833
18833
 
18834
18834
 
18835
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=f0295fd2&
18835
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=8a55364c&
18836
18836
 
18837
18837
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=script&lang=js&
18838
18838
 
@@ -18902,25 +18902,36 @@ var dialogvue_type_template_id_f0295fd2_staticRenderFns = []
18902
18902
  this.lazyLoad = true;
18903
18903
  this.$nextTick(function () {
18904
18904
  if (_this.showInPlace) _this.$refs.dialog.show();else _this.$refs.dialog.showModal();
18905
+ document.addEventListener('keyup', _this.keyUpHandler);
18905
18906
  });
18906
18907
  } else {
18907
18908
  this.$refs.dialog.close();
18908
18909
  this.$nextTick(function () {
18909
18910
  _this.lazyLoad = false;
18910
18911
  });
18912
+ document.removeEventListener('keyup', this.keyUpHandler);
18913
+ }
18914
+ },
18915
+ lazyLoad: function lazyLoad() {
18916
+ var _this2 = this;
18917
+
18918
+ if (this.lazyLoad) {
18919
+ this.$nextTick(function () {
18920
+ _this2.$refs.dialog.addEventListener('cancel', function (event) {
18921
+ event.preventDefault();
18922
+ });
18923
+ });
18911
18924
  }
18912
18925
  }
18913
18926
  },
18914
18927
  mounted: function mounted() {
18915
- var that = this;
18916
-
18917
- document.onkeyup = function (e) {
18918
- if (that.isShown) {
18919
- if (e.key == "Escape") {
18920
- that.$emit('cancel');
18921
- } else if (e.key == "Enter") {
18922
- that.$emit('confirm');
18923
- }
18928
+ var _this3 = this;
18929
+
18930
+ this.keyUpHandler = function (e) {
18931
+ if (_this3.isShown && e.key === 'Escape') {
18932
+ e.preventDefault();
18933
+
18934
+ _this3.$emit('cancel');
18924
18935
  }
18925
18936
  };
18926
18937
  }
@@ -18941,8 +18952,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
18941
18952
 
18942
18953
  var dialog_component = normalizeComponent(
18943
18954
  dialog_dialogvue_type_script_lang_js_,
18944
- dialogvue_type_template_id_f0295fd2_render,
18945
- dialogvue_type_template_id_f0295fd2_staticRenderFns,
18955
+ dialogvue_type_template_id_8a55364c_render,
18956
+ dialogvue_type_template_id_8a55364c_staticRenderFns,
18946
18957
  false,
18947
18958
  null,
18948
18959
  null,