@dnax/ui 0.0.29 → 0.0.31
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/components/QAutocomplete.vue +3 -5
- package/components/QDatePicker.vue +3 -5
- package/components/QSelect.vue +3 -5
- package/components/QVideo.vue +17 -1
- package/package.json +1 -1
- package/shims.d.ts +6 -0
|
@@ -447,13 +447,11 @@ watch(open, (v) => {
|
|
|
447
447
|
aria-hidden="true"
|
|
448
448
|
/>
|
|
449
449
|
</div>
|
|
450
|
-
<div
|
|
451
|
-
<div class="q-field__error">
|
|
450
|
+
<div class="q-field__bottom">
|
|
451
|
+
<div v-if="error" class="q-field__error">
|
|
452
452
|
<slot name="error">{{ errorMessage }}</slot>
|
|
453
453
|
</div>
|
|
454
|
-
|
|
455
|
-
<div v-else-if="hint || $slots.hint" class="q-field__bottom">
|
|
456
|
-
<div class="q-field__hint">
|
|
454
|
+
<div v-else-if="hint || $slots.hint" class="q-field__hint">
|
|
457
455
|
<slot name="hint">{{ hint }}</slot>
|
|
458
456
|
</div>
|
|
459
457
|
</div>
|
|
@@ -195,11 +195,9 @@ onBeforeUnmount(() => {
|
|
|
195
195
|
</button>
|
|
196
196
|
<ChevronDown class="q-select__arrow" :class="{ 'q-select__arrow--rotated': open }" aria-hidden="true" />
|
|
197
197
|
</div>
|
|
198
|
-
<div
|
|
199
|
-
<div class="q-field__error">{{ errorMessage }}</div>
|
|
200
|
-
|
|
201
|
-
<div v-else-if="hint" class="q-field__bottom">
|
|
202
|
-
<div class="q-field__hint">{{ hint }}</div>
|
|
198
|
+
<div class="q-field__bottom">
|
|
199
|
+
<div v-if="error" class="q-field__error">{{ errorMessage }}</div>
|
|
200
|
+
<div v-else-if="hint" class="q-field__hint">{{ hint }}</div>
|
|
203
201
|
</div>
|
|
204
202
|
|
|
205
203
|
<Teleport to="body">
|
package/components/QSelect.vue
CHANGED
|
@@ -588,13 +588,11 @@ const sheetClass = computed(() => [`q-select__sheet--${props.mode}`, modeOptions
|
|
|
588
588
|
<slot name="append" />
|
|
589
589
|
</div>
|
|
590
590
|
|
|
591
|
-
<div
|
|
592
|
-
<div class="q-field__error">
|
|
591
|
+
<div class="q-field__bottom">
|
|
592
|
+
<div v-if="error" class="q-field__error">
|
|
593
593
|
<slot name="error">{{ errorMessage }}</slot>
|
|
594
594
|
</div>
|
|
595
|
-
|
|
596
|
-
<div v-else-if="hint || $slots.hint" class="q-field__bottom">
|
|
597
|
-
<div class="q-field__hint">
|
|
595
|
+
<div v-else-if="hint || $slots.hint" class="q-field__hint">
|
|
598
596
|
<slot name="hint">{{ hint }}</slot>
|
|
599
597
|
</div>
|
|
600
598
|
</div>
|
package/components/QVideo.vue
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
// Events : @ready (media element), @play, @pause, @ended, @timeupdate, @loadedmetadata, @volumechange.
|
|
9
9
|
// Méthodes exposées : play / pause / togglePlay / seek / getCurrentTime / getDuration / setVolume / setMuted / isPlaying.
|
|
10
10
|
import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue"
|
|
11
|
-
|
|
11
|
+
// Importé en texte brut + injecté côté client : passé dans le pipeline CSS normal, ce
|
|
12
|
+
// fichier tiers (build Tailwind de @videojs/html) contient du `@layer`/`@scope` natif qui
|
|
13
|
+
// casse le build des apps consommatrices en Tailwind v3 (PostCSS exige le `@tailwind`
|
|
14
|
+
// correspondant). L'injection runtime l'exclut de PostCSS sans perdre les styles globaux.
|
|
15
|
+
import skinCss from "@videojs/html/video/skin.css?raw"
|
|
12
16
|
|
|
13
17
|
interface Props {
|
|
14
18
|
/** URL de la vidéo (mp4, webm, ogg, HLS .m3u8, YouTube…) */
|
|
@@ -125,7 +129,19 @@ const onPlaceholderClick = () => {
|
|
|
125
129
|
play()
|
|
126
130
|
}
|
|
127
131
|
|
|
132
|
+
let skinInjected = false
|
|
133
|
+
const injectSkin = () => {
|
|
134
|
+
if (skinInjected || typeof document === "undefined") return
|
|
135
|
+
skinInjected = true
|
|
136
|
+
if (document.getElementById("q-video-skin")) return
|
|
137
|
+
const style = document.createElement("style")
|
|
138
|
+
style.id = "q-video-skin"
|
|
139
|
+
style.textContent = skinCss
|
|
140
|
+
document.head.appendChild(style)
|
|
141
|
+
}
|
|
142
|
+
|
|
128
143
|
onMounted(async () => {
|
|
144
|
+
injectSkin()
|
|
129
145
|
// Charge le framework HTML (custom elements) — uniquement côté client
|
|
130
146
|
await Promise.all([
|
|
131
147
|
import("@videojs/html/video/player" as string),
|
package/package.json
CHANGED