@everchron/ec-shards 6.1.4 → 6.1.5

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.
@@ -18818,12 +18818,12 @@ var data_list_item_component = normalizeComponent(
18818
18818
  )
18819
18819
 
18820
18820
  /* harmony default export */ var data_list_item = (data_list_item_component.exports);
18821
- // 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&
18822
- 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()}
18823
- var dialogvue_type_template_id_f0295fd2_staticRenderFns = []
18821
+ // 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=20469a34&
18822
+ var dialogvue_type_template_id_20469a34_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()}
18823
+ var dialogvue_type_template_id_20469a34_staticRenderFns = []
18824
18824
 
18825
18825
 
18826
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=f0295fd2&
18826
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=20469a34&
18827
18827
 
18828
18828
  // 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&
18829
18829
 
@@ -18893,25 +18893,25 @@ var dialogvue_type_template_id_f0295fd2_staticRenderFns = []
18893
18893
  this.lazyLoad = true;
18894
18894
  this.$nextTick(function () {
18895
18895
  if (_this.showInPlace) _this.$refs.dialog.show();else _this.$refs.dialog.showModal();
18896
+ document.addEventListener('keyup', _this.keyUpHandler);
18896
18897
  });
18897
18898
  } else {
18898
18899
  this.$refs.dialog.close();
18899
18900
  this.$nextTick(function () {
18900
18901
  _this.lazyLoad = false;
18901
18902
  });
18903
+ document.removeEventListener('keyup', this.keyUpHandler);
18902
18904
  }
18903
18905
  }
18904
18906
  },
18905
18907
  mounted: function mounted() {
18906
- var that = this;
18907
-
18908
- document.onkeyup = function (e) {
18909
- if (that.isShown) {
18910
- if (e.key == "Escape") {
18911
- that.$emit('cancel');
18912
- } else if (e.key == "Enter") {
18913
- that.$emit('confirm');
18914
- }
18908
+ var _this2 = this;
18909
+
18910
+ this.keyUpHandler = function (e) {
18911
+ if (_this2.isShown && e.key === 'Escape') {
18912
+ e.preventDefault();
18913
+
18914
+ _this2.$emit('cancel');
18915
18915
  }
18916
18916
  };
18917
18917
  }
@@ -18932,8 +18932,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
18932
18932
 
18933
18933
  var dialog_component = normalizeComponent(
18934
18934
  dialog_dialogvue_type_script_lang_js_,
18935
- dialogvue_type_template_id_f0295fd2_render,
18936
- dialogvue_type_template_id_f0295fd2_staticRenderFns,
18935
+ dialogvue_type_template_id_20469a34_render,
18936
+ dialogvue_type_template_id_20469a34_staticRenderFns,
18937
18937
  false,
18938
18938
  null,
18939
18939
  null,