aloha-vue 1.0.111 → 1.0.112

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.111",
4
+ "version": "1.0.112",
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"
@@ -17,6 +17,7 @@ export default {
17
17
  provide() {
18
18
  return {
19
19
  classBody: computed(() => this.classBody),
20
+ classHeader: computed(() => this.classHeader),
20
21
  classButton: computed(() => this.classButton),
21
22
  disabled: computed(() => this.disabled),
22
23
  id: computed(() => this.id),
@@ -26,6 +27,7 @@ export default {
26
27
  keyLabel: computed(() => this.keyLabel),
27
28
  keyContent: computed(() => this.keyContent),
28
29
  keyClassBody: computed(() => this.keyClassBody),
30
+ keyClassHeader: computed(() => this.keyClassHeader),
29
31
  keyIsRender: computed(() => this.keyIsRender),
30
32
  readonly: computed(() => this.readonly),
31
33
  withGap: computed(() => this.withGap),
@@ -73,6 +75,11 @@ export default {
73
75
  required: false,
74
76
  default: undefined,
75
77
  },
78
+ keyClassHeader: {
79
+ type: String,
80
+ required: false,
81
+ default: undefined,
82
+ },
76
83
  keyIsRender: {
77
84
  type: String,
78
85
  required: false,
@@ -101,6 +108,11 @@ export default {
101
108
  required: false,
102
109
  default: "",
103
110
  },
111
+ classHeader: {
112
+ type: [String, Object],
113
+ required: false,
114
+ default: "",
115
+ },
104
116
  withGap: {
105
117
  type: Boolean,
106
118
  required: false,
@@ -35,6 +35,7 @@ export default {
35
35
  emits: ["toggle"],
36
36
  inject: [
37
37
  "classBody",
38
+ "classHeader",
38
39
  "classButton",
39
40
  "disabled",
40
41
  "id",
@@ -53,6 +54,7 @@ export default {
53
54
  const parentIndexes = toRef(props, "parentIndexes");
54
55
 
55
56
  const keyClassBody = inject("keyClassBody");
57
+ const keyClassHeader = inject("keyClassHeader");
56
58
  const keyIsRender = inject("keyIsRender");
57
59
 
58
60
  const classBodyLocal = computed(() => {
@@ -62,6 +64,13 @@ export default {
62
64
  return undefined;
63
65
  });
64
66
 
67
+ const classHeaderLocal = computed(() => {
68
+ if (keyClassHeader.value) {
69
+ return get(item.value, keyClassHeader.value);
70
+ }
71
+ return undefined;
72
+ });
73
+
65
74
  const indexesForOpen = inject("indexesForOpen");
66
75
  const parentIndexesString = computed(() => {
67
76
  return parentIndexes.value.join(".");
@@ -90,6 +99,7 @@ export default {
90
99
 
91
100
  return {
92
101
  classBodyLocal,
102
+ classHeaderLocal,
93
103
  currentIndex,
94
104
  isOpen,
95
105
  isRender,
@@ -173,7 +183,7 @@ export default {
173
183
  class: "a_accordion__item",
174
184
  }, [
175
185
  h("div", {
176
- class: "a_accordion__header",
186
+ class: ["a_accordion__header", this.classHeader, this.classHeaderLocal],
177
187
  }, [
178
188
  h(this.buttonTag, this.buttonAttributes, [
179
189
  this.$slots.accordionButton && this.$slots.accordionButton({