quasar 2.11.5 → 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 (167) hide show
  1. package/dist/api/BottomSheet.json +13 -0
  2. package/dist/api/QCarouselSlide.json +1 -1
  3. package/dist/api/QChatMessage.json +1 -1
  4. package/dist/api/QForm.json +3 -2
  5. package/dist/api/QImg.json +2 -2
  6. package/dist/api/QTimelineEntry.json +1 -1
  7. package/dist/api/QVirtualScroll.json +2 -2
  8. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  9. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  10. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  11. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  12. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  13. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  14. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  15. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  16. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  17. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  18. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  19. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  20. package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
  21. package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
  22. package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  24. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  25. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  26. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  27. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +2 -2
  32. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +2 -2
  41. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +2 -2
  42. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +2 -2
  43. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  44. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  45. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  46. package/dist/icon-set/themify.umd.prod.js +1 -1
  47. package/dist/lang/ar-TN.umd.prod.js +1 -1
  48. package/dist/lang/ar.umd.prod.js +1 -1
  49. package/dist/lang/az-Latn.umd.prod.js +1 -1
  50. package/dist/lang/bg.umd.prod.js +1 -1
  51. package/dist/lang/bn.umd.prod.js +1 -1
  52. package/dist/lang/ca.umd.prod.js +1 -1
  53. package/dist/lang/cs.umd.prod.js +1 -1
  54. package/dist/lang/da.umd.prod.js +1 -1
  55. package/dist/lang/de.umd.prod.js +1 -1
  56. package/dist/lang/el.umd.prod.js +1 -1
  57. package/dist/lang/en-GB.umd.prod.js +1 -1
  58. package/dist/lang/en-US.umd.prod.js +1 -1
  59. package/dist/lang/eo.umd.prod.js +1 -1
  60. package/dist/lang/es.umd.prod.js +1 -1
  61. package/dist/lang/et.umd.prod.js +1 -1
  62. package/dist/lang/eu.umd.prod.js +1 -1
  63. package/dist/lang/fa-IR.umd.prod.js +1 -1
  64. package/dist/lang/fa.umd.prod.js +1 -1
  65. package/dist/lang/fi.umd.prod.js +1 -1
  66. package/dist/lang/fr.umd.prod.js +1 -1
  67. package/dist/lang/gn.umd.prod.js +1 -1
  68. package/dist/lang/he.umd.prod.js +1 -1
  69. package/dist/lang/hr.umd.prod.js +1 -1
  70. package/dist/lang/hu.umd.prod.js +1 -1
  71. package/dist/lang/id.umd.prod.js +1 -1
  72. package/dist/lang/is.umd.prod.js +1 -1
  73. package/dist/lang/it.umd.prod.js +1 -1
  74. package/dist/lang/ja.umd.prod.js +1 -1
  75. package/dist/lang/kk.umd.prod.js +1 -1
  76. package/dist/lang/km.umd.prod.js +1 -1
  77. package/dist/lang/ko-KR.umd.prod.js +1 -1
  78. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  79. package/dist/lang/lt.umd.prod.js +1 -1
  80. package/dist/lang/lu.umd.prod.js +1 -1
  81. package/dist/lang/lv.umd.prod.js +1 -1
  82. package/dist/lang/ml.umd.prod.js +1 -1
  83. package/dist/lang/mm.umd.prod.js +1 -1
  84. package/dist/lang/ms.umd.prod.js +1 -1
  85. package/dist/lang/my.umd.prod.js +1 -1
  86. package/dist/lang/nb-NO.umd.prod.js +1 -1
  87. package/dist/lang/nl.umd.prod.js +1 -1
  88. package/dist/lang/pl.umd.prod.js +1 -1
  89. package/dist/lang/pt-BR.umd.prod.js +1 -1
  90. package/dist/lang/pt.umd.prod.js +1 -1
  91. package/dist/lang/ro.umd.prod.js +1 -1
  92. package/dist/lang/ru.umd.prod.js +1 -1
  93. package/dist/lang/sk.umd.prod.js +1 -1
  94. package/dist/lang/sl.umd.prod.js +2 -2
  95. package/dist/lang/sm.umd.prod.js +1 -1
  96. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  97. package/dist/lang/sr.umd.prod.js +1 -1
  98. package/dist/lang/sv.umd.prod.js +1 -1
  99. package/dist/lang/ta.umd.prod.js +1 -1
  100. package/dist/lang/th.umd.prod.js +1 -1
  101. package/dist/lang/tr.umd.prod.js +1 -1
  102. package/dist/lang/ug.umd.prod.js +1 -1
  103. package/dist/lang/uk.umd.prod.js +1 -1
  104. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  105. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  106. package/dist/lang/vi.umd.prod.js +1 -1
  107. package/dist/lang/zh-CN.umd.prod.js +1 -1
  108. package/dist/lang/zh-TW.umd.prod.js +1 -1
  109. package/dist/quasar.cjs.prod.js +2 -2
  110. package/dist/quasar.css +1 -0
  111. package/dist/quasar.esm.js +29 -24
  112. package/dist/quasar.esm.prod.js +2 -2
  113. package/dist/quasar.prod.css +1 -1
  114. package/dist/quasar.rtl.css +1 -0
  115. package/dist/quasar.rtl.prod.css +1 -1
  116. package/dist/quasar.sass +4 -3
  117. package/dist/quasar.umd.js +29 -24
  118. package/dist/quasar.umd.prod.js +2 -2
  119. package/dist/types/api/dialog.d.ts +13 -11
  120. package/dist/types/api/qform.d.ts +5 -0
  121. package/dist/types/api/qinput.d.ts +0 -2
  122. package/dist/types/api/qloading.d.ts +1 -3
  123. package/dist/types/api/qnotify.d.ts +7 -5
  124. package/dist/types/api/qtable.d.ts +0 -2
  125. package/dist/types/api/slider.d.ts +6 -4
  126. package/dist/types/api/vue-prop-types.d.ts +9 -0
  127. package/dist/types/api/web-storage.d.ts +1 -2
  128. package/dist/types/api.d.ts +1 -0
  129. package/dist/types/composables.d.ts +2 -4
  130. package/dist/types/extras/icon-set.d.ts +42 -29
  131. package/dist/types/index.d.ts +14 -5
  132. package/dist/types/shim-icon-set.d.ts +0 -2
  133. package/dist/types/shim-lang.d.ts +0 -2
  134. package/dist/types/ts-helpers.d.ts +33 -10
  135. package/dist/types/tsconfig.json +15 -2
  136. package/dist/types/utils/colors.d.ts +4 -1
  137. package/dist/types/utils/date.d.ts +58 -12
  138. package/dist/types/utils/dom.d.ts +4 -1
  139. package/dist/types/utils/format.d.ts +6 -6
  140. package/dist/types/utils/scroll.d.ts +29 -6
  141. package/dist/types/utils.d.ts +26 -24
  142. package/dist/web-types/web-types.json +6 -6
  143. package/lang/sl.js +1 -1
  144. package/lang/sl.mjs +1 -1
  145. package/package.json +11 -9
  146. package/src/components/carousel/QCarouselSlide.json +1 -1
  147. package/src/components/chat/QChatMessage.json +1 -1
  148. package/src/components/date/QDate.js +10 -9
  149. package/src/components/date/use-datetime.js +1 -1
  150. package/src/components/dialog/QDialog.js +2 -5
  151. package/src/components/dialog-bottom-sheet/BottomSheet.js +2 -0
  152. package/src/components/form/QForm.json +3 -2
  153. package/src/components/img/QImg.json +2 -2
  154. package/src/components/input/use-mask.js +1 -1
  155. package/src/components/layout/QLayout.sass +1 -0
  156. package/src/components/slide-transition/QSlideTransition.js +6 -1
  157. package/src/components/timeline/QTimelineEntry.json +1 -1
  158. package/src/components/tree/QTree.js +2 -2
  159. package/src/components/uploader/xhr-uploader-plugin.js +2 -2
  160. package/src/components/virtual-scroll/QVirtualScroll.json +2 -2
  161. package/src/composables/private/use-timeout.js +1 -1
  162. package/src/css/variables.sass +2 -2
  163. package/src/plugins/BottomSheet.json +8 -0
  164. package/src/plugins/Platform.js +1 -1
  165. package/src/utils/private/define-reactive-plugin.js +1 -1
  166. package/dist/types/api/vue-prop-types.ts +0 -15
  167. package/dist/types/typings.json +0 -4
package/dist/quasar.css CHANGED
@@ -2938,6 +2938,7 @@ body.body--dark .q-knob--editable:focus:before {
2938
2938
 
2939
2939
  .q-layout {
2940
2940
  width: 100%;
2941
+ outline: 0;
2941
2942
  }
2942
2943
 
2943
2944
  .q-layout-container {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.11.5
2
+ * Quasar Framework v2.11.7
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1651,7 +1651,7 @@ function prepareApp (app, uiOpts, pluginOpts) {
1651
1651
  }
1652
1652
 
1653
1653
  var installQuasar = function (parentApp, opts = {}) {
1654
- const $q = { version: '2.11.5' };
1654
+ const $q = { version: '2.11.7' };
1655
1655
 
1656
1656
  if (globalConfigIsFrozen === false) {
1657
1657
  if (opts.config !== void 0) {
@@ -12103,7 +12103,7 @@ function useDatetime (props, $q) {
12103
12103
  });
12104
12104
 
12105
12105
  const tabindex = computed(() => {
12106
- return props.editable === true ? 0 : -1
12106
+ return editable.value === true ? 0 : -1
12107
12107
  });
12108
12108
 
12109
12109
  const headerClass = computed(() => {
@@ -13841,8 +13841,8 @@ var QDate = createComponent({
13841
13841
  lastEmitValue = 0;
13842
13842
  }
13843
13843
  else {
13844
- const { year, month } = getViewModel(innerMask.value, innerLocale.value);
13845
- updateViewModel(year, month);
13844
+ const model = getViewModel(innerMask.value, innerLocale.value);
13845
+ updateViewModel(model.year, model.month, model);
13846
13846
  }
13847
13847
  });
13848
13848
 
@@ -13852,12 +13852,8 @@ var QDate = createComponent({
13852
13852
  }
13853
13853
  });
13854
13854
 
13855
- watch(() => viewModel.value.year, year => {
13856
- emit('navigation', { year, month: viewModel.value.month });
13857
- });
13858
-
13859
- watch(() => viewModel.value.month, month => {
13860
- emit('navigation', { year: viewModel.value.year, month });
13855
+ watch(() => viewModel.value.year + '|' + viewModel.value.month, () => {
13856
+ emit('navigation', { year: viewModel.value.year, month: viewModel.value.month });
13861
13857
  });
13862
13858
 
13863
13859
  watch(mask, val => {
@@ -14039,7 +14035,7 @@ var QDate = createComponent({
14039
14035
  return { year: date.year, month: date.month, day: date.day }
14040
14036
  }
14041
14037
 
14042
- function updateViewModel (year, month) {
14038
+ function updateViewModel (year, month, time) {
14043
14039
  if (minNav.value !== null && year <= minNav.value.year) {
14044
14040
  year = minNav.value.year;
14045
14041
  if (month < minNav.value.month) {
@@ -14054,6 +14050,11 @@ var QDate = createComponent({
14054
14050
  }
14055
14051
  }
14056
14052
 
14053
+ if (time !== void 0) {
14054
+ const { hour, minute, second, millisecond, timezoneOffset, timeHash } = time;
14055
+ Object.assign(viewModel.value, { hour, minute, second, millisecond, timezoneOffset, timeHash });
14056
+ }
14057
+
14057
14058
  const newHash = year + '/' + pad(month) + '/01';
14058
14059
 
14059
14060
  if (newHash !== viewModel.value.dateHash) {
@@ -14911,7 +14912,6 @@ var QDialog = createComponent({
14911
14912
 
14912
14913
  setup (props, { slots, emit, attrs }) {
14913
14914
  const vm = getCurrentInstance();
14914
- const { proxy: { $q } } = vm;
14915
14915
 
14916
14916
  const innerRef = ref(null);
14917
14917
  const showing = ref(false);
@@ -15176,7 +15176,7 @@ var QDialog = createComponent({
15176
15176
  hide(e);
15177
15177
  }
15178
15178
  else if (props.noShake !== true) {
15179
- shake(e.relatedTarget);
15179
+ shake();
15180
15180
  }
15181
15181
  }
15182
15182
 
@@ -15203,8 +15203,6 @@ var QDialog = createComponent({
15203
15203
 
15204
15204
  onBeforeUnmount(cleanup);
15205
15205
 
15206
- const backdropEvt = $q.platform.is.ios === true || $q.platform.is.safari ? 'onClick' : 'onFocusin';
15207
-
15208
15206
  function renderPortalContent () {
15209
15207
  return h('div', {
15210
15208
  role: 'dialog',
@@ -15222,7 +15220,7 @@ var QDialog = createComponent({
15222
15220
  style: transitionStyle.value,
15223
15221
  'aria-hidden': 'true',
15224
15222
  tabindex: -1,
15225
- [ backdropEvt ]: onBackdropClick
15223
+ onClick: onBackdropClick
15226
15224
  })
15227
15225
  : null
15228
15226
  )),
@@ -17753,7 +17751,7 @@ var QSlideTransition = createComponent({
17753
17751
  }
17754
17752
 
17755
17753
  function begin (el, height, done) {
17756
- el.style.overflowY = 'hidden';
17754
+ // here overflowY is 'hidden'
17757
17755
  if (height !== void 0) {
17758
17756
  el.style.height = `${ height }px`;
17759
17757
  }
@@ -17775,12 +17773,14 @@ var QSlideTransition = createComponent({
17775
17773
  let pos = 0;
17776
17774
  element = el;
17777
17775
 
17776
+ // if animationg overflowY is already 'hidden'
17778
17777
  if (animating === true) {
17779
17778
  cleanup();
17780
17779
  pos = el.offsetHeight === el.scrollHeight ? 0 : void 0;
17781
17780
  }
17782
17781
  else {
17783
17782
  lastEvent = 'hide';
17783
+ el.style.overflowY = 'hidden';
17784
17784
  }
17785
17785
 
17786
17786
  begin(el, pos, done);
@@ -17809,6 +17809,9 @@ var QSlideTransition = createComponent({
17809
17809
  }
17810
17810
  else {
17811
17811
  lastEvent = 'show';
17812
+ // we need to set overflowY 'hidden' before calculating the height
17813
+ // or else we get small differences
17814
+ el.style.overflowY = 'hidden';
17812
17815
  pos = el.scrollHeight;
17813
17816
  }
17814
17817
 
@@ -21430,7 +21433,7 @@ function useMask (props, emit, emitValue, inputRef) {
21430
21433
 
21431
21434
  computedMask = mask;
21432
21435
  computedUnmask = val => {
21433
- const unmaskMatch = unmaskMatcher.exec(props.reverseFillMask === true ? val : val.slice(0, mask.length));
21436
+ const unmaskMatch = unmaskMatcher.exec(props.reverseFillMask === true ? val : val.slice(0, mask.length + 1));
21434
21437
  if (unmaskMatch !== null) {
21435
21438
  val = unmaskMatch.slice(1).join('');
21436
21439
  }
@@ -35139,7 +35142,7 @@ var QTree = createComponent({
35139
35142
  }
35140
35143
 
35141
35144
  function onClick (node, meta, e, keyboard) {
35142
- keyboard !== true && blur(meta.key);
35145
+ keyboard !== true && meta.selectable !== false && blur(meta.key);
35143
35146
 
35144
35147
  if (hasSelection.value && meta.selectable) {
35145
35148
  if (props.noSelectionUnset === false) {
@@ -35162,7 +35165,7 @@ var QTree = createComponent({
35162
35165
  if (e !== void 0) {
35163
35166
  stopAndPrevent(e);
35164
35167
  }
35165
- keyboard !== true && blur(meta.key);
35168
+ keyboard !== true && meta.selectable !== false && blur(meta.key);
35166
35169
  setExpanded(meta.key, !meta.expanded, node, meta);
35167
35170
  }
35168
35171
 
@@ -35759,7 +35762,7 @@ const props$2 = {
35759
35762
  factory: Function
35760
35763
  };
35761
35764
 
35762
- const emits$1 = [ 'factory-failed', 'uploaded', 'failed', 'uploading' ];
35765
+ const emits$1 = [ 'factoryFailed', 'uploaded', 'failed', 'uploading' ];
35763
35766
 
35764
35767
  function injectPlugin ({ props, emit, helpers }) {
35765
35768
  const xhrs = ref([]);
@@ -35816,7 +35819,7 @@ function injectPlugin ({ props, emit, helpers }) {
35816
35819
 
35817
35820
  if (!res) {
35818
35821
  emit(
35819
- 'factory-failed',
35822
+ 'factoryFailed',
35820
35823
  new Error('QUploader: factory() does not return properly'),
35821
35824
  files
35822
35825
  );
@@ -38191,6 +38194,7 @@ var BottomSheet$1 = createComponent({
38191
38194
  'q-bottom-sheet__item q-hoverable q-focusable cursor-pointer relative-position',
38192
38195
  action.class
38193
38196
  ],
38197
+ style: action.style,
38194
38198
  tabindex: 0,
38195
38199
  role: 'listitem',
38196
38200
  onClick () { onOk(action); },
@@ -38222,6 +38226,7 @@ var BottomSheet$1 = createComponent({
38222
38226
  ? h(QSeparator, { spaced: true, dark: isDark.value })
38223
38227
  : h(QItem, {
38224
38228
  class: [ 'q-bottom-sheet__item', action.classes ],
38229
+ style: action.style,
38225
38230
  tabindex: 0,
38226
38231
  clickable: true,
38227
38232
  dark: isDark.value,
@@ -40589,7 +40594,7 @@ function runSequentialPromises (
40589
40594
  */
40590
40595
 
40591
40596
  const Quasar = {
40592
- version: '2.11.5',
40597
+ version: '2.11.7',
40593
40598
  install: installQuasar,
40594
40599
  lang: Plugin$8,
40595
40600
  iconSet: Plugin$7