@ulu/frontend-vue 0.5.15 → 0.6.0
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/components/elements/UluButton.vue.d.ts +4 -0
- package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButton.vue.js +31 -16
- package/dist/components/elements/UluIcon.vue.js +21 -36
- package/dist/components/forms/UluFormCheckbox.vue.d.ts +3 -19
- package/dist/components/forms/UluFormCheckbox.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormCheckbox.vue.js +10 -31
- package/dist/components/forms/UluFormFile.vue.d.ts +3 -25
- package/dist/components/forms/UluFormFile.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormFile.vue.js +11 -49
- package/dist/components/forms/UluFormItem.vue.d.ts +23 -8
- package/dist/components/forms/UluFormItem.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormItem.vue.js +126 -29
- package/dist/components/forms/UluFormLabel.vue.d.ts +24 -0
- package/dist/components/forms/UluFormLabel.vue.d.ts.map +1 -0
- package/dist/components/forms/UluFormLabel.vue.js +34 -0
- package/dist/components/forms/UluFormRadio.vue.d.ts +7 -25
- package/dist/components/forms/UluFormRadio.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormRadio.vue.js +11 -37
- package/dist/components/forms/UluFormSelect.vue.d.ts +7 -23
- package/dist/components/forms/UluFormSelect.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormSelect.vue.js +24 -43
- package/dist/components/forms/UluFormText.vue.d.ts +5 -23
- package/dist/components/forms/UluFormText.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormText.vue.js +10 -38
- package/dist/components/forms/UluFormTextarea.vue.d.ts +5 -23
- package/dist/components/forms/UluFormTextarea.vue.d.ts.map +1 -1
- package/dist/components/forms/UluFormTextarea.vue.js +10 -37
- package/dist/components/forms/UluSearchForm.vue.d.ts +24 -3
- package/dist/components/forms/UluSearchForm.vue.d.ts.map +1 -1
- package/dist/components/forms/UluSearchForm.vue.js +67 -22
- package/dist/components/index.d.ts +1 -0
- package/dist/components/systems/facets/UluFacetsFilterSelects.vue.d.ts.map +1 -1
- package/dist/components/systems/facets/UluFacetsFilterSelects.vue.js +21 -22
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.js +18 -10
- package/dist/components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.d.ts +8 -2
- package/dist/components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.js +92 -47
- package/dist/components/systems/scroll-anchors/useScrollAnchors.d.ts.map +1 -1
- package/dist/components/systems/scroll-anchors/useScrollAnchors.js +113 -70
- package/dist/components/utils/UluAction.vue.d.ts +2 -0
- package/dist/components/utils/UluAction.vue.d.ts.map +1 -1
- package/dist/components/utils/UluAction.vue.js +9 -5
- package/dist/components/visualizations/UluProgressBar.vue.d.ts +2 -2
- package/dist/index.js +130 -128
- package/dist/plugins/core/index.d.ts.map +1 -1
- package/dist/plugins/core/index.js +17 -16
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -1
- package/dist/utils/props.js +8 -2
- package/lib/components/elements/UluButton.vue +18 -3
- package/lib/components/elements/UluIcon.vue +8 -26
- package/lib/components/forms/UluForm.vue +25 -25
- package/lib/components/forms/UluFormCheckbox.vue +11 -25
- package/lib/components/forms/UluFormFieldset.vue +6 -6
- package/lib/components/forms/UluFormFile.vue +10 -40
- package/lib/components/forms/UluFormItem.vue +150 -39
- package/lib/components/forms/UluFormLabel.vue +30 -0
- package/lib/components/forms/UluFormRadio.vue +15 -34
- package/lib/components/forms/UluFormSelect.vue +19 -24
- package/lib/components/forms/UluFormText.vue +7 -25
- package/lib/components/forms/UluFormTextarea.vue +7 -25
- package/lib/components/forms/UluSearchForm.vue +67 -19
- package/lib/components/forms/UluSelectableMenu.vue +62 -62
- package/lib/components/index.js +1 -0
- package/lib/components/systems/facets/UluFacetsFilterSelects.vue +11 -14
- package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +9 -1
- package/lib/components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue +95 -16
- package/lib/components/systems/scroll-anchors/_scroll-anchors-nav-animated.scss +12 -1
- package/lib/components/systems/scroll-anchors/useScrollAnchors.js +195 -54
- package/lib/components/utils/UluAction.vue +6 -2
- package/lib/plugins/core/index.js +2 -1
- package/lib/utils/props.js +14 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as r, createBlock as i, openBlock as s, resolveDynamicComponent as l, normalizeProps as c, guardReactiveProps as f, withCtx as
|
|
1
|
+
import { computed as r, createBlock as i, openBlock as s, resolveDynamicComponent as l, normalizeProps as c, guardReactiveProps as f, withCtx as p, renderSlot as u } from "vue";
|
|
2
2
|
import { RouterLink as d } from "vue-router";
|
|
3
3
|
const h = {
|
|
4
4
|
__name: "UluAction",
|
|
@@ -39,16 +39,20 @@ const h = {
|
|
|
39
39
|
* Allows passing 'click' as a prop to signify this is an action (used in UluMenu data objects).
|
|
40
40
|
* Note: The actual @click listener should be attached via fallthrough attrs, this is just for logic routing.
|
|
41
41
|
*/
|
|
42
|
-
click: Function
|
|
42
|
+
click: Function,
|
|
43
|
+
/**
|
|
44
|
+
* Button type (e.g. 'submit', 'reset', 'button'). Defaults to 'button' to prevent accidental form submissions.
|
|
45
|
+
*/
|
|
46
|
+
type: String
|
|
43
47
|
},
|
|
44
48
|
setup(o) {
|
|
45
49
|
const t = o, n = r(() => t.element ? t.element : t.to || t.path ? d : t.href ? "a" : "button"), a = r(() => {
|
|
46
50
|
const e = {};
|
|
47
|
-
return t.to || t.path ? (e.to = t.to || t.path, t.activeClass && (e.activeClass = t.activeClass), t.exactActiveClass && (e.exactActiveClass = t.exactActiveClass)) : t.href ? (e.href = t.href, t.target && (e.target = t.target), t.download && (e.download = typeof t.download == "string" ? t.download : "")) : (!t.element || t.element === "button") && (e.type = "button"), e;
|
|
51
|
+
return t.to || t.path ? (e.to = t.to || t.path, t.activeClass && (e.activeClass = t.activeClass), t.exactActiveClass && (e.exactActiveClass = t.exactActiveClass)) : t.href ? (e.href = t.href, t.target && (e.target = t.target), t.download && (e.download = typeof t.download == "string" ? t.download : "")) : (!t.element || t.element === "button") && (e.type = t.type || "button"), e;
|
|
48
52
|
});
|
|
49
53
|
return (e, m) => (s(), i(l(n.value), c(f(a.value)), {
|
|
50
|
-
default:
|
|
51
|
-
|
|
54
|
+
default: p(() => [
|
|
55
|
+
u(e.$slots, "default")
|
|
52
56
|
]),
|
|
53
57
|
_: 3
|
|
54
58
|
}, 16));
|
|
@@ -7,8 +7,8 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
7
7
|
classes: Record<string, any>;
|
|
8
8
|
danger: boolean;
|
|
9
9
|
small: boolean;
|
|
10
|
-
labelHidden: boolean;
|
|
11
10
|
warning: boolean;
|
|
11
|
+
labelHidden: boolean;
|
|
12
12
|
amount: number;
|
|
13
13
|
labelElement: string;
|
|
14
14
|
total: number;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
|
26
26
|
readonly classes?: Record<string, any> | undefined;
|
|
27
27
|
readonly danger?: boolean | undefined;
|
|
28
28
|
readonly small?: boolean | undefined;
|
|
29
|
-
readonly labelHidden?: boolean | undefined;
|
|
30
29
|
readonly warning?: boolean | undefined;
|
|
30
|
+
readonly labelHidden?: boolean | undefined;
|
|
31
31
|
readonly amount?: number | undefined;
|
|
32
32
|
readonly labelElement?: string | undefined;
|
|
33
33
|
readonly total?: number | undefined;
|
package/dist/index.js
CHANGED
|
@@ -53,108 +53,109 @@ import { default as Xe } from "./components/forms/UluFormActions.vue.js";
|
|
|
53
53
|
import { default as Ze } from "./components/forms/UluFormCheckbox.vue.js";
|
|
54
54
|
import { default as $e } from "./components/forms/UluFormFieldset.vue.js";
|
|
55
55
|
import { default as oo } from "./components/forms/UluFormItem.vue.js";
|
|
56
|
-
import { default as to } from "./components/forms/
|
|
57
|
-
import { default as lo } from "./components/forms/
|
|
58
|
-
import { default as fo } from "./components/forms/
|
|
59
|
-
import { default as mo } from "./components/forms/
|
|
60
|
-
import { default as xo } from "./components/
|
|
61
|
-
import { default as io } from "./components/layout/
|
|
62
|
-
import { default as co } from "./components/layout/
|
|
63
|
-
import { default as Fo } from "./components/layout/
|
|
64
|
-
import { default as bo } from "./components/
|
|
65
|
-
import { default as Ao } from "./components/navigation/
|
|
66
|
-
import { default as ko } from "./components/navigation/
|
|
67
|
-
import { default as Lo } from "./components/navigation/
|
|
68
|
-
import { default as Io } from "./components/navigation/
|
|
69
|
-
import { default as yo } from "./components/
|
|
70
|
-
import { default as Mo } from "./components/utils/
|
|
71
|
-
import { default as Bo } from "./components/utils/
|
|
72
|
-
import { default as No } from "./components/utils/
|
|
73
|
-
import { default as Go } from "./components/utils/
|
|
74
|
-
import { default as qo } from "./components/utils/
|
|
75
|
-
import { default as Oo } from "./components/utils/
|
|
76
|
-
import { default as jo } from "./components/
|
|
77
|
-
import { default as Jo } from "./components/visualizations/
|
|
78
|
-
import { default as Qo } from "./components/visualizations/
|
|
79
|
-
import { default as Yo } from "./components/
|
|
80
|
-
import { default as _o } from "./components/systems/facets/
|
|
81
|
-
import { default as er } from "./components/systems/facets/
|
|
82
|
-
import { default as rr } from "./components/systems/facets/
|
|
83
|
-
import { default as ar } from "./components/systems/facets/
|
|
84
|
-
import { default as ur } from "./components/systems/facets/
|
|
85
|
-
import { default as sr } from "./components/systems/facets/
|
|
86
|
-
import { default as pr } from "./components/systems/facets/
|
|
87
|
-
import { default as xr } from "./components/systems/facets/
|
|
88
|
-
import { default as ir } from "./components/systems/facets/
|
|
89
|
-
import { default as cr } from "./components/systems/facets/
|
|
90
|
-
import { default as Fr } from "./components/systems/
|
|
91
|
-
import { default as br } from "./components/systems/scroll-anchors/
|
|
92
|
-
import { default as Ar } from "./components/systems/scroll-anchors/
|
|
93
|
-
import { default as kr } from "./components/systems/scroll-anchors/
|
|
94
|
-
import { default as Lr } from "./components/systems/scroll-anchors/
|
|
95
|
-
import { default as Ir } from "./components/systems/
|
|
96
|
-
import { default as yr } from "./components/systems/skeleton/
|
|
97
|
-
import { default as Mr } from "./components/systems/skeleton/
|
|
98
|
-
import { default as Br } from "./components/systems/skeleton/
|
|
99
|
-
import { default as Nr } from "./components/systems/
|
|
100
|
-
import { default as Gr } from "./components/systems/table-sticky/
|
|
101
|
-
import { default as qr } from "./components/systems/table-sticky/
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import { default as Jr } from "./components/
|
|
105
|
-
import { default as Qr } from "./components/
|
|
106
|
-
import { default as Yr } from "./components/utils/
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
56
|
+
import { default as to } from "./components/forms/UluFormLabel.vue.js";
|
|
57
|
+
import { default as lo } from "./components/forms/UluFormItemsInline.vue.js";
|
|
58
|
+
import { default as fo } from "./components/forms/UluFormRadio.vue.js";
|
|
59
|
+
import { default as mo } from "./components/forms/UluFormRequiredChar.vue.js";
|
|
60
|
+
import { default as xo } from "./components/forms/UluFormTextarea.vue.js";
|
|
61
|
+
import { default as io } from "./components/layout/UluAdaptiveLayout.vue.js";
|
|
62
|
+
import { default as co } from "./components/layout/UluDataGrid.vue.js";
|
|
63
|
+
import { default as Fo } from "./components/layout/UluTitleRail.vue.js";
|
|
64
|
+
import { default as bo } from "./components/layout/UluWhenBreakpoint.vue.js";
|
|
65
|
+
import { default as Ao } from "./components/navigation/UluBreadcrumb.vue.js";
|
|
66
|
+
import { default as ko } from "./components/navigation/UluMenu.vue.js";
|
|
67
|
+
import { default as Lo } from "./components/navigation/UluMenuStack.vue.js";
|
|
68
|
+
import { default as Io } from "./components/navigation/UluNavStrip.vue.js";
|
|
69
|
+
import { default as yo } from "./components/navigation/UluPager.vue.js";
|
|
70
|
+
import { default as Mo } from "./components/utils/UluAction.vue.js";
|
|
71
|
+
import { default as Bo } from "./components/utils/UluConditionalText.vue.js";
|
|
72
|
+
import { default as No } from "./components/utils/UluConditionalWrapper.vue.js";
|
|
73
|
+
import { default as Go } from "./components/utils/UluPlaceholderImage.vue.js";
|
|
74
|
+
import { default as qo } from "./components/utils/UluPlaceholderText.vue.js";
|
|
75
|
+
import { default as Oo } from "./components/utils/UluRouteAnnouncer.vue.js";
|
|
76
|
+
import { default as jo } from "./components/utils/UluSanityRichText.vue.js";
|
|
77
|
+
import { default as Jo } from "./components/visualizations/UluAnimateNumber.vue.js";
|
|
78
|
+
import { default as Qo } from "./components/visualizations/UluProgressBar.vue.js";
|
|
79
|
+
import { default as Yo } from "./components/visualizations/UluProgressCircle.vue.js";
|
|
80
|
+
import { default as _o } from "./components/systems/facets/UluFacetsActiveFilters.vue.js";
|
|
81
|
+
import { default as er } from "./components/systems/facets/UluFacetsFilterLists.vue.js";
|
|
82
|
+
import { default as rr } from "./components/systems/facets/UluFacetsFilterAccordions.vue.js";
|
|
83
|
+
import { default as ar } from "./components/systems/facets/UluFacetsFilterPopovers.vue.js";
|
|
84
|
+
import { default as ur } from "./components/systems/facets/UluFacetsFilterSelects.vue.js";
|
|
85
|
+
import { default as sr } from "./components/systems/facets/UluFacetsHeaderLayout.vue.js";
|
|
86
|
+
import { default as pr } from "./components/systems/facets/UluFacetsResults.vue.js";
|
|
87
|
+
import { default as xr } from "./components/systems/facets/UluFacetsSearch.vue.js";
|
|
88
|
+
import { default as ir } from "./components/systems/facets/UluFacetsSidebarLayout.vue.js";
|
|
89
|
+
import { default as cr } from "./components/systems/facets/UluFacetsSort.vue.js";
|
|
90
|
+
import { default as Fr } from "./components/systems/facets/UluFacetsList.vue.js";
|
|
91
|
+
import { default as br } from "./components/systems/scroll-anchors/UluScrollAnchors.vue.js";
|
|
92
|
+
import { default as Ar } from "./components/systems/scroll-anchors/UluScrollAnchorsNav.vue.js";
|
|
93
|
+
import { default as kr } from "./components/systems/scroll-anchors/UluScrollAnchorsNavAnimated.vue.js";
|
|
94
|
+
import { default as Lr } from "./components/systems/scroll-anchors/UluScrollAnchorsSection.vue.js";
|
|
95
|
+
import { default as Ir } from "./components/systems/scroll-anchors/UluScrollAnchorsHeadlessSection.vue.js";
|
|
96
|
+
import { default as yr } from "./components/systems/skeleton/UluShowSkeleton.vue.js";
|
|
97
|
+
import { default as Mr } from "./components/systems/skeleton/UluSkeletonContent.vue.js";
|
|
98
|
+
import { default as Br } from "./components/systems/skeleton/UluSkeletonMedia.vue.js";
|
|
99
|
+
import { default as Nr } from "./components/systems/skeleton/UluSkeletonText.vue.js";
|
|
100
|
+
import { default as Gr } from "./components/systems/table-sticky/UluTableSticky.vue.js";
|
|
101
|
+
import { default as qr } from "./components/systems/table-sticky/UluTableStickyRows.vue.js";
|
|
102
|
+
import { default as Or } from "./components/systems/table-sticky/UluTableStickyTable.vue.js";
|
|
103
|
+
import { useTooltip as jr } from "./plugins/popovers/useTooltip.js";
|
|
104
|
+
import { default as Jr } from "./components/elements/UluMain.vue.js";
|
|
105
|
+
import { default as Qr } from "./components/navigation/UluSkipLink.vue.js";
|
|
106
|
+
import { default as Yr } from "./components/utils/UluEmpty.vue.js";
|
|
107
|
+
import { default as _r } from "./components/utils/UluEmptyView.vue.js";
|
|
108
|
+
import { useFacets as et } from "./components/systems/facets/useFacets.js";
|
|
109
|
+
import { useScrollAnchors as rt } from "./components/systems/scroll-anchors/useScrollAnchors.js";
|
|
110
|
+
import { useScrollAnchorSection as at } from "./components/systems/scroll-anchors/useScrollAnchorSection.js";
|
|
111
|
+
import { useScrollAnchorSections as ut } from "./components/systems/scroll-anchors/useScrollAnchorSections.js";
|
|
112
|
+
import { useIcon as st } from "./composables/useIcon.js";
|
|
113
|
+
import { useModifiers as pt } from "./composables/useModifiers.js";
|
|
114
|
+
import { useWindowResize as xt } from "./composables/useWindowResize.js";
|
|
115
|
+
import { useRequiredInject as it } from "./composables/useRequiredInject.js";
|
|
116
|
+
import { useBreakpointManager as ct } from "./composables/useBreakpointManager.js";
|
|
117
|
+
import { usePagination as Ft } from "./composables/usePagination.js";
|
|
118
|
+
import { useDocumentTitle as bt } from "./composables/useDocumentTitle.js";
|
|
119
|
+
import { useUluFloating as At } from "./composables/useUluFloating.js";
|
|
120
|
+
import { useTableData as kt } from "./composables/useTableData.js";
|
|
120
121
|
export {
|
|
121
122
|
n as UluAccordion,
|
|
122
123
|
S as UluAccordionGroup,
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
Mo as UluAction,
|
|
125
|
+
io as UluAdaptiveLayout,
|
|
125
126
|
E as UluAlert,
|
|
126
|
-
|
|
127
|
+
Jo as UluAnimateNumber,
|
|
127
128
|
W as UluBadge,
|
|
128
129
|
H as UluBadgeStack,
|
|
129
|
-
|
|
130
|
+
Ao as UluBreadcrumb,
|
|
130
131
|
V as UluButton,
|
|
131
132
|
z as UluButtonVerbose,
|
|
132
133
|
K as UluCallout,
|
|
133
134
|
X as UluCaptionedFigure,
|
|
134
135
|
Z as UluCard,
|
|
135
136
|
T as UluCollapsible,
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
Bo as UluConditionalText,
|
|
138
|
+
No as UluConditionalWrapper,
|
|
138
139
|
Se as UluCounterList,
|
|
139
|
-
|
|
140
|
+
co as UluDataGrid,
|
|
140
141
|
$ as UluDataTable,
|
|
141
142
|
oe as UluDefinitionList,
|
|
142
143
|
te as UluDefinitionListItem,
|
|
143
144
|
g as UluDropdown,
|
|
144
|
-
|
|
145
|
-
|
|
145
|
+
Yr as UluEmpty,
|
|
146
|
+
_r as UluEmptyView,
|
|
146
147
|
le as UluExternalLink,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
148
|
+
_o as UluFacetsActiveFilters,
|
|
149
|
+
rr as UluFacetsFilterAccordions,
|
|
150
|
+
er as UluFacetsFilterLists,
|
|
151
|
+
ar as UluFacetsFilterPopovers,
|
|
152
|
+
ur as UluFacetsFilterSelects,
|
|
153
|
+
sr as UluFacetsHeaderLayout,
|
|
154
|
+
Fr as UluFacetsList,
|
|
155
|
+
pr as UluFacetsResults,
|
|
156
|
+
xr as UluFacetsSearch,
|
|
157
|
+
ir as UluFacetsSidebarLayout,
|
|
158
|
+
cr as UluFacetsSort,
|
|
158
159
|
De as UluFileDisplay,
|
|
159
160
|
Ke as UluForm,
|
|
160
161
|
Xe as UluFormActions,
|
|
@@ -162,46 +163,47 @@ export {
|
|
|
162
163
|
$e as UluFormFieldset,
|
|
163
164
|
Ee as UluFormFile,
|
|
164
165
|
oo as UluFormItem,
|
|
165
|
-
|
|
166
|
+
lo as UluFormItemsInline,
|
|
167
|
+
to as UluFormLabel,
|
|
166
168
|
We as UluFormMessage,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
fo as UluFormRadio,
|
|
170
|
+
mo as UluFormRequiredChar,
|
|
169
171
|
He as UluFormSelect,
|
|
170
172
|
Ve as UluFormText,
|
|
171
|
-
|
|
173
|
+
xo as UluFormTextarea,
|
|
172
174
|
fe as UluIcon,
|
|
173
175
|
me as UluImage,
|
|
174
176
|
de as UluImageSource,
|
|
175
177
|
Ue as UluList,
|
|
176
178
|
ne as UluListItem,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
Jr as UluMain,
|
|
180
|
+
ko as UluMenu,
|
|
181
|
+
Lo as UluMenuStack,
|
|
180
182
|
h as UluModal,
|
|
181
|
-
|
|
183
|
+
Io as UluNavStrip,
|
|
182
184
|
P as UluOverflowPopover,
|
|
183
185
|
Te as UluOverflowScroller,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
yo as UluPager,
|
|
187
|
+
Go as UluPlaceholderImage,
|
|
188
|
+
qo as UluPlaceholderText,
|
|
189
|
+
Qo as UluProgressBar,
|
|
190
|
+
Yo as UluProgressCircle,
|
|
191
|
+
Oo as UluRouteAnnouncer,
|
|
190
192
|
ge as UluRule,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
jo as UluSanityRichText,
|
|
194
|
+
br as UluScrollAnchors,
|
|
195
|
+
Ir as UluScrollAnchorsHeadlessSection,
|
|
196
|
+
Ar as UluScrollAnchorsNav,
|
|
197
|
+
kr as UluScrollAnchorsNavAnimated,
|
|
198
|
+
Lr as UluScrollAnchorsSection,
|
|
197
199
|
he as UluScrollSlider,
|
|
198
200
|
ze as UluSearchForm,
|
|
199
201
|
we as UluSelectableMenu,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
yr as UluShowSkeleton,
|
|
203
|
+
Mr as UluSkeletonContent,
|
|
204
|
+
Br as UluSkeletonMedia,
|
|
205
|
+
Nr as UluSkeletonText,
|
|
206
|
+
Qr as UluSkipLink,
|
|
205
207
|
Pe as UluSlider,
|
|
206
208
|
Ce as UluSpokeSpinner,
|
|
207
209
|
C as UluTab,
|
|
@@ -210,31 +212,31 @@ export {
|
|
|
210
212
|
w as UluTabPanel,
|
|
211
213
|
D as UluTabPanels,
|
|
212
214
|
ve as UluTable,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
Gr as UluTableSticky,
|
|
216
|
+
qr as UluTableStickyRows,
|
|
217
|
+
Or as UluTableStickyTable,
|
|
216
218
|
Re as UluTag,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
Fo as UluTitleRail,
|
|
220
|
+
bo as UluWhenBreakpoint,
|
|
219
221
|
U as breakpointsPlugin,
|
|
220
222
|
t as corePlugin,
|
|
221
223
|
m as modalsPlugin,
|
|
222
224
|
l as popoversPlugin,
|
|
223
225
|
d as toastPlugin,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
226
|
+
ct as useBreakpointManager,
|
|
227
|
+
bt as useDocumentTitle,
|
|
228
|
+
et as useFacets,
|
|
229
|
+
st as useIcon,
|
|
230
|
+
pt as useModifiers,
|
|
231
|
+
Ft as usePagination,
|
|
232
|
+
it as useRequiredInject,
|
|
233
|
+
at as useScrollAnchorSection,
|
|
234
|
+
ut as useScrollAnchorSections,
|
|
235
|
+
rt as useScrollAnchors,
|
|
236
|
+
kt as useTableData,
|
|
237
|
+
jr as useTooltip,
|
|
236
238
|
f as useTooltipFollow,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
At as useUluFloating,
|
|
240
|
+
xt as useWindowResize,
|
|
239
241
|
e as utils
|
|
240
242
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/core/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/plugins/core/index.js"],"names":[],"mappings":"AAoCA;;;;;;;;;;GAUG;AACH,qCAPW,MAAM,iBAEd;IAA+B,iBAAiB;IAClB,aAAa;IACX,gBAAgB;IAClB,WAAW;CAC3C,QA0DA;AAtED,gCAA0D"}
|
|
@@ -2,7 +2,7 @@ import { reactive as c } from "vue";
|
|
|
2
2
|
const o = {
|
|
3
3
|
fontAwesomeStatic: !1,
|
|
4
4
|
iconComponent: null,
|
|
5
|
-
iconPropResolver: (
|
|
5
|
+
iconPropResolver: (n) => ({ icon: n }),
|
|
6
6
|
iconsByType: {
|
|
7
7
|
danger: "fas fa-triangle-exclamation",
|
|
8
8
|
warning: "fas fa-circle-exclamation",
|
|
@@ -22,12 +22,13 @@ const o = {
|
|
|
22
22
|
file: "fas fa-file",
|
|
23
23
|
previous: "fas fa-chevron-left",
|
|
24
24
|
next: "fas fa-chevron-right",
|
|
25
|
-
dropdownExpand: "fas fa-caret-down"
|
|
25
|
+
dropdownExpand: "fas fa-caret-down",
|
|
26
|
+
search: "fas fa-search"
|
|
26
27
|
}
|
|
27
28
|
};
|
|
28
|
-
function p(
|
|
29
|
-
const t = c({ ...o }), { iconsByType:
|
|
30
|
-
|
|
29
|
+
function p(n, f = {}) {
|
|
30
|
+
const t = c({ ...o }), { iconsByType: r, ...i } = f || {};
|
|
31
|
+
i && Object.assign(t, i);
|
|
31
32
|
const s = {
|
|
32
33
|
// Methods to interact with settings
|
|
33
34
|
getSettings() {
|
|
@@ -46,25 +47,25 @@ function p(a, f = {}) {
|
|
|
46
47
|
}
|
|
47
48
|
return t[e];
|
|
48
49
|
},
|
|
49
|
-
updateSetting(e,
|
|
50
|
+
updateSetting(e, a) {
|
|
50
51
|
if (typeof e != "string")
|
|
51
52
|
throw new Error("Expected key to be string");
|
|
52
|
-
t[e] =
|
|
53
|
+
t[e] = a;
|
|
53
54
|
},
|
|
54
55
|
getIcon(e) {
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
56
|
+
const a = t.iconsByType;
|
|
57
|
+
if (!a[e])
|
|
57
58
|
throw new Error(`Icon type "${e}" not found!`);
|
|
58
|
-
return
|
|
59
|
+
return a[e];
|
|
59
60
|
},
|
|
60
|
-
setIcon(e,
|
|
61
|
-
t.iconsByType[e] =
|
|
61
|
+
setIcon(e, a) {
|
|
62
|
+
t.iconsByType[e] = a;
|
|
62
63
|
}
|
|
63
64
|
};
|
|
64
|
-
if (
|
|
65
|
-
for (const [e,
|
|
66
|
-
s.setIcon(e,
|
|
67
|
-
|
|
65
|
+
if (r)
|
|
66
|
+
for (const [e, a] of Object.entries(r))
|
|
67
|
+
s.setIcon(e, a);
|
|
68
|
+
n.provide("uluCore", s), n.config.globalProperties.$uluCore = s;
|
|
68
69
|
}
|
|
69
70
|
export {
|
|
70
71
|
p as default
|
package/dist/utils/props.d.ts
CHANGED
|
@@ -4,4 +4,11 @@
|
|
|
4
4
|
* @returns {Boolean} Whether all are objects within
|
|
5
5
|
*/
|
|
6
6
|
export function isArrayOfObjects(array: any[]): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks for deprecated props and calls a callback for each match
|
|
9
|
+
* @param {object} props - The current props object
|
|
10
|
+
* @param {string[]} deprecatedNames - Array of prop names to check
|
|
11
|
+
* @param {function} callback - Function called for each match, receiving the prop name
|
|
12
|
+
*/
|
|
13
|
+
export function checkDeprecatedProps(props: object, deprecatedNames: string[], callback: Function): void;
|
|
7
14
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../lib/utils/props.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wDAEC"}
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../lib/utils/props.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wDAEC;AAED;;;;;GAKG;AACH,4CAJW,MAAM,mBACN,MAAM,EAAE,4BASlB"}
|
package/dist/utils/props.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
function
|
|
1
|
+
function f(e) {
|
|
2
2
|
return e.every((r) => typeof r == "object");
|
|
3
3
|
}
|
|
4
|
+
function o(e, r, t) {
|
|
5
|
+
r.forEach((c) => {
|
|
6
|
+
e[c] !== void 0 && t(c);
|
|
7
|
+
});
|
|
8
|
+
}
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
o as checkDeprecatedProps,
|
|
11
|
+
f as isArrayOfObjects
|
|
6
12
|
};
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:href="href"
|
|
5
5
|
:target="target"
|
|
6
6
|
:download="download"
|
|
7
|
+
:type="type"
|
|
7
8
|
class="button"
|
|
8
9
|
:class="[
|
|
9
10
|
{
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
import UluAction from "../utils/UluAction.vue";
|
|
39
40
|
import UluIcon from "./UluIcon.vue";
|
|
40
41
|
import { useModifiers } from "../../composables/useModifiers.js";
|
|
42
|
+
import { checkDeprecatedProps } from "../../utils/props.js";
|
|
41
43
|
|
|
42
44
|
const props = defineProps({
|
|
43
45
|
/**
|
|
@@ -70,9 +72,14 @@
|
|
|
70
72
|
*/
|
|
71
73
|
download: [Boolean, String],
|
|
72
74
|
/**
|
|
73
|
-
*
|
|
75
|
+
* **Deprecated!** Use `ariaLabel` instead.
|
|
76
|
+
* @deprecated Use `ariaLabel` instead.
|
|
74
77
|
*/
|
|
75
78
|
alt: String,
|
|
79
|
+
/**
|
|
80
|
+
* For icon only buttons or buttons that need an explicit aria-label
|
|
81
|
+
*/
|
|
82
|
+
ariaLabel: String,
|
|
76
83
|
/**
|
|
77
84
|
* If not using slot this sets the buttons text via prop
|
|
78
85
|
*/
|
|
@@ -112,7 +119,15 @@
|
|
|
112
119
|
/**
|
|
113
120
|
* Modifiers (to add any modifier classes based on base class [ie. 'tertiary'])
|
|
114
121
|
*/
|
|
115
|
-
modifiers: [String, Array]
|
|
122
|
+
modifiers: [String, Array],
|
|
123
|
+
/**
|
|
124
|
+
* Button type (e.g. 'submit', 'reset', 'button').
|
|
125
|
+
*/
|
|
126
|
+
type: String
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
checkDeprecatedProps(props, ["alt"], (name) => {
|
|
130
|
+
console.warn(`[@ulu/frontend-vue] UluButton: The "${ name }" prop is deprecated. Please use "ariaLabel" instead.`);
|
|
116
131
|
});
|
|
117
132
|
|
|
118
133
|
const { resolvedModifiers } = useModifiers({
|
|
@@ -131,7 +146,7 @@
|
|
|
131
146
|
});
|
|
132
147
|
|
|
133
148
|
const resolvedAriaLabel = computed(() => {
|
|
134
|
-
const label = props.alt || (props.iconOnly && props.text);
|
|
149
|
+
const label = props.ariaLabel || props.alt || (props.iconOnly && props.text);
|
|
135
150
|
return label ? label : null;
|
|
136
151
|
});
|
|
137
152
|
</script>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:class="commonClasses"
|
|
7
7
|
/>
|
|
8
8
|
<component
|
|
9
|
-
v-else-if="!useStaticFa && faIconComponent
|
|
9
|
+
v-else-if="!useStaticFa && faIconComponent"
|
|
10
10
|
:is="faIconComponent"
|
|
11
11
|
v-bind="iconProps"
|
|
12
12
|
:class="commonClasses"
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup>
|
|
22
|
-
import {
|
|
22
|
+
import { defineAsyncComponent, computed, inject } from "vue";
|
|
23
23
|
import { useIcon } from "../../composables/useIcon.js";
|
|
24
24
|
|
|
25
25
|
const uluCore = inject('uluCore');
|
|
26
|
-
const faIconComponent = ref(null);
|
|
27
26
|
const { getIconProps, getClassesFromDefinition } = useIcon();
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
const AsyncFontAwesomeIcon = defineAsyncComponent(() =>
|
|
29
|
+
import("@fortawesome/vue-fontawesome").then(m => m.FontAwesomeIcon)
|
|
30
|
+
);
|
|
30
31
|
|
|
31
32
|
const props = defineProps({
|
|
32
33
|
/**
|
|
33
34
|
* Icon definition can be string (fa classes), or array or object (any prop format FaIcon accepts)
|
|
34
|
-
* - This will override the 'type' prop if both are provided
|
|
35
35
|
*/
|
|
36
36
|
icon: [String, Array, Object, Boolean],
|
|
37
37
|
/**
|
|
@@ -86,28 +86,10 @@
|
|
|
86
86
|
'flow-inline': props.spaced
|
|
87
87
|
}));
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
// - Use watchEffect because we are watching reactive object property access (props)
|
|
91
|
-
// - Load FA if needed (so it's not included if it's unneeded)
|
|
92
|
-
// - Replace the empty component after load or if value changes
|
|
93
|
-
watchEffect(async () => {
|
|
94
|
-
// Only attempt to load the component if we are NOT using the static version
|
|
89
|
+
const faIconComponent = computed(() => {
|
|
95
90
|
if (!useStaticFa.value && resolvedDefinition.value) {
|
|
96
|
-
|
|
97
|
-
if (FaModule) {
|
|
98
|
-
faIconComponent.value = markRaw(FaModule.FontAwesomeIcon);
|
|
99
|
-
} else {
|
|
100
|
-
const componentPromise = defineAsyncComponent(async () => {
|
|
101
|
-
const module = await import("@fortawesome/vue-fontawesome");
|
|
102
|
-
FaModule = module;
|
|
103
|
-
return module.FontAwesomeIcon;
|
|
104
|
-
});
|
|
105
|
-
faIconComponent.value = markRaw(componentPromise);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
// If using static FA or no definition, ensure component is null
|
|
110
|
-
faIconComponent.value = null;
|
|
91
|
+
return AsyncFontAwesomeIcon;
|
|
111
92
|
}
|
|
93
|
+
return null;
|
|
112
94
|
});
|
|
113
95
|
</script>
|