@everchron/ec-shards 14.20.2 → 14.20.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/ec-shards.css +1 -1
- package/dist/ec-shards.js +9 -5
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -2785,10 +2785,11 @@ const mo = /* @__PURE__ */ _(co, [["render", go], ["__scopeId", "data-v-88d4a1b8
|
|
|
2785
2785
|
type: Boolean,
|
|
2786
2786
|
default: !1
|
|
2787
2787
|
},
|
|
2788
|
-
/** Reflects a true or false state with positive (
|
|
2788
|
+
/** Reflects a true or false state with colors. Boolean `true` shows red when OFF and green when ON (two-way colored). String `positive` shows green when ON (one-way colored). String `negative` shows red when ON (one-way colored). */
|
|
2789
2789
|
colored: {
|
|
2790
|
-
type: Boolean,
|
|
2791
|
-
default: !1
|
|
2790
|
+
type: [Boolean, String],
|
|
2791
|
+
default: !1,
|
|
2792
|
+
validator: (e) => [!1, !0, "positive", "negative"].includes(e)
|
|
2792
2793
|
},
|
|
2793
2794
|
/** Reflects an indeterminate switch state (e.g. not all options checked, but some). This is a purely visual setting. */
|
|
2794
2795
|
indeterminate: {
|
|
@@ -2825,6 +2826,9 @@ const mo = /* @__PURE__ */ _(co, [["render", go], ["__scopeId", "data-v-88d4a1b8
|
|
|
2825
2826
|
sizeClass() {
|
|
2826
2827
|
return this.size && this.size !== "" ? this.size == "sml-toggle" ? "ecs-switch-sml regular-font" : `ecs-switch-${this.size}` : this.size;
|
|
2827
2828
|
},
|
|
2829
|
+
coloredClass() {
|
|
2830
|
+
return this.colored ? this.colored === !0 ? "ecs-switch-colored" : this.colored === "positive" ? "ecs-switch-colored-positive" : this.colored === "negative" ? "ecs-switch-colored-negative" : "" : "";
|
|
2831
|
+
},
|
|
2828
2832
|
isBoolean() {
|
|
2829
2833
|
return typeof this.value == "boolean";
|
|
2830
2834
|
},
|
|
@@ -2863,7 +2867,7 @@ function ko(e, s, t, a, n, i) {
|
|
|
2863
2867
|
i.sizeClass,
|
|
2864
2868
|
i.hasDefaultSlot ? "ecs-switch-has-label" : "",
|
|
2865
2869
|
t.disabled ? "disabled" : "",
|
|
2866
|
-
|
|
2870
|
+
i.coloredClass,
|
|
2867
2871
|
t.indeterminate ? "ecs-switch-indeterminate" : ""
|
|
2868
2872
|
]]),
|
|
2869
2873
|
role: "switch",
|
|
@@ -2892,7 +2896,7 @@ function ko(e, s, t, a, n, i) {
|
|
|
2892
2896
|
], 8, _o)) : u("", !0)
|
|
2893
2897
|
]);
|
|
2894
2898
|
}
|
|
2895
|
-
const bi = /* @__PURE__ */ _(ho, [["render", ko], ["__scopeId", "data-v-
|
|
2899
|
+
const bi = /* @__PURE__ */ _(ho, [["render", ko], ["__scopeId", "data-v-c04e56d8"]]), xo = {
|
|
2896
2900
|
name: "ecs-sortbutton",
|
|
2897
2901
|
emits: ["click"],
|
|
2898
2902
|
components: { EcsFormCheck: as, EcsFocusRing: R },
|