@everchron/ec-shards 22.0.1 → 22.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
@@ -16462,8 +16462,14 @@ function lv(e, t, n, r, i, a) {
16462
16462
  }
16463
16463
  var uv = /*#__PURE__*/ a(sv, [["render", lv], ["__scopeId", "data-v-91f7b273"]]), dv = {
16464
16464
  name: "ecs-segments",
16465
- emits: ["click"],
16465
+ emits: ["click", "update:modelValue"],
16466
16466
  components: { EcsIcon: r },
16467
+ computed: { currentValue() {
16468
+ return this.modelValue ?? this.value;
16469
+ } },
16470
+ methods: { select(e) {
16471
+ this.$emit("update:modelValue", e), this.$emit("click", e);
16472
+ } },
16467
16473
  props: {
16468
16474
  options: {
16469
16475
  type: Array,
@@ -16481,6 +16487,15 @@ var uv = /*#__PURE__*/ a(sv, [["render", lv], ["__scopeId", "data-v-91f7b273"]])
16481
16487
  type: [String, Number],
16482
16488
  default: ""
16483
16489
  },
16490
+ modelValue: {
16491
+ type: [String, Number],
16492
+ default: void 0
16493
+ },
16494
+ size: {
16495
+ type: String,
16496
+ default: "md",
16497
+ validator: (e) => ["sml", "md"].includes(e)
16498
+ },
16484
16499
  disabled: {
16485
16500
  type: Boolean,
16486
16501
  default: !1
@@ -16496,30 +16511,30 @@ var uv = /*#__PURE__*/ a(sv, [["render", lv], ["__scopeId", "data-v-91f7b273"]])
16496
16511
  ], mv = ["title"];
16497
16512
  function hv(e, t, n, r, i, a) {
16498
16513
  let o = F("ecs-icon");
16499
- return j(), h("div", { class: D(["ecs-segments", [n.inline ? "ecs-segments-inline" : ""]]) }, [(j(!0), h(s, null, N(n.options, (t) => (j(), h("label", {
16500
- key: t.id,
16501
- for: t.id,
16514
+ return j(), h("div", { class: D(["ecs-segments", [n.inline ? "ecs-segments-inline" : "", n.size]]) }, [(j(!0), h(s, null, N(n.options, (e) => (j(), h("label", {
16515
+ key: e.id,
16516
+ for: e.id,
16502
16517
  disabled: n.disabled
16503
16518
  }, [g("input", {
16504
16519
  type: "radio",
16505
16520
  name: n.name,
16506
- value: t.id,
16507
- id: t.id,
16508
- checked: n.value.toLowerCase() == t.id.toLowerCase() || null,
16509
- disabled: t.disabled || n.disabled,
16510
- onClick: (n) => e.$emit("click", t.id)
16521
+ value: e.id,
16522
+ id: e.id,
16523
+ checked: String(a.currentValue).toLowerCase() == String(e.id).toLowerCase() || null,
16524
+ disabled: e.disabled || n.disabled,
16525
+ onClick: (t) => a.select(e.id)
16511
16526
  }, null, 8, pv), g("span", {
16512
16527
  class: "ecs-segment",
16513
- title: t.title
16514
- }, [t.icon ? (j(), p(o, {
16528
+ title: e.title
16529
+ }, [e.icon ? (j(), p(o, {
16515
16530
  key: 0,
16516
- class: D([t.icon && t.label ? "icon-spacing" : ""]),
16517
- type: t.icon,
16531
+ class: D([e.icon && e.label ? "icon-spacing" : ""]),
16532
+ type: e.icon,
16518
16533
  size: "20",
16519
16534
  color: "var(--color-gray-13)"
16520
- }, null, 8, ["class", "type"])) : m("", !0), v(" " + L(t.label), 1)], 8, mv)], 8, fv))), 128))], 2);
16535
+ }, null, 8, ["class", "type"])) : m("", !0), v(" " + L(e.label), 1)], 8, mv)], 8, fv))), 128))], 2);
16521
16536
  }
16522
- var gv = /*#__PURE__*/ a(dv, [["render", hv], ["__scopeId", "data-v-b516b417"]]), _v = {
16537
+ var gv = /*#__PURE__*/ a(dv, [["render", hv], ["__scopeId", "data-v-14d280e0"]]), _v = {
16523
16538
  name: "ecs-selection-grid",
16524
16539
  emits: ["update:modelValue"],
16525
16540
  components: {
@@ -16792,7 +16807,7 @@ function zv(e, t, n, r, i, a) {
16792
16807
  "data-orientation": a.tabOrientation
16793
16808
  }, [P(e.$slots, "default", {}, void 0, !0)], 10, Rv);
16794
16809
  }
16795
- var Bv = /*#__PURE__*/ a(Lv, [["render", zv], ["__scopeId", "data-v-683b26db"]]), Vv = {
16810
+ var Bv = /*#__PURE__*/ a(Lv, [["render", zv], ["__scopeId", "data-v-db1ea22c"]]), Vv = {
16796
16811
  name: "ecs-tabs",
16797
16812
  props: { fill: {
16798
16813
  type: Boolean,
@@ -17496,7 +17511,7 @@ function Vy(e, t, n, r, i, a) {
17496
17511
  t[2] ||= g("span", { class: "hover" }, null, -1)
17497
17512
  ], 42, zy);
17498
17513
  }
17499
- var Hy = /*#__PURE__*/ a(Ry, [["render", Vy], ["__scopeId", "data-v-d0778847"]]), Uy = {
17514
+ var Hy = /*#__PURE__*/ a(Ry, [["render", Vy], ["__scopeId", "data-v-22e00b93"]]), Uy = {
17500
17515
  name: "ecs-tag",
17501
17516
  emits: ["click"],
17502
17517
  components: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
3
  "type": "module",
4
- "version": "22.0.1",
4
+ "version": "22.1.0",
5
5
  "private": false,
6
6
  "description": "Everchron Shards UI Library",
7
7
  "repository": {