aloha-vue 1.2.15 → 1.2.17
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/views/Form/PageDatepickerRange/PageDatepickerRange.js +8 -14
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRange.pug +10 -16
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeBasic/PageDatepickerRangeBasic.pug +2 -2
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeIdWidthDisabled/PageDatepickerRangeIdWidthDisabled.js → PageDatepickerRangeCustomFirstDay/PageDatepickerRangeCustomFirstDay.js} +5 -4
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeCustomFirstDay/PageDatepickerRangeCustomFirstDay.pug +13 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeCustomFirstDay/PageDatepickerRangeCustomFirstDay.vue +2 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeModelInputIdPrefixIsError → PageDatepickerRangeCustomFirstDay}/compositionAPI/HtmlAPI.js +3 -4
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeCustomFirstDay/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeModelInputIdPrefixIsError/PageDatepickerRangeModelInputIdPrefixIsError.js → PageDatepickerRangeDisabledVariants/PageDatepickerRangeDisabledVariants.js} +5 -17
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeDisabledVariants/PageDatepickerRangeDisabledVariants.pug +19 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeDisabledVariants/PageDatepickerRangeDisabledVariants.vue +2 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeDisabledVariants/compositionAPI/HtmlAPI.js +18 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeDisabledVariants/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeEvents/PageDatepickerRangeEvents.js → PageDatepickerRangeFormatCustomization/PageDatepickerRangeFormatCustomization.js} +5 -17
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeFormatCustomization/PageDatepickerRangeFormatCustomization.pug +12 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeFormatCustomization/PageDatepickerRangeFormatCustomization.vue +2 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeIdWidthDisabled → PageDatepickerRangeFormatCustomization}/compositionAPI/HtmlAPI.js +3 -4
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeFormatCustomization/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeOptionsErrorsHtmlId/PageDatepickerRangeOptionsErrorsHtmlId.js → PageDatepickerRangeHelpText/PageDatepickerRangeHelpText.js} +5 -19
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeHelpText/PageDatepickerRangeHelpText.pug +12 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeHelpText/PageDatepickerRangeHelpText.vue +2 -0
- package/docs/src/views/Form/PageDatepickerRange/{PageDatepickerRangeEvents → PageDatepickerRangeHelpText}/compositionAPI/HtmlAPI.js +3 -4
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeHelpText/compositionAPI/JsAPI.js +25 -0
- package/docs/src/views/Form/PageDatepickerRange/compositionAPI/PropsAPI.js +257 -12
- package/docs/src/views/Form/PageDatepickerRange/i18n/ar.json +55 -22
- package/docs/src/views/Form/PageDatepickerRange/i18n/de.json +54 -21
- package/docs/src/views/Form/PageDatepickerRange/i18n/en.json +51 -18
- package/docs/src/views/Form/PageDatepickerRange/i18n/es.json +53 -20
- package/docs/src/views/Form/PageDatepickerRange/i18n/fr.json +54 -21
- package/docs/src/views/Form/PageDatepickerRange/i18n/hr.json +50 -17
- package/docs/src/views/Form/PageDatepickerRange/i18n/it.json +55 -22
- package/docs/src/views/Form/PageDatepickerRange/i18n/ru.json +50 -17
- package/docs/src/views/PageDropdown/i18n/ar.json +28 -1
- package/docs/src/views/PageDropdown/i18n/en.json +29 -2
- package/docs/src/views/PageDropdown/i18n/es.json +29 -2
- package/docs/src/views/PageDropdown/i18n/fr.json +29 -2
- package/docs/src/views/PageDropdown/i18n/it.json +29 -2
- package/docs/src/views/PageFilters/PageFiltersDefaultHide/PageFiltersDefaultHide.js +5 -0
- package/package.json +1 -1
- package/src/AButton/comositionAPI/HtmlTitleAPI.js +0 -32
- package/src/AFilters/AFilterCenter/AFilterCenterItem/AFilterCenterItem.js +15 -7
- package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/CloseFilterValueAPI.js +3 -2
- package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/GoToAPI.js +6 -3
- package/src/AFilters/AFilterCenter/AFilterCenterItem/compositionAPI/ModelValuesAPI.js +46 -1
- package/src/AFilters/AFilters/compositionAPI/CloseFilterAPI.js +12 -1
- package/src/styles/components/ATable.scss +3 -0
- package/src/styles/components/ui/ADatepickerRange.scss +5 -1
- package/src/ui/ADatepickerRange/ADatepickerRange.js +1 -0
- package/src/ui/AInputNumberRange/AInputNumberRange.js +2 -2
- package/src/ui/const/AUiTypesModelObject.js +7 -0
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeEvents/PageDatepickerRangeEvents.pug +0 -13
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeEvents/PageDatepickerRangeEvents.vue +0 -2
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeEvents/compositionAPI/JsAPI.js +0 -45
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeIdWidthDisabled/PageDatepickerRangeIdWidthDisabled.pug +0 -12
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeIdWidthDisabled/PageDatepickerRangeIdWidthDisabled.vue +0 -2
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeIdWidthDisabled/compositionAPI/JsAPI.js +0 -32
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeModelInputIdPrefixIsError/PageDatepickerRangeModelInputIdPrefixIsError.pug +0 -13
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeModelInputIdPrefixIsError/PageDatepickerRangeModelInputIdPrefixIsError.vue +0 -2
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeModelInputIdPrefixIsError/compositionAPI/JsAPI.js +0 -43
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeOptionsErrorsHtmlId/PageDatepickerRangeOptionsErrorsHtmlId.pug +0 -14
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeOptionsErrorsHtmlId/PageDatepickerRangeOptionsErrorsHtmlId.vue +0 -2
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeOptionsErrorsHtmlId/compositionAPI/HtmlAPI.js +0 -13
- package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeOptionsErrorsHtmlId/compositionAPI/JsAPI.js +0 -48
- package/docs/src/views/Form/PageDatepickerRange/compositionAPI/EventsAPI.js +0 -23
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import AlohaPage from "../../../global/components/AlohaPage/AlohaPage.vue";
|
|
2
2
|
import AlohaTableProps from "../../../global/components/AlohaTableProps/AlohaTableProps.vue";
|
|
3
3
|
import ATranslation from "../../../../../src/ATranslation/ATranslation";
|
|
4
|
-
import PageDatepickerRangeIdWidthDisabled from "./PageDatepickerRangeIdWidthDisabled/PageDatepickerRangeIdWidthDisabled.vue";
|
|
5
4
|
import PageDatepickerRangeBasic from "./PageDatepickerRangeBasic/PageDatepickerRangeBasic.vue";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import PageDatepickerRangeCustomFirstDay from "./PageDatepickerRangeCustomFirstDay/PageDatepickerRangeCustomFirstDay.vue";
|
|
6
|
+
import PageDatepickerRangeDisabledVariants from "./PageDatepickerRangeDisabledVariants/PageDatepickerRangeDisabledVariants.vue";
|
|
7
|
+
import PageDatepickerRangeFormatCustomization from "./PageDatepickerRangeFormatCustomization/PageDatepickerRangeFormatCustomization.vue";
|
|
8
|
+
import PageDatepickerRangeHelpText from "./PageDatepickerRangeHelpText/PageDatepickerRangeHelpText.vue";
|
|
9
9
|
|
|
10
|
-
import EventsAPI from "./compositionAPI/EventsAPI";
|
|
11
10
|
import PropsAPI from "./compositionAPI/PropsAPI";
|
|
12
11
|
|
|
13
12
|
export default {
|
|
@@ -16,23 +15,18 @@ export default {
|
|
|
16
15
|
AlohaPage,
|
|
17
16
|
AlohaTableProps,
|
|
18
17
|
ATranslation,
|
|
19
|
-
PageDatepickerRangeIdWidthDisabled,
|
|
20
18
|
PageDatepickerRangeBasic,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
PageDatepickerRangeCustomFirstDay,
|
|
20
|
+
PageDatepickerRangeDisabledVariants,
|
|
21
|
+
PageDatepickerRangeFormatCustomization,
|
|
22
|
+
PageDatepickerRangeHelpText,
|
|
24
23
|
},
|
|
25
24
|
setup() {
|
|
26
25
|
const {
|
|
27
26
|
dataProps,
|
|
28
27
|
} = PropsAPI();
|
|
29
28
|
|
|
30
|
-
const {
|
|
31
|
-
dataEvents,
|
|
32
|
-
} = EventsAPI();
|
|
33
|
-
|
|
34
29
|
return {
|
|
35
|
-
dataEvents,
|
|
36
30
|
dataProps,
|
|
37
31
|
};
|
|
38
32
|
},
|
|
@@ -11,20 +11,14 @@ aloha-page(
|
|
|
11
11
|
|
|
12
12
|
page-datepicker-range-basic
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
//
|
|
16
|
-
//page-datepicker-range-model-input-id-prefix-is-error
|
|
17
|
-
//
|
|
18
|
-
//page-datepicker-range-events
|
|
19
|
-
//
|
|
20
|
-
//page-datepicker-range-options-errors-html-id
|
|
14
|
+
page-datepicker-range-custom-first-day
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
16
|
+
page-datepicker-range-disabled-variants
|
|
17
|
+
|
|
18
|
+
page-datepicker-range-format-customization
|
|
19
|
+
|
|
20
|
+
page-datepicker-range-help-text
|
|
21
|
+
|
|
22
|
+
aloha-table-props(
|
|
23
|
+
:data="dataProps"
|
|
24
|
+
)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
aloha-example(
|
|
2
2
|
:code-html="codeHtml"
|
|
3
3
|
:code-js="codeJs"
|
|
4
|
-
header="
|
|
5
|
-
description="
|
|
4
|
+
header="_PAGE_DATEPICKER_RANGE_BASIC_HEADER_"
|
|
5
|
+
description="_PAGE_DATEPICKER_RANGE_BASIC_DESCRIPTION_"
|
|
6
6
|
:props="['v-model', 'label']"
|
|
7
7
|
)
|
|
8
8
|
a-datepicker-range(
|
|
@@ -9,25 +9,26 @@ import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
|
9
9
|
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
|
-
name: "
|
|
12
|
+
name: "PageDatepickerRangeCustomFirstDay",
|
|
13
13
|
components: {
|
|
14
14
|
ADatepickerRange,
|
|
15
15
|
AlohaExample,
|
|
16
16
|
},
|
|
17
17
|
setup() {
|
|
18
|
-
const isDisabled = ref(true);
|
|
19
|
-
|
|
20
18
|
const {
|
|
21
19
|
codeHtml,
|
|
22
20
|
} = HtmlAPI();
|
|
21
|
+
|
|
23
22
|
const {
|
|
24
23
|
codeJs,
|
|
25
24
|
} = JsAPI();
|
|
26
25
|
|
|
26
|
+
const model = ref(undefined);
|
|
27
|
+
|
|
27
28
|
return {
|
|
28
|
-
isDisabled,
|
|
29
29
|
codeHtml,
|
|
30
30
|
codeJs,
|
|
31
|
+
model,
|
|
31
32
|
};
|
|
32
33
|
},
|
|
33
34
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_PAGE_DATEPICKER_RANGE_CUSTOM_FIRST_DAY_HEADER_"
|
|
5
|
+
description="_PAGE_DATEPICKER_RANGE_CUSTOM_FIRST_DAY_DESCRIPTION_"
|
|
6
|
+
:props="['v-model', 'label', 'firstDayOfWeek']"
|
|
7
|
+
)
|
|
8
|
+
a-datepicker-range(
|
|
9
|
+
v-model="model"
|
|
10
|
+
label="_PAGE_DATEPICKER_RANGE_CUSTOM_FIRST_DAY_EXAMPLE_"
|
|
11
|
+
:first-day-of-week=4
|
|
12
|
+
)
|
|
13
|
+
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export default function HtmlAPI() {
|
|
2
2
|
const codeHtml = `<a-datepicker-range
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@input="updateDateRange">
|
|
3
|
+
v-model="model"
|
|
4
|
+
label="_PAGE_DATEPICKER_RANGE_CUSTOM_FIRST_DAY_EXAMPLE_"
|
|
5
|
+
first-day-of-week=4
|
|
7
6
|
</a-datepicker-range>`;
|
|
8
7
|
|
|
9
8
|
return {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import ADatepickerRange from "aloha-vue/ui/ADatepickerRange/ADatepickerRange";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageDatepickerRangeCustomFirstDay",
|
|
10
|
+
components: {
|
|
11
|
+
ADatepickerRange,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const model = ref(undefined);
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
model,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};`;
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
codeJs,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -9,38 +9,26 @@ import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
|
9
9
|
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
|
-
name: "
|
|
12
|
+
name: "PageDatepickerRangeDisabledVariants",
|
|
13
13
|
components: {
|
|
14
14
|
ADatepickerRange,
|
|
15
15
|
AlohaExample,
|
|
16
16
|
},
|
|
17
17
|
setup() {
|
|
18
|
-
const dateRangeModel = ref({
|
|
19
|
-
date_after: null,
|
|
20
|
-
date_before: null,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const idPrefix = ref("datepicker-prefix-");
|
|
24
|
-
const isError = ref(false);
|
|
25
|
-
|
|
26
|
-
const updateDateRange = newRange => {
|
|
27
|
-
dateRangeModel.value = newRange.model;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
18
|
const {
|
|
31
19
|
codeHtml,
|
|
32
20
|
} = HtmlAPI();
|
|
21
|
+
|
|
33
22
|
const {
|
|
34
23
|
codeJs,
|
|
35
24
|
} = JsAPI();
|
|
36
25
|
|
|
26
|
+
const model = ref(undefined);
|
|
27
|
+
|
|
37
28
|
return {
|
|
38
|
-
dateRangeModel,
|
|
39
|
-
updateDateRange,
|
|
40
|
-
idPrefix,
|
|
41
|
-
isError,
|
|
42
29
|
codeHtml,
|
|
43
30
|
codeJs,
|
|
31
|
+
model,
|
|
44
32
|
};
|
|
45
33
|
},
|
|
46
34
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_PAGE_DATEPICKER_RANGE_DISABLED_VARIANTS_HEADER_"
|
|
5
|
+
description="_PAGE_DATEPICKER_RANGE_DISABLED_VARIANTS_DESCRIPTION_"
|
|
6
|
+
:props="['v-model', 'disabled', 'disabledFrom', 'disabledUntil']"
|
|
7
|
+
)
|
|
8
|
+
a-datepicker-range(
|
|
9
|
+
v-model="model"
|
|
10
|
+
:disabled="true"
|
|
11
|
+
)
|
|
12
|
+
a-datepicker-range(
|
|
13
|
+
v-model="model"
|
|
14
|
+
:disabled-from="true"
|
|
15
|
+
)
|
|
16
|
+
a-datepicker-range(
|
|
17
|
+
v-model="model"
|
|
18
|
+
:disabled-until="true"
|
|
19
|
+
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default function HtmlAPI() {
|
|
2
|
+
const codeHtml = `<a-datepicker-range
|
|
3
|
+
v-model="model"
|
|
4
|
+
:disabled="true">
|
|
5
|
+
</a-datepicker-range>
|
|
6
|
+
<a-datepicker-range
|
|
7
|
+
v-model="model"
|
|
8
|
+
:disabled-from="true">
|
|
9
|
+
</a-datepicker-range>
|
|
10
|
+
<a-datepicker-range
|
|
11
|
+
v-model="model"
|
|
12
|
+
:disabled-until="true">
|
|
13
|
+
</a-datepicker-range>`;
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
codeHtml,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import ADatepickerRange from "aloha-vue/ui/ADatepickerRange/ADatepickerRange";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageDatepickerRangeDisabledVariants",
|
|
10
|
+
components: {
|
|
11
|
+
ADatepickerRange,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const model = ref(undefined);
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
model,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};`;
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
codeJs,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -9,38 +9,26 @@ import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
|
9
9
|
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
|
-
name: "
|
|
12
|
+
name: "PageDatepickerRangeFormatCustomization",
|
|
13
13
|
components: {
|
|
14
14
|
ADatepickerRange,
|
|
15
15
|
AlohaExample,
|
|
16
16
|
},
|
|
17
17
|
setup() {
|
|
18
|
-
const dateRangeModel = ref({
|
|
19
|
-
date_after: null,
|
|
20
|
-
date_before: null,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const handleFocus = () => console.log("Focused!");
|
|
24
|
-
const handleChange = () => console.log("Changed!");
|
|
25
|
-
|
|
26
|
-
const updateDateRange = newRange => {
|
|
27
|
-
dateRangeModel.value = newRange.model;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
18
|
const {
|
|
31
19
|
codeHtml,
|
|
32
20
|
} = HtmlAPI();
|
|
21
|
+
|
|
33
22
|
const {
|
|
34
23
|
codeJs,
|
|
35
24
|
} = JsAPI();
|
|
36
25
|
|
|
26
|
+
const model = ref(undefined);
|
|
27
|
+
|
|
37
28
|
return {
|
|
38
|
-
handleFocus,
|
|
39
|
-
updateDateRange,
|
|
40
|
-
handleChange,
|
|
41
|
-
dateRangeModel,
|
|
42
29
|
codeHtml,
|
|
43
30
|
codeJs,
|
|
31
|
+
model,
|
|
44
32
|
};
|
|
45
33
|
},
|
|
46
34
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_PAGE_DATEPICKER_RANGE_FORMAT_CUSTOMIZATION_HEADER_"
|
|
5
|
+
description="_PAGE_DATEPICKER_RANGE_FORMAT_CUSTOMIZATION_DESCRIPTION_"
|
|
6
|
+
:props="['v-model', 'format', 'formatSave']"
|
|
7
|
+
)
|
|
8
|
+
a-datepicker-range(
|
|
9
|
+
v-model="model"
|
|
10
|
+
format="DD.MM.YY"
|
|
11
|
+
format-save="YY-MM-DD"
|
|
12
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import ADatepickerRange from "aloha-vue/ui/ADatepickerRange/ADatepickerRange";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageDatepickerRangeBasic",
|
|
10
|
+
components: {
|
|
11
|
+
ADatepickerRange,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const model = ref(undefined);
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
model,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};`;
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
codeJs,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -9,40 +9,26 @@ import HtmlAPI from "./compositionAPI/HtmlAPI";
|
|
|
9
9
|
import JsAPI from "./compositionAPI/JsAPI";
|
|
10
10
|
|
|
11
11
|
export default {
|
|
12
|
-
name: "
|
|
12
|
+
name: "PageDatepickerRangeHelpText",
|
|
13
13
|
components: {
|
|
14
14
|
ADatepickerRange,
|
|
15
15
|
AlohaExample,
|
|
16
16
|
},
|
|
17
17
|
setup() {
|
|
18
|
-
const dateRangeModel = ref({
|
|
19
|
-
date_after: null,
|
|
20
|
-
date_before: null,
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
const options = ref({
|
|
24
|
-
format: "DD.MM.YY",
|
|
25
|
-
});
|
|
26
|
-
const errors = ref(["Start date is required", "End date is invalid"]);
|
|
27
|
-
|
|
28
|
-
const updateDateRange = newRange => {
|
|
29
|
-
dateRangeModel.value = newRange.model;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
18
|
const {
|
|
33
19
|
codeHtml,
|
|
34
20
|
} = HtmlAPI();
|
|
21
|
+
|
|
35
22
|
const {
|
|
36
23
|
codeJs,
|
|
37
24
|
} = JsAPI();
|
|
38
25
|
|
|
26
|
+
const model = ref(undefined);
|
|
27
|
+
|
|
39
28
|
return {
|
|
40
|
-
options,
|
|
41
|
-
dateRangeModel,
|
|
42
|
-
updateDateRange,
|
|
43
|
-
errors,
|
|
44
29
|
codeHtml,
|
|
45
30
|
codeJs,
|
|
31
|
+
model,
|
|
46
32
|
};
|
|
47
33
|
},
|
|
48
34
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
aloha-example(
|
|
2
|
+
:code-html="codeHtml"
|
|
3
|
+
:code-js="codeJs"
|
|
4
|
+
header="_PAGE_DATEPICKER_RANGE_HELP_TEXT_HEADER_"
|
|
5
|
+
description="_PAGE_DATEPICKER_RANGE_HELP_TEXT_DESCRIPTION_"
|
|
6
|
+
:props="['v-model', 'label', 'helpText']"
|
|
7
|
+
)
|
|
8
|
+
a-datepicker-range(
|
|
9
|
+
v-model="model"
|
|
10
|
+
label="Aloha"
|
|
11
|
+
help-text="Aloha helpText"
|
|
12
|
+
)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export default function HtmlAPI() {
|
|
2
2
|
const codeHtml = `<a-datepicker-range
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@change="handleChange">
|
|
3
|
+
v-model="model"
|
|
4
|
+
label="Aloha"
|
|
5
|
+
help-text="Aloha helpText"
|
|
7
6
|
</a-datepicker-range>`;
|
|
8
7
|
|
|
9
8
|
return {
|
package/docs/src/views/Form/PageDatepickerRange/PageDatepickerRangeHelpText/compositionAPI/JsAPI.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default function JsAPI() {
|
|
2
|
+
const codeJs = `import {
|
|
3
|
+
ref,
|
|
4
|
+
} from "vue";
|
|
5
|
+
|
|
6
|
+
import ADatepickerRange from "aloha-vue/ui/ADatepickerRange/ADatepickerRange";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
name: "PageDatepickerRangeHelpText",
|
|
10
|
+
components: {
|
|
11
|
+
ADatepickerRange,
|
|
12
|
+
},
|
|
13
|
+
setup() {
|
|
14
|
+
const model = ref(undefined);
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
model,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
};`;
|
|
21
|
+
|
|
22
|
+
return {
|
|
23
|
+
codeJs,
|
|
24
|
+
};
|
|
25
|
+
}
|