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
|
@@ -98,312 +98,1136 @@ import { SCROLL_STRATEGIES } from "../../enums/Commons/scroll.enum";
|
|
|
98
98
|
import { focusableChildren, focusChild, getNextElement, getPropertyFromItem, omit } from "../../utils/Commons/commons.util";
|
|
99
99
|
import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
100
100
|
import { getUid } from "../../utils/Commons/getCurrentInstance.util";
|
|
101
|
+
/*********************************************************
|
|
102
|
+
* Global
|
|
103
|
+
*
|
|
104
|
+
* @description
|
|
105
|
+
* Props, emits, filterProps and core refs for the Menu component.
|
|
106
|
+
********************************************************/
|
|
101
107
|
const props = defineProps({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
108
|
+
id: {
|
|
109
|
+
type: String,
|
|
110
|
+
required: false
|
|
111
|
+
},
|
|
112
|
+
absolute: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: false
|
|
115
|
+
},
|
|
116
|
+
closeOnBack: {
|
|
117
|
+
type: Boolean,
|
|
118
|
+
required: false
|
|
119
|
+
},
|
|
120
|
+
contentClass: {
|
|
121
|
+
type: [String, Array],
|
|
122
|
+
required: false
|
|
123
|
+
},
|
|
124
|
+
contentProps: {
|
|
125
|
+
type: null,
|
|
126
|
+
required: false
|
|
127
|
+
},
|
|
128
|
+
disabled: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
required: false
|
|
131
|
+
},
|
|
132
|
+
noClickAnimation: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
required: false
|
|
135
|
+
},
|
|
136
|
+
modelValue: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
required: false
|
|
139
|
+
},
|
|
140
|
+
zIndex: {
|
|
141
|
+
type: [Number, String],
|
|
142
|
+
required: false
|
|
143
|
+
},
|
|
144
|
+
disableGlobalStack: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
required: false
|
|
147
|
+
},
|
|
148
|
+
persistent: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
required: false
|
|
151
|
+
},
|
|
152
|
+
class: {
|
|
153
|
+
type: [
|
|
154
|
+
String,
|
|
155
|
+
Array,
|
|
156
|
+
Object
|
|
157
|
+
],
|
|
158
|
+
required: false
|
|
159
|
+
},
|
|
160
|
+
style: {
|
|
161
|
+
type: [
|
|
162
|
+
String,
|
|
163
|
+
Array,
|
|
164
|
+
Object,
|
|
165
|
+
Boolean,
|
|
166
|
+
null
|
|
167
|
+
],
|
|
168
|
+
required: false,
|
|
169
|
+
skipCheck: true
|
|
170
|
+
},
|
|
171
|
+
height: {
|
|
172
|
+
type: [Number, String],
|
|
173
|
+
required: false
|
|
174
|
+
},
|
|
175
|
+
maxHeight: {
|
|
176
|
+
type: [Number, String],
|
|
177
|
+
required: false
|
|
178
|
+
},
|
|
179
|
+
maxWidth: {
|
|
180
|
+
type: [Number, String],
|
|
181
|
+
required: false
|
|
182
|
+
},
|
|
183
|
+
minHeight: {
|
|
184
|
+
type: [Number, String],
|
|
185
|
+
required: false
|
|
186
|
+
},
|
|
187
|
+
minWidth: {
|
|
188
|
+
type: [Number, String],
|
|
189
|
+
required: false
|
|
190
|
+
},
|
|
191
|
+
width: {
|
|
192
|
+
type: [Number, String],
|
|
193
|
+
required: false
|
|
194
|
+
},
|
|
195
|
+
target: {
|
|
196
|
+
type: null,
|
|
197
|
+
required: false
|
|
198
|
+
},
|
|
199
|
+
activator: {
|
|
200
|
+
type: null,
|
|
201
|
+
required: false
|
|
202
|
+
},
|
|
203
|
+
activatorProps: {
|
|
204
|
+
type: null,
|
|
205
|
+
required: false
|
|
206
|
+
},
|
|
207
|
+
openOnClick: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: true
|
|
211
|
+
},
|
|
212
|
+
openOnContextMenu: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
openOnHover: {
|
|
217
|
+
type: Boolean,
|
|
218
|
+
required: false
|
|
219
|
+
},
|
|
220
|
+
openOnFocus: {
|
|
221
|
+
type: Boolean,
|
|
222
|
+
required: false
|
|
223
|
+
},
|
|
224
|
+
closeOnContentClick: {
|
|
225
|
+
type: Boolean,
|
|
226
|
+
required: false,
|
|
227
|
+
default: true
|
|
228
|
+
},
|
|
229
|
+
closeDelay: {
|
|
230
|
+
type: [Number, String],
|
|
231
|
+
required: false,
|
|
232
|
+
default: 250
|
|
233
|
+
},
|
|
234
|
+
openDelay: {
|
|
235
|
+
type: [Number, String],
|
|
236
|
+
required: false,
|
|
237
|
+
default: 300
|
|
238
|
+
},
|
|
239
|
+
locationStrategy: {
|
|
240
|
+
type: Function,
|
|
241
|
+
required: false,
|
|
242
|
+
skipCheck: true,
|
|
243
|
+
default: LOCATION_STRATEGIES.CONNECTED
|
|
244
|
+
},
|
|
245
|
+
location: {
|
|
246
|
+
type: null,
|
|
247
|
+
required: false,
|
|
248
|
+
default: INLINE.RIGHT
|
|
249
|
+
},
|
|
250
|
+
origin: {
|
|
251
|
+
type: null,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
offset: {
|
|
255
|
+
type: [
|
|
256
|
+
Number,
|
|
257
|
+
String,
|
|
258
|
+
Array
|
|
259
|
+
],
|
|
260
|
+
required: false,
|
|
261
|
+
default: 8
|
|
262
|
+
},
|
|
263
|
+
viewportMargin: {
|
|
264
|
+
type: Number,
|
|
265
|
+
required: false
|
|
266
|
+
},
|
|
267
|
+
scrollStrategy: {
|
|
268
|
+
type: Function,
|
|
269
|
+
required: false,
|
|
270
|
+
skipCheck: true,
|
|
271
|
+
default: SCROLL_STRATEGIES.REPOSITION
|
|
272
|
+
},
|
|
273
|
+
contained: {
|
|
274
|
+
type: Boolean,
|
|
275
|
+
required: false
|
|
276
|
+
},
|
|
277
|
+
eager: {
|
|
278
|
+
type: Boolean,
|
|
279
|
+
required: false
|
|
280
|
+
},
|
|
281
|
+
transition: {
|
|
282
|
+
type: [
|
|
283
|
+
Boolean,
|
|
284
|
+
String,
|
|
285
|
+
Object
|
|
286
|
+
],
|
|
287
|
+
required: false,
|
|
288
|
+
default: () => ({ component: OrigamTranslateScale })
|
|
289
|
+
},
|
|
290
|
+
scrim: {
|
|
291
|
+
type: [Boolean, String],
|
|
292
|
+
required: false,
|
|
293
|
+
default: false
|
|
294
|
+
},
|
|
295
|
+
attach: {
|
|
296
|
+
type: [
|
|
297
|
+
Boolean,
|
|
298
|
+
String,
|
|
299
|
+
null
|
|
300
|
+
],
|
|
301
|
+
required: false,
|
|
302
|
+
skipCheck: true
|
|
303
|
+
},
|
|
304
|
+
activeClass: {
|
|
305
|
+
type: String,
|
|
306
|
+
required: false
|
|
307
|
+
},
|
|
308
|
+
expandIcon: {
|
|
309
|
+
type: String,
|
|
310
|
+
required: false
|
|
311
|
+
},
|
|
312
|
+
collapseIcon: {
|
|
313
|
+
type: String,
|
|
314
|
+
required: false
|
|
315
|
+
},
|
|
316
|
+
lines: {
|
|
317
|
+
type: null,
|
|
318
|
+
required: false
|
|
319
|
+
},
|
|
320
|
+
slim: {
|
|
321
|
+
type: Boolean,
|
|
322
|
+
required: false
|
|
323
|
+
},
|
|
324
|
+
nav: {
|
|
325
|
+
type: Boolean,
|
|
326
|
+
required: false
|
|
327
|
+
},
|
|
328
|
+
itemType: {
|
|
329
|
+
type: String,
|
|
330
|
+
required: false
|
|
331
|
+
},
|
|
332
|
+
tag: {
|
|
333
|
+
type: String,
|
|
334
|
+
required: false
|
|
335
|
+
},
|
|
336
|
+
elevation: {
|
|
337
|
+
type: [Number, String],
|
|
338
|
+
required: false
|
|
339
|
+
},
|
|
340
|
+
border: {
|
|
341
|
+
type: [
|
|
342
|
+
Boolean,
|
|
343
|
+
Number,
|
|
344
|
+
String,
|
|
345
|
+
Array
|
|
346
|
+
],
|
|
347
|
+
required: false,
|
|
348
|
+
skipCheck: true
|
|
349
|
+
},
|
|
350
|
+
borderTop: {
|
|
351
|
+
type: [
|
|
352
|
+
Boolean,
|
|
353
|
+
Number,
|
|
354
|
+
String
|
|
355
|
+
],
|
|
356
|
+
required: false
|
|
357
|
+
},
|
|
358
|
+
borderLeft: {
|
|
359
|
+
type: [
|
|
360
|
+
Boolean,
|
|
361
|
+
Number,
|
|
362
|
+
String
|
|
363
|
+
],
|
|
364
|
+
required: false
|
|
365
|
+
},
|
|
366
|
+
borderBottom: {
|
|
367
|
+
type: [
|
|
368
|
+
Boolean,
|
|
369
|
+
Number,
|
|
370
|
+
String
|
|
371
|
+
],
|
|
372
|
+
required: false
|
|
373
|
+
},
|
|
374
|
+
borderRight: {
|
|
375
|
+
type: [
|
|
376
|
+
Boolean,
|
|
377
|
+
Number,
|
|
378
|
+
String
|
|
379
|
+
],
|
|
380
|
+
required: false
|
|
381
|
+
},
|
|
382
|
+
borderBlock: {
|
|
383
|
+
type: [
|
|
384
|
+
Boolean,
|
|
385
|
+
Number,
|
|
386
|
+
String
|
|
387
|
+
],
|
|
388
|
+
required: false
|
|
389
|
+
},
|
|
390
|
+
borderInline: {
|
|
391
|
+
type: [
|
|
392
|
+
Boolean,
|
|
393
|
+
Number,
|
|
394
|
+
String
|
|
395
|
+
],
|
|
396
|
+
required: false
|
|
397
|
+
},
|
|
398
|
+
borderInlineStart: {
|
|
399
|
+
type: [
|
|
400
|
+
Boolean,
|
|
401
|
+
Number,
|
|
402
|
+
String
|
|
403
|
+
],
|
|
404
|
+
required: false
|
|
405
|
+
},
|
|
406
|
+
borderInlineEnd: {
|
|
407
|
+
type: [
|
|
408
|
+
Boolean,
|
|
409
|
+
Number,
|
|
410
|
+
String
|
|
411
|
+
],
|
|
412
|
+
required: false
|
|
413
|
+
},
|
|
414
|
+
borderBlockStart: {
|
|
415
|
+
type: [
|
|
416
|
+
Boolean,
|
|
417
|
+
Number,
|
|
418
|
+
String
|
|
419
|
+
],
|
|
420
|
+
required: false
|
|
421
|
+
},
|
|
422
|
+
borderBlockEnd: {
|
|
423
|
+
type: [
|
|
424
|
+
Boolean,
|
|
425
|
+
Number,
|
|
426
|
+
String
|
|
427
|
+
],
|
|
428
|
+
required: false
|
|
429
|
+
},
|
|
430
|
+
borderColor: {
|
|
431
|
+
type: String,
|
|
432
|
+
required: false
|
|
433
|
+
},
|
|
434
|
+
borderStyle: {
|
|
435
|
+
type: String,
|
|
436
|
+
required: false
|
|
437
|
+
},
|
|
438
|
+
borderTopColor: {
|
|
439
|
+
type: [
|
|
440
|
+
String,
|
|
441
|
+
Object,
|
|
442
|
+
Boolean,
|
|
443
|
+
null
|
|
444
|
+
],
|
|
445
|
+
required: false,
|
|
446
|
+
skipCheck: true
|
|
447
|
+
},
|
|
448
|
+
borderRightColor: {
|
|
449
|
+
type: [
|
|
450
|
+
String,
|
|
451
|
+
Object,
|
|
452
|
+
Boolean,
|
|
453
|
+
null
|
|
454
|
+
],
|
|
455
|
+
required: false,
|
|
456
|
+
skipCheck: true
|
|
457
|
+
},
|
|
458
|
+
borderBottomColor: {
|
|
459
|
+
type: [
|
|
460
|
+
String,
|
|
461
|
+
Object,
|
|
462
|
+
Boolean,
|
|
463
|
+
null
|
|
464
|
+
],
|
|
465
|
+
required: false,
|
|
466
|
+
skipCheck: true
|
|
467
|
+
},
|
|
468
|
+
borderLeftColor: {
|
|
469
|
+
type: [
|
|
470
|
+
String,
|
|
471
|
+
Object,
|
|
472
|
+
Boolean,
|
|
473
|
+
null
|
|
474
|
+
],
|
|
475
|
+
required: false,
|
|
476
|
+
skipCheck: true
|
|
477
|
+
},
|
|
478
|
+
borderInlineStartColor: {
|
|
479
|
+
type: [
|
|
480
|
+
String,
|
|
481
|
+
Object,
|
|
482
|
+
Boolean,
|
|
483
|
+
null
|
|
484
|
+
],
|
|
485
|
+
required: false,
|
|
486
|
+
skipCheck: true
|
|
487
|
+
},
|
|
488
|
+
borderInlineEndColor: {
|
|
489
|
+
type: [
|
|
490
|
+
String,
|
|
491
|
+
Object,
|
|
492
|
+
Boolean,
|
|
493
|
+
null
|
|
494
|
+
],
|
|
495
|
+
required: false,
|
|
496
|
+
skipCheck: true
|
|
497
|
+
},
|
|
498
|
+
borderBlockStartColor: {
|
|
499
|
+
type: [
|
|
500
|
+
String,
|
|
501
|
+
Object,
|
|
502
|
+
Boolean,
|
|
503
|
+
null
|
|
504
|
+
],
|
|
505
|
+
required: false,
|
|
506
|
+
skipCheck: true
|
|
507
|
+
},
|
|
508
|
+
borderBlockEndColor: {
|
|
509
|
+
type: [
|
|
510
|
+
String,
|
|
511
|
+
Object,
|
|
512
|
+
Boolean,
|
|
513
|
+
null
|
|
514
|
+
],
|
|
515
|
+
required: false,
|
|
516
|
+
skipCheck: true
|
|
517
|
+
},
|
|
518
|
+
density: {
|
|
519
|
+
type: null,
|
|
520
|
+
required: false
|
|
521
|
+
},
|
|
522
|
+
size: {
|
|
523
|
+
type: null,
|
|
524
|
+
required: false
|
|
525
|
+
},
|
|
526
|
+
rounded: {
|
|
527
|
+
type: [
|
|
528
|
+
Boolean,
|
|
529
|
+
Number,
|
|
530
|
+
String,
|
|
531
|
+
null
|
|
532
|
+
],
|
|
533
|
+
required: false,
|
|
534
|
+
skipCheck: true
|
|
535
|
+
},
|
|
536
|
+
roundedTopRight: {
|
|
537
|
+
type: [
|
|
538
|
+
Boolean,
|
|
539
|
+
Number,
|
|
540
|
+
String
|
|
541
|
+
],
|
|
542
|
+
required: false
|
|
543
|
+
},
|
|
544
|
+
roundedTopLeft: {
|
|
545
|
+
type: [
|
|
546
|
+
Boolean,
|
|
547
|
+
Number,
|
|
548
|
+
String
|
|
549
|
+
],
|
|
550
|
+
required: false
|
|
551
|
+
},
|
|
552
|
+
roundedBottomLeft: {
|
|
553
|
+
type: [
|
|
554
|
+
Boolean,
|
|
555
|
+
Number,
|
|
556
|
+
String
|
|
557
|
+
],
|
|
558
|
+
required: false
|
|
559
|
+
},
|
|
560
|
+
roundedBottomRight: {
|
|
561
|
+
type: [
|
|
562
|
+
Boolean,
|
|
563
|
+
Number,
|
|
564
|
+
String
|
|
565
|
+
],
|
|
566
|
+
required: false
|
|
567
|
+
},
|
|
568
|
+
roundedStartStart: {
|
|
569
|
+
type: [
|
|
570
|
+
Boolean,
|
|
571
|
+
Number,
|
|
572
|
+
String
|
|
573
|
+
],
|
|
574
|
+
required: false
|
|
575
|
+
},
|
|
576
|
+
roundedStartEnd: {
|
|
577
|
+
type: [
|
|
578
|
+
Boolean,
|
|
579
|
+
Number,
|
|
580
|
+
String
|
|
581
|
+
],
|
|
582
|
+
required: false
|
|
583
|
+
},
|
|
584
|
+
roundedEndStart: {
|
|
585
|
+
type: [
|
|
586
|
+
Boolean,
|
|
587
|
+
Number,
|
|
588
|
+
String
|
|
589
|
+
],
|
|
590
|
+
required: false
|
|
591
|
+
},
|
|
592
|
+
roundedEndEnd: {
|
|
593
|
+
type: [
|
|
594
|
+
Boolean,
|
|
595
|
+
Number,
|
|
596
|
+
String
|
|
597
|
+
],
|
|
598
|
+
required: false
|
|
599
|
+
},
|
|
600
|
+
selectStrategy: {
|
|
601
|
+
type: Function,
|
|
602
|
+
required: false,
|
|
603
|
+
skipCheck: true
|
|
604
|
+
},
|
|
605
|
+
openStrategy: {
|
|
606
|
+
type: null,
|
|
607
|
+
required: false
|
|
608
|
+
},
|
|
609
|
+
selected: {
|
|
610
|
+
type: Array,
|
|
611
|
+
required: false
|
|
612
|
+
},
|
|
613
|
+
opened: {
|
|
614
|
+
type: Array,
|
|
615
|
+
required: false
|
|
616
|
+
},
|
|
617
|
+
mandatory: {
|
|
618
|
+
type: Boolean,
|
|
619
|
+
required: false
|
|
620
|
+
},
|
|
621
|
+
items: {
|
|
622
|
+
type: Array,
|
|
623
|
+
required: false
|
|
624
|
+
},
|
|
625
|
+
itemTitle: {
|
|
626
|
+
type: null,
|
|
627
|
+
required: false
|
|
628
|
+
},
|
|
629
|
+
itemValue: {
|
|
630
|
+
type: null,
|
|
631
|
+
required: false
|
|
632
|
+
},
|
|
633
|
+
itemChildren: {
|
|
634
|
+
type: null,
|
|
635
|
+
required: false,
|
|
636
|
+
default: "children"
|
|
637
|
+
},
|
|
638
|
+
itemProps: {
|
|
639
|
+
type: null,
|
|
640
|
+
required: false
|
|
641
|
+
},
|
|
642
|
+
returnObject: {
|
|
643
|
+
type: Boolean,
|
|
644
|
+
required: false
|
|
645
|
+
},
|
|
646
|
+
valueComparator: {
|
|
647
|
+
type: null,
|
|
648
|
+
required: false
|
|
649
|
+
},
|
|
650
|
+
color: {
|
|
651
|
+
type: [
|
|
652
|
+
String,
|
|
653
|
+
Object,
|
|
654
|
+
Boolean,
|
|
655
|
+
null
|
|
656
|
+
],
|
|
657
|
+
required: false,
|
|
658
|
+
skipCheck: true
|
|
659
|
+
},
|
|
660
|
+
bgColor: {
|
|
661
|
+
type: [
|
|
662
|
+
String,
|
|
663
|
+
Object,
|
|
664
|
+
Boolean,
|
|
665
|
+
null
|
|
666
|
+
],
|
|
667
|
+
required: false,
|
|
668
|
+
skipCheck: true
|
|
669
|
+
},
|
|
670
|
+
padding: {
|
|
671
|
+
type: [
|
|
672
|
+
Boolean,
|
|
673
|
+
Number,
|
|
674
|
+
String
|
|
675
|
+
],
|
|
676
|
+
required: false
|
|
677
|
+
},
|
|
678
|
+
paddingTop: {
|
|
679
|
+
type: [
|
|
680
|
+
Boolean,
|
|
681
|
+
Number,
|
|
682
|
+
String
|
|
683
|
+
],
|
|
684
|
+
required: false
|
|
685
|
+
},
|
|
686
|
+
paddingLeft: {
|
|
687
|
+
type: [
|
|
688
|
+
Boolean,
|
|
689
|
+
Number,
|
|
690
|
+
String
|
|
691
|
+
],
|
|
692
|
+
required: false
|
|
693
|
+
},
|
|
694
|
+
paddingBottom: {
|
|
695
|
+
type: [
|
|
696
|
+
Boolean,
|
|
697
|
+
Number,
|
|
698
|
+
String
|
|
699
|
+
],
|
|
700
|
+
required: false
|
|
701
|
+
},
|
|
702
|
+
paddingRight: {
|
|
703
|
+
type: [
|
|
704
|
+
Boolean,
|
|
705
|
+
Number,
|
|
706
|
+
String
|
|
707
|
+
],
|
|
708
|
+
required: false
|
|
709
|
+
},
|
|
710
|
+
paddingBlock: {
|
|
711
|
+
type: [
|
|
712
|
+
Boolean,
|
|
713
|
+
Number,
|
|
714
|
+
String
|
|
715
|
+
],
|
|
716
|
+
required: false
|
|
717
|
+
},
|
|
718
|
+
paddingInline: {
|
|
719
|
+
type: [
|
|
720
|
+
Boolean,
|
|
721
|
+
Number,
|
|
722
|
+
String
|
|
723
|
+
],
|
|
724
|
+
required: false
|
|
725
|
+
},
|
|
726
|
+
paddingInlineStart: {
|
|
727
|
+
type: [
|
|
728
|
+
Boolean,
|
|
729
|
+
Number,
|
|
730
|
+
String
|
|
731
|
+
],
|
|
732
|
+
required: false
|
|
733
|
+
},
|
|
734
|
+
paddingInlineEnd: {
|
|
735
|
+
type: [
|
|
736
|
+
Boolean,
|
|
737
|
+
Number,
|
|
738
|
+
String
|
|
739
|
+
],
|
|
740
|
+
required: false
|
|
741
|
+
},
|
|
742
|
+
paddingBlockStart: {
|
|
743
|
+
type: [
|
|
744
|
+
Boolean,
|
|
745
|
+
Number,
|
|
746
|
+
String
|
|
747
|
+
],
|
|
748
|
+
required: false
|
|
749
|
+
},
|
|
750
|
+
paddingBlockEnd: {
|
|
751
|
+
type: [
|
|
752
|
+
Boolean,
|
|
753
|
+
Number,
|
|
754
|
+
String
|
|
755
|
+
],
|
|
756
|
+
required: false
|
|
757
|
+
},
|
|
758
|
+
margin: {
|
|
759
|
+
type: [
|
|
760
|
+
Boolean,
|
|
761
|
+
Number,
|
|
762
|
+
String
|
|
763
|
+
],
|
|
764
|
+
required: false
|
|
765
|
+
},
|
|
766
|
+
marginTop: {
|
|
767
|
+
type: [
|
|
768
|
+
Boolean,
|
|
769
|
+
Number,
|
|
770
|
+
String
|
|
771
|
+
],
|
|
772
|
+
required: false
|
|
773
|
+
},
|
|
774
|
+
marginLeft: {
|
|
775
|
+
type: [
|
|
776
|
+
Boolean,
|
|
777
|
+
Number,
|
|
778
|
+
String
|
|
779
|
+
],
|
|
780
|
+
required: false
|
|
781
|
+
},
|
|
782
|
+
marginBottom: {
|
|
783
|
+
type: [
|
|
784
|
+
Boolean,
|
|
785
|
+
Number,
|
|
786
|
+
String
|
|
787
|
+
],
|
|
788
|
+
required: false
|
|
789
|
+
},
|
|
790
|
+
marginRight: {
|
|
791
|
+
type: [
|
|
792
|
+
Boolean,
|
|
793
|
+
Number,
|
|
794
|
+
String
|
|
795
|
+
],
|
|
796
|
+
required: false
|
|
797
|
+
},
|
|
798
|
+
marginBlock: {
|
|
799
|
+
type: [
|
|
800
|
+
Boolean,
|
|
801
|
+
Number,
|
|
802
|
+
String
|
|
803
|
+
],
|
|
804
|
+
required: false
|
|
805
|
+
},
|
|
806
|
+
marginInline: {
|
|
807
|
+
type: [
|
|
808
|
+
Boolean,
|
|
809
|
+
Number,
|
|
810
|
+
String
|
|
811
|
+
],
|
|
812
|
+
required: false
|
|
813
|
+
},
|
|
814
|
+
marginInlineStart: {
|
|
815
|
+
type: [
|
|
816
|
+
Boolean,
|
|
817
|
+
Number,
|
|
818
|
+
String
|
|
819
|
+
],
|
|
820
|
+
required: false
|
|
821
|
+
},
|
|
822
|
+
marginInlineEnd: {
|
|
823
|
+
type: [
|
|
824
|
+
Boolean,
|
|
825
|
+
Number,
|
|
826
|
+
String
|
|
827
|
+
],
|
|
828
|
+
required: false
|
|
829
|
+
},
|
|
830
|
+
marginBlockStart: {
|
|
831
|
+
type: [
|
|
832
|
+
Boolean,
|
|
833
|
+
Number,
|
|
834
|
+
String
|
|
835
|
+
],
|
|
836
|
+
required: false
|
|
837
|
+
},
|
|
838
|
+
marginBlockEnd: {
|
|
839
|
+
type: [
|
|
840
|
+
Boolean,
|
|
841
|
+
Number,
|
|
842
|
+
String
|
|
843
|
+
],
|
|
844
|
+
required: false
|
|
845
|
+
},
|
|
846
|
+
active: {
|
|
847
|
+
type: Boolean,
|
|
848
|
+
required: false
|
|
849
|
+
},
|
|
850
|
+
link: {
|
|
851
|
+
type: Boolean,
|
|
852
|
+
required: false
|
|
853
|
+
},
|
|
854
|
+
subtitle: {
|
|
855
|
+
type: [String, Number],
|
|
856
|
+
required: false
|
|
857
|
+
},
|
|
858
|
+
title: {
|
|
859
|
+
type: [String, Number],
|
|
860
|
+
required: false
|
|
861
|
+
},
|
|
862
|
+
value: {
|
|
863
|
+
type: null,
|
|
864
|
+
required: false
|
|
865
|
+
},
|
|
866
|
+
href: {
|
|
867
|
+
type: String,
|
|
868
|
+
required: false
|
|
869
|
+
},
|
|
870
|
+
replace: {
|
|
871
|
+
type: Boolean,
|
|
872
|
+
required: false
|
|
873
|
+
},
|
|
874
|
+
to: {
|
|
875
|
+
type: null,
|
|
876
|
+
required: false
|
|
877
|
+
},
|
|
878
|
+
exact: {
|
|
879
|
+
type: Boolean,
|
|
880
|
+
required: false
|
|
881
|
+
},
|
|
882
|
+
ripple: {
|
|
883
|
+
type: [Boolean, Object],
|
|
884
|
+
required: false
|
|
885
|
+
},
|
|
886
|
+
hover: {
|
|
887
|
+
type: [Boolean, Object],
|
|
888
|
+
required: false
|
|
889
|
+
},
|
|
890
|
+
hoverClass: {
|
|
891
|
+
type: String,
|
|
892
|
+
required: false
|
|
893
|
+
},
|
|
894
|
+
fontSize: {
|
|
895
|
+
type: null,
|
|
896
|
+
required: false
|
|
897
|
+
},
|
|
898
|
+
fontWeight: {
|
|
899
|
+
type: null,
|
|
900
|
+
required: false
|
|
901
|
+
},
|
|
902
|
+
lineHeight: {
|
|
903
|
+
type: null,
|
|
904
|
+
required: false
|
|
905
|
+
},
|
|
906
|
+
letterSpacing: {
|
|
907
|
+
type: null,
|
|
908
|
+
required: false
|
|
909
|
+
}
|
|
235
910
|
});
|
|
236
|
-
const emit = defineEmits([
|
|
911
|
+
const emit = defineEmits([
|
|
912
|
+
"contextmenu",
|
|
913
|
+
"select",
|
|
914
|
+
"update:modelValue"
|
|
915
|
+
]);
|
|
237
916
|
defineSlots();
|
|
238
917
|
const { filterProps } = useProps(props);
|
|
918
|
+
/*********************************************************
|
|
919
|
+
* Value & color
|
|
920
|
+
*
|
|
921
|
+
* @description
|
|
922
|
+
* isActive drives the overlay open/close state via v-model.
|
|
923
|
+
* colorStyles produces inline color/background-color from intent
|
|
924
|
+
* props so `<origam-menu color="primary">` actually takes effect.
|
|
925
|
+
* `useBothColor` wires those declarations onto `.origam-menu__content`
|
|
926
|
+
* so the inline-style specificity wins over class-level CSS.
|
|
927
|
+
********************************************************/
|
|
928
|
+
// `useBothColor` produces inline `color: …` and `background-color: …`
|
|
929
|
+
// declarations from intent props (`color`, `bgColor`). Pre-fix the
|
|
930
|
+
// SCSS read `var(--origam-menu---background)` from tokens but the
|
|
931
|
+
// consumer-facing `<origam-menu color="primary">` was a silent
|
|
932
|
+
// no-op. Wired here so the inline declaration on the
|
|
933
|
+
// `.origam-menu__content` body wins via inline-style specificity.
|
|
934
|
+
// Phase 3 (Vague C) — class-first companion alongside inline styles.
|
|
935
|
+
// `colorClasses` lands the global `.origam--bg-{intent}` /
|
|
936
|
+
// `.origam--color-{intent}` utility on the menu body for tokenised
|
|
937
|
+
// intents; `colorStyles` keeps the legacy raw-color fallback.
|
|
938
|
+
/*********************************************************
|
|
939
|
+
* Color
|
|
940
|
+
********************************************************/
|
|
239
941
|
const { colorClasses, colorStyles } = useBothColor(toRef(props, "bgColor"), toRef(props, "color"));
|
|
240
|
-
const {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
borderStyles,
|
|
245
|
-
elevationClasses,
|
|
246
|
-
elevationStyles,
|
|
247
|
-
paddingClasses,
|
|
248
|
-
paddingStyles,
|
|
249
|
-
marginClasses,
|
|
250
|
-
marginStyles
|
|
251
|
-
} = useStateEffect(props);
|
|
942
|
+
const { roundedClasses, roundedStyles, borderClasses, borderStyles, elevationClasses, elevationStyles, paddingClasses, paddingStyles, marginClasses, marginStyles } = useStateEffect(props);
|
|
943
|
+
/*********************************************************
|
|
944
|
+
* Value
|
|
945
|
+
********************************************************/
|
|
252
946
|
const isActive = useVModel(props, "modelValue");
|
|
947
|
+
/*********************************************************
|
|
948
|
+
* Composables
|
|
949
|
+
********************************************************/
|
|
253
950
|
const { scopeId } = useScopeId();
|
|
254
951
|
const uid = getUid();
|
|
952
|
+
/*********************************************************
|
|
953
|
+
* id
|
|
954
|
+
*
|
|
955
|
+
* @description
|
|
956
|
+
* Single tiret: this is a generated ELEMENT ID, not a BEM state
|
|
957
|
+
* modifier — the repo's double-tiret grammar (`--{state}`) does not
|
|
958
|
+
* apply here. See OrigamTooltip / OrigamConfirmWrapper /
|
|
959
|
+
* OrigamCommandPalette for the same `${block}-${uid}` pattern.
|
|
960
|
+
* Confirmed via #536.
|
|
961
|
+
********************************************************/
|
|
255
962
|
const id = computed(() => props.id || `origam-menu-${uid}`);
|
|
256
963
|
const origamOverlayRef = ref();
|
|
964
|
+
/*********************************************************
|
|
965
|
+
* Parent / children menu tree
|
|
966
|
+
*
|
|
967
|
+
* @description
|
|
968
|
+
* Nested menus register with their parent via the ORIGAM_MENU_KEY
|
|
969
|
+
* injection. The parent tracks how many sub-menus are open so it
|
|
970
|
+
* knows when it is safe to close itself.
|
|
971
|
+
********************************************************/
|
|
257
972
|
const parent = inject(ORIGAM_MENU_KEY, null);
|
|
258
973
|
const openChildren = shallowRef(0);
|
|
974
|
+
/*********************************************************
|
|
975
|
+
* Timers bornes a la duree de vie du composant (#753)
|
|
976
|
+
*
|
|
977
|
+
* @description
|
|
978
|
+
* Deux `setTimeout` nus, dont un imbrique
|
|
979
|
+
* (`setTimeout(() => setTimeout(...))`). Ils survivaient au
|
|
980
|
+
* demontage :
|
|
981
|
+
* - `closeParents()` (40 ms) ecrit `isActive.value` et remonte la
|
|
982
|
+
* chaine des menus parents — sur un scope detruit, et surtout
|
|
983
|
+
* APRES que la fermeture qui l'a declenche soit terminee ;
|
|
984
|
+
* - le double timer du `keydown` rappelle
|
|
985
|
+
* `handleActivatorKeydown(e)`, qui rejoue un evenement clavier
|
|
986
|
+
* capture avant le demontage.
|
|
987
|
+
*
|
|
988
|
+
* @description
|
|
989
|
+
* Le timer imbrique est la raison pour laquelle un simple
|
|
990
|
+
* `clearTimeout` du handle exterieur ne suffit pas : au moment du
|
|
991
|
+
* demontage, le timer INTERIEUR n'est pas encore arme, il n'y a donc
|
|
992
|
+
* rien a annuler. C'est le drapeau `disposed` qui le couvre, teste a
|
|
993
|
+
* l'interieur du premier timer avant qu'il n'arme le second.
|
|
994
|
+
********************************************************/
|
|
259
995
|
let disposed = false;
|
|
260
|
-
const timers =
|
|
996
|
+
const timers = new Set();
|
|
261
997
|
const scheduleTimeout = (cb, delay) => {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
998
|
+
if (disposed) return;
|
|
999
|
+
const id = setTimeout(() => {
|
|
1000
|
+
timers.delete(id);
|
|
1001
|
+
if (disposed) return;
|
|
1002
|
+
cb();
|
|
1003
|
+
}, delay);
|
|
1004
|
+
timers.add(id);
|
|
269
1005
|
};
|
|
270
1006
|
onBeforeUnmount(() => {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
1007
|
+
disposed = true;
|
|
1008
|
+
for (const id of timers) clearTimeout(id);
|
|
1009
|
+
timers.clear();
|
|
274
1010
|
});
|
|
275
1011
|
provide(ORIGAM_MENU_KEY, {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
1012
|
+
register() {
|
|
1013
|
+
++openChildren.value;
|
|
1014
|
+
},
|
|
1015
|
+
unregister() {
|
|
1016
|
+
--openChildren.value;
|
|
1017
|
+
},
|
|
1018
|
+
closeParents() {
|
|
1019
|
+
scheduleTimeout(() => {
|
|
1020
|
+
if (!openChildren.value) {
|
|
1021
|
+
isActive.value = false;
|
|
1022
|
+
parent?.closeParents();
|
|
1023
|
+
}
|
|
1024
|
+
}, 40);
|
|
1025
|
+
}
|
|
290
1026
|
});
|
|
1027
|
+
/*********************************************************
|
|
1028
|
+
* Focus management
|
|
1029
|
+
*
|
|
1030
|
+
* @description
|
|
1031
|
+
* Trap focus inside the menu while it is open.
|
|
1032
|
+
* handleFocusIn keeps keyboard focus inside the content panel.
|
|
1033
|
+
* handleKeydown handles Tab and arrow navigation.
|
|
1034
|
+
* handleActivatorKeydown opens the menu on ArrowDown/Up.
|
|
1035
|
+
********************************************************/
|
|
1036
|
+
/*********************************************************
|
|
1037
|
+
* Event handlers
|
|
1038
|
+
********************************************************/
|
|
291
1039
|
const handleFocusIn = async (e) => {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
const focusable = focusableChildren(origamOverlayRef.value.contentEl);
|
|
300
|
-
focusable[0]?.focus();
|
|
301
|
-
}
|
|
1040
|
+
const before = e.relatedTarget;
|
|
1041
|
+
const after = e.target;
|
|
1042
|
+
await nextTick();
|
|
1043
|
+
if (isActive.value && before !== after && origamOverlayRef.value?.contentEl && origamOverlayRef.value?.globalTop && ![document, origamOverlayRef.value.contentEl].includes(after) && !origamOverlayRef.value.contentEl.contains(after)) {
|
|
1044
|
+
const focusable = focusableChildren(origamOverlayRef.value.contentEl);
|
|
1045
|
+
focusable[0]?.focus();
|
|
1046
|
+
}
|
|
302
1047
|
};
|
|
303
1048
|
watch(isActive, (val) => {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
1049
|
+
if (val) {
|
|
1050
|
+
parent?.register();
|
|
1051
|
+
document.addEventListener("focusin", handleFocusIn, { once: true });
|
|
1052
|
+
} else {
|
|
1053
|
+
parent?.unregister();
|
|
1054
|
+
document.removeEventListener("focusin", handleFocusIn);
|
|
1055
|
+
}
|
|
311
1056
|
});
|
|
312
1057
|
const handleClickOutside = () => {
|
|
313
|
-
|
|
1058
|
+
parent?.closeParents();
|
|
314
1059
|
};
|
|
1060
|
+
/*********************************************************
|
|
1061
|
+
* handleContextMenu
|
|
1062
|
+
*
|
|
1063
|
+
* @description
|
|
1064
|
+
* Relays the native `contextmenu` DOM event as the `contextmenu`
|
|
1065
|
+
* emit. Merged onto the activator slot's props (see the template)
|
|
1066
|
+
* rather than routed through `useActivator`/`OrigamOverlay` — those
|
|
1067
|
+
* are shared by every activator-based component (Tooltip, Dialog,
|
|
1068
|
+
* Snackbar, Picker, Drawer…), so wiring the emit there would grow the
|
|
1069
|
+
* blast radius to all of them for a channel `IMenuEmits` alone
|
|
1070
|
+
* declares. Deliberately unconditional (not gated on
|
|
1071
|
+
* `openOnContextMenu`): a parent wiring "show my OWN context menu
|
|
1072
|
+
* instead" is exactly the case where `openOnContextMenu` is `false`.
|
|
1073
|
+
********************************************************/
|
|
315
1074
|
const handleContextMenu = (e) => {
|
|
316
|
-
|
|
1075
|
+
emit("contextmenu", e);
|
|
317
1076
|
};
|
|
1077
|
+
/**
|
|
1078
|
+
* Fires the `select` emit for a picked leaf row.
|
|
1079
|
+
*
|
|
1080
|
+
* Bound only on the `v-if="!hasChilds(item)"` branch of the items
|
|
1081
|
+
* loop, so a row that merely opens a submenu stays silent — opening a
|
|
1082
|
+
* submenu is navigation, not a choice. The row's own `onClick` (spread
|
|
1083
|
+
* through `menuItemProps`) still runs: Vue merges the two handlers
|
|
1084
|
+
* rather than letting one replace the other, so consumers already
|
|
1085
|
+
* relying on per-item callbacks keep working unchanged.
|
|
1086
|
+
*/
|
|
318
1087
|
const handleSelect = (item) => {
|
|
319
|
-
|
|
320
|
-
|
|
1088
|
+
if (props.disabled) return;
|
|
1089
|
+
emit("select", item);
|
|
321
1090
|
};
|
|
322
1091
|
const handleKeydown = (e) => {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
isActive.value = false;
|
|
332
|
-
origamOverlayRef.value?.activatorEl?.focus();
|
|
333
|
-
}
|
|
334
|
-
}
|
|
1092
|
+
if (props.disabled) return;
|
|
1093
|
+
if (e.key === KEYBOARD_VALUES.TAB) {
|
|
1094
|
+
const nextElement = getNextElement(focusableChildren(origamOverlayRef.value?.contentEl, false), e.shiftKey ? "prev" : "next", (el) => el.tabIndex >= 0);
|
|
1095
|
+
if (!nextElement) {
|
|
1096
|
+
isActive.value = false;
|
|
1097
|
+
origamOverlayRef.value?.activatorEl?.focus();
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
335
1100
|
};
|
|
336
1101
|
const handleActivatorKeydown = (e) => {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
1102
|
+
if (props.disabled) return;
|
|
1103
|
+
const el = origamOverlayRef.value?.contentEl;
|
|
1104
|
+
const keyDown = [KEYBOARD_VALUES.DOWN, KEYBOARD_VALUES.UP];
|
|
1105
|
+
if (el && isActive.value) {
|
|
1106
|
+
if (e.key === KEYBOARD_VALUES.DOWN) {
|
|
1107
|
+
e.preventDefault();
|
|
1108
|
+
focusChild(el, "next");
|
|
1109
|
+
} else if (e.key === KEYBOARD_VALUES.UP) {
|
|
1110
|
+
e.preventDefault();
|
|
1111
|
+
focusChild(el, "prev");
|
|
1112
|
+
}
|
|
1113
|
+
} else if (keyDown.includes(e.key)) {
|
|
1114
|
+
isActive.value = true;
|
|
1115
|
+
e.preventDefault();
|
|
1116
|
+
scheduleTimeout(() => scheduleTimeout(() => handleActivatorKeydown(e)));
|
|
1117
|
+
}
|
|
353
1118
|
};
|
|
1119
|
+
/*********************************************************
|
|
1120
|
+
* Computed props forwarded to overlay
|
|
1121
|
+
*
|
|
1122
|
+
* @description
|
|
1123
|
+
* activatorProps merges ARIA attributes with consumer-provided
|
|
1124
|
+
* activatorProps and the activator keydown handler.
|
|
1125
|
+
* overlayProps filters and forwards relevant props to the inner overlay.
|
|
1126
|
+
* hasChilds detects whether a menu item should render as a sub-menu.
|
|
1127
|
+
********************************************************/
|
|
354
1128
|
const activatorProps = computed(() => {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
1129
|
+
return mergeProps({
|
|
1130
|
+
"aria-haspopup": "menu",
|
|
1131
|
+
"aria-expanded": String(isActive.value),
|
|
1132
|
+
"aria-owns": id.value,
|
|
1133
|
+
onKeydown: handleActivatorKeydown
|
|
1134
|
+
}, props.activatorProps);
|
|
361
1135
|
});
|
|
1136
|
+
/*********************************************************
|
|
1137
|
+
* Forwarded props
|
|
1138
|
+
********************************************************/
|
|
362
1139
|
const overlayProps = computed(() => {
|
|
363
|
-
|
|
1140
|
+
return origamOverlayRef.value?.filterProps(props, [
|
|
1141
|
+
"activatorProps",
|
|
1142
|
+
"id",
|
|
1143
|
+
"class",
|
|
1144
|
+
"style",
|
|
1145
|
+
"role",
|
|
1146
|
+
"modelValue",
|
|
1147
|
+
"absolute",
|
|
1148
|
+
"activator",
|
|
1149
|
+
"target",
|
|
1150
|
+
"openOnClick",
|
|
1151
|
+
"openOnContextMenu"
|
|
1152
|
+
]);
|
|
364
1153
|
});
|
|
1154
|
+
/**
|
|
1155
|
+
* ⛔ BUG 4 FIX — was `return item?.items`, hardcoding the child-items
|
|
1156
|
+
* key to the literal `'items'` and ignoring `props.itemChildren`
|
|
1157
|
+
* entirely (declared on `IItemProps`, defaulted above to `'children'`
|
|
1158
|
+
* — the SAME default `OrigamList` already uses). A consumer whose
|
|
1159
|
+
* item objects nest children under `children` (the DS-wide default,
|
|
1160
|
+
* e.g. `OrigamMediaController`'s `configMenuItems`) got `hasChilds()
|
|
1161
|
+
* === undefined` for every row: no nested `<origam-menu>` was ever
|
|
1162
|
+
* rendered, so a click on that row fell through to the PARENT menu's
|
|
1163
|
+
* ordinary `closeOnContentClick` handling and closed the whole menu
|
|
1164
|
+
* instead of opening a submenu. `childItems` now resolves the
|
|
1165
|
+
* children array through the same `getPropertyFromItem` helper
|
|
1166
|
+
* `transformListItem` (packages/ds/src/utils/List/list-item.util.ts)
|
|
1167
|
+
* already uses for `<origam-list>`, so both components agree on
|
|
1168
|
+
* where an item's children live.
|
|
1169
|
+
*/
|
|
365
1170
|
const childItems = (item) => {
|
|
366
|
-
|
|
367
|
-
|
|
1171
|
+
const children = getPropertyFromItem(item, props.itemChildren);
|
|
1172
|
+
return Array.isArray(children) ? children : [];
|
|
368
1173
|
};
|
|
369
1174
|
const hasChilds = (item) => {
|
|
370
|
-
|
|
1175
|
+
return childItems(item).length > 0;
|
|
371
1176
|
};
|
|
1177
|
+
/**
|
|
1178
|
+
* The raw children array lives under `item[props.itemChildren]` (e.g.
|
|
1179
|
+
* `item.children`) — it is NOT a real `<origam-menu>` / `<origam-list-
|
|
1180
|
+
* item>` prop. Spreading `item` as-is (`v-bind="item"`) therefore leaks
|
|
1181
|
+
* that key as a fallthrough attribute. When it cascades down to a
|
|
1182
|
+
* native DOM element it collides with the browser's own read-only
|
|
1183
|
+
* `Element.children` and Vue throws `TypeError: Cannot set property
|
|
1184
|
+
* children of #<Element> which has only a getter` on every render.
|
|
1185
|
+
* `menuItemProps` strips it before spreading (`childItems(item)` is
|
|
1186
|
+
* bound explicitly as `:items="…"` on the recursive `<origam-menu>`
|
|
1187
|
+
* instead — see the template).
|
|
1188
|
+
*/
|
|
372
1189
|
const menuItemProps = (item) => {
|
|
373
|
-
|
|
1190
|
+
return typeof props.itemChildren === "string" ? omit(item, [props.itemChildren]) : item;
|
|
374
1191
|
};
|
|
1192
|
+
/*********************************************************
|
|
1193
|
+
* Class & Style
|
|
1194
|
+
*
|
|
1195
|
+
* @description
|
|
1196
|
+
* menuStyles and menuClasses compose the BEM root classes.
|
|
1197
|
+
********************************************************/
|
|
375
1198
|
const menuStyles = computed(() => {
|
|
376
|
-
|
|
377
|
-
props.style
|
|
378
|
-
];
|
|
1199
|
+
return [props.style];
|
|
379
1200
|
});
|
|
380
1201
|
const menuContentClasses = computed(() => {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
1202
|
+
return [
|
|
1203
|
+
"origam-menu__content",
|
|
1204
|
+
colorClasses.value,
|
|
1205
|
+
roundedClasses.value,
|
|
1206
|
+
borderClasses.value,
|
|
1207
|
+
elevationClasses.value,
|
|
1208
|
+
paddingClasses.value,
|
|
1209
|
+
marginClasses.value
|
|
1210
|
+
];
|
|
390
1211
|
});
|
|
391
1212
|
const menuClasses = computed(() => {
|
|
392
|
-
|
|
393
|
-
"origam-menu",
|
|
394
|
-
props.class
|
|
395
|
-
];
|
|
1213
|
+
return ["origam-menu", props.class];
|
|
396
1214
|
});
|
|
397
1215
|
const { id: styleId, css, load, isLoaded, unload } = useStyle(menuStyles);
|
|
1216
|
+
/*********************************************************
|
|
1217
|
+
* Expose
|
|
1218
|
+
*
|
|
1219
|
+
* @description
|
|
1220
|
+
* Forwards overlay ref members plus openChildren and filterProps.
|
|
1221
|
+
********************************************************/
|
|
398
1222
|
defineExpose(forwardRefs({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
1223
|
+
openChildren,
|
|
1224
|
+
filterProps,
|
|
1225
|
+
css,
|
|
1226
|
+
id,
|
|
1227
|
+
load,
|
|
1228
|
+
unload,
|
|
1229
|
+
isLoaded,
|
|
1230
|
+
styleId
|
|
407
1231
|
}, origamOverlayRef));
|
|
408
1232
|
</script>
|
|
409
1233
|
|