@dcodegroup-au/page-builder 0.3.2 → 0.3.3
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/page-builder.es.js
CHANGED
|
@@ -29010,35 +29010,42 @@ const T5e = { render: L5e }, E5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
29010
29010
|
}
|
|
29011
29011
|
}, Li = /* @__PURE__ */ Object.assign(z5e, {
|
|
29012
29012
|
__name: "IconSelector",
|
|
29013
|
-
|
|
29014
|
-
|
|
29015
|
-
|
|
29016
|
-
|
|
29013
|
+
props: {
|
|
29014
|
+
modelValue: {
|
|
29015
|
+
type: String,
|
|
29016
|
+
default: null
|
|
29017
29017
|
}
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29018
|
+
},
|
|
29019
|
+
emits: ["update:modelValue"],
|
|
29020
|
+
setup(t, { emit: e }) {
|
|
29021
|
+
const r = ye(t.modelValue), l = ye(""), u = ye([]), c = ye(!1), d = e;
|
|
29022
|
+
function a() {
|
|
29023
|
+
c.value = !c.value;
|
|
29024
|
+
}
|
|
29025
|
+
V0(l, (m) => {
|
|
29026
|
+
u.value = Po.filter(
|
|
29027
|
+
(p) => p.name.toLowerCase().includes(m.toLowerCase())
|
|
29021
29028
|
);
|
|
29022
29029
|
});
|
|
29023
|
-
function
|
|
29024
|
-
|
|
29030
|
+
function h(m) {
|
|
29031
|
+
r.value = m, d("update:modelValue", r.value), c.value = !1;
|
|
29025
29032
|
}
|
|
29026
|
-
function
|
|
29027
|
-
|
|
29033
|
+
function f() {
|
|
29034
|
+
c.value && a();
|
|
29028
29035
|
}
|
|
29029
29036
|
return h0(() => {
|
|
29030
|
-
|
|
29031
|
-
}), (
|
|
29032
|
-
const
|
|
29037
|
+
u.value = Po.slice(0, 30);
|
|
29038
|
+
}), (m, p) => {
|
|
29039
|
+
const w = Zs("click-outside");
|
|
29033
29040
|
return mt((s(), i("div", H5e, [
|
|
29034
29041
|
o("div", {
|
|
29035
29042
|
class: "flex h-[40px] w-[40px] cursor-pointer items-center justify-center rounded-full border border-gray-300 bg-white hover:border-brand-300 active:border-brand-300 active:ring-4 active:ring-brand-700/[.24]",
|
|
29036
|
-
onClick:
|
|
29043
|
+
onClick: a
|
|
29037
29044
|
}, [
|
|
29038
|
-
|
|
29039
|
-
icon:
|
|
29045
|
+
r.value ? (s(), Qe(hr, {
|
|
29046
|
+
icon: r.value,
|
|
29040
29047
|
"icon-classes": "w-5 h-5",
|
|
29041
|
-
key:
|
|
29048
|
+
key: r.value
|
|
29042
29049
|
}, null, 8, ["icon"])) : (s(), Qe($e(f0), {
|
|
29043
29050
|
key: 1,
|
|
29044
29051
|
class: "h-5 w-5"
|
|
@@ -29048,35 +29055,35 @@ const T5e = { render: L5e }, E5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
29048
29055
|
o("div", R5e, [
|
|
29049
29056
|
o("div", N5e, [
|
|
29050
29057
|
mt(o("input", {
|
|
29051
|
-
"onUpdate:modelValue":
|
|
29058
|
+
"onUpdate:modelValue": p[0] || (p[0] = (v) => l.value = v),
|
|
29052
29059
|
type: "text",
|
|
29053
29060
|
placeholder: "Search all 1000+ icons",
|
|
29054
29061
|
class: "w-full border border-gray-300 rounded px-3 py-2"
|
|
29055
29062
|
}, null, 512), [
|
|
29056
|
-
[Pt,
|
|
29063
|
+
[Pt, l.value]
|
|
29057
29064
|
]),
|
|
29058
|
-
|
|
29065
|
+
l.value.length > 0 ? (s(), i("button", {
|
|
29059
29066
|
key: 0,
|
|
29060
|
-
onClick:
|
|
29067
|
+
onClick: p[1] || (p[1] = (v) => l.value = ""),
|
|
29061
29068
|
class: "absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer"
|
|
29062
29069
|
}, " ✕ ")) : ke("", !0)
|
|
29063
29070
|
]),
|
|
29064
29071
|
o("div", V5e, [
|
|
29065
29072
|
o("p", P5e, [
|
|
29066
|
-
|
|
29073
|
+
u.value.length > 0 && l.value.length > 0 ? (s(), i("span", I5e, " Search result ")) : u.value.length < 1 && l.value.length > 0 ? (s(), i("span", D5e, " No search result ")) : l.value.length < 1 && u.value.length > 0 ? (s(), i("span", F5e, " Frequently used icons ")) : ke("", !0)
|
|
29067
29074
|
]),
|
|
29068
29075
|
o("div", U5e, [
|
|
29069
|
-
(s(!0), i(We, null, st(
|
|
29076
|
+
(s(!0), i(We, null, st(u.value, (v) => (s(), Qe(hr, {
|
|
29070
29077
|
class: "cursor-pointer rounded p-1 hover:bg-gray-100",
|
|
29071
29078
|
"icon-classes": "w-8 h-8",
|
|
29072
|
-
icon:
|
|
29073
|
-
key:
|
|
29074
|
-
onSelectIcon:
|
|
29079
|
+
icon: v.name,
|
|
29080
|
+
key: v.name,
|
|
29081
|
+
onSelectIcon: h
|
|
29075
29082
|
}, null, 8, ["icon"]))), 128))
|
|
29076
29083
|
])
|
|
29077
29084
|
])
|
|
29078
29085
|
]),
|
|
29079
|
-
|
|
29086
|
+
p[2] || (p[2] = o("div", { class: "flex items-center justify-between rounded-b-xl bg-gray-100 px-4 py-3" }, [
|
|
29080
29087
|
o("p", { class: "text-sm font-medium text-gray-900" }, "Not sure about the icon names?"),
|
|
29081
29088
|
o("a", {
|
|
29082
29089
|
href: "https://www.untitledui.com/free-icons",
|
|
@@ -29085,10 +29092,10 @@ const T5e = { render: L5e }, E5e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */
|
|
|
29085
29092
|
}, " View all icons ")
|
|
29086
29093
|
], -1))
|
|
29087
29094
|
], 512), [
|
|
29088
|
-
[ei,
|
|
29095
|
+
[ei, c.value]
|
|
29089
29096
|
])
|
|
29090
29097
|
])), [
|
|
29091
|
-
[
|
|
29098
|
+
[w, f]
|
|
29092
29099
|
]);
|
|
29093
29100
|
};
|
|
29094
29101
|
}
|