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
|
@@ -199,146 +199,834 @@ import { TEXT_FIELD_TYPE } from "../../enums/TextField/text-field.enum";
|
|
|
199
199
|
import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
200
200
|
import { isEmpty, matchesSelector, wrapInArray } from "../../utils/Commons/commons.util";
|
|
201
201
|
import { computed, inject, nextTick, ref, shallowRef, StyleValue, toRef, useSlots, watch } from "vue";
|
|
202
|
+
/*********************************************************
|
|
203
|
+
* Global
|
|
204
|
+
********************************************************/
|
|
202
205
|
const props = defineProps({
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
206
|
+
menu: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
required: false
|
|
209
|
+
},
|
|
210
|
+
menuProps: {
|
|
211
|
+
type: Object,
|
|
212
|
+
required: false
|
|
213
|
+
},
|
|
214
|
+
range: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
required: false,
|
|
217
|
+
default: false
|
|
218
|
+
},
|
|
219
|
+
multiple: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
required: false
|
|
222
|
+
},
|
|
223
|
+
openOnClear: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
required: false
|
|
226
|
+
},
|
|
227
|
+
closeText: {
|
|
228
|
+
type: String,
|
|
229
|
+
required: false,
|
|
230
|
+
default: "origam.close"
|
|
231
|
+
},
|
|
232
|
+
openText: {
|
|
233
|
+
type: String,
|
|
234
|
+
required: false,
|
|
235
|
+
default: "origam.open"
|
|
236
|
+
},
|
|
237
|
+
closeOnSelect: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
required: false,
|
|
240
|
+
default: true
|
|
241
|
+
},
|
|
242
|
+
chipProps: {
|
|
243
|
+
type: Object,
|
|
244
|
+
required: false
|
|
245
|
+
},
|
|
246
|
+
closableChips: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
required: false
|
|
249
|
+
},
|
|
250
|
+
autofocus: {
|
|
251
|
+
type: Boolean,
|
|
252
|
+
required: false
|
|
253
|
+
},
|
|
254
|
+
counter: {
|
|
255
|
+
type: [
|
|
256
|
+
Boolean,
|
|
257
|
+
Number,
|
|
258
|
+
String
|
|
259
|
+
],
|
|
260
|
+
required: false
|
|
261
|
+
},
|
|
262
|
+
counterValue: {
|
|
263
|
+
type: [Number, Function],
|
|
264
|
+
required: false
|
|
265
|
+
},
|
|
266
|
+
placeholder: {
|
|
267
|
+
type: String,
|
|
268
|
+
required: false
|
|
269
|
+
},
|
|
270
|
+
persistentPlaceholder: {
|
|
271
|
+
type: Boolean,
|
|
272
|
+
required: false
|
|
273
|
+
},
|
|
274
|
+
persistentCounter: {
|
|
275
|
+
type: Boolean,
|
|
276
|
+
required: false
|
|
277
|
+
},
|
|
278
|
+
role: {
|
|
279
|
+
type: String,
|
|
280
|
+
required: false
|
|
281
|
+
},
|
|
282
|
+
type: {
|
|
283
|
+
type: null,
|
|
284
|
+
required: false,
|
|
285
|
+
default: TEXT_FIELD_TYPE.TEXT
|
|
286
|
+
},
|
|
287
|
+
modelModifiers: {
|
|
288
|
+
type: [String, Boolean],
|
|
289
|
+
required: false
|
|
290
|
+
},
|
|
291
|
+
mask: {
|
|
292
|
+
type: null,
|
|
293
|
+
required: false
|
|
294
|
+
},
|
|
295
|
+
id: {
|
|
296
|
+
type: String,
|
|
297
|
+
required: false
|
|
298
|
+
},
|
|
299
|
+
class: {
|
|
300
|
+
type: [
|
|
301
|
+
String,
|
|
302
|
+
Array,
|
|
303
|
+
Object
|
|
304
|
+
],
|
|
305
|
+
required: false
|
|
306
|
+
},
|
|
307
|
+
style: {
|
|
308
|
+
type: [
|
|
309
|
+
String,
|
|
310
|
+
Array,
|
|
311
|
+
Object,
|
|
312
|
+
Boolean,
|
|
313
|
+
null
|
|
314
|
+
],
|
|
315
|
+
required: false,
|
|
316
|
+
skipCheck: true
|
|
317
|
+
},
|
|
318
|
+
color: {
|
|
319
|
+
type: [
|
|
320
|
+
String,
|
|
321
|
+
Object,
|
|
322
|
+
Boolean,
|
|
323
|
+
null
|
|
324
|
+
],
|
|
325
|
+
required: false,
|
|
326
|
+
skipCheck: true
|
|
327
|
+
},
|
|
328
|
+
density: {
|
|
329
|
+
type: null,
|
|
330
|
+
required: false,
|
|
331
|
+
default: DENSITY.DEFAULT
|
|
332
|
+
},
|
|
333
|
+
centerAffix: {
|
|
334
|
+
type: Boolean,
|
|
335
|
+
required: false,
|
|
336
|
+
default: true
|
|
337
|
+
},
|
|
338
|
+
dirty: {
|
|
339
|
+
type: Boolean,
|
|
340
|
+
required: false
|
|
341
|
+
},
|
|
342
|
+
disabled: {
|
|
343
|
+
type: Boolean,
|
|
344
|
+
required: false
|
|
345
|
+
},
|
|
346
|
+
error: {
|
|
347
|
+
type: [String, Boolean],
|
|
348
|
+
required: false
|
|
349
|
+
},
|
|
350
|
+
inline: {
|
|
351
|
+
type: Boolean,
|
|
352
|
+
required: false
|
|
353
|
+
},
|
|
354
|
+
label: {
|
|
355
|
+
type: String,
|
|
356
|
+
required: false
|
|
357
|
+
},
|
|
358
|
+
prefix: {
|
|
359
|
+
type: String,
|
|
360
|
+
required: false
|
|
361
|
+
},
|
|
362
|
+
suffix: {
|
|
363
|
+
type: String,
|
|
364
|
+
required: false
|
|
365
|
+
},
|
|
366
|
+
persistentClear: {
|
|
367
|
+
type: Boolean,
|
|
368
|
+
required: false
|
|
369
|
+
},
|
|
370
|
+
singleLine: {
|
|
371
|
+
type: Boolean,
|
|
372
|
+
required: false
|
|
373
|
+
},
|
|
374
|
+
required: {
|
|
375
|
+
type: Boolean,
|
|
376
|
+
required: false
|
|
377
|
+
},
|
|
378
|
+
loading: {
|
|
379
|
+
type: [
|
|
380
|
+
Boolean,
|
|
381
|
+
Number,
|
|
382
|
+
Object
|
|
383
|
+
],
|
|
384
|
+
required: false
|
|
385
|
+
},
|
|
386
|
+
loadingText: {
|
|
387
|
+
type: String,
|
|
388
|
+
required: false
|
|
389
|
+
},
|
|
390
|
+
tag: {
|
|
391
|
+
type: String,
|
|
392
|
+
required: false
|
|
393
|
+
},
|
|
394
|
+
bgColor: {
|
|
395
|
+
type: [
|
|
396
|
+
String,
|
|
397
|
+
Object,
|
|
398
|
+
Boolean,
|
|
399
|
+
null
|
|
400
|
+
],
|
|
401
|
+
required: false,
|
|
402
|
+
skipCheck: true
|
|
403
|
+
},
|
|
404
|
+
appendInnerAvatar: {
|
|
405
|
+
type: String,
|
|
406
|
+
required: false
|
|
407
|
+
},
|
|
408
|
+
appendInnerIcon: {
|
|
409
|
+
type: null,
|
|
410
|
+
required: false,
|
|
411
|
+
default: MDI_ICONS.CALENDAR_OUTLINE
|
|
412
|
+
},
|
|
413
|
+
prependInnerAvatar: {
|
|
414
|
+
type: String,
|
|
415
|
+
required: false
|
|
416
|
+
},
|
|
417
|
+
prependInnerIcon: {
|
|
418
|
+
type: null,
|
|
419
|
+
required: false
|
|
420
|
+
},
|
|
421
|
+
clearIcon: {
|
|
422
|
+
type: null,
|
|
423
|
+
required: false
|
|
424
|
+
},
|
|
425
|
+
clearable: {
|
|
426
|
+
type: Boolean,
|
|
427
|
+
required: false
|
|
428
|
+
},
|
|
429
|
+
prependInnerAriaLabel: {
|
|
430
|
+
type: String,
|
|
431
|
+
required: false
|
|
432
|
+
},
|
|
433
|
+
appendInnerAriaLabel: {
|
|
434
|
+
type: String,
|
|
435
|
+
required: false
|
|
436
|
+
},
|
|
437
|
+
border: {
|
|
438
|
+
type: [
|
|
439
|
+
Boolean,
|
|
440
|
+
Number,
|
|
441
|
+
String,
|
|
442
|
+
Array
|
|
443
|
+
],
|
|
444
|
+
required: false,
|
|
445
|
+
skipCheck: true,
|
|
446
|
+
default: true
|
|
447
|
+
},
|
|
448
|
+
borderTop: {
|
|
449
|
+
type: [
|
|
450
|
+
Boolean,
|
|
451
|
+
Number,
|
|
452
|
+
String
|
|
453
|
+
],
|
|
454
|
+
required: false
|
|
455
|
+
},
|
|
456
|
+
borderLeft: {
|
|
457
|
+
type: [
|
|
458
|
+
Boolean,
|
|
459
|
+
Number,
|
|
460
|
+
String
|
|
461
|
+
],
|
|
462
|
+
required: false
|
|
463
|
+
},
|
|
464
|
+
borderBottom: {
|
|
465
|
+
type: [
|
|
466
|
+
Boolean,
|
|
467
|
+
Number,
|
|
468
|
+
String
|
|
469
|
+
],
|
|
470
|
+
required: false
|
|
471
|
+
},
|
|
472
|
+
borderRight: {
|
|
473
|
+
type: [
|
|
474
|
+
Boolean,
|
|
475
|
+
Number,
|
|
476
|
+
String
|
|
477
|
+
],
|
|
478
|
+
required: false
|
|
479
|
+
},
|
|
480
|
+
borderBlock: {
|
|
481
|
+
type: [
|
|
482
|
+
Boolean,
|
|
483
|
+
Number,
|
|
484
|
+
String
|
|
485
|
+
],
|
|
486
|
+
required: false
|
|
487
|
+
},
|
|
488
|
+
borderInline: {
|
|
489
|
+
type: [
|
|
490
|
+
Boolean,
|
|
491
|
+
Number,
|
|
492
|
+
String
|
|
493
|
+
],
|
|
494
|
+
required: false
|
|
495
|
+
},
|
|
496
|
+
borderInlineStart: {
|
|
497
|
+
type: [
|
|
498
|
+
Boolean,
|
|
499
|
+
Number,
|
|
500
|
+
String
|
|
501
|
+
],
|
|
502
|
+
required: false
|
|
503
|
+
},
|
|
504
|
+
borderInlineEnd: {
|
|
505
|
+
type: [
|
|
506
|
+
Boolean,
|
|
507
|
+
Number,
|
|
508
|
+
String
|
|
509
|
+
],
|
|
510
|
+
required: false
|
|
511
|
+
},
|
|
512
|
+
borderBlockStart: {
|
|
513
|
+
type: [
|
|
514
|
+
Boolean,
|
|
515
|
+
Number,
|
|
516
|
+
String
|
|
517
|
+
],
|
|
518
|
+
required: false
|
|
519
|
+
},
|
|
520
|
+
borderBlockEnd: {
|
|
521
|
+
type: [
|
|
522
|
+
Boolean,
|
|
523
|
+
Number,
|
|
524
|
+
String
|
|
525
|
+
],
|
|
526
|
+
required: false
|
|
527
|
+
},
|
|
528
|
+
borderColor: {
|
|
529
|
+
type: String,
|
|
530
|
+
required: false
|
|
531
|
+
},
|
|
532
|
+
borderStyle: {
|
|
533
|
+
type: String,
|
|
534
|
+
required: false
|
|
535
|
+
},
|
|
536
|
+
borderTopColor: {
|
|
537
|
+
type: [
|
|
538
|
+
String,
|
|
539
|
+
Object,
|
|
540
|
+
Boolean,
|
|
541
|
+
null
|
|
542
|
+
],
|
|
543
|
+
required: false,
|
|
544
|
+
skipCheck: true
|
|
545
|
+
},
|
|
546
|
+
borderRightColor: {
|
|
547
|
+
type: [
|
|
548
|
+
String,
|
|
549
|
+
Object,
|
|
550
|
+
Boolean,
|
|
551
|
+
null
|
|
552
|
+
],
|
|
553
|
+
required: false,
|
|
554
|
+
skipCheck: true
|
|
555
|
+
},
|
|
556
|
+
borderBottomColor: {
|
|
557
|
+
type: [
|
|
558
|
+
String,
|
|
559
|
+
Object,
|
|
560
|
+
Boolean,
|
|
561
|
+
null
|
|
562
|
+
],
|
|
563
|
+
required: false,
|
|
564
|
+
skipCheck: true
|
|
565
|
+
},
|
|
566
|
+
borderLeftColor: {
|
|
567
|
+
type: [
|
|
568
|
+
String,
|
|
569
|
+
Object,
|
|
570
|
+
Boolean,
|
|
571
|
+
null
|
|
572
|
+
],
|
|
573
|
+
required: false,
|
|
574
|
+
skipCheck: true
|
|
575
|
+
},
|
|
576
|
+
borderInlineStartColor: {
|
|
577
|
+
type: [
|
|
578
|
+
String,
|
|
579
|
+
Object,
|
|
580
|
+
Boolean,
|
|
581
|
+
null
|
|
582
|
+
],
|
|
583
|
+
required: false,
|
|
584
|
+
skipCheck: true
|
|
585
|
+
},
|
|
586
|
+
borderInlineEndColor: {
|
|
587
|
+
type: [
|
|
588
|
+
String,
|
|
589
|
+
Object,
|
|
590
|
+
Boolean,
|
|
591
|
+
null
|
|
592
|
+
],
|
|
593
|
+
required: false,
|
|
594
|
+
skipCheck: true
|
|
595
|
+
},
|
|
596
|
+
borderBlockStartColor: {
|
|
597
|
+
type: [
|
|
598
|
+
String,
|
|
599
|
+
Object,
|
|
600
|
+
Boolean,
|
|
601
|
+
null
|
|
602
|
+
],
|
|
603
|
+
required: false,
|
|
604
|
+
skipCheck: true
|
|
605
|
+
},
|
|
606
|
+
borderBlockEndColor: {
|
|
607
|
+
type: [
|
|
608
|
+
String,
|
|
609
|
+
Object,
|
|
610
|
+
Boolean,
|
|
611
|
+
null
|
|
612
|
+
],
|
|
613
|
+
required: false,
|
|
614
|
+
skipCheck: true
|
|
615
|
+
},
|
|
616
|
+
focused: {
|
|
617
|
+
type: Boolean,
|
|
618
|
+
required: false
|
|
619
|
+
},
|
|
620
|
+
text: {
|
|
621
|
+
type: String,
|
|
622
|
+
required: false
|
|
623
|
+
},
|
|
624
|
+
floating: {
|
|
625
|
+
type: Boolean,
|
|
626
|
+
required: false
|
|
627
|
+
},
|
|
628
|
+
name: {
|
|
629
|
+
type: String,
|
|
630
|
+
required: false
|
|
631
|
+
},
|
|
632
|
+
margin: {
|
|
633
|
+
type: [
|
|
634
|
+
Boolean,
|
|
635
|
+
Number,
|
|
636
|
+
String
|
|
637
|
+
],
|
|
638
|
+
required: false
|
|
639
|
+
},
|
|
640
|
+
marginTop: {
|
|
641
|
+
type: [
|
|
642
|
+
Boolean,
|
|
643
|
+
Number,
|
|
644
|
+
String
|
|
645
|
+
],
|
|
646
|
+
required: false
|
|
647
|
+
},
|
|
648
|
+
marginLeft: {
|
|
649
|
+
type: [
|
|
650
|
+
Boolean,
|
|
651
|
+
Number,
|
|
652
|
+
String
|
|
653
|
+
],
|
|
654
|
+
required: false
|
|
655
|
+
},
|
|
656
|
+
marginBottom: {
|
|
657
|
+
type: [
|
|
658
|
+
Boolean,
|
|
659
|
+
Number,
|
|
660
|
+
String
|
|
661
|
+
],
|
|
662
|
+
required: false
|
|
663
|
+
},
|
|
664
|
+
marginRight: {
|
|
665
|
+
type: [
|
|
666
|
+
Boolean,
|
|
667
|
+
Number,
|
|
668
|
+
String
|
|
669
|
+
],
|
|
670
|
+
required: false
|
|
671
|
+
},
|
|
672
|
+
marginBlock: {
|
|
673
|
+
type: [
|
|
674
|
+
Boolean,
|
|
675
|
+
Number,
|
|
676
|
+
String
|
|
677
|
+
],
|
|
678
|
+
required: false
|
|
679
|
+
},
|
|
680
|
+
marginInline: {
|
|
681
|
+
type: [
|
|
682
|
+
Boolean,
|
|
683
|
+
Number,
|
|
684
|
+
String
|
|
685
|
+
],
|
|
686
|
+
required: false
|
|
687
|
+
},
|
|
688
|
+
marginInlineStart: {
|
|
689
|
+
type: [
|
|
690
|
+
Boolean,
|
|
691
|
+
Number,
|
|
692
|
+
String
|
|
693
|
+
],
|
|
694
|
+
required: false
|
|
695
|
+
},
|
|
696
|
+
marginInlineEnd: {
|
|
697
|
+
type: [
|
|
698
|
+
Boolean,
|
|
699
|
+
Number,
|
|
700
|
+
String
|
|
701
|
+
],
|
|
702
|
+
required: false
|
|
703
|
+
},
|
|
704
|
+
marginBlockStart: {
|
|
705
|
+
type: [
|
|
706
|
+
Boolean,
|
|
707
|
+
Number,
|
|
708
|
+
String
|
|
709
|
+
],
|
|
710
|
+
required: false
|
|
711
|
+
},
|
|
712
|
+
marginBlockEnd: {
|
|
713
|
+
type: [
|
|
714
|
+
Boolean,
|
|
715
|
+
Number,
|
|
716
|
+
String
|
|
717
|
+
],
|
|
718
|
+
required: false
|
|
719
|
+
},
|
|
720
|
+
padding: {
|
|
721
|
+
type: [
|
|
722
|
+
Boolean,
|
|
723
|
+
Number,
|
|
724
|
+
String
|
|
725
|
+
],
|
|
726
|
+
required: false
|
|
727
|
+
},
|
|
728
|
+
paddingTop: {
|
|
729
|
+
type: [
|
|
730
|
+
Boolean,
|
|
731
|
+
Number,
|
|
732
|
+
String
|
|
733
|
+
],
|
|
734
|
+
required: false
|
|
735
|
+
},
|
|
736
|
+
paddingLeft: {
|
|
737
|
+
type: [
|
|
738
|
+
Boolean,
|
|
739
|
+
Number,
|
|
740
|
+
String
|
|
741
|
+
],
|
|
742
|
+
required: false
|
|
743
|
+
},
|
|
744
|
+
paddingBottom: {
|
|
745
|
+
type: [
|
|
746
|
+
Boolean,
|
|
747
|
+
Number,
|
|
748
|
+
String
|
|
749
|
+
],
|
|
750
|
+
required: false
|
|
751
|
+
},
|
|
752
|
+
paddingRight: {
|
|
753
|
+
type: [
|
|
754
|
+
Boolean,
|
|
755
|
+
Number,
|
|
756
|
+
String
|
|
757
|
+
],
|
|
758
|
+
required: false
|
|
759
|
+
},
|
|
760
|
+
paddingBlock: {
|
|
761
|
+
type: [
|
|
762
|
+
Boolean,
|
|
763
|
+
Number,
|
|
764
|
+
String
|
|
765
|
+
],
|
|
766
|
+
required: false
|
|
767
|
+
},
|
|
768
|
+
paddingInline: {
|
|
769
|
+
type: [
|
|
770
|
+
Boolean,
|
|
771
|
+
Number,
|
|
772
|
+
String
|
|
773
|
+
],
|
|
774
|
+
required: false
|
|
775
|
+
},
|
|
776
|
+
paddingInlineStart: {
|
|
777
|
+
type: [
|
|
778
|
+
Boolean,
|
|
779
|
+
Number,
|
|
780
|
+
String
|
|
781
|
+
],
|
|
782
|
+
required: false
|
|
783
|
+
},
|
|
784
|
+
paddingInlineEnd: {
|
|
785
|
+
type: [
|
|
786
|
+
Boolean,
|
|
787
|
+
Number,
|
|
788
|
+
String
|
|
789
|
+
],
|
|
790
|
+
required: false
|
|
791
|
+
},
|
|
792
|
+
paddingBlockStart: {
|
|
793
|
+
type: [
|
|
794
|
+
Boolean,
|
|
795
|
+
Number,
|
|
796
|
+
String
|
|
797
|
+
],
|
|
798
|
+
required: false
|
|
799
|
+
},
|
|
800
|
+
paddingBlockEnd: {
|
|
801
|
+
type: [
|
|
802
|
+
Boolean,
|
|
803
|
+
Number,
|
|
804
|
+
String
|
|
805
|
+
],
|
|
806
|
+
required: false
|
|
807
|
+
},
|
|
808
|
+
rounded: {
|
|
809
|
+
type: [
|
|
810
|
+
Boolean,
|
|
811
|
+
Number,
|
|
812
|
+
String,
|
|
813
|
+
null
|
|
814
|
+
],
|
|
815
|
+
required: false,
|
|
816
|
+
skipCheck: true,
|
|
817
|
+
default: true
|
|
818
|
+
},
|
|
819
|
+
roundedTopRight: {
|
|
820
|
+
type: [
|
|
821
|
+
Boolean,
|
|
822
|
+
Number,
|
|
823
|
+
String
|
|
824
|
+
],
|
|
825
|
+
required: false
|
|
826
|
+
},
|
|
827
|
+
roundedTopLeft: {
|
|
828
|
+
type: [
|
|
829
|
+
Boolean,
|
|
830
|
+
Number,
|
|
831
|
+
String
|
|
832
|
+
],
|
|
833
|
+
required: false
|
|
834
|
+
},
|
|
835
|
+
roundedBottomLeft: {
|
|
836
|
+
type: [
|
|
837
|
+
Boolean,
|
|
838
|
+
Number,
|
|
839
|
+
String
|
|
840
|
+
],
|
|
841
|
+
required: false
|
|
842
|
+
},
|
|
843
|
+
roundedBottomRight: {
|
|
844
|
+
type: [
|
|
845
|
+
Boolean,
|
|
846
|
+
Number,
|
|
847
|
+
String
|
|
848
|
+
],
|
|
849
|
+
required: false
|
|
850
|
+
},
|
|
851
|
+
roundedStartStart: {
|
|
852
|
+
type: [
|
|
853
|
+
Boolean,
|
|
854
|
+
Number,
|
|
855
|
+
String
|
|
856
|
+
],
|
|
857
|
+
required: false
|
|
858
|
+
},
|
|
859
|
+
roundedStartEnd: {
|
|
860
|
+
type: [
|
|
861
|
+
Boolean,
|
|
862
|
+
Number,
|
|
863
|
+
String
|
|
864
|
+
],
|
|
865
|
+
required: false
|
|
866
|
+
},
|
|
867
|
+
roundedEndStart: {
|
|
868
|
+
type: [
|
|
869
|
+
Boolean,
|
|
870
|
+
Number,
|
|
871
|
+
String
|
|
872
|
+
],
|
|
873
|
+
required: false
|
|
874
|
+
},
|
|
875
|
+
roundedEndEnd: {
|
|
876
|
+
type: [
|
|
877
|
+
Boolean,
|
|
878
|
+
Number,
|
|
879
|
+
String
|
|
880
|
+
],
|
|
881
|
+
required: false
|
|
882
|
+
},
|
|
883
|
+
fontSize: {
|
|
884
|
+
type: null,
|
|
885
|
+
required: false
|
|
886
|
+
},
|
|
887
|
+
fontWeight: {
|
|
888
|
+
type: null,
|
|
889
|
+
required: false
|
|
890
|
+
},
|
|
891
|
+
lineHeight: {
|
|
892
|
+
type: null,
|
|
893
|
+
required: false
|
|
894
|
+
},
|
|
895
|
+
letterSpacing: {
|
|
896
|
+
type: null,
|
|
897
|
+
required: false
|
|
898
|
+
},
|
|
899
|
+
active: {
|
|
900
|
+
type: [Boolean, Object],
|
|
901
|
+
required: false
|
|
902
|
+
},
|
|
903
|
+
activeClass: {
|
|
904
|
+
type: String,
|
|
905
|
+
required: false
|
|
906
|
+
},
|
|
907
|
+
variant: {
|
|
908
|
+
type: null,
|
|
909
|
+
required: false
|
|
910
|
+
},
|
|
911
|
+
elevation: {
|
|
912
|
+
type: [Number, String],
|
|
913
|
+
required: false
|
|
914
|
+
},
|
|
915
|
+
size: {
|
|
916
|
+
type: null,
|
|
917
|
+
required: false
|
|
918
|
+
},
|
|
919
|
+
hideDetails: {
|
|
920
|
+
type: [Boolean, String],
|
|
921
|
+
required: false
|
|
922
|
+
},
|
|
923
|
+
hideSpinButtons: {
|
|
924
|
+
type: Boolean,
|
|
925
|
+
required: false
|
|
926
|
+
},
|
|
927
|
+
hint: {
|
|
928
|
+
type: String,
|
|
929
|
+
required: false
|
|
930
|
+
},
|
|
931
|
+
persistentHint: {
|
|
932
|
+
type: Boolean,
|
|
933
|
+
required: false
|
|
934
|
+
},
|
|
935
|
+
messages: {
|
|
936
|
+
type: [Array, String],
|
|
937
|
+
required: false
|
|
938
|
+
},
|
|
939
|
+
height: {
|
|
940
|
+
type: [Number, String],
|
|
941
|
+
required: false
|
|
942
|
+
},
|
|
943
|
+
maxHeight: {
|
|
944
|
+
type: [Number, String],
|
|
945
|
+
required: false
|
|
946
|
+
},
|
|
947
|
+
maxWidth: {
|
|
948
|
+
type: [Number, String],
|
|
949
|
+
required: false
|
|
950
|
+
},
|
|
951
|
+
minHeight: {
|
|
952
|
+
type: [Number, String],
|
|
953
|
+
required: false
|
|
954
|
+
},
|
|
955
|
+
minWidth: {
|
|
956
|
+
type: [Number, String],
|
|
957
|
+
required: false
|
|
958
|
+
},
|
|
959
|
+
width: {
|
|
960
|
+
type: [Number, String],
|
|
961
|
+
required: false
|
|
962
|
+
},
|
|
963
|
+
direction: {
|
|
964
|
+
type: null,
|
|
965
|
+
required: false,
|
|
966
|
+
default: DIRECTION.HORIZONTAL
|
|
967
|
+
},
|
|
968
|
+
errorMessages: {
|
|
969
|
+
type: [Array, String],
|
|
970
|
+
required: false
|
|
971
|
+
},
|
|
972
|
+
maxErrors: {
|
|
973
|
+
type: [Number, String],
|
|
974
|
+
required: false
|
|
975
|
+
},
|
|
976
|
+
readonly: {
|
|
977
|
+
type: Boolean,
|
|
978
|
+
required: false
|
|
979
|
+
},
|
|
980
|
+
rules: {
|
|
981
|
+
type: Array,
|
|
982
|
+
required: false
|
|
983
|
+
},
|
|
984
|
+
modelValue: {
|
|
985
|
+
type: null,
|
|
986
|
+
required: false,
|
|
987
|
+
default: null
|
|
988
|
+
},
|
|
989
|
+
validateOn: {
|
|
990
|
+
type: null,
|
|
991
|
+
required: false
|
|
992
|
+
},
|
|
993
|
+
validationValue: {
|
|
994
|
+
type: null,
|
|
995
|
+
required: false
|
|
996
|
+
},
|
|
997
|
+
appendAvatar: {
|
|
998
|
+
type: String,
|
|
999
|
+
required: false
|
|
1000
|
+
},
|
|
1001
|
+
appendIcon: {
|
|
1002
|
+
type: null,
|
|
1003
|
+
required: false
|
|
1004
|
+
},
|
|
1005
|
+
prependAvatar: {
|
|
1006
|
+
type: String,
|
|
1007
|
+
required: false
|
|
1008
|
+
},
|
|
1009
|
+
prependIcon: {
|
|
1010
|
+
type: null,
|
|
1011
|
+
required: false
|
|
1012
|
+
},
|
|
1013
|
+
prependAriaLabel: {
|
|
1014
|
+
type: String,
|
|
1015
|
+
required: false
|
|
1016
|
+
},
|
|
1017
|
+
appendAriaLabel: {
|
|
1018
|
+
type: String,
|
|
1019
|
+
required: false
|
|
1020
|
+
},
|
|
1021
|
+
transition: {
|
|
1022
|
+
type: [
|
|
1023
|
+
Boolean,
|
|
1024
|
+
String,
|
|
1025
|
+
Object
|
|
1026
|
+
],
|
|
1027
|
+
required: false,
|
|
1028
|
+
default: () => ({ component: OrigamTranslateScale })
|
|
1029
|
+
}
|
|
342
1030
|
});
|
|
343
1031
|
defineEmits(["update:menu", "update:modelValue"]);
|
|
344
1032
|
defineSlots();
|
|
@@ -348,245 +1036,398 @@ const origamTextFieldRef = ref();
|
|
|
348
1036
|
const origamMenuRef = ref();
|
|
349
1037
|
const origamDatePickerRef = ref();
|
|
350
1038
|
const slots = useSlots();
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
(v) => wrapInArray(v),
|
|
356
|
-
(v) => props.range || props.multiple ? v : v[0]
|
|
357
|
-
);
|
|
1039
|
+
/*********************************************************
|
|
1040
|
+
* Value & adapter
|
|
1041
|
+
********************************************************/
|
|
1042
|
+
const model = useVModel(props, "modelValue", [], (v) => wrapInArray(v), (v) => props.range || props.multiple ? v : v[0]);
|
|
358
1043
|
const adapter = useDate();
|
|
359
1044
|
const handleSelectDate = (dates) => {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
1045
|
+
model.value = wrapInArray(dates);
|
|
1046
|
+
nextTick(() => {
|
|
1047
|
+
if (closeOnSelect.value) {
|
|
1048
|
+
menu.value = false;
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
366
1051
|
};
|
|
367
1052
|
const handleRemoveDate = (date) => {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
1053
|
+
const index = model.value.findIndex((selection) => selection === date);
|
|
1054
|
+
const value = [...model.value];
|
|
1055
|
+
value.splice(index, 1);
|
|
1056
|
+
model.value = value;
|
|
372
1057
|
};
|
|
1058
|
+
/*********************************************************
|
|
1059
|
+
* Color
|
|
1060
|
+
********************************************************/
|
|
1061
|
+
// Phase 3 (Vague B) — class-first companion alongside inline styles.
|
|
1062
|
+
// `textColorClasses` carries the global `.origam--color-{intent}` for
|
|
1063
|
+
// tokenised values; `textColorStyles` keeps the legacy fallback path.
|
|
373
1064
|
const { textColorClasses, textColorStyles } = useTextColor(toRef(props, "color"));
|
|
1065
|
+
/*********************************************************
|
|
1066
|
+
* Menu state & selection
|
|
1067
|
+
********************************************************/
|
|
374
1068
|
const menuState = useVModel(props, "menu");
|
|
375
1069
|
const menu = computed({
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
1070
|
+
get: () => menuState.value,
|
|
1071
|
+
set: (v) => {
|
|
1072
|
+
if (menuState.value && !v && origamMenuRef.value?.openChildren) {
|
|
1073
|
+
return;
|
|
1074
|
+
}
|
|
1075
|
+
menuState.value = v;
|
|
1076
|
+
}
|
|
383
1077
|
});
|
|
384
1078
|
const selectedValues = computed(() => {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
1079
|
+
let selectedDates = [...model.value];
|
|
1080
|
+
if (isRange.value) {
|
|
1081
|
+
selectedDates = [model.value[0], model.value[model.value.length - 1]];
|
|
1082
|
+
}
|
|
1083
|
+
return selectedDates.map((selection) => {
|
|
1084
|
+
return adapter.format(adapter.date(selection), "keyboardDate");
|
|
1085
|
+
});
|
|
392
1086
|
});
|
|
393
1087
|
const hasSelectedValues = computed(() => {
|
|
394
|
-
|
|
1088
|
+
return !isEmpty(selectedValues.value);
|
|
395
1089
|
});
|
|
396
1090
|
const isMultiple = computed(() => {
|
|
397
|
-
|
|
1091
|
+
return props.multiple && model.value.length > 1;
|
|
398
1092
|
});
|
|
399
1093
|
const isRange = computed(() => {
|
|
400
|
-
|
|
1094
|
+
return props.range && model.value.length > 1;
|
|
401
1095
|
});
|
|
1096
|
+
/*********************************************************
|
|
1097
|
+
* commitTypedDate (#859)
|
|
1098
|
+
*
|
|
1099
|
+
* @description
|
|
1100
|
+
* Reads the RAW text the user types into the underlying
|
|
1101
|
+
* `<origam-text-field>` and commits it to `model` — the piece that
|
|
1102
|
+
* was entirely missing pre-fix (only `handleSelectDate`, driven by
|
|
1103
|
+
* the popover calendar, ever wrote it). Wired via `@input` /
|
|
1104
|
+
* `@change` (below), NOT a `v-model` on the inner text field.
|
|
1105
|
+
*
|
|
1106
|
+
* @description
|
|
1107
|
+
* ⛔ `v-model:model-value` was tried first and REVERTED — measured
|
|
1108
|
+
* regression, not a style choice, and for TWO independent reasons:
|
|
1109
|
+
*
|
|
1110
|
+
* 1. Making the inner `<origam-text-field>`'s `modelValue` CONTROLLED
|
|
1111
|
+
* (both the prop AND `onUpdate:modelValue` present) changes
|
|
1112
|
+
* `useVModel`'s controlled/uncontrolled detection for that field,
|
|
1113
|
+
* which shifted the render cascade `useValidation`'s
|
|
1114
|
+
* `watch(validationModel, …)` (`validation.composable.ts:154`)
|
|
1115
|
+
* relies on to observe the `undefined -> value` transition once
|
|
1116
|
+
* `validationValue` first arrives through the two ref-gated
|
|
1117
|
+
* `textFieldProps` / `OrigamTextField`'s own `inputProps` hops.
|
|
1118
|
+
* With the extra reactivity hop, the watch's baseline read already
|
|
1119
|
+
* saw the settled value and never fired again — `rules` stopped
|
|
1120
|
+
* being evaluated at all (TU regression, identical mechanism on
|
|
1121
|
+
* both fields: `seen` went from `['#ff0000']` to `[]` on
|
|
1122
|
+
* `OrigamColorPickerField.spec.ts`'s #693 test).
|
|
1123
|
+
* 2. A CONTROLLED input feeding back a REFORMATTED display value
|
|
1124
|
+
* (`selectedValues[0]`, the `keyboardDate`-formatted canonical
|
|
1125
|
+
* text) fights the browser's own caret/typing state — every
|
|
1126
|
+
* syntactically-valid intermediate keystroke re-triggers
|
|
1127
|
+
* `selectedValues` and overwrites the `<input>` mid-keystroke.
|
|
1128
|
+
* Reproduced against Chromium: typing `09/18/2026` character by
|
|
1129
|
+
* character landed as `01/01/20009`.
|
|
1130
|
+
*
|
|
1131
|
+
* `@input` / `@change` are plain NATIVE DOM event fallthrough (same
|
|
1132
|
+
* mechanism `@change` already used pre-fix, confirmed reaching the
|
|
1133
|
+
* real `<input>` — see the ticket's own addEventListener probe) and
|
|
1134
|
+
* touch none of TextField's internal v-model machinery, so neither
|
|
1135
|
+
* problem applies. The underlying `<input>` is never visible (CSS
|
|
1136
|
+
* positions it behind the formatted selection text, see the
|
|
1137
|
+
* `<style>` block below) and is left UNCONTROLLED — its own native
|
|
1138
|
+
* typed text is exactly what the browser already shows.
|
|
1139
|
+
*
|
|
1140
|
+
* @description
|
|
1141
|
+
* `adapter.date(raw)` (the same DS date adapter every other date
|
|
1142
|
+
* computation here already goes through) parses the typed text;
|
|
1143
|
+
* `adapter.isValid(...)` gates the commit. `adapter.date()` ALONE is
|
|
1144
|
+
* not a strict-enough gate though — measured: it falls back to
|
|
1145
|
+
* `Date.parse()` for anything that isn't `YYYY-MM-DD`, and
|
|
1146
|
+
* `Date.parse()` is far more lenient than the `keyboardDate` shape
|
|
1147
|
+
* this field displays (`Date.parse('09/1')` resolves to a real, WRONG
|
|
1148
|
+
* date instead of failing — which would have committed a PARTIAL
|
|
1149
|
+
* string mid-typing, since `09/18/2026` typed character by character
|
|
1150
|
+
* passes through `09/1`). Round-tripping through the SAME
|
|
1151
|
+
* `keyboardDate` formatter `selectedValues` already uses, and
|
|
1152
|
+
* requiring an EXACT match against what the user typed, rejects every
|
|
1153
|
+
* partial/ambiguous string — only a complete, canonically-formatted
|
|
1154
|
+
* date survives. Committing an unparsed value would be a worse defect
|
|
1155
|
+
* than the one this fixes. An empty field clears to `[]`, matching
|
|
1156
|
+
* `handleClear`'s existing convention.
|
|
1157
|
+
*
|
|
1158
|
+
* @description
|
|
1159
|
+
* Scoped to the SINGLE-date case on purpose (`!range && !multiple`):
|
|
1160
|
+
* typing a free-text range or a multi-date list is ambiguous with no
|
|
1161
|
+
* established DS convention to reuse, and this ticket (#859) only
|
|
1162
|
+
* measured the single-value defect. `range` / `multiple` stay
|
|
1163
|
+
* popover-only, unchanged from before this fix — see the PR's "non
|
|
1164
|
+
* vérifié" section.
|
|
1165
|
+
********************************************************/
|
|
402
1166
|
const commitTypedDate = (raw) => {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
1167
|
+
if (props.multiple || props.range) return;
|
|
1168
|
+
if (raw === "") {
|
|
1169
|
+
model.value = [];
|
|
1170
|
+
return;
|
|
1171
|
+
}
|
|
1172
|
+
const parsed = adapter.date(raw);
|
|
1173
|
+
if (!parsed || !adapter.isValid(parsed)) return;
|
|
1174
|
+
if (adapter.format(parsed, "keyboardDate") !== raw) return;
|
|
1175
|
+
model.value = [adapter.toISO(parsed)];
|
|
412
1176
|
};
|
|
413
1177
|
const isFocused = shallowRef(false);
|
|
414
1178
|
const form = inject(ORIGAM_FORM_KEY, null);
|
|
415
1179
|
const menuDisabled = computed(() => {
|
|
416
|
-
|
|
1180
|
+
return props.readonly || form?.isReadonly.value;
|
|
417
1181
|
});
|
|
1182
|
+
// Typography bridge across the teleport — see `useTeleportTypography` for
|
|
1183
|
+
// the full rationale. The calendar's weekday header, week-number column
|
|
1184
|
+
// and day numbers, plus the popup title when one is set, size themselves
|
|
1185
|
+
// with `rem`-based tokens, so they need the field's REAL font-size
|
|
1186
|
+
// republished as those specific tokens, not just inherited.
|
|
418
1187
|
const { typographyStyles: menuTypographyStyles } = useTeleportTypography(origamTextFieldRef, menu, (fontSize) => ({
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
1188
|
+
"--origam-picker-title---font-size": fontSize,
|
|
1189
|
+
"--origam-date-picker-month__weekday---font-size": fontSize,
|
|
1190
|
+
"--origam-date-picker-month__weeks---font-size": fontSize,
|
|
1191
|
+
"--origam-date-picker-month__day---font-size": fontSize
|
|
423
1192
|
}));
|
|
424
1193
|
const comboboxAriaAttrs = computed(() => ({
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
1194
|
+
role: "combobox",
|
|
1195
|
+
"aria-haspopup": "dialog",
|
|
1196
|
+
"aria-expanded": menu.value ? "true" : "false"
|
|
428
1197
|
}));
|
|
429
1198
|
const menuProps = computed(() => {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
1199
|
+
const consumerContentProps = props.menuProps?.contentProps ?? {};
|
|
1200
|
+
return {
|
|
1201
|
+
...props.menuProps,
|
|
1202
|
+
activatorProps: {
|
|
1203
|
+
/*********************************************************
|
|
1204
|
+
* role + aria-haspopup — #818
|
|
1205
|
+
*
|
|
1206
|
+
* @description
|
|
1207
|
+
* `'datepickerbox'` was never a valid `aria-haspopup` token
|
|
1208
|
+
* (spec allows `false|true|menu|listbox|tree|grid|dialog`) —
|
|
1209
|
+
* axe-core's `aria-valid-attr-value` flagged it, measured
|
|
1210
|
+
* against a real browser. `'dialog'` matches the WAI-ARIA
|
|
1211
|
+
* "Date Picker Dialog" pattern: a button/combobox opening a
|
|
1212
|
+
* calendar dialog.
|
|
1213
|
+
*
|
|
1214
|
+
* @description
|
|
1215
|
+
* #1308 — role + `aria-haspopup`/`aria-expanded` live on the <input>
|
|
1216
|
+
* (`comboboxAriaAttrs`), as in `OrigamSelect` (#1247).
|
|
1217
|
+
* `activator="parent"` is the role-less `.origam-field` wrapper, so the
|
|
1218
|
+
* menu's default ARIA is neutralised there.
|
|
1219
|
+
********************************************************/
|
|
1220
|
+
...MENU_WRAPPER_ARIA_RESET,
|
|
1221
|
+
...props.menuProps?.activatorProps || {}
|
|
1222
|
+
},
|
|
1223
|
+
contentProps: {
|
|
1224
|
+
...consumerContentProps,
|
|
1225
|
+
// The consumer's own style is listed last so it still wins —
|
|
1226
|
+
// the bridge is a default, not a lock.
|
|
1227
|
+
style: [menuTypographyStyles.value, consumerContentProps.style]
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
461
1230
|
});
|
|
1231
|
+
/*********************************************************
|
|
1232
|
+
* Event handlers
|
|
1233
|
+
********************************************************/
|
|
462
1234
|
const handleClear = () => {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
1235
|
+
model.value = [];
|
|
1236
|
+
if (props.openOnClear) {
|
|
1237
|
+
menu.value = true;
|
|
1238
|
+
}
|
|
467
1239
|
};
|
|
468
1240
|
const handleMousedownControl = () => {
|
|
469
|
-
|
|
470
|
-
|
|
1241
|
+
if (menuDisabled.value) return;
|
|
1242
|
+
menu.value = !menu.value;
|
|
471
1243
|
};
|
|
472
1244
|
const handleBlur = (e) => {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
1245
|
+
if (!origamDatePickerRef.value?.$el.contains(e.relatedTarget)) {
|
|
1246
|
+
menu.value = false;
|
|
1247
|
+
}
|
|
1248
|
+
if (hasSelectedValues.value) {
|
|
1249
|
+
isFocused.value = true;
|
|
1250
|
+
}
|
|
479
1251
|
};
|
|
480
1252
|
const handleInput = (e) => {
|
|
481
|
-
|
|
1253
|
+
commitTypedDate(e.target?.value ?? "");
|
|
482
1254
|
};
|
|
483
1255
|
const handleChange = (e) => {
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
1256
|
+
if (matchesSelector(origamTextFieldRef.value, ":autofill") || matchesSelector(origamTextFieldRef.value, ":-webkit-autofill")) {
|
|
1257
|
+
commitTypedDate(e.target?.value ?? "");
|
|
1258
|
+
}
|
|
487
1259
|
};
|
|
488
1260
|
const handleAfterLeave = () => {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
1261
|
+
if (isFocused.value) {
|
|
1262
|
+
origamTextFieldRef.value?.focus();
|
|
1263
|
+
}
|
|
492
1264
|
};
|
|
1265
|
+
/*********************************************************
|
|
1266
|
+
* Chips
|
|
1267
|
+
*
|
|
1268
|
+
* @description
|
|
1269
|
+
* `bgColor` / `color` are deliberately OMITTED (#411, same defect and
|
|
1270
|
+
* same fix as OrigamSelect's chips under #456 — commit 331d9b62) —
|
|
1271
|
+
* they used to be hardcoded RGB literals, identical to Select's,
|
|
1272
|
+
* hiding the chip behind whatever theme was active. `OrigamChip`'s
|
|
1273
|
+
* own SCSS already reads `var(--origam-chip---background-color)` /
|
|
1274
|
+
* `var(--origam-chip---color)` with no inline fallback, and the
|
|
1275
|
+
* token stylesheets declare both (`light.css`/`dark.css`), so
|
|
1276
|
+
* leaving them unset lets Chip resolve its own themed default
|
|
1277
|
+
* instead of this component overriding it.
|
|
1278
|
+
********************************************************/
|
|
493
1279
|
const chipSlotProps = (item) => {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
1280
|
+
return {
|
|
1281
|
+
closable: props.closableChips,
|
|
1282
|
+
border: true,
|
|
1283
|
+
rounded: true,
|
|
1284
|
+
"onClick:close": (e) => handleChipClose(e, item),
|
|
1285
|
+
onKeydown: (e) => handleChipKeydown(e, item),
|
|
1286
|
+
onMousedown: (e) => handleChipMousedown(e),
|
|
1287
|
+
modelValue: true,
|
|
1288
|
+
size: "small",
|
|
1289
|
+
...props.chipProps
|
|
1290
|
+
};
|
|
505
1291
|
};
|
|
506
1292
|
const handleChipClose = (e, item) => {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
1293
|
+
e.stopPropagation();
|
|
1294
|
+
e.preventDefault();
|
|
1295
|
+
handleRemoveDate(item);
|
|
510
1296
|
};
|
|
511
1297
|
const handleChipKeydown = (e, item) => {
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
1298
|
+
if (e.key !== KEYBOARD_VALUES.ENTER && e.key !== KEYBOARD_VALUES.EMPTY) return;
|
|
1299
|
+
e.preventDefault();
|
|
1300
|
+
e.stopPropagation();
|
|
1301
|
+
handleChipClose(e, item);
|
|
516
1302
|
};
|
|
517
1303
|
const handleChipMousedown = (e) => {
|
|
518
|
-
|
|
519
|
-
|
|
1304
|
+
e.preventDefault();
|
|
1305
|
+
e.stopPropagation();
|
|
520
1306
|
};
|
|
1307
|
+
/*********************************************************
|
|
1308
|
+
* Forwarded props
|
|
1309
|
+
********************************************************/
|
|
521
1310
|
const textFieldProps = computed(() => {
|
|
522
|
-
|
|
1311
|
+
return filterPropsOf(OrigamTextField, props, [
|
|
1312
|
+
"class",
|
|
1313
|
+
"id",
|
|
1314
|
+
"style",
|
|
1315
|
+
"dirty",
|
|
1316
|
+
"modelValue",
|
|
1317
|
+
"placeholder",
|
|
1318
|
+
"validationValue",
|
|
1319
|
+
"focused"
|
|
1320
|
+
]);
|
|
523
1321
|
});
|
|
524
1322
|
const datePickerProps = computed(() => {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
1323
|
+
// Same exclusion list as `OrigamColorPickerField` —
|
|
1324
|
+
// the field's `rounded: true` / `border: true` defaults are
|
|
1325
|
+
// meant for the trigger outline, NOT the popup. Forwarding
|
|
1326
|
+
// them down made the inner `<origam-date-picker>` apply the
|
|
1327
|
+
// Sheet's `--rounded` modifier (24px), which doesn't match
|
|
1328
|
+
// the popup menu's 8px corner — visible gap at the corners.
|
|
1329
|
+
// Cast: props is IDatePickerFieldProps (superset). filterProps on the child
|
|
1330
|
+
// ref expects T=IDatePickerProps. The cast is safe — all IDatePickerProps
|
|
1331
|
+
// keys are present in IDatePickerFieldProps.
|
|
1332
|
+
return origamDatePickerRef.value?.filterProps(props, [
|
|
1333
|
+
"class",
|
|
1334
|
+
"id",
|
|
1335
|
+
"style",
|
|
1336
|
+
"modelValue",
|
|
1337
|
+
"rounded",
|
|
1338
|
+
"border",
|
|
1339
|
+
"borderColor",
|
|
1340
|
+
"borderStyle",
|
|
1341
|
+
"density",
|
|
1342
|
+
"direction"
|
|
1343
|
+
]);
|
|
540
1344
|
});
|
|
1345
|
+
/*********************************************************
|
|
1346
|
+
* Validation
|
|
1347
|
+
********************************************************/
|
|
1348
|
+
/*********************************************************
|
|
1349
|
+
* effectiveValidationValue (#693)
|
|
1350
|
+
*
|
|
1351
|
+
* @description
|
|
1352
|
+
* This was previously named `validationValue`, a bare `const` that
|
|
1353
|
+
* SHADOWED the `validationValue` PROP (`IDatePickerFieldProps` ->
|
|
1354
|
+
* `ITextFieldProps` -> `IInputProps` ->
|
|
1355
|
+
* `IValidationProps.validationValue`, `validation.interface.ts:47`)
|
|
1356
|
+
* inside this `<script lang="ts" setup>` block. The template's
|
|
1357
|
+
* `:validation-value="validationValue"` therefore always resolved to
|
|
1358
|
+
* this model-derived local, never to the consumer's prop — and since
|
|
1359
|
+
* `validationValue` is also stripped from the `filterProps` passthrough
|
|
1360
|
+
* above, there was no second path either: a
|
|
1361
|
+
* `<origam-date-picker-field :validation-value="somethingElse" />`
|
|
1362
|
+
* silently validated against the model. Same defect family as #622 /
|
|
1363
|
+
* #665 / #666.
|
|
1364
|
+
*
|
|
1365
|
+
* @description
|
|
1366
|
+
* The fallback ladder mirrors `useValidation` exactly
|
|
1367
|
+
* (`validation.composable.ts:52`): `undefined` means "not supplied" and
|
|
1368
|
+
* falls back to the model, ANY other value — `null` included — wins.
|
|
1369
|
+
********************************************************/
|
|
541
1370
|
const effectiveValidationValue = computed(() => {
|
|
542
|
-
|
|
1371
|
+
return props.validationValue === undefined ? model.value : props.validationValue;
|
|
543
1372
|
});
|
|
1373
|
+
/*********************************************************
|
|
1374
|
+
* Derived state
|
|
1375
|
+
********************************************************/
|
|
544
1376
|
const isDirty = computed(() => {
|
|
545
|
-
|
|
1377
|
+
return model.value.length > 0;
|
|
546
1378
|
});
|
|
547
1379
|
const placeholder = computed(() => {
|
|
548
|
-
|
|
1380
|
+
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? undefined : props.placeholder;
|
|
549
1381
|
});
|
|
1382
|
+
/*********************************************************
|
|
1383
|
+
* Accessible name (#666, #1251)
|
|
1384
|
+
*
|
|
1385
|
+
* @description
|
|
1386
|
+
* `aria-label` / `title` mirror `props.label` only. Without a `label`
|
|
1387
|
+
* prop NOTHING is emitted: the name then comes from an external
|
|
1388
|
+
* `<label for>` / the consumer's `aria-labelledby`, which an `aria-label`
|
|
1389
|
+
* would override (it ranks above `<label for>` in the name computation).
|
|
1390
|
+
* The open/close wording stays on the toggle button, not on the input.
|
|
1391
|
+
********************************************************/
|
|
550
1392
|
const closeOnSelect = computed(() => {
|
|
551
|
-
|
|
1393
|
+
return props.closeOnSelect && !(props.multiple || props.range);
|
|
552
1394
|
});
|
|
553
1395
|
watch(selectedValues, () => {
|
|
554
|
-
|
|
1396
|
+
isFocused.value = hasSelectedValues.value;
|
|
555
1397
|
}, {
|
|
556
|
-
|
|
557
|
-
|
|
1398
|
+
immediate: true,
|
|
1399
|
+
deep: true
|
|
558
1400
|
});
|
|
1401
|
+
/*********************************************************
|
|
1402
|
+
* Class & Style
|
|
1403
|
+
********************************************************/
|
|
559
1404
|
const datePickerFieldStyles = computed(() => {
|
|
560
|
-
|
|
561
|
-
props.style
|
|
562
|
-
];
|
|
1405
|
+
return [props.style];
|
|
563
1406
|
});
|
|
564
1407
|
const datePickerFieldSelectionChipsClasses = computed(() => {
|
|
565
|
-
|
|
566
|
-
"origam-date-picker-field__selection-chips",
|
|
567
|
-
textColorClasses.value
|
|
568
|
-
];
|
|
1408
|
+
return ["origam-date-picker-field__selection-chips", textColorClasses.value];
|
|
569
1409
|
});
|
|
570
1410
|
const datePickerFieldClasses = computed(() => {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
props.class
|
|
578
|
-
];
|
|
1411
|
+
return [
|
|
1412
|
+
"origam-date-picker-field",
|
|
1413
|
+
`origam-date-picker-field--${props.range ? "range" : "single"}`,
|
|
1414
|
+
{ "origam-date-picker-field--active-menu": menu.value },
|
|
1415
|
+
props.class
|
|
1416
|
+
];
|
|
579
1417
|
});
|
|
580
1418
|
const { id, css, load, isLoaded, unload } = useStyle(datePickerFieldStyles, () => props.id);
|
|
1419
|
+
/*********************************************************
|
|
1420
|
+
* Expose
|
|
1421
|
+
********************************************************/
|
|
581
1422
|
defineExpose(forwardRefs({
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
1423
|
+
filterProps,
|
|
1424
|
+
isFocused,
|
|
1425
|
+
menu,
|
|
1426
|
+
css,
|
|
1427
|
+
id,
|
|
1428
|
+
load,
|
|
1429
|
+
unload,
|
|
1430
|
+
isLoaded
|
|
590
1431
|
}, origamTextFieldRef));
|
|
591
1432
|
</script>
|
|
592
1433
|
|