@everchron/ec-shards 0.7.31 → 0.7.34

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.
@@ -14540,12 +14540,12 @@ var data_list_item_component = normalizeComponent(
14540
14540
  )
14541
14541
 
14542
14542
  /* harmony default export */ var data_list_item = (data_list_item_component.exports);
14543
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ebfbde4-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=6bc25e02&
14544
- var dialogvue_type_template_id_6bc25e02_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"dialog-fade"}},[(_vm.isShown)?_c('div',{staticClass:"ecs-modal ecs-modal-default"},[_c('div',{staticClass:"ecs-modal-dialog",class:['ecs-modal-promt', _vm.large ? 'ecs-modal-promt-large' : '']},[_c('div',{staticClass:"ecs-modal-promt-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-modal-promt-footer",class:[_vm.stackedFooter ? 'ecs-modal-prompt-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"ecs-modal-backdrop"})]):_vm._e()])}
14545
- var dialogvue_type_template_id_6bc25e02_staticRenderFns = []
14543
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0ebfbde4-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=63b3be07&
14544
+ var dialogvue_type_template_id_63b3be07_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"dialog-fade"}},[(_vm.isShown)?_c('div',{staticClass:"ecs-modal ecs-modal-default"},[_c('div',{staticClass:"ecs-modal-dialog",class:['ecs-modal-promt', _vm.large ? 'ecs-modal-promt-large' : '']},[_c('div',{staticClass:"ecs-modal-promt-body"},[_vm._t("default")],2),_vm._v(" "),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-modal-promt-footer",class:[_vm.stackedFooter ? 'ecs-modal-prompt-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"ecs-modal-backdrop"})]):_vm._e()])}
14545
+ var dialogvue_type_template_id_63b3be07_staticRenderFns = []
14546
14546
 
14547
14547
 
14548
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=6bc25e02&
14548
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=63b3be07&
14549
14549
 
14550
14550
  // EXTERNAL MODULE: ./src/components/modal-base/modal-base.vue?vue&type=style&index=0&lang=scss&
14551
14551
  var modal_basevue_type_style_index_0_lang_scss_ = __webpack_require__("22f9");
@@ -14626,17 +14626,17 @@ var modal_base_component = normalizeComponent(
14626
14626
  }
14627
14627
  },
14628
14628
  mounted: function mounted() {
14629
- var _this = this;
14630
-
14631
- setTimeout(function () {
14632
- if ($('#confrm')) $('#confrm').focus();
14633
- }, 150);
14634
- Mousetrap.bind('esc', function (e) {
14635
- _this.$emit('cancel');
14636
- });
14637
- },
14638
- beforeDestroy: function beforeDestroy() {
14639
- Mousetrap.unbind(['esc']);
14629
+ document.onkeyup = function (e) {
14630
+ if (this.isShown) {
14631
+ if (e.which == 27) {
14632
+ this.$emit('cancel');
14633
+ } else if (e.which == 13) {
14634
+ document.getElementById("confrm").onclick = function () {
14635
+ this.$emit('confirm');
14636
+ };
14637
+ }
14638
+ }
14639
+ };
14640
14640
  }
14641
14641
  });
14642
14642
  // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=script&lang=js&
@@ -14655,8 +14655,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
14655
14655
 
14656
14656
  var dialog_component = normalizeComponent(
14657
14657
  dialog_dialogvue_type_script_lang_js_,
14658
- dialogvue_type_template_id_6bc25e02_render,
14659
- dialogvue_type_template_id_6bc25e02_staticRenderFns,
14658
+ dialogvue_type_template_id_63b3be07_render,
14659
+ dialogvue_type_template_id_63b3be07_staticRenderFns,
14660
14660
  false,
14661
14661
  null,
14662
14662
  null,