@everchron/ec-shards 19.10.6 → 19.11.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.css +1 -1
- package/dist/ec-shards.js +25 -10
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -864,6 +864,10 @@ var G = /*#__PURE__*/ V(Re, [["render", Be], ["__scopeId", "data-v-5a7d7926"]]),
|
|
|
864
864
|
rounded: {
|
|
865
865
|
type: Boolean,
|
|
866
866
|
default: !0
|
|
867
|
+
},
|
|
868
|
+
logo: {
|
|
869
|
+
type: Boolean,
|
|
870
|
+
default: !1
|
|
867
871
|
}
|
|
868
872
|
},
|
|
869
873
|
data() {
|
|
@@ -911,7 +915,10 @@ var G = /*#__PURE__*/ V(Re, [["render", Be], ["__scopeId", "data-v-5a7d7926"]]),
|
|
|
911
915
|
width: `${this.size}px`,
|
|
912
916
|
height: `${this.size}px`,
|
|
913
917
|
borderRadius: this.rounded ? "50%" : "4px"
|
|
914
|
-
}, t = {
|
|
918
|
+
}, t = {
|
|
919
|
+
background: `transparent url(${this.image}) no-repeat center center/${this.logo ? "contain" : "cover"}`,
|
|
920
|
+
border: this.logo ? "1px solid var(--color-gray-2)" : void 0
|
|
921
|
+
}, n = {
|
|
915
922
|
backgroundColor: this.background,
|
|
916
923
|
fontSize: Math.floor(this.size / 2.5) + "px"
|
|
917
924
|
}, r = this.isImage ? t : n;
|
|
@@ -960,7 +967,7 @@ function We(e, t, n, r, i, a) {
|
|
|
960
967
|
type: "badge"
|
|
961
968
|
})) : s("", !0)], 14, He);
|
|
962
969
|
}
|
|
963
|
-
var Ge = /*#__PURE__*/ V(Ve, [["render", We], ["__scopeId", "data-v-
|
|
970
|
+
var Ge = /*#__PURE__*/ V(Ve, [["render", We], ["__scopeId", "data-v-e27b6ef7"]]), Ke = {
|
|
964
971
|
components: {
|
|
965
972
|
EcsIcon: H,
|
|
966
973
|
EcsFocusRing: U
|
|
@@ -5789,12 +5796,12 @@ function So(t, n, r, i, a, u) {
|
|
|
5789
5796
|
}, null, 8, bo)])) : s("", !0), r.busy ? (T(), o(m, {
|
|
5790
5797
|
key: 1,
|
|
5791
5798
|
text: r.busyText,
|
|
5792
|
-
"primary-color": "
|
|
5793
|
-
"secondary-color": "
|
|
5799
|
+
"primary-color": "var(--color-gray-8)",
|
|
5800
|
+
"secondary-color": "var(--color-gray-4)",
|
|
5794
5801
|
speed: 1200
|
|
5795
5802
|
}, null, 8, ["text"])) : k(t.$slots, "default", { key: 2 }, void 0, !0)], 6)]), t.$slots.actions ? (T(), c("div", xo, [k(t.$slots, "actions", {}, void 0, !0)])) : s("", !0)], 10, go);
|
|
5796
5803
|
}
|
|
5797
|
-
var Co = /*#__PURE__*/ V(ho, [["render", So], ["__scopeId", "data-v-
|
|
5804
|
+
var Co = /*#__PURE__*/ V(ho, [["render", So], ["__scopeId", "data-v-82308bc7"]]), wo = /* @__PURE__ */ me((/* @__PURE__ */ z(((e) => {
|
|
5798
5805
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = e.clickOutSide = {
|
|
5799
5806
|
mounted: function(e, t, n) {
|
|
5800
5807
|
e.clickOutsideEvent = function(n) {
|
|
@@ -6634,9 +6641,14 @@ var ss = /*#__PURE__*/ V(Jo, [["render", os], ["__scopeId", "data-v-d1f03f28"]])
|
|
|
6634
6641
|
components: { EcsSkeletonLoader: G },
|
|
6635
6642
|
mixins: [Y],
|
|
6636
6643
|
props: {
|
|
6637
|
-
|
|
6638
|
-
type:
|
|
6639
|
-
|
|
6644
|
+
size: {
|
|
6645
|
+
type: String,
|
|
6646
|
+
validator: (e) => [
|
|
6647
|
+
"xsml",
|
|
6648
|
+
"sml",
|
|
6649
|
+
"md"
|
|
6650
|
+
].includes(e),
|
|
6651
|
+
default: "md"
|
|
6640
6652
|
},
|
|
6641
6653
|
loading: {
|
|
6642
6654
|
type: Boolean,
|
|
@@ -6647,6 +6659,9 @@ var ss = /*#__PURE__*/ V(Jo, [["render", os], ["__scopeId", "data-v-d1f03f28"]])
|
|
|
6647
6659
|
default: 4
|
|
6648
6660
|
}
|
|
6649
6661
|
},
|
|
6662
|
+
computed: { skeletonLineHeight() {
|
|
6663
|
+
return this.size === "xsml" ? 1 : this.size === "sml" ? 2 : 3;
|
|
6664
|
+
} },
|
|
6650
6665
|
created() {
|
|
6651
6666
|
this.formattedId = this.generateUniqueId();
|
|
6652
6667
|
},
|
|
@@ -6662,12 +6677,12 @@ var ss = /*#__PURE__*/ V(Jo, [["render", os], ["__scopeId", "data-v-d1f03f28"]])
|
|
|
6662
6677
|
function us(e, t, n, r, i, a) {
|
|
6663
6678
|
let s = A("ecs-skeleton-loader");
|
|
6664
6679
|
return T(), c("div", {
|
|
6665
|
-
class: b(["ecs-formatted", [n.
|
|
6680
|
+
class: b(["ecs-formatted", [n.size ? `ecs-formatted-${n.size}` : ""]]),
|
|
6666
6681
|
id: e.formattedId
|
|
6667
6682
|
}, [n.loading ? (T(), o(s, {
|
|
6668
6683
|
key: 1,
|
|
6669
6684
|
type: "multi",
|
|
6670
|
-
"line-height":
|
|
6685
|
+
"line-height": a.skeletonLineHeight,
|
|
6671
6686
|
count: n.skeletonCount
|
|
6672
6687
|
}, null, 8, ["line-height", "count"])) : k(e.$slots, "default", {
|
|
6673
6688
|
key: 0,
|