@everchron/ec-shards 14.9.1 → 14.10.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
@@ -26,7 +26,7 @@ const ae = (e, s, t) => {
26
26
  },
27
27
  /** Sets the height and width of the icon, supports pixel and percentage values. */
28
28
  size: {
29
- type: String,
29
+ type: [String, Number],
30
30
  default: "30px"
31
31
  },
32
32
  /** Sets the color of the icon. By default, icons will always be colored by the inherited css color value. */
@@ -63,7 +63,7 @@ const ae = (e, s, t) => {
63
63
  "data-test-icon-type": e.type
64
64
  }, null, 8, ["class", "width", "height", "viewBox", "color", "title", "data-test-icon-type"]));
65
65
  }
66
- }, O = /* @__PURE__ */ _(Gi, [["__scopeId", "data-v-a1c506ab"]]), Ki = {
66
+ }, O = /* @__PURE__ */ _(Gi, [["__scopeId", "data-v-bd5eb94f"]]), Ki = {
67
67
  name: "EcsFocusRing",
68
68
  props: {
69
69
  /** Defines the distance of the focus ring from it focusable element. Should be smaller than `0` (negative) in almost all cases. */
@@ -3163,6 +3163,12 @@ const pe = /* @__PURE__ */ _(xo, [["render", zo], ["__scopeId", "data-v-47d42f7e
3163
3163
  validator: (e) => ["icon", "checkbox", "radiobutton", "switch", "sort", "link", null].includes(e),
3164
3164
  default: null
3165
3165
  },
3166
+ /** Determines the size of the list item. @todo implement for all types other than button. */
3167
+ size: {
3168
+ type: String,
3169
+ default: "md",
3170
+ validator: (e) => ["md", "sml"].includes(e)
3171
+ },
3166
3172
  /** Adds a subtle suffix text to the right side of the list item. Should be very short. */
3167
3173
  suffix: {
3168
3174
  type: String,
@@ -3283,6 +3289,9 @@ const pe = /* @__PURE__ */ _(xo, [["render", zo], ["__scopeId", "data-v-47d42f7e
3283
3289
  iconOnly: !1,
3284
3290
  align: "right"
3285
3291
  }, ...this.secondaryAction };
3292
+ },
3293
+ iconSize() {
3294
+ return this.size === "sml" ? 16 : 24;
3286
3295
  }
3287
3296
  },
3288
3297
  methods: {
@@ -3449,7 +3458,8 @@ function Ko(e, s, t, a, n, i) {
3449
3458
  t.subtle ? "subtle" : "",
3450
3459
  t.disabled ? "disabled" : "",
3451
3460
  t.noHover ? "no-hover" : "",
3452
- t.selected ? "selected" : ""
3461
+ t.selected ? "selected" : "",
3462
+ t.size === "sml" ? "sml" : ""
3453
3463
  ]]),
3454
3464
  tabindex: t.disabled ? -1 : 0,
3455
3465
  href: t.href,
@@ -3513,7 +3523,8 @@ function Ko(e, s, t, a, n, i) {
3513
3523
  t.subtle ? "subtle" : "",
3514
3524
  t.disabled ? "disabled" : "",
3515
3525
  t.noHover || n.preventHover ? "no-hover" : "",
3516
- t.selected ? "selected" : ""
3526
+ t.selected ? "selected" : "",
3527
+ t.size === "sml" ? "sml" : ""
3517
3528
  ]]),
3518
3529
  onClick: s[12] || (s[12] = (B) => e.$emit("click", B)),
3519
3530
  role: "menuitem",
@@ -3522,16 +3533,16 @@ function Ko(e, s, t, a, n, i) {
3522
3533
  t.icon ? (o(), h(c, {
3523
3534
  key: 0,
3524
3535
  type: t.icon,
3525
- size: "24",
3536
+ size: i.iconSize,
3526
3537
  class: "left-icon"
3527
- }, null, 8, ["type"])) : u("", !0),
3538
+ }, null, 8, ["type", "size"])) : u("", !0),
3528
3539
  t.fileIcon ? (o(), h(I, {
3529
3540
  key: 1,
3530
3541
  type: t.fileIcon,
3531
- width: 24,
3532
- height: 24,
3542
+ width: i.iconSize,
3543
+ height: i.iconSize,
3533
3544
  class: "file-icon"
3534
- }, null, 8, ["type"])) : u("", !0),
3545
+ }, null, 8, ["type", "width", "height"])) : u("", !0),
3535
3546
  f("span", Wo, [
3536
3547
  f("span", jo, [
3537
3548
  p(e.$slots, "default", {}, void 0, !0)
@@ -3574,7 +3585,7 @@ function Ko(e, s, t, a, n, i) {
3574
3585
  ], 10, $o))
3575
3586
  ]);
3576
3587
  }
3577
- const os = /* @__PURE__ */ _(Io, [["render", Ko], ["__scopeId", "data-v-20b01fd5"]]), Yo = {
3588
+ const os = /* @__PURE__ */ _(Io, [["render", Ko], ["__scopeId", "data-v-e7504ef5"]]), Yo = {
3578
3589
  name: "ecs-button-toolbar",
3579
3590
  emits: ["click"],
3580
3591
  components: {
@@ -10157,12 +10168,18 @@ function Gf(e, s, t, a, n, i) {
10157
10168
  "data-1p-ignore": i.disabled1Password
10158
10169
  }), null, 16, Uf));
10159
10170
  }
10160
- const zi = /* @__PURE__ */ _(Wf, [["render", Gf], ["__scopeId", "data-v-747337b1"]]), Kf = {
10171
+ const zi = /* @__PURE__ */ _(Wf, [["render", Gf], ["__scopeId", "data-v-bfe7899b"]]), Kf = {
10161
10172
  name: "EcsPopoverListHeadline",
10162
10173
  components: {
10163
10174
  EcsButtonCollapse: ls
10164
10175
  },
10165
10176
  props: {
10177
+ /** Determines the size of the headline. */
10178
+ size: {
10179
+ type: String,
10180
+ default: "md",
10181
+ validator: (e) => ["md", "sml"].includes(e)
10182
+ },
10166
10183
  /** Turns the popover list headline into a sticky headline. This means it will always stay fixed at the top of a scroll container until another popover list headline reaches the top. */
10167
10184
  sticky: {
10168
10185
  type: Boolean,
@@ -10207,7 +10224,8 @@ function Xf(e, s, t, a, n, i) {
10207
10224
  return o(), r("li", {
10208
10225
  class: v(["ecs-popover-list-title", [
10209
10226
  t.sticky ? "ecs-popover-list-title-sticky" : "ecs-popover-list-title-default",
10210
- t.sticky && e.$slots.controls ? "has-controls" : ""
10227
+ t.sticky && e.$slots.controls ? "has-controls" : "",
10228
+ t.size === "sml" ? "sml" : ""
10211
10229
  ]]),
10212
10230
  role: "heading"
10213
10231
  }, [
@@ -10226,7 +10244,7 @@ function Xf(e, s, t, a, n, i) {
10226
10244
  ])) : u("", !0)
10227
10245
  ], 2);
10228
10246
  }
10229
- const Jf = /* @__PURE__ */ _(Kf, [["render", Xf], ["__scopeId", "data-v-c1516cc2"]]), Ii = {
10247
+ const Jf = /* @__PURE__ */ _(Kf, [["render", Xf], ["__scopeId", "data-v-442eb0eb"]]), Ii = {
10230
10248
  roundedRect: {
10231
10249
  label: "roundedRect",
10232
10250
  styles: {