quasar 2.4.3 → 2.4.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.
- package/dist/api/BottomSheet.json +5 -1
- package/dist/api/LoadingBar.json +1 -1
- package/dist/api/Notify.json +20 -20
- package/dist/api/QAjaxBar.json +23 -4
- package/dist/api/QCarouselSlide.json +2 -2
- package/dist/api/QChatMessage.json +1 -1
- package/dist/api/QImg.json +2 -2
- package/dist/api/QParallax.json +1 -1
- package/dist/api/QRadio.json +3 -1
- package/dist/api/QSelect.json +1 -1
- package/dist/api/QTimelineEntry.json +1 -1
- 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/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 +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- 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/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/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/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 +1 -1
- 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 -1
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +2 -1
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +3 -2
- package/dist/quasar.umd.js +156 -81
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/ssr-directives/Morph.js +1 -1
- package/dist/types/index.d.ts +24 -10
- package/dist/vetur/quasar-attributes.json +9 -5
- package/dist/vetur/quasar-tags.json +2 -1
- package/dist/web-types/web-types.json +22 -13
- package/package.json +1 -1
- package/src/components/ajax-bar/QAjaxBar.js +47 -26
- package/src/components/ajax-bar/QAjaxBar.json +22 -4
- package/src/components/breadcrumbs/QBreadcrumbs.js +3 -3
- package/src/components/breadcrumbs/QBreadcrumbsEl.js +2 -2
- package/src/components/btn/use-btn.js +4 -1
- package/src/components/btn-toggle/QBtnToggle.js +2 -0
- package/src/components/carousel/QCarouselSlide.json +2 -2
- package/src/components/chat/QChatMessage.json +1 -1
- package/src/components/icon/QIcon.js +36 -32
- package/src/components/icon/QIcon.sass +0 -1
- package/src/components/img/QImg.json +2 -2
- package/src/components/layout/QLayout.js +50 -1
- package/src/components/pagination/QPagination.js +4 -4
- package/src/components/parallax/QParallax.json +1 -1
- package/src/components/radio/QRadio.js +2 -6
- package/src/components/radio/QRadio.json +1 -1
- package/src/components/scroll-area/QScrollArea.sass +1 -0
- package/src/components/select/QSelect.json +1 -1
- package/src/components/timeline/QTimeline.sass +1 -2
- package/src/components/timeline/QTimelineEntry.json +1 -1
- package/src/css/core/visibility.sass +0 -1
- package/src/plugins/BottomSheet.json +7 -1
- package/src/plugins/LoadingBar.json +1 -1
- package/src/plugins/Notify.json +22 -22
- package/src/utils/private/global-dialog.js +4 -4
|
@@ -5,6 +5,8 @@ import useSize, { useSizeProps } from '../../composables/private/use-size.js'
|
|
|
5
5
|
import { createComponent } from '../../utils/private/create.js'
|
|
6
6
|
import { hSlot, hMergeSlot } from '../../utils/private/render.js'
|
|
7
7
|
|
|
8
|
+
const defaultViewBox = '0 0 24 24'
|
|
9
|
+
|
|
8
10
|
const sameFn = i => i
|
|
9
11
|
const ionFn = i => `ionicons ${ i }`
|
|
10
12
|
|
|
@@ -58,7 +60,7 @@ export default createComponent({
|
|
|
58
60
|
|
|
59
61
|
const classes = computed(() =>
|
|
60
62
|
'q-icon'
|
|
61
|
-
+ (props.left === true ? ' on-left' : '')
|
|
63
|
+
+ (props.left === true ? ' on-left' : '') // TODO Qv3: drop this
|
|
62
64
|
+ (props.right === true ? ' on-right' : '')
|
|
63
65
|
+ (props.color !== void 0 ? ` text-${ props.color }` : '')
|
|
64
66
|
)
|
|
@@ -68,10 +70,7 @@ export default createComponent({
|
|
|
68
70
|
let icon = props.name
|
|
69
71
|
|
|
70
72
|
if (!icon) {
|
|
71
|
-
return {
|
|
72
|
-
none: true,
|
|
73
|
-
cls: classes.value
|
|
74
|
-
}
|
|
73
|
+
return { none: true }
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
if ($q.iconMapFn !== null) {
|
|
@@ -82,7 +81,7 @@ export default createComponent({
|
|
|
82
81
|
}
|
|
83
82
|
else {
|
|
84
83
|
return {
|
|
85
|
-
cls: res.cls
|
|
84
|
+
cls: res.cls,
|
|
86
85
|
content: res.content !== void 0
|
|
87
86
|
? res.content
|
|
88
87
|
: ' '
|
|
@@ -92,39 +91,32 @@ export default createComponent({
|
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
if (mRE.test(icon) === true) {
|
|
95
|
-
const [ def, viewBox ] = icon.split('|')
|
|
94
|
+
const [ def, viewBox = defaultViewBox ] = icon.split('|')
|
|
96
95
|
|
|
97
96
|
return {
|
|
98
97
|
svg: true,
|
|
99
|
-
|
|
98
|
+
viewBox,
|
|
100
99
|
nodes: def.split('&&').map(path => {
|
|
101
100
|
const [ d, style, transform ] = path.split('@@')
|
|
102
|
-
return h('path', {
|
|
103
|
-
|
|
104
|
-
d,
|
|
105
|
-
transform
|
|
106
|
-
})
|
|
107
|
-
}),
|
|
108
|
-
viewBox: viewBox !== void 0 ? viewBox : '0 0 24 24'
|
|
101
|
+
return h('path', { style, d, transform })
|
|
102
|
+
})
|
|
109
103
|
}
|
|
110
104
|
}
|
|
111
105
|
|
|
112
106
|
if (imgRE.test(icon) === true) {
|
|
113
107
|
return {
|
|
114
108
|
img: true,
|
|
115
|
-
cls: classes.value,
|
|
116
109
|
src: icon.substring(4)
|
|
117
110
|
}
|
|
118
111
|
}
|
|
119
112
|
|
|
120
113
|
if (svgUseRE.test(icon) === true) {
|
|
121
|
-
const [ def, viewBox ] = icon.split('|')
|
|
114
|
+
const [ def, viewBox = defaultViewBox ] = icon.split('|')
|
|
122
115
|
|
|
123
116
|
return {
|
|
124
117
|
svguse: true,
|
|
125
|
-
cls: classes.value,
|
|
126
118
|
src: def.substring(7),
|
|
127
|
-
viewBox
|
|
119
|
+
viewBox
|
|
128
120
|
}
|
|
129
121
|
}
|
|
130
122
|
|
|
@@ -158,14 +150,14 @@ export default createComponent({
|
|
|
158
150
|
}
|
|
159
151
|
|
|
160
152
|
return {
|
|
161
|
-
cls
|
|
153
|
+
cls,
|
|
162
154
|
content
|
|
163
155
|
}
|
|
164
156
|
})
|
|
165
157
|
|
|
166
158
|
return () => {
|
|
167
159
|
const data = {
|
|
168
|
-
class:
|
|
160
|
+
class: classes.value,
|
|
169
161
|
style: sizeStyle.value,
|
|
170
162
|
'aria-hidden': 'true',
|
|
171
163
|
role: 'presentation'
|
|
@@ -176,24 +168,36 @@ export default createComponent({
|
|
|
176
168
|
}
|
|
177
169
|
|
|
178
170
|
if (type.value.img === true) {
|
|
179
|
-
data.
|
|
180
|
-
|
|
171
|
+
return h('div', data, hMergeSlot(slots.default, [
|
|
172
|
+
h('img', {
|
|
173
|
+
class: type.value.cls,
|
|
174
|
+
src: type.value.src
|
|
175
|
+
})
|
|
176
|
+
]))
|
|
181
177
|
}
|
|
182
178
|
|
|
183
179
|
if (type.value.svg === true) {
|
|
184
|
-
data.
|
|
185
|
-
|
|
186
|
-
|
|
180
|
+
return h('div', data, hMergeSlot(slots.default, [
|
|
181
|
+
h('svg', {
|
|
182
|
+
class: type.value.cls,
|
|
183
|
+
viewBox: type.value.viewBox
|
|
184
|
+
}, type.value.nodes)
|
|
185
|
+
]))
|
|
187
186
|
}
|
|
188
187
|
|
|
189
188
|
if (type.value.svguse === true) {
|
|
190
|
-
data.
|
|
189
|
+
return h('div', data, hMergeSlot(slots.default, [
|
|
190
|
+
h('svg', {
|
|
191
|
+
class: type.value.cls,
|
|
192
|
+
viewBox: type.value.viewBox
|
|
193
|
+
}, [
|
|
194
|
+
h('use', { 'xlink:href': type.value.src })
|
|
195
|
+
])
|
|
196
|
+
]))
|
|
197
|
+
}
|
|
191
198
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
data,
|
|
195
|
-
hMergeSlot(slots.default, [ h('use', { 'xlink:href': type.value.src }) ])
|
|
196
|
-
)
|
|
199
|
+
if (type.value.cls !== void 0) {
|
|
200
|
+
data.class += ' ' + type.value.cls
|
|
197
201
|
}
|
|
198
202
|
|
|
199
203
|
return h(props.tag, data, hMergeSlot(slots.default, [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"desc": "Path to image",
|
|
12
12
|
"transformAssetUrls": true,
|
|
13
13
|
"examples": [
|
|
14
|
-
"(
|
|
14
|
+
"(public folder) src=\"img/something.png\"",
|
|
15
15
|
"(assets folder) src=\"~assets/my-img.gif\"",
|
|
16
16
|
"(relative path format) :src=\"require('./my_img.jpg')\"",
|
|
17
17
|
"(URL) src=\"https://placeimg.com/500/300/nature\""
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"desc": "While waiting for your image to load, you can use a placeholder image",
|
|
45
45
|
"transformAssetUrls": true,
|
|
46
46
|
"examples": [
|
|
47
|
-
"(
|
|
47
|
+
"(public folder) src=\"img/some-placeholder.png\"",
|
|
48
48
|
"(assets folder) src=\"~assets/my-placeholder.gif\"",
|
|
49
49
|
"(relative path format) :src=\"require('./placeholder.jpg')\"",
|
|
50
50
|
"(URL) src=\"https://placeimg.com/500/300/nature\""
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ref, reactive, computed, provide, getCurrentInstance } from 'vue'
|
|
1
|
+
import { h, ref, reactive, computed, watch, provide, onUnmounted, getCurrentInstance } from 'vue'
|
|
2
2
|
|
|
3
3
|
import { isRuntimeSsrPreHydration } from '../../plugins/Platform.js'
|
|
4
4
|
|
|
@@ -173,6 +173,55 @@ export default createComponent({
|
|
|
173
173
|
|
|
174
174
|
provide(layoutKey, $layout)
|
|
175
175
|
|
|
176
|
+
// prevent scrollbar flicker while resizing window height
|
|
177
|
+
// if no page scrollbar is already present
|
|
178
|
+
if (__QUASAR_SSR_SERVER__ !== true && getScrollbarWidth() > 0) {
|
|
179
|
+
let timer = null
|
|
180
|
+
const el = document.body
|
|
181
|
+
|
|
182
|
+
function restoreScrollbar () {
|
|
183
|
+
timer = null
|
|
184
|
+
el.classList.remove('hide-scrollbar')
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function hideScrollbar () {
|
|
188
|
+
if (timer === null) {
|
|
189
|
+
// if it has no scrollbar then there's nothing to do
|
|
190
|
+
|
|
191
|
+
if (el.scrollHeight > $q.screen.height) {
|
|
192
|
+
return
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
el.classList.add('hide-scrollbar')
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
clearTimeout(timer)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
timer = setTimeout(restoreScrollbar, 300)
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function updateScrollEvent (action) {
|
|
205
|
+
if (timer !== null && action === 'remove') {
|
|
206
|
+
clearTimeout(timer)
|
|
207
|
+
restoreScrollbar()
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
window[ `${ action }EventListener` ]('resize', hideScrollbar)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
watch(
|
|
214
|
+
() => (props.container !== true ? 'add' : 'remove'),
|
|
215
|
+
updateScrollEvent
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
props.container !== true && updateScrollEvent('add')
|
|
219
|
+
|
|
220
|
+
onUnmounted(() => {
|
|
221
|
+
updateScrollEvent('remove')
|
|
222
|
+
})
|
|
223
|
+
}
|
|
224
|
+
|
|
176
225
|
return () => {
|
|
177
226
|
const content = hMergeSlot(slots.default, [
|
|
178
227
|
h(QScrollObserver, { onScroll: onPageScroll }),
|
|
@@ -309,8 +309,8 @@ export default createComponent({
|
|
|
309
309
|
style,
|
|
310
310
|
disable: props.disable,
|
|
311
311
|
flat: !active,
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
label: props.min,
|
|
313
|
+
...(active ? activeBtnProps.value : {})
|
|
314
314
|
}, props.min))
|
|
315
315
|
}
|
|
316
316
|
if (boundaryEnd) {
|
|
@@ -320,8 +320,8 @@ export default createComponent({
|
|
|
320
320
|
style,
|
|
321
321
|
disable: props.disable,
|
|
322
322
|
flat: !active,
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
label: props.max,
|
|
324
|
+
...(active ? activeBtnProps.value : {})
|
|
325
325
|
}, props.max))
|
|
326
326
|
}
|
|
327
327
|
if (ellipsesStart) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"desc": "Path to image (unless a 'media' slot is used)",
|
|
10
10
|
"transformAssetUrls": true,
|
|
11
11
|
"examples": [
|
|
12
|
-
"(
|
|
12
|
+
"(public folder) src=\"img/something.png\"",
|
|
13
13
|
"(assets folder) src=\"~assets/my-img.png\"",
|
|
14
14
|
"(relative path format) :src=\"require('./my_img.jpg')\"",
|
|
15
15
|
"(URL) src=\"https://some-site.net/some-img.jpg\""
|
|
@@ -33,12 +33,8 @@ export default createComponent({
|
|
|
33
33
|
...useSizeProps,
|
|
34
34
|
...useFormProps,
|
|
35
35
|
|
|
36
|
-
modelValue: {
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
val: {
|
|
40
|
-
required: true
|
|
41
|
-
},
|
|
36
|
+
modelValue: { required: true },
|
|
37
|
+
val: { required: true },
|
|
42
38
|
|
|
43
39
|
label: String,
|
|
44
40
|
leftLabel: Boolean,
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"desc": "Style definitions to be attributed to the popup content",
|
|
229
229
|
"examples": [
|
|
230
230
|
"background-color: #ff0000",
|
|
231
|
-
":content-style=\"{ backgroundColor: '#ff0000' }\""
|
|
231
|
+
":popup-content-style=\"{ backgroundColor: '#ff0000' }\""
|
|
232
232
|
],
|
|
233
233
|
"category": "style"
|
|
234
234
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"desc": "URL to the avatar image; Icon takes precedence if used, so it replaces avatar",
|
|
35
35
|
"transformAssetUrls": true,
|
|
36
36
|
"examples": [
|
|
37
|
-
"(
|
|
37
|
+
"(public folder) src=\"img/my-bg.png\"",
|
|
38
38
|
"(assets folder) src=\"~assets/my-img.png\"",
|
|
39
39
|
"(relative path format) :src=\"require('./my_img.jpg')\"",
|
|
40
40
|
"(URL) src=\"https://placeimg.com/500/300/nature\""
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"type": "String",
|
|
46
46
|
"desc": "Path to an image for this action",
|
|
47
47
|
"examples": [
|
|
48
|
-
"(
|
|
48
|
+
"(public folder) img/something.png",
|
|
49
49
|
"(relative path format) :src=\"require('./my_img.jpg')\"",
|
|
50
50
|
"(URL) https://some-site.net/some-img.gif"
|
|
51
51
|
]
|
|
@@ -60,6 +60,12 @@
|
|
|
60
60
|
"type": [ "String", "Number" ],
|
|
61
61
|
"desc": "Action label",
|
|
62
62
|
"examples": [ "Facebook" ]
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
"...": {
|
|
66
|
+
"type": "Any",
|
|
67
|
+
"desc": "Any other custom props",
|
|
68
|
+
"__exemption": [ "examples" ]
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
71
|
},
|
package/src/plugins/Notify.json
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
|
|
46
46
|
"avatar": {
|
|
47
47
|
"type": "String",
|
|
48
|
-
"desc": "URL to an avatar/image; Suggestion: use
|
|
48
|
+
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
49
49
|
"examples": [
|
|
50
|
-
"(
|
|
50
|
+
"(public folder) img/something.png",
|
|
51
51
|
"(relative path format) require('./my_img.jpg')",
|
|
52
52
|
"(URL) https://some-site.net/some-img.gif"
|
|
53
53
|
]
|
|
@@ -204,9 +204,9 @@
|
|
|
204
204
|
|
|
205
205
|
"avatar": {
|
|
206
206
|
"type": "String",
|
|
207
|
-
"desc": "URL to an avatar/image; Suggestion:
|
|
207
|
+
"desc": "URL to an avatar/image; Suggestion: public folder",
|
|
208
208
|
"examples": [
|
|
209
|
-
"(
|
|
209
|
+
"(public folder) img/something.png",
|
|
210
210
|
"(relative path format) require('./my_img.jpg')",
|
|
211
211
|
"(URL) https://some-site.net/some-img.gif"
|
|
212
212
|
]
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"desc": "Style definitions to be attributed to the badge",
|
|
259
259
|
"examples": [
|
|
260
260
|
"background-color: #ff0000",
|
|
261
|
-
"
|
|
261
|
+
"{ backgroundColor: '#ff0000' }"
|
|
262
262
|
]
|
|
263
263
|
},
|
|
264
264
|
"badgeClass": {
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"desc": "Class definitions to be attributed to the badge",
|
|
267
267
|
"examples": [
|
|
268
268
|
"my-special-class",
|
|
269
|
-
"
|
|
269
|
+
"{ 'my-special-class': <condition> }"
|
|
270
270
|
]
|
|
271
271
|
},
|
|
272
272
|
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"desc": "Class definitions to be attributed to the progress bar",
|
|
280
280
|
"examples": [
|
|
281
281
|
"my-special-class",
|
|
282
|
-
"
|
|
282
|
+
"{ 'my-special-class': <condition> }"
|
|
283
283
|
]
|
|
284
284
|
},
|
|
285
285
|
|
|
@@ -387,9 +387,9 @@
|
|
|
387
387
|
|
|
388
388
|
"avatar": {
|
|
389
389
|
"type": "String",
|
|
390
|
-
"desc": "URL to an avatar/image; Suggestion: use
|
|
390
|
+
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
391
391
|
"examples": [
|
|
392
|
-
"(
|
|
392
|
+
"(public folder) img/something.png",
|
|
393
393
|
"(relative path format) require('./my_img.jpg')",
|
|
394
394
|
"(URL) https://some-site.net/some-img.gif"
|
|
395
395
|
]
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
"desc": "Class definitions to be attributed to the progress bar",
|
|
411
411
|
"examples": [
|
|
412
412
|
"my-special-class",
|
|
413
|
-
"
|
|
413
|
+
"{ 'my-special-class': <condition> }"
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
416
|
|
|
@@ -521,13 +521,13 @@
|
|
|
521
521
|
|
|
522
522
|
"avatar": {
|
|
523
523
|
"type": "String",
|
|
524
|
-
"desc": "URL to an avatar/image; Suggestion: use
|
|
524
|
+
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
525
525
|
"examples": [
|
|
526
|
-
"(
|
|
526
|
+
"(public folder) img/something.png",
|
|
527
527
|
"(relative path format) require('./my_img.jpg')",
|
|
528
528
|
"(URL) https://some-site.net/some-img.gif"
|
|
529
529
|
]
|
|
530
|
-
|
|
530
|
+
},
|
|
531
531
|
|
|
532
532
|
"spinner": {
|
|
533
533
|
"type": [ "Boolean", "Component" ],
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"desc": "Style definitions to be attributed to the badge",
|
|
571
571
|
"examples": [
|
|
572
572
|
"background-color: #ff0000",
|
|
573
|
-
"
|
|
573
|
+
"{ backgroundColor: '#ff0000' }"
|
|
574
574
|
]
|
|
575
575
|
},
|
|
576
576
|
"badgeClass": {
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"desc": "Class definitions to be attributed to the badge",
|
|
579
579
|
"examples": [
|
|
580
580
|
"my-special-class",
|
|
581
|
-
"
|
|
581
|
+
"{ 'my-special-class': <condition> }"
|
|
582
582
|
]
|
|
583
583
|
},
|
|
584
584
|
|
|
@@ -591,7 +591,7 @@
|
|
|
591
591
|
"desc": "Class definitions to be attributed to the progress bar",
|
|
592
592
|
"examples": [
|
|
593
593
|
"my-special-class",
|
|
594
|
-
"
|
|
594
|
+
"{ 'my-special-class': <condition> }"
|
|
595
595
|
]
|
|
596
596
|
},
|
|
597
597
|
|
|
@@ -701,13 +701,13 @@
|
|
|
701
701
|
|
|
702
702
|
"avatar": {
|
|
703
703
|
"type": "String",
|
|
704
|
-
"desc": "URL to an avatar/image; Suggestion: use
|
|
704
|
+
"desc": "URL to an avatar/image; Suggestion: use public folder",
|
|
705
705
|
"examples": [
|
|
706
|
-
"(
|
|
706
|
+
"(public folder) img/something.png",
|
|
707
707
|
"(relative path format) require('./my_img.jpg')",
|
|
708
708
|
"(URL) https://some-site.net/some-img.gif"
|
|
709
709
|
]
|
|
710
|
-
|
|
710
|
+
},
|
|
711
711
|
|
|
712
712
|
"spinner": {
|
|
713
713
|
"type": [ "Boolean", "Component" ],
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
"desc": "Style definitions to be attributed to the badge",
|
|
751
751
|
"examples": [
|
|
752
752
|
"background-color: #ff0000",
|
|
753
|
-
"
|
|
753
|
+
"{ backgroundColor: '#ff0000' }"
|
|
754
754
|
]
|
|
755
755
|
},
|
|
756
756
|
"badgeClass": {
|
|
@@ -758,7 +758,7 @@
|
|
|
758
758
|
"desc": "Class definitions to be attributed to the badge",
|
|
759
759
|
"examples": [
|
|
760
760
|
"my-special-class",
|
|
761
|
-
"
|
|
761
|
+
"{ 'my-special-class': <condition> }"
|
|
762
762
|
]
|
|
763
763
|
},
|
|
764
764
|
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
"desc": "Class definitions to be attributed to the progress bar",
|
|
772
772
|
"examples": [
|
|
773
773
|
"my-special-class",
|
|
774
|
-
"
|
|
774
|
+
"{ 'my-special-class': <condition> }"
|
|
775
775
|
]
|
|
776
776
|
},
|
|
777
777
|
|
|
@@ -147,14 +147,14 @@ export default function (DefaultComponent, supportsCustomComponent, parentApp) {
|
|
|
147
147
|
applyState('show')
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
if (
|
|
151
|
-
show()
|
|
152
|
-
}
|
|
153
|
-
else if (typeof DialogComponent.__asyncLoader === 'function') {
|
|
150
|
+
if (typeof DialogComponent.__asyncLoader === 'function') {
|
|
154
151
|
DialogComponent.__asyncLoader().then(() => {
|
|
155
152
|
nextTick(show)
|
|
156
153
|
})
|
|
157
154
|
}
|
|
155
|
+
else {
|
|
156
|
+
nextTick(show)
|
|
157
|
+
}
|
|
158
158
|
|
|
159
159
|
return API
|
|
160
160
|
}
|