aloha-vue 1.0.20 → 1.0.23

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.20",
4
+ "version": "1.0.23",
5
5
  "author": "Ilia Brykin",
6
6
  "dependencies": {
7
7
  "@popperjs/core": "2.11.5",
@@ -27,6 +27,7 @@ import Minus from "./Icons/Minus";
27
27
  import Ok from "./Icons/Ok";
28
28
  import OptionHorizontal from "./Icons/OptionHorizontal";
29
29
  import OptionVertical from "./Icons/OptionVertical";
30
+ import Pencil from "./Icons/Pencil";
30
31
  import Plus from "./Icons/Plus";
31
32
  import Reset from "./Icons/Reset";
32
33
  import Search from "./Icons/Search";
@@ -77,6 +78,7 @@ export default {
77
78
  Ok,
78
79
  OptionHorizontal,
79
80
  OptionVertical,
81
+ Pencil,
80
82
  Plus,
81
83
  Reset,
82
84
  Search,
@@ -0,0 +1,10 @@
1
+ export default `<svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="18"
4
+ height="18"
5
+ viewBox="0 0 1127 1024"
6
+ >
7
+ <path
8
+ d="M813.183 0.001c-69.289 0-132.274 26.991-179.062 71.984-1.808 1.808-476.907 476.005-476.907 476.005-5.396 5.396-8.995 11.695-10.793 18.901l-93.581 408.52c-2.714 13.504 0.903 26.991 10.793 36.896 7.206 7.206 17.095 11.695 27.89 11.695 2.714 0 6.302 0 8.995-0.903l407.621-94.482c7.206-1.808 13.504-5.396 18.901-10.793l470.607-470.607c0 0 0 0 0 0 47.692-47.692 77.387-112.479 77.387-184.464-0.903-145.769-117.875-262.75-261.851-262.75zM478.447 853.032l-239.353 55.788-73.783-73.783 54.888-240.253 1.808-1.808c18.901 1.808 36.896 8.995 51.29 23.392 18.901 18.901 26.096 44.092 22.491 68.385 24.298-3.59 50.391 3.59 68.385 22.491 18.901 18.901 26.096 44.092 22.491 68.385 24.298-3.59 50.391 3.59 68.385 22.491 14.401 14.401 22.491 33.295 23.392 53.090v1.808z"
9
+ ></path>
10
+ </svg>`;
@@ -1,11 +1,10 @@
1
1
  export default `<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
- width="1024"
4
- height="1024"
3
+ width="18"
4
+ height="18"
5
5
  viewBox="0 0 1024 1024"
6
6
  >
7
7
  <path
8
8
  d="M398.524 364.003c0-20.634-16.703-37.332-37.288-37.332-20.587 0-37.288 16.703-37.288 37.332v452.75c0 20.587 16.703 37.252 37.288 37.252 20.587 0 37.288-16.657 37.288-37.252v-452.75zM549.312 364.003c0-20.634-16.703-37.332-37.288-37.332-20.587 0-37.288 16.703-37.288 37.332v452.75c0 20.587 16.703 37.252 37.288 37.252 20.587 0 37.288-16.657 37.288-37.252v-452.75zM700.108 364.003c0-20.634-16.748-37.332-37.332-37.332s-37.252 16.703-37.252 37.332v452.75c0 20.587 16.657 37.252 37.252 37.252s37.332-16.657 37.332-37.252v-452.75zM798.696 936.922h-573.341v-693.177h-86.988v780.254h747.344l-0.012-780.254h-86.988v693.177h-0.012zM695.021 69.66c-38.415 0-69.583-31.207-69.583-69.66h-226.834c0 38.459-31.125 69.66-69.583 69.66h-235.963v99.452h837.883v-99.452h-235.921z"
9
- >
10
- </path>
9
+ ></path>
11
10
  </svg>`;
@@ -0,0 +1,6 @@
1
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1127" height="1024" viewBox="0 0 1127 1024">
2
+ <title></title>
3
+ <g id="icomoon-ignore">
4
+ </g>
5
+ <path d="M813.183 0.001c-69.289 0-132.274 26.991-179.062 71.984-1.808 1.808-476.907 476.005-476.907 476.005-5.396 5.396-8.995 11.695-10.793 18.901l-93.581 408.52c-2.714 13.504 0.903 26.991 10.793 36.896 7.206 7.206 17.095 11.695 27.89 11.695 2.714 0 6.302 0 8.995-0.903l407.621-94.482c7.206-1.808 13.504-5.396 18.901-10.793l470.607-470.607c0 0 0 0 0 0 47.692-47.692 77.387-112.479 77.387-184.464-0.903-145.769-117.875-262.75-261.851-262.75zM478.447 853.032l-239.353 55.788-73.783-73.783 54.888-240.253 1.808-1.808c18.901 1.808 36.896 8.995 51.29 23.392 18.901 18.901 26.096 44.092 22.491 68.385 24.298-3.59 50.391 3.59 68.385 22.491 18.901 18.901 26.096 44.092 22.491 68.385 24.298-3.59 50.391 3.59 68.385 22.491 14.401 14.401 22.491 33.295 23.392 53.090v1.808z"></path>
6
+ </svg>
@@ -218,6 +218,10 @@ export default {
218
218
  disabledLocal() {
219
219
  return this.disabled || this.loading;
220
220
  },
221
+
222
+ isDataForm() {
223
+ return this.dataForm.length > 0;
224
+ },
221
225
  },
222
226
  watch: {
223
227
  isModalHidden() {
@@ -429,7 +433,7 @@ export default {
429
433
  class: "a_modal_body",
430
434
  }, [
431
435
  this.$slots.body && this.$slots.body(),
432
- this.dataForm.length && h(AForm, {
436
+ this.isDataForm && h(AForm, {
433
437
  modelValue: this.modelValue,
434
438
  data: this.dataForm,
435
439
  errors: this.errors,
@@ -192,7 +192,7 @@
192
192
  margin-left: var(--a_table_between_actions_margin);
193
193
  }
194
194
  .a_table__action__icon {
195
- margin-right: var(--a_table_between_actions_margin);
195
+ margin-right: var(--a_table_between_actions_margin, .5rem);
196
196
  }
197
197
 
198
198
  .a_table__row_action {
@@ -132,6 +132,10 @@
132
132
  padding: 0;
133
133
  }
134
134
 
135
+ .a_required {
136
+ margin-bottom: 1rem;
137
+ }
138
+
135
139
  @import "AFieldset";
136
140
  @import "AForm";
137
141
  @import "ASwitch";
@@ -430,13 +430,13 @@ export default {
430
430
  }, [
431
431
  h("span", null, index !== 0 ? ", " : ""),
432
432
  h(ASelectLabelElement, {
433
- data: this.dataKeyByKeyIdLocal[item],
433
+ data: this.dataKeyByKeyIdLocal[item] || {},
434
434
  }),
435
435
  ]);
436
436
  }),
437
437
  ]) :
438
438
  h(ASelectLabelElement, {
439
- data: this.dataKeyByKeyIdLocal[this.modelValue],
439
+ data: this.dataKeyByKeyIdLocal[this.modelValue] || {},
440
440
  class: "a_select__value__label",
441
441
  })
442
442
  : "",