@cnamts/synapse 1.0.27 → 1.1.0
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/README.md +1 -1
- package/dist/{AutocompleteFilter-C9eLKyW8.js → AutocompleteFilter-DXd4szWO.js} +3 -3
- package/dist/{DateFilter-y-GLkAkn.js → DateFilter-BD59Kgwf.js} +8 -8
- package/dist/{NumberFilter-DN6hIBS7.js → NumberFilter-BSMZE7uw.js} +1 -1
- package/dist/{PeriodFilter-MoUUp9qS.js → PeriodFilter-keUdSSk0.js} +1 -1
- package/dist/{SelectFilter-bCbrdLmu.js → SelectFilter-Dhvvwazl.js} +1 -1
- package/dist/{TextFilter-CvjgEaoM.js → TextFilter-CU8FpXz0.js} +4 -4
- package/dist/{apLightTheme2026-ug4Y23ns.js → apLightTheme2026-DbS7BPUf.js} +12 -11
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +6 -6
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +4 -4
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +4 -4
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +2 -2
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +85 -313
- package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts +2 -2
- package/dist/components/Customs/Selects/SyInputSelect/SyInputSelect.d.ts +1 -1
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +9 -11
- package/dist/components/Customs/Selects/SySelect/composables/useSySelectValidation.d.ts +7 -7
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +3 -3
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +5 -5
- package/dist/components/Customs/SyIcon/SyIcon.d.ts +77 -1
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +10 -10
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +19 -79
- package/dist/components/Customs/SyTextField/locales.d.ts +7 -0
- package/dist/components/Customs/SyTextField/types.d.ts +67 -4
- package/dist/components/Customs/SyTextField/useNumberField.d.ts +23 -0
- package/dist/components/Customs/SyTextField/useSyTextFieldValidation.d.ts +38 -0
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +170 -622
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +85 -311
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +39 -152
- package/dist/components/FilterInline/FilterInline.d.ts +3 -3
- package/dist/components/FilterSideBar/FilterSideBar.d.ts +4 -4
- package/dist/components/MonthPicker/MonthPicker.d.ts +37 -150
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +37 -150
- package/dist/components/NirField/NirField.d.ts +90 -321
- package/dist/components/NirField/useNirValidation.d.ts +10 -20
- package/dist/components/PasswordField/PasswordField.d.ts +20 -39
- package/dist/components/PasswordField/locales.d.ts +2 -0
- package/dist/components/PasswordField/types.d.ts +16 -0
- package/dist/components/PasswordField/usePasswordFieldValidation.d.ts +38 -0
- package/dist/components/PeriodField/PeriodField.d.ts +349 -1253
- package/dist/components/PhoneField/PhoneField.d.ts +37 -150
- package/dist/components/SearchListField/SearchListField.d.ts +3 -3
- package/dist/components/SyTextArea/SyTextArea.d.ts +14 -11
- package/dist/components/SyTextArea/composables/useSyTextAreaValidation.d.ts +7 -7
- package/dist/components/Tables/common/SyTablePagination.d.ts +19 -20
- package/dist/composables/unifyValidation/documentationValidationProps.d.ts +1 -1
- package/dist/composables/unifyValidation/useValidation.d.ts +1 -9
- package/dist/composables/useFilterable/useFilterable.d.ts +1 -2
- package/dist/design-system-v3.js +19 -19
- package/dist/designTokens/tokens/amelipro/apLightTheme.d.ts +1 -0
- package/dist/designTokens/tokens/pa/paLightTheme.d.ts +1 -0
- package/dist/{main-CI6Q9nmO.js → main-D8ryUoS5.js} +13605 -13358
- package/dist/synapse.css +1 -1
- package/dist/vuetifyConfig.js +27 -25
- package/package.json +6 -5
- package/src/components/Accordion/tests/Accordion.visual.cy.ts +44 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-default.snap.png +0 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-disabled-item.snap.png +0 -0
- package/src/components/Accordion/tests/__snapshots__/accordion-open-first.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-custom-bg.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-dark-mode.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-default.snap.png +0 -0
- package/src/components/BackBtn/tests/__snapshots__/back-btn-no-icon.snap.png +0 -0
- package/src/components/BackToTopBtn/tests/BackToTopBtn.visual.cy.ts +34 -0
- package/src/components/BackToTopBtn/tests/__snapshots__/back-to-top-btn-custom-nudge.snap.png +0 -0
- package/src/components/BackToTopBtn/tests/__snapshots__/back-to-top-btn-default.snap.png +0 -0
- package/src/components/Captcha/tests/Captcha.visual.cy.ts +45 -0
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +4 -0
- package/src/components/Captcha/tests/__snapshots__/captcha-audio-type.snap.png +0 -0
- package/src/components/Captcha/tests/__snapshots__/captcha-image-type.snap.png +0 -0
- package/src/components/Captcha/tests/__snapshots__/captcha-no-helpdesk.snap.png +0 -0
- package/src/components/ChipList/tests/ChipList.visual.cy.ts +46 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-default.snap.png +0 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-readonly.snap.png +0 -0
- package/src/components/ChipList/tests/__snapshots__/chip-list-state-icons.snap.png +0 -0
- package/src/components/CollapsibleList/tests/CollapsibleList.visual.cy.ts +33 -0
- package/src/components/CollapsibleList/tests/__snapshots__/collapsible-list-default.snap.png +0 -0
- package/src/components/CollapsibleList/tests/__snapshots__/collapsible-list-no-title.snap.png +0 -0
- package/src/components/ContextualMenu/tests/ContextualMenu.visual.cy.ts +35 -0
- package/src/components/ContextualMenu/tests/__snapshots__/contextual-menu-default.snap.png +0 -0
- package/src/components/ContextualMenu/tests/__snapshots__/contextual-menu-selected.snap.png +0 -0
- package/src/components/CookieBanner/tests/CookieBanner.visual.cy.ts +29 -0
- package/src/components/CookieBanner/tests/__snapshots__/cookie-banner-default.snap.png +0 -0
- package/src/components/CookieBanner/tests/__snapshots__/cookie-banner-with-items.snap.png +0 -0
- package/src/components/CookiesSelection/tests/CookiesSelection.visual.cy.ts +21 -0
- package/src/components/CookiesSelection/tests/__snapshots__/cookies-selection-default.snap.png +0 -0
- package/src/components/CopyBtn/tests/CopyBtn.visual.cy.ts +24 -0
- package/src/components/CopyBtn/tests/__snapshots__/copy-btn-default.snap.png +0 -0
- package/src/components/CopyBtn/tests/__snapshots__/copy-btn-no-tooltip.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/SelectBtnField.visual.cy.ts +60 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-default.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-inline.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-readonly.snap.png +0 -0
- package/src/components/Customs/Selects/SelectBtnField/tests/__snapshots__/select-btn-field-selected.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +1 -1
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +2 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.visual.cy.ts +63 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-default.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-loading.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-multiple.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/tests/__snapshots__/sy-autocomplete-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SyAutocomplete/validation/Validation.stories.ts +0 -93
- package/src/components/Customs/Selects/SyInputSelect/tests/SyInputSelect.visual.cy.ts +48 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-default.snap.png +0 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-required.snap.png +0 -0
- package/src/components/Customs/Selects/SyInputSelect/tests/__snapshots__/sy-input-select-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/SySelect.vue +22 -47
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +3 -3
- package/src/components/Customs/Selects/SySelect/tests/SySelect.visual.cy.ts +77 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-clearable.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-default.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-multiple-chips.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-required.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/tests/__snapshots__/sy-select-with-value.snap.png +0 -0
- package/src/components/Customs/Selects/SySelect/validation/Validation.stories.ts +1 -92
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +1 -1
- package/src/components/Customs/SyCheckBoxGroup/tests/SyCheckBoxGroup.visual.cy.ts +55 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-default.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-disabled.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-selected.snap.png +0 -0
- package/src/components/Customs/SyCheckBoxGroup/tests/__snapshots__/sy-checkbox-group-with-label.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +1 -9
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.visual.cy.ts +61 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-checked.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-disabled.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-indeterminate.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-required.snap.png +0 -0
- package/src/components/Customs/SyCheckbox/tests/__snapshots__/sy-checkbox-unchecked.snap.png +0 -0
- package/src/components/Customs/SyIcon/SyIcon.vue +19 -1
- package/src/components/Customs/SyIcon/tests/SyIcon.visual.cy.ts +83 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-color-error.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-decorative.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-informative.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-role-button.snap.png +0 -0
- package/src/components/Customs/SyIcon/tests/__snapshots__/sy-icon-size-large.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/SyIconButton.visual.cy.ts +55 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-default.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-disabled.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-error.snap.png +0 -0
- package/src/components/Customs/SyIconButton/tests/__snapshots__/sy-icon-button-large.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/SyPagination.visual.cy.ts +40 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-first-page.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-middle-page.snap.png +0 -0
- package/src/components/Customs/SyPagination/tests/__snapshots__/sy-pagination-with-label.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.stories.ts +0 -1
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +4 -3
- package/src/components/Customs/SyRadioGroup/composables/useSyRadioGroupValidation.ts +1 -1
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-asterisk.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-comfortable.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-compact.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-default.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-disabled.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-error.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-no-details.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-readonly.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-selected.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-success.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/tests/__snapshots__/sy-radio-group-warning.snap.png +0 -0
- package/src/components/Customs/SyRadioGroup/validation/Validation.stories.ts +63 -27
- package/src/components/Customs/SyTabs/tests/SyTabs.visual.cy.ts +30 -0
- package/src/components/Customs/SyTabs/tests/__snapshots__/sy-tabs-default.snap.png +0 -0
- package/src/components/Customs/SyTabs/tests/__snapshots__/sy-tabs-second-active.snap.png +0 -0
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +160 -778
- package/src/components/Customs/SyTextField/SyTextField.vue +168 -153
- package/src/components/Customs/SyTextField/Validation/Validation.stories.ts +1164 -0
- package/src/components/Customs/SyTextField/locales.ts +12 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +174 -8
- package/src/components/Customs/SyTextField/tests/SyTextField.visual.cy.ts +116 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-clearable.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-default.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number-disabled.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number-no-spinner.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-number.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-prepend-icon.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-readonly.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-required.snap.png +0 -0
- package/src/components/Customs/SyTextField/tests/__snapshots__/sy-text-field-with-value.snap.png +0 -0
- package/src/components/Customs/SyTextField/types.ts +70 -0
- package/src/components/Customs/SyTextField/useNumberField.ts +93 -0
- package/src/components/Customs/SyTextField/useSyTextFieldValidation.ts +104 -0
- package/src/components/DataList/tests/DataList.visual.cy.ts +85 -0
- package/src/components/DataList/tests/__snapshots__/data-list-default.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-loading.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-row.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-with-icons.snap.png +0 -0
- package/src/components/DataList/tests/__snapshots__/data-list-with-title.snap.png +0 -0
- package/src/components/DataListGroup/tests/DataListGroup.visual.cy.ts +51 -0
- package/src/components/DataListGroup/tests/__snapshots__/data-list-group-default.snap.png +0 -0
- package/src/components/DataListGroup/tests/__snapshots__/data-list-group-loading.snap.png +0 -0
- package/src/components/DataListItem/tests/DataListItem.visual.cy.ts +53 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-chip.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-default.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-placeholder.snap.png +0 -0
- package/src/components/DataListItem/tests/__snapshots__/data-list-item-row.snap.png +0 -0
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +1 -1
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +7 -7
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +1 -1
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +7 -8
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +1 -1
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +2 -2
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +1 -1
- package/src/components/DatePicker/composables/tests/useTodayButton.spec.ts +10 -10
- package/src/components/DatePicker/composables/useCalendarKeyboardNavigation.ts +11 -2
- package/src/components/DeclarationAccessibilityPage/tests/DeclarationAccessibilityPage.visual.cy.ts +35 -0
- package/src/components/DeclarationAccessibilityPage/tests/__snapshots__/declaration-a11y-page-default.snap.png +0 -0
- package/src/components/DeclarationAccessibilityPage/tests/__snapshots__/declaration-a11y-page-full.snap.png +0 -0
- package/src/components/DiacriticPicker/tests/DiacriticPicker.visual.cy.ts +24 -0
- package/src/components/DiacriticPicker/tests/__snapshots__/diacritic-picker-custom-title.snap.png +0 -0
- package/src/components/DiacriticPicker/tests/__snapshots__/diacritic-picker-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-custom-texts.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-default.snap.png +0 -0
- package/src/components/DialogBox/tests/__snapshots__/dialog-box-no-actions.snap.png +0 -0
- package/src/components/DownloadBtn/tests/DownloadBtn.spec.ts +2 -2
- package/src/components/DownloadBtn/tests/DownloadBtn.visual.cy.ts +38 -0
- package/src/components/DownloadBtn/tests/__snapshots__/download-btn-dark.snap.png +0 -0
- package/src/components/DownloadBtn/tests/__snapshots__/download-btn-idle.snap.png +0 -0
- package/src/components/ErrorPage/tests/ErrorPage.visual.cy.ts +32 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-custom.snap.png +0 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-default.snap.png +0 -0
- package/src/components/ErrorPage/tests/__snapshots__/error-page-no-btn.snap.png +0 -0
- package/src/components/ExternalLinks/tests/ExternalLinks.visual.cy.ts +30 -0
- package/src/components/ExternalLinks/tests/__snapshots__/external-links-default.snap.png +0 -0
- package/src/components/ExternalLinks/tests/__snapshots__/external-links-fixed.snap.png +0 -0
- package/src/components/FileList/tests/FileList.visual.cy.ts +31 -0
- package/src/components/FileList/tests/__snapshots__/file-list-default.snap.png +0 -0
- package/src/components/FileList/tests/__snapshots__/file-list-with-delete.snap.png +0 -0
- package/src/components/FilePreview/accessibilite/Accessibility.mdx +86 -8
- package/src/components/FileUpload/tests/FileUpload.visual.cy.ts +36 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-default.snap.png +0 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-disabled.snap.png +0 -0
- package/src/components/FileUpload/tests/__snapshots__/file-upload-multiple.snap.png +0 -0
- package/src/components/FilterInline/FilterInline.stories.ts +2 -0
- package/src/components/FilterInline/FilterInline.vue +10 -5
- package/src/components/FilterInline/tests/FilterInline.visual.cy.ts +25 -0
- package/src/components/FilterInline/tests/__snapshots__/filter-inline-default.snap.png +0 -0
- package/src/components/FilterSideBar/FilterSideBar.stories.ts +4 -1
- package/src/components/FilterSideBar/FilterSideBar.vue +11 -6
- package/src/components/FilterSideBar/tests/FilterSideBar.visual.cy.ts +37 -0
- package/src/components/FilterSideBar/tests/__snapshots__/filter-sidebar-default.snap.png +0 -0
- package/src/components/FilterSideBar/tests/__snapshots__/filter-sidebar-modale.snap.png +0 -0
- package/src/components/FooterBar/tests/FooterBar.visual.cy.ts +37 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-default.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-no-logo.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-no-social.snap.png +0 -0
- package/src/components/FooterBar/tests/__snapshots__/footer-bar-version.snap.png +0 -0
- package/src/components/FranceConnectBtn/tests/FranceConnectBtn.visual.cy.ts +38 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-dark.snap.png +0 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-default.snap.png +0 -0
- package/src/components/FranceConnectBtn/tests/__snapshots__/france-connect-btn-plus.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/HeaderBurgerMenu.spec.ts +4 -4
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated-submenu-open.snap.png +0 -0
- package/src/components/HeaderBar/HeaderBurgerMenu/tests/__snapshots__/header-burger-menu-generated.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-custom-width.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-default.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-no-sticky.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-prepend.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-side.snap.png +0 -0
- package/src/components/HeaderBar/tests/__snapshots__/header-bar-with-subtitle.snap.png +0 -0
- package/src/components/HeaderLoading/tests/HeaderLoading.visual.cy.ts +34 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-custom-size.snap.png +0 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-default.snap.png +0 -0
- package/src/components/HeaderLoading/tests/__snapshots__/header-loading-standalone.snap.png +0 -0
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.spec.ts +4 -4
- package/src/components/HeaderNavigationBar/tests/HeaderNavigationBar.visual.cy.ts +34 -0
- package/src/components/HeaderNavigationBar/tests/__snapshots__/header-navigation-bar-default.snap.png +0 -0
- package/src/components/HeaderNavigationBar/tests/__snapshots__/header-navigation-bar-subtitle.snap.png +0 -0
- package/src/components/HeaderToolbar/tests/HeaderToolbar.visual.cy.ts +25 -0
- package/src/components/HeaderToolbar/tests/__snapshots__/header-toolbar-custom.snap.png +0 -0
- package/src/components/HeaderToolbar/tests/__snapshots__/header-toolbar-default.snap.png +0 -0
- package/src/components/LangBtn/tests/LangBtn.visual.cy.ts +33 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-default.snap.png +0 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-english.snap.png +0 -0
- package/src/components/LangBtn/tests/__snapshots__/lang-btn-no-arrow.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-avatar.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-dark.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-default.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-organism.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-no-signature.snap.png +0 -0
- package/src/components/Logo/tests/__snapshots__/logo-risque-pro.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/LogoBrandSection.visual.cy.ts +43 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-default.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-mobile.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-reduced.snap.png +0 -0
- package/src/components/LogoBrandSection/tests/__snapshots__/logo-brand-section-with-title.snap.png +0 -0
- package/src/components/LunarCalendar/tests/LunarCalendar.visual.cy.ts +36 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-default.snap.png +0 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-required.snap.png +0 -0
- package/src/components/LunarCalendar/tests/__snapshots__/lunar-calendar-with-value.snap.png +0 -0
- package/src/components/MaintenancePage/tests/MaintenancePage.visual.cy.ts +22 -0
- package/src/components/MaintenancePage/tests/__snapshots__/maintenance-page-custom.snap.png +0 -0
- package/src/components/MaintenancePage/tests/__snapshots__/maintenance-page-default.snap.png +0 -0
- package/src/components/MonthPicker/tests/MonthPicker.visual.cy.ts +37 -0
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +2 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-default.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-disabled.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-readonly.snap.png +0 -0
- package/src/components/MonthPicker/tests/__snapshots__/month-picker-with-value.snap.png +0 -0
- package/src/components/NirField/NirField.stories.ts +40 -682
- package/src/components/NirField/NirField.vue +98 -32
- package/src/components/NirField/tests/NirField.spec.ts +135 -14
- package/src/components/NirField/tests/NirField.visual.cy.ts +28 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-complex.snap.png +0 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-default.snap.png +0 -0
- package/src/components/NirField/tests/__snapshots__/nir-field-with-key.snap.png +0 -0
- package/src/components/NirField/tests/useNirValidation.spec.ts +168 -0
- package/src/components/NirField/useNirValidation.ts +28 -2
- package/src/components/NirField/validation/Validation.stories.ts +866 -0
- package/src/components/NotFoundPage/tests/NotFoundPage.visual.cy.ts +28 -0
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-custom-btn.snap.png +0 -0
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-default.snap.png +0 -0
- package/src/components/NotFoundPage/tests/__snapshots__/not-found-page-no-btn.snap.png +0 -0
- package/src/components/NotificationBar/tests/NotificationBar.visual.cy.ts +54 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-bottom.snap.png +0 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-info.snap.png +0 -0
- package/src/components/NotificationBar/tests/__snapshots__/notification-bar-multiple.snap.png +0 -0
- package/src/components/PageContainer/tests/PageContainer.visual.cy.ts +33 -0
- package/src/components/PageContainer/tests/__snapshots__/page-container-color.snap.png +0 -0
- package/src/components/PageContainer/tests/__snapshots__/page-container-default.snap.png +0 -0
- package/src/components/PageContainer/tests/__snapshots__/page-container-md.snap.png +0 -0
- package/src/components/PaginatedTable/accessibilite/Accessibility.mdx +99 -7
- package/src/components/PaginatedTable/tests/PaginatedTable.visual.cy.ts +41 -0
- package/src/components/PaginatedTable/tests/__snapshots__/paginated-table-default.snap.png +0 -0
- package/src/components/PaginatedTable/tests/__snapshots__/paginated-table-server.snap.png +0 -0
- package/src/components/PasswordField/PasswordField.mdx +5 -52
- package/src/components/PasswordField/PasswordField.stories.ts +74 -931
- package/src/components/PasswordField/PasswordField.vue +120 -191
- package/src/components/PasswordField/Validation/Validation.stories.ts +1295 -0
- package/src/components/PasswordField/locales.ts +2 -0
- package/src/components/PasswordField/tests/PasswordField.spec.ts +144 -106
- package/src/components/PasswordField/tests/PasswordField.visual.cy.ts +49 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-default.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-disabled.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-required.snap.png +0 -0
- package/src/components/PasswordField/tests/__snapshots__/password-field-underlined.snap.png +0 -0
- package/src/components/PasswordField/types.ts +17 -0
- package/src/components/PasswordField/usePasswordFieldValidation.ts +100 -0
- package/src/components/PeriodField/PeriodField.stories.ts +3 -1
- package/src/components/PeriodField/PeriodField.vue +1 -1
- package/src/components/PeriodField/tests/PeriodField.visual.cy.ts +39 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-default.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-no-calendar.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-required.snap.png +0 -0
- package/src/components/PeriodField/tests/__snapshots__/period-field-with-value.snap.png +0 -0
- package/src/components/PhoneField/PhoneField.vue +2 -2
- package/src/components/PhoneField/tests/PhoneField.spec.ts +1 -0
- package/src/components/PhoneField/tests/PhoneField.visual.cy.ts +28 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-default.snap.png +0 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-with-country-code.snap.png +0 -0
- package/src/components/PhoneField/tests/__snapshots__/phone-field-with-value.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-bg.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-custom-range.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-default.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-step.snap.png +0 -0
- package/src/components/RangeField/tests/__snapshots__/range-field-with-label.snap.png +0 -0
- package/src/components/RatingPicker/tests/RatingPicker.visual.cy.ts +52 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-emotion.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-number.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-readonly.snap.png +0 -0
- package/src/components/RatingPicker/tests/__snapshots__/rating-picker-stars.snap.png +0 -0
- package/src/components/SearchListField/SearchListField.mdx +1 -1
- package/src/components/SearchListField/SearchListField.stories.ts +1 -1
- package/src/components/SearchListField/SearchListField.vue +9 -4
- package/src/components/SearchListField/tests/SearchListField.spec.ts +127 -0
- package/src/components/SearchListField/tests/SearchListField.visual.cy.ts +35 -0
- package/src/components/SearchListField/tests/__snapshots__/search-list-field-default.snap.png +0 -0
- package/src/components/SearchListField/tests/__snapshots__/search-list-field-with-selection.snap.png +0 -0
- package/src/components/SkipLink/tests/SkipLink.visual.cy.ts +16 -0
- package/src/components/SkipLink/tests/__snapshots__/skip-link-focused.snap.png +0 -0
- package/src/components/SocialMediaLinks/tests/SocialMediaLinks.visual.cy.ts +33 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/social-media-links-default.snap.png +0 -0
- package/src/components/SocialMediaLinks/tests/__snapshots__/social-media-links-no-native-heading.snap.png +0 -0
- package/src/components/StatusPage/tests/StatusPage.visual.cy.ts +47 -0
- package/src/components/StatusPage/tests/__snapshots__/status-page-default.snap.png +0 -0
- package/src/components/StatusPage/tests/__snapshots__/status-page-full.snap.png +0 -0
- package/src/components/StatusPage/tests/__snapshots__/status-page-no-btn.snap.png +0 -0
- package/src/components/SubHeader/tests/SubHeader.visual.cy.ts +48 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-default.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-loading.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-no-back-btn.snap.png +0 -0
- package/src/components/SubHeader/tests/__snapshots__/sub-header-with-subtitle.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-closable.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-error.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-info.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-success.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-outlined.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-variant-tonal.snap.png +0 -0
- package/src/components/SyAlert/tests/__snapshots__/sy-alert-warning.snap.png +0 -0
- package/src/components/SyHeading/tests/SyHeading.visual.cy.ts +33 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-1.snap.png +0 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-2.snap.png +0 -0
- package/src/components/SyHeading/tests/__snapshots__/sy-heading-level-3.snap.png +0 -0
- package/src/components/SyTextArea/SyTextArea.stories.ts +25 -0
- package/src/components/SyTextArea/SyTextArea.vue +7 -0
- package/src/components/SyTextArea/composables/useSyTextAreaValidation.ts +1 -1
- package/src/components/SyTextArea/tests/SyTextArea.a11y.spec.ts +18 -0
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +135 -1
- package/src/components/SyTextArea/tests/SyTextArea.visual.cy.ts +48 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-default.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-filled.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-required.snap.png +0 -0
- package/src/components/SyTextArea/tests/__snapshots__/sy-textarea-with-value.snap.png +0 -0
- package/src/components/SyTextArea/validation/Validation.stories.ts +6 -86
- package/src/components/TableToolbar/tests/TableToolbar.visual.cy.ts +49 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-default.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-filtered.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-loading.snap.png +0 -0
- package/src/components/TableToolbar/tests/__snapshots__/table-toolbar-with-add-btn.snap.png +0 -0
- package/src/components/Tables/SyServerTable/SyServerTable.vue +3 -3
- package/src/components/Tables/SyServerTable/accessibilite/Accessibility.mdx +114 -7
- package/src/components/Tables/SyServerTable/tests/SyServerTable.visual.cy.ts +58 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-default.snap.png +0 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-loading.snap.png +0 -0
- package/src/components/Tables/SyServerTable/tests/__snapshots__/sy-server-table-with-select.snap.png +0 -0
- package/src/components/Tables/SyTable/accessibilite/Accessibility.mdx +116 -7
- package/src/components/Tables/SyTable/tests/SyTable.visual.cy.ts +70 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-compact.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-default.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-striped.snap.png +0 -0
- package/src/components/Tables/SyTable/tests/__snapshots__/sy-table-with-select.snap.png +0 -0
- package/src/components/Tables/common/tableStyles.scss +4 -4
- package/src/components/Tables/common/tests/SyTableFilter.spec.ts +8 -1
- package/src/components/Tables/common/tests/filterByRange.spec.ts +23 -22
- package/src/components/ToolbarContainer/tests/ToolbarContainer.visual.cy.ts +34 -0
- package/src/components/ToolbarContainer/tests/__snapshots__/toolbar-container-default.snap.png +0 -0
- package/src/components/ToolbarContainer/tests/__snapshots__/toolbar-container-links.snap.png +0 -0
- package/src/components/UploadWorkflow/tests/UploadWorkflow.spec.ts +1 -2
- package/src/components/UploadWorkflow/tests/UploadWorkflow.visual.cy.ts +39 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/upload-workflow-default.snap.png +0 -0
- package/src/components/UploadWorkflow/tests/__snapshots__/upload-workflow-with-title.snap.png +0 -0
- package/src/components/UserMenuBtn/tests/UserMenuBtn.visual.cy.ts +42 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-default.snap.png +0 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-no-logout.snap.png +0 -0
- package/src/components/UserMenuBtn/tests/__snapshots__/user-menu-btn-with-name.snap.png +0 -0
- package/src/composables/unifyValidation/documentationValidationProps.ts +1 -1
- package/src/composables/unifyValidation/tests/documentationValidationProps.spec.ts +2 -2
- package/src/composables/unifyValidation/useValidation.ts +17 -11
- package/src/composables/useFilterable/useFilterable.spec.ts +105 -142
- package/src/composables/useFilterable/useFilterable.ts +6 -17
- package/src/composables/useFormFieldErrorHandling.ts +1 -1
- package/src/composables/validation/tests/useFormValidation.spec.ts +11 -2
- package/src/composables/validation/tests/useValidatable.spec.ts +16 -6
- package/src/composables/validation/tests/useValidation.spec.ts +2 -2
- package/src/composables/validation/useValidation.ts +1 -1
- package/src/composantsVuetify/VCard/VCard.mdx +8 -0
- package/src/composantsVuetify/VCard/v-card.stories.ts +191 -1
- package/src/composantsVuetify/VStepper/VStepper.mdx +56 -0
- package/src/composantsVuetify/VStepper/v-stepper.stories.ts +563 -0
- package/src/designTokens/tokens/amelipro/apLightTheme.ts +1 -0
- package/src/designTokens/tokens/amelipro/apSemantic.ts +1 -1
- package/src/designTokens/tokens/pa/paLightTheme.ts +1 -0
- package/src/stories/Accessibilite/DesignSystem/a11y-status.json +1 -1
- package/src/stories/Components/Components.stories.ts +61 -10
- package/src/stories/Demarrer/Releases.stories.ts +45 -2
- package/src/stories/DesignTokens/Colors.mdx +2 -0
- package/src/stories/DesignTokens/colors.stories.ts +13 -0
- package/src/stories/EcoConception/EcoBestPracticesDoc.vue +930 -0
- package/src/stories/EcoConception/EcoBestPratices.mdx +38 -0
- package/src/stories/EcoConception/Introduction.mdx +8 -1
- package/src/stories/EcoConception/datas/bonnes_pratiques_essentielles.json +1018 -0
- package/src/stories/EcoConception/ecoconception-best-practices.stories.ts +20 -0
- package/src/stories/GuideDuDev/Amelipro.mdx +9 -1
- package/src/stories/GuideDuDev/Amelipro.stories.ts +955 -168
- package/src/stories/GuideDuDev/PortailAgent.stories.ts +0 -1
- package/src/utils/functions/deepCopy/index.ts +2 -3
- package/dist/components/Customs/SyCheckbox/locales.d.ts +0 -3
- package/dist/components/SyHeading/SyHeading.a11y.test.d.ts +0 -1
- package/dist/components/SyHeading/SyHeading.test.d.ts +0 -1
- package/src/components/Customs/SyCheckbox/locales.ts +0 -3
- package/src/components/Customs/SyTextField/types.d.ts +0 -4
package/dist/components/Customs/Selects/SyAutocomplete/composables/useSyAutocompleteValidation.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ export declare function useSyAutocompleteValidation(props: FieldValidationProps)
|
|
|
4
4
|
focused: Ref<boolean, boolean>;
|
|
5
5
|
hasInteracted: Ref<boolean, boolean>;
|
|
6
6
|
markInteracted: () => void;
|
|
7
|
-
validate: (
|
|
8
|
-
clearValidation: (
|
|
7
|
+
validate: () => Promise<boolean>;
|
|
8
|
+
clearValidation: () => void;
|
|
9
9
|
validateOnSubmit: () => Promise<boolean>;
|
|
10
10
|
validateOnBlur: () => void;
|
|
11
11
|
displayErrors: import('vue').ComputedRef<string[]>;
|
|
@@ -44,8 +44,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
44
44
|
valueKey: string;
|
|
45
45
|
disableErrorHandling: boolean;
|
|
46
46
|
errorMessages: string | string[];
|
|
47
|
-
displayAsterisk: boolean;
|
|
48
47
|
customRules: ValidationRule[];
|
|
48
|
+
displayAsterisk: boolean;
|
|
49
49
|
clearable: boolean;
|
|
50
50
|
isHeaderToolbar: boolean;
|
|
51
51
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -44,7 +44,6 @@ declare function __VLS_template(): {
|
|
|
44
44
|
append?(_: {}): any;
|
|
45
45
|
};
|
|
46
46
|
refs: {
|
|
47
|
-
labelRef: HTMLSpanElement;
|
|
48
47
|
list: ({
|
|
49
48
|
$: import('vue').ComponentInternalInstance;
|
|
50
49
|
$data: {};
|
|
@@ -490,7 +489,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
490
489
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
491
490
|
isOpen: import('vue').Ref<boolean, boolean>;
|
|
492
491
|
closeList: (event?: Event) => void;
|
|
493
|
-
validateOnSubmit: (
|
|
492
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
494
493
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
495
494
|
"update:modelValue": (...args: any[]) => void;
|
|
496
495
|
"prepend-icon-click": (...args: any[]) => void;
|
|
@@ -522,6 +521,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
522
521
|
disableErrorHandling: boolean;
|
|
523
522
|
errorMessages: string[] | null;
|
|
524
523
|
maxErrors: number;
|
|
524
|
+
hasError: boolean;
|
|
525
|
+
hasWarning: boolean;
|
|
526
|
+
hasSuccess: boolean;
|
|
527
|
+
useVuetifyValidation: boolean;
|
|
528
|
+
customRules: import('../../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
529
|
+
customWarningRules: import('../../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
530
|
+
customSuccessRules: import('../../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
525
531
|
prependTooltip: string;
|
|
526
532
|
appendTooltip: string;
|
|
527
533
|
tooltipLocation: "top" | "bottom" | "start" | "end";
|
|
@@ -531,23 +537,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
531
537
|
disableClickButton: boolean;
|
|
532
538
|
autocomplete: "on" | "off" | string;
|
|
533
539
|
helpText: string;
|
|
534
|
-
|
|
535
|
-
customSuccessRules: import('../../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
536
|
-
customWarningRules: import('../../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
537
|
-
hasError: boolean;
|
|
538
|
-
hasSuccess: boolean;
|
|
539
|
-
hasWarning: boolean;
|
|
540
|
+
hideDetails: boolean;
|
|
540
541
|
isValidateOnBlur: boolean;
|
|
541
542
|
successMessages: string[] | null;
|
|
542
|
-
useVuetifyValidation: boolean;
|
|
543
543
|
warningMessages: string[] | null;
|
|
544
|
-
hideDetails: boolean;
|
|
545
544
|
clearable: boolean;
|
|
546
545
|
plainTextKey: string;
|
|
547
546
|
chips: boolean;
|
|
548
547
|
allowHtml: boolean;
|
|
549
548
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
550
|
-
labelRef: HTMLSpanElement;
|
|
551
549
|
list: ({
|
|
552
550
|
$: import('vue').ComponentInternalInstance;
|
|
553
551
|
$data: {};
|
|
@@ -3,13 +3,13 @@ export declare function useSySelectValidation(props: FieldValidationProps & {
|
|
|
3
3
|
modelValue?: unknown;
|
|
4
4
|
}): {
|
|
5
5
|
focused: import('vue').Ref<boolean, boolean>;
|
|
6
|
-
validate: (
|
|
7
|
-
clearValidation: (
|
|
8
|
-
errors: import('vue').
|
|
9
|
-
warnings: import('vue').
|
|
10
|
-
successes: import('vue').
|
|
11
|
-
hasError: import('vue').ComputedRef<boolean
|
|
12
|
-
hasWarning: import('vue').ComputedRef<boolean
|
|
6
|
+
validate: () => Promise<boolean>;
|
|
7
|
+
clearValidation: () => void;
|
|
8
|
+
errors: import('vue').ComputedRef<string[]>;
|
|
9
|
+
warnings: import('vue').ComputedRef<string[]>;
|
|
10
|
+
successes: import('vue').ComputedRef<string[]>;
|
|
11
|
+
hasError: import('vue').ComputedRef<boolean | undefined>;
|
|
12
|
+
hasWarning: import('vue').ComputedRef<boolean | undefined>;
|
|
13
13
|
hasSuccess: import('vue').ComputedRef<boolean>;
|
|
14
14
|
validationIcon: import('vue').ComputedRef<string | null>;
|
|
15
15
|
};
|
|
@@ -66,14 +66,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
66
66
|
showSuccessMessages: boolean;
|
|
67
67
|
disableErrorHandling: boolean;
|
|
68
68
|
errorMessages: string[] | null;
|
|
69
|
-
displayAsterisk: boolean;
|
|
70
69
|
customRules: ValidationRule[];
|
|
71
|
-
customSuccessRules: ValidationRule[];
|
|
72
70
|
customWarningRules: ValidationRule[];
|
|
71
|
+
customSuccessRules: ValidationRule[];
|
|
72
|
+
displayAsterisk: boolean;
|
|
73
|
+
hideDetails: boolean | "auto";
|
|
73
74
|
isValidateOnBlur: boolean;
|
|
74
75
|
successMessages: string[] | null;
|
|
75
76
|
warningMessages: string[] | null;
|
|
76
|
-
hideDetails: boolean | "auto";
|
|
77
77
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
78
|
messagesRef: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
79
79
|
style: string | false | import('vue').StyleValue[] | import('vue').CSSProperties | null;
|
|
@@ -452,7 +452,7 @@ declare function __VLS_template(): {
|
|
|
452
452
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
453
453
|
modelValue?: unknown;
|
|
454
454
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
455
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
455
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
456
456
|
_allExposed: {
|
|
457
457
|
reset: () => Promise<void>;
|
|
458
458
|
resetValidation: () => Promise<void>;
|
|
@@ -677,14 +677,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
677
677
|
showSuccessMessages: boolean;
|
|
678
678
|
disableErrorHandling: boolean;
|
|
679
679
|
errorMessages: string[] | null;
|
|
680
|
-
displayAsterisk: boolean;
|
|
681
680
|
customRules: ValidationRule[];
|
|
682
|
-
customSuccessRules: ValidationRule[];
|
|
683
681
|
customWarningRules: ValidationRule[];
|
|
682
|
+
customSuccessRules: ValidationRule[];
|
|
683
|
+
displayAsterisk: boolean;
|
|
684
|
+
hideDetails: boolean | "auto";
|
|
684
685
|
isValidateOnBlur: boolean;
|
|
685
686
|
successMessages: string[] | null;
|
|
686
687
|
warningMessages: string[] | null;
|
|
687
|
-
hideDetails: boolean | "auto";
|
|
688
688
|
trueValue: true;
|
|
689
689
|
falseValue: false;
|
|
690
690
|
controlsIds: string[];
|
|
@@ -1102,7 +1102,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1102
1102
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1103
1103
|
modelValue?: unknown;
|
|
1104
1104
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
1105
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
1105
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
1106
1106
|
_allExposed: {
|
|
1107
1107
|
reset: () => Promise<void>;
|
|
1108
1108
|
resetValidation: () => Promise<void>;
|
|
@@ -7,6 +7,82 @@ type __VLS_Props = {
|
|
|
7
7
|
autoDetectButton?: boolean;
|
|
8
8
|
color?: string;
|
|
9
9
|
size?: string;
|
|
10
|
+
width?: string;
|
|
10
11
|
};
|
|
11
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
svg: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
14
|
+
style: string | false | import('vue').StyleValue[] | import('vue').CSSProperties | null;
|
|
15
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent;
|
|
16
|
+
size: string | number;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
start: boolean;
|
|
19
|
+
end: boolean;
|
|
20
|
+
} & {
|
|
21
|
+
theme?: string | undefined;
|
|
22
|
+
class?: any;
|
|
23
|
+
color?: string | undefined;
|
|
24
|
+
icon?: IconValue | undefined;
|
|
25
|
+
opacity?: string | number | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
$children?: {
|
|
28
|
+
default?: (() => import('vue').VNodeChild) | undefined;
|
|
29
|
+
} | {
|
|
30
|
+
$stable?: boolean | undefined;
|
|
31
|
+
} | (() => import('vue').VNodeChild) | import('vue').VNodeChild;
|
|
32
|
+
"v-slots"?: {
|
|
33
|
+
default?: false | (() => import('vue').VNodeChild) | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
} & {
|
|
36
|
+
"v-slot:default"?: false | (() => import('vue').VNodeChild) | undefined;
|
|
37
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, Record<string, any>, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, {
|
|
38
|
+
style: import('vue').StyleValue;
|
|
39
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent;
|
|
40
|
+
size: string | number;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
start: boolean;
|
|
43
|
+
end: boolean;
|
|
44
|
+
}, true, {}, import('vue').SlotsType<Partial<{
|
|
45
|
+
default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}>[];
|
|
48
|
+
}>>, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, {
|
|
56
|
+
style: string | false | import('vue').StyleValue[] | import('vue').CSSProperties | null;
|
|
57
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent;
|
|
58
|
+
size: string | number;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
start: boolean;
|
|
61
|
+
end: boolean;
|
|
62
|
+
} & {
|
|
63
|
+
theme?: string | undefined;
|
|
64
|
+
class?: any;
|
|
65
|
+
color?: string | undefined;
|
|
66
|
+
icon?: IconValue | undefined;
|
|
67
|
+
opacity?: string | number | undefined;
|
|
68
|
+
} & {
|
|
69
|
+
$children?: {
|
|
70
|
+
default?: (() => import('vue').VNodeChild) | undefined;
|
|
71
|
+
} | {
|
|
72
|
+
$stable?: boolean | undefined;
|
|
73
|
+
} | (() => import('vue').VNodeChild) | import('vue').VNodeChild;
|
|
74
|
+
"v-slots"?: {
|
|
75
|
+
default?: false | (() => import('vue').VNodeChild) | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
} & {
|
|
78
|
+
"v-slot:default"?: false | (() => import('vue').VNodeChild) | undefined;
|
|
79
|
+
}, {}, {}, {}, {}, {
|
|
80
|
+
style: import('vue').StyleValue;
|
|
81
|
+
tag: string | import('vuetify/lib/types.mjs').JSXComponent;
|
|
82
|
+
size: string | number;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
start: boolean;
|
|
85
|
+
end: boolean;
|
|
86
|
+
}> | null;
|
|
87
|
+
}, any>;
|
|
12
88
|
export default _default;
|
|
@@ -422,7 +422,7 @@ declare function __VLS_template(): {
|
|
|
422
422
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
423
423
|
modelValue?: unknown;
|
|
424
424
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
425
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
425
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
426
426
|
_allExposed: {
|
|
427
427
|
reset: () => Promise<void>;
|
|
428
428
|
resetValidation: () => Promise<void>;
|
|
@@ -620,19 +620,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
620
620
|
disableErrorHandling: boolean;
|
|
621
621
|
errorMessages: string[] | null;
|
|
622
622
|
maxErrors: number;
|
|
623
|
-
displayAsterisk: boolean;
|
|
624
|
-
helpText: string;
|
|
625
|
-
customRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
626
|
-
customSuccessRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
627
|
-
customWarningRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
628
623
|
hasError: boolean;
|
|
629
|
-
hasSuccess: boolean;
|
|
630
624
|
hasWarning: boolean;
|
|
625
|
+
hasSuccess: boolean;
|
|
626
|
+
useVuetifyValidation: boolean;
|
|
627
|
+
customRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
628
|
+
customWarningRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
629
|
+
customSuccessRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
630
|
+
displayAsterisk: boolean;
|
|
631
|
+
helpText: string;
|
|
632
|
+
hideDetails: boolean | "auto";
|
|
631
633
|
isValidateOnBlur: boolean;
|
|
632
634
|
successMessages: string[] | null;
|
|
633
|
-
useVuetifyValidation: boolean;
|
|
634
635
|
warningMessages: string[] | null;
|
|
635
|
-
hideDetails: boolean | "auto";
|
|
636
636
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
637
637
|
radioGroupRef: ({
|
|
638
638
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -1031,7 +1031,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1031
1031
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1032
1032
|
modelValue?: unknown;
|
|
1033
1033
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
1034
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
1034
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
1035
1035
|
_allExposed: {
|
|
1036
1036
|
reset: () => Promise<void>;
|
|
1037
1037
|
resetValidation: () => Promise<void>;
|
|
@@ -1,66 +1,5 @@
|
|
|
1
1
|
import { nextTick, ComponentPublicInstance } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { ValidationRule } from '../../../composables/validation/useValidation';
|
|
4
|
-
import { FieldValidationProps } from '../../../composables/unifyValidation/useValidation';
|
|
5
|
-
type __VLS_Props = {
|
|
6
|
-
modelValue?: string | number | null | undefined;
|
|
7
|
-
prependIcon?: IconType;
|
|
8
|
-
appendIcon?: IconType;
|
|
9
|
-
prependInnerIcon?: IconType;
|
|
10
|
-
appendInnerIcon?: IconType;
|
|
11
|
-
prependTooltip?: string;
|
|
12
|
-
appendTooltip?: string;
|
|
13
|
-
tooltipLocation?: 'top' | 'bottom' | 'start' | 'end';
|
|
14
|
-
variantStyle?: VariantStyle;
|
|
15
|
-
color?: ColorType;
|
|
16
|
-
isClearable?: boolean;
|
|
17
|
-
showDivider?: boolean;
|
|
18
|
-
label?: string;
|
|
19
|
-
readonly?: boolean;
|
|
20
|
-
isActive?: boolean;
|
|
21
|
-
baseColor?: string;
|
|
22
|
-
bgColor?: string;
|
|
23
|
-
centerAffix?: boolean;
|
|
24
|
-
counter?: string | number | boolean;
|
|
25
|
-
counterValue?: number | ((value: any) => number);
|
|
26
|
-
density?: 'default' | 'comfortable' | 'compact';
|
|
27
|
-
direction?: 'horizontal' | 'vertical';
|
|
28
|
-
isDirty?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
isFlat?: boolean;
|
|
31
|
-
isFocused?: boolean;
|
|
32
|
-
areDetailsHidden?: boolean | 'auto';
|
|
33
|
-
areSpinButtonsHidden?: boolean;
|
|
34
|
-
hint?: string;
|
|
35
|
-
id?: string;
|
|
36
|
-
loading?: string | boolean;
|
|
37
|
-
maxWidth?: string | number;
|
|
38
|
-
messages?: string | string[];
|
|
39
|
-
minWidth?: string | number;
|
|
40
|
-
name?: string;
|
|
41
|
-
displayPersistentClear?: boolean;
|
|
42
|
-
displayPersistentCounter?: boolean;
|
|
43
|
-
displayPersistentHint?: boolean;
|
|
44
|
-
displayPersistentPlaceholder?: boolean;
|
|
45
|
-
placeholder?: string;
|
|
46
|
-
prefix?: string;
|
|
47
|
-
isReversed?: boolean;
|
|
48
|
-
role?: string;
|
|
49
|
-
rounded?: string | number | boolean;
|
|
50
|
-
isOnSingleLine?: boolean;
|
|
51
|
-
suffix?: string;
|
|
52
|
-
theme?: string;
|
|
53
|
-
isTiled?: boolean;
|
|
54
|
-
type?: string;
|
|
55
|
-
width?: string | number;
|
|
56
|
-
displayAsterisk?: boolean;
|
|
57
|
-
noIcon?: boolean;
|
|
58
|
-
disableClickButton?: boolean;
|
|
59
|
-
autocomplete?: string;
|
|
60
|
-
helpText?: string;
|
|
61
|
-
maxlength?: string | number;
|
|
62
|
-
title?: string | false;
|
|
63
|
-
} & FieldValidationProps;
|
|
2
|
+
import { SyTextFieldProps } from './types';
|
|
64
3
|
declare function __VLS_template(): {
|
|
65
4
|
attrs: Partial<{}>;
|
|
66
5
|
slots: {
|
|
@@ -451,7 +390,7 @@ declare function __VLS_template(): {
|
|
|
451
390
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
452
391
|
modelValue?: unknown;
|
|
453
392
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
454
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
393
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & Omit<Omit<{
|
|
455
394
|
$: import('vue').ComponentInternalInstance;
|
|
456
395
|
$data: {};
|
|
457
396
|
$props: Partial<{
|
|
@@ -1188,7 +1127,7 @@ declare function __VLS_template(): {
|
|
|
1188
1127
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1189
1128
|
modelValue?: unknown;
|
|
1190
1129
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
1191
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
1130
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & Omit<Omit<{
|
|
1192
1131
|
$: import('vue').ComponentInternalInstance;
|
|
1193
1132
|
$data: {};
|
|
1194
1133
|
$props: Partial<{
|
|
@@ -1498,8 +1437,8 @@ declare function __VLS_template(): {
|
|
|
1498
1437
|
rootEl: any;
|
|
1499
1438
|
};
|
|
1500
1439
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1501
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
1502
|
-
validateOnSubmit: (
|
|
1440
|
+
declare const __VLS_component: import('vue').DefineComponent<SyTextFieldProps, {
|
|
1441
|
+
validateOnSubmit: () => Promise<boolean>;
|
|
1503
1442
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1504
1443
|
input: (...args: any[]) => void;
|
|
1505
1444
|
blur: (...args: any[]) => void;
|
|
@@ -1509,7 +1448,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1509
1448
|
clear: (...args: any[]) => void;
|
|
1510
1449
|
"prepend-icon-click": (...args: any[]) => void;
|
|
1511
1450
|
"append-icon-click": (...args: any[]) => void;
|
|
1512
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
1451
|
+
}, string, import('vue').PublicProps, Readonly<SyTextFieldProps> & Readonly<{
|
|
1513
1452
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
1514
1453
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
1515
1454
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
@@ -1524,10 +1463,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1524
1463
|
title: string | false;
|
|
1525
1464
|
width: string | number;
|
|
1526
1465
|
role: string;
|
|
1527
|
-
color: ColorType;
|
|
1466
|
+
color: import('./types').ColorType;
|
|
1528
1467
|
theme: string;
|
|
1529
1468
|
disabled: boolean;
|
|
1530
1469
|
placeholder: string;
|
|
1470
|
+
locales: Partial<import('./locales').SyTextFieldLocales>;
|
|
1531
1471
|
density: "default" | "comfortable" | "compact";
|
|
1532
1472
|
rounded: string | number | boolean;
|
|
1533
1473
|
maxWidth: string | number;
|
|
@@ -1548,12 +1488,19 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1548
1488
|
disableErrorHandling: boolean;
|
|
1549
1489
|
errorMessages: string[] | null;
|
|
1550
1490
|
maxErrors: number;
|
|
1491
|
+
hasError: boolean;
|
|
1492
|
+
hasWarning: boolean;
|
|
1493
|
+
hasSuccess: boolean;
|
|
1494
|
+
useVuetifyValidation: boolean;
|
|
1495
|
+
customRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
1496
|
+
customWarningRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
1497
|
+
customSuccessRules: import('../../../composables/unifyValidation/useValidation').ValidationRule[];
|
|
1551
1498
|
prependInnerIcon: "info" | "success" | "warning" | "error" | "close" | "calendar";
|
|
1552
1499
|
appendInnerIcon: "info" | "success" | "warning" | "error" | "close" | "calendar";
|
|
1553
1500
|
prependTooltip: string;
|
|
1554
1501
|
appendTooltip: string;
|
|
1555
1502
|
tooltipLocation: "top" | "bottom" | "start" | "end";
|
|
1556
|
-
variantStyle: VariantStyle;
|
|
1503
|
+
variantStyle: import('./types').VariantStyle;
|
|
1557
1504
|
isClearable: boolean;
|
|
1558
1505
|
centerAffix: boolean;
|
|
1559
1506
|
counter: string | number | boolean;
|
|
@@ -1562,7 +1509,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1562
1509
|
isDirty: boolean;
|
|
1563
1510
|
isFlat: boolean;
|
|
1564
1511
|
isFocused: boolean;
|
|
1565
|
-
areDetailsHidden: boolean | "auto";
|
|
1566
1512
|
areSpinButtonsHidden: boolean;
|
|
1567
1513
|
hint: string;
|
|
1568
1514
|
messages: string | string[];
|
|
@@ -1580,15 +1526,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1580
1526
|
autocomplete: string;
|
|
1581
1527
|
helpText: string;
|
|
1582
1528
|
maxlength: string | number;
|
|
1583
|
-
|
|
1584
|
-
customSuccessRules: ValidationRule[];
|
|
1585
|
-
customWarningRules: ValidationRule[];
|
|
1586
|
-
hasError: boolean;
|
|
1587
|
-
hasSuccess: boolean;
|
|
1588
|
-
hasWarning: boolean;
|
|
1529
|
+
hideDetails: boolean | "auto";
|
|
1589
1530
|
isValidateOnBlur: boolean;
|
|
1590
1531
|
successMessages: string[] | null;
|
|
1591
|
-
useVuetifyValidation: boolean;
|
|
1592
1532
|
warningMessages: string[] | null;
|
|
1593
1533
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
1594
1534
|
syTextFieldRef: import('vue').CreateComponentPublicInstanceWithMixins<{
|
|
@@ -1970,7 +1910,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
1970
1910
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1971
1911
|
modelValue?: unknown;
|
|
1972
1912
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
1973
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
1913
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & Omit<Omit<{
|
|
1974
1914
|
$: import('vue').ComponentInternalInstance;
|
|
1975
1915
|
$data: {};
|
|
1976
1916
|
$props: Partial<{
|
|
@@ -2707,7 +2647,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
2707
2647
|
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
2708
2648
|
modelValue?: unknown;
|
|
2709
2649
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
2710
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "
|
|
2650
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "hideDetails" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & Omit<Omit<{
|
|
2711
2651
|
$: import('vue').ComponentInternalInstance;
|
|
2712
2652
|
$data: {};
|
|
2713
2653
|
$props: Partial<{
|
|
@@ -1,4 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
1
|
+
import { FieldValidationProps } from '../../../composables/unifyValidation/useValidation';
|
|
2
|
+
import { SyTextFieldLocales } from './locales';
|
|
3
|
+
export type IconType = 'info' | 'success' | 'warning' | 'error' | 'close' | 'calendar' | undefined;
|
|
4
|
+
export type VariantStyle = 'outlined' | 'plain' | 'underlined' | 'filled' | 'solo' | 'solo-inverted' | 'solo-filled';
|
|
5
|
+
export type ColorType = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'error';
|
|
6
|
+
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;
|
|
7
|
+
export type SyTextFieldProps = {
|
|
8
|
+
modelValue?: string | number | null | undefined;
|
|
9
|
+
prependIcon?: IconType;
|
|
10
|
+
appendIcon?: IconType;
|
|
11
|
+
prependInnerIcon?: IconType;
|
|
12
|
+
appendInnerIcon?: IconType;
|
|
13
|
+
prependTooltip?: string;
|
|
14
|
+
appendTooltip?: string;
|
|
15
|
+
tooltipLocation?: 'top' | 'bottom' | 'start' | 'end';
|
|
16
|
+
variantStyle?: VariantStyle;
|
|
17
|
+
color?: ColorType;
|
|
18
|
+
isClearable?: boolean;
|
|
19
|
+
showDivider?: boolean;
|
|
20
|
+
label?: string;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
isActive?: boolean;
|
|
23
|
+
baseColor?: string;
|
|
24
|
+
bgColor?: string;
|
|
25
|
+
centerAffix?: boolean;
|
|
26
|
+
counter?: string | number | boolean;
|
|
27
|
+
counterValue?: number | ((value: any) => number);
|
|
28
|
+
density?: 'default' | 'comfortable' | 'compact';
|
|
29
|
+
direction?: 'horizontal' | 'vertical';
|
|
30
|
+
isDirty?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
isFlat?: boolean;
|
|
33
|
+
isFocused?: boolean;
|
|
34
|
+
areSpinButtonsHidden?: boolean;
|
|
35
|
+
hint?: string;
|
|
36
|
+
id?: string;
|
|
37
|
+
loading?: string | boolean;
|
|
38
|
+
maxWidth?: string | number;
|
|
39
|
+
messages?: string | string[];
|
|
40
|
+
minWidth?: string | number;
|
|
41
|
+
name?: string;
|
|
42
|
+
displayPersistentClear?: boolean;
|
|
43
|
+
displayPersistentCounter?: boolean;
|
|
44
|
+
displayPersistentHint?: boolean;
|
|
45
|
+
displayPersistentPlaceholder?: boolean;
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
prefix?: string;
|
|
48
|
+
isReversed?: boolean;
|
|
49
|
+
role?: string;
|
|
50
|
+
rounded?: string | number | boolean;
|
|
51
|
+
isOnSingleLine?: boolean;
|
|
52
|
+
suffix?: string;
|
|
53
|
+
theme?: string;
|
|
54
|
+
isTiled?: boolean;
|
|
55
|
+
type?: string;
|
|
56
|
+
width?: string | number;
|
|
57
|
+
displayAsterisk?: boolean;
|
|
58
|
+
noIcon?: boolean;
|
|
59
|
+
disableClickButton?: boolean;
|
|
60
|
+
autocomplete?: string;
|
|
61
|
+
helpText?: string;
|
|
62
|
+
maxlength?: string | number;
|
|
63
|
+
title?: string | false;
|
|
64
|
+
hideDetails?: boolean | 'auto';
|
|
65
|
+
/** Surcharge des libellés d'accessibilité (boutons +/-, vider, chargement). */
|
|
66
|
+
locales?: Partial<SyTextFieldLocales>;
|
|
67
|
+
} & FieldValidationProps;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Regroupe la logique propre au mode `type="number"` de SyTextField.
|
|
4
|
+
*
|
|
5
|
+
* Un champ number est rendu en `type=text` (+ `inputmode=decimal`) pour que `input.value`
|
|
6
|
+
* reste lisible et corrigeable sur tous les navigateurs (Chrome comme Firefox). L'incrément
|
|
7
|
+
* natif étant alors perdu, il est réimplémenté ici (flèches ↑/↓ + boutons +/-).
|
|
8
|
+
*/
|
|
9
|
+
export declare function useNumberField(params: {
|
|
10
|
+
type: Ref<string | undefined>;
|
|
11
|
+
disabled: Ref<boolean | undefined>;
|
|
12
|
+
readonly: Ref<boolean | undefined>;
|
|
13
|
+
model: Ref<string | number | null | undefined>;
|
|
14
|
+
attrs: Record<string, unknown>;
|
|
15
|
+
}): {
|
|
16
|
+
isNumberField: import('vue').ComputedRef<boolean>;
|
|
17
|
+
nativeInputType: import('vue').ComputedRef<string | undefined>;
|
|
18
|
+
sanitizeNumberValue: (value: string | number | null | undefined) => string | number | null | undefined;
|
|
19
|
+
isAllowedNumberCharacter: (char: string) => boolean;
|
|
20
|
+
hasDisallowedNumberCharacter: (data: string) => boolean;
|
|
21
|
+
stepValue: (direction: 1 | -1) => void;
|
|
22
|
+
handleStepKeydown: (event: KeyboardEvent) => boolean;
|
|
23
|
+
};
|