quasar 2.16.8 → 2.16.10

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 (145) hide show
  1. package/dist/api/BottomSheet.json +1 -1
  2. package/dist/api/Dialog.json +1 -1
  3. package/dist/api/QTable.json +1 -1
  4. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  5. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  6. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
  10. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  11. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  12. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  16. package/dist/icon-set/material-symbols-outlined.umd.prod.js +2 -2
  17. package/dist/icon-set/material-symbols-rounded.umd.prod.js +2 -2
  18. package/dist/icon-set/material-symbols-sharp.umd.prod.js +2 -2
  19. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  20. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  21. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
  24. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  25. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +2 -2
  37. package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +2 -2
  38. package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +2 -2
  39. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
  41. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  42. package/dist/icon-set/themify.umd.prod.js +1 -1
  43. package/dist/lang/ar-TN.umd.prod.js +1 -1
  44. package/dist/lang/ar.umd.prod.js +1 -1
  45. package/dist/lang/az-Latn.umd.prod.js +1 -1
  46. package/dist/lang/bg.umd.prod.js +1 -1
  47. package/dist/lang/bn.umd.prod.js +1 -1
  48. package/dist/lang/bs-BA.umd.prod.js +7 -0
  49. package/dist/lang/ca.umd.prod.js +1 -1
  50. package/dist/lang/cs.umd.prod.js +1 -1
  51. package/dist/lang/da.umd.prod.js +1 -1
  52. package/dist/lang/de-CH.umd.prod.js +1 -1
  53. package/dist/lang/de-DE.umd.prod.js +1 -1
  54. package/dist/lang/de.umd.prod.js +1 -1
  55. package/dist/lang/el.umd.prod.js +1 -1
  56. package/dist/lang/en-GB.umd.prod.js +1 -1
  57. package/dist/lang/en-US.umd.prod.js +1 -1
  58. package/dist/lang/eo.umd.prod.js +1 -1
  59. package/dist/lang/es.umd.prod.js +1 -1
  60. package/dist/lang/et.umd.prod.js +1 -1
  61. package/dist/lang/eu.umd.prod.js +1 -1
  62. package/dist/lang/fa-IR.umd.prod.js +1 -1
  63. package/dist/lang/fa.umd.prod.js +1 -1
  64. package/dist/lang/fi.umd.prod.js +1 -1
  65. package/dist/lang/fr.umd.prod.js +1 -1
  66. package/dist/lang/gn.umd.prod.js +1 -1
  67. package/dist/lang/he.umd.prod.js +1 -1
  68. package/dist/lang/hi.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/mk.umd.prod.js +1 -1
  83. package/dist/lang/ml.umd.prod.js +1 -1
  84. package/dist/lang/mm.umd.prod.js +1 -1
  85. package/dist/lang/ms-MY.umd.prod.js +1 -1
  86. package/dist/lang/ms.umd.prod.js +1 -1
  87. package/dist/lang/my.umd.prod.js +1 -1
  88. package/dist/lang/nb-NO.umd.prod.js +1 -1
  89. package/dist/lang/nl.umd.prod.js +1 -1
  90. package/dist/lang/pl.umd.prod.js +1 -1
  91. package/dist/lang/pt-BR.umd.prod.js +1 -1
  92. package/dist/lang/pt.umd.prod.js +1 -1
  93. package/dist/lang/ro.umd.prod.js +1 -1
  94. package/dist/lang/ru.umd.prod.js +1 -1
  95. package/dist/lang/sk.umd.prod.js +1 -1
  96. package/dist/lang/sl.umd.prod.js +1 -1
  97. package/dist/lang/sm.umd.prod.js +1 -1
  98. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  99. package/dist/lang/sr.umd.prod.js +1 -1
  100. package/dist/lang/sv.umd.prod.js +1 -1
  101. package/dist/lang/ta.umd.prod.js +1 -1
  102. package/dist/lang/th.umd.prod.js +1 -1
  103. package/dist/lang/tl.umd.prod.js +1 -1
  104. package/dist/lang/tr.umd.prod.js +1 -1
  105. package/dist/lang/ug.umd.prod.js +1 -1
  106. package/dist/lang/uk.umd.prod.js +1 -1
  107. package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
  108. package/dist/lang/uz-Latn.umd.prod.js +1 -1
  109. package/dist/lang/vi.umd.prod.js +1 -1
  110. package/dist/lang/zh-CN.umd.prod.js +1 -1
  111. package/dist/lang/zh-TW.umd.prod.js +1 -1
  112. package/dist/quasar.client.js +45 -20
  113. package/dist/quasar.css +4 -1
  114. package/dist/quasar.prod.css +1 -1
  115. package/dist/quasar.rtl.css +5 -1
  116. package/dist/quasar.rtl.prod.css +1 -1
  117. package/dist/quasar.sass +4 -2
  118. package/dist/quasar.server.prod.cjs +11 -11
  119. package/dist/quasar.server.prod.js +8 -8
  120. package/dist/quasar.umd.js +45 -20
  121. package/dist/quasar.umd.prod.js +11 -11
  122. package/dist/types/index.d.ts +4 -3
  123. package/dist/web-types/web-types.json +1 -1
  124. package/icon-set/material-symbols-outlined.js +2 -2
  125. package/icon-set/material-symbols-rounded.js +2 -2
  126. package/icon-set/material-symbols-sharp.js +2 -2
  127. package/icon-set/svg-material-symbols-outlined.js +3 -4
  128. package/icon-set/svg-material-symbols-rounded.js +3 -4
  129. package/icon-set/svg-material-symbols-sharp.js +3 -4
  130. package/lang/bs-BA.js +93 -0
  131. package/lang/index.json +1 -1
  132. package/package.json +1 -1
  133. package/src/components/field/__tests__/QField.cy.js +1 -1
  134. package/src/components/icon/QIcon.sass +3 -0
  135. package/src/components/input/__tests__/QInput.cy.js +1 -1
  136. package/src/components/item/QList.js +7 -1
  137. package/src/components/item/QList.test.js +170 -0
  138. package/src/components/select/__tests__/QSelect.cy.js +1 -1
  139. package/src/components/table/QTable.json +1 -1
  140. package/src/composables/__tests__/use-field.cy.js +1 -1
  141. package/src/composables/private.use-key-composition/use-key-composition.js +2 -19
  142. package/src/css/core/mouse.sass +1 -1
  143. package/src/plugins/dialog/Dialog.json +1 -1
  144. package/src/utils/date/date.js +38 -6
  145. package/src/utils/private.dialog/create-dialog.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Quasar Framework v2.16.8
2
+ * Quasar Framework v2.16.10
3
3
  * (c) 2015-present Razvan Stoenescu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1363,7 +1363,7 @@ function prepareApp(app2, uiOpts, pluginOpts) {
1363
1363
  }
1364
1364
  var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext) {
1365
1365
  const $q = {
1366
- version: "2.16.8",
1366
+ version: "2.16.10",
1367
1367
  config: opts.config || {}
1368
1368
  };
1369
1369
  Object.assign(ssrContext, {
@@ -1393,7 +1393,7 @@ var install_quasar_default = false ? function(parentApp, opts = {}, ssrContext)
1393
1393
  ssrContext
1394
1394
  });
1395
1395
  } : function(parentApp, opts = {}) {
1396
- const $q = { version: "2.16.8" };
1396
+ const $q = { version: "2.16.10" };
1397
1397
  if (globalConfigIsFrozen === false) {
1398
1398
  if (opts.config !== void 0) {
1399
1399
  Object.assign(globalConfig, opts.config);
@@ -9342,8 +9342,8 @@ var MILLISECONDS_IN_DAY = 864e5;
9342
9342
  var MILLISECONDS_IN_HOUR = 36e5;
9343
9343
  var MILLISECONDS_IN_MINUTE = 6e4;
9344
9344
  var defaultMask = "YYYY-MM-DDTHH:mm:ss.SSSZ";
9345
- var token = /\[((?:[^\]\\]|\\]|\\)*)\]|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g;
9346
- var reverseToken = /(\[[^\]]*\])|d{1,4}|M{1,4}|m{1,2}|w{1,2}|Qo|Do|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g;
9345
+ var token = /\[((?:[^\]\\]|\\]|\\)*)\]|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]/g;
9346
+ var reverseToken = /(\[[^\]]*\])|do|d{1,4}|Mo|M{1,4}|m{1,2}|wo|w{1,2}|Qo|Do|DDDo|D{1,4}|YY(?:YY)?|H{1,2}|h{1,2}|s{1,2}|S{1,3}|Z{1,2}|a{1,2}|[AQExX]|([.*+:?^,\s${}()|\\]+)/g;
9347
9347
  var regexStore = {};
9348
9348
  function getRegexData(mask, dateLocale) {
9349
9349
  const days = "(" + dateLocale.days.join("|") + ")", key = mask + days;
@@ -9365,6 +9365,9 @@ function getRegexData(mask, dateLocale) {
9365
9365
  case "M":
9366
9366
  map.M = index;
9367
9367
  return "(\\d{1,2})";
9368
+ case "Mo":
9369
+ map.M = index++;
9370
+ return "(\\d{1,2}(st|nd|rd|th))";
9368
9371
  case "MM":
9369
9372
  map.M = index;
9370
9373
  return "(\\d{2})";
@@ -9433,13 +9436,22 @@ function getRegexData(mask, dateLocale) {
9433
9436
  case "d":
9434
9437
  case "E":
9435
9438
  return "(\\d{1})";
9439
+ case "do":
9440
+ index++;
9441
+ return "(\\d{1}(st|nd|rd|th))";
9436
9442
  case "Qo":
9437
9443
  return "(1st|2nd|3rd|4th)";
9438
9444
  case "DDD":
9439
9445
  case "DDDD":
9440
9446
  return "(\\d{1,3})";
9447
+ case "DDDo":
9448
+ index++;
9449
+ return "(\\d{1,3}(st|nd|rd|th))";
9441
9450
  case "w":
9442
9451
  return "(\\d{1,2})";
9452
+ case "wo":
9453
+ index++;
9454
+ return "(\\d{1,2}(st|nd|rd|th))";
9443
9455
  case "ww":
9444
9456
  return "(\\d{2})";
9445
9457
  case "Z":
@@ -9891,6 +9903,10 @@ var formatter = {
9891
9903
  M(date) {
9892
9904
  return date.getMonth() + 1;
9893
9905
  },
9906
+ // Month: 1st, 2nd, ..., 12th
9907
+ Mo(date) {
9908
+ return getOrdinal(date.getMonth() + 1);
9909
+ },
9894
9910
  // Month: 01, 02, ..., 12
9895
9911
  MM(date) {
9896
9912
  return pad(date.getMonth() + 1);
@@ -9927,6 +9943,10 @@ var formatter = {
9927
9943
  DDD(date) {
9928
9944
  return getDayOfYear(date);
9929
9945
  },
9946
+ // Day of year: 1st, 2nd, ..., 366th
9947
+ DDDo(date) {
9948
+ return getOrdinal(getDayOfYear(date));
9949
+ },
9930
9950
  // Day of year: 001, 002, ..., 366
9931
9951
  DDDD(date) {
9932
9952
  return pad(getDayOfYear(date), 3);
@@ -9935,9 +9955,13 @@ var formatter = {
9935
9955
  d(date) {
9936
9956
  return date.getDay();
9937
9957
  },
9958
+ // Day of week: 0th, 1st, ..., 6th
9959
+ do(date) {
9960
+ return getOrdinal(date.getDay());
9961
+ },
9938
9962
  // Day of week: Su, Mo, ...
9939
9963
  dd(date, dateLocale) {
9940
- return this.dddd(date, dateLocale).slice(0, 2);
9964
+ return dateLocale.days[date.getDay()].slice(0, 2);
9941
9965
  },
9942
9966
  // Day of week: Sun, Mon, ...
9943
9967
  ddd(date, dateLocale) {
@@ -9955,6 +9979,10 @@ var formatter = {
9955
9979
  w(date) {
9956
9980
  return getWeekOfYear(date);
9957
9981
  },
9982
+ // Week of Year: 1st 2nd ... 52nd 53rd
9983
+ wo(date) {
9984
+ return getOrdinal(getWeekOfYear(date));
9985
+ },
9958
9986
  // Week of Year: 01 02 ... 52 53
9959
9987
  ww(date) {
9960
9988
  return pad(getWeekOfYear(date));
@@ -10006,15 +10034,15 @@ var formatter = {
10006
10034
  },
10007
10035
  // Meridiem: AM, PM
10008
10036
  A(date) {
10009
- return this.H(date) < 12 ? "AM" : "PM";
10037
+ return date.getHours() < 12 ? "AM" : "PM";
10010
10038
  },
10011
10039
  // Meridiem: am, pm
10012
10040
  a(date) {
10013
- return this.H(date) < 12 ? "am" : "pm";
10041
+ return date.getHours() < 12 ? "am" : "pm";
10014
10042
  },
10015
10043
  // Meridiem: a.m., p.m.
10016
10044
  aa(date) {
10017
- return this.H(date) < 12 ? "a.m." : "p.m.";
10045
+ return date.getHours() < 12 ? "a.m." : "p.m.";
10018
10046
  },
10019
10047
  // Timezone: -01:00, +00:00, ... +12:00
10020
10048
  Z(date, _dateLocale, _forcedYear, forcedTimezoneOffset) {
@@ -16591,21 +16619,14 @@ function use_mask_default(props4, emit, emitValue, inputRef) {
16591
16619
  }
16592
16620
 
16593
16621
  // src/composables/private.use-key-composition/use-key-composition.js
16594
- var isJapanese = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/;
16595
- var isChinese = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u;
16596
- var isKorean = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/;
16597
- var isPlainText = /[a-z0-9_ -]$/i;
16598
16622
  function use_key_composition_default(onInput) {
16599
16623
  return function onComposition(e) {
16600
16624
  if (e.type === "compositionend" || e.type === "change") {
16601
16625
  if (e.target.qComposing !== true) return;
16602
16626
  e.target.qComposing = false;
16603
16627
  onInput(e);
16604
- } else if (e.type === "compositionupdate" && e.target.qComposing !== true && typeof e.data === "string") {
16605
- const isComposing = client.is.firefox === true ? isPlainText.test(e.data) === false : isJapanese.test(e.data) === true || isChinese.test(e.data) === true || isKorean.test(e.data) === true;
16606
- if (isComposing === true) {
16607
- e.target.qComposing = true;
16608
- }
16628
+ } else if (e.type === "compositionstart") {
16629
+ e.target.qComposing = true;
16609
16630
  }
16610
16631
  };
16611
16632
  }
@@ -17076,6 +17097,7 @@ var QIntersection_default = createComponent({
17076
17097
 
17077
17098
  // src/components/item/QList.js
17078
17099
  import { h as h63, computed as computed69, getCurrentInstance as getCurrentInstance50 } from "vue";
17100
+ var roleAttrExceptions = ["ul", "ol"];
17079
17101
  var QList_default = createComponent({
17080
17102
  name: "QList",
17081
17103
  props: {
@@ -17092,10 +17114,13 @@ var QList_default = createComponent({
17092
17114
  setup(props4, { slots }) {
17093
17115
  const vm2 = getCurrentInstance50();
17094
17116
  const isDark = use_dark_default(props4, vm2.proxy.$q);
17117
+ const role = computed69(
17118
+ () => roleAttrExceptions.includes(props4.tag) ? null : "list"
17119
+ );
17095
17120
  const classes = computed69(
17096
17121
  () => "q-list" + (props4.bordered === true ? " q-list--bordered" : "") + (props4.dense === true ? " q-list--dense" : "") + (props4.separator === true ? " q-list--separator" : "") + (isDark.value === true ? " q-list--dark" : "") + (props4.padding === true ? " q-list--padding" : "")
17097
17122
  );
17098
- return () => h63(props4.tag, { class: classes.value }, hSlot(slots.default));
17123
+ return () => h63(props4.tag, { class: classes.value, role: role.value }, hSlot(slots.default));
17099
17124
  }
17100
17125
  });
17101
17126
 
@@ -31358,7 +31383,7 @@ function runSequentialPromises(sequentialPromises, { threadsNumber = 1, abortOnF
31358
31383
 
31359
31384
  // src/index.dev.js
31360
31385
  var Quasar = {
31361
- version: "2.16.8",
31386
+ version: "2.16.10",
31362
31387
  install: install_quasar_default,
31363
31388
  // TODO: remove in Qv3 (should only be used through the plugin)
31364
31389
  // We provide a deprecated fallback here
package/dist/quasar.css CHANGED
@@ -188,6 +188,9 @@ input[type=search]::-webkit-search-decoration {
188
188
  width: 100%;
189
189
  height: 100%;
190
190
  }
191
+ .q-icon > div {
192
+ box-sizing: border-box;
193
+ }
191
194
 
192
195
  .q-icon,
193
196
  .material-icons,
@@ -10422,7 +10425,7 @@ body.mobile .scroll--mobile {
10422
10425
  cursor: pointer;
10423
10426
  }
10424
10427
 
10425
- [aria-disabled] {
10428
+ [aria-disabled=true] {
10426
10429
  cursor: default;
10427
10430
  }
10428
10431