@stachelock/ui 0.6.10 → 0.6.12
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/{CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js → CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js} +1 -1
- package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js → ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js} +3 -3
- package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js → DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js} +5 -4
- package/dist/{EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js → EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js} +5 -5
- package/dist/{FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js → FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js} +1 -1
- package/dist/{ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js → ImageDropzoneInput.vue_vue_type_script_setup_true_lang-CsAclXd8.js} +104 -100
- package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.js → InlineTabs.vue_vue_type_script_setup_true_lang-DGGJem-g.js} +1 -1
- package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js → SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js} +15 -14
- package/dist/{SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js → SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js} +19 -18
- package/dist/{SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js → SwitchInput.vue_vue_type_script_setup_true_lang-r8ZwU1Zy.js} +1 -1
- package/dist/{SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js → SwitchInputGroup.vue_vue_type_script_setup_true_lang-PgsXeiig.js} +1 -1
- package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js → TabGroup.vue_vue_type_script_setup_true_lang-DTWW7kYh.js} +1 -1
- package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-B8e7kxad.js} +1 -1
- package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js → TabsInPills.vue_vue_type_script_setup_true_lang-Dzi4ENL1.js} +1 -1
- package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js → TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js} +65 -62
- package/dist/{TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js → TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js} +3 -2
- package/dist/calendars/CalendarDashboard.js +1 -1
- package/dist/calendars/CalendarHeader.js +1 -1
- package/dist/components/CloudinaryImage.js +1 -1
- package/dist/forms/FormFieldWrapper.js +2 -2
- package/dist/index.js +19 -19
- package/dist/inputs/AddressInput.js +37 -36
- package/dist/inputs/ComboboxInput.js +1 -1
- package/dist/inputs/DatepickerInput.js +1 -1
- package/dist/inputs/EmailInput.js +1 -1
- package/dist/inputs/FileDropzoneInput.js +1 -1
- package/dist/inputs/ImageDropzoneInput.js +1 -1
- package/dist/inputs/PhoneInput.js +3 -3
- package/dist/inputs/RichTextInput.js +1 -1
- package/dist/inputs/SelectInput.js +1 -1
- package/dist/inputs/SelectTextInput.js +1 -1
- package/dist/inputs/SwitchInput.js +1 -1
- package/dist/inputs/SwitchInputGroup.js +1 -1
- package/dist/inputs/TagifyInput.js +1 -1
- package/dist/inputs/TextAreaInput.js +1 -1
- package/dist/inputs/TextInput.js +32 -27
- package/dist/src/components/forms/DynamicForm.d.ts +1 -1
- package/dist/src/components/inputs/SwitchInput.d.ts +1 -1
- package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +6 -6
- package/dist/src/components/profile-inputs/NamesInput.d.ts +7 -4
- package/dist/src/composables/useCollectionEditor.d.ts +4 -2
- package/dist/src/composables/useFormValidation.d.ts +1 -1
- package/dist/src/types/core.d.ts +5 -5
- package/dist/src/utils/component-registry.d.ts +6 -2
- package/dist/src/views/components/index.d.ts +1 -1
- package/dist/src/views/index.d.ts +1 -0
- package/dist/src/views/inputs/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/tabs/InlineTabs.js +1 -1
- package/dist/tabs/TabGroup.js +1 -1
- package/dist/tabs/TabGroupUnderline.js +1 -1
- package/dist/tabs/TabsInPills.js +1 -1
- package/dist/tabs/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as w, onMounted as F, onBeforeUnmount as _, reactive as ee, toRefs as te, computed as u, watch as le, createElementBlock as L, openBlock as
|
|
1
|
+
import { defineComponent as Z, ref as w, onMounted as F, onBeforeUnmount as _, reactive as ee, toRefs as te, computed as u, watch as le, createElementBlock as L, openBlock as g, createVNode as v, unref as c, createSlots as se, withCtx as f, createElementVNode as d, normalizeClass as m, createBlock as O, toDisplayString as V, Teleport as ae, Transition as ne, normalizeStyle as ie, Fragment as oe, renderList as re, createCommentVNode as de, resolveDynamicComponent as ue } from "vue";
|
|
2
2
|
import { ChevronUpDownIcon as ce, CheckIcon as fe } from "@heroicons/vue/20/solid";
|
|
3
|
-
import { Listbox as ve, ListboxButton as xe, ListboxOptions as
|
|
3
|
+
import { Listbox as ve, ListboxButton as xe, ListboxOptions as ge, ListboxOption as me } from "@headlessui/vue";
|
|
4
4
|
import pe from "./forms/FormFieldWrapper.js";
|
|
5
5
|
import { g as ye } from "./id-DafBB_QF.js";
|
|
6
6
|
const he = {
|
|
@@ -39,7 +39,8 @@ const he = {
|
|
|
39
39
|
disabled: { type: Boolean, default: !1 },
|
|
40
40
|
disabledMessage: { type: String, default: "" },
|
|
41
41
|
colorfulValidation: { type: Boolean, default: !0 },
|
|
42
|
-
showValidCheck: { type: Boolean, default: !
|
|
42
|
+
showValidCheck: { type: Boolean, default: !1 },
|
|
43
|
+
// Disabled by default since chevron icon would overlap
|
|
43
44
|
optional: { type: Boolean, default: !1 }
|
|
44
45
|
},
|
|
45
46
|
emits: ["update:value", "update:validity"],
|
|
@@ -154,7 +155,7 @@ const he = {
|
|
|
154
155
|
{ deep: !0 }
|
|
155
156
|
), F(() => {
|
|
156
157
|
H.value && k();
|
|
157
|
-
}), n.validateOnMount && (p.value = !0, k()), (e, t) => (
|
|
158
|
+
}), n.validateOnMount && (p.value = !0, k()), (e, t) => (g(), L("div", he, [
|
|
158
159
|
v(pe, {
|
|
159
160
|
id: c(U),
|
|
160
161
|
name: s.name,
|
|
@@ -172,7 +173,7 @@ const he = {
|
|
|
172
173
|
}, se({
|
|
173
174
|
default: f(() => [
|
|
174
175
|
d("div", {
|
|
175
|
-
class:
|
|
176
|
+
class: m(["sl-flex sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset focus-within:sl-ring-2 focus-within:sl-ring-inset", [
|
|
176
177
|
J.value,
|
|
177
178
|
s.disabled ? "sl-bg-gray-50 dark:sl-bg-slate-800" : "sl-bg-white dark:sl-bg-slate-800"
|
|
178
179
|
]])
|
|
@@ -187,8 +188,8 @@ const he = {
|
|
|
187
188
|
v(c(xe), {
|
|
188
189
|
ref_key: "listboxButtonRef",
|
|
189
190
|
ref: R,
|
|
190
|
-
class:
|
|
191
|
-
"sl-relative sl-cursor-default sl-rounded-l-md sl-border-0 sl-py-1.5 sl-pl-
|
|
191
|
+
class: m([
|
|
192
|
+
"sl-relative sl-cursor-default sl-rounded-l-md sl-border-0 sl-py-1.5 sl-pl-2 sl-pr-10 sl-text-left sl-text-sm sl-leading-6 sl-bg-transparent",
|
|
192
193
|
"focus:sl-outline-none focus:sl-ring-0",
|
|
193
194
|
s.disabled ? "sl-cursor-not-allowed sl-text-gray-500 dark:sl-text-slate-400" : "sl-text-gray-900 dark:sl-text-slate-100"
|
|
194
195
|
]),
|
|
@@ -198,7 +199,7 @@ const he = {
|
|
|
198
199
|
}, {
|
|
199
200
|
default: f(() => [
|
|
200
201
|
d("span", {
|
|
201
|
-
class:
|
|
202
|
+
class: m(["sl-block sl-truncate sl-min-w-[80px] sl-max-w-[200px]", B.value ? "" : "sl-text-gray-400 dark:sl-text-slate-500"])
|
|
202
203
|
}, V(B.value?.label || s.select?.placeholder || "Select…"), 3),
|
|
203
204
|
d("span", ke, [
|
|
204
205
|
v(c(ce), {
|
|
@@ -209,34 +210,34 @@ const he = {
|
|
|
209
210
|
]),
|
|
210
211
|
_: 1
|
|
211
212
|
}, 8, ["class"]),
|
|
212
|
-
(
|
|
213
|
+
(g(), O(ae, { to: "body" }, [
|
|
213
214
|
v(ne, {
|
|
214
215
|
"leave-active-class": "sl-transition sl-duration-100 sl-ease-in",
|
|
215
216
|
"leave-from-class": "sl-opacity-100",
|
|
216
217
|
"leave-to-class": "sl-opacity-0"
|
|
217
218
|
}, {
|
|
218
219
|
default: f(() => [
|
|
219
|
-
v(c(
|
|
220
|
+
v(c(ge), {
|
|
220
221
|
class: "sl-fixed sl-z-[9999] sl-max-h-56 sl-overflow-auto sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-py-1 sl-text-base sl-shadow-lg dark:sl-shadow-slate-900/50 sl-ring-1 sl-ring-black sl-ring-opacity-5 dark:sl-ring-slate-700 focus:sl-outline-none sm:sl-text-sm",
|
|
221
222
|
style: ie(I.value)
|
|
222
223
|
}, {
|
|
223
224
|
default: f(() => [
|
|
224
|
-
(
|
|
225
|
+
(g(!0), L(oe, null, re(N.value, (l) => (g(), O(c(me), {
|
|
225
226
|
key: l.value,
|
|
226
227
|
value: l,
|
|
227
228
|
as: "template"
|
|
228
229
|
}, {
|
|
229
230
|
default: f(({ active: r, selected: o }) => [
|
|
230
231
|
d("li", {
|
|
231
|
-
class:
|
|
232
|
+
class: m([
|
|
232
233
|
"sl-relative sl-cursor-default sl-select-none sl-py-2 sl-pl-3 sl-pr-9",
|
|
233
234
|
r ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
|
|
234
235
|
])
|
|
235
236
|
}, [
|
|
236
237
|
d("span", {
|
|
237
|
-
class:
|
|
238
|
+
class: m(["sl-block sl-truncate", o ? "sl-font-medium" : "sl-font-normal"])
|
|
238
239
|
}, V(l.label), 3),
|
|
239
|
-
o ? (
|
|
240
|
+
o ? (g(), L("span", we, [
|
|
240
241
|
v(c(fe), {
|
|
241
242
|
class: "sl-h-5 sl-w-5",
|
|
242
243
|
"aria-hidden": "true"
|
|
@@ -260,9 +261,9 @@ const he = {
|
|
|
260
261
|
t[1] || (t[1] = d("div", { class: "sl-w-px sl-bg-gray-200 dark:sl-bg-slate-700 sl-self-stretch" }, null, -1)),
|
|
261
262
|
d("div", Se, [
|
|
262
263
|
d("input", {
|
|
263
|
-
class:
|
|
264
|
-
"sl-block sl-w-full sl-text-sm focus:sl-outline-none focus:sl-ring-0 sl-border-0 sl-py-1.5 sl-pl-
|
|
265
|
-
"sl-
|
|
264
|
+
class: m([
|
|
265
|
+
"sl-block sl-w-full sl-text-sm sl-leading-6 focus:sl-outline-none focus:sl-ring-0 sl-border-0 sl-py-1.5 sl-pl-2 sl-pr-10 sl-rounded-r-md sl-bg-transparent",
|
|
266
|
+
"placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500",
|
|
266
267
|
s.disabled ? "sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-text-gray-900 dark:sl-text-slate-100"
|
|
267
268
|
]),
|
|
268
269
|
"aria-invalid": h.value || void 0,
|
|
@@ -284,7 +285,7 @@ const he = {
|
|
|
284
285
|
s.labelIconLeft ? {
|
|
285
286
|
name: "prefix",
|
|
286
287
|
fn: f(() => [
|
|
287
|
-
(
|
|
288
|
+
(g(), O(ue(s.labelIconLeft), { class: "sl-h-4 sl-w-4 sl-text-yellow-300" }))
|
|
288
289
|
]),
|
|
289
290
|
key: "0"
|
|
290
291
|
} : void 0,
|
|
@@ -45,7 +45,7 @@ const z = { class: "sl-w-full" }, U = { class: "sl-flex sl-items-center sl-justi
|
|
|
45
45
|
},
|
|
46
46
|
emits: ["update:modelValue", "blur", "focus"],
|
|
47
47
|
setup(e, { expose: L, emit: T }) {
|
|
48
|
-
const s = e, f = T, u = g(), m = I(`sl-${s.name}`), { value: C, errorMessage: F, handleChange: y, handleBlur: H, meta: x } = O(
|
|
48
|
+
const s = e, f = T, u = g(null), m = I(`sl-${s.name}`), { value: C, errorMessage: F, handleChange: y, handleBlur: H, meta: x } = O(
|
|
49
49
|
() => s.name,
|
|
50
50
|
s.rules,
|
|
51
51
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as D, ref as U, watch as y, createElementBlock as a, openBlock as t, createElementVNode as C, createCommentVNode as r, toDisplayString as c, normalizeClass as v, Fragment as g, renderList as b, createVNode as p } from "vue";
|
|
2
|
-
import { _ as f } from "./SwitchInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as f } from "./SwitchInput.vue_vue_type_script_setup_true_lang-r8ZwU1Zy.js";
|
|
3
3
|
const L = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sl-bg-white dark:sl-bg-slate-800 sl-shadow sm:sl-rounded-lg sl-w-full",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, createElementBlock as a, openBlock as o, createCommentVNode as d, createVNode as u, unref as s, withCtx as c, createElementVNode as m, Fragment as j, renderList as z, createBlock as p, normalizeClass as _, createTextVNode as A, toDisplayString as k, renderSlot as y, KeepAlive as F, resolveDynamicComponent as K, mergeProps as U, toHandlers as q } from "vue";
|
|
2
2
|
import { TabGroup as J, TabList as Q, Tab as R } from "@headlessui/vue";
|
|
3
3
|
import { useTabs as W } from "./composables/useTabs.js";
|
|
4
|
-
import { _ as X } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as X } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
|
|
5
5
|
const Y = { class: "sl-w-full" }, Z = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sl-block sm:sl-hidden sl-mb-4"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as P, computed as x, createElementBlock as n, openBlock as t, createCommentVNode as r, createVNode as v, toDisplayString as m, unref as l, withCtx as F, createElementVNode as c, Fragment as L, renderList as U, normalizeClass as f, createTextVNode as z, renderSlot as g, createBlock as y, KeepAlive as A, resolveDynamicComponent as K, mergeProps as j, toHandlers as q } from "vue";
|
|
2
2
|
import { TabGroup as J } from "@headlessui/vue";
|
|
3
3
|
import { useTabs as Q } from "./composables/useTabs.js";
|
|
4
|
-
import { _ as R } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as R } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
|
|
5
5
|
const W = { class: "sl-w-full" }, X = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sl-text-lg sl-font-semibold sl-text-gray-900 dark:sl-text-white sl-mb-4"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, createElementBlock as l, openBlock as t, createElementVNode as o, renderSlot as m, createVNode as V, unref as s, Fragment as r, renderList as i, normalizeClass as u, withModifiers as w, createTextVNode as N, createCommentVNode as h, toDisplayString as p } from "vue";
|
|
2
|
-
import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
|
|
3
3
|
import { u as $ } from "./useSimpleTabs-CSgkChEU.js";
|
|
4
4
|
const B = { class: "sl-w-full" }, E = { class: "sm:sl-hidden" }, U = { class: "sl-hidden sm:sl-block sl-overflow-x-auto" }, z = {
|
|
5
5
|
class: "sl-flex sl-flex-nowrap sl-space-x-4",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, ref as v, watch as A, onMounted as F, createBlock as w, openBlock as u, withCtx as g, createElementVNode as d, normalizeClass as k, createElementBlock as c, Fragment as T, renderList as S, withDirectives as C, toDisplayString as h, normalizeStyle as Q, withKeys as B, withModifiers as y, vModelText as K, createVNode as U, unref as R, createCommentVNode as L, renderSlot as N, nextTick as W } from "vue";
|
|
2
2
|
import { XMarkIcon as X } from "@heroicons/vue/20/solid";
|
|
3
|
-
import { _ } from "./UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import { _ as j } from "./UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js";
|
|
4
|
+
import G from "./forms/FormFieldWrapper.js";
|
|
5
|
+
const H = { key: 0 }, P = ["onUpdate:modelValue", "placeholder", "disabled", "onKeydown", "onBlur"], Y = ["onClick", "disabled"], Z = ["placeholder", "disabled", "onKeydown"], _ = { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-3 sl-pointer-events-auto" }, ee = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "sl-absolute sl-z-50 sl-mt-1 sl-max-h-60 sl-w-full sl-overflow-auto sl-rounded-md sl-bg-white sl-py-1 sl-text-base sl-shadow-lg sl-ring-1 sl-ring-black sl-ring-opacity-5 focus:sl-outline-none sm:sl-text-sm"
|
|
8
|
-
},
|
|
8
|
+
}, te = ["onClick"], le = { class: "sl-flex" }, se = { class: "sl-truncate sl-font-semibold" }, ae = { class: "sl-block sl-truncate" }, ne = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "sl-ml-2 sl-truncate sl-text-gray-500"
|
|
11
|
-
},
|
|
11
|
+
}, de = /* @__PURE__ */ z({
|
|
12
12
|
__name: "TagifyInput",
|
|
13
13
|
props: {
|
|
14
14
|
items: {
|
|
@@ -81,29 +81,29 @@ const G = { key: 0 }, H = ["onUpdate:modelValue", "placeholder", "disabled", "on
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
emits: ["update:value", "update:query", "invalid-tag"],
|
|
84
|
-
setup(s, { expose:
|
|
85
|
-
const t = s, m =
|
|
86
|
-
|
|
84
|
+
setup(s, { expose: D, emit: I }) {
|
|
85
|
+
const t = s, m = I, o = v(""), p = v([]), n = v(JSON.parse(JSON.stringify(t.value))), f = v(!1);
|
|
86
|
+
A(
|
|
87
87
|
() => t.value,
|
|
88
88
|
(e) => {
|
|
89
89
|
JSON.stringify(e) !== JSON.stringify(n.value) && (n.value = JSON.parse(JSON.stringify(e)));
|
|
90
90
|
},
|
|
91
91
|
{ deep: !0 }
|
|
92
92
|
);
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
m("update:query",
|
|
96
|
-
const e =
|
|
97
|
-
|
|
93
|
+
const $ = (e) => e[t.itemSubtext] || e[t.itemText], q = (e) => e[t.itemSubtext] ? e[t.itemText] : void 0, E = (e) => e[t.tagDisplayKey] || e[t.itemText], J = () => {
|
|
94
|
+
if (o.value && o.value.length > 0) {
|
|
95
|
+
m("update:query", o.value);
|
|
96
|
+
const e = o.value.toLowerCase();
|
|
97
|
+
p.value = t.items.filter((a) => a[t.itemText]?.toLowerCase().includes(e) || a[t.itemSubtext]?.toLowerCase().includes(e)), f.value = !0;
|
|
98
98
|
} else
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
const e =
|
|
99
|
+
p.value = [], f.value = !1;
|
|
100
|
+
}, M = () => {
|
|
101
|
+
const e = o.value.trim();
|
|
102
102
|
if (e === "")
|
|
103
103
|
return;
|
|
104
104
|
let a = null;
|
|
105
105
|
const l = e.toLowerCase(), r = t.items.find(
|
|
106
|
-
(
|
|
106
|
+
(i) => i[t.itemText]?.toLowerCase() === l || i[t.itemSubtext]?.toLowerCase() === l
|
|
107
107
|
);
|
|
108
108
|
if (r)
|
|
109
109
|
a = { ...r };
|
|
@@ -112,16 +112,16 @@ const G = { key: 0 }, H = ["onUpdate:modelValue", "placeholder", "disabled", "on
|
|
|
112
112
|
else
|
|
113
113
|
return;
|
|
114
114
|
n.value.some(
|
|
115
|
-
(
|
|
116
|
-
) || (n.value.push(a), m("update:value", n.value)),
|
|
117
|
-
},
|
|
115
|
+
(i) => i[t.itemText] === a[t.itemText]
|
|
116
|
+
) || (n.value.push(a), m("update:value", n.value)), o.value = "", p.value = [], f.value = !1;
|
|
117
|
+
}, O = (e) => {
|
|
118
118
|
const a = e[t.itemText].trim();
|
|
119
119
|
n.value.some(
|
|
120
120
|
(l) => l[t.itemText] === a
|
|
121
|
-
) || (n.value.push({ ...e }), m("update:value", n.value)),
|
|
121
|
+
) || (n.value.push({ ...e }), m("update:value", n.value)), o.value = "", p.value = [], f.value = !1;
|
|
122
122
|
}, b = (e) => {
|
|
123
123
|
n.value.splice(e, 1), m("update:value", n.value);
|
|
124
|
-
},
|
|
124
|
+
}, V = (e) => {
|
|
125
125
|
n.value[e].isEditing = !0, W(() => {
|
|
126
126
|
});
|
|
127
127
|
}, x = (e) => {
|
|
@@ -136,11 +136,11 @@ const G = { key: 0 }, H = ["onUpdate:modelValue", "placeholder", "disabled", "on
|
|
|
136
136
|
a[t.itemText] = l, m("update:value", n.value);
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
return
|
|
140
|
-
|
|
141
|
-
}),
|
|
139
|
+
return F(() => {
|
|
140
|
+
p.value = [];
|
|
141
|
+
}), D({
|
|
142
142
|
selectedTags: n
|
|
143
|
-
}), (e, a) => (u(), w(
|
|
143
|
+
}), (e, a) => (u(), w(G, {
|
|
144
144
|
id: s.name,
|
|
145
145
|
name: s.name,
|
|
146
146
|
label: s.label,
|
|
@@ -150,74 +150,77 @@ const G = { key: 0 }, H = ["onUpdate:modelValue", "placeholder", "disabled", "on
|
|
|
150
150
|
optional: s.optional
|
|
151
151
|
}, {
|
|
152
152
|
"tertiary-label-overlay": g(() => [
|
|
153
|
-
|
|
153
|
+
N(e.$slots, "tertiary-overlay")
|
|
154
154
|
]),
|
|
155
155
|
default: g(() => [
|
|
156
156
|
d("div", {
|
|
157
|
-
class:
|
|
157
|
+
class: k(["sl-flex sl-flex-wrap sl-items-center sl-gap-2 sl-rounded-md sl-bg-white sl-py-1.5 sl-ring-1 sl-ring-inset sl-ring-gray-300 dark:sl-ring-slate-600 dark:sl-bg-slate-800 sm:sl-text-sm sm:sl-leading-6", s.inline ? null : "sl-shadow-sm focus-within:sl-ring-2 focus-within:sl-ring-stachelock-600"])
|
|
158
158
|
}, [
|
|
159
|
-
(u(!0), c(T, null, S(n.value, (l, r) => (u(), w(
|
|
159
|
+
(u(!0), c(T, null, S(n.value, (l, r) => (u(), w(j, {
|
|
160
160
|
key: r,
|
|
161
|
-
onClick: (
|
|
161
|
+
onClick: (i) => V(r),
|
|
162
162
|
theme: "primary",
|
|
163
|
-
size: "sm"
|
|
163
|
+
size: "sm",
|
|
164
|
+
class: "sl-ml-2"
|
|
164
165
|
}, {
|
|
165
166
|
default: g(() => [
|
|
166
|
-
l.isEditing ?
|
|
167
|
+
l.isEditing ? C((u(), c("input", {
|
|
167
168
|
key: 1,
|
|
168
169
|
ref_for: !0,
|
|
169
170
|
ref: "editInput",
|
|
170
|
-
"onUpdate:modelValue": (
|
|
171
|
+
"onUpdate:modelValue": (i) => l[t.itemText] = i,
|
|
171
172
|
placeholder: s.placeholder,
|
|
172
173
|
disabled: s.disabled,
|
|
173
|
-
onKeydown:
|
|
174
|
-
onBlur: (
|
|
175
|
-
class: "sl-bg-transparent sl-border-none sl-outline-none sl-text-stachelock-600 sl-text-sm placeholder:sl-text-
|
|
174
|
+
onKeydown: B(y((i) => x(r), ["prevent"]), ["enter"]),
|
|
175
|
+
onBlur: (i) => x(r),
|
|
176
|
+
class: "sl-bg-transparent sl-border-none sl-outline-none sl-text-stachelock-600 sl-text-sm placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 focus:sl-ring-0 focus:sl-ring-stachelock-600 focus:sl-rounded-lg",
|
|
176
177
|
style: Q({ width: l[t.itemText].length + 4 + "ch" })
|
|
177
|
-
}, null, 44,
|
|
178
|
-
[
|
|
179
|
-
]) : (u(), c("span",
|
|
178
|
+
}, null, 44, P)), [
|
|
179
|
+
[K, l[t.itemText]]
|
|
180
|
+
]) : (u(), c("span", H, h(E(l)), 1)),
|
|
180
181
|
d("button", {
|
|
181
182
|
type: "button",
|
|
182
183
|
class: "sl-ml-2 sl-text-stachelock-600 hover:sl-text-stachelock-400 focus:sl-outline-none",
|
|
183
|
-
onClick: y((
|
|
184
|
+
onClick: y((i) => b(r), ["stop"]),
|
|
184
185
|
disabled: s.disabled
|
|
185
186
|
}, [
|
|
186
187
|
U(R(X), { class: "sl-h-4 sl-w-4" })
|
|
187
|
-
], 8,
|
|
188
|
+
], 8, Y)
|
|
188
189
|
]),
|
|
189
190
|
_: 2
|
|
190
191
|
}, 1032, ["onClick"]))), 128)),
|
|
191
|
-
d("div",
|
|
192
|
-
k(
|
|
192
|
+
d("div", {
|
|
193
|
+
class: k(["sl-flex-1 sl-min-w-0 sl-relative", n.value.length === 0 ? "sl-pl-2" : ""])
|
|
194
|
+
}, [
|
|
195
|
+
C(d("input", {
|
|
193
196
|
ref: "input",
|
|
194
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) =>
|
|
197
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
|
|
195
198
|
placeholder: s.placeholder,
|
|
196
|
-
onInput:
|
|
199
|
+
onInput: J,
|
|
197
200
|
disabled: s.disabled,
|
|
198
|
-
onKeydown:
|
|
199
|
-
class: "sl-w-full sl-border-none sl-outline-none sl-rounded-md focus:sl-ring-0 sl-text-sm sl-
|
|
201
|
+
onKeydown: B(y(M, ["prevent"]), ["enter"]),
|
|
202
|
+
class: "sl-w-full sl-border-none sl-outline-none sl-rounded-md sl-bg-transparent focus:sl-ring-0 sl-text-sm sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500 sl-pr-12"
|
|
200
203
|
}, null, 40, Z), [
|
|
201
|
-
[
|
|
204
|
+
[K, o.value]
|
|
202
205
|
]),
|
|
203
|
-
d("div",
|
|
204
|
-
|
|
206
|
+
d("div", _, [
|
|
207
|
+
N(e.$slots, "input-overlay")
|
|
205
208
|
]),
|
|
206
|
-
|
|
207
|
-
(u(!0), c(T, null, S(
|
|
209
|
+
f.value && !s.disabled ? (u(), c("div", ee, [
|
|
210
|
+
(u(!0), c(T, null, S(p.value, (l) => (u(), c("div", {
|
|
208
211
|
key: l[s.itemKey],
|
|
209
212
|
class: "sl-cursor-pointer sl-select-none sl-py-2 sl-pl-3 sl-pr-9 hover:sl-bg-stachelock-600 hover:sl-text-white",
|
|
210
|
-
onClick: y((r) =>
|
|
213
|
+
onClick: y((r) => O(l), ["prevent"])
|
|
211
214
|
}, [
|
|
212
|
-
d("div",
|
|
213
|
-
d("span",
|
|
214
|
-
d("span",
|
|
215
|
+
d("div", le, [
|
|
216
|
+
d("span", se, [
|
|
217
|
+
d("span", ae, h($(l)), 1)
|
|
215
218
|
]),
|
|
216
|
-
s.showSubext ? (u(), c("span",
|
|
219
|
+
s.showSubext ? (u(), c("span", ne, h(q(l)), 1)) : L("", !0)
|
|
217
220
|
])
|
|
218
|
-
], 8,
|
|
219
|
-
])) :
|
|
220
|
-
])
|
|
221
|
+
], 8, te))), 128))
|
|
222
|
+
])) : L("", !0)
|
|
223
|
+
], 2)
|
|
221
224
|
], 2)
|
|
222
225
|
]),
|
|
223
226
|
_: 3
|
|
@@ -225,5 +228,5 @@ const G = { key: 0 }, H = ["onUpdate:modelValue", "placeholder", "disabled", "on
|
|
|
225
228
|
}
|
|
226
229
|
});
|
|
227
230
|
export {
|
|
228
|
-
|
|
231
|
+
de as _
|
|
229
232
|
};
|
|
@@ -50,8 +50,9 @@ const L = { class: "sl-w-full" }, T = { class: "sl-relative" }, P = ["id", "name
|
|
|
50
50
|
const w = F(() => {
|
|
51
51
|
const l = [
|
|
52
52
|
"sl-w-full",
|
|
53
|
-
"sl-
|
|
54
|
-
"sl-
|
|
53
|
+
"sl-pl-2",
|
|
54
|
+
"sl-pr-3",
|
|
55
|
+
"sl-py-1.5",
|
|
55
56
|
"sl-text-sm",
|
|
56
57
|
"sl-border",
|
|
57
58
|
"sl-rounded-md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as w, computed as d, createElementBlock as y, openBlock as D, createElementVNode as r, createVNode as s, withCtx as b, createTextVNode as x } from "vue";
|
|
2
|
-
import { _ as C } from "../CalendarHeader.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as C } from "../CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js";
|
|
3
3
|
import { _ as S } from "../MonthCalendar.vue_vue_type_style_index_0_lang-BdrrlrNr.js";
|
|
4
4
|
import { _ as E } from "../EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js";
|
|
5
5
|
import V from "../components/Button.js";
|
|
@@ -158,7 +158,7 @@ const J = { class: "sl-flex sl-h-full sl-w-full sl-items-center sl-justify-cente
|
|
|
158
158
|
]) : O("", !0)
|
|
159
159
|
], 6));
|
|
160
160
|
}
|
|
161
|
-
}), te = /* @__PURE__ */ H(X, [["__scopeId", "data-v-
|
|
161
|
+
}), te = /* @__PURE__ */ H(X, [["__scopeId", "data-v-c1961485"]]);
|
|
162
162
|
export {
|
|
163
163
|
te as default
|
|
164
164
|
};
|
|
@@ -113,7 +113,7 @@ const B = { class: "sl-grid sl-grid-cols-3 sl-items-center" }, p = ["for"], E =
|
|
|
113
113
|
])) : i("", !0),
|
|
114
114
|
x.value ? (t(), l("div", {
|
|
115
115
|
key: 2,
|
|
116
|
-
class: n(["sl-flex sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset focus-within:sl-ring-2 focus-within:sl-ring-inset focus-within:sl-ring-stachelock-600", h.value])
|
|
116
|
+
class: n(["sl-flex sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset sl-bg-white dark:sl-bg-slate-800 focus-within:sl-ring-2 focus-within:sl-ring-inset focus-within:sl-ring-stachelock-600", h.value])
|
|
117
117
|
}, [
|
|
118
118
|
o("div", N, [
|
|
119
119
|
r(a.$slots, "prefix", {}, void 0, !0)
|
|
@@ -160,7 +160,7 @@ const B = { class: "sl-grid sl-grid-cols-3 sl-items-center" }, p = ["for"], E =
|
|
|
160
160
|
}, 8, ["show"])
|
|
161
161
|
], 2));
|
|
162
162
|
}
|
|
163
|
-
}), U = /* @__PURE__ */ M(G, [["__scopeId", "data-v-
|
|
163
|
+
}), U = /* @__PURE__ */ M(G, [["__scopeId", "data-v-7b34e824"]]);
|
|
164
164
|
export {
|
|
165
165
|
U as default
|
|
166
166
|
};
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { _ as Ti } from "./UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.
|
|
|
27
27
|
import { _ as Mi } from "./UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js";
|
|
28
28
|
import { UserIcon as st, XMarkIcon as lt, XCircleIcon as at } from "@heroicons/vue/24/solid";
|
|
29
29
|
import rt from "./components/CloudinaryImage.js";
|
|
30
|
-
import { _ as ji } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-
|
|
30
|
+
import { _ as ji } from "./CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js";
|
|
31
31
|
import { _ as Bi } from "./DayCalendar.vue_vue_type_script_setup_true_lang-BgV8wr8v.js";
|
|
32
32
|
import { _ as Pi } from "./EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js";
|
|
33
33
|
import { _ as Ai } from "./EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js";
|
|
@@ -52,19 +52,19 @@ import Ae from "dayjs/plugin/timezone";
|
|
|
52
52
|
import dt from "dayjs/plugin/relativeTime";
|
|
53
53
|
import { _ as nd } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js";
|
|
54
54
|
import { _ as ct } from "./CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js";
|
|
55
|
-
import { _ as ut } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-
|
|
56
|
-
import { _ as dd } from "./DatepickerInput.vue_vue_type_style_index_0_lang-
|
|
57
|
-
import { _ as ud } from "./EmailInput.vue_vue_type_script_setup_true_lang-
|
|
55
|
+
import { _ as ut } from "./ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js";
|
|
56
|
+
import { _ as dd } from "./DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js";
|
|
57
|
+
import { _ as ud } from "./EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js";
|
|
58
58
|
import { _ as fd } from "./EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js";
|
|
59
|
-
import { _ as gd } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-
|
|
59
|
+
import { _ as gd } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js";
|
|
60
60
|
import { _ as yd } from "./HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js";
|
|
61
|
-
import { _ as vd } from "./ImageDropzoneInput.vue_vue_type_script_setup_true_lang-
|
|
62
|
-
import { _ as mt } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-
|
|
63
|
-
import { _ as ft } from "./SwitchInput.vue_vue_type_script_setup_true_lang-
|
|
64
|
-
import { _ as ke } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
65
|
-
import { _ as kd } from "./SelectTextInput.vue_vue_type_script_setup_true_lang-
|
|
66
|
-
import { _ as $d } from "./SwitchInputGroup.vue_vue_type_script_setup_true_lang-
|
|
67
|
-
import { _ as Cd } from "./TagifyInput.vue_vue_type_script_setup_true_lang-
|
|
61
|
+
import { _ as vd } from "./ImageDropzoneInput.vue_vue_type_script_setup_true_lang-CsAclXd8.js";
|
|
62
|
+
import { _ as mt } from "./TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js";
|
|
63
|
+
import { _ as ft } from "./SwitchInput.vue_vue_type_script_setup_true_lang-r8ZwU1Zy.js";
|
|
64
|
+
import { _ as ke } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
|
|
65
|
+
import { _ as kd } from "./SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js";
|
|
66
|
+
import { _ as $d } from "./SwitchInputGroup.vue_vue_type_script_setup_true_lang-PgsXeiig.js";
|
|
67
|
+
import { _ as Cd } from "./TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js";
|
|
68
68
|
import { _ as Sd } from "./DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js";
|
|
69
69
|
import { _ as Td } from "./DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js";
|
|
70
70
|
import { _ as Md } from "./HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js";
|
|
@@ -84,10 +84,10 @@ import { TransitionRoot as ge, Dialog as pt, TransitionChild as $e, DialogPanel
|
|
|
84
84
|
import { QuestionMarkCircleIcon as yt } from "@heroicons/vue/20/solid";
|
|
85
85
|
import { SwatchIcon as xt, XMarkIcon as vt, PhoneIcon as _e, EnvelopeIcon as bt, GlobeAltIcon as Re, CakeIcon as He, CalendarDaysIcon as kt, BriefcaseIcon as wt, BuildingOfficeIcon as $t, LinkIcon as _t, MapPinIcon as Ce, BuildingLibraryIcon as Ct, UserGroupIcon as It } from "@heroicons/vue/24/outline";
|
|
86
86
|
import { _ as Jd } from "./StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js";
|
|
87
|
-
import { _ as Qd } from "./InlineTabs.vue_vue_type_script_setup_true_lang-
|
|
88
|
-
import { _ as t0 } from "./TabGroup.vue_vue_type_script_setup_true_lang-
|
|
89
|
-
import { _ as l0 } from "./TabGroupUnderline.vue_vue_type_script_setup_true_lang-
|
|
90
|
-
import { _ as r0 } from "./TabsInPills.vue_vue_type_script_setup_true_lang-
|
|
87
|
+
import { _ as Qd } from "./InlineTabs.vue_vue_type_script_setup_true_lang-DGGJem-g.js";
|
|
88
|
+
import { _ as t0 } from "./TabGroup.vue_vue_type_script_setup_true_lang-DTWW7kYh.js";
|
|
89
|
+
import { _ as l0 } from "./TabGroupUnderline.vue_vue_type_script_setup_true_lang-B8e7kxad.js";
|
|
90
|
+
import { _ as r0 } from "./TabsInPills.vue_vue_type_script_setup_true_lang-Dzi4ENL1.js";
|
|
91
91
|
import { _ as n0 } from "./BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js";
|
|
92
92
|
import { _ as d0 } from "./CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js";
|
|
93
93
|
import { _ as u0 } from "./DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js";
|
|
@@ -1244,7 +1244,7 @@ const jt = { class: "sl-fixed sl-inset-0 sl-z-10 sl-w-screen sl-overflow-y-auto"
|
|
|
1244
1244
|
}, null, 8, ["title", "description", "onClose"])) : w("", !0)
|
|
1245
1245
|
]));
|
|
1246
1246
|
}
|
|
1247
|
-
}), ye = /* @__PURE__ */ W(js, [["__scopeId", "data-v-
|
|
1247
|
+
}), ye = /* @__PURE__ */ W(js, [["__scopeId", "data-v-2dd7ddec"]]), Vs = { class: "sl-py-1 sl-text-sm sl-leading-5 sl-text-gray-600 dark:sl-text-gray-300" }, Bs = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, fn = /* @__PURE__ */ B({
|
|
1248
1248
|
__name: "OrganizationsEditor",
|
|
1249
1249
|
props: {
|
|
1250
1250
|
name: {},
|
|
@@ -3697,7 +3697,7 @@ const Wl = /* @__PURE__ */ W(Ol, [["render", Hl]]), ql = { class: "sl-bg-white s
|
|
|
3697
3697
|
return (l, c) => (a(), u("div", mo, [
|
|
3698
3698
|
c[4] || (c[4] = s("div", { class: "sl-absolute sl-inset-0 sl-bg-gray-50 dark:sl-bg-gray-900 sl--z-10" }, null, -1)),
|
|
3699
3699
|
s("div", fo, [
|
|
3700
|
-
c[3] || (c[3] = Je('<div class="sl-rounded-2xl sl-bg-gradient-to-r sl-from-primary-600 sl-to-primary-700 sl-p-6 sl-animate-pulse" data-v-
|
|
3700
|
+
c[3] || (c[3] = Je('<div class="sl-rounded-2xl sl-bg-gradient-to-r sl-from-primary-600 sl-to-primary-700 sl-p-6 sl-animate-pulse" data-v-8fcac1e1><div class="sl-flex sl-items-center sl-gap-4" data-v-8fcac1e1><div class="sl-w-20 sl-h-20 sl-rounded-full sl-bg-white/20" data-v-8fcac1e1></div><div class="sl-space-y-2" data-v-8fcac1e1><div class="sl-h-6 sl-w-48 sl-bg-white/20 sl-rounded" data-v-8fcac1e1></div><div class="sl-h-4 sl-w-24 sl-bg-white/20 sl-rounded" data-v-8fcac1e1></div></div></div></div>', 1)),
|
|
3701
3701
|
s("div", {
|
|
3702
3702
|
class: M([
|
|
3703
3703
|
"sl-grid sl-gap-6",
|
|
@@ -3797,7 +3797,7 @@ const Wl = /* @__PURE__ */ W(Ol, [["render", Hl]]), ql = { class: "sl-bg-white s
|
|
|
3797
3797
|
])
|
|
3798
3798
|
]));
|
|
3799
3799
|
}
|
|
3800
|
-
}), zn = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-
|
|
3800
|
+
}), zn = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-8fcac1e1"]]);
|
|
3801
3801
|
class Co {
|
|
3802
3802
|
designTokens;
|
|
3803
3803
|
prefix = "sl-";
|