origam 2.41.0 → 2.42.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/CHANGELOG.md +103 -0
- package/dist/src/assets/locales/en.json +10 -1
- package/dist/src/assets/locales/fr.json +10 -1
- package/dist/src/components/Alert/OrigamAlert.vue +1 -2
- package/dist/src/components/Audio/OrigamAudio.vue +15 -14
- package/dist/src/components/Badge/OrigamBadge.vue +6 -1
- package/dist/src/components/Bracket/OrigamBracket.vue +5 -5
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +1 -2
- package/dist/src/components/Btn/OrigamBtn.vue +71 -27
- package/dist/src/components/Card/OrigamCard.vue +2 -1
- package/dist/src/components/Carousel/OrigamCarousel.vue +14 -13
- package/dist/src/components/Chart/OrigamChartBullet.vue +4 -1
- package/dist/src/components/Chart/OrigamChartPictorial.vue +3 -6
- package/dist/src/components/Chart/OrigamChartPolar.vue +2 -1
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +3 -1
- package/dist/src/components/Chart/OrigamChartSankey.vue +9 -167
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +14 -12
- package/dist/src/components/Chart/OrigamChartSunburst.vue +10 -2
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +39 -36
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +3 -4
- package/dist/src/components/Chip/OrigamChip.vue +14 -15
- package/dist/src/components/Chip/OrigamChipGroup.vue +2 -3
- package/dist/src/components/Clipboard/OrigamClipboard.vue +1 -1
- package/dist/src/components/Code/OrigamCode.vue +4 -2
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +5 -1
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +1 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +1 -2
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +1 -2
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +6 -2
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +2 -4
- package/dist/src/components/Counter/OrigamCounter.vue +1 -0
- package/dist/src/components/DataTable/OrigamDataTable.vue +2 -3
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +1 -2
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +3 -2
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +2 -3
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +43 -39
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +3 -4
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +1 -1
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1 -2
- package/dist/src/components/Dialog/OrigamDialog.vue +1 -2
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +2 -3
- package/dist/src/components/Field/OrigamField.vue +2 -6
- package/dist/src/components/FileField/OrigamFileField.vue +23 -6
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +3 -4
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +3 -4
- package/dist/src/components/Form/OrigamForm.vue +0 -2
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +7 -7
- package/dist/src/components/Input/OrigamInput.vue +3 -11
- package/dist/src/components/List/OrigamListGroup.vue +2 -3
- package/dist/src/components/List/OrigamListItem.vue +11 -5
- package/dist/src/components/Media/OrigamMediaController.vue +12 -13
- package/dist/src/components/Media/OrigamMediaScrubber.vue +15 -12
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +4 -5
- package/dist/src/components/Menu/OrigamMenu.vue +1 -2
- package/dist/src/components/NumberField/OrigamNumberField.vue +7 -10
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +7 -1
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1 -1
- package/dist/src/components/Pagination/OrigamPagination.vue +4 -5
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +1 -4
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +37 -15
- package/dist/src/components/Progress/OrigamProgressLinear.vue +7 -6
- package/dist/src/components/Radio/OrigamRadio.vue +5 -2
- package/dist/src/components/Radio/OrigamRadioBtn.vue +7 -5
- package/dist/src/components/RatingField/OrigamRatingField.vue +1 -2
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +2 -3
- package/dist/src/components/Select/OrigamSelect.vue +174 -107
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +7 -2
- package/dist/src/components/Slide/OrigamSlideGroup.vue +7 -10
- package/dist/src/components/SliderField/OrigamSliderField.vue +1 -2
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +9 -10
- package/dist/src/components/Stepper/OrigamStepper.vue +7 -11
- package/dist/src/components/Stepper/OrigamStepperItem.vue +2 -3
- package/dist/src/components/Switch/OrigamSwitch.vue +0 -9
- package/dist/src/components/Tabs/OrigamTabs.vue +1 -1
- package/dist/src/components/TextField/OrigamTextField.vue +2 -5
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +3 -2
- package/dist/src/components/TextareaField/OrigamTextareaFieldRichToolbar.vue +13 -14
- package/dist/src/components/Transition/OrigamExpandX.vue +4 -10
- package/dist/src/components/Transition/OrigamExpandY.vue +4 -10
- package/dist/src/components/Transition/OrigamSnack.vue +2 -8
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +24 -18
- package/dist/src/components/Video/OrigamVideo.vue +14 -19
- package/dist/src/components/Window/OrigamWindow.vue +2 -3
- package/dist/src/composables/Audio/use-waveform.composable.cjs +24 -19
- package/dist/src/composables/Audio/use-waveform.composable.js +24 -19
- package/dist/src/composables/Calendar/calendar.composable.cjs +11 -11
- package/dist/src/composables/Calendar/calendar.composable.js +1 -1
- package/dist/src/composables/Chart/chart.composable.cjs +541 -415
- package/dist/src/composables/Chart/chart.composable.d.ts +2 -5
- package/dist/src/composables/Chart/chart.composable.js +392 -338
- package/dist/src/composables/Code/code.composable.cjs +4 -4
- package/dist/src/composables/Code/code.composable.js +1 -1
- package/dist/src/composables/Commons/color.composable.cjs +106 -48
- package/dist/src/composables/Commons/color.composable.js +55 -48
- package/dist/src/composables/Commons/display.composable.cjs +7 -1
- package/dist/src/composables/Commons/display.composable.js +2 -2
- package/dist/src/composables/Commons/dragResizer.composable.cjs +11 -10
- package/dist/src/composables/Commons/dragResizer.composable.js +2 -1
- package/dist/src/composables/Commons/group.composable.cjs +17 -14
- package/dist/src/composables/Commons/group.composable.js +19 -15
- package/dist/src/composables/Commons/nested.composable.cjs +16 -16
- package/dist/src/composables/Commons/nested.composable.d.ts +1 -1
- package/dist/src/composables/Commons/nested.composable.js +1 -1
- package/dist/src/composables/Commons/nestedItem.composable.cjs +3 -3
- package/dist/src/composables/Commons/nestedItem.composable.d.ts +1 -1
- package/dist/src/composables/Commons/nestedItem.composable.js +1 -1
- package/dist/src/composables/Commons/size.composable.cjs +1 -1
- package/dist/src/composables/Commons/size.composable.js +1 -1
- package/dist/src/composables/Commons/stateEffect.composable.cjs +54 -32
- package/dist/src/composables/Commons/stateEffect.composable.js +43 -33
- package/dist/src/composables/Commons/teleport.composable.cjs +2 -1
- package/dist/src/composables/Commons/teleport.composable.js +4 -1
- package/dist/src/composables/Commons/touch.composable.cjs +77 -33
- package/dist/src/composables/Commons/touch.composable.js +77 -33
- package/dist/src/composables/Commons/vModel.composable.cjs +1 -1
- package/dist/src/composables/Commons/vModel.composable.js +1 -1
- package/dist/src/composables/Commons/validation.composable.cjs +1 -1
- package/dist/src/composables/Commons/validation.composable.js +1 -1
- package/dist/src/composables/Commons/velocity.composable.cjs +5 -1
- package/dist/src/composables/Commons/velocity.composable.js +5 -1
- package/dist/src/composables/DataTable/headers.composable.cjs +36 -30
- package/dist/src/composables/DataTable/headers.composable.d.ts +1 -1
- package/dist/src/composables/DataTable/headers.composable.js +29 -23
- package/dist/src/composables/DataTable/headersCell.composable.cjs +2 -2
- package/dist/src/composables/DataTable/headersCell.composable.js +1 -1
- package/dist/src/composables/DataTable/select.composable.cjs +4 -4
- package/dist/src/composables/DataTable/select.composable.js +1 -1
- package/dist/src/composables/DataTable/sort.composable.cjs +6 -6
- package/dist/src/composables/DataTable/sort.composable.js +1 -1
- package/dist/src/composables/Form/form.composable.cjs +1 -1
- package/dist/src/composables/Form/form.composable.js +3 -1
- package/dist/src/composables/Masonry/masonry.composable.cjs +29 -20
- package/dist/src/composables/Masonry/masonry.composable.d.ts +0 -14
- package/dist/src/composables/Masonry/masonry.composable.js +29 -20
- package/dist/src/composables/NumberFormat/number-format.composable.cjs +28 -23
- package/dist/src/composables/NumberFormat/number-format.composable.js +28 -23
- package/dist/src/composables/Parallax/parallax.composable.cjs +9 -9
- package/dist/src/composables/Parallax/parallax.composable.js +3 -3
- package/dist/src/composables/Parallax/transform.composable.cjs +14 -13
- package/dist/src/composables/Parallax/transform.composable.js +2 -1
- package/dist/src/composables/PasswordField/passwordStrength.composable.cjs +2 -2
- package/dist/src/composables/PasswordField/passwordStrength.composable.js +1 -1
- package/dist/src/composables/QrCode/qr-code.composable.cjs +1 -1
- package/dist/src/composables/QrCode/qr-code.composable.js +1 -1
- package/dist/src/composables/Sheet/sheetSwipe.composable.cjs +3 -4
- package/dist/src/composables/Sheet/sheetSwipe.composable.js +4 -4
- package/dist/src/composables/TextareaField/textarea-field-rich.composable.cjs +31 -31
- package/dist/src/composables/TextareaField/textarea-field-rich.composable.js +1 -1
- package/dist/src/composables/Watermark/watermark.composable.cjs +1 -1
- package/dist/src/composables/Watermark/watermark.composable.js +1 -1
- package/dist/src/consts/Audio/audio.const.cjs +5 -4
- package/dist/src/consts/Audio/audio.const.d.ts +2 -1
- package/dist/src/consts/Audio/audio.const.js +2 -1
- package/dist/src/consts/Blockquote/blockquote.const.cjs +3 -3
- package/dist/src/consts/Blockquote/blockquote.const.js +1 -1
- package/dist/src/consts/Bracket/bracket.const.cjs +4 -3
- package/dist/src/consts/Bracket/bracket.const.js +2 -1
- package/dist/src/consts/Code/code.const.cjs +3 -3
- package/dist/src/consts/Code/code.const.d.ts +1 -1
- package/dist/src/consts/Code/code.const.js +1 -1
- package/dist/src/consts/Commons/autocomplete.const.cjs +2 -2
- package/dist/src/consts/Commons/autocomplete.const.d.ts +1 -1
- package/dist/src/consts/Commons/autocomplete.const.js +1 -1
- package/dist/src/consts/Commons/display.const.cjs +2 -2
- package/dist/src/consts/Commons/display.const.js +1 -1
- package/dist/src/consts/Commons/hotkey.const.cjs +2 -2
- package/dist/src/consts/Commons/hotkey.const.js +1 -1
- package/dist/src/consts/Commons/margin.const.cjs +1 -1
- package/dist/src/consts/Commons/margin.const.js +1 -1
- package/dist/src/consts/Commons/padding.const.cjs +1 -1
- package/dist/src/consts/Commons/padding.const.js +1 -1
- package/dist/src/consts/Commons/rounded.const.cjs +6 -2
- package/dist/src/consts/Commons/rounded.const.js +6 -2
- package/dist/src/consts/EmptyState/empty-state.const.cjs +12 -12
- package/dist/src/consts/EmptyState/empty-state.const.js +6 -6
- package/dist/src/consts/PasswordField/password-field.const.cjs +20 -11
- package/dist/src/consts/PasswordField/password-field.const.d.ts +10 -5
- package/dist/src/consts/PasswordField/password-field.const.js +17 -10
- package/dist/src/consts/QrCode/qr-code.const.cjs +2 -2
- package/dist/src/consts/QrCode/qr-code.const.js +1 -1
- package/dist/src/consts/TextField/text-field.const.cjs +21 -21
- package/dist/src/consts/TextField/text-field.const.js +1 -1
- package/dist/src/consts/TextareaField/textarea-field.const.cjs +32 -4
- package/dist/src/consts/TextareaField/textarea-field.const.d.ts +1 -0
- package/dist/src/consts/TextareaField/textarea-field.const.js +29 -1
- package/dist/src/directives/Contrast/contrast.directive.cjs +5 -3
- package/dist/src/directives/Contrast/contrast.directive.js +5 -3
- package/dist/src/directives/Intersect/intersect.directive.cjs +2 -1
- package/dist/src/directives/Intersect/intersect.directive.js +2 -1
- package/dist/src/interfaces/Chart/chart.interface.d.ts +70 -1
- package/dist/src/interfaces/ColorPicker/color-picker.interface.d.ts +1 -1
- package/dist/src/interfaces/Commons/border.interface.d.ts +11 -10
- package/dist/src/interfaces/Commons/filters.interface.d.ts +7 -0
- package/dist/src/interfaces/Commons/margin.interface.d.ts +12 -11
- package/dist/src/interfaces/Commons/padding.interface.d.ts +12 -11
- package/dist/src/interfaces/Commons/ripple.interface.d.ts +1 -3
- package/dist/src/interfaces/Commons/rounded.interface.d.ts +10 -9
- package/dist/src/interfaces/DataTable/sort.interface.d.ts +6 -0
- package/dist/src/interfaces/Grid/grid.interface.d.ts +4 -4
- package/dist/src/interfaces/PasswordField/password-field.interface.d.ts +5 -1
- package/dist/src/interfaces/PasswordField/password-requirement.interface.d.ts +8 -0
- package/dist/src/interfaces/Radio/radio-btn.interface.d.ts +2 -2
- package/dist/src/interfaces/Radio/radio.interface.d.ts +2 -1
- package/dist/src/interfaces/Select/select.interface.d.ts +1 -0
- package/dist/src/interfaces/SelectionControl/selection-control.interface.d.ts +5 -1
- package/dist/src/interfaces/SliderField/slider-field.interface.d.ts +4 -4
- package/dist/src/origam-core.cjs +51 -33
- package/dist/src/origam-core.js +21 -27
- package/dist/src/types/Commons/box-value.type.cjs +1 -0
- package/dist/src/types/Commons/box-value.type.d.ts +1 -0
- package/dist/src/types/Commons/box-value.type.js +0 -0
- package/dist/src/types/Commons/location.type.d.ts +13 -0
- package/dist/src/types/Commons/point.type.d.ts +1 -1
- package/dist/src/types/DataTable/data-table.type.d.ts +1 -0
- package/dist/src/types/Grid/grid.type.d.ts +7 -0
- package/dist/src/types/SliderField/slider-field.type.d.ts +8 -0
- package/dist/src/utils/Bracket/bracket-surface.util.cjs +9 -2
- package/dist/src/utils/Bracket/bracket-surface.util.js +9 -2
- package/dist/src/utils/Calendar/rrule.util.cjs +12 -7
- package/dist/src/utils/Calendar/rrule.util.js +12 -7
- package/dist/src/utils/Chart/chart-point.util.cjs +15 -0
- package/dist/src/utils/Chart/chart-point.util.d.ts +11 -0
- package/dist/src/utils/Chart/chart-point.util.js +8 -0
- package/dist/src/utils/Chart/sankey-layout.util.cjs +144 -0
- package/dist/src/utils/Chart/sankey-layout.util.d.ts +27 -0
- package/dist/src/utils/Chart/sankey-layout.util.js +130 -0
- package/dist/src/utils/Code/parse-highlight-lines.util.cjs +17 -14
- package/dist/src/utils/Code/parse-highlight-lines.util.js +17 -14
- package/dist/src/utils/CommandPalette/fuzzy-match.util.cjs +13 -9
- package/dist/src/utils/CommandPalette/fuzzy-match.util.js +13 -9
- package/dist/src/utils/Commons/anchor.util.cjs +6 -1
- package/dist/src/utils/Commons/anchor.util.js +6 -1
- package/dist/src/utils/Commons/apply-mask.util.cjs +11 -14
- package/dist/src/utils/Commons/apply-mask.util.js +7 -10
- package/dist/src/utils/Commons/apply-theme.util.cjs +6 -4
- package/dist/src/utils/Commons/apply-theme.util.js +6 -4
- package/dist/src/utils/Commons/bindProps.util.cjs +3 -5
- package/dist/src/utils/Commons/bindProps.util.js +3 -5
- package/dist/src/utils/Commons/color.util.cjs +43 -36
- package/dist/src/utils/Commons/color.util.js +44 -31
- package/dist/src/utils/Commons/commons.util.cjs +3 -3
- package/dist/src/utils/Commons/commons.util.js +3 -3
- package/dist/src/utils/Commons/console.util.cjs +6 -0
- package/dist/src/utils/Commons/console.util.d.ts +11 -0
- package/dist/src/utils/Commons/console.util.js +5 -0
- package/dist/src/utils/Commons/date.util.cjs +2 -27
- package/dist/src/utils/Commons/date.util.js +2 -27
- package/dist/src/utils/Commons/display.util.cjs +10 -1
- package/dist/src/utils/Commons/display.util.d.ts +8 -1
- package/dist/src/utils/Commons/display.util.js +9 -1
- package/dist/src/utils/Commons/eventListener.util.cjs +1 -2
- package/dist/src/utils/Commons/eventListener.util.js +1 -2
- package/dist/src/utils/Commons/filters.util.cjs +48 -34
- package/dist/src/utils/Commons/filters.util.d.ts +3 -8
- package/dist/src/utils/Commons/filters.util.js +47 -34
- package/dist/src/utils/Commons/forwardRefs.util.cjs +44 -40
- package/dist/src/utils/Commons/forwardRefs.util.js +44 -40
- package/dist/src/utils/Commons/group.util.cjs +1 -1
- package/dist/src/utils/Commons/group.util.js +1 -1
- package/dist/src/utils/Commons/hotkey.util.cjs +65 -61
- package/dist/src/utils/Commons/hotkey.util.js +56 -53
- package/dist/src/utils/Commons/hover.util.cjs +2 -2
- package/dist/src/utils/Commons/hover.util.js +2 -2
- package/dist/src/utils/Commons/locale.util.cjs +1 -1
- package/dist/src/utils/Commons/locale.util.js +1 -1
- package/dist/src/utils/Commons/location.util.cjs +87 -92
- package/dist/src/utils/Commons/location.util.js +75 -83
- package/dist/src/utils/Commons/nested.util.cjs +11 -11
- package/dist/src/utils/Commons/nested.util.js +1 -1
- package/dist/src/utils/Commons/point.util.cjs +16 -14
- package/dist/src/utils/Commons/point.util.js +13 -8
- package/dist/src/utils/Commons/ripple.util.cjs +4 -4
- package/dist/src/utils/Commons/ripple.util.js +4 -4
- package/dist/src/utils/Commons/scroll.util.cjs +9 -6
- package/dist/src/utils/Commons/scroll.util.js +9 -6
- package/dist/src/utils/Commons/token-name.util.cjs +22 -21
- package/dist/src/utils/Commons/token-name.util.js +22 -21
- package/dist/src/utils/Commons/validate-pattern.util.cjs +6 -6
- package/dist/src/utils/Commons/validate-pattern.util.js +1 -1
- package/dist/src/utils/DataTable/headers.util.cjs +20 -26
- package/dist/src/utils/DataTable/headers.util.js +18 -26
- package/dist/src/utils/DataTable/sort.util.cjs +41 -47
- package/dist/src/utils/DataTable/sort.util.d.ts +2 -7
- package/dist/src/utils/DataTable/sort.util.js +49 -47
- package/dist/src/utils/List/list-item.util.cjs +6 -1
- package/dist/src/utils/List/list-item.util.js +6 -1
- package/dist/src/utils/Parallax/parallax-element.util.cjs +13 -14
- package/dist/src/utils/Parallax/parallax-element.util.js +10 -11
- package/dist/src/utils/Slide/slide-group.util.cjs +4 -4
- package/dist/src/utils/Slide/slide-group.util.js +4 -4
- package/dist/src/utils/TextareaField/html-to-markdown.util.cjs +5 -36
- package/dist/src/utils/TextareaField/html-to-markdown.util.js +5 -36
- package/dist/src/utils/TextareaField/sanitize-html.util.cjs +18 -22
- package/dist/src/utils/TextareaField/sanitize-html.util.js +19 -23
- package/dist/src/utils/index.cjs +11 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,109 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.42.0] - 2026-11-22
|
|
22
|
+
|
|
23
|
+
### Fixed — `OrigamBtn` en chargement circulaire : le libellé reste visible (#1086)
|
|
24
|
+
|
|
25
|
+
- Cause : `--loader-circular` posait `opacity: 0` sur `__content` / `__prepend` / `__append` et centrait le spinner en absolu par-dessus.
|
|
26
|
+
- Correctif : le libellé reste visible, nom accessible inchangé. Avec une icône/un avatar `prepend`, ou sur un bouton `icon`, le spinner PREND LA PLACE de l'élément (même boîte : largeur identique au repos, mesuré 73,95 px -> 73,95 px). Sans, il s'ajoute avant le libellé et le bouton s'élargit (56,7 -> 85,7 px).
|
|
27
|
+
|
|
28
|
+
### Fixed — `OrigamProgressLinear` : plus de `<div>` dans un `<button>` en chargement `line` (#1087)
|
|
29
|
+
|
|
30
|
+
- Cause : l'arrière-plan, le flux, la zone de chargement et les barres de `OrigamProgressLinear` étaient des `<div>` ; `OrigamBtn` en `loading` de type `line` les rendait dans un `<button>` (contenu phrasé uniquement).
|
|
31
|
+
- Correctif : ces quatre éléments passent en `<span>` (`__loader` reçoit `display: block`, les autres sont déjà positionnés en absolu). Le conteneur `__content` (slot consommateur) reste un `<div>`. Test : `OrigamBtn.loading-content-model.spec.ts`.
|
|
32
|
+
|
|
33
|
+
### Fixed — `OrigamPasswordField` : `aria-invalid` / `aria-describedby` suivent la validation du consommateur (#1110)
|
|
34
|
+
|
|
35
|
+
- Cause : `filterInputAttrs(attrs)` était appelé une fois dans `setup()` ; les attributs posés après le montage n'atteignaient jamais l'`<input>`.
|
|
36
|
+
- Correctif : la distribution est un `computed` sur `attrs`, comme `OrigamTextField` (#938).
|
|
37
|
+
|
|
38
|
+
### Fixed — `OrigamPasswordField` : la règle de longueur n'est plus imposée par défaut (#1334)
|
|
39
|
+
|
|
40
|
+
- Cause : `minLength` valait 8 par défaut et une règle de validation était toujours ajoutée, même sans `requirements`, et même à vide.
|
|
41
|
+
- Correctif : la règle de longueur n'est construite que si `min-length` est fourni explicitement, ou avec `requirements` / `strengthBar` (défaut 8 alors). Une valeur vide n'échoue plus sur les règles d'exigence : elle est laissée à `rules` / `required`. **Rupture assumée** : `min-length` n'a plus de défaut de prop.
|
|
42
|
+
- Nouvelle prop `minLengthMessage` : remplace le message de la règle de longueur pour ce champ.
|
|
43
|
+
|
|
44
|
+
### Fixed — `OrigamPasswordField` : plus aucune chaîne anglaise en dur dans les exigences (#1434)
|
|
45
|
+
|
|
46
|
+
- Cause : `password-field.const.ts` portait « At least 8 characters », « 8 characters », « a tiny »… en dur ; en français : « Ce champ doit contenir : 8 characters ».
|
|
47
|
+
- Correctif : clés `origam.password_field.requirement_*` / `message_*` dans `en.json` et `fr.json` (paramètre `{count}`), résolues par `t()` au rendu ; `IPasswordRequirement` gagne `labelKey` / `labelParams` (les `label` fournis par le consommateur restent inchangés).
|
|
48
|
+
|
|
49
|
+
### Fixed — `OrigamSelect` : les items `subheader` / `divider` ne sont plus des options (#1426)
|
|
50
|
+
|
|
51
|
+
- Cause : `itemType` figurait dans les `withDefaults` mais pas dans `ISelectProps` — jamais une vraie prop, donc `type` n'était jamais lu par `useItems`, et le gabarit rendait chaque entrée en `origam-list-item` `role="option"`.
|
|
52
|
+
- Correctif : `itemType` déclaré dans `ISelectProps` ; le gabarit rend `origam-list-subheader` / `origam-divider` (comme `OrigamListChildren`) ; flèches, Home/End et type-ahead sautent ces lignes, le filtre les écarte.
|
|
53
|
+
|
|
54
|
+
### Fixed — OrigamRadio : le slot `#label` reçoit enfin ses props (#1359)
|
|
55
|
+
|
|
56
|
+
- Cause : `OrigamRadio` et `OrigamRadioBtn` ré-exposaient `<slot name="label"/>` sans `v-bind` ; le scope `{ text, color, props: { id, onClick, … } }` d'`OrigamSelectionControl` était perdu, d'où un `TypeError` à l'accès de `props.id` et une radio sans nom accessible.
|
|
57
|
+
- Correctif : le scope est transmis à chaque niveau ; types `IRadioSlots` / `IRadioBtnSlots` et doc mis à jour (utiliser `props.id` comme `for` du `<label>` personnalisé).
|
|
58
|
+
|
|
59
|
+
### Fixed — `OrigamChip` : la prop `density` agit enfin sur la hauteur (#1105)
|
|
60
|
+
|
|
61
|
+
- Cause : le SCSS écrivait `--origam-chip---density` (`-8px` en compact) mais aucun `height` ne la lisait ; `compact` et `default` rendaient la même hauteur (24px mesuré sur `size=small`, Chromium).
|
|
62
|
+
- Correctif : les cinq `height` de palier sont `calc(height-palier + var(--origam-chip---density, 0px))`, comme `OrigamBtn`. Ajout de `&--density-comfortable` (`+8px`, miroir de Btn ; la classe était émise sans règle). Entrée retirée de la baseline `token-var-channels-dormant`.
|
|
63
|
+
- Rupture de rendu assumée : `density="compact"` / `"comfortable"` change maintenant la hauteur.
|
|
64
|
+
|
|
65
|
+
### Fixed — `OrigamListItem` : anneau `:focus-visible` sur les lignes cliquables (#1358)
|
|
66
|
+
|
|
67
|
+
- Cause : le focus clavier d'une ligne `link` ne produisait que le voile d'overlay (opacité 0,08, ~1,1:1), sans anneau (WCAG 1.4.11 / 2.4.7).
|
|
68
|
+
- Correctif : `outline` 2px solid `--origam-color__border---focus` (même jeton sémantique que Btn et FileField, donc réglable par thème), décalé vers l'intérieur pour ne pas être rogné par le conteneur. Aucun nouveau jeton.
|
|
69
|
+
|
|
70
|
+
### Fixed — SliderField vertical : fin de `appearance: slider-vertical` (#1129)
|
|
71
|
+
|
|
72
|
+
- Cause : `.origam-slider-field--vertical .origam-slider-field__input` déclarait `appearance: slider-vertical`, non standard (Chromium loggait un warning à chaque chargement de page, la feuille étant dans l'entrée CSS). Mesuré en plus : avec `writing-mode: vertical-lr` seul, un clic en haut du rail donnait la valeur MIN alors que le thumb visuel est ancré en bas pour le min (sens inversé).
|
|
73
|
+
- Correctif : `writing-mode: vertical-lr` + `direction: rtl` (recommandation de Chromium). Bas = min, haut = max, flèches haut/bas inchangées, plus de warning.
|
|
74
|
+
|
|
75
|
+
## [2.41.1] - 2026-11-22
|
|
76
|
+
|
|
77
|
+
### Changed — complexité cognitive : `scatterExtent` et `compareBySortItem` (#1398)
|
|
78
|
+
|
|
79
|
+
- Refactor pur (comportement identique, figé par des tests de caractérisation) : `scatterExtent` (Chart, 27 → sous 15) et `compareBySortItem` (DataTable, 21 → sous 15) sont découpées en fonctions nommées. Débloque le quality gate Sonar du workflow `Build`.
|
|
80
|
+
|
|
81
|
+
### Fixed — `OrigamTextareaField` : texte noir illisible en mode sombre (#1150)
|
|
82
|
+
|
|
83
|
+
- Cause : le `<textarea>` gardait la couleur UA (`fieldtext`, noire) faute de `color: inherit`, que l'`<input>` de `OrigamTextField` reçoit via `.origam-field__input`. Mesuré en sombre : `rgb(0,0,0)` sur `rgb(10,10,10)`, contraste 1,06.
|
|
84
|
+
- Correctif : `color: inherit` sur `:deep(textarea)` (`OrigamTextareaField.vue`). Mesuré après : `rgb(250,250,250)` sur `rgb(10,10,10)` en sombre, `rgb(10,10,10)` sur blanc en clair. Spec `textarea-field-dark-color.spec.ts`.
|
|
85
|
+
|
|
86
|
+
### Fixed — `v-contrast` ne force plus de couleur sur un fond en dégradé (#1427)
|
|
87
|
+
|
|
88
|
+
- `resolvePaintedBackground` ignorait `background-image` : sur un bouton en dégradé, la directive mesurait le fond de page et imposait le mauvais noir/blanc en `!important` (texte noir sur le dégradé geek clair). Elle s’abstient désormais dès qu’une image de fond est rencontrée avant le fond opaque.
|
|
89
|
+
|
|
90
|
+
### Fixed — v-ripple : `center` / `circle` enfin appliqués (#1378)
|
|
91
|
+
|
|
92
|
+
- Cause : Btn/SelectionControl passaient un tuple façon Vuetify à `v-ripple` ; en template Vue les modifiers de directive sont statiques et le tableau n'est que la valeur, donc `binding.modifiers.center/circle` n'étaient jamais posés.
|
|
93
|
+
- Correctif : `updateRipple` accepte aussi `center` / `circle` dans la valeur objet (`IRippleOptions`). `OrigamSelectionControl` : ripple centré + circulaire ; `OrigamBtn` en mode `icon` : centré (comportement d'origine du tuple). `OrigamChip` n'avait aucun modifier à l'origine (`[x, null]`) : inchangé.
|
|
94
|
+
- Ne règle pas #1177 (feuille de style de `.origam-ripple__container`).
|
|
95
|
+
|
|
96
|
+
### Fixed — `OrigamFileField` : anneau de focus sur la dropzone et attributs natifs sur l'`<input>` seul (#1383)
|
|
97
|
+
|
|
98
|
+
- Focus : en mode `dragndrop`/`dropzone`, l'`<input type="file">` (opacity 0) porte le focus clavier mais la dropzone restait sans outline (`outline-style: none` mesuré dans Chromium). La dropzone peint désormais un anneau `:has(:focus-visible)`, aux tokens `--origam-color__border---focus` / `--origam-border__width---2` (même forme que `OrigamRatingFieldItem`).
|
|
99
|
+
- Attributs : `OrigamFileField` n'avait pas `inheritAttrs: false` ; `aria-label` / `accept` se retrouvaient aussi sur le `<div>` racine en plus de l'`<input>`. Corrigé comme `OrigamTextField` (#818).
|
|
100
|
+
- Non traité : `data-cy` reste sur le conteneur racine (convention `filterInputAttrs` partagée par TextField, Radio, etc.), à arbitrer séparément.
|
|
101
|
+
|
|
102
|
+
### Fixed — `OrigamCounter` : « 0 / 12 » ne se coupe plus sur deux lignes (#1360)
|
|
103
|
+
|
|
104
|
+
- Cause : `.origam-counter` est `flex: 0 1 auto` sans `white-space: nowrap` ; dans le flex `__details` d'`OrigamInput`, un texte d'aide long le faisait rétrécir et le texte passait à la ligne (mesuré dans un flex de 120 px : 3 boîtes de ligne).
|
|
105
|
+
- Correctif : `white-space: nowrap` sur la racine — c'est le texte d'aide qui se replie. Aucun changement d'API.
|
|
106
|
+
|
|
107
|
+
### Fixed — `origam-card` cliquable : l'overlay n'est plus opaque au repos (#1276)
|
|
108
|
+
|
|
109
|
+
La règle `.origam-card > * { opacity: var(--origam-card---opacity) }` s'appliquait aussi au `<span class="origam-card__overlay">` et écrasait son opacité (0 au repos) : une carte avec `to` / `link` s'affichait noire. Elle exclut désormais l'overlay et l'underlay ; le contenu garde son opacité (0,6 si désactivée). Mesuré en Chromium : overlay 1 avant, 0 au repos et 0,12 au survol après.
|
|
110
|
+
|
|
111
|
+
### Added — budget JS d'une page à un seul composant (#1404)
|
|
112
|
+
|
|
113
|
+
- #1404 supposait un registre de jetons/réglages dans `origam/core`. Mesure : le chunk de 202 Ko vu dans Elysera est l'entry Nuxt (nuxt, i18n, router, consts du site), sans module Origam. Le vrai poids Origam était l'enum `MDI_ICONS` (~360 Ko), corrigé par #1403/#1406.
|
|
114
|
+
- Fixture Vite (`createOrigamCore` + thème du DS + un `origam-title`) : **57,4 Kio gzip** avant #1406, **57,7 Kio** après (elle ne tirait déjà pas l'enum). Retirables mais non retirés : locale `fr` (-3,1 Kio gz), adaptateur de dates (-2,8), tables de variantes (-0,6) ; les rendre optionnels changerait l'API du mode core.
|
|
115
|
+
- Garde `TU/origam/single-component-budget-1404.spec.ts` (fixture `TU/fixtures/single-component`) : <= 63 Kio gzip, ni police MDI ni `MDI_ICONS`.
|
|
116
|
+
|
|
117
|
+
### Fixed — poids JS : `origam-chip` et le coeur `origam/core` n'embarquent plus l'enum MDI de 360 Ko (#1403)
|
|
118
|
+
|
|
119
|
+
- Cause : l'enum `MDI_ICONS` (~7 000 membres) restait dans le bundle bien qu'inutilisé, car Rolldown ne retire pas l'IIFE d'un enum atteint par un barrel. Chemins : `OrigamChip`/`OrigamChipGroup` (et ~40 autres composants) l'importaient pour leurs icônes par défaut ; `origam-core.ts` et `consts/Commons/display.const.ts` passaient par les barrels `composables/index` (donc `createIcons` -> `mdi.const`) et `enums/index`.
|
|
120
|
+
- Correctif sans changement d'API : les icônes par défaut deviennent la chaîne `mdi:mdi-*` équivalente (même valeur que le membre d'enum) dans les composants et `EMPTY_STATE_PRESET_CONFIG` ; les imports de barrel `enums` (consts, utils, composables) et ceux d'`origam-core.ts` visent le fichier source. `OrigamBreadcrumbDivider` teste le préfixe `mdi:` au lieu de `Object.values(MDI_ICONS)` (un `mdi:` hors enum est désormais aussi traité comme icône).
|
|
121
|
+
- Mesure (fixture Nuxt 4 minimale, `origam/nuxt` en `lite`, page avec `OrigamChip` texte seul, JS total du client) : 754 492 -> 403 614 octets (201 -> 127 Kio gzip) ; page sans composant : 650 014 -> 299 232 octets. Plus aucune occurrence de `mdi-ab-testing` dans le build.
|
|
122
|
+
- Garde `TU/origam/btn-no-mdi-1392.spec.ts` étendue : aucun composant public, ni `origam-core.ts` ni `nuxt/create.core.ts`, n'atteint `mdi.enum`, `mdi.const` ou `enums/index`.
|
|
123
|
+
|
|
21
124
|
## [2.41.0] - 2026-11-21
|
|
22
125
|
|
|
23
126
|
### Fixed — Quality Gate Sonar vert sur le nouveau code (#1390)
|
|
@@ -123,7 +123,16 @@
|
|
|
123
123
|
},
|
|
124
124
|
"password_field": {
|
|
125
125
|
"show": "Show password",
|
|
126
|
-
"hide": "Hide password"
|
|
126
|
+
"hide": "Hide password",
|
|
127
|
+
"requirement_min_length": "At least {count} characters",
|
|
128
|
+
"requirement_uppercase": "At least 1 uppercase letter",
|
|
129
|
+
"requirement_number": "At least 1 number",
|
|
130
|
+
"requirement_special": "At least 1 special character",
|
|
131
|
+
"message_min_length": "{count} characters",
|
|
132
|
+
"message_tiny": "a lowercase letter",
|
|
133
|
+
"message_uppercase": "an uppercase letter",
|
|
134
|
+
"message_number": "a number",
|
|
135
|
+
"message_special": "a special character (!@#$%)"
|
|
127
136
|
},
|
|
128
137
|
"file_field": {
|
|
129
138
|
"counter": "{0} files",
|
|
@@ -123,7 +123,16 @@
|
|
|
123
123
|
},
|
|
124
124
|
"password_field": {
|
|
125
125
|
"show": "Afficher le mot de passe",
|
|
126
|
-
"hide": "Masquer le mot de passe"
|
|
126
|
+
"hide": "Masquer le mot de passe",
|
|
127
|
+
"requirement_min_length": "Au moins {count} caractères",
|
|
128
|
+
"requirement_uppercase": "Au moins 1 majuscule",
|
|
129
|
+
"requirement_number": "Au moins 1 chiffre",
|
|
130
|
+
"requirement_special": "Au moins 1 caractère spécial",
|
|
131
|
+
"message_min_length": "{count} caractères",
|
|
132
|
+
"message_tiny": "une minuscule",
|
|
133
|
+
"message_uppercase": "une majuscule",
|
|
134
|
+
"message_number": "un chiffre",
|
|
135
|
+
"message_special": "un caractère spécial (!@#$%)"
|
|
127
136
|
},
|
|
128
137
|
"file_field": {
|
|
129
138
|
"counter": "{0} fichier(s)",
|
|
@@ -130,7 +130,6 @@ import { useStatus } from "../../composables/Commons/status.composable";
|
|
|
130
130
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
131
131
|
import { useTypography } from "../../composables/Commons/typography.composable";
|
|
132
132
|
import { DENSITY } from "../../enums/Commons/density.enum";
|
|
133
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
134
133
|
import { STATUS } from "../../enums/Commons/status.enum";
|
|
135
134
|
/*********************************************************
|
|
136
135
|
* Global
|
|
@@ -146,7 +145,7 @@ const props = defineProps({
|
|
|
146
145
|
closeIcon: {
|
|
147
146
|
type: null,
|
|
148
147
|
required: false,
|
|
149
|
-
default:
|
|
148
|
+
default: "mdi:mdi-close"
|
|
150
149
|
},
|
|
151
150
|
closeLabel: {
|
|
152
151
|
type: String,
|
|
@@ -262,8 +262,8 @@ import { useAudioPlayer } from "../../composables/Audio/use-audio-player.composa
|
|
|
262
262
|
import { useWaveform } from "../../composables/Audio/use-waveform.composable";
|
|
263
263
|
import { shouldSuppressAutoplay } from "../../composables/Media/use-media-player.composable";
|
|
264
264
|
import { UNSEEDED } from "../../consts/Commons/vmodel.const";
|
|
265
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
266
265
|
import { formatMediaTime } from "../../utils/Media/format-time.util";
|
|
266
|
+
import { warnAsyncRejection } from "../../utils/Commons/console.util";
|
|
267
267
|
/*********************************************************
|
|
268
268
|
* Global
|
|
269
269
|
*
|
|
@@ -984,8 +984,8 @@ defineSlots();
|
|
|
984
984
|
* literal references (CLAUDE.md "no logic in templates" rule).
|
|
985
985
|
********************************************************/
|
|
986
986
|
const ICONS = {
|
|
987
|
-
LOADING:
|
|
988
|
-
ALERT:
|
|
987
|
+
LOADING: "mdi:mdi-loading",
|
|
988
|
+
ALERT: "mdi:mdi-alert-circle"
|
|
989
989
|
};
|
|
990
990
|
/*********************************************************
|
|
991
991
|
* i18n labels — only the ones used by OrigamAudio's own
|
|
@@ -1178,7 +1178,10 @@ const internalLoopMode = ref(UNSEEDED);
|
|
|
1178
1178
|
// `withDefaults` resolves `loopMode` to `'none'` by default, so we
|
|
1179
1179
|
// only fall through to the legacy `loop` flag when `loopMode` was
|
|
1180
1180
|
// left at its default — never overriding an explicit non-'none' value.
|
|
1181
|
-
const seedLoopMode = () =>
|
|
1181
|
+
const seedLoopMode = () => {
|
|
1182
|
+
if (props.loopMode && props.loopMode !== "none") return props.loopMode;
|
|
1183
|
+
return props.loop ? "one" : "none";
|
|
1184
|
+
};
|
|
1182
1185
|
watch(() => props.loopMode, (next) => {
|
|
1183
1186
|
if (next && next !== internalLoopMode.value) internalLoopMode.value = next;
|
|
1184
1187
|
});
|
|
@@ -1340,8 +1343,12 @@ watch(audioRef, (el, _prev, onCleanup) => {
|
|
|
1340
1343
|
* and stays suppressed under `prefers-reduced-motion` (a11y) since
|
|
1341
1344
|
* `resolvedAutoplay` already accounts for it.
|
|
1342
1345
|
********************************************************/
|
|
1346
|
+
const onAsyncRejection = (err) => warnAsyncRejection("OrigamAudio", err);
|
|
1347
|
+
const playSafely = () => {
|
|
1348
|
+
methods.play().catch(onAsyncRejection);
|
|
1349
|
+
};
|
|
1343
1350
|
watch(resolvedAutoplay, (on) => {
|
|
1344
|
-
if (on)
|
|
1351
|
+
if (on) playSafely();
|
|
1345
1352
|
});
|
|
1346
1353
|
/*********************************************************
|
|
1347
1354
|
* Native event handlers — forward to the parent emit pipeline.
|
|
@@ -1516,23 +1523,17 @@ function onNativeEnded() {
|
|
|
1516
1523
|
if (total === 0) return;
|
|
1517
1524
|
if (resolvedShuffle.value) {
|
|
1518
1525
|
setActiveTrack(pickRandomIndex());
|
|
1519
|
-
|
|
1520
|
-
void methods.play();
|
|
1521
|
-
});
|
|
1526
|
+
nextTick(playSafely).catch(onAsyncRejection);
|
|
1522
1527
|
return;
|
|
1523
1528
|
}
|
|
1524
1529
|
const cur = safeTrackIndex.value;
|
|
1525
1530
|
const target = cur + 1;
|
|
1526
1531
|
if (target < total) {
|
|
1527
1532
|
setActiveTrack(target);
|
|
1528
|
-
|
|
1529
|
-
void methods.play();
|
|
1530
|
-
});
|
|
1533
|
+
nextTick(playSafely).catch(onAsyncRejection);
|
|
1531
1534
|
} else if (resolvedLoopMode.value === "all") {
|
|
1532
1535
|
setActiveTrack(0);
|
|
1533
|
-
|
|
1534
|
-
void methods.play();
|
|
1535
|
-
});
|
|
1536
|
+
nextTick(playSafely).catch(onAsyncRejection);
|
|
1536
1537
|
}
|
|
1537
1538
|
}
|
|
1538
1539
|
/*********************************************************
|
|
@@ -560,9 +560,14 @@ const { colorClasses, colorStyles, borderClasses, borderStyles, roundedClasses,
|
|
|
560
560
|
const { typographyStyles } = useTypography(props, "badge__badge");
|
|
561
561
|
const { icon, prependIcon, appendIcon, statusClasses } = useStatus(props);
|
|
562
562
|
const { onClickPrepend: handleClickPrepend, onClickAppend: handleClickAppend, onKeydownPrepend: handleKeydownPrepend, onKeydownAppend: handleKeydownAppend, prependCommandAttrs, appendCommandAttrs, hasAppend, hasPrepend } = useAdjacent(props, prependIcon, appendIcon);
|
|
563
|
+
const sideOffset = (side) => {
|
|
564
|
+
if (["top", "bottom"].includes(side)) return +(props.offsetY ?? 0);
|
|
565
|
+
if (["left", "right"].includes(side)) return +(props.offsetX ?? 0);
|
|
566
|
+
return 0;
|
|
567
|
+
};
|
|
563
568
|
const { locationStyles } = useLocation(props, true, (side) => {
|
|
564
569
|
const base = props.floating ? props.dot ? 2 : 4 : props.dot ? 8 : 12;
|
|
565
|
-
return base + (
|
|
570
|
+
return base + sideOffset(side);
|
|
566
571
|
});
|
|
567
572
|
/*********************************************************
|
|
568
573
|
* Content
|
|
@@ -1075,6 +1075,10 @@ const measureDoubleConnectors = () => {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
connectorPaths.value = paths;
|
|
1077
1077
|
};
|
|
1078
|
+
const resolveNextMatchIndex = (match, index, nextRound) => {
|
|
1079
|
+
const found = match.nextMatchId != null ? nextRound.matches.findIndex((m) => m.id === match.nextMatchId) : -1;
|
|
1080
|
+
return found === -1 ? Math.floor(index / 2) : found;
|
|
1081
|
+
};
|
|
1078
1082
|
const measureSingleConnectors = () => {
|
|
1079
1083
|
const treeEl = treeRef.value;
|
|
1080
1084
|
if (!treeEl || !showConnectors.value) {
|
|
@@ -1097,11 +1101,7 @@ const measureSingleConnectors = () => {
|
|
|
1097
1101
|
const toCards = cardsPerRound[r + 1] ?? [];
|
|
1098
1102
|
for (let i = 0; i < round.matches.length; i += 1) {
|
|
1099
1103
|
const match = round.matches[i];
|
|
1100
|
-
|
|
1101
|
-
if (match.nextMatchId != null) {
|
|
1102
|
-
nextIndex = nextRound.matches.findIndex((m) => m.id === match.nextMatchId);
|
|
1103
|
-
}
|
|
1104
|
-
if (nextIndex === -1) nextIndex = Math.floor(i / 2);
|
|
1104
|
+
const nextIndex = resolveNextMatchIndex(match, i, nextRound);
|
|
1105
1105
|
const nextMatch = nextRound.matches[nextIndex];
|
|
1106
1106
|
const fromRect = fromCards[i];
|
|
1107
1107
|
const toRect = toCards[nextIndex];
|
|
@@ -27,7 +27,6 @@ import { useProps } from "../../composables/Commons/props.composable";
|
|
|
27
27
|
import { useSize } from "../../composables/Commons/size.composable";
|
|
28
28
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
29
29
|
import vContrast from "../../directives/Contrast/contrast.directive";
|
|
30
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
31
30
|
import { computed, StyleValue, toRef } from "vue";
|
|
32
31
|
/*********************************************************
|
|
33
32
|
* Global
|
|
@@ -290,7 +289,7 @@ defineSlots();
|
|
|
290
289
|
********************************************************/
|
|
291
290
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
292
291
|
const isIcon = computed(() => {
|
|
293
|
-
return typeof props.divider !== "string" ||
|
|
292
|
+
return typeof props.divider !== "string" || props.divider.startsWith("mdi:");
|
|
294
293
|
});
|
|
295
294
|
/*********************************************************
|
|
296
295
|
* Class & Style
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/>
|
|
28
28
|
|
|
29
29
|
<slot
|
|
30
|
-
v-if="isOverlayLoading"
|
|
30
|
+
v-if="isOverlayLoading && spinnerHost === 'root'"
|
|
31
31
|
name="loader"
|
|
32
32
|
v-bind="progressProps"
|
|
33
33
|
>
|
|
@@ -64,6 +64,22 @@
|
|
|
64
64
|
:icon="prependIcon"
|
|
65
65
|
/>
|
|
66
66
|
</slot>
|
|
67
|
+
<slot
|
|
68
|
+
v-if="isOverlayLoading && spinnerHost === 'prepend'"
|
|
69
|
+
name="loader"
|
|
70
|
+
v-bind="progressProps"
|
|
71
|
+
>
|
|
72
|
+
<origam-progress
|
|
73
|
+
ref="origamProgressRef"
|
|
74
|
+
class="origam-btn__progress"
|
|
75
|
+
v-bind="progressProps"
|
|
76
|
+
tag="span"
|
|
77
|
+
aria-hidden="true"
|
|
78
|
+
:thickness="loaderKind === 'line' ? 3 : undefined"
|
|
79
|
+
:color="color"
|
|
80
|
+
:active="true"
|
|
81
|
+
/>
|
|
82
|
+
</slot>
|
|
67
83
|
</span>
|
|
68
84
|
|
|
69
85
|
<span
|
|
@@ -81,6 +97,22 @@
|
|
|
81
97
|
{{ text }}
|
|
82
98
|
</template>
|
|
83
99
|
</slot>
|
|
100
|
+
<slot
|
|
101
|
+
v-if="isOverlayLoading && spinnerHost === 'content'"
|
|
102
|
+
name="loader"
|
|
103
|
+
v-bind="progressProps"
|
|
104
|
+
>
|
|
105
|
+
<origam-progress
|
|
106
|
+
ref="origamProgressRef"
|
|
107
|
+
class="origam-btn__progress"
|
|
108
|
+
v-bind="progressProps"
|
|
109
|
+
tag="span"
|
|
110
|
+
aria-hidden="true"
|
|
111
|
+
:thickness="loaderKind === 'line' ? 3 : undefined"
|
|
112
|
+
:color="color"
|
|
113
|
+
:active="true"
|
|
114
|
+
/>
|
|
115
|
+
</slot>
|
|
84
116
|
</span>
|
|
85
117
|
|
|
86
118
|
<span
|
|
@@ -898,7 +930,7 @@ const valueAttr = computed(() => {
|
|
|
898
930
|
* Ripple
|
|
899
931
|
********************************************************/
|
|
900
932
|
const isRipple = computed(() => {
|
|
901
|
-
return !isDisabled.value && props.ripple;
|
|
933
|
+
return !isDisabled.value && props.ripple && (props.icon ? { center: true } : true);
|
|
902
934
|
});
|
|
903
935
|
/*********************************************************
|
|
904
936
|
* Composables — visual chrome (size, density, color, …)
|
|
@@ -1002,6 +1034,11 @@ if (import.meta.env?.DEV) {
|
|
|
1002
1034
|
* `skeleton` is refused at compile time (`TControlLoadingValue`); a value that slips past the types at runtime degrades to the spinner rather than to a placeholder.
|
|
1003
1035
|
********************************************************/
|
|
1004
1036
|
const isOverlayLoading = computed(() => loaderConfig.value.isActive);
|
|
1037
|
+
const spinnerHost = computed(() => {
|
|
1038
|
+
if (loaderKind.value !== "circular") return "root";
|
|
1039
|
+
if (hasPrepend.value) return "prepend";
|
|
1040
|
+
return hasIcon.value ? "content" : "root";
|
|
1041
|
+
});
|
|
1005
1042
|
const loaderKind = computed(() => loaderConfig.value.kind === "line" ? "line" : "circular");
|
|
1006
1043
|
/*********************************************************
|
|
1007
1044
|
* aria-busy
|
|
@@ -1024,19 +1061,21 @@ const progressProps = computed(() => {
|
|
|
1024
1061
|
// dump: depth 2 was a <button> with bg rgb(239,239,239) and
|
|
1025
1062
|
// border "2px outset rgb(0,0,0)" — straight UA defaults.
|
|
1026
1063
|
const cfg = loaderConfig.value;
|
|
1027
|
-
return
|
|
1064
|
+
return {
|
|
1028
1065
|
size: "23",
|
|
1029
1066
|
indeterminate: cfg.indeterminate,
|
|
1030
1067
|
modelValue: cfg.modelValue,
|
|
1031
|
-
type: loaderKind.value === "line" ? PROGRESS_TYPE.LINEAR : PROGRESS_TYPE.CIRCULAR
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1068
|
+
type: loaderKind.value === "line" ? PROGRESS_TYPE.LINEAR : PROGRESS_TYPE.CIRCULAR,
|
|
1069
|
+
...origamProgressRef.value?.filterProps(props, [
|
|
1070
|
+
"class",
|
|
1071
|
+
"style",
|
|
1072
|
+
"id",
|
|
1073
|
+
"tag",
|
|
1074
|
+
"size",
|
|
1075
|
+
"type"
|
|
1076
|
+
]),
|
|
1077
|
+
...cfg.overrides
|
|
1078
|
+
};
|
|
1040
1079
|
});
|
|
1041
1080
|
/*********************************************************
|
|
1042
1081
|
* Class & Style
|
|
@@ -1069,6 +1108,7 @@ const btnClasses = computed(() => {
|
|
|
1069
1108
|
// so consumers can pick either spelling.
|
|
1070
1109
|
"origam-btn--flat": props.flat,
|
|
1071
1110
|
"origam-btn--icon": !!props.icon,
|
|
1111
|
+
[`origam-btn--spinner-${spinnerHost.value}`]: isLoading.value,
|
|
1072
1112
|
// `origam-btn--loading` comes from `loaderClasses` below: one
|
|
1073
1113
|
// source, emitted once.
|
|
1074
1114
|
// Loader-kind discriminator so SCSS can branch per kind:
|
|
@@ -1686,24 +1726,31 @@ defineExpose({
|
|
|
1686
1726
|
}
|
|
1687
1727
|
}
|
|
1688
1728
|
|
|
1689
|
-
// Circular spinner
|
|
1690
|
-
// (
|
|
1691
|
-
// `margin: auto` pattern centres an absolutely-positioned
|
|
1692
|
-
// element when it has intrinsic width/height (the spinner is
|
|
1693
|
-
// 16-23 px square from its `size` prop). Hiding the label via
|
|
1694
|
-
// opacity preserves the btn's natural width.
|
|
1729
|
+
// Circular spinner (#1086, decision n°2 of #1073): the label stays visible and keeps its accessible name.
|
|
1730
|
+
// Default host (no prepend, no icon): in flow before the label, the button grows by spinner + gap.
|
|
1695
1731
|
&--loader-circular {
|
|
1696
|
-
#{$this}
|
|
1697
|
-
|
|
1698
|
-
|
|
1732
|
+
:deep(#{$this}__progress) {
|
|
1733
|
+
flex: none;
|
|
1734
|
+
margin-inline-end: 0.5em;
|
|
1735
|
+
pointer-events: none;
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
// With a prepend (or an icon-only button) the spinner REPLACES it: same box, so the width is unchanged.
|
|
1740
|
+
&--spinner-prepend #{$this}__prepend,
|
|
1741
|
+
&--spinner-content #{$this}__content {
|
|
1742
|
+
position: relative;
|
|
1743
|
+
|
|
1744
|
+
> :not(#{$this}__progress) {
|
|
1699
1745
|
opacity: 0;
|
|
1700
1746
|
}
|
|
1701
1747
|
|
|
1702
1748
|
:deep(#{$this}__progress) {
|
|
1703
1749
|
position: absolute !important;
|
|
1704
1750
|
inset: 0 !important;
|
|
1705
|
-
|
|
1706
|
-
|
|
1751
|
+
width: 100% !important;
|
|
1752
|
+
height: 100% !important;
|
|
1753
|
+
margin: 0 !important;
|
|
1707
1754
|
}
|
|
1708
1755
|
}
|
|
1709
1756
|
|
|
@@ -1719,6 +1766,7 @@ defineExpose({
|
|
|
1719
1766
|
#{$this}__content {
|
|
1720
1767
|
flex-direction: column;
|
|
1721
1768
|
line-height: 1.25;
|
|
1769
|
+
white-space: normal;
|
|
1722
1770
|
}
|
|
1723
1771
|
|
|
1724
1772
|
#{$this}__prepend,
|
|
@@ -1738,10 +1786,6 @@ defineExpose({
|
|
|
1738
1786
|
margin-top: 4px;
|
|
1739
1787
|
}
|
|
1740
1788
|
|
|
1741
|
-
#{$this}__content {
|
|
1742
|
-
white-space: normal;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
1789
|
&#{$this}--size-x-small {
|
|
1746
1790
|
--origam-btn---height: 56px;
|
|
1747
1791
|
font-size: 0.625rem;
|
|
@@ -1301,7 +1301,8 @@ defineExpose({
|
|
|
1301
1301
|
position: var(--origam-card__underlay---position, absolute);
|
|
1302
1302
|
}
|
|
1303
1303
|
|
|
1304
|
-
|
|
1304
|
+
// Content only: the overlay owns its opacity (scrim, 0 at rest).
|
|
1305
|
+
> *:not(#{$this}__overlay):not(#{$this}__underlay) {
|
|
1305
1306
|
opacity: var(--origam-card---opacity);
|
|
1306
1307
|
}
|
|
1307
1308
|
|
|
@@ -114,7 +114,6 @@ import { useProps } from "../../composables/Commons/props.composable";
|
|
|
114
114
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
115
115
|
import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
116
116
|
import { DENSITY } from "../../enums/Commons/density.enum";
|
|
117
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
118
117
|
import { SIZES } from "../../enums/Commons/size.enum";
|
|
119
118
|
import { intentBgExpr, isCssColor, isIntent } from "../../utils/Commons/color.util";
|
|
120
119
|
import { computed, onBeforeUnmount, onMounted, ref, StyleValue, useSlots, watch } from "vue";
|
|
@@ -132,7 +131,7 @@ const props = defineProps({
|
|
|
132
131
|
delimiterIcon: {
|
|
133
132
|
type: null,
|
|
134
133
|
required: false,
|
|
135
|
-
default:
|
|
134
|
+
default: "mdi:mdi-circle"
|
|
136
135
|
},
|
|
137
136
|
hideDelimiters: {
|
|
138
137
|
type: Boolean,
|
|
@@ -815,7 +814,7 @@ const playPauseLabel = computed(() => {
|
|
|
815
814
|
return isPaused.value ? t("origam.carousel.play") : t("origam.carousel.pause");
|
|
816
815
|
});
|
|
817
816
|
const playPauseIcon = computed(() => {
|
|
818
|
-
return isPaused.value ?
|
|
817
|
+
return isPaused.value ? "mdi:mdi-play" : "mdi:mdi-pause";
|
|
819
818
|
});
|
|
820
819
|
/*********************************************************
|
|
821
820
|
* Frame de redemarrage non annulee (#753 — hors releve du ticket)
|
|
@@ -879,17 +878,19 @@ const windowProps = computed(() => {
|
|
|
879
878
|
return origamWindowRef.value?.filterProps(props, ["modelValue"]);
|
|
880
879
|
});
|
|
881
880
|
const controlProps = (item, index, group) => {
|
|
882
|
-
|
|
881
|
+
// The SELECTED dot is active. When the consumer passes an `active`
|
|
882
|
+
// STATE object, the selected dot wears that surface (forced);
|
|
883
|
+
// otherwise it just reads as active.
|
|
884
|
+
const selectedActive = props.active && typeof props.active === "object" ? {
|
|
885
|
+
...props.active,
|
|
886
|
+
enabled: true
|
|
887
|
+
} : true;
|
|
888
|
+
return {
|
|
889
|
+
...item,
|
|
883
890
|
id: `carousel-item-${item.id}`,
|
|
884
891
|
"aria-label": t("origam.carousel.aria_label.delimiter", index + 1, group.items.value.length),
|
|
885
|
-
//
|
|
886
|
-
|
|
887
|
-
// (forced); otherwise it just reads as active. Hover applies
|
|
888
|
-
// to any dot on hover.
|
|
889
|
-
active: group.isSelected(item.id) ? props.active && typeof props.active === "object" ? {
|
|
890
|
-
...props.active,
|
|
891
|
-
enabled: true
|
|
892
|
-
} : true : false,
|
|
892
|
+
// Hover applies to any dot on hover.
|
|
893
|
+
active: group.isSelected(item.id) ? selectedActive : false,
|
|
893
894
|
hover: props.hover,
|
|
894
895
|
class: ["origam-carousel__controls-item"],
|
|
895
896
|
onClick: () => group.select(item.id, true),
|
|
@@ -897,7 +898,7 @@ const controlProps = (item, index, group) => {
|
|
|
897
898
|
bgColor: props.bgColor,
|
|
898
899
|
size: SIZES.SMALL,
|
|
899
900
|
density: DENSITY.COMPACT
|
|
900
|
-
}
|
|
901
|
+
};
|
|
901
902
|
};
|
|
902
903
|
const slots = useSlots();
|
|
903
904
|
/*********************************************************
|
|
@@ -882,7 +882,10 @@ const axisTicks = computed(() => {
|
|
|
882
882
|
const max = globalMax.value;
|
|
883
883
|
for (let i = 0; i <= AXIS_TICK_COUNT; i++) {
|
|
884
884
|
const v = i / AXIS_TICK_COUNT * max;
|
|
885
|
-
|
|
885
|
+
let label;
|
|
886
|
+
if (props.xAxisFormat) label = props.xAxisFormat(v);
|
|
887
|
+
else if (props.yAxisFormat) label = props.yAxisFormat(v);
|
|
888
|
+
else label = String(Math.round(v * 10) / 10);
|
|
886
889
|
const pad = PADDING.value;
|
|
887
890
|
const x = isHorizontal.value ? pad.left + v / max * plotW.value : pad.left;
|
|
888
891
|
const y = isHorizontal.value ? pad.top + plotH.value + 8 : pad.top + plotH.value - v / max * plotH.value;
|
|
@@ -309,6 +309,7 @@ import { useMargin } from "../../composables/Commons/margin.composable";
|
|
|
309
309
|
import { usePadding } from "../../composables/Commons/padding.composable";
|
|
310
310
|
import { useRounded } from "../../composables/Commons/rounded.composable";
|
|
311
311
|
import { intentBgExpr, isIntent } from "../../utils/Commons/color.util";
|
|
312
|
+
import { chartSafeValue } from "../../utils/Chart/chart-point.util";
|
|
312
313
|
import { CHART_PICTORIAL_MODE } from "../../enums/Chart/chart-pictorial.enum";
|
|
313
314
|
import { DIRECTION } from "../../enums/Commons/direction.enum";
|
|
314
315
|
/*********************************************************
|
|
@@ -925,9 +926,7 @@ const columns = computed(() => {
|
|
|
925
926
|
for (let serIdx = 0; serIdx < seriesCount.value; serIdx++) {
|
|
926
927
|
const s = props.series[serIdx];
|
|
927
928
|
if (!s) continue;
|
|
928
|
-
const
|
|
929
|
-
const value = raw == null ? 0 : typeof raw === "number" ? raw : raw.y;
|
|
930
|
-
const safeValue = Number.isFinite(value) && value >= 0 ? value : 0;
|
|
929
|
+
const safeValue = chartSafeValue(s.data[catIdx]);
|
|
931
930
|
const filledSlots = Math.round(safeValue / effectiveIconsPerUnit.value);
|
|
932
931
|
const colIdx = catIdx * seriesCount.value + serIdx;
|
|
933
932
|
const isHidden = hiddenSeries.value.has(s.name);
|
|
@@ -998,9 +997,7 @@ const fillModeColumns = computed(() => {
|
|
|
998
997
|
const s = props.series[serIdx];
|
|
999
998
|
if (!s) continue;
|
|
1000
999
|
const isHidden = hiddenSeries.value.has(s.name);
|
|
1001
|
-
const
|
|
1002
|
-
const value = raw == null ? 0 : typeof raw === "number" ? raw : raw.y;
|
|
1003
|
-
const safeValue = Number.isFinite(value) && value >= 0 ? value : 0;
|
|
1000
|
+
const safeValue = chartSafeValue(s.data[catIdx]);
|
|
1004
1001
|
const colIdx = catIdx * seriesLen + serIdx;
|
|
1005
1002
|
result.push({
|
|
1006
1003
|
seriesIndex: serIdx,
|
|
@@ -851,7 +851,8 @@ const svgDesc = computed(() => {
|
|
|
851
851
|
const sliceAriaLabel = (path) => {
|
|
852
852
|
const idx = path.dataIndex ?? 0;
|
|
853
853
|
const entry = path.series.data[idx] ?? path.series.data[0];
|
|
854
|
-
|
|
854
|
+
let y = NaN;
|
|
855
|
+
if (entry != null) y = typeof entry === "number" ? entry : entry.y;
|
|
855
856
|
const cat = activeCategories.value[idx] ?? path.series.name ?? idx;
|
|
856
857
|
return `${cat}: ${formatY(y)}`;
|
|
857
858
|
};
|
|
@@ -754,7 +754,9 @@ const wedges = computed(() => {
|
|
|
754
754
|
const labelX = labelR * Math.cos(midAngle);
|
|
755
755
|
const labelY = labelR * Math.sin(midAngle);
|
|
756
756
|
const cosM = Math.cos(midAngle);
|
|
757
|
-
|
|
757
|
+
let labelAnchor = "middle";
|
|
758
|
+
if (cosM > .1) labelAnchor = "start";
|
|
759
|
+
else if (cosM < -.1) labelAnchor = "end";
|
|
758
760
|
const pct = total > 0 ? safeVal / total * 100 : 0;
|
|
759
761
|
const percentage = `${pct.toFixed(1)}%`;
|
|
760
762
|
const showValueLabel = slotAngle >= VALUE_LABEL_MIN_ANGLE && outerR - innerR > 12;
|