@bagelink/vue 1.15.360 → 1.15.364
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 +16 -46
- package/dist/admin.css +1 -0
- package/dist/core.css +3 -0
- package/dist/form-flow/schema-fields.d.ts.map +1 -1
- package/dist/form-flow/structure.d.ts +2 -0
- package/dist/form-flow/structure.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -0
- package/dist/index.mjs +1 -1
- package/dist/ploni.css +1 -0
- package/dist/style.css +5 -2
- package/package.json +7 -5
- package/src/components/MapEmbed/leaflet.css +672 -661
- package/src/components/lightbox/Lightbox.vue +2 -2
- package/src/form-flow/schema-fields.ts +6 -2
- package/src/form-flow/structure.ts +2 -0
- package/src/styles/bagel.css +5 -156
- package/vite.config.ts +39 -3
- package/dist/style.cjs +0 -1
- package/dist/style.d.ts +0 -1
- package/dist/style.d.ts.map +0 -1
- package/dist/style.mjs +0 -0
- package/src/style.ts +0 -1
package/README.md
CHANGED
|
@@ -1,64 +1,34 @@
|
|
|
1
1
|
# @bagelink/vue
|
|
2
2
|
|
|
3
|
-
Features:
|
|
4
|
-
|
|
5
|
-
- Build with [unbuild](https://github.com/unjs/unbuild)
|
|
6
|
-
- File-to-file transpilation via [mkdist](https://github.com/unjs/mkdist)
|
|
7
|
-
- Playground with [vite](https://vitejs.dev/)
|
|
8
|
-
|
|
9
3
|
## Usage
|
|
10
4
|
|
|
11
|
-
|
|
5
|
+
Import exactly one Bagel stylesheet from your application entry:
|
|
12
6
|
|
|
13
7
|
```ts
|
|
14
8
|
// src/main.ts
|
|
15
|
-
import { createApp } from 'vue'
|
|
16
|
-
import { BagelVue } from '@
|
|
9
|
+
import { createApp } from 'vue'
|
|
10
|
+
import { BagelVue } from '@bagelink/vue'
|
|
17
11
|
|
|
18
|
-
|
|
12
|
+
// Public websites and Blox sites: complete UI styles with system fonts.
|
|
13
|
+
import '@bagelink/vue/styles/core.css'
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
host: '/api',
|
|
22
|
-
fileBaseUrl: import.meta.env.VITE_BAGEL_FILE_BASE_URL,
|
|
23
|
-
onError: (err: any) => {
|
|
24
|
-
// handle error
|
|
25
|
-
// example:
|
|
26
|
-
// useToast().error(`${$t('anErrorOccurred')}: ${err?.response?.data?.detail || err.message}`);
|
|
27
|
-
},
|
|
28
|
-
};
|
|
15
|
+
import App from './App.vue'
|
|
29
16
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
app.mount('#app');
|
|
17
|
+
createApp(App)
|
|
18
|
+
.use(BagelVue)
|
|
19
|
+
.mount('#app')
|
|
34
20
|
```
|
|
35
21
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
```vue
|
|
39
|
-
<script setup lang="ts">
|
|
40
|
-
import { useBagel } from '@bagel/vue';
|
|
22
|
+
For Bagel admin applications, replace the core import with:
|
|
41
23
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
<!-- OR -->
|
|
46
|
-
<script lang="ts">
|
|
47
|
-
export default defineComponent({
|
|
48
|
-
onMounted() {
|
|
49
|
-
console.log(this.$bagel.host)
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<!-- OR -->
|
|
55
|
-
<template>
|
|
56
|
-
<div>
|
|
57
|
-
{{ $bagel.host }}
|
|
58
|
-
</div>
|
|
59
|
-
</template>
|
|
24
|
+
```ts
|
|
25
|
+
import '@bagelink/vue/styles/admin.css'
|
|
60
26
|
```
|
|
61
27
|
|
|
28
|
+
`@bagelink/vue/style.css` remains an alias for the admin stylesheet for
|
|
29
|
+
backward compatibility. Do not import internal paths such as
|
|
30
|
+
`@bagelink/vue/dist/style.css`, and do not import more than one aggregate
|
|
31
|
+
stylesheet.
|
|
62
32
|
|
|
63
33
|
## License
|
|
64
34
|
|
package/dist/admin.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap";@font-face{font-family:Ploni;font-style:normal;font-weight:200;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultralight-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-light-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-regular-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-medium-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:600;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-demibold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-bold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:800;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-ultrabold-aaa.eot)format("eot")}@font-face{font-family:Ploni;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.woff2)format("woff2"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.woff)format("woff"),url(https://bagel.sfo2.cdn.digitaloceanspaces.com/Fonts/ploni/ploni-black-aaa.eot)format("eot")}:root{--bgl-font:"Lexend", "Ploni", sans-serif}
|