@everchron/ec-shards 9.5.0 → 9.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/ec-shards.js +13 -35
- 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
|
@@ -1684,7 +1684,7 @@ const ta = {}, sa = {
|
|
|
1684
1684
|
function ia(e, s) {
|
|
1685
1685
|
return o(), l("div", sa);
|
|
1686
1686
|
}
|
|
1687
|
-
const na = /* @__PURE__ */ v(ta, [["render", ia], ["__scopeId", "data-v-
|
|
1687
|
+
const na = /* @__PURE__ */ v(ta, [["render", ia], ["__scopeId", "data-v-b4b01b19"]]), aa = ["aria-open"], oa = {
|
|
1688
1688
|
__name: "Popper",
|
|
1689
1689
|
props: {
|
|
1690
1690
|
/**
|
|
@@ -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"],
|
|
12996
12996
|
components: { EcsIcon: M },
|
|
12997
12997
|
props: {
|
|
12998
12998
|
/** Array of all the options objects:
|
|
@@ -13008,12 +13008,6 @@ 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
|
-
},
|
|
13017
13011
|
/** Renders the segment control inline - which means it will not adapt to the full available width of it's parent element. */
|
|
13018
13012
|
inline: {
|
|
13019
13013
|
type: Boolean,
|
|
@@ -13024,64 +13018,48 @@ const W_ = /* @__PURE__ */ v($v, [["render", Tv], ["__scopeId", "data-v-ec263a49
|
|
|
13024
13018
|
type: [String, Number],
|
|
13025
13019
|
default: ""
|
|
13026
13020
|
},
|
|
13027
|
-
/** Disables all segments. */
|
|
13028
13021
|
disabled: {
|
|
13029
13022
|
type: Boolean,
|
|
13030
13023
|
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);
|
|
13047
13024
|
}
|
|
13048
13025
|
}
|
|
13049
|
-
}, Lv = ["for"], Ov = ["name", "value", "id", "checked", "disabled", "
|
|
13026
|
+
}, Lv = ["for", "disabled"], Ov = ["name", "value", "id", "checked", "disabled", "onClick"], Av = ["title"];
|
|
13050
13027
|
function Nv(e, s, t, a, n, i) {
|
|
13051
13028
|
const r = g("ecs-icon");
|
|
13052
13029
|
return o(), l("div", {
|
|
13053
|
-
class: y(["ecs-segments",
|
|
13030
|
+
class: y(["ecs-segments", [t.inline ? "ecs-segments-inline" : ""]])
|
|
13054
13031
|
}, [
|
|
13055
13032
|
(o(!0), l(X, null, he(t.options, (c) => (o(), l("label", {
|
|
13056
13033
|
key: c.id,
|
|
13057
|
-
for: c.id
|
|
13034
|
+
for: c.id,
|
|
13035
|
+
disabled: t.disabled
|
|
13058
13036
|
}, [
|
|
13059
13037
|
f("input", {
|
|
13060
13038
|
type: "radio",
|
|
13061
13039
|
name: t.name,
|
|
13062
13040
|
value: c.id,
|
|
13063
13041
|
id: c.id,
|
|
13064
|
-
checked:
|
|
13042
|
+
checked: t.value.toLowerCase() == c.id.toLowerCase() || null,
|
|
13065
13043
|
disabled: c.disabled || t.disabled,
|
|
13066
|
-
|
|
13067
|
-
}, null,
|
|
13044
|
+
onClick: (d) => e.$emit("click", c.id)
|
|
13045
|
+
}, null, 8, Ov),
|
|
13068
13046
|
f("span", {
|
|
13069
|
-
class:
|
|
13047
|
+
class: "ecs-segment",
|
|
13070
13048
|
title: c.title
|
|
13071
13049
|
}, [
|
|
13072
13050
|
c.icon ? (o(), h(r, {
|
|
13073
13051
|
key: 0,
|
|
13074
|
-
class: y(
|
|
13052
|
+
class: y([c.icon && c.label ? "icon-spacing" : ""]),
|
|
13075
13053
|
type: c.icon,
|
|
13076
13054
|
size: "20",
|
|
13077
13055
|
color: "#2F333C"
|
|
13078
13056
|
}, null, 8, ["class", "type"])) : u("", !0),
|
|
13079
13057
|
D(" " + w(c.label), 1)
|
|
13080
|
-
],
|
|
13058
|
+
], 8, Av)
|
|
13081
13059
|
], 8, Lv))), 128))
|
|
13082
13060
|
], 2);
|
|
13083
13061
|
}
|
|
13084
|
-
const j_ = /* @__PURE__ */ v(Mv, [["render", Nv], ["__scopeId", "data-v-
|
|
13062
|
+
const j_ = /* @__PURE__ */ v(Mv, [["render", Nv], ["__scopeId", "data-v-0b149ba2"]]), Dv = {
|
|
13085
13063
|
name: "ecs-select-tile",
|
|
13086
13064
|
emits: ["click"],
|
|
13087
13065
|
components: {
|