cja-phoenix 1.2.58 → 1.2.60
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/dist/module.json +1 -1
- package/dist/runtime/assets/scss/variables/_colors.scss +2 -2
- package/dist/runtime/components/form/CheckboxInput.d.vue.ts +7 -7
- package/dist/runtime/components/form/CheckboxInput.vue +3 -6
- package/dist/runtime/components/form/CheckboxInput.vue.d.ts +7 -7
- package/dist/runtime/components/form/CheckboxInputList.d.vue.ts +8 -9
- package/dist/runtime/components/form/CheckboxInputList.vue +2 -5
- package/dist/runtime/components/form/CheckboxInputList.vue.d.ts +8 -9
- package/dist/runtime/components/form/CurrencyInput.d.vue.ts +8 -9
- package/dist/runtime/components/form/CurrencyInput.vue +2 -2
- package/dist/runtime/components/form/CurrencyInput.vue.d.ts +8 -9
- package/dist/runtime/components/form/DateInput.d.vue.ts +0 -1
- package/dist/runtime/components/form/DateInput.vue +1 -1
- package/dist/runtime/components/form/DateInput.vue.d.ts +0 -1
- package/dist/runtime/components/form/FileInput.d.vue.ts +2 -1
- package/dist/runtime/components/form/FileInput.vue +7 -2
- package/dist/runtime/components/form/FileInput.vue.d.ts +2 -1
- package/dist/runtime/components/form/NumberInput.d.vue.ts +6 -7
- package/dist/runtime/components/form/NumberInput.vue +3 -6
- package/dist/runtime/components/form/NumberInput.vue.d.ts +6 -7
- package/dist/runtime/components/form/PhoneInput.d.vue.ts +0 -1
- package/dist/runtime/components/form/PhoneInput.vue +1 -1
- package/dist/runtime/components/form/PhoneInput.vue.d.ts +0 -1
- package/dist/runtime/components/form/RadioInputList.d.vue.ts +0 -1
- package/dist/runtime/components/form/RadioInputList.vue +1 -1
- package/dist/runtime/components/form/RadioInputList.vue.d.ts +0 -1
- package/dist/runtime/components/form/SelectInput.d.vue.ts +0 -1
- package/dist/runtime/components/form/SelectInput.vue +1 -1
- package/dist/runtime/components/form/SelectInput.vue.d.ts +0 -1
- package/dist/runtime/components/form/SliderInput.d.vue.ts +0 -1
- package/dist/runtime/components/form/SliderInput.vue +15 -10
- package/dist/runtime/components/form/SliderInput.vue.d.ts +0 -1
- package/dist/runtime/components/form/TextInput.d.vue.ts +14 -15
- package/dist/runtime/components/form/TextInput.vue +8 -3
- package/dist/runtime/components/form/TextInput.vue.d.ts +14 -15
- package/dist/runtime/components/form/TextareaInput.d.vue.ts +9 -10
- package/dist/runtime/components/form/TextareaInput.vue +1 -1
- package/dist/runtime/components/form/TextareaInput.vue.d.ts +9 -10
- package/dist/runtime/components/form/structure/Container.d.vue.ts +4 -2
- package/dist/runtime/components/form/structure/Container.vue +2 -5
- package/dist/runtime/components/form/structure/Container.vue.d.ts +4 -2
- package/dist/runtime/utils/uploadFileCjbo.d.ts +5 -0
- package/dist/runtime/utils/uploadFileCjbo.js +13 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -55,7 +55,7 @@ $gradient-in: linear-gradient(75deg, #f6f4ff, $white);
|
|
|
55
55
|
$gradient-en: linear-gradient(75deg, #fffbef, $white);
|
|
56
56
|
$gradient-bb: linear-gradient(75deg, #fff7f1, $white);
|
|
57
57
|
$gradient-cc: linear-gradient(75deg, #fff4ff, $white);
|
|
58
|
-
$gradient-
|
|
58
|
+
$gradient-td: linear-gradient(75deg, #e8f1f1, $white);
|
|
59
59
|
$gradient-cja-1: linear-gradient(90deg, $bright-green 2.5%, $main-blue 100%);
|
|
60
60
|
|
|
61
61
|
$colors: (
|
|
@@ -97,5 +97,5 @@ $gradients: (
|
|
|
97
97
|
"en": $gradient-en,
|
|
98
98
|
"bb": $gradient-bb,
|
|
99
99
|
"cc": $gradient-cc,
|
|
100
|
-
"
|
|
100
|
+
"td": $gradient-td,
|
|
101
101
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
label?: string;
|
|
5
|
-
value?: InputHTMLAttributes[
|
|
6
|
-
disabled?: InputHTMLAttributes[
|
|
7
|
-
name?: InputHTMLAttributes[
|
|
8
|
-
size?:
|
|
5
|
+
value?: InputHTMLAttributes["value"];
|
|
6
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
7
|
+
name?: InputHTMLAttributes["name"];
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
9
|
error?: boolean;
|
|
10
10
|
errorDisplay?: boolean;
|
|
11
11
|
validation?: Schema | Lazy<any>;
|
|
12
|
-
validationMode?:
|
|
12
|
+
validationMode?: "change" | "none";
|
|
13
13
|
};
|
|
14
14
|
type __VLS_ModelProps = {
|
|
15
15
|
modelValue: boolean | string | string[] | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FormStructureContainer
|
|
2
|
+
<FormStructureContainer>
|
|
3
3
|
<label
|
|
4
4
|
class="input-wrapper"
|
|
5
5
|
:class="[
|
|
@@ -15,12 +15,9 @@
|
|
|
15
15
|
type="checkbox"
|
|
16
16
|
v-bind="{ value, disabled, name }"
|
|
17
17
|
:aria-label="label"
|
|
18
|
-
|
|
18
|
+
/>
|
|
19
19
|
<div class="checkbox-icon m-cgg-icon--check" />
|
|
20
|
-
<div
|
|
21
|
-
v-if="label || $slots.default"
|
|
22
|
-
class="text-container"
|
|
23
|
-
>
|
|
20
|
+
<div v-if="label || $slots.default" class="text-container">
|
|
24
21
|
<slot v-if="$slots.default" />
|
|
25
22
|
<Scaffold v-else>
|
|
26
23
|
{{ label }}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
label?: string;
|
|
5
|
-
value?: InputHTMLAttributes[
|
|
6
|
-
disabled?: InputHTMLAttributes[
|
|
7
|
-
name?: InputHTMLAttributes[
|
|
8
|
-
size?:
|
|
5
|
+
value?: InputHTMLAttributes["value"];
|
|
6
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
7
|
+
name?: InputHTMLAttributes["name"];
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
9
|
error?: boolean;
|
|
10
10
|
errorDisplay?: boolean;
|
|
11
11
|
validation?: Schema | Lazy<any>;
|
|
12
|
-
validationMode?:
|
|
12
|
+
validationMode?: "change" | "none";
|
|
13
13
|
};
|
|
14
14
|
type __VLS_ModelProps = {
|
|
15
15
|
modelValue: boolean | string | string[] | undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { CheckboxOption } from
|
|
3
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { CheckboxOption } from "../../types/Form.js";
|
|
3
|
+
import type { Lazy, Schema } from "yup";
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
title?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
layout?:
|
|
8
|
-
listLayout?:
|
|
9
|
-
size?:
|
|
7
|
+
layout?: "vertical" | "horizontal";
|
|
8
|
+
listLayout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
disabled?: InputHTMLAttributes[
|
|
13
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
14
14
|
options: CheckboxOption[] | undefined;
|
|
15
15
|
name: string;
|
|
16
16
|
};
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
listLayout: "vertical" | "horizontal";
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
]"
|
|
16
16
|
>
|
|
17
|
-
<li
|
|
18
|
-
v-for="option in options"
|
|
19
|
-
:key="option.value"
|
|
20
|
-
>
|
|
17
|
+
<li v-for="option in options" :key="option.value">
|
|
21
18
|
<FormCheckboxInput
|
|
22
19
|
v-bind="{
|
|
23
20
|
...option,
|
|
@@ -43,7 +40,7 @@ import { useField } from "vee-validate";
|
|
|
43
40
|
const props = defineProps({
|
|
44
41
|
title: { type: String, required: false },
|
|
45
42
|
tooltip: { type: String, required: false },
|
|
46
|
-
layout: { type: String, required: false
|
|
43
|
+
layout: { type: String, required: false },
|
|
47
44
|
listLayout: { type: String, required: false, default: "vertical" },
|
|
48
45
|
size: { type: String, required: false, default: "md" },
|
|
49
46
|
validation: { type: Object, required: false },
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { CheckboxOption } from
|
|
3
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { CheckboxOption } from "../../types/Form.js";
|
|
3
|
+
import type { Lazy, Schema } from "yup";
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
title?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
layout?:
|
|
8
|
-
listLayout?:
|
|
9
|
-
size?:
|
|
7
|
+
layout?: "vertical" | "horizontal";
|
|
8
|
+
listLayout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
disabled?: InputHTMLAttributes[
|
|
13
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
14
14
|
options: CheckboxOption[] | undefined;
|
|
15
15
|
name: string;
|
|
16
16
|
};
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
listLayout: "vertical" | "horizontal";
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import { type InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
placeholder?: InputHTMLAttributes[
|
|
8
|
-
layout?:
|
|
9
|
-
size?:
|
|
7
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
8
|
+
layout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "blur" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
id?: InputHTMLAttributes[
|
|
14
|
-
disabled?: InputHTMLAttributes[
|
|
13
|
+
id?: InputHTMLAttributes["id"];
|
|
14
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
15
15
|
currency?: string;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_ModelProps = {
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "blur" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
currency: string;
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
inputmode="decimal"
|
|
21
21
|
:aria-label="label || title"
|
|
22
22
|
@blur="handleBlur($event, validationMode == 'blur')"
|
|
23
|
-
|
|
23
|
+
/>
|
|
24
24
|
|
|
25
25
|
<span class="input-currency">
|
|
26
26
|
{{ currency }}
|
|
@@ -46,7 +46,7 @@ const props = defineProps({
|
|
|
46
46
|
label: { type: String, required: false },
|
|
47
47
|
tooltip: { type: String, required: false },
|
|
48
48
|
placeholder: { type: null, required: false },
|
|
49
|
-
layout: { type: String, required: false
|
|
49
|
+
layout: { type: String, required: false },
|
|
50
50
|
size: { type: String, required: false, default: "md" },
|
|
51
51
|
validation: { type: Object, required: false },
|
|
52
52
|
validationMode: { type: String, required: false, default: "change" },
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import { type InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
placeholder?: InputHTMLAttributes[
|
|
8
|
-
layout?:
|
|
9
|
-
size?:
|
|
7
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
8
|
+
layout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "blur" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
id?: InputHTMLAttributes[
|
|
14
|
-
disabled?: InputHTMLAttributes[
|
|
13
|
+
id?: InputHTMLAttributes["id"];
|
|
14
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
15
15
|
currency?: string;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_ModelProps = {
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "blur" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
currency: string;
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,7 +35,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
35
35
|
size: "sm" | "md" | "lg";
|
|
36
36
|
errorDisplay: boolean;
|
|
37
37
|
validationMode: "change" | "blur" | "none";
|
|
38
|
-
layout: "vertical" | "horizontal";
|
|
39
38
|
dateFormat: DateFormat;
|
|
40
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -69,7 +69,7 @@ const props = defineProps({
|
|
|
69
69
|
label: { type: String, required: false },
|
|
70
70
|
tooltip: { type: String, required: false },
|
|
71
71
|
placeholder: { type: null, required: false },
|
|
72
|
-
layout: { type: String, required: false
|
|
72
|
+
layout: { type: String, required: false },
|
|
73
73
|
size: { type: String, required: false, default: "md" },
|
|
74
74
|
validation: { type: Object, required: false },
|
|
75
75
|
validationMode: { type: String, required: false, default: "blur" },
|
|
@@ -35,7 +35,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
35
35
|
size: "sm" | "md" | "lg";
|
|
36
36
|
errorDisplay: boolean;
|
|
37
37
|
validationMode: "change" | "blur" | "none";
|
|
38
|
-
layout: "vertical" | "horizontal";
|
|
39
38
|
dateFormat: DateFormat;
|
|
40
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
40
|
declare const _default: typeof __VLS_export;
|
|
@@ -31,15 +31,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
31
31
|
inputElement: Ref<any, any>;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
33
|
"update:delete": (...args: any[]) => void;
|
|
34
|
+
"update:change": (...args: any[]) => void;
|
|
34
35
|
"update:modelValue": (value: any) => void;
|
|
35
36
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
37
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
37
38
|
"onUpdate:delete"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:change"?: ((...args: any[]) => any) | undefined;
|
|
38
40
|
}>, {
|
|
39
41
|
size: "sm" | "md" | "lg";
|
|
40
42
|
errorDisplay: boolean;
|
|
41
43
|
validationMode: "change" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
44
|
placeholder: string;
|
|
44
45
|
variant: "white" | "blue";
|
|
45
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -64,7 +64,7 @@ import { ref } from "vue";
|
|
|
64
64
|
import { useField } from "vee-validate";
|
|
65
65
|
const props = defineProps({
|
|
66
66
|
id: { type: null, required: false },
|
|
67
|
-
layout: { type: String, required: false
|
|
67
|
+
layout: { type: String, required: false },
|
|
68
68
|
size: { type: String, required: false, default: "md" },
|
|
69
69
|
title: { type: String, required: false },
|
|
70
70
|
label: { type: String, required: false },
|
|
@@ -100,13 +100,18 @@ const updateFile = () => {
|
|
|
100
100
|
extension: file.name.match(/[^.]+$/g)[0],
|
|
101
101
|
file
|
|
102
102
|
};
|
|
103
|
+
validate().then(() => {
|
|
104
|
+
if (meta.valid) {
|
|
105
|
+
emit("update:change", model.value);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
103
108
|
};
|
|
104
109
|
const deleteFile = () => {
|
|
105
110
|
inputElement.value.value = null;
|
|
106
111
|
model.value = void 0;
|
|
107
112
|
emit("update:delete");
|
|
108
113
|
};
|
|
109
|
-
const emit = defineEmits(["update:delete"]);
|
|
114
|
+
const emit = defineEmits(["update:delete", "update:change"]);
|
|
110
115
|
defineExpose({
|
|
111
116
|
errorMessage,
|
|
112
117
|
meta,
|
|
@@ -31,15 +31,16 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
31
31
|
inputElement: Ref<any, any>;
|
|
32
32
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
33
|
"update:delete": (...args: any[]) => void;
|
|
34
|
+
"update:change": (...args: any[]) => void;
|
|
34
35
|
"update:modelValue": (value: any) => void;
|
|
35
36
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
37
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
37
38
|
"onUpdate:delete"?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:change"?: ((...args: any[]) => any) | undefined;
|
|
38
40
|
}>, {
|
|
39
41
|
size: "sm" | "md" | "lg";
|
|
40
42
|
errorDisplay: boolean;
|
|
41
43
|
validationMode: "change" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
44
|
placeholder: string;
|
|
44
45
|
variant: "white" | "blue";
|
|
45
46
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
layout?:
|
|
8
|
-
size?:
|
|
7
|
+
layout?: "vertical" | "horizontal";
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
9
|
max?: number;
|
|
10
10
|
min?: number;
|
|
11
11
|
step?: number;
|
|
12
12
|
validation?: Schema | Lazy<any>;
|
|
13
|
-
validationMode?:
|
|
13
|
+
validationMode?: "change" | "none";
|
|
14
14
|
errorDisplay?: boolean;
|
|
15
|
-
disabled?: InputHTMLAttributes[
|
|
15
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_defaultModels: {
|
|
18
18
|
modelValue: number;
|
|
@@ -33,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
33
33
|
size: "sm" | "md" | "lg";
|
|
34
34
|
errorDisplay: boolean;
|
|
35
35
|
validationMode: "change" | "none";
|
|
36
|
-
layout: "vertical" | "horizontal";
|
|
37
36
|
min: number;
|
|
38
37
|
step: number;
|
|
39
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
type="number"
|
|
11
11
|
v-bind="{ min, max, step, disabled }"
|
|
12
12
|
:aria-label="label || title"
|
|
13
|
-
|
|
13
|
+
/>
|
|
14
14
|
|
|
15
15
|
<button
|
|
16
16
|
class="btn-minus"
|
|
@@ -18,10 +18,7 @@
|
|
|
18
18
|
aria-hidden
|
|
19
19
|
@click="$emit('update:modelValue', model - step)"
|
|
20
20
|
/>
|
|
21
|
-
<div
|
|
22
|
-
class="value"
|
|
23
|
-
:class="{ disabled }"
|
|
24
|
-
>
|
|
21
|
+
<div class="value" :class="{ disabled }">
|
|
25
22
|
{{ model }}
|
|
26
23
|
</div>
|
|
27
24
|
<button
|
|
@@ -44,7 +41,7 @@ const props = defineProps({
|
|
|
44
41
|
title: { type: String, required: false },
|
|
45
42
|
label: { type: String, required: false },
|
|
46
43
|
tooltip: { type: String, required: false },
|
|
47
|
-
layout: { type: String, required: false
|
|
44
|
+
layout: { type: String, required: false },
|
|
48
45
|
size: { type: String, required: false, default: "md" },
|
|
49
46
|
max: { type: Number, required: false },
|
|
50
47
|
min: { type: Number, required: false, default: 0 },
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
layout?:
|
|
8
|
-
size?:
|
|
7
|
+
layout?: "vertical" | "horizontal";
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
9
|
max?: number;
|
|
10
10
|
min?: number;
|
|
11
11
|
step?: number;
|
|
12
12
|
validation?: Schema | Lazy<any>;
|
|
13
|
-
validationMode?:
|
|
13
|
+
validationMode?: "change" | "none";
|
|
14
14
|
errorDisplay?: boolean;
|
|
15
|
-
disabled?: InputHTMLAttributes[
|
|
15
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_defaultModels: {
|
|
18
18
|
modelValue: number;
|
|
@@ -33,7 +33,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
33
33
|
size: "sm" | "md" | "lg";
|
|
34
34
|
errorDisplay: boolean;
|
|
35
35
|
validationMode: "change" | "none";
|
|
36
|
-
layout: "vertical" | "horizontal";
|
|
37
36
|
min: number;
|
|
38
37
|
step: number;
|
|
39
38
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -38,7 +38,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
38
38
|
size: "sm" | "md" | "lg";
|
|
39
39
|
errorDisplay: boolean;
|
|
40
40
|
validationMode: "change" | "blur" | "none";
|
|
41
|
-
layout: "vertical" | "horizontal";
|
|
42
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
42
|
declare const _default: typeof __VLS_export;
|
|
44
43
|
export default _default;
|
|
@@ -59,7 +59,7 @@ const props = defineProps({
|
|
|
59
59
|
tooltip: { type: String, required: false },
|
|
60
60
|
description: { type: String, required: false },
|
|
61
61
|
placeholder: { type: null, required: false },
|
|
62
|
-
layout: { type: String, required: false
|
|
62
|
+
layout: { type: String, required: false },
|
|
63
63
|
size: { type: String, required: false, default: "md" },
|
|
64
64
|
validation: { type: Object, required: false },
|
|
65
65
|
validationMode: { type: String, required: false, default: "blur" },
|
|
@@ -38,7 +38,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
38
38
|
size: "sm" | "md" | "lg";
|
|
39
39
|
errorDisplay: boolean;
|
|
40
40
|
validationMode: "change" | "blur" | "none";
|
|
41
|
-
layout: "vertical" | "horizontal";
|
|
42
41
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
42
|
declare const _default: typeof __VLS_export;
|
|
44
43
|
export default _default;
|
|
@@ -40,7 +40,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
40
40
|
size: "sm" | "md" | "lg";
|
|
41
41
|
errorDisplay: boolean;
|
|
42
42
|
validationMode: "change" | "none";
|
|
43
|
-
layout: "vertical" | "horizontal";
|
|
44
43
|
listLayout: "vertical" | "horizontal";
|
|
45
44
|
radioStyle: {
|
|
46
45
|
variant: "default" | "button";
|
|
@@ -45,7 +45,7 @@ import { useField } from "vee-validate";
|
|
|
45
45
|
const props = defineProps({
|
|
46
46
|
title: { type: String, required: false },
|
|
47
47
|
tooltip: { type: String, required: false },
|
|
48
|
-
layout: { type: String, required: false
|
|
48
|
+
layout: { type: String, required: false },
|
|
49
49
|
listLayout: { type: String, required: false, default: "vertical" },
|
|
50
50
|
size: { type: String, required: false, default: "md" },
|
|
51
51
|
validation: { type: Object, required: false },
|
|
@@ -40,7 +40,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
40
40
|
size: "sm" | "md" | "lg";
|
|
41
41
|
errorDisplay: boolean;
|
|
42
42
|
validationMode: "change" | "none";
|
|
43
|
-
layout: "vertical" | "horizontal";
|
|
44
43
|
listLayout: "vertical" | "horizontal";
|
|
45
44
|
radioStyle: {
|
|
46
45
|
variant: "default" | "button";
|
|
@@ -39,7 +39,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
39
39
|
size: "sm" | "md" | "lg";
|
|
40
40
|
errorDisplay: boolean;
|
|
41
41
|
validationMode: "change" | "blur" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
42
|
placeholder: string;
|
|
44
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -94,7 +94,7 @@ const props = defineProps({
|
|
|
94
94
|
label: { type: String, required: false },
|
|
95
95
|
tooltip: { type: String, required: false },
|
|
96
96
|
placeholder: { type: null, required: false, default: "Selecionar" },
|
|
97
|
-
layout: { type: String, required: false
|
|
97
|
+
layout: { type: String, required: false },
|
|
98
98
|
size: { type: String, required: false, default: "md" },
|
|
99
99
|
error: { type: String, required: false },
|
|
100
100
|
validation: { type: Object, required: false },
|
|
@@ -39,7 +39,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
39
39
|
size: "sm" | "md" | "lg";
|
|
40
40
|
errorDisplay: boolean;
|
|
41
41
|
validationMode: "change" | "blur" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
42
|
placeholder: string;
|
|
44
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -39,7 +39,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
39
39
|
size: "sm" | "md" | "lg";
|
|
40
40
|
errorDisplay: boolean;
|
|
41
41
|
validationMode: "change" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -43,7 +43,7 @@ const props = defineProps({
|
|
|
43
43
|
title: { type: String, required: false },
|
|
44
44
|
label: { type: String, required: false },
|
|
45
45
|
tooltip: { type: String, required: false },
|
|
46
|
-
layout: { type: String, required: false
|
|
46
|
+
layout: { type: String, required: false },
|
|
47
47
|
size: { type: String, required: false, default: "md" },
|
|
48
48
|
disabled: { type: null, required: false },
|
|
49
49
|
min: { type: Number, required: true },
|
|
@@ -72,7 +72,8 @@ const sliderProgress = computed(() => ({
|
|
|
72
72
|
$sliderHeight: 12px;
|
|
73
73
|
$sliderThumb: 20px;
|
|
74
74
|
$sliderProgress: calc(
|
|
75
|
-
0.5 * #{$sliderThumb} + var(--slider-progress-value) *
|
|
75
|
+
0.5 * #{$sliderThumb} + var(--slider-progress-value) *
|
|
76
|
+
(100% - #{$sliderThumb})
|
|
76
77
|
);
|
|
77
78
|
|
|
78
79
|
.input-wrapper {
|
|
@@ -103,8 +104,9 @@ $sliderProgress: calc(
|
|
|
103
104
|
border: none;
|
|
104
105
|
border-radius: $sliderHeight;
|
|
105
106
|
box-shadow: inset 0px 0px 10px rgba(129, 129, 129, 0.25);
|
|
106
|
-
background:
|
|
107
|
-
|
|
107
|
+
background:
|
|
108
|
+
linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
|
|
109
|
+
no-repeat,
|
|
108
110
|
$light-green;
|
|
109
111
|
}
|
|
110
112
|
|
|
@@ -122,8 +124,9 @@ $sliderProgress: calc(
|
|
|
122
124
|
border: none;
|
|
123
125
|
border-radius: $sliderHeight;
|
|
124
126
|
box-shadow: none;
|
|
125
|
-
background:
|
|
126
|
-
|
|
127
|
+
background:
|
|
128
|
+
linear-gradient($bright-green, $bright-green) 0 / $sliderProgress 100%
|
|
129
|
+
no-repeat,
|
|
127
130
|
$light-green;
|
|
128
131
|
}
|
|
129
132
|
|
|
@@ -139,15 +142,17 @@ $sliderProgress: calc(
|
|
|
139
142
|
}
|
|
140
143
|
|
|
141
144
|
&::-webkit-slider-runnable-track {
|
|
142
|
-
background:
|
|
143
|
-
|
|
145
|
+
background:
|
|
146
|
+
linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
|
|
147
|
+
no-repeat,
|
|
144
148
|
$disabled-grey;
|
|
145
149
|
cursor: auto;
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
&::-moz-range-track {
|
|
149
|
-
background:
|
|
150
|
-
|
|
153
|
+
background:
|
|
154
|
+
linear-gradient($light-grey, $light-grey) 0 / $sliderProgress 100%
|
|
155
|
+
no-repeat,
|
|
151
156
|
$disabled-grey;
|
|
152
157
|
cursor: auto;
|
|
153
158
|
}
|
|
@@ -39,7 +39,6 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
39
39
|
size: "sm" | "md" | "lg";
|
|
40
40
|
errorDisplay: boolean;
|
|
41
41
|
validationMode: "change" | "none";
|
|
42
|
-
layout: "vertical" | "horizontal";
|
|
43
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
43
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
45
44
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { type InputHTMLAttributes } from
|
|
2
|
-
import type { Icon } from
|
|
3
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import { type InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Icon } from "../../types/Icon.js";
|
|
3
|
+
import type { Lazy, Schema } from "yup";
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
title?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
tooltip?: string;
|
|
8
|
-
placeholder?: InputHTMLAttributes[
|
|
9
|
-
layout?:
|
|
10
|
-
size?:
|
|
8
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
9
|
+
layout?: "vertical" | "horizontal";
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
11
|
validation?: Schema | Lazy<any>;
|
|
12
|
-
validationMode?:
|
|
12
|
+
validationMode?: "change" | "blur" | "none";
|
|
13
13
|
errorDisplay?: boolean;
|
|
14
|
-
id?: InputHTMLAttributes[
|
|
15
|
-
disabled?: InputHTMLAttributes[
|
|
16
|
-
inputmode?: InputHTMLAttributes[
|
|
17
|
-
type?: InputHTMLAttributes[
|
|
18
|
-
autocomplete?: InputHTMLAttributes[
|
|
14
|
+
id?: InputHTMLAttributes["id"];
|
|
15
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
16
|
+
inputmode?: InputHTMLAttributes["inputmode"];
|
|
17
|
+
type?: InputHTMLAttributes["type"];
|
|
18
|
+
autocomplete?: InputHTMLAttributes["autocomplete"];
|
|
19
19
|
suffix?: string;
|
|
20
20
|
icon?: Icon;
|
|
21
|
-
iconPosition?:
|
|
21
|
+
iconPosition?: "left" | "right";
|
|
22
22
|
mask?: string;
|
|
23
23
|
numberOptions?: {
|
|
24
24
|
positiveOnly?: boolean;
|
|
@@ -27,7 +27,7 @@ type __VLS_Props = {
|
|
|
27
27
|
};
|
|
28
28
|
type __VLS_ModelProps = {
|
|
29
29
|
modelValue: any;
|
|
30
|
-
|
|
30
|
+
"masked"?: any;
|
|
31
31
|
};
|
|
32
32
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
33
33
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
@@ -45,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
45
45
|
size: "sm" | "md" | "lg";
|
|
46
46
|
errorDisplay: boolean;
|
|
47
47
|
validationMode: "change" | "blur" | "none";
|
|
48
|
-
layout: "vertical" | "horizontal";
|
|
49
48
|
iconPosition: "left" | "right";
|
|
50
49
|
numberOptions: {
|
|
51
50
|
positiveOnly?: boolean;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:class="[`size-${size}`, `icon-${iconPosition}`, { 'has-icon': icon }]"
|
|
21
21
|
:aria-label="label || title"
|
|
22
22
|
@blur="handleBlur($event, validationMode == 'blur')"
|
|
23
|
-
|
|
23
|
+
/>
|
|
24
24
|
|
|
25
25
|
<div
|
|
26
26
|
v-if="icon"
|
|
@@ -47,14 +47,19 @@
|
|
|
47
47
|
|
|
48
48
|
<script setup>
|
|
49
49
|
import { useField } from "vee-validate";
|
|
50
|
-
import {
|
|
50
|
+
import {
|
|
51
|
+
computed,
|
|
52
|
+
onMounted,
|
|
53
|
+
ref,
|
|
54
|
+
watch
|
|
55
|
+
} from "vue";
|
|
51
56
|
import { vMaska } from "maska/vue";
|
|
52
57
|
const props = defineProps({
|
|
53
58
|
title: { type: String, required: false },
|
|
54
59
|
label: { type: String, required: false },
|
|
55
60
|
tooltip: { type: String, required: false },
|
|
56
61
|
placeholder: { type: null, required: false },
|
|
57
|
-
layout: { type: String, required: false
|
|
62
|
+
layout: { type: String, required: false },
|
|
58
63
|
size: { type: String, required: false, default: "md" },
|
|
59
64
|
validation: { type: Object, required: false },
|
|
60
65
|
validationMode: { type: String, required: false, default: "change" },
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { type InputHTMLAttributes } from
|
|
2
|
-
import type { Icon } from
|
|
3
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import { type InputHTMLAttributes } from "vue";
|
|
2
|
+
import type { Icon } from "../../types/Icon.js";
|
|
3
|
+
import type { Lazy, Schema } from "yup";
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
title?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
tooltip?: string;
|
|
8
|
-
placeholder?: InputHTMLAttributes[
|
|
9
|
-
layout?:
|
|
10
|
-
size?:
|
|
8
|
+
placeholder?: InputHTMLAttributes["placeholder"];
|
|
9
|
+
layout?: "vertical" | "horizontal";
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
11
|
validation?: Schema | Lazy<any>;
|
|
12
|
-
validationMode?:
|
|
12
|
+
validationMode?: "change" | "blur" | "none";
|
|
13
13
|
errorDisplay?: boolean;
|
|
14
|
-
id?: InputHTMLAttributes[
|
|
15
|
-
disabled?: InputHTMLAttributes[
|
|
16
|
-
inputmode?: InputHTMLAttributes[
|
|
17
|
-
type?: InputHTMLAttributes[
|
|
18
|
-
autocomplete?: InputHTMLAttributes[
|
|
14
|
+
id?: InputHTMLAttributes["id"];
|
|
15
|
+
disabled?: InputHTMLAttributes["disabled"];
|
|
16
|
+
inputmode?: InputHTMLAttributes["inputmode"];
|
|
17
|
+
type?: InputHTMLAttributes["type"];
|
|
18
|
+
autocomplete?: InputHTMLAttributes["autocomplete"];
|
|
19
19
|
suffix?: string;
|
|
20
20
|
icon?: Icon;
|
|
21
|
-
iconPosition?:
|
|
21
|
+
iconPosition?: "left" | "right";
|
|
22
22
|
mask?: string;
|
|
23
23
|
numberOptions?: {
|
|
24
24
|
positiveOnly?: boolean;
|
|
@@ -27,7 +27,7 @@ type __VLS_Props = {
|
|
|
27
27
|
};
|
|
28
28
|
type __VLS_ModelProps = {
|
|
29
29
|
modelValue: any;
|
|
30
|
-
|
|
30
|
+
"masked"?: any;
|
|
31
31
|
};
|
|
32
32
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
33
33
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
@@ -45,7 +45,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
45
45
|
size: "sm" | "md" | "lg";
|
|
46
46
|
errorDisplay: boolean;
|
|
47
47
|
validationMode: "change" | "blur" | "none";
|
|
48
|
-
layout: "vertical" | "horizontal";
|
|
49
48
|
iconPosition: "left" | "right";
|
|
50
49
|
numberOptions: {
|
|
51
50
|
positiveOnly?: boolean;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { TextareaHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { TextareaHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
placeholder?: TextareaHTMLAttributes[
|
|
8
|
-
layout?:
|
|
9
|
-
size?:
|
|
7
|
+
placeholder?: TextareaHTMLAttributes["placeholder"];
|
|
8
|
+
layout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "blur" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
id?: TextareaHTMLAttributes[
|
|
14
|
-
disabled?: TextareaHTMLAttributes[
|
|
15
|
-
rows?: TextareaHTMLAttributes[
|
|
13
|
+
id?: TextareaHTMLAttributes["id"];
|
|
14
|
+
disabled?: TextareaHTMLAttributes["disabled"];
|
|
15
|
+
rows?: TextareaHTMLAttributes["rows"];
|
|
16
16
|
};
|
|
17
17
|
type __VLS_ModelProps = {
|
|
18
18
|
modelValue: string;
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "blur" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
rows: string | number;
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -34,7 +34,7 @@ const props = defineProps({
|
|
|
34
34
|
label: { type: String, required: false },
|
|
35
35
|
tooltip: { type: String, required: false },
|
|
36
36
|
placeholder: { type: null, required: false },
|
|
37
|
-
layout: { type: String, required: false
|
|
37
|
+
layout: { type: String, required: false },
|
|
38
38
|
size: { type: String, required: false, default: "md" },
|
|
39
39
|
validation: { type: Object, required: false },
|
|
40
40
|
validationMode: { type: String, required: false, default: "change" },
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { TextareaHTMLAttributes } from
|
|
2
|
-
import type { Lazy, Schema } from
|
|
1
|
+
import type { TextareaHTMLAttributes } from "vue";
|
|
2
|
+
import type { Lazy, Schema } from "yup";
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
title?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
tooltip?: string;
|
|
7
|
-
placeholder?: TextareaHTMLAttributes[
|
|
8
|
-
layout?:
|
|
9
|
-
size?:
|
|
7
|
+
placeholder?: TextareaHTMLAttributes["placeholder"];
|
|
8
|
+
layout?: "vertical" | "horizontal";
|
|
9
|
+
size?: "sm" | "md" | "lg";
|
|
10
10
|
validation?: Schema | Lazy<any>;
|
|
11
|
-
validationMode?:
|
|
11
|
+
validationMode?: "change" | "blur" | "none";
|
|
12
12
|
errorDisplay?: boolean;
|
|
13
|
-
id?: TextareaHTMLAttributes[
|
|
14
|
-
disabled?: TextareaHTMLAttributes[
|
|
15
|
-
rows?: TextareaHTMLAttributes[
|
|
13
|
+
id?: TextareaHTMLAttributes["id"];
|
|
14
|
+
disabled?: TextareaHTMLAttributes["disabled"];
|
|
15
|
+
rows?: TextareaHTMLAttributes["rows"];
|
|
16
16
|
};
|
|
17
17
|
type __VLS_ModelProps = {
|
|
18
18
|
modelValue: string;
|
|
@@ -30,7 +30,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
30
30
|
size: "sm" | "md" | "lg";
|
|
31
31
|
errorDisplay: boolean;
|
|
32
32
|
validationMode: "change" | "blur" | "none";
|
|
33
|
-
layout: "vertical" | "horizontal";
|
|
34
33
|
rows: string | number;
|
|
35
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
layout?:
|
|
2
|
+
layout?: "vertical" | "horizontal";
|
|
3
3
|
};
|
|
4
4
|
declare var __VLS_1: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
layout: "vertical" | "horizontal";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
12
|
declare const _default: typeof __VLS_export;
|
|
11
13
|
export default _default;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="input-container"
|
|
4
|
-
:class="[layout]"
|
|
5
|
-
>
|
|
2
|
+
<div class="input-container" :class="[layout]">
|
|
6
3
|
<slot />
|
|
7
4
|
</div>
|
|
8
5
|
</template>
|
|
9
6
|
|
|
10
7
|
<script setup>
|
|
11
8
|
defineProps({
|
|
12
|
-
layout: { type: String, required: false }
|
|
9
|
+
layout: { type: String, required: false, default: "vertical" }
|
|
13
10
|
});
|
|
14
11
|
</script>
|
|
15
12
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
layout?:
|
|
2
|
+
layout?: "vertical" | "horizontal";
|
|
3
3
|
};
|
|
4
4
|
declare var __VLS_1: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
6
|
default?: (props: typeof __VLS_1) => any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
layout: "vertical" | "horizontal";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
11
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
12
|
declare const _default: typeof __VLS_export;
|
|
11
13
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useRuntimeConfig } from "#imports";
|
|
2
|
+
export const uploadFileCjbo = (options) => {
|
|
3
|
+
const { cjboURL } = useRuntimeConfig().public;
|
|
4
|
+
const body = new FormData();
|
|
5
|
+
body.append("file", options.file);
|
|
6
|
+
body.append("journeyId", options.journeyId);
|
|
7
|
+
body.append("status", options.status?.toString() || "1");
|
|
8
|
+
return $fetch("/api/v1/doccollector", {
|
|
9
|
+
baseURL: cjboURL,
|
|
10
|
+
method: "POST",
|
|
11
|
+
body
|
|
12
|
+
});
|
|
13
|
+
};
|