aloha-vue 1.0.111 → 1.0.113
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/docs/package.json +1 -1
- package/docs/src/main.js +4 -4
- package/docs/src/views/PageTable/PageTable.js +1 -1
- package/package.json +1 -1
- package/src/AAccordion/AAccordion.js +12 -0
- package/src/AAccordion/AAccordionItem.js +11 -1
- package/src/ACloak/ACloak.js +7 -5
- package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem.js +1 -1
- package/src/ATable/ATableTdAction/ATableTdAction.js +2 -2
- package/src/styles/components/ATable.scss +1 -0
- package/src/styles/styles.scss +1 -0
package/docs/package.json
CHANGED
package/docs/src/main.js
CHANGED
|
@@ -12,10 +12,10 @@ import en from "./i18n/en.json";
|
|
|
12
12
|
import hr from "./i18n/hr.json";
|
|
13
13
|
import ru from "./i18n/ru.json";
|
|
14
14
|
|
|
15
|
-
import deGlobal from "
|
|
16
|
-
import enGlobal from "
|
|
17
|
-
import hrGlobal from "
|
|
18
|
-
import ruGlobal from "
|
|
15
|
+
import deGlobal from "../../src/i18n/de.json";
|
|
16
|
+
import enGlobal from "../../src/i18n/en.json";
|
|
17
|
+
import hrGlobal from "../../src/i18n/hr.json";
|
|
18
|
+
import ruGlobal from "../../src/i18n/ru.json";
|
|
19
19
|
|
|
20
20
|
const APP = createApp(App);
|
|
21
21
|
const TRANSLATIONS = {
|
package/package.json
CHANGED
|
@@ -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({
|
package/src/ACloak/ACloak.js
CHANGED
|
@@ -42,15 +42,15 @@ export default {
|
|
|
42
42
|
default: "border",
|
|
43
43
|
},
|
|
44
44
|
size: {
|
|
45
|
-
type: String,
|
|
45
|
+
type: [String, Number],
|
|
46
46
|
required: false,
|
|
47
|
-
default:
|
|
48
|
-
validator: size => ["1", "2", "3", "4", "5", "6"].indexOf(size) !== -1,
|
|
47
|
+
default: 6,
|
|
48
|
+
validator: size => ["1", "2", "3", "4", "5", "6", "7"].indexOf(`${ size }`) !== -1,
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
computed: {
|
|
52
52
|
classAlign() {
|
|
53
|
-
return `
|
|
53
|
+
return `a_text_${ this.align }`;
|
|
54
54
|
},
|
|
55
55
|
|
|
56
56
|
classForBox() {
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
},
|
|
59
59
|
|
|
60
60
|
classTextSize() {
|
|
61
|
-
return `
|
|
61
|
+
return `a_fs_${ this.size }`;
|
|
62
62
|
},
|
|
63
63
|
|
|
64
64
|
boxChildren() {
|
|
@@ -75,6 +75,7 @@ export default {
|
|
|
75
75
|
|
|
76
76
|
boxTextLeft() {
|
|
77
77
|
return h(ATranslation, {
|
|
78
|
+
tag: "span",
|
|
78
79
|
class: ["a_cloak__text a_cloak__text_left", this.classTextSize],
|
|
79
80
|
text: this.text,
|
|
80
81
|
extra: this.extraTranslate,
|
|
@@ -83,6 +84,7 @@ export default {
|
|
|
83
84
|
|
|
84
85
|
boxTextRight() {
|
|
85
86
|
return h(ATranslation, {
|
|
87
|
+
tag: "span",
|
|
86
88
|
class: ["a_cloak__text a_cloak__text_right", this.classTextSize],
|
|
87
89
|
text: this.text,
|
|
88
90
|
extra: this.extraTranslate,
|
|
@@ -235,7 +235,7 @@ export default {
|
|
|
235
235
|
class: "a_dropdown__item_text a_table__th__dropdown_item a_text_nowrap",
|
|
236
236
|
}, [
|
|
237
237
|
h("div", {
|
|
238
|
-
class: "a_table__th__dropdown_item__child",
|
|
238
|
+
class: "a_table__th__dropdown_item__child a_text_wrap",
|
|
239
239
|
}, [
|
|
240
240
|
h(this.tagIconParent, this.attributesIconParent, [
|
|
241
241
|
h(AIcon, {
|
|
@@ -81,7 +81,7 @@ export default {
|
|
|
81
81
|
}, [
|
|
82
82
|
this.isColumnsScrollInvisibleDropdownVisible && h(ADropdown, {
|
|
83
83
|
buttonClass: "a_btn a_btn_link",
|
|
84
|
-
dropdownClass: "a_p_0",
|
|
84
|
+
dropdownClass: "a_p_0 a_overflow_x_hidden",
|
|
85
85
|
dropdownTag: "div",
|
|
86
86
|
isCaret: false,
|
|
87
87
|
placement: "bottom-end",
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
],
|
|
99
99
|
dropdown: () => [
|
|
100
100
|
h("dl", {
|
|
101
|
-
class: "a_list_dl",
|
|
101
|
+
class: "a_list_dl a_list_dl_dt_right",
|
|
102
102
|
}, [
|
|
103
103
|
this.columnsScrollInvisible.map((column, columnIndex) => {
|
|
104
104
|
return h(ATableListItem, {
|
package/src/styles/styles.scss
CHANGED