@everchron/ec-shards 8.11.21 → 8.11.23

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
@@ -13629,19 +13629,24 @@ const W_ = /* @__PURE__ */ v(Oy, [["render", Vy], ["__scopeId", "data-v-9ceb80a6
13629
13629
  type: String,
13630
13630
  validator: (e) => ["tree", "group"].includes(e),
13631
13631
  default: "tree"
13632
+ },
13633
+ /** Adds indentation to tree list items that are not collapsable */
13634
+ indent: {
13635
+ type: Boolean,
13636
+ default: !1
13632
13637
  }
13633
13638
  }
13634
13639
  }, qy = ["id", "role"];
13635
13640
  function Wy(e, s, t, a, n, i) {
13636
13641
  return o(), l("div", {
13637
- class: "ecs-tree-view-list",
13642
+ class: h(["ecs-tree-view-list", { "ecs-tree-view-list-indent": t.indent }]),
13638
13643
  id: t.id,
13639
13644
  role: t.role
13640
13645
  }, [
13641
13646
  p(e.$slots, "default", {}, void 0, !0)
13642
- ], 8, qy);
13647
+ ], 10, qy);
13643
13648
  }
13644
- const j_ = /* @__PURE__ */ v(Hy, [["render", Wy], ["__scopeId", "data-v-b2d4ee72"]]), jy = {
13649
+ const j_ = /* @__PURE__ */ v(Hy, [["render", Wy], ["__scopeId", "data-v-6af94f50"]]), jy = {
13645
13650
  name: "ecs-tree-list-item",
13646
13651
  emits: ["click", "toggled"],
13647
13652
  components: { EcsIcon: M, EcsButtonCollapse: Os, EcsFocusRing: L },
@@ -13728,6 +13733,9 @@ const j_ = /* @__PURE__ */ v(Hy, [["render", Wy], ["__scopeId", "data-v-b2d4ee72
13728
13733
  isSelectable() {
13729
13734
  if (this.state == "hover" || this.selectable || this.draggable)
13730
13735
  return !0;
13736
+ },
13737
+ hasChilds() {
13738
+ return this.$slots.collapse;
13731
13739
  }
13732
13740
  },
13733
13741
  methods: {
@@ -13781,7 +13789,8 @@ function Xy(e, s, t, a, n, i) {
13781
13789
  t.draggable ? "draggable" : "",
13782
13790
  t.large ? "ecs-tree-view-entry-lg" : "",
13783
13791
  t.actionsOnHover ? "actions-hover" : "",
13784
- i.stateClass
13792
+ i.stateClass,
13793
+ i.hasChilds ? "has-childs" : ""
13785
13794
  ]]),
13786
13795
  role: "treeitem",
13787
13796
  tabindex: i.isSelectable ? "0" : "-1",
@@ -13834,7 +13843,7 @@ function Xy(e, s, t, a, n, i) {
13834
13843
  ], 10, Yy)) : u("", !0)
13835
13844
  ]);
13836
13845
  }
13837
- const U_ = /* @__PURE__ */ v(jy, [["render", Xy], ["__scopeId", "data-v-5ad9b59c"]]), Zy = {
13846
+ const U_ = /* @__PURE__ */ v(jy, [["render", Xy], ["__scopeId", "data-v-b0532193"]]), Zy = {
13838
13847
  name: "ecs-tree-list-headline"
13839
13848
  }, Jy = { class: "ecs-tree-view-headline" };
13840
13849
  function Qy(e, s, t, a, n, i) {