quasar 2.1.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.
Files changed (973) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/dist/api/AddressbarColor.json +22 -0
  4. package/dist/api/AppFullscreen.json +71 -0
  5. package/dist/api/AppVisibility.json +15 -0
  6. package/dist/api/BottomSheet.json +212 -0
  7. package/dist/api/ClosePopup.json +21 -0
  8. package/dist/api/Cookies.json +189 -0
  9. package/dist/api/Dark.json +50 -0
  10. package/dist/api/Dialog.json +471 -0
  11. package/dist/api/Intersection.json +279 -0
  12. package/dist/api/Loading.json +256 -0
  13. package/dist/api/LoadingBar.json +55 -0
  14. package/dist/api/LocalStorage.json +191 -0
  15. package/dist/api/Meta.json +6 -0
  16. package/dist/api/Morph.json +193 -0
  17. package/dist/api/Mutation.json +122 -0
  18. package/dist/api/Notify.json +1068 -0
  19. package/dist/api/Platform.json +70 -0
  20. package/dist/api/QAjaxBar.json +91 -0
  21. package/dist/api/QAvatar.json +72 -0
  22. package/dist/api/QBadge.json +78 -0
  23. package/dist/api/QBanner.json +39 -0
  24. package/dist/api/QBar.json +23 -0
  25. package/dist/api/QBreadcrumbs.json +83 -0
  26. package/dist/api/QBreadcrumbsEl.json +101 -0
  27. package/dist/api/QBtn.json +288 -0
  28. package/dist/api/QBtnDropdown.json +484 -0
  29. package/dist/api/QBtnGroup.json +53 -0
  30. package/dist/api/QBtnToggle.json +249 -0
  31. package/dist/api/QCard.json +45 -0
  32. package/dist/api/QCardActions.json +33 -0
  33. package/dist/api/QCardSection.json +30 -0
  34. package/dist/api/QCarousel.json +393 -0
  35. package/dist/api/QCarouselControl.json +42 -0
  36. package/dist/api/QCarouselSlide.json +44 -0
  37. package/dist/api/QChatMessage.json +128 -0
  38. package/dist/api/QCheckbox.json +172 -0
  39. package/dist/api/QChip.json +206 -0
  40. package/dist/api/QCircularProgress.json +135 -0
  41. package/dist/api/QColor.json +131 -0
  42. package/dist/api/QDate.json +550 -0
  43. package/dist/api/QDialog.json +210 -0
  44. package/dist/api/QDrawer.json +262 -0
  45. package/dist/api/QEditor.json +385 -0
  46. package/dist/api/QExpansionItem.json +339 -0
  47. package/dist/api/QFab.json +310 -0
  48. package/dist/api/QFabAction.json +222 -0
  49. package/dist/api/QField.json +417 -0
  50. package/dist/api/QFile.json +623 -0
  51. package/dist/api/QFooter.json +61 -0
  52. package/dist/api/QForm.json +102 -0
  53. package/dist/api/QFormChildMixin.json +24 -0
  54. package/dist/api/QHeader.json +70 -0
  55. package/dist/api/QIcon.json +64 -0
  56. package/dist/api/QImg.json +236 -0
  57. package/dist/api/QInfiniteScroll.json +120 -0
  58. package/dist/api/QInnerLoading.json +77 -0
  59. package/dist/api/QInput.json +494 -0
  60. package/dist/api/QIntersection.json +91 -0
  61. package/dist/api/QItem.json +119 -0
  62. package/dist/api/QItemLabel.json +41 -0
  63. package/dist/api/QItemSection.json +38 -0
  64. package/dist/api/QKnob.json +196 -0
  65. package/dist/api/QLayout.json +110 -0
  66. package/dist/api/QLinearProgress.json +94 -0
  67. package/dist/api/QList.json +38 -0
  68. package/dist/api/QMarkupTable.json +58 -0
  69. package/dist/api/QMenu.json +323 -0
  70. package/dist/api/QNoSsr.json +37 -0
  71. package/dist/api/QOptionGroup.json +109 -0
  72. package/dist/api/QPage.json +47 -0
  73. package/dist/api/QPageContainer.json +11 -0
  74. package/dist/api/QPageScroller.json +73 -0
  75. package/dist/api/QPageSticky.json +46 -0
  76. package/dist/api/QPagination.json +324 -0
  77. package/dist/api/QParallax.json +85 -0
  78. package/dist/api/QPopupEdit.json +337 -0
  79. package/dist/api/QPopupProxy.json +147 -0
  80. package/dist/api/QPullToRefresh.json +87 -0
  81. package/dist/api/QRadio.json +133 -0
  82. package/dist/api/QRange.json +269 -0
  83. package/dist/api/QRating.json +167 -0
  84. package/dist/api/QResizeObserver.json +59 -0
  85. package/dist/api/QResponsive.json +26 -0
  86. package/dist/api/QRouteTab.json +190 -0
  87. package/dist/api/QScrollArea.json +338 -0
  88. package/dist/api/QScrollObserver.json +146 -0
  89. package/dist/api/QSelect.json +1341 -0
  90. package/dist/api/QSeparator.json +62 -0
  91. package/dist/api/QSkeleton.json +104 -0
  92. package/dist/api/QSlideItem.json +202 -0
  93. package/dist/api/QSlideTransition.json +36 -0
  94. package/dist/api/QSlider.json +196 -0
  95. package/dist/api/QSpace.json +6 -0
  96. package/dist/api/QSpinner.json +38 -0
  97. package/dist/api/QSpinnerAudio.json +28 -0
  98. package/dist/api/QSpinnerBall.json +28 -0
  99. package/dist/api/QSpinnerBars.json +28 -0
  100. package/dist/api/QSpinnerBox.json +28 -0
  101. package/dist/api/QSpinnerClock.json +28 -0
  102. package/dist/api/QSpinnerComment.json +28 -0
  103. package/dist/api/QSpinnerCube.json +28 -0
  104. package/dist/api/QSpinnerDots.json +28 -0
  105. package/dist/api/QSpinnerFacebook.json +28 -0
  106. package/dist/api/QSpinnerGears.json +28 -0
  107. package/dist/api/QSpinnerGrid.json +28 -0
  108. package/dist/api/QSpinnerHearts.json +28 -0
  109. package/dist/api/QSpinnerHourglass.json +28 -0
  110. package/dist/api/QSpinnerInfinity.json +28 -0
  111. package/dist/api/QSpinnerIos.json +28 -0
  112. package/dist/api/QSpinnerOrbit.json +28 -0
  113. package/dist/api/QSpinnerOval.json +28 -0
  114. package/dist/api/QSpinnerPie.json +28 -0
  115. package/dist/api/QSpinnerPuff.json +28 -0
  116. package/dist/api/QSpinnerRadio.json +28 -0
  117. package/dist/api/QSpinnerRings.json +28 -0
  118. package/dist/api/QSpinnerTail.json +28 -0
  119. package/dist/api/QSplitter.json +142 -0
  120. package/dist/api/QStep.json +158 -0
  121. package/dist/api/QStepper.json +317 -0
  122. package/dist/api/QStepperNavigation.json +11 -0
  123. package/dist/api/QTab.json +111 -0
  124. package/dist/api/QTabPanel.json +34 -0
  125. package/dist/api/QTabPanels.json +193 -0
  126. package/dist/api/QTable.json +2645 -0
  127. package/dist/api/QTabs.json +165 -0
  128. package/dist/api/QTd.json +31 -0
  129. package/dist/api/QTh.json +26 -0
  130. package/dist/api/QTime.json +278 -0
  131. package/dist/api/QTimeline.json +48 -0
  132. package/dist/api/QTimelineEntry.json +101 -0
  133. package/dist/api/QToggle.json +216 -0
  134. package/dist/api/QToolbar.json +18 -0
  135. package/dist/api/QToolbarTitle.json +18 -0
  136. package/dist/api/QTooltip.json +274 -0
  137. package/dist/api/QTr.json +26 -0
  138. package/dist/api/QTree.json +552 -0
  139. package/dist/api/QUploader.json +481 -0
  140. package/dist/api/QUploaderAddTrigger.json +6 -0
  141. package/dist/api/QVideo.json +30 -0
  142. package/dist/api/QVirtualScroll.json +291 -0
  143. package/dist/api/Ripple.json +111 -0
  144. package/dist/api/Screen.json +207 -0
  145. package/dist/api/Scroll.json +31 -0
  146. package/dist/api/ScrollFire.json +21 -0
  147. package/dist/api/SessionStorage.json +191 -0
  148. package/dist/api/TouchHold.json +86 -0
  149. package/dist/api/TouchPan.json +200 -0
  150. package/dist/api/TouchRepeat.json +156 -0
  151. package/dist/api/TouchSwipe.json +118 -0
  152. package/dist/icon-set/bootstrap-icons.umd.prod.js +6 -0
  153. package/dist/icon-set/eva-icons.umd.prod.js +6 -0
  154. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +6 -0
  155. package/dist/icon-set/fontawesome-v5.umd.prod.js +6 -0
  156. package/dist/icon-set/ionicons-v4.umd.prod.js +6 -0
  157. package/dist/icon-set/line-awesome.umd.prod.js +6 -0
  158. package/dist/icon-set/material-icons-outlined.umd.prod.js +6 -0
  159. package/dist/icon-set/material-icons-round.umd.prod.js +6 -0
  160. package/dist/icon-set/material-icons-sharp.umd.prod.js +6 -0
  161. package/dist/icon-set/material-icons.umd.prod.js +6 -0
  162. package/dist/icon-set/mdi-v3.umd.prod.js +6 -0
  163. package/dist/icon-set/mdi-v4.umd.prod.js +6 -0
  164. package/dist/icon-set/mdi-v5.umd.prod.js +6 -0
  165. package/dist/icon-set/mdi-v6.umd.prod.js +6 -0
  166. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +6 -0
  167. package/dist/icon-set/svg-eva-icons.umd.prod.js +6 -0
  168. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +6 -0
  169. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +6 -0
  170. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +6 -0
  171. package/dist/icon-set/svg-line-awesome.umd.prod.js +6 -0
  172. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +6 -0
  173. package/dist/icon-set/svg-material-icons-round.umd.prod.js +6 -0
  174. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +6 -0
  175. package/dist/icon-set/svg-material-icons.umd.prod.js +6 -0
  176. package/dist/icon-set/svg-mdi-v4.umd.prod.js +6 -0
  177. package/dist/icon-set/svg-mdi-v5.umd.prod.js +6 -0
  178. package/dist/icon-set/svg-mdi-v6.umd.prod.js +6 -0
  179. package/dist/icon-set/svg-themify.umd.prod.js +6 -0
  180. package/dist/icon-set/themify.umd.prod.js +6 -0
  181. package/dist/lang/ar.umd.prod.js +6 -0
  182. package/dist/lang/az-Latn.umd.prod.js +6 -0
  183. package/dist/lang/bg.umd.prod.js +6 -0
  184. package/dist/lang/bn.umd.prod.js +6 -0
  185. package/dist/lang/ca.umd.prod.js +6 -0
  186. package/dist/lang/cs.umd.prod.js +6 -0
  187. package/dist/lang/da.umd.prod.js +6 -0
  188. package/dist/lang/de.umd.prod.js +6 -0
  189. package/dist/lang/el.umd.prod.js +6 -0
  190. package/dist/lang/en-GB.umd.prod.js +6 -0
  191. package/dist/lang/en-US.umd.prod.js +6 -0
  192. package/dist/lang/eo.umd.prod.js +6 -0
  193. package/dist/lang/es.umd.prod.js +6 -0
  194. package/dist/lang/et.umd.prod.js +6 -0
  195. package/dist/lang/fa-IR.umd.prod.js +6 -0
  196. package/dist/lang/fa.umd.prod.js +6 -0
  197. package/dist/lang/fi.umd.prod.js +6 -0
  198. package/dist/lang/fr.umd.prod.js +6 -0
  199. package/dist/lang/gn.umd.prod.js +6 -0
  200. package/dist/lang/he.umd.prod.js +6 -0
  201. package/dist/lang/hr.umd.prod.js +6 -0
  202. package/dist/lang/hu.umd.prod.js +6 -0
  203. package/dist/lang/id.umd.prod.js +6 -0
  204. package/dist/lang/is.umd.prod.js +6 -0
  205. package/dist/lang/it.umd.prod.js +6 -0
  206. package/dist/lang/ja.umd.prod.js +6 -0
  207. package/dist/lang/km.umd.prod.js +6 -0
  208. package/dist/lang/ko-KR.umd.prod.js +6 -0
  209. package/dist/lang/kur-CKB.umd.prod.js +6 -0
  210. package/dist/lang/lu.umd.prod.js +6 -0
  211. package/dist/lang/lv.umd.prod.js +6 -0
  212. package/dist/lang/ml.umd.prod.js +6 -0
  213. package/dist/lang/ms.umd.prod.js +6 -0
  214. package/dist/lang/nb-NO.umd.prod.js +6 -0
  215. package/dist/lang/nl.umd.prod.js +6 -0
  216. package/dist/lang/pl.umd.prod.js +6 -0
  217. package/dist/lang/pt-BR.umd.prod.js +6 -0
  218. package/dist/lang/pt.umd.prod.js +6 -0
  219. package/dist/lang/ro.umd.prod.js +6 -0
  220. package/dist/lang/ru.umd.prod.js +6 -0
  221. package/dist/lang/sk.umd.prod.js +6 -0
  222. package/dist/lang/sl.umd.prod.js +6 -0
  223. package/dist/lang/sr.umd.prod.js +6 -0
  224. package/dist/lang/sv.umd.prod.js +6 -0
  225. package/dist/lang/ta.umd.prod.js +6 -0
  226. package/dist/lang/th.umd.prod.js +6 -0
  227. package/dist/lang/tr.umd.prod.js +6 -0
  228. package/dist/lang/ug.umd.prod.js +6 -0
  229. package/dist/lang/uk.umd.prod.js +6 -0
  230. package/dist/lang/vi.umd.prod.js +6 -0
  231. package/dist/lang/zh-CN.umd.prod.js +6 -0
  232. package/dist/lang/zh-TW.umd.prod.js +6 -0
  233. package/dist/quasar.addon.css +6291 -0
  234. package/dist/quasar.addon.prod.css +1 -0
  235. package/dist/quasar.addon.rtl.css +9286 -0
  236. package/dist/quasar.addon.rtl.prod.css +1 -0
  237. package/dist/quasar.cjs.prod.js +6 -0
  238. package/dist/quasar.css +11392 -0
  239. package/dist/quasar.esm.prod.js +6 -0
  240. package/dist/quasar.prod.css +1 -0
  241. package/dist/quasar.rtl.css +13790 -0
  242. package/dist/quasar.rtl.prod.css +1 -0
  243. package/dist/quasar.sass +7314 -0
  244. package/dist/quasar.umd.js +38430 -0
  245. package/dist/quasar.umd.prod.js +6 -0
  246. package/dist/ssr-directives/Morph.js +55 -0
  247. package/dist/ssr-directives/index.js +14 -0
  248. package/dist/transforms/api-list.json +151 -0
  249. package/dist/transforms/auto-import.json +267 -0
  250. package/dist/transforms/import-map.json +178 -0
  251. package/dist/transforms/import-transformation.js +9 -0
  252. package/dist/transforms/loader-asset-urls.json +40 -0
  253. package/dist/types/api/cookies.d.ts +1 -0
  254. package/dist/types/api/web-storage.d.ts +30 -0
  255. package/dist/types/api.d.ts +2 -0
  256. package/dist/types/composables.d.ts +30 -0
  257. package/dist/types/extras/animations.d.ts +106 -0
  258. package/dist/types/extras/fonts.d.ts +1 -0
  259. package/dist/types/extras/icon-set.d.ts +123 -0
  260. package/dist/types/extras.d.ts +3 -0
  261. package/dist/types/feature-flag.d.ts +57 -0
  262. package/dist/types/globals.d.ts +69 -0
  263. package/dist/types/index.d.ts +8818 -0
  264. package/dist/types/lang.d.ts +131 -0
  265. package/dist/types/meta.d.ts +16 -0
  266. package/dist/types/plugin.d.ts +17 -0
  267. package/dist/types/shim-icon-set.d.ts +7 -0
  268. package/dist/types/shim-lang.d.ts +7 -0
  269. package/dist/types/ts-helpers.d.ts +22 -0
  270. package/dist/types/tsconfig.json +7 -0
  271. package/dist/types/typings.json +4 -0
  272. package/dist/types/utils/colors.d.ts +28 -0
  273. package/dist/types/utils/date.d.ts +50 -0
  274. package/dist/types/utils/dom.d.ts +14 -0
  275. package/dist/types/utils/event.d.ts +28 -0
  276. package/dist/types/utils/format.d.ts +7 -0
  277. package/dist/types/utils/scroll.d.ts +20 -0
  278. package/dist/types/utils.d.ts +138 -0
  279. package/dist/vetur/quasar-attributes.json +5522 -0
  280. package/dist/vetur/quasar-tags.json +1992 -0
  281. package/dist/web-types/web-types.json +18572 -0
  282. package/icon-set/bootstrap-icons.js +136 -0
  283. package/icon-set/eva-icons.js +186 -0
  284. package/icon-set/fontawesome-v5-pro.js +128 -0
  285. package/icon-set/fontawesome-v5.js +128 -0
  286. package/icon-set/ionicons-v4.js +180 -0
  287. package/icon-set/line-awesome.js +128 -0
  288. package/icon-set/material-icons-outlined.js +128 -0
  289. package/icon-set/material-icons-round.js +128 -0
  290. package/icon-set/material-icons-sharp.js +128 -0
  291. package/icon-set/material-icons.js +128 -0
  292. package/icon-set/mdi-v3.js +141 -0
  293. package/icon-set/mdi-v4.js +141 -0
  294. package/icon-set/mdi-v5.js +141 -0
  295. package/icon-set/mdi-v6.js +141 -0
  296. package/icon-set/svg-bootstrap-icons.js +211 -0
  297. package/icon-set/svg-eva-icons.js +234 -0
  298. package/icon-set/svg-fontawesome-v5.js +198 -0
  299. package/icon-set/svg-ionicons-v4.js +235 -0
  300. package/icon-set/svg-ionicons-v5.js +225 -0
  301. package/icon-set/svg-line-awesome.js +198 -0
  302. package/icon-set/svg-material-icons-outlined.js +203 -0
  303. package/icon-set/svg-material-icons-round.js +203 -0
  304. package/icon-set/svg-material-icons-sharp.js +203 -0
  305. package/icon-set/svg-material-icons.js +203 -0
  306. package/icon-set/svg-mdi-v4.js +218 -0
  307. package/icon-set/svg-mdi-v5.js +225 -0
  308. package/icon-set/svg-mdi-v6.js +225 -0
  309. package/icon-set/svg-themify.js +232 -0
  310. package/icon-set/themify.js +169 -0
  311. package/lang/ar.js +96 -0
  312. package/lang/az-Latn.js +91 -0
  313. package/lang/bg.js +91 -0
  314. package/lang/bn.js +91 -0
  315. package/lang/ca.js +91 -0
  316. package/lang/cs.js +102 -0
  317. package/lang/da.js +91 -0
  318. package/lang/de.js +91 -0
  319. package/lang/el.js +91 -0
  320. package/lang/en-GB.js +91 -0
  321. package/lang/en-US.js +91 -0
  322. package/lang/eo.js +91 -0
  323. package/lang/es.js +91 -0
  324. package/lang/et.js +91 -0
  325. package/lang/fa-IR.js +92 -0
  326. package/lang/fa.js +92 -0
  327. package/lang/fi.js +92 -0
  328. package/lang/fr.js +94 -0
  329. package/lang/gn.js +91 -0
  330. package/lang/he.js +92 -0
  331. package/lang/hr.js +91 -0
  332. package/lang/hu.js +91 -0
  333. package/lang/id.js +91 -0
  334. package/lang/index.json +210 -0
  335. package/lang/is.js +91 -0
  336. package/lang/it.js +91 -0
  337. package/lang/ja.js +90 -0
  338. package/lang/km.js +91 -0
  339. package/lang/ko-KR.js +91 -0
  340. package/lang/kur-CKB.js +101 -0
  341. package/lang/lu.js +91 -0
  342. package/lang/lv.js +91 -0
  343. package/lang/ml.js +95 -0
  344. package/lang/ms.js +91 -0
  345. package/lang/nb-NO.js +92 -0
  346. package/lang/nl.js +91 -0
  347. package/lang/pl.js +91 -0
  348. package/lang/pt-BR.js +91 -0
  349. package/lang/pt.js +91 -0
  350. package/lang/ro.js +91 -0
  351. package/lang/ru.js +95 -0
  352. package/lang/sk.js +91 -0
  353. package/lang/sl.js +91 -0
  354. package/lang/sr.js +91 -0
  355. package/lang/sv.js +91 -0
  356. package/lang/ta.js +91 -0
  357. package/lang/th.js +91 -0
  358. package/lang/tr.js +87 -0
  359. package/lang/ug.js +92 -0
  360. package/lang/uk.js +95 -0
  361. package/lang/vi.js +91 -0
  362. package/lang/zh-CN.js +90 -0
  363. package/lang/zh-TW.js +90 -0
  364. package/package.json +108 -0
  365. package/src/api-file-example.json +94 -0
  366. package/src/api.extends.json +264 -0
  367. package/src/body.js +109 -0
  368. package/src/components/ajax-bar/QAjaxBar.js +238 -0
  369. package/src/components/ajax-bar/QAjaxBar.json +76 -0
  370. package/src/components/ajax-bar/QAjaxBar.sass +27 -0
  371. package/src/components/ajax-bar/index.js +5 -0
  372. package/src/components/avatar/QAvatar.js +61 -0
  373. package/src/components/avatar/QAvatar.json +42 -0
  374. package/src/components/avatar/QAvatar.sass +22 -0
  375. package/src/components/avatar/index.js +5 -0
  376. package/src/components/badge/QBadge.js +59 -0
  377. package/src/components/badge/QBadge.json +65 -0
  378. package/src/components/badge/QBadge.sass +32 -0
  379. package/src/components/badge/index.js +5 -0
  380. package/src/components/banner/QBanner.js +57 -0
  381. package/src/components/banner/QBanner.json +39 -0
  382. package/src/components/banner/QBanner.sass +38 -0
  383. package/src/components/banner/index.js +5 -0
  384. package/src/components/bar/QBar.js +30 -0
  385. package/src/components/bar/QBar.json +22 -0
  386. package/src/components/bar/QBar.sass +31 -0
  387. package/src/components/bar/index.js +5 -0
  388. package/src/components/breadcrumbs/QBreadcrumbs.js +90 -0
  389. package/src/components/breadcrumbs/QBreadcrumbs.json +57 -0
  390. package/src/components/breadcrumbs/QBreadcrumbs.sass +16 -0
  391. package/src/components/breadcrumbs/QBreadcrumbsEl.js +57 -0
  392. package/src/components/breadcrumbs/QBreadcrumbsEl.json +36 -0
  393. package/src/components/breadcrumbs/index.js +7 -0
  394. package/src/components/btn/QBtn.js +362 -0
  395. package/src/components/btn/QBtn.json +70 -0
  396. package/src/components/btn/QBtn.sass +157 -0
  397. package/src/components/btn/index.js +5 -0
  398. package/src/components/btn/use-btn.js +195 -0
  399. package/src/components/btn/use-btn.json +172 -0
  400. package/src/components/btn-dropdown/QBtnDropdown.js +215 -0
  401. package/src/components/btn-dropdown/QBtnDropdown.json +138 -0
  402. package/src/components/btn-dropdown/QBtnDropdown.sass +15 -0
  403. package/src/components/btn-dropdown/index.js +5 -0
  404. package/src/components/btn-group/QBtnGroup.js +31 -0
  405. package/src/components/btn-group/QBtnGroup.json +61 -0
  406. package/src/components/btn-group/QBtnGroup.sass +85 -0
  407. package/src/components/btn-group/index.js +5 -0
  408. package/src/components/btn-toggle/QBtnToggle.js +166 -0
  409. package/src/components/btn-toggle/QBtnToggle.json +194 -0
  410. package/src/components/btn-toggle/QBtnToggle.sass +2 -0
  411. package/src/components/btn-toggle/index.js +5 -0
  412. package/src/components/card/QCard.js +37 -0
  413. package/src/components/card/QCard.json +35 -0
  414. package/src/components/card/QCard.sass +96 -0
  415. package/src/components/card/QCardActions.js +25 -0
  416. package/src/components/card/QCardActions.json +27 -0
  417. package/src/components/card/QCardSection.js +25 -0
  418. package/src/components/card/QCardSection.json +25 -0
  419. package/src/components/card/index.js +9 -0
  420. package/src/components/carousel/QCarousel.js +267 -0
  421. package/src/components/carousel/QCarousel.json +150 -0
  422. package/src/components/carousel/QCarousel.sass +126 -0
  423. package/src/components/carousel/QCarouselControl.js +36 -0
  424. package/src/components/carousel/QCarouselControl.json +34 -0
  425. package/src/components/carousel/QCarouselSlide.js +27 -0
  426. package/src/components/carousel/QCarouselSlide.json +36 -0
  427. package/src/components/carousel/index.js +9 -0
  428. package/src/components/chat/QChatMessage.js +155 -0
  429. package/src/components/chat/QChatMessage.json +115 -0
  430. package/src/components/chat/QChatMessage.sass +75 -0
  431. package/src/components/chat/index.js +5 -0
  432. package/src/components/checkbox/QCheckbox.js +35 -0
  433. package/src/components/checkbox/QCheckbox.json +7 -0
  434. package/src/components/checkbox/QCheckbox.sass +114 -0
  435. package/src/components/checkbox/index.js +5 -0
  436. package/src/components/checkbox/use-checkbox.js +236 -0
  437. package/src/components/checkbox/use-checkbox.json +127 -0
  438. package/src/components/chip/QChip.js +197 -0
  439. package/src/components/chip/QChip.json +146 -0
  440. package/src/components/chip/QChip.sass +83 -0
  441. package/src/components/chip/index.js +5 -0
  442. package/src/components/circular-progress/QCircularProgress.js +135 -0
  443. package/src/components/circular-progress/QCircularProgress.json +107 -0
  444. package/src/components/circular-progress/QCircularProgress.sass +38 -0
  445. package/src/components/circular-progress/index.js +5 -0
  446. package/src/components/circular-progress/use-circular-progress.js +38 -0
  447. package/src/components/color/QColor.js +830 -0
  448. package/src/components/color/QColor.json +96 -0
  449. package/src/components/color/QColor.sass +188 -0
  450. package/src/components/color/index.js +5 -0
  451. package/src/components/date/QDate.js +1450 -0
  452. package/src/components/date/QDate.json +439 -0
  453. package/src/components/date/QDate.sass +249 -0
  454. package/src/components/date/index.js +5 -0
  455. package/src/components/date/use-datetime.js +95 -0
  456. package/src/components/date/use-datetime.json +86 -0
  457. package/src/components/dialog/QDialog.js +402 -0
  458. package/src/components/dialog/QDialog.json +126 -0
  459. package/src/components/dialog/QDialog.sass +106 -0
  460. package/src/components/dialog/index.js +5 -0
  461. package/src/components/dialog-bottom-sheet/BottomSheet.js +177 -0
  462. package/src/components/dialog-bottom-sheet/BottomSheet.sass +37 -0
  463. package/src/components/dialog-plugin/DialogPlugin.js +323 -0
  464. package/src/components/dialog-plugin/DialogPlugin.sass +11 -0
  465. package/src/components/drawer/QDrawer.js +693 -0
  466. package/src/components/drawer/QDrawer.json +164 -0
  467. package/src/components/drawer/index.js +5 -0
  468. package/src/components/editor/QEditor.js +539 -0
  469. package/src/components/editor/QEditor.json +301 -0
  470. package/src/components/editor/QEditor.sass +83 -0
  471. package/src/components/editor/editor-caret.js +363 -0
  472. package/src/components/editor/editor-utils.js +287 -0
  473. package/src/components/editor/index.js +5 -0
  474. package/src/components/expansion-item/QExpansionItem.js +337 -0
  475. package/src/components/expansion-item/QExpansionItem.json +175 -0
  476. package/src/components/expansion-item/QExpansionItem.sass +72 -0
  477. package/src/components/expansion-item/index.js +5 -0
  478. package/src/components/fab/QFab.js +136 -0
  479. package/src/components/fab/QFab.json +73 -0
  480. package/src/components/fab/QFab.sass +154 -0
  481. package/src/components/fab/QFabAction.js +96 -0
  482. package/src/components/fab/QFabAction.json +59 -0
  483. package/src/components/fab/index.js +7 -0
  484. package/src/components/fab/use-fab.js +90 -0
  485. package/src/components/fab/use-fab.json +123 -0
  486. package/src/components/field/QField.js +17 -0
  487. package/src/components/field/QField.json +112 -0
  488. package/src/components/field/QField.sass +535 -0
  489. package/src/components/field/index.js +5 -0
  490. package/src/components/file/QFile.js +273 -0
  491. package/src/components/file/QFile.json +179 -0
  492. package/src/components/file/QFile.sass +19 -0
  493. package/src/components/file/index.js +5 -0
  494. package/src/components/footer/QFooter.js +200 -0
  495. package/src/components/footer/QFooter.json +60 -0
  496. package/src/components/footer/index.js +5 -0
  497. package/src/components/form/QForm.js +184 -0
  498. package/src/components/form/QForm.json +120 -0
  499. package/src/components/form/QForm.sass +2 -0
  500. package/src/components/form/QFormChildMixin.js +40 -0
  501. package/src/components/form/QFormChildMixin.json +22 -0
  502. package/src/components/form/index.js +7 -0
  503. package/src/components/header/QHeader.js +179 -0
  504. package/src/components/header/QHeader.json +70 -0
  505. package/src/components/header/index.js +5 -0
  506. package/src/components/icon/QIcon.js +202 -0
  507. package/src/components/icon/QIcon.json +45 -0
  508. package/src/components/icon/QIcon.sass +38 -0
  509. package/src/components/icon/index.js +5 -0
  510. package/src/components/img/QImg.js +287 -0
  511. package/src/components/img/QImg.json +225 -0
  512. package/src/components/img/QImg.sass +40 -0
  513. package/src/components/img/index.js +5 -0
  514. package/src/components/infinite-scroll/QInfiniteScroll.js +215 -0
  515. package/src/components/infinite-scroll/QInfiniteScroll.json +109 -0
  516. package/src/components/infinite-scroll/index.js +5 -0
  517. package/src/components/inner-loading/QInnerLoading.js +57 -0
  518. package/src/components/inner-loading/QInnerLoading.json +35 -0
  519. package/src/components/inner-loading/QInnerLoading.sass +4 -0
  520. package/src/components/inner-loading/index.js +5 -0
  521. package/src/components/input/QInput.js +394 -0
  522. package/src/components/input/QInput.json +131 -0
  523. package/src/components/input/QInput.sass +58 -0
  524. package/src/components/input/index.js +5 -0
  525. package/src/components/input/use-mask.js +543 -0
  526. package/src/components/input/use-mask.json +31 -0
  527. package/src/components/intersection/QIntersection.js +97 -0
  528. package/src/components/intersection/QIntersection.json +78 -0
  529. package/src/components/intersection/QIntersection.sass +2 -0
  530. package/src/components/intersection/index.js +5 -0
  531. package/src/components/item/QItem.js +156 -0
  532. package/src/components/item/QItem.json +65 -0
  533. package/src/components/item/QItem.sass +119 -0
  534. package/src/components/item/QItemLabel.js +42 -0
  535. package/src/components/item/QItemLabel.json +38 -0
  536. package/src/components/item/QItemSection.js +28 -0
  537. package/src/components/item/QItemSection.json +43 -0
  538. package/src/components/item/QList.js +34 -0
  539. package/src/components/item/QList.json +37 -0
  540. package/src/components/item/index.js +13 -0
  541. package/src/components/knob/QKnob.js +278 -0
  542. package/src/components/knob/QKnob.json +140 -0
  543. package/src/components/knob/QKnob.sass +21 -0
  544. package/src/components/knob/index.js +5 -0
  545. package/src/components/layout/QLayout.js +208 -0
  546. package/src/components/layout/QLayout.json +102 -0
  547. package/src/components/layout/QLayout.sass +181 -0
  548. package/src/components/layout/index.js +5 -0
  549. package/src/components/linear-progress/QLinearProgress.js +115 -0
  550. package/src/components/linear-progress/QLinearProgress.json +77 -0
  551. package/src/components/linear-progress/QLinearProgress.sass +71 -0
  552. package/src/components/linear-progress/index.js +5 -0
  553. package/src/components/markup-table/QMarkupTable.js +49 -0
  554. package/src/components/markup-table/QMarkupTable.json +48 -0
  555. package/src/components/markup-table/index.js +5 -0
  556. package/src/components/menu/QMenu.js +369 -0
  557. package/src/components/menu/QMenu.json +142 -0
  558. package/src/components/menu/QMenu.sass +16 -0
  559. package/src/components/menu/index.js +5 -0
  560. package/src/components/no-ssr/QNoSsr.js +46 -0
  561. package/src/components/no-ssr/QNoSsr.json +30 -0
  562. package/src/components/no-ssr/index.js +5 -0
  563. package/src/components/option-group/QOptionGroup.js +114 -0
  564. package/src/components/option-group/QOptionGroup.json +80 -0
  565. package/src/components/option-group/QOptionGroup.sass +5 -0
  566. package/src/components/option-group/index.js +5 -0
  567. package/src/components/page/QPage.js +55 -0
  568. package/src/components/page/QPage.json +44 -0
  569. package/src/components/page/QPageContainer.js +42 -0
  570. package/src/components/page/QPageContainer.json +11 -0
  571. package/src/components/page/index.js +7 -0
  572. package/src/components/page-scroller/QPageScroller.js +116 -0
  573. package/src/components/page-scroller/QPageScroller.json +36 -0
  574. package/src/components/page-scroller/index.js +5 -0
  575. package/src/components/page-sticky/QPageSticky.js +14 -0
  576. package/src/components/page-sticky/QPageSticky.json +39 -0
  577. package/src/components/page-sticky/index.js +5 -0
  578. package/src/components/page-sticky/use-page-sticky.js +117 -0
  579. package/src/components/pagination/QPagination.js +374 -0
  580. package/src/components/pagination/QPagination.json +254 -0
  581. package/src/components/pagination/QPagination.sass +9 -0
  582. package/src/components/pagination/index.js +5 -0
  583. package/src/components/parallax/QParallax.js +166 -0
  584. package/src/components/parallax/QParallax.json +73 -0
  585. package/src/components/parallax/QParallax.sass +15 -0
  586. package/src/components/parallax/index.js +5 -0
  587. package/src/components/popup-edit/QPopupEdit.js +193 -0
  588. package/src/components/popup-edit/QPopupEdit.json +283 -0
  589. package/src/components/popup-edit/QPopupEdit.sass +8 -0
  590. package/src/components/popup-edit/index.js +5 -0
  591. package/src/components/popup-proxy/QPopupProxy.js +104 -0
  592. package/src/components/popup-proxy/QPopupProxy.json +65 -0
  593. package/src/components/popup-proxy/index.js +5 -0
  594. package/src/components/pull-to-refresh/QPullToRefresh.js +213 -0
  595. package/src/components/pull-to-refresh/QPullToRefresh.json +66 -0
  596. package/src/components/pull-to-refresh/QPullToRefresh.sass +13 -0
  597. package/src/components/pull-to-refresh/index.js +5 -0
  598. package/src/components/radio/QRadio.js +179 -0
  599. package/src/components/radio/QRadio.json +94 -0
  600. package/src/components/radio/QRadio.sass +95 -0
  601. package/src/components/radio/index.js +5 -0
  602. package/src/components/range/QRange.js +529 -0
  603. package/src/components/range/QRange.json +208 -0
  604. package/src/components/range/index.js +5 -0
  605. package/src/components/rating/QRating.js +216 -0
  606. package/src/components/rating/QRating.json +110 -0
  607. package/src/components/rating/QRating.sass +29 -0
  608. package/src/components/rating/index.js +5 -0
  609. package/src/components/resize-observer/QResizeObserver.js +139 -0
  610. package/src/components/resize-observer/QResizeObserver.json +51 -0
  611. package/src/components/resize-observer/index.js +5 -0
  612. package/src/components/responsive/QResponsive.js +29 -0
  613. package/src/components/responsive/QResponsive.json +13 -0
  614. package/src/components/responsive/QResponsive.sass +19 -0
  615. package/src/components/responsive/index.js +5 -0
  616. package/src/components/scroll-area/QScrollArea.js +446 -0
  617. package/src/components/scroll-area/QScrollArea.json +300 -0
  618. package/src/components/scroll-area/QScrollArea.sass +37 -0
  619. package/src/components/scroll-area/index.js +5 -0
  620. package/src/components/scroll-observer/QScrollObserver.js +135 -0
  621. package/src/components/scroll-observer/QScrollObserver.json +115 -0
  622. package/src/components/scroll-observer/index.js +5 -0
  623. package/src/components/select/QSelect.js +1556 -0
  624. package/src/components/select/QSelect.json +789 -0
  625. package/src/components/select/QSelect.sass +64 -0
  626. package/src/components/select/index.js +5 -0
  627. package/src/components/separator/QSeparator.js +85 -0
  628. package/src/components/separator/QSeparator.json +42 -0
  629. package/src/components/separator/QSeparator.sass +32 -0
  630. package/src/components/separator/index.js +5 -0
  631. package/src/components/skeleton/QSkeleton.js +72 -0
  632. package/src/components/skeleton/QSkeleton.json +76 -0
  633. package/src/components/skeleton/QSkeleton.sass +140 -0
  634. package/src/components/skeleton/index.js +5 -0
  635. package/src/components/slide-item/QSlideItem.js +232 -0
  636. package/src/components/slide-item/QSlideItem.json +186 -0
  637. package/src/components/slide-item/QSlideItem.sass +41 -0
  638. package/src/components/slide-item/index.js +5 -0
  639. package/src/components/slide-transition/QSlideTransition.js +113 -0
  640. package/src/components/slide-transition/QSlideTransition.json +37 -0
  641. package/src/components/slide-transition/index.js +5 -0
  642. package/src/components/slider/QSlider.js +239 -0
  643. package/src/components/slider/QSlider.json +147 -0
  644. package/src/components/slider/QSlider.sass +225 -0
  645. package/src/components/slider/index.js +5 -0
  646. package/src/components/slider/use-slider.js +304 -0
  647. package/src/components/space/QSpace.js +11 -0
  648. package/src/components/space/QSpace.json +5 -0
  649. package/src/components/space/QSpace.sass +2 -0
  650. package/src/components/space/index.js +5 -0
  651. package/src/components/spinner/QSpinner.js +38 -0
  652. package/src/components/spinner/QSpinner.json +21 -0
  653. package/src/components/spinner/QSpinner.sass +34 -0
  654. package/src/components/spinner/QSpinnerAudio.js +88 -0
  655. package/src/components/spinner/QSpinnerAudio.json +3 -0
  656. package/src/components/spinner/QSpinnerBall.js +104 -0
  657. package/src/components/spinner/QSpinnerBall.json +3 -0
  658. package/src/components/spinner/QSpinnerBars.js +143 -0
  659. package/src/components/spinner/QSpinnerBars.json +3 -0
  660. package/src/components/spinner/QSpinnerBox.js +61 -0
  661. package/src/components/spinner/QSpinnerBox.json +3 -0
  662. package/src/components/spinner/QSpinnerClock.js +72 -0
  663. package/src/components/spinner/QSpinnerClock.json +3 -0
  664. package/src/components/spinner/QSpinnerComment.js +84 -0
  665. package/src/components/spinner/QSpinnerComment.json +3 -0
  666. package/src/components/spinner/QSpinnerCube.js +132 -0
  667. package/src/components/spinner/QSpinnerCube.json +3 -0
  668. package/src/components/spinner/QSpinnerDots.js +104 -0
  669. package/src/components/spinner/QSpinnerDots.json +3 -0
  670. package/src/components/spinner/QSpinnerFacebook.js +103 -0
  671. package/src/components/spinner/QSpinnerFacebook.json +3 -0
  672. package/src/components/spinner/QSpinnerGears.js +59 -0
  673. package/src/components/spinner/QSpinnerGears.json +3 -0
  674. package/src/components/spinner/QSpinnerGrid.js +152 -0
  675. package/src/components/spinner/QSpinnerGrid.json +3 -0
  676. package/src/components/spinner/QSpinnerHearts.js +54 -0
  677. package/src/components/spinner/QSpinnerHearts.json +3 -0
  678. package/src/components/spinner/QSpinnerHourglass.js +112 -0
  679. package/src/components/spinner/QSpinnerHourglass.json +3 -0
  680. package/src/components/spinner/QSpinnerInfinity.js +42 -0
  681. package/src/components/spinner/QSpinnerInfinity.json +3 -0
  682. package/src/components/spinner/QSpinnerIos.js +174 -0
  683. package/src/components/spinner/QSpinnerIos.json +3 -0
  684. package/src/components/spinner/QSpinnerOrbit.js +51 -0
  685. package/src/components/spinner/QSpinnerOrbit.json +3 -0
  686. package/src/components/spinner/QSpinnerOval.js +50 -0
  687. package/src/components/spinner/QSpinnerOval.json +3 -0
  688. package/src/components/spinner/QSpinnerPie.js +81 -0
  689. package/src/components/spinner/QSpinnerPie.json +3 -0
  690. package/src/components/spinner/QSpinnerPuff.js +83 -0
  691. package/src/components/spinner/QSpinnerPuff.json +3 -0
  692. package/src/components/spinner/QSpinnerRadio.js +76 -0
  693. package/src/components/spinner/QSpinnerRadio.json +3 -0
  694. package/src/components/spinner/QSpinnerRings.js +106 -0
  695. package/src/components/spinner/QSpinnerRings.json +3 -0
  696. package/src/components/spinner/QSpinnerTail.js +83 -0
  697. package/src/components/spinner/QSpinnerTail.json +3 -0
  698. package/src/components/spinner/__spinner-mixin.json +13 -0
  699. package/src/components/spinner/index.js +51 -0
  700. package/src/components/spinner/use-spinner.js +24 -0
  701. package/src/components/splitter/QSplitter.js +205 -0
  702. package/src/components/splitter/QSplitter.json +129 -0
  703. package/src/components/splitter/QSplitter.sass +54 -0
  704. package/src/components/splitter/index.js +5 -0
  705. package/src/components/stepper/QStep.js +132 -0
  706. package/src/components/stepper/QStep.json +101 -0
  707. package/src/components/stepper/QStepper.js +133 -0
  708. package/src/components/stepper/QStepper.json +108 -0
  709. package/src/components/stepper/QStepper.sass +210 -0
  710. package/src/components/stepper/QStepperNavigation.js +11 -0
  711. package/src/components/stepper/QStepperNavigation.json +11 -0
  712. package/src/components/stepper/StepHeader.js +165 -0
  713. package/src/components/stepper/index.js +9 -0
  714. package/src/components/tab-panels/QTabPanel.js +14 -0
  715. package/src/components/tab-panels/QTabPanel.json +19 -0
  716. package/src/components/tab-panels/QTabPanel.sass +5 -0
  717. package/src/components/tab-panels/QTabPanels.js +42 -0
  718. package/src/components/tab-panels/QTabPanels.json +13 -0
  719. package/src/components/tab-panels/index.js +7 -0
  720. package/src/components/table/QTable.js +1068 -0
  721. package/src/components/table/QTable.json +2318 -0
  722. package/src/components/table/QTable.sass +283 -0
  723. package/src/components/table/QTd.js +43 -0
  724. package/src/components/table/QTd.json +32 -0
  725. package/src/components/table/QTh.js +69 -0
  726. package/src/components/table/QTh.json +26 -0
  727. package/src/components/table/QTr.js +22 -0
  728. package/src/components/table/QTr.json +26 -0
  729. package/src/components/table/get-table-middle.js +7 -0
  730. package/src/components/table/index.js +11 -0
  731. package/src/components/table/table-column-selection.js +88 -0
  732. package/src/components/table/table-filter.js +35 -0
  733. package/src/components/table/table-pagination.js +213 -0
  734. package/src/components/table/table-row-expand.js +56 -0
  735. package/src/components/table/table-row-selection.js +87 -0
  736. package/src/components/table/table-sort.js +124 -0
  737. package/src/components/tabs/QRouteTab.js +36 -0
  738. package/src/components/tabs/QRouteTab.json +55 -0
  739. package/src/components/tabs/QTab.js +16 -0
  740. package/src/components/tabs/QTab.json +78 -0
  741. package/src/components/tabs/QTabs.js +465 -0
  742. package/src/components/tabs/QTabs.json +141 -0
  743. package/src/components/tabs/QTabs.sass +189 -0
  744. package/src/components/tabs/index.js +9 -0
  745. package/src/components/tabs/use-tab.js +199 -0
  746. package/src/components/time/QTime.js +918 -0
  747. package/src/components/time/QTime.json +174 -0
  748. package/src/components/time/QTime.sass +186 -0
  749. package/src/components/time/index.js +5 -0
  750. package/src/components/timeline/QTimeline.js +43 -0
  751. package/src/components/timeline/QTimeline.json +37 -0
  752. package/src/components/timeline/QTimeline.sass +243 -0
  753. package/src/components/timeline/QTimelineEntry.js +110 -0
  754. package/src/components/timeline/QTimelineEntry.json +84 -0
  755. package/src/components/timeline/index.js +7 -0
  756. package/src/components/toggle/QToggle.js +56 -0
  757. package/src/components/toggle/QToggle.json +39 -0
  758. package/src/components/toggle/QToggle.sass +132 -0
  759. package/src/components/toggle/index.js +5 -0
  760. package/src/components/toolbar/QToolbar.js +20 -0
  761. package/src/components/toolbar/QToolbar.json +19 -0
  762. package/src/components/toolbar/QToolbar.sass +25 -0
  763. package/src/components/toolbar/QToolbarTitle.js +20 -0
  764. package/src/components/toolbar/QToolbarTitle.json +19 -0
  765. package/src/components/toolbar/index.js +7 -0
  766. package/src/components/tooltip/QTooltip.js +309 -0
  767. package/src/components/tooltip/QTooltip.json +113 -0
  768. package/src/components/tooltip/QTooltip.sass +18 -0
  769. package/src/components/tooltip/index.js +5 -0
  770. package/src/components/tree/QTree.js +694 -0
  771. package/src/components/tree/QTree.json +524 -0
  772. package/src/components/tree/QTree.sass +132 -0
  773. package/src/components/tree/index.js +5 -0
  774. package/src/components/uploader/QUploader.js +4 -0
  775. package/src/components/uploader/QUploader.json +144 -0
  776. package/src/components/uploader/QUploader.sass +134 -0
  777. package/src/components/uploader/QUploaderAddTrigger.js +13 -0
  778. package/src/components/uploader/QUploaderAddTrigger.json +5 -0
  779. package/src/components/uploader/index.js +7 -0
  780. package/src/components/uploader/uploader-core.js +481 -0
  781. package/src/components/uploader/xhr-uploader-plugin.js +258 -0
  782. package/src/components/uploader/xhr-uploader-plugin.json +203 -0
  783. package/src/components/video/QVideo.js +36 -0
  784. package/src/components/video/QVideo.json +19 -0
  785. package/src/components/video/QVideo.sass +24 -0
  786. package/src/components/video/index.js +5 -0
  787. package/src/components/virtual-scroll/QVirtualScroll.js +161 -0
  788. package/src/components/virtual-scroll/QVirtualScroll.json +95 -0
  789. package/src/components/virtual-scroll/QVirtualScroll.sass +40 -0
  790. package/src/components/virtual-scroll/index.js +5 -0
  791. package/src/components/virtual-scroll/use-virtual-scroll.js +727 -0
  792. package/src/components/virtual-scroll/use-virtual-scroll.json +141 -0
  793. package/src/components.js +79 -0
  794. package/src/composables/private/use-align.js +31 -0
  795. package/src/composables/private/use-anchor.js +208 -0
  796. package/src/composables/private/use-anchor.json +29 -0
  797. package/src/composables/private/use-cache.js +21 -0
  798. package/src/composables/private/use-can-render.js +16 -0
  799. package/src/composables/private/use-dark.js +17 -0
  800. package/src/composables/private/use-field.js +589 -0
  801. package/src/composables/private/use-field.json +246 -0
  802. package/src/composables/private/use-file-dom-props.js +44 -0
  803. package/src/composables/private/use-file.js +201 -0
  804. package/src/composables/private/use-file.json +106 -0
  805. package/src/composables/private/use-form.js +29 -0
  806. package/src/composables/private/use-form.json +10 -0
  807. package/src/composables/private/use-fullscreen.js +101 -0
  808. package/src/composables/private/use-fullscreen.json +32 -0
  809. package/src/composables/private/use-history.js +31 -0
  810. package/src/composables/private/use-key-composition.js +26 -0
  811. package/src/composables/private/use-model-toggle.js +151 -0
  812. package/src/composables/private/use-model-toggle.json +51 -0
  813. package/src/composables/private/use-panel.child.json +17 -0
  814. package/src/composables/private/use-panel.js +277 -0
  815. package/src/composables/private/use-panel.json +142 -0
  816. package/src/composables/private/use-panel.sass +11 -0
  817. package/src/composables/private/use-portal.js +100 -0
  818. package/src/composables/private/use-portal.json +3 -0
  819. package/src/composables/private/use-prevent-scroll.js +17 -0
  820. package/src/composables/private/use-ratio.js +18 -0
  821. package/src/composables/private/use-ratio.json +14 -0
  822. package/src/composables/private/use-refocus-target.js +33 -0
  823. package/src/composables/private/use-router-link.js +213 -0
  824. package/src/composables/private/use-router-link.json +43 -0
  825. package/src/composables/private/use-scroll-target.js +46 -0
  826. package/src/composables/private/use-size.js +22 -0
  827. package/src/composables/private/use-size.json +10 -0
  828. package/src/composables/private/use-split-attrs.js +33 -0
  829. package/src/composables/private/use-tick.js +39 -0
  830. package/src/composables/private/use-timeout.js +20 -0
  831. package/src/composables/private/use-transition.js +35 -0
  832. package/src/composables/private/use-transition.json +21 -0
  833. package/src/composables/private/use-validate.js +215 -0
  834. package/src/composables/private/use-validate.json +77 -0
  835. package/src/composables/use-dialog-plugin-component.js +39 -0
  836. package/src/composables/use-form-child.js +35 -0
  837. package/src/composables/use-meta.js +49 -0
  838. package/src/composables/use-quasar.js +10 -0
  839. package/src/composables.js +11 -0
  840. package/src/css/core/animations.sass +90 -0
  841. package/src/css/core/colors.sass +1788 -0
  842. package/src/css/core/dark.sass +7 -0
  843. package/src/css/core/elevation.sass +27 -0
  844. package/src/css/core/flex.sass +158 -0
  845. package/src/css/core/helpers.sass +61 -0
  846. package/src/css/core/mouse.sass +40 -0
  847. package/src/css/core/orientation.sass +18 -0
  848. package/src/css/core/positioning.sass +101 -0
  849. package/src/css/core/size.sass +75 -0
  850. package/src/css/core/touch.sass +9 -0
  851. package/src/css/core/transitions.sass +153 -0
  852. package/src/css/core/typography.sass +70 -0
  853. package/src/css/core/visibility.sass +163 -0
  854. package/src/css/flex-addon.sass +212 -0
  855. package/src/css/helpers/math.sass +42 -0
  856. package/src/css/helpers/string.sass +17 -0
  857. package/src/css/index.sass +102 -0
  858. package/src/css/normalize.sass +177 -0
  859. package/src/css/variables.sass +550 -0
  860. package/src/directives/ClosePopup.js +66 -0
  861. package/src/directives/ClosePopup.json +17 -0
  862. package/src/directives/Intersection.js +90 -0
  863. package/src/directives/Intersection.json +231 -0
  864. package/src/directives/Morph.js +211 -0
  865. package/src/directives/Morph.json +177 -0
  866. package/src/directives/Morph.sass +7 -0
  867. package/src/directives/Morph.ssr.js +45 -0
  868. package/src/directives/Mutation.js +63 -0
  869. package/src/directives/Mutation.json +124 -0
  870. package/src/directives/Ripple.js +141 -0
  871. package/src/directives/Ripple.json +105 -0
  872. package/src/directives/Ripple.sass +29 -0
  873. package/src/directives/Scroll.js +49 -0
  874. package/src/directives/Scroll.json +24 -0
  875. package/src/directives/ScrollFire.js +65 -0
  876. package/src/directives/ScrollFire.json +19 -0
  877. package/src/directives/TouchHold.js +159 -0
  878. package/src/directives/TouchHold.json +82 -0
  879. package/src/directives/TouchPan.js +410 -0
  880. package/src/directives/TouchPan.json +187 -0
  881. package/src/directives/TouchRepeat.js +241 -0
  882. package/src/directives/TouchRepeat.json +153 -0
  883. package/src/directives/TouchSwipe.js +265 -0
  884. package/src/directives/TouchSwipe.json +113 -0
  885. package/src/directives.js +25 -0
  886. package/src/history.js +118 -0
  887. package/src/icon-set.js +60 -0
  888. package/src/index.all.js +25 -0
  889. package/src/index.umd.js +28 -0
  890. package/src/install-quasar.js +137 -0
  891. package/src/lang.js +100 -0
  892. package/src/plugins/AddressbarColor.js +69 -0
  893. package/src/plugins/AddressbarColor.json +21 -0
  894. package/src/plugins/AppFullscreen.js +110 -0
  895. package/src/plugins/AppFullscreen.json +74 -0
  896. package/src/plugins/AppVisibility.js +40 -0
  897. package/src/plugins/AppVisibility.json +16 -0
  898. package/src/plugins/BottomSheet.js +13 -0
  899. package/src/plugins/BottomSheet.json +91 -0
  900. package/src/plugins/Cookies.js +204 -0
  901. package/src/plugins/Cookies.json +160 -0
  902. package/src/plugins/Dark.js +98 -0
  903. package/src/plugins/Dark.json +40 -0
  904. package/src/plugins/Dialog.js +13 -0
  905. package/src/plugins/Dialog.json +322 -0
  906. package/src/plugins/Loading.js +151 -0
  907. package/src/plugins/Loading.json +182 -0
  908. package/src/plugins/Loading.sass +26 -0
  909. package/src/plugins/LoadingBar.js +67 -0
  910. package/src/plugins/LoadingBar.json +58 -0
  911. package/src/plugins/LocalStorage.js +16 -0
  912. package/src/plugins/LocalStorage.json +5 -0
  913. package/src/plugins/Meta.js +257 -0
  914. package/src/plugins/Meta.json +5 -0
  915. package/src/plugins/Notify.js +513 -0
  916. package/src/plugins/Notify.json +838 -0
  917. package/src/plugins/Notify.sass +203 -0
  918. package/src/plugins/Platform.js +366 -0
  919. package/src/plugins/Platform.json +73 -0
  920. package/src/plugins/Screen.js +176 -0
  921. package/src/plugins/Screen.json +192 -0
  922. package/src/plugins/SessionStorage.js +16 -0
  923. package/src/plugins/SessionStorage.json +5 -0
  924. package/src/plugins.js +33 -0
  925. package/src/utils/clone.js +6 -0
  926. package/src/utils/colors.js +295 -0
  927. package/src/utils/copy-to-clipboard.js +29 -0
  928. package/src/utils/create-meta-mixin.js +67 -0
  929. package/src/utils/create-uploader-component.js +21 -0
  930. package/src/utils/date.js +888 -0
  931. package/src/utils/debounce.js +26 -0
  932. package/src/utils/dom.js +98 -0
  933. package/src/utils/event.js +170 -0
  934. package/src/utils/export-file.js +65 -0
  935. package/src/utils/extend.js +83 -0
  936. package/src/utils/format.js +56 -0
  937. package/src/utils/frame-debounce.js +22 -0
  938. package/src/utils/get-css-var.js +11 -0
  939. package/src/utils/morph.js +987 -0
  940. package/src/utils/open-url.js +62 -0
  941. package/src/utils/patterns.js +31 -0
  942. package/src/utils/prevent-scroll.js +195 -0
  943. package/src/utils/private/click-outside.js +81 -0
  944. package/src/utils/private/date-persian.js +281 -0
  945. package/src/utils/private/define-reactive-plugin.js +21 -0
  946. package/src/utils/private/escape-key.js +53 -0
  947. package/src/utils/private/focus-manager.js +36 -0
  948. package/src/utils/private/focusout.js +28 -0
  949. package/src/utils/private/global-config.js +7 -0
  950. package/src/utils/private/global-dialog.js +161 -0
  951. package/src/utils/private/global-dialog.json +123 -0
  952. package/src/utils/private/global-nodes.js +43 -0
  953. package/src/utils/private/is.js +150 -0
  954. package/src/utils/private/key-composition.js +18 -0
  955. package/src/utils/private/noop-ssr-directive-transform.js +1 -0
  956. package/src/utils/private/option-sizes.js +7 -0
  957. package/src/utils/private/portal.js +56 -0
  958. package/src/utils/private/position-engine.js +244 -0
  959. package/src/utils/private/render.js +63 -0
  960. package/src/utils/private/selection.js +17 -0
  961. package/src/utils/private/sort.js +20 -0
  962. package/src/utils/private/symbols.js +9 -0
  963. package/src/utils/private/touch.js +55 -0
  964. package/src/utils/private/vm.js +38 -0
  965. package/src/utils/private/web-storage.js +135 -0
  966. package/src/utils/private/web-storage.json +150 -0
  967. package/src/utils/scroll.js +198 -0
  968. package/src/utils/set-css-var.js +13 -0
  969. package/src/utils/throttle.js +13 -0
  970. package/src/utils/uid.js +72 -0
  971. package/src/utils.js +46 -0
  972. package/src/vue-plugin.js +10 -0
  973. package/wrappers/index.js +31 -0
@@ -0,0 +1,9 @@
1
+ import QStep from './QStep.js'
2
+ import QStepper from './QStepper.js'
3
+ import QStepperNavigation from './QStepperNavigation.js'
4
+
5
+ export {
6
+ QStep,
7
+ QStepper,
8
+ QStepperNavigation
9
+ }
@@ -0,0 +1,14 @@
1
+ import { h, defineComponent } from 'vue'
2
+
3
+ import { usePanelChildProps } from '../../composables/private/use-panel.js'
4
+ import { hSlot } from '../../utils/private/render.js'
5
+
6
+ export default defineComponent({
7
+ name: 'QTabPanel',
8
+
9
+ props: usePanelChildProps,
10
+
11
+ setup (_, { slots }) {
12
+ return () => h('div', { class: 'q-tab-panel' }, hSlot(slots.default))
13
+ }
14
+ })
@@ -0,0 +1,19 @@
1
+ {
2
+ "meta": {
3
+ "docsUrl": "https://v2.quasar.dev/vue-components/tab-panels"
4
+ },
5
+
6
+ "mixins": [ "composables/private/use-panel.child" ],
7
+
8
+ "props": {
9
+ "dark": {
10
+ "extends": "dark"
11
+ }
12
+ },
13
+
14
+ "slots": {
15
+ "default": {
16
+ "extends": "default"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,5 @@
1
+ .q-tab-panels
2
+ background: #fff
3
+
4
+ .q-tab-panel
5
+ padding: 16px
@@ -0,0 +1,42 @@
1
+ import { defineComponent, computed, getCurrentInstance } from 'vue'
2
+
3
+ import useDark, { useDarkProps } from '../../composables/private/use-dark.js'
4
+ import usePanel, { usePanelProps, usePanelEmits } from '../../composables/private/use-panel.js'
5
+
6
+ import { hDir } from '../../utils/private/render.js'
7
+
8
+ export default defineComponent({
9
+ name: 'QTabPanels',
10
+
11
+ props: {
12
+ ...usePanelProps,
13
+ ...useDarkProps
14
+ },
15
+
16
+ emits: usePanelEmits,
17
+
18
+ setup (props, { slots }) {
19
+ const vm = getCurrentInstance()
20
+ const isDark = useDark(props, vm.proxy.$q)
21
+
22
+ const { updatePanelsList, getPanelContent, panelDirectives } = usePanel()
23
+
24
+ const classes = computed(() =>
25
+ 'q-tab-panels q-panel-parent'
26
+ + (isDark.value === true ? ' q-tab-panels--dark q-dark' : '')
27
+ )
28
+
29
+ return () => {
30
+ updatePanelsList(slots)
31
+
32
+ return hDir(
33
+ 'div',
34
+ { class: classes.value },
35
+ getPanelContent(),
36
+ 'pan',
37
+ props.swipeable,
38
+ () => panelDirectives.value
39
+ )
40
+ }
41
+ }
42
+ })
@@ -0,0 +1,13 @@
1
+ {
2
+ "mixins": [ "composables/private/use-panel" ],
3
+
4
+ "meta": {
5
+ "docsUrl": "https://v2.quasar.dev/vue-components/tab-panels"
6
+ },
7
+
8
+ "slots": {
9
+ "default": {
10
+ "extends": "default"
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ import QTabPanels from './QTabPanels.js'
2
+ import QTabPanel from './QTabPanel.js'
3
+
4
+ export {
5
+ QTabPanels,
6
+ QTabPanel
7
+ }
@@ -0,0 +1,1068 @@
1
+ import { h, defineComponent, ref, computed, watch, getCurrentInstance } from 'vue'
2
+
3
+ import QTh from './QTh.js'
4
+
5
+ import QSeparator from '../separator/QSeparator.js'
6
+ import QIcon from '../icon/QIcon.js'
7
+ import QVirtualScroll from '../virtual-scroll/QVirtualScroll.js'
8
+ import QSelect from '../select/QSelect.js'
9
+ import QLinearProgress from '../linear-progress/QLinearProgress.js'
10
+ import QCheckbox from '../checkbox/QCheckbox.js'
11
+ import QBtn from '../btn/QBtn.js'
12
+
13
+ import getTableMiddle from './get-table-middle.js'
14
+
15
+ import useDark, { useDarkProps } from '../../composables/private/use-dark.js'
16
+ import { commonVirtPropsList } from '../virtual-scroll/use-virtual-scroll.js'
17
+ import useFullscreen, { useFullscreenProps, useFullscreenEmits } from '../../composables/private/use-fullscreen.js'
18
+
19
+ import { useTableSort, useTableSortProps } from './table-sort.js'
20
+ import { useTableFilter, useTableFilterProps } from './table-filter.js'
21
+ import { useTablePaginationState, useTablePagination, useTablePaginationProps } from './table-pagination.js'
22
+ import { useTableRowSelection, useTableRowSelectionProps, useTableRowSelectionEmits } from './table-row-selection.js'
23
+ import { useTableRowExpand, useTableRowExpandProps, useTableRowExpandEmits } from './table-row-expand.js'
24
+ import { useTableColumnSelection, useTableColumnSelectionProps } from './table-column-selection.js'
25
+
26
+ const bottomClass = 'q-table__bottom row items-center'
27
+
28
+ const commonVirtPropsObj = {}
29
+ commonVirtPropsList.forEach(p => { commonVirtPropsObj[ p ] = {} })
30
+
31
+ export default defineComponent({
32
+ name: 'QTable',
33
+
34
+ props: {
35
+ rows: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ rowKey: {
40
+ type: [ String, Function ],
41
+ default: 'id'
42
+ },
43
+
44
+ columns: Array,
45
+ loading: Boolean,
46
+
47
+ iconFirstPage: String,
48
+ iconPrevPage: String,
49
+ iconNextPage: String,
50
+ iconLastPage: String,
51
+
52
+ title: String,
53
+
54
+ hideHeader: Boolean,
55
+
56
+ grid: Boolean,
57
+ gridHeader: Boolean,
58
+
59
+ dense: Boolean,
60
+ flat: Boolean,
61
+ bordered: Boolean,
62
+ square: Boolean,
63
+ separator: {
64
+ type: String,
65
+ default: 'horizontal',
66
+ validator: v => [ 'horizontal', 'vertical', 'cell', 'none' ].includes(v)
67
+ },
68
+ wrapCells: Boolean,
69
+
70
+ virtualScroll: Boolean,
71
+ ...commonVirtPropsObj,
72
+
73
+ noDataLabel: String,
74
+ noResultsLabel: String,
75
+ loadingLabel: String,
76
+ selectedRowsLabel: Function,
77
+ rowsPerPageLabel: String,
78
+ paginationLabel: Function,
79
+
80
+ color: {
81
+ type: String,
82
+ default: 'grey-8'
83
+ },
84
+
85
+ titleClass: [ String, Array, Object ],
86
+ tableStyle: [ String, Array, Object ],
87
+ tableClass: [ String, Array, Object ],
88
+ tableHeaderStyle: [ String, Array, Object ],
89
+ tableHeaderClass: [ String, Array, Object ],
90
+ cardContainerClass: [ String, Array, Object ],
91
+ cardContainerStyle: [ String, Array, Object ],
92
+ cardStyle: [ String, Array, Object ],
93
+ cardClass: [ String, Array, Object ],
94
+
95
+ hideBottom: Boolean,
96
+ hideSelectedBanner: Boolean,
97
+ hideNoData: Boolean,
98
+ hidePagination: Boolean,
99
+
100
+ onRowClick: Function,
101
+ onRowDblclick: Function,
102
+ onRowContextmenu: Function,
103
+
104
+ ...useDarkProps,
105
+ ...useFullscreenProps,
106
+
107
+ ...useTableColumnSelectionProps,
108
+ ...useTableFilterProps,
109
+ ...useTablePaginationProps,
110
+ ...useTableRowExpandProps,
111
+ ...useTableRowSelectionProps,
112
+ ...useTableSortProps
113
+ },
114
+
115
+ emits: [
116
+ 'request', 'virtual-scroll',
117
+ ...useFullscreenEmits,
118
+ ...useTableRowExpandEmits,
119
+ ...useTableRowSelectionEmits
120
+ ],
121
+
122
+ setup (props, { slots, emit }) {
123
+ const vm = getCurrentInstance()
124
+ const { proxy: { $q } } = vm
125
+
126
+ const isDark = useDark(props, $q)
127
+ const { inFullscreen, toggleFullscreen } = useFullscreen()
128
+
129
+ const getRowKey = computed(() => (
130
+ typeof props.rowKey === 'function'
131
+ ? props.rowKey
132
+ : row => row[ props.rowKey ]
133
+ ))
134
+
135
+ const rootRef = ref(null)
136
+ const virtScrollRef = ref(null)
137
+ const hasVirtScroll = computed(() => props.grid !== true && props.virtualScroll === true)
138
+
139
+ const cardDefaultClass = computed(() =>
140
+ ' q-table__card'
141
+ + (isDark.value === true ? ' q-table__card--dark q-dark' : '')
142
+ + (props.square === true ? ' q-table--square' : '')
143
+ + (props.flat === true ? ' q-table--flat' : '')
144
+ + (props.bordered === true ? ' q-table--bordered' : '')
145
+ )
146
+
147
+ const __containerClass = computed(() =>
148
+ `q-table__container q-table--${ props.separator }-separator column no-wrap`
149
+ + (props.loading === true ? ' q-table--loading' : '')
150
+ + (props.grid === true ? ' q-table--grid' : cardDefaultClass.value)
151
+ + (isDark.value === true ? ' q-table--dark' : '')
152
+ + (props.dense === true ? ' q-table--dense' : '')
153
+ + (props.wrapCells === false ? ' q-table--no-wrap' : '')
154
+ + (inFullscreen.value === true ? ' fullscreen scroll' : '')
155
+ )
156
+
157
+ const containerClass = computed(() =>
158
+ __containerClass.value + (props.loading === true ? ' q-table--loading' : '')
159
+ )
160
+
161
+ watch(
162
+ () => props.tableStyle + props.tableClass + props.tableHeaderStyle + props.tableHeaderClass + __containerClass.value,
163
+ () => { hasVirtScroll.value === true && virtScrollRef.value !== null && virtScrollRef.value.reset() }
164
+ )
165
+
166
+ const {
167
+ innerPagination,
168
+ computedPagination,
169
+ isServerSide,
170
+
171
+ requestServerInteraction,
172
+ setPagination
173
+ } = useTablePaginationState(vm, getCellValue)
174
+
175
+ const { computedFilterMethod } = useTableFilter(props, setPagination)
176
+ const { isRowExpanded, setExpanded, updateExpanded } = useTableRowExpand(props, emit)
177
+
178
+ const filteredSortedRows = computed(() => {
179
+ let rows = props.rows
180
+
181
+ if (isServerSide.value === true || rows.length === 0) {
182
+ return rows
183
+ }
184
+
185
+ const { sortBy, descending } = computedPagination.value
186
+
187
+ if (props.filter) {
188
+ rows = computedFilterMethod.value(rows, props.filter, computedCols.value, getCellValue)
189
+ }
190
+
191
+ if (columnToSort.value !== null) {
192
+ rows = computedSortMethod.value(
193
+ props.rows === rows ? rows.slice() : rows,
194
+ sortBy,
195
+ descending
196
+ )
197
+ }
198
+
199
+ return rows
200
+ })
201
+
202
+ const filteredSortedRowsNumber = computed(() => filteredSortedRows.value.length)
203
+
204
+ const computedRows = computed(() => {
205
+ let rows = filteredSortedRows.value
206
+
207
+ if (isServerSide.value === true) {
208
+ return rows
209
+ }
210
+
211
+ const { rowsPerPage } = computedPagination.value
212
+
213
+ if (rowsPerPage !== 0) {
214
+ if (firstRowIndex.value === 0 && props.rows !== rows) {
215
+ if (rows.length > lastRowIndex.value) {
216
+ rows = rows.slice(0, lastRowIndex.value)
217
+ }
218
+ }
219
+ else {
220
+ rows = rows.slice(firstRowIndex.value, lastRowIndex.value)
221
+ }
222
+ }
223
+
224
+ return rows
225
+ })
226
+
227
+ const {
228
+ hasSelectionMode,
229
+ singleSelection,
230
+ multipleSelection,
231
+ allRowsSelected,
232
+ someRowsSelected,
233
+ rowsSelectedNumber,
234
+
235
+ isRowSelected,
236
+ clearSelection,
237
+ updateSelection
238
+ } = useTableRowSelection(props, emit, computedRows, getRowKey)
239
+
240
+ const { colList, computedCols, computedColsMap, computedColspan } = useTableColumnSelection(props, computedPagination, hasSelectionMode)
241
+
242
+ const { columnToSort, computedSortMethod, sort } = useTableSort(props, computedPagination, colList, setPagination)
243
+
244
+ const {
245
+ firstRowIndex,
246
+ lastRowIndex,
247
+ isFirstPage,
248
+ isLastPage,
249
+ pagesNumber,
250
+ computedRowsPerPageOptions,
251
+ computedRowsNumber,
252
+
253
+ firstPage,
254
+ prevPage,
255
+ nextPage,
256
+ lastPage
257
+ } = useTablePagination(vm, innerPagination, computedPagination, isServerSide, setPagination, filteredSortedRowsNumber)
258
+
259
+ const nothingToDisplay = computed(() => computedRows.value.length === 0)
260
+
261
+ const virtProps = computed(() => {
262
+ const acc = {}
263
+
264
+ commonVirtPropsList
265
+ .forEach(p => { acc[ p ] = props[ p ] })
266
+
267
+ if (acc.virtualScrollItemSize === void 0) {
268
+ acc.virtualScrollItemSize = props.dense === true ? 28 : 48
269
+ }
270
+
271
+ return acc
272
+ })
273
+
274
+ function resetVirtualScroll () {
275
+ hasVirtScroll.value === true && virtScrollRef.value.reset()
276
+ }
277
+
278
+ function getBody () {
279
+ if (props.grid === true) {
280
+ return getGridBody()
281
+ }
282
+
283
+ const header = props.hideHeader !== true ? getTHead : null
284
+
285
+ if (hasVirtScroll.value === true) {
286
+ const topRow = slots[ 'top-row' ]
287
+ const bottomRow = slots[ 'bottom-row' ]
288
+
289
+ const virtSlots = {
290
+ default: props => getTBodyTR(props.item, slots.body, props.index)
291
+ }
292
+
293
+ if (topRow !== void 0) {
294
+ const topContent = h('tbody', topRow({ cols: computedCols.value }))
295
+
296
+ virtSlots.before = header === null
297
+ ? () => topContent
298
+ : () => [ header() ].concat(topContent)
299
+ }
300
+ else if (header !== null) {
301
+ virtSlots.before = header
302
+ }
303
+
304
+ if (bottomRow !== void 0) {
305
+ virtSlots.after = () => h('tbody', bottomRow({ cols: computedCols.value }))
306
+ }
307
+
308
+ return h(QVirtualScroll, {
309
+ ref: virtScrollRef,
310
+ class: props.tableClass,
311
+ style: props.tableStyle,
312
+ ...virtProps.value,
313
+ items: computedRows.value,
314
+ type: '__qtable',
315
+ tableColspan: computedColspan.value,
316
+ onVirtualScroll: onVScroll
317
+ }, virtSlots)
318
+ }
319
+
320
+ const child = [
321
+ getTBody()
322
+ ]
323
+
324
+ if (header !== null) {
325
+ child.unshift(header())
326
+ }
327
+
328
+ return getTableMiddle({
329
+ class: [ 'q-table__middle scroll', props.tableClass ],
330
+ style: props.tableStyle
331
+ }, child)
332
+ }
333
+
334
+ function scrollTo (toIndex, edge) {
335
+ if (virtScrollRef.value !== null) {
336
+ virtScrollRef.value.scrollTo(toIndex, edge)
337
+ return
338
+ }
339
+
340
+ toIndex = parseInt(toIndex, 10)
341
+ const rowEl = rootRef.value.querySelector(`tbody tr:nth-of-type(${ toIndex + 1 })`)
342
+
343
+ if (rowEl !== null) {
344
+ const scrollTarget = rootRef.value.querySelector('.q-table__middle.scroll')
345
+ const { offsetTop } = rowEl
346
+ const direction = offsetTop < scrollTarget.scrollTop ? 'decrease' : 'increase'
347
+
348
+ scrollTarget.scrollTop = offsetTop
349
+
350
+ emit('virtual-scroll', {
351
+ index: toIndex,
352
+ from: 0,
353
+ to: innerPagination.value.rowsPerPage - 1,
354
+ direction
355
+ })
356
+ }
357
+ }
358
+
359
+ function onVScroll (info) {
360
+ emit('virtual-scroll', info)
361
+ }
362
+
363
+ function getProgress () {
364
+ return [
365
+ h(QLinearProgress, {
366
+ class: 'q-table__linear-progress',
367
+ color: props.color,
368
+ dark: isDark.value,
369
+ indeterminate: true,
370
+ trackColor: 'transparent'
371
+ })
372
+ ]
373
+ }
374
+
375
+ function getTBodyTR (row, bodySlot, pageIndex) {
376
+ const
377
+ key = getRowKey.value(row),
378
+ selected = isRowSelected(key)
379
+
380
+ if (bodySlot !== void 0) {
381
+ return bodySlot(
382
+ getBodyScope({
383
+ key,
384
+ row,
385
+ pageIndex,
386
+ __trClass: selected ? 'selected' : ''
387
+ })
388
+ )
389
+ }
390
+
391
+ const
392
+ bodyCell = slots[ 'body-cell' ],
393
+ child = computedCols.value.map(col => {
394
+ const
395
+ bodyCellCol = slots[ `body-cell-${ col.name }` ],
396
+ slot = bodyCellCol !== void 0 ? bodyCellCol : bodyCell
397
+
398
+ return slot !== void 0
399
+ ? slot(getBodyCellScope({ key, row, pageIndex, col }))
400
+ : h('td', {
401
+ class: col.__tdClass(row),
402
+ style: col.__tdStyle(row)
403
+ }, getCellValue(col, row))
404
+ })
405
+
406
+ if (hasSelectionMode.value === true) {
407
+ const slot = slots[ 'body-selection' ]
408
+ const content = slot !== void 0
409
+ ? slot(getBodySelectionScope({ key, row, pageIndex }))
410
+ : [
411
+ h(QCheckbox, {
412
+ modelValue: selected,
413
+ color: props.color,
414
+ dark: isDark.value,
415
+ dense: props.dense,
416
+ 'onUpdate:modelValue': (adding, evt) => {
417
+ updateSelection([ key ], [ row ], adding, evt)
418
+ }
419
+ })
420
+ ]
421
+
422
+ child.unshift(
423
+ h('td', { class: 'q-table--col-auto-width' }, content)
424
+ )
425
+ }
426
+
427
+ const data = { key, class: { selected } }
428
+
429
+ if (props.onRowClick !== void 0) {
430
+ data.class[ 'cursor-pointer' ] = true
431
+ data.onClick = evt => {
432
+ emit('RowClick', evt, row, pageIndex)
433
+ }
434
+ }
435
+
436
+ if (props.onRowDblclick !== void 0) {
437
+ data.class[ 'cursor-pointer' ] = true
438
+ data.onDblclick = evt => {
439
+ emit('RowDblclick', evt, row, pageIndex)
440
+ }
441
+ }
442
+
443
+ if (props.onRowContextmenu !== void 0) {
444
+ data.class[ 'cursor-pointer' ] = true
445
+ data.onContextmenu = evt => {
446
+ emit('RowContextmenu', evt, row, pageIndex)
447
+ }
448
+ }
449
+
450
+ return h('tr', data, child)
451
+ }
452
+
453
+ function getTBody () {
454
+ const
455
+ body = slots.body,
456
+ topRow = slots[ 'top-row' ],
457
+ bottomRow = slots[ 'bottom-row' ]
458
+
459
+ let child = computedRows.value.map(
460
+ (row, pageIndex) => getTBodyTR(row, body, pageIndex)
461
+ )
462
+
463
+ if (topRow !== void 0) {
464
+ child = topRow({ cols: computedCols.value }).concat(child)
465
+ }
466
+ if (bottomRow !== void 0) {
467
+ child = child.concat(bottomRow({ cols: computedCols.value }))
468
+ }
469
+
470
+ return h('tbody', child)
471
+ }
472
+
473
+ function getBodyScope (data) {
474
+ injectBodyCommonScope(data)
475
+
476
+ data.cols = data.cols.map(col => {
477
+ const c = { ...col }
478
+ Object.defineProperty(c, 'value', {
479
+ get: () => getCellValue(col, data.row),
480
+ configurable: true,
481
+ enumerable: true
482
+ })
483
+ return c
484
+ })
485
+
486
+ return data
487
+ }
488
+
489
+ function getBodyCellScope (data) {
490
+ injectBodyCommonScope(data)
491
+
492
+ Object.defineProperty(data, 'value', {
493
+ get: () => getCellValue(data.col, data.row),
494
+ configurable: true,
495
+ enumerable: true
496
+ })
497
+
498
+ return data
499
+ }
500
+
501
+ function getBodySelectionScope (data) {
502
+ injectBodyCommonScope(data)
503
+ return data
504
+ }
505
+
506
+ function injectBodyCommonScope (data) {
507
+ Object.assign(data, {
508
+ cols: computedCols.value,
509
+ colsMap: computedColsMap.value,
510
+ sort,
511
+ rowIndex: firstRowIndex.value + data.pageIndex,
512
+ color: props.color,
513
+ dark: isDark.value,
514
+ dense: props.dense
515
+ })
516
+
517
+ hasSelectionMode.value === true && Object.defineProperty(data, 'selected', {
518
+ get: () => isRowSelected(data.key),
519
+ set: (adding, evt) => {
520
+ updateSelection([ data.key ], [ data.row ], adding, evt)
521
+ },
522
+ configurable: true,
523
+ enumerable: true
524
+ })
525
+
526
+ Object.defineProperty(data, 'expand', {
527
+ get: () => isRowExpanded(data.key),
528
+ set: adding => {
529
+ updateExpanded(data.key, adding)
530
+ },
531
+ configurable: true,
532
+ enumerable: true
533
+ })
534
+ }
535
+
536
+ function getCellValue (col, row) {
537
+ const val = typeof col.field === 'function' ? col.field(row) : row[ col.field ]
538
+ return col.format !== void 0 ? col.format(val, row) : val
539
+ }
540
+
541
+ const marginalsScope = computed(() => ({
542
+ pagination: computedPagination.value,
543
+ pagesNumber: pagesNumber.value,
544
+ isFirstPage: isFirstPage.value,
545
+ isLastPage: isLastPage.value,
546
+ firstPage,
547
+ prevPage,
548
+ nextPage,
549
+ lastPage,
550
+
551
+ inFullscreen: inFullscreen.value,
552
+ toggleFullscreen
553
+ }))
554
+
555
+ function getTopDiv () {
556
+ const
557
+ top = slots.top,
558
+ topLeft = slots[ 'top-left' ],
559
+ topRight = slots[ 'top-right' ],
560
+ topSelection = slots[ 'top-selection' ],
561
+ hasSelection = hasSelectionMode.value === true
562
+ && topSelection !== void 0
563
+ && rowsSelectedNumber.vaue > 0,
564
+ topClass = 'q-table__top relative-position row items-center'
565
+
566
+ if (top !== void 0) {
567
+ return h('div', { class: topClass }, [ top(marginalsScope.value) ])
568
+ }
569
+
570
+ let child
571
+
572
+ if (hasSelection === true) {
573
+ child = topSelection(marginalsScope.value).slice()
574
+ }
575
+ else {
576
+ child = []
577
+
578
+ if (topLeft !== void 0) {
579
+ child.push(
580
+ h('div', { class: 'q-table-control' }, [
581
+ topLeft(marginalsScope.value)
582
+ ])
583
+ )
584
+ }
585
+ else if (props.title) {
586
+ child.push(
587
+ h('div', { class: 'q-table__control' }, [
588
+ h('div', {
589
+ class: [ 'q-table__title', props.titleClass ]
590
+ }, props.title)
591
+ ])
592
+ )
593
+ }
594
+ }
595
+
596
+ if (topRight !== void 0) {
597
+ child.push(
598
+ h('div', { class: 'q-table__separator col' })
599
+ )
600
+ child.push(
601
+ h('div', { class: 'q-table__control' }, [
602
+ topRight(marginalsScope.value)
603
+ ])
604
+ )
605
+ }
606
+
607
+ if (child.length === 0) {
608
+ return
609
+ }
610
+
611
+ return h('div', { class: topClass }, child)
612
+ }
613
+
614
+ const headerSelectedValue = computed(() => (
615
+ someRowsSelected.value === true
616
+ ? null
617
+ : allRowsSelected.value
618
+ ))
619
+
620
+ function getTHead () {
621
+ const child = getTHeadTR()
622
+
623
+ if (props.loading === true && slots.loading === void 0) {
624
+ child.push(
625
+ h('tr', { class: 'q-table__progress' }, [
626
+ h('th', {
627
+ class: 'relative-position',
628
+ colspan: computedColspan.value
629
+ }, getProgress())
630
+ ])
631
+ )
632
+ }
633
+
634
+ return h('thead', child)
635
+ }
636
+
637
+ function getTHeadTR () {
638
+ const
639
+ header = slots.header,
640
+ headerCell = slots[ 'header-cell' ]
641
+
642
+ if (header !== void 0) {
643
+ return header(
644
+ getHeaderScope({ header: true })
645
+ ).slice()
646
+ }
647
+
648
+ const child = computedCols.value.map(col => {
649
+ const
650
+ headerCellCol = slots[ `header-cell-${ col.name }` ],
651
+ slot = headerCellCol !== void 0 ? headerCellCol : headerCell,
652
+ props = getHeaderScope({ col })
653
+
654
+ return slot !== void 0
655
+ ? slot(props)
656
+ : h(QTh, {
657
+ key: col.name,
658
+ props
659
+ }, () => col.label)
660
+ })
661
+
662
+ if (singleSelection.value === true && props.grid !== true) {
663
+ child.unshift(
664
+ h('th', { class: 'q-table--col-auto-width' }, ' ')
665
+ )
666
+ }
667
+ else if (multipleSelection.value === true) {
668
+ const slot = slots[ 'header-selection' ]
669
+ const content = slot !== void 0
670
+ ? slot(getHeaderScope({}))
671
+ : [
672
+ h(QCheckbox, {
673
+ color: props.color,
674
+ modelValue: headerSelectedValue.value,
675
+ dark: isDark.value,
676
+ dense: props.dense,
677
+ 'onUpdate:modelValue': onMultipleSelectionSet
678
+ })
679
+ ]
680
+
681
+ child.unshift(
682
+ h('th', { class: 'q-table--col-auto-width' }, content)
683
+ )
684
+ }
685
+
686
+ return [
687
+ h('tr', {
688
+ class: props.tableHeaderClass,
689
+ style: props.tableHeaderStyle
690
+ }, child)
691
+ ]
692
+ }
693
+
694
+ function getHeaderScope (data) {
695
+ Object.assign(data, {
696
+ cols: computedCols.value,
697
+ sort,
698
+ colsMap: computedColsMap.value,
699
+ color: props.color,
700
+ dark: isDark.value,
701
+ dense: props.dense
702
+ })
703
+
704
+ if (multipleSelection.value === true) {
705
+ Object.defineProperty(data, 'selected', {
706
+ get: () => headerSelectedValue.value,
707
+ set: onMultipleSelectionSet,
708
+ configurable: true,
709
+ enumerable: true
710
+ })
711
+ }
712
+
713
+ return data
714
+ }
715
+
716
+ function onMultipleSelectionSet (val) {
717
+ if (someRowsSelected.value === true) {
718
+ val = false
719
+ }
720
+
721
+ updateSelection(
722
+ computedRows.value.map(getRowKey.value),
723
+ computedRows.value,
724
+ val
725
+ )
726
+ }
727
+
728
+ const navIcon = computed(() => {
729
+ const ico = [
730
+ props.iconFirstPage || $q.iconSet.table.firstPage,
731
+ props.iconPrevPage || $q.iconSet.table.prevPage,
732
+ props.iconNextPage || $q.iconSet.table.nextPage,
733
+ props.iconLastPage || $q.iconSet.table.lastPage
734
+ ]
735
+ return $q.lang.rtl === true ? ico.reverse() : ico
736
+ })
737
+
738
+ function getBottomDiv () {
739
+ if (props.hideBottom === true) {
740
+ return
741
+ }
742
+
743
+ if (nothingToDisplay.value === true) {
744
+ if (props.hideNoData === true) {
745
+ return
746
+ }
747
+
748
+ const message = props.loading === true
749
+ ? props.loadingLabel || $q.lang.table.loading
750
+ : (props.filter ? props.noResultsLabel || $q.lang.table.noResults : props.noDataLabel || $q.lang.table.noData)
751
+
752
+ const noData = slots[ 'no-data' ]
753
+ const children = noData !== void 0
754
+ ? [ noData({ message, icon: $q.iconSet.table.warning, filter: props.filter }) ]
755
+ : [
756
+ h(QIcon, {
757
+ class: 'q-table__bottom-nodata-icon',
758
+ name: $q.iconSet.table.warning
759
+ }),
760
+ message
761
+ ]
762
+
763
+ return h('div', { class: bottomClass + ' q-table__bottom--nodata' }, children)
764
+ }
765
+
766
+ const bottom = slots.bottom
767
+
768
+ if (bottom !== void 0) {
769
+ return h('div', { class: bottomClass }, [ bottom(marginalsScope.value) ])
770
+ }
771
+
772
+ const child = props.hideSelectedBanner !== true && hasSelectionMode.value === true && rowsSelectedNumber.value > 0
773
+ ? [
774
+ h('div', { class: 'q-table__control' }, [
775
+ h('div', [
776
+ (props.selectedRowsLabel || $q.lang.table.selectedRecords)(rowsSelectedNumber.value)
777
+ ])
778
+ ])
779
+ ]
780
+ : []
781
+
782
+ if (props.hidePagination !== true) {
783
+ return h('div', {
784
+ class: bottomClass + ' justify-end'
785
+ }, getPaginationDiv(child))
786
+ }
787
+
788
+ if (child.length > 0) {
789
+ return h('div', { class: bottomClass }, child)
790
+ }
791
+ }
792
+
793
+ function onPagSelection (pag) {
794
+ setPagination({
795
+ page: 1,
796
+ rowsPerPage: pag.value
797
+ })
798
+ }
799
+
800
+ function getPaginationDiv (child) {
801
+ let control
802
+ const
803
+ { rowsPerPage } = computedPagination.value,
804
+ paginationLabel = props.paginationLabel || $q.lang.table.pagination,
805
+ paginationSlot = slots.pagination,
806
+ hasOpts = props.rowsPerPageOptions.length > 1
807
+
808
+ child.push(
809
+ h('div', { class: 'q-table__separator col' })
810
+ )
811
+
812
+ if (hasOpts === true) {
813
+ child.push(
814
+ h('div', { class: 'q-table__control' }, [
815
+ h('span', { class: 'q-table__bottom-item' }, [
816
+ props.rowsPerPageLabel || $q.lang.table.recordsPerPage
817
+ ]),
818
+ h(QSelect, {
819
+ class: 'q-table__select inline q-table__bottom-item',
820
+ color: props.color,
821
+ modelValue: rowsPerPage,
822
+ options: computedRowsPerPageOptions.value,
823
+ displayValue: rowsPerPage === 0
824
+ ? $q.lang.table.allRows
825
+ : rowsPerPage,
826
+ dark: isDark.value,
827
+ borderless: true,
828
+ dense: true,
829
+ optionsDense: true,
830
+ optionsCover: true,
831
+ 'onUpdate:modelValue': onPagSelection
832
+ })
833
+ ])
834
+ )
835
+ }
836
+
837
+ if (paginationSlot !== void 0) {
838
+ control = paginationSlot(marginalsScope.value)
839
+ }
840
+ else {
841
+ control = [
842
+ h('span', rowsPerPage !== 0 ? { class: 'q-table__bottom-item' } : {}, [
843
+ rowsPerPage
844
+ ? paginationLabel(firstRowIndex.value + 1, Math.min(lastRowIndex.value, computedRowsNumber.value), computedRowsNumber.value)
845
+ : paginationLabel(1, filteredSortedRowsNumber.value, computedRowsNumber.value)
846
+ ])
847
+ ]
848
+
849
+ if (rowsPerPage !== 0 && pagesNumber.value > 1) {
850
+ const btnProps = {
851
+ color: props.color,
852
+ round: true,
853
+ dense: true,
854
+ flat: true
855
+ }
856
+
857
+ if (props.dense === true) {
858
+ btnProps.size = 'sm'
859
+ }
860
+
861
+ pagesNumber.value > 2 && control.push(
862
+ h(QBtn, {
863
+ key: 'pgFirst',
864
+ ...btnProps,
865
+ icon: navIcon.value[ 0 ],
866
+ disable: isFirstPage.value,
867
+ onClick: firstPage
868
+ })
869
+ )
870
+
871
+ control.push(
872
+ h(QBtn, {
873
+ key: 'pgPrev',
874
+ ...btnProps,
875
+ icon: navIcon.value[ 1 ],
876
+ disable: isFirstPage.value,
877
+ onClick: prevPage
878
+ }),
879
+
880
+ h(QBtn, {
881
+ key: 'pgNext',
882
+ ...btnProps,
883
+ icon: navIcon.value[ 2 ],
884
+ disable: isLastPage.value,
885
+ onClick: nextPage
886
+ })
887
+ )
888
+
889
+ pagesNumber.value > 2 && control.push(
890
+ h(QBtn, {
891
+ key: 'pgLast',
892
+ ...btnProps,
893
+ icon: navIcon.value[ 3 ],
894
+ disable: isLastPage.value,
895
+ onClick: lastPage
896
+ })
897
+ )
898
+ }
899
+ }
900
+
901
+ child.push(
902
+ h('div', { class: 'q-table__control' }, control)
903
+ )
904
+
905
+ return child
906
+ }
907
+
908
+ function getGridHeader () {
909
+ const child = props.gridHeader === true
910
+ ? [
911
+ h('table', { class: 'q-table' }, [
912
+ getTHead(h)
913
+ ])
914
+ ]
915
+ : (
916
+ props.loading === true && slots.loading === void 0
917
+ ? getProgress(h)
918
+ : void 0
919
+ )
920
+
921
+ return h('div', { class: 'q-table__middle' }, child)
922
+ }
923
+
924
+ function getGridBody () {
925
+ const item = slots.item !== void 0
926
+ ? slots.item
927
+ : scope => {
928
+ const child = scope.cols.map(
929
+ col => h('div', { class: 'q-table__grid-item-row' }, [
930
+ h('div', { class: 'q-table__grid-item-title' }, [ col.label ]),
931
+ h('div', { class: 'q-table__grid-item-value' }, [ col.value ])
932
+ ])
933
+ )
934
+
935
+ if (hasSelectionMode.value === true) {
936
+ const slot = slots[ 'body-selection' ]
937
+ const content = slot !== void 0
938
+ ? slot(scope)
939
+ : [
940
+ h(QCheckbox, {
941
+ modelValue: scope.selected,
942
+ color: props.color,
943
+ dark: isDark.value,
944
+ dense: props.dense,
945
+ 'onUpdate:modelValue': (adding, evt) => {
946
+ updateSelection([ scope.key ], [ scope.row ], adding, evt)
947
+ }
948
+ })
949
+ ]
950
+
951
+ child.unshift(
952
+ h('div', { class: 'q-table__grid-item-row' }, content),
953
+ h(QSeparator, { dark: isDark.value })
954
+ )
955
+ }
956
+
957
+ const data = {
958
+ class: [
959
+ 'q-table__grid-item-card' + cardDefaultClass.value,
960
+ props.cardClass
961
+ ],
962
+ style: props.cardStyle
963
+ }
964
+
965
+ if (
966
+ props.onRowClick !== void 0
967
+ || props.onRowDblclick !== void 0
968
+ ) {
969
+ data.class[ 0 ] += ' cursor-pointer'
970
+
971
+ if (props.onRowClick !== void 0) {
972
+ data.onClick = evt => {
973
+ emit('RowClick', evt, scope.row, scope.pageIndex)
974
+ }
975
+ }
976
+
977
+ if (props.onRowDblclick !== void 0) {
978
+ data.onDblclick = evt => {
979
+ emit('RowDblclick', evt, scope.row, scope.pageIndex)
980
+ }
981
+ }
982
+ }
983
+
984
+ return h('div', {
985
+ class: 'q-table__grid-item col-xs-12 col-sm-6 col-md-4 col-lg-3'
986
+ + (scope.selected === true ? 'q-table__grid-item--selected' : '')
987
+ }, [
988
+ h('div', data, child)
989
+ ])
990
+ }
991
+
992
+ return h('div', {
993
+ class: [
994
+ 'q-table__grid-content row',
995
+ props.cardContainerClass
996
+ ],
997
+ style: props.cardContainerStyle
998
+ }, computedRows.value.map((row, pageIndex) => {
999
+ return item(getBodyScope({
1000
+ key: getRowKey.value(row),
1001
+ row,
1002
+ pageIndex
1003
+ }))
1004
+ }))
1005
+ }
1006
+
1007
+ // expose public methods and needed computed props
1008
+ Object.assign(vm.proxy, {
1009
+ requestServerInteraction,
1010
+ setPagination,
1011
+ firstPage,
1012
+ prevPage,
1013
+ nextPage,
1014
+ lastPage,
1015
+ isRowSelected,
1016
+ clearSelection,
1017
+ isRowExpanded,
1018
+ setExpanded,
1019
+ sort,
1020
+ resetVirtualScroll,
1021
+ scrollTo,
1022
+ getCellValue
1023
+ })
1024
+
1025
+ Object.defineProperty(vm.proxy, 'filteredSortedRows', {
1026
+ get: () => filteredSortedRows.value,
1027
+ enumerable: true
1028
+ })
1029
+
1030
+ Object.defineProperty(vm.proxy, 'computedRows', {
1031
+ get: () => computedRows.value,
1032
+ enumerable: true
1033
+ })
1034
+
1035
+ Object.defineProperty(vm.proxy, 'computedRowsNumber', {
1036
+ get: () => computedRowsNumber.value,
1037
+ enumerable: true
1038
+ })
1039
+
1040
+ return () => {
1041
+ const child = [ getTopDiv() ]
1042
+ const data = { ref: rootRef, class: containerClass.value }
1043
+
1044
+ if (props.grid === true) {
1045
+ child.push(getGridHeader())
1046
+ }
1047
+ else {
1048
+ Object.assign(data, {
1049
+ class: [ data.class, props.cardClass ],
1050
+ style: props.cardStyle
1051
+ })
1052
+ }
1053
+
1054
+ child.push(
1055
+ getBody(),
1056
+ getBottomDiv()
1057
+ )
1058
+
1059
+ if (props.loading === true && slots.loading !== void 0) {
1060
+ child.push(
1061
+ slots.loading()
1062
+ )
1063
+ }
1064
+
1065
+ return h('div', data, child)
1066
+ }
1067
+ }
1068
+ })