@cnamts/synapse 1.0.5 → 1.0.6
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/{DateFilter-BQpRKTju.js → DateFilter-BlOpwEVq.js} +1 -1
- package/dist/{NumberFilter-BykSKt2D.js → NumberFilter-BPUXE4wY.js} +1 -1
- package/dist/{PeriodFilter-Cks6NygV.js → PeriodFilter-B2yx329_.js} +1 -1
- package/dist/{SelectFilter-DEL5dHd_.js → SelectFilter-CedKn1oV.js} +1 -1
- package/dist/{TextFilter-0RAFj7Oe.js → TextFilter-DkhJjRtR.js} +1 -1
- package/dist/components/Amelipro/AmeliproAccordion/AmeliproAccordion.d.ts +103 -0
- package/dist/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.d.ts +105 -0
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.d.ts +132 -0
- package/dist/components/Amelipro/AmeliproCaptcha/types.d.ts +5 -0
- package/dist/components/Amelipro/AmeliproCard/AmeliproCard.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.d.ts +126 -0
- package/dist/components/Amelipro/AmeliproCustomSelector/types.d.ts +6 -0
- package/dist/components/Amelipro/AmeliproIllustratedDataTile/AmeliproIllustratedDataTile.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproMultipleFoldingCard/AmeliproMultipleFoldingCard.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproTable/AmeliproTable.d.ts +190 -0
- package/dist/components/Amelipro/AmeliproTable/types.d.ts +34 -0
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +3 -3
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +1 -1
- package/dist/components/Amelipro/AmeliproTileBtn/AmeliproTileBtn.d.ts +1 -1
- package/dist/components/Amelipro/types.d.ts +6 -0
- package/dist/components/CookieBanner/CookieBanner.d.ts +1 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +11 -2
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.d.ts +6 -1
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +3 -1
- package/dist/components/DataList/DataList.d.ts +9 -0
- package/dist/components/DataListGroup/DataListGroup.d.ts +10 -1
- package/dist/components/DataListItem/DataListItem.d.ts +1 -1
- package/dist/components/DataListItem/config.d.ts +1 -1
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +18 -8
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +16 -6
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +6 -1
- package/dist/components/DatePicker/composables/useDateInputEditing.d.ts +17 -8
- package/dist/components/DatePicker/composables/useKeyboardEvents.d.ts +41 -0
- package/dist/components/DatePicker/composables/useManualDateValidation.d.ts +4 -9
- package/dist/components/DatePicker/utils/dateFormattingUtils.d.ts +72 -0
- package/dist/components/DatePicker/utils/validationUtils.d.ts +38 -0
- package/dist/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.d.ts +9 -3
- package/dist/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.d.ts +6 -1
- package/dist/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.d.ts +11 -1
- package/dist/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.d.ts +11 -1
- package/dist/components/HeaderBar/HeaderBurgerMenu/locals.d.ts +2 -0
- package/dist/components/HeaderBar/HeaderBurgerMenu/useMenuPosition.d.ts +4 -0
- package/dist/components/NirField/NirField.d.ts +14 -4
- package/dist/components/PeriodField/PeriodField.d.ts +24 -4
- package/dist/components/Tables/common/SyTablePagination.d.ts +10 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/usePagination.d.ts +16 -0
- package/dist/design-system-v3.js +165 -160
- package/dist/design-system-v3.umd.cjs +148 -166
- package/dist/directives/lockFocus.d.ts +17 -0
- package/dist/{main-Co2P_lBt.js → main-BXPFSAB4.js} +9970 -8811
- package/dist/style.css +1 -1
- package/package.json +4 -1
- package/src/assets/amelipro/apTheme.scss +149 -0
- package/src/assets/amelipro/apTokens.scss +0 -148
- package/src/assets/overrides/_btns.scss +15 -0
- package/src/assets/overrides/_container.scss +36 -0
- package/src/assets/overrides/_forms.scss +7 -0
- package/src/assets/{_spacers.scss → overrides/_spacers.scss} +0 -7
- package/src/assets/overrides/_tables.scss +18 -0
- package/src/assets/overrides/_tooltips.scss +10 -0
- package/src/assets/overrides/_typography.scss +196 -0
- package/src/assets/settings.scss +11 -51
- package/src/assets/themes.scss +10 -0
- package/src/assets/tokens.scss +9 -156
- package/src/components/Accordion/composables/__tests__/useAccordionGroupCommunication.spec.ts +80 -40
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.mdx +15 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.stories.ts +83 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordion.vue +86 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/AmeliproAccordionTemplate.vue +242 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/AmeliproAccordionTemplate.spec.ts +20 -0
- package/src/components/Amelipro/AmeliproAccordion/AmeliproAccordionTemplate/__tests__/__snapshots__/AmeliproAccordionTemplate.spec.ts.snap +124 -0
- package/src/components/Amelipro/AmeliproAccordion/__tests__/AmeliproAccordion.spec.ts +20 -0
- package/src/components/Amelipro/AmeliproAccordion/__tests__/__snapshots__/AmeliproAccordion.spec.ts.snap +124 -0
- package/src/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.mdx +15 -0
- package/src/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.stories.ts +87 -0
- package/src/components/Amelipro/AmeliproCaptcha/AmeliproCaptcha.vue +233 -0
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/AmeliproCaptcha.spec.ts +24 -0
- package/src/components/Amelipro/AmeliproCaptcha/__tests__/__snapshots__/AmeliproCaptcha.spec.ts.snap +384 -0
- package/src/components/Amelipro/AmeliproCaptcha/types.d.ts +5 -0
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.mdx +15 -0
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.stories.ts +143 -0
- package/src/components/Amelipro/AmeliproCustomSelector/AmeliproCustomSelector.vue +351 -0
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/AmeliproCustomSelector.spec.ts +50 -0
- package/src/components/Amelipro/AmeliproCustomSelector/__tests__/__snapshots__/AmeliproCustomSelector.spec.ts.snap +186 -0
- package/src/components/Amelipro/AmeliproCustomSelector/types.d.ts +6 -0
- package/src/components/Amelipro/AmeliproHeader/tests/__snapshots__/AmeliproHeader.spec.ts.snap +0 -707
- package/src/components/Amelipro/AmeliproPageLayout/tests/__snapshots__/AmeliproPageLayout.spec.ts.snap +0 -707
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.mdx +22 -0
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.stories.ts +550 -0
- package/src/components/Amelipro/AmeliproTable/AmeliproTable.vue +421 -0
- package/src/components/Amelipro/AmeliproTable/__tests__/AmeliproTable.spec.ts +72 -0
- package/src/components/Amelipro/AmeliproTable/__tests__/__snapshots__/AmeliproTable.spec.ts.snap +427 -0
- package/src/components/Amelipro/AmeliproTable/types.d.ts +34 -0
- package/src/components/Amelipro/ServiceMenu/ServiceMenu.vue +12 -1
- package/src/components/Amelipro/ServiceMenu/tests/__snapshots__/ServiceMenu.spec.ts.snap +0 -820
- package/src/components/Amelipro/types.ts +8 -0
- package/src/components/CollapsibleList/CollapsibleList.vue +0 -2
- package/src/components/CookieBanner/CookieBanner.vue +1 -3
- package/src/components/CopyBtn/CopyBtn.vue +9 -2
- package/src/components/CopyBtn/tests/CopyBtn.spec.ts +3 -1
- package/src/components/Customs/Selects/SySelect/Accessibilite.mdx +7 -0
- package/src/components/Customs/Selects/SySelect/Accessibilite.stories.ts +4 -1
- package/src/components/Customs/Selects/SySelect/SySelect.stories.ts +80 -0
- package/src/components/Customs/Selects/SySelect/SySelect.vue +280 -34
- package/src/components/Customs/Selects/SySelect/composables/tests/useSySelectKeyboard.spec.ts +14 -5
- package/src/components/Customs/Selects/SySelect/composables/useSySelectKeyboard.ts +129 -12
- package/src/components/Customs/SyIcon/SyIcon.spec.ts +3 -0
- package/src/components/Customs/SyTextField/Accessibilite.stories.ts +3 -1
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +79 -6
- package/src/components/Customs/SyTextField/SyTextField.vue +218 -24
- package/src/components/DataList/Accessibilite.stories.ts +4 -0
- package/src/components/DataList/DataList.vue +19 -12
- package/src/components/DataListGroup/Accessibilite.stories.ts +4 -0
- package/src/components/DataListGroup/DataListGroup.vue +32 -15
- package/src/components/DataListItem/DataListItem.vue +14 -11
- package/src/components/DataListItem/config.ts +1 -1
- package/src/components/DataListItem/tests/DataListItem.spec.ts +2 -2
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +12 -7
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +174 -0
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +27 -5
- package/src/components/DatePicker/DatePickerValidationExample/DatePickerValidation.stories.ts +286 -0
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +29 -31
- package/src/components/DatePicker/composables/tests/useManualDateValidation.spec.ts +11 -3
- package/src/components/DatePicker/composables/useDateInputEditing.ts +73 -209
- package/src/components/DatePicker/composables/useKeyboardEvents.ts +149 -0
- package/src/components/DatePicker/composables/useManualDateValidation.ts +27 -68
- package/src/components/DatePicker/utils/dateFormattingUtils.ts +228 -0
- package/src/components/DatePicker/utils/validationUtils.ts +90 -0
- package/src/components/DialogBox/Accessibilite.stories.ts +4 -0
- package/src/components/DialogBox/DialogBox.stories.ts +10 -10
- package/src/components/DialogBox/DialogBox.vue +83 -21
- package/src/components/DialogBox/tests/__snapshots__/DialogBox.spec.ts.snap +12 -6
- package/src/components/FileUpload/tests/FileUpload.spec.ts +3 -0
- package/src/components/FooterBar/FooterBar.vue +1 -0
- package/src/components/HeaderBar/Accessibilite.stories.ts +4 -0
- package/src/components/HeaderBar/HeaderBar.mdx +47 -22
- package/src/components/HeaderBar/HeaderBar.stories.ts +54 -13
- package/src/components/HeaderBar/HeaderBar.vue +2 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/Accessibilite.stories.ts +4 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.stories.ts +160 -82
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderBurgerMenu.vue +41 -56
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuItem/HeaderMenuItem.vue +10 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/HeaderMenuSection.vue +41 -18
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderMenuSection/tests/HeaderMenuSection.spec.ts +7 -2
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.stories.ts +36 -9
- package/src/components/HeaderBar/HeaderBurgerMenu/HeaderSubMenu/HeaderSubMenu.vue +41 -9
- package/src/components/HeaderBar/HeaderBurgerMenu/locals.ts +2 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +1 -1
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/HeaderBurgerMenu.spec.ts.snap +8 -3
- package/src/components/HeaderBar/HeaderBurgerMenu/useMenuPosition.ts +50 -0
- package/src/components/HeaderBar/HeaderLogo/HeaderLogo.vue +5 -5
- package/src/components/HeaderBar/HeaderMenuBtn/HeaderMenuBtn.vue +7 -4
- package/src/components/HeaderBar/locales.ts +1 -1
- package/src/components/HeaderBar/tests/__snapshots__/HeaderBar.spec.ts.snap +2 -1
- package/src/components/HeaderLoading/HeaderLoading.vue +0 -1
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +2 -0
- package/src/components/LangBtn/LangBtn.vue +0 -3
- package/src/components/LogoBrandSection/Accessibilite.stories.ts +4 -1
- package/src/components/LogoBrandSection/LogoBrandSection.stories.ts +2 -2
- package/src/components/LogoBrandSection/LogoBrandSection.vue +13 -8
- package/src/components/LogoBrandSection/locales.ts +1 -1
- package/src/components/LogoBrandSection/tests/LogoBrandSection.spec.ts +1 -1
- package/src/components/LogoBrandSection/tests/__snapshots__/LogoBrandSection.spec.ts.snap +6 -4
- package/src/components/NirField/NirField.vue +5 -5
- package/src/components/NirField/tests/NirField.spec.ts +78 -12
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +104 -6
- package/src/components/Tables/common/TableHeader.vue +10 -7
- package/src/components/Tables/common/tableAccessibilityUtils.ts +13 -2
- package/src/components/Tables/common/useTableAria.ts +17 -1
- package/src/components/UserMenuBtn/tests/UserMenuBtn.spec.ts +2 -1
- package/src/components/index.ts +4 -0
- package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +34 -5
- package/src/composables/index.ts +3 -0
- package/src/composables/useFilterable/useFilterable.ts +13 -1
- package/src/composables/usePagination.ts +103 -0
- package/src/directives/lockFocus.ts +48 -0
- package/src/main.ts +1 -2
- package/src/stories/Accessibilite/Aculturation/SensibilisationAccessibilite.mdx +1 -8
- package/src/stories/Accessibilite/{Aculturation/AuditDesignSystem.mdx → AuditDesignSystem.mdx} +1 -1
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/FauxPositifs.mdx +102 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/Tanaguru/FauxPositifs.stories.ts +219 -0
- package/src/stories/Accessibilite/KitDePreAudit/Outils/{Tanaguru.mdx → Tanaguru/Utilisation.mdx} +1 -1
- package/src/stories/DesignTokens/ColorIntegrationExample.vue +43 -0
- package/src/stories/DesignTokens/Colors.mdx +2 -0
- package/src/stories/DesignTokens/colors.stories.ts +9 -0
- package/src/vuetifyConfig.ts +3 -3
- package/dist/directives/letterSpacing.d.ts +0 -27
- package/src/assets/_fonts.scss +0 -6
- package/src/assets/_typography.scss +0 -157
- package/src/directives/letterSpacing.ts +0 -233
- /package/src/assets/{_elevations.scss → overrides/_elevations.scss} +0 -0
- /package/src/assets/{_radius.scss → overrides/_radius.scss} +0 -0
|
@@ -255,6 +255,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
255
255
|
readonly disableErrorHandling?: boolean | undefined;
|
|
256
256
|
readonly disableClickButton?: boolean | undefined;
|
|
257
257
|
readonly autocomplete?: string | undefined;
|
|
258
|
+
readonly helpText?: string | undefined;
|
|
258
259
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
259
260
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
260
261
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1277,7 +1278,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1277
1278
|
append: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
1278
1279
|
[key: string]: any;
|
|
1279
1280
|
}>[];
|
|
1280
|
-
details: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
1281
|
+
/** @type { typeof __VLS_ctx.dateCalendarTextInputRef } */ details: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
1281
1282
|
[key: string]: any;
|
|
1282
1283
|
}>[];
|
|
1283
1284
|
message: (arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
@@ -1344,7 +1345,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1344
1345
|
minWidth?: string | number | undefined;
|
|
1345
1346
|
label?: string | undefined;
|
|
1346
1347
|
class?: any;
|
|
1347
|
-
theme?: string | undefined;
|
|
1348
|
+
/** @type { typeof __VLS_ctx.datePickerRef } */ theme?: string | undefined;
|
|
1348
1349
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
1349
1350
|
validateOn?: "lazy" | "blur" | "input" | "submit" | "eager" | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "invalid-input" | "invalid-input lazy" | "blur eager" | "input eager" | "submit eager" | "invalid-input eager" | "lazy invalid-input" | "eager blur" | "eager input" | "eager submit" | "eager invalid-input" | undefined;
|
|
1350
1351
|
validationValue?: any;
|
|
@@ -1746,6 +1747,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1746
1747
|
disableErrorHandling?: boolean | undefined;
|
|
1747
1748
|
disableClickButton?: boolean | undefined;
|
|
1748
1749
|
autocomplete?: string | undefined;
|
|
1750
|
+
helpText?: string | undefined;
|
|
1749
1751
|
}> & Readonly<{
|
|
1750
1752
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1751
1753
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -1835,6 +1837,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1835
1837
|
disableErrorHandling: boolean;
|
|
1836
1838
|
disableClickButton: boolean;
|
|
1837
1839
|
autocomplete: string;
|
|
1840
|
+
helpText: string;
|
|
1838
1841
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1839
1842
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
1840
1843
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1920,6 +1923,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1920
1923
|
disableErrorHandling: boolean;
|
|
1921
1924
|
disableClickButton: boolean;
|
|
1922
1925
|
autocomplete: string;
|
|
1926
|
+
helpText: string;
|
|
1923
1927
|
}> & Omit<Readonly<{
|
|
1924
1928
|
modelValue?: string | number | null | undefined;
|
|
1925
1929
|
prependIcon?: import('../../Customs/SyTextField/types').IconType;
|
|
@@ -1987,12 +1991,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1987
1991
|
disableErrorHandling?: boolean | undefined;
|
|
1988
1992
|
disableClickButton?: boolean | undefined;
|
|
1989
1993
|
autocomplete?: string | undefined;
|
|
1994
|
+
helpText?: string | undefined;
|
|
1990
1995
|
}> & Readonly<{
|
|
1991
1996
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1992
1997
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
1993
1998
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1994
1999
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1995
|
-
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
2000
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete" | "helpText")> & import('vue').ShallowUnwrapRef<{
|
|
1996
2001
|
validation: {
|
|
1997
2002
|
errors: Ref<string[], string[]>;
|
|
1998
2003
|
warnings: Ref<string[], string[]>;
|
|
@@ -2204,6 +2209,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2204
2209
|
readonly disableErrorHandling?: boolean | undefined;
|
|
2205
2210
|
readonly disableClickButton?: boolean | undefined;
|
|
2206
2211
|
readonly autocomplete?: string | undefined;
|
|
2212
|
+
readonly helpText?: string | undefined;
|
|
2207
2213
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2208
2214
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
2209
2215
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -3226,7 +3232,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3226
3232
|
append: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3227
3233
|
[key: string]: any;
|
|
3228
3234
|
}>[];
|
|
3229
|
-
details: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3235
|
+
/** @type { typeof __VLS_ctx.dateCalendarTextInputRef } */ details: (arg: import('vuetify/lib/components/VInput/VInput.mjs').VInputSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
3230
3236
|
[key: string]: any;
|
|
3231
3237
|
}>[];
|
|
3232
3238
|
message: (arg: import('vuetify/lib/components/VMessages/VMessages.mjs').VMessageSlot) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
@@ -3293,7 +3299,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3293
3299
|
minWidth?: string | number | undefined;
|
|
3294
3300
|
label?: string | undefined;
|
|
3295
3301
|
class?: any;
|
|
3296
|
-
theme?: string | undefined;
|
|
3302
|
+
/** @type { typeof __VLS_ctx.datePickerRef } */ theme?: string | undefined;
|
|
3297
3303
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
|
3298
3304
|
validateOn?: "lazy" | "blur" | "input" | "submit" | "eager" | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | "invalid-input" | "invalid-input lazy" | "blur eager" | "input eager" | "submit eager" | "invalid-input eager" | "lazy invalid-input" | "eager blur" | "eager input" | "eager submit" | "eager invalid-input" | undefined;
|
|
3299
3305
|
validationValue?: any;
|
|
@@ -3695,6 +3701,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3695
3701
|
disableErrorHandling?: boolean | undefined;
|
|
3696
3702
|
disableClickButton?: boolean | undefined;
|
|
3697
3703
|
autocomplete?: string | undefined;
|
|
3704
|
+
helpText?: string | undefined;
|
|
3698
3705
|
}> & Readonly<{
|
|
3699
3706
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
3700
3707
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -3784,6 +3791,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3784
3791
|
disableErrorHandling: boolean;
|
|
3785
3792
|
disableClickButton: boolean;
|
|
3786
3793
|
autocomplete: string;
|
|
3794
|
+
helpText: string;
|
|
3787
3795
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
3788
3796
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
3789
3797
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -3869,6 +3877,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3869
3877
|
disableErrorHandling: boolean;
|
|
3870
3878
|
disableClickButton: boolean;
|
|
3871
3879
|
autocomplete: string;
|
|
3880
|
+
helpText: string;
|
|
3872
3881
|
}> & Omit<Readonly<{
|
|
3873
3882
|
modelValue?: string | number | null | undefined;
|
|
3874
3883
|
prependIcon?: import('../../Customs/SyTextField/types').IconType;
|
|
@@ -3936,12 +3945,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3936
3945
|
disableErrorHandling?: boolean | undefined;
|
|
3937
3946
|
disableClickButton?: boolean | undefined;
|
|
3938
3947
|
autocomplete?: string | undefined;
|
|
3948
|
+
helpText?: string | undefined;
|
|
3939
3949
|
}> & Readonly<{
|
|
3940
3950
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
3941
3951
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
3942
3952
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
3943
3953
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
3944
|
-
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
3954
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete" | "helpText")> & import('vue').ShallowUnwrapRef<{
|
|
3945
3955
|
validation: {
|
|
3946
3956
|
errors: Ref<string[], string[]>;
|
|
3947
3957
|
warnings: Ref<string[], string[]>;
|
|
@@ -131,6 +131,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
131
131
|
readonly disableErrorHandling?: boolean | undefined;
|
|
132
132
|
readonly disableClickButton?: boolean | undefined;
|
|
133
133
|
readonly autocomplete?: string | undefined;
|
|
134
|
+
readonly helpText?: string | undefined;
|
|
134
135
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
135
136
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
136
137
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1622,6 +1623,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1622
1623
|
disableErrorHandling?: boolean | undefined;
|
|
1623
1624
|
disableClickButton?: boolean | undefined;
|
|
1624
1625
|
autocomplete?: string | undefined;
|
|
1626
|
+
helpText?: string | undefined;
|
|
1625
1627
|
}> & Readonly<{
|
|
1626
1628
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1627
1629
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -1711,6 +1713,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1711
1713
|
disableErrorHandling: boolean;
|
|
1712
1714
|
disableClickButton: boolean;
|
|
1713
1715
|
autocomplete: string;
|
|
1716
|
+
helpText: string;
|
|
1714
1717
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1715
1718
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
1716
1719
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1796,6 +1799,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1796
1799
|
disableErrorHandling: boolean;
|
|
1797
1800
|
disableClickButton: boolean;
|
|
1798
1801
|
autocomplete: string;
|
|
1802
|
+
helpText: string;
|
|
1799
1803
|
}> & Omit<Readonly<{
|
|
1800
1804
|
modelValue?: string | number | null | undefined;
|
|
1801
1805
|
prependIcon?: import('../../Customs/SyTextField/types').IconType;
|
|
@@ -1863,12 +1867,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1863
1867
|
disableErrorHandling?: boolean | undefined;
|
|
1864
1868
|
disableClickButton?: boolean | undefined;
|
|
1865
1869
|
autocomplete?: string | undefined;
|
|
1870
|
+
helpText?: string | undefined;
|
|
1866
1871
|
}> & Readonly<{
|
|
1867
1872
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1868
1873
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
1869
1874
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1870
1875
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1871
|
-
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
1876
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete" | "helpText")> & import('vue').ShallowUnwrapRef<{
|
|
1872
1877
|
validation: {
|
|
1873
1878
|
errors: import('vue').Ref<string[], string[]>;
|
|
1874
1879
|
warnings: import('vue').Ref<string[], string[]>;
|
|
@@ -1,20 +1,29 @@
|
|
|
1
|
+
import { FormatDateInputResult } from '../utils/dateFormattingUtils';
|
|
1
2
|
/**
|
|
2
3
|
* Options pour le composable useDateInputEditing
|
|
3
4
|
*/
|
|
4
5
|
export interface DateInputEditingOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Format de date (ex: 'DD/MM/YYYY')
|
|
8
|
+
*/
|
|
5
9
|
format: string;
|
|
10
|
+
/**
|
|
11
|
+
* Fonction pour mettre à jour la valeur d'affichage
|
|
12
|
+
*/
|
|
6
13
|
updateDisplayValue: (value: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Fonction pour mettre à jour l'attribut aria-label (pour l'accessibilité)
|
|
16
|
+
*/
|
|
7
17
|
updateAriaLabel?: (value: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Caractère à utiliser pour les positions non remplies
|
|
20
|
+
*/
|
|
8
21
|
placeholderChar?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Si true, utilise des caractères invisibles pour les lecteurs d'écran
|
|
24
|
+
*/
|
|
9
25
|
accessiblePlaceholders?: boolean;
|
|
10
26
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Résultat du formatage d'une date
|
|
13
|
-
*/
|
|
14
|
-
export interface FormatDateInputResult {
|
|
15
|
-
formatted: string;
|
|
16
|
-
cursorPos: number;
|
|
17
|
-
}
|
|
18
27
|
/**
|
|
19
28
|
* Composable pour gérer l'édition manuelle des dates
|
|
20
29
|
* Ce composable fournit des fonctions pour formater les dates pendant la saisie
|
|
@@ -29,5 +38,5 @@ export declare const useDateInputEditing: (options: DateInputEditingOptions) =>
|
|
|
29
38
|
target: HTMLInputElement;
|
|
30
39
|
}) => void;
|
|
31
40
|
handlePaste: (event: ClipboardEvent) => void;
|
|
32
|
-
getDateDescription: (dateStr: string
|
|
41
|
+
getDateDescription: (dateStr: string) => string;
|
|
33
42
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable pour centraliser la gestion des événements clavier
|
|
3
|
+
* Utilisé dans les différents composants de saisie de date
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Options pour la gestion des événements clavier
|
|
7
|
+
*/
|
|
8
|
+
export interface KeyboardEventsOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Expression régulière pour les caractères autorisés
|
|
11
|
+
* Par défaut, seuls les chiffres sont autorisés
|
|
12
|
+
*/
|
|
13
|
+
allowedCharacters?: RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* Fonction à appeler lors d'un appui sur une touche
|
|
16
|
+
* Appelée après la validation des caractères
|
|
17
|
+
*/
|
|
18
|
+
onKeyDown?: (event: KeyboardEvent & {
|
|
19
|
+
target: HTMLInputElement;
|
|
20
|
+
}) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Séparateur utilisé dans le format de date
|
|
23
|
+
* Utilisé pour gérer les touches de navigation
|
|
24
|
+
*/
|
|
25
|
+
separator?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Composable pour gérer les événements clavier communs aux champs de date
|
|
29
|
+
*
|
|
30
|
+
* @param options - Options de configuration
|
|
31
|
+
* @returns Fonctions pour gérer les événements clavier
|
|
32
|
+
*/
|
|
33
|
+
export declare const useKeyboardEvents: (options?: KeyboardEventsOptions) => {
|
|
34
|
+
handleKeyDown: (event: KeyboardEvent & {
|
|
35
|
+
target: HTMLInputElement;
|
|
36
|
+
}) => void;
|
|
37
|
+
handleArrowKeys: (event: KeyboardEvent & {
|
|
38
|
+
target: HTMLInputElement;
|
|
39
|
+
}) => void;
|
|
40
|
+
handlePaste: (event: ClipboardEvent) => void;
|
|
41
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ValidationResult } from '../../../composables/validation/useValidation';
|
|
3
|
+
import { CustomRule } from '../utils/validationUtils';
|
|
3
4
|
/**
|
|
4
5
|
* Composable pour la validation manuelle des dates saisies
|
|
5
6
|
*
|
|
@@ -10,14 +11,8 @@ export declare const useManualDateValidation: (options: {
|
|
|
10
11
|
format: string;
|
|
11
12
|
required?: boolean | undefined;
|
|
12
13
|
disableErrorHandling?: boolean | undefined;
|
|
13
|
-
customRules?:
|
|
14
|
-
|
|
15
|
-
options: any;
|
|
16
|
-
}[] | undefined;
|
|
17
|
-
customWarningRules?: {
|
|
18
|
-
type: string;
|
|
19
|
-
options: any;
|
|
20
|
-
}[] | undefined;
|
|
14
|
+
customRules?: CustomRule[] | undefined;
|
|
15
|
+
customWarningRules?: CustomRule[] | undefined;
|
|
21
16
|
hasInteracted: Ref<boolean>;
|
|
22
17
|
errors: Ref<string[]>;
|
|
23
18
|
clearValidation: () => void;
|
|
@@ -27,7 +22,7 @@ export declare const useManualDateValidation: (options: {
|
|
|
27
22
|
};
|
|
28
23
|
isDateComplete: (value: string) => boolean;
|
|
29
24
|
parseDate: (dateStr: string, format: string) => Date | null;
|
|
30
|
-
validateField: (value:
|
|
25
|
+
validateField: (value: unknown, rules?: CustomRule[], warningRules?: CustomRule[]) => ValidationResult;
|
|
31
26
|
}) => {
|
|
32
27
|
validateManualInput: (value: string) => boolean;
|
|
33
28
|
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilitaires de formatage de dates pour les composants DatePicker
|
|
3
|
+
* Extrait et centralisé à partir des différents composables
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Résultat du formatage d'une date
|
|
7
|
+
*/
|
|
8
|
+
export interface FormatDateInputResult {
|
|
9
|
+
/**
|
|
10
|
+
* Valeur formatée
|
|
11
|
+
*/
|
|
12
|
+
formatted: string;
|
|
13
|
+
/**
|
|
14
|
+
* Position du curseur après formatage
|
|
15
|
+
*/
|
|
16
|
+
cursorPos: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Options pour le formatage d'une date
|
|
20
|
+
*/
|
|
21
|
+
export interface FormatDateOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Position actuelle du curseur
|
|
24
|
+
*/
|
|
25
|
+
cursorPosition?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Caractère à utiliser pour les positions non remplies
|
|
28
|
+
*/
|
|
29
|
+
placeholderChar?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Formate une entrée de date en ajoutant les séparateurs appropriés
|
|
33
|
+
*
|
|
34
|
+
* @param input - Chaîne de caractères saisie
|
|
35
|
+
* @param format - Format de date (ex: 'DD/MM/YYYY')
|
|
36
|
+
* @param options - Options de formatage
|
|
37
|
+
* @returns Objet contenant la chaîne formatée et la nouvelle position du curseur
|
|
38
|
+
*/
|
|
39
|
+
export declare const formatDateInput: (input: string, format: string, options?: FormatDateOptions) => FormatDateInputResult;
|
|
40
|
+
/**
|
|
41
|
+
* Crée une description accessible de la date pour les lecteurs d'écran
|
|
42
|
+
*
|
|
43
|
+
* @param dateStr - La chaîne de date à décrire
|
|
44
|
+
* @param format - Le format de la date
|
|
45
|
+
* @param placeholderChar - Caractère utilisé pour les positions vides
|
|
46
|
+
* @returns Une description de la date adaptée aux lecteurs d'écran
|
|
47
|
+
*/
|
|
48
|
+
export declare const getDateDescription: (dateStr: string, format: string, placeholderChar?: string) => string;
|
|
49
|
+
/**
|
|
50
|
+
* Extrait les deux parties d'une plage de dates
|
|
51
|
+
*
|
|
52
|
+
* @param value - Chaîne de caractères contenant une plage de dates
|
|
53
|
+
* @param separator - Séparateur de plage (par défaut: ' - ')
|
|
54
|
+
* @returns Tableau contenant les deux parties de la plage
|
|
55
|
+
*/
|
|
56
|
+
export declare const extractRangeParts: (value: string, separator?: string) => [string, string];
|
|
57
|
+
/**
|
|
58
|
+
* Vérifie si une chaîne de caractères contient un séparateur de plage
|
|
59
|
+
*
|
|
60
|
+
* @param value - Chaîne de caractères à vérifier
|
|
61
|
+
* @param separator - Séparateur de plage (par défaut: ' - ')
|
|
62
|
+
* @returns Booléen indiquant si la chaîne contient le séparateur
|
|
63
|
+
*/
|
|
64
|
+
export declare const hasRangeSeparator: (value: string, separator?: string) => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Vérifie si une plage de dates est valide (la date de début est antérieure à la date de fin)
|
|
67
|
+
*
|
|
68
|
+
* @param startDate - Date de début
|
|
69
|
+
* @param endDate - Date de fin
|
|
70
|
+
* @returns Booléen indiquant si la plage est valide
|
|
71
|
+
*/
|
|
72
|
+
export declare const isValidDateRange: (startDate: Date | null, endDate: Date | null) => boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type pour une règle de validation personnalisée
|
|
3
|
+
*/
|
|
4
|
+
export interface CustomRule {
|
|
5
|
+
type: string;
|
|
6
|
+
options: {
|
|
7
|
+
validate: (value: unknown) => boolean;
|
|
8
|
+
message?: string;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Adapte les règles personnalisées pour assurer la compatibilité avec différents types de valeurs
|
|
14
|
+
*
|
|
15
|
+
* @param rules - Règles personnalisées à adapter
|
|
16
|
+
* @param format - Format de date à utiliser pour la conversion
|
|
17
|
+
* @returns Règles adaptées pour fonctionner avec les dates et chaînes
|
|
18
|
+
*/
|
|
19
|
+
export declare const adaptCustomRules: (rules: CustomRule[] | undefined, format: string) => CustomRule[];
|
|
20
|
+
/**
|
|
21
|
+
* Vérifie si une chaîne de date est vide ou incomplète
|
|
22
|
+
*
|
|
23
|
+
* @param value - Chaîne de date à vérifier
|
|
24
|
+
* @param required - Indique si le champ est requis
|
|
25
|
+
* @returns Objet indiquant si la validation doit continuer et si la valeur est valide
|
|
26
|
+
*/
|
|
27
|
+
export declare const validateEmptyOrIncompleteDate: (value: string, required: boolean, isDateComplete: (value: string) => boolean, hasInteracted: boolean) => {
|
|
28
|
+
shouldContinue: boolean;
|
|
29
|
+
isValid: boolean;
|
|
30
|
+
errorMessage?: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Structure de résultat de validation de format
|
|
34
|
+
*/
|
|
35
|
+
export interface FormatValidationResult {
|
|
36
|
+
isValid: boolean;
|
|
37
|
+
message: string;
|
|
38
|
+
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
innerTag?: string;
|
|
3
|
+
};
|
|
1
4
|
type __VLS_PublicProps = {
|
|
2
5
|
modelValue?: boolean;
|
|
3
|
-
};
|
|
6
|
+
} & __VLS_Props;
|
|
4
7
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
8
|
"update:modelValue": (value: boolean) => any;
|
|
6
9
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
10
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
8
|
-
}>, {
|
|
9
|
-
|
|
11
|
+
}>, {
|
|
12
|
+
innerTag: string;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
14
|
+
menuBtnWrapper: HTMLElement;
|
|
10
15
|
outerBtn: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
11
16
|
modelValue?: boolean | undefined;
|
|
12
17
|
}> & Readonly<{
|
|
@@ -31,6 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
31
36
|
}>, {
|
|
32
37
|
focus: () => void;
|
|
33
38
|
}, {}, {}, {}, {}> | null;
|
|
39
|
+
headerInnerMenu: HTMLDivElement;
|
|
34
40
|
innerBtn: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
35
41
|
modelValue?: boolean | undefined;
|
|
36
42
|
}> & Readonly<{
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
tag?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
tag: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
2
7
|
default?(_: {}): any;
|
|
3
8
|
}>;
|
|
4
9
|
export default _default;
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
title?: string;
|
|
3
|
+
innerTag?: string;
|
|
4
|
+
tag?: string;
|
|
5
|
+
titleTag?: string;
|
|
6
|
+
showTitle?: boolean;
|
|
3
7
|
};
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
+
title: string;
|
|
10
|
+
tag: string;
|
|
11
|
+
innerTag: string;
|
|
12
|
+
titleTag: string;
|
|
13
|
+
showTitle: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
5
15
|
title?(_: {}): any;
|
|
6
16
|
default?(_: {}): any;
|
|
7
17
|
}>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
innerTag?: string;
|
|
3
|
+
tag?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
tag: string;
|
|
7
|
+
innerTag: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
headerSubMenuBtn: HTMLButtonElement;
|
|
10
|
+
headerInnerSubMenu: HTMLDivElement;
|
|
11
|
+
}, any>, {
|
|
2
12
|
title?(_: {}): any;
|
|
3
13
|
default?(_: {}): any;
|
|
4
14
|
}>;
|
|
@@ -193,6 +193,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
193
193
|
readonly disableErrorHandling?: boolean | undefined;
|
|
194
194
|
readonly disableClickButton?: boolean | undefined;
|
|
195
195
|
readonly autocomplete?: string | undefined;
|
|
196
|
+
readonly helpText?: string | undefined;
|
|
196
197
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
197
198
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
198
199
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -455,7 +456,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
455
456
|
hint?: string | undefined;
|
|
456
457
|
hideDetails?: boolean | "auto" | undefined;
|
|
457
458
|
}, {
|
|
458
|
-
|
|
459
|
+
reset: () => Promise<void>;
|
|
459
460
|
resetValidation: () => Promise<void>;
|
|
460
461
|
validate: (silent?: boolean | undefined) => Promise<string[]>;
|
|
461
462
|
isValid: import('vue').ComputedRef<boolean | null>;
|
|
@@ -1684,6 +1685,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1684
1685
|
disableErrorHandling?: boolean | undefined;
|
|
1685
1686
|
disableClickButton?: boolean | undefined;
|
|
1686
1687
|
autocomplete?: string | undefined;
|
|
1688
|
+
helpText?: string | undefined;
|
|
1687
1689
|
}> & Readonly<{
|
|
1688
1690
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1689
1691
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -1773,6 +1775,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1773
1775
|
disableErrorHandling: boolean;
|
|
1774
1776
|
disableClickButton: boolean;
|
|
1775
1777
|
autocomplete: string;
|
|
1778
|
+
helpText: string;
|
|
1776
1779
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
1777
1780
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
1778
1781
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -1858,6 +1861,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1858
1861
|
disableErrorHandling: boolean;
|
|
1859
1862
|
disableClickButton: boolean;
|
|
1860
1863
|
autocomplete: string;
|
|
1864
|
+
helpText: string;
|
|
1861
1865
|
}> & Omit<Readonly<{
|
|
1862
1866
|
modelValue?: string | number | null | undefined;
|
|
1863
1867
|
prependIcon?: import('../Customs/SyTextField/types').IconType;
|
|
@@ -1925,12 +1929,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1925
1929
|
disableErrorHandling?: boolean | undefined;
|
|
1926
1930
|
disableClickButton?: boolean | undefined;
|
|
1927
1931
|
autocomplete?: string | undefined;
|
|
1932
|
+
helpText?: string | undefined;
|
|
1928
1933
|
}> & Readonly<{
|
|
1929
1934
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1930
1935
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
1931
1936
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1932
1937
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
1933
|
-
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
1938
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete" | "helpText")> & import('vue').ShallowUnwrapRef<{
|
|
1934
1939
|
validation: {
|
|
1935
1940
|
errors: import('vue').Ref<string[], string[]>;
|
|
1936
1941
|
warnings: import('vue').Ref<string[], string[]>;
|
|
@@ -2023,6 +2028,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2023
2028
|
readonly disableErrorHandling?: boolean | undefined;
|
|
2024
2029
|
readonly disableClickButton?: boolean | undefined;
|
|
2025
2030
|
readonly autocomplete?: string | undefined;
|
|
2031
|
+
readonly helpText?: string | undefined;
|
|
2026
2032
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2027
2033
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
2028
2034
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
@@ -2285,7 +2291,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2285
2291
|
hint?: string | undefined;
|
|
2286
2292
|
hideDetails?: boolean | "auto" | undefined;
|
|
2287
2293
|
}, {
|
|
2288
|
-
|
|
2294
|
+
reset: () => Promise<void>;
|
|
2289
2295
|
resetValidation: () => Promise<void>;
|
|
2290
2296
|
validate: (silent?: boolean | undefined) => Promise<string[]>;
|
|
2291
2297
|
isValid: import('vue').ComputedRef<boolean | null>;
|
|
@@ -3514,6 +3520,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3514
3520
|
disableErrorHandling?: boolean | undefined;
|
|
3515
3521
|
disableClickButton?: boolean | undefined;
|
|
3516
3522
|
autocomplete?: string | undefined;
|
|
3523
|
+
helpText?: string | undefined;
|
|
3517
3524
|
}> & Readonly<{
|
|
3518
3525
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
3519
3526
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -3603,6 +3610,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3603
3610
|
disableErrorHandling: boolean;
|
|
3604
3611
|
disableClickButton: boolean;
|
|
3605
3612
|
autocomplete: string;
|
|
3613
|
+
helpText: string;
|
|
3606
3614
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
3607
3615
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
3608
3616
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -3688,6 +3696,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3688
3696
|
disableErrorHandling: boolean;
|
|
3689
3697
|
disableClickButton: boolean;
|
|
3690
3698
|
autocomplete: string;
|
|
3699
|
+
helpText: string;
|
|
3691
3700
|
}> & Omit<Readonly<{
|
|
3692
3701
|
modelValue?: string | number | null | undefined;
|
|
3693
3702
|
prependIcon?: import('../Customs/SyTextField/types').IconType;
|
|
@@ -3755,12 +3764,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
3755
3764
|
disableErrorHandling?: boolean | undefined;
|
|
3756
3765
|
disableClickButton?: boolean | undefined;
|
|
3757
3766
|
autocomplete?: string | undefined;
|
|
3767
|
+
helpText?: string | undefined;
|
|
3758
3768
|
}> & Readonly<{
|
|
3759
3769
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
3760
3770
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
3761
3771
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
3762
3772
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
3763
|
-
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete")> & import('vue').ShallowUnwrapRef<{
|
|
3773
|
+
}>, "validation" | "validateOnSubmit" | "checkErrorOnBlur" | ("type" | "label" | "width" | "role" | "color" | "theme" | "disabled" | "placeholder" | "rounded" | "loading" | "maxWidth" | "minWidth" | "density" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "id" | "name" | "modelValue" | "bgColor" | "isActive" | "direction" | "prependInnerIcon" | "appendInnerIcon" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "isClearable" | "errorMessages" | "warningMessages" | "successMessages" | "centerAffix" | "counter" | "counterValue" | "isDirty" | "isOnError" | "isFlat" | "isFocused" | "areDetailsHidden" | "areSpinButtonsHidden" | "hint" | "maxErrors" | "messages" | "displayPersistentClear" | "displayPersistentCounter" | "displayPersistentHint" | "displayPersistentPlaceholder" | "prefix" | "isReversed" | "isOnSingleLine" | "suffix" | "isTiled" | "displayAsterisk" | "noIcon" | "customRules" | "customWarningRules" | "customSuccessRules" | "showSuccessMessages" | "isValidateOnBlur" | "disableErrorHandling" | "disableClickButton" | "autocomplete" | "helpText")> & import('vue').ShallowUnwrapRef<{
|
|
3764
3774
|
validation: {
|
|
3765
3775
|
errors: import('vue').Ref<string[], string[]>;
|
|
3766
3776
|
warnings: import('vue').Ref<string[], string[]>;
|