@cnamts/synapse 0.0.11-alpha → 0.0.12-alpha
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/design-system-v3.js +3878 -3189
- package/dist/design-system-v3.umd.cjs +1 -1
- package/dist/src/components/Amelipro/types/languages.d.ts +6 -0
- package/dist/src/components/Amelipro/types/types.d.ts +65 -0
- package/dist/src/components/CookieBanner/CookieBanner.d.ts +1 -1
- package/dist/src/components/Customs/SyInputSelect/SyInputSelect.d.ts +2 -0
- package/dist/src/components/Customs/SyTextField/SyTextField.d.ts +29 -23
- package/dist/src/components/Customs/SyTextField/types.d.ts +1 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +70 -59
- package/dist/src/components/DatePicker/DateTextInput.d.ts +67 -56
- package/dist/src/components/ErrorPage/ErrorPage.d.ts +1 -1
- package/dist/src/components/FileList/FileList.d.ts +1 -0
- package/dist/src/components/FileList/UploadItem/UploadItem.d.ts +1 -1
- package/dist/src/components/FilterSideBar/FilterSideBar.d.ts +31 -0
- package/dist/src/components/FilterSideBar/locales.d.ts +7 -0
- package/dist/src/components/FilterSideBar/tests/FilterSideBar.spec.d.ts +1 -0
- package/dist/src/components/LangBtn/LangBtn.d.ts +2 -2
- package/dist/src/components/NirField/NirField.d.ts +940 -0
- package/dist/src/components/NotificationBar/NotificationBar.d.ts +1 -1
- package/dist/src/components/PasswordField/PasswordField.d.ts +40 -8
- package/dist/src/components/PeriodField/PeriodField.d.ts +142 -120
- package/dist/src/components/PhoneField/PhoneField.d.ts +11 -2
- package/dist/src/components/RatingPicker/EmotionPicker/EmotionPicker.d.ts +1 -1
- package/dist/src/components/RatingPicker/NumberPicker/NumberPicker.d.ts +1 -1
- package/dist/src/components/RatingPicker/StarsPicker/StarsPicker.d.ts +1 -1
- package/dist/src/components/UploadWorkflow/config.d.ts +29 -0
- package/dist/src/components/UploadWorkflow/locales.d.ts +7 -0
- package/dist/src/components/UploadWorkflow/tests/UploadWorkflow.spec.d.ts +1 -0
- package/dist/src/components/UploadWorkflow/types.d.ts +19 -0
- package/dist/src/components/UploadWorkflow/useFileList.d.ts +10 -0
- package/dist/src/components/UploadWorkflow/useFileUploadJourney.d.ts +9 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/composables/rules/useFieldValidation.d.ts +1 -0
- package/dist/src/composables/validation/tests/useValidation.spec.d.ts +1 -0
- package/dist/src/composables/validation/useValidation.d.ts +39 -0
- package/dist/src/designTokens/index.d.ts +3 -1
- package/dist/src/vuetifyConfig.d.ts +81 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/_elevations.scss +89 -0
- package/src/assets/_fonts.scss +6 -0
- package/src/assets/_radius.scss +86 -0
- package/src/assets/_spacers.scss +149 -0
- package/src/assets/settings.scss +7 -3
- package/src/assets/tokens.scss +32 -29
- package/src/components/Amelipro/types/languages.d.ts +6 -0
- package/src/components/Amelipro/types/types.d.ts +65 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.stories.ts +65 -0
- package/src/components/Customs/SyInputSelect/SyInputSelect.vue +13 -3
- package/src/components/Customs/SySelect/SySelect.stories.ts +88 -5
- package/src/components/Customs/SySelect/SySelect.vue +36 -10
- package/src/components/Customs/SySelect/tests/SySelect.spec.ts +135 -2
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +576 -85
- package/src/components/Customs/SyTextField/SyTextField.vue +132 -104
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +190 -38
- package/src/components/Customs/SyTextField/types.d.ts +1 -0
- package/src/components/DatePicker/DatePicker.vue +405 -137
- package/src/components/DatePicker/DateTextInput.vue +15 -0
- package/src/components/DatePicker/tests/DatePicker.spec.ts +8 -15
- package/src/components/FileList/FileList.vue +2 -1
- package/src/components/FileList/UploadItem/UploadItem.vue +10 -0
- package/src/components/FileUpload/FileUpload.stories.ts +84 -0
- package/src/components/FileUpload/FileUpload.vue +1 -0
- package/src/components/FileUpload/tests/FileUpload.spec.ts +4 -4
- package/src/components/FilterInline/FilterInline.mdx +180 -34
- package/src/components/FilterInline/FilterInline.stories.ts +363 -6
- package/src/components/FilterSideBar/FilterSideBar.mdx +237 -0
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +798 -0
- package/src/components/FilterSideBar/FilterSideBar.vue +193 -0
- package/src/components/FilterSideBar/locales.ts +8 -0
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +305 -0
- package/src/components/FilterSideBar/tests/__snapshots__/FilterSideBar.spec.ts.snap +39 -0
- package/src/components/HeaderBar/Usages.mdx +1 -1
- package/src/components/NirField/NirField.stories.ts +573 -29
- package/src/components/NirField/NirField.vue +397 -359
- package/src/components/NirField/tests/NirField.spec.ts +88 -52
- package/src/components/NirField/tests//342/200/257dataset/342/200/257.md +12 -0
- package/src/components/NotificationBar/Accessibilite.stories.ts +4 -0
- package/src/components/NotificationBar/NotificationBar.stories.ts +18 -13
- package/src/components/PasswordField/PasswordField.mdx +129 -47
- package/src/components/PasswordField/PasswordField.stories.ts +924 -120
- package/src/components/PasswordField/PasswordField.vue +209 -99
- package/src/components/PasswordField/tests/PasswordField.spec.ts +138 -9
- package/src/components/PeriodField/PeriodField.vue +55 -54
- package/src/components/PhoneField/PhoneField.stories.ts +69 -0
- package/src/components/PhoneField/PhoneField.vue +3 -0
- package/src/components/PhoneField/indicatifs.ts +1 -1
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +75 -0
- package/src/components/UploadWorkflow/UploadWorkflow.stories.ts +943 -0
- package/src/components/UploadWorkflow/UploadWorkflow.vue +230 -0
- package/src/components/UploadWorkflow/config.ts +29 -0
- package/src/components/UploadWorkflow/locales.ts +8 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +257 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/UploadWorkflow.spec.ts.snap +54 -0
- package/src/components/UploadWorkflow/types.ts +21 -0
- package/src/components/UploadWorkflow/useFileList.ts +84 -0
- package/src/components/UploadWorkflow/useFileUploadJourney.ts +18 -0
- package/src/components/index.ts +2 -0
- package/src/composables/rules/useFieldValidation.ts +5 -2
- package/src/composables/validation/tests/useValidation.spec.ts +154 -0
- package/src/composables/validation/useValidation.ts +165 -0
- package/src/designTokens/index.ts +4 -0
- package/src/stories/Demarrer/Accueil.mdx +1 -1
- package/src/stories/DesignTokens/ThemePA.mdx +4 -30
- package/src/stories/GuideDuDev/UtiliserLesRules.mdx +319 -76
- package/src/stories/GuideDuDev/moduleDeNotification.mdx +1 -1
- package/src/vuetifyConfig.ts +61 -0
- package/src/composables/useFilterable/__snapshots__/useFilterable.spec.ts.snap +0 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export interface Link {
|
|
2
|
+
id: number
|
|
3
|
+
url: string
|
|
4
|
+
name: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IndexedObject<T = string> {
|
|
8
|
+
[key: string]: T
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type Refs<T extends Record<string, unknown>> = Vue['$refs'] & T
|
|
12
|
+
|
|
13
|
+
export type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'smAndDown' | 'smAndUp' | 'mdAndDown' | 'mdAndUp' | 'lgAndDown' | 'lgAndUp' | 'xlAndDown'
|
|
14
|
+
|
|
15
|
+
export interface IDataListItem {
|
|
16
|
+
id: number
|
|
17
|
+
[key: string]: string | number | undefined
|
|
18
|
+
accordionTitle?: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Theme {
|
|
22
|
+
primary: string
|
|
23
|
+
secondary: string
|
|
24
|
+
info: string
|
|
25
|
+
warning: string
|
|
26
|
+
error: string
|
|
27
|
+
success: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface VuetifyTheme extends Theme {
|
|
31
|
+
[key: string]: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Color {
|
|
35
|
+
darken1?: string
|
|
36
|
+
darken2?: string
|
|
37
|
+
darken3?: string
|
|
38
|
+
darken4?: string
|
|
39
|
+
darken5?: string
|
|
40
|
+
darken6?: string
|
|
41
|
+
base: string
|
|
42
|
+
lighten1?: string
|
|
43
|
+
lighten2?: string
|
|
44
|
+
lighten3?: string
|
|
45
|
+
lighten4?: string
|
|
46
|
+
lighten5?: string
|
|
47
|
+
lighten6?: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface Palette {
|
|
51
|
+
apBlue: Color
|
|
52
|
+
apGrey: Color
|
|
53
|
+
apWhite: Color
|
|
54
|
+
apBlack: Color
|
|
55
|
+
apYellow: Color
|
|
56
|
+
apGreen: Color
|
|
57
|
+
apRed: Color
|
|
58
|
+
apTurquoise: Color
|
|
59
|
+
apParme: Color
|
|
60
|
+
apPink: Color
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type Colors = Theme & Palette
|
|
64
|
+
|
|
65
|
+
export type ValidateOn = 'lazy' | ('input' | 'blur' | 'submit') | 'input lazy' | 'blur lazy' | 'submit lazy' | 'lazy input' | 'lazy blur' | 'lazy submit' | undefined
|
|
@@ -14,9 +14,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
14
14
|
customize: (...args: any[]) => void;
|
|
15
15
|
"update:modelValue": (value: boolean) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
18
|
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
18
19
|
onAccept?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
20
20
|
onReject?: ((...args: any[]) => any) | undefined;
|
|
21
21
|
onCustomize?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, any>;
|
|
@@ -9,6 +9,7 @@ type __VLS_Props = CustomizableOptions & {
|
|
|
9
9
|
required?: boolean;
|
|
10
10
|
errorMessages?: string | string[];
|
|
11
11
|
isHeaderToolbar?: boolean;
|
|
12
|
+
displayAsterisk?: boolean;
|
|
12
13
|
};
|
|
13
14
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
14
15
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
@@ -26,6 +27,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
26
27
|
modelValue: string | Record<string, unknown> | null;
|
|
27
28
|
label: string;
|
|
28
29
|
errorMessages: string | string[];
|
|
30
|
+
displayAsterisk: boolean;
|
|
29
31
|
items: string[] | Record<string, unknown>[];
|
|
30
32
|
textKey: string;
|
|
31
33
|
valueKey: string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { IconType, VariantStyle, ColorType } from './types';
|
|
2
|
-
import {
|
|
2
|
+
import { ValidationRule } from '../../../composables/validation/useValidation';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
modelValue?: string | number | null;
|
|
5
5
|
prependIcon?: IconType;
|
|
6
6
|
appendIcon?: IconType;
|
|
7
7
|
prependInnerIcon?: IconType;
|
|
8
8
|
appendInnerIcon?: IconType;
|
|
9
|
+
prependTooltip?: string;
|
|
10
|
+
appendTooltip?: string;
|
|
11
|
+
tooltipLocation?: 'top' | 'bottom' | 'start' | 'end';
|
|
9
12
|
variantStyle?: VariantStyle;
|
|
10
13
|
color?: ColorType;
|
|
11
14
|
isClearable?: boolean;
|
|
@@ -56,30 +59,34 @@ type __VLS_Props = {
|
|
|
56
59
|
width?: string | number;
|
|
57
60
|
displayAsterisk?: boolean;
|
|
58
61
|
noIcon?: boolean;
|
|
59
|
-
customRules?:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}[];
|
|
63
|
-
customWarningRules?: {
|
|
64
|
-
type: string;
|
|
65
|
-
options: RuleOptions;
|
|
66
|
-
}[];
|
|
62
|
+
customRules?: ValidationRule[];
|
|
63
|
+
customWarningRules?: ValidationRule[];
|
|
64
|
+
customSuccessRules?: ValidationRule[];
|
|
67
65
|
showSuccessMessages?: boolean;
|
|
66
|
+
isValidateOnBlur?: boolean;
|
|
68
67
|
};
|
|
69
68
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {
|
|
70
|
-
|
|
69
|
+
validation: {
|
|
70
|
+
errors: import('vue').Ref<string[], string[]>;
|
|
71
|
+
warnings: import('vue').Ref<string[], string[]>;
|
|
72
|
+
successes: import('vue').Ref<string[], string[]>;
|
|
73
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
74
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
75
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
76
|
+
validateField: (value: unknown, rules?: ValidationRule[], warningRules?: ValidationRule[], successRules?: ValidationRule[]) => import('../../../composables/validation/useValidation').ValidationResult;
|
|
77
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
78
|
+
clearValidation: () => void;
|
|
79
|
+
};
|
|
71
80
|
validateOnSubmit: () => boolean;
|
|
72
|
-
|
|
73
|
-
warnings: import('vue').Ref<string[], string[]>;
|
|
74
|
-
successes: import('vue').Ref<string[], string[]>;
|
|
81
|
+
checkErrorOnBlur: () => void;
|
|
75
82
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
83
|
+
"update:modelValue": (...args: any[]) => void;
|
|
76
84
|
clear: (...args: any[]) => void;
|
|
77
|
-
"update:model-value": (...args: any[]) => void;
|
|
78
85
|
"prepend-icon-click": (...args: any[]) => void;
|
|
79
86
|
"append-icon-click": (...args: any[]) => void;
|
|
80
87
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
88
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
81
89
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
83
90
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
84
91
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
85
92
|
}>, {
|
|
@@ -88,6 +95,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
88
95
|
appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
89
96
|
prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
90
97
|
appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
98
|
+
prependTooltip: string;
|
|
99
|
+
appendTooltip: string;
|
|
100
|
+
tooltipLocation: "top" | "bottom" | "start" | "end";
|
|
91
101
|
variantStyle: VariantStyle;
|
|
92
102
|
color: ColorType;
|
|
93
103
|
isClearable: boolean;
|
|
@@ -136,15 +146,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
136
146
|
width: string | number;
|
|
137
147
|
displayAsterisk: boolean;
|
|
138
148
|
noIcon: boolean;
|
|
139
|
-
customRules:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}[];
|
|
143
|
-
customWarningRules: {
|
|
144
|
-
type: string;
|
|
145
|
-
options: RuleOptions;
|
|
146
|
-
}[];
|
|
149
|
+
customRules: ValidationRule[];
|
|
150
|
+
customWarningRules: ValidationRule[];
|
|
151
|
+
customSuccessRules: ValidationRule[];
|
|
147
152
|
showSuccessMessages: boolean;
|
|
153
|
+
isValidateOnBlur: boolean;
|
|
148
154
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
149
155
|
prepend?(_: {}): any;
|
|
150
156
|
append?(_: {}): any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type IconType = 'info' | 'success' | 'warning' | 'error' | 'close' | 'calendar' | undefined
|
|
2
2
|
export type VariantStyle = 'outlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled' | 'underlined'
|
|
3
3
|
export type ColorType = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error'
|
|
4
|
+
export type ValidateOnType = 'eager' | 'lazy' | 'blur' | 'input' | 'submit' | 'invalid-input' | 'blur lazy' | 'input lazy' | 'submit lazy' | 'invalid-input lazy' | 'blur eager' | 'input eager' | 'submit eager' | 'invalid-input eager' | 'lazy blur' | 'lazy input' | 'lazy submit' | 'lazy invalid-input' | 'eager blur' | 'eager input' | 'eager submit' | 'eager invalid-input' | undefined
|
|
@@ -38,14 +38,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
38
38
|
handleClickOutside: (event: MouseEvent) => void;
|
|
39
39
|
initializeSelectedDates: typeof initializeSelectedDates;
|
|
40
40
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
+
"update:modelValue": (value: DateValue) => any;
|
|
41
42
|
blur: () => any;
|
|
42
43
|
focus: () => any;
|
|
43
|
-
"update:modelValue": (value: DateValue) => any;
|
|
44
44
|
closed: () => any;
|
|
45
45
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((value: DateValue) => any) | undefined;
|
|
46
47
|
onBlur?: (() => any) | undefined;
|
|
47
48
|
onFocus?: (() => any) | undefined;
|
|
48
|
-
"onUpdate:modelValue"?: ((value: DateValue) => any) | undefined;
|
|
49
49
|
onClosed?: (() => any) | undefined;
|
|
50
50
|
}>, {
|
|
51
51
|
required: boolean;
|
|
@@ -97,17 +97,17 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
displayPrependIcon?: boolean | undefined;
|
|
99
99
|
}> & Readonly<{
|
|
100
|
-
"onUpdate:model-value"?: ((value: string | null) => any) | undefined;
|
|
101
100
|
onBlur?: (() => any) | undefined;
|
|
102
101
|
onFocus?: (() => any) | undefined;
|
|
102
|
+
"onUpdate:model-value"?: ((value: string | null) => any) | undefined;
|
|
103
103
|
}>, {
|
|
104
104
|
validateOnSubmit: () => boolean;
|
|
105
105
|
focus: () => void;
|
|
106
106
|
blur: () => void;
|
|
107
107
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
108
|
-
"update:model-value": (value: string | null) => any;
|
|
109
108
|
blur: () => any;
|
|
110
109
|
focus: () => any;
|
|
110
|
+
"update:model-value": (value: string | null) => any;
|
|
111
111
|
}, import('vue').PublicProps, {
|
|
112
112
|
required: boolean;
|
|
113
113
|
modelValue: string | null;
|
|
@@ -140,6 +140,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
140
140
|
readonly appendIcon?: import('../Customs/SyTextField/types').IconType;
|
|
141
141
|
readonly prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
142
142
|
readonly appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
143
|
+
readonly prependTooltip?: string | undefined;
|
|
144
|
+
readonly appendTooltip?: string | undefined;
|
|
145
|
+
readonly tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
|
|
143
146
|
readonly variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
|
|
144
147
|
readonly color?: import('../Customs/SyTextField/types').ColorType | undefined;
|
|
145
148
|
readonly isClearable?: boolean | undefined;
|
|
@@ -190,17 +193,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
190
193
|
readonly width?: string | number | undefined;
|
|
191
194
|
readonly displayAsterisk?: boolean | undefined;
|
|
192
195
|
readonly noIcon?: boolean | undefined;
|
|
193
|
-
readonly customRules?:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}[] | undefined;
|
|
197
|
-
readonly customWarningRules?: {
|
|
198
|
-
type: string;
|
|
199
|
-
options: RuleOptions;
|
|
200
|
-
}[] | undefined;
|
|
196
|
+
readonly customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
197
|
+
readonly customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
198
|
+
readonly customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
201
199
|
readonly showSuccessMessages?: boolean | undefined;
|
|
200
|
+
readonly isValidateOnBlur?: boolean | undefined;
|
|
201
|
+
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
202
202
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
203
|
-
readonly "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
204
203
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
205
204
|
readonly "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
206
205
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -216,7 +215,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
216
215
|
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
217
216
|
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
|
|
218
217
|
$host: Element | null;
|
|
219
|
-
$emit: ((event: "
|
|
218
|
+
$emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "clear", ...args: any[]) => void) & ((event: "prepend-icon-click", ...args: any[]) => void) & ((event: "append-icon-click", ...args: any[]) => void);
|
|
220
219
|
$el: any;
|
|
221
220
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
222
221
|
modelValue?: string | number | null | undefined;
|
|
@@ -224,6 +223,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
224
223
|
appendIcon?: import('../Customs/SyTextField/types').IconType;
|
|
225
224
|
prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
226
225
|
appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
226
|
+
prependTooltip?: string | undefined;
|
|
227
|
+
appendTooltip?: string | undefined;
|
|
228
|
+
tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
|
|
227
229
|
variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
|
|
228
230
|
color?: import('../Customs/SyTextField/types').ColorType | undefined;
|
|
229
231
|
isClearable?: boolean | undefined;
|
|
@@ -274,29 +276,33 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
274
276
|
width?: string | number | undefined;
|
|
275
277
|
displayAsterisk?: boolean | undefined;
|
|
276
278
|
noIcon?: boolean | undefined;
|
|
277
|
-
customRules?:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}[] | undefined;
|
|
281
|
-
customWarningRules?: {
|
|
282
|
-
type: string;
|
|
283
|
-
options: RuleOptions;
|
|
284
|
-
}[] | undefined;
|
|
279
|
+
customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
280
|
+
customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
281
|
+
customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
285
282
|
showSuccessMessages?: boolean | undefined;
|
|
283
|
+
isValidateOnBlur?: boolean | undefined;
|
|
286
284
|
}> & Readonly<{
|
|
285
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
287
286
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
288
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
289
287
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
290
288
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
291
289
|
}>, {
|
|
292
|
-
|
|
290
|
+
validation: {
|
|
291
|
+
errors: import('vue').Ref<string[], string[]>;
|
|
292
|
+
warnings: import('vue').Ref<string[], string[]>;
|
|
293
|
+
successes: import('vue').Ref<string[], string[]>;
|
|
294
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
295
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
296
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
297
|
+
validateField: (value: unknown, rules?: import('../../composables/validation/useValidation').ValidationRule[], warningRules?: import('../../composables/validation/useValidation').ValidationRule[], successRules?: import('../../composables/validation/useValidation').ValidationRule[]) => import('../../composables/validation/useValidation').ValidationResult;
|
|
298
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
299
|
+
clearValidation: () => void;
|
|
300
|
+
};
|
|
293
301
|
validateOnSubmit: () => boolean;
|
|
294
|
-
|
|
295
|
-
warnings: import('vue').Ref<string[], string[]>;
|
|
296
|
-
successes: import('vue').Ref<string[], string[]>;
|
|
302
|
+
checkErrorOnBlur: () => void;
|
|
297
303
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
304
|
+
"update:modelValue": (...args: any[]) => void;
|
|
298
305
|
clear: (...args: any[]) => void;
|
|
299
|
-
"update:model-value": (...args: any[]) => void;
|
|
300
306
|
"prepend-icon-click": (...args: any[]) => void;
|
|
301
307
|
"append-icon-click": (...args: any[]) => void;
|
|
302
308
|
}, string, {
|
|
@@ -305,6 +311,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
305
311
|
appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
306
312
|
prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
307
313
|
appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
314
|
+
prependTooltip: string;
|
|
315
|
+
appendTooltip: string;
|
|
316
|
+
tooltipLocation: "top" | "bottom" | "start" | "end";
|
|
308
317
|
variantStyle: import('../Customs/SyTextField/types').VariantStyle;
|
|
309
318
|
color: import('../Customs/SyTextField/types').ColorType;
|
|
310
319
|
isClearable: boolean;
|
|
@@ -353,15 +362,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
353
362
|
width: string | number;
|
|
354
363
|
displayAsterisk: boolean;
|
|
355
364
|
noIcon: boolean;
|
|
356
|
-
customRules:
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}[];
|
|
360
|
-
customWarningRules: {
|
|
361
|
-
type: string;
|
|
362
|
-
options: RuleOptions;
|
|
363
|
-
}[];
|
|
365
|
+
customRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
366
|
+
customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
367
|
+
customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
364
368
|
showSuccessMessages: boolean;
|
|
369
|
+
isValidateOnBlur: boolean;
|
|
365
370
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
366
371
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
367
372
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -388,6 +393,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
388
393
|
appendIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
389
394
|
prependInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
390
395
|
appendInnerIcon: "error" | "warning" | "info" | "success" | "close" | "calendar";
|
|
396
|
+
prependTooltip: string;
|
|
397
|
+
appendTooltip: string;
|
|
398
|
+
tooltipLocation: "top" | "bottom" | "start" | "end";
|
|
391
399
|
variantStyle: import('../Customs/SyTextField/types').VariantStyle;
|
|
392
400
|
color: import('../Customs/SyTextField/types').ColorType;
|
|
393
401
|
isClearable: boolean;
|
|
@@ -436,21 +444,20 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
436
444
|
width: string | number;
|
|
437
445
|
displayAsterisk: boolean;
|
|
438
446
|
noIcon: boolean;
|
|
439
|
-
customRules:
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}[];
|
|
443
|
-
customWarningRules: {
|
|
444
|
-
type: string;
|
|
445
|
-
options: RuleOptions;
|
|
446
|
-
}[];
|
|
447
|
+
customRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
448
|
+
customWarningRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
449
|
+
customSuccessRules: import('../../composables/validation/useValidation').ValidationRule[];
|
|
447
450
|
showSuccessMessages: boolean;
|
|
451
|
+
isValidateOnBlur: boolean;
|
|
448
452
|
}> & Omit<Readonly<{
|
|
449
453
|
modelValue?: string | number | null | undefined;
|
|
450
454
|
prependIcon?: import('../Customs/SyTextField/types').IconType;
|
|
451
455
|
appendIcon?: import('../Customs/SyTextField/types').IconType;
|
|
452
456
|
prependInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
453
457
|
appendInnerIcon?: import('../Customs/SyTextField/types').IconType;
|
|
458
|
+
prependTooltip?: string | undefined;
|
|
459
|
+
appendTooltip?: string | undefined;
|
|
460
|
+
tooltipLocation?: "top" | "bottom" | "start" | "end" | undefined;
|
|
454
461
|
variantStyle?: import('../Customs/SyTextField/types').VariantStyle | undefined;
|
|
455
462
|
color?: import('../Customs/SyTextField/types').ColorType | undefined;
|
|
456
463
|
isClearable?: boolean | undefined;
|
|
@@ -501,26 +508,30 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
501
508
|
width?: string | number | undefined;
|
|
502
509
|
displayAsterisk?: boolean | undefined;
|
|
503
510
|
noIcon?: boolean | undefined;
|
|
504
|
-
customRules?:
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}[] | undefined;
|
|
508
|
-
customWarningRules?: {
|
|
509
|
-
type: string;
|
|
510
|
-
options: RuleOptions;
|
|
511
|
-
}[] | undefined;
|
|
511
|
+
customRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
512
|
+
customWarningRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
513
|
+
customSuccessRules?: import('../../composables/validation/useValidation').ValidationRule[] | undefined;
|
|
512
514
|
showSuccessMessages?: boolean | undefined;
|
|
515
|
+
isValidateOnBlur?: boolean | undefined;
|
|
513
516
|
}> & Readonly<{
|
|
517
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
514
518
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
515
|
-
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
516
519
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
517
520
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
518
|
-
}>, "
|
|
519
|
-
|
|
521
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("modelValue" | "prependIcon" | "appendIcon" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "color" | "isClearable" | "label" | "errorMessages" | "warningMessages" | "successMessages" | "isReadOnly" | "isActive" | "baseColor" | "bgColor" | "centerAffix" | "counter" | "counterValue" | "density" | "direction" | "isDirty" | "isDisabled" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "id" | "loading" | "maxErrors" | "maxWidth" | "messages" | "minWidth" | "name" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "placeholder" | "prefix" | "isReversed" | "role" | "rounded" | "isOnSingleLine" | "suffix" | "theme" | "isTiled" | "type" | "width" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur")> & import('vue').ShallowUnwrapRef<{
|
|
522
|
+
validation: {
|
|
523
|
+
errors: import('vue').Ref<string[], string[]>;
|
|
524
|
+
warnings: import('vue').Ref<string[], string[]>;
|
|
525
|
+
successes: import('vue').Ref<string[], string[]>;
|
|
526
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
527
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
528
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
529
|
+
validateField: (value: unknown, rules?: import('../../composables/validation/useValidation').ValidationRule[], warningRules?: import('../../composables/validation/useValidation').ValidationRule[], successRules?: import('../../composables/validation/useValidation').ValidationRule[]) => import('../../composables/validation/useValidation').ValidationResult;
|
|
530
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
531
|
+
clearValidation: () => void;
|
|
532
|
+
};
|
|
520
533
|
validateOnSubmit: () => boolean;
|
|
521
|
-
|
|
522
|
-
warnings: import('vue').Ref<string[], string[]>;
|
|
523
|
-
successes: import('vue').Ref<string[], string[]>;
|
|
534
|
+
checkErrorOnBlur: () => void;
|
|
524
535
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
525
536
|
$slots: {
|
|
526
537
|
prepend?(_: {}): any;
|
|
@@ -560,9 +571,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
560
571
|
}[] | undefined;
|
|
561
572
|
displayPrependIcon?: boolean | undefined;
|
|
562
573
|
}> & Readonly<{
|
|
563
|
-
"onUpdate:model-value"?: ((value: string | null) => any) | undefined;
|
|
564
574
|
onBlur?: (() => any) | undefined;
|
|
565
575
|
onFocus?: (() => any) | undefined;
|
|
576
|
+
"onUpdate:model-value"?: ((value: string | null) => any) | undefined;
|
|
566
577
|
}>, {
|
|
567
578
|
validateOnSubmit: () => boolean;
|
|
568
579
|
focus: () => void;
|