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.
- package/README.md +1 -1
- package/dist/api/Dialog.json +9 -2
- package/dist/api/QKnob.json +5 -0
- package/dist/api/QSelect.json +8 -9
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +6 -0
- package/dist/icon-set/fontawesome-v6.umd.prod.js +6 -0
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +2 -2
- package/dist/icon-set/svg-eva-icons.umd.prod.js +2 -2
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +2 -2
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +6 -0
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +2 -2
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +2 -2
- package/dist/icon-set/svg-themify.umd.prod.js +2 -2
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +6 -0
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/kz.umd.prod.js +6 -0
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +2 -2
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +2 -4
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +2 -4
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +2 -1
- package/dist/quasar.umd.js +277 -235
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/types/extras/icon-set.d.ts +3 -0
- package/dist/types/globals.d.ts +2 -2
- package/dist/types/index.d.ts +11 -3
- package/dist/vetur/quasar-attributes.json +4 -0
- package/dist/vetur/quasar-tags.json +1 -0
- package/dist/web-types/web-types.json +11 -1
- package/icon-set/fontawesome-v6-pro.js +128 -0
- package/icon-set/fontawesome-v6.js +128 -0
- package/icon-set/svg-fontawesome-v6.js +198 -0
- package/lang/eu.js +91 -0
- package/lang/index.json +8 -0
- package/lang/kz.js +95 -0
- package/lang/ug.js +49 -50
- package/package.json +1 -1
- package/src/components/btn/QBtn.js +16 -14
- package/src/components/btn/use-btn.js +7 -7
- package/src/components/date/QDate.js +2 -2
- package/src/components/dialog/QDialog.js +11 -11
- package/src/components/dialog-bottom-sheet/BottomSheet.js +11 -11
- package/src/components/dialog-plugin/DialogPlugin.js +6 -6
- package/src/components/editor/QEditor.js +10 -10
- package/src/components/editor/editor-utils.js +2 -2
- package/src/components/file/QFile.js +2 -1
- package/src/components/icon/QIcon.js +2 -1
- package/src/components/infinite-scroll/QInfiniteScroll.js +3 -1
- package/src/components/inner-loading/QInnerLoading.js +7 -7
- package/src/components/input/QInput.js +4 -1
- package/src/components/knob/QKnob.js +5 -2
- package/src/components/knob/QKnob.json +6 -0
- package/src/components/linear-progress/QLinearProgress.sass +1 -0
- package/src/components/menu/QMenu.js +13 -13
- package/src/components/page-scroller/QPageScroller.js +4 -4
- package/src/components/pull-to-refresh/QPullToRefresh.js +5 -5
- package/src/components/select/QSelect.js +13 -7
- package/src/components/select/QSelect.json +4 -7
- package/src/components/slider/use-slider.js +4 -4
- package/src/components/stepper/QStep.js +6 -6
- package/src/components/table/table-column-selection.js +6 -6
- package/src/components/table/table-sort.js +2 -2
- package/src/components/tabs/QTabs.js +4 -4
- package/src/components/tooltip/QTooltip.js +12 -12
- package/src/components/uploader/uploader-core.js +11 -10
- package/src/components/virtual-scroll/QVirtualScroll.js +3 -3
- package/src/components/virtual-scroll/use-virtual-scroll.js +20 -20
- package/src/composables/private/use-field.js +25 -17
- package/src/composables/private/use-file-dom-props.js +5 -5
- package/src/composables/private/use-file.js +15 -12
- package/src/composables/private/use-router-link.js +2 -2
- package/src/directives/Morph.js +12 -3
- package/src/install-quasar.js +3 -3
- package/src/plugins/AddressbarColor.js +7 -7
- package/src/plugins/Cookies.js +5 -1
- package/src/plugins/Dialog.json +3 -2
- package/src/plugins/Loading.js +3 -3
- package/src/plugins/LoadingBar.js +12 -6
- package/src/plugins/Notify.js +4 -4
- package/src/utils/create-meta-mixin.js +4 -4
- package/src/utils/create-uploader-component.js +2 -2
- package/src/utils/event.js +3 -3
- package/src/utils/extend.js +3 -3
- package/src/utils/morph.js +2 -2
- package/src/utils/private/is.js +4 -2
- package/src/utils/private/noop-ssr-directive-transform.js +1 -1
- package/wrappers/index.js +33 -5
- package/wrappers/index.mjs +63 -0
- package/dist/ssr-directives/Morph.js +0 -55
- package/dist/ssr-directives/index.js +0 -14
- package/src/directives/Morph.ssr.js +0 -45
package/src/install-quasar.js
CHANGED
|
@@ -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 {
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
54
|
+
const val = hexColor || getCssVar('primary')
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
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 }) {
|
package/src/plugins/Cookies.js
CHANGED
|
@@ -26,7 +26,11 @@ function read (string) {
|
|
|
26
26
|
string = decode(string.replace(/\+/g, ' '))
|
|
27
27
|
|
|
28
28
|
try {
|
|
29
|
-
|
|
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
|
|
package/src/plugins/Dialog.json
CHANGED
|
@@ -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": {
|
package/src/plugins/Loading.js
CHANGED
|
@@ -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 {
|
|
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 =
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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 (
|
|
69
|
+
if (isObject(opts) === true) {
|
|
64
70
|
Object.assign(props.value, opts)
|
|
65
71
|
}
|
|
66
72
|
}
|
package/src/plugins/Notify.js
CHANGED
|
@@ -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 {
|
|
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 (
|
|
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
|
-
|
|
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 &&
|
|
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
|
-
|
|
9
|
-
|
|
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 {
|
|
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:
|
|
17
|
+
emits: isObject(emits) === true
|
|
18
18
|
? { ...coreEmitsObject, ...emits }
|
|
19
19
|
: [ ...coreEmits, ...emits ],
|
|
20
20
|
|
package/src/utils/event.js
CHANGED
|
@@ -117,9 +117,9 @@ export function preventDraggable (el, status) {
|
|
|
117
117
|
|
|
118
118
|
const fn = status === true
|
|
119
119
|
? el => {
|
|
120
|
-
|
|
121
|
-
|
|
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)
|
package/src/utils/extend.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 && (
|
|
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 &&
|
|
42
|
+
clone = src && isObject(src) === true ? src : {}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
target[ name ] = extend(deep, clone, copy)
|
package/src/utils/morph.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 (
|
|
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
|
}
|
package/src/utils/private/is.js
CHANGED
|
@@ -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
|
-
|
|
124
|
-
|
|
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 () => ({
|
|
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
|
-
}
|