@nhdropshipping/y-components 1.0.65 → 1.0.66
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.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3744,7 +3744,7 @@ const Lt = ["type", "disabled", "aria-busy", "aria-disabled"], It = { class: "co
|
|
|
3744
3744
|
},
|
|
3745
3745
|
emits: ["update:modelValue", "search", "reset", "field-change"],
|
|
3746
3746
|
setup(t, { emit: b }) {
|
|
3747
|
-
const e = t, n = b, m = V(!1), f = Ct({}), v = ["select", "date", "daterange"];
|
|
3747
|
+
const e = t, n = b, m = V(!1), f = Ct({}), v = ["select", "date", "daterange", "switch"];
|
|
3748
3748
|
let S;
|
|
3749
3749
|
const $ = j(() => e.fields.filter((T) => !T.hidden)), B = j(() => m.value ? $.value : $.value.slice(0, e.maxVisibleFields)), D = j(() => $.value.length > e.maxVisibleFields);
|
|
3750
3750
|
function w(T) {
|
|
@@ -3868,7 +3868,7 @@ const Lt = ["type", "disabled", "aria-busy", "aria-disabled"], It = { class: "co
|
|
|
3868
3868
|
updateValue: (q) => c(L.key, q)
|
|
3869
3869
|
}, () => [
|
|
3870
3870
|
l("div", ea, [
|
|
3871
|
-
t.Iflabel ? (a(), s("label", ta, oe(L.label), 1)) : K("", !0),
|
|
3871
|
+
t.Iflabel || L.type === "switch" ? (a(), s("label", ta, oe(L.label), 1)) : K("", !0),
|
|
3872
3872
|
(a(), Ae(_t(w(L.type)), St({
|
|
3873
3873
|
modelValue: f[L.key],
|
|
3874
3874
|
"onUpdate:modelValue": (q) => f[L.key] = q,
|
|
@@ -3885,7 +3885,7 @@ const Lt = ["type", "disabled", "aria-busy", "aria-disabled"], It = { class: "co
|
|
|
3885
3885
|
"active-text": L.activeText,
|
|
3886
3886
|
"inactive-text": L.inactiveText,
|
|
3887
3887
|
"show-text": L.showText,
|
|
3888
|
-
"active-color": L.activeColor,
|
|
3888
|
+
"active-color": L.activeColor || (L.type === "switch" ? "#1B2433" : void 0),
|
|
3889
3889
|
"inactive-color": L.inactiveColor
|
|
3890
3890
|
}, Mt(Z(L)), {
|
|
3891
3891
|
onInput: (q) => L.type !== "switch" ? C(L) : void 0,
|
|
@@ -3944,7 +3944,7 @@ const Lt = ["type", "disabled", "aria-busy", "aria-disabled"], It = { class: "co
|
|
|
3944
3944
|
])
|
|
3945
3945
|
]));
|
|
3946
3946
|
}
|
|
3947
|
-
}), sa = /* @__PURE__ */ $e(aa, [["__scopeId", "data-v-
|
|
3947
|
+
}), sa = /* @__PURE__ */ $e(aa, [["__scopeId", "data-v-f37d18e9"]]), ia = {
|
|
3948
3948
|
key: 0,
|
|
3949
3949
|
width: "16",
|
|
3950
3950
|
height: "16",
|