@everchron/ec-shards 13.0.12 → 13.0.14

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
@@ -7651,6 +7651,11 @@ const n50 = /* @__PURE__ */ w(Gx, [["render", Xx], ["__scopeId", "data-v-9a5c1e1
7651
7651
  borderRows: {
7652
7652
  type: Boolean,
7653
7653
  default: !0
7654
+ },
7655
+ /** Makes the table visually a table sheet (with grid lines vertically and horizontally) */
7656
+ sheet: {
7657
+ type: Boolean,
7658
+ default: !1
7654
7659
  }
7655
7660
  },
7656
7661
  methods: {
@@ -7673,7 +7678,8 @@ function lb(t, e, l, a, i, n) {
7673
7678
  class: k(["ecs-data-grid scrollbar", [
7674
7679
  t.$slots.empty ? "empty" : "",
7675
7680
  l.bordered ? "bordered" : "",
7676
- l.borderRows ? "border-rows" : ""
7681
+ l.borderRows || l.sheet ? "border-rows" : "",
7682
+ l.sheet ? "sheet" : ""
7677
7683
  ]]),
7678
7684
  "aria-disabled": l.disabled || null,
7679
7685
  role: "table"
@@ -7701,7 +7707,7 @@ function lb(t, e, l, a, i, n) {
7701
7707
  ])) : u("", !0)
7702
7708
  ], 42, Qx);
7703
7709
  }
7704
- const s50 = /* @__PURE__ */ w(Jx, [["render", lb], ["__scopeId", "data-v-90dcc123"]]), ob = {
7710
+ const s50 = /* @__PURE__ */ w(Jx, [["render", lb], ["__scopeId", "data-v-d7b08ad8"]]), ob = {
7705
7711
  name: "ecs-data-grid-row",
7706
7712
  emits: ["rowdrop", "click", "contextmenu", "dblclick", "collapse"],
7707
7713
  props: {
@@ -7729,6 +7735,11 @@ const s50 = /* @__PURE__ */ w(Jx, [["render", lb], ["__scopeId", "data-v-90dcc12
7729
7735
  clickable: {
7730
7736
  type: Boolean,
7731
7737
  default: !1
7738
+ },
7739
+ /** Determines if the row background color should change to gray on hover. */
7740
+ hover: {
7741
+ type: Boolean,
7742
+ default: !0
7732
7743
  }
7733
7744
  },
7734
7745
  computed: {
@@ -7763,7 +7774,8 @@ function nb(t, e, l, a, i, n) {
7763
7774
  class: k(["ecs-data-grid-row", [
7764
7775
  l.state,
7765
7776
  l.type == "header" ? "header-row" : "",
7766
- n.isClickable ? "clickable" : ""
7777
+ n.isClickable ? "clickable" : "",
7778
+ l.hover ? "hoverable" : ""
7767
7779
  ]]),
7768
7780
  ref: "grid_row",
7769
7781
  role: "row"
@@ -7777,7 +7789,7 @@ function nb(t, e, l, a, i, n) {
7777
7789
  p(t.$slots, "default", {}, void 0, !0)
7778
7790
  ], 2);
7779
7791
  }
7780
- const sb = /* @__PURE__ */ w(ob, [["render", nb], ["__scopeId", "data-v-53990047"]]), ib = {
7792
+ const sb = /* @__PURE__ */ w(ob, [["render", nb], ["__scopeId", "data-v-ae6888e6"]]), ib = {
7781
7793
  name: "ecs-data-grid-row-group",
7782
7794
  emits: ["toggle"],
7783
7795
  components: {
@@ -8049,6 +8061,11 @@ const Ps = /* @__PURE__ */ w(hb, [["render", mb], ["__scopeId", "data-v-27e4cd97
8049
8061
  /** Allows to set custom styles on the inner cell container (must be a style object). */
8050
8062
  styles: {
8051
8063
  type: Object
8064
+ },
8065
+ /** Prevents rendering any content in the cell. */
8066
+ empty: {
8067
+ type: Boolean,
8068
+ default: !1
8052
8069
  }
8053
8070
  },
8054
8071
  data() {
@@ -8258,7 +8275,7 @@ function $b(t, e, l, a, i, n) {
8258
8275
  }, _(v.name), 9, _b))), 128))
8259
8276
  ]),
8260
8277
  _: 1
8261
- }, 8, ["modelValue"])) : (o(), r("div", {
8278
+ }, 8, ["modelValue"])) : l.empty ? u("", !0) : (o(), r("div", {
8262
8279
  key: 4,
8263
8280
  class: "ecs-data-grid-head-cell-text",
8264
8281
  title: l.name
@@ -8297,7 +8314,7 @@ function $b(t, e, l, a, i, n) {
8297
8314
  l.fixedLeftLast ? (o(), r("div", Ob)) : u("", !0)
8298
8315
  ], 14, gb);
8299
8316
  }
8300
- const a50 = /* @__PURE__ */ w(pb, [["render", $b], ["__scopeId", "data-v-8c99e888"]]), jb = {
8317
+ const a50 = /* @__PURE__ */ w(pb, [["render", $b], ["__scopeId", "data-v-5c914be6"]]), jb = {
8301
8318
  name: "ecs-data-grid-group",
8302
8319
  props: {
8303
8320
  /** Determines if this cell group should be shown. Avoid showing more than 1 group at the same time. */
@@ -8389,6 +8406,11 @@ const c50 = /* @__PURE__ */ w(jb, [["render", Fb], ["__scopeId", "data-v-ee025ab
8389
8406
  /** Allows to set custom styles on the inner cell container (must be a style object). */
8390
8407
  styles: {
8391
8408
  type: Object
8409
+ },
8410
+ /** Adds a focus ring to the cell. */
8411
+ focus: {
8412
+ type: Boolean,
8413
+ default: !1
8392
8414
  }
8393
8415
  },
8394
8416
  data() {
@@ -8471,7 +8493,7 @@ function Eb(t, e, l, a, i, n) {
8471
8493
  }, [
8472
8494
  l.fixedRight ? (o(), r("div", Tb)) : u("", !0),
8473
8495
  s("div", {
8474
- class: "ecs-data-grid-cell-inner",
8496
+ class: k(["ecs-data-grid-cell-inner", { focus: l.focus }]),
8475
8497
  style: S([n.widthType === "number" ? n.widthStyles : { width: "100%" }, n.paddingStyles, l.styles]),
8476
8498
  "data-column": n.computedId,
8477
8499
  "data-test": n.computedId
@@ -8485,11 +8507,11 @@ function Eb(t, e, l, a, i, n) {
8485
8507
  type: "chevron"
8486
8508
  }, null, 8, ["onClick", "collapsed"])) : u("", !0),
8487
8509
  p(t.$slots, "default", {}, void 0, !0)
8488
- ], 12, Ub),
8510
+ ], 14, Ub),
8489
8511
  l.fixedLeftLast ? (o(), r("div", Ab)) : u("", !0)
8490
8512
  ], 6);
8491
8513
  }
8492
- const d50 = /* @__PURE__ */ w(Hb, [["render", Eb], ["__scopeId", "data-v-e95227db"]]), Ib = {
8514
+ const d50 = /* @__PURE__ */ w(Hb, [["render", Eb], ["__scopeId", "data-v-cd73a8e8"]]), Ib = {
8493
8515
  name: "ecs-data-list"
8494
8516
  }, Db = {
8495
8517
  class: "ecs-data-list",