@ulu/frontend-vue 0.1.0-beta.2 → 0.1.0-beta.21
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 +113 -2
- package/dist/{breakpoints-ClT9bfZm.js → breakpoints-DOXmgVoG.js} +1 -1
- package/dist/frontend-vue.css +1 -1
- package/dist/frontend-vue.js +75 -73
- package/dist/index-BpmkfeZb.js +6671 -0
- package/lib/components/collapsible/UluAccordion.vue +1 -1
- package/lib/components/collapsible/UluModal.vue +4 -5
- package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
- package/lib/components/elements/UluAlert.vue +1 -2
- package/lib/components/elements/UluBadge.vue +27 -28
- package/lib/components/elements/UluBadgeStack.vue +8 -13
- package/lib/components/elements/UluButton.vue +2 -2
- package/lib/components/elements/UluButtonVerbose.vue +119 -0
- package/lib/components/elements/UluCard.vue +1 -1
- package/lib/components/elements/UluDefinitionList.vue +14 -17
- package/lib/components/elements/UluExternalLink.vue +22 -29
- package/lib/components/elements/UluIcon.vue +22 -17
- package/lib/components/elements/UluList.vue +53 -55
- package/lib/components/elements/UluSpokeSpinner.vue +12 -18
- package/lib/components/elements/UluTag.vue +35 -35
- package/lib/components/forms/UluCheckboxMenu.vue +32 -31
- package/lib/components/forms/UluFileDisplay.vue +40 -31
- package/lib/components/forms/UluFormFile.vue +22 -24
- package/lib/components/forms/UluFormMessage.vue +7 -10
- package/lib/components/forms/UluFormSelect.vue +16 -16
- package/lib/components/forms/UluFormText.vue +15 -15
- package/lib/components/forms/UluSearchForm.vue +8 -10
- package/lib/components/index.js +1 -1
- package/lib/components/layout/UluAdaptiveLayout.vue +3 -5
- package/lib/components/layout/UluTitleRail.vue +9 -5
- package/lib/components/layout/UluWhenBreakpoint.vue +71 -77
- package/lib/components/navigation/UluBreadcrumb.vue +1 -2
- package/lib/components/navigation/UluMenu.vue +3 -3
- package/lib/components/navigation/UluPager.vue +102 -0
- package/lib/components/systems/facets/ExampleFacetsWithPagination.vue +119 -0
- package/lib/components/systems/facets/UluFacetsFilters.vue +73 -0
- package/lib/components/systems/facets/UluFacetsList.vue +13 -14
- package/lib/components/systems/facets/UluFacetsResults.vue +57 -0
- package/lib/components/systems/facets/UluFacetsSearch.vue +26 -49
- package/lib/components/systems/facets/UluFacetsSidebarLayout.vue +31 -0
- package/lib/components/systems/facets/UluFacetsSort.vue +45 -0
- package/lib/components/systems/facets/_facets.scss +2 -3
- package/lib/components/systems/facets/_mock-data.js +40 -0
- package/lib/components/systems/facets/useFacets.js +221 -0
- package/lib/components/systems/index.js +10 -2
- package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +2 -1
- package/lib/components/systems/skeleton/UluShowSkeleton.vue +9 -8
- package/lib/components/systems/skeleton/UluSkeletonContent.vue +39 -43
- package/lib/components/systems/skeleton/UluSkeletonMedia.vue +4 -6
- package/lib/components/systems/skeleton/UluSkeletonText.vue +27 -0
- package/lib/components/systems/slider/UluImageSlideShow.vue +1 -1
- package/lib/components/systems/slider/UluSlideShow.vue +8 -3
- package/lib/components/systems/table-sticky/UluTableSticky.vue +8 -8
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +3 -3
- package/lib/composables/index.js +3 -1
- package/lib/composables/useDocumentTitle.js +47 -0
- package/lib/composables/usePageTitle.js +37 -0
- package/lib/composables/usePagination.js +122 -0
- package/lib/composables/useRequiredInject.js +26 -0
- package/lib/index.js +1 -1
- package/lib/meta.js +14 -0
- package/lib/plugins/core/index.js +91 -0
- package/lib/plugins/index.js +1 -0
- package/lib/plugins/toast/UluToast.vue +2 -2
- package/lib/utils/index.js +2 -0
- package/lib/utils/{vue-router.js → router.js} +106 -11
- package/package.json +37 -14
- package/types/components/index.d.ts +2 -0
- package/types/components/index.d.ts.map +1 -0
- package/types/components/systems/facets/_mock-data.d.ts +18 -0
- package/types/components/systems/facets/_mock-data.d.ts.map +1 -0
- package/types/components/systems/facets/useFacets.d.ts +39 -0
- package/types/components/systems/facets/useFacets.d.ts.map +1 -0
- package/types/components/systems/index.d.ts +2 -0
- package/types/components/systems/index.d.ts.map +1 -0
- package/types/components/systems/scroll-anchors/symbols.d.ts +7 -0
- package/types/components/systems/scroll-anchors/symbols.d.ts.map +1 -0
- package/types/composables/index.d.ts +7 -0
- package/types/composables/index.d.ts.map +1 -0
- package/types/composables/useBreakpointManager.d.ts +8 -0
- package/types/composables/useBreakpointManager.d.ts.map +1 -0
- package/types/composables/useDocumentTitle.d.ts +18 -0
- package/types/composables/useDocumentTitle.d.ts.map +1 -0
- package/types/composables/useIcon.d.ts +6 -0
- package/types/composables/useIcon.d.ts.map +1 -0
- package/types/composables/useModifiers.d.ts +69 -0
- package/types/composables/useModifiers.d.ts.map +1 -0
- package/types/composables/usePageTitle.d.ts +19 -0
- package/types/composables/usePageTitle.d.ts.map +1 -0
- package/types/composables/usePagination.d.ts +25 -0
- package/types/composables/usePagination.d.ts.map +1 -0
- package/types/composables/useRequiredInject.d.ts +8 -0
- package/types/composables/useRequiredInject.d.ts.map +1 -0
- package/types/composables/useWindowResize.d.ts +6 -0
- package/types/composables/useWindowResize.d.ts.map +1 -0
- package/types/index.d.ts +5 -0
- package/types/index.d.ts.map +1 -0
- package/types/meta.d.ts +10 -0
- package/types/meta.d.ts.map +1 -0
- package/types/plugins/breakpoints/index.d.ts +2 -0
- package/types/plugins/breakpoints/index.d.ts.map +1 -0
- package/types/plugins/core/index.d.ts +3 -0
- package/types/plugins/core/index.d.ts.map +1 -0
- package/types/plugins/index.d.ts +6 -0
- package/types/plugins/index.d.ts.map +1 -0
- package/types/plugins/modals/api.d.ts +34 -0
- package/types/plugins/modals/api.d.ts.map +1 -0
- package/types/plugins/modals/index.d.ts +28 -0
- package/types/plugins/modals/index.d.ts.map +1 -0
- package/types/plugins/modals/useModals.d.ts +2 -0
- package/types/plugins/modals/useModals.d.ts.map +1 -0
- package/types/plugins/popovers/defaults.d.ts +14 -0
- package/types/plugins/popovers/defaults.d.ts.map +1 -0
- package/types/plugins/popovers/directive.d.ts +8 -0
- package/types/plugins/popovers/directive.d.ts.map +1 -0
- package/types/plugins/popovers/index.d.ts +7 -0
- package/types/plugins/popovers/index.d.ts.map +1 -0
- package/types/plugins/popovers/manager.d.ts +52 -0
- package/types/plugins/popovers/manager.d.ts.map +1 -0
- package/types/plugins/popovers/useFollow.d.ts +31 -0
- package/types/plugins/popovers/useFollow.d.ts.map +1 -0
- package/types/plugins/popovers/utils.d.ts +2 -0
- package/types/plugins/popovers/utils.d.ts.map +1 -0
- package/types/plugins/toast/defaults.d.ts +15 -0
- package/types/plugins/toast/defaults.d.ts.map +1 -0
- package/types/plugins/toast/index.d.ts +5 -0
- package/types/plugins/toast/index.d.ts.map +1 -0
- package/types/plugins/toast/store.d.ts +22 -0
- package/types/plugins/toast/store.d.ts.map +1 -0
- package/types/plugins/toast/useToast.d.ts +2 -0
- package/types/plugins/toast/useToast.d.ts.map +1 -0
- package/types/utils/dom.d.ts +8 -0
- package/types/utils/dom.d.ts.map +1 -0
- package/types/utils/index.d.ts +3 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/placeholder.d.ts +8 -0
- package/types/utils/placeholder.d.ts.map +1 -0
- package/types/utils/router.d.ts +141 -0
- package/types/utils/router.d.ts.map +1 -0
- package/types/utils/vue-router.d.ts +122 -0
- package/types/utils/vue-router.d.ts.map +1 -0
- package/dist/frontend-vue.umd.cjs +0 -561
- package/dist/index-P5Rwl_Dl.js +0 -7263
- package/lib/components/forms/UluFormDropzone.vue +0 -62
- package/lib/components/systems/facets/UluFacets.vue +0 -380
- package/lib/components/systems/skeleton/UluSkeletonTextInline.vue +0 -9
- package/lib/settings.js +0 -119
- package/lib/utils/placeholder.js +0 -6
package/README.md
CHANGED
|
@@ -1,9 +1,120 @@
|
|
|
1
1
|
# @ulu/frontend-vue
|
|
2
2
|
|
|
3
|
-
Vue component library for [Ulu frontend](https://jscherbe.github.io/frontend/).
|
|
3
|
+
Vue component library for the [Ulu frontend](https://jscherbe.github.io/frontend/) ecosystem.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This library provides a set of reusable, themeable, and accessible Vue 3 components. It is designed to be modular, allowing you to import only the components and features you need, ensuring your application remains lightweight and performant.
|
|
6
|
+
|
|
7
|
+
- [Documentation / Demos](https://jscherbe.github.io/frontend-vue/)
|
|
6
8
|
- [Change Log](CHANGELOG.md)
|
|
9
|
+
- [Installation](#installation)
|
|
10
|
+
- [General Usage](#usage)
|
|
11
|
+
- [1. SCSS Setup](#1-scss-setup)
|
|
12
|
+
- [2. Plugin Registration](#2-plugin-registration)
|
|
13
|
+
- [Core Plugin (Required)](#core-plugin-required)
|
|
14
|
+
- [Optional Plugins](#optional-plugins)
|
|
15
|
+
- [3. Component Usage](#3-component-usage)
|
|
16
|
+
- [Resources](#resources)
|
|
17
|
+
- [Snippets](#snippets)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
Install the library and its required peer dependencies.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install @ulu/frontend-vue
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
Using the library involves three main steps: setting up the SCSS, registering the Vue plugins, and importing the components you need.
|
|
31
|
+
|
|
32
|
+
### 1. SCSS Setup
|
|
33
|
+
|
|
34
|
+
Import the main stylesheet into your project's primary SCSS file. This will bring in all the necessary styles for the components.
|
|
35
|
+
|
|
36
|
+
```scss
|
|
37
|
+
// Import Ulu Vue component styles
|
|
38
|
+
@use "@ulu/frontend-vue/scss" as ulu-vue;
|
|
39
|
+
|
|
40
|
+
// Configure
|
|
41
|
+
@include ulu-vue.plugin-toast-set((
|
|
42
|
+
"background-color" : gray
|
|
43
|
+
));
|
|
44
|
+
|
|
45
|
+
// Output (plugins/component) stylesheets that you use
|
|
46
|
+
@include ulu-vue.plugin-toast-styles();
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. Plugin Registration
|
|
50
|
+
|
|
51
|
+
This library uses a plugin-based system to configure core features and functionality. You'll need to register them in your main application entry point (e.g., `src/main.js`).
|
|
52
|
+
|
|
53
|
+
#### Core Plugin (Required)
|
|
54
|
+
|
|
55
|
+
The `corePlugin` is **required** to set up the library's foundational settings, such as the icon system, which is used by many components.
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
// src/main.js
|
|
59
|
+
import { createApp } from 'vue';
|
|
60
|
+
import App from './App.vue';
|
|
61
|
+
import router from './router'; // Your vue-router instance
|
|
62
|
+
|
|
63
|
+
import { corePlugin } from '@ulu/frontend-vue';
|
|
64
|
+
|
|
65
|
+
const app = createApp(App);
|
|
66
|
+
|
|
67
|
+
app.use(router);
|
|
68
|
+
|
|
69
|
+
// Register the core plugin
|
|
70
|
+
app.use(corePlugin, {
|
|
71
|
+
// Optional: You can override default settings here.
|
|
72
|
+
// For example, to use FontAwesome's static CSS classes instead of the Vue component:
|
|
73
|
+
// fontAwesomeStatic: true,
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
app.mount('#app');
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### Optional Plugins
|
|
80
|
+
|
|
81
|
+
Other plugins for features like responsive breakpoints, global modals, and toast notifications can be registered as needed.
|
|
82
|
+
|
|
83
|
+
```javascript
|
|
84
|
+
// src/main.js
|
|
85
|
+
import { breakpointsPlugin, modalsPlugin, toastPlugin } from '@ulu/frontend-vue';
|
|
86
|
+
|
|
87
|
+
// ...
|
|
88
|
+
app.use(breakpointsPlugin);
|
|
89
|
+
app.use(modalsPlugin, { /* your global modal configurations */ });
|
|
90
|
+
app.use(toastPlugin, { /* default toast options */ });
|
|
91
|
+
// ...
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### 3. Component Usage
|
|
95
|
+
|
|
96
|
+
Components are designed to be imported individually. This approach is highly recommended as it allows build tools like Vite or Webpack to **tree-shake** unused components, keeping your final application bundle as small as possible.
|
|
97
|
+
|
|
98
|
+
**Example:**
|
|
99
|
+
```vue
|
|
100
|
+
<script setup>
|
|
101
|
+
import { UluButton, UluAlert } from '@ulu/frontend-vue';
|
|
102
|
+
</script>
|
|
103
|
+
|
|
104
|
+
<template>
|
|
105
|
+
<UluAlert type="success" title="Success!">
|
|
106
|
+
This is an alert component.
|
|
107
|
+
</UluAlert>
|
|
108
|
+
|
|
109
|
+
<UluButton primary to="/">Click Me</UluButton>
|
|
110
|
+
</template>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
7
115
|
|
|
116
|
+
# Resources
|
|
8
117
|
|
|
118
|
+
## Snippets
|
|
9
119
|
|
|
120
|
+
- Snippets for vscode are available in the repo's at [/resources/vscode/](https://github.com/Jscherbe/frontend-vue/tree/main/resources/vscode)
|
package/dist/frontend-vue.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.UluFacetsResults__list{list-style:none;padding:0}.UluFacetsFade-enter-active,.UluFacetsFade-leave-active{transition:opacity .25s ease}.UluFacetsFade-enter-from,.UluFacetsFade-leave-to{opacity:0}.UluFacetsSidebarLayout__body{display:grid;grid-template-columns:1fr;gap:2rem}@media (min-width: 768px){.UluFacetsSidebarLayout__body{grid-template-columns:250px 1fr}}.scroll-anchors__rail{border-left:3px solid rgb(220,220,220);padding-left:1rem}.scroll-anchors__indicator{position:absolute;top:0;left:0;width:3px;background-color:#000}.scroll-anchors__indicator--can-transition{transition-property:height,transform;transition-timing-function:ease-in-out;transition-duration:.25s}
|
package/dist/frontend-vue.js
CHANGED
|
@@ -1,82 +1,84 @@
|
|
|
1
|
-
import { _ as l,
|
|
1
|
+
import { _ as l, N as u, s as e, a1 as o, t as U, u as t, Q as i, v as n, w as r, x as c, y as S, G as d, U as p, W as b, O as k, z as g, h as m, X as F, Y as T, A as h, a5 as P, aa as A, a6 as w, a7 as M, a8 as y, a9 as L, H as v, I as x, J as B, K as R, L as C, B as f, aj as D, C as I, D as N, R as E, S as j, j as q, T as G, k as V, Z as z, $ as O, a2 as W, a3 as H, a0 as J, ab as K, ac as Q, ad as X, ae as Y, M as Z, af as _, ag as $, ah as aa, ai as sa, V as la, ak as ua, al as ea, E as oa, m as Ua, n as ta, o as ia, p as na, q as ra, am as ca, an as Sa, ao as da, F as pa, P as ba, f as ka, b as ga, d as ma, c as Fa, e as Ta, at as ha, a4 as Pa, ap as Aa, aq as wa, au as Ma, as as ya, ar as La, i as va } from "./index-BpmkfeZb.js";
|
|
2
2
|
export {
|
|
3
3
|
l as UluAccordion,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
u as UluAdaptiveLayout,
|
|
5
|
+
e as UluAlert,
|
|
6
6
|
o as UluAnimateNumber,
|
|
7
7
|
U as UluBadge,
|
|
8
8
|
t as UluBadgeStack,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
r as
|
|
9
|
+
i as UluBreadcrumb,
|
|
10
|
+
n as UluButton,
|
|
11
|
+
r as UluButtonVerbose,
|
|
12
|
+
c as UluCallout,
|
|
12
13
|
S as UluCard,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
d as UluCheckboxMenu,
|
|
15
|
+
p as UluCollapsibleRegion,
|
|
16
|
+
b as UluCondText,
|
|
17
|
+
k as UluDataGrid,
|
|
18
|
+
g as UluDefinitionList,
|
|
18
19
|
m as UluDropdown,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
F as UluEmpty,
|
|
21
|
+
T as UluEmptyView,
|
|
21
22
|
h as UluExternalLink,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
y as
|
|
27
|
-
|
|
28
|
-
v as
|
|
29
|
-
x as
|
|
30
|
-
B as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
f as
|
|
34
|
-
|
|
35
|
-
I as
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
G as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
O as
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
ea as
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
na as
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Sa as
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
ma as
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
ha as
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
ya as
|
|
81
|
-
|
|
23
|
+
P as UluFacetsFilters,
|
|
24
|
+
A as UluFacetsList,
|
|
25
|
+
w as UluFacetsResults,
|
|
26
|
+
M as UluFacetsSearch,
|
|
27
|
+
y as UluFacetsSidebarLayout,
|
|
28
|
+
L as UluFacetsSort,
|
|
29
|
+
v as UluFileDisplay,
|
|
30
|
+
x as UluFormFile,
|
|
31
|
+
B as UluFormMessage,
|
|
32
|
+
R as UluFormSelect,
|
|
33
|
+
C as UluFormText,
|
|
34
|
+
f as UluIcon,
|
|
35
|
+
D as UluImageSlideShow,
|
|
36
|
+
I as UluList,
|
|
37
|
+
N as UluMain,
|
|
38
|
+
E as UluMenu,
|
|
39
|
+
j as UluMenuStack,
|
|
40
|
+
q as UluModal,
|
|
41
|
+
G as UluNavStrip,
|
|
42
|
+
V as UluOverflowPopover,
|
|
43
|
+
z as UluPlaceholderImage,
|
|
44
|
+
O as UluPlaceholderText,
|
|
45
|
+
W as UluProgressBar,
|
|
46
|
+
H as UluProgressDonut,
|
|
47
|
+
J as UluRouteAnnouncer,
|
|
48
|
+
K as UluScrollAnchors,
|
|
49
|
+
Q as UluScrollAnchorsNav,
|
|
50
|
+
X as UluScrollAnchorsNavAnimated,
|
|
51
|
+
Y as UluScrollAnchorsSection,
|
|
52
|
+
Z as UluSearchForm,
|
|
53
|
+
_ as UluShowSkeleton,
|
|
54
|
+
$ as UluSkeletonContent,
|
|
55
|
+
aa as UluSkeletonMedia,
|
|
56
|
+
sa as UluSkeletonText,
|
|
57
|
+
la as UluSkipLink,
|
|
58
|
+
ua as UluSlideShow,
|
|
59
|
+
ea as UluSlideShowSlide,
|
|
60
|
+
oa as UluSpokeSpinner,
|
|
61
|
+
Ua as UluTab,
|
|
62
|
+
ta as UluTabGroup,
|
|
63
|
+
ia as UluTabList,
|
|
64
|
+
na as UluTabPanel,
|
|
65
|
+
ra as UluTabPanels,
|
|
66
|
+
ca as UluTableSticky,
|
|
67
|
+
Sa as UluTableStickyRows,
|
|
68
|
+
da as UluTableStickyTable,
|
|
69
|
+
pa as UluTag,
|
|
70
|
+
ba as UluTitleRail,
|
|
71
|
+
ka as breakpointsPlugin,
|
|
72
|
+
ga as corePlugin,
|
|
73
|
+
ma as modalsPlugin,
|
|
74
|
+
Fa as popoversPlugin,
|
|
75
|
+
Ta as toastPlugin,
|
|
76
|
+
ha as useBreakpointManager,
|
|
77
|
+
Pa as useFacets,
|
|
78
|
+
Aa as useIcon,
|
|
79
|
+
wa as useModifiers,
|
|
80
|
+
Ma as usePagination,
|
|
81
|
+
ya as useRequiredInject,
|
|
82
|
+
La as useWindowResize,
|
|
83
|
+
va as utils
|
|
82
84
|
};
|