quasar 2.14.5 → 2.14.6

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.
Files changed (356) hide show
  1. package/dist/api/AddressbarColor.json +1 -22
  2. package/dist/api/AppFullscreen.json +1 -78
  3. package/dist/api/AppVisibility.json +1 -15
  4. package/dist/api/BottomSheet.json +1 -264
  5. package/dist/api/Brand.json +1 -49
  6. package/dist/api/ClosePopup.json +1 -21
  7. package/dist/api/Cookies.json +1 -190
  8. package/dist/api/Dark.json +1 -63
  9. package/dist/api/Dialog.json +1 -479
  10. package/dist/api/Intersection.json +1 -204
  11. package/dist/api/Lang.json +1 -18
  12. package/dist/api/Loading.json +1 -317
  13. package/dist/api/LoadingBar.json +1 -62
  14. package/dist/api/LocalStorage.json +1 -187
  15. package/dist/api/Meta.json +1 -6
  16. package/dist/api/Morph.json +1 -188
  17. package/dist/api/Mutation.json +1 -122
  18. package/dist/api/Notify.json +1 -697
  19. package/dist/api/Platform.json +1 -238
  20. package/dist/api/QAjaxBar.json +1 -117
  21. package/dist/api/QAvatar.json +1 -76
  22. package/dist/api/QBadge.json +1 -82
  23. package/dist/api/QBanner.json +1 -44
  24. package/dist/api/QBar.json +1 -28
  25. package/dist/api/QBreadcrumbs.json +1 -82
  26. package/dist/api/QBreadcrumbsEl.json +1 -162
  27. package/dist/api/QBtn.json +1 -354
  28. package/dist/api/QBtnDropdown.json +1 -560
  29. package/dist/api/QBtnGroup.json +1 -59
  30. package/dist/api/QBtnToggle.json +1 -263
  31. package/dist/api/QCard.json +1 -51
  32. package/dist/api/QCardActions.json +1 -34
  33. package/dist/api/QCardSection.json +1 -31
  34. package/dist/api/QCarousel.json +1 -421
  35. package/dist/api/QCarouselControl.json +1 -41
  36. package/dist/api/QCarouselSlide.json +1 -44
  37. package/dist/api/QChatMessage.json +1 -128
  38. package/dist/api/QCheckbox.json +1 -211
  39. package/dist/api/QChip.json +1 -232
  40. package/dist/api/QCircularProgress.json +1 -145
  41. package/dist/api/QColor.json +1 -150
  42. package/dist/api/QDate.json +1 -637
  43. package/dist/api/QDialog.json +1 -259
  44. package/dist/api/QDrawer.json +1 -272
  45. package/dist/api/QEditor.json +1 -485
  46. package/dist/api/QExpansionItem.json +1 -434
  47. package/dist/api/QFab.json +1 -352
  48. package/dist/api/QFabAction.json +1 -241
  49. package/dist/api/QField.json +1 -448
  50. package/dist/api/QFile.json +1 -643
  51. package/dist/api/QFooter.json +1 -60
  52. package/dist/api/QForm.json +1 -112
  53. package/dist/api/QFormChildMixin.json +1 -24
  54. package/dist/api/QHeader.json +1 -67
  55. package/dist/api/QIcon.json +1 -69
  56. package/dist/api/QImg.json +1 -279
  57. package/dist/api/QInfiniteScroll.json +1 -116
  58. package/dist/api/QInnerLoading.json +1 -117
  59. package/dist/api/QInput.json +1 -521
  60. package/dist/api/QIntersection.json +1 -112
  61. package/dist/api/QItem.json +1 -203
  62. package/dist/api/QItemLabel.json +1 -36
  63. package/dist/api/QItemSection.json +1 -38
  64. package/dist/api/QKnob.json +1 -197
  65. package/dist/api/QLayout.json +1 -100
  66. package/dist/api/QLinearProgress.json +1 -113
  67. package/dist/api/QList.json +1 -58
  68. package/dist/api/QMarkupTable.json +1 -64
  69. package/dist/api/QMenu.json +1 -337
  70. package/dist/api/QNoSsr.json +1 -38
  71. package/dist/api/QOptionGroup.json +1 -242
  72. package/dist/api/QPage.json +1 -42
  73. package/dist/api/QPageContainer.json +1 -11
  74. package/dist/api/QPageScroller.json +1 -68
  75. package/dist/api/QPageSticky.json +1 -44
  76. package/dist/api/QPagination.json +1 -376
  77. package/dist/api/QParallax.json +1 -74
  78. package/dist/api/QPopupEdit.json +1 -335
  79. package/dist/api/QPopupProxy.json +1 -168
  80. package/dist/api/QPullToRefresh.json +1 -91
  81. package/dist/api/QRadio.json +1 -163
  82. package/dist/api/QRange.json +1 -789
  83. package/dist/api/QRating.json +1 -186
  84. package/dist/api/QResizeObserver.json +1 -56
  85. package/dist/api/QResponsive.json +1 -26
  86. package/dist/api/QRouteTab.json +1 -225
  87. package/dist/api/QScrollArea.json +1 -354
  88. package/dist/api/QScrollObserver.json +1 -140
  89. package/dist/api/QSelect.json +1 -1387
  90. package/dist/api/QSeparator.json +1 -72
  91. package/dist/api/QSkeleton.json +1 -127
  92. package/dist/api/QSlideItem.json +1 -219
  93. package/dist/api/QSlideTransition.json +1 -33
  94. package/dist/api/QSlider.json +1 -687
  95. package/dist/api/QSpace.json +1 -6
  96. package/dist/api/QSpinner.json +1 -37
  97. package/dist/api/QSpinnerAudio.json +1 -30
  98. package/dist/api/QSpinnerBall.json +1 -30
  99. package/dist/api/QSpinnerBars.json +1 -30
  100. package/dist/api/QSpinnerBox.json +1 -30
  101. package/dist/api/QSpinnerClock.json +1 -30
  102. package/dist/api/QSpinnerComment.json +1 -30
  103. package/dist/api/QSpinnerCube.json +1 -30
  104. package/dist/api/QSpinnerDots.json +1 -30
  105. package/dist/api/QSpinnerFacebook.json +1 -30
  106. package/dist/api/QSpinnerGears.json +1 -30
  107. package/dist/api/QSpinnerGrid.json +1 -30
  108. package/dist/api/QSpinnerHearts.json +1 -30
  109. package/dist/api/QSpinnerHourglass.json +1 -30
  110. package/dist/api/QSpinnerInfinity.json +1 -30
  111. package/dist/api/QSpinnerIos.json +1 -30
  112. package/dist/api/QSpinnerOrbit.json +1 -30
  113. package/dist/api/QSpinnerOval.json +1 -30
  114. package/dist/api/QSpinnerPie.json +1 -30
  115. package/dist/api/QSpinnerPuff.json +1 -30
  116. package/dist/api/QSpinnerRadio.json +1 -30
  117. package/dist/api/QSpinnerRings.json +1 -30
  118. package/dist/api/QSpinnerTail.json +1 -30
  119. package/dist/api/QSplitter.json +1 -146
  120. package/dist/api/QStep.json +1 -167
  121. package/dist/api/QStepper.json +1 -340
  122. package/dist/api/QStepperNavigation.json +1 -11
  123. package/dist/api/QTab.json +1 -113
  124. package/dist/api/QTabPanel.json +1 -39
  125. package/dist/api/QTabPanels.json +1 -203
  126. package/dist/api/QTable.json +1 -2799
  127. package/dist/api/QTabs.json +1 -179
  128. package/dist/api/QTd.json +1 -31
  129. package/dist/api/QTh.json +1 -26
  130. package/dist/api/QTime.json +1 -317
  131. package/dist/api/QTimeline.json +1 -57
  132. package/dist/api/QTimelineEntry.json +1 -105
  133. package/dist/api/QToggle.json +1 -230
  134. package/dist/api/QToolbar.json +1 -18
  135. package/dist/api/QToolbarTitle.json +1 -18
  136. package/dist/api/QTooltip.json +1 -282
  137. package/dist/api/QTr.json +1 -26
  138. package/dist/api/QTree.json +1 -599
  139. package/dist/api/QUploader.json +1 -665
  140. package/dist/api/QUploaderAddTrigger.json +1 -6
  141. package/dist/api/QVideo.json +1 -83
  142. package/dist/api/QVirtualScroll.json +1 -260
  143. package/dist/api/Ripple.json +1 -115
  144. package/dist/api/Screen.json +1 -190
  145. package/dist/api/Scroll.json +1 -28
  146. package/dist/api/ScrollFire.json +1 -24
  147. package/dist/api/SessionStorage.json +1 -187
  148. package/dist/api/TouchHold.json +1 -81
  149. package/dist/api/TouchPan.json +1 -178
  150. package/dist/api/TouchRepeat.json +1 -142
  151. package/dist/api/TouchSwipe.json +1 -113
  152. package/dist/icon-set/bootstrap-icons.umd.prod.js +3 -2
  153. package/dist/icon-set/eva-icons.umd.prod.js +3 -2
  154. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +3 -2
  155. package/dist/icon-set/fontawesome-v5.umd.prod.js +3 -2
  156. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +3 -2
  157. package/dist/icon-set/fontawesome-v6.umd.prod.js +3 -2
  158. package/dist/icon-set/ionicons-v4.umd.prod.js +3 -2
  159. package/dist/icon-set/line-awesome.umd.prod.js +3 -2
  160. package/dist/icon-set/material-icons-outlined.umd.prod.js +3 -2
  161. package/dist/icon-set/material-icons-round.umd.prod.js +3 -2
  162. package/dist/icon-set/material-icons-sharp.umd.prod.js +3 -2
  163. package/dist/icon-set/material-icons.umd.prod.js +3 -2
  164. package/dist/icon-set/material-symbols-outlined.umd.prod.js +3 -2
  165. package/dist/icon-set/material-symbols-rounded.umd.prod.js +3 -2
  166. package/dist/icon-set/material-symbols-sharp.umd.prod.js +3 -2
  167. package/dist/icon-set/mdi-v3.umd.prod.js +3 -2
  168. package/dist/icon-set/mdi-v4.umd.prod.js +3 -2
  169. package/dist/icon-set/mdi-v5.umd.prod.js +3 -2
  170. package/dist/icon-set/mdi-v6.umd.prod.js +3 -2
  171. package/dist/icon-set/mdi-v7.umd.prod.js +3 -2
  172. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +3 -2
  173. package/dist/icon-set/svg-eva-icons.umd.prod.js +3 -2
  174. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +3 -2
  175. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +3 -2
  176. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +3 -2
  177. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +3 -2
  178. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +3 -2
  179. package/dist/icon-set/svg-line-awesome.umd.prod.js +3 -2
  180. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +3 -2
  181. package/dist/icon-set/svg-material-icons-round.umd.prod.js +3 -2
  182. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +3 -2
  183. package/dist/icon-set/svg-material-icons.umd.prod.js +3 -2
  184. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +3 -2
  185. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +3 -2
  186. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +3 -2
  187. package/dist/icon-set/svg-mdi-v6.umd.prod.js +3 -2
  188. package/dist/icon-set/svg-mdi-v7.umd.prod.js +3 -2
  189. package/dist/icon-set/svg-themify.umd.prod.js +3 -2
  190. package/dist/icon-set/themify.umd.prod.js +3 -2
  191. package/dist/lang/ar-TN.umd.prod.js +3 -2
  192. package/dist/lang/ar.umd.prod.js +3 -2
  193. package/dist/lang/az-Latn.umd.prod.js +3 -2
  194. package/dist/lang/bg.umd.prod.js +3 -2
  195. package/dist/lang/bn.umd.prod.js +3 -2
  196. package/dist/lang/ca.umd.prod.js +3 -2
  197. package/dist/lang/cs.umd.prod.js +3 -2
  198. package/dist/lang/da.umd.prod.js +3 -2
  199. package/dist/lang/de-CH.umd.prod.js +3 -2
  200. package/dist/lang/de-DE.umd.prod.js +3 -2
  201. package/dist/lang/de.umd.prod.js +3 -2
  202. package/dist/lang/el.umd.prod.js +3 -2
  203. package/dist/lang/en-GB.umd.prod.js +3 -2
  204. package/dist/lang/en-US.umd.prod.js +3 -2
  205. package/dist/lang/eo.umd.prod.js +3 -2
  206. package/dist/lang/es.umd.prod.js +3 -2
  207. package/dist/lang/et.umd.prod.js +3 -2
  208. package/dist/lang/eu.umd.prod.js +3 -2
  209. package/dist/lang/fa-IR.umd.prod.js +3 -2
  210. package/dist/lang/fa.umd.prod.js +3 -2
  211. package/dist/lang/fi.umd.prod.js +3 -2
  212. package/dist/lang/fr.umd.prod.js +3 -2
  213. package/dist/lang/gn.umd.prod.js +3 -2
  214. package/dist/lang/he.umd.prod.js +3 -2
  215. package/dist/lang/hi.umd.prod.js +3 -2
  216. package/dist/lang/hr.umd.prod.js +3 -2
  217. package/dist/lang/hu.umd.prod.js +3 -2
  218. package/dist/lang/id.umd.prod.js +3 -2
  219. package/dist/lang/is.umd.prod.js +3 -2
  220. package/dist/lang/it.umd.prod.js +3 -2
  221. package/dist/lang/ja.umd.prod.js +3 -2
  222. package/dist/lang/kk.umd.prod.js +3 -2
  223. package/dist/lang/km.umd.prod.js +3 -2
  224. package/dist/lang/ko-KR.umd.prod.js +3 -2
  225. package/dist/lang/kur-CKB.umd.prod.js +3 -2
  226. package/dist/lang/lt.umd.prod.js +3 -2
  227. package/dist/lang/lu.umd.prod.js +3 -2
  228. package/dist/lang/lv.umd.prod.js +3 -2
  229. package/dist/lang/mk.umd.prod.js +3 -2
  230. package/dist/lang/ml.umd.prod.js +3 -2
  231. package/dist/lang/mm.umd.prod.js +3 -2
  232. package/dist/lang/ms.umd.prod.js +3 -2
  233. package/dist/lang/my.umd.prod.js +3 -2
  234. package/dist/lang/nb-NO.umd.prod.js +3 -2
  235. package/dist/lang/nl.umd.prod.js +3 -2
  236. package/dist/lang/pl.umd.prod.js +3 -2
  237. package/dist/lang/pt-BR.umd.prod.js +3 -2
  238. package/dist/lang/pt.umd.prod.js +3 -2
  239. package/dist/lang/ro.umd.prod.js +3 -2
  240. package/dist/lang/ru.umd.prod.js +3 -2
  241. package/dist/lang/sk.umd.prod.js +3 -2
  242. package/dist/lang/sl.umd.prod.js +3 -2
  243. package/dist/lang/sm.umd.prod.js +3 -2
  244. package/dist/lang/sr-CYR.umd.prod.js +3 -2
  245. package/dist/lang/sr.umd.prod.js +3 -2
  246. package/dist/lang/sv.umd.prod.js +3 -2
  247. package/dist/lang/ta.umd.prod.js +3 -2
  248. package/dist/lang/th.umd.prod.js +3 -2
  249. package/dist/lang/tl.umd.prod.js +7 -0
  250. package/dist/lang/tr.umd.prod.js +3 -2
  251. package/dist/lang/ug.umd.prod.js +3 -2
  252. package/dist/lang/uk.umd.prod.js +3 -2
  253. package/dist/lang/uz-Cyrl.umd.prod.js +3 -2
  254. package/dist/lang/uz-Latn.umd.prod.js +3 -2
  255. package/dist/lang/vi.umd.prod.js +3 -2
  256. package/dist/lang/zh-CN.umd.prod.js +3 -2
  257. package/dist/lang/zh-TW.umd.prod.js +3 -2
  258. package/dist/quasar.addon.prod.css +1 -1
  259. package/dist/quasar.addon.rtl.prod.css +1 -1
  260. package/dist/quasar.cjs.prod.js +123 -2
  261. package/dist/quasar.esm.js +16928 -26277
  262. package/dist/quasar.esm.prod.js +123 -2
  263. package/dist/quasar.prod.css +1 -1
  264. package/dist/quasar.rtl.prod.css +1 -1
  265. package/dist/quasar.sass +1 -1
  266. package/dist/quasar.umd.js +16732 -26521
  267. package/dist/quasar.umd.prod.js +123 -2
  268. package/dist/transforms/api-list.json +1 -153
  269. package/dist/transforms/auto-import.json +1 -267
  270. package/dist/transforms/import-map.json +1 -181
  271. package/dist/transforms/loader-asset-urls.json +1 -60
  272. package/dist/types/api/dialog.d.ts +1 -1
  273. package/dist/types/api/qinput.d.ts +1 -1
  274. package/dist/types/api/qtable.d.ts +1 -1
  275. package/dist/types/api/qtree.d.ts +1 -1
  276. package/dist/types/api/quploader.d.ts +1 -1
  277. package/dist/types/api/validation.d.ts +1 -1
  278. package/dist/types/api/web-storage.d.ts +6 -6
  279. package/dist/types/feature-flag.d.ts +1 -1
  280. package/dist/types/globals.d.ts +22 -15
  281. package/dist/types/index.d.ts +45 -36
  282. package/dist/types/lang.d.ts +3 -3
  283. package/dist/types/plugin.d.ts +3 -1
  284. package/dist/types/ts-helpers.d.ts +3 -3
  285. package/dist/types/utils/colors.d.ts +1 -1
  286. package/dist/types/utils/date.d.ts +10 -10
  287. package/dist/types/utils/dom.d.ts +1 -1
  288. package/dist/types/utils/run-sequential-promises.d.ts +12 -12
  289. package/dist/types/utils/scroll.d.ts +5 -5
  290. package/dist/types/utils.d.ts +15 -13
  291. package/dist/vetur/quasar-attributes.json +1 -5890
  292. package/dist/vetur/quasar-tags.json +1 -2084
  293. package/dist/web-types/web-types.json +1 -19595
  294. package/lang/index.json +1 -266
  295. package/lang/tl.js +98 -0
  296. package/lang/tl.mjs +93 -0
  297. package/package.json +14 -18
  298. package/src/body.js +6 -14
  299. package/src/components/ajax-bar/QAjaxBar.js +1 -1
  300. package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
  301. package/src/components/btn/QBtn.js +6 -6
  302. package/src/components/btn-dropdown/QBtnDropdown.json +1 -1
  303. package/src/components/checkbox/use-checkbox.js +1 -1
  304. package/src/components/chip/QChip.js +1 -1
  305. package/src/components/color/QColor.js +4 -4
  306. package/src/components/date/QDate.js +1 -1
  307. package/src/components/dialog/__tests__/DialogWrapper.vue +33 -0
  308. package/src/components/dialog/__tests__/QDialog.cy.js +450 -36
  309. package/src/components/drawer/QDrawer.js +1 -1
  310. package/src/components/drawer/QDrawer.json +1 -1
  311. package/src/components/file/QFile.js +2 -2
  312. package/src/components/footer/QFooter.js +2 -2
  313. package/src/components/form/QForm.js +3 -3
  314. package/src/components/header/QHeader.js +1 -1
  315. package/src/components/img/QImg.js +47 -39
  316. package/src/components/img/QImg.json +9 -0
  317. package/src/components/input/use-mask.js +3 -3
  318. package/src/components/menu/QMenu.json +1 -1
  319. package/src/components/page-sticky/use-page-sticky.js +4 -4
  320. package/src/components/popup-edit/QPopupEdit.js +1 -1
  321. package/src/components/scroll-area/QScrollArea.js +1 -1
  322. package/src/components/select/QSelect.js +9 -9
  323. package/src/components/table/QTd.js +1 -1
  324. package/src/components/table/QTh.js +1 -1
  325. package/src/components/tabs/QTabs.js +3 -3
  326. package/src/components/time/QTime.js +3 -3
  327. package/src/components/tooltip/QTooltip.js +4 -2
  328. package/src/components/tooltip/QTooltip.json +6 -0
  329. package/src/components/tree/QTree.js +1 -1
  330. package/src/components/uploader/uploader-core.js +2 -2
  331. package/src/components/uploader/xhr-uploader-plugin.js +1 -1
  332. package/src/components/virtual-scroll/use-virtual-scroll.js +3 -3
  333. package/src/composables/private/__tests__/use-model-toggle.cy.js +43 -3
  334. package/src/composables/private/use-anchor.js +1 -1
  335. package/src/composables/private/use-key-composition.js +1 -1
  336. package/src/composables/private/use-panel.js +1 -1
  337. package/src/composables/private/use-portal.js +1 -1
  338. package/src/composables/private/use-router-link.js +1 -1
  339. package/src/directives/TouchPan.js +1 -1
  340. package/src/history.js +1 -1
  341. package/src/index.umd.js +5 -1
  342. package/src/lang.js +1 -1
  343. package/src/plugins/BottomSheet.json +1 -1
  344. package/src/plugins/Cookies.js +1 -1
  345. package/src/plugins/Dark.js +1 -1
  346. package/src/plugins/Loading.js +1 -1
  347. package/src/plugins/LoadingBar.js +1 -1
  348. package/src/plugins/Notify.js +4 -4
  349. package/src/plugins/Platform.js +111 -93
  350. package/src/plugins/Screen.js +1 -1
  351. package/src/utils/event.js +1 -1
  352. package/src/utils/frame-debounce.js +1 -1
  353. package/src/utils/morph.js +1 -1
  354. package/src/utils/private/click-outside.js +1 -1
  355. package/src/utils/private/escape-key.js +1 -1
  356. package/src/utils/private/focusout.js +1 -1
@@ -1,643 +1 @@
1
- {
2
- "type": "component",
3
- "meta": {
4
- "docsUrl": "https://v2.quasar.dev/vue-components/file"
5
- },
6
- "props": {
7
- "name": {
8
- "type": "String",
9
- "desc": "Used to specify the name of the control; Useful if dealing with forms; If not specified, it takes the value of 'for' prop, if it exists",
10
- "examples": [
11
- "car_id",
12
- "car_id"
13
- ],
14
- "category": "behavior"
15
- },
16
- "multiple": {
17
- "type": "Boolean",
18
- "desc": "Allow multiple file uploads",
19
- "category": "behavior"
20
- },
21
- "accept": {
22
- "type": "String",
23
- "desc": "Comma separated list of unique file type specifiers. Maps to 'accept' attribute of native input type=file element",
24
- "examples": [
25
- ".jpg, .pdf, image/*",
26
- "image/jpeg, .pdf"
27
- ],
28
- "category": "behavior"
29
- },
30
- "capture": {
31
- "type": "String",
32
- "desc": "Optionally, specify that a new file should be captured, and which device should be used to capture that new media of a type defined by the 'accept' prop. Maps to 'capture' attribute of native input type=file element",
33
- "values": [
34
- "user",
35
- "environment"
36
- ],
37
- "category": "behavior"
38
- },
39
- "max-file-size": {
40
- "type": [
41
- "Number",
42
- "String"
43
- ],
44
- "desc": "Maximum size of individual file in bytes",
45
- "examples": [
46
- 1024,
47
- 1048576
48
- ],
49
- "category": "behavior"
50
- },
51
- "max-total-size": {
52
- "type": [
53
- "Number",
54
- "String"
55
- ],
56
- "desc": "Maximum size of all files combined in bytes",
57
- "category": "behavior"
58
- },
59
- "max-files": {
60
- "type": [
61
- "Number",
62
- "String"
63
- ],
64
- "desc": "Maximum number of files to contain",
65
- "category": "behavior"
66
- },
67
- "filter": {
68
- "type": "Function",
69
- "desc": "Custom filter for added files; Only files that pass this filter will be added to the queue and uploaded; For best performance, reference it from your scope and do not define it inline",
70
- "params": {
71
- "files": {
72
- "type": [
73
- "FileList",
74
- "Array"
75
- ],
76
- "desc": "Candidate files to be added to queue"
77
- }
78
- },
79
- "returns": {
80
- "type": "Array",
81
- "desc": "Filtered files to be added to queue"
82
- },
83
- "examples": [
84
- ":filter=\"files => files.filter(file => file.size === 1024)\""
85
- ],
86
- "category": "behavior"
87
- },
88
- "model-value": {
89
- "desc": "Model of the component; Must be FileList or Array if using 'multiple' prop; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive",
90
- "required": true,
91
- "syncable": true,
92
- "category": "model",
93
- "type": [
94
- "File",
95
- "FileList",
96
- "Array",
97
- "null",
98
- "undefined"
99
- ],
100
- "examples": [
101
- "v-model=\"myModel\""
102
- ]
103
- },
104
- "error": {
105
- "type": [
106
- "Boolean",
107
- "null"
108
- ],
109
- "default": null,
110
- "desc": "Does field have validation errors?",
111
- "category": "behavior",
112
- "required": false
113
- },
114
- "error-message": {
115
- "type": "String",
116
- "desc": "Validation error message (gets displayed only if 'error' is set to 'true')",
117
- "examples": [
118
- "Username must have at least 5 characters"
119
- ],
120
- "category": "content"
121
- },
122
- "no-error-icon": {
123
- "type": "Boolean",
124
- "desc": "Hide error icon when there is an error",
125
- "category": "content"
126
- },
127
- "rules": {
128
- "type": "Array",
129
- "tsType": "ValidationRule",
130
- "desc": "Array of Functions/Strings; If String, then it must be a name of one of the embedded validation rules",
131
- "examples": [
132
- ":rules=\"[ val => val.length <= 3 || 'Please use maximum 3 characters' ]\"",
133
- ":rules=\"[ 'fulltime' ]\"",
134
- ":rules=\"[ (val, rules) => rules.email(val) || 'Please enter a valid email address' ]\""
135
- ],
136
- "category": "behavior"
137
- },
138
- "reactive-rules": {
139
- "type": "Boolean",
140
- "desc": "By default a change in the rules does not trigger a new validation until the model changes; If set to true then a change in the rules will trigger a validation; Has a performance penalty, so use it only when you really need it",
141
- "category": "behavior"
142
- },
143
- "lazy-rules": {
144
- "type": [
145
- "Boolean",
146
- "String"
147
- ],
148
- "desc": "If set to boolean true then it checks validation status against the 'rules' only after field loses focus for first time; If set to 'ondemand' then it will trigger only when component's validate() method is manually called or when the wrapper QForm submits itself",
149
- "values": [
150
- "(Boolean) true",
151
- "(Boolean) false",
152
- "ondemand"
153
- ],
154
- "category": "behavior"
155
- },
156
- "label": {
157
- "type": "String",
158
- "desc": "A text label that will “float” up above the input field, once the field gets focus",
159
- "examples": [
160
- "Username"
161
- ],
162
- "category": "content"
163
- },
164
- "stack-label": {
165
- "type": "Boolean",
166
- "desc": "Label will be always shown above the field regardless of field content (if any)",
167
- "category": "content"
168
- },
169
- "hint": {
170
- "type": "String",
171
- "desc": "Helper (hint) text which gets placed below your wrapped form component",
172
- "examples": [
173
- "Fill in between 3 and 12 characters"
174
- ],
175
- "category": "content"
176
- },
177
- "hide-hint": {
178
- "type": "Boolean",
179
- "desc": "Hide the helper (hint) text when field doesn't have focus",
180
- "category": "content"
181
- },
182
- "prefix": {
183
- "type": "String",
184
- "desc": "Prefix",
185
- "examples": [
186
- "$"
187
- ],
188
- "category": "content"
189
- },
190
- "suffix": {
191
- "type": "String",
192
- "desc": "Suffix",
193
- "examples": [
194
- "@gmail.com"
195
- ],
196
- "category": "content"
197
- },
198
- "label-color": {
199
- "type": "String",
200
- "tsType": "NamedColor",
201
- "desc": "Color name for the label from the Quasar Color Palette; Overrides the 'color' prop; The difference from 'color' prop is that the label will always have this color, even when field is not focused",
202
- "examples": [
203
- "primary",
204
- "teal",
205
- "teal-10"
206
- ],
207
- "category": "style"
208
- },
209
- "color": {
210
- "type": "String",
211
- "tsType": "NamedColor",
212
- "desc": "Color name for component from the Quasar Color Palette",
213
- "examples": [
214
- "primary",
215
- "teal",
216
- "teal-10"
217
- ],
218
- "category": "style"
219
- },
220
- "bg-color": {
221
- "type": "String",
222
- "tsType": "NamedColor",
223
- "desc": "Color name for component from the Quasar Color Palette",
224
- "examples": [
225
- "primary",
226
- "teal",
227
- "teal-10"
228
- ],
229
- "category": "style"
230
- },
231
- "dark": {
232
- "type": [
233
- "Boolean",
234
- "null"
235
- ],
236
- "default": null,
237
- "desc": "Notify the component that the background is a dark color",
238
- "category": "style",
239
- "required": false
240
- },
241
- "loading": {
242
- "type": "Boolean",
243
- "desc": "Signals the user a process is in progress by displaying a spinner; Spinner can be customized by using the 'loading' slot.",
244
- "category": "behavior|content"
245
- },
246
- "clearable": {
247
- "type": "Boolean",
248
- "desc": "Appends clearable icon when a value (not undefined or null) is set; When clicked, model becomes null",
249
- "category": "behavior|content"
250
- },
251
- "clear-icon": {
252
- "type": "String",
253
- "desc": "Custom icon to use for the clear button when using along with 'clearable' prop",
254
- "examples": [
255
- "close"
256
- ],
257
- "category": "content"
258
- },
259
- "filled": {
260
- "type": "Boolean",
261
- "desc": "Use 'filled' design for the field",
262
- "category": "style"
263
- },
264
- "outlined": {
265
- "type": "Boolean",
266
- "desc": "Use 'outlined' design for the field",
267
- "category": "style"
268
- },
269
- "borderless": {
270
- "type": "Boolean",
271
- "desc": "Use 'borderless' design for the field",
272
- "category": "style"
273
- },
274
- "standout": {
275
- "type": [
276
- "Boolean",
277
- "String"
278
- ],
279
- "desc": "Use 'standout' design for the field; Specifies classes to be applied when focused (overriding default ones)",
280
- "examples": [
281
- "standout",
282
- "standout=\"bg-primary text-white\""
283
- ],
284
- "category": "style"
285
- },
286
- "label-slot": {
287
- "type": "Boolean",
288
- "desc": "Enables label slot; You need to set it to force use of the 'label' slot if the 'label' prop is not set",
289
- "category": "content"
290
- },
291
- "bottom-slots": {
292
- "type": "Boolean",
293
- "desc": "Enables bottom slots ('error', 'hint', 'counter')",
294
- "category": "content"
295
- },
296
- "hide-bottom-space": {
297
- "type": "Boolean",
298
- "desc": "Do not reserve space for hint/error/counter anymore when these are not used; As a result, it also disables the animation for those; It also allows the hint/error area to stretch vertically based on its content",
299
- "category": "style"
300
- },
301
- "counter": {
302
- "type": "Boolean",
303
- "desc": "Show an automatic counter on bottom right",
304
- "category": "content"
305
- },
306
- "rounded": {
307
- "type": "Boolean",
308
- "desc": "Applies a small standard border-radius for a squared shape of the component",
309
- "category": "style"
310
- },
311
- "square": {
312
- "type": "Boolean",
313
- "desc": "Remove border-radius so borders are squared; Overrides 'rounded' prop",
314
- "category": "style"
315
- },
316
- "dense": {
317
- "type": "Boolean",
318
- "desc": "Dense mode; occupies less space",
319
- "category": "style"
320
- },
321
- "item-aligned": {
322
- "type": "Boolean",
323
- "desc": "Match inner content alignment to that of QItem",
324
- "category": "style"
325
- },
326
- "disable": {
327
- "type": "Boolean",
328
- "desc": "Put component in disabled mode",
329
- "category": "state"
330
- },
331
- "readonly": {
332
- "type": "Boolean",
333
- "desc": "Put component in readonly mode",
334
- "category": "state"
335
- },
336
- "autofocus": {
337
- "type": "Boolean",
338
- "desc": "Focus field on initial component render",
339
- "category": "behavior"
340
- },
341
- "for": {
342
- "type": "String",
343
- "desc": "Used to specify the 'id' of the control and also the 'for' attribute of the label that wraps it; If no 'name' prop is specified, then it is used for this attribute as well",
344
- "examples": [
345
- "myFieldsId"
346
- ],
347
- "category": "behavior"
348
- },
349
- "append": {
350
- "type": "Boolean",
351
- "desc": "Append file(s) to current model rather than replacing them; Has effect only when using 'multiple' mode",
352
- "category": "behavior"
353
- },
354
- "display-value": {
355
- "type": [
356
- "Number",
357
- "String"
358
- ],
359
- "desc": "Override default selection string, if not using 'file' or 'selected' scoped slots and if not using 'use-chips' prop",
360
- "examples": [
361
- "Options: x, y, z"
362
- ],
363
- "category": "selection"
364
- },
365
- "use-chips": {
366
- "type": "Boolean",
367
- "desc": "Use QChip to show picked files",
368
- "category": "selection"
369
- },
370
- "counter-label": {
371
- "type": "Function",
372
- "desc": "Label for the counter; The 'counter' prop is necessary to enable this one",
373
- "params": {
374
- "props": {
375
- "type": "Object",
376
- "desc": "Object containing counter label information",
377
- "definition": {
378
- "totalSize": {
379
- "type": "String",
380
- "required": true,
381
- "desc": "The total size of files in human readable format",
382
- "examples": [
383
- "1.42MB"
384
- ]
385
- },
386
- "filesNumber": {
387
- "type": "Number",
388
- "required": true,
389
- "desc": "Number of picked files"
390
- },
391
- "maxFiles": {
392
- "type": [
393
- "Number",
394
- "String"
395
- ],
396
- "required": true,
397
- "desc": "Maximum number of files (same as 'max-files' prop, if specified); When 'max-files' is not specified, this has 'void 0' as value"
398
- }
399
- }
400
- }
401
- },
402
- "returns": {
403
- "type": "String",
404
- "desc": "String to display for the counter label"
405
- },
406
- "examples": [
407
- ":counter-label=\"counterLabelFn\""
408
- ],
409
- "category": "behavior"
410
- },
411
- "tabindex": {
412
- "type": [
413
- "Number",
414
- "String"
415
- ],
416
- "desc": "Tabindex HTML attribute value",
417
- "examples": [
418
- "0",
419
- "100"
420
- ],
421
- "category": "general"
422
- },
423
- "input-class": {
424
- "type": [
425
- "String",
426
- "Array",
427
- "Object"
428
- ],
429
- "tsType": "VueClassProp",
430
- "desc": "Class definitions to be attributed to the underlying selection container",
431
- "examples": [
432
- "my-special-class",
433
- ":input-class=\"{ 'my-special-class': <condition> }\""
434
- ],
435
- "category": "style"
436
- },
437
- "input-style": {
438
- "type": [
439
- "String",
440
- "Array",
441
- "Object"
442
- ],
443
- "tsType": "VueStyleProp",
444
- "desc": "Style definitions to be attributed to the underlying selection container",
445
- "examples": [
446
- "background-color: #ff0000",
447
- ":input-style=\"{ backgroundColor: '#ff0000' }\""
448
- ],
449
- "category": "style"
450
- }
451
- },
452
- "slots": {
453
- "default": {
454
- "desc": "Field main content"
455
- },
456
- "prepend": {
457
- "desc": "Prepend inner field; Suggestions: QIcon, QBtn"
458
- },
459
- "append": {
460
- "desc": "Append to inner field; Suggestions: QIcon, QBtn"
461
- },
462
- "before": {
463
- "desc": "Prepend outer field; Suggestions: QIcon, QBtn"
464
- },
465
- "after": {
466
- "desc": "Append outer field; Suggestions: QIcon, QBtn"
467
- },
468
- "label": {
469
- "desc": "Slot for label; Used only if 'label-slot' prop is set or the 'label' prop is set; When it is used the text in the 'label' prop is ignored"
470
- },
471
- "error": {
472
- "desc": "Slot for errors; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"
473
- },
474
- "hint": {
475
- "desc": "Slot for hint text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"
476
- },
477
- "counter": {
478
- "desc": "Slot for counter text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"
479
- },
480
- "loading": {
481
- "desc": "Override default spinner when component is in loading mode; Use in conjunction with 'loading' prop"
482
- },
483
- "file": {
484
- "desc": "Override default node to render a file from the user picked list",
485
- "scope": {
486
- "index": {
487
- "type": "Number",
488
- "desc": "Selection index"
489
- },
490
- "file": {
491
- "type": "File",
492
- "desc": "File object"
493
- },
494
- "ref": {
495
- "type": "Component",
496
- "tsType": "QFile",
497
- "desc": "Reference to the QFile component"
498
- }
499
- }
500
- },
501
- "selected": {
502
- "desc": "Override default selection slot; Suggestion: QChip",
503
- "scope": {
504
- "files": {
505
- "type": [
506
- "FileList",
507
- "Array"
508
- ],
509
- "desc": "Array of File objects"
510
- },
511
- "ref": {
512
- "type": "Component",
513
- "tsType": "QFile",
514
- "desc": "Reference to the QFile component"
515
- }
516
- }
517
- }
518
- },
519
- "events": {
520
- "rejected": {
521
- "desc": "Emitted after files are picked and some do not pass the validation props (accept, max-file-size, max-total-size, filter, etc)",
522
- "params": {
523
- "rejectedEntries": {
524
- "type": "Array",
525
- "tsType": "QRejectedEntry",
526
- "desc": "Array of { failedPropValidation: string, file: File } Objects for files that do not pass the validation"
527
- }
528
- }
529
- },
530
- "clear": {
531
- "desc": "When using the 'clearable' property, this event is emitted when the clear icon is clicked",
532
- "params": {
533
- "value": {
534
- "type": "Any",
535
- "desc": "The previous value before clearing it"
536
- }
537
- }
538
- },
539
- "update:model-value": {
540
- "desc": "Emitted when the component needs to change the model; Is also used by v-model",
541
- "params": {
542
- "value": {
543
- "type": "Any",
544
- "desc": "New model value",
545
- "required": true
546
- }
547
- }
548
- }
549
- },
550
- "methods": {
551
- "pickFiles": {
552
- "desc": "Trigger file pick; Must be called as a direct consequence of user interaction (eg. in a click handler), due to browsers security policy",
553
- "params": {
554
- "evt": {
555
- "type": "Event",
556
- "desc": "JS event object"
557
- }
558
- }
559
- },
560
- "addFiles": {
561
- "desc": "Add files programmatically",
562
- "params": {
563
- "files": {
564
- "type": [
565
- "FileList",
566
- "Array"
567
- ],
568
- "desc": "Array of files (instances of File)",
569
- "required": true
570
- }
571
- }
572
- },
573
- "resetValidation": {
574
- "desc": "Reset validation status"
575
- },
576
- "validate": {
577
- "desc": "Trigger a validation",
578
- "params": {
579
- "value": {
580
- "type": "Any",
581
- "desc": "Optional value to validate against"
582
- }
583
- },
584
- "returns": {
585
- "type": [
586
- "Boolean",
587
- "Promise<boolean>"
588
- ],
589
- "desc": "True/false if no async rules, otherwise a Promise with the outcome (true -> validation was a success, false -> invalid models detected)",
590
- "examples": [
591
- "true",
592
- "validate().then(outcome => { ... })"
593
- ]
594
- }
595
- },
596
- "focus": {
597
- "desc": "Focus component"
598
- },
599
- "blur": {
600
- "desc": "Blur component (lose focus)"
601
- },
602
- "removeAtIndex": {
603
- "desc": "Remove file located at specific index in the model",
604
- "params": {
605
- "index": {
606
- "type": "Number",
607
- "desc": "Index at which to remove selection",
608
- "required": true
609
- }
610
- }
611
- },
612
- "removeFile": {
613
- "desc": "Remove specified file from the model",
614
- "params": {
615
- "file": {
616
- "type": "File",
617
- "desc": "File to remove (instance of File)",
618
- "required": true
619
- }
620
- }
621
- },
622
- "getNativeElement": {
623
- "desc": "DEPRECATED; Access 'nativeEl' directly; Gets the native input DOM Element",
624
- "returns": {
625
- "type": "Element",
626
- "tsType": "QFileNativeElement",
627
- "desc": "The underlying native input DOM Element"
628
- }
629
- }
630
- },
631
- "computedProps": {
632
- "hasError": {
633
- "type": "Boolean",
634
- "desc": "Whether the component is in error state"
635
- },
636
- "nativeEl": {
637
- "type": "Element",
638
- "tsType": "QFileNativeElement",
639
- "desc": "The native input DOM Element",
640
- "addedIn": "v2.10.1"
641
- }
642
- }
643
- }
1
+ {"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/file"},"props":{"name":{"type":"String","desc":"Used to specify the name of the control; Useful if dealing with forms; If not specified, it takes the value of 'for' prop, if it exists","examples":["car_id","car_id"],"category":"behavior"},"multiple":{"type":"Boolean","desc":"Allow multiple file uploads","category":"behavior"},"accept":{"type":"String","desc":"Comma separated list of unique file type specifiers. Maps to 'accept' attribute of native input type=file element","examples":[".jpg, .pdf, image/*","image/jpeg, .pdf"],"category":"behavior"},"capture":{"type":"String","desc":"Optionally, specify that a new file should be captured, and which device should be used to capture that new media of a type defined by the 'accept' prop. Maps to 'capture' attribute of native input type=file element","values":["user","environment"],"category":"behavior"},"max-file-size":{"type":["Number","String"],"desc":"Maximum size of individual file in bytes","examples":[1024,1048576],"category":"behavior"},"max-total-size":{"type":["Number","String"],"desc":"Maximum size of all files combined in bytes","category":"behavior"},"max-files":{"type":["Number","String"],"desc":"Maximum number of files to contain","category":"behavior"},"filter":{"type":"Function","desc":"Custom filter for added files; Only files that pass this filter will be added to the queue and uploaded; For best performance, reference it from your scope and do not define it inline","params":{"files":{"type":["FileList","Array"],"desc":"Candidate files to be added to queue"}},"returns":{"type":"Array","desc":"Filtered files to be added to queue"},"examples":[":filter=\"files => files.filter(file => file.size === 1024)\""],"category":"behavior"},"model-value":{"desc":"Model of the component; Must be FileList or Array if using 'multiple' prop; Either use this property (along with a listener for 'update:modelValue' event) OR use v-model directive","required":true,"syncable":true,"category":"model","type":["File","FileList","Array","null","undefined"],"examples":["v-model=\"myModel\""]},"error":{"type":["Boolean","null"],"default":null,"desc":"Does field have validation errors?","category":"behavior","required":false},"error-message":{"type":"String","desc":"Validation error message (gets displayed only if 'error' is set to 'true')","examples":["Username must have at least 5 characters"],"category":"content"},"no-error-icon":{"type":"Boolean","desc":"Hide error icon when there is an error","category":"content"},"rules":{"type":"Array","tsType":"ValidationRule","desc":"Array of Functions/Strings; If String, then it must be a name of one of the embedded validation rules","examples":[":rules=\"[ val => val.length <= 3 || 'Please use maximum 3 characters' ]\"",":rules=\"[ 'fulltime' ]\"",":rules=\"[ (val, rules) => rules.email(val) || 'Please enter a valid email address' ]\""],"category":"behavior"},"reactive-rules":{"type":"Boolean","desc":"By default a change in the rules does not trigger a new validation until the model changes; If set to true then a change in the rules will trigger a validation; Has a performance penalty, so use it only when you really need it","category":"behavior"},"lazy-rules":{"type":["Boolean","String"],"desc":"If set to boolean true then it checks validation status against the 'rules' only after field loses focus for first time; If set to 'ondemand' then it will trigger only when component's validate() method is manually called or when the wrapper QForm submits itself","values":["(Boolean) true","(Boolean) false","ondemand"],"category":"behavior"},"label":{"type":"String","desc":"A text label that will “float” up above the input field, once the field gets focus","examples":["Username"],"category":"content"},"stack-label":{"type":"Boolean","desc":"Label will be always shown above the field regardless of field content (if any)","category":"content"},"hint":{"type":"String","desc":"Helper (hint) text which gets placed below your wrapped form component","examples":["Fill in between 3 and 12 characters"],"category":"content"},"hide-hint":{"type":"Boolean","desc":"Hide the helper (hint) text when field doesn't have focus","category":"content"},"prefix":{"type":"String","desc":"Prefix","examples":["$"],"category":"content"},"suffix":{"type":"String","desc":"Suffix","examples":["@gmail.com"],"category":"content"},"label-color":{"type":"String","tsType":"NamedColor","desc":"Color name for the label from the Quasar Color Palette; Overrides the 'color' prop; The difference from 'color' prop is that the label will always have this color, even when field is not focused","examples":["primary","teal","teal-10"],"category":"style"},"color":{"type":"String","tsType":"NamedColor","desc":"Color name for component from the Quasar Color Palette","examples":["primary","teal","teal-10"],"category":"style"},"bg-color":{"type":"String","tsType":"NamedColor","desc":"Color name for component from the Quasar Color Palette","examples":["primary","teal","teal-10"],"category":"style"},"dark":{"type":["Boolean","null"],"default":null,"desc":"Notify the component that the background is a dark color","category":"style","required":false},"loading":{"type":"Boolean","desc":"Signals the user a process is in progress by displaying a spinner; Spinner can be customized by using the 'loading' slot.","category":"behavior|content"},"clearable":{"type":"Boolean","desc":"Appends clearable icon when a value (not undefined or null) is set; When clicked, model becomes null","category":"behavior|content"},"clear-icon":{"type":"String","desc":"Custom icon to use for the clear button when using along with 'clearable' prop","examples":["close"],"category":"content"},"filled":{"type":"Boolean","desc":"Use 'filled' design for the field","category":"style"},"outlined":{"type":"Boolean","desc":"Use 'outlined' design for the field","category":"style"},"borderless":{"type":"Boolean","desc":"Use 'borderless' design for the field","category":"style"},"standout":{"type":["Boolean","String"],"desc":"Use 'standout' design for the field; Specifies classes to be applied when focused (overriding default ones)","examples":["standout","standout=\"bg-primary text-white\""],"category":"style"},"label-slot":{"type":"Boolean","desc":"Enables label slot; You need to set it to force use of the 'label' slot if the 'label' prop is not set","category":"content"},"bottom-slots":{"type":"Boolean","desc":"Enables bottom slots ('error', 'hint', 'counter')","category":"content"},"hide-bottom-space":{"type":"Boolean","desc":"Do not reserve space for hint/error/counter anymore when these are not used; As a result, it also disables the animation for those; It also allows the hint/error area to stretch vertically based on its content","category":"style"},"counter":{"type":"Boolean","desc":"Show an automatic counter on bottom right","category":"content"},"rounded":{"type":"Boolean","desc":"Applies a small standard border-radius for a squared shape of the component","category":"style"},"square":{"type":"Boolean","desc":"Remove border-radius so borders are squared; Overrides 'rounded' prop","category":"style"},"dense":{"type":"Boolean","desc":"Dense mode; occupies less space","category":"style"},"item-aligned":{"type":"Boolean","desc":"Match inner content alignment to that of QItem","category":"style"},"disable":{"type":"Boolean","desc":"Put component in disabled mode","category":"state"},"readonly":{"type":"Boolean","desc":"Put component in readonly mode","category":"state"},"autofocus":{"type":"Boolean","desc":"Focus field on initial component render","category":"behavior"},"for":{"type":"String","desc":"Used to specify the 'id' of the control and also the 'for' attribute of the label that wraps it; If no 'name' prop is specified, then it is used for this attribute as well","examples":["myFieldsId"],"category":"behavior"},"append":{"type":"Boolean","desc":"Append file(s) to current model rather than replacing them; Has effect only when using 'multiple' mode","category":"behavior"},"display-value":{"type":["Number","String"],"desc":"Override default selection string, if not using 'file' or 'selected' scoped slots and if not using 'use-chips' prop","examples":["Options: x, y, z"],"category":"selection"},"use-chips":{"type":"Boolean","desc":"Use QChip to show picked files","category":"selection"},"counter-label":{"type":"Function","desc":"Label for the counter; The 'counter' prop is necessary to enable this one","params":{"props":{"type":"Object","desc":"Object containing counter label information","definition":{"totalSize":{"type":"String","required":true,"desc":"The total size of files in human readable format","examples":["1.42MB"]},"filesNumber":{"type":"Number","required":true,"desc":"Number of picked files"},"maxFiles":{"type":["Number","String"],"required":true,"desc":"Maximum number of files (same as 'max-files' prop, if specified); When 'max-files' is not specified, this has 'void 0' as value"}}}},"returns":{"type":"String","desc":"String to display for the counter label"},"examples":[":counter-label=\"counterLabelFn\""],"category":"behavior"},"tabindex":{"type":["Number","String"],"desc":"Tabindex HTML attribute value","examples":["0","100"],"category":"general"},"input-class":{"type":["String","Array","Object"],"tsType":"VueClassProp","desc":"Class definitions to be attributed to the underlying selection container","examples":["my-special-class",":input-class=\"{ 'my-special-class': <condition> }\""],"category":"style"},"input-style":{"type":["String","Array","Object"],"tsType":"VueStyleProp","desc":"Style definitions to be attributed to the underlying selection container","examples":["background-color: #ff0000",":input-style=\"{ backgroundColor: '#ff0000' }\""],"category":"style"}},"slots":{"default":{"desc":"Field main content"},"prepend":{"desc":"Prepend inner field; Suggestions: QIcon, QBtn"},"append":{"desc":"Append to inner field; Suggestions: QIcon, QBtn"},"before":{"desc":"Prepend outer field; Suggestions: QIcon, QBtn"},"after":{"desc":"Append outer field; Suggestions: QIcon, QBtn"},"label":{"desc":"Slot for label; Used only if 'label-slot' prop is set or the 'label' prop is set; When it is used the text in the 'label' prop is ignored"},"error":{"desc":"Slot for errors; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"},"hint":{"desc":"Slot for hint text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"},"counter":{"desc":"Slot for counter text; Enabled only if 'bottom-slots' prop is used; Suggestion: <div>"},"loading":{"desc":"Override default spinner when component is in loading mode; Use in conjunction with 'loading' prop"},"file":{"desc":"Override default node to render a file from the user picked list","scope":{"index":{"type":"Number","desc":"Selection index"},"file":{"type":"File","desc":"File object"},"ref":{"type":"Component","tsType":"QFile","desc":"Reference to the QFile component"}}},"selected":{"desc":"Override default selection slot; Suggestion: QChip","scope":{"files":{"type":["FileList","Array"],"desc":"Array of File objects"},"ref":{"type":"Component","tsType":"QFile","desc":"Reference to the QFile component"}}}},"events":{"rejected":{"desc":"Emitted after files are picked and some do not pass the validation props (accept, max-file-size, max-total-size, filter, etc)","params":{"rejectedEntries":{"type":"Array","tsType":"QRejectedEntry","desc":"Array of { failedPropValidation: string, file: File } Objects for files that do not pass the validation"}}},"clear":{"desc":"When using the 'clearable' property, this event is emitted when the clear icon is clicked","params":{"value":{"type":"Any","desc":"The previous value before clearing it"}}},"update:model-value":{"desc":"Emitted when the component needs to change the model; Is also used by v-model","params":{"value":{"type":"Any","desc":"New model value","required":true}}}},"methods":{"pickFiles":{"desc":"Trigger file pick; Must be called as a direct consequence of user interaction (eg. in a click handler), due to browsers security policy","params":{"evt":{"type":"Event","desc":"JS event object"}}},"addFiles":{"desc":"Add files programmatically","params":{"files":{"type":["FileList","Array"],"desc":"Array of files (instances of File)","required":true}}},"resetValidation":{"desc":"Reset validation status"},"validate":{"desc":"Trigger a validation","params":{"value":{"type":"Any","desc":"Optional value to validate against"}},"returns":{"type":["Boolean","Promise<boolean>"],"desc":"True/false if no async rules, otherwise a Promise with the outcome (true -> validation was a success, false -> invalid models detected)","examples":["true","validate().then(outcome => { ... })"]}},"focus":{"desc":"Focus component"},"blur":{"desc":"Blur component (lose focus)"},"removeAtIndex":{"desc":"Remove file located at specific index in the model","params":{"index":{"type":"Number","desc":"Index at which to remove selection","required":true}}},"removeFile":{"desc":"Remove specified file from the model","params":{"file":{"type":"File","desc":"File to remove (instance of File)","required":true}}},"getNativeElement":{"desc":"DEPRECATED; Access 'nativeEl' directly; Gets the native input DOM Element","returns":{"type":"Element","tsType":"QFileNativeElement","desc":"The underlying native input DOM Element"}}},"computedProps":{"hasError":{"type":"Boolean","desc":"Whether the component is in error state"},"nativeEl":{"type":"Element","tsType":"QFileNativeElement","desc":"The native input DOM Element","addedIn":"v2.10.1"}}}