quasar 2.5.5 → 2.6.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 (171) hide show
  1. package/README.md +1 -1
  2. package/dist/api/Dialog.json +9 -2
  3. package/dist/api/QKnob.json +5 -0
  4. package/dist/api/QSelect.json +8 -9
  5. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  6. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  7. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  8. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  9. package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +6 -0
  10. package/dist/icon-set/fontawesome-v6.umd.prod.js +6 -0
  11. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  12. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  13. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  14. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  15. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  16. package/dist/icon-set/material-icons.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/svg-bootstrap-icons.umd.prod.js +2 -2
  22. package/dist/icon-set/svg-eva-icons.umd.prod.js +2 -2
  23. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +2 -2
  24. package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +6 -0
  25. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +2 -2
  28. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-mdi-v6.umd.prod.js +2 -2
  36. package/dist/icon-set/svg-themify.umd.prod.js +2 -2
  37. package/dist/icon-set/themify.umd.prod.js +1 -1
  38. package/dist/lang/ar.umd.prod.js +1 -1
  39. package/dist/lang/az-Latn.umd.prod.js +1 -1
  40. package/dist/lang/bg.umd.prod.js +1 -1
  41. package/dist/lang/bn.umd.prod.js +1 -1
  42. package/dist/lang/ca.umd.prod.js +1 -1
  43. package/dist/lang/cs.umd.prod.js +1 -1
  44. package/dist/lang/da.umd.prod.js +1 -1
  45. package/dist/lang/de.umd.prod.js +1 -1
  46. package/dist/lang/el.umd.prod.js +1 -1
  47. package/dist/lang/en-GB.umd.prod.js +1 -1
  48. package/dist/lang/en-US.umd.prod.js +1 -1
  49. package/dist/lang/eo.umd.prod.js +1 -1
  50. package/dist/lang/es.umd.prod.js +1 -1
  51. package/dist/lang/et.umd.prod.js +1 -1
  52. package/dist/lang/eu.umd.prod.js +6 -0
  53. package/dist/lang/fa-IR.umd.prod.js +1 -1
  54. package/dist/lang/fa.umd.prod.js +1 -1
  55. package/dist/lang/fi.umd.prod.js +1 -1
  56. package/dist/lang/fr.umd.prod.js +1 -1
  57. package/dist/lang/gn.umd.prod.js +1 -1
  58. package/dist/lang/he.umd.prod.js +1 -1
  59. package/dist/lang/hr.umd.prod.js +1 -1
  60. package/dist/lang/hu.umd.prod.js +1 -1
  61. package/dist/lang/id.umd.prod.js +1 -1
  62. package/dist/lang/is.umd.prod.js +1 -1
  63. package/dist/lang/it.umd.prod.js +1 -1
  64. package/dist/lang/ja.umd.prod.js +1 -1
  65. package/dist/lang/km.umd.prod.js +1 -1
  66. package/dist/lang/ko-KR.umd.prod.js +1 -1
  67. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  68. package/dist/lang/kz.umd.prod.js +6 -0
  69. package/dist/lang/lt.umd.prod.js +1 -1
  70. package/dist/lang/lu.umd.prod.js +1 -1
  71. package/dist/lang/lv.umd.prod.js +1 -1
  72. package/dist/lang/ml.umd.prod.js +1 -1
  73. package/dist/lang/ms.umd.prod.js +1 -1
  74. package/dist/lang/my.umd.prod.js +1 -1
  75. package/dist/lang/nb-NO.umd.prod.js +1 -1
  76. package/dist/lang/nl.umd.prod.js +1 -1
  77. package/dist/lang/pl.umd.prod.js +1 -1
  78. package/dist/lang/pt-BR.umd.prod.js +1 -1
  79. package/dist/lang/pt.umd.prod.js +1 -1
  80. package/dist/lang/ro.umd.prod.js +1 -1
  81. package/dist/lang/ru.umd.prod.js +1 -1
  82. package/dist/lang/sk.umd.prod.js +1 -1
  83. package/dist/lang/sl.umd.prod.js +1 -1
  84. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  85. package/dist/lang/sr.umd.prod.js +1 -1
  86. package/dist/lang/sv.umd.prod.js +1 -1
  87. package/dist/lang/ta.umd.prod.js +1 -1
  88. package/dist/lang/th.umd.prod.js +1 -1
  89. package/dist/lang/tr.umd.prod.js +1 -1
  90. package/dist/lang/ug.umd.prod.js +2 -2
  91. package/dist/lang/uk.umd.prod.js +1 -1
  92. package/dist/lang/vi.umd.prod.js +1 -1
  93. package/dist/lang/zh-CN.umd.prod.js +1 -1
  94. package/dist/lang/zh-TW.umd.prod.js +1 -1
  95. package/dist/quasar.cjs.prod.js +2 -2
  96. package/dist/quasar.css +2 -4
  97. package/dist/quasar.esm.prod.js +2 -2
  98. package/dist/quasar.prod.css +1 -1
  99. package/dist/quasar.rtl.css +2 -4
  100. package/dist/quasar.rtl.prod.css +1 -1
  101. package/dist/quasar.sass +2 -1
  102. package/dist/quasar.umd.js +277 -235
  103. package/dist/quasar.umd.prod.js +2 -2
  104. package/dist/types/extras/icon-set.d.ts +3 -0
  105. package/dist/types/globals.d.ts +2 -2
  106. package/dist/types/index.d.ts +11 -3
  107. package/dist/vetur/quasar-attributes.json +4 -0
  108. package/dist/vetur/quasar-tags.json +1 -0
  109. package/dist/web-types/web-types.json +11 -1
  110. package/icon-set/fontawesome-v6-pro.js +128 -0
  111. package/icon-set/fontawesome-v6.js +128 -0
  112. package/icon-set/svg-fontawesome-v6.js +198 -0
  113. package/lang/eu.js +91 -0
  114. package/lang/index.json +8 -0
  115. package/lang/kz.js +95 -0
  116. package/lang/ug.js +49 -50
  117. package/package.json +1 -1
  118. package/src/components/btn/QBtn.js +16 -14
  119. package/src/components/btn/use-btn.js +7 -7
  120. package/src/components/date/QDate.js +2 -2
  121. package/src/components/dialog/QDialog.js +11 -11
  122. package/src/components/dialog-bottom-sheet/BottomSheet.js +11 -11
  123. package/src/components/dialog-plugin/DialogPlugin.js +6 -6
  124. package/src/components/editor/QEditor.js +10 -10
  125. package/src/components/editor/editor-utils.js +2 -2
  126. package/src/components/file/QFile.js +2 -1
  127. package/src/components/icon/QIcon.js +2 -1
  128. package/src/components/infinite-scroll/QInfiniteScroll.js +3 -1
  129. package/src/components/inner-loading/QInnerLoading.js +7 -7
  130. package/src/components/input/QInput.js +4 -1
  131. package/src/components/knob/QKnob.js +5 -2
  132. package/src/components/knob/QKnob.json +6 -0
  133. package/src/components/linear-progress/QLinearProgress.sass +1 -0
  134. package/src/components/menu/QMenu.js +13 -13
  135. package/src/components/page-scroller/QPageScroller.js +4 -4
  136. package/src/components/pull-to-refresh/QPullToRefresh.js +5 -5
  137. package/src/components/select/QSelect.js +13 -7
  138. package/src/components/select/QSelect.json +4 -7
  139. package/src/components/slider/use-slider.js +4 -4
  140. package/src/components/stepper/QStep.js +6 -6
  141. package/src/components/table/table-column-selection.js +6 -6
  142. package/src/components/table/table-sort.js +2 -2
  143. package/src/components/tabs/QTabs.js +4 -4
  144. package/src/components/tooltip/QTooltip.js +12 -12
  145. package/src/components/uploader/uploader-core.js +11 -10
  146. package/src/components/virtual-scroll/QVirtualScroll.js +3 -3
  147. package/src/components/virtual-scroll/use-virtual-scroll.js +20 -20
  148. package/src/composables/private/use-field.js +25 -17
  149. package/src/composables/private/use-file-dom-props.js +5 -5
  150. package/src/composables/private/use-file.js +15 -12
  151. package/src/composables/private/use-router-link.js +2 -2
  152. package/src/directives/Morph.js +12 -3
  153. package/src/install-quasar.js +3 -3
  154. package/src/plugins/AddressbarColor.js +7 -7
  155. package/src/plugins/Cookies.js +5 -1
  156. package/src/plugins/Dialog.json +3 -2
  157. package/src/plugins/Loading.js +3 -3
  158. package/src/plugins/LoadingBar.js +12 -6
  159. package/src/plugins/Notify.js +4 -4
  160. package/src/utils/create-meta-mixin.js +4 -4
  161. package/src/utils/create-uploader-component.js +2 -2
  162. package/src/utils/event.js +3 -3
  163. package/src/utils/extend.js +3 -3
  164. package/src/utils/morph.js +2 -2
  165. package/src/utils/private/is.js +4 -2
  166. package/src/utils/private/noop-ssr-directive-transform.js +1 -1
  167. package/wrappers/index.js +33 -5
  168. package/wrappers/index.mjs +63 -0
  169. package/dist/ssr-directives/Morph.js +0 -55
  170. package/dist/ssr-directives/index.js +0 -14
  171. package/src/directives/Morph.ssr.js +0 -45
@@ -10,7 +10,7 @@ import IconSet from './icon-set.js'
10
10
 
11
11
  import { quasarKey } from './utils/private/symbols.js'
12
12
  import { globalConfig, globalConfigIsFrozen, freezeGlobalConfig } from './utils/private/global-config.js'
13
- import { isPlainObject } from './utils/private/is.js'
13
+ import { isObject } from './utils/private/is.js'
14
14
 
15
15
  const autoInstalledPlugins = [
16
16
  Platform,
@@ -47,13 +47,13 @@ function prepareApp (app, uiOpts, pluginOpts) {
47
47
  installPlugins(pluginOpts, autoInstalledPlugins)
48
48
 
49
49
  uiOpts.components !== void 0 && Object.values(uiOpts.components).forEach(c => {
50
- if (isPlainObject(c) === true && c.name !== void 0) {
50
+ if (isObject(c) === true && c.name !== void 0) {
51
51
  app.component(c.name, c)
52
52
  }
53
53
  })
54
54
 
55
55
  uiOpts.directives !== void 0 && Object.values(uiOpts.directives).forEach(d => {
56
- if (isPlainObject(d) === true && d.name !== void 0) {
56
+ if (isObject(d) === true && d.name !== void 0) {
57
57
  app.directive(d.name, d)
58
58
  }
59
59
  })
@@ -51,15 +51,15 @@ export default {
51
51
  || client.is.webkit === true || client.is.vivaldi === true
52
52
  )
53
53
  ? hexColor => {
54
- const val = hexColor || getCssVar('primary')
54
+ const val = hexColor || getCssVar('primary')
55
55
 
56
- if (client.is.nativeMobile === true && window.StatusBar) {
57
- window.StatusBar.backgroundColorByHexString(val)
58
- }
59
- else {
60
- setColor(val)
61
- }
56
+ if (client.is.nativeMobile === true && window.StatusBar) {
57
+ window.StatusBar.backgroundColorByHexString(val)
62
58
  }
59
+ else {
60
+ setColor(val)
61
+ }
62
+ }
63
63
  : noop,
64
64
 
65
65
  install ({ $q }) {
@@ -26,7 +26,11 @@ function read (string) {
26
26
  string = decode(string.replace(/\+/g, ' '))
27
27
 
28
28
  try {
29
- string = JSON.parse(string)
29
+ const parsed = JSON.parse(string)
30
+
31
+ if (parsed === Object(parsed) || Array.isArray(parsed) === true) {
32
+ string = parsed
33
+ }
30
34
  }
31
35
  catch (e) {}
32
36
 
@@ -307,8 +307,9 @@
307
307
  },
308
308
 
309
309
  "component": {
310
- "type": "Component",
311
- "desc": "Use custom dialog component; use along with 'componentProps' prop where possible"
310
+ "type": [ "Component", "String" ],
311
+ "desc": "Use custom dialog component; use along with 'componentProps' prop where possible",
312
+ "examples": [ "CustomComponent", "'custom-component'" ]
312
313
  },
313
314
 
314
315
  "componentProps": {
@@ -5,7 +5,7 @@ import QSpinner from '../components/spinner/QSpinner.js'
5
5
  import defineReactivePlugin from '../utils/private/define-reactive-plugin.js'
6
6
  import { createGlobalNode, removeGlobalNode } from '../utils/private/global-nodes.js'
7
7
  import preventScroll from '../utils/prevent-scroll.js'
8
- import { isPlainObject } from '../utils/private/is.js'
8
+ import { isObject } from '../utils/private/is.js'
9
9
 
10
10
  let
11
11
  app,
@@ -35,7 +35,7 @@ const Plugin = defineReactivePlugin({
35
35
  show (opts) {
36
36
  if (__QUASAR_SSR_SERVER__) { return }
37
37
 
38
- props = isPlainObject(opts) === true && opts.ignoreDefaults === true
38
+ props = isObject(opts) === true && opts.ignoreDefaults === true
39
39
  ? { ...originalDefaults, ...opts }
40
40
  : { ...defaults, ...opts }
41
41
 
@@ -136,7 +136,7 @@ const Plugin = defineReactivePlugin({
136
136
 
137
137
  setDefaults (opts) {
138
138
  if (__QUASAR_SSR_SERVER__ !== true) {
139
- isPlainObject(opts) === true && Object.assign(defaults, opts)
139
+ isObject(opts) === true && Object.assign(defaults, opts)
140
140
  }
141
141
  },
142
142
 
@@ -6,7 +6,7 @@ import { createGlobalNode } from '../utils/private/global-nodes.js'
6
6
  import { createChildApp } from '../install-quasar.js'
7
7
 
8
8
  import QAjaxBar from '../components/ajax-bar/QAjaxBar.js'
9
- import { isPlainObject } from '../utils/private/is.js'
9
+ import { isObject } from '../utils/private/is.js'
10
10
 
11
11
  const barRef = ref(null)
12
12
 
@@ -36,6 +36,14 @@ const Plugin = defineReactivePlugin({
36
36
  : {}
37
37
  )
38
38
 
39
+ function onStart () {
40
+ Plugin.isActive = true
41
+ }
42
+
43
+ function onStop () {
44
+ Plugin.isActive = false
45
+ }
46
+
39
47
  const el = createGlobalNode('q-loading-bar')
40
48
 
41
49
  createChildApp({
@@ -44,23 +52,21 @@ const Plugin = defineReactivePlugin({
44
52
  // hide App from Vue devtools
45
53
  devtools: { hide: true },
46
54
 
47
- setup: () => () => h(QAjaxBar, { ...props.value, ref: barRef })
55
+ setup: () => () => h(QAjaxBar, { ...props.value, onStart, onStop, ref: barRef })
48
56
  }, parentApp).mount(el)
49
57
 
50
58
  Object.assign(this, {
51
59
  start (speed) {
52
60
  barRef.value.start(speed)
53
- Plugin.isActive = true
54
61
  },
55
62
  stop () {
56
- const sessions = barRef.value.stop()
57
- Plugin.isActive = sessions > 0
63
+ barRef.value.stop()
58
64
  },
59
65
  increment () {
60
66
  barRef.value.increment.apply(null, arguments)
61
67
  },
62
68
  setDefaults (opts) {
63
- if (isPlainObject(opts) === true) {
69
+ if (isObject(opts) === true) {
64
70
  Object.assign(props.value, opts)
65
71
  }
66
72
  }
@@ -9,7 +9,7 @@ import { createComponent } from '../utils/private/create.js'
9
9
  import { noop } from '../utils/event.js'
10
10
  import { createGlobalNode } from '../utils/private/global-nodes.js'
11
11
  import { createChildApp } from '../install-quasar.js'
12
- import { isPlainObject } from '../utils/private/is.js'
12
+ import { isObject } from '../utils/private/is.js'
13
13
 
14
14
  let uid = 0
15
15
 
@@ -73,7 +73,7 @@ function addNotification (config, $q, originalApi) {
73
73
  Object.assign(notif, defaults)
74
74
  }
75
75
 
76
- if (isPlainObject(config) === false) {
76
+ if (isObject(config) === false) {
77
77
  if (notif.type) {
78
78
  Object.assign(notif, notifTypes[ notif.type ])
79
79
  }
@@ -491,12 +491,12 @@ function getComponent () {
491
491
  export default {
492
492
  setDefaults (opts) {
493
493
  if (__QUASAR_SSR_SERVER__ !== true) {
494
- isPlainObject(opts) === true && Object.assign(defaults, opts)
494
+ isObject(opts) === true && Object.assign(defaults, opts)
495
495
  }
496
496
  },
497
497
 
498
498
  registerType (typeName, typeOpts) {
499
- if (__QUASAR_SSR_SERVER__ !== true && isPlainObject(typeOpts) === true) {
499
+ if (__QUASAR_SSR_SERVER__ !== true && isObject(typeOpts) === true) {
500
500
  notifTypes[ typeName ] = typeOpts
501
501
  }
502
502
  },
@@ -5,10 +5,10 @@ export default metaOptions => {
5
5
  return {
6
6
  created: typeof metaOptions === 'function'
7
7
  ? function () {
8
- this.ssrContext.__qMetaList.push(
9
- metaOptions.call(this) || {}
10
- )
11
- }
8
+ this.ssrContext.__qMetaList.push(
9
+ metaOptions.call(this) || {}
10
+ )
11
+ }
12
12
  : function () {
13
13
  this.ssrContext.__qMetaList.push(metaOptions)
14
14
  }
@@ -2,7 +2,7 @@ import { coreProps, coreEmits, getRenderer } from '../components/uploader/upload
2
2
 
3
3
  import { createComponent } from './private/create.js'
4
4
  import getEmitsObject from './private/get-emits-object.js'
5
- import { isPlainObject } from './private/is.js'
5
+ import { isObject } from './private/is.js'
6
6
 
7
7
  const coreEmitsObject = getEmitsObject(coreEmits)
8
8
 
@@ -14,7 +14,7 @@ export default ({ name, props, emits, injectPlugin }) => createComponent({
14
14
  ...props
15
15
  },
16
16
 
17
- emits: isPlainObject(emits) === true
17
+ emits: isObject(emits) === true
18
18
  ? { ...coreEmitsObject, ...emits }
19
19
  : [ ...coreEmits, ...emits ],
20
20
 
@@ -117,9 +117,9 @@ export function preventDraggable (el, status) {
117
117
 
118
118
  const fn = status === true
119
119
  ? el => {
120
- el.__dragPrevented = true
121
- el.addEventListener('dragstart', prevent, listenOpts.notPassiveCapture)
122
- }
120
+ el.__dragPrevented = true
121
+ el.addEventListener('dragstart', prevent, listenOpts.notPassiveCapture)
122
+ }
123
123
  : el => {
124
124
  delete el.__dragPrevented
125
125
  el.removeEventListener('dragstart', prevent, listenOpts.notPassiveCapture)
@@ -1,4 +1,4 @@
1
- import { isPlainObject } from './private/is'
1
+ import { isObject } from './private/is'
2
2
 
3
3
  export default function extend () {
4
4
  let
@@ -33,13 +33,13 @@ export default function extend () {
33
33
  continue
34
34
  }
35
35
 
36
- if (deep && copy && (isPlainObject(copy) === true || (copyIsArray = Array.isArray(copy) === true))) {
36
+ if (deep && copy && (isObject(copy) === true || (copyIsArray = Array.isArray(copy) === true))) {
37
37
  if (copyIsArray) {
38
38
  copyIsArray = false
39
39
  clone = src && Array.isArray(src) === true ? src : []
40
40
  }
41
41
  else {
42
- clone = src && isPlainObject(src) === true ? src : {}
42
+ clone = src && isObject(src) === true ? src : {}
43
43
  }
44
44
 
45
45
  target[ name ] = extend(deep, clone, copy)
@@ -1,4 +1,4 @@
1
- import { isPlainObject } from './private/is'
1
+ import { isObject } from './private/is'
2
2
 
3
3
  let id = 0
4
4
  let offsetBase = void 0
@@ -445,7 +445,7 @@ export default function morph (_options) {
445
445
  if (typeof options.style === 'string') {
446
446
  elTo.style.cssText += ' ' + options.style
447
447
  }
448
- else if (isPlainObject(options.style) === true) {
448
+ else if (isObject(options.style) === true) {
449
449
  for (const prop in options.style) {
450
450
  elTo.style[ prop ] = options.style[ prop ]
451
451
  }
@@ -120,8 +120,10 @@ export function isDeepEqual (a, b) {
120
120
  return a !== a && b !== b // eslint-disable-line no-self-compare
121
121
  }
122
122
 
123
- export function isPlainObject (v) {
124
- return Object.prototype.toString.call(v) === '[object Object]'
123
+ // not perfect, but what we ARE interested is for Arrays not to slip in
124
+ // as spread operator will mess things up in various areas
125
+ export function isObject (v) {
126
+ return v !== null && typeof v === 'object' && Array.isArray(v) !== true
125
127
  }
126
128
 
127
129
  export function isDate (v) {
@@ -1 +1 @@
1
- export default () => ({ props: [] })
1
+ export default () => ({})
package/wrappers/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  // parameters and return value when using Quasar with TypeScript
5
5
  // We need these in `ui` folder to make `quasar/wrapper` import work,
6
6
  // but they are useful only for Quasar CLI projects
7
- // They are typed via module augmentation by `@quasar/app`
7
+ // They are typed via module augmentation by `@quasar/app-webpack` / `@quasar/app-vite`
8
8
 
9
9
  module.exports.boot = function (callback) {
10
10
  return callback
@@ -14,10 +14,6 @@ module.exports.ssrMiddleware = function (callback) {
14
14
  return callback
15
15
  }
16
16
 
17
- module.exports.ssrProductionExport = function (callback) {
18
- return callback
19
- }
20
-
21
17
  module.exports.configure = function (callback) {
22
18
  return callback
23
19
  }
@@ -33,3 +29,35 @@ module.exports.route = function (callback) {
33
29
  module.exports.store = function (callback) {
34
30
  return callback
35
31
  }
32
+
33
+ /**
34
+ * Below only for @quasar/app-webpack
35
+ */
36
+
37
+ module.exports.ssrProductionExport = function (callback) {
38
+ return callback
39
+ }
40
+
41
+ /**
42
+ * Below only for @quasar/app-vite
43
+ */
44
+
45
+ module.exports.ssrCreate = function (callback) {
46
+ return callback
47
+ }
48
+
49
+ module.exports.ssrListen = function (callback) {
50
+ return callback
51
+ }
52
+
53
+ module.exports.ssrClose = function (callback) {
54
+ return callback
55
+ }
56
+
57
+ module.exports.ssrServeStaticContent = function (callback) {
58
+ return callback
59
+ }
60
+
61
+ module.exports.ssrRenderPreloadTag = function (callback) {
62
+ return callback
63
+ }
@@ -0,0 +1,63 @@
1
+ // Functions in this file are no-op,
2
+ // they just take a callback function and return it
3
+ // They're used to apply typings to the callback
4
+ // parameters and return value when using Quasar with TypeScript
5
+ // We need these in `ui` folder to make `quasar/wrapper` import work,
6
+ // but they are useful only for Quasar CLI projects
7
+ // They are typed via module augmentation by `@quasar/app-webpack` / `@quasar/app-vite`
8
+
9
+ export function boot (callback) {
10
+ return callback
11
+ }
12
+
13
+ export function configure (callback) {
14
+ return callback
15
+ }
16
+
17
+ export function preFetch (callback) {
18
+ return callback
19
+ }
20
+
21
+ export function route (callback) {
22
+ return callback
23
+ }
24
+
25
+ export function store (callback) {
26
+ return callback
27
+ }
28
+
29
+ export function ssrMiddleware (callback) {
30
+ return callback
31
+ }
32
+
33
+ /**
34
+ * Below only for @quasar/app-webpack
35
+ */
36
+
37
+ export function ssrProductionExport (callback) {
38
+ return callback
39
+ }
40
+
41
+ /**
42
+ * Below only for @quasar/app-vite
43
+ */
44
+
45
+ export function ssrCreate (callback) {
46
+ return callback
47
+ }
48
+
49
+ export function ssrListen (callback) {
50
+ return callback
51
+ }
52
+
53
+ export function ssrClose (callback) {
54
+ return callback
55
+ }
56
+
57
+ export function ssrServeStaticContent (callback) {
58
+ return callback
59
+ }
60
+
61
+ export function ssrRenderPreloadTag (callback) {
62
+ return callback
63
+ }
@@ -1,55 +0,0 @@
1
- /*!
2
- * Quasar Framework v2.5.5
3
- * (c) 2015-present Razvan Stoenescu
4
- * Released under the MIT License.
5
- */
6
-
7
- 'use strict';
8
-
9
- // import { createObjectProperty } from '@vue/compiler-dom'
10
-
11
- // export default (dir) => {
12
- // const name = dir.arg
13
- // ? '\'' + dir.arg.content.split(':')[ 0 ] + '\''
14
- // : false
15
-
16
- // return {
17
- // props: [
18
- // createObjectProperty(
19
- // 'class',
20
- // `${ dir.exp.content } && ${dir.exp.content}.model === ${ name } ? '' : 'q-morph--invisible'`
21
- // )
22
- // ]
23
- // }
24
- // }
25
-
26
- // temporarily avoid importing from @vue/compiler-dom
27
-
28
- var Morph_ssr = (dir) => {
29
- const name = dir.arg
30
- ? '\'' + dir.arg.content.split(':')[ 0 ] + '\''
31
- : false;
32
-
33
- return {
34
- props: [
35
- {
36
- type: 16,
37
- loc: {
38
- source: '',
39
- start: { line: 1, column: 1, offset: 0 },
40
- end: { line: 1, column: 1, offset: 0 }
41
- },
42
- key: {
43
- type: 4,
44
- loc: { source: '', start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 } },
45
- content: 'class',
46
- isStatic: true,
47
- constType: 3
48
- },
49
- value: `${ dir.exp.content } && ${ dir.exp.content }.model === ${ name } ? '' : 'q-morph--invisible'`
50
- }
51
- ]
52
- }
53
- };
54
-
55
- module.exports = Morph_ssr;
@@ -1,14 +0,0 @@
1
- const noopTransform = () => ({ props: [] })
2
- module.exports = {
3
- 'close-popup': noopTransform,
4
- 'intersection': noopTransform,
5
- 'morph': require('./Morph.js'),
6
- 'mutation': noopTransform,
7
- 'ripple': noopTransform,
8
- 'scroll': noopTransform,
9
- 'scroll-fire': noopTransform,
10
- 'touch-hold': noopTransform,
11
- 'touch-pan': noopTransform,
12
- 'touch-repeat': noopTransform,
13
- 'touch-swipe': noopTransform
14
- }
@@ -1,45 +0,0 @@
1
- // import { createObjectProperty } from '@vue/compiler-dom'
2
-
3
- // export default (dir) => {
4
- // const name = dir.arg
5
- // ? '\'' + dir.arg.content.split(':')[ 0 ] + '\''
6
- // : false
7
-
8
- // return {
9
- // props: [
10
- // createObjectProperty(
11
- // 'class',
12
- // `${ dir.exp.content } && ${dir.exp.content}.model === ${ name } ? '' : 'q-morph--invisible'`
13
- // )
14
- // ]
15
- // }
16
- // }
17
-
18
- // temporarily avoid importing from @vue/compiler-dom
19
-
20
- export default (dir) => {
21
- const name = dir.arg
22
- ? '\'' + dir.arg.content.split(':')[ 0 ] + '\''
23
- : false
24
-
25
- return {
26
- props: [
27
- {
28
- type: 16,
29
- loc: {
30
- source: '',
31
- start: { line: 1, column: 1, offset: 0 },
32
- end: { line: 1, column: 1, offset: 0 }
33
- },
34
- key: {
35
- type: 4,
36
- loc: { source: '', start: { line: 1, column: 1, offset: 0 }, end: { line: 1, column: 1, offset: 0 } },
37
- content: 'class',
38
- isStatic: true,
39
- constType: 3
40
- },
41
- value: `${ dir.exp.content } && ${ dir.exp.content }.model === ${ name } ? '' : 'q-morph--invisible'`
42
- }
43
- ]
44
- }
45
- }