@everchron/ec-shards 14.4.0 → 14.4.1
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.css +1 -1
- package/dist/ec-shards.js +29 -22
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
|
|
7113
|
+
i.isLoading ? "loading" : ""
|
|
7106
7114
|
]]),
|
|
7107
7115
|
role: "listitem",
|
|
7108
|
-
"aria-busy":
|
|
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 &&
|
|
7129
|
+
t.icon && i.isLoading ? (o(), h(c, {
|
|
7122
7130
|
key: 2,
|
|
7123
7131
|
type: "rect",
|
|
7124
7132
|
width: 24,
|
|
7125
|
-
height: 24
|
|
7126
|
-
|
|
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
|
-
|
|
7152
|
+
i.isLoading ? (o(), h(c, {
|
|
7144
7153
|
key: 1,
|
|
7145
7154
|
type: "single",
|
|
7146
|
-
width: i.skeletonWidth(30, 70)
|
|
7147
|
-
|
|
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
|
-
|
|
7180
|
+
i.isLoading ? (o(), h(c, {
|
|
7171
7181
|
key: 0,
|
|
7172
7182
|
type: "single",
|
|
7173
|
-
width: i.skeletonWidth(15, 30)
|
|
7174
|
-
|
|
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-
|
|
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",
|
|
@@ -10525,14 +10536,11 @@ function wg(e, s, t, a, n, i) {
|
|
|
10525
10536
|
t.readOnly ? u("", !0) : (o(), h(c, {
|
|
10526
10537
|
key: 0,
|
|
10527
10538
|
direction: "column",
|
|
10528
|
-
gap:
|
|
10539
|
+
gap: 4,
|
|
10529
10540
|
align: "start"
|
|
10530
10541
|
}, {
|
|
10531
10542
|
default: S(() => [
|
|
10532
|
-
_(l, {
|
|
10533
|
-
preset: "label-1",
|
|
10534
|
-
weight: "medium"
|
|
10535
|
-
}, {
|
|
10543
|
+
_(l, { preset: "label-1" }, {
|
|
10536
10544
|
default: S(() => s[10] || (s[10] = [
|
|
10537
10545
|
L("Sticker shape")
|
|
10538
10546
|
])),
|
|
@@ -10606,8 +10614,7 @@ function wg(e, s, t, a, n, i) {
|
|
|
10606
10614
|
f("div", cg, [
|
|
10607
10615
|
t.readOnly ? u("", !0) : (o(), h(l, {
|
|
10608
10616
|
key: 0,
|
|
10609
|
-
preset: "label-1"
|
|
10610
|
-
weight: "medium"
|
|
10617
|
+
preset: "label-1"
|
|
10611
10618
|
}, {
|
|
10612
10619
|
default: S(() => s[11] || (s[11] = [
|
|
10613
10620
|
L("Change content and formatting")
|
|
@@ -10897,7 +10904,7 @@ function wg(e, s, t, a, n, i) {
|
|
|
10897
10904
|
])
|
|
10898
10905
|
]);
|
|
10899
10906
|
}
|
|
10900
|
-
const K_ = /* @__PURE__ */ b(ig, [["render", wg], ["__scopeId", "data-v-
|
|
10907
|
+
const K_ = /* @__PURE__ */ b(ig, [["render", wg], ["__scopeId", "data-v-b61a9582"]]), Y_ = {
|
|
10901
10908
|
__name: "fill-icon",
|
|
10902
10909
|
props: {
|
|
10903
10910
|
/** The identifier of the icon which should show up. */
|