@everchron/ec-shards 8.11.4 → 8.11.5

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
@@ -6242,7 +6242,7 @@ const ad = {
6242
6242
  }, fd = { class: "ecs-color-picker-field--double" }, pd = { class: "ecs-color-picker-field--single" }, gd = { class: "ecs-color-picker-field--single" }, md = { class: "ecs-color-picker-field--single" }, hd = {
6243
6243
  key: 0,
6244
6244
  class: "ecs-color-picker-field--single"
6245
- }, vd = ["aria-label", "aria-selected", "onClick"], _d = ["aria-label", "onClick"];
6245
+ }, vd = ["aria-label", "aria-selected", "title", "onClick"], _d = ["aria-label", "title", "onClick"];
6246
6246
  function yd(e, s, t, a, n, i) {
6247
6247
  const r = p("saturation"), c = p("hue"), d = p("alpha"), g = p("ed-in"), h = p("checkboard");
6248
6248
  return o(), l("div", {
@@ -6326,6 +6326,7 @@ function yd(e, s, t, a, n, i) {
6326
6326
  e.isTransparent(k.hex) ? (o(), l("div", {
6327
6327
  key: "else-" + k.id,
6328
6328
  "aria-label": k.title,
6329
+ title: k.title,
6329
6330
  class: "ecs-color-picker-presets-color",
6330
6331
  onClick: (z) => i.handlePreset(k.hex)
6331
6332
  }, [
@@ -6336,6 +6337,7 @@ function yd(e, s, t, a, n, i) {
6336
6337
  key: "if-" + k.id,
6337
6338
  style: B({ background: k.hex }),
6338
6339
  "aria-selected": e.colors.hex === k.hex ? "true" : "false",
6340
+ title: k.title,
6339
6341
  onClick: (z) => i.handlePreset(k.hex)
6340
6342
  }, null, 14, vd))
6341
6343
  ], 64))), 256)),
@@ -6403,6 +6405,11 @@ const kd = {
6403
6405
  return {
6404
6406
  color: this.modelValue.hex || this.modelValue
6405
6407
  };
6408
+ },
6409
+ selectedColorName() {
6410
+ var s;
6411
+ const e = typeof this.modelValue == "object" && this.modelValue.hex ? this.modelValue.hex : this.modelValue;
6412
+ return ((s = this.swatches.find((t) => t.hex === e)) == null ? void 0 : s.title) || e;
6406
6413
  }
6407
6414
  }
6408
6415
  };
@@ -6426,13 +6433,13 @@ function xd(e, s, t, a, n, i) {
6426
6433
  class: v(["ecs-color-picker-input-button", i.sizeClass]),
6427
6434
  style: B(i.selectedColorStyle)
6428
6435
  }, [
6429
- f("span", null, x(t.modelValue.hex || t.modelValue), 1)
6436
+ f("span", null, x(i.selectedColorName), 1)
6430
6437
  ], 6)
6431
6438
  ]),
6432
6439
  _: 1
6433
6440
  });
6434
6441
  }
6435
- const $y = /* @__PURE__ */ _(kd, [["render", xd], ["__scopeId", "data-v-7132cbfc"]]);
6442
+ const $y = /* @__PURE__ */ _(kd, [["render", xd], ["__scopeId", "data-v-08aaa823"]]);
6436
6443
  const wd = {
6437
6444
  name: "ecs-data-card",
6438
6445
  components: { EcsIcon: M, EcsSkeletonLoader: Ce, EcsButtonTable: Fs, EcsButton: Se, EcsFocusRing: L },