@stlhorizon/vue-ui 2.4.9 → 2.5.1
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/index.esm.js
CHANGED
@@ -4263,7 +4263,7 @@ const ae = {
|
|
4263
4263
|
type: {
|
4264
4264
|
type: String,
|
4265
4265
|
default: "text",
|
4266
|
-
validator: (e) => ["text", "email", "password", "number", "tel", "url", "search", "date"].includes(e)
|
4266
|
+
validator: (e) => ["text", "email", "password", "number", "tel", "url", "search", "date", "color"].includes(e)
|
4267
4267
|
},
|
4268
4268
|
placeholder: {
|
4269
4269
|
type: String,
|
@@ -10864,7 +10864,7 @@ const cd = {
|
|
10864
10864
|
type: Array,
|
10865
10865
|
required: !0,
|
10866
10866
|
validator: (e) => e.every(
|
10867
|
-
(a) => a.name && a.label && a.type && ["text", "number", "password", "textarea", "select", "checkbox", "slider", "date"].includes(a.type)
|
10867
|
+
(a) => a.name && a.label && a.type && ["text", "number", "password", "textarea", "select", "checkbox", "slider", "date", "color"].includes(a.type)
|
10868
10868
|
)
|
10869
10869
|
},
|
10870
10870
|
initialData: {
|
@@ -11004,7 +11004,7 @@ const cd = {
|
|
11004
11004
|
id: `form-${e.entityName}-${f.name}-${Math.random().toString(36).slice(2, 5)}`
|
11005
11005
|
}, {
|
11006
11006
|
default: N(({ fieldId: p, hasError: M, ariaDescribedBy: j }) => [
|
11007
|
-
f.type === "text" || f.type === "number" || f.type === "password" ? (o(), R(qt, {
|
11007
|
+
f.type === "text" || f.type === "number" || f.type === "password" || f.type === "color" ? (o(), R(qt, {
|
11008
11008
|
key: 0,
|
11009
11009
|
id: p,
|
11010
11010
|
modelValue: s.value[f.name],
|
@@ -11013,7 +11013,10 @@ const cd = {
|
|
11013
11013
|
placeholder: f.placeholder,
|
11014
11014
|
disabled: l.value || f.disabled,
|
11015
11015
|
readonly: f.disabled,
|
11016
|
-
class: g(
|
11016
|
+
class: g([
|
11017
|
+
M ? "border-red-500" : "border-slate-300",
|
11018
|
+
f.type === "color" ? "w-20 h-12 cursor-pointer" : ""
|
11019
|
+
]),
|
11017
11020
|
"aria-describedby": j
|
11018
11021
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "type", "placeholder", "disabled", "readonly", "class", "aria-describedby"])) : f.type === "textarea" ? (o(), R(tr, {
|
11019
11022
|
key: 1,
|