@cnamts/synapse 1.1.0 → 1.1.1
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/{AutocompleteFilter-DXd4szWO.js → AutocompleteFilter-CGF33skz.js} +1 -1
- package/dist/{DateFilter-BD59Kgwf.js → DateFilter-D7-MsKtx.js} +1 -1
- package/dist/{NumberFilter-BSMZE7uw.js → NumberFilter-bjQPPfsj.js} +1 -1
- package/dist/{PeriodFilter-keUdSSk0.js → PeriodFilter-B3wJpK8-.js} +1 -1
- package/dist/{SelectFilter-Dhvvwazl.js → SelectFilter-BN6DbKAV.js} +1 -1
- package/dist/{TextFilter-CU8FpXz0.js → TextFilter-BffP0J2f.js} +1 -1
- package/dist/{apLightTheme2026-DbS7BPUf.js → apLightTheme2026-C4ygwMHC.js} +11 -11
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +6 -6
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +6 -6
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +6 -6
- package/dist/components/Captcha/Captcha.d.ts +27 -16
- package/dist/components/Captcha/CaptchaForm.d.ts +29 -3
- package/dist/components/Captcha/types.d.ts +14 -0
- package/dist/components/Captcha/useCaptchaValidation.d.ts +37 -0
- package/dist/components/Customs/Selects/SelectBtnField/SelectBtnField.d.ts +33 -13
- package/dist/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.d.ts +23 -0
- package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +2 -2
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +2 -2
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +17 -48
- package/dist/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.d.ts +29 -0
- package/dist/components/Customs/SyCheckBoxGroup/types.d.ts +46 -0
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +16 -51
- package/dist/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.d.ts +27 -0
- package/dist/components/Customs/SyCheckbox/types.d.ts +49 -0
- package/dist/components/Customs/SyTextField/FieldState.d.ts +5 -0
- package/dist/components/Customs/SyTextField/useSyTextFieldValidation.d.ts +3 -3
- package/dist/components/DialogBox/DialogBox.d.ts +2 -0
- package/dist/components/DialogBox/locales.d.ts +1 -0
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +4 -0
- package/dist/components/LunarCalendar/LunarCalendar.d.ts +43 -14
- package/dist/components/LunarCalendar/types.d.ts +35 -0
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +11 -12
- package/dist/components/MonthPicker/MonthPicker.d.ts +72 -1747
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +21 -1733
- package/dist/components/MonthPicker/MonthPickerText/useTextField.d.ts +5 -0
- package/dist/components/MonthPicker/locales.d.ts +1 -0
- package/dist/components/MonthPicker/types.d.ts +11 -0
- package/dist/components/MonthPicker/useMonthPickerValidation.d.ts +37 -24
- package/dist/components/NirField/NirField.d.ts +6 -4
- package/dist/components/NirField/useNirValidation.d.ts +7 -5
- package/dist/components/PageContainer/PageContainer.d.ts +8 -0
- package/dist/components/PasswordField/PasswordField.d.ts +2 -2
- package/dist/components/PasswordField/usePasswordFieldValidation.d.ts +2 -2
- package/dist/components/PhoneField/PhoneField.d.ts +960 -1938
- package/dist/components/PhoneField/indicatifs.d.ts +715 -8
- package/dist/components/PhoneField/locales.d.ts +7 -0
- package/dist/components/PhoneField/types.d.ts +29 -0
- package/dist/components/PhoneField/usePhoneFieldValidation.d.ts +45 -0
- package/dist/components/PhoneField/usePhoneIndicatifs.d.ts +947 -0
- package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +2 -2
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +1 -1
- package/dist/composables/unifyValidation/useValidation.d.ts +4 -5
- package/dist/design-system-v3.js +2 -2
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +10 -10
- package/dist/designTokens/tokens/baseTokens.d.ts +18 -18
- package/dist/designTokens/tokens/cnam/cnamLightTheme.d.ts +10 -10
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +10 -10
- package/dist/designTokens/tokens/semanticTokens.d.ts +14 -14
- package/dist/{main-D8ryUoS5.js → main-C4wAktOs.js} +13718 -12991
- package/dist/synapse.css +1 -1
- package/dist/vuetifyConfig.js +1 -1
- package/package.json +7 -7
- package/src/assets/compat/_legacy-tokens.scss +91 -0
- package/src/assets/overrides/_utilities.scss +23 -0
- package/src/components/Accordion/Accordion.stories.ts +121 -1
- package/src/components/BackBtn/BackBtn.mdx +1 -1
- package/src/components/BackToTopBtn/BackToTopBtn.mdx +0 -1
- package/src/components/Captcha/Captcha.stories.ts +134 -31
- package/src/components/Captcha/Captcha.vue +95 -28
- package/src/components/Captcha/CaptchaForm.vue +51 -22
- package/src/components/Captcha/tests/Captcha.focus.spec.ts +214 -0
- package/src/components/Captcha/tests/Captcha.spec.ts +233 -24
- package/src/components/Captcha/tests/CaptchaForm.spec.ts +82 -0
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +16 -42
- package/src/components/Captcha/types.ts +15 -0
- package/src/components/Captcha/useCaptchaValidation.ts +87 -0
- package/src/components/Captcha/validation/validation.stories.ts +1194 -0
- package/src/components/ChipList/ChipList.mdx +0 -1
- package/src/components/CollapsibleList/CollapsibleList.mdx +0 -1
- package/src/components/CookieBanner/CookieBanner.mdx +0 -1
- package/src/components/CopyBtn/CopyBtn.mdx +0 -1
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.stories.ts +123 -439
- package/src/components/Customs/Selects/SelectBtnField/SelectBtnField.vue +147 -41
- package/src/components/Customs/Selects/SelectBtnField/Validation/Validation.stories.ts +600 -0
- package/src/components/Customs/Selects/SelectBtnField/composables/useSelectBtnFieldValidation.ts +87 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.spec.ts +402 -33
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/SelectBtnField.spec.ts.snap +52 -38
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.stories.ts +342 -162
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +77 -129
- package/src/components/Customs/SyCheckBoxGroup/Validation/Validation.stories.ts +1008 -0
- package/src/components/Customs/SyCheckBoxGroup/composables/useSyCheckBoxGroupValidation.ts +107 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.spec.ts +180 -7
- package/src/components/Customs/SyCheckBoxGroup/types.ts +49 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +41 -161
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +71 -148
- package/src/components/Customs/SyCheckbox/Validation/Validation.stories.ts +654 -0
- package/src/components/Customs/SyCheckbox/composables/useSyCheckboxValidation.ts +105 -0
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.spec.ts +106 -0
- package/src/components/Customs/SyCheckbox/tests/useSyCheckboxValidation.spec.ts +98 -0
- package/src/components/Customs/SyCheckbox/types.ts +51 -0
- package/src/components/Customs/SyTextField/FieldState.vue +50 -0
- package/src/components/Customs/SyTextField/SyTextField.vue +12 -9
- package/src/components/Customs/SyTextField/useSyTextFieldValidation.ts +2 -11
- package/src/components/DataList/DataList.mdx +0 -1
- package/src/components/DataListGroup/DataListGroup.mdx +0 -1
- package/src/components/DiacriticPicker/DiacriticPicker.mdx +0 -1
- package/src/components/DialogBox/DialogBox.mdx +0 -1
- package/src/components/DialogBox/DialogBox.stories.ts +399 -4
- package/src/components/DialogBox/DialogBox.vue +20 -0
- package/src/components/DialogBox/locales.ts +1 -0
- package/src/components/DialogBox/tests/DialogBox.spec.ts +73 -0
- package/src/components/DialogBox/tests/DialogBox.visual.cy.ts +24 -0
- package/src/components/ErrorPage/ErrorPage.mdx +1 -1
- package/src/components/ExternalLinks/ExternalLinks.mdx +0 -1
- package/src/components/FileList/FileList.mdx +0 -1
- package/src/components/FilterInline/FilterInline.mdx +0 -1
- package/src/components/FilterSideBar/FilterSideBar.mdx +8 -1
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +133 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +19 -2
- package/src/components/FilterSideBar/tests/FilterSideBar.spec.ts +55 -0
- package/src/components/FooterBar/FooterBar.mdx +0 -1
- package/src/components/FranceConnectBtn/FranceConnectBtn.mdx +0 -1
- package/src/components/HeaderBar/HeaderBar.mdx +0 -1
- package/src/components/HeaderLoading/HeaderLoading.mdx +0 -1
- package/src/components/LangBtn/LangBtn.mdx +0 -1
- package/src/components/Logo/Logo.mdx +1 -1
- package/src/components/LunarCalendar/LunarCalendar.mdx +6 -9
- package/src/components/LunarCalendar/LunarCalendar.stories.ts +243 -46
- package/src/components/LunarCalendar/LunarCalendar.vue +61 -26
- package/src/components/LunarCalendar/Validation/Validation.stories.ts +717 -0
- package/src/components/LunarCalendar/tests/LunarCalendar.a11y.spec.ts +1 -1
- package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +197 -6
- package/src/components/LunarCalendar/tests/useLunarCalendarValidation.spec.ts +287 -0
- package/src/components/LunarCalendar/types.ts +39 -0
- package/src/components/LunarCalendar/useLunarCalendarValidation.ts +115 -39
- package/src/components/MonthPicker/MonthPicker.stories.ts +38 -281
- package/src/components/MonthPicker/MonthPicker.vue +66 -17
- package/src/components/MonthPicker/MonthPickerText/MonthPickerInput.vue +44 -20
- package/src/components/MonthPicker/MonthPickerText/useTextField.ts +5 -0
- package/src/components/MonthPicker/Validation/Validation.stories.ts +1117 -0
- package/src/components/MonthPicker/locales.ts +1 -0
- package/src/components/MonthPicker/tests/MonthPicker.spec.ts +353 -2
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +12 -8
- package/src/components/MonthPicker/types.ts +16 -0
- package/src/components/MonthPicker/useMonthPickerValidation.ts +64 -27
- package/src/components/NirField/NirField.mdx +120 -66
- package/src/components/NirField/NirField.stories.ts +216 -0
- package/src/components/NirField/useNirValidation.ts +16 -17
- package/src/components/NotFoundPage/tests/__snapshots__/NotFoundPage.spec.ts.snap +263 -245
- package/src/components/NotificationBar/NotificationBar.mdx +0 -1
- package/src/components/PageContainer/PageContainer.mdx +0 -1
- package/src/components/PageContainer/PageContainer.stories.ts +170 -2
- package/src/components/PageContainer/PageContainer.vue +63 -8
- package/src/components/PageContainer/tests/__snapshots__/PageContainer.spec.ts.snap +19 -11
- package/src/components/PaginatedTable/PaginatedTable.mdx +0 -1
- package/src/components/PeriodField/PeriodField.mdx +0 -1
- package/src/components/PhoneField/PhoneField.mdx +2 -3
- package/src/components/PhoneField/PhoneField.stories.ts +227 -410
- package/src/components/PhoneField/PhoneField.vue +204 -438
- package/src/components/PhoneField/indicatifs.ts +1 -1
- package/src/components/PhoneField/locales.ts +7 -0
- package/src/components/PhoneField/tests/PhoneField.a11y.spec.ts +0 -1
- package/src/components/PhoneField/tests/PhoneField.spec.ts +517 -220
- package/src/components/PhoneField/types.ts +30 -0
- package/src/components/PhoneField/usePhoneFieldValidation.ts +119 -0
- package/src/components/PhoneField/usePhoneIndicatifs.ts +89 -0
- package/src/components/PhoneField/validation/validation.stories.ts +717 -0
- package/src/components/RangeField/RangeField.mdx +0 -1
- package/src/components/RatingPicker/RatingPicker.mdx +0 -1
- package/src/components/SocialMediaLinks/SocialMediaLinks.mdx +0 -1
- package/src/components/StatusPage/StatusPage.vue +1 -0
- package/src/components/StatusPage/tests/__snapshots__/StatusPage.spec.ts.snap +248 -230
- package/src/components/SubHeader/SubHeader.mdx +5 -6
- package/src/components/Tables/common/tests/SyTableFilter.spec.ts +11 -12
- package/src/components/UploadWorkflow/UploadWorkflow.mdx +0 -1
- package/src/components/UserMenuBtn/UserMenuBtn.mdx +0 -1
- package/src/components/UserMenuBtn/UserMenuBtn.stories.ts +177 -0
- package/src/composables/unifyValidation/documentationValidationProps.ts +1 -1
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +13 -1
- package/src/composables/unifyValidation/useValidation.ts +37 -33
- package/src/composantsVuetify/VCard/VCard.mdx +4 -0
- package/src/composantsVuetify/VCard/v-card.stories.ts +93 -1
- package/src/composantsVuetify/VCarousel/VCarousel.mdx +74 -0
- package/src/composantsVuetify/VCarousel/v-carousel.stories.ts +531 -0
- package/src/composantsVuetify/VNavigationDrawer/VNavgationDrawer.mdx +53 -0
- package/src/composantsVuetify/VNavigationDrawer/v-navigation-drawer.stories.ts +310 -0
- package/src/composantsVuetify/VSlideGroup/VSlideGroup.mdx +105 -0
- package/src/composantsVuetify/VSlideGroup/v-slide-group.stories.ts +463 -0
- package/src/designTokens/tokens/baseColors.ts +1 -1
- package/src/designTokens/tokens/baseTokens.ts +18 -18
- package/src/stories/Components/Components.stories.ts +34 -1
- package/src/stories/Demarrer/Releases.stories.ts +16 -2
- package/src/stories/DesignTokens/Arrondis.mdx +1 -1
- package/src/stories/DesignTokens/Correspondances.mdx +219 -0
- package/src/stories/DesignTokens/UtiliserLesTokens.mdx +235 -0
- package/src/stories/DesignTokens/colors.stories.ts +569 -569
- package/src/stories/GuideDuDev/Amelipro.stories.ts +335 -267
- package/dist/components/LunarCalendar/useLunarCalendarRules.d.ts +0 -5
- package/dist/components/PhoneField/tests/types.d.ts +0 -18
- package/src/components/LunarCalendar/tests/useLunarCalendarRules.spec.ts +0 -184
- package/src/components/LunarCalendar/useLunarCalendarRules.ts +0 -96
- package/src/components/PhoneField/tests/types.d.ts +0 -19
|
@@ -2,20 +2,25 @@ export type TextFieldProps = {
|
|
|
2
2
|
label: string;
|
|
3
3
|
density?: 'default' | 'comfortable' | 'compact';
|
|
4
4
|
hint?: string | false;
|
|
5
|
+
helpText?: string;
|
|
5
6
|
placeholder?: string;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
readonly?: boolean;
|
|
9
|
+
clearable?: boolean;
|
|
8
10
|
};
|
|
9
11
|
export declare const defaultTextFieldProps: {
|
|
10
12
|
readonly density: "default";
|
|
11
13
|
readonly disabled: false;
|
|
12
14
|
readonly readonly: false;
|
|
15
|
+
readonly clearable: false;
|
|
13
16
|
};
|
|
14
17
|
export declare function useTextField(props: TextFieldProps): import('vue').ComputedRef<{
|
|
15
18
|
label: string;
|
|
16
19
|
density: "default" | "comfortable" | "compact" | undefined;
|
|
17
20
|
hint: string | undefined;
|
|
21
|
+
helpText: string | undefined;
|
|
18
22
|
placeholder: string | undefined;
|
|
19
23
|
disabled: boolean | undefined;
|
|
20
24
|
readonly: boolean | undefined;
|
|
25
|
+
clearable: boolean | undefined;
|
|
21
26
|
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextFieldProps } from './MonthPickerText/useTextField';
|
|
2
|
+
import { MonthPickerVisualProps } from './MonthPickerVisual/MonthPickerVisualProps';
|
|
3
|
+
import { FieldValidationProps } from '../../composables/unifyValidation/useValidation';
|
|
4
|
+
import { locales as defaultLocales } from './locales';
|
|
5
|
+
export type MonthPickerProps = TextFieldProps & FieldValidationProps & Partial<MonthPickerVisualProps> & {
|
|
6
|
+
modelValue?: string;
|
|
7
|
+
locales?: typeof defaultLocales;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
displayAsterisk?: boolean;
|
|
11
|
+
};
|
|
@@ -1,25 +1,38 @@
|
|
|
1
|
-
import { ValidationRule } from '../../composables/validation/useValidation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { ValidationRule as SyValidationRule } from '../../composables/validation/useValidation';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { ValidationRule as VuetifyValidationRule } from 'vuetify';
|
|
4
|
+
import { locales } from './locales';
|
|
5
|
+
export declare function useMonthPickerValidation(args: {
|
|
6
|
+
modelValue: Ref<unknown>;
|
|
7
|
+
readonly: Ref<boolean>;
|
|
8
|
+
disabled: Ref<boolean>;
|
|
9
|
+
required: Ref<boolean>;
|
|
10
|
+
isValidateOnBlur: Ref<boolean>;
|
|
11
|
+
showSuccessMessages: Ref<boolean>;
|
|
12
|
+
disableErrorHandling: Ref<boolean>;
|
|
13
|
+
useVuetifyValidation: Ref<boolean>;
|
|
14
|
+
label: Ref<string | undefined>;
|
|
15
|
+
rules: Ref<VuetifyValidationRule[] | undefined>;
|
|
16
|
+
customRules: Ref<SyValidationRule[]>;
|
|
17
|
+
customWarningRules?: Ref<SyValidationRule[]>;
|
|
18
|
+
customSuccessRules?: Ref<SyValidationRule[]>;
|
|
19
|
+
errorMessages?: Ref<string[] | null | undefined>;
|
|
20
|
+
warningMessages?: Ref<string[] | null | undefined>;
|
|
21
|
+
successMessages?: Ref<string[] | null | undefined>;
|
|
22
|
+
hasErrorProp?: Ref<boolean>;
|
|
23
|
+
hasWarningProp?: Ref<boolean>;
|
|
24
|
+
hasSuccessProp?: Ref<boolean>;
|
|
25
|
+
maxErrors?: Ref<number>;
|
|
26
|
+
focused: Ref<boolean>;
|
|
27
|
+
locales: Ref<typeof locales>;
|
|
28
|
+
}): {
|
|
29
|
+
errors: import('vue').ComputedRef<string[]>;
|
|
30
|
+
warnings: import('vue').ComputedRef<string[]>;
|
|
31
|
+
successes: import('vue').ComputedRef<string[]>;
|
|
32
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
33
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
34
|
+
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
35
|
+
state: import('vue').ComputedRef<"default" | "success" | "warning" | "error">;
|
|
36
|
+
validate: () => Promise<boolean>;
|
|
37
|
+
clearValidation: () => void;
|
|
13
38
|
};
|
|
14
|
-
export declare function useMonthPickerValidation(props: ValidationProps): import('vue').ComputedRef<{
|
|
15
|
-
customRules: ValidationRule[] | undefined;
|
|
16
|
-
customWarningRules: ValidationRule[] | undefined;
|
|
17
|
-
customSuccessRules: ValidationRule[] | undefined;
|
|
18
|
-
errorMessages: string[] | null | undefined;
|
|
19
|
-
warningMessages: string[] | null | undefined;
|
|
20
|
-
successMessages: string[] | null | undefined;
|
|
21
|
-
hasError: boolean | undefined;
|
|
22
|
-
hasWarning: boolean | undefined;
|
|
23
|
-
hasSuccess: boolean | undefined;
|
|
24
|
-
showSuccessMessages: boolean | undefined;
|
|
25
|
-
}>;
|
|
@@ -59,9 +59,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
59
59
|
errors: import('vue').ComputedRef<string[]>;
|
|
60
60
|
warnings: import('vue').ComputedRef<string[]>;
|
|
61
61
|
successes: import('vue').ComputedRef<string[]>;
|
|
62
|
-
hasError: import('vue').ComputedRef<boolean
|
|
63
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
62
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
63
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
64
64
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
65
|
+
state: import('vue').ComputedRef<"default" | "success" | "warning" | "error">;
|
|
65
66
|
validate: () => Promise<boolean>;
|
|
66
67
|
clearValidation: () => void;
|
|
67
68
|
};
|
|
@@ -69,9 +70,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
69
70
|
errors: import('vue').ComputedRef<string[]>;
|
|
70
71
|
warnings: import('vue').ComputedRef<string[]>;
|
|
71
72
|
successes: import('vue').ComputedRef<string[]>;
|
|
72
|
-
hasError: import('vue').ComputedRef<boolean
|
|
73
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
73
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
74
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
74
75
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
76
|
+
state: import('vue').ComputedRef<"default" | "success" | "warning" | "error">;
|
|
75
77
|
validate: () => Promise<boolean>;
|
|
76
78
|
clearValidation: () => void;
|
|
77
79
|
};
|
|
@@ -36,9 +36,10 @@ export declare function useNirValidation(numberValue: Ref<string>, keyValue: Ref
|
|
|
36
36
|
errors: import('vue').ComputedRef<string[]>;
|
|
37
37
|
warnings: import('vue').ComputedRef<string[]>;
|
|
38
38
|
successes: import('vue').ComputedRef<string[]>;
|
|
39
|
-
hasError: import('vue').ComputedRef<boolean
|
|
40
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
39
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
40
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
41
41
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
42
|
+
state: import('vue').ComputedRef<"default" | "success" | "warning" | "error">;
|
|
42
43
|
validate: () => Promise<boolean>;
|
|
43
44
|
clearValidation: () => void;
|
|
44
45
|
};
|
|
@@ -46,13 +47,14 @@ export declare function useNirValidation(numberValue: Ref<string>, keyValue: Ref
|
|
|
46
47
|
errors: import('vue').ComputedRef<string[]>;
|
|
47
48
|
warnings: import('vue').ComputedRef<string[]>;
|
|
48
49
|
successes: import('vue').ComputedRef<string[]>;
|
|
49
|
-
hasError: import('vue').ComputedRef<boolean
|
|
50
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
50
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
51
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
51
52
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
53
|
+
state: import('vue').ComputedRef<"default" | "success" | "warning" | "error">;
|
|
52
54
|
validate: () => Promise<boolean>;
|
|
53
55
|
clearValidation: () => void;
|
|
54
56
|
};
|
|
55
57
|
validateFields: (onBlur?: boolean) => Promise<boolean>;
|
|
56
|
-
hasFieldErrors: import('vue').ComputedRef<boolean
|
|
58
|
+
hasFieldErrors: import('vue').ComputedRef<boolean>;
|
|
57
59
|
clearValidation: () => void;
|
|
58
60
|
};
|
|
@@ -6,11 +6,18 @@ type __VLS_Props = {
|
|
|
6
6
|
uniqueId?: string;
|
|
7
7
|
role?: AriaRole;
|
|
8
8
|
ariaLabelledby?: string;
|
|
9
|
+
alignCenter?: boolean;
|
|
9
10
|
};
|
|
10
11
|
declare function __VLS_template(): {
|
|
11
12
|
attrs: Partial<{}>;
|
|
12
13
|
slots: {
|
|
14
|
+
prepend?(_: {
|
|
15
|
+
width: string;
|
|
16
|
+
}): any;
|
|
13
17
|
default?(_: {}): any;
|
|
18
|
+
append?(_: {
|
|
19
|
+
width: string;
|
|
20
|
+
}): any;
|
|
14
21
|
};
|
|
15
22
|
refs: {};
|
|
16
23
|
rootEl: HTMLDivElement;
|
|
@@ -26,6 +33,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
26
33
|
spacing: "xl" | "lg" | "md" | "sm" | "xs";
|
|
27
34
|
uniqueId: string;
|
|
28
35
|
ariaLabelledby: string;
|
|
36
|
+
alignCenter: boolean;
|
|
29
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
30
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
39
|
export default _default;
|
|
@@ -3,8 +3,8 @@ declare const _default: import('vue').DefineComponent<PasswordFieldProps, {
|
|
|
3
3
|
errors: import('vue').ComputedRef<string[]>;
|
|
4
4
|
warnings: import('vue').ComputedRef<string[]>;
|
|
5
5
|
successes: import('vue').ComputedRef<string[]>;
|
|
6
|
-
hasError: import('vue').ComputedRef<boolean
|
|
7
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
6
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
7
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
8
8
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
9
9
|
validateOnSubmit: () => Promise<boolean>;
|
|
10
10
|
clearValidation: () => void;
|
|
@@ -28,8 +28,8 @@ export declare function usePasswordField(params: {
|
|
|
28
28
|
errors: import('vue').ComputedRef<string[]>;
|
|
29
29
|
warnings: import('vue').ComputedRef<string[]>;
|
|
30
30
|
successes: import('vue').ComputedRef<string[]>;
|
|
31
|
-
hasError: import('vue').ComputedRef<boolean
|
|
32
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
31
|
+
hasError: import('vue').ComputedRef<boolean>;
|
|
32
|
+
hasWarning: import('vue').ComputedRef<boolean>;
|
|
33
33
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
34
34
|
validationIcon: import('vue').ComputedRef<string>;
|
|
35
35
|
validationColor: import('vue').ComputedRef<"error" | "onSuccessVariant" | "onWarningVariant" | "rgb(var(--v-theme-onSurface))">;
|