@signal24/vue-foundation 4.29.0 → 4.29.2
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/src/components/vf-toast.vue.d.ts +1 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vue-foundation.css +1 -1
- package/dist/vue-foundation.es.js +592 -662
- package/package.json +1 -1
- package/src/components/vf-smart-select.vue +1 -1
- package/src/components/vf-toast.vue +10 -2
- package/vite.config.ts +1 -1
package/package.json
CHANGED
|
@@ -126,7 +126,7 @@ const loadedOptions = computed(() => props.options ?? remoteOptions.value ?? [])
|
|
|
126
126
|
|
|
127
127
|
const effectivePrependOptions = computed(() => props.prependOptions ?? []);
|
|
128
128
|
const effectiveAppendOptions = computed(() => props.appendOptions ?? []);
|
|
129
|
-
const effectiveDisabled = computed(() => !!props.disabled || (!isLoaded.value &&
|
|
129
|
+
const effectiveDisabled = computed(() => !!props.disabled || (!isLoaded.value && !props.loadOptions));
|
|
130
130
|
const effectiveLoadingText = computed(() => props.loadingText || '...');
|
|
131
131
|
const effectivePlaceholder = computed(() => {
|
|
132
132
|
if (!isLoaded.value) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="vf-toast" :class="className" @click.stop="handleClick">
|
|
2
|
+
<div class="vf-toast" :class="[className, { top: position === 'top', bottom: position !== 'top' }]" @click.stop="handleClick">
|
|
3
3
|
<div class="content">
|
|
4
4
|
<div class="message">{{ message }}</div>
|
|
5
5
|
<div v-if="!disableClose" class="close">x</div>
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { onMounted, ref } from 'vue';
|
|
15
15
|
|
|
16
16
|
export interface IToastOptions {
|
|
17
|
+
position?: 'top' | 'bottom';
|
|
17
18
|
message: string;
|
|
18
19
|
className?: string;
|
|
19
20
|
durationSecs?: number | null;
|
|
@@ -51,11 +52,18 @@ if (props.durationSecs !== null) {
|
|
|
51
52
|
<style lang="scss">
|
|
52
53
|
.vf-toast {
|
|
53
54
|
position: absolute;
|
|
54
|
-
bottom: 50px;
|
|
55
55
|
left: 50%;
|
|
56
56
|
transform: translateX(-50%);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
.vf-toast.bottom {
|
|
60
|
+
bottom: 50px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.vf-toast.top {
|
|
64
|
+
top: 50px;
|
|
65
|
+
}
|
|
66
|
+
|
|
59
67
|
.vf-toast .content {
|
|
60
68
|
display: flex;
|
|
61
69
|
align-items: center;
|
package/vite.config.ts
CHANGED
|
@@ -30,7 +30,7 @@ export default defineConfig({
|
|
|
30
30
|
input: {
|
|
31
31
|
main: path.resolve(__dirname, 'src/index.ts')
|
|
32
32
|
},
|
|
33
|
-
external: ['date-fns', 'lodash', 'vue', '@vue/shared', '@signal24/openapi-client-codegen
|
|
33
|
+
external: ['date-fns', 'lodash', 'vue', '@vue/shared', '@signal24/openapi-client-codegen'],
|
|
34
34
|
output: {
|
|
35
35
|
assetFileNames: assetInfo => {
|
|
36
36
|
if (assetInfo.name === 'main.css') return 'vue-foundation.css';
|