aloha-vue 1.0.35 → 1.0.38

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.35",
4
+ "version": "1.0.38",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -371,7 +371,7 @@ export default {
371
371
 
372
372
  onFocusByDestroyForSelector({ selector }) {
373
373
  const ELEMENT = document.querySelector(selector);
374
- if (ELEMENT.length > 0) {
374
+ if (ELEMENT) {
375
375
  ELEMENT.focus();
376
376
  return true;
377
377
  }
@@ -64,6 +64,10 @@ export default {
64
64
  stylesTdAction() {
65
65
  return `width: ${ this.columnActionsWidthLocal }px; min-width: ${ this.columnActionsWidthLocal }px; max-width: ${ this.columnActionsWidthLocal }px;`;
66
66
  },
67
+
68
+ buttonActionsId() {
69
+ return `a_table_dropdown_btn_${ this.rowIndex }`;
70
+ },
67
71
  },
68
72
  render() {
69
73
  return h("div", {
@@ -106,6 +110,7 @@ export default {
106
110
  ],
107
111
  }),
108
112
  this.isRowActionsDropdownVisible && h(ADropdown, {
113
+ id: this.buttonActionsId,
109
114
  buttonClass: "a_btn a_btn_secondary a_table__cell_action__btn",
110
115
  dropdownClass: "a_p_0",
111
116
  isCaret: false,
@@ -122,6 +127,7 @@ export default {
122
127
  row: this.row,
123
128
  rowAction,
124
129
  rowIndex: this.rowIndex,
130
+ buttonActionsId: this.buttonActionsId,
125
131
  }, this.$slots);
126
132
  }),
127
133
  ],
@@ -25,6 +25,10 @@ export default {
25
25
  type: Number,
26
26
  required: true,
27
27
  },
28
+ buttonActionsId: {
29
+ type: String,
30
+ required: true,
31
+ },
28
32
  },
29
33
  computed: {
30
34
  isDivider() {
@@ -119,6 +123,7 @@ export default {
119
123
  rowIndex: this.rowIndex,
120
124
  rowAction: this.rowAction,
121
125
  id: this.idLocal,
126
+ buttonActionsId: this.buttonActionsId,
122
127
  });
123
128
  },
124
129
  },
@@ -135,6 +140,7 @@ export default {
135
140
  rowIndex: this.rowIndex,
136
141
  rowAction: this.rowAction,
137
142
  id: this.idLocal,
143
+ buttonActionsId: this.buttonActionsId,
138
144
  });
139
145
  }
140
146
  if (this.rowAction.type === "link") {
@@ -415,7 +415,7 @@ export default {
415
415
  this.modelValue.map((item, index) => {
416
416
  return h(ASelectValueCloseable, {
417
417
  key: index,
418
- data: this.dataKeyByKeyIdLocal[item],
418
+ data: this.dataKeyByKeyIdLocal[item] || {},
419
419
  onChangeModelValue: this.onChangeModelValue,
420
420
  });
421
421
  }),