@everchron/ec-shards 0.7.33 → 0.7.36

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=0c50fa02&
14544
- var dialogvue_type_template_id_0c50fa02_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_0c50fa02_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=fe270ec6&
14544
+ var dialogvue_type_template_id_fe270ec6_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_fe270ec6_staticRenderFns = []
14546
14546
 
14547
14547
 
14548
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=0c50fa02&
14548
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=fe270ec6&
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");
@@ -14623,22 +14623,22 @@ var modal_base_component = normalizeComponent(
14623
14623
  watch: {
14624
14624
  show: function show() {
14625
14625
  this.isShown = this.show;
14626
- console.log('shard shown', this.show, $('#confrm'));
14627
-
14628
- if (this.show) {
14629
- if ($('#confrm')) $('#confrm').focus();
14630
- }
14631
14626
  }
14632
14627
  },
14633
14628
  mounted: function mounted() {
14634
- var _this = this;
14635
-
14636
- Mousetrap.bind('esc', function (e) {
14637
- _this.$emit('cancel');
14638
- });
14639
- },
14640
- beforeDestroy: function beforeDestroy() {
14641
- Mousetrap.unbind(['esc']);
14629
+ document.onkeyup = function (e) {
14630
+ console.log('keyup', this.isShown, this.show);
14631
+
14632
+ if (this.isShown) {
14633
+ if (e.which == 27) {
14634
+ this.$emit('cancel');
14635
+ } else if (e.which == 13) {
14636
+ document.getElementById("confrm").onclick = function () {
14637
+ this.$emit('confirm');
14638
+ };
14639
+ }
14640
+ }
14641
+ };
14642
14642
  }
14643
14643
  });
14644
14644
  // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=script&lang=js&
@@ -14657,8 +14657,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
14657
14657
 
14658
14658
  var dialog_component = normalizeComponent(
14659
14659
  dialog_dialogvue_type_script_lang_js_,
14660
- dialogvue_type_template_id_0c50fa02_render,
14661
- dialogvue_type_template_id_0c50fa02_staticRenderFns,
14660
+ dialogvue_type_template_id_fe270ec6_render,
14661
+ dialogvue_type_template_id_fe270ec6_staticRenderFns,
14662
14662
  false,
14663
14663
  null,
14664
14664
  null,