@everchron/ec-shards 7.3.13 → 7.3.15

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.
@@ -4850,6 +4850,28 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
4850
4850
 
4851
4851
  /***/ }),
4852
4852
 
4853
+ /***/ "4d1e":
4854
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4855
+
4856
+ "use strict";
4857
+ __webpack_require__.r(__webpack_exports__);
4858
+ /* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e017");
4859
+ /* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
4860
+ /* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("21a1");
4861
+ /* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
4862
+
4863
+
4864
+ var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default.a({
4865
+ "id": "document-dashed",
4866
+ "use": "document-dashed-usage",
4867
+ "viewBox": "0 0 30 30",
4868
+ "content": "<symbol viewBox=\"0 0 30 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" id=\"document-dashed\">\n<path vector-effect=\"non-scaling-stroke\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M21.9485 8.9485L18.8848 5.88483C18.4785 5.47858 17.9271 5.25 17.353 5.25H9.58329C8.38621 5.25 7.41663 6.21958 7.41663 7.41667V22.5833C7.41663 23.7804 8.38621 24.75 9.58329 24.75H20.4166C21.6137 24.75 22.5833 23.7804 22.5833 22.5833V10.4803C22.5833 9.90617 22.3547 9.35475 21.9485 8.9485Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"4 4\" />\n<path vector-effect=\"non-scaling-stroke\" d=\"M10.667 11.75H18.337\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n<path vector-effect=\"non-scaling-stroke\" d=\"M10.667 15.25H12.833\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n</symbol>"
4869
+ });
4870
+ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
4871
+ /* harmony default export */ __webpack_exports__["default"] = (symbol);
4872
+
4873
+ /***/ }),
4874
+
4853
4875
  /***/ "4d64":
4854
4876
  /***/ (function(module, exports, __webpack_require__) {
4855
4877
 
@@ -7430,6 +7452,7 @@ var map = {
7430
7452
  "./doc-new.svg": "d1ad",
7431
7453
  "./doctext.svg": "3bc5",
7432
7454
  "./document-comment.svg": "769e",
7455
+ "./document-dashed.svg": "4d1e",
7433
7456
  "./document-extract-ai.svg": "c431",
7434
7457
  "./document-ok.svg": "18b9",
7435
7458
  "./document.svg": "1c5c",
@@ -19925,12 +19948,12 @@ var data_list_item_component = normalizeComponent(
19925
19948
  )
19926
19949
 
19927
19950
  /* harmony default export */ var data_list_item = (data_list_item_component.exports);
19928
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f78c9e12-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=template&id=b02876ba&
19929
- var dialogvue_type_template_id_b02876ba_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 scrollbar scrollbar-sml"},[_vm._t("default")],2),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-dialog-footer",class:[_vm.stackedFooter ? 'ecs-dialog-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]):_vm._e()}
19930
- var dialogvue_type_template_id_b02876ba_staticRenderFns = []
19951
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"f78c9e12-vue-loader-template"}!./node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=template&id=4a14fcfa&
19952
+ var dialogvue_type_template_id_4a14fcfa_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,on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleEnterKey.apply(null, arguments)}}},[_c('div',{staticClass:"ecs-dialog-body scrollbar scrollbar-sml"},[_vm._t("default")],2),(_vm.$slots.actions)?_c('div',{staticClass:"ecs-dialog-footer",class:[_vm.stackedFooter ? 'ecs-dialog-footer-stacked' : '']},[_vm._t("actions")],2):_vm._e()]):_vm._e()}
19953
+ var dialogvue_type_template_id_4a14fcfa_staticRenderFns = []
19931
19954
 
19932
19955
 
19933
- // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=b02876ba&
19956
+ // CONCATENATED MODULE: ./src/components/dialog/dialog.vue?vue&type=template&id=4a14fcfa&
19934
19957
 
19935
19958
  // 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/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/dialog/dialog.vue?vue&type=script&lang=js&
19936
19959
 
@@ -19955,12 +19978,6 @@ var dialogvue_type_template_id_b02876ba_staticRenderFns = []
19955
19978
  default: false
19956
19979
  },
19957
19980
 
19958
- /** If set `true`, the dialog element will render where it's placed inside the DOM. This can be useful for dialogs that should not "escape" their parent elements, e.g. when a dialog is launched within a larger modal. **Note:** dialogs shown in place have no backdrop element and need to be positioned manually via CSS. */
19959
- showInPlace: {
19960
- type: Boolean,
19961
- default: false
19962
- },
19963
-
19964
19981
  /** Determines the size of the dialog. */
19965
19982
  size: {
19966
19983
  type: String,
@@ -19988,6 +20005,19 @@ var dialogvue_type_template_id_b02876ba_staticRenderFns = []
19988
20005
  /** Emitted when the dialog show state changes. */
19989
20006
 
19990
20007
  this.$emit('toggled', this.id, this.isShown);
20008
+ },
20009
+ handleEnterKey: function handleEnterKey(event) {
20010
+ // If the user presses enter, we want to trigger the last button (always confirm) in the footer.
20011
+ if (event.key === 'Enter') {
20012
+ var buttons = this.$el.querySelectorAll('.ecs-dialog-footer button');
20013
+ var lastButton = buttons[buttons.length - 1];
20014
+ var activeElement = document.activeElement;
20015
+
20016
+ if (activeElement.tagName !== 'BUTTON' || !activeElement.closest('.ecs-dialog-footer')) {
20017
+ event.preventDefault();
20018
+ lastButton.click();
20019
+ }
20020
+ }
19991
20021
  }
19992
20022
  },
19993
20023
  watch: {
@@ -19999,8 +20029,11 @@ var dialogvue_type_template_id_b02876ba_staticRenderFns = []
19999
20029
  if (this.isShown) {
20000
20030
  this.lazyLoad = true;
20001
20031
  this.$nextTick(function () {
20002
- if (_this.showInPlace) _this.$refs.dialog.show();else _this.$refs.dialog.showModal();
20032
+ _this.$refs.dialog.showModal();
20033
+
20003
20034
  document.addEventListener('keyup', _this.keyUpHandler);
20035
+
20036
+ _this.$refs.dialog.focus();
20004
20037
  });
20005
20038
  } else {
20006
20039
  this.$refs.dialog.close();
@@ -20050,8 +20083,8 @@ var dialogvue_type_style_index_0_lang_scss_ = __webpack_require__("642e");
20050
20083
 
20051
20084
  var dialog_component = normalizeComponent(
20052
20085
  dialog_dialogvue_type_script_lang_js_,
20053
- dialogvue_type_template_id_b02876ba_render,
20054
- dialogvue_type_template_id_b02876ba_staticRenderFns,
20086
+ dialogvue_type_template_id_4a14fcfa_render,
20087
+ dialogvue_type_template_id_4a14fcfa_staticRenderFns,
20055
20088
  false,
20056
20089
  null,
20057
20090
  null,