quasar 2.3.1 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/dist/api/AppFullscreen.json +15 -8
  2. package/dist/api/BottomSheet.json +6 -0
  3. package/dist/api/Cookies.json +4 -3
  4. package/dist/api/Dialog.json +24 -10
  5. package/dist/api/Loading.json +0 -2
  6. package/dist/api/LoadingBar.json +8 -3
  7. package/dist/api/Morph.json +14 -7
  8. package/dist/api/Mutation.json +1 -1
  9. package/dist/api/Notify.json +41 -27
  10. package/dist/api/QAjaxBar.json +6 -3
  11. package/dist/api/QBreadcrumbs.json +8 -4
  12. package/dist/api/QBreadcrumbsEl.json +35 -12
  13. package/dist/api/QBtn.json +36 -17
  14. package/dist/api/QBtnDropdown.json +41 -20
  15. package/dist/api/QBtnToggle.json +7 -2
  16. package/dist/api/QCard.json +2 -1
  17. package/dist/api/QCardActions.json +2 -1
  18. package/dist/api/QCardSection.json +2 -1
  19. package/dist/api/QCarousel.json +10 -5
  20. package/dist/api/QCarouselControl.json +4 -2
  21. package/dist/api/QChatMessage.json +0 -4
  22. package/dist/api/QCheckbox.json +8 -4
  23. package/dist/api/QChip.json +2 -1
  24. package/dist/api/QCircularProgress.json +14 -7
  25. package/dist/api/QColor.json +6 -3
  26. package/dist/api/QDate.json +33 -5
  27. package/dist/api/QDialog.json +8 -4
  28. package/dist/api/QDrawer.json +10 -5
  29. package/dist/api/QEditor.json +10 -5
  30. package/dist/api/QExpansionItem.json +36 -13
  31. package/dist/api/QFab.json +41 -6
  32. package/dist/api/QFabAction.json +12 -2
  33. package/dist/api/QField.json +3 -1
  34. package/dist/api/QFile.json +8 -2
  35. package/dist/api/QFooter.json +2 -1
  36. package/dist/api/QForm.json +1 -1
  37. package/dist/api/QHeader.json +4 -2
  38. package/dist/api/QIcon.json +2 -1
  39. package/dist/api/QImg.json +8 -4
  40. package/dist/api/QInfiniteScroll.json +6 -3
  41. package/dist/api/QInnerLoading.json +8 -4
  42. package/dist/api/QInput.json +3 -1
  43. package/dist/api/QIntersection.json +4 -2
  44. package/dist/api/QItem.json +33 -11
  45. package/dist/api/QKnob.json +8 -4
  46. package/dist/api/QLayout.json +9 -1
  47. package/dist/api/QLinearProgress.json +4 -2
  48. package/dist/api/QMarkupTable.json +2 -1
  49. package/dist/api/QMenu.json +8 -4
  50. package/dist/api/QNoSsr.json +2 -1
  51. package/dist/api/QOptionGroup.json +76 -5
  52. package/dist/api/QPage.json +2 -1
  53. package/dist/api/QPageScroller.json +8 -4
  54. package/dist/api/QPageSticky.json +2 -1
  55. package/dist/api/QPagination.json +10 -6
  56. package/dist/api/QParallax.json +2 -1
  57. package/dist/api/QPopupEdit.json +5 -2
  58. package/dist/api/QPopupProxy.json +7 -4
  59. package/dist/api/QRange.json +600 -111
  60. package/dist/api/QRating.json +5 -2
  61. package/dist/api/QResizeObserver.json +4 -1
  62. package/dist/api/QRouteTab.json +35 -13
  63. package/dist/api/QScrollArea.json +29 -6
  64. package/dist/api/QScrollObserver.json +13 -1
  65. package/dist/api/QSelect.json +76 -47
  66. package/dist/api/QSeparator.json +2 -1
  67. package/dist/api/QSkeleton.json +8 -4
  68. package/dist/api/QSlideItem.json +9 -0
  69. package/dist/api/QSlideTransition.json +2 -1
  70. package/dist/api/QSlider.json +512 -43
  71. package/dist/api/QSpinner.json +2 -1
  72. package/dist/api/QSplitter.json +4 -2
  73. package/dist/api/QStep.json +2 -1
  74. package/dist/api/QStepper.json +6 -3
  75. package/dist/api/QTab.json +4 -2
  76. package/dist/api/QTabPanels.json +6 -3
  77. package/dist/api/QTable.json +154 -88
  78. package/dist/api/QTabs.json +4 -2
  79. package/dist/api/QTime.json +16 -4
  80. package/dist/api/QTimeline.json +4 -2
  81. package/dist/api/QTimelineEntry.json +4 -2
  82. package/dist/api/QToggle.json +8 -4
  83. package/dist/api/QTooltip.json +18 -9
  84. package/dist/api/QTree.json +34 -19
  85. package/dist/api/QUploader.json +28 -6
  86. package/dist/api/QVirtualScroll.json +26 -11
  87. package/dist/api/ScrollFire.json +1 -1
  88. package/dist/api/TouchHold.json +2 -1
  89. package/dist/api/TouchRepeat.json +2 -1
  90. package/dist/api/TouchSwipe.json +2 -1
  91. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  92. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  93. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  94. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  95. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  96. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  97. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  98. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  99. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  100. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  101. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  102. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  103. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  104. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  105. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  106. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  107. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  108. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  109. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  110. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +6 -0
  111. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  112. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  113. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  114. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  115. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  116. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  117. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  118. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  119. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  120. package/dist/icon-set/themify.umd.prod.js +1 -1
  121. package/dist/lang/ar.umd.prod.js +1 -1
  122. package/dist/lang/az-Latn.umd.prod.js +1 -1
  123. package/dist/lang/bg.umd.prod.js +1 -1
  124. package/dist/lang/bn.umd.prod.js +1 -1
  125. package/dist/lang/ca.umd.prod.js +1 -1
  126. package/dist/lang/cs.umd.prod.js +1 -1
  127. package/dist/lang/da.umd.prod.js +1 -1
  128. package/dist/lang/de.umd.prod.js +1 -1
  129. package/dist/lang/el.umd.prod.js +1 -1
  130. package/dist/lang/en-GB.umd.prod.js +1 -1
  131. package/dist/lang/en-US.umd.prod.js +1 -1
  132. package/dist/lang/eo.umd.prod.js +1 -1
  133. package/dist/lang/es.umd.prod.js +1 -1
  134. package/dist/lang/et.umd.prod.js +1 -1
  135. package/dist/lang/fa-IR.umd.prod.js +1 -1
  136. package/dist/lang/fa.umd.prod.js +1 -1
  137. package/dist/lang/fi.umd.prod.js +1 -1
  138. package/dist/lang/fr.umd.prod.js +1 -1
  139. package/dist/lang/gn.umd.prod.js +1 -1
  140. package/dist/lang/he.umd.prod.js +1 -1
  141. package/dist/lang/hr.umd.prod.js +1 -1
  142. package/dist/lang/hu.umd.prod.js +1 -1
  143. package/dist/lang/id.umd.prod.js +1 -1
  144. package/dist/lang/is.umd.prod.js +1 -1
  145. package/dist/lang/it.umd.prod.js +1 -1
  146. package/dist/lang/ja.umd.prod.js +1 -1
  147. package/dist/lang/km.umd.prod.js +1 -1
  148. package/dist/lang/ko-KR.umd.prod.js +1 -1
  149. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  150. package/dist/lang/lt.umd.prod.js +1 -1
  151. package/dist/lang/lu.umd.prod.js +1 -1
  152. package/dist/lang/lv.umd.prod.js +1 -1
  153. package/dist/lang/ml.umd.prod.js +1 -1
  154. package/dist/lang/ms.umd.prod.js +1 -1
  155. package/dist/lang/nb-NO.umd.prod.js +1 -1
  156. package/dist/lang/nl.umd.prod.js +1 -1
  157. package/dist/lang/pl.umd.prod.js +1 -1
  158. package/dist/lang/pt-BR.umd.prod.js +1 -1
  159. package/dist/lang/pt.umd.prod.js +1 -1
  160. package/dist/lang/ro.umd.prod.js +1 -1
  161. package/dist/lang/ru.umd.prod.js +1 -1
  162. package/dist/lang/sk.umd.prod.js +1 -1
  163. package/dist/lang/sl.umd.prod.js +1 -1
  164. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  165. package/dist/lang/sr.umd.prod.js +1 -1
  166. package/dist/lang/sv.umd.prod.js +1 -1
  167. package/dist/lang/ta.umd.prod.js +1 -1
  168. package/dist/lang/th.umd.prod.js +1 -1
  169. package/dist/lang/tr.umd.prod.js +1 -1
  170. package/dist/lang/ug.umd.prod.js +1 -1
  171. package/dist/lang/uk.umd.prod.js +1 -1
  172. package/dist/lang/vi.umd.prod.js +1 -1
  173. package/dist/lang/zh-CN.umd.prod.js +1 -1
  174. package/dist/lang/zh-TW.umd.prod.js +1 -1
  175. package/dist/quasar.cjs.prod.js +2 -2
  176. package/dist/quasar.css +268 -184
  177. package/dist/quasar.esm.prod.js +2 -2
  178. package/dist/quasar.prod.css +1 -1
  179. package/dist/quasar.rtl.css +340 -263
  180. package/dist/quasar.rtl.prod.css +1 -1
  181. package/dist/quasar.sass +272 -212
  182. package/dist/quasar.umd.js +16532 -16216
  183. package/dist/quasar.umd.prod.js +2 -2
  184. package/dist/ssr-directives/Morph.js +1 -1
  185. package/dist/transforms/loader-asset-urls.json +20 -0
  186. package/dist/types/api/cookies.d.ts +1 -1
  187. package/dist/types/api/slider.d.ts +46 -0
  188. package/dist/types/api/validation.d.ts +4 -0
  189. package/dist/types/api.d.ts +2 -0
  190. package/dist/types/composables.d.ts +7 -3
  191. package/dist/types/extras/icon-set.d.ts +1 -0
  192. package/dist/types/index.d.ts +759 -177
  193. package/dist/vetur/quasar-attributes.json +251 -83
  194. package/dist/vetur/quasar-tags.json +59 -17
  195. package/dist/web-types/web-types.json +587 -155
  196. package/icon-set/svg-ionicons-v6.js +225 -0
  197. package/package.json +2 -2
  198. package/src/api.extends.json +0 -1
  199. package/src/components/breadcrumbs/QBreadcrumbs.js +7 -2
  200. package/src/components/breadcrumbs/QBreadcrumbs.sass +0 -3
  201. package/src/components/breadcrumbs/QBreadcrumbsEl.js +14 -8
  202. package/src/components/btn/QBtn.js +6 -5
  203. package/src/components/btn/use-btn.js +21 -21
  204. package/src/components/btn/use-btn.json +22 -13
  205. package/src/components/btn-dropdown/QBtnDropdown.json +1 -0
  206. package/src/components/btn-toggle/QBtnToggle.json +3 -0
  207. package/src/components/checkbox/use-checkbox.js +1 -1
  208. package/src/components/chip/QChip.json +1 -2
  209. package/src/components/color/QColor.js +32 -26
  210. package/src/components/color/QColor.sass +10 -23
  211. package/src/components/date/QDate.json +25 -1
  212. package/src/components/date/QDate.sass +2 -0
  213. package/src/components/drawer/QDrawer.js +18 -15
  214. package/src/components/editor/QEditor.js +3 -3
  215. package/src/components/editor/QEditor.sass +10 -1
  216. package/src/components/expansion-item/QExpansionItem.js +4 -1
  217. package/src/components/expansion-item/QExpansionItem.json +2 -1
  218. package/src/components/fab/QFab.js +18 -12
  219. package/src/components/fab/QFab.json +36 -1
  220. package/src/components/fab/QFab.sass +1 -1
  221. package/src/components/fab/QFabAction.js +14 -7
  222. package/src/components/fab/QFabAction.json +10 -0
  223. package/src/components/field/QField.json +3 -3
  224. package/src/components/file/QFile.js +12 -5
  225. package/src/components/file/QFile.json +9 -6
  226. package/src/components/file/QFile.sass +4 -2
  227. package/src/components/footer/QFooter.js +1 -1
  228. package/src/components/form/QForm.json +2 -3
  229. package/src/components/header/QHeader.js +1 -1
  230. package/src/components/icon/QIcon.js +2 -2
  231. package/src/components/infinite-scroll/QInfiniteScroll.js +4 -5
  232. package/src/components/item/QItem.js +2 -3
  233. package/src/components/layout/QLayout.json +8 -1
  234. package/src/components/linear-progress/QLinearProgress.js +3 -2
  235. package/src/components/linear-progress/QLinearProgress.sass +1 -1
  236. package/src/components/option-group/QOptionGroup.js +3 -0
  237. package/src/components/option-group/QOptionGroup.json +48 -2
  238. package/src/components/pagination/QPagination.json +0 -1
  239. package/src/components/parallax/QParallax.js +4 -2
  240. package/src/components/popup-edit/QPopupEdit.js +2 -5
  241. package/src/components/popup-edit/QPopupEdit.json +1 -0
  242. package/src/components/popup-proxy/QPopupProxy.json +2 -1
  243. package/src/components/radio/QRadio.js +2 -7
  244. package/src/components/range/QRange.js +103 -222
  245. package/src/components/range/QRange.json +11 -121
  246. package/src/components/rating/QRating.json +1 -1
  247. package/src/components/resize-observer/QResizeObserver.json +2 -0
  248. package/src/components/scroll-area/QScrollArea.js +11 -14
  249. package/src/components/scroll-area/QScrollArea.json +29 -9
  250. package/src/components/scroll-observer/QScrollObserver.json +11 -0
  251. package/src/components/select/QSelect.js +1 -1
  252. package/src/components/select/QSelect.json +41 -15
  253. package/src/components/slide-item/QSlideItem.json +9 -0
  254. package/src/components/slider/QSlider.js +46 -132
  255. package/src/components/slider/QSlider.json +1 -121
  256. package/src/components/slider/QSlider.sass +198 -132
  257. package/src/components/slider/use-slider.js +453 -109
  258. package/src/components/slider/use-slider.json +546 -0
  259. package/src/components/stepper/QStepper.js +3 -3
  260. package/src/components/stepper/QStepper.sass +24 -26
  261. package/src/components/table/QTable.js +27 -47
  262. package/src/components/table/QTable.json +104 -55
  263. package/src/components/table/table-pagination.js +4 -0
  264. package/src/components/tabs/QRouteTab.js +1 -2
  265. package/src/components/tabs/QRouteTab.json +0 -7
  266. package/src/components/tabs/QTabs.js +71 -20
  267. package/src/components/tabs/use-tab.js +26 -13
  268. package/src/components/time/QTime.json +8 -0
  269. package/src/components/tree/QTree.js +14 -12
  270. package/src/components/tree/QTree.json +26 -21
  271. package/src/components/tree/QTree.sass +45 -41
  272. package/src/components/uploader/QUploader.json +14 -2
  273. package/src/components/uploader/uploader-core.js +16 -9
  274. package/src/components/uploader/xhr-uploader-plugin.json +8 -3
  275. package/src/components/virtual-scroll/QVirtualScroll.json +15 -0
  276. package/src/components/virtual-scroll/QVirtualScroll.sass +1 -0
  277. package/src/components/virtual-scroll/use-virtual-scroll.js +30 -17
  278. package/src/components/virtual-scroll/use-virtual-scroll.json +7 -5
  279. package/src/composables/private/use-field.js +7 -7
  280. package/src/composables/private/use-file.js +20 -5
  281. package/src/composables/private/use-form.js +2 -3
  282. package/src/composables/private/use-fullscreen.js +15 -4
  283. package/src/composables/private/use-router-link.js +44 -23
  284. package/src/composables/private/use-router-link.json +26 -10
  285. package/src/composables/private/use-split-attrs.js +12 -9
  286. package/src/composables/private/use-validate.js +21 -15
  287. package/src/composables/private/use-validate.json +1 -0
  288. package/src/composables/use-dialog-plugin-component.js +1 -0
  289. package/src/css/core/helpers.sass +3 -0
  290. package/src/css/core/positioning.sass +5 -0
  291. package/src/directives/Mutation.json +2 -3
  292. package/src/directives/ScrollFire.js +1 -0
  293. package/src/directives/ScrollFire.json +2 -3
  294. package/src/icon-set.js +2 -4
  295. package/src/plugins/AppFullscreen.js +70 -53
  296. package/src/plugins/AppFullscreen.json +8 -8
  297. package/src/plugins/AppVisibility.js +2 -3
  298. package/src/plugins/BottomSheet.js +3 -5
  299. package/src/plugins/Cookies.json +2 -2
  300. package/src/plugins/Dialog.js +3 -5
  301. package/src/plugins/Dialog.json +6 -5
  302. package/src/plugins/LoadingBar.js +17 -18
  303. package/src/plugins/LoadingBar.json +4 -3
  304. package/src/plugins/Notify.js +296 -295
  305. package/src/plugins/Notify.json +13 -19
  306. package/src/plugins/Platform.js +14 -14
  307. package/src/utils/date.js +4 -4
  308. package/src/utils/dom.js +2 -2
  309. package/src/utils/open-url.js +2 -2
  310. package/src/utils/patterns.js +1 -0
  311. package/src/utils/private/define-reactive-plugin.js +10 -8
  312. package/src/utils/private/global-dialog.js +6 -8
  313. package/src/utils/private/global-dialog.json +6 -0
  314. package/src/utils/private/inject-obj-prop.js +13 -0
  315. package/src/utils/private/is.js +2 -2
@@ -1,225 +1,291 @@
1
1
  .q-slider
2
2
  position: relative
3
- color: var(--q-primary)
4
- outline: 0
5
3
 
6
4
  &--h
7
5
  width: 100%
8
- height: 40px
9
6
  &--v
10
- width: 40px
11
7
  height: 200px
12
8
 
9
+ &--editable .q-slider__track-container
10
+ cursor: grab
11
+
13
12
  &__track-container
14
- background: rgba(0,0,0,.26)
13
+ outline: 0
15
14
 
16
15
  &--h
17
- top: 50%
18
- margin-top: -1px
19
16
  width: 100%
20
- height: 2px
17
+ padding: 12px 0
18
+ .q-slider__selection
19
+ will-change: width, left
21
20
  &--v
22
- left: 50%
23
- margin-left: -1px
24
21
  height: 100%
25
- width: 2px
22
+ padding: 0 12px
23
+ .q-slider__selection
24
+ will-change: height, top
26
25
 
27
26
  &__track
27
+ color: var(--q-primary)
28
+ background: rgba(0,0,0,.1)
29
+ border-radius: $generic-border-radius
30
+ width: inherit
31
+ height: inherit
32
+
33
+ &__inner
34
+ background: rgba(0,0,0,.1)
35
+ border-radius: inherit
36
+ width: 100%
37
+ height: 100%
38
+
39
+ &__selection
28
40
  background: currentColor
41
+ border-radius: inherit
42
+ width: 100%
43
+ height: 100%
44
+
45
+ &__markers
46
+ color: rgba(0,0,0,.3)
47
+ border-radius: inherit
48
+ width: 100%
49
+ height: 100%
50
+
51
+ &:after
52
+ content: ''
53
+ position: absolute
54
+ background: currentColor
29
55
 
30
56
  &--h
31
- will-change: width, left
32
- top: 0
33
- bottom: 0
57
+ background-image: repeating-linear-gradient(to right, currentColor, currentColor 2px, rgba(255,255,255,0) 0, rgba(255,255,255,0))
58
+ &:after
59
+ height: 100%
60
+ width: 2px
61
+ top: 0
62
+ right: 0
63
+
34
64
  &--v
35
- will-change: height, top
36
- left: 0
37
- right: 0
65
+ background-image: repeating-linear-gradient(to bottom, currentColor, currentColor 2px, rgba(255,255,255,0) 0, rgba(255,255,255,0))
66
+ &:after
67
+ width: 100%
68
+ height: 2px
69
+ left: 0
70
+ bottom: 0
71
+
72
+ &__marker-labels-container
73
+ position: relative
74
+ width: 100%
75
+ height: 100%
76
+ min-height: 24px
77
+ min-width: 24px
38
78
 
39
- &__track-markers
40
- color: #000
79
+ &__marker-labels
80
+ position: absolute
41
81
 
42
82
  &--h
43
- background-image: repeating-linear-gradient(to right, currentColor, currentColor 2px, rgba(255,255,255,0) 0, rgba(255,255,255,0))
83
+ &-standard
84
+ top: 0
85
+ &-switched
86
+ bottom: 0
87
+
88
+ &-ltr
89
+ transform: translateX(-50%) #{"/* rtl:ignore */"}
90
+ &-rtl
91
+ transform: translateX(50%) #{"/* rtl:ignore */"}
92
+
44
93
  &--v
45
- background-image: repeating-linear-gradient(to top, currentColor, currentColor 2px, rgba(255,255,255,0) 0, rgba(255,255,255,0))
94
+ &-standard
95
+ left: 4px
96
+ &-switched
97
+ right: 4px
46
98
 
47
- &:after
48
- content: ''
49
- position: absolute
50
- right: 0
51
- top: 0
52
- bottom: 0
53
- height: 2px
54
- width: 2px
55
- background: currentColor
99
+ &-ltr
100
+ transform: translateY(-50%) #{"/* rtl:ignore */"}
101
+ &-rtl
102
+ transform: translateY(50%) #{"/* rtl:ignore */"}
56
103
 
57
- &__thumb-container
58
- width: 20px
59
- height: 20px
104
+ &__thumb
105
+ z-index: 1
60
106
  outline: 0
107
+ color: var(--q-primary)
108
+ transition: transform .18s ease-out, fill .18s ease-out, stroke .18s ease-out
61
109
 
62
110
  &--h
63
111
  top: 50%
64
- margin-top: -10px
65
- transform: translateX(-10px) #{"/* rtl:ignore */"}
66
112
  will-change: left
113
+ &-ltr
114
+ transform: scale(1) translate(-50%,-50%) #{"/* rtl:ignore */"}
115
+ &-rtl
116
+ transform: scale(1) translate(50%,-50%) #{"/* rtl:ignore */"}
117
+
67
118
  &--v
68
- left: 50%
69
- margin-left: -10px
70
- transform: translateY(-10px)
119
+ left: 50% #{"/* rtl:ignore */"}
71
120
  will-change: top
121
+ &-ltr
122
+ transform: scale(1) translate(-50%,-50%) #{"/* rtl:ignore */"}
123
+ &-rtl
124
+ transform: scale(1) translate(-50%,50%) #{"/* rtl:ignore */"}
72
125
 
73
- &__thumb
126
+ &__thumb-shape
74
127
  top: 0
75
128
  left: 0
76
- transform: scale(1)
77
- transition: transform .18s ease-out, fill .18s ease-out, stroke .18s ease-out
78
129
  stroke-width: 3.5
79
130
  stroke: currentColor
131
+ transition: transform .28s
80
132
 
81
133
  path
82
134
  stroke: currentColor
83
135
  fill: currentColor
84
136
 
85
137
  &__focus-ring
86
- width: 20px
87
- height: 20px
88
- transition: transform 266.67ms ease-out, opacity 266.67ms ease-out, background-color 266.67ms ease-out
89
138
  border-radius: 50%
90
139
  opacity: 0
140
+ transition: transform 266.67ms ease-out, opacity 266.67ms ease-out, background-color 266.67ms ease-out
91
141
  transition-delay: .14s
92
142
 
93
- &__arrow
94
- position: absolute
95
- width: 0
96
- height: 0
97
- transform-origin: 50% 50%
98
- transition: transform 100ms ease-out
143
+ &__pin
144
+ opacity: 0
145
+ white-space: nowrap
146
+ transition: opacity .28s ease-out
147
+ transition-delay: .14s
148
+
149
+ &:before
150
+ content: ''
151
+ width: 0
152
+ height: 0
153
+ position: absolute
99
154
 
100
155
  &--h
101
- top: 19px
102
- left: 4px
103
- border-top: 6px solid currentColor
104
- border-left: 6px solid transparent
105
- border-right: 6px solid transparent
106
- transform: scale(0) translateY(0)
107
- &--v
108
- top: 4px
109
- left: 15px
110
- border-top: 6px solid transparent
111
- border-bottom: 6px solid transparent
112
- border-right: 6px solid currentColor
113
- transform: scale(0) translateX(-20px)
156
+ &:before
157
+ border-left: 6px solid transparent
158
+ border-right: 6px solid transparent
159
+ left: 50%
160
+ transform: translateX(-50%)
161
+ &-standard
162
+ bottom: 100%
163
+ &:before
164
+ bottom: 2px
165
+ border-top: 6px solid currentColor
166
+ &-switched
167
+ top: 100%
168
+ &:before
169
+ top: 2px
170
+ border-bottom: 6px solid currentColor
114
171
 
115
- &__pin
116
- transition: transform 100ms ease-out
172
+ &--v
173
+ top: 0
174
+ &:before
175
+ top: 50%
176
+ transform: translateY(-50%)
177
+ border-top: 6px solid transparent
178
+ border-bottom: 6px solid transparent
179
+ &-standard
180
+ left: 100%
181
+ &:before
182
+ left: 2px
183
+ border-right: 6px solid currentColor
184
+ &-switched
185
+ right: 100%
186
+ &:before
187
+ right: 2px
188
+ border-left: 6px solid currentColor
189
+
190
+ &__label
117
191
  z-index: 1
118
192
  white-space: nowrap
193
+ position: absolute
119
194
 
120
195
  &--h
121
- bottom: 0
122
- right: 0
123
- transform: scale(0) translateY(0)
124
- will-change: left
196
+ left: 50%
197
+ transform: translateX(-50%)
198
+ &-standard
199
+ bottom: 7px
200
+ &-switched
201
+ top: 7px
202
+
125
203
  &--v
126
204
  top: 50%
127
- left: 20px
128
- height: 0
129
- transform: scale(0) translateX(-20px)
130
- will-change: top
131
- transform-origin: left center
132
-
133
- &-text-container
134
- min-height: 25px
135
- padding: 2px 8px
136
- border-radius: $generic-border-radius
137
- background: currentColor
138
- position: relative
139
- text-align: center
140
-
141
- &--h
142
- right: -50%
143
- &--v
144
- transform: translateY(-50%)
205
+ transform: translateY(-50%)
206
+ &-standard
207
+ left: 7px
208
+ &-switched
209
+ right: 7px
210
+
211
+ &__text-container
212
+ min-height: 25px
213
+ padding: 2px 8px
214
+ border-radius: $generic-border-radius
215
+ background: currentColor
216
+ position: relative
217
+ text-align: center
145
218
 
146
- &-text
147
- color: #fff
148
- font-size: 12px
149
-
150
- &--editable
151
- cursor: grab
219
+ &__text
220
+ color: #fff
221
+ font-size: 12px
152
222
 
153
223
  &--no-value
154
- .q-slider__thumb, .q-slider__track
224
+ .q-slider__thumb,
225
+ .q-slider__inner,
226
+ .q-slider__selection
155
227
  visibility: hidden
156
228
 
157
229
  &--focus
158
230
  .q-slider__thumb
159
231
  transform: scale(1)
160
232
 
161
- &--focus, body.desktop &.q-slider--editable:hover
233
+ &--focus,
234
+ body.desktop &.q-slider--editable .q-slider__track-container:hover
162
235
  .q-slider__focus-ring
163
236
  background: currentColor
164
237
  transform: scale3d(1.55, 1.55, 1)
165
238
  opacity: .25
166
- .q-slider__thumb, .q-slider__track
239
+ .q-slider__thumb,
240
+ .q-slider__inner,
241
+ .q-slider__selection
167
242
  visibility: visible
168
243
 
169
244
  &--inactive
170
- .q-slider__thumb-container
245
+ .q-slider__thumb
171
246
  &--h
172
247
  transition: left .28s, right .28s
173
248
  &--v
174
249
  transition: top .28s, bottom .28s
175
250
 
176
- .q-slider__track
177
- &--h
178
- transition: width .28s, left .28s, right .28s
179
- &--v
180
- transition: height .28s, top .28s, bottom .28s
251
+ .q-slider__selection
252
+ transition: width .28s, left .28s, right .28s, height .28s, top .28s, bottom .28s
253
+
254
+ .q-slider__text-container
255
+ transition: transform .28s
181
256
 
182
257
  &--active
183
258
  cursor: grabbing
184
259
 
185
- .q-slider__thumb
260
+ .q-slider__thumb-shape
186
261
  transform: scale(1.5)
187
262
 
188
- .q-slider__focus-ring, &.q-slider--label .q-slider__thumb
263
+ .q-slider__focus-ring,
264
+ &.q-slider--label .q-slider__thumb-shape
189
265
  transform: scale(0) !important
190
266
 
191
- body.desktop &.q-slider--enabled:hover
192
- .q-slider__pin,
193
- .q-slider__arrow
194
- &--h
195
- transform: scale(1) translateY(-25px)
196
- &--v
197
- transform: scale(1) translateX(5px)
267
+ body.desktop &.q-slider--enabled .q-slider__track-container:hover
268
+ .q-slider__pin
269
+ opacity: 1
198
270
 
199
271
  &--label
200
- &.q-slider--active, .q-slider--focus, &.q-slider--label-always
201
- .q-slider__pin,
202
- .q-slider__arrow
203
- &--h
204
- transform: scale(1) translateY(-25px)
205
- &--v
206
- transform: scale(1) translateX(5px)
272
+ &.q-slider--active,
273
+ .q-slider--focus,
274
+ &.q-slider--label-always
275
+ .q-slider__pin
276
+ opacity: 1
207
277
 
208
278
  &--dark
209
- .q-slider__track-container
210
- background: rgba(#fff, .3)
211
- .q-slider__track-markers
212
- color: #fff
279
+ .q-slider__track
280
+ background: rgba(#fff,.1)
281
+ .q-slider__inner
282
+ background: rgba(#fff,.1)
283
+ .q-slider__markers
284
+ color: rgba(#fff,.3)
213
285
 
214
- &--reversed
215
- .q-slider__thumb-container
286
+ &--dense
287
+ .q-slider__track-container
216
288
  &--h
217
- transform: translateX(10px) #{"/* rtl:ignore */"}
289
+ padding: 6px 0
218
290
  &--v
219
- transform: translateY(10px)
220
-
221
- &--dense
222
- &--h
223
- height: 20px
224
- &--v
225
- width: 20px
291
+ padding: 0 6px