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
|
@@ -151,142 +151,819 @@ import { forwardRefs } from "../../utils/Commons/forwardRefs.util";
|
|
|
151
151
|
import { HSVtoCSS, isCompleteCssColor } from "../../utils/Commons/color.util";
|
|
152
152
|
import { has, matchesSelector } from "../../utils/Commons/commons.util";
|
|
153
153
|
import { computed, inject, nextTick, ref, shallowRef, StyleValue, useSlots, watch } from "vue";
|
|
154
|
+
/*********************************************************
|
|
155
|
+
* Global
|
|
156
|
+
*
|
|
157
|
+
* @description
|
|
158
|
+
* Props, emits, composables and top-level refs.
|
|
159
|
+
********************************************************/
|
|
154
160
|
const props = defineProps({
|
|
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
|
-
|
|
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
|
-
|
|
161
|
+
menu: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
required: false
|
|
164
|
+
},
|
|
165
|
+
menuProps: {
|
|
166
|
+
type: Object,
|
|
167
|
+
required: false
|
|
168
|
+
},
|
|
169
|
+
openOnClear: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
required: false
|
|
172
|
+
},
|
|
173
|
+
closeText: {
|
|
174
|
+
type: String,
|
|
175
|
+
required: false,
|
|
176
|
+
default: "origam.close"
|
|
177
|
+
},
|
|
178
|
+
openText: {
|
|
179
|
+
type: String,
|
|
180
|
+
required: false,
|
|
181
|
+
default: "origam.open"
|
|
182
|
+
},
|
|
183
|
+
closeOnSelect: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
required: false,
|
|
186
|
+
default: false
|
|
187
|
+
},
|
|
188
|
+
autofocus: {
|
|
189
|
+
type: Boolean,
|
|
190
|
+
required: false
|
|
191
|
+
},
|
|
192
|
+
counter: {
|
|
193
|
+
type: [
|
|
194
|
+
Boolean,
|
|
195
|
+
Number,
|
|
196
|
+
String
|
|
197
|
+
],
|
|
198
|
+
required: false
|
|
199
|
+
},
|
|
200
|
+
counterValue: {
|
|
201
|
+
type: [Number, Function],
|
|
202
|
+
required: false
|
|
203
|
+
},
|
|
204
|
+
placeholder: {
|
|
205
|
+
type: String,
|
|
206
|
+
required: false
|
|
207
|
+
},
|
|
208
|
+
persistentPlaceholder: {
|
|
209
|
+
type: Boolean,
|
|
210
|
+
required: false
|
|
211
|
+
},
|
|
212
|
+
persistentCounter: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false
|
|
215
|
+
},
|
|
216
|
+
role: {
|
|
217
|
+
type: String,
|
|
218
|
+
required: false
|
|
219
|
+
},
|
|
220
|
+
type: {
|
|
221
|
+
type: null,
|
|
222
|
+
required: false,
|
|
223
|
+
default: TEXT_FIELD_TYPE.TEXT
|
|
224
|
+
},
|
|
225
|
+
modelModifiers: {
|
|
226
|
+
type: [String, Boolean],
|
|
227
|
+
required: false
|
|
228
|
+
},
|
|
229
|
+
mask: {
|
|
230
|
+
type: null,
|
|
231
|
+
required: false
|
|
232
|
+
},
|
|
233
|
+
id: {
|
|
234
|
+
type: String,
|
|
235
|
+
required: false
|
|
236
|
+
},
|
|
237
|
+
class: {
|
|
238
|
+
type: [
|
|
239
|
+
String,
|
|
240
|
+
Array,
|
|
241
|
+
Object
|
|
242
|
+
],
|
|
243
|
+
required: false
|
|
244
|
+
},
|
|
245
|
+
style: {
|
|
246
|
+
type: [
|
|
247
|
+
String,
|
|
248
|
+
Array,
|
|
249
|
+
Object,
|
|
250
|
+
Boolean,
|
|
251
|
+
null
|
|
252
|
+
],
|
|
253
|
+
required: false,
|
|
254
|
+
skipCheck: true
|
|
255
|
+
},
|
|
256
|
+
color: {
|
|
257
|
+
type: [
|
|
258
|
+
String,
|
|
259
|
+
Object,
|
|
260
|
+
Boolean,
|
|
261
|
+
null
|
|
262
|
+
],
|
|
263
|
+
required: false,
|
|
264
|
+
skipCheck: true
|
|
265
|
+
},
|
|
266
|
+
density: {
|
|
267
|
+
type: null,
|
|
268
|
+
required: false,
|
|
269
|
+
default: DENSITY.DEFAULT
|
|
270
|
+
},
|
|
271
|
+
centerAffix: {
|
|
272
|
+
type: Boolean,
|
|
273
|
+
required: false,
|
|
274
|
+
default: true
|
|
275
|
+
},
|
|
276
|
+
dirty: {
|
|
277
|
+
type: Boolean,
|
|
278
|
+
required: false
|
|
279
|
+
},
|
|
280
|
+
disabled: {
|
|
281
|
+
type: Boolean,
|
|
282
|
+
required: false
|
|
283
|
+
},
|
|
284
|
+
error: {
|
|
285
|
+
type: [String, Boolean],
|
|
286
|
+
required: false
|
|
287
|
+
},
|
|
288
|
+
inline: {
|
|
289
|
+
type: Boolean,
|
|
290
|
+
required: false
|
|
291
|
+
},
|
|
292
|
+
label: {
|
|
293
|
+
type: String,
|
|
294
|
+
required: false
|
|
295
|
+
},
|
|
296
|
+
prefix: {
|
|
297
|
+
type: String,
|
|
298
|
+
required: false
|
|
299
|
+
},
|
|
300
|
+
suffix: {
|
|
301
|
+
type: String,
|
|
302
|
+
required: false
|
|
303
|
+
},
|
|
304
|
+
persistentClear: {
|
|
305
|
+
type: Boolean,
|
|
306
|
+
required: false
|
|
307
|
+
},
|
|
308
|
+
singleLine: {
|
|
309
|
+
type: Boolean,
|
|
310
|
+
required: false
|
|
311
|
+
},
|
|
312
|
+
required: {
|
|
313
|
+
type: Boolean,
|
|
314
|
+
required: false
|
|
315
|
+
},
|
|
316
|
+
loading: {
|
|
317
|
+
type: [
|
|
318
|
+
Boolean,
|
|
319
|
+
Number,
|
|
320
|
+
Object
|
|
321
|
+
],
|
|
322
|
+
required: false
|
|
323
|
+
},
|
|
324
|
+
loadingText: {
|
|
325
|
+
type: String,
|
|
326
|
+
required: false
|
|
327
|
+
},
|
|
328
|
+
tag: {
|
|
329
|
+
type: String,
|
|
330
|
+
required: false
|
|
331
|
+
},
|
|
332
|
+
bgColor: {
|
|
333
|
+
type: [
|
|
334
|
+
String,
|
|
335
|
+
Object,
|
|
336
|
+
Boolean,
|
|
337
|
+
null
|
|
338
|
+
],
|
|
339
|
+
required: false,
|
|
340
|
+
skipCheck: true
|
|
341
|
+
},
|
|
342
|
+
appendInnerAvatar: {
|
|
343
|
+
type: String,
|
|
344
|
+
required: false
|
|
345
|
+
},
|
|
346
|
+
appendInnerIcon: {
|
|
347
|
+
type: null,
|
|
348
|
+
required: false
|
|
349
|
+
},
|
|
350
|
+
prependInnerAvatar: {
|
|
351
|
+
type: String,
|
|
352
|
+
required: false
|
|
353
|
+
},
|
|
354
|
+
prependInnerIcon: {
|
|
355
|
+
type: null,
|
|
356
|
+
required: false
|
|
357
|
+
},
|
|
358
|
+
clearIcon: {
|
|
359
|
+
type: null,
|
|
360
|
+
required: false
|
|
361
|
+
},
|
|
362
|
+
clearable: {
|
|
363
|
+
type: Boolean,
|
|
364
|
+
required: false
|
|
365
|
+
},
|
|
366
|
+
prependInnerAriaLabel: {
|
|
367
|
+
type: String,
|
|
368
|
+
required: false
|
|
369
|
+
},
|
|
370
|
+
appendInnerAriaLabel: {
|
|
371
|
+
type: String,
|
|
372
|
+
required: false
|
|
373
|
+
},
|
|
374
|
+
border: {
|
|
375
|
+
type: [
|
|
376
|
+
Boolean,
|
|
377
|
+
Number,
|
|
378
|
+
String,
|
|
379
|
+
Array
|
|
380
|
+
],
|
|
381
|
+
required: false,
|
|
382
|
+
skipCheck: true,
|
|
383
|
+
default: true
|
|
384
|
+
},
|
|
385
|
+
borderTop: {
|
|
386
|
+
type: [
|
|
387
|
+
Boolean,
|
|
388
|
+
Number,
|
|
389
|
+
String
|
|
390
|
+
],
|
|
391
|
+
required: false
|
|
392
|
+
},
|
|
393
|
+
borderLeft: {
|
|
394
|
+
type: [
|
|
395
|
+
Boolean,
|
|
396
|
+
Number,
|
|
397
|
+
String
|
|
398
|
+
],
|
|
399
|
+
required: false
|
|
400
|
+
},
|
|
401
|
+
borderBottom: {
|
|
402
|
+
type: [
|
|
403
|
+
Boolean,
|
|
404
|
+
Number,
|
|
405
|
+
String
|
|
406
|
+
],
|
|
407
|
+
required: false
|
|
408
|
+
},
|
|
409
|
+
borderRight: {
|
|
410
|
+
type: [
|
|
411
|
+
Boolean,
|
|
412
|
+
Number,
|
|
413
|
+
String
|
|
414
|
+
],
|
|
415
|
+
required: false
|
|
416
|
+
},
|
|
417
|
+
borderBlock: {
|
|
418
|
+
type: [
|
|
419
|
+
Boolean,
|
|
420
|
+
Number,
|
|
421
|
+
String
|
|
422
|
+
],
|
|
423
|
+
required: false
|
|
424
|
+
},
|
|
425
|
+
borderInline: {
|
|
426
|
+
type: [
|
|
427
|
+
Boolean,
|
|
428
|
+
Number,
|
|
429
|
+
String
|
|
430
|
+
],
|
|
431
|
+
required: false
|
|
432
|
+
},
|
|
433
|
+
borderInlineStart: {
|
|
434
|
+
type: [
|
|
435
|
+
Boolean,
|
|
436
|
+
Number,
|
|
437
|
+
String
|
|
438
|
+
],
|
|
439
|
+
required: false
|
|
440
|
+
},
|
|
441
|
+
borderInlineEnd: {
|
|
442
|
+
type: [
|
|
443
|
+
Boolean,
|
|
444
|
+
Number,
|
|
445
|
+
String
|
|
446
|
+
],
|
|
447
|
+
required: false
|
|
448
|
+
},
|
|
449
|
+
borderBlockStart: {
|
|
450
|
+
type: [
|
|
451
|
+
Boolean,
|
|
452
|
+
Number,
|
|
453
|
+
String
|
|
454
|
+
],
|
|
455
|
+
required: false
|
|
456
|
+
},
|
|
457
|
+
borderBlockEnd: {
|
|
458
|
+
type: [
|
|
459
|
+
Boolean,
|
|
460
|
+
Number,
|
|
461
|
+
String
|
|
462
|
+
],
|
|
463
|
+
required: false
|
|
464
|
+
},
|
|
465
|
+
borderColor: {
|
|
466
|
+
type: String,
|
|
467
|
+
required: false
|
|
468
|
+
},
|
|
469
|
+
borderStyle: {
|
|
470
|
+
type: String,
|
|
471
|
+
required: false
|
|
472
|
+
},
|
|
473
|
+
borderTopColor: {
|
|
474
|
+
type: [
|
|
475
|
+
String,
|
|
476
|
+
Object,
|
|
477
|
+
Boolean,
|
|
478
|
+
null
|
|
479
|
+
],
|
|
480
|
+
required: false,
|
|
481
|
+
skipCheck: true
|
|
482
|
+
},
|
|
483
|
+
borderRightColor: {
|
|
484
|
+
type: [
|
|
485
|
+
String,
|
|
486
|
+
Object,
|
|
487
|
+
Boolean,
|
|
488
|
+
null
|
|
489
|
+
],
|
|
490
|
+
required: false,
|
|
491
|
+
skipCheck: true
|
|
492
|
+
},
|
|
493
|
+
borderBottomColor: {
|
|
494
|
+
type: [
|
|
495
|
+
String,
|
|
496
|
+
Object,
|
|
497
|
+
Boolean,
|
|
498
|
+
null
|
|
499
|
+
],
|
|
500
|
+
required: false,
|
|
501
|
+
skipCheck: true
|
|
502
|
+
},
|
|
503
|
+
borderLeftColor: {
|
|
504
|
+
type: [
|
|
505
|
+
String,
|
|
506
|
+
Object,
|
|
507
|
+
Boolean,
|
|
508
|
+
null
|
|
509
|
+
],
|
|
510
|
+
required: false,
|
|
511
|
+
skipCheck: true
|
|
512
|
+
},
|
|
513
|
+
borderInlineStartColor: {
|
|
514
|
+
type: [
|
|
515
|
+
String,
|
|
516
|
+
Object,
|
|
517
|
+
Boolean,
|
|
518
|
+
null
|
|
519
|
+
],
|
|
520
|
+
required: false,
|
|
521
|
+
skipCheck: true
|
|
522
|
+
},
|
|
523
|
+
borderInlineEndColor: {
|
|
524
|
+
type: [
|
|
525
|
+
String,
|
|
526
|
+
Object,
|
|
527
|
+
Boolean,
|
|
528
|
+
null
|
|
529
|
+
],
|
|
530
|
+
required: false,
|
|
531
|
+
skipCheck: true
|
|
532
|
+
},
|
|
533
|
+
borderBlockStartColor: {
|
|
534
|
+
type: [
|
|
535
|
+
String,
|
|
536
|
+
Object,
|
|
537
|
+
Boolean,
|
|
538
|
+
null
|
|
539
|
+
],
|
|
540
|
+
required: false,
|
|
541
|
+
skipCheck: true
|
|
542
|
+
},
|
|
543
|
+
borderBlockEndColor: {
|
|
544
|
+
type: [
|
|
545
|
+
String,
|
|
546
|
+
Object,
|
|
547
|
+
Boolean,
|
|
548
|
+
null
|
|
549
|
+
],
|
|
550
|
+
required: false,
|
|
551
|
+
skipCheck: true
|
|
552
|
+
},
|
|
553
|
+
focused: {
|
|
554
|
+
type: Boolean,
|
|
555
|
+
required: false
|
|
556
|
+
},
|
|
557
|
+
text: {
|
|
558
|
+
type: String,
|
|
559
|
+
required: false
|
|
560
|
+
},
|
|
561
|
+
floating: {
|
|
562
|
+
type: Boolean,
|
|
563
|
+
required: false
|
|
564
|
+
},
|
|
565
|
+
name: {
|
|
566
|
+
type: String,
|
|
567
|
+
required: false
|
|
568
|
+
},
|
|
569
|
+
margin: {
|
|
570
|
+
type: [
|
|
571
|
+
Boolean,
|
|
572
|
+
Number,
|
|
573
|
+
String
|
|
574
|
+
],
|
|
575
|
+
required: false
|
|
576
|
+
},
|
|
577
|
+
marginTop: {
|
|
578
|
+
type: [
|
|
579
|
+
Boolean,
|
|
580
|
+
Number,
|
|
581
|
+
String
|
|
582
|
+
],
|
|
583
|
+
required: false
|
|
584
|
+
},
|
|
585
|
+
marginLeft: {
|
|
586
|
+
type: [
|
|
587
|
+
Boolean,
|
|
588
|
+
Number,
|
|
589
|
+
String
|
|
590
|
+
],
|
|
591
|
+
required: false
|
|
592
|
+
},
|
|
593
|
+
marginBottom: {
|
|
594
|
+
type: [
|
|
595
|
+
Boolean,
|
|
596
|
+
Number,
|
|
597
|
+
String
|
|
598
|
+
],
|
|
599
|
+
required: false
|
|
600
|
+
},
|
|
601
|
+
marginRight: {
|
|
602
|
+
type: [
|
|
603
|
+
Boolean,
|
|
604
|
+
Number,
|
|
605
|
+
String
|
|
606
|
+
],
|
|
607
|
+
required: false
|
|
608
|
+
},
|
|
609
|
+
marginBlock: {
|
|
610
|
+
type: [
|
|
611
|
+
Boolean,
|
|
612
|
+
Number,
|
|
613
|
+
String
|
|
614
|
+
],
|
|
615
|
+
required: false
|
|
616
|
+
},
|
|
617
|
+
marginInline: {
|
|
618
|
+
type: [
|
|
619
|
+
Boolean,
|
|
620
|
+
Number,
|
|
621
|
+
String
|
|
622
|
+
],
|
|
623
|
+
required: false
|
|
624
|
+
},
|
|
625
|
+
marginInlineStart: {
|
|
626
|
+
type: [
|
|
627
|
+
Boolean,
|
|
628
|
+
Number,
|
|
629
|
+
String
|
|
630
|
+
],
|
|
631
|
+
required: false
|
|
632
|
+
},
|
|
633
|
+
marginInlineEnd: {
|
|
634
|
+
type: [
|
|
635
|
+
Boolean,
|
|
636
|
+
Number,
|
|
637
|
+
String
|
|
638
|
+
],
|
|
639
|
+
required: false
|
|
640
|
+
},
|
|
641
|
+
marginBlockStart: {
|
|
642
|
+
type: [
|
|
643
|
+
Boolean,
|
|
644
|
+
Number,
|
|
645
|
+
String
|
|
646
|
+
],
|
|
647
|
+
required: false
|
|
648
|
+
},
|
|
649
|
+
marginBlockEnd: {
|
|
650
|
+
type: [
|
|
651
|
+
Boolean,
|
|
652
|
+
Number,
|
|
653
|
+
String
|
|
654
|
+
],
|
|
655
|
+
required: false
|
|
656
|
+
},
|
|
657
|
+
padding: {
|
|
658
|
+
type: [
|
|
659
|
+
Boolean,
|
|
660
|
+
Number,
|
|
661
|
+
String
|
|
662
|
+
],
|
|
663
|
+
required: false
|
|
664
|
+
},
|
|
665
|
+
paddingTop: {
|
|
666
|
+
type: [
|
|
667
|
+
Boolean,
|
|
668
|
+
Number,
|
|
669
|
+
String
|
|
670
|
+
],
|
|
671
|
+
required: false
|
|
672
|
+
},
|
|
673
|
+
paddingLeft: {
|
|
674
|
+
type: [
|
|
675
|
+
Boolean,
|
|
676
|
+
Number,
|
|
677
|
+
String
|
|
678
|
+
],
|
|
679
|
+
required: false
|
|
680
|
+
},
|
|
681
|
+
paddingBottom: {
|
|
682
|
+
type: [
|
|
683
|
+
Boolean,
|
|
684
|
+
Number,
|
|
685
|
+
String
|
|
686
|
+
],
|
|
687
|
+
required: false
|
|
688
|
+
},
|
|
689
|
+
paddingRight: {
|
|
690
|
+
type: [
|
|
691
|
+
Boolean,
|
|
692
|
+
Number,
|
|
693
|
+
String
|
|
694
|
+
],
|
|
695
|
+
required: false
|
|
696
|
+
},
|
|
697
|
+
paddingBlock: {
|
|
698
|
+
type: [
|
|
699
|
+
Boolean,
|
|
700
|
+
Number,
|
|
701
|
+
String
|
|
702
|
+
],
|
|
703
|
+
required: false
|
|
704
|
+
},
|
|
705
|
+
paddingInline: {
|
|
706
|
+
type: [
|
|
707
|
+
Boolean,
|
|
708
|
+
Number,
|
|
709
|
+
String
|
|
710
|
+
],
|
|
711
|
+
required: false
|
|
712
|
+
},
|
|
713
|
+
paddingInlineStart: {
|
|
714
|
+
type: [
|
|
715
|
+
Boolean,
|
|
716
|
+
Number,
|
|
717
|
+
String
|
|
718
|
+
],
|
|
719
|
+
required: false
|
|
720
|
+
},
|
|
721
|
+
paddingInlineEnd: {
|
|
722
|
+
type: [
|
|
723
|
+
Boolean,
|
|
724
|
+
Number,
|
|
725
|
+
String
|
|
726
|
+
],
|
|
727
|
+
required: false
|
|
728
|
+
},
|
|
729
|
+
paddingBlockStart: {
|
|
730
|
+
type: [
|
|
731
|
+
Boolean,
|
|
732
|
+
Number,
|
|
733
|
+
String
|
|
734
|
+
],
|
|
735
|
+
required: false
|
|
736
|
+
},
|
|
737
|
+
paddingBlockEnd: {
|
|
738
|
+
type: [
|
|
739
|
+
Boolean,
|
|
740
|
+
Number,
|
|
741
|
+
String
|
|
742
|
+
],
|
|
743
|
+
required: false
|
|
744
|
+
},
|
|
745
|
+
rounded: {
|
|
746
|
+
type: [
|
|
747
|
+
Boolean,
|
|
748
|
+
Number,
|
|
749
|
+
String,
|
|
750
|
+
null
|
|
751
|
+
],
|
|
752
|
+
required: false,
|
|
753
|
+
skipCheck: true,
|
|
754
|
+
default: true
|
|
755
|
+
},
|
|
756
|
+
roundedTopRight: {
|
|
757
|
+
type: [
|
|
758
|
+
Boolean,
|
|
759
|
+
Number,
|
|
760
|
+
String
|
|
761
|
+
],
|
|
762
|
+
required: false
|
|
763
|
+
},
|
|
764
|
+
roundedTopLeft: {
|
|
765
|
+
type: [
|
|
766
|
+
Boolean,
|
|
767
|
+
Number,
|
|
768
|
+
String
|
|
769
|
+
],
|
|
770
|
+
required: false
|
|
771
|
+
},
|
|
772
|
+
roundedBottomLeft: {
|
|
773
|
+
type: [
|
|
774
|
+
Boolean,
|
|
775
|
+
Number,
|
|
776
|
+
String
|
|
777
|
+
],
|
|
778
|
+
required: false
|
|
779
|
+
},
|
|
780
|
+
roundedBottomRight: {
|
|
781
|
+
type: [
|
|
782
|
+
Boolean,
|
|
783
|
+
Number,
|
|
784
|
+
String
|
|
785
|
+
],
|
|
786
|
+
required: false
|
|
787
|
+
},
|
|
788
|
+
roundedStartStart: {
|
|
789
|
+
type: [
|
|
790
|
+
Boolean,
|
|
791
|
+
Number,
|
|
792
|
+
String
|
|
793
|
+
],
|
|
794
|
+
required: false
|
|
795
|
+
},
|
|
796
|
+
roundedStartEnd: {
|
|
797
|
+
type: [
|
|
798
|
+
Boolean,
|
|
799
|
+
Number,
|
|
800
|
+
String
|
|
801
|
+
],
|
|
802
|
+
required: false
|
|
803
|
+
},
|
|
804
|
+
roundedEndStart: {
|
|
805
|
+
type: [
|
|
806
|
+
Boolean,
|
|
807
|
+
Number,
|
|
808
|
+
String
|
|
809
|
+
],
|
|
810
|
+
required: false
|
|
811
|
+
},
|
|
812
|
+
roundedEndEnd: {
|
|
813
|
+
type: [
|
|
814
|
+
Boolean,
|
|
815
|
+
Number,
|
|
816
|
+
String
|
|
817
|
+
],
|
|
818
|
+
required: false
|
|
819
|
+
},
|
|
820
|
+
fontSize: {
|
|
821
|
+
type: null,
|
|
822
|
+
required: false
|
|
823
|
+
},
|
|
824
|
+
fontWeight: {
|
|
825
|
+
type: null,
|
|
826
|
+
required: false
|
|
827
|
+
},
|
|
828
|
+
lineHeight: {
|
|
829
|
+
type: null,
|
|
830
|
+
required: false
|
|
831
|
+
},
|
|
832
|
+
letterSpacing: {
|
|
833
|
+
type: null,
|
|
834
|
+
required: false
|
|
835
|
+
},
|
|
836
|
+
active: {
|
|
837
|
+
type: [Boolean, Object],
|
|
838
|
+
required: false
|
|
839
|
+
},
|
|
840
|
+
activeClass: {
|
|
841
|
+
type: String,
|
|
842
|
+
required: false
|
|
843
|
+
},
|
|
844
|
+
variant: {
|
|
845
|
+
type: null,
|
|
846
|
+
required: false
|
|
847
|
+
},
|
|
848
|
+
elevation: {
|
|
849
|
+
type: [Number, String],
|
|
850
|
+
required: false
|
|
851
|
+
},
|
|
852
|
+
size: {
|
|
853
|
+
type: null,
|
|
854
|
+
required: false
|
|
855
|
+
},
|
|
856
|
+
hideDetails: {
|
|
857
|
+
type: [Boolean, String],
|
|
858
|
+
required: false
|
|
859
|
+
},
|
|
860
|
+
hideSpinButtons: {
|
|
861
|
+
type: Boolean,
|
|
862
|
+
required: false
|
|
863
|
+
},
|
|
864
|
+
hint: {
|
|
865
|
+
type: String,
|
|
866
|
+
required: false
|
|
867
|
+
},
|
|
868
|
+
persistentHint: {
|
|
869
|
+
type: Boolean,
|
|
870
|
+
required: false
|
|
871
|
+
},
|
|
872
|
+
messages: {
|
|
873
|
+
type: [Array, String],
|
|
874
|
+
required: false
|
|
875
|
+
},
|
|
876
|
+
height: {
|
|
877
|
+
type: [Number, String],
|
|
878
|
+
required: false
|
|
879
|
+
},
|
|
880
|
+
maxHeight: {
|
|
881
|
+
type: [Number, String],
|
|
882
|
+
required: false
|
|
883
|
+
},
|
|
884
|
+
maxWidth: {
|
|
885
|
+
type: [Number, String],
|
|
886
|
+
required: false
|
|
887
|
+
},
|
|
888
|
+
minHeight: {
|
|
889
|
+
type: [Number, String],
|
|
890
|
+
required: false
|
|
891
|
+
},
|
|
892
|
+
minWidth: {
|
|
893
|
+
type: [Number, String],
|
|
894
|
+
required: false
|
|
895
|
+
},
|
|
896
|
+
width: {
|
|
897
|
+
type: [Number, String],
|
|
898
|
+
required: false
|
|
899
|
+
},
|
|
900
|
+
direction: {
|
|
901
|
+
type: null,
|
|
902
|
+
required: false,
|
|
903
|
+
default: DIRECTION.HORIZONTAL
|
|
904
|
+
},
|
|
905
|
+
errorMessages: {
|
|
906
|
+
type: [Array, String],
|
|
907
|
+
required: false
|
|
908
|
+
},
|
|
909
|
+
maxErrors: {
|
|
910
|
+
type: [Number, String],
|
|
911
|
+
required: false
|
|
912
|
+
},
|
|
913
|
+
readonly: {
|
|
914
|
+
type: Boolean,
|
|
915
|
+
required: false
|
|
916
|
+
},
|
|
917
|
+
rules: {
|
|
918
|
+
type: Array,
|
|
919
|
+
required: false
|
|
920
|
+
},
|
|
921
|
+
modelValue: {
|
|
922
|
+
type: null,
|
|
923
|
+
required: false,
|
|
924
|
+
default: null
|
|
925
|
+
},
|
|
926
|
+
validateOn: {
|
|
927
|
+
type: null,
|
|
928
|
+
required: false
|
|
929
|
+
},
|
|
930
|
+
validationValue: {
|
|
931
|
+
type: null,
|
|
932
|
+
required: false
|
|
933
|
+
},
|
|
934
|
+
appendAvatar: {
|
|
935
|
+
type: String,
|
|
936
|
+
required: false
|
|
937
|
+
},
|
|
938
|
+
appendIcon: {
|
|
939
|
+
type: null,
|
|
940
|
+
required: false
|
|
941
|
+
},
|
|
942
|
+
prependAvatar: {
|
|
943
|
+
type: String,
|
|
944
|
+
required: false
|
|
945
|
+
},
|
|
946
|
+
prependIcon: {
|
|
947
|
+
type: null,
|
|
948
|
+
required: false
|
|
949
|
+
},
|
|
950
|
+
prependAriaLabel: {
|
|
951
|
+
type: String,
|
|
952
|
+
required: false
|
|
953
|
+
},
|
|
954
|
+
appendAriaLabel: {
|
|
955
|
+
type: String,
|
|
956
|
+
required: false
|
|
957
|
+
},
|
|
958
|
+
transition: {
|
|
959
|
+
type: [
|
|
960
|
+
Boolean,
|
|
961
|
+
String,
|
|
962
|
+
Object
|
|
963
|
+
],
|
|
964
|
+
required: false,
|
|
965
|
+
default: () => ({ component: OrigamTranslateScale })
|
|
966
|
+
}
|
|
290
967
|
});
|
|
291
968
|
const { filterProps } = useProps(props);
|
|
292
969
|
defineEmits(["update:modelValue", "update:menu"]);
|
|
@@ -296,181 +973,369 @@ const origamTextFieldRef = ref();
|
|
|
296
973
|
const origamMenuRef = ref();
|
|
297
974
|
const origamColorPickerRef = ref();
|
|
298
975
|
const slots = useSlots();
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
976
|
+
/*********************************************************
|
|
977
|
+
* Value
|
|
978
|
+
*
|
|
979
|
+
* @description
|
|
980
|
+
* Model, selected value, and color-picker interactions.
|
|
981
|
+
********************************************************/
|
|
982
|
+
const model = useVModel(props, "modelValue", COLOR_NULL);
|
|
304
983
|
const handleSelectColor = (color) => {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
984
|
+
model.value = color;
|
|
985
|
+
nextTick(() => {
|
|
986
|
+
if (props.closeOnSelect) {
|
|
987
|
+
menu.value = false;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
311
990
|
};
|
|
991
|
+
/*********************************************************
|
|
992
|
+
* selectedValue (#859)
|
|
993
|
+
*
|
|
994
|
+
* @description
|
|
995
|
+
* Normalises `COLOR_NULL` (`{h:0,s:0,v:0,a:1}`) to `null` — measured
|
|
996
|
+
* defect, confirmed in Chromium: `handleClear` writes `COLOR_NULL` to
|
|
997
|
+
* `model`, a TRUTHY object, while every consumer of `selectedValue`
|
|
998
|
+
* (the template's `v-if="selectedValue"` gating the selection-text
|
|
999
|
+
* span, `hasSelectedValue`, the `:bg-color` swatch fallback) treats it
|
|
1000
|
+
* as "no value" via a truthiness/`!== null` check. Pre-fix, clicking
|
|
1001
|
+
* the clear button left the span rendering the sentinel's own
|
|
1002
|
+
* `JSON.stringify` (`{ "h": 0, "s": 0, "v": 0, "a": 1 }`) instead of
|
|
1003
|
+
* hiding it. `COLOR_NULL` itself stays untouched (it is a published
|
|
1004
|
+
* export — changing its shape would be an API break) and `model`
|
|
1005
|
+
* still holds it internally (`isDirty` still compares against it);
|
|
1006
|
+
* only the PUBLIC read this component exposes downstream is
|
|
1007
|
+
* normalised, at this single pass-through point.
|
|
1008
|
+
*
|
|
1009
|
+
* @description
|
|
1010
|
+
* ⛔ `model.value === COLOR_NULL` (reference equality) does NOT
|
|
1011
|
+
* catch this — measured, first attempt failed silently. `model` is
|
|
1012
|
+
* built on a plain `ref()` inside `useVModel`, and Vue 3 deep-wraps
|
|
1013
|
+
* any OBJECT assigned to a `ref` in a reactive `Proxy` — reading
|
|
1014
|
+
* `model.value` back returns that Proxy, never the original
|
|
1015
|
+
* `COLOR_NULL` literal, so `=== COLOR_NULL` is always `false` even
|
|
1016
|
+
* right after `model.value = COLOR_NULL`. A STRUCTURAL check
|
|
1017
|
+
* (`has(…, ['h','s','v','a'])`, the same helper `parseColor` already
|
|
1018
|
+
* uses for its own HSVA-shape test) survives the Proxy wrap because
|
|
1019
|
+
* it reads through it instead of comparing identities.
|
|
1020
|
+
********************************************************/
|
|
312
1021
|
const selectedValue = computed(() => {
|
|
313
|
-
|
|
314
|
-
|
|
1022
|
+
const v = model.value;
|
|
1023
|
+
return v !== null && typeof v === "object" && has(v, [
|
|
1024
|
+
"h",
|
|
1025
|
+
"s",
|
|
1026
|
+
"v",
|
|
1027
|
+
"a"
|
|
1028
|
+
]) ? null : v;
|
|
315
1029
|
});
|
|
1030
|
+
/*********************************************************
|
|
1031
|
+
* commitTypedColor (#859)
|
|
1032
|
+
*
|
|
1033
|
+
* @description
|
|
1034
|
+
* Reads the RAW text the user types into the underlying
|
|
1035
|
+
* `<origam-text-field>` and commits it to `model` — the piece that
|
|
1036
|
+
* was entirely missing pre-fix. Wired via `@input` / `@change`
|
|
1037
|
+
* (below), NOT a `v-model` on the inner text field.
|
|
1038
|
+
*
|
|
1039
|
+
* @description
|
|
1040
|
+
* ⛔ `v-model:model-value` was tried first and REVERTED — measured
|
|
1041
|
+
* regression, not a style choice. Making the inner
|
|
1042
|
+
* `<origam-text-field>`'s `modelValue` CONTROLLED (both the prop AND
|
|
1043
|
+
* `onUpdate:modelValue` present) changes `useVModel`'s
|
|
1044
|
+
* controlled/uncontrolled detection for that field, which shifted the
|
|
1045
|
+
* render cascade that `useValidation`'s `watch(validationModel, …)`
|
|
1046
|
+
* (`validation.composable.ts:154`) relies on to observe the
|
|
1047
|
+
* `undefined -> value` transition once `validationValue` first
|
|
1048
|
+
* arrives through the two ref-gated `textFieldProps` /
|
|
1049
|
+
* `OrigamTextField`'s own `inputProps` hops. With the extra
|
|
1050
|
+
* reactivity hop, the watch's baseline read already saw the settled
|
|
1051
|
+
* value and never fired again — `rules` stopped being evaluated at
|
|
1052
|
+
* all (TU regression: `OrigamColorPickerField.spec.ts` "#693 …repli
|
|
1053
|
+
* reste le modele", `seen` went from `['#ff0000']` to `[]`).
|
|
1054
|
+
* `@input`/`@change` are plain NATIVE DOM event fallthrough (same
|
|
1055
|
+
* mechanism `@change` already used pre-fix, confirmed reaching the
|
|
1056
|
+
* real `<input>` — see the ticket's own addEventListener probe) and
|
|
1057
|
+
* touch none of TextField's internal v-model machinery.
|
|
1058
|
+
*
|
|
1059
|
+
* @description
|
|
1060
|
+
* A value is committed the instant it becomes a syntactically
|
|
1061
|
+
* COMPLETE CSS color (`isCompleteCssColor` — hex, functional
|
|
1062
|
+
* notation, named color, `var()`), never before. Typing `#ff00aa`
|
|
1063
|
+
* therefore commits progressively (`#ff0` alone is already a valid
|
|
1064
|
+
* 3-digit shorthand and commits; `#ff` does not, and is silently
|
|
1065
|
+
* REJECTED — not written to the model). Committing a syntactically
|
|
1066
|
+
* incomplete value would be a worse defect than the one this fixes.
|
|
1067
|
+
* An empty field clears to `null` — see the dedicated banner on the
|
|
1068
|
+
* empty-string branch below for why that's `null` and NOT
|
|
1069
|
+
* `COLOR_NULL` despite `handleClear` using the latter.
|
|
1070
|
+
*
|
|
1071
|
+
* @description
|
|
1072
|
+
* The underlying `<input>` is never visible (CSS positions it behind
|
|
1073
|
+
* the swatch/hex `colorSelection` span, see the `<style>` block below)
|
|
1074
|
+
* and is left UNCONTROLLED — its own native typed text is exactly
|
|
1075
|
+
* what the browser already shows, nothing here overwrites it. Only
|
|
1076
|
+
* the swatch/span (driven by `model`/`selectedValue`) is the real
|
|
1077
|
+
* visible readout.
|
|
1078
|
+
********************************************************/
|
|
316
1079
|
const commitTypedColor = (raw) => {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
1080
|
+
if (raw === "") {
|
|
1081
|
+
/*********************************************************
|
|
1082
|
+
* `null`, NOT `COLOR_NULL` (#859)
|
|
1083
|
+
*
|
|
1084
|
+
* @description
|
|
1085
|
+
* Deliberate deviation from `handleClear`'s convention. The
|
|
1086
|
+
* template's selection-text span is gated on
|
|
1087
|
+
* `v-if="selectedValue"` (a TRUTHY check, not `!== null`), and
|
|
1088
|
+
* `COLOR_NULL` (`{h:0,s:0,v:0,a:1}`) is a truthy object —
|
|
1089
|
+
* writing it here renders the span with a stringified object
|
|
1090
|
+
* instead of hiding it (caught by this ticket's own e2e spec:
|
|
1091
|
+
* clearing the typed input left 1
|
|
1092
|
+
* `.origam-color-picker-field__selection-text` in the DOM
|
|
1093
|
+
* where 0 was expected). `null` is what the field's OWN
|
|
1094
|
+
* initial/untouched state already uses and correctly hides
|
|
1095
|
+
* the span.
|
|
1096
|
+
********************************************************/
|
|
1097
|
+
model.value = null;
|
|
1098
|
+
return;
|
|
1099
|
+
}
|
|
1100
|
+
if (isCompleteCssColor(raw)) {
|
|
1101
|
+
model.value = raw;
|
|
1102
|
+
}
|
|
324
1103
|
};
|
|
1104
|
+
/*********************************************************
|
|
1105
|
+
* effectiveValidationValue (#693)
|
|
1106
|
+
*
|
|
1107
|
+
* @description
|
|
1108
|
+
* This was previously named `validationValue`, a bare `const` that
|
|
1109
|
+
* SHADOWED the `validationValue` PROP (`IColorPickerFieldProps` ->
|
|
1110
|
+
* `ITextFieldProps` -> `IInputProps` ->
|
|
1111
|
+
* `IValidationProps.validationValue`, `validation.interface.ts:47`)
|
|
1112
|
+
* inside this `<script lang="ts" setup>` block. The template's
|
|
1113
|
+
* `:validation-value="validationValue"` therefore always resolved to
|
|
1114
|
+
* this model-derived local, never to the consumer's prop — and since
|
|
1115
|
+
* `validationValue` is also stripped from the `filterProps` passthrough
|
|
1116
|
+
* below, there was no second path either: a
|
|
1117
|
+
* `<origam-color-picker-field :validation-value="somethingElse" />`
|
|
1118
|
+
* silently validated against the model. Same defect family as #622 /
|
|
1119
|
+
* #665 / #666.
|
|
1120
|
+
*
|
|
1121
|
+
* @description
|
|
1122
|
+
* The fallback ladder mirrors `useValidation` exactly
|
|
1123
|
+
* (`validation.composable.ts:52`): `undefined` means "not supplied" and
|
|
1124
|
+
* falls back to the model, ANY other value — `null` included — wins.
|
|
1125
|
+
********************************************************/
|
|
325
1126
|
const effectiveValidationValue = computed(() => {
|
|
326
|
-
|
|
1127
|
+
return props.validationValue === undefined ? model.value : props.validationValue;
|
|
327
1128
|
});
|
|
328
1129
|
const hasSelectedValue = computed(() => {
|
|
329
|
-
|
|
1130
|
+
return selectedValue.value !== null;
|
|
330
1131
|
});
|
|
1132
|
+
/*********************************************************
|
|
1133
|
+
* Menu
|
|
1134
|
+
*
|
|
1135
|
+
* @description
|
|
1136
|
+
* Menu open/close state management and disabled guard.
|
|
1137
|
+
********************************************************/
|
|
331
1138
|
const menuState = useVModel(props, "menu");
|
|
332
1139
|
const menu = computed({
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
1140
|
+
get: () => menuState.value,
|
|
1141
|
+
set: (v) => {
|
|
1142
|
+
if (menuState.value && !v && origamMenuRef.value?.openChildren) {
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
menuState.value = v;
|
|
1146
|
+
}
|
|
340
1147
|
});
|
|
341
1148
|
const isFocused = shallowRef(false);
|
|
342
1149
|
const form = inject(ORIGAM_FORM_KEY, null);
|
|
343
1150
|
const menuDisabled = computed(() => {
|
|
344
|
-
|
|
1151
|
+
return props.readonly || form?.isReadonly.value;
|
|
345
1152
|
});
|
|
1153
|
+
// Typography bridge across the teleport — see `useTeleportTypography` for
|
|
1154
|
+
// the full rationale. The popup's channel labels (`origam-color-picker-edit__label`)
|
|
1155
|
+
// and, when a title is set, its `origam-picker-title` header size themselves
|
|
1156
|
+
// with `rem`-based tokens, so they need the field's REAL font-size republished
|
|
1157
|
+
// as those specific tokens, not just inherited.
|
|
346
1158
|
const { typographyStyles: menuTypographyStyles } = useTeleportTypography(origamTextFieldRef, menu, (fontSize) => ({
|
|
347
|
-
|
|
348
|
-
|
|
1159
|
+
"--origam-picker-title---font-size": fontSize,
|
|
1160
|
+
"--origam-color-picker-edit__label---font-size": fontSize
|
|
349
1161
|
}));
|
|
350
1162
|
const comboboxAriaAttrs = computed(() => ({
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
1163
|
+
role: "combobox",
|
|
1164
|
+
"aria-haspopup": "dialog",
|
|
1165
|
+
"aria-expanded": menu.value ? "true" : "false"
|
|
354
1166
|
}));
|
|
355
1167
|
const menuProps = computed(() => {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
1168
|
+
const consumerContentProps = props.menuProps?.contentProps ?? {};
|
|
1169
|
+
return {
|
|
1170
|
+
...props.menuProps,
|
|
1171
|
+
activatorProps: {
|
|
1172
|
+
/*********************************************************
|
|
1173
|
+
* role + aria-haspopup — #818
|
|
1174
|
+
*
|
|
1175
|
+
* @description
|
|
1176
|
+
* `'colorpickerbox'` was never a valid `aria-haspopup` token
|
|
1177
|
+
* (spec allows `false|true|menu|listbox|tree|grid|dialog`) —
|
|
1178
|
+
* axe-core's `aria-valid-attr-value` flagged it, measured
|
|
1179
|
+
* against a real browser. The popup is a free-form panel
|
|
1180
|
+
* (a color canvas + swatches), not a list of options, so
|
|
1181
|
+
* `'dialog'` is the correct token — same family as the
|
|
1182
|
+
* WAI-ARIA "Date Picker Dialog" pattern `OrigamDatePickerField`
|
|
1183
|
+
* uses right below.
|
|
1184
|
+
*
|
|
1185
|
+
* @description
|
|
1186
|
+
* #1308 — role + `aria-haspopup`/`aria-expanded` live on the <input>
|
|
1187
|
+
* (`comboboxAriaAttrs`), as in `OrigamSelect` (#1247).
|
|
1188
|
+
* `activator="parent"` is the role-less `.origam-field` wrapper, so the
|
|
1189
|
+
* menu's default ARIA is neutralised there.
|
|
1190
|
+
********************************************************/
|
|
1191
|
+
...MENU_WRAPPER_ARIA_RESET,
|
|
1192
|
+
...props.menuProps?.activatorProps || {}
|
|
1193
|
+
},
|
|
1194
|
+
contentProps: {
|
|
1195
|
+
...consumerContentProps,
|
|
1196
|
+
// The consumer's own style is listed last so it still wins —
|
|
1197
|
+
// the bridge is a default, not a lock.
|
|
1198
|
+
style: [menuTypographyStyles.value, consumerContentProps.style]
|
|
1199
|
+
}
|
|
1200
|
+
};
|
|
389
1201
|
});
|
|
1202
|
+
/*********************************************************
|
|
1203
|
+
* Event handlers
|
|
1204
|
+
*
|
|
1205
|
+
* @description
|
|
1206
|
+
* Clear, mouse, blur, change and after-leave interactions.
|
|
1207
|
+
********************************************************/
|
|
390
1208
|
const handleClear = () => {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
1209
|
+
model.value = COLOR_NULL;
|
|
1210
|
+
if (props.openOnClear) {
|
|
1211
|
+
menu.value = true;
|
|
1212
|
+
}
|
|
395
1213
|
};
|
|
396
1214
|
const handleMousedownControl = () => {
|
|
397
|
-
|
|
398
|
-
|
|
1215
|
+
if (menuDisabled.value) return;
|
|
1216
|
+
menu.value = !menu.value;
|
|
399
1217
|
};
|
|
400
1218
|
const handleBlur = (e) => {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
1219
|
+
if (!origamColorPickerRef.value?.$el.contains(e.relatedTarget)) {
|
|
1220
|
+
menu.value = false;
|
|
1221
|
+
}
|
|
1222
|
+
if (hasSelectedValue.value) {
|
|
1223
|
+
isFocused.value = true;
|
|
1224
|
+
}
|
|
407
1225
|
};
|
|
408
1226
|
const handleInput = (e) => {
|
|
409
|
-
|
|
1227
|
+
commitTypedColor(e.target?.value ?? "");
|
|
410
1228
|
};
|
|
411
1229
|
const handleChange = (e) => {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
1230
|
+
if (matchesSelector(origamTextFieldRef.value, ":autofill") || matchesSelector(origamTextFieldRef.value, ":-webkit-autofill")) {
|
|
1231
|
+
commitTypedColor(e.target?.value ?? "");
|
|
1232
|
+
}
|
|
415
1233
|
};
|
|
416
1234
|
const handleAfterLeave = () => {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
1235
|
+
if (isFocused.value) {
|
|
1236
|
+
origamTextFieldRef.value?.focus();
|
|
1237
|
+
}
|
|
420
1238
|
};
|
|
1239
|
+
/*********************************************************
|
|
1240
|
+
* Props forwarding
|
|
1241
|
+
*
|
|
1242
|
+
* @description
|
|
1243
|
+
* Filtered props passed down to inner components.
|
|
1244
|
+
********************************************************/
|
|
1245
|
+
/*********************************************************
|
|
1246
|
+
* Forwarded props
|
|
1247
|
+
********************************************************/
|
|
421
1248
|
const textFieldProps = computed(() => {
|
|
422
|
-
|
|
1249
|
+
return filterPropsOf(OrigamTextField, props, [
|
|
1250
|
+
"class",
|
|
1251
|
+
"id",
|
|
1252
|
+
"style",
|
|
1253
|
+
"dirty",
|
|
1254
|
+
"modelValue",
|
|
1255
|
+
"placeholder",
|
|
1256
|
+
"validationValue",
|
|
1257
|
+
"focused"
|
|
1258
|
+
]);
|
|
423
1259
|
});
|
|
424
1260
|
const colorPickerProps = computed(() => {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
1261
|
+
// Strip the FIELD-specific visual props (`border`, `rounded`,
|
|
1262
|
+
// `density`, `direction`, …) before forwarding to the inner
|
|
1263
|
+
// `<origam-color-picker>`. Pre-fix the field's defaults
|
|
1264
|
+
// (`rounded: true`, `border: true` — meant for the trigger
|
|
1265
|
+
// outline) cascaded through `filterProps` to the picker, which
|
|
1266
|
+
// in turn propagated to its `<origam-sheet>`. Sheet's
|
|
1267
|
+
// `--rounded` modifier resolves to `2xl` (24px), 3× larger
|
|
1268
|
+
// than the popup menu's 8px outer radius — leaving a visible
|
|
1269
|
+
// white gap at every corner of the popup, reported by the
|
|
1270
|
+
// user as "le border ne devrait pas exister et surtout s'il
|
|
1271
|
+
// existe devrait prendre vraiment les bord de la popup".
|
|
1272
|
+
return origamColorPickerRef.value?.filterProps(props, [
|
|
1273
|
+
"class",
|
|
1274
|
+
"id",
|
|
1275
|
+
"style",
|
|
1276
|
+
"modelValue",
|
|
1277
|
+
"rounded",
|
|
1278
|
+
"border",
|
|
1279
|
+
"borderColor",
|
|
1280
|
+
"borderStyle",
|
|
1281
|
+
"density",
|
|
1282
|
+
"direction"
|
|
1283
|
+
]);
|
|
437
1284
|
});
|
|
438
1285
|
const isDirty = computed(() => {
|
|
439
|
-
|
|
1286
|
+
return model.value === COLOR_NULL;
|
|
440
1287
|
});
|
|
441
1288
|
const placeholder = computed(() => {
|
|
442
|
-
|
|
1289
|
+
return isDirty.value || !isFocused.value && props.label && !props.persistentPlaceholder ? undefined : props.placeholder;
|
|
443
1290
|
});
|
|
1291
|
+
/*********************************************************
|
|
1292
|
+
* Accessible name (#665, #1251)
|
|
1293
|
+
*
|
|
1294
|
+
* @description
|
|
1295
|
+
* `aria-label` / `title` mirror `props.label` only. Without a `label`
|
|
1296
|
+
* prop NOTHING is emitted: the name then comes from an external
|
|
1297
|
+
* `<label for>` / the consumer's `aria-labelledby`, which an `aria-label`
|
|
1298
|
+
* would override (it ranks above `<label for>` in the name computation).
|
|
1299
|
+
* The open/close wording stays on the toggle button, not on the input.
|
|
1300
|
+
********************************************************/
|
|
444
1301
|
watch(selectedValue, () => {
|
|
445
|
-
|
|
1302
|
+
isFocused.value = hasSelectedValue.value;
|
|
446
1303
|
}, {
|
|
447
|
-
|
|
448
|
-
|
|
1304
|
+
immediate: true,
|
|
1305
|
+
deep: true
|
|
449
1306
|
});
|
|
1307
|
+
/*********************************************************
|
|
1308
|
+
* Class & Style
|
|
1309
|
+
*
|
|
1310
|
+
* @description
|
|
1311
|
+
* Root element classes and inline styles.
|
|
1312
|
+
********************************************************/
|
|
450
1313
|
const colorPickerFieldStyles = computed(() => {
|
|
451
|
-
|
|
452
|
-
props.style
|
|
453
|
-
];
|
|
1314
|
+
return [props.style];
|
|
454
1315
|
});
|
|
455
1316
|
const colorPickerFieldClasses = computed(() => {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
props.class
|
|
462
|
-
];
|
|
1317
|
+
return [
|
|
1318
|
+
"origam-color-picker-field",
|
|
1319
|
+
{ "origam-color-picker-field--active-menu": menu.value },
|
|
1320
|
+
props.class
|
|
1321
|
+
];
|
|
463
1322
|
});
|
|
464
1323
|
const { id, css, load, isLoaded, unload } = useStyle(colorPickerFieldStyles, () => props.id);
|
|
1324
|
+
/*********************************************************
|
|
1325
|
+
* Expose
|
|
1326
|
+
*
|
|
1327
|
+
* @description
|
|
1328
|
+
* Public API surface exposed to parent components.
|
|
1329
|
+
********************************************************/
|
|
465
1330
|
defineExpose(forwardRefs({
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
1331
|
+
filterProps,
|
|
1332
|
+
isFocused,
|
|
1333
|
+
menu,
|
|
1334
|
+
css,
|
|
1335
|
+
id,
|
|
1336
|
+
load,
|
|
1337
|
+
unload,
|
|
1338
|
+
isLoaded
|
|
474
1339
|
}, origamTextFieldRef));
|
|
475
1340
|
</script>
|
|
476
1341
|
|