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