aloha-vue 1.0.355 → 1.0.357
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/mainIcons.js +2 -0
- package/docs/src/mainTranslation.js +9 -0
- package/docs/src/views/PageButton/PageButtonTextObject/PageButtonTextObject.pug +1 -1
- package/docs/src/views/PageButton/PageButtonTitleArray/PageButtonTitleArray.pug +1 -1
- package/docs/src/views/PageDropdown/PageDropdown.js +54 -0
- package/docs/src/views/PageDropdown/PageDropdown.pug +49 -2
- package/docs/src/views/PageDropdown/PageDropdownBasic/PageDropdownBasic.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownBasic/PageDropdownBasic.pug +9 -0
- package/docs/src/views/PageDropdown/PageDropdownBasic/PageDropdownBasic.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownBasic/compositionAPI/HtmlAPI.js +9 -0
- package/docs/src/views/PageDropdown/PageDropdownBasic/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonClass/PageDropdownButtonClass.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonClass/PageDropdownButtonClass.pug +21 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonClass/PageDropdownButtonClass.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonClass/compositionAPI/HtmlAPI.js +20 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonClass/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonIcons/PageDropdownButtonIcons.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonIcons/PageDropdownButtonIcons.pug +31 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonIcons/PageDropdownButtonIcons.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonIcons/compositionAPI/HtmlAPI.js +30 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonIcons/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonText/PageDropdownButtonText.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonText/PageDropdownButtonText.pug +21 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonText/PageDropdownButtonText.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonText/compositionAPI/HtmlAPI.js +20 -0
- package/docs/src/views/PageDropdown/PageDropdownButtonText/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownCaretIcon/PageDropdownCaretIcon.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownCaretIcon/PageDropdownCaretIcon.pug +16 -0
- package/docs/src/views/PageDropdown/PageDropdownCaretIcon/PageDropdownCaretIcon.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownCaretIcon/compositionAPI/HtmlAPI.js +15 -0
- package/docs/src/views/PageDropdown/PageDropdownCaretIcon/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownHasCaret/PageDropdownHasCaret.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownHasCaret/PageDropdownHasCaret.pug +18 -0
- package/docs/src/views/PageDropdown/PageDropdownHasCaret/PageDropdownHasCaret.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownHasCaret/compositionAPI/HtmlAPI.js +17 -0
- package/docs/src/views/PageDropdown/PageDropdownHasCaret/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownInBody/PageDropdownInBody.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownInBody/PageDropdownInBody.pug +18 -0
- package/docs/src/views/PageDropdown/PageDropdownInBody/PageDropdownInBody.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownInBody/compositionAPI/HtmlAPI.js +17 -0
- package/docs/src/views/PageDropdown/PageDropdownInBody/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/PageDropdownTriggers/PageDropdownTriggers.js +41 -0
- package/docs/src/views/PageDropdown/PageDropdownTriggers/PageDropdownTriggers.pug +48 -0
- package/docs/src/views/PageDropdown/PageDropdownTriggers/PageDropdownTriggers.vue +2 -0
- package/docs/src/views/PageDropdown/PageDropdownTriggers/compositionAPI/HtmlAPI.js +17 -0
- package/docs/src/views/PageDropdown/PageDropdownTriggers/compositionAPI/JsAPI.js +32 -0
- package/docs/src/views/PageDropdown/compositionAPI/EventsAPI.js +13 -0
- package/docs/src/views/PageDropdown/compositionAPI/ExposesAPI.js +18 -0
- package/docs/src/views/PageDropdown/compositionAPI/PageTitleAPI.js +24 -0
- package/docs/src/views/PageDropdown/compositionAPI/PropsAPI.js +106 -0
- package/docs/src/views/PageDropdown/compositionAPI/SlotsAPI.js +12 -0
- package/docs/src/views/PageDropdown/i18n/PageDropdownI18n.js +19 -0
- package/docs/src/views/PageDropdown/i18n/ar.json +3 -0
- package/docs/src/views/PageDropdown/i18n/de.json +26 -0
- package/docs/src/views/PageDropdown/i18n/en.json +3 -0
- package/docs/src/views/PageDropdown/i18n/es.json +3 -0
- package/docs/src/views/PageDropdown/i18n/fr.json +3 -0
- package/docs/src/views/PageDropdown/i18n/hr.json +3 -0
- package/docs/src/views/PageDropdown/i18n/it.json +3 -0
- package/docs/src/views/PageDropdown/i18n/ru.json +3 -0
- package/docs/src/views/PageLink/PageLink.js +24 -22
- package/docs/src/views/PageLink/PageLink.pug +2 -0
- package/docs/src/views/PageLink/PageLinkBasic/PageLinkBasic.pug +0 -1
- package/docs/src/views/PageLink/PageLinkTextTag/PageLinkTextTag.js +27 -0
- package/docs/src/views/PageLink/PageLinkTextTag/PageLinkTextTag.pug +13 -0
- package/docs/src/views/PageLink/PageLinkTextTag/PageLinkTextTag.vue +2 -0
- package/docs/src/views/PageLink/PageLinkTextTag/compositionAPI/HtmlAPI.js +12 -0
- package/docs/src/views/PageLink/PageLinkTextTag/compositionAPI/JsAPI.js +14 -0
- package/docs/src/views/PageLink/PageLinkTitleArray/PageLinkTitleArray.pug +1 -1
- package/docs/src/views/PageLink/compositionAPI/PropsAPI.js +7 -0
- package/docs/src/views/PageLink/i18n/ar.json +1 -80
- package/docs/src/views/PageLink/i18n/de.json +80 -78
- package/docs/src/views/PageLink/i18n/es.json +1 -80
- package/docs/src/views/PageLink/i18n/fr.json +1 -80
- package/docs/src/views/PageLink/i18n/it.json +1 -80
- package/docs/src/views/PageLink/i18n/ru.json +1 -80
- package/package.json +1 -1
- package/src/AButton/AButton.js +1 -1
- package/src/ADropdown/ADropdown.js +100 -65
- package/src/ADropdown/compositionAPI/AttributesAPI.js +3 -1
- package/src/ADropdown/compositionAPI/ClassAPI.js +41 -0
- package/src/ADropdown/compositionAPI/EventsAPI.js +70 -0
- package/src/ADropdown/compositionAPI/ToggleAPI.js +90 -20
- package/src/AModal/AModal.js +0 -30
- package/src/ATable/ATableHeaderThAction/ATableHeaderThAction.js +2 -1
- package/src/ATable/ATableTdAction/ATableTdAction.js +4 -3
- package/src/compositionAPI/AHttpAPI.js +8 -8
- package/src/const/AFocusableElements.js +1 -1
- package/src/utils/utilsDOM.js +61 -0
package/docs/src/mainIcons.js
CHANGED
|
@@ -18,6 +18,7 @@ import Files from "../../src/AIcon/Icons/bootstrap-1-9-1/Files";
|
|
|
18
18
|
import FiletypeHtml from "../../src/AIcon/Icons/bootstrap-1-9-1/FiletypeHtml";
|
|
19
19
|
import FiletypeJs from "../../src/AIcon/Icons/bootstrap-1-9-1/FiletypeJs";
|
|
20
20
|
import FiletypeSvg from "../../src/AIcon/Icons/bootstrap-1-9-1/FiletypeSvg";
|
|
21
|
+
import Gear from "../../src/AIcon/Icons/bootstrap-1-9-1/Gear";
|
|
21
22
|
import GlobeEuropeAfrica from "../../src/AIcon/Icons/bootstrap-1-9-1/GlobeEuropeAfrica";
|
|
22
23
|
import HourglassSplit from "../../src/AIcon/Icons/bootstrap-1-9-1/HourglassSplit";
|
|
23
24
|
import InputCursor from "../../src/AIcon/Icons/bootstrap-1-9-1/InputCursor";
|
|
@@ -51,6 +52,7 @@ export default {
|
|
|
51
52
|
FiletypeHtml,
|
|
52
53
|
FiletypeJs,
|
|
53
54
|
FiletypeSvg,
|
|
55
|
+
Gear,
|
|
54
56
|
GlobeEuropeAfrica,
|
|
55
57
|
HourglassSplit,
|
|
56
58
|
InputCursor,
|
|
@@ -22,6 +22,7 @@ import PageAOnHooksI18n from "./views/PageDirectives/PageOnHooks/i18n/PageAOnHoo
|
|
|
22
22
|
import PageDisclosureI18n from "./views/PageDisclosure/i18n/PageDisclosureI18n";
|
|
23
23
|
import PageTooltipI18n from "./views/PageTooltip/i18n/PageTooltipI18n";
|
|
24
24
|
import PageGroupButtonDropdownI18n from "./views/PageGroupButtonDropdown/i18n/PageGroupButtonDropdownI18n";
|
|
25
|
+
import PageDropdownI18n from "./views/PageDropdown/i18n/PageDropdownI18n";
|
|
25
26
|
|
|
26
27
|
export const mainTranslation = {
|
|
27
28
|
ar: {
|
|
@@ -40,6 +41,7 @@ export const mainTranslation = {
|
|
|
40
41
|
...PageDisclosureI18n.ar,
|
|
41
42
|
...PageTooltipI18n.ar,
|
|
42
43
|
...PageGroupButtonDropdownI18n.ar,
|
|
44
|
+
...PageDropdownI18n.ar,
|
|
43
45
|
},
|
|
44
46
|
de: {
|
|
45
47
|
...allLanguages.de,
|
|
@@ -57,6 +59,7 @@ export const mainTranslation = {
|
|
|
57
59
|
...PageDisclosureI18n.de,
|
|
58
60
|
...PageTooltipI18n.de,
|
|
59
61
|
...PageGroupButtonDropdownI18n.de,
|
|
62
|
+
...PageDropdownI18n.de,
|
|
60
63
|
},
|
|
61
64
|
en: {
|
|
62
65
|
...allLanguages.en,
|
|
@@ -74,6 +77,7 @@ export const mainTranslation = {
|
|
|
74
77
|
...PageDisclosureI18n.en,
|
|
75
78
|
...PageTooltipI18n.en,
|
|
76
79
|
...PageGroupButtonDropdownI18n.en,
|
|
80
|
+
...PageDropdownI18n.en,
|
|
77
81
|
},
|
|
78
82
|
es: {
|
|
79
83
|
...allLanguages.es,
|
|
@@ -91,6 +95,7 @@ export const mainTranslation = {
|
|
|
91
95
|
...PageDisclosureI18n.es,
|
|
92
96
|
...PageTooltipI18n.es,
|
|
93
97
|
...PageGroupButtonDropdownI18n.es,
|
|
98
|
+
...PageDropdownI18n.es,
|
|
94
99
|
},
|
|
95
100
|
fr: {
|
|
96
101
|
...allLanguages.fr,
|
|
@@ -108,6 +113,7 @@ export const mainTranslation = {
|
|
|
108
113
|
...PageDisclosureI18n.fr,
|
|
109
114
|
...PageTooltipI18n.fr,
|
|
110
115
|
...PageGroupButtonDropdownI18n.fr,
|
|
116
|
+
...PageDropdownI18n.fr,
|
|
111
117
|
},
|
|
112
118
|
hr: {
|
|
113
119
|
...allLanguages.hr,
|
|
@@ -125,6 +131,7 @@ export const mainTranslation = {
|
|
|
125
131
|
...PageDisclosureI18n.hr,
|
|
126
132
|
...PageTooltipI18n.hr,
|
|
127
133
|
...PageGroupButtonDropdownI18n.hr,
|
|
134
|
+
...PageDropdownI18n.hr,
|
|
128
135
|
},
|
|
129
136
|
it: {
|
|
130
137
|
...allLanguages.it,
|
|
@@ -142,6 +149,7 @@ export const mainTranslation = {
|
|
|
142
149
|
...PageDisclosureI18n.it,
|
|
143
150
|
...PageTooltipI18n.it,
|
|
144
151
|
...PageGroupButtonDropdownI18n.it,
|
|
152
|
+
...PageDropdownI18n.it,
|
|
145
153
|
},
|
|
146
154
|
ru: {
|
|
147
155
|
...allLanguages.ru,
|
|
@@ -159,5 +167,6 @@ export const mainTranslation = {
|
|
|
159
167
|
...PageDisclosureI18n.ru,
|
|
160
168
|
...PageTooltipI18n.ru,
|
|
161
169
|
...PageGroupButtonDropdownI18n.ru,
|
|
170
|
+
...PageDropdownI18n.ru,
|
|
162
171
|
},
|
|
163
172
|
};
|
|
@@ -1,11 +1,60 @@
|
|
|
1
1
|
import ADropdown from "../../../../src/ADropdown/ADropdown";
|
|
2
|
+
import AlohaPage from "../../global/components/AlohaPage/AlohaPage.vue";
|
|
3
|
+
import AlohaTableProps from "../../global/components/AlohaTableProps/AlohaTableProps.vue";
|
|
4
|
+
import ATranslation from "../../../../src/ATranslation/ATranslation";
|
|
5
|
+
import PageDropdownBasic from "./PageDropdownBasic/PageDropdownBasic.vue";
|
|
6
|
+
import PageDropdownButtonClass from "./PageDropdownButtonClass/PageDropdownButtonClass.vue";
|
|
7
|
+
import PageDropdownButtonIcons from "./PageDropdownButtonIcons/PageDropdownButtonIcons.vue";
|
|
8
|
+
import PageDropdownButtonText from "./PageDropdownButtonText/PageDropdownButtonText.vue";
|
|
9
|
+
import PageDropdownCaretIcon from "./PageDropdownCaretIcon/PageDropdownCaretIcon.vue";
|
|
10
|
+
import PageDropdownHasCaret from "./PageDropdownHasCaret/PageDropdownHasCaret.vue";
|
|
11
|
+
import PageDropdownInBody from "./PageDropdownInBody/PageDropdownInBody.vue";
|
|
12
|
+
import PageDropdownTriggers from "./PageDropdownTriggers/PageDropdownTriggers.vue";
|
|
13
|
+
|
|
14
|
+
import EventsAPI from "./compositionAPI/EventsAPI";
|
|
15
|
+
import ExposesAPI from "./compositionAPI/ExposesAPI";
|
|
16
|
+
import PageTitleAPI from "./compositionAPI/PageTitleAPI";
|
|
17
|
+
import PropsAPI from "./compositionAPI/PropsAPI";
|
|
18
|
+
import SlotsAPI from "./compositionAPI/SlotsAPI";
|
|
2
19
|
|
|
3
20
|
export default {
|
|
4
21
|
name: "PageDropdown",
|
|
5
22
|
components: {
|
|
6
23
|
ADropdown,
|
|
24
|
+
AlohaPage,
|
|
25
|
+
AlohaTableProps,
|
|
26
|
+
ATranslation,
|
|
27
|
+
PageDropdownBasic,
|
|
28
|
+
PageDropdownButtonClass,
|
|
29
|
+
PageDropdownButtonIcons,
|
|
30
|
+
PageDropdownButtonText,
|
|
31
|
+
PageDropdownCaretIcon,
|
|
32
|
+
PageDropdownHasCaret,
|
|
33
|
+
PageDropdownInBody,
|
|
34
|
+
PageDropdownTriggers,
|
|
7
35
|
},
|
|
8
36
|
setup() {
|
|
37
|
+
const {
|
|
38
|
+
pageTitle,
|
|
39
|
+
} = PageTitleAPI();
|
|
40
|
+
|
|
41
|
+
const {
|
|
42
|
+
dataProps,
|
|
43
|
+
} = PropsAPI();
|
|
44
|
+
|
|
45
|
+
const {
|
|
46
|
+
dataSlots,
|
|
47
|
+
} = SlotsAPI();
|
|
48
|
+
|
|
49
|
+
const {
|
|
50
|
+
dataEvents,
|
|
51
|
+
} = EventsAPI();
|
|
52
|
+
|
|
53
|
+
const {
|
|
54
|
+
dataExposes,
|
|
55
|
+
} = ExposesAPI();
|
|
56
|
+
|
|
57
|
+
|
|
9
58
|
const dropdownActions = [
|
|
10
59
|
{
|
|
11
60
|
text: "Actions 0",
|
|
@@ -41,6 +90,11 @@ export default {
|
|
|
41
90
|
];
|
|
42
91
|
|
|
43
92
|
return {
|
|
93
|
+
dataEvents,
|
|
94
|
+
dataExposes,
|
|
95
|
+
dataProps,
|
|
96
|
+
dataSlots,
|
|
97
|
+
pageTitle,
|
|
44
98
|
dropdownActions,
|
|
45
99
|
};
|
|
46
100
|
},
|
|
@@ -1,5 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
aloha-page(
|
|
2
|
+
:page-title="pageTitle"
|
|
3
|
+
)
|
|
4
|
+
template(
|
|
5
|
+
v-slot:body
|
|
6
|
+
)
|
|
7
|
+
a-translation(
|
|
8
|
+
tag="p"
|
|
9
|
+
html="_A_DROPDOWN_COMPONENT_DESCRIPTION_"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
page-dropdown-basic
|
|
13
|
+
|
|
14
|
+
page-dropdown-button-text
|
|
15
|
+
|
|
16
|
+
page-dropdown-button-class
|
|
17
|
+
|
|
18
|
+
page-dropdown-button-icons
|
|
19
|
+
|
|
20
|
+
page-dropdown-in-body
|
|
21
|
+
|
|
22
|
+
page-dropdown-triggers
|
|
23
|
+
|
|
24
|
+
page-dropdown-caret-icon
|
|
25
|
+
|
|
26
|
+
page-dropdown-has-caret
|
|
27
|
+
|
|
28
|
+
//aloha-table-props(
|
|
29
|
+
// :data="dataProps"
|
|
30
|
+
//)
|
|
31
|
+
//
|
|
32
|
+
//aloha-table-props(
|
|
33
|
+
// table-label="Slots"
|
|
34
|
+
// :data="dataSlots"
|
|
35
|
+
// :columns="['name', 'description']"
|
|
36
|
+
//)
|
|
37
|
+
//
|
|
38
|
+
//aloha-table-props(
|
|
39
|
+
// table-label="Events"
|
|
40
|
+
// :data="dataEvents"
|
|
41
|
+
// :columns="['name', 'type', 'description']"
|
|
42
|
+
//)
|
|
43
|
+
//
|
|
44
|
+
//aloha-table-props(
|
|
45
|
+
// table-label="Exposes"
|
|
46
|
+
// :data="dataExposes"
|
|
47
|
+
// :columns="['name', 'type', 'description']"
|
|
48
|
+
//)
|
|
49
|
+
|
|
3
50
|
|
|
4
51
|
a-dropdown(
|
|
5
52
|
button-class="a_btn a_btn_link"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ADropdown from "../../../../../src/ADropdown/ADropdown";
|
|
2
|
+
import AlohaExample from "../../../global/components/AlohaExample/AlohaExample.vue";
|
|
3
|
+
|
|
4
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
5
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "PageDropdownBasic",
|
|
9
|
+
components: {
|
|
10
|
+
ADropdown,
|
|
11
|
+
AlohaExample,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const {
|
|
15
|
+
codeHtml,
|
|
16
|
+
} = HtmlAPI();
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
codeJs,
|
|
20
|
+
} = JsAPI();
|
|
21
|
+
|
|
22
|
+
const dropdownActions = [
|
|
23
|
+
{
|
|
24
|
+
text: "Actions 0",
|
|
25
|
+
type: "button",
|
|
26
|
+
callback: () => {},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "Actions 1",
|
|
30
|
+
type: "button",
|
|
31
|
+
callback: () => {},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
codeHtml,
|
|
37
|
+
codeJs,
|
|
38
|
+
dropdownActions,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import ADropdown from "aloha-vue/src/ADropdown/ADropdown";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "PageDropdownBasic",
|
|
6
|
+
components: {
|
|
7
|
+
ADropdown,
|
|
8
|
+
},
|
|
9
|
+
setup() {
|
|
10
|
+
const dropdownActions = [
|
|
11
|
+
{
|
|
12
|
+
text: "Actions 0",
|
|
13
|
+
type: "button",
|
|
14
|
+
callback: () => {},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: "Actions 1",
|
|
18
|
+
type: "button",
|
|
19
|
+
callback: () => {},
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
dropdownActions,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
};`;
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
codeJs,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ADropdown from "../../../../../src/ADropdown/ADropdown";
|
|
2
|
+
import AlohaExample from "../../../global/components/AlohaExample/AlohaExample.vue";
|
|
3
|
+
|
|
4
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
5
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "PageDropdownButtonClass",
|
|
9
|
+
components: {
|
|
10
|
+
ADropdown,
|
|
11
|
+
AlohaExample,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const {
|
|
15
|
+
codeHtml,
|
|
16
|
+
} = HtmlAPI();
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
codeJs,
|
|
20
|
+
} = JsAPI();
|
|
21
|
+
|
|
22
|
+
const dropdownActions = [
|
|
23
|
+
{
|
|
24
|
+
text: "Actions 0",
|
|
25
|
+
type: "button",
|
|
26
|
+
callback: () => {},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "Actions 1",
|
|
30
|
+
type: "button",
|
|
31
|
+
callback: () => {},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
codeHtml,
|
|
37
|
+
codeJs,
|
|
38
|
+
dropdownActions,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_DROPDOWN_GROUP_BUTTON_CLASS_HEADER_"
|
|
5
|
+
description="_A_DROPDOWN_GROUP_BUTTON_CLASS_DESCRIPTION_"
|
|
6
|
+
props="button-text"
|
|
7
|
+
)
|
|
8
|
+
a-dropdown(
|
|
9
|
+
:actions="dropdownActions"
|
|
10
|
+
button-class="a_btn a_btn_primary"
|
|
11
|
+
)
|
|
12
|
+
a-dropdown(
|
|
13
|
+
class="a_ml_2"
|
|
14
|
+
:actions="dropdownActions"
|
|
15
|
+
button-class="a_btn a_btn_success"
|
|
16
|
+
)
|
|
17
|
+
a-dropdown(
|
|
18
|
+
class="a_ml_2"
|
|
19
|
+
:actions="dropdownActions"
|
|
20
|
+
button-class="a_btn a_btn_info"
|
|
21
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default function HtmlAPI() {
|
|
2
|
+
const codeHtml = `<a-dropdown
|
|
3
|
+
:actions="dropdownActions"
|
|
4
|
+
button-class="a_btn a_btn_primary"
|
|
5
|
+
></a-dropdown>
|
|
6
|
+
<a-dropdown
|
|
7
|
+
class="a_ml_2"
|
|
8
|
+
:actions="dropdownActions"
|
|
9
|
+
button-class="a_btn a_btn_success"
|
|
10
|
+
></a-dropdown>
|
|
11
|
+
<a-dropdown
|
|
12
|
+
class="a_ml_2"
|
|
13
|
+
:actions="dropdownActions"
|
|
14
|
+
button-class="a_btn a_btn_info"
|
|
15
|
+
></a-dropdown>`;
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
codeHtml,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import ADropdown from "aloha-vue/src/ADropdown/ADropdown";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "PageDropdownButtonClass",
|
|
6
|
+
components: {
|
|
7
|
+
ADropdown,
|
|
8
|
+
},
|
|
9
|
+
setup() {
|
|
10
|
+
const dropdownActions = [
|
|
11
|
+
{
|
|
12
|
+
text: "Actions 0",
|
|
13
|
+
type: "button",
|
|
14
|
+
callback: () => {},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: "Actions 1",
|
|
18
|
+
type: "button",
|
|
19
|
+
callback: () => {},
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
dropdownActions,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
};`;
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
codeJs,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ADropdown from "../../../../../src/ADropdown/ADropdown";
|
|
2
|
+
import AlohaExample from "../../../global/components/AlohaExample/AlohaExample.vue";
|
|
3
|
+
|
|
4
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
5
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "PageDropdownButtonIcons",
|
|
9
|
+
components: {
|
|
10
|
+
ADropdown,
|
|
11
|
+
AlohaExample,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const {
|
|
15
|
+
codeHtml,
|
|
16
|
+
} = HtmlAPI();
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
codeJs,
|
|
20
|
+
} = JsAPI();
|
|
21
|
+
|
|
22
|
+
const dropdownActions = [
|
|
23
|
+
{
|
|
24
|
+
text: "Actions 0",
|
|
25
|
+
type: "button",
|
|
26
|
+
callback: () => {},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "Actions 1",
|
|
30
|
+
type: "button",
|
|
31
|
+
callback: () => {},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
codeHtml,
|
|
37
|
+
codeJs,
|
|
38
|
+
dropdownActions,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_DROPDOWN_GROUP_BUTTON_ICONS_HEADER_"
|
|
5
|
+
description="_A_DROPDOWN_GROUP_BUTTON_ICONS_DESCRIPTION_"
|
|
6
|
+
:props="['button-icon-left', 'button-icon-right']"
|
|
7
|
+
)
|
|
8
|
+
a-dropdown(
|
|
9
|
+
:actions="dropdownActions"
|
|
10
|
+
button-icon-left="Gear"
|
|
11
|
+
button-text="Aloha"
|
|
12
|
+
)
|
|
13
|
+
a-dropdown(
|
|
14
|
+
class="a_ml_2"
|
|
15
|
+
:actions="dropdownActions"
|
|
16
|
+
button-icon-right="Files"
|
|
17
|
+
button-text="Aloha"
|
|
18
|
+
)
|
|
19
|
+
a-dropdown(
|
|
20
|
+
class="a_ml_2"
|
|
21
|
+
:actions="dropdownActions"
|
|
22
|
+
button-icon-left="Duplicate"
|
|
23
|
+
button-icon-right="Gear"
|
|
24
|
+
button-text="Aloha"
|
|
25
|
+
)
|
|
26
|
+
a-dropdown(
|
|
27
|
+
class="a_ml_2"
|
|
28
|
+
:actions="dropdownActions"
|
|
29
|
+
:button-icon-right="{ desktop: 'Gear', mobile: 'Files' }"
|
|
30
|
+
button-text="Aloha"
|
|
31
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default function HtmlAPI() {
|
|
2
|
+
const codeHtml = `<a-dropdown
|
|
3
|
+
:actions="dropdownActions"
|
|
4
|
+
button-icon-left="Gear"
|
|
5
|
+
button-text="Aloha"
|
|
6
|
+
></a-dropdown>
|
|
7
|
+
<a-dropdown
|
|
8
|
+
class="a_ml_2"
|
|
9
|
+
:actions="dropdownActions"
|
|
10
|
+
button-icon-right="Files"
|
|
11
|
+
button-text="Aloha"
|
|
12
|
+
></a-dropdown>
|
|
13
|
+
<a-dropdown
|
|
14
|
+
class="a_ml_2"
|
|
15
|
+
:actions="dropdownActions"
|
|
16
|
+
button-icon-left="Duplicate"
|
|
17
|
+
button-icon-right="Gear"
|
|
18
|
+
button-text="Aloha"
|
|
19
|
+
></a-dropdown>
|
|
20
|
+
<a-dropdown
|
|
21
|
+
class="a_ml_2"
|
|
22
|
+
:actions="dropdownActions"
|
|
23
|
+
:button-icon-right="{ desktop: 'Gear', mobile: 'Files' }"
|
|
24
|
+
button-text="Aloha"
|
|
25
|
+
></a-dropdown>`;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
codeHtml,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import ADropdown from "aloha-vue/src/ADropdown/ADropdown";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
name: "PageDropdownButtonIcons",
|
|
6
|
+
components: {
|
|
7
|
+
ADropdown,
|
|
8
|
+
},
|
|
9
|
+
setup() {
|
|
10
|
+
const dropdownActions = [
|
|
11
|
+
{
|
|
12
|
+
text: "Actions 0",
|
|
13
|
+
type: "button",
|
|
14
|
+
callback: () => {},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: "Actions 1",
|
|
18
|
+
type: "button",
|
|
19
|
+
callback: () => {},
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
return {
|
|
24
|
+
dropdownActions,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
};`;
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
codeJs,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import ADropdown from "../../../../../src/ADropdown/ADropdown";
|
|
2
|
+
import AlohaExample from "../../../global/components/AlohaExample/AlohaExample.vue";
|
|
3
|
+
|
|
4
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
5
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
name: "PageDropdownButtonText",
|
|
9
|
+
components: {
|
|
10
|
+
ADropdown,
|
|
11
|
+
AlohaExample,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const {
|
|
15
|
+
codeHtml,
|
|
16
|
+
} = HtmlAPI();
|
|
17
|
+
|
|
18
|
+
const {
|
|
19
|
+
codeJs,
|
|
20
|
+
} = JsAPI();
|
|
21
|
+
|
|
22
|
+
const dropdownActions = [
|
|
23
|
+
{
|
|
24
|
+
text: "Actions 0",
|
|
25
|
+
type: "button",
|
|
26
|
+
callback: () => {},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "Actions 1",
|
|
30
|
+
type: "button",
|
|
31
|
+
callback: () => {},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
codeHtml,
|
|
37
|
+
codeJs,
|
|
38
|
+
dropdownActions,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_DROPDOWN_GROUP_BUTTON_TEXT_HEADER_"
|
|
5
|
+
description="_A_DROPDOWN_GROUP_BUTTON_TEXT_DESCRIPTION_"
|
|
6
|
+
props="button-text"
|
|
7
|
+
)
|
|
8
|
+
a-dropdown(
|
|
9
|
+
:actions="dropdownActions"
|
|
10
|
+
button-text="Aloha"
|
|
11
|
+
)
|
|
12
|
+
a-dropdown(
|
|
13
|
+
class="a_ml_2"
|
|
14
|
+
:actions="dropdownActions"
|
|
15
|
+
button-text="Aloha 123"
|
|
16
|
+
)
|
|
17
|
+
a-dropdown(
|
|
18
|
+
class="a_ml_2"
|
|
19
|
+
:actions="dropdownActions"
|
|
20
|
+
:button-text="{ desktop: 'Aloha desktop', mobile: 'Aloha mobile' }"
|
|
21
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default function HtmlAPI() {
|
|
2
|
+
const codeHtml = `<a-dropdown
|
|
3
|
+
:actions="dropdownActions"
|
|
4
|
+
button-text="Aloha"
|
|
5
|
+
></a-dropdown>
|
|
6
|
+
<a-dropdown
|
|
7
|
+
class="a_ml_2"
|
|
8
|
+
:actions="dropdownActions"
|
|
9
|
+
button-text="Aloha 123"
|
|
10
|
+
></a-dropdown>
|
|
11
|
+
<a-dropdown
|
|
12
|
+
class="a_ml_2"
|
|
13
|
+
:actions="dropdownActions"
|
|
14
|
+
:button-text="{ desktop: 'Aloha desktop', mobile: 'Aloha mobile' }"
|
|
15
|
+
></a-dropdown>`;
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
codeHtml,
|
|
19
|
+
};
|
|
20
|
+
}
|