aloha-vue 1.2.11 → 1.2.14
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/src/components/TheMenu/TheMenu.js +7 -0
- package/docs/src/mainTranslation.js +9 -0
- package/docs/src/router/index.js +5 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDown.js +22 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDown.pug +7 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDown.vue +2 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDownExample/PageTablePreviewDownExample.js +80 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDownExample/PageTablePreviewDownExample.pug +18 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDownExample/PageTablePreviewDownExample.vue +2 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDownExample/compositionAPI/HtmlAPI.js +13 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/PageTablePreviewDownExample/compositionAPI/JsAPI.js +67 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/compositionAPI/PageTitleAPI.js +24 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/PageTablePreviewDownI18n.js +19 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/ar.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/de.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/en.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/es.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/fr.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/hr.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/it.json +3 -0
- package/docs/src/views/PageTable/PageTablePreviewDown/i18n/ru.json +3 -0
- package/package.json +1 -1
- package/src/ATable/ATable.js +1 -0
- package/src/ATable/ATablePreviewDown/ATablePreviewDown.js +43 -0
- package/src/ATable/ATableTr/ATableTr.js +33 -20
- package/src/ATable/i18n/ar.json +1 -0
- package/src/ATable/i18n/de.json +1 -0
- package/src/ATable/i18n/en.json +1 -0
- package/src/ATable/i18n/es.json +1 -0
- package/src/ATable/i18n/fr.json +1 -0
- package/src/ATable/i18n/hr.json +1 -0
- package/src/ATable/i18n/it.json +1 -0
- package/src/ATable/i18n/ru.json +1 -0
- package/src/plugins/ASelectPlugin.js +2 -2
- package/src/styles/components/ATable.scss +20 -1
- package/src/ui/ACheckbox/ACheckbox.js +74 -3
- package/src/ui/ARadio/ARadio.js +81 -10
- package/src/ui/ASelect/ASelect.js +72 -10
- package/src/ui/compositionApi/UiDataFromServerAPI.js +204 -0
- package/src/ui/compositionApi/UiDataWithKeyIdAndLabelAPI.js +9 -2
- package/src/ui/compositionApi/UiLoadingAPI.js +19 -0
- package/src/ui/compositionApi/UiSearchAPI.js +12 -0
|
@@ -38,6 +38,7 @@ import PageFiltersI18n from "./views/PageFilters/i18n/PageFiltersI18n";
|
|
|
38
38
|
import PageModalWizardI18n from "./views/PageModalWizard/i18n/PageModalWizardI18n";
|
|
39
39
|
import PageWizardI18n from "./views/PageWizard/i18n/PageWizardI18n";
|
|
40
40
|
import PageModalI18n from "./views/PageModal/i18n/PageModalI18n";
|
|
41
|
+
import PageTablePreviewDownI18n from "./views/PageTable/PageTablePreviewDown/i18n/PageTablePreviewDownI18n";
|
|
41
42
|
|
|
42
43
|
export const mainTranslation = {
|
|
43
44
|
ar: {
|
|
@@ -72,6 +73,7 @@ export const mainTranslation = {
|
|
|
72
73
|
...PageModalWizardI18n.ar,
|
|
73
74
|
...PageWizardI18n.ar,
|
|
74
75
|
...PageModalI18n.ar,
|
|
76
|
+
...PageTablePreviewDownI18n.ar,
|
|
75
77
|
},
|
|
76
78
|
de: {
|
|
77
79
|
...allLanguages.de,
|
|
@@ -105,6 +107,7 @@ export const mainTranslation = {
|
|
|
105
107
|
...PageModalWizardI18n.de,
|
|
106
108
|
...PageWizardI18n.de,
|
|
107
109
|
...PageModalI18n.de,
|
|
110
|
+
...PageTablePreviewDownI18n.de,
|
|
108
111
|
},
|
|
109
112
|
en: {
|
|
110
113
|
...allLanguages.en,
|
|
@@ -138,6 +141,7 @@ export const mainTranslation = {
|
|
|
138
141
|
...PageModalWizardI18n.en,
|
|
139
142
|
...PageWizardI18n.en,
|
|
140
143
|
...PageModalI18n.en,
|
|
144
|
+
...PageTablePreviewDownI18n.en,
|
|
141
145
|
},
|
|
142
146
|
es: {
|
|
143
147
|
...allLanguages.es,
|
|
@@ -171,6 +175,7 @@ export const mainTranslation = {
|
|
|
171
175
|
...PageModalWizardI18n.es,
|
|
172
176
|
...PageWizardI18n.es,
|
|
173
177
|
...PageModalI18n.es,
|
|
178
|
+
...PageTablePreviewDownI18n.es,
|
|
174
179
|
},
|
|
175
180
|
fr: {
|
|
176
181
|
...allLanguages.fr,
|
|
@@ -204,6 +209,7 @@ export const mainTranslation = {
|
|
|
204
209
|
...PageModalWizardI18n.fr,
|
|
205
210
|
...PageWizardI18n.fr,
|
|
206
211
|
...PageModalI18n.fr,
|
|
212
|
+
...PageTablePreviewDownI18n.fr,
|
|
207
213
|
},
|
|
208
214
|
hr: {
|
|
209
215
|
...allLanguages.hr,
|
|
@@ -237,6 +243,7 @@ export const mainTranslation = {
|
|
|
237
243
|
...PageModalWizardI18n.hr,
|
|
238
244
|
...PageWizardI18n.hr,
|
|
239
245
|
...PageModalI18n.hr,
|
|
246
|
+
...PageTablePreviewDownI18n.hr,
|
|
240
247
|
},
|
|
241
248
|
it: {
|
|
242
249
|
...allLanguages.it,
|
|
@@ -270,6 +277,7 @@ export const mainTranslation = {
|
|
|
270
277
|
...PageModalWizardI18n.it,
|
|
271
278
|
...PageWizardI18n.it,
|
|
272
279
|
...PageModalI18n.it,
|
|
280
|
+
...PageTablePreviewDownI18n.it,
|
|
273
281
|
},
|
|
274
282
|
ru: {
|
|
275
283
|
...allLanguages.ru,
|
|
@@ -303,5 +311,6 @@ export const mainTranslation = {
|
|
|
303
311
|
...PageModalWizardI18n.ru,
|
|
304
312
|
...PageWizardI18n.ru,
|
|
305
313
|
...PageModalI18n.ru,
|
|
314
|
+
...PageTablePreviewDownI18n.ru,
|
|
306
315
|
},
|
|
307
316
|
};
|
package/docs/src/router/index.js
CHANGED
|
@@ -44,6 +44,11 @@ const ROUTES = [
|
|
|
44
44
|
name: "PageTablePreview",
|
|
45
45
|
component: () => import(/* webpackChunkName: "PageTablePreview" */ "../views/PageTable/PageTablePreview/PageTablePreview.vue"),
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
path: "/table-preview-down",
|
|
49
|
+
name: "PageTablePreviewDown",
|
|
50
|
+
component: () => import(/* webpackChunkName: "PageTablePreviewDown" */ "../views/PageTable/PageTablePreviewDown/PageTablePreviewDown.vue"),
|
|
51
|
+
},
|
|
47
52
|
{
|
|
48
53
|
path: "/spinner",
|
|
49
54
|
name: "PageSpinner",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import AlohaPage from "../../../global/components/AlohaPage/AlohaPage.vue";
|
|
2
|
+
import PageTablePreviewDownExample from "./PageTablePreviewDownExample/PageTablePreviewDownExample.vue";
|
|
3
|
+
|
|
4
|
+
import PageTitleAPI from "./compositionAPI/PageTitleAPI";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
name: "PageTablePreviewDown",
|
|
8
|
+
components: {
|
|
9
|
+
AlohaPage,
|
|
10
|
+
PageTablePreviewDownExample,
|
|
11
|
+
},
|
|
12
|
+
setup() {
|
|
13
|
+
const {
|
|
14
|
+
pageTitle,
|
|
15
|
+
} = PageTitleAPI();
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
pageTitle,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ref,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import AlohaExample from "../../../../global/components/AlohaExample/AlohaExample.vue";
|
|
6
|
+
import ATable from "../../../../../../src/ATable/ATable";
|
|
7
|
+
|
|
8
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
9
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
|
+
|
|
11
|
+
import {
|
|
12
|
+
times,
|
|
13
|
+
} from "lodash-es";
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
name: "PageTablePreviewDownRight",
|
|
17
|
+
components: {
|
|
18
|
+
AlohaExample,
|
|
19
|
+
ATable,
|
|
20
|
+
},
|
|
21
|
+
setup() {
|
|
22
|
+
const {
|
|
23
|
+
codeHtml,
|
|
24
|
+
} = HtmlAPI();
|
|
25
|
+
|
|
26
|
+
const {
|
|
27
|
+
codeJs,
|
|
28
|
+
} = JsAPI();
|
|
29
|
+
|
|
30
|
+
const columns = [
|
|
31
|
+
{
|
|
32
|
+
id: "column1",
|
|
33
|
+
keyLabel: "id",
|
|
34
|
+
label: "_A_TABLE_COLUMN_1_",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "column2",
|
|
38
|
+
keyLabel: "aloha",
|
|
39
|
+
label: "_A_TABLE_COLUMN_2_",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: "column3",
|
|
43
|
+
keyLabel: "aloha",
|
|
44
|
+
label: "_A_TABLE_COLUMN_3_",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "column4",
|
|
48
|
+
keyLabel: "aloha",
|
|
49
|
+
label: "_A_TABLE_COLUMN_4_",
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "column5",
|
|
53
|
+
keyLabel: "aloha",
|
|
54
|
+
label: "_A_TABLE_COLUMN_5_",
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const data = ref([]);
|
|
59
|
+
|
|
60
|
+
const setData = () => {
|
|
61
|
+
const DATA = [];
|
|
62
|
+
times(20, item => {
|
|
63
|
+
DATA.push({
|
|
64
|
+
id: item,
|
|
65
|
+
aloha: `aloha ${ item }`,
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
data.value = DATA;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
setData();
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
codeHtml,
|
|
75
|
+
codeJs,
|
|
76
|
+
columns,
|
|
77
|
+
data,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_TABLE_GROUP_PREVIEW_DOWN_EXAMPLE_HEADER_"
|
|
5
|
+
description="_A_TABLE_GROUP_PREVIEW_DOWN_EXAMPLE_DESCRIPTION_"
|
|
6
|
+
)
|
|
7
|
+
div
|
|
8
|
+
a-table(
|
|
9
|
+
:columns="columns"
|
|
10
|
+
:data="data"
|
|
11
|
+
label="_A_TABLE_GROUP_SIMPLE_LABEL_"
|
|
12
|
+
key-id="id"
|
|
13
|
+
preview="down"
|
|
14
|
+
)
|
|
15
|
+
template(
|
|
16
|
+
v-slot:previewDown="vm"
|
|
17
|
+
)
|
|
18
|
+
pre {{ vm }}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import ATable from "aloha-vue/src/ATable/ATable";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageTablePreviewDownExample",
|
|
10
|
+
components: {
|
|
11
|
+
ATable,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const columns = [
|
|
15
|
+
{
|
|
16
|
+
id: "column1",
|
|
17
|
+
keyLabel: "id",
|
|
18
|
+
label: "_A_TABLE_COLUMN_1_",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "column2",
|
|
22
|
+
keyLabel: "aloha",
|
|
23
|
+
label: "_A_TABLE_COLUMN_2_",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "column3",
|
|
27
|
+
keyLabel: "aloha",
|
|
28
|
+
label: "_A_TABLE_COLUMN_3_",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "column4",
|
|
32
|
+
keyLabel: "aloha",
|
|
33
|
+
label: "_A_TABLE_COLUMN_4_",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "column5",
|
|
37
|
+
keyLabel: "aloha",
|
|
38
|
+
label: "_A_TABLE_COLUMN_5_",
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
const data = ref([]);
|
|
43
|
+
|
|
44
|
+
const setData = () => {
|
|
45
|
+
const DATA = [];
|
|
46
|
+
times(20, item => {
|
|
47
|
+
DATA.push({
|
|
48
|
+
id: item,
|
|
49
|
+
aloha: \`aloha \${ item }\`,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
data.value = DATA;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
setData();
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
columns,
|
|
59
|
+
data,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
};`;
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
codeJs,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
getTranslatedText,
|
|
7
|
+
} from "../../../../../../src/ATranslation/compositionAPI/UtilsAPI";
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
export default function PageTitleAPI() {
|
|
11
|
+
const componentNameTranslated = computed(() => {
|
|
12
|
+
return getTranslatedText({
|
|
13
|
+
placeholder: "_A_TABLE_PREVIEW_DOWN_PAGE_TITLE_",
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const pageTitle = computed(() => {
|
|
18
|
+
return `ATable ${ componentNameTranslated.value }`;
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
return {
|
|
22
|
+
pageTitle,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ar from "./ar.json";
|
|
2
|
+
import de from "./de.json";
|
|
3
|
+
import en from "./en.json";
|
|
4
|
+
import es from "./es.json";
|
|
5
|
+
import fr from "./fr.json";
|
|
6
|
+
import hr from "./hr.json";
|
|
7
|
+
import it from "./it.json";
|
|
8
|
+
import ru from "./ru.json";
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
ar,
|
|
12
|
+
de,
|
|
13
|
+
en,
|
|
14
|
+
es,
|
|
15
|
+
fr,
|
|
16
|
+
hr,
|
|
17
|
+
it,
|
|
18
|
+
ru,
|
|
19
|
+
};
|
package/package.json
CHANGED
package/src/ATable/ATable.js
CHANGED
|
@@ -749,6 +749,7 @@ export default {
|
|
|
749
749
|
disabledRowActions: this.disabledRowActions,
|
|
750
750
|
row,
|
|
751
751
|
rowIndex,
|
|
752
|
+
isPreviewDownOpen: this.previewDownRowIndexes[rowIndex],
|
|
752
753
|
isRowActionsStickyLocal: this.isRowActionsStickyLocal,
|
|
753
754
|
selectedRowsIndexes: this.selectedRowsIndexes,
|
|
754
755
|
rowActionsClass: this.rowActionsClass,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
h,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import AButton from "../../AButton/AButton";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "ATablePreviewDown",
|
|
9
|
+
props: {
|
|
10
|
+
row: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true,
|
|
13
|
+
},
|
|
14
|
+
rowIndex: {
|
|
15
|
+
type: Number,
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
inject: [
|
|
20
|
+
"onTogglePreview",
|
|
21
|
+
],
|
|
22
|
+
render() {
|
|
23
|
+
return h("div", {
|
|
24
|
+
class: "a_table__preview_down",
|
|
25
|
+
}, [
|
|
26
|
+
this.$slots.previewDown && this.$slots.previewDown({
|
|
27
|
+
row: this.row,
|
|
28
|
+
rowIndex: this.rowIndex,
|
|
29
|
+
}),
|
|
30
|
+
h(AButton, {
|
|
31
|
+
class: "a_btn a_btn_transparent_dark a_table__preview_down__btn_close",
|
|
32
|
+
iconLeft: "Close",
|
|
33
|
+
iconClass: "a_table__preview_down__btn_close__icon",
|
|
34
|
+
title: "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
35
|
+
textScreenReader: "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
36
|
+
onClick: () => this.onTogglePreview({
|
|
37
|
+
row: this.row,
|
|
38
|
+
rowIndex: this.rowIndex,
|
|
39
|
+
}),
|
|
40
|
+
}),
|
|
41
|
+
]);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -2,14 +2,15 @@ import {
|
|
|
2
2
|
h,
|
|
3
3
|
} from "vue";
|
|
4
4
|
|
|
5
|
+
import AOneCheckbox from "../../ui/AOneCheckbox/AOneCheckbox";
|
|
6
|
+
import ATablePreviewDown from "../ATablePreviewDown/ATablePreviewDown";
|
|
5
7
|
import ATableTd from "../ATableTd/ATableTd";
|
|
6
8
|
import ATableTdAction from "../ATableTdAction/ATableTdAction";
|
|
7
|
-
import AOneCheckbox from "../../ui/AOneCheckbox/AOneCheckbox";
|
|
8
9
|
|
|
9
10
|
import AttributesAPI from "./compositionAPI/AttributesAPI";
|
|
10
11
|
import CheckboxAPI from "./compositionAPI/CheckboxAPI";
|
|
11
|
-
import MobileAPI from "./compositionAPI/MobileAPI";
|
|
12
12
|
|
|
13
|
+
import MobileAPI from "./compositionAPI/MobileAPI";
|
|
13
14
|
import {
|
|
14
15
|
forEach,
|
|
15
16
|
} from "lodash-es";
|
|
@@ -41,6 +42,10 @@ export default {
|
|
|
41
42
|
type: Boolean,
|
|
42
43
|
required: false,
|
|
43
44
|
},
|
|
45
|
+
isPreviewDownOpen: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: false,
|
|
48
|
+
},
|
|
44
49
|
isRowActionsStickyLocal: {
|
|
45
50
|
type: Boolean,
|
|
46
51
|
required: true,
|
|
@@ -152,23 +157,24 @@ export default {
|
|
|
152
157
|
}, tds) :
|
|
153
158
|
tds;
|
|
154
159
|
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
return [
|
|
161
|
+
h("div", this.rowAttributes, [
|
|
162
|
+
this.isMultipleActionsActive && h("div", {
|
|
163
|
+
scope: "row",
|
|
164
|
+
class: "a_table__td a_table__cell a_table__cell_checkbox",
|
|
165
|
+
style: `width: 50px; min-width: 50px; max-width: 50px;`,
|
|
166
|
+
}, [
|
|
167
|
+
!this.isFooter && h(AOneCheckbox, {
|
|
168
|
+
isWidthAuto: true,
|
|
169
|
+
modelValue: this.isRowSelected,
|
|
170
|
+
disabled: this.isCheckboxDisabled,
|
|
171
|
+
label: this.labelCheckbox,
|
|
172
|
+
labelClass: "a_sr_only",
|
|
173
|
+
isLabelTitle: true,
|
|
174
|
+
"onUpdate:modelValue": this.toggleCheckbox,
|
|
175
|
+
}),
|
|
176
|
+
]),
|
|
177
|
+
CHILDREN,
|
|
172
178
|
this.isMobile ?
|
|
173
179
|
h("div", {
|
|
174
180
|
class: "a_table_mobile__actions_parent",
|
|
@@ -180,6 +186,13 @@ export default {
|
|
|
180
186
|
ACTIONS,
|
|
181
187
|
]) :
|
|
182
188
|
ACTIONS,
|
|
183
|
-
|
|
189
|
+
]),
|
|
190
|
+
this.isPreviewDownOpen && h(ATablePreviewDown, {
|
|
191
|
+
row: this.row,
|
|
192
|
+
rowIndex: this.rowIndex,
|
|
193
|
+
}, {
|
|
194
|
+
previewDown: arg => this.$slots.previewDown(arg),
|
|
195
|
+
}),
|
|
196
|
+
];
|
|
184
197
|
},
|
|
185
198
|
};
|
package/src/ATable/i18n/ar.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "إجراءات متعددة",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "إلغاء الإجراءات المتعددة",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "المحدد {{ countAllRows }} من {{ countSelectedRows }}",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/de.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "Mehrfachaktionen",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Mehrfachaktion abbrechen",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} von {{ countAllRows }} ausgewählt",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "Vorschau schließen",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "Vorschau schließen",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "Benutzen sie bitte slot: 'previewRight'",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "{{ rowNumberFormatted }} von {{ countAllRowsFormatted }}",
|
package/src/ATable/i18n/en.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "multiple actions",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Cancel multiple action",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} of {{ countAllRows }} selected",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/es.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "múltiples acciones",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Cancelar acción múltiple",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} de {{ countAllRows }} seleccionado",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/fr.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "actions multiples",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Annuler plusieurs actions",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} de {{ countAllRows }} choisi",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/hr.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "Više radnji",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Otkaži višestruku radnju",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} od {{ countAllRows }} odabrana",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/it.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "molteplici azioni",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Annulla azione multipla",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "{{ countSelectedRows }} Di {{ countAllRows }} selezionato",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "_A_TABLE_PREVIEW_DOWN_CLOSE_",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "_A_TABLE_PREVIEW_RIGHT_CLOSE_",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_",
|
package/src/ATable/i18n/ru.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"_A_TABLE_MULTIPLE_ACTIONS_": "Множественные действия",
|
|
7
7
|
"_A_TABLE_MULTIPLE_CANCEL_": "Отменить",
|
|
8
8
|
"_A_TABLE_MULTIPLE_ITEMS_SELECTED_{{countSelectedRows}}_{{countAllRows}}_": "выбрано {{ countSelectedRows }} из {{ countAllRows }}",
|
|
9
|
+
"_A_TABLE_PREVIEW_DOWN_CLOSE_": "Закрыть предварительный просмотр",
|
|
9
10
|
"_A_TABLE_PREVIEW_RIGHT_CLOSE_": "Закрыть предварительный просмотр",
|
|
10
11
|
"_A_TABLE_PREVIEW_RIGHT_HAS_NOT_SLOT_": "Пожалуйста, используйте слот: 'previewRight'",
|
|
11
12
|
"_A_TABLE_PREVIEW_RIGHT_HEADER_{{rowNumber}}_{{rowNumberFormatted}}_{{countAllRows}}_{{countAllRowsFormatted}}_": "{{ rowNumberFormatted }} из {{ countAllRowsFormatted }}",
|
|
@@ -6,7 +6,6 @@ export const selectPluginOptions = ref({
|
|
|
6
6
|
propsDefault: {
|
|
7
7
|
buttonClass: undefined,
|
|
8
8
|
countMultiselect: 4,
|
|
9
|
-
data: [],
|
|
10
9
|
dataExtra: [],
|
|
11
10
|
inBody: true,
|
|
12
11
|
isCloseByClick: undefined,
|
|
@@ -19,13 +18,14 @@ export const selectPluginOptions = ref({
|
|
|
19
18
|
keyGroup: undefined,
|
|
20
19
|
keyId: "value",
|
|
21
20
|
keyLabel: "label",
|
|
22
|
-
loading: false,
|
|
23
21
|
maxCountMultiselect: undefined,
|
|
24
22
|
menuWidthType: "as_button",
|
|
25
23
|
modelValue: undefined,
|
|
26
24
|
placement: "bottom-end",
|
|
27
25
|
popperContainerId: "a_select_container",
|
|
28
26
|
search: false,
|
|
27
|
+
searchApi: false,
|
|
28
|
+
searchApiKey: undefined,
|
|
29
29
|
searchOutside: false,
|
|
30
30
|
searchTimeout: 0,
|
|
31
31
|
slotName: undefined,
|