@everchron/ec-shards 19.12.2 → 19.12.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.css +1 -1
- package/dist/ec-shards.js +43 -13
- package/dist/ec-shards.umd.cjs +1 -1
- package/dist/message-download-DTYYOeaP.js +44 -0
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -265,6 +265,7 @@ var ce = Object.create, le = Object.defineProperty, ue = Object.getOwnPropertyDe
|
|
|
265
265
|
"../assets/icons/marker.svg": () => import("./marker-BIq7j8BR.js"),
|
|
266
266
|
"../assets/icons/matter.svg": () => import("./matter-BujXIobq.js"),
|
|
267
267
|
"../assets/icons/merge.svg": () => import("./merge-SySAIGuG.js"),
|
|
268
|
+
"../assets/icons/message-download.svg": () => import("./message-download-DTYYOeaP.js"),
|
|
268
269
|
"../assets/icons/metadata.svg": () => import("./metadata-DkWPkCIT.js"),
|
|
269
270
|
"../assets/icons/minus-plain.svg": () => import("./minus-plain-Bmdfkafw.js"),
|
|
270
271
|
"../assets/icons/minus.svg": () => import("./minus-CnzuwJqj.js"),
|
|
@@ -6398,7 +6399,15 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6398
6399
|
type: Boolean,
|
|
6399
6400
|
default: !1
|
|
6400
6401
|
},
|
|
6401
|
-
checkboxHeight: { type: Number }
|
|
6402
|
+
checkboxHeight: { type: Number },
|
|
6403
|
+
sidebarWidth: {
|
|
6404
|
+
type: String,
|
|
6405
|
+
default: "300px"
|
|
6406
|
+
},
|
|
6407
|
+
sidebarBreakpoint: {
|
|
6408
|
+
type: Number,
|
|
6409
|
+
default: null
|
|
6410
|
+
}
|
|
6402
6411
|
},
|
|
6403
6412
|
data() {
|
|
6404
6413
|
return {
|
|
@@ -6406,8 +6415,9 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6406
6415
|
isExpanded: this.expanded,
|
|
6407
6416
|
isLoading: !1,
|
|
6408
6417
|
expandHeight: 0,
|
|
6409
|
-
|
|
6418
|
+
sidebarInlineHeight: 0,
|
|
6410
6419
|
footerHeight: 0,
|
|
6420
|
+
containerWidth: 0,
|
|
6411
6421
|
expandId: ""
|
|
6412
6422
|
};
|
|
6413
6423
|
},
|
|
@@ -6415,6 +6425,15 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6415
6425
|
rootStyle() {
|
|
6416
6426
|
return { width: this.isExpanded ? this.expandedWidth : this.collapsedWidth };
|
|
6417
6427
|
},
|
|
6428
|
+
resolvedSidebarWidth() {
|
|
6429
|
+
let e = this.sidebarWidth;
|
|
6430
|
+
if (typeof e != "string") return 0;
|
|
6431
|
+
let t = parseFloat(e);
|
|
6432
|
+
return isNaN(t) ? 0 : e.trim().endsWith("%") ? Math.round(this.containerWidth * t / 100) : t;
|
|
6433
|
+
},
|
|
6434
|
+
sidebarInline() {
|
|
6435
|
+
return this.sidebarBreakpoint != null && this.containerWidth > 0 && this.containerWidth <= this.sidebarBreakpoint;
|
|
6436
|
+
},
|
|
6418
6437
|
expandMode() {
|
|
6419
6438
|
return this.expandable === !0 || this.expandable === "button" ? "button" : this.expandable === "click" || this.expandable === "dblclick" ? this.expandable : null;
|
|
6420
6439
|
},
|
|
@@ -6556,7 +6575,7 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6556
6575
|
this.isExpanded !== t && (this.measure(), this.isExpanded = t, this.$emit("update:expanded", this.isExpanded));
|
|
6557
6576
|
},
|
|
6558
6577
|
setupObservers() {
|
|
6559
|
-
typeof ResizeObserver > "u" || (this.resizeObserver = new ResizeObserver(() => this.measure()), this.observeRefs());
|
|
6578
|
+
typeof ResizeObserver > "u" || (this.resizeObserver = new ResizeObserver(() => this.measure()), this.$el && this.$el.nodeType === 1 && this.resizeObserver.observe(this.$el), this.observeRefs());
|
|
6560
6579
|
},
|
|
6561
6580
|
observeRefs() {
|
|
6562
6581
|
if (!this.resizeObserver) return;
|
|
@@ -6564,6 +6583,7 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6564
6583
|
let e = {
|
|
6565
6584
|
expand: this.$refs.expandInner,
|
|
6566
6585
|
sidebar: this.$refs.sidebarInner,
|
|
6586
|
+
sidebarInline: this.$refs.sidebarInlineInner,
|
|
6567
6587
|
footer: this.$refs.footerInner
|
|
6568
6588
|
};
|
|
6569
6589
|
Object.keys(e).forEach((t) => {
|
|
@@ -6572,7 +6592,7 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6572
6592
|
});
|
|
6573
6593
|
},
|
|
6574
6594
|
measure() {
|
|
6575
|
-
this.$refs.expandInner && (this.expandHeight = this.$refs.expandInner.offsetHeight), this.$refs.
|
|
6595
|
+
this.$el && this.$el.nodeType === 1 && (this.containerWidth = this.$el.offsetWidth), this.$refs.expandInner && (this.expandHeight = this.$refs.expandInner.offsetHeight), this.$refs.sidebarInlineInner && (this.sidebarInlineHeight = this.$refs.sidebarInlineInner.offsetHeight), this.$refs.footerInner && (this.footerHeight = this.$refs.footerInner.offsetHeight);
|
|
6576
6596
|
}
|
|
6577
6597
|
}
|
|
6578
6598
|
}, qo = { class: "ecs-content-card-timeline-inner" }, Jo = { class: "ecs-content-card-body" }, Yo = { class: "ecs-content-card-columns" }, Xo = { class: "ecs-content-card-main" }, Zo = {
|
|
@@ -6581,10 +6601,7 @@ var Go = /*#__PURE__*/ V(Ro, [["render", Wo], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6581
6601
|
}, Qo = {
|
|
6582
6602
|
key: 1,
|
|
6583
6603
|
class: "ecs-content-card-header-content"
|
|
6584
|
-
}, $o = ["id", "aria-hidden"], es = ["aria-hidden"], ts = {
|
|
6585
|
-
ref: "sidebarInner",
|
|
6586
|
-
class: "ecs-content-card-sidebar-inner"
|
|
6587
|
-
}, ns = ["aria-hidden"], rs = {
|
|
6604
|
+
}, $o = ["id", "aria-hidden"], es = ["aria-hidden"], ts = ["aria-hidden"], ns = ["aria-hidden"], rs = {
|
|
6588
6605
|
ref: "footerInner",
|
|
6589
6606
|
class: "ecs-content-card-footer-inner"
|
|
6590
6607
|
};
|
|
@@ -6683,13 +6700,26 @@ function is(t, n, r, i, a, u) {
|
|
|
6683
6700
|
}, [l("div", {
|
|
6684
6701
|
ref: "expandInner",
|
|
6685
6702
|
class: b(["ecs-content-card-expand-inner", { "has-select": r.selectable }])
|
|
6686
|
-
}, [k(t.$slots, "contentExpand", {}, void 0, !0)], 2)], 12, $o)) : s("", !0)
|
|
6687
|
-
|
|
6703
|
+
}, [k(t.$slots, "contentExpand", {}, void 0, !0)], 2)], 12, $o)) : s("", !0),
|
|
6704
|
+
t.$slots.sidebar && u.sidebarInline ? (T(), c("div", {
|
|
6705
|
+
key: 2,
|
|
6706
|
+
style: S({ height: a.isExpanded ? a.sidebarInlineHeight + "px" : "0px" }),
|
|
6707
|
+
"aria-hidden": a.isExpanded ? "false" : "true",
|
|
6708
|
+
class: "ecs-content-card-sidebar-inline"
|
|
6709
|
+
}, [l("div", {
|
|
6710
|
+
ref: "sidebarInlineInner",
|
|
6711
|
+
class: b(["ecs-content-card-sidebar-inline-inner", { "has-select": r.selectable }])
|
|
6712
|
+
}, [k(t.$slots, "sidebar", {}, void 0, !0)], 2)], 12, es)) : s("", !0)
|
|
6713
|
+
]), t.$slots.sidebar && !u.sidebarInline ? (T(), c("div", {
|
|
6688
6714
|
key: 0,
|
|
6689
|
-
style: S({ width: a.isExpanded ? "
|
|
6715
|
+
style: S({ width: a.isExpanded ? u.resolvedSidebarWidth + "px" : "0px" }),
|
|
6690
6716
|
"aria-hidden": a.isExpanded ? "false" : "true",
|
|
6691
6717
|
class: "ecs-content-card-sidebar"
|
|
6692
|
-
}, [l("div",
|
|
6718
|
+
}, [l("div", {
|
|
6719
|
+
ref: "sidebarInner",
|
|
6720
|
+
style: S({ width: u.resolvedSidebarWidth + "px" }),
|
|
6721
|
+
class: "ecs-content-card-sidebar-inner"
|
|
6722
|
+
}, [k(t.$slots, "sidebar", {}, void 0, !0)], 4)], 12, ts)) : s("", !0)]), t.$slots.footer ? (T(), c("div", {
|
|
6693
6723
|
key: 0,
|
|
6694
6724
|
style: S(u.footerStyle),
|
|
6695
6725
|
"aria-hidden": u.footerHidden ? "true" : "false",
|
|
@@ -6707,7 +6737,7 @@ function is(t, n, r, i, a, u) {
|
|
|
6707
6737
|
"disabled"
|
|
6708
6738
|
])], 6);
|
|
6709
6739
|
}
|
|
6710
|
-
var as = /*#__PURE__*/ V(Ko, [["render", is], ["__scopeId", "data-v-
|
|
6740
|
+
var as = /*#__PURE__*/ V(Ko, [["render", is], ["__scopeId", "data-v-a5144026"]]), os = {
|
|
6711
6741
|
name: "ecs-formatted",
|
|
6712
6742
|
components: { EcsSkeletonLoader: G },
|
|
6713
6743
|
mixins: [Y],
|