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.
Files changed (135) hide show
  1. package/dist/api/BottomSheet.json +5 -1
  2. package/dist/api/LoadingBar.json +1 -1
  3. package/dist/api/Notify.json +20 -20
  4. package/dist/api/QAjaxBar.json +23 -4
  5. package/dist/api/QCarouselSlide.json +2 -2
  6. package/dist/api/QChatMessage.json +1 -1
  7. package/dist/api/QImg.json +2 -2
  8. package/dist/api/QParallax.json +1 -1
  9. package/dist/api/QRadio.json +3 -1
  10. package/dist/api/QSelect.json +1 -1
  11. package/dist/api/QTimelineEntry.json +1 -1
  12. package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
  13. package/dist/icon-set/eva-icons.umd.prod.js +1 -1
  14. package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
  15. package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
  16. package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
  17. package/dist/icon-set/line-awesome.umd.prod.js +1 -1
  18. package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
  19. package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
  20. package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
  21. package/dist/icon-set/material-icons.umd.prod.js +1 -1
  22. package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
  23. package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
  24. package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
  25. package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
  26. package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
  27. package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
  28. package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
  29. package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
  30. package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
  31. package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
  32. package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
  33. package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
  34. package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
  35. package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
  36. package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
  37. package/dist/icon-set/svg-mdi-v4.umd.prod.js +1 -1
  38. package/dist/icon-set/svg-mdi-v5.umd.prod.js +1 -1
  39. package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
  40. package/dist/icon-set/svg-themify.umd.prod.js +1 -1
  41. package/dist/icon-set/themify.umd.prod.js +1 -1
  42. package/dist/lang/ar.umd.prod.js +1 -1
  43. package/dist/lang/az-Latn.umd.prod.js +1 -1
  44. package/dist/lang/bg.umd.prod.js +1 -1
  45. package/dist/lang/bn.umd.prod.js +1 -1
  46. package/dist/lang/ca.umd.prod.js +1 -1
  47. package/dist/lang/cs.umd.prod.js +1 -1
  48. package/dist/lang/da.umd.prod.js +1 -1
  49. package/dist/lang/de.umd.prod.js +1 -1
  50. package/dist/lang/el.umd.prod.js +1 -1
  51. package/dist/lang/en-GB.umd.prod.js +1 -1
  52. package/dist/lang/en-US.umd.prod.js +1 -1
  53. package/dist/lang/eo.umd.prod.js +1 -1
  54. package/dist/lang/es.umd.prod.js +1 -1
  55. package/dist/lang/et.umd.prod.js +1 -1
  56. package/dist/lang/fa-IR.umd.prod.js +1 -1
  57. package/dist/lang/fa.umd.prod.js +1 -1
  58. package/dist/lang/fi.umd.prod.js +1 -1
  59. package/dist/lang/fr.umd.prod.js +1 -1
  60. package/dist/lang/gn.umd.prod.js +1 -1
  61. package/dist/lang/he.umd.prod.js +1 -1
  62. package/dist/lang/hr.umd.prod.js +1 -1
  63. package/dist/lang/hu.umd.prod.js +1 -1
  64. package/dist/lang/id.umd.prod.js +1 -1
  65. package/dist/lang/is.umd.prod.js +1 -1
  66. package/dist/lang/it.umd.prod.js +1 -1
  67. package/dist/lang/ja.umd.prod.js +1 -1
  68. package/dist/lang/km.umd.prod.js +1 -1
  69. package/dist/lang/ko-KR.umd.prod.js +1 -1
  70. package/dist/lang/kur-CKB.umd.prod.js +1 -1
  71. package/dist/lang/lt.umd.prod.js +1 -1
  72. package/dist/lang/lu.umd.prod.js +1 -1
  73. package/dist/lang/lv.umd.prod.js +1 -1
  74. package/dist/lang/ml.umd.prod.js +1 -1
  75. package/dist/lang/ms.umd.prod.js +1 -1
  76. package/dist/lang/nb-NO.umd.prod.js +1 -1
  77. package/dist/lang/nl.umd.prod.js +1 -1
  78. package/dist/lang/pl.umd.prod.js +1 -1
  79. package/dist/lang/pt-BR.umd.prod.js +1 -1
  80. package/dist/lang/pt.umd.prod.js +1 -1
  81. package/dist/lang/ro.umd.prod.js +1 -1
  82. package/dist/lang/ru.umd.prod.js +1 -1
  83. package/dist/lang/sk.umd.prod.js +1 -1
  84. package/dist/lang/sl.umd.prod.js +1 -1
  85. package/dist/lang/sr-CYR.umd.prod.js +1 -1
  86. package/dist/lang/sr.umd.prod.js +1 -1
  87. package/dist/lang/sv.umd.prod.js +1 -1
  88. package/dist/lang/ta.umd.prod.js +1 -1
  89. package/dist/lang/th.umd.prod.js +1 -1
  90. package/dist/lang/tr.umd.prod.js +1 -1
  91. package/dist/lang/ug.umd.prod.js +1 -1
  92. package/dist/lang/uk.umd.prod.js +1 -1
  93. package/dist/lang/vi.umd.prod.js +1 -1
  94. package/dist/lang/zh-CN.umd.prod.js +1 -1
  95. package/dist/lang/zh-TW.umd.prod.js +1 -1
  96. package/dist/quasar.cjs.prod.js +2 -2
  97. package/dist/quasar.css +2 -1
  98. package/dist/quasar.esm.prod.js +2 -2
  99. package/dist/quasar.prod.css +1 -1
  100. package/dist/quasar.rtl.css +2 -1
  101. package/dist/quasar.rtl.prod.css +1 -1
  102. package/dist/quasar.sass +3 -2
  103. package/dist/quasar.umd.js +156 -81
  104. package/dist/quasar.umd.prod.js +2 -2
  105. package/dist/ssr-directives/Morph.js +1 -1
  106. package/dist/types/index.d.ts +24 -10
  107. package/dist/vetur/quasar-attributes.json +9 -5
  108. package/dist/vetur/quasar-tags.json +2 -1
  109. package/dist/web-types/web-types.json +22 -13
  110. package/package.json +1 -1
  111. package/src/components/ajax-bar/QAjaxBar.js +47 -26
  112. package/src/components/ajax-bar/QAjaxBar.json +22 -4
  113. package/src/components/breadcrumbs/QBreadcrumbs.js +3 -3
  114. package/src/components/breadcrumbs/QBreadcrumbsEl.js +2 -2
  115. package/src/components/btn/use-btn.js +4 -1
  116. package/src/components/btn-toggle/QBtnToggle.js +2 -0
  117. package/src/components/carousel/QCarouselSlide.json +2 -2
  118. package/src/components/chat/QChatMessage.json +1 -1
  119. package/src/components/icon/QIcon.js +36 -32
  120. package/src/components/icon/QIcon.sass +0 -1
  121. package/src/components/img/QImg.json +2 -2
  122. package/src/components/layout/QLayout.js +50 -1
  123. package/src/components/pagination/QPagination.js +4 -4
  124. package/src/components/parallax/QParallax.json +1 -1
  125. package/src/components/radio/QRadio.js +2 -6
  126. package/src/components/radio/QRadio.json +1 -1
  127. package/src/components/scroll-area/QScrollArea.sass +1 -0
  128. package/src/components/select/QSelect.json +1 -1
  129. package/src/components/timeline/QTimeline.sass +1 -2
  130. package/src/components/timeline/QTimelineEntry.json +1 -1
  131. package/src/css/core/visibility.sass +0 -1
  132. package/src/plugins/BottomSheet.json +7 -1
  133. package/src/plugins/LoadingBar.json +1 -1
  134. package/src/plugins/Notify.json +22 -22
  135. 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 + ' ' + classes.value,
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
- cls: classes.value,
98
+ viewBox,
100
99
  nodes: def.split('&&').map(path => {
101
100
  const [ d, style, transform ] = path.split('@@')
102
- return h('path', {
103
- style,
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: viewBox !== void 0 ? viewBox : '0 0 24 24'
119
+ viewBox
128
120
  }
129
121
  }
130
122
 
@@ -158,14 +150,14 @@ export default createComponent({
158
150
  }
159
151
 
160
152
  return {
161
- cls: cls + ' ' + classes.value,
153
+ cls,
162
154
  content
163
155
  }
164
156
  })
165
157
 
166
158
  return () => {
167
159
  const data = {
168
- class: type.value.cls,
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.src = type.value.src
180
- return h('img', data)
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.viewBox = type.value.viewBox
185
-
186
- return h('svg', data, hMergeSlot(slots.default, type.value.nodes))
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.viewBox = type.value.viewBox
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
- return h(
193
- 'svg',
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, [
@@ -10,7 +10,6 @@
10
10
  text-align: center
11
11
  position: relative
12
12
  box-sizing: content-box
13
-
14
13
  fill: currentColor // for svg paths
15
14
 
16
15
  &:before, &:after
@@ -11,7 +11,7 @@
11
11
  "desc": "Path to image",
12
12
  "transformAssetUrls": true,
13
13
  "examples": [
14
- "(statics folder) src=\"statics/img/something.png\"",
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
- "(statics folder) src=\"statics/img/some-placeholder.png\"",
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
- textColor: active ? props.textColor : void 0,
313
- label: props.min
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
- textColor: active ? props.textColor : void 0,
324
- label: props.max
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
- "(statics folder) src=\"statics/img/something.png\"",
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
- required: true
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,
@@ -13,7 +13,7 @@
13
13
  },
14
14
 
15
15
  "val": {
16
- "type": [ "Number", "String" ],
16
+ "type": [ "Number", "String", "null", "undefined" ],
17
17
  "required": true,
18
18
  "desc": "The actual value of the option with which model value is changed",
19
19
  "examples": [ "opt1", 50 ],
@@ -1,5 +1,6 @@
1
1
  .q-scrollarea
2
2
  position: relative
3
+ contain: strict
3
4
 
4
5
  &__bar,
5
6
  &__thumb
@@ -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
  },
@@ -20,7 +20,7 @@
20
20
  &__subtitle
21
21
  font-size: 12px
22
22
  margin-bottom: 8px
23
- opacity: .4
23
+ opacity: .6
24
24
  text-transform: uppercase
25
25
  letter-spacing: 1px
26
26
  font-weight: 700
@@ -240,4 +240,3 @@
240
240
 
241
241
  &__subtitle, &__content
242
242
  width: 50%
243
-
@@ -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
- "(statics folder) src=\"statics/img/my-bg.png\"",
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\""
@@ -160,4 +160,3 @@ body.desktop
160
160
  .q-focusable:focus, .q-manual-focusable--focused
161
161
  > .q-focus-helper
162
162
  opacity: .22
163
-
@@ -45,7 +45,7 @@
45
45
  "type": "String",
46
46
  "desc": "Path to an image for this action",
47
47
  "examples": [
48
- "(statics folder) statics/img/something.png",
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
  },
@@ -10,7 +10,7 @@
10
10
  "definition": {
11
11
  "...props": {
12
12
  "type": "Object",
13
- "desc": "QAjaxBar component props",
13
+ "desc": "QAjaxBar component props, EXCEPT for 'hijack-filter'",
14
14
  "__exemption": [ "examples" ]
15
15
  }
16
16
  }
@@ -45,9 +45,9 @@
45
45
 
46
46
  "avatar": {
47
47
  "type": "String",
48
- "desc": "URL to an avatar/image; Suggestion: use statics folder",
48
+ "desc": "URL to an avatar/image; Suggestion: use public folder",
49
49
  "examples": [
50
- "(statics folder) statics/img/something.png",
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: use statics folder",
207
+ "desc": "URL to an avatar/image; Suggestion: public folder",
208
208
  "examples": [
209
- "(statics folder) statics/img/something.png",
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
- ":content-style=\"{ backgroundColor: '#ff0000' }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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 statics folder",
390
+ "desc": "URL to an avatar/image; Suggestion: use public folder",
391
391
  "examples": [
392
- "(statics folder) statics/img/something.png",
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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 statics folder",
524
+ "desc": "URL to an avatar/image; Suggestion: use public folder",
525
525
  "examples": [
526
- "(statics folder) statics/img/something.png",
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
- ":content-style=\"{ backgroundColor: '#ff0000' }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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 statics folder",
704
+ "desc": "URL to an avatar/image; Suggestion: use public folder",
705
705
  "examples": [
706
- "(statics folder) statics/img/something.png",
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
- ":content-style=\"{ backgroundColor: '#ff0000' }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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
- ":content-class=\"{ 'my-special-class': <condition> }\""
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 (dialogRef.value !== null) {
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
  }