quasar 2.11.6 → 2.11.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 (115) hide show
  1. package/dist/api/BottomSheet.json +13 -0
  2. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  3. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  4. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  5. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  8. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  9. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  10. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  11. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  14. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  15. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  16. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  17. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  18. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  19. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  22. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  23. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  40. package/dist/icon-set/themify.umd.prod.js +1 -1
  41. package/dist/lang/ar-TN.umd.prod.js +1 -1
  42. package/dist/lang/ar.umd.prod.js +1 -1
  43. package/dist/lang/az-Latn.umd.prod.js +1 -1
  44. package/dist/lang/bg.umd.prod.js +1 -1
  45. package/dist/lang/bn.umd.prod.js +1 -1
  46. package/dist/lang/ca.umd.prod.js +1 -1
  47. package/dist/lang/cs.umd.prod.js +1 -1
  48. package/dist/lang/da.umd.prod.js +1 -1
  49. package/dist/lang/de.umd.prod.js +1 -1
  50. package/dist/lang/el.umd.prod.js +1 -1
  51. package/dist/lang/en-GB.umd.prod.js +1 -1
  52. package/dist/lang/en-US.umd.prod.js +1 -1
  53. package/dist/lang/eo.umd.prod.js +1 -1
  54. package/dist/lang/es.umd.prod.js +1 -1
  55. package/dist/lang/et.umd.prod.js +1 -1
  56. package/dist/lang/eu.umd.prod.js +1 -1
  57. package/dist/lang/fa-IR.umd.prod.js +1 -1
  58. package/dist/lang/fa.umd.prod.js +1 -1
  59. package/dist/lang/fi.umd.prod.js +1 -1
  60. package/dist/lang/fr.umd.prod.js +1 -1
  61. package/dist/lang/gn.umd.prod.js +1 -1
  62. package/dist/lang/he.umd.prod.js +1 -1
  63. package/dist/lang/hr.umd.prod.js +1 -1
  64. package/dist/lang/hu.umd.prod.js +1 -1
  65. package/dist/lang/id.umd.prod.js +1 -1
  66. package/dist/lang/is.umd.prod.js +1 -1
  67. package/dist/lang/it.umd.prod.js +1 -1
  68. package/dist/lang/ja.umd.prod.js +1 -1
  69. package/dist/lang/kk.umd.prod.js +1 -1
  70. package/dist/lang/km.umd.prod.js +1 -1
  71. package/dist/lang/ko-KR.umd.prod.js +1 -1
  72. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  73. package/dist/lang/lt.umd.prod.js +1 -1
  74. package/dist/lang/lu.umd.prod.js +1 -1
  75. package/dist/lang/lv.umd.prod.js +1 -1
  76. package/dist/lang/ml.umd.prod.js +1 -1
  77. package/dist/lang/mm.umd.prod.js +1 -1
  78. package/dist/lang/ms.umd.prod.js +1 -1
  79. package/dist/lang/my.umd.prod.js +1 -1
  80. package/dist/lang/nb-NO.umd.prod.js +1 -1
  81. package/dist/lang/nl.umd.prod.js +1 -1
  82. package/dist/lang/pl.umd.prod.js +1 -1
  83. package/dist/lang/pt-BR.umd.prod.js +1 -1
  84. package/dist/lang/pt.umd.prod.js +1 -1
  85. package/dist/lang/ro.umd.prod.js +1 -1
  86. package/dist/lang/ru.umd.prod.js +1 -1
  87. package/dist/lang/sk.umd.prod.js +1 -1
  88. package/dist/lang/sl.umd.prod.js +1 -1
  89. package/dist/lang/sm.umd.prod.js +1 -1
  90. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  91. package/dist/lang/sr.umd.prod.js +1 -1
  92. package/dist/lang/sv.umd.prod.js +1 -1
  93. package/dist/lang/ta.umd.prod.js +1 -1
  94. package/dist/lang/th.umd.prod.js +1 -1
  95. package/dist/lang/tr.umd.prod.js +1 -1
  96. package/dist/lang/ug.umd.prod.js +1 -1
  97. package/dist/lang/uk.umd.prod.js +1 -1
  98. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  99. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  100. package/dist/lang/vi.umd.prod.js +1 -1
  101. package/dist/lang/zh-CN.umd.prod.js +1 -1
  102. package/dist/lang/zh-TW.umd.prod.js +1 -1
  103. package/dist/quasar.cjs.prod.js +2 -2
  104. package/dist/quasar.esm.js +17 -14
  105. package/dist/quasar.esm.prod.js +2 -2
  106. package/dist/quasar.sass +1 -1
  107. package/dist/quasar.umd.js +17 -14
  108. package/dist/quasar.umd.prod.js +2 -2
  109. package/dist/types/index.d.ts +8 -0
  110. package/dist/web-types/web-types.json +1 -1
  111. package/package.json +1 -1
  112. package/src/components/date/QDate.js +10 -9
  113. package/src/components/dialog-bottom-sheet/BottomSheet.js +2 -0
  114. package/src/components/tree/QTree.js +2 -2
  115. package/src/plugins/BottomSheet.json +8 -0
@@ -83,6 +83,10 @@ export interface BottomSheet {
83
83
  * CSS classes for this action
84
84
  */
85
85
  classes?: VueClassProp;
86
+ /**
87
+ * Style definitions to be attributed to this action element
88
+ */
89
+ style?: VueStyleProp;
86
90
  /**
87
91
  * Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix; If 'none' (String) is used as value then no icon is rendered (but screen real estate will still be used for it)
88
92
  */
@@ -13725,6 +13729,10 @@ declare module "./globals" {
13725
13729
  * CSS classes for this action
13726
13730
  */
13727
13731
  classes?: VueClassProp;
13732
+ /**
13733
+ * Style definitions to be attributed to this action element
13734
+ */
13735
+ style?: VueStyleProp;
13728
13736
  /**
13729
13737
  * Icon name following Quasar convention; Make sure you have the icon library installed unless you are using 'img:' prefix; If 'none' (String) is used as value then no icon is rendered (but screen real estate will still be used for it)
13730
13738
  */
@@ -2,7 +2,7 @@
2
2
  "$schema": "",
3
3
  "framework": "vue",
4
4
  "name": "quasar",
5
- "version": "2.11.6",
5
+ "version": "2.11.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.11.6",
3
+ "version": "2.11.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",
@@ -702,8 +702,8 @@ export default createComponent({
702
702
  lastEmitValue = 0
703
703
  }
704
704
  else {
705
- const { year, month } = getViewModel(innerMask.value, innerLocale.value)
706
- updateViewModel(year, month)
705
+ const model = getViewModel(innerMask.value, innerLocale.value)
706
+ updateViewModel(model.year, model.month, model)
707
707
  }
708
708
  })
709
709
 
@@ -713,12 +713,8 @@ export default createComponent({
713
713
  }
714
714
  })
715
715
 
716
- watch(() => viewModel.value.year, year => {
717
- emit('navigation', { year, month: viewModel.value.month })
718
- })
719
-
720
- watch(() => viewModel.value.month, month => {
721
- emit('navigation', { year: viewModel.value.year, month })
716
+ watch(() => viewModel.value.year + '|' + viewModel.value.month, () => {
717
+ emit('navigation', { year: viewModel.value.year, month: viewModel.value.month })
722
718
  })
723
719
 
724
720
  watch(mask, val => {
@@ -900,7 +896,7 @@ export default createComponent({
900
896
  return { year: date.year, month: date.month, day: date.day }
901
897
  }
902
898
 
903
- function updateViewModel (year, month) {
899
+ function updateViewModel (year, month, time) {
904
900
  if (minNav.value !== null && year <= minNav.value.year) {
905
901
  year = minNav.value.year
906
902
  if (month < minNav.value.month) {
@@ -915,6 +911,11 @@ export default createComponent({
915
911
  }
916
912
  }
917
913
 
914
+ if (time !== void 0) {
915
+ const { hour, minute, second, millisecond, timezoneOffset, timeHash } = time
916
+ Object.assign(viewModel.value, { hour, minute, second, millisecond, timezoneOffset, timeHash })
917
+ }
918
+
918
919
  const newHash = year + '/' + pad(month) + '/01'
919
920
 
920
921
  if (newHash !== viewModel.value.dateHash) {
@@ -69,6 +69,7 @@ export default createComponent({
69
69
  'q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position',
70
70
  action.class
71
71
  ],
72
+ style: action.style,
72
73
  tabindex: 0,
73
74
  role: 'listitem',
74
75
  onClick () { onOk(action) },
@@ -100,6 +101,7 @@ export default createComponent({
100
101
  ? h(QSeparator, { spaced: true, dark: isDark.value })
101
102
  : h(QItem, {
102
103
  class: [ 'q-bottom-sheet__item', action.classes ],
104
+ style: action.style,
103
105
  tabindex: 0,
104
106
  clickable: true,
105
107
  dark: isDark.value,
@@ -626,7 +626,7 @@ export default createComponent({
626
626
  }
627
627
 
628
628
  function onClick (node, meta, e, keyboard) {
629
- keyboard !== true && blur(meta.key)
629
+ keyboard !== true && meta.selectable !== false && blur(meta.key)
630
630
 
631
631
  if (hasSelection.value && meta.selectable) {
632
632
  if (props.noSelectionUnset === false) {
@@ -649,7 +649,7 @@ export default createComponent({
649
649
  if (e !== void 0) {
650
650
  stopAndPrevent(e)
651
651
  }
652
- keyboard !== true && blur(meta.key)
652
+ keyboard !== true && meta.selectable !== false && blur(meta.key)
653
653
  setExpanded(meta.key, !meta.expanded, node, meta)
654
654
  }
655
655
 
@@ -38,6 +38,14 @@
38
38
  "examples": [ "my-class" ]
39
39
  },
40
40
 
41
+ "style": {
42
+ "type": [ "String", "Array", "Object" ],
43
+ "tsType": "VueStyleProp",
44
+ "desc": "Style definitions to be attributed to this action element",
45
+ "examples": [ "{ padding: '2px' }" ],
46
+ "addedIn": "v2.11.7"
47
+ },
48
+
41
49
  "icon": {
42
50
  "extends": "icon"
43
51
  },