quasar 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/AppFullscreen.json +15 -8
- package/dist/api/BottomSheet.json +6 -0
- package/dist/api/Cookies.json +4 -3
- package/dist/api/Dialog.json +24 -10
- package/dist/api/Loading.json +0 -2
- package/dist/api/LoadingBar.json +8 -3
- package/dist/api/Morph.json +14 -7
- package/dist/api/Mutation.json +1 -1
- package/dist/api/Notify.json +41 -27
- package/dist/api/QAjaxBar.json +6 -3
- package/dist/api/QBreadcrumbs.json +8 -4
- package/dist/api/QBreadcrumbsEl.json +35 -12
- package/dist/api/QBtn.json +36 -17
- package/dist/api/QBtnDropdown.json +41 -20
- package/dist/api/QBtnToggle.json +7 -2
- package/dist/api/QCard.json +2 -1
- package/dist/api/QCardActions.json +2 -1
- package/dist/api/QCardSection.json +2 -1
- package/dist/api/QCarousel.json +10 -5
- package/dist/api/QCarouselControl.json +4 -2
- package/dist/api/QChatMessage.json +0 -4
- package/dist/api/QCheckbox.json +8 -4
- package/dist/api/QChip.json +2 -1
- package/dist/api/QCircularProgress.json +14 -7
- package/dist/api/QColor.json +6 -3
- package/dist/api/QDate.json +33 -5
- package/dist/api/QDialog.json +8 -4
- package/dist/api/QDrawer.json +10 -5
- package/dist/api/QEditor.json +10 -5
- package/dist/api/QExpansionItem.json +36 -13
- package/dist/api/QFab.json +41 -6
- package/dist/api/QFabAction.json +12 -2
- package/dist/api/QField.json +3 -1
- package/dist/api/QFile.json +8 -2
- package/dist/api/QFooter.json +2 -1
- package/dist/api/QForm.json +1 -1
- package/dist/api/QHeader.json +4 -2
- package/dist/api/QIcon.json +2 -1
- package/dist/api/QImg.json +8 -4
- package/dist/api/QInfiniteScroll.json +6 -3
- package/dist/api/QInnerLoading.json +8 -4
- package/dist/api/QInput.json +3 -1
- package/dist/api/QIntersection.json +4 -2
- package/dist/api/QItem.json +33 -11
- package/dist/api/QKnob.json +8 -4
- package/dist/api/QLayout.json +9 -1
- package/dist/api/QLinearProgress.json +4 -2
- package/dist/api/QMarkupTable.json +2 -1
- package/dist/api/QMenu.json +8 -4
- package/dist/api/QNoSsr.json +2 -1
- package/dist/api/QOptionGroup.json +76 -5
- package/dist/api/QPage.json +2 -1
- package/dist/api/QPageScroller.json +8 -4
- package/dist/api/QPageSticky.json +2 -1
- package/dist/api/QPagination.json +10 -6
- package/dist/api/QParallax.json +2 -1
- package/dist/api/QPopupEdit.json +5 -2
- package/dist/api/QPopupProxy.json +7 -4
- package/dist/api/QRange.json +600 -111
- package/dist/api/QRating.json +5 -2
- package/dist/api/QResizeObserver.json +4 -1
- package/dist/api/QRouteTab.json +35 -13
- package/dist/api/QScrollArea.json +29 -6
- package/dist/api/QScrollObserver.json +13 -1
- package/dist/api/QSelect.json +76 -47
- package/dist/api/QSeparator.json +2 -1
- package/dist/api/QSkeleton.json +8 -4
- package/dist/api/QSlideItem.json +9 -0
- package/dist/api/QSlideTransition.json +2 -1
- package/dist/api/QSlider.json +512 -43
- package/dist/api/QSpinner.json +2 -1
- package/dist/api/QSplitter.json +4 -2
- package/dist/api/QStep.json +2 -1
- package/dist/api/QStepper.json +6 -3
- package/dist/api/QTab.json +4 -2
- package/dist/api/QTabPanels.json +6 -3
- package/dist/api/QTable.json +154 -88
- package/dist/api/QTabs.json +4 -2
- package/dist/api/QTime.json +16 -4
- package/dist/api/QTimeline.json +4 -2
- package/dist/api/QTimelineEntry.json +4 -2
- package/dist/api/QToggle.json +8 -4
- package/dist/api/QTooltip.json +18 -9
- package/dist/api/QTree.json +34 -19
- package/dist/api/QUploader.json +28 -6
- package/dist/api/QVirtualScroll.json +26 -11
- package/dist/api/ScrollFire.json +1 -1
- package/dist/api/TouchHold.json +2 -1
- package/dist/api/TouchRepeat.json +2 -1
- package/dist/api/TouchSwipe.json +2 -1
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +6 -0
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +268 -184
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +340 -263
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +272 -212
- package/dist/quasar.umd.js +16532 -16216
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/transforms/loader-asset-urls.json +20 -0
- package/dist/types/api/cookies.d.ts +1 -1
- package/dist/types/api/slider.d.ts +46 -0
- package/dist/types/api/validation.d.ts +4 -0
- package/dist/types/api.d.ts +2 -0
- package/dist/types/composables.d.ts +7 -3
- package/dist/types/extras/icon-set.d.ts +1 -0
- package/dist/types/index.d.ts +759 -177
- package/dist/vetur/quasar-attributes.json +251 -83
- package/dist/vetur/quasar-tags.json +59 -17
- package/dist/web-types/web-types.json +587 -155
- package/icon-set/svg-ionicons-v6.js +225 -0
- package/package.json +2 -2
- package/src/api.extends.json +0 -1
- package/src/components/breadcrumbs/QBreadcrumbs.js +7 -2
- package/src/components/breadcrumbs/QBreadcrumbs.sass +0 -3
- package/src/components/breadcrumbs/QBreadcrumbsEl.js +14 -8
- package/src/components/btn/QBtn.js +6 -5
- package/src/components/btn/use-btn.js +21 -21
- package/src/components/btn/use-btn.json +22 -13
- package/src/components/btn-dropdown/QBtnDropdown.json +1 -0
- package/src/components/btn-toggle/QBtnToggle.json +3 -0
- package/src/components/checkbox/use-checkbox.js +1 -1
- package/src/components/chip/QChip.json +1 -2
- package/src/components/color/QColor.js +32 -26
- package/src/components/color/QColor.sass +10 -23
- package/src/components/date/QDate.json +25 -1
- package/src/components/date/QDate.sass +2 -0
- package/src/components/drawer/QDrawer.js +18 -15
- package/src/components/editor/QEditor.js +3 -3
- package/src/components/editor/QEditor.sass +10 -1
- package/src/components/expansion-item/QExpansionItem.js +4 -1
- package/src/components/expansion-item/QExpansionItem.json +2 -1
- package/src/components/fab/QFab.js +18 -12
- package/src/components/fab/QFab.json +36 -1
- package/src/components/fab/QFab.sass +1 -1
- package/src/components/fab/QFabAction.js +14 -7
- package/src/components/fab/QFabAction.json +10 -0
- package/src/components/field/QField.json +3 -3
- package/src/components/file/QFile.js +12 -5
- package/src/components/file/QFile.json +9 -6
- package/src/components/file/QFile.sass +4 -2
- package/src/components/footer/QFooter.js +1 -1
- package/src/components/form/QForm.json +2 -3
- package/src/components/header/QHeader.js +1 -1
- package/src/components/icon/QIcon.js +2 -2
- package/src/components/infinite-scroll/QInfiniteScroll.js +4 -5
- package/src/components/item/QItem.js +2 -3
- package/src/components/layout/QLayout.json +8 -1
- package/src/components/linear-progress/QLinearProgress.js +3 -2
- package/src/components/linear-progress/QLinearProgress.sass +1 -1
- package/src/components/option-group/QOptionGroup.js +3 -0
- package/src/components/option-group/QOptionGroup.json +48 -2
- package/src/components/pagination/QPagination.json +0 -1
- package/src/components/parallax/QParallax.js +4 -2
- package/src/components/popup-edit/QPopupEdit.js +2 -5
- package/src/components/popup-edit/QPopupEdit.json +1 -0
- package/src/components/popup-proxy/QPopupProxy.json +2 -1
- package/src/components/radio/QRadio.js +2 -7
- package/src/components/range/QRange.js +103 -222
- package/src/components/range/QRange.json +11 -121
- package/src/components/rating/QRating.json +1 -1
- package/src/components/resize-observer/QResizeObserver.json +2 -0
- package/src/components/scroll-area/QScrollArea.js +11 -14
- package/src/components/scroll-area/QScrollArea.json +29 -9
- package/src/components/scroll-observer/QScrollObserver.json +11 -0
- package/src/components/select/QSelect.js +1 -1
- package/src/components/select/QSelect.json +41 -15
- package/src/components/slide-item/QSlideItem.json +9 -0
- package/src/components/slider/QSlider.js +46 -132
- package/src/components/slider/QSlider.json +1 -121
- package/src/components/slider/QSlider.sass +198 -132
- package/src/components/slider/use-slider.js +453 -109
- package/src/components/slider/use-slider.json +546 -0
- package/src/components/stepper/QStepper.js +3 -3
- package/src/components/stepper/QStepper.sass +24 -26
- package/src/components/table/QTable.js +27 -47
- package/src/components/table/QTable.json +104 -55
- package/src/components/table/table-pagination.js +4 -0
- package/src/components/tabs/QRouteTab.js +1 -2
- package/src/components/tabs/QRouteTab.json +0 -7
- package/src/components/tabs/QTabs.js +71 -20
- package/src/components/tabs/use-tab.js +26 -13
- package/src/components/time/QTime.json +8 -0
- package/src/components/tree/QTree.js +14 -12
- package/src/components/tree/QTree.json +26 -21
- package/src/components/tree/QTree.sass +45 -41
- package/src/components/uploader/QUploader.json +14 -2
- package/src/components/uploader/uploader-core.js +16 -9
- package/src/components/uploader/xhr-uploader-plugin.json +8 -3
- package/src/components/virtual-scroll/QVirtualScroll.json +15 -0
- package/src/components/virtual-scroll/QVirtualScroll.sass +1 -0
- package/src/components/virtual-scroll/use-virtual-scroll.js +30 -17
- package/src/components/virtual-scroll/use-virtual-scroll.json +7 -5
- package/src/composables/private/use-field.js +7 -7
- package/src/composables/private/use-file.js +20 -5
- package/src/composables/private/use-form.js +2 -3
- package/src/composables/private/use-fullscreen.js +15 -4
- package/src/composables/private/use-router-link.js +44 -23
- package/src/composables/private/use-router-link.json +26 -10
- package/src/composables/private/use-split-attrs.js +12 -9
- package/src/composables/private/use-validate.js +21 -15
- package/src/composables/private/use-validate.json +1 -0
- package/src/composables/use-dialog-plugin-component.js +1 -0
- package/src/css/core/helpers.sass +3 -0
- package/src/css/core/positioning.sass +5 -0
- package/src/directives/Mutation.json +2 -3
- package/src/directives/ScrollFire.js +1 -0
- package/src/directives/ScrollFire.json +2 -3
- package/src/icon-set.js +2 -4
- package/src/plugins/AppFullscreen.js +70 -53
- package/src/plugins/AppFullscreen.json +8 -8
- package/src/plugins/AppVisibility.js +2 -3
- package/src/plugins/BottomSheet.js +3 -5
- package/src/plugins/Cookies.json +2 -2
- package/src/plugins/Dialog.js +3 -5
- package/src/plugins/Dialog.json +6 -5
- package/src/plugins/LoadingBar.js +17 -18
- package/src/plugins/LoadingBar.json +4 -3
- package/src/plugins/Notify.js +296 -295
- package/src/plugins/Notify.json +13 -19
- package/src/plugins/Platform.js +14 -14
- package/src/utils/date.js +4 -4
- package/src/utils/dom.js +2 -2
- package/src/utils/open-url.js +2 -2
- package/src/utils/patterns.js +1 -0
- package/src/utils/private/define-reactive-plugin.js +10 -8
- package/src/utils/private/global-dialog.js +6 -8
- package/src/utils/private/global-dialog.json +6 -0
- package/src/utils/private/inject-obj-prop.js +13 -0
- package/src/utils/private/is.js +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ref, computed, withDirectives, getCurrentInstance } from 'vue'
|
|
1
|
+
import { h, ref, computed, withDirectives, onBeforeUnmount, getCurrentInstance } from 'vue'
|
|
2
2
|
|
|
3
3
|
import useDark, { useDarkProps } from '../../composables/private/use-dark.js'
|
|
4
4
|
|
|
@@ -18,6 +18,11 @@ const dirProps = {
|
|
|
18
18
|
vertical: { offset: 'offsetY', scroll: 'scrollTop', dir: 'down', dist: 'y' },
|
|
19
19
|
horizontal: { offset: 'offsetX', scroll: 'scrollLeft', dir: 'right', dist: 'x' }
|
|
20
20
|
}
|
|
21
|
+
const panOpts = {
|
|
22
|
+
prevent: true,
|
|
23
|
+
mouse: true,
|
|
24
|
+
mouseAllDir: true
|
|
25
|
+
}
|
|
21
26
|
|
|
22
27
|
export default createComponent({
|
|
23
28
|
name: 'QScrollArea',
|
|
@@ -173,7 +178,7 @@ export default createComponent({
|
|
|
173
178
|
)
|
|
174
179
|
|
|
175
180
|
const mainStyle = computed(() => (
|
|
176
|
-
scroll.vertical.thumbHidden.value === true
|
|
181
|
+
scroll.vertical.thumbHidden.value === true && scroll.horizontal.thumbHidden.value === true
|
|
177
182
|
? props.contentStyle
|
|
178
183
|
: props.contentActiveStyle
|
|
179
184
|
))
|
|
@@ -182,24 +187,14 @@ export default createComponent({
|
|
|
182
187
|
TouchPan,
|
|
183
188
|
e => { onPanThumb(e, 'vertical') },
|
|
184
189
|
void 0,
|
|
185
|
-
{
|
|
186
|
-
vertical: true,
|
|
187
|
-
prevent: true,
|
|
188
|
-
mouse: true,
|
|
189
|
-
mouseAllDir: true
|
|
190
|
-
}
|
|
190
|
+
{ vertical: true, ...panOpts }
|
|
191
191
|
] ]
|
|
192
192
|
|
|
193
193
|
const thumbHorizDir = [ [
|
|
194
194
|
TouchPan,
|
|
195
195
|
e => { onPanThumb(e, 'horizontal') },
|
|
196
196
|
void 0,
|
|
197
|
-
{
|
|
198
|
-
horizontal: true,
|
|
199
|
-
prevent: true,
|
|
200
|
-
mouse: true,
|
|
201
|
-
mouseAllDir: true
|
|
202
|
-
}
|
|
197
|
+
{ horizontal: true, ...panOpts }
|
|
203
198
|
] ]
|
|
204
199
|
|
|
205
200
|
function getScroll () {
|
|
@@ -380,6 +375,8 @@ export default createComponent({
|
|
|
380
375
|
}
|
|
381
376
|
})
|
|
382
377
|
|
|
378
|
+
onBeforeUnmount(emitScroll.cancel)
|
|
379
|
+
|
|
383
380
|
return () => {
|
|
384
381
|
return h('div', {
|
|
385
382
|
class: classes.value,
|
|
@@ -98,49 +98,58 @@
|
|
|
98
98
|
"desc": "An object containing scroll information",
|
|
99
99
|
"definition": {
|
|
100
100
|
"ref": {
|
|
101
|
-
"type": "
|
|
102
|
-
"
|
|
103
|
-
"
|
|
101
|
+
"type": "Component",
|
|
102
|
+
"tsType": "QScrollArea",
|
|
103
|
+
"required": true,
|
|
104
|
+
"desc": "Vue reference to the QScrollArea which triggered the event"
|
|
104
105
|
},
|
|
105
106
|
|
|
106
107
|
"verticalPosition": {
|
|
107
108
|
"type": "Number",
|
|
109
|
+
"required": true,
|
|
108
110
|
"desc": "Vertical scroll position (in px)",
|
|
109
111
|
"__exemption": [ "examples" ]
|
|
110
112
|
},
|
|
111
113
|
"verticalPercentage": {
|
|
112
114
|
"type": "Number",
|
|
115
|
+
"required": true,
|
|
113
116
|
"desc": "Vertical scroll percentage (0.0 <= x <= 1.0)",
|
|
114
117
|
"__exemption": [ "examples" ]
|
|
115
118
|
},
|
|
116
119
|
"verticalSize": {
|
|
117
120
|
"type": "Number",
|
|
121
|
+
"required": true,
|
|
118
122
|
"desc": "Vertical scroll size (in px)",
|
|
119
123
|
"__exemption": [ "examples" ]
|
|
120
124
|
},
|
|
121
125
|
"verticalContainerSize": {
|
|
122
126
|
"type": "Number",
|
|
127
|
+
"required": true,
|
|
123
128
|
"desc": "Height of the container (in px)",
|
|
124
129
|
"__exemption": [ "examples" ]
|
|
125
130
|
},
|
|
126
131
|
|
|
127
132
|
"horizontalPosition": {
|
|
128
133
|
"type": "Number",
|
|
134
|
+
"required": true,
|
|
129
135
|
"desc": "Horizontal scroll position (in px)",
|
|
130
136
|
"__exemption": [ "examples" ]
|
|
131
137
|
},
|
|
132
138
|
"horizontalPercentage": {
|
|
133
139
|
"type": "Number",
|
|
140
|
+
"required": true,
|
|
134
141
|
"desc": "Horizontal scroll percentage (0.0 <= x <= 1.0)",
|
|
135
142
|
"__exemption": [ "examples" ]
|
|
136
143
|
},
|
|
137
144
|
"horizontalSize": {
|
|
138
145
|
"type": "Number",
|
|
146
|
+
"required": true,
|
|
139
147
|
"desc": "Horizontal scroll size (in px)",
|
|
140
148
|
"__exemption": [ "examples" ]
|
|
141
149
|
},
|
|
142
150
|
"horizontalContainerSize": {
|
|
143
151
|
"type": "Number",
|
|
152
|
+
"required": true,
|
|
144
153
|
"desc": "Width of the container (in px)",
|
|
145
154
|
"__exemption": [ "examples" ]
|
|
146
155
|
}
|
|
@@ -154,9 +163,8 @@
|
|
|
154
163
|
"getScrollTarget": {
|
|
155
164
|
"desc": "Get the scrolling DOM element target",
|
|
156
165
|
"returns": {
|
|
157
|
-
"type": "
|
|
158
|
-
"desc": "DOM element upon which scrolling takes place"
|
|
159
|
-
"__exemption": [ "examples" ]
|
|
166
|
+
"type": "Element",
|
|
167
|
+
"desc": "DOM element upon which scrolling takes place"
|
|
160
168
|
}
|
|
161
169
|
},
|
|
162
170
|
|
|
@@ -169,42 +177,50 @@
|
|
|
169
177
|
"definition": {
|
|
170
178
|
"verticalPosition": {
|
|
171
179
|
"type": "Number",
|
|
180
|
+
"required": true,
|
|
172
181
|
"desc": "Vertical scroll position (in px)",
|
|
173
182
|
"__exemption": [ "examples" ]
|
|
174
183
|
},
|
|
175
184
|
"verticalPercentage": {
|
|
176
185
|
"type": "Number",
|
|
186
|
+
"required": true,
|
|
177
187
|
"desc": "Vertical scroll percentage (0.0 <= x <= 1.0)",
|
|
178
188
|
"__exemption": [ "examples" ]
|
|
179
189
|
},
|
|
180
190
|
"verticalSize": {
|
|
181
191
|
"type": "Number",
|
|
192
|
+
"required": true,
|
|
182
193
|
"desc": "Vertical scroll size (in px)",
|
|
183
194
|
"__exemption": [ "examples" ]
|
|
184
195
|
},
|
|
185
196
|
"verticalContainerSize": {
|
|
186
197
|
"type": "Number",
|
|
198
|
+
"required": true,
|
|
187
199
|
"desc": "Height of the container (in px)",
|
|
188
200
|
"__exemption": [ "examples" ]
|
|
189
201
|
},
|
|
190
202
|
|
|
191
203
|
"horizontalPosition": {
|
|
192
204
|
"type": "Number",
|
|
205
|
+
"required": true,
|
|
193
206
|
"desc": "Horizontal scroll position (in px)",
|
|
194
207
|
"__exemption": [ "examples" ]
|
|
195
208
|
},
|
|
196
209
|
"horizontalPercentage": {
|
|
197
210
|
"type": "Number",
|
|
211
|
+
"required": true,
|
|
198
212
|
"desc": "Horizontal scroll percentage (0.0 <= x <= 1.0)",
|
|
199
213
|
"__exemption": [ "examples" ]
|
|
200
214
|
},
|
|
201
215
|
"horizontalSize": {
|
|
202
216
|
"type": "Number",
|
|
217
|
+
"required": true,
|
|
203
218
|
"desc": "Horizontal scroll size (in px)",
|
|
204
219
|
"__exemption": [ "examples" ]
|
|
205
220
|
},
|
|
206
221
|
"horizontalContainerSize": {
|
|
207
222
|
"type": "Number",
|
|
223
|
+
"required": true,
|
|
208
224
|
"desc": "Width of the container (in px)",
|
|
209
225
|
"__exemption": [ "examples" ]
|
|
210
226
|
}
|
|
@@ -220,11 +236,13 @@
|
|
|
220
236
|
"definition": {
|
|
221
237
|
"top": {
|
|
222
238
|
"type": "Number",
|
|
239
|
+
"required": true,
|
|
223
240
|
"desc": "Scroll offset from top (vertical)",
|
|
224
241
|
"examples": [ 120 ]
|
|
225
242
|
},
|
|
226
243
|
"left": {
|
|
227
244
|
"type": "Number",
|
|
245
|
+
"required": true,
|
|
228
246
|
"desc": "Scroll offset from left (horizontal)",
|
|
229
247
|
"examples": [ 10 ]
|
|
230
248
|
}
|
|
@@ -241,11 +259,13 @@
|
|
|
241
259
|
"definition": {
|
|
242
260
|
"top": {
|
|
243
261
|
"type": "Number",
|
|
262
|
+
"required": true,
|
|
244
263
|
"desc": "Scroll percentage (0.0 <= x <= 1.0) offset from top (vertical)",
|
|
245
264
|
"examples": [ 0.12 ]
|
|
246
265
|
},
|
|
247
266
|
"left": {
|
|
248
267
|
"type": "Number",
|
|
268
|
+
"required": true,
|
|
249
269
|
"desc": "Scroll percentage (0.0 <= x <= 1.0) offset from left (horizontal)",
|
|
250
270
|
"examples": [ 0.92 ]
|
|
251
271
|
}
|
|
@@ -259,14 +279,14 @@
|
|
|
259
279
|
"params": {
|
|
260
280
|
"axis": {
|
|
261
281
|
"type": "String",
|
|
282
|
+
"required": true,
|
|
262
283
|
"desc": "Scroll axis",
|
|
263
|
-
"values": [ "vertical", "horizontal" ]
|
|
264
|
-
"required": true
|
|
284
|
+
"values": [ "vertical", "horizontal" ]
|
|
265
285
|
},
|
|
266
286
|
"offset": {
|
|
267
287
|
"type": "Number",
|
|
268
|
-
"desc": "Scroll position offset from top (in pixels)",
|
|
269
288
|
"required": true,
|
|
289
|
+
"desc": "Scroll position offset from top (in pixels)",
|
|
270
290
|
"examples": [ 220 ]
|
|
271
291
|
},
|
|
272
292
|
"duration": {
|
|
@@ -34,15 +34,18 @@
|
|
|
34
34
|
"definition": {
|
|
35
35
|
"position": {
|
|
36
36
|
"type": "Object",
|
|
37
|
+
"required": true,
|
|
37
38
|
"desc": "Scroll offset (from top and left)",
|
|
38
39
|
"definition": {
|
|
39
40
|
"top": {
|
|
40
41
|
"type": "Number",
|
|
42
|
+
"required": true,
|
|
41
43
|
"desc": "Scroll offset from top (vertical)",
|
|
42
44
|
"examples": [ 120 ]
|
|
43
45
|
},
|
|
44
46
|
"left": {
|
|
45
47
|
"type": "Number",
|
|
48
|
+
"required": true,
|
|
46
49
|
"desc": "Scroll offset from left (horizontal)",
|
|
47
50
|
"examples": [ 10 ]
|
|
48
51
|
}
|
|
@@ -51,24 +54,29 @@
|
|
|
51
54
|
|
|
52
55
|
"direction": {
|
|
53
56
|
"type": "String",
|
|
57
|
+
"required": true,
|
|
54
58
|
"desc": "Direction of scroll",
|
|
55
59
|
"values": [ "up", "down", "left", "right" ]
|
|
56
60
|
},
|
|
57
61
|
"directionChanged": {
|
|
58
62
|
"type": "Boolean",
|
|
63
|
+
"required": true,
|
|
59
64
|
"desc": "Has scroll direction changed since event was last emitted?"
|
|
60
65
|
},
|
|
61
66
|
"delta": {
|
|
62
67
|
"type": "Object",
|
|
68
|
+
"required": true,
|
|
63
69
|
"desc": "Delta of distance (in pixels) since event was last emitted",
|
|
64
70
|
"definition": {
|
|
65
71
|
"top": {
|
|
66
72
|
"type": "Number",
|
|
73
|
+
"required": true,
|
|
67
74
|
"desc": "Vertical delta distance since event was last emitted",
|
|
68
75
|
"examples": [ 120 ]
|
|
69
76
|
},
|
|
70
77
|
"left": {
|
|
71
78
|
"type": "Number",
|
|
79
|
+
"required": true,
|
|
72
80
|
"desc": "Horizontal delta distance since event was last emitted",
|
|
73
81
|
"examples": [ 10 ]
|
|
74
82
|
}
|
|
@@ -77,15 +85,18 @@
|
|
|
77
85
|
|
|
78
86
|
"inflectionPoint": {
|
|
79
87
|
"type": "Object",
|
|
88
|
+
"required": true,
|
|
80
89
|
"desc": "Last scroll offset where scroll direction has changed",
|
|
81
90
|
"definition": {
|
|
82
91
|
"top": {
|
|
83
92
|
"type": "Number",
|
|
93
|
+
"required": true,
|
|
84
94
|
"desc": "Scroll offset from top (vertical)",
|
|
85
95
|
"examples": [ 120 ]
|
|
86
96
|
},
|
|
87
97
|
"left": {
|
|
88
98
|
"type": "Number",
|
|
99
|
+
"required": true,
|
|
89
100
|
"desc": "Scroll offset from left (horizontal)",
|
|
90
101
|
"examples": [ 10 ]
|
|
91
102
|
}
|
|
@@ -1173,7 +1173,7 @@ export default createComponent({
|
|
|
1173
1173
|
function getDialog () {
|
|
1174
1174
|
const content = [
|
|
1175
1175
|
h(QField, {
|
|
1176
|
-
class: `col-auto ${ state.fieldClass }`,
|
|
1176
|
+
class: `col-auto ${ state.fieldClass.value }`,
|
|
1177
1177
|
...innerFieldProps.value,
|
|
1178
1178
|
for: state.targetUid.value,
|
|
1179
1179
|
dark: isOptionsDark.value,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"props": {
|
|
9
9
|
"model-value": {
|
|
10
10
|
"extends": "model-value",
|
|
11
|
-
"type":
|
|
11
|
+
"type": "Any",
|
|
12
12
|
"desc": "Model of the component; Must be Array if using 'multiple' prop; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive",
|
|
13
13
|
"examples": [ "v-model=\"myModel\"" ]
|
|
14
14
|
},
|
|
@@ -393,6 +393,7 @@
|
|
|
393
393
|
"params": {
|
|
394
394
|
"index": {
|
|
395
395
|
"type": "Number",
|
|
396
|
+
"required": true,
|
|
396
397
|
"desc": "Index at which to remove selection",
|
|
397
398
|
"examples": [ 0 ]
|
|
398
399
|
}
|
|
@@ -405,6 +406,7 @@
|
|
|
405
406
|
"params": {
|
|
406
407
|
"opt": {
|
|
407
408
|
"type": "Any",
|
|
409
|
+
"required": true,
|
|
408
410
|
"desc": "Option to add to model",
|
|
409
411
|
"__exemption": [ "examples" ]
|
|
410
412
|
}
|
|
@@ -446,6 +448,7 @@
|
|
|
446
448
|
"params": {
|
|
447
449
|
"opt": {
|
|
448
450
|
"type": "Any",
|
|
451
|
+
"required": true,
|
|
449
452
|
"desc": "Option to add to model",
|
|
450
453
|
"__exemption": [ "examples" ]
|
|
451
454
|
}
|
|
@@ -458,6 +461,7 @@
|
|
|
458
461
|
"params": {
|
|
459
462
|
"index": {
|
|
460
463
|
"type": "Number",
|
|
464
|
+
"required": true,
|
|
461
465
|
"desc": "Index of option from menu",
|
|
462
466
|
"examples": [ 10 ]
|
|
463
467
|
}
|
|
@@ -484,7 +488,6 @@
|
|
|
484
488
|
"value": {
|
|
485
489
|
"type": "String",
|
|
486
490
|
"desc": "New text value",
|
|
487
|
-
"required": true,
|
|
488
491
|
"__exemption": [ "examples" ]
|
|
489
492
|
}
|
|
490
493
|
}
|
|
@@ -499,11 +502,13 @@
|
|
|
499
502
|
"definition": {
|
|
500
503
|
"index": {
|
|
501
504
|
"type": "Number",
|
|
505
|
+
"required": true,
|
|
502
506
|
"desc": "Model index at which removal took place",
|
|
503
507
|
"examples": [ 2 ]
|
|
504
508
|
},
|
|
505
509
|
"value": {
|
|
506
510
|
"type": "Any",
|
|
511
|
+
"required": true,
|
|
507
512
|
"desc": "The actual value that was removed",
|
|
508
513
|
"__exemption": [ "examples" ]
|
|
509
514
|
}
|
|
@@ -521,11 +526,13 @@
|
|
|
521
526
|
"definition": {
|
|
522
527
|
"index": {
|
|
523
528
|
"type": "Number",
|
|
529
|
+
"required": true,
|
|
524
530
|
"desc": "Model index at which addition took place",
|
|
525
531
|
"examples": [ 2 ]
|
|
526
532
|
},
|
|
527
533
|
"value": {
|
|
528
534
|
"type": "Any",
|
|
535
|
+
"required": true,
|
|
529
536
|
"desc": "The actual value that was added",
|
|
530
537
|
"__exemption": [ "examples" ]
|
|
531
538
|
}
|
|
@@ -548,11 +555,13 @@
|
|
|
548
555
|
"params": {
|
|
549
556
|
"item": {
|
|
550
557
|
"type": "Any",
|
|
558
|
+
"required": false,
|
|
551
559
|
"desc": "Item to add",
|
|
552
560
|
"__exemption": [ "examples" ]
|
|
553
561
|
},
|
|
554
562
|
"mode": {
|
|
555
563
|
"type": "String",
|
|
564
|
+
"required": false,
|
|
556
565
|
"desc": "Override 'new-value-mode' (prop) behavior should you wish to",
|
|
557
566
|
"values": [ "add", "add-unique", "toggle" ],
|
|
558
567
|
"default": "add"
|
|
@@ -577,18 +586,21 @@
|
|
|
577
586
|
"params": {
|
|
578
587
|
"callbackFn": {
|
|
579
588
|
"type": "Function",
|
|
589
|
+
"required": true,
|
|
580
590
|
"desc": "Callback to call to make the actual updates",
|
|
581
591
|
"params": null,
|
|
582
592
|
"returns": null
|
|
583
593
|
},
|
|
584
594
|
"afterFn": {
|
|
585
595
|
"type": "Function",
|
|
596
|
+
"required": false,
|
|
586
597
|
"desc": "Callback to call at the end after the update has been fully processed by QSelect",
|
|
587
598
|
"params": {
|
|
588
599
|
"ref": {
|
|
589
|
-
"type": "
|
|
590
|
-
"
|
|
591
|
-
"
|
|
600
|
+
"type": "Component",
|
|
601
|
+
"tsType": "QSelect",
|
|
602
|
+
"required": true,
|
|
603
|
+
"desc": "Vue reference to the QSelect which triggered the filtering"
|
|
592
604
|
}
|
|
593
605
|
},
|
|
594
606
|
"returns": null
|
|
@@ -629,6 +641,19 @@
|
|
|
629
641
|
"__exemption": [ "examples" ]
|
|
630
642
|
}
|
|
631
643
|
}
|
|
644
|
+
},
|
|
645
|
+
|
|
646
|
+
"virtual-scroll": {
|
|
647
|
+
"params": {
|
|
648
|
+
"details": {
|
|
649
|
+
"definition": {
|
|
650
|
+
"ref": {
|
|
651
|
+
"tsType": "QSelect",
|
|
652
|
+
"desc": "Vue reference to the QSelect"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
632
657
|
}
|
|
633
658
|
},
|
|
634
659
|
|
|
@@ -650,8 +675,8 @@
|
|
|
650
675
|
"params": {
|
|
651
676
|
"index": {
|
|
652
677
|
"type": "Number",
|
|
653
|
-
"desc": "Index at which to remove selection",
|
|
654
678
|
"required": true,
|
|
679
|
+
"desc": "Index at which to remove selection",
|
|
655
680
|
"examples": [ 0 ]
|
|
656
681
|
}
|
|
657
682
|
}
|
|
@@ -662,8 +687,8 @@
|
|
|
662
687
|
"params": {
|
|
663
688
|
"opt": {
|
|
664
689
|
"type": "Any",
|
|
665
|
-
"desc": "Option to add to model",
|
|
666
690
|
"required": true,
|
|
691
|
+
"desc": "Option to add to model",
|
|
667
692
|
"__exemption": [ "examples" ]
|
|
668
693
|
},
|
|
669
694
|
"unique": {
|
|
@@ -679,8 +704,8 @@
|
|
|
679
704
|
"params": {
|
|
680
705
|
"opt": {
|
|
681
706
|
"type": "Any",
|
|
682
|
-
"desc": "Option to add to model",
|
|
683
707
|
"required": true,
|
|
708
|
+
"desc": "Option to add to model",
|
|
684
709
|
"__exemption": [ "examples" ]
|
|
685
710
|
},
|
|
686
711
|
"keepOpen": {
|
|
@@ -695,8 +720,8 @@
|
|
|
695
720
|
"params": {
|
|
696
721
|
"index": {
|
|
697
722
|
"type": "Number",
|
|
698
|
-
"desc": "Index of option from menu",
|
|
699
723
|
"required": true,
|
|
724
|
+
"desc": "Index of option from menu",
|
|
700
725
|
"examples": [ 10 ]
|
|
701
726
|
}
|
|
702
727
|
}
|
|
@@ -723,8 +748,8 @@
|
|
|
723
748
|
"params": {
|
|
724
749
|
"value": {
|
|
725
750
|
"type": "String",
|
|
726
|
-
"desc": "String to filter with",
|
|
727
751
|
"required": true,
|
|
752
|
+
"desc": "String to filter with",
|
|
728
753
|
"examples": [ "car" ]
|
|
729
754
|
}
|
|
730
755
|
}
|
|
@@ -739,6 +764,7 @@
|
|
|
739
764
|
"params": {
|
|
740
765
|
"value": {
|
|
741
766
|
"type": "String",
|
|
767
|
+
"required": true,
|
|
742
768
|
"desc": "String to set the input value to",
|
|
743
769
|
"examples": [ "hotel" ]
|
|
744
770
|
},
|
|
@@ -754,8 +780,8 @@
|
|
|
754
780
|
"params": {
|
|
755
781
|
"opt": {
|
|
756
782
|
"type": "Any",
|
|
757
|
-
"desc": "Option entry",
|
|
758
783
|
"required": true,
|
|
784
|
+
"desc": "Option entry",
|
|
759
785
|
"__exemption": [ "examples" ]
|
|
760
786
|
}
|
|
761
787
|
},
|
|
@@ -770,8 +796,8 @@
|
|
|
770
796
|
"params": {
|
|
771
797
|
"opt": {
|
|
772
798
|
"type": "Any",
|
|
773
|
-
"desc": "Option entry",
|
|
774
799
|
"required": true,
|
|
800
|
+
"desc": "Option entry",
|
|
775
801
|
"__exemption": [ "examples" ]
|
|
776
802
|
}
|
|
777
803
|
},
|
|
@@ -787,8 +813,8 @@
|
|
|
787
813
|
"params": {
|
|
788
814
|
"opt": {
|
|
789
815
|
"type": "Any",
|
|
790
|
-
"desc": "Option entry",
|
|
791
816
|
"required": true,
|
|
817
|
+
"desc": "Option entry",
|
|
792
818
|
"__exemption": [ "examples" ]
|
|
793
819
|
}
|
|
794
820
|
},
|
|
@@ -804,8 +830,8 @@
|
|
|
804
830
|
"params": {
|
|
805
831
|
"opt": {
|
|
806
832
|
"type": "Any",
|
|
807
|
-
"desc": "Option entry",
|
|
808
833
|
"required": true,
|
|
834
|
+
"desc": "Option entry",
|
|
809
835
|
"__exemption": [ "examples" ]
|
|
810
836
|
}
|
|
811
837
|
},
|
|
@@ -821,8 +847,8 @@
|
|
|
821
847
|
"params": {
|
|
822
848
|
"opt": {
|
|
823
849
|
"type": "Any",
|
|
824
|
-
"desc": "Option entry",
|
|
825
850
|
"required": true,
|
|
851
|
+
"desc": "Option entry",
|
|
826
852
|
"__exemption": [ "examples" ]
|
|
827
853
|
}
|
|
828
854
|
},
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"definition": {
|
|
66
66
|
"reset": {
|
|
67
67
|
"type": "Function",
|
|
68
|
+
"required": true,
|
|
68
69
|
"desc": "When called, it resets the component to its initial non-slided state",
|
|
69
70
|
"params": null,
|
|
70
71
|
"returns": null
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
"definition": {
|
|
84
85
|
"reset": {
|
|
85
86
|
"type": "Function",
|
|
87
|
+
"required": true,
|
|
86
88
|
"desc": "When called, it resets the component to its initial non-slided state",
|
|
87
89
|
"params": null,
|
|
88
90
|
"returns": null
|
|
@@ -101,6 +103,7 @@
|
|
|
101
103
|
"definition": {
|
|
102
104
|
"reset": {
|
|
103
105
|
"type": "Function",
|
|
106
|
+
"required": true,
|
|
104
107
|
"desc": "When called, it resets the component to its initial non-slided state",
|
|
105
108
|
"params": null,
|
|
106
109
|
"returns": null
|
|
@@ -119,6 +122,7 @@
|
|
|
119
122
|
"definition": {
|
|
120
123
|
"reset": {
|
|
121
124
|
"type": "Function",
|
|
125
|
+
"required": true,
|
|
122
126
|
"desc": "When called, it resets the component to its initial non-slided state",
|
|
123
127
|
"params": null,
|
|
124
128
|
"returns": null
|
|
@@ -137,16 +141,19 @@
|
|
|
137
141
|
"definition": {
|
|
138
142
|
"side": {
|
|
139
143
|
"type": "String",
|
|
144
|
+
"required": true,
|
|
140
145
|
"desc": "Side to which sliding is taking effect",
|
|
141
146
|
"values": [ "left", "right", "top", "bottom" ]
|
|
142
147
|
},
|
|
143
148
|
"ratio": {
|
|
144
149
|
"type": "Number",
|
|
150
|
+
"required": true,
|
|
145
151
|
"desc": "Ratio of how much of the required slide was performed (0..1)",
|
|
146
152
|
"examples": [ 0, 0.5, 1 ]
|
|
147
153
|
},
|
|
148
154
|
"isReset": {
|
|
149
155
|
"type": "Boolean",
|
|
156
|
+
"required": true,
|
|
150
157
|
"desc": "Ratio has been reset"
|
|
151
158
|
}
|
|
152
159
|
}
|
|
@@ -163,11 +170,13 @@
|
|
|
163
170
|
"definition": {
|
|
164
171
|
"side": {
|
|
165
172
|
"type": "String",
|
|
173
|
+
"required": true,
|
|
166
174
|
"desc": "Side to which sliding has taken effect",
|
|
167
175
|
"values": [ "left", "right", "top", "bottom" ]
|
|
168
176
|
},
|
|
169
177
|
"reset": {
|
|
170
178
|
"type": "Function",
|
|
179
|
+
"required": true,
|
|
171
180
|
"desc": "When called, it resets the component to its initial non-slided state",
|
|
172
181
|
"params": null,
|
|
173
182
|
"returns": null
|