aloha-vue 1.0.159 → 1.0.161

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.
@@ -187,6 +187,7 @@ export default {
187
187
  type: "button",
188
188
  class: "a_btn a_btn_primary",
189
189
  icon: "Plus",
190
+ id: "aloha_1"
190
191
  },
191
192
  {
192
193
  label: "Aloha2",
@@ -194,6 +195,7 @@ export default {
194
195
  callback: this.clickMe,
195
196
  disabled: false,
196
197
  class: "a_btn a_btn_secondary",
198
+ id: "aloha_2"
197
199
  },
198
200
  {
199
201
  label: "Aloha link",
@@ -301,8 +303,8 @@ export default {
301
303
  this.data = DATA;
302
304
  },
303
305
 
304
- clickMe({ row, rowIndex } = {}) {
305
- console.log("row, rowIndex", row, rowIndex);
306
+ clickMe(arg) {
307
+ console.log("arg", arg);
306
308
  },
307
309
 
308
310
  clickMeModal({ rows, close }) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.159",
4
+ "version": "1.0.161",
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"
@@ -21,7 +21,16 @@ export default {
21
21
  return action.value.type || "button";
22
22
  });
23
23
 
24
+
25
+ const callbackLocal = () => {
26
+ action.value.callback({
27
+ id: action.value.id,
28
+ action: action.value,
29
+ });
30
+ };
31
+
24
32
  return {
33
+ callbackLocal,
25
34
  type,
26
35
  };
27
36
  },
@@ -31,7 +40,7 @@ export default {
31
40
  id: this.action.id,
32
41
  class: ["a_table__action", this.action.class],
33
42
  disabled: this.action.disabled,
34
- onClick: this.action.callback,
43
+ onClick: this.callbackLocal,
35
44
  }, [
36
45
  this.action.title && h("span", {
37
46
  class: "a_position_absolute_all",
@@ -136,6 +136,7 @@
136
136
  list-style: none;
137
137
  margin: 0;
138
138
  padding: 0;
139
+ position: relative;
139
140
  }
140
141
 
141
142
  .a_select__ul_closeable__item {
@@ -434,17 +434,18 @@ export default {
434
434
  ariaDisabled: this.disabled,
435
435
  ariaInvalid: this.isErrors,
436
436
  "aria-describedby": this.ariaDescribedbyLocal,
437
+ title: this.hasSelectedTitle ? this.selectedTitle : undefined, // TODO: title
437
438
  onClick: this.togglePopover,
438
439
  onKeydown: this.handleKeydown,
439
440
  onFocus: this.onFocus,
440
441
  onBlur: this.onBlur,
441
442
  ...this.attributesDisabled,
442
443
  }, [
443
- this.hasSelectedTitle && h("span", {
444
- class: "a_position_absolute_all",
445
- ariaHidden: true,
446
- title: this.selectedTitle,
447
- }),
444
+ // this.hasSelectedTitle && h("span", {
445
+ // class: "a_position_absolute_all",
446
+ // ariaHidden: true,
447
+ // title: this.selectedTitle,
448
+ // }),
448
449
  this.isModelValue ?
449
450
  this.isMultiselect ?
450
451
  this.isSelectionCloseable ?