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
|
@@ -958,7 +958,8 @@ const lineClasses = computed(() => {
|
|
|
958
958
|
return [props.lines ? `origam-list-item--${props.lines}-line` : undefined];
|
|
959
959
|
});
|
|
960
960
|
const listItemTabIndex = computed(() => {
|
|
961
|
-
|
|
961
|
+
if (!isClickable.value) return undefined;
|
|
962
|
+
return list ? -2 : 0;
|
|
962
963
|
});
|
|
963
964
|
const setActiveLink = () => {
|
|
964
965
|
if (parent.value != null) {
|
|
@@ -1304,10 +1305,6 @@ defineExpose({
|
|
|
1304
1305
|
opacity: var(--origam-list-item---opacity, 0.6);
|
|
1305
1306
|
}
|
|
1306
1307
|
|
|
1307
|
-
&--link {
|
|
1308
|
-
cursor: var(--origam-list-item---cursor, pointer);
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
1308
|
&--one-line {
|
|
1312
1309
|
#{$this}__subtitle {
|
|
1313
1310
|
-webkit-line-clamp: 1;
|
|
@@ -1366,6 +1363,15 @@ defineExpose({
|
|
|
1366
1363
|
}
|
|
1367
1364
|
|
|
1368
1365
|
&--link {
|
|
1366
|
+
cursor: var(--origam-list-item---cursor, pointer);
|
|
1367
|
+
|
|
1368
|
+
// Focus ring (#1358) — same semantic token as Btn / FileField: a theme re-colours it
|
|
1369
|
+
// via `--origam-color__border---focus`. Inset so the list's overflow can't clip it.
|
|
1370
|
+
&:focus-visible {
|
|
1371
|
+
outline: var(--origam-border__width---2, 2px) solid var(--origam-color__border---focus, currentColor);
|
|
1372
|
+
outline-offset: calc(-1 * var(--origam-border__width---2, 2px));
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1369
1375
|
&:hover,
|
|
1370
1376
|
&:focus-visible {
|
|
1371
1377
|
> #{$this}__overlay {
|
|
@@ -167,7 +167,6 @@ import { OrigamBtn } from "../Btn";
|
|
|
167
167
|
import { OrigamMenu } from "../Menu";
|
|
168
168
|
import { useLocale } from "../../composables/Commons/locale.composable";
|
|
169
169
|
import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
170
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
171
170
|
import { formatMediaTime } from "../../utils/Media/format-time.util";
|
|
172
171
|
import OrigamMediaScrubber from "./OrigamMediaScrubber.vue";
|
|
173
172
|
import OrigamMediaVolumeControl from "./OrigamMediaVolumeControl.vue";
|
|
@@ -316,16 +315,16 @@ const slots = useSlots();
|
|
|
316
315
|
* Icon refs — single source of truth for every transport glyph.
|
|
317
316
|
********************************************************/
|
|
318
317
|
const ICONS = {
|
|
319
|
-
PLAY:
|
|
320
|
-
PAUSE:
|
|
321
|
-
PREVIOUS:
|
|
322
|
-
NEXT:
|
|
323
|
-
LOOP:
|
|
324
|
-
LOOP_ONE:
|
|
325
|
-
SHUFFLE:
|
|
326
|
-
COG:
|
|
327
|
-
CAST:
|
|
328
|
-
DOWNLOAD:
|
|
318
|
+
PLAY: "mdi:mdi-play",
|
|
319
|
+
PAUSE: "mdi:mdi-pause",
|
|
320
|
+
PREVIOUS: "mdi:mdi-skip-previous",
|
|
321
|
+
NEXT: "mdi:mdi-skip-next",
|
|
322
|
+
LOOP: "mdi:mdi-repeat",
|
|
323
|
+
LOOP_ONE: "mdi:mdi-repeat-once",
|
|
324
|
+
SHUFFLE: "mdi:mdi-shuffle",
|
|
325
|
+
COG: "mdi:mdi-cog",
|
|
326
|
+
CAST: "mdi:mdi-cast",
|
|
327
|
+
DOWNLOAD: "mdi:mdi-download"
|
|
329
328
|
};
|
|
330
329
|
/*********************************************************
|
|
331
330
|
* i18n labels — pre-translated for the ARIA contract. Template
|
|
@@ -376,8 +375,8 @@ function onToggleMute() {
|
|
|
376
375
|
methods.value.toggleMute();
|
|
377
376
|
}
|
|
378
377
|
function onVolumeChangeFromScrubber(value) {
|
|
379
|
-
|
|
380
|
-
|
|
378
|
+
const muted = state.value.muted.value;
|
|
379
|
+
if (value > 0 && muted || value === 0 && !muted) methods.value.toggleMute();
|
|
381
380
|
methods.value.setVolume(value);
|
|
382
381
|
}
|
|
383
382
|
/*********************************************************
|
|
@@ -431,20 +431,23 @@ function keyStep() {
|
|
|
431
431
|
if (props.step && props.step > 0) return props.step;
|
|
432
432
|
return range.value * .05;
|
|
433
433
|
}
|
|
434
|
+
function keyTarget(key, isVertical, step) {
|
|
435
|
+
switch (key) {
|
|
436
|
+
case "ArrowRight": return isVertical ? null : resolvedValue.value + step;
|
|
437
|
+
case "ArrowLeft": return isVertical ? null : resolvedValue.value - step;
|
|
438
|
+
case "ArrowUp": return isVertical ? resolvedValue.value + step : null;
|
|
439
|
+
case "ArrowDown": return isVertical ? resolvedValue.value - step : null;
|
|
440
|
+
case "PageUp": return resolvedValue.value + range.value * .1;
|
|
441
|
+
case "PageDown": return resolvedValue.value - range.value * .1;
|
|
442
|
+
case "Home": return resolvedMin.value;
|
|
443
|
+
case "End": return resolvedMax.value;
|
|
444
|
+
default: return null;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
434
447
|
function onKeyDown(event) {
|
|
435
448
|
if (props.disabled) return;
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
let next = null;
|
|
439
|
-
if (event.key === "ArrowRight" && !isVertical) next = resolvedValue.value + step;
|
|
440
|
-
else if (event.key === "ArrowLeft" && !isVertical) next = resolvedValue.value - step;
|
|
441
|
-
else if (event.key === "ArrowUp" && isVertical) next = resolvedValue.value + step;
|
|
442
|
-
else if (event.key === "ArrowDown" && isVertical) next = resolvedValue.value - step;
|
|
443
|
-
else if (event.key === "PageUp") next = resolvedValue.value + range.value * .1;
|
|
444
|
-
else if (event.key === "PageDown") next = resolvedValue.value - range.value * .1;
|
|
445
|
-
else if (event.key === "Home") next = resolvedMin.value;
|
|
446
|
-
else if (event.key === "End") next = resolvedMax.value;
|
|
447
|
-
else return;
|
|
449
|
+
const next = keyTarget(event.key, props.orientation === DIRECTION.VERTICAL, keyStep());
|
|
450
|
+
if (next === null) return;
|
|
448
451
|
event.preventDefault();
|
|
449
452
|
const snapped = props.step && props.step > 0 ? clamp(Math.round((next - resolvedMin.value) / props.step) * props.step + resolvedMin.value, resolvedMin.value, resolvedMax.value) : clamp(next, resolvedMin.value, resolvedMax.value);
|
|
450
453
|
commit(snapped, true);
|
|
@@ -52,7 +52,6 @@ import { useDensity } from "../../composables/Commons/density.composable";
|
|
|
52
52
|
import { useRounded } from "../../composables/Commons/rounded.composable";
|
|
53
53
|
import { useSize } from "../../composables/Commons/size.composable";
|
|
54
54
|
import { useTextColor } from "../../composables/Commons/textColor.composable";
|
|
55
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
56
55
|
const props = defineProps({
|
|
57
56
|
volume: {
|
|
58
57
|
type: Number,
|
|
@@ -198,10 +197,10 @@ const props = defineProps({
|
|
|
198
197
|
const emit = defineEmits(["update:muted", "update:volume"]);
|
|
199
198
|
defineSlots();
|
|
200
199
|
const ICONS = {
|
|
201
|
-
VOLUME_HIGH:
|
|
202
|
-
VOLUME_MEDIUM:
|
|
203
|
-
VOLUME_LOW:
|
|
204
|
-
VOLUME_OFF:
|
|
200
|
+
VOLUME_HIGH: "mdi:mdi-volume-high",
|
|
201
|
+
VOLUME_MEDIUM: "mdi:mdi-volume-medium",
|
|
202
|
+
VOLUME_LOW: "mdi:mdi-volume-low",
|
|
203
|
+
VOLUME_OFF: "mdi:mdi-volume-off"
|
|
205
204
|
};
|
|
206
205
|
/*********************************************************
|
|
207
206
|
* Design channels — every read is deferred inside a `computed`
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
>
|
|
61
61
|
<template #activator="{props}">
|
|
62
62
|
<origam-list-item
|
|
63
|
-
:append-icon="
|
|
63
|
+
:append-icon="'mdi:mdi-chevron-right'"
|
|
64
64
|
class="origam-menu__item"
|
|
65
65
|
v-bind="{...props, ...menuItemProps(item)}"
|
|
66
66
|
/>
|
|
@@ -93,7 +93,6 @@ import { ORIGAM_MENU_KEY } from "../../consts/Menu/menu.const";
|
|
|
93
93
|
import { INLINE } from "../../enums/Commons/anchor.enum";
|
|
94
94
|
import { KEYBOARD_VALUES } from "../../enums/Commons/hotkey.enum";
|
|
95
95
|
import { LOCATION_STRATEGIES } from "../../enums/Commons/location.enum";
|
|
96
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
97
96
|
import { SCROLL_STRATEGIES } from "../../enums/Commons/scroll.enum";
|
|
98
97
|
import { focusableChildren, focusChild, getNextElement, getPropertyFromItem, omit } from "../../utils/Commons/commons.util";
|
|
99
98
|
import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
:aria-label="label"
|
|
26
26
|
>
|
|
27
27
|
<origam-btn
|
|
28
|
-
:icon="
|
|
28
|
+
:icon="'mdi:mdi-minus'"
|
|
29
29
|
:disabled="!canDecrease"
|
|
30
30
|
size="small"
|
|
31
31
|
data-cy="numberfield-compact-decrement"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@keydown="handleKeydown"
|
|
53
53
|
/>
|
|
54
54
|
<origam-btn
|
|
55
|
-
:icon="
|
|
55
|
+
:icon="'mdi:mdi-plus'"
|
|
56
56
|
:disabled="!canIncrease"
|
|
57
57
|
size="small"
|
|
58
58
|
data-cy="numberfield-compact-increment"
|
|
@@ -297,7 +297,6 @@ import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
|
297
297
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
298
298
|
import { UNSEEDED } from "../../consts/Commons/vmodel.const";
|
|
299
299
|
import { DIRECTION } from "../../enums/Commons/direction.enum";
|
|
300
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
301
300
|
import { TEXT_FIELD_TYPE } from "../../enums/TextField/text-field.enum";
|
|
302
301
|
import { clamp } from "../../utils/Commons/commons.util";
|
|
303
302
|
import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
@@ -364,12 +363,12 @@ const props = defineProps({
|
|
|
364
363
|
incrementIcon: {
|
|
365
364
|
type: null,
|
|
366
365
|
required: false,
|
|
367
|
-
default:
|
|
366
|
+
default: "mdi:mdi-plus"
|
|
368
367
|
},
|
|
369
368
|
decrementIcon: {
|
|
370
369
|
type: null,
|
|
371
370
|
required: false,
|
|
372
|
-
default:
|
|
371
|
+
default: "mdi:mdi-minus"
|
|
373
372
|
},
|
|
374
373
|
holdDelay: {
|
|
375
374
|
type: Number,
|
|
@@ -1375,11 +1374,9 @@ const toggleUpDown = (increment = true) => {
|
|
|
1375
1374
|
inputText.value = correctPrecision(model.value + props.step, inferredPrecision);
|
|
1376
1375
|
emits("increment", model.value);
|
|
1377
1376
|
}
|
|
1378
|
-
} else {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
emits("decrement", model.value);
|
|
1382
|
-
}
|
|
1377
|
+
} else if (canDecrease.value) {
|
|
1378
|
+
inputText.value = correctPrecision(model.value - props.step, inferredPrecision);
|
|
1379
|
+
emits("decrement", model.value);
|
|
1383
1380
|
}
|
|
1384
1381
|
};
|
|
1385
1382
|
/*********************************************************
|
|
@@ -188,7 +188,13 @@ const ariaLabel = computed(() => {
|
|
|
188
188
|
// Rebuild a long-form formatter on demand. The LRU cache will
|
|
189
189
|
// promote it to a hot entry as soon as the same locale is reused.
|
|
190
190
|
try {
|
|
191
|
-
|
|
191
|
+
let locales;
|
|
192
|
+
if (props.locale === "auto" || !props.locale) {
|
|
193
|
+
locales = typeof navigator !== "undefined" ? navigator.language : "en-US";
|
|
194
|
+
} else {
|
|
195
|
+
locales = props.locale;
|
|
196
|
+
}
|
|
197
|
+
const longIntl = new Intl.NumberFormat(locales, {
|
|
192
198
|
notation: "compact",
|
|
193
199
|
compactDisplay: "long"
|
|
194
200
|
});
|
|
@@ -1162,7 +1162,7 @@ const handleClickPrependInner = (e) => {
|
|
|
1162
1162
|
emits("click:prependInner", e);
|
|
1163
1163
|
};
|
|
1164
1164
|
const isInvalidValue = (value) => {
|
|
1165
|
-
return props.type === OTP_INPUT_FIELD_TYPE.NUMBER && /
|
|
1165
|
+
return props.type === OTP_INPUT_FIELD_TYPE.NUMBER && /\D/g.test(value);
|
|
1166
1166
|
};
|
|
1167
1167
|
watch(model, (val) => {
|
|
1168
1168
|
if (val.length === length.value) {
|
|
@@ -192,7 +192,6 @@ import { useStyle } from "../../composables/Commons/style.composable";
|
|
|
192
192
|
import { useTypography } from "../../composables/Commons/typography.composable";
|
|
193
193
|
import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
194
194
|
import { KEYBOARD_VALUES } from "../../enums/Commons/hotkey.enum";
|
|
195
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
196
195
|
import { VARIANT } from "../../enums/Commons/variant.enum";
|
|
197
196
|
import { createRange, int } from "../../utils/Commons/commons.util";
|
|
198
197
|
/*********************************************************
|
|
@@ -227,22 +226,22 @@ const props = defineProps({
|
|
|
227
226
|
firstIcon: {
|
|
228
227
|
type: null,
|
|
229
228
|
required: false,
|
|
230
|
-
default:
|
|
229
|
+
default: "mdi:mdi-chevron-double-left"
|
|
231
230
|
},
|
|
232
231
|
prevIcon: {
|
|
233
232
|
type: null,
|
|
234
233
|
required: false,
|
|
235
|
-
default:
|
|
234
|
+
default: "mdi:mdi-chevron-left"
|
|
236
235
|
},
|
|
237
236
|
nextIcon: {
|
|
238
237
|
type: null,
|
|
239
238
|
required: false,
|
|
240
|
-
default:
|
|
239
|
+
default: "mdi:mdi-chevron-right"
|
|
241
240
|
},
|
|
242
241
|
lastIcon: {
|
|
243
242
|
type: null,
|
|
244
243
|
required: false,
|
|
245
|
-
default:
|
|
244
|
+
default: "mdi:mdi-chevron-double-right"
|
|
246
245
|
},
|
|
247
246
|
ariaLabel: {
|
|
248
247
|
type: String,
|
|
@@ -653,12 +653,9 @@ const calculateMouseMovement = () => {
|
|
|
653
653
|
if (parallax.event.value !== PARALLAX_EVENT.SCROLL) {
|
|
654
654
|
movementX = props.axis === AXIS.Y ? 0 : x;
|
|
655
655
|
movementY = props.axis === AXIS.X ? 0 : y;
|
|
656
|
-
} else
|
|
656
|
+
} else {
|
|
657
657
|
movementX = props.axis === AXIS.X ? y : 0;
|
|
658
658
|
movementY = props.axis === AXIS.Y || !props.axis ? y : 0;
|
|
659
|
-
} else if (props.cycle > 0) {
|
|
660
|
-
movementX = props.axis === AXIS.X ? x : 0;
|
|
661
|
-
movementY = props.axis === AXIS.Y ? y : 0;
|
|
662
659
|
}
|
|
663
660
|
return {
|
|
664
661
|
x: movementX,
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
<div class="origam-password-field__validate">
|
|
104
104
|
<origam-icon
|
|
105
105
|
:color="isChecked(info.key) ? 'success' : 'accent'"
|
|
106
|
-
:icon="isChecked(info.key) ?
|
|
106
|
+
:icon="isChecked(info.key) ? 'mdi:mdi-check-circle-outline' : 'mdi:mdi-close-circle-outline'"
|
|
107
107
|
/>
|
|
108
108
|
</div>
|
|
109
109
|
<div
|
|
@@ -249,9 +249,9 @@
|
|
|
249
249
|
>
|
|
250
250
|
<origam-icon
|
|
251
251
|
class="origam-password-field__requirement-icon"
|
|
252
|
-
:icon="isRuleSatisfied(rule) ?
|
|
252
|
+
:icon="isRuleSatisfied(rule) ? 'mdi:mdi-check-circle-outline' : 'mdi:mdi-close-circle-outline'"
|
|
253
253
|
/>
|
|
254
|
-
<span class="origam-password-field__requirement-label">{{ rule
|
|
254
|
+
<span class="origam-password-field__requirement-label">{{ ruleLabel(rule) }}</span>
|
|
255
255
|
</li>
|
|
256
256
|
</ul>
|
|
257
257
|
<div
|
|
@@ -266,8 +266,8 @@
|
|
|
266
266
|
isRuleSatisfied(rule) ? 'origam-password-field__requirement-chip--satisfied' : 'origam-password-field__requirement-chip--pending'
|
|
267
267
|
]"
|
|
268
268
|
:bg-color="isRuleSatisfied(rule) ? 'success' : undefined"
|
|
269
|
-
:prepend-icon="isRuleSatisfied(rule) ?
|
|
270
|
-
:text="rule
|
|
269
|
+
:prepend-icon="isRuleSatisfied(rule) ? 'mdi:mdi-check-circle-outline' : 'mdi:mdi-close-circle-outline'"
|
|
270
|
+
:text="ruleLabel(rule)"
|
|
271
271
|
:data-requirement-id="rule.id"
|
|
272
272
|
:data-satisfied="isRuleSatisfied(rule) ? 'true' : 'false'"
|
|
273
273
|
/>
|
|
@@ -319,12 +319,11 @@ import { filterPropsOf, useProps } from "../../composables/Commons/props.composa
|
|
|
319
319
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
320
320
|
import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
321
321
|
import { BORDER_PROP_KEYS } from "../../consts/Commons/border.const";
|
|
322
|
-
import { DEFAULT_PASSWORD_REQUIREMENTS, REQUIREMENT_MIN_LENGTH, REQUIREMENT_NUMBER, REQUIREMENT_SPECIAL, REQUIREMENT_TINY, REQUIREMENT_UPPERCASE } from "../../consts/PasswordField/password-field.const";
|
|
322
|
+
import { DEFAULT_MIN_LENGTH, DEFAULT_PASSWORD_REQUIREMENTS, REQUIREMENT_MIN_LENGTH, REQUIREMENT_NUMBER, REQUIREMENT_SPECIAL, REQUIREMENT_TINY, REQUIREMENT_UPPERCASE } from "../../consts/PasswordField/password-field.const";
|
|
323
323
|
import vIntersect from "../../directives/Intersect/intersect.directive";
|
|
324
324
|
import { DENSITY } from "../../enums/Commons/density.enum";
|
|
325
325
|
import { DIRECTION } from "../../enums/Commons/direction.enum";
|
|
326
326
|
import { KEYBOARD_VALUES } from "../../enums/Commons/hotkey.enum";
|
|
327
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
328
327
|
import { TEXT_FIELD_TYPE } from "../../enums/TextField/text-field.enum";
|
|
329
328
|
import { filterInputAttrs } from "../../utils/Input/input.util";
|
|
330
329
|
import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
@@ -344,12 +343,12 @@ const props = defineProps({
|
|
|
344
343
|
onIcon: {
|
|
345
344
|
type: null,
|
|
346
345
|
required: false,
|
|
347
|
-
default:
|
|
346
|
+
default: "mdi:mdi-eye-outline"
|
|
348
347
|
},
|
|
349
348
|
offIcon: {
|
|
350
349
|
type: null,
|
|
351
350
|
required: false,
|
|
352
|
-
default:
|
|
351
|
+
default: "mdi:mdi-eye-off"
|
|
353
352
|
},
|
|
354
353
|
maxlength: {
|
|
355
354
|
type: Number,
|
|
@@ -365,8 +364,11 @@ const props = defineProps({
|
|
|
365
364
|
},
|
|
366
365
|
minLength: {
|
|
367
366
|
type: Number,
|
|
368
|
-
required: false
|
|
369
|
-
|
|
367
|
+
required: false
|
|
368
|
+
},
|
|
369
|
+
minLengthMessage: {
|
|
370
|
+
type: String,
|
|
371
|
+
required: false
|
|
370
372
|
},
|
|
371
373
|
needTiny: {
|
|
372
374
|
type: Boolean,
|
|
@@ -1221,7 +1223,10 @@ const { onClickPrepend: handleClickPrepend, onClickAppend: handleClickAppend } =
|
|
|
1221
1223
|
* `autofocus` is set. Avoids stealing focus from off-screen forms.
|
|
1222
1224
|
********************************************************/
|
|
1223
1225
|
const handleIntersect = (isIntersecting, entries) => {
|
|
1224
|
-
if (!props.autofocus || !isIntersecting)
|
|
1226
|
+
if (!props.autofocus || !isIntersecting) {
|
|
1227
|
+
return;
|
|
1228
|
+
}
|
|
1229
|
+
;
|
|
1225
1230
|
entries[0].target?.focus?.();
|
|
1226
1231
|
};
|
|
1227
1232
|
const intersect = computed(() => {
|
|
@@ -1306,7 +1311,7 @@ const hasDetails = computed(() => {
|
|
|
1306
1311
|
* `isChecked` evaluates each rule against the current value.
|
|
1307
1312
|
********************************************************/
|
|
1308
1313
|
const infos = computed(() => {
|
|
1309
|
-
const localeInfos = { minLength: REQUIREMENT_MIN_LENGTH(props.minLength) };
|
|
1314
|
+
const localeInfos = { minLength: REQUIREMENT_MIN_LENGTH(props.minLength ?? DEFAULT_MIN_LENGTH) };
|
|
1310
1315
|
if (props.needTiny) localeInfos.tiny = REQUIREMENT_TINY;
|
|
1311
1316
|
if (props.needUppercase) localeInfos.uppercase = REQUIREMENT_UPPERCASE;
|
|
1312
1317
|
if (props.needNumber) localeInfos.number = REQUIREMENT_NUMBER;
|
|
@@ -1373,6 +1378,9 @@ const hasInlineFooter = computed(() => {
|
|
|
1373
1378
|
if (props.minimal) return false;
|
|
1374
1379
|
return !!props.strengthBar || hasInlineRequirements.value;
|
|
1375
1380
|
});
|
|
1381
|
+
const ruleLabel = (rule) => {
|
|
1382
|
+
return rule.labelKey ? t(rule.labelKey, rule.labelParams) : rule.label;
|
|
1383
|
+
};
|
|
1376
1384
|
const isRuleSatisfied = (rule) => {
|
|
1377
1385
|
const v = (model.value ?? "").toString();
|
|
1378
1386
|
try {
|
|
@@ -1423,10 +1431,18 @@ const handleToggleKeydown = (e) => {
|
|
|
1423
1431
|
********************************************************/
|
|
1424
1432
|
const enrichedRules = computed(() => {
|
|
1425
1433
|
const base = Array.isArray(props.rules) ? [...props.rules] : [];
|
|
1434
|
+
/*********************************************************
|
|
1435
|
+
* #1334 — the length rule is opt-in: explicit `minLength`, `requirements`
|
|
1436
|
+
* or `strengthBar`. An empty value is left to the caller's `rules` / `required`.
|
|
1437
|
+
********************************************************/
|
|
1438
|
+
const lengthEnforced = props.minLength != null || props.requirements === true || !!props.strengthBar;
|
|
1426
1439
|
Object.keys(infos.value).forEach((key) => {
|
|
1440
|
+
if (key === "minLength" && !lengthEnforced) return;
|
|
1427
1441
|
const info = infos.value[key];
|
|
1428
1442
|
base.push((value) => {
|
|
1429
|
-
|
|
1443
|
+
if (!value || info.reg.test(value)) return true;
|
|
1444
|
+
if (key === "minLength" && props.minLengthMessage) return props.minLengthMessage;
|
|
1445
|
+
return t("origam.validation.must_contains", { value: t(info.messageKey, { count: info.count }) });
|
|
1430
1446
|
});
|
|
1431
1447
|
});
|
|
1432
1448
|
return base;
|
|
@@ -1434,7 +1450,13 @@ const enrichedRules = computed(() => {
|
|
|
1434
1450
|
/*********************************************************
|
|
1435
1451
|
* Props passed down
|
|
1436
1452
|
********************************************************/
|
|
1437
|
-
|
|
1453
|
+
/*********************************************************
|
|
1454
|
+
* #1110 — computed, not a setup snapshot: attrs set after mount
|
|
1455
|
+
* (aria-invalid…) must reach the <input>.
|
|
1456
|
+
********************************************************/
|
|
1457
|
+
const filteredAttrs = computed(() => filterInputAttrs(attrs));
|
|
1458
|
+
const rootAttrs = computed(() => filteredAttrs.value[0]);
|
|
1459
|
+
const inputAttrs = computed(() => filteredAttrs.value[1]);
|
|
1438
1460
|
/*********************************************************
|
|
1439
1461
|
* inputProps
|
|
1440
1462
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
role="progressbar"
|
|
15
15
|
@click="handleClick"
|
|
16
16
|
>
|
|
17
|
-
<
|
|
17
|
+
<span
|
|
18
18
|
v-if="stream"
|
|
19
19
|
key="stream"
|
|
20
20
|
:style="streamStyles"
|
|
21
21
|
class="origam-progress__stream"
|
|
22
22
|
/>
|
|
23
|
-
<
|
|
23
|
+
<span
|
|
24
24
|
:class="progressBackgroundClasses"
|
|
25
25
|
:style="backgroundStyles"
|
|
26
26
|
/>
|
|
27
27
|
|
|
28
28
|
<origam-transition :transition="transition">
|
|
29
|
-
<
|
|
29
|
+
<span :class="progressLoaderClasses">
|
|
30
30
|
<template v-if="indeterminate">
|
|
31
|
-
<
|
|
31
|
+
<span
|
|
32
32
|
v-for="bar in ['long', 'short']"
|
|
33
33
|
:key="bar"
|
|
34
34
|
:class="`origam-progress__bar--${bar}`"
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
/>
|
|
38
38
|
</template>
|
|
39
39
|
<template v-else>
|
|
40
|
-
<
|
|
40
|
+
<span
|
|
41
41
|
:style="loaderStyles"
|
|
42
42
|
class="origam-progress__bar"
|
|
43
43
|
/>
|
|
44
44
|
</template>
|
|
45
|
-
</
|
|
45
|
+
</span>
|
|
46
46
|
</origam-transition>
|
|
47
47
|
|
|
48
48
|
<div
|
|
@@ -627,6 +627,7 @@ defineExpose({
|
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
#{$this}__loader {
|
|
630
|
+
display: block;
|
|
630
631
|
color: var(--origam-progress-linear__loader---color, inherit);
|
|
631
632
|
|
|
632
633
|
> * {
|
|
@@ -30,9 +30,12 @@
|
|
|
30
30
|
|
|
31
31
|
<template
|
|
32
32
|
v-if="slots.label"
|
|
33
|
-
#label
|
|
33
|
+
#label="labelSlotProps"
|
|
34
34
|
>
|
|
35
|
-
<slot
|
|
35
|
+
<slot
|
|
36
|
+
name="label"
|
|
37
|
+
v-bind="labelSlotProps"
|
|
38
|
+
/>
|
|
36
39
|
</template>
|
|
37
40
|
</origam-selection-control>
|
|
38
41
|
</template>
|
|
@@ -44,7 +47,6 @@ import { useProps } from "../../composables/Commons/props.composable";
|
|
|
44
47
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
45
48
|
import { useVModel } from "../../composables/Commons/vModel.composable";
|
|
46
49
|
import { DENSITY } from "../../enums/Commons/density.enum";
|
|
47
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
48
50
|
/*********************************************************
|
|
49
51
|
* Global
|
|
50
52
|
*
|
|
@@ -126,12 +128,12 @@ const props = defineProps({
|
|
|
126
128
|
falseIcon: {
|
|
127
129
|
type: null,
|
|
128
130
|
required: false,
|
|
129
|
-
default:
|
|
131
|
+
default: "mdi:mdi-radiobox-blank"
|
|
130
132
|
},
|
|
131
133
|
trueIcon: {
|
|
132
134
|
type: null,
|
|
133
135
|
required: false,
|
|
134
|
-
default:
|
|
136
|
+
default: "mdi:mdi-radiobox-marked"
|
|
135
137
|
},
|
|
136
138
|
multiple: {
|
|
137
139
|
type: Boolean,
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<origam-btn
|
|
50
50
|
v-if="clearable && normalizedValue > 0 && !disabled && !readonly"
|
|
51
51
|
:aria-label="t('origam.rating.clear')"
|
|
52
|
-
:icon="
|
|
52
|
+
:icon="'mdi:mdi-close-circle-outline'"
|
|
53
53
|
:variant="VARIANT.TEXT"
|
|
54
54
|
class="origam-rating-field__clear"
|
|
55
55
|
data-cy="rating-field-clear"
|
|
@@ -177,7 +177,6 @@ import { RATING_FIELD_ENABLED_RADIO_SELECTOR, RATING_FIELD_MUTATING_KEYS, RATING
|
|
|
177
177
|
import { BLOCK } from "../../enums/Commons/anchor.enum";
|
|
178
178
|
import { DENSITY } from "../../enums/Commons/density.enum";
|
|
179
179
|
import { KEYBOARD_VALUES } from "../../enums/Commons/hotkey.enum";
|
|
180
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
181
180
|
import { SIZES } from "../../enums/Commons/size.enum";
|
|
182
181
|
import { VARIANT } from "../../enums/Commons/variant.enum";
|
|
183
182
|
import { clamp, createRange } from "../../utils/Commons/commons.util";
|
|
@@ -46,7 +46,6 @@ import OrigamBtn from "../Btn/OrigamBtn.vue";
|
|
|
46
46
|
import { useLocale } from "../../composables/Commons/locale.composable";
|
|
47
47
|
import { useProps } from "../../composables/Commons/props.composable";
|
|
48
48
|
import { useStyle } from "../../composables/Commons/style.composable";
|
|
49
|
-
import { MDI_ICONS } from "../../enums/Commons/mdi.enum";
|
|
50
49
|
import { VARIANT } from "../../enums/Commons/variant.enum";
|
|
51
50
|
/*********************************************************
|
|
52
51
|
* Global
|
|
@@ -105,12 +104,12 @@ const props = defineProps({
|
|
|
105
104
|
fullIcon: {
|
|
106
105
|
type: null,
|
|
107
106
|
required: false,
|
|
108
|
-
default:
|
|
107
|
+
default: "mdi:mdi-star"
|
|
109
108
|
},
|
|
110
109
|
emptyIcon: {
|
|
111
110
|
type: null,
|
|
112
111
|
required: false,
|
|
113
|
-
default:
|
|
112
|
+
default: "mdi:mdi-star-outline"
|
|
114
113
|
},
|
|
115
114
|
halfIncrements: {
|
|
116
115
|
type: Boolean,
|