@everchron/ec-shards 14.4.0 → 14.4.2

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
@@ -7033,9 +7033,9 @@ const I_ = /* @__PURE__ */ b(cd, [["render", dd], ["__scopeId", "data-v-08aaa823
7033
7033
  type: Boolean,
7034
7034
  default: !1
7035
7035
  },
7036
- /** Turns the card into a skeleton loader. Used when the card content is not yet available. */
7036
+ /** Turns the card into a skeleton loader. Can be a boolean or string. If a string is provided and not empty, loading will be true. If the string is `ai`, skeleton loaders will have the ai prop set to true. */
7037
7037
  loading: {
7038
- type: Boolean,
7038
+ type: [Boolean, String],
7039
7039
  default: !1
7040
7040
  },
7041
7041
  /** Adds a spinning animation to the `icon`. Note, this prop should only be used when the icon itself is set to `loading`. */
@@ -7079,6 +7079,14 @@ const I_ = /* @__PURE__ */ b(cd, [["render", dd], ["__scopeId", "data-v-08aaa823
7079
7079
  expandId: ""
7080
7080
  };
7081
7081
  },
7082
+ computed: {
7083
+ isLoading() {
7084
+ return typeof this.loading == "string" ? !!this.loading : this.loading;
7085
+ },
7086
+ isAiLoading() {
7087
+ return this.loading === "ai";
7088
+ }
7089
+ },
7082
7090
  methods: {
7083
7091
  skeletonWidth: function(e, s) {
7084
7092
  return Math.floor(Math.random() * (s - e + 1) + e);
@@ -7102,10 +7110,10 @@ function bd(e, s, t, a, n, i) {
7102
7110
  t.active ? "active" : "",
7103
7111
  t.shadow ? "shadow" : "",
7104
7112
  n.isExpanded ? "expanded" : "",
7105
- t.loading ? "loading" : ""
7113
+ i.isLoading ? "loading" : ""
7106
7114
  ]]),
7107
7115
  role: "listitem",
7108
- "aria-busy": t.loading || null,
7116
+ "aria-busy": i.isLoading || null,
7109
7117
  tabindex: t.hover ? "0" : "-1"
7110
7118
  }, [
7111
7119
  t.control && e.$slots.control ? (o(), r("div", gd, [
@@ -7118,12 +7126,13 @@ function bd(e, s, t, a, n, i) {
7118
7126
  spinning: t.spinning,
7119
7127
  size: "24"
7120
7128
  }, null, 8, ["type", "color", "spinning"])) : u("", !0),
7121
- t.icon && t.loading ? (o(), h(c, {
7129
+ t.icon && i.isLoading ? (o(), h(c, {
7122
7130
  key: 2,
7123
7131
  type: "rect",
7124
7132
  width: 24,
7125
- height: 24
7126
- })) : u("", !0),
7133
+ height: 24,
7134
+ ai: i.isAiLoading
7135
+ }, null, 8, ["ai"])) : u("", !0),
7127
7136
  f("div", md, [
7128
7137
  f("div", hd, [
7129
7138
  t.expandable && t.expandPosition === "left" ? (o(), h(d, {
@@ -7140,11 +7149,12 @@ function bd(e, s, t, a, n, i) {
7140
7149
  class: "expand-button-left"
7141
7150
  }, null, 8, ["aria-controls", "aria-expanded", "icon", "active", "aria-label"])) : u("", !0),
7142
7151
  p(e.$slots, "default", {}, void 0, !0),
7143
- t.loading ? (o(), h(c, {
7152
+ i.isLoading ? (o(), h(c, {
7144
7153
  key: 1,
7145
7154
  type: "single",
7146
- width: i.skeletonWidth(30, 70)
7147
- }, null, 8, ["width"])) : u("", !0),
7155
+ width: i.skeletonWidth(30, 70),
7156
+ ai: i.isAiLoading
7157
+ }, null, 8, ["width", "ai"])) : u("", !0),
7148
7158
  e.$slots.actions ? (o(), r("div", {
7149
7159
  key: 2,
7150
7160
  class: v(["ecs-data-card-actions", t.actionsOnHover ? "on-hover" : ""])
@@ -7167,11 +7177,12 @@ function bd(e, s, t, a, n, i) {
7167
7177
  ]),
7168
7178
  e.$slots.meta ? (o(), r("div", pd, [
7169
7179
  p(e.$slots, "meta", {}, void 0, !0),
7170
- t.loading ? (o(), h(c, {
7180
+ i.isLoading ? (o(), h(c, {
7171
7181
  key: 0,
7172
7182
  type: "single",
7173
- width: i.skeletonWidth(15, 30)
7174
- }, null, 8, ["width"])) : u("", !0)
7183
+ width: i.skeletonWidth(15, 30),
7184
+ ai: i.isAiLoading
7185
+ }, null, 8, ["width", "ai"])) : u("", !0)
7175
7186
  ])) : u("", !0),
7176
7187
  e.$slots.expand ? qe((o(), r("div", {
7177
7188
  key: 1,
@@ -7193,7 +7204,7 @@ function bd(e, s, t, a, n, i) {
7193
7204
  })) : u("", !0)
7194
7205
  ], 10, fd);
7195
7206
  }
7196
- const E_ = /* @__PURE__ */ b(ud, [["render", bd], ["__scopeId", "data-v-ba0c6801"]]), _d = {
7207
+ const E_ = /* @__PURE__ */ b(ud, [["render", bd], ["__scopeId", "data-v-0b29bd50"]]), _d = {
7197
7208
  name: "ecs-data-card-list"
7198
7209
  }, kd = {
7199
7210
  class: "ecs-data-card-list",
@@ -10260,7 +10271,7 @@ const Jf = /* @__PURE__ */ b(Kf, [["render", Xf], ["__scopeId", "data-v-c1516cc2
10260
10271
  /** Indicator that shows the position of the sticker on the page. If not passed, no page position indicator will be shown. */
10261
10272
  pagePosition: {
10262
10273
  type: String,
10263
- validator: (e) => ["top-left", "top-right", "bottom-left", "bottom-right", "center-left", "center-right", "center-top", "center-bottom", null].includes(e),
10274
+ validator: (e) => ["top-left", "top-right", "bottom-left", "bottom-right", "center-top", "center-bottom", null].includes(e),
10264
10275
  default: null
10265
10276
  }
10266
10277
  },
@@ -10323,12 +10334,6 @@ const Jf = /* @__PURE__ */ b(Kf, [["render", Xf], ["__scopeId", "data-v-c1516cc2
10323
10334
  case "bottom-right":
10324
10335
  e.bottom = "2px", e.right = "2px";
10325
10336
  break;
10326
- case "center-left":
10327
- e.left = "2px", e.top = "50%", e.transform = "translateY(-50%)";
10328
- break;
10329
- case "center-right":
10330
- e.right = "2px", e.top = "50%", e.transform = "translateY(-50%)";
10331
- break;
10332
10337
  case "center-top":
10333
10338
  e.top = "2px", e.left = "50%", e.transform = "translateX(-50%)";
10334
10339
  break;
@@ -10525,14 +10530,11 @@ function wg(e, s, t, a, n, i) {
10525
10530
  t.readOnly ? u("", !0) : (o(), h(c, {
10526
10531
  key: 0,
10527
10532
  direction: "column",
10528
- gap: 12,
10533
+ gap: 4,
10529
10534
  align: "start"
10530
10535
  }, {
10531
10536
  default: S(() => [
10532
- _(l, {
10533
- preset: "label-1",
10534
- weight: "medium"
10535
- }, {
10537
+ _(l, { preset: "label-1" }, {
10536
10538
  default: S(() => s[10] || (s[10] = [
10537
10539
  L("Sticker shape")
10538
10540
  ])),
@@ -10606,8 +10608,7 @@ function wg(e, s, t, a, n, i) {
10606
10608
  f("div", cg, [
10607
10609
  t.readOnly ? u("", !0) : (o(), h(l, {
10608
10610
  key: 0,
10609
- preset: "label-1",
10610
- weight: "medium"
10611
+ preset: "label-1"
10611
10612
  }, {
10612
10613
  default: S(() => s[11] || (s[11] = [
10613
10614
  L("Change content and formatting")
@@ -10897,7 +10898,7 @@ function wg(e, s, t, a, n, i) {
10897
10898
  ])
10898
10899
  ]);
10899
10900
  }
10900
- const K_ = /* @__PURE__ */ b(ig, [["render", wg], ["__scopeId", "data-v-531bd9a3"]]), Y_ = {
10901
+ const K_ = /* @__PURE__ */ b(ig, [["render", wg], ["__scopeId", "data-v-7578d00d"]]), Y_ = {
10901
10902
  __name: "fill-icon",
10902
10903
  props: {
10903
10904
  /** The identifier of the icon which should show up. */