quasar 2.12.5 → 2.12.7

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 (118) hide show
  1. package/dist/api/Notify.json +8 -1
  2. package/dist/api/QTable.json +5 -0
  3. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  4. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  5. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  9. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  10. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  11. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  15. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  16. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  17. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  23. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  41. package/dist/icon-set/themify.umd.prod.js +1 -1
  42. package/dist/lang/ar-TN.umd.prod.js +1 -1
  43. package/dist/lang/ar.umd.prod.js +1 -1
  44. package/dist/lang/az-Latn.umd.prod.js +1 -1
  45. package/dist/lang/bg.umd.prod.js +1 -1
  46. package/dist/lang/bn.umd.prod.js +1 -1
  47. package/dist/lang/ca.umd.prod.js +1 -1
  48. package/dist/lang/cs.umd.prod.js +1 -1
  49. package/dist/lang/da.umd.prod.js +1 -1
  50. package/dist/lang/de.umd.prod.js +1 -1
  51. package/dist/lang/el.umd.prod.js +1 -1
  52. package/dist/lang/en-GB.umd.prod.js +1 -1
  53. package/dist/lang/en-US.umd.prod.js +1 -1
  54. package/dist/lang/eo.umd.prod.js +1 -1
  55. package/dist/lang/es.umd.prod.js +1 -1
  56. package/dist/lang/et.umd.prod.js +1 -1
  57. package/dist/lang/eu.umd.prod.js +1 -1
  58. package/dist/lang/fa-IR.umd.prod.js +1 -1
  59. package/dist/lang/fa.umd.prod.js +1 -1
  60. package/dist/lang/fi.umd.prod.js +1 -1
  61. package/dist/lang/fr.umd.prod.js +1 -1
  62. package/dist/lang/gn.umd.prod.js +1 -1
  63. package/dist/lang/he.umd.prod.js +1 -1
  64. package/dist/lang/hi.umd.prod.js +1 -1
  65. package/dist/lang/hr.umd.prod.js +1 -1
  66. package/dist/lang/hu.umd.prod.js +1 -1
  67. package/dist/lang/id.umd.prod.js +1 -1
  68. package/dist/lang/is.umd.prod.js +1 -1
  69. package/dist/lang/it.umd.prod.js +1 -1
  70. package/dist/lang/ja.umd.prod.js +1 -1
  71. package/dist/lang/kk.umd.prod.js +1 -1
  72. package/dist/lang/km.umd.prod.js +1 -1
  73. package/dist/lang/ko-KR.umd.prod.js +1 -1
  74. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  75. package/dist/lang/lt.umd.prod.js +1 -1
  76. package/dist/lang/lu.umd.prod.js +1 -1
  77. package/dist/lang/lv.umd.prod.js +1 -1
  78. package/dist/lang/mk.umd.prod.js +1 -1
  79. package/dist/lang/ml.umd.prod.js +1 -1
  80. package/dist/lang/mm.umd.prod.js +1 -1
  81. package/dist/lang/ms.umd.prod.js +1 -1
  82. package/dist/lang/my.umd.prod.js +1 -1
  83. package/dist/lang/nb-NO.umd.prod.js +1 -1
  84. package/dist/lang/nl.umd.prod.js +1 -1
  85. package/dist/lang/pl.umd.prod.js +1 -1
  86. package/dist/lang/pt-BR.umd.prod.js +1 -1
  87. package/dist/lang/pt.umd.prod.js +1 -1
  88. package/dist/lang/ro.umd.prod.js +1 -1
  89. package/dist/lang/ru.umd.prod.js +1 -1
  90. package/dist/lang/sk.umd.prod.js +1 -1
  91. package/dist/lang/sl.umd.prod.js +1 -1
  92. package/dist/lang/sm.umd.prod.js +1 -1
  93. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  94. package/dist/lang/sr.umd.prod.js +1 -1
  95. package/dist/lang/sv.umd.prod.js +1 -1
  96. package/dist/lang/ta.umd.prod.js +1 -1
  97. package/dist/lang/th.umd.prod.js +1 -1
  98. package/dist/lang/tr.umd.prod.js +1 -1
  99. package/dist/lang/ug.umd.prod.js +1 -1
  100. package/dist/lang/uk.umd.prod.js +1 -1
  101. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  102. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  103. package/dist/lang/vi.umd.prod.js +1 -1
  104. package/dist/lang/zh-CN.umd.prod.js +1 -1
  105. package/dist/lang/zh-TW.umd.prod.js +1 -1
  106. package/dist/quasar.cjs.prod.js +2 -2
  107. package/dist/quasar.esm.js +30 -24
  108. package/dist/quasar.esm.prod.js +2 -2
  109. package/dist/quasar.sass +1 -1
  110. package/dist/quasar.umd.js +30 -24
  111. package/dist/quasar.umd.prod.js +2 -2
  112. package/dist/types/index.d.ts +5 -1
  113. package/dist/web-types/web-types.json +1 -1
  114. package/package.json +2 -2
  115. package/src/components/slider/use-slider.js +13 -12
  116. package/src/components/table/QTable.json +5 -0
  117. package/src/components/tree/QTree.js +15 -10
  118. package/src/plugins/Notify.json +2 -1
@@ -11331,6 +11331,10 @@ export interface QTableProps {
11331
11331
  * Direction of change
11332
11332
  */
11333
11333
  direction: "increase" | "decrease";
11334
+ /**
11335
+ * Vue reference to the underlying QVirtualScroll instance
11336
+ */
11337
+ ref: Component;
11334
11338
  }) => void;
11335
11339
  }
11336
11340
 
@@ -15444,7 +15448,7 @@ declare module "./config.d.ts" {
15444
15448
  /**
15445
15449
  * Useful for notifications that are updated; Displays a Quasar spinner instead of an avatar or icon; If value is Boolean 'true' then the default QSpinner is shown
15446
15450
  */
15447
- spinner?: boolean;
15451
+ spinner?: boolean | Component;
15448
15452
  /**
15449
15453
  * Color name for component from the Quasar Color Palette
15450
15454
  */
@@ -2,7 +2,7 @@
2
2
  "$schema": "",
3
3
  "framework": "vue",
4
4
  "name": "quasar",
5
- "version": "2.12.5",
5
+ "version": "2.12.7",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar",
3
- "version": "2.12.5",
3
+ "version": "2.12.7",
4
4
  "description": "Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time",
5
5
  "main": "dist/quasar.cjs.prod.js",
6
6
  "module": "dist/quasar.esm.prod.js",
@@ -31,7 +31,7 @@
31
31
  "lint-fix": "eslint --ext .js,.vue src dev --fix --report-unused-disable-directives",
32
32
  "format:types": "prettier --write \"types/**/*.{d.ts,ts,json}\"",
33
33
  "test:create": "node ./test/cypress/helpers/create-spec.js -c",
34
- "test:build": "node build/script.build.js js api && node build/script.build.js js transforms",
34
+ "test:build": "yarn build",
35
35
  "test:e2e": "yarn test:build && cross-env NODE_ENV=test start-test \"node ./dev/script.dev.js\" http-get://localhost:9000 \"cypress open --project ./dev --e2e\"",
36
36
  "test:e2e:run": "cross-env NODE_ENV=test start-test \"node ./dev/script.dev.js\" http-get://localhost:9000 \"cypress run --project ./dev --e2e\"",
37
37
  "test:e2e:ci": "yarn test:build && yarn test:e2e:run",
@@ -220,9 +220,12 @@ export default function ({ updateValue, updatePosition, getDragging, formAttrs }
220
220
  + (props.innerTrackColor !== void 0 ? ` bg-${ props.innerTrackColor }` : '')
221
221
  )
222
222
  const innerBarStyle = computed(() => {
223
+ const innerDiff = innerMaxRatio.value - innerMinRatio.value
223
224
  const acc = {
224
225
  [ positionProp.value ]: `${ 100 * innerMinRatio.value }%`,
225
- [ sizeProp.value ]: `${ 100 * (innerMaxRatio.value - innerMinRatio.value) }%`
226
+ [ sizeProp.value ]: innerDiff === 0
227
+ ? '2px'
228
+ : `${ 100 * innerDiff }%`
226
229
  }
227
230
  if (props.innerTrackImg !== void 0) {
228
231
  acc.backgroundImage = `url(${ props.innerTrackImg }) !important`
@@ -316,18 +319,16 @@ export default function ({ updateValue, updatePosition, getDragging, formAttrs }
316
319
  }))
317
320
 
318
321
  const markerStyle = computed(() => {
319
- if (innerBarLen.value !== 0) {
320
- const size = 100 * markerStep.value / innerBarLen.value
321
-
322
- return {
323
- ...innerBarStyle.value,
324
- backgroundSize: props.vertical === true
325
- ? `2px ${ size }%`
326
- : `${ size }% 2px`
327
- }
328
- }
322
+ const size = innerBarLen.value === 0
323
+ ? '2px'
324
+ : 100 * markerStep.value / innerBarLen.value
329
325
 
330
- return null
326
+ return {
327
+ ...innerBarStyle.value,
328
+ backgroundSize: props.vertical === true
329
+ ? `2px ${ size }%`
330
+ : `${ size }% 2px`
331
+ }
331
332
  })
332
333
 
333
334
  function getMarkerList (def) {
@@ -2026,6 +2026,11 @@
2026
2026
  "required": true,
2027
2027
  "desc": "Direction of change",
2028
2028
  "values": [ "increase", "decrease" ]
2029
+ },
2030
+ "ref": {
2031
+ "type": "Component",
2032
+ "required": true,
2033
+ "desc": "Vue reference to the underlying QVirtualScroll instance"
2029
2034
  }
2030
2035
  }
2031
2036
  }
@@ -499,6 +499,7 @@ export default createComponent({
499
499
  let body = node.body
500
500
  ? slots[ `body-${ node.body }` ] || slots[ 'default-body' ]
501
501
  : slots[ 'default-body' ]
502
+
502
503
  const slotScope = header !== void 0 || body !== void 0
503
504
  ? getSlotScope(node, m, key)
504
505
  : null
@@ -586,16 +587,20 @@ export default createComponent({
586
587
  isParent === true
587
588
  ? (
588
589
  props.noTransition === true
589
- ? h('div', {
590
- class: 'q-tree__node-collapsible' + textColorClass.value,
591
- key: `${ key }__q`
592
- }, [
593
- body,
594
- h('div', {
595
- class: 'q-tree__children'
596
- + (m.disabled === true ? ' q-tree__node--disabled' : '')
597
- }, m.expanded ? children : null)
598
- ])
590
+ ? (
591
+ m.expanded === true
592
+ ? h('div', {
593
+ class: 'q-tree__node-collapsible' + textColorClass.value,
594
+ key: `${ key }__q`
595
+ }, [
596
+ body,
597
+ h('div', {
598
+ class: 'q-tree__children'
599
+ + (m.disabled === true ? ' q-tree__node--disabled' : '')
600
+ }, children)
601
+ ])
602
+ : null
603
+ )
599
604
 
600
605
  : h(QSlideTransition, {
601
606
  duration: props.duration,
@@ -65,7 +65,8 @@
65
65
  },
66
66
 
67
67
  "spinner": {
68
- "type": "Boolean",
68
+ "type": [ "Boolean", "Component" ],
69
+ "configFileType": [ "Boolean", "String" ],
69
70
  "desc": "Useful for notifications that are updated; Displays a Quasar spinner instead of an avatar or icon; If value is Boolean 'true' then the default QSpinner is shown",
70
71
  "examples": [ true, "QSpinnerBars" ]
71
72
  },