@everchron/ec-shards 14.20.2 → 14.20.4

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
@@ -2785,10 +2785,11 @@ const mo = /* @__PURE__ */ _(co, [["render", go], ["__scopeId", "data-v-88d4a1b8
2785
2785
  type: Boolean,
2786
2786
  default: !1
2787
2787
  },
2788
- /** Reflects a true or false state with positive (green) and negative (red) colors. */
2788
+ /** Reflects a true or false state with colors. Boolean `true` shows red when OFF and green when ON (two-way colored). String `positive` shows green when ON (one-way colored). String `negative` shows red when ON (one-way colored). */
2789
2789
  colored: {
2790
- type: Boolean,
2791
- default: !1
2790
+ type: [Boolean, String],
2791
+ default: !1,
2792
+ validator: (e) => [!1, !0, "positive", "negative"].includes(e)
2792
2793
  },
2793
2794
  /** Reflects an indeterminate switch state (e.g. not all options checked, but some). This is a purely visual setting. */
2794
2795
  indeterminate: {
@@ -2825,6 +2826,9 @@ const mo = /* @__PURE__ */ _(co, [["render", go], ["__scopeId", "data-v-88d4a1b8
2825
2826
  sizeClass() {
2826
2827
  return this.size && this.size !== "" ? this.size == "sml-toggle" ? "ecs-switch-sml regular-font" : `ecs-switch-${this.size}` : this.size;
2827
2828
  },
2829
+ coloredClass() {
2830
+ return this.colored ? this.colored === !0 ? "ecs-switch-colored" : this.colored === "positive" ? "ecs-switch-colored-positive" : this.colored === "negative" ? "ecs-switch-colored-negative" : "" : "";
2831
+ },
2828
2832
  isBoolean() {
2829
2833
  return typeof this.value == "boolean";
2830
2834
  },
@@ -2863,7 +2867,7 @@ function ko(e, s, t, a, n, i) {
2863
2867
  i.sizeClass,
2864
2868
  i.hasDefaultSlot ? "ecs-switch-has-label" : "",
2865
2869
  t.disabled ? "disabled" : "",
2866
- t.colored ? "ecs-switch-colored" : "",
2870
+ i.coloredClass,
2867
2871
  t.indeterminate ? "ecs-switch-indeterminate" : ""
2868
2872
  ]]),
2869
2873
  role: "switch",
@@ -2892,7 +2896,7 @@ function ko(e, s, t, a, n, i) {
2892
2896
  ], 8, _o)) : u("", !0)
2893
2897
  ]);
2894
2898
  }
2895
- const bi = /* @__PURE__ */ _(ho, [["render", ko], ["__scopeId", "data-v-951d9222"]]), xo = {
2899
+ const bi = /* @__PURE__ */ _(ho, [["render", ko], ["__scopeId", "data-v-c04e56d8"]]), xo = {
2896
2900
  name: "ecs-sortbutton",
2897
2901
  emits: ["click"],
2898
2902
  components: { EcsFormCheck: as, EcsFocusRing: R },
@@ -10118,7 +10122,7 @@ const ck = /* @__PURE__ */ _(Rf, [["render", jf], ["__scopeId", "data-v-1c058d79
10118
10122
  /** Input type, supports most HTML5 types. */
10119
10123
  type: {
10120
10124
  type: String,
10121
- validator: (e) => ["text", "number", "tel", "password", "email", "url", "date", "week", "textarea"].includes(e),
10125
+ validator: (e) => ["text", "number", "tel", "password", "email", "url", "date", "week", "month", "datetime-local", "time", "textarea"].includes(e),
10122
10126
  default: "text"
10123
10127
  },
10124
10128
  /** Sets the model value of the input. */
@@ -10206,7 +10210,7 @@ const ck = /* @__PURE__ */ _(Rf, [["render", jf], ["__scopeId", "data-v-1c058d79
10206
10210
  return this.size && this.size !== "" ? `ecs-form-control-${this.size}` : this.size;
10207
10211
  },
10208
10212
  formatClass() {
10209
- return this.format && this.format !== "" ? `ecs-form-control-format-${this.format}` : this.format;
10213
+ return this.format && this.format !== "" ? `ecs-form-control-format-${this.format}` : this.type === "datetime-local" || this.type === "date" || this.type === "week" || this.type === "month" ? "ecs-form-control-format-date" : this.format;
10210
10214
  },
10211
10215
  disabled1Password() {
10212
10216
  return this.autocomplete === "1p-disable";
@@ -10274,7 +10278,7 @@ function Yf(e, s, t, a, n, i) {
10274
10278
  "data-1p-ignore": i.disabled1Password
10275
10279
  }), null, 16, Kf));
10276
10280
  }
10277
- const Pi = /* @__PURE__ */ _(Uf, [["render", Yf], ["__scopeId", "data-v-bfe7899b"]]), Xf = {
10281
+ const Pi = /* @__PURE__ */ _(Uf, [["render", Yf], ["__scopeId", "data-v-7927b1fa"]]), Xf = {
10278
10282
  name: "EcsPopoverListHeadline",
10279
10283
  components: {
10280
10284
  EcsButtonCollapse: rs