aloha-vue 1.0.345 → 1.0.347
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/README.md +1 -0
- package/docs/package.json +32 -30
- package/docs/src/components/TheMenu/TheMenu.vue +1 -1
- package/docs/src/views/PageAlert/PageAlertTypes/PageAlertTypes.pug +5 -0
- package/docs/src/views/PageAlert/PageAlertTypes/compositionAPI/HtmlAPI.js +6 -0
- package/docs/src/views/PageButton/PageButton.js +5 -3
- package/docs/src/views/PageButton/PageButton.pug +2 -0
- package/docs/src/views/PageButton/PageButtonAriaDisabled/PageButtonAriaDisabled.pug +27 -2
- package/docs/src/views/PageButton/PageButtonAriaDisabled/compositionAPI/HtmlAPI.js +30 -4
- package/docs/src/views/PageButton/PageButtonBasic/PageButtonBasic.pug +50 -47
- package/docs/src/views/PageButton/PageButtonBasic/compositionAPI/HtmlAPI.js +6 -0
- package/docs/src/views/PageButton/PageButtonDisabled/PageButtonDisabled.pug +27 -2
- package/docs/src/views/PageButton/PageButtonDisabled/compositionAPI/HtmlAPI.js +30 -4
- package/docs/src/views/PageButton/PageButtonOutline/PageButtonOutline.pug +5 -0
- package/docs/src/views/PageButton/PageButtonOutline/compositionAPI/HtmlAPI.js +6 -0
- package/docs/src/views/PageButton/PageButtonSwitch/PageButtonSwitch.js +39 -0
- package/docs/src/views/PageButton/PageButtonSwitch/PageButtonSwitch.pug +12 -0
- package/docs/src/views/PageButton/PageButtonSwitch/PageButtonSwitch.vue +2 -0
- package/docs/src/views/PageButton/PageButtonSwitch/compositionAPI/HtmlAPI.js +12 -0
- package/docs/src/views/PageButton/PageButtonSwitch/compositionAPI/JsAPI.js +30 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdown.js +8 -2
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdown.pug +8 -2
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownActionsClasses/PageGroupButtonDropdownActionsClasses.js +61 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownActionsClasses/PageGroupButtonDropdownActionsClasses.pug +20 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownActionsClasses/PageGroupButtonDropdownActionsClasses.vue +2 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownActionsClasses/compositionAPI/HtmlAPI.js +19 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownActionsClasses/compositionAPI/JsAPI.js +52 -0
- package/docs/src/views/PageGroupButtonDropdown/{PageGroupButtonDropdownOnlyDropdown/PageGroupButtonDropdownOnlyDropdown.js → PageGroupButtonDropdownDisabled/PageGroupButtonDropdownDisabled.js} +16 -1
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDisabled/PageGroupButtonDropdownDisabled.pug +20 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDisabled/PageGroupButtonDropdownDisabled.vue +2 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDisabled/compositionAPI/HtmlAPI.js +19 -0
- package/docs/src/views/PageGroupButtonDropdown/{PageGroupButtonDropdownOnlyDropdown → PageGroupButtonDropdownDisabled}/compositionAPI/JsAPI.js +1 -1
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDropdownAttributes/PageGroupButtonDropdownDropdownAttributes.js +61 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDropdownAttributes/PageGroupButtonDropdownDropdownAttributes.pug +20 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDropdownAttributes/PageGroupButtonDropdownDropdownAttributes.vue +2 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDropdownAttributes/compositionAPI/HtmlAPI.js +19 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownDropdownAttributes/compositionAPI/JsAPI.js +52 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown.js +67 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown.pug +20 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown.vue +2 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown/compositionAPI/HtmlAPI.js +19 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownHasDividerBeforeDropdown/compositionAPI/JsAPI.js +58 -0
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownIndexFirstDropdownAction/compositionAPI/HtmlAPI.js +1 -1
- package/docs/src/views/PageGroupButtonDropdown/i18n/de.json +10 -3
- package/docs/src/views/PageLink/PageLinkClass/PageLinkClass.pug +5 -0
- package/docs/src/views/PageLink/PageLinkClass/compositionAPI/HtmlAPI.js +6 -0
- package/docs/src/views/PageLink/PageLinkDisabled/PageLinkDisabled.pug +12 -0
- package/docs/src/views/PageLink/PageLinkDisabled/compositionAPI/HtmlAPI.js +14 -0
- package/docs/src/views/PageLink/PageLinkOutline/PageLinkOutline.pug +5 -0
- package/docs/src/views/PageLink/PageLinkOutline/compositionAPI/HtmlAPI.js +6 -0
- package/docs/src/views/PageTable/PageTablePagination/i18n/en.json +19 -1
- package/docs/webpack.config.js +6 -1
- package/package.json +1 -1
- package/src/AButton/AButton.js +27 -2
- package/src/AButton/comositionAPI/SwitchAPI.js +33 -0
- package/src/AGroupButtonDropdown/AGroupButtonDropdownItem/AGroupButtonDropdownItem.js +0 -2
- package/src/ATable/compositionAPI/ScrollControlAPI.js +8 -2
- package/src/i18n/en.json +8 -8
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownOnlyDropdown/PageGroupButtonDropdownOnlyDropdown.pug +0 -12
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownOnlyDropdown/PageGroupButtonDropdownOnlyDropdown.vue +0 -2
- package/docs/src/views/PageGroupButtonDropdown/PageGroupButtonDropdownOnlyDropdown/compositionAPI/HtmlAPI.js +0 -11
package/README.md
CHANGED
package/docs/package.json
CHANGED
|
@@ -11,46 +11,48 @@
|
|
|
11
11
|
"build-css": "node-sass --include-path scss styles/styles.scss public/styles.css"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@popperjs/core": "2.11.
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
14
|
+
"@popperjs/core": "2.11.8",
|
|
15
|
+
"axios": "1.4.0",
|
|
16
|
+
"aloha-css": "1.0.103",
|
|
17
|
+
"dompurify": "3.0.3",
|
|
18
|
+
"fecha": "4.2.3",
|
|
18
19
|
"highlight.js": "11.8.0",
|
|
19
|
-
"lodash-es": "
|
|
20
|
+
"lodash-es": "4.17.21",
|
|
21
|
+
"moment": "2.29.4",
|
|
20
22
|
"tiny-emitter": "2.1.0",
|
|
21
|
-
"tinymce": "6.
|
|
23
|
+
"tinymce": "6.5.1",
|
|
22
24
|
"vue": "3.3.4",
|
|
23
|
-
"vue-router": "4.2.
|
|
25
|
+
"vue-router": "4.2.2"
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
26
|
-
"@babel/core": "7.
|
|
27
|
-
"@babel/eslint-parser": "7.
|
|
28
|
+
"@babel/core": "7.22.5",
|
|
29
|
+
"@babel/eslint-parser": "7.22.5",
|
|
28
30
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
29
|
-
"@webpack-cli/generators": "
|
|
30
|
-
"acorn": "8.
|
|
31
|
+
"@webpack-cli/generators": "3.0.7",
|
|
32
|
+
"acorn": "8.9.0",
|
|
31
33
|
"acorn-jsx": "5.3.2",
|
|
32
|
-
"babel-loader": "
|
|
34
|
+
"babel-loader": "9.1.2",
|
|
33
35
|
"clean-webpack-plugin": "4.0.0",
|
|
34
|
-
"copy-webpack-plugin": "
|
|
35
|
-
"css-loader": "6.
|
|
36
|
-
"eslint": "8.
|
|
37
|
-
"eslint-plugin-vue": "
|
|
38
|
-
"eslint-webpack-plugin": "
|
|
36
|
+
"copy-webpack-plugin": "11.0.0",
|
|
37
|
+
"css-loader": "6.8.1",
|
|
38
|
+
"eslint": "8.43.0",
|
|
39
|
+
"eslint-plugin-vue": "9.15.0",
|
|
40
|
+
"eslint-webpack-plugin": "4.0.1",
|
|
39
41
|
"file-loader": "6.2.0",
|
|
40
|
-
"html-webpack-plugin": "5.5.
|
|
41
|
-
"loader-utils": "3.2.
|
|
42
|
-
"node-sass": "
|
|
42
|
+
"html-webpack-plugin": "5.5.3",
|
|
43
|
+
"loader-utils": "3.2.1",
|
|
44
|
+
"node-sass": "8.0.0",
|
|
43
45
|
"null-loader": "4.0.1",
|
|
44
46
|
"pug": "3.0.2",
|
|
45
|
-
"regenerator-runtime": "0.13.
|
|
46
|
-
"sass-loader": "
|
|
47
|
-
"source-map-loader": "
|
|
48
|
-
"style-loader": "3.3.
|
|
49
|
-
"vue-eslint-parser": "
|
|
50
|
-
"vue-loader": "17.
|
|
51
|
-
"vue-pug-loader": "1.1.
|
|
52
|
-
"webpack": "5.
|
|
53
|
-
"webpack-cli": "
|
|
54
|
-
"webpack-dev-server": "4.
|
|
47
|
+
"regenerator-runtime": "0.13.11",
|
|
48
|
+
"sass-loader": "13.3.2",
|
|
49
|
+
"source-map-loader": "4.0.1",
|
|
50
|
+
"style-loader": "3.3.3",
|
|
51
|
+
"vue-eslint-parser": "9.3.1",
|
|
52
|
+
"vue-loader": "17.2.2",
|
|
53
|
+
"vue-pug-loader": "1.1.29",
|
|
54
|
+
"webpack": "5.87.0",
|
|
55
|
+
"webpack-cli": "5.1.4",
|
|
56
|
+
"webpack-dev-server": "4.15.1"
|
|
55
57
|
}
|
|
56
58
|
}
|
|
@@ -15,14 +15,15 @@ import PageButtonLoading from "./PageButtonLoading/PageButtonLoading.vue";
|
|
|
15
15
|
import PageButtonOutline from "./PageButtonOutline/PageButtonOutline.vue";
|
|
16
16
|
import PageButtonSafeHtml from "./PageButtonSafeHtml/PageButtonSafeHtml.vue";
|
|
17
17
|
import PageButtonSizes from "./PageButtonSizes/PageButtonSizes.vue";
|
|
18
|
+
import PageButtonSlotAppend from "./PageButtonSlotAppend/PageButtonSlotAppend.vue";
|
|
18
19
|
import PageButtonSlotDefault from "./PageButtonSlotDefault/PageButtonSlotDefault.vue";
|
|
20
|
+
import PageButtonSlotPrepend from "./PageButtonSlotPrepend/PageButtonSlotPrepend.vue";
|
|
21
|
+
import PageButtonSlotTitle from "./PageButtonSlotTitle/PageButtonSlotTitle.vue";
|
|
22
|
+
import PageButtonSwitch from "./PageButtonSwitch/PageButtonSwitch.vue";
|
|
19
23
|
import PageButtonTextAfterBefore from "./PageButtonTextAfterBefore/PageButtonTextAfterBefore.vue";
|
|
20
24
|
import PageButtonTextObject from "./PageButtonTextObject/PageButtonTextObject.vue";
|
|
21
25
|
import PageButtonTitleArray from "./PageButtonTitleArray/PageButtonTitleArray.vue";
|
|
22
26
|
import PageButtonTitleHtml from "./PageButtonTitleHtml/PageButtonTitleHtml.vue";
|
|
23
|
-
import PageButtonSlotPrepend from "./PageButtonSlotPrepend/PageButtonSlotPrepend.vue";
|
|
24
|
-
import PageButtonSlotAppend from "./PageButtonSlotAppend/PageButtonSlotAppend.vue";
|
|
25
|
-
import PageButtonSlotTitle from "./PageButtonSlotTitle/PageButtonSlotTitle.vue";
|
|
26
27
|
|
|
27
28
|
import ExposesAPI from "./compositionAPI/ExposesAPI";
|
|
28
29
|
import EventsAPI from "./compositionAPI/EventsAPI";
|
|
@@ -51,6 +52,7 @@ export default {
|
|
|
51
52
|
PageButtonSafeHtml,
|
|
52
53
|
PageButtonSizes,
|
|
53
54
|
PageButtonSlotDefault,
|
|
55
|
+
PageButtonSwitch,
|
|
54
56
|
PageButtonTextAfterBefore,
|
|
55
57
|
PageButtonTextObject,
|
|
56
58
|
PageButtonTitleArray,
|
|
@@ -16,6 +16,12 @@ aloha-example(
|
|
|
16
16
|
:aria-disabled="true"
|
|
17
17
|
@click="onAlert('secondary')"
|
|
18
18
|
)
|
|
19
|
+
a-button(
|
|
20
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
21
|
+
text="tertiary"
|
|
22
|
+
:aria-disabled="true"
|
|
23
|
+
@click="onAlert('tertiary')"
|
|
24
|
+
)
|
|
19
25
|
a-button(
|
|
20
26
|
class="a_btn a_btn_success a_ml_2"
|
|
21
27
|
text="success"
|
|
@@ -35,7 +41,7 @@ aloha-example(
|
|
|
35
41
|
@click="onAlert('warning')"
|
|
36
42
|
)
|
|
37
43
|
a-button(
|
|
38
|
-
class="a_btn
|
|
44
|
+
class="a_btn a_btn_danger a_ml_2"
|
|
39
45
|
text="danger"
|
|
40
46
|
:aria-disabled="true"
|
|
41
47
|
@click="onAlert('danger')"
|
|
@@ -47,11 +53,24 @@ aloha-example(
|
|
|
47
53
|
@click="onAlert('dark')"
|
|
48
54
|
)
|
|
49
55
|
a-button(
|
|
50
|
-
class="a_btn
|
|
56
|
+
class="a_btn a_btn_light a_ml_2"
|
|
51
57
|
text="light"
|
|
52
58
|
:aria-disabled="true"
|
|
53
59
|
@click="onAlert('light')"
|
|
54
60
|
)
|
|
61
|
+
a-button(
|
|
62
|
+
class="a_ml_2"
|
|
63
|
+
text="switch"
|
|
64
|
+
:is-switch="true"
|
|
65
|
+
:aria-disabled="true"
|
|
66
|
+
)
|
|
67
|
+
a-button(
|
|
68
|
+
class="a_ml_2"
|
|
69
|
+
text="switch active"
|
|
70
|
+
:is-switch="true"
|
|
71
|
+
:model-switch="true"
|
|
72
|
+
:aria-disabled="true"
|
|
73
|
+
)
|
|
55
74
|
a-button(
|
|
56
75
|
class="a_btn a_btn_outline_primary a_ml_2"
|
|
57
76
|
text="outline-primary"
|
|
@@ -64,6 +83,12 @@ aloha-example(
|
|
|
64
83
|
:aria-disabled="true"
|
|
65
84
|
@click="onAlert('outline-secondary')"
|
|
66
85
|
)
|
|
86
|
+
a-button(
|
|
87
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
88
|
+
text="outline-tertiary"
|
|
89
|
+
:aria-disabled="true"
|
|
90
|
+
@click="onAlert('outline-tertiary')"
|
|
91
|
+
)
|
|
67
92
|
a-button(
|
|
68
93
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
69
94
|
text="outline-success"
|
|
@@ -13,6 +13,13 @@ export default function HtmlAPI() {
|
|
|
13
13
|
@click="onAlert('secondary')"
|
|
14
14
|
>
|
|
15
15
|
</a-button>
|
|
16
|
+
<a-button
|
|
17
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
18
|
+
text="tertiary"
|
|
19
|
+
:aria-disabled="true"
|
|
20
|
+
@click="onAlert('tertiary')"
|
|
21
|
+
>
|
|
22
|
+
</a-button>
|
|
16
23
|
<a-button
|
|
17
24
|
class="a_btn a_btn_success a_ml_2"
|
|
18
25
|
text="success"
|
|
@@ -35,7 +42,7 @@ export default function HtmlAPI() {
|
|
|
35
42
|
>
|
|
36
43
|
</a-button>
|
|
37
44
|
<a-button
|
|
38
|
-
class="a_btn
|
|
45
|
+
class="a_btn a_btn_danger a_ml_2"
|
|
39
46
|
text="danger"
|
|
40
47
|
:aria-disabled="true"
|
|
41
48
|
@click="onAlert('danger')"
|
|
@@ -49,12 +56,24 @@ export default function HtmlAPI() {
|
|
|
49
56
|
>
|
|
50
57
|
</a-button>
|
|
51
58
|
<a-button
|
|
52
|
-
class="a_btn
|
|
59
|
+
class="a_btn a_btn_light a_ml_2"
|
|
53
60
|
text="light"
|
|
54
61
|
:aria-disabled="true"
|
|
55
62
|
@click="onAlert('light')"
|
|
56
|
-
>
|
|
57
|
-
|
|
63
|
+
></a-button>
|
|
64
|
+
<a-button
|
|
65
|
+
class="a_ml_2"
|
|
66
|
+
text="switch"
|
|
67
|
+
:is-switch="true"
|
|
68
|
+
:aria-disabled="true"
|
|
69
|
+
></a-button>
|
|
70
|
+
<a-button
|
|
71
|
+
class="a_ml_2"
|
|
72
|
+
text="switch active"
|
|
73
|
+
:is-switch="true"
|
|
74
|
+
:model-switch="true"
|
|
75
|
+
:aria-disabled="true"
|
|
76
|
+
></a-button>
|
|
58
77
|
<a-button
|
|
59
78
|
class="a_btn a_btn_outline_primary a_ml_2"
|
|
60
79
|
text="outline-primary"
|
|
@@ -69,6 +88,13 @@ export default function HtmlAPI() {
|
|
|
69
88
|
@click="onAlert('outline-secondary')"
|
|
70
89
|
>
|
|
71
90
|
</a-button>
|
|
91
|
+
<a-button
|
|
92
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
93
|
+
text="outline-tertiary"
|
|
94
|
+
:aria-disabled="true"
|
|
95
|
+
@click="onAlert('outline-tertiary')"
|
|
96
|
+
>
|
|
97
|
+
</a-button>
|
|
72
98
|
<a-button
|
|
73
99
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
74
100
|
text="outline-success"
|
|
@@ -4,50 +4,53 @@ aloha-example(
|
|
|
4
4
|
header="_A_BASIC_USAGE_"
|
|
5
5
|
description="_A_BUTTON_GROUP_BASIC_DESCRIPTION_"
|
|
6
6
|
)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
7
|
+
a-button(
|
|
8
|
+
class="a_btn a_btn_link"
|
|
9
|
+
text="link"
|
|
10
|
+
@click="onAlert('link')"
|
|
11
|
+
)
|
|
12
|
+
a-button(
|
|
13
|
+
class="a_btn a_btn_primary a_ml_2"
|
|
14
|
+
text="primary"
|
|
15
|
+
@click="onAlert('primary')"
|
|
16
|
+
)
|
|
17
|
+
a-button(
|
|
18
|
+
class="a_btn a_btn_secondary a_ml_2"
|
|
19
|
+
text="secondary"
|
|
20
|
+
@click="onAlert('secondary')"
|
|
21
|
+
)
|
|
22
|
+
a-button(
|
|
23
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
24
|
+
text="tertiary"
|
|
25
|
+
@click="onAlert('tertiary')"
|
|
26
|
+
)
|
|
27
|
+
a-button(
|
|
28
|
+
class="a_btn a_btn_success a_ml_2"
|
|
29
|
+
text="success"
|
|
30
|
+
@click="onAlert('success')"
|
|
31
|
+
)
|
|
32
|
+
a-button(
|
|
33
|
+
class="a_btn a_btn_info a_ml_2"
|
|
34
|
+
text="info"
|
|
35
|
+
@click="onAlert('info')"
|
|
36
|
+
)
|
|
37
|
+
a-button(
|
|
38
|
+
class="a_btn a_btn_warning a_ml_2"
|
|
39
|
+
text="warning"
|
|
40
|
+
@click="onAlert('warning')"
|
|
41
|
+
)
|
|
42
|
+
a-button(
|
|
43
|
+
class="a_btn a_btn_danger a_ml_2"
|
|
44
|
+
text="danger"
|
|
45
|
+
@click="onAlert('danger')"
|
|
46
|
+
)
|
|
47
|
+
a-button(
|
|
48
|
+
class="a_btn a_btn_dark a_ml_2"
|
|
49
|
+
text="dark"
|
|
50
|
+
@click="onAlert('dark')"
|
|
51
|
+
)
|
|
52
|
+
a-button(
|
|
53
|
+
class="a_btn a_btn_light a_ml_2"
|
|
54
|
+
text="light"
|
|
55
|
+
@click="onAlert('light')"
|
|
56
|
+
)
|
|
@@ -17,6 +17,12 @@ export default function HtmlAPI() {
|
|
|
17
17
|
@click="onAlert('secondary')"
|
|
18
18
|
>
|
|
19
19
|
</a-button>
|
|
20
|
+
<a-button
|
|
21
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
22
|
+
text="tertiary"
|
|
23
|
+
@click="onAlert('tertiary')"
|
|
24
|
+
>
|
|
25
|
+
</a-button>
|
|
20
26
|
<a-button
|
|
21
27
|
class="a_btn a_btn_success a_ml_2"
|
|
22
28
|
text="success"
|
|
@@ -16,6 +16,12 @@ aloha-example(
|
|
|
16
16
|
:disabled="true"
|
|
17
17
|
@click="onAlert('secondary')"
|
|
18
18
|
)
|
|
19
|
+
a-button(
|
|
20
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
21
|
+
text="tertiary"
|
|
22
|
+
:disabled="true"
|
|
23
|
+
@click="onAlert('tertiary')"
|
|
24
|
+
)
|
|
19
25
|
a-button(
|
|
20
26
|
class="a_btn a_btn_success a_ml_2"
|
|
21
27
|
text="success"
|
|
@@ -35,7 +41,7 @@ aloha-example(
|
|
|
35
41
|
@click="onAlert('warning')"
|
|
36
42
|
)
|
|
37
43
|
a-button(
|
|
38
|
-
class="a_btn
|
|
44
|
+
class="a_btn a_btn_danger a_ml_2"
|
|
39
45
|
text="danger"
|
|
40
46
|
:disabled="true"
|
|
41
47
|
@click="onAlert('danger')"
|
|
@@ -47,11 +53,24 @@ aloha-example(
|
|
|
47
53
|
@click="onAlert('dark')"
|
|
48
54
|
)
|
|
49
55
|
a-button(
|
|
50
|
-
class="a_btn
|
|
56
|
+
class="a_btn a_btn_light a_ml_2"
|
|
51
57
|
text="light"
|
|
52
58
|
:disabled="true"
|
|
53
59
|
@click="onAlert('light')"
|
|
54
60
|
)
|
|
61
|
+
a-button(
|
|
62
|
+
class="a_ml_2"
|
|
63
|
+
text="switch"
|
|
64
|
+
:is-switch="true"
|
|
65
|
+
:disabled="true"
|
|
66
|
+
)
|
|
67
|
+
a-button(
|
|
68
|
+
class="a_ml_2"
|
|
69
|
+
text="switch active"
|
|
70
|
+
:is-switch="true"
|
|
71
|
+
:model-switch="true"
|
|
72
|
+
:disabled="true"
|
|
73
|
+
)
|
|
55
74
|
a-button(
|
|
56
75
|
class="a_btn a_btn_outline_primary a_ml_2"
|
|
57
76
|
text="outline-primary"
|
|
@@ -64,6 +83,12 @@ aloha-example(
|
|
|
64
83
|
:disabled="true"
|
|
65
84
|
@click="onAlert('outline-secondary')"
|
|
66
85
|
)
|
|
86
|
+
a-button(
|
|
87
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
88
|
+
text="outline-tertiary"
|
|
89
|
+
:disabled="true"
|
|
90
|
+
@click="onAlert('outline-tertiary')"
|
|
91
|
+
)
|
|
67
92
|
a-button(
|
|
68
93
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
69
94
|
text="outline-success"
|
|
@@ -13,6 +13,13 @@ export default function HtmlAPI() {
|
|
|
13
13
|
@click="onAlert('secondary')"
|
|
14
14
|
>
|
|
15
15
|
</a-button>
|
|
16
|
+
<a-button
|
|
17
|
+
class="a_btn a_btn_tertiary a_ml_2"
|
|
18
|
+
text="tertiary"
|
|
19
|
+
:disabled="true"
|
|
20
|
+
@click="onAlert('tertiary')"
|
|
21
|
+
>
|
|
22
|
+
</a-button>
|
|
16
23
|
<a-button
|
|
17
24
|
class="a_btn a_btn_success a_ml_2"
|
|
18
25
|
text="success"
|
|
@@ -35,7 +42,7 @@ export default function HtmlAPI() {
|
|
|
35
42
|
>
|
|
36
43
|
</a-button>
|
|
37
44
|
<a-button
|
|
38
|
-
class="a_btn
|
|
45
|
+
class="a_btn a_btn_danger a_ml_2"
|
|
39
46
|
text="danger"
|
|
40
47
|
:disabled="true"
|
|
41
48
|
@click="onAlert('danger')"
|
|
@@ -49,12 +56,24 @@ export default function HtmlAPI() {
|
|
|
49
56
|
>
|
|
50
57
|
</a-button>
|
|
51
58
|
<a-button
|
|
52
|
-
class="a_btn
|
|
59
|
+
class="a_btn a_btn_light a_ml_2"
|
|
53
60
|
text="light"
|
|
54
61
|
:disabled="true"
|
|
55
62
|
@click="onAlert('light')"
|
|
56
|
-
>
|
|
57
|
-
|
|
63
|
+
></a-button>
|
|
64
|
+
<a-button
|
|
65
|
+
class="a_ml_2"
|
|
66
|
+
text="switch"
|
|
67
|
+
:is-switch="true"
|
|
68
|
+
:disabled="true"
|
|
69
|
+
></a-button>
|
|
70
|
+
<a-button
|
|
71
|
+
class="a_ml_2"
|
|
72
|
+
text="switch active"
|
|
73
|
+
:is-switch="true"
|
|
74
|
+
:model-switch="true"
|
|
75
|
+
:disabled="true"
|
|
76
|
+
></a-button>
|
|
58
77
|
<a-button
|
|
59
78
|
class="a_btn a_btn_outline_primary a_ml_2"
|
|
60
79
|
text="outline-primary"
|
|
@@ -69,6 +88,13 @@ export default function HtmlAPI() {
|
|
|
69
88
|
@click="onAlert('outline-secondary')"
|
|
70
89
|
>
|
|
71
90
|
</a-button>
|
|
91
|
+
<a-button
|
|
92
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
93
|
+
text="outline-tertiary"
|
|
94
|
+
:disabled="true"
|
|
95
|
+
@click="onAlert('outline-tertiary')"
|
|
96
|
+
>
|
|
97
|
+
</a-button>
|
|
72
98
|
<a-button
|
|
73
99
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
74
100
|
text="outline-success"
|
|
@@ -14,6 +14,11 @@ aloha-example(
|
|
|
14
14
|
text="outline-secondary"
|
|
15
15
|
@click="onAlert('outline-secondary')"
|
|
16
16
|
)
|
|
17
|
+
a-button(
|
|
18
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
19
|
+
text="outline-tertiary"
|
|
20
|
+
@click="onAlert('outline-tertiary')"
|
|
21
|
+
)
|
|
17
22
|
a-button(
|
|
18
23
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
19
24
|
text="outline-success"
|
|
@@ -11,6 +11,12 @@ export default function HtmlAPI() {
|
|
|
11
11
|
@click="onAlert('outline-secondary')"
|
|
12
12
|
>
|
|
13
13
|
</a-button>
|
|
14
|
+
<a-button
|
|
15
|
+
class="a_btn a_btn_outline_tertiary a_ml_2"
|
|
16
|
+
text="outline-tertiary"
|
|
17
|
+
@click="onAlert('outline-tertiary')"
|
|
18
|
+
>
|
|
19
|
+
</a-button>
|
|
14
20
|
<a-button
|
|
15
21
|
class="a_btn a_btn_outline_success a_ml_2"
|
|
16
22
|
text="outline-success"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ref,
|
|
3
|
+
} from "vue";
|
|
4
|
+
|
|
5
|
+
import AButton from "../../../../../src/AButton/AButton";
|
|
6
|
+
import AlohaExample from "../../../global/components/AlohaExample/AlohaExample.vue";
|
|
7
|
+
|
|
8
|
+
import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
9
|
+
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: "PageButtonSwitch",
|
|
13
|
+
components: {
|
|
14
|
+
AButton,
|
|
15
|
+
AlohaExample,
|
|
16
|
+
},
|
|
17
|
+
setup() {
|
|
18
|
+
const {
|
|
19
|
+
codeHtml,
|
|
20
|
+
} = HtmlAPI();
|
|
21
|
+
|
|
22
|
+
const {
|
|
23
|
+
codeJs,
|
|
24
|
+
} = JsAPI();
|
|
25
|
+
|
|
26
|
+
const modelSwitch = ref(false);
|
|
27
|
+
|
|
28
|
+
const toggleModelSwitch = () => {
|
|
29
|
+
modelSwitch.value = !modelSwitch.value;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
codeHtml,
|
|
34
|
+
codeJs,
|
|
35
|
+
modelSwitch,
|
|
36
|
+
toggleModelSwitch,
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_A_BUTTON_GROUP_SWITCH_HEADER_"
|
|
5
|
+
description="_A_BUTTON_GROUP_SWITCH_DESCRIPTION_"
|
|
6
|
+
)
|
|
7
|
+
a-button(
|
|
8
|
+
:is-switch="true"
|
|
9
|
+
:model-switch="modelSwitch"
|
|
10
|
+
text="(***)"
|
|
11
|
+
@click="toggleModelSwitch"
|
|
12
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import AButton from "aloha-vue/src/AButton/AButton";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageButtonSwitch",
|
|
10
|
+
components: {
|
|
11
|
+
AButton,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const modelSwitch = ref(false);
|
|
15
|
+
|
|
16
|
+
const toggleModelSwitch = () => {
|
|
17
|
+
modelSwitch.value = !modelSwitch.value;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
modelSwitch,
|
|
22
|
+
toggleModelSwitch,
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
};`;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
codeJs,
|
|
29
|
+
};
|
|
30
|
+
}
|