@everchron/ec-shards 21.0.0 → 21.1.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 CHANGED
@@ -5768,6 +5768,9 @@ var Ka = /*#__PURE__*/ V(Ua, [["render", Ga], ["__scopeId", "data-v-7563cee0"]])
5768
5768
  hasLabel() {
5769
5769
  return this.label && this.label !== "" || this.label != null ? "has-label" : this.label;
5770
5770
  },
5771
+ chevronOnly() {
5772
+ return this.chevron && this.label == null && !this.icon && !this.loading;
5773
+ },
5771
5774
  sizeClass() {
5772
5775
  return `ecs-button-table-${this.size}`;
5773
5776
  },
@@ -5805,6 +5808,7 @@ function Xa(e, t, n, r, i, a) {
5805
5808
  n.pale ? "pale" : "",
5806
5809
  n.unreactive ? "unreactive" : "",
5807
5810
  n.loading ? "loading" : "",
5811
+ a.chevronOnly ? "chevron-only" : "",
5808
5812
  a.sizeClass
5809
5813
  ]]),
5810
5814
  disabled: n.disabled || null,
@@ -5833,14 +5837,17 @@ function Xa(e, t, n, r, i, a) {
5833
5837
  "color"
5834
5838
  ])) : s("", !0),
5835
5839
  n.label == null ? s("", !0) : (T(), c("div", Ya, P(n.label), 1)),
5836
- n.chevron ? (T(), c("div", {
5840
+ n.chevron ? (T(), o(l, {
5837
5841
  key: 3,
5842
+ type: "chevron-right",
5843
+ size: "16",
5844
+ "stroke-width": "1.5",
5838
5845
  class: b(["chevron", n.active ? "expand" : ""])
5839
- }, null, 2)) : s("", !0),
5846
+ }, null, 8, ["class"])) : s("", !0),
5840
5847
  f(d, { radius: n.size === "sml" ? 8 : 10 }, null, 8, ["radius"])
5841
5848
  ], 42, Ja);
5842
5849
  }
5843
- var Za = /*#__PURE__*/ V(qa, [["render", Xa], ["__scopeId", "data-v-b16a95c8"]]), Qa = { name: "ecs-toolbar-button-group" }, $a = { class: "ecs-toolbar-button-group" };
5850
+ var Za = /*#__PURE__*/ V(qa, [["render", Xa], ["__scopeId", "data-v-14d18178"]]), Qa = { name: "ecs-toolbar-button-group" }, $a = { class: "ecs-toolbar-button-group" };
5844
5851
  function eo(e, t, n, r, i, a) {
5845
5852
  return T(), c("div", $a, [A(e.$slots, "default", {}, void 0, !0)]);
5846
5853
  }
@@ -7980,6 +7987,7 @@ var Lc = {
7980
7987
  EcsTreeGuides: /* @__PURE__ */ V(Pc, [["render", Ic], ["__scopeId", "data-v-b586545e"]])
7981
7988
  },
7982
7989
  mixins: [Y],
7990
+ emits: ["update:expanded", "toggle"],
7983
7991
  props: {
7984
7992
  icon: { type: String },
7985
7993
  iconColor: {
@@ -8018,6 +8026,10 @@ var Lc = {
8018
8026
  type: Boolean,
8019
8027
  default: !1
8020
8028
  },
8029
+ expandOnClick: {
8030
+ type: Boolean,
8031
+ default: !1
8032
+ },
8021
8033
  expandIcon: { type: String },
8022
8034
  expandLabel: { type: String },
8023
8035
  expandPosition: {
@@ -8053,13 +8065,48 @@ var Lc = {
8053
8065
  showTree() {
8054
8066
  return this.treeLevel > 0;
8055
8067
  },
8068
+ slotProps() {
8069
+ return {
8070
+ expanded: this.isExpanded,
8071
+ expandId: this.expandId,
8072
+ toggle: this.toggle,
8073
+ expand: this.expand,
8074
+ collapse: this.collapse
8075
+ };
8076
+ },
8056
8077
  treeIndentStyle() {
8057
8078
  return this.showTree ? { paddingLeft: `${this.treeLevel * 8}px` } : {};
8058
8079
  }
8059
8080
  },
8060
- methods: { skeletonWidth: function(e, t) {
8061
- return Math.floor(Math.random() * (t - e + 1) + e);
8081
+ watch: { expanded(e) {
8082
+ this.isExpanded = e;
8062
8083
  } },
8084
+ methods: {
8085
+ setExpanded(e) {
8086
+ let t = !!e;
8087
+ t !== this.isExpanded && (this.isExpanded = t, this.$emit("update:expanded", t), this.$emit("toggle", t));
8088
+ },
8089
+ toggle() {
8090
+ this.setExpanded(!this.isExpanded);
8091
+ },
8092
+ expand() {
8093
+ this.setExpanded(!0);
8094
+ },
8095
+ collapse() {
8096
+ this.setExpanded(!1);
8097
+ },
8098
+ onCardClick(e) {
8099
+ if (!this.expandOnClick || this.isLoading) return;
8100
+ let t = e.target.closest?.("button, a, input, select, textarea, label, [role=\"button\"], [contenteditable=\"true\"], .control, .ecs-data-card-actions, .ecs-data-card-expand");
8101
+ t && this.$el.contains(t) || this.toggle();
8102
+ },
8103
+ onCardKeydown(e) {
8104
+ !this.expandOnClick || this.isLoading || (e.preventDefault(), this.toggle());
8105
+ },
8106
+ skeletonWidth: function(e, t) {
8107
+ return Math.floor(Math.random() * (t - e + 1) + e);
8108
+ }
8109
+ },
8063
8110
  created() {
8064
8111
  this.expandId = this.generateUniqueId();
8065
8112
  }
@@ -8074,18 +8121,21 @@ var Lc = {
8074
8121
  class: "ecs-data-card-inner-content"
8075
8122
  }, Uc = ["id", "aria-hidden"], Wc = { class: "ecs-data-card-expand-inner" };
8076
8123
  function Gc(e, t, n, r, i, a) {
8077
- let u = j("ecs-tree-guides"), d = j("ecs-icon"), p = j("ecs-skeleton-loader"), m = j("ecs-button"), h = j("ecs-button-table"), g = j("ecs-focus-ring");
8124
+ let u = j("ecs-tree-guides"), d = j("ecs-icon"), p = j("ecs-skeleton-loader"), h = j("ecs-button"), g = j("ecs-button-table"), _ = j("ecs-focus-ring");
8078
8125
  return T(), c("div", {
8079
8126
  class: b(["ecs-data-card", [
8080
8127
  n.hover ? "ecs-data-card-hover" : "",
8081
8128
  n.active ? "active" : "",
8082
8129
  n.shadow ? "shadow" : "",
8083
8130
  i.isExpanded ? "expanded" : "",
8084
- a.isLoading ? "loading" : ""
8131
+ a.isLoading ? "loading" : "",
8132
+ n.expandOnClick ? "expand-on-click" : ""
8085
8133
  ]]),
8086
8134
  role: "listitem",
8087
8135
  "aria-busy": a.isLoading || null,
8088
- tabindex: n.hover ? "0" : "-1"
8136
+ tabindex: n.hover ? "0" : "-1",
8137
+ onClick: t[0] ||= (...e) => a.onCardClick && a.onCardClick(...e),
8138
+ onKeydown: [t[1] ||= R(z((...e) => a.onCardKeydown && a.onCardKeydown(...e), ["self"]), ["enter"]), t[2] ||= R(z((...e) => a.onCardKeydown && a.onCardKeydown(...e), ["self"]), ["space"])]
8089
8139
  }, [
8090
8140
  a.showTree ? (T(), c("div", zc, [f(u, {
8091
8141
  level: a.treeLevel,
@@ -8098,7 +8148,7 @@ function Gc(e, t, n, r, i, a) {
8098
8148
  "is-last-child",
8099
8149
  "first-in-level"
8100
8150
  ])])) : s("", !0),
8101
- n.control && e.$slots.control ? (T(), c("div", Bc, [A(e.$slots, "control", {}, void 0, !0)])) : s("", !0),
8151
+ n.control && e.$slots.control ? (T(), c("div", Bc, [A(e.$slots, "control", x(m(a.slotProps)), void 0, !0)])) : s("", !0),
8102
8152
  n.icon ? (T(), o(d, {
8103
8153
  key: 2,
8104
8154
  type: n.icon,
@@ -8122,9 +8172,9 @@ function Gc(e, t, n, r, i, a) {
8122
8172
  style: S(a.treeIndentStyle)
8123
8173
  }, [
8124
8174
  l("div", Vc, [
8125
- n.expandable && n.expandPosition === "left" ? (T(), o(m, {
8175
+ n.expandable && n.expandPosition === "left" ? (T(), o(h, {
8126
8176
  key: 0,
8127
- onClick: t[0] ||= (e) => i.isExpanded = !i.isExpanded,
8177
+ onClick: a.toggle,
8128
8178
  type: "secondary",
8129
8179
  "aria-controls": i.expandId,
8130
8180
  "aria-expanded": i.isExpanded ? "true" : "false",
@@ -8135,13 +8185,14 @@ function Gc(e, t, n, r, i, a) {
8135
8185
  "aria-label": n.expandLabel ? n.expandLabel : i.isExpanded ? "Collapse" : "Expand",
8136
8186
  class: "expand-button-left"
8137
8187
  }, null, 8, [
8188
+ "onClick",
8138
8189
  "aria-controls",
8139
8190
  "aria-expanded",
8140
8191
  "icon",
8141
8192
  "active",
8142
8193
  "aria-label"
8143
8194
  ])) : s("", !0),
8144
- A(e.$slots, "default", {}, void 0, !0),
8195
+ A(e.$slots, "default", x(m(a.slotProps)), void 0, !0),
8145
8196
  a.isLoading ? (T(), o(p, {
8146
8197
  key: 1,
8147
8198
  type: "single",
@@ -8151,10 +8202,10 @@ function Gc(e, t, n, r, i, a) {
8151
8202
  e.$slots.actions ? (T(), c("div", {
8152
8203
  key: 2,
8153
8204
  class: b(["ecs-data-card-actions", n.actionsOnHover ? "on-hover" : ""])
8154
- }, [A(e.$slots, "actions", {}, void 0, !0)], 2)) : s("", !0),
8155
- n.expandable && n.expandPosition === "right" ? (T(), o(h, {
8205
+ }, [A(e.$slots, "actions", x(m(a.slotProps)), void 0, !0)], 2)) : s("", !0),
8206
+ n.expandable && n.expandPosition === "right" ? (T(), o(g, {
8156
8207
  key: 3,
8157
- onClick: t[1] ||= (e) => i.isExpanded = !i.isExpanded,
8208
+ onClick: a.toggle,
8158
8209
  "aria-controls": i.expandId,
8159
8210
  "aria-expanded": i.isExpanded ? "true" : "false",
8160
8211
  pale: "",
@@ -8165,6 +8216,7 @@ function Gc(e, t, n, r, i, a) {
8165
8216
  label: n.expandLabel,
8166
8217
  class: "expand-button-right"
8167
8218
  }, null, 8, [
8219
+ "onClick",
8168
8220
  "aria-controls",
8169
8221
  "aria-expanded",
8170
8222
  "active",
@@ -8172,7 +8224,7 @@ function Gc(e, t, n, r, i, a) {
8172
8224
  "label"
8173
8225
  ])) : s("", !0)
8174
8226
  ]),
8175
- e.$slots.meta ? (T(), c("div", Hc, [A(e.$slots, "meta", {}, void 0, !0), a.isLoading ? (T(), o(p, {
8227
+ e.$slots.meta ? (T(), c("div", Hc, [A(e.$slots, "meta", x(m(a.slotProps)), void 0, !0), a.isLoading ? (T(), o(p, {
8176
8228
  key: 0,
8177
8229
  type: "single",
8178
8230
  width: a.skeletonWidth(15, 30),
@@ -8183,16 +8235,16 @@ function Gc(e, t, n, r, i, a) {
8183
8235
  id: i.expandId,
8184
8236
  "aria-hidden": i.isExpanded ? "false" : "true",
8185
8237
  class: "ecs-data-card-expand"
8186
- }, [l("div", Wc, [A(e.$slots, "expand", {}, void 0, !0)])], 8, Uc)), [[ae, i.isExpanded]]) : s("", !0)
8238
+ }, [l("div", Wc, [A(e.$slots, "expand", x(m(a.slotProps)), void 0, !0)])], 8, Uc)), [[ae, i.isExpanded]]) : s("", !0)
8187
8239
  ], 4),
8188
- n.hover ? (T(), o(g, {
8240
+ n.hover ? (T(), o(_, {
8189
8241
  key: 4,
8190
8242
  inset: 0,
8191
8243
  radius: 0
8192
8244
  })) : s("", !0)
8193
- ], 10, Rc);
8245
+ ], 42, Rc);
8194
8246
  }
8195
- var Kc = /*#__PURE__*/ V(Lc, [["render", Gc], ["__scopeId", "data-v-9174240c"]]), qc = { name: "ecs-data-card-list" }, Jc = {
8247
+ var Kc = /*#__PURE__*/ V(Lc, [["render", Gc], ["__scopeId", "data-v-a9ea1da1"]]), qc = { name: "ecs-data-card-list" }, Jc = {
8196
8248
  class: "ecs-data-card-list",
8197
8249
  role: "list"
8198
8250
  };
@@ -15804,15 +15856,27 @@ var kg = /*#__PURE__*/ V(Cg, [["render", Og], ["__scopeId", "data-v-3fe85af5"]])
15804
15856
  EcsIcon: H,
15805
15857
  EcsFocusRing: U
15806
15858
  },
15807
- props: { size: {
15808
- type: String,
15809
- validator: (e) => [
15810
- "sml",
15811
- "md",
15812
- "lg"
15813
- ].includes(e),
15814
- default: "md"
15815
- } },
15859
+ props: {
15860
+ size: {
15861
+ type: String,
15862
+ validator: (e) => [
15863
+ "sml",
15864
+ "md",
15865
+ "lg"
15866
+ ].includes(e),
15867
+ default: "md"
15868
+ },
15869
+ variant: {
15870
+ type: String,
15871
+ validator: (e) => [
15872
+ "default",
15873
+ "neutral",
15874
+ "danger",
15875
+ "ai"
15876
+ ].includes(e),
15877
+ default: "default"
15878
+ }
15879
+ },
15816
15880
  computed: { iconSize() {
15817
15881
  return {
15818
15882
  sml: 12,
@@ -15824,19 +15888,19 @@ var kg = /*#__PURE__*/ V(Cg, [["render", Og], ["__scopeId", "data-v-3fe85af5"]])
15824
15888
  function jg(e, t, n, r, i, a) {
15825
15889
  let o = j("ecs-icon"), s = j("ecs-focus-ring");
15826
15890
  return T(), c("div", {
15827
- class: b(["ecs-multiselect-token", `ecs-multiselect-token-${n.size}`]),
15891
+ class: b(["ecs-multiselect-token", [`ecs-multiselect-token-${n.size}`, `ecs-multiselect-token-${n.variant}`]]),
15828
15892
  tabindex: "0",
15829
15893
  onKeydown: t[1] ||= R((t) => e.$emit("remove", t), ["delete"])
15830
15894
  }, [A(e.$slots, "default", {}, void 0, !0), l("button", {
15831
15895
  onClick: t[0] ||= (t) => e.$emit("remove", t),
15896
+ "aria-label": "Remove",
15832
15897
  class: "remove"
15833
15898
  }, [f(o, {
15834
15899
  type: "close",
15835
- size: a.iconSize,
15836
- color: "var(--color-white)"
15900
+ size: a.iconSize
15837
15901
  }, null, 8, ["size"]), f(s, { radius: 12 })])], 34);
15838
15902
  }
15839
- var Mg = /*#__PURE__*/ V(Ag, [["render", jg], ["__scopeId", "data-v-7ec30fcb"]]), Ng = {
15903
+ var Mg = /*#__PURE__*/ V(Ag, [["render", jg], ["__scopeId", "data-v-7e73cf16"]]), Ng = {
15840
15904
  name: "ecs-multiselect-option",
15841
15905
  components: {
15842
15906
  EcsIcon: H,
@@ -18446,6 +18510,10 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18446
18510
  type: Boolean,
18447
18511
  default: !0
18448
18512
  },
18513
+ chipSpacing: {
18514
+ type: Boolean,
18515
+ default: !0
18516
+ },
18449
18517
  name: {
18450
18518
  type: String,
18451
18519
  default: null
@@ -18537,10 +18605,19 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18537
18605
  ...e,
18538
18606
  type: "chip"
18539
18607
  }, n = document.createElement("span");
18540
- return n.className = "ecs-token-input-chip", n.setAttribute("contenteditable", "false"), n.setAttribute("draggable", this.isEditable ? "true" : "false"), n.__chip = t, O(h(Mg, {
18608
+ n.className = "ecs-token-input-chip", n.setAttribute("contenteditable", "false"), n.setAttribute("draggable", this.isEditable ? "true" : "false"), n.__chip = t, O(h(Mg, {
18541
18609
  size: this.tokenSize,
18542
18610
  onRemove: () => this.removeChipHost(n)
18543
- }, { default: () => t.label }), n), n.addEventListener("dragstart", (e) => this.onChipDragStart(e, n)), n.addEventListener("dragend", () => this.onChipDragEnd(n)), n;
18611
+ }, { default: () => t.label }), n);
18612
+ let r = n.firstElementChild;
18613
+ return r && r.removeAttribute("tabindex"), n.addEventListener("dragstart", (e) => this.onChipDragStart(e, n)), n.addEventListener("dragend", () => this.onChipDragEnd(n)), n.addEventListener("click", (e) => this.onChipClick(e, n)), n;
18614
+ },
18615
+ onChipClick(e, t) {
18616
+ if (!this.isEditable || e.target.closest(".remove")) return;
18617
+ let n = t.getBoundingClientRect(), r = document.createRange();
18618
+ e.clientX < n.left + n.width / 2 ? r.setStartBefore(t) : r.setStartAfter(t), r.collapse(!0), this.$refs.editable.focus();
18619
+ let i = window.getSelection();
18620
+ i.removeAllRanges(), i.addRange(r);
18544
18621
  },
18545
18622
  isChipHost(e) {
18546
18623
  return e && e.nodeType === Node.ELEMENT_NODE && e.classList && e.classList.contains("ecs-token-input-chip") && e.__chip;
@@ -18575,12 +18652,34 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18575
18652
  }), !1;
18576
18653
  }
18577
18654
  let n = this.createChipHost(e), r = this.resolveInsertRange(), i = this.captureChipRects();
18578
- r ? (r.deleteContents(), r.insertNode(n)) : this.$refs.editable.appendChild(n), this.placeCaretAfter(n);
18579
- let a = document.createRange();
18580
- return a.setStartAfter(n), a.collapse(!0), this.savedRange = a.cloneRange(), this.animateReorder(i), this.syncFromDom(), !0;
18655
+ r ? (r.deleteContents(), r.insertNode(n)) : this.$refs.editable.appendChild(n);
18656
+ let a = this.addChipSpacing(n);
18657
+ this.placeCaretAfter(a);
18658
+ let o = document.createRange();
18659
+ return o.setStartAfter(a), o.collapse(!0), this.savedRange = o.cloneRange(), this.animateReorder(i), this.syncFromDom(), !0;
18660
+ },
18661
+ addChipSpacing(e) {
18662
+ if (!this.chipSpacing || this.chipsOnly) return e;
18663
+ this.needsLeadingSpace(e) && e.before(document.createTextNode(" "));
18664
+ let t = e.nextSibling;
18665
+ if (t && t.nodeType === Node.TEXT_NODE && /^\s/.test(t.textContent)) return t.textContent.length === 1 || t.splitText(1), t;
18666
+ let n = document.createTextNode(" ");
18667
+ return e.after(n), n;
18668
+ },
18669
+ needsLeadingSpace(e) {
18670
+ let t = e.previousSibling;
18671
+ for (; t && t.nodeType === Node.TEXT_NODE && t.textContent === "";) t = t.previousSibling;
18672
+ return t ? t.nodeType === Node.TEXT_NODE ? !/\s$/.test(t.textContent) : this.isChipHost(t) : !1;
18581
18673
  },
18582
18674
  removeChipHost(e) {
18583
- this.selectedChip === e && (this.selectedChip = null), O(null, e), e.remove(), this.syncFromDom(), this.focusEditable();
18675
+ this.selectedChip === e && (this.selectedChip = null);
18676
+ let t = this.$refs.editable, n = Array.prototype.indexOf.call(t.childNodes, e);
18677
+ if (O(null, e), e.remove(), this.syncFromDom(), this.focusEditable(), n >= 0) {
18678
+ let e = document.createRange();
18679
+ e.setStart(t, Math.min(n, t.childNodes.length)), e.collapse(!0);
18680
+ let r = window.getSelection();
18681
+ r.removeAllRanges(), r.addRange(e);
18682
+ }
18584
18683
  },
18585
18684
  selectChip(e) {
18586
18685
  this.clearChipSelection(), this.selectedChip = e, e.classList.add("is-selected");
@@ -18604,7 +18703,19 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18604
18703
  return;
18605
18704
  }
18606
18705
  let t = this.chipBeforeCaret();
18607
- t && (e.preventDefault(), this.selectChip(t));
18706
+ if (t) {
18707
+ e.preventDefault(), this.selectChip(t);
18708
+ return;
18709
+ }
18710
+ this.caretAtStart() && e.preventDefault();
18711
+ },
18712
+ caretAtStart() {
18713
+ let e = window.getSelection();
18714
+ if (!e || e.rangeCount === 0) return !1;
18715
+ let t = e.getRangeAt(0);
18716
+ if (!t.collapsed) return !1;
18717
+ let n = this.$refs.editable, { startContainer: r, startOffset: i } = t;
18718
+ return r === n ? i === 0 : r.nodeType === Node.TEXT_NODE && i === 0 && r.parentNode === n && !r.previousSibling;
18608
18719
  },
18609
18720
  chipBeforeCaret() {
18610
18721
  let e = window.getSelection();
@@ -18658,7 +18769,7 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18658
18769
  let i = this.captureChipRects();
18659
18770
  n && (O(null, this.draggingHost), this.draggingHost.remove());
18660
18771
  let a = this.createChipHost(t);
18661
- r.insertNode(a), this.placeCaretAfter(a), this.animateReorder(i), this.syncFromDom();
18772
+ r.insertNode(a), this.placeCaretAfter(n ? a : this.addChipSpacing(a)), this.animateReorder(i), this.syncFromDom();
18662
18773
  },
18663
18774
  onChipDragStart(e, t) {
18664
18775
  if (!this.isEditable) {
@@ -18735,12 +18846,24 @@ var ab = /*#__PURE__*/ V(nb, [["render", ib], ["__scopeId", "data-v-451fee48"]])
18735
18846
  this.hideDropCaret();
18736
18847
  return;
18737
18848
  }
18738
- let i = this.$el.getBoundingClientRect();
18849
+ let i = this.$el.getBoundingClientRect(), a = i.top + this.$el.clientTop, o = this.getRowBounds(r.top + r.height / 2);
18739
18850
  this.dropCaret = {
18740
18851
  visible: !0,
18741
18852
  left: r.left - i.left - this.$el.clientLeft,
18742
- top: r.top - i.top - this.$el.clientTop,
18743
- height: r.height
18853
+ top: o ? o.top - a : r.top - a,
18854
+ height: o ? o.height : r.height
18855
+ };
18856
+ },
18857
+ getRowBounds(e) {
18858
+ let t = this.$refs.editable, n = getComputedStyle(t), r = parseFloat(n.lineHeight);
18859
+ if (!r) return null;
18860
+ let i = t.getBoundingClientRect(), a = i.top + parseFloat(n.paddingTop), o = i.height - parseFloat(n.paddingTop) - parseFloat(n.paddingBottom), s = Math.max(1, Math.round(o / r));
18861
+ return s === 1 ? {
18862
+ top: this.$el.getBoundingClientRect().top + this.$el.clientTop,
18863
+ height: this.$el.clientHeight
18864
+ } : {
18865
+ top: a + Math.min(s - 1, Math.max(0, Math.floor((e - a) / r))) * r,
18866
+ height: r
18744
18867
  };
18745
18868
  },
18746
18869
  hideDropCaret() {
@@ -18848,7 +18971,7 @@ function lb(e, t, n, r, i, a) {
18848
18971
  "aria-hidden": "true"
18849
18972
  }, null, 4), [[ae, i.dropCaret.visible]])], 34);
18850
18973
  }
18851
- var ub = /*#__PURE__*/ V(sb, [["render", lb], ["__scopeId", "data-v-e232deb7"]]), db = "application/x-ecs-chip", fb = {
18974
+ var ub = /*#__PURE__*/ V(sb, [["render", lb], ["__scopeId", "data-v-97a7a7c4"]]), db = "application/x-ecs-chip", fb = {
18852
18975
  name: "ecs-token-input-source",
18853
18976
  emits: ["dragstart", "dragend"],
18854
18977
  components: { EcsIcon: H },