@everchron/ec-shards 0.7.32 → 0.7.35

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.
@@ -14549,12 +14549,12 @@ var data_list_item_component = normalizeComponent(
14549
14549
  )
14550
14550
 
14551
14551
  /* harmony default export */ var data_list_item = (data_list_item_component.exports);
14552
- // 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=c386e09e&
14553
- var dialogvue_type_template_id_c386e09e_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()])}
14554
- var dialogvue_type_template_id_c386e09e_staticRenderFns = []
14552
+ // 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=73df4d8c&
14553
+ var dialogvue_type_template_id_73df4d8c_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()])}
14554
+ var dialogvue_type_template_id_73df4d8c_staticRenderFns = []
14555
14555
 
14556
14556
 
14557
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=c386e09e&
14557
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=73df4d8c&
14558
14558
 
14559
14559
  // EXTERNAL MODULE: ./src/components/modal-base/modal-base.vue?vue&type=style&index=0&lang=scss&
14560
14560
  var modal_basevue_type_style_index_0_lang_scss_ = __webpack_require__("22f9");
@@ -14635,18 +14635,19 @@ var modal_base_component = normalizeComponent(
14635
14635
  }
14636
14636
  },
14637
14637
  mounted: function mounted() {
14638
- var _this = this;
14639
-
14640
- setTimeout(function () {
14641
- console.log('shard mounted', $('#confrm'));
14642
- if ($('#confrm')) $('#confrm').focus();
14643
- }, 150);
14644
- Mousetrap.bind('esc', function (e) {
14645
- _this.$emit('cancel');
14646
- });
14647
- },
14648
- beforeDestroy: function beforeDestroy() {
14649
- Mousetrap.unbind(['esc']);
14638
+ document.onkeyup = function (e) {
14639
+ console.log('keyup', this.isShown);
14640
+
14641
+ if (this.isShown) {
14642
+ if (e.which == 27) {
14643
+ this.$emit('cancel');
14644
+ } else if (e.which == 13) {
14645
+ document.getElementById("confrm").onclick = function () {
14646
+ this.$emit('confirm');
14647
+ };
14648
+ }
14649
+ }
14650
+ };
14650
14651
  }
14651
14652
  });
14652
14653
  // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=script&lang=js&
@@ -14665,8 +14666,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
14665
14666
 
14666
14667
  var dialog_component = normalizeComponent(
14667
14668
  dialog_dialogvue_type_script_lang_js_,
14668
- dialogvue_type_template_id_c386e09e_render,
14669
- dialogvue_type_template_id_c386e09e_staticRenderFns,
14669
+ dialogvue_type_template_id_73df4d8c_render,
14670
+ dialogvue_type_template_id_73df4d8c_staticRenderFns,
14670
14671
  false,
14671
14672
  null,
14672
14673
  null,