@everchron/ec-shards 9.4.0 → 9.5.0
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.js +34 -12
- package/dist/ec-shards.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -12992,7 +12992,7 @@ function Tv(e, s, t, a, n, i) {
|
|
|
12992
12992
|
}
|
|
12993
12993
|
const W_ = /* @__PURE__ */ v($v, [["render", Tv], ["__scopeId", "data-v-ec263a49"]]), Mv = {
|
|
12994
12994
|
name: "ecs-segments",
|
|
12995
|
-
emits: ["click"],
|
|
12995
|
+
emits: ["click", "update:modelValue"],
|
|
12996
12996
|
components: { EcsIcon: M },
|
|
12997
12997
|
props: {
|
|
12998
12998
|
/** Array of all the options objects:
|
|
@@ -13008,6 +13008,12 @@ const W_ = /* @__PURE__ */ v($v, [["render", Tv], ["__scopeId", "data-v-ec263a49
|
|
|
13008
13008
|
type: String,
|
|
13009
13009
|
required: !0
|
|
13010
13010
|
},
|
|
13011
|
+
/** Determines the size of the segment control. */
|
|
13012
|
+
size: {
|
|
13013
|
+
type: String,
|
|
13014
|
+
default: "md",
|
|
13015
|
+
validator: (e) => ["sml", "md"].includes(e)
|
|
13016
|
+
},
|
|
13011
13017
|
/** Renders the segment control inline - which means it will not adapt to the full available width of it's parent element. */
|
|
13012
13018
|
inline: {
|
|
13013
13019
|
type: Boolean,
|
|
@@ -13018,48 +13024,64 @@ const W_ = /* @__PURE__ */ v($v, [["render", Tv], ["__scopeId", "data-v-ec263a49
|
|
|
13018
13024
|
type: [String, Number],
|
|
13019
13025
|
default: ""
|
|
13020
13026
|
},
|
|
13027
|
+
/** Disables all segments. */
|
|
13021
13028
|
disabled: {
|
|
13022
13029
|
type: Boolean,
|
|
13023
13030
|
default: !1
|
|
13031
|
+
},
|
|
13032
|
+
/** Sets the currently active value. Must match an `option.id` from the `options` array. */
|
|
13033
|
+
modelValue: {
|
|
13034
|
+
type: [String, Number],
|
|
13035
|
+
default: ""
|
|
13036
|
+
}
|
|
13037
|
+
},
|
|
13038
|
+
emits: ["click", "update:modelValue"],
|
|
13039
|
+
computed: {
|
|
13040
|
+
isChecked() {
|
|
13041
|
+
return (e) => String(this.modelValue || this.value).toLowerCase() === String(e).toLowerCase();
|
|
13042
|
+
}
|
|
13043
|
+
},
|
|
13044
|
+
methods: {
|
|
13045
|
+
handleChange(e) {
|
|
13046
|
+
this.$emit("update:modelValue", e), this.$emit("click", e);
|
|
13024
13047
|
}
|
|
13025
13048
|
}
|
|
13026
|
-
}, Lv = ["for"
|
|
13049
|
+
}, Lv = ["for"], Ov = ["name", "value", "id", "checked", "disabled", "onChange"], Av = ["title"];
|
|
13027
13050
|
function Nv(e, s, t, a, n, i) {
|
|
13028
13051
|
const r = g("ecs-icon");
|
|
13029
13052
|
return o(), l("div", {
|
|
13030
|
-
class: y(["ecs-segments",
|
|
13053
|
+
class: y(["ecs-segments", { "ecs-segments-inline": t.inline }])
|
|
13031
13054
|
}, [
|
|
13032
13055
|
(o(!0), l(X, null, he(t.options, (c) => (o(), l("label", {
|
|
13033
13056
|
key: c.id,
|
|
13034
|
-
for: c.id
|
|
13035
|
-
disabled: t.disabled
|
|
13057
|
+
for: c.id
|
|
13036
13058
|
}, [
|
|
13037
13059
|
f("input", {
|
|
13038
13060
|
type: "radio",
|
|
13039
13061
|
name: t.name,
|
|
13040
13062
|
value: c.id,
|
|
13041
13063
|
id: c.id,
|
|
13042
|
-
checked:
|
|
13064
|
+
checked: i.isChecked(c.id),
|
|
13043
13065
|
disabled: c.disabled || t.disabled,
|
|
13044
|
-
|
|
13045
|
-
}, null,
|
|
13066
|
+
onChange: (d) => i.handleChange(c.id)
|
|
13067
|
+
}, null, 40, Ov),
|
|
13046
13068
|
f("span", {
|
|
13047
|
-
class: "ecs-segment",
|
|
13069
|
+
class: y(["ecs-segment", { "ecs-segment-sml": t.size === "sml", "ecs-segment-md": t.size === "md" }]),
|
|
13048
13070
|
title: c.title
|
|
13049
13071
|
}, [
|
|
13050
13072
|
c.icon ? (o(), h(r, {
|
|
13051
13073
|
key: 0,
|
|
13052
|
-
class: y(
|
|
13074
|
+
class: y({ "icon-spacing": c.icon && c.label }),
|
|
13053
13075
|
type: c.icon,
|
|
13054
13076
|
size: "20",
|
|
13055
13077
|
color: "#2F333C"
|
|
13056
13078
|
}, null, 8, ["class", "type"])) : u("", !0),
|
|
13057
13079
|
D(" " + w(c.label), 1)
|
|
13058
|
-
],
|
|
13080
|
+
], 10, Av)
|
|
13059
13081
|
], 8, Lv))), 128))
|
|
13060
13082
|
], 2);
|
|
13061
13083
|
}
|
|
13062
|
-
const j_ = /* @__PURE__ */ v(Mv, [["render", Nv], ["__scopeId", "data-v-
|
|
13084
|
+
const j_ = /* @__PURE__ */ v(Mv, [["render", Nv], ["__scopeId", "data-v-b5e60ac4"]]), Dv = {
|
|
13063
13085
|
name: "ecs-select-tile",
|
|
13064
13086
|
emits: ["click"],
|
|
13065
13087
|
components: {
|