origam 2.38.1 → 2.38.2
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 +24 -0
- package/dist/src/assets/locales/en.json +1 -1
- package/dist/src/assets/locales/fr.json +2 -2
- package/dist/src/components/Alert/OrigamAlert.vue +739 -165
- package/dist/src/components/App/OrigamApp.vue +95 -19
- package/dist/src/components/App/OrigamAppBar.vue +751 -158
- package/dist/src/components/Audio/OrigamAudio.vue +1288 -346
- package/dist/src/components/Audio/OrigamAudioWaveform.vue +63 -7
- package/dist/src/components/Avatar/OrigamAvatar.vue +678 -126
- package/dist/src/components/Avatar/OrigamAvatarGroup.vue +700 -153
- package/dist/src/components/Badge/OrigamBadge.vue +548 -135
- package/dist/src/components/Blockquote/OrigamBlockquote.vue +698 -140
- package/dist/src/components/BottomNav/OrigamBottomNav.vue +864 -156
- package/dist/src/components/Bracket/OrigamBracket.vue +1013 -380
- package/dist/src/components/Bracket/OrigamBracketCompetitor.vue +674 -154
- package/dist/src/components/Bracket/OrigamBracketMatch.vue +663 -163
- package/dist/src/components/Bracket/OrigamBracketRound.vue +116 -34
- package/dist/src/components/Breadcrumb/OrigamBreadcrumb.vue +654 -119
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbDivider.vue +292 -54
- package/dist/src/components/Breadcrumb/OrigamBreadcrumbItem.vue +657 -126
- package/dist/src/components/Btn/OrigamBtn.vue +928 -249
- package/dist/src/components/Btn/OrigamBtnGroup.vue +658 -141
- package/dist/src/components/Btn/OrigamBtnToggle.vue +578 -91
- package/dist/src/components/Calendar/OrigamCalendar.vue +1142 -484
- package/dist/src/components/Card/OrigamCard.vue +938 -194
- package/dist/src/components/Card/OrigamCardHeader.vue +593 -104
- package/dist/src/components/Card/OrigamCardText.vue +536 -84
- package/dist/src/components/Carousel/OrigamCarousel.vue +778 -202
- package/dist/src/components/Carousel/OrigamCarouselItem.vue +660 -109
- package/dist/src/components/Chart/OrigamChart.vue +942 -452
- package/dist/src/components/Chart/OrigamChartAxis.vue +111 -19
- package/dist/src/components/Chart/OrigamChartBoxPlot.vue +713 -297
- package/dist/src/components/Chart/OrigamChartBullet.vue +701 -286
- package/dist/src/components/Chart/OrigamChartCandlestick.vue +663 -243
- package/dist/src/components/Chart/OrigamChartCartesian.vue +1055 -487
- package/dist/src/components/Chart/OrigamChartGauge.vue +563 -164
- package/dist/src/components/Chart/OrigamChartHeatmap.vue +677 -251
- package/dist/src/components/Chart/OrigamChartHoneycomb.vue +700 -288
- package/dist/src/components/Chart/OrigamChartLegend.vue +108 -16
- package/dist/src/components/Chart/OrigamChartMap.vue +723 -299
- package/dist/src/components/Chart/OrigamChartPareto.vue +721 -276
- package/dist/src/components/Chart/OrigamChartPictorial.vue +777 -355
- package/dist/src/components/Chart/OrigamChartPolar.vue +603 -210
- package/dist/src/components/Chart/OrigamChartPolarBar.vue +674 -271
- package/dist/src/components/Chart/OrigamChartPyramid.vue +685 -250
- package/dist/src/components/Chart/OrigamChartRadar.vue +515 -165
- package/dist/src/components/Chart/OrigamChartRangeSelector.vue +50 -25
- package/dist/src/components/Chart/OrigamChartSankey.vue +913 -467
- package/dist/src/components/Chart/OrigamChartSparkline.vue +711 -268
- package/dist/src/components/Chart/OrigamChartStreamgraph.vue +810 -368
- package/dist/src/components/Chart/OrigamChartSunburst.vue +779 -368
- package/dist/src/components/Chart/OrigamChartTooltip.vue +78 -19
- package/dist/src/components/Chart/OrigamChartTreemap.vue +750 -288
- package/dist/src/components/Chart/OrigamChartVariwide.vue +679 -251
- package/dist/src/components/Chart/OrigamChartWordCloud.vue +674 -265
- package/dist/src/components/Checkbox/OrigamCheckbox.vue +781 -136
- package/dist/src/components/Checkbox/OrigamCheckboxBtn.vue +465 -81
- package/dist/src/components/Checkbox/OrigamCheckboxGroup.vue +824 -137
- package/dist/src/components/Chip/OrigamChip.vue +867 -202
- package/dist/src/components/Chip/OrigamChipGroup.vue +633 -121
- package/dist/src/components/ClientOnly/OrigamClientOnly.vue +30 -4
- package/dist/src/components/Clipboard/OrigamClipboard.vue +624 -105
- package/dist/src/components/Code/OrigamCode.vue +844 -206
- package/dist/src/components/CodeGroup/OrigamCodeGroup.vue +494 -83
- package/dist/src/components/ColorPicker/OrigamColorPicker.vue +777 -159
- package/dist/src/components/ColorPicker/OrigamColorPickerCanvas.vue +295 -181
- package/dist/src/components/ColorPicker/OrigamColorPickerEdit.vue +108 -45
- package/dist/src/components/ColorPicker/OrigamColorPickerPreview.vue +131 -46
- package/dist/src/components/ColorPicker/OrigamColorPickerSwatches.vue +128 -39
- package/dist/src/components/ColorPickerField/OrigamColorPickerField.vue +1123 -258
- package/dist/src/components/CommandPalette/OrigamCommandPalette.vue +415 -162
- package/dist/src/components/ConfirmWrapper/OrigamConfirmWrapper.vue +389 -145
- package/dist/src/components/ContextualMenu/OrigamContextualMenu.vue +852 -147
- package/dist/src/components/Counter/OrigamCounter.vue +588 -96
- package/dist/src/components/DataList/OrigamDataList.vue +619 -113
- package/dist/src/components/DataList/OrigamDataText.vue +295 -65
- package/dist/src/components/DataList/OrigamDataTitle.vue +295 -65
- package/dist/src/components/DataTable/OrigamDataTable.vue +934 -222
- package/dist/src/components/DataTable/OrigamDataTableColumnCell.vue +196 -51
- package/dist/src/components/DataTable/OrigamDataTableFooter.vue +319 -78
- package/dist/src/components/DataTable/OrigamDataTableGroupHeaderRow.vue +124 -44
- package/dist/src/components/DataTable/OrigamDataTableHeaderCell.vue +181 -70
- package/dist/src/components/DataTable/OrigamDataTableHeaders.vue +155 -46
- package/dist/src/components/DataTable/OrigamDataTableHeadersCell.vue +145 -27
- package/dist/src/components/DataTable/OrigamDataTableHeadersCellMobile.vue +126 -43
- package/dist/src/components/DataTable/OrigamDataTableRow.vue +151 -73
- package/dist/src/components/DataTable/OrigamDataTableRows.vue +261 -106
- package/dist/src/components/DatePicker/OrigamDatePicker.vue +1048 -261
- package/dist/src/components/DatePicker/OrigamDatePickerControls.vue +155 -51
- package/dist/src/components/DatePicker/OrigamDatePickerHeader.vue +147 -46
- package/dist/src/components/DatePicker/OrigamDatePickerMonth.vue +312 -134
- package/dist/src/components/DatePicker/OrigamDatePickerMonths.vue +151 -61
- package/dist/src/components/DatePicker/OrigamDatePickerYears.vue +154 -67
- package/dist/src/components/DatePickerField/OrigamDatePickerField.vue +1147 -306
- package/dist/src/components/DefaultsProvider/OrigamDefaultsProvider.vue +74 -14
- package/dist/src/components/Dialog/OrigamDialog.vue +953 -196
- package/dist/src/components/Dialog/OrigamDialogConfirmation.vue +886 -148
- package/dist/src/components/Divider/OrigamDivider.vue +210 -50
- package/dist/src/components/Drawer/OrigamDrawer.vue +909 -207
- package/dist/src/components/EmptyState/OrigamEmptyState.vue +146 -35
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanel.vue +746 -159
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelContent.vue +591 -95
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanelHeader.vue +663 -143
- package/dist/src/components/ExpansionPanel/OrigamExpansionPanels.vue +675 -134
- package/dist/src/components/Field/OrigamField.vue +1118 -306
- package/dist/src/components/FileField/OrigamFileField.vue +1188 -311
- package/dist/src/components/FileField/OrigamFileFieldDragNDropItem.vue +155 -36
- package/dist/src/components/FileField/OrigamFileFieldListItem.vue +155 -36
- package/dist/src/components/Form/OrigamForm.vue +197 -74
- package/dist/src/components/Grid/OrigamGrid.vue +707 -147
- package/dist/src/components/Grid/OrigamGridItem.vue +110 -37
- package/dist/src/components/Grids/OrigamCol.vue +593 -110
- package/dist/src/components/Grids/OrigamContainer.vue +461 -80
- package/dist/src/components/Grids/OrigamRow.vue +573 -112
- package/dist/src/components/Grids/OrigamSpacer.vue +54 -17
- package/dist/src/components/Icon/OrigamClassIcon.vue +573 -98
- package/dist/src/components/Icon/OrigamComponentIcon.vue +561 -101
- package/dist/src/components/Icon/OrigamIcon.vue +561 -98
- package/dist/src/components/Icon/OrigamLigatureIcon.vue +558 -98
- package/dist/src/components/Icon/OrigamSvgIcon.vue +593 -100
- package/dist/src/components/Img/OrigamImg.vue +869 -228
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScroll.vue +319 -111
- package/dist/src/components/InfiniteScroll/OrigamInfiniteScrollIntersect.vue +80 -17
- package/dist/src/components/InlineEdit/OrigamInlineEdit.vue +476 -140
- package/dist/src/components/Input/OrigamInput.vue +747 -180
- package/dist/src/components/ItemGroup/OrigamItemGroup.vue +112 -36
- package/dist/src/components/ItemGroup/OrigamItemGroupItem.vue +80 -29
- package/dist/src/components/Kbd/OrigamKbd.vue +450 -75
- package/dist/src/components/Label/OrigamLabel.vue +584 -95
- package/dist/src/components/Layout/OrigamLayout.vue +563 -94
- package/dist/src/components/Lazy/OrigamLazy.vue +131 -34
- package/dist/src/components/List/OrigamList.vue +755 -170
- package/dist/src/components/List/OrigamListChildren.vue +59 -19
- package/dist/src/components/List/OrigamListGroup.vue +631 -134
- package/dist/src/components/List/OrigamListGroupActivator.vue +45 -17
- package/dist/src/components/List/OrigamListItem.vue +890 -224
- package/dist/src/components/List/OrigamListItemWrapper.vue +20 -10
- package/dist/src/components/List/OrigamListSubheader.vue +542 -93
- package/dist/src/components/Loader/OrigamLoader.vue +110 -25
- package/dist/src/components/Main/OrigamMain.vue +565 -96
- package/dist/src/components/Masonry/OrigamMasonry.vue +799 -187
- package/dist/src/components/Media/OrigamMediaController.vue +465 -182
- package/dist/src/components/Media/OrigamMediaScrubber.vue +389 -152
- package/dist/src/components/Media/OrigamMediaVolumeControl.vue +174 -44
- package/dist/src/components/Menu/OrigamMenu.vue +1079 -255
- package/dist/src/components/Messages/OrigamMessages.vue +606 -97
- package/dist/src/components/NumberField/OrigamNumberField.vue +1208 -333
- package/dist/src/components/NumberFormat/OrigamNumberFormat.vue +177 -57
- package/dist/src/components/OtpInputField/OrigamOtpInputField.vue +1016 -272
- package/dist/src/components/Overlay/OrigamOverlay.vue +446 -158
- package/dist/src/components/Overlay/OrigamOverlayScrim.vue +122 -30
- package/dist/src/components/Pagination/OrigamPagination.vue +982 -313
- package/dist/src/components/Parallax/OrigamParallax.vue +800 -259
- package/dist/src/components/Parallax/OrigamParallaxElement.vue +694 -178
- package/dist/src/components/Parallax/OrigamParallaxLayer.vue +132 -47
- package/dist/src/components/PasswordField/OrigamPasswordField.vue +1098 -265
- package/dist/src/components/Picker/OrigamPicker.vue +655 -108
- package/dist/src/components/Picker/OrigamPickerTitle.vue +108 -26
- package/dist/src/components/Progress/OrigamProgress.vue +436 -70
- package/dist/src/components/Progress/OrigamProgressCircular.vue +399 -82
- package/dist/src/components/Progress/OrigamProgressLinear.vue +468 -115
- package/dist/src/components/QrCode/OrigamQrCode.vue +642 -126
- package/dist/src/components/Radio/OrigamRadio.vue +772 -132
- package/dist/src/components/Radio/OrigamRadioBtn.vue +446 -71
- package/dist/src/components/Radio/OrigamRadioGroup.vue +808 -135
- package/dist/src/components/RatingField/OrigamRatingField.vue +963 -194
- package/dist/src/components/RatingField/OrigamRatingFieldItem.vue +657 -106
- package/dist/src/components/Responsive/OrigamResponsive.vue +548 -91
- package/dist/src/components/Select/OrigamSelect.vue +1639 -567
- package/dist/src/components/SelectionControl/OrigamSelectionControl.vue +564 -151
- package/dist/src/components/SelectionControl/OrigamSelectionControlGroup.vue +178 -62
- package/dist/src/components/Sheet/OrigamSheet.vue +773 -199
- package/dist/src/components/Skeleton/OrigamSkeleton.vue +249 -46
- package/dist/src/components/Skeleton/OrigamSkeletonGroup.vue +66 -11
- package/dist/src/components/Slide/OrigamSlideGroup.vue +772 -257
- package/dist/src/components/SliderField/OrigamSliderField.vue +1157 -335
- package/dist/src/components/SliderField/OrigamSliderFieldTrack.vue +236 -112
- package/dist/src/components/Snackbar/OrigamSnackbar.vue +871 -214
- package/dist/src/components/Snackbar/OrigamSnackbarGroup.vue +218 -51
- package/dist/src/components/Snackbar/OrigamSnackbarItem.vue +175 -43
- package/dist/src/components/Stepper/OrigamStepper.vue +618 -126
- package/dist/src/components/Stepper/OrigamStepperItem.vue +98 -37
- package/dist/src/components/Switch/OrigamSwitch.vue +879 -156
- package/dist/src/components/Switch/OrigamSwitchTrack.vue +431 -78
- package/dist/src/components/SystemBar/OrigamSystemBar.vue +517 -87
- package/dist/src/components/Table/OrigamTable.vue +585 -124
- package/dist/src/components/Tabs/OrigamTab.vue +239 -73
- package/dist/src/components/Tabs/OrigamTabPanel.vue +125 -39
- package/dist/src/components/Tabs/OrigamTabPanels.vue +148 -57
- package/dist/src/components/Tabs/OrigamTabs.vue +381 -109
- package/dist/src/components/TextField/OrigamTextField.vue +1077 -258
- package/dist/src/components/TextMask/OrigamTextMask.vue +150 -43
- package/dist/src/components/TextareaField/OrigamTextareaField.vue +1162 -310
- package/dist/src/components/TextareaField/OrigamTextareaFieldRichToolbar.vue +77 -79
- package/dist/src/components/ThemeProvider/OrigamThemeProvider.vue +44 -9
- package/dist/src/components/Timeline/OrigamTimeline.vue +113 -43
- package/dist/src/components/Timeline/OrigamTimelineItem.vue +163 -76
- package/dist/src/components/Title/OrigamTitle.vue +505 -82
- package/dist/src/components/Toolbar/OrigamToolbar.vue +679 -142
- package/dist/src/components/Tooltip/OrigamTooltip.vue +288 -72
- package/dist/src/components/Transition/OrigamExpandX.vue +219 -106
- package/dist/src/components/Transition/OrigamExpandY.vue +219 -106
- package/dist/src/components/Transition/OrigamFade.vue +47 -9
- package/dist/src/components/Transition/OrigamReverseTranslatePicker.vue +52 -10
- package/dist/src/components/Transition/OrigamScaleRotate.vue +52 -10
- package/dist/src/components/Transition/OrigamSlideX.vue +52 -10
- package/dist/src/components/Transition/OrigamSlideY.vue +52 -10
- package/dist/src/components/Transition/OrigamSnack.vue +52 -10
- package/dist/src/components/Transition/OrigamTransition.vue +40 -12
- package/dist/src/components/Transition/OrigamTranslateBottom.vue +52 -10
- package/dist/src/components/Transition/OrigamTranslatePicker.vue +52 -10
- package/dist/src/components/Transition/OrigamTranslateScale.vue +209 -97
- package/dist/src/components/Transition/OrigamWindowXReverseTranslate.vue +40 -7
- package/dist/src/components/Transition/OrigamWindowXTranslate.vue +40 -7
- package/dist/src/components/Transition/OrigamWindowYReverseTranslate.vue +40 -7
- package/dist/src/components/Transition/OrigamWindowYTranslate.vue +40 -7
- package/dist/src/components/Treeview/OrigamTreeview.vue +258 -118
- package/dist/src/components/Treeview/OrigamTreeviewNode.vue +126 -88
- package/dist/src/components/Video/OrigamVideo.vue +1178 -331
- package/dist/src/components/VirtualScroll/OrigamVirtualScroll.vue +147 -55
- package/dist/src/components/VirtualScroll/OrigamVirtualScrollItem.vue +94 -19
- package/dist/src/components/Watermark/OrigamWatermark.vue +224 -124
- package/dist/src/components/Window/OrigamWindow.vue +745 -175
- package/dist/src/components/Window/OrigamWindowItem.vue +162 -69
- package/dist/src/composables/Commons/display.composable.cjs +2 -0
- package/dist/src/composables/Commons/display.composable.js +1 -1
- package/dist/src/interfaces/Pagination/pagination.interface.d.ts +1 -1
- package/package.json +6 -6
|
@@ -30,107 +30,200 @@ import { useStyle } from "../../composables/Commons/style.composable";
|
|
|
30
30
|
import { ORIGAM_WINDOW_GROUP_KEY, ORIGAM_WINDOW_KEY } from "../../consts/Window/window.const";
|
|
31
31
|
import vTouch from "../../directives/Touch/touch.directive";
|
|
32
32
|
import { convertToUnit } from "../../utils/Commons/commons.util";
|
|
33
|
+
/*********************************************************
|
|
34
|
+
* Global
|
|
35
|
+
*
|
|
36
|
+
* @description
|
|
37
|
+
* Props with defaults, emits, filterProps utility, and
|
|
38
|
+
* injection of the parent window context and group item
|
|
39
|
+
* registration.
|
|
40
|
+
********************************************************/
|
|
41
|
+
/*********************************************************
|
|
42
|
+
* inheritAttrs
|
|
43
|
+
*
|
|
44
|
+
* @description
|
|
45
|
+
* The template root is `<origam-transition>`, whose own root is Vue's
|
|
46
|
+
* built-in `<Transition>` — a renderless component that forwards nothing
|
|
47
|
+
* to the element it animates. Every fallthrough attribute therefore
|
|
48
|
+
* landed on `<Transition>` and was dropped: `role`, `aria-*`, `title`,
|
|
49
|
+
* `data-*` could not be set on a window item from the outside at all.
|
|
50
|
+
* That is what made the ARIA APG carousel pattern (`role="group"` +
|
|
51
|
+
* `aria-roledescription="slide"` on each slide) unreachable here and on
|
|
52
|
+
* `<OrigamCarouselItem>`, which composes this component.
|
|
53
|
+
*
|
|
54
|
+
* @description
|
|
55
|
+
* Attrs are re-bound on the real `.origam-window-item` element below.
|
|
56
|
+
* Nothing regresses by moving them: the transition lifecycle hooks this
|
|
57
|
+
* component needs travel through the `transition` PROP object built in
|
|
58
|
+
* the `transition` computed, never through attrs.
|
|
59
|
+
********************************************************/
|
|
33
60
|
defineOptions({ inheritAttrs: false });
|
|
34
61
|
const props = defineProps({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
62
|
+
transition: {
|
|
63
|
+
type: [Boolean, String],
|
|
64
|
+
required: false,
|
|
65
|
+
default: undefined
|
|
66
|
+
},
|
|
67
|
+
reverseTransition: {
|
|
68
|
+
type: [Boolean, String],
|
|
69
|
+
required: false,
|
|
70
|
+
default: undefined
|
|
71
|
+
},
|
|
72
|
+
id: {
|
|
73
|
+
type: String,
|
|
74
|
+
required: false
|
|
75
|
+
},
|
|
76
|
+
class: {
|
|
77
|
+
type: [
|
|
78
|
+
String,
|
|
79
|
+
Array,
|
|
80
|
+
Object
|
|
81
|
+
],
|
|
82
|
+
required: false
|
|
83
|
+
},
|
|
84
|
+
style: {
|
|
85
|
+
type: [
|
|
86
|
+
String,
|
|
87
|
+
Array,
|
|
88
|
+
Object,
|
|
89
|
+
Boolean,
|
|
90
|
+
null
|
|
91
|
+
],
|
|
92
|
+
required: false,
|
|
93
|
+
skipCheck: true
|
|
94
|
+
},
|
|
95
|
+
eager: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
required: false
|
|
98
|
+
},
|
|
99
|
+
value: {
|
|
100
|
+
type: null,
|
|
101
|
+
required: false
|
|
102
|
+
},
|
|
103
|
+
disabled: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
required: false
|
|
106
|
+
},
|
|
107
|
+
selectedClass: {
|
|
108
|
+
type: String,
|
|
109
|
+
required: false
|
|
110
|
+
}
|
|
44
111
|
});
|
|
45
112
|
defineEmits(["group:selected"]);
|
|
46
113
|
defineSlots();
|
|
47
114
|
const { filterProps } = useProps(props);
|
|
48
115
|
const window = inject(ORIGAM_WINDOW_KEY);
|
|
49
116
|
const groupItem = useGroupItem(props, ORIGAM_WINDOW_GROUP_KEY);
|
|
117
|
+
/*********************************************************
|
|
118
|
+
* Composables
|
|
119
|
+
********************************************************/
|
|
50
120
|
const { isBooted } = useSsrBoot();
|
|
51
121
|
if (!window || !groupItem) throw new Error("[Origam] window-item must be used inside window");
|
|
122
|
+
/*********************************************************
|
|
123
|
+
* Transition state
|
|
124
|
+
*
|
|
125
|
+
* @description
|
|
126
|
+
* Computes the transition descriptor passed to
|
|
127
|
+
* OrigamTransition, coordinating height animation with
|
|
128
|
+
* the parent window via transitionCount and
|
|
129
|
+
* transitionHeight. isShown and hasContent gate rendering
|
|
130
|
+
* via v-show and useLazy respectively.
|
|
131
|
+
********************************************************/
|
|
52
132
|
const isTransitioning = shallowRef(false);
|
|
53
133
|
const hasTransition = computed(() => {
|
|
54
|
-
|
|
134
|
+
return isBooted.value && (window.isReversed.value ? props.reverseTransition !== false : props.transition !== false);
|
|
55
135
|
});
|
|
136
|
+
/*********************************************************
|
|
137
|
+
* Event handlers
|
|
138
|
+
********************************************************/
|
|
56
139
|
const handleAfterTransition = () => {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
140
|
+
if (!isTransitioning.value || !window) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
isTransitioning.value = false;
|
|
144
|
+
if (window.transitionCount.value > 0) {
|
|
145
|
+
window.transitionCount.value -= 1;
|
|
146
|
+
if (window.transitionCount.value === 0) {
|
|
147
|
+
window.transitionHeight.value = undefined;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
67
150
|
};
|
|
68
151
|
const handleBeforeTransition = () => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
152
|
+
if (isTransitioning.value || !window) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
isTransitioning.value = true;
|
|
156
|
+
if (window.transitionCount.value === 0) {
|
|
157
|
+
window.transitionHeight.value = convertToUnit(window.rootRef.value?.clientHeight);
|
|
158
|
+
}
|
|
159
|
+
window.transitionCount.value += 1;
|
|
77
160
|
};
|
|
78
161
|
const handleTransitionCancelled = () => {
|
|
79
|
-
|
|
162
|
+
handleAfterTransition();
|
|
80
163
|
};
|
|
81
164
|
const handleEnterTransition = (el) => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
165
|
+
if (!isTransitioning.value) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
nextTick(() => {
|
|
169
|
+
if (!hasTransition.value || !isTransitioning.value || !window) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
window.transitionHeight.value = convertToUnit(el.clientHeight);
|
|
173
|
+
});
|
|
91
174
|
};
|
|
92
175
|
const transition = computed(() => {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
return trans;
|
|
176
|
+
const name = window.isReversed.value ? props.reverseTransition : props.transition;
|
|
177
|
+
const trans = !hasTransition.value ? false : { name: typeof name !== "string" ? window.transition.value : name };
|
|
178
|
+
if (hasTransition.value) {
|
|
179
|
+
if (!isBooted.value && typeof trans !== "boolean") {
|
|
180
|
+
trans.onBeforeEnter = handleBeforeTransition;
|
|
181
|
+
trans.onAfterEnter = handleAfterTransition;
|
|
182
|
+
trans.onEnterCancelled = handleTransitionCancelled;
|
|
183
|
+
trans.onBeforeLeave = handleBeforeTransition;
|
|
184
|
+
trans.onAfterLeave = handleAfterTransition;
|
|
185
|
+
trans.onLeaveCancelled = handleTransitionCancelled;
|
|
186
|
+
trans.onEnter = handleEnterTransition;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return trans;
|
|
109
190
|
});
|
|
110
191
|
const isShown = computed(() => {
|
|
111
|
-
|
|
192
|
+
return groupItem.isSelected.value;
|
|
112
193
|
});
|
|
113
194
|
const { hasContent } = useLazy(props, groupItem.isSelected);
|
|
195
|
+
/*********************************************************
|
|
196
|
+
* Class & Style
|
|
197
|
+
*
|
|
198
|
+
* @description
|
|
199
|
+
* Root element classes and styles for the window item
|
|
200
|
+
* wrapper, including the active selected class from the
|
|
201
|
+
* group item registry.
|
|
202
|
+
********************************************************/
|
|
114
203
|
const windowItemStyles = computed(() => {
|
|
115
|
-
|
|
116
|
-
props.style
|
|
117
|
-
];
|
|
204
|
+
return [props.style];
|
|
118
205
|
});
|
|
119
206
|
const windowItemClasses = computed(() => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
207
|
+
return [
|
|
208
|
+
"origam-window-item",
|
|
209
|
+
groupItem.selectedClass.value,
|
|
210
|
+
props.class
|
|
211
|
+
];
|
|
125
212
|
});
|
|
126
213
|
const { id, css, load, isLoaded, unload } = useStyle(windowItemStyles, () => props.id);
|
|
214
|
+
/*********************************************************
|
|
215
|
+
* Expose
|
|
216
|
+
*
|
|
217
|
+
* @description
|
|
218
|
+
* Public API surface exposed to parent refs.
|
|
219
|
+
********************************************************/
|
|
127
220
|
defineExpose({
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
221
|
+
filterProps,
|
|
222
|
+
css,
|
|
223
|
+
id,
|
|
224
|
+
load,
|
|
225
|
+
unload,
|
|
226
|
+
isLoaded
|
|
134
227
|
});
|
|
135
228
|
</script>
|
|
136
229
|
|
|
@@ -78,6 +78,8 @@ function createDisplay(options, ssr) {
|
|
|
78
78
|
state.mobileBreakpoint = mobileBreakpoint;
|
|
79
79
|
state.platform = platform.value;
|
|
80
80
|
state.thresholds = thresholds;
|
|
81
|
+
}, {
|
|
82
|
+
flush: "sync"
|
|
81
83
|
});
|
|
82
84
|
if (_commons.IN_BROWSER) {
|
|
83
85
|
window.addEventListener("resize", updateSize, {
|
|
@@ -62,7 +62,7 @@ export function createDisplay(options, ssr) {
|
|
|
62
62
|
state.mobileBreakpoint = mobileBreakpoint;
|
|
63
63
|
state.platform = platform.value;
|
|
64
64
|
state.thresholds = thresholds;
|
|
65
|
-
});
|
|
65
|
+
}, { flush: "sync" });
|
|
66
66
|
if (IN_BROWSER) {
|
|
67
67
|
window.addEventListener("resize", updateSize, { passive: true });
|
|
68
68
|
}
|
|
@@ -65,7 +65,7 @@ export interface IPaginationProps extends ICommonsComponentProps, ITagProps, ICo
|
|
|
65
65
|
/**
|
|
66
66
|
* Label rendered next to the prev chevron in `withInfo` mode.
|
|
67
67
|
* Default falls back to the `origam.pagination.previous` i18n key
|
|
68
|
-
* (`"
|
|
68
|
+
* (`"Previous"` in English). Useful for setting a translated label
|
|
69
69
|
* inline without touching the locale catalogue.
|
|
70
70
|
*/
|
|
71
71
|
previousText?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "origam",
|
|
3
|
-
"version": "2.38.
|
|
3
|
+
"version": "2.38.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "origam — a Vue 3 design system with multi-theme design tokens, CSS-first components and TypeScript types.",
|
|
6
6
|
"keywords": [
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"@nuxt/kit": "^4.6.4",
|
|
158
158
|
"@nuxt/schema": "^4.6.4",
|
|
159
159
|
"@types/node": "^26.1.0",
|
|
160
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
160
|
+
"@vitejs/plugin-vue": "^6.0.11",
|
|
161
161
|
"sass": "^1.102.0",
|
|
162
162
|
"ts-transformer-keys": "^0.4.4",
|
|
163
163
|
"typescript": "^6.0.3",
|
|
@@ -165,9 +165,9 @@
|
|
|
165
165
|
"unplugin-vue-components": "^32.1.0",
|
|
166
166
|
"vite": "^8.2.1",
|
|
167
167
|
"vite-tsconfig-paths": "^6.1.1",
|
|
168
|
-
"vue": "3.5.
|
|
169
|
-
"vue-router": "^
|
|
170
|
-
"vue-sfc-transformer": "^0.
|
|
171
|
-
"vue-tsc": "^3.3.
|
|
168
|
+
"vue": "3.5.45",
|
|
169
|
+
"vue-router": "^5.5.1",
|
|
170
|
+
"vue-sfc-transformer": "^0.3.3",
|
|
171
|
+
"vue-tsc": "^3.3.14"
|
|
172
172
|
}
|
|
173
173
|
}
|