@everchron/ec-shards 13.0.11 → 13.0.13

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: {
@@ -8297,7 +8309,7 @@ function $b(t, e, l, a, i, n) {
8297
8309
  l.fixedLeftLast ? (o(), r("div", Ob)) : u("", !0)
8298
8310
  ], 14, gb);
8299
8311
  }
8300
- const a50 = /* @__PURE__ */ w(pb, [["render", $b], ["__scopeId", "data-v-8c99e888"]]), jb = {
8312
+ const a50 = /* @__PURE__ */ w(pb, [["render", $b], ["__scopeId", "data-v-d9adaad7"]]), jb = {
8301
8313
  name: "ecs-data-grid-group",
8302
8314
  props: {
8303
8315
  /** Determines if this cell group should be shown. Avoid showing more than 1 group at the same time. */
@@ -8389,6 +8401,11 @@ const c50 = /* @__PURE__ */ w(jb, [["render", Fb], ["__scopeId", "data-v-ee025ab
8389
8401
  /** Allows to set custom styles on the inner cell container (must be a style object). */
8390
8402
  styles: {
8391
8403
  type: Object
8404
+ },
8405
+ /** Adds a focus ring to the cell. */
8406
+ focus: {
8407
+ type: Boolean,
8408
+ default: !1
8392
8409
  }
8393
8410
  },
8394
8411
  data() {
@@ -8471,7 +8488,7 @@ function Eb(t, e, l, a, i, n) {
8471
8488
  }, [
8472
8489
  l.fixedRight ? (o(), r("div", Tb)) : u("", !0),
8473
8490
  s("div", {
8474
- class: "ecs-data-grid-cell-inner",
8491
+ class: k(["ecs-data-grid-cell-inner", { focus: l.focus }]),
8475
8492
  style: S([n.widthType === "number" ? n.widthStyles : { width: "100%" }, n.paddingStyles, l.styles]),
8476
8493
  "data-column": n.computedId,
8477
8494
  "data-test": n.computedId
@@ -8485,11 +8502,11 @@ function Eb(t, e, l, a, i, n) {
8485
8502
  type: "chevron"
8486
8503
  }, null, 8, ["onClick", "collapsed"])) : u("", !0),
8487
8504
  p(t.$slots, "default", {}, void 0, !0)
8488
- ], 12, Ub),
8505
+ ], 14, Ub),
8489
8506
  l.fixedLeftLast ? (o(), r("div", Ab)) : u("", !0)
8490
8507
  ], 6);
8491
8508
  }
8492
- const d50 = /* @__PURE__ */ w(Hb, [["render", Eb], ["__scopeId", "data-v-e95227db"]]), Ib = {
8509
+ const d50 = /* @__PURE__ */ w(Hb, [["render", Eb], ["__scopeId", "data-v-cd73a8e8"]]), Ib = {
8493
8510
  name: "ecs-data-list"
8494
8511
  }, Db = {
8495
8512
  class: "ecs-data-list",
@@ -14279,6 +14296,15 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
14279
14296
  list: {
14280
14297
  type: Array,
14281
14298
  default: null
14299
+ },
14300
+ /** Whether the range is disabled */
14301
+ disabled: {
14302
+ type: Boolean,
14303
+ default: !1
14304
+ },
14305
+ /** The id of the range */
14306
+ id: {
14307
+ type: String
14282
14308
  }
14283
14309
  },
14284
14310
  computed: {
@@ -14304,7 +14330,7 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
14304
14330
  },
14305
14331
  updateProgress(t) {
14306
14332
  const e = (t - this.min) / (this.max - this.min) * 100;
14307
- this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-blue-9) ${e}%, var(--color-gray-4) ${e}%)`;
14333
+ this.disabled ? this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-gray-6) ${e}%, var(--color-gray-4) ${e}%)` : this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-blue-9) ${e}%, var(--color-gray-4) ${e}%)`;
14308
14334
  }
14309
14335
  },
14310
14336
  mounted() {
@@ -14315,7 +14341,7 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
14315
14341
  this.updateProgress(t);
14316
14342
  }
14317
14343
  }
14318
- }, F$ = ["min", "max", "value", "step"], H$ = {
14344
+ }, F$ = ["id", "disabled", "min", "max", "value", "step"], H$ = {
14319
14345
  key: 0,
14320
14346
  class: "ecs-range-markers"
14321
14347
  }, T$ = {
@@ -14328,6 +14354,8 @@ function U$(t, e, l, a, i, n) {
14328
14354
  }, [
14329
14355
  s("input", {
14330
14356
  ref: "rangeInput",
14357
+ id: l.id,
14358
+ disabled: l.disabled,
14331
14359
  onInput: e[0] || (e[0] = (...c) => n.onInput && n.onInput(...c)),
14332
14360
  type: "range",
14333
14361
  min: l.min,
@@ -14350,7 +14378,7 @@ function U$(t, e, l, a, i, n) {
14350
14378
  ])) : u("", !0)
14351
14379
  ], 2);
14352
14380
  }
14353
- const ot0 = /* @__PURE__ */ w(B$, [["render", U$], ["__scopeId", "data-v-85f2a5e1"]]), V$ = {
14381
+ const ot0 = /* @__PURE__ */ w(B$, [["render", U$], ["__scopeId", "data-v-b6f3e6b0"]]), V$ = {
14354
14382
  name: "ecs-rating-star-write",
14355
14383
  emits: ["click", "reset"],
14356
14384
  props: {