@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.
@@ -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=8a55364c&
18822
+ 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()}
18823
+ var dialogvue_type_template_id_8a55364c_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=8a55364c&
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,36 @@ 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);
18904
+ }
18905
+ },
18906
+ lazyLoad: function lazyLoad() {
18907
+ var _this2 = this;
18908
+
18909
+ if (this.lazyLoad) {
18910
+ this.$nextTick(function () {
18911
+ _this2.$refs.dialog.addEventListener('cancel', function (event) {
18912
+ event.preventDefault();
18913
+ });
18914
+ });
18902
18915
  }
18903
18916
  }
18904
18917
  },
18905
18918
  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
- }
18919
+ var _this3 = this;
18920
+
18921
+ this.keyUpHandler = function (e) {
18922
+ if (_this3.isShown && e.key === 'Escape') {
18923
+ e.preventDefault();
18924
+
18925
+ _this3.$emit('cancel');
18915
18926
  }
18916
18927
  };
18917
18928
  }
@@ -18932,8 +18943,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
18932
18943
 
18933
18944
  var dialog_component = normalizeComponent(
18934
18945
  dialog_dialogvue_type_script_lang_js_,
18935
- dialogvue_type_template_id_f0295fd2_render,
18936
- dialogvue_type_template_id_f0295fd2_staticRenderFns,
18946
+ dialogvue_type_template_id_8a55364c_render,
18947
+ dialogvue_type_template_id_8a55364c_staticRenderFns,
18937
18948
  false,
18938
18949
  null,
18939
18950
  null,