@everchron/ec-shards 19.2.0 → 19.3.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.css +1 -1
- package/dist/ec-shards.js +33 -12
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -14571,8 +14571,8 @@ var Hh = /* @__PURE__ */ H(Lh, [["render", Vh], ["__scopeId", "data-v-206d1ced"]
|
|
|
14571
14571
|
name: "ecs-multiselect-search-token",
|
|
14572
14572
|
emits: [
|
|
14573
14573
|
"remove",
|
|
14574
|
-
"
|
|
14575
|
-
"
|
|
14574
|
+
"operatorToggle",
|
|
14575
|
+
"editToken"
|
|
14576
14576
|
],
|
|
14577
14577
|
components: {
|
|
14578
14578
|
EcsIcon: U,
|
|
@@ -14590,6 +14590,10 @@ var Hh = /* @__PURE__ */ H(Lh, [["render", Vh], ["__scopeId", "data-v-206d1ced"]
|
|
|
14590
14590
|
default: !1
|
|
14591
14591
|
},
|
|
14592
14592
|
descriptor: { type: String },
|
|
14593
|
+
editable: {
|
|
14594
|
+
type: Boolean,
|
|
14595
|
+
default: !1
|
|
14596
|
+
},
|
|
14593
14597
|
icon: {
|
|
14594
14598
|
type: String,
|
|
14595
14599
|
required: !0
|
|
@@ -14598,9 +14602,14 @@ var Hh = /* @__PURE__ */ H(Lh, [["render", Vh], ["__scopeId", "data-v-206d1ced"]
|
|
|
14598
14602
|
computed: { typeClass() {
|
|
14599
14603
|
return `ecs-multiselect-search-token-${this.type}`;
|
|
14600
14604
|
} },
|
|
14601
|
-
methods: {
|
|
14602
|
-
|
|
14603
|
-
|
|
14605
|
+
methods: {
|
|
14606
|
+
handleOperatorToggle(e) {
|
|
14607
|
+
this.$emit("operatorToggle", e);
|
|
14608
|
+
},
|
|
14609
|
+
handleEditToken(e) {
|
|
14610
|
+
this.$emit("editToken", e);
|
|
14611
|
+
}
|
|
14612
|
+
}
|
|
14604
14613
|
}, Wh = {
|
|
14605
14614
|
key: 0,
|
|
14606
14615
|
class: "symbol"
|
|
@@ -14614,14 +14623,14 @@ var Hh = /* @__PURE__ */ H(Lh, [["render", Vh], ["__scopeId", "data-v-206d1ced"]
|
|
|
14614
14623
|
function Jh(e, t, n, r, i, a) {
|
|
14615
14624
|
let o = A("ecs-icon"), u = A("ecs-focus-ring");
|
|
14616
14625
|
return T(), c("div", {
|
|
14617
|
-
class: b(["ecs-multiselect-search-token", a.typeClass]),
|
|
14626
|
+
class: b(["ecs-multiselect-search-token", [a.typeClass, { editable: n.editable }]]),
|
|
14618
14627
|
tabindex: "0",
|
|
14619
|
-
onKeydown: t[
|
|
14628
|
+
onKeydown: t[5] ||= L((t) => e.$emit("remove", t), ["delete"])
|
|
14620
14629
|
}, [n.icon || n.operator || n.operatorSwitch ? (T(), c("div", Wh, [
|
|
14621
14630
|
f(o, {
|
|
14622
14631
|
type: n.icon,
|
|
14623
14632
|
size: "20",
|
|
14624
|
-
color: "
|
|
14633
|
+
color: "var(--color-white)"
|
|
14625
14634
|
}, null, 8, ["type"]),
|
|
14626
14635
|
n.operator && !n.operatorSwitch ? (T(), c("div", Gh, N(n.operator), 1)) : s("", !0),
|
|
14627
14636
|
n.operatorSwitch ? (T(), c("button", {
|
|
@@ -14648,20 +14657,32 @@ function Jh(e, t, n, r, i, a) {
|
|
|
14648
14657
|
])) : s("", !0), l("div", Kh, [
|
|
14649
14658
|
n.descriptor ? (T(), c("div", qh, N(n.descriptor), 1)) : s("", !0),
|
|
14650
14659
|
k(e.$slots, "default", {}, void 0, !0),
|
|
14660
|
+
n.editable ? (T(), c("button", {
|
|
14661
|
+
key: 1,
|
|
14662
|
+
onClick: t[1] ||= (...e) => a.handleEditToken && a.handleEditToken(...e),
|
|
14663
|
+
onKeyup: t[2] ||= L((...e) => a.handleEditToken && a.handleEditToken(...e), ["enter"]),
|
|
14664
|
+
class: "edit",
|
|
14665
|
+
title: "Edit",
|
|
14666
|
+
"aria-label": "Edit"
|
|
14667
|
+
}, [f(o, {
|
|
14668
|
+
type: "edit",
|
|
14669
|
+
size: "14",
|
|
14670
|
+
color: "var(--color-gray-15)"
|
|
14671
|
+
}), f(u, { radius: 12 })], 32)) : s("", !0),
|
|
14651
14672
|
l("button", {
|
|
14652
|
-
onClick: t[
|
|
14653
|
-
onKeyup: t[
|
|
14673
|
+
onClick: t[3] ||= (t) => e.$emit("remove", t),
|
|
14674
|
+
onKeyup: t[4] ||= L((t) => e.$emit("remove", t), ["enter"]),
|
|
14654
14675
|
class: "remove",
|
|
14655
14676
|
title: "Remove",
|
|
14656
14677
|
"aria-label": "Remove"
|
|
14657
14678
|
}, [f(o, {
|
|
14658
14679
|
type: "close",
|
|
14659
14680
|
size: "14",
|
|
14660
|
-
color: "
|
|
14681
|
+
color: "var(--color-white)"
|
|
14661
14682
|
}), f(u, { radius: 12 })], 32)
|
|
14662
14683
|
])], 34);
|
|
14663
14684
|
}
|
|
14664
|
-
var Yh = /* @__PURE__ */ H(Uh, [["render", Jh], ["__scopeId", "data-v-
|
|
14685
|
+
var Yh = /* @__PURE__ */ H(Uh, [["render", Jh], ["__scopeId", "data-v-815933be"]]), Xh = {
|
|
14665
14686
|
name: "ecs-multiselect-token",
|
|
14666
14687
|
emits: ["remove"],
|
|
14667
14688
|
components: {
|