@stachelock/ui 0.6.14 → 0.6.16
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/BaseInformationInput-DmtT4C7P.js +4 -0
- package/dist/BaseInformationInput.vue_vue_type_script_setup_true_lang-B-qW4F69.js +154 -0
- package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-DMtVUXUN.js → DynamicForm.vue_vue_type_script_setup_true_lang-D8QXRuSo.js} +1 -1
- package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-DSq31jjH.js → DynamicFormField.vue_vue_type_script_setup_true_lang-DVoVGq7g.js} +86 -38
- package/dist/NamesInput-DHs3Gie7.js +4 -0
- package/dist/NamesInput.vue_vue_type_script_setup_true_lang-BO54mB4C.js +195 -0
- package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-a6F3LQ_P.js +56 -0
- package/dist/ScreenSizeSelector.vue_vue_type_script_setup_true_lang-FINxrVod.js +183 -0
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-DKcK0HmT.js +501 -0
- package/dist/charts/BaseChart.js +76 -56
- package/dist/charts/chartTheme.js +199 -60
- package/dist/charts/index.js +30 -27
- package/dist/components/Button.js +109 -89
- package/dist/composables/index.js +41 -32
- package/dist/composables/useMap.js +1 -1
- package/dist/forms/DynamicForm.js +1 -1
- package/dist/forms/DynamicFormField.js +1 -1
- package/dist/index.js +2268 -1856
- package/dist/layouts/DashboardLayout.js +218 -2
- package/dist/layouts/NavigationItem.js +1 -1
- package/dist/maps/UiMap.js +167 -150
- package/dist/maps/UiMapAll.js +1 -1
- package/dist/maps/UiMapMarker.js +227 -118
- package/dist/maps/index.js +1 -1
- package/dist/src/components/UiProgressBar.d.ts +1 -1
- package/dist/src/components/UiRadialProgressBar.d.ts +1 -1
- package/dist/src/components/charts/chartTheme.d.ts +53 -0
- package/dist/src/components/formatters/DateFormatter.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/inputs/DatepickerInput.d.ts +4 -4
- package/dist/src/components/layouts/DashboardLayout.d.ts +80 -18
- package/dist/src/components/layouts/ShowcaseCard.d.ts +1 -0
- package/dist/src/components/layouts/UiDetailPanel.d.ts +65 -0
- package/dist/src/components/layouts/UiSplitPanelLayout.d.ts +96 -0
- package/dist/src/components/layouts/index.d.ts +2 -0
- package/dist/src/components/maps/UiMap.d.ts +13 -2
- package/dist/src/components/maps/UiMapAll.d.ts +13 -0
- package/dist/src/components/maps/UiMapMarker.d.ts +47 -10
- package/dist/src/components/modals/UiSlideOver.d.ts +104 -0
- package/dist/src/components/modals/index.d.ts +1 -0
- package/dist/src/components/palettes/UiCommandPalette.d.ts +166 -0
- package/dist/src/components/palettes/index.d.ts +1 -0
- package/dist/src/components/wrappers/BreakpointWrapper.d.ts +36 -0
- package/dist/src/components/wrappers/ResponsivePreviewWrapper.d.ts +85 -0
- package/dist/src/components/wrappers/ScreenSizeSelector.d.ts +74 -0
- package/dist/src/components/wrappers/index.d.ts +3 -0
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/useScreenSize.d.ts +131 -0
- package/dist/src/types/form.d.ts +24 -1
- package/dist/src/types/index.d.ts +1 -0
- package/dist/src/types/layouts.d.ts +42 -0
- package/dist/src/types/palettes.d.ts +134 -0
- package/dist/src/views/components/index.d.ts +2 -0
- package/dist/src/views/index.d.ts +5 -1
- package/dist/src/views/layouts/index.d.ts +3 -1
- package/dist/style.css +1 -1
- package/dist/useMap-CM59TKX6.js +318 -0
- package/dist/useScreenSize-Kr6cn5Zr.js +104 -0
- package/dist/wrappers/index.js +10 -6
- package/package.json +1 -1
- package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js +0 -239
- package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -56
- package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js +0 -471
- package/dist/useMap-BGg0H582.js +0 -297
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as G, defineAsyncComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as G, defineAsyncComponent as J, computed as r, ref as x, onMounted as K, nextTick as z, watch as Q, createElementBlock as o, openBlock as t, normalizeStyle as X, normalizeClass as n, createCommentVNode as u, createElementVNode as Y, renderSlot as g, Fragment as Z, createVNode as w, unref as y, toDisplayString as ee } from "vue";
|
|
2
|
+
import { _ as se } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const le = ["disabled", "data-theme", "data-outlined"], re = { class: "sl-absolute sl-top-0 sl-right-0 sl-transform sl-translate-x-1/2 -sl-translate-y-1/2" }, oe = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sl-ml-2"
|
|
6
|
-
}, te = "sl-flex sl-items-center sl-flex-shrink-0",
|
|
6
|
+
}, te = "sl-flex sl-items-center sl-flex-shrink-0", S = "sl-absolute sl-right-2 sl-top-1/2 -sl-translate-y-1/2 sl-flex sl-items-center sl-flex-shrink-0", ne = /* @__PURE__ */ G({
|
|
7
7
|
__name: "UiButton",
|
|
8
8
|
props: {
|
|
9
9
|
replaceLeadingIconWithLoading: { type: Boolean, default: !1 },
|
|
@@ -30,39 +30,39 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
|
|
|
30
30
|
inlineFlex: { type: Boolean, default: !1 }
|
|
31
31
|
},
|
|
32
32
|
emits: ["button-click", "hover-enter", "hover-leave"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
33
|
+
setup(C, { emit: _ }) {
|
|
34
|
+
const h = J(() => import("./Loading.js")), e = C, v = _, c = r(() => !!e.loading), m = r(() => e.replaceLeadingIconWithLoading || !1), B = x(null), f = x(e.theme ?? "primary"), M = (s) => {
|
|
35
35
|
for (; s && s !== document.documentElement; ) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
36
|
+
const l = window.getComputedStyle(s).backgroundColor;
|
|
37
|
+
if (l && l !== "rgba(0, 0, 0, 0)" && l !== "transparent")
|
|
38
|
+
return l;
|
|
39
39
|
s = s.parentElement;
|
|
40
40
|
}
|
|
41
41
|
return null;
|
|
42
|
-
},
|
|
42
|
+
}, L = () => {
|
|
43
43
|
if (!e.autoContrast) return;
|
|
44
|
-
const s =
|
|
44
|
+
const s = B.value;
|
|
45
45
|
if (!s) return;
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
48
|
-
window.getComputedStyle(s).backgroundColor ===
|
|
46
|
+
const l = M(s.parentElement);
|
|
47
|
+
if (!l) return;
|
|
48
|
+
window.getComputedStyle(s).backgroundColor === l && (f.value = f.value === "light" ? "primary" : "light");
|
|
49
49
|
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}),
|
|
50
|
+
K(() => {
|
|
51
|
+
z(L);
|
|
52
|
+
}), Q(
|
|
53
53
|
() => e.theme,
|
|
54
54
|
(s) => {
|
|
55
|
-
f.value = s || "primary",
|
|
55
|
+
f.value = s || "primary", z(L);
|
|
56
56
|
},
|
|
57
57
|
{ immediate: !1 }
|
|
58
58
|
);
|
|
59
|
-
const i =
|
|
59
|
+
const i = r(() => f.value), I = r(() => e.loadingSize || e.size || "md"), k = r(() => {
|
|
60
60
|
const s = ["primary", "dark", "danger", "success", "warning"];
|
|
61
61
|
return !e.outlined && s.includes(i.value) ? "light" : i.value;
|
|
62
|
-
}),
|
|
62
|
+
}), j = r(() => {
|
|
63
63
|
const s = ["primary", "dark", "danger", "success", "warning"];
|
|
64
64
|
return !e.outlined && s.includes(i.value) ? "sl-bg-black/20" : "sl-bg-white/75 dark:sl-bg-slate-900/75";
|
|
65
|
-
}),
|
|
65
|
+
}), T = r(() => {
|
|
66
66
|
const s = {
|
|
67
67
|
primary: "sl-text-stachelock-600 dark:sl-text-stachelock-400 sl-border sl-border-stachelock-600 dark:sl-border-stachelock-500 hover:sl-bg-stachelock-50 dark:hover:sl-bg-stachelock-900/30 hover:sl-border-stachelock-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-stachelock-300 dark:focus:sl-ring-stachelock-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
68
68
|
dark: "sl-text-gray-700 dark:sl-text-gray-300 sl-border sl-border-gray-700 dark:sl-border-gray-500 hover:sl-bg-gray-50 dark:hover:sl-bg-gray-800 hover:sl-border-gray-800 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-gray-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
@@ -72,46 +72,46 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
|
|
|
72
72
|
danger: "sl-text-red-500 dark:sl-text-red-400 sl-border sl-border-red-500 dark:sl-border-red-500 hover:sl-bg-red-50 dark:hover:sl-bg-red-900/20 hover:sl-border-red-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-red-300 dark:focus:sl-ring-red-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
73
73
|
success: "sl-text-green-500 dark:sl-text-green-400 sl-border sl-border-green-500 dark:sl-border-green-500 hover:sl-bg-green-50 dark:hover:sl-bg-green-900/20 hover:sl-border-green-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-green-300 dark:focus:sl-ring-green-600 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
74
74
|
ghost: "sl-text-gray-800 dark:sl-text-gray-200 sl-border sl-border-transparent sl-bg-transparent hover:sl-text-gray-700 dark:hover:sl-text-white hover:sl-bg-gray-100 dark:hover:sl-bg-slate-700 focus:sl-outline-none"
|
|
75
|
-
},
|
|
75
|
+
}, l = {
|
|
76
76
|
primary: "sl-border sl-border-transparent sl-text-white sl-shadow-sm focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
77
|
-
dark: "sl-border sl-border-transparent sl-bg-gray-700 dark:sl-bg-gray-600 sl-text-white sl-shadow-sm hover:sl-bg-gray-
|
|
77
|
+
dark: "sl-border sl-border-transparent sl-bg-gray-700 dark:sl-bg-gray-600 sl-text-white sl-shadow-sm hover:sl-bg-gray-600 dark:hover:sl-bg-gray-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
78
78
|
secondary: "sl-text-gray-800 dark:sl-text-gray-200 sl-bg-gray-200 dark:sl-bg-slate-700 hover:sl-bg-gray-100 dark:hover:sl-bg-slate-600 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-slate-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900 sl-border sl-border-gray-300 dark:sl-border-slate-600",
|
|
79
79
|
light: "sl-text-gray-800 dark:sl-text-gray-200 sl-bg-gray-200 dark:sl-bg-slate-700 hover:sl-bg-gray-100 dark:hover:sl-bg-slate-600 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-gray-300 dark:focus:sl-ring-slate-500 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900 sl-border sl-border-gray-300 dark:sl-border-slate-600",
|
|
80
|
-
warning: "sl-border sl-border-transparent sl-bg-yellow-
|
|
81
|
-
danger: "sl-border sl-border-transparent sl-bg-red-500 dark:sl-bg-red-600 sl-text-white sl-shadow-sm hover:sl-bg-red-
|
|
82
|
-
success: "sl-border sl-border-transparent sl-bg-green-500 dark:sl-bg-green-600 sl-text-white sl-shadow-sm hover:sl-bg-green-
|
|
80
|
+
warning: "sl-border sl-border-transparent sl-bg-yellow-500 dark:sl-bg-yellow-500 sl-text-white sl-shadow-sm hover:sl-bg-yellow-400 dark:hover:sl-bg-yellow-400 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-yellow-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
81
|
+
danger: "sl-border sl-border-transparent sl-bg-red-500 dark:sl-bg-red-600 sl-text-white sl-shadow-sm hover:sl-bg-red-400 dark:hover:sl-bg-red-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-red-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
82
|
+
success: "sl-border sl-border-transparent sl-bg-green-500 dark:sl-bg-green-600 sl-text-white sl-shadow-sm hover:sl-bg-green-400 dark:hover:sl-bg-green-500 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-green-400 focus:sl-ring-offset-2 focus:sl-ring-offset-white dark:focus:sl-ring-offset-slate-900",
|
|
83
83
|
ghost: "sl-border sl-border-transparent sl-text-gray-800 dark:sl-text-gray-200 sl-bg-transparent hover:sl-text-gray-700 dark:hover:sl-text-white hover:sl-bg-gray-100 dark:hover:sl-bg-slate-700 focus:sl-outline-none"
|
|
84
84
|
};
|
|
85
|
-
return e.outlined ? `${s[i.value] || ""} sl-bg-transparent dark:sl-bg-transparent` :
|
|
86
|
-
}),
|
|
85
|
+
return e.outlined ? `${s[i.value] || ""} sl-bg-transparent dark:sl-bg-transparent` : l[i.value] || "";
|
|
86
|
+
}), O = {
|
|
87
87
|
square: "",
|
|
88
88
|
rounded: "sl-rounded",
|
|
89
89
|
"rounded-md": "sl-rounded-md",
|
|
90
90
|
"rounded-lg": "sl-rounded-lg",
|
|
91
91
|
"rounded-full": "sl-rounded-full"
|
|
92
|
-
},
|
|
92
|
+
}, $ = r(() => O[e.rounded || "rounded-md"]), E = r(() => ({
|
|
93
93
|
xs: "sl-px-2 sl-py-1",
|
|
94
94
|
sm: "sl-px-2.5 sl-py-1.5",
|
|
95
95
|
md: "sl-px-3 sl-py-1.5",
|
|
96
96
|
lg: "sl-px-4 sl-py-2",
|
|
97
97
|
xl: "sl-px-5 sl-py-2.5",
|
|
98
98
|
"2xl": "sl-px-6 sl-py-3"
|
|
99
|
-
})[e.size || "md"]),
|
|
99
|
+
})[e.size || "md"]), F = r(() => ({
|
|
100
100
|
xs: "sl-text-xs sl-font-regular",
|
|
101
101
|
sm: "sl-text-sm sl-font-regular",
|
|
102
102
|
md: "sl-text-base sl-font-medium",
|
|
103
103
|
lg: "sl-text-lg sl-font-medium",
|
|
104
104
|
xl: "sl-text-xl sl-font-medium",
|
|
105
105
|
"2xl": "sl-text-2xl sl-font-medium"
|
|
106
|
-
})[e.size || "sm"]),
|
|
106
|
+
})[e.size || "sm"]), N = r(() => e.expanded ? "sl-w-full" : ""), a = r(() => !!e.label && e.label.length > 0), P = r(() => !a.value && (e.leadingIcon || e.trailingIcon)), V = r(() => {
|
|
107
107
|
if (e.customClass)
|
|
108
108
|
return e.customClass;
|
|
109
|
-
const
|
|
110
|
-
O.value,
|
|
109
|
+
const l = [...[
|
|
111
110
|
$.value,
|
|
112
111
|
E.value,
|
|
113
112
|
F.value,
|
|
114
|
-
|
|
113
|
+
N.value,
|
|
114
|
+
T.value,
|
|
115
115
|
e.disabled ? "sl-cursor-not-allowed" : "sl-cursor-pointer",
|
|
116
116
|
"focus:sl-ring-0",
|
|
117
117
|
"sl-relative",
|
|
@@ -122,7 +122,7 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
|
|
|
122
122
|
// Consistent spacing between icon and text
|
|
123
123
|
]];
|
|
124
124
|
if (!a.value && (e.leadingIcon || e.trailingIcon)) {
|
|
125
|
-
const
|
|
125
|
+
const d = {
|
|
126
126
|
xs: "!sl-p-1.5",
|
|
127
127
|
sm: "!sl-p-2",
|
|
128
128
|
md: "!sl-p-2.5",
|
|
@@ -130,99 +130,119 @@ const se = ["disabled", "data-theme", "data-outlined"], le = { class: "sl-absolu
|
|
|
130
130
|
xl: "!sl-p-3.5",
|
|
131
131
|
"2xl": "!sl-p-4"
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
l.push(d[e.size || "md"] || "!sl-p-2.5");
|
|
134
134
|
}
|
|
135
|
-
return e.centerLeadingIcon && !a.value ?
|
|
136
|
-
}),
|
|
137
|
-
|
|
138
|
-
borderColor: "var(--sl-color-primary-600, #3e4b9a)",
|
|
139
|
-
"--tw-ring-color": "var(--sl-color-primary-500, #4d5ec0)"
|
|
140
|
-
} : {
|
|
141
|
-
backgroundColor: "var(--sl-color-primary-600, #3e4b9a)",
|
|
142
|
-
"--tw-ring-color": "var(--sl-color-primary-500, #4d5ec0)"
|
|
143
|
-
} : {}), W = l(() => e.trailingOverlay ? z : te), A = l(() => e.trailingOverlay ? `${z}` : "sl-flex sl-items-center sl-flex-shrink-0"), k = l(() => e.centerLeadingIcon && !a.value ? "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-w-full sl-h-full" : e.centerLeadingIcon ? "sl-h-full sl-flex sl-items-center sl-justify-center" : a.value ? "sl-flex sl-items-center sl-justify-center sl-flex-shrink-0" : "sl-flex sl-items-center sl-justify-center"), R = () => {
|
|
144
|
-
h("button-click");
|
|
135
|
+
return e.centerLeadingIcon && !a.value ? l.push("sl-w-full", "sl-h-full") : (e.leadingIcon || e.inlineFlex || e.trailingIcon) && l.push("sl-inline-flex"), l.filter(Boolean);
|
|
136
|
+
}), W = r(() => e.trailingOverlay ? S : te), A = r(() => e.trailingOverlay ? `${S}` : "sl-flex sl-items-center sl-flex-shrink-0"), p = r(() => e.centerLeadingIcon && !a.value ? "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-w-full sl-h-full" : e.centerLeadingIcon ? "sl-h-full sl-flex sl-items-center sl-justify-center" : a.value ? "sl-flex sl-items-center sl-justify-center sl-flex-shrink-0" : "sl-flex sl-items-center sl-justify-center"), b = x(!1), R = () => {
|
|
137
|
+
v("button-click");
|
|
145
138
|
}, U = () => {
|
|
146
|
-
|
|
139
|
+
b.value = !0, v("hover-enter");
|
|
147
140
|
}, q = () => {
|
|
148
|
-
|
|
149
|
-
}, D = e.showLoadingTitle || !1
|
|
150
|
-
|
|
141
|
+
b.value = !1, v("hover-leave");
|
|
142
|
+
}, D = e.showLoadingTitle || !1, H = r(() => {
|
|
143
|
+
if (e.theme === "primary") {
|
|
144
|
+
const s = "rgb(var(--sl-color-primary-400-rgb, 113 126 205))";
|
|
145
|
+
if (e.outlined) {
|
|
146
|
+
const d = {
|
|
147
|
+
color: "var(--sl-color-primary-600, #3e4b9a)",
|
|
148
|
+
borderColor: "var(--sl-color-primary-600, #3e4b9a)",
|
|
149
|
+
"--tw-ring-color": s,
|
|
150
|
+
transition: "background-color 150ms ease-in-out, border-color 150ms ease-in-out"
|
|
151
|
+
};
|
|
152
|
+
return b.value ? {
|
|
153
|
+
...d,
|
|
154
|
+
backgroundColor: "rgb(var(--sl-color-primary-50-rgb, 237 239 249) / 0.5)",
|
|
155
|
+
borderColor: "rgb(var(--sl-color-primary-400-rgb, 113 126 205))"
|
|
156
|
+
} : d;
|
|
157
|
+
}
|
|
158
|
+
const l = {
|
|
159
|
+
backgroundColor: "var(--sl-color-primary-600, #3e4b9a)",
|
|
160
|
+
"--tw-ring-color": s,
|
|
161
|
+
transition: "background-color 150ms ease-in-out"
|
|
162
|
+
};
|
|
163
|
+
return b.value ? {
|
|
164
|
+
...l,
|
|
165
|
+
backgroundColor: "rgb(var(--sl-color-primary-500-rgb, 77 94 192))"
|
|
166
|
+
} : l;
|
|
167
|
+
}
|
|
168
|
+
return {};
|
|
169
|
+
});
|
|
170
|
+
return (s, l) => (t(), o("button", {
|
|
151
171
|
ref_key: "buttonRef",
|
|
152
|
-
ref:
|
|
172
|
+
ref: B,
|
|
153
173
|
type: "button",
|
|
154
174
|
disabled: e.disabled,
|
|
155
|
-
class: n(
|
|
156
|
-
style:
|
|
175
|
+
class: n(V.value),
|
|
176
|
+
style: X(H.value),
|
|
157
177
|
"data-theme": e.theme,
|
|
158
178
|
"data-outlined": e.outlined || void 0,
|
|
159
179
|
onClick: R,
|
|
160
180
|
onMouseenter: U,
|
|
161
181
|
onMouseleave: q
|
|
162
182
|
}, [
|
|
163
|
-
e.centerLeadingIcon && !a.value ? (
|
|
183
|
+
e.centerLeadingIcon && !a.value ? (t(), o("div", {
|
|
164
184
|
key: 0,
|
|
165
|
-
class: n(
|
|
185
|
+
class: n(p.value)
|
|
166
186
|
}, [
|
|
167
|
-
|
|
168
|
-
], 2)) : (
|
|
169
|
-
|
|
187
|
+
g(s.$slots, "leading-icon", {}, void 0, !0)
|
|
188
|
+
], 2)) : (t(), o(Z, { key: 1 }, [
|
|
189
|
+
m.value && c.value ? (t(), o("div", {
|
|
170
190
|
key: 0,
|
|
171
|
-
class: n(["sl-flex sl-items-center sl-justify-center", [
|
|
191
|
+
class: n(["sl-flex sl-items-center sl-justify-center", [p.value, a.value ? "" : "sl-h-full sl-w-full"]])
|
|
172
192
|
}, [
|
|
173
|
-
|
|
174
|
-
theme:
|
|
175
|
-
size:
|
|
193
|
+
w(y(h), {
|
|
194
|
+
theme: k.value,
|
|
195
|
+
size: I.value
|
|
176
196
|
}, null, 8, ["theme", "size"])
|
|
177
|
-
], 2)) : e.leadingIcon ? (
|
|
197
|
+
], 2)) : e.leadingIcon ? (t(), o("div", {
|
|
178
198
|
key: 1,
|
|
179
|
-
class: n(
|
|
199
|
+
class: n(p.value)
|
|
180
200
|
}, [
|
|
181
|
-
|
|
182
|
-
], 2)) :
|
|
201
|
+
g(s.$slots, "leading-icon", {}, void 0, !0)
|
|
202
|
+
], 2)) : u("", !0)
|
|
183
203
|
], 64)),
|
|
184
|
-
a.value ? (
|
|
204
|
+
a.value ? (t(), o("span", {
|
|
185
205
|
key: 2,
|
|
186
206
|
class: n(["sl-flex-1 sl-text-center", [
|
|
187
|
-
{ "sl-truncate sl-max-w-[150px]":
|
|
207
|
+
{ "sl-truncate sl-max-w-[150px]": C.truncateLabel },
|
|
188
208
|
{ "sl-mx-auto": !e.leadingIcon && !e.trailingIcon }
|
|
189
209
|
]])
|
|
190
|
-
},
|
|
210
|
+
}, ee(e.label), 3)) : !P.value && (!m.value || !c.value) && !e.centerLeadingIcon ? (t(), o("span", {
|
|
191
211
|
key: 3,
|
|
192
212
|
class: n(["sl-flex", e.centerLabel || !e.leadingIcon && !e.trailingIcon ? "sl-justify-center sl-items-center sl-flex-1" : "sl-flex-1"])
|
|
193
213
|
}, [
|
|
194
|
-
|
|
195
|
-
], 2)) :
|
|
196
|
-
e.trailingLoading &&
|
|
214
|
+
g(s.$slots, "default", {}, void 0, !0)
|
|
215
|
+
], 2)) : u("", !0),
|
|
216
|
+
e.trailingLoading && c.value ? (t(), o("div", {
|
|
197
217
|
key: 4,
|
|
198
218
|
class: n(W.value)
|
|
199
219
|
}, [
|
|
200
|
-
|
|
201
|
-
theme:
|
|
220
|
+
w(y(h), {
|
|
221
|
+
theme: k.value,
|
|
202
222
|
size: e.trailingLoadingSize || "sm"
|
|
203
223
|
}, null, 8, ["theme", "size"])
|
|
204
|
-
], 2)) : e.trailingIcon ? (
|
|
224
|
+
], 2)) : e.trailingIcon ? (t(), o("div", {
|
|
205
225
|
key: 5,
|
|
206
226
|
class: n(A.value)
|
|
207
227
|
}, [
|
|
208
|
-
|
|
209
|
-
], 2)) :
|
|
210
|
-
|
|
211
|
-
|
|
228
|
+
g(s.$slots, "trailing-icon", {}, void 0, !0)
|
|
229
|
+
], 2)) : u("", !0),
|
|
230
|
+
Y("div", re, [
|
|
231
|
+
g(s.$slots, "badge", {}, void 0, !0)
|
|
212
232
|
]),
|
|
213
|
-
|
|
233
|
+
c.value && !m.value && !e.trailingLoading ? (t(), o("div", {
|
|
214
234
|
key: 6,
|
|
215
|
-
class: n(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-rounded sl-z-10",
|
|
235
|
+
class: n(["sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-rounded sl-z-10", j.value])
|
|
216
236
|
}, [
|
|
217
|
-
|
|
218
|
-
theme:
|
|
219
|
-
size:
|
|
237
|
+
w(y(h), {
|
|
238
|
+
theme: k.value,
|
|
239
|
+
size: I.value
|
|
220
240
|
}, null, 8, ["theme", "size"]),
|
|
221
|
-
|
|
222
|
-
], 2)) :
|
|
223
|
-
], 46,
|
|
241
|
+
y(D) ? (t(), o("p", oe, "Loading...")) : u("", !0)
|
|
242
|
+
], 2)) : u("", !0)
|
|
243
|
+
], 46, le));
|
|
224
244
|
}
|
|
225
|
-
}),
|
|
245
|
+
}), de = /* @__PURE__ */ se(ne, [["__scopeId", "data-v-d2387b44"]]);
|
|
226
246
|
export {
|
|
227
|
-
|
|
247
|
+
de as default
|
|
228
248
|
};
|
|
@@ -1,35 +1,44 @@
|
|
|
1
|
-
import { useCalendar as
|
|
2
|
-
import { C as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useFormValidation as
|
|
5
|
-
import { i as
|
|
6
|
-
import { useModal as
|
|
7
|
-
import { useNotifications as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { useCalendar as a } from "./useCalendar.js";
|
|
2
|
+
import { C as r, u as t } from "../useCollectionEditor-BYyoAT0U.js";
|
|
3
|
+
import { c as n, u } from "../useEventSegments-B-r_8zCW.js";
|
|
4
|
+
import { useFormValidation as S } from "./useFormValidation.js";
|
|
5
|
+
import { i as c, u as l } from "../useMap-CM59TKX6.js";
|
|
6
|
+
import { useModal as x } from "./useModal.js";
|
|
7
|
+
import { useNotifications as g } from "./useNotifications.js";
|
|
8
|
+
import { S as z, d as T, a as b, g as v, s as E, b as h, c as w, u as L } from "../useScreenSize-Kr6cn5Zr.js";
|
|
9
|
+
import { u as U } from "../useSimpleTabs-CSgkChEU.js";
|
|
10
|
+
import { f as k, i as y, s as A, a as F, t as I, c as K, b as N, u as P } from "../useStringTransform-CSr7nZWg.js";
|
|
11
|
+
import { useTabs as W } from "./useTabs.js";
|
|
12
|
+
import { presetThemes as q, useTheme as B } from "./useTheme.js";
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
v as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
r as CollectionItemStatus,
|
|
15
|
+
z as ScreenSizeKey,
|
|
16
|
+
n as calculateEventLanes,
|
|
17
|
+
T as detectScreenSize,
|
|
18
|
+
k as formatUid,
|
|
19
|
+
b as getAvailablePreviewSizes,
|
|
20
|
+
v as getScreenSizeConfig,
|
|
21
|
+
y as isUidLike,
|
|
22
|
+
c as isValidCoordinate,
|
|
23
|
+
q as presetThemes,
|
|
24
|
+
E as screenSizeConfigs,
|
|
25
|
+
A as slugToReadable,
|
|
26
|
+
F as toSentenceCase,
|
|
27
|
+
I as toTitleCase,
|
|
28
|
+
K as transformString,
|
|
29
|
+
N as truncateString,
|
|
30
|
+
a as useCalendar,
|
|
31
|
+
t as useCollectionEditor,
|
|
26
32
|
u as useEventSegments,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
S as useFormValidation,
|
|
34
|
+
l as useMap,
|
|
35
|
+
x as useModal,
|
|
36
|
+
g as useNotifications,
|
|
37
|
+
h as useScreenSize,
|
|
38
|
+
w as useScreenSizeContext,
|
|
39
|
+
U as useSimpleTabs,
|
|
40
|
+
P as useStringTransform,
|
|
41
|
+
W as useTabs,
|
|
42
|
+
B as useTheme,
|
|
43
|
+
L as useWindowSize
|
|
35
44
|
};
|