@ulu/frontend-vue 0.2.0-beta.8 → 0.3.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/collapsible/UluAccordionGroup.vue.d.ts +2 -2
- package/dist/components/collapsible/UluAccordionGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluAccordionGroup.vue.js +22 -19
- package/dist/components/collapsible/UluDropdown.vue.d.ts +1 -1
- package/dist/components/collapsible/UluDropdown.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluDropdown.vue.js +22 -15
- package/dist/components/collapsible/UluModal.vue.d.ts +43 -248
- package/dist/components/collapsible/UluModal.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluModal.vue.js +139 -191
- package/dist/components/collapsible/UluTabGroup.vue.d.ts +2 -0
- package/dist/components/collapsible/UluTabGroup.vue.d.ts.map +1 -1
- package/dist/components/collapsible/UluTabGroup.vue.js +23 -14
- package/dist/components/elements/UluAlert.vue.d.ts +29 -144
- package/dist/components/elements/UluAlert.vue.d.ts.map +1 -1
- package/dist/components/elements/UluAlert.vue.js +39 -50
- package/dist/components/elements/UluBadge.vue.d.ts +6 -6
- package/dist/components/elements/UluBadgeStack.vue.d.ts +1 -1
- package/dist/components/elements/UluBadgeStack.vue.d.ts.map +1 -1
- package/dist/components/elements/UluBadgeStack.vue.js +12 -9
- package/dist/components/elements/UluButton.vue.d.ts +47 -177
- package/dist/components/elements/UluButton.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButton.vue.js +59 -72
- package/dist/components/elements/UluButtonVerbose.vue.d.ts +38 -123
- package/dist/components/elements/UluButtonVerbose.vue.d.ts.map +1 -1
- package/dist/components/elements/UluButtonVerbose.vue.js +52 -65
- package/dist/components/elements/UluCallout.vue.d.ts +20 -25
- package/dist/components/elements/UluCallout.vue.d.ts.map +1 -1
- package/dist/components/elements/UluCallout.vue.js +11 -16
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts +25 -0
- package/dist/components/elements/UluCaptionedFigure.vue.d.ts.map +1 -0
- package/dist/components/elements/UluCaptionedFigure.vue.js +48 -0
- package/dist/components/elements/UluCard.vue.d.ts +2 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts +4 -2
- package/dist/components/elements/UluDefinitionList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluDefinitionList.vue.js +32 -28
- package/dist/components/elements/UluExternalLink.vue.d.ts +2 -2
- package/dist/components/elements/UluImage.vue.d.ts +14 -0
- package/dist/components/elements/UluImage.vue.d.ts.map +1 -0
- package/dist/components/elements/UluImage.vue.js +53 -0
- package/dist/components/elements/UluList.vue.d.ts.map +1 -1
- package/dist/components/elements/UluList.vue.js +14 -13
- package/dist/components/elements/UluOverflowScroller.vue.d.ts +49 -0
- package/dist/components/elements/UluOverflowScroller.vue.d.ts.map +1 -0
- package/dist/components/elements/UluOverflowScroller.vue.js +138 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts +38 -0
- package/dist/components/elements/UluScrollSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluScrollSlider.vue.js +146 -0
- package/dist/components/elements/UluSlider.vue.d.ts +57 -0
- package/dist/components/elements/UluSlider.vue.d.ts.map +1 -0
- package/dist/components/elements/UluSlider.vue.js +277 -0
- package/dist/components/forms/UluFormFile.vue.d.ts +2 -2
- package/dist/components/forms/UluFormRadio.vue.d.ts +4 -4
- package/dist/components/index.d.ts +6 -0
- package/dist/components/layout/UluTitleRail.vue.d.ts +29 -87
- package/dist/components/layout/UluTitleRail.vue.d.ts.map +1 -1
- package/dist/components/layout/UluTitleRail.vue.js +51 -46
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts +27 -68
- package/dist/components/navigation/UluBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluBreadcrumb.vue.js +51 -54
- package/dist/components/navigation/UluMenu.vue.d.ts +30 -138
- package/dist/components/navigation/UluMenu.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenu.vue.js +85 -84
- package/dist/components/navigation/UluMenuStack.vue.d.ts +12 -2
- package/dist/components/navigation/UluMenuStack.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluMenuStack.vue.js +26 -18
- package/dist/components/navigation/UluNavStrip.vue.d.ts +22 -134
- package/dist/components/navigation/UluNavStrip.vue.d.ts.map +1 -1
- package/dist/components/navigation/UluNavStrip.vue.js +43 -31
- package/dist/components/systems/facets/UluFacetsSidebarLayout.vue.js +10 -10
- package/dist/components/systems/facets/useFacets.d.ts +3 -0
- package/dist/components/systems/facets/useFacets.d.ts.map +1 -1
- package/dist/components/systems/facets/useFacets.js +124 -112
- package/dist/components/systems/index.d.ts +0 -3
- package/dist/components/systems/scroll-anchors/UluScrollAnchors.vue.d.ts +2 -2
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts +504 -432
- package/dist/components/systems/table-sticky/UluTableSticky.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableSticky.vue.js +313 -456
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts +40 -31
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyRows.vue.js +43 -45
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts +60 -146
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.d.ts.map +1 -1
- package/dist/components/systems/table-sticky/UluTableStickyTable.vue.js +156 -175
- package/dist/components/utils/UluAction.vue.d.ts +36 -0
- package/dist/components/utils/UluAction.vue.d.ts.map +1 -0
- package/dist/components/utils/UluAction.vue.js +59 -0
- package/dist/components/utils/UluConditionalText.vue.d.ts +7 -26
- package/dist/components/utils/UluConditionalText.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalText.vue.js +12 -14
- package/dist/components/utils/UluConditionalWrapper.vue.d.ts.map +1 -1
- package/dist/components/utils/UluConditionalWrapper.vue.js +11 -9
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts +12 -57
- package/dist/components/utils/UluPlaceholderImage.vue.d.ts.map +1 -1
- package/dist/components/utils/UluPlaceholderImage.vue.js +18 -26
- package/dist/components/utils/UluPlaceholderText.vue.d.ts +6 -20
- package/dist/components/utils/UluPlaceholderText.vue.js +12 -14
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts +9 -58
- package/dist/components/utils/UluRouteAnnouncer.vue.d.ts.map +1 -1
- package/dist/components/utils/UluRouteAnnouncer.vue.js +28 -28
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts +20 -14
- package/dist/components/visualizations/UluAnimateNumber.vue.d.ts.map +1 -1
- package/dist/components/visualizations/UluAnimateNumber.vue.js +18 -26
- package/dist/components/visualizations/UluProgressCircle.vue.d.ts +2 -2
- package/dist/composables/useModifiers.d.ts +20 -25
- package/dist/composables/useModifiers.d.ts.map +1 -1
- package/dist/index.js +206 -200
- package/dist/plugins/modals/UluModalsDisplay.vue.d.ts +3 -12
- package/dist/plugins/modals/UluModalsDisplay.vue.js +24 -45
- package/dist/plugins/modals/index.js +6 -6
- package/dist/plugins/toast/UluToast.vue.d.ts +24 -49
- package/dist/plugins/toast/UluToast.vue.d.ts.map +1 -1
- package/dist/plugins/toast/UluToast.vue.js +68 -77
- package/dist/plugins/toast/UluToastDisplay.vue.d.ts +1 -9
- package/dist/plugins/toast/UluToastDisplay.vue.js +27 -35
- package/dist/plugins/toast/defaults.d.ts +40 -35
- package/dist/plugins/toast/defaults.js +2 -2
- package/dist/plugins/toast/index.js +4 -4
- package/dist/plugins/toast/store.d.ts +40 -35
- package/dist/plugins/toast/store.d.ts.map +1 -1
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -0
- package/dist/utils/props.js +6 -0
- package/lib/components/collapsible/UluAccordionGroup.vue +4 -1
- package/lib/components/collapsible/UluDropdown.vue +5 -1
- package/lib/components/collapsible/UluModal.vue +278 -298
- package/lib/components/collapsible/UluTabGroup.vue +21 -6
- package/lib/components/elements/UluAlert.vue +38 -51
- package/lib/components/elements/UluBadgeStack.vue +4 -1
- package/lib/components/elements/UluButton.vue +105 -129
- package/lib/components/elements/UluButtonVerbose.vue +67 -89
- package/lib/components/elements/UluCallout.vue +15 -19
- package/lib/components/elements/UluCaptionedFigure.vue +40 -0
- package/lib/components/elements/UluDefinitionList.vue +27 -6
- package/lib/components/elements/UluImage.vue +56 -0
- package/lib/components/elements/UluList.vue +1 -0
- package/lib/components/elements/UluOverflowScroller.vue +140 -0
- package/lib/components/elements/UluScrollSlider.vue +150 -0
- package/lib/components/elements/UluSlider.vue +488 -0
- package/lib/components/index.js +10 -0
- package/lib/components/layout/UluTitleRail.vue +55 -48
- package/lib/components/navigation/UluBreadcrumb.vue +29 -34
- package/lib/components/navigation/UluMenu.vue +60 -71
- package/lib/components/navigation/UluMenuStack.vue +6 -1
- package/lib/components/navigation/UluNavStrip.vue +43 -31
- package/lib/components/systems/facets/useFacets.js +33 -17
- package/lib/components/systems/index.js +0 -4
- package/lib/components/systems/table-sticky/UluTableSticky.vue +602 -576
- package/lib/components/systems/table-sticky/UluTableStickyRows.vue +16 -27
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +95 -96
- package/lib/components/utils/UluAction.vue +81 -0
- package/lib/components/utils/UluConditionalText.vue +13 -16
- package/lib/components/utils/UluConditionalWrapper.vue +5 -1
- package/lib/components/utils/UluPlaceholderImage.vue +44 -46
- package/lib/components/utils/UluPlaceholderText.vue +10 -13
- package/lib/components/utils/UluRouteAnnouncer.vue +59 -47
- package/lib/components/visualizations/UluAnimateNumber.vue +23 -30
- package/lib/composables/useModifiers.js +21 -26
- package/lib/plugins/modals/UluModalsDisplay.vue +44 -45
- package/lib/plugins/toast/UluToast.vue +28 -34
- package/lib/plugins/toast/UluToastDisplay.vue +9 -15
- package/lib/utils/props.js +8 -0
- package/package.json +9 -5
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts +0 -130
- package/dist/components/systems/slider/UluImageSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluImageSlideShow.vue.js +0 -73
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts +0 -205
- package/dist/components/systems/slider/UluSlideShow.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShow.vue.js +0 -292
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts +0 -17
- package/dist/components/systems/slider/UluSlideShowSlide.vue.d.ts.map +0 -1
- package/dist/components/systems/slider/UluSlideShowSlide.vue.js +0 -26
- package/lib/components/systems/slider/UluImageSlideShow.vue +0 -75
- package/lib/components/systems/slider/UluSlideShow.vue +0 -336
- package/lib/components/systems/slider/UluSlideShowSlide.vue +0 -25
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useSlots as q, ref as p, computed as a, watch as B, nextTick as M, onMounted as G, onBeforeUnmount as J, createBlock as O, openBlock as c, Teleport as K, createElementVNode as d, withModifiers as Q, normalizeStyle as Z, normalizeClass as i, unref as T, createElementBlock as w, createCommentVNode as h, renderSlot as u, toDisplayString as _, createVNode as L } from "vue";
|
|
2
2
|
import C from "../elements/UluIcon.vue.js";
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import { preventScroll as
|
|
5
|
-
import { Resizer as
|
|
6
|
-
import { newId as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: "UluModal",
|
|
10
|
-
components: {
|
|
11
|
-
UluIcon: C
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:modelValue", "close", "open"],
|
|
3
|
+
import { useModifiers as x } from "../../composables/useModifiers.js";
|
|
4
|
+
import { preventScroll as ee, wasClickOutside as le } from "@ulu/utils/browser/dom.js";
|
|
5
|
+
import { Resizer as oe, observeDialogToggle as te } from "@ulu/frontend";
|
|
6
|
+
import { newId as se } from "../../utils/dom.js";
|
|
7
|
+
const ne = ["aria-labelledby", "aria-describedby"], ie = ["id"], re = { class: "modal__title-text" }, ve = {
|
|
8
|
+
__name: "UluModal",
|
|
14
9
|
props: {
|
|
15
10
|
/**
|
|
16
11
|
* Controls the visibility of the modal (for v-model).
|
|
@@ -114,205 +109,158 @@ const p = {
|
|
|
114
109
|
/**
|
|
115
110
|
* Modifiers (to add any modifier classes based on base class [ie. 'tertiary'])
|
|
116
111
|
*/
|
|
117
|
-
modifiers: [String, Array]
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
titleId: V("ulu-modal-title"),
|
|
123
|
-
bodyOverflowValue: null,
|
|
124
|
-
bodyPaddingRightValue: null,
|
|
125
|
-
isResizing: !1
|
|
126
|
-
};
|
|
112
|
+
modifiers: [String, Array],
|
|
113
|
+
/**
|
|
114
|
+
* If true, modal is forced to fullscreen on mobile viewports
|
|
115
|
+
*/
|
|
116
|
+
fullscreenMobile: Boolean
|
|
127
117
|
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
emits: ["update:modelValue", "close", "open"],
|
|
119
|
+
setup(t, { emit: H }) {
|
|
120
|
+
const r = H, e = t, j = q(), D = p(null), I = se("ulu-modal-title"), g = p(!1), o = p(null), R = p(null), E = a(() => e.title || j.title), f = a(() => {
|
|
121
|
+
const { allowResize: l, position: s } = e;
|
|
122
|
+
if (!l || !s) return !1;
|
|
123
|
+
const $ = ["left", "right", "center"];
|
|
124
|
+
return $.includes(s) ? !0 : (console.warn(`Passed invalid position for resize (${s}), use ${$.join(", ")}`), !1);
|
|
125
|
+
}), N = a(() => e.position === "center" ? "type:resizeBoth" : "type:resizeHorizontal"), P = a(() => ({
|
|
135
126
|
[e.position]: e.position,
|
|
136
127
|
resize: e.allowResize,
|
|
137
128
|
"no-resize": !e.allowResize,
|
|
138
|
-
"no-header": !
|
|
129
|
+
"no-header": !E.value,
|
|
139
130
|
"body-fills": e.bodyFills,
|
|
140
131
|
"no-backdrop": e.noBackdrop,
|
|
141
132
|
"no-min-height": e.noMinHeight,
|
|
142
133
|
"non-modal": e.nonModal,
|
|
143
|
-
"resizer-active":
|
|
144
|
-
|
|
134
|
+
"resizer-active": f.value,
|
|
135
|
+
"fullscreen-mobile": e.fullscreenMobile
|
|
136
|
+
})), { resolvedModifiers: F } = x({
|
|
145
137
|
props: e,
|
|
146
138
|
baseClass: "modal",
|
|
147
|
-
internal:
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
computed: {
|
|
157
|
-
resolvedLabelledby() {
|
|
158
|
-
const { labelledby: e, titleId: l } = this;
|
|
159
|
-
return e || l;
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
watch: {
|
|
163
|
-
modelValue: {
|
|
164
|
-
// So that it runs on mount (if modelValue is initially true)
|
|
165
|
-
immediate: !0,
|
|
166
|
-
handler(e) {
|
|
167
|
-
this.$nextTick(() => {
|
|
168
|
-
const { container: l } = this.$refs;
|
|
169
|
-
e ? (l[this.nonModal ? "show" : "showModal"](), this.$emit("open")) : l.close();
|
|
170
|
-
});
|
|
139
|
+
internal: P
|
|
140
|
+
}), U = a(() => e.labelledby ? e.labelledby : I), n = () => {
|
|
141
|
+
r("update:modelValue", !1), r("close");
|
|
142
|
+
}, X = () => {
|
|
143
|
+
e.modelValue && (r("update:modelValue", !1), r("close"));
|
|
144
|
+
}, A = (l) => {
|
|
145
|
+
if (e.clickOutsideCloses && !g.value) {
|
|
146
|
+
const { target: s } = l;
|
|
147
|
+
s === o.value && le(o.value, l) && n();
|
|
171
148
|
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
e ? this.$nextTick(() => {
|
|
178
|
-
this.setupResizer();
|
|
179
|
-
}) : this.destroyResizer();
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
position(e, l) {
|
|
183
|
-
e !== l && (this.destroyResizer(), this.$nextTick(() => {
|
|
184
|
-
this.setupResizer();
|
|
149
|
+
};
|
|
150
|
+
let m = null, v = null, b = null, y = null, z = null;
|
|
151
|
+
const W = () => {
|
|
152
|
+
!e.nonModal && e.preventScroll && (m = te(o.value, (l) => {
|
|
153
|
+
l ? v = ee({ preventShift: e.preventScrollShift }) : V();
|
|
185
154
|
}));
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
if (this.clickOutsideCloses && !this.isResizing) {
|
|
197
|
-
const { target: l } = e, { container: t } = this.$refs;
|
|
198
|
-
l === t && B(t, e) && this.close();
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
setupPreventScroll() {
|
|
202
|
-
const { body: e } = document;
|
|
203
|
-
this.bodyOverflowValue = e.style.overflow, this.bodyPaddingRightValue = e.style.paddingRight;
|
|
204
|
-
},
|
|
205
|
-
destroyPreventScroll() {
|
|
206
|
-
this.restoreScroll && this.restoreScroll();
|
|
207
|
-
},
|
|
208
|
-
handleToggle(e) {
|
|
209
|
-
if (!this.nonModal && this.preventScroll) {
|
|
210
|
-
const { preventScrollShift: l } = this;
|
|
211
|
-
e.newState === "open" ? this.restoreScroll = E({ preventShift: l }) : this.destroyPreventScroll();
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
setupResizer() {
|
|
215
|
-
const { position: e, resizerEnabled: l } = this;
|
|
216
|
-
if (l) {
|
|
217
|
-
const { container: t, resizer: o } = this.$refs, n = e === "center" ? { fromX: "right", fromY: "bottom", multiplier: 2 } : { fromX: e === "right" ? "left" : "right" };
|
|
218
|
-
this.resizerInstance = new M(t, o, n), this.handleResizerStart = () => {
|
|
219
|
-
this.isResizing = !0;
|
|
220
|
-
}, this.handleResizerEnd = () => {
|
|
155
|
+
}, Y = () => {
|
|
156
|
+
m && (m.destroy(), m = null);
|
|
157
|
+
}, V = () => {
|
|
158
|
+
v && (v(), v = null);
|
|
159
|
+
}, S = () => {
|
|
160
|
+
if (f.value) {
|
|
161
|
+
const l = e.position === "center" ? { fromX: "right", fromY: "bottom", multiplier: 2 } : { fromX: e.position === "right" ? "left" : "right" };
|
|
162
|
+
b = new oe(o.value, R.value, l), y = () => {
|
|
163
|
+
g.value = !0;
|
|
164
|
+
}, z = () => {
|
|
221
165
|
setTimeout(() => {
|
|
222
|
-
|
|
166
|
+
g.value = !1;
|
|
223
167
|
}, 0);
|
|
224
|
-
},
|
|
168
|
+
}, o.value.addEventListener("ulu:resizer:start", y), o.value.addEventListener("ulu:resizer:end", z);
|
|
225
169
|
}
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
to: t.teleport === !1 ? null : t.teleport,
|
|
249
|
-
disabled: t.teleport === !1
|
|
250
|
-
}, [
|
|
251
|
-
c("dialog", {
|
|
252
|
-
class: r(["modal", [o.resolvedModifiers, t.classes.container]]),
|
|
253
|
-
"aria-labelledby": s.resolvedLabelledby,
|
|
254
|
-
"aria-describedby": t.describedby,
|
|
255
|
-
ref: "container",
|
|
256
|
-
style: _({ width: n.containerWidth }),
|
|
257
|
-
onCancel: l[1] || (l[1] = R((...i) => s.close && s.close(...i), ["prevent"])),
|
|
258
|
-
onClose: l[2] || (l[2] = (...i) => s.handleDialogCloseEvent && s.handleDialogCloseEvent(...i)),
|
|
259
|
-
onClick: l[3] || (l[3] = (...i) => s.handleClick && s.handleClick(...i)),
|
|
260
|
-
onToggle: l[4] || (l[4] = (...i) => s.handleToggle && s.handleToggle(...i))
|
|
170
|
+
}, k = () => {
|
|
171
|
+
b && (b.destroy(), b = null), y && o.value && o.value.removeEventListener("ulu:resizer:start", y), z && o.value && o.value.removeEventListener("ulu:resizer:end", z);
|
|
172
|
+
};
|
|
173
|
+
return B(() => e.modelValue, (l) => {
|
|
174
|
+
M(() => {
|
|
175
|
+
o.value && (l ? (o.value[e.nonModal ? "show" : "showModal"](), r("open")) : o.value.close());
|
|
176
|
+
});
|
|
177
|
+
}, { immediate: !0 }), B(f, (l) => {
|
|
178
|
+
l ? M(() => {
|
|
179
|
+
S();
|
|
180
|
+
}) : k();
|
|
181
|
+
}, { immediate: !1 }), B(() => e.position, (l, s) => {
|
|
182
|
+
l !== s && (k(), M(() => {
|
|
183
|
+
S();
|
|
184
|
+
}));
|
|
185
|
+
}), G(() => {
|
|
186
|
+
W(), S();
|
|
187
|
+
}), J(() => {
|
|
188
|
+
o.value && o.value.open && o.value.close(), Y(), V(), k();
|
|
189
|
+
}), (l, s) => (c(), O(K, {
|
|
190
|
+
to: t.teleport === !1 ? null : t.teleport,
|
|
191
|
+
disabled: t.teleport === !1
|
|
261
192
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
193
|
+
d("dialog", {
|
|
194
|
+
class: i(["modal", [T(F), t.classes.container]]),
|
|
195
|
+
"aria-labelledby": U.value,
|
|
196
|
+
"aria-describedby": t.describedby,
|
|
197
|
+
ref_key: "container",
|
|
198
|
+
ref: o,
|
|
199
|
+
style: Z({ width: D.value }),
|
|
200
|
+
onCancel: Q(n, ["prevent"]),
|
|
201
|
+
onClose: X,
|
|
202
|
+
onClick: A
|
|
265
203
|
}, [
|
|
266
|
-
c("
|
|
267
|
-
|
|
268
|
-
|
|
204
|
+
E.value ? (c(), w("header", {
|
|
205
|
+
key: 0,
|
|
206
|
+
class: i(["modal__header", t.classes.header])
|
|
269
207
|
}, [
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
208
|
+
d("h2", {
|
|
209
|
+
class: i(["modal__title", t.classes.title]),
|
|
210
|
+
id: T(I)
|
|
211
|
+
}, [
|
|
212
|
+
u(l.$slots, "title", { close: n }, () => [
|
|
213
|
+
t.titleIcon ? (c(), O(C, {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: "modal__title-icon",
|
|
216
|
+
icon: t.titleIcon
|
|
217
|
+
}, null, 8, ["icon"])) : h("", !0),
|
|
218
|
+
d("span", re, _(t.title), 1)
|
|
219
|
+
])
|
|
220
|
+
], 10, ie),
|
|
221
|
+
d("button", {
|
|
222
|
+
class: i(["modal__close", t.classes.close]),
|
|
223
|
+
"aria-label": "Close modal",
|
|
224
|
+
onClick: n,
|
|
225
|
+
autofocus: ""
|
|
226
|
+
}, [
|
|
227
|
+
u(l.$slots, "closeIcon", {}, () => [
|
|
228
|
+
L(C, {
|
|
229
|
+
class: "modal__close-icon",
|
|
230
|
+
icon: t.closeIcon || "type:close"
|
|
231
|
+
}, null, 8, ["icon"])
|
|
232
|
+
])
|
|
233
|
+
], 2)
|
|
234
|
+
], 2)) : h("", !0),
|
|
235
|
+
d("div", {
|
|
236
|
+
class: i(["modal__body", t.classes.body])
|
|
237
|
+
}, [
|
|
238
|
+
u(l.$slots, "default", { close: n })
|
|
239
|
+
], 2),
|
|
240
|
+
l.$slots.footer ? (c(), w("div", {
|
|
241
|
+
key: 1,
|
|
242
|
+
class: i(["site-modal__footer", t.classes.footer])
|
|
243
|
+
}, [
|
|
244
|
+
u(l.$slots, "footer", { close: n })
|
|
245
|
+
], 2)) : h("", !0),
|
|
246
|
+
f.value ? (c(), w("button", {
|
|
247
|
+
key: 2,
|
|
248
|
+
class: "modal__resizer",
|
|
249
|
+
ref_key: "resizer",
|
|
250
|
+
ref: R,
|
|
251
|
+
type: "button"
|
|
284
252
|
}, [
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
class: "
|
|
288
|
-
icon: t.
|
|
253
|
+
u(l.$slots, "resizerIcon", {}, () => [
|
|
254
|
+
L(C, {
|
|
255
|
+
class: "modal__resizer-icon",
|
|
256
|
+
icon: t.resizerIcon || N.value
|
|
289
257
|
}, null, 8, ["icon"])
|
|
290
258
|
])
|
|
291
|
-
],
|
|
292
|
-
],
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
h(e.$slots, "default", { close: s.close })
|
|
297
|
-
], 2),
|
|
298
|
-
e.$slots.footer ? (d(), z("div", {
|
|
299
|
-
key: 1,
|
|
300
|
-
class: r(["site-modal__footer", t.classes.footer])
|
|
301
|
-
}, [
|
|
302
|
-
h(e.$slots, "footer", { close: s.close })
|
|
303
|
-
], 2)) : u("", !0),
|
|
304
|
-
o.resizerEnabled ? (d(), z("button", U, [
|
|
305
|
-
h(e.$slots, "resizerIcon", {}, () => [
|
|
306
|
-
g(a, {
|
|
307
|
-
class: "modal__resizer-icon",
|
|
308
|
-
icon: t.resizerIcon || o.resizerIconType
|
|
309
|
-
}, null, 8, ["icon"])
|
|
310
|
-
])
|
|
311
|
-
], 512)) : u("", !0)
|
|
312
|
-
], 46, O)
|
|
313
|
-
], 8, ["to", "disabled"]);
|
|
314
|
-
}
|
|
315
|
-
const A = /* @__PURE__ */ T(p, [["render", H]]);
|
|
259
|
+
], 512)) : h("", !0)
|
|
260
|
+
], 46, ne)
|
|
261
|
+
], 8, ["to", "disabled"]));
|
|
262
|
+
}
|
|
263
|
+
};
|
|
316
264
|
export {
|
|
317
|
-
|
|
265
|
+
ve as default
|
|
318
266
|
};
|
|
@@ -5,9 +5,11 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
vertical: boolean;
|
|
8
|
+
modifiers?: string | unknown[] | undefined;
|
|
8
9
|
defaultIndex?: number | undefined;
|
|
9
10
|
$props: {
|
|
10
11
|
readonly vertical?: boolean | undefined;
|
|
12
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
11
13
|
readonly defaultIndex?: number | undefined;
|
|
12
14
|
};
|
|
13
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"AAoBA;wBAmJqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;2OAOG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createBlock as
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
|
|
1
|
+
import { createBlock as l, openBlock as i, unref as t, withCtx as n, createElementVNode as d, mergeProps as c, renderSlot as u, normalizeProps as f, guardReactiveProps as m } from "vue";
|
|
2
|
+
import { TabGroup as p } from "@headlessui/vue";
|
|
3
|
+
import { useModifiers as v } from "../../composables/useModifiers.js";
|
|
4
|
+
const h = /* @__PURE__ */ Object.assign({
|
|
4
5
|
inheritAttrs: !1
|
|
5
6
|
}, {
|
|
6
7
|
__name: "UluTabGroup",
|
|
@@ -12,26 +13,34 @@ const b = /* @__PURE__ */ Object.assign({
|
|
|
12
13
|
/**
|
|
13
14
|
* Whether or not to use vertical layout
|
|
14
15
|
*/
|
|
15
|
-
vertical: Boolean
|
|
16
|
+
vertical: Boolean,
|
|
17
|
+
/**
|
|
18
|
+
* Class modifiers (ie. 'transparent', 'secondary', etc)
|
|
19
|
+
*/
|
|
20
|
+
modifiers: [String, Array]
|
|
16
21
|
},
|
|
17
22
|
setup(e) {
|
|
18
|
-
|
|
23
|
+
const a = e, { resolvedModifiers: s } = v({ props: a, baseClass: "tabs" });
|
|
24
|
+
return (r, b) => (i(), l(t(p), {
|
|
19
25
|
defaultIndex: e.defaultIndex,
|
|
20
26
|
vertical: e.vertical
|
|
21
27
|
}, {
|
|
22
|
-
default: n((
|
|
23
|
-
|
|
24
|
-
class:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
default: n((o) => [
|
|
29
|
+
d("div", c(r.$attrs, {
|
|
30
|
+
class: ["tabs", [
|
|
31
|
+
t(s),
|
|
32
|
+
{
|
|
33
|
+
"tabs--vertical": e.vertical
|
|
34
|
+
}
|
|
35
|
+
]]
|
|
36
|
+
}), [
|
|
37
|
+
u(r.$slots, "default", f(m(o)))
|
|
38
|
+
], 16)
|
|
30
39
|
]),
|
|
31
40
|
_: 3
|
|
32
41
|
}, 8, ["defaultIndex", "vertical"]));
|
|
33
42
|
}
|
|
34
43
|
});
|
|
35
44
|
export {
|
|
36
|
-
|
|
45
|
+
h as default
|
|
37
46
|
};
|
|
@@ -1,147 +1,32 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Alert description
|
|
8
|
-
*/
|
|
9
|
-
description: StringConstructor;
|
|
10
|
-
/**
|
|
11
|
-
* Pass specific icon definition, else it will resolve based on common types
|
|
12
|
-
*/
|
|
13
|
-
icon: StringConstructor;
|
|
14
|
-
/**
|
|
15
|
-
* Error, warning, info, success etc (must have these callout modifiers setup and this is used for type color [ie. color-error])
|
|
16
|
-
*/
|
|
17
|
-
type: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Compact callout style
|
|
23
|
-
*/
|
|
24
|
-
compact: BooleanConstructor;
|
|
25
|
-
/**
|
|
26
|
-
* Modifiers (to add any modifier classes based on base class [ie. 'tertiary'])
|
|
27
|
-
*/
|
|
28
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
29
|
-
}>, {
|
|
30
|
-
resolvedModifiers: any;
|
|
31
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
32
|
-
/**
|
|
33
|
-
* Alert Title
|
|
34
|
-
*/
|
|
35
|
-
title: StringConstructor;
|
|
36
|
-
/**
|
|
37
|
-
* Alert description
|
|
38
|
-
*/
|
|
39
|
-
description: StringConstructor;
|
|
40
|
-
/**
|
|
41
|
-
* Pass specific icon definition, else it will resolve based on common types
|
|
42
|
-
*/
|
|
43
|
-
icon: StringConstructor;
|
|
44
|
-
/**
|
|
45
|
-
* Error, warning, info, success etc (must have these callout modifiers setup and this is used for type color [ie. color-error])
|
|
46
|
-
*/
|
|
47
|
-
type: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
default: string;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Compact callout style
|
|
53
|
-
*/
|
|
54
|
-
compact: BooleanConstructor;
|
|
55
|
-
/**
|
|
56
|
-
* Modifiers (to add any modifier classes based on base class [ie. 'tertiary'])
|
|
57
|
-
*/
|
|
58
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
59
|
-
}>> & Readonly<{}>, {
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
+
$slots: S;
|
|
5
|
+
});
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
60
7
|
type: string;
|
|
61
8
|
compact: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
resolvedAriaLabel(): string | null;
|
|
86
|
-
classes(): string[];
|
|
87
|
-
element(): "button" | import('vue-router')._RouterLinkI | "a";
|
|
88
|
-
attrs(): {
|
|
89
|
-
to: string | Record<string, any>;
|
|
90
|
-
href?: undefined;
|
|
91
|
-
} | {
|
|
92
|
-
href: string;
|
|
93
|
-
to?: undefined;
|
|
94
|
-
} | {
|
|
95
|
-
to?: undefined;
|
|
96
|
-
href?: undefined;
|
|
97
|
-
};
|
|
98
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
99
|
-
icon: (StringConstructor | ArrayConstructor)[];
|
|
100
|
-
iconBefore: BooleanConstructor;
|
|
101
|
-
iconOnly: BooleanConstructor;
|
|
102
|
-
to: (ObjectConstructor | StringConstructor)[];
|
|
103
|
-
href: StringConstructor;
|
|
104
|
-
target: StringConstructor;
|
|
105
|
-
download: (BooleanConstructor | StringConstructor)[];
|
|
106
|
-
alt: StringConstructor;
|
|
107
|
-
text: StringConstructor;
|
|
108
|
-
size: StringConstructor;
|
|
109
|
-
primary: BooleanConstructor;
|
|
110
|
-
secondary: BooleanConstructor;
|
|
111
|
-
small: BooleanConstructor;
|
|
112
|
-
large: BooleanConstructor;
|
|
113
|
-
outline: BooleanConstructor;
|
|
114
|
-
transparent: BooleanConstructor;
|
|
115
|
-
noMargin: BooleanConstructor;
|
|
116
|
-
modifiers: (StringConstructor | ArrayConstructor)[];
|
|
117
|
-
}>> & Readonly<{}>, {
|
|
118
|
-
small: boolean;
|
|
119
|
-
iconOnly: boolean;
|
|
120
|
-
iconBefore: boolean;
|
|
121
|
-
primary: boolean;
|
|
122
|
-
secondary: boolean;
|
|
123
|
-
large: boolean;
|
|
124
|
-
outline: boolean;
|
|
125
|
-
transparent: boolean;
|
|
126
|
-
noMargin: boolean;
|
|
127
|
-
}, {}, {
|
|
128
|
-
UluIcon: import('vue').DefineComponent<{}, {
|
|
129
|
-
spaced: boolean;
|
|
130
|
-
icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
131
|
-
$props: {
|
|
132
|
-
readonly spaced?: boolean | undefined;
|
|
133
|
-
readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
134
|
-
};
|
|
135
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
136
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
137
|
-
UluIcon: import('vue').DefineComponent<{}, {
|
|
138
|
-
spaced: boolean;
|
|
139
|
-
icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
140
|
-
$props: {
|
|
141
|
-
readonly spaced?: boolean | undefined;
|
|
142
|
-
readonly icon?: string | boolean | Record<string, any> | unknown[] | undefined;
|
|
143
|
-
};
|
|
144
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
145
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
146
|
-
export default _default;
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
modifiers?: string | unknown[] | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
$props: {
|
|
14
|
+
readonly type?: string | undefined;
|
|
15
|
+
readonly compact?: boolean | undefined;
|
|
16
|
+
readonly icon?: string | undefined;
|
|
17
|
+
readonly title?: string | undefined;
|
|
18
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
19
|
+
readonly description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
22
|
+
type __VLS_TemplateResult = {
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
slots: {
|
|
25
|
+
title?(_: {}): any;
|
|
26
|
+
description?(_: {}): any;
|
|
27
|
+
action?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {};
|
|
30
|
+
rootEl: HTMLDivElement;
|
|
31
|
+
};
|
|
147
32
|
//# sourceMappingURL=UluAlert.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluAlert.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluAlert.vue"],"names":[],"mappings":"AAsBA;;
|
|
1
|
+
{"version":3,"file":"UluAlert.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/elements/UluAlert.vue"],"names":[],"mappings":"AAsBA;wBA0MqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAXjC;;;;;;;;;;;;;;;sPAQG"}
|