@everchron/ec-shards 19.10.0 → 19.10.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 +71 -22
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -6305,14 +6305,28 @@ var qo = /*#__PURE__*/ H(Bo, [["render", Ko], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6305
6305
|
expandedWidth: {
|
|
6306
6306
|
type: String,
|
|
6307
6307
|
default: "100%"
|
|
6308
|
+
},
|
|
6309
|
+
hideFooterOnExpand: {
|
|
6310
|
+
type: Boolean,
|
|
6311
|
+
default: !1
|
|
6312
|
+
},
|
|
6313
|
+
beforeExpand: {
|
|
6314
|
+
type: Function,
|
|
6315
|
+
default: null
|
|
6316
|
+
},
|
|
6317
|
+
loading: {
|
|
6318
|
+
type: Boolean,
|
|
6319
|
+
default: !1
|
|
6308
6320
|
}
|
|
6309
6321
|
},
|
|
6310
6322
|
data() {
|
|
6311
6323
|
return {
|
|
6312
6324
|
isSelected: this.selected,
|
|
6313
6325
|
isExpanded: this.expanded,
|
|
6326
|
+
isLoading: !1,
|
|
6314
6327
|
expandHeight: 0,
|
|
6315
6328
|
sidebarWidth: 0,
|
|
6329
|
+
footerHeight: 0,
|
|
6316
6330
|
expandId: ""
|
|
6317
6331
|
};
|
|
6318
6332
|
},
|
|
@@ -6329,6 +6343,18 @@ var qo = /*#__PURE__*/ H(Bo, [["render", Ko], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6329
6343
|
showHover() {
|
|
6330
6344
|
return this.hover || !!this.expandMode;
|
|
6331
6345
|
},
|
|
6346
|
+
cardExpanded() {
|
|
6347
|
+
return this.isExpanded && !!this.expandMode;
|
|
6348
|
+
},
|
|
6349
|
+
expandLoading() {
|
|
6350
|
+
return this.loading || this.isLoading;
|
|
6351
|
+
},
|
|
6352
|
+
footerHidden() {
|
|
6353
|
+
return this.hideFooterOnExpand && this.isExpanded;
|
|
6354
|
+
},
|
|
6355
|
+
footerStyle() {
|
|
6356
|
+
return this.hideFooterOnExpand ? this.isExpanded ? { height: "0px" } : this.footerHeight ? { height: this.footerHeight + "px" } : { height: "auto" } : null;
|
|
6357
|
+
},
|
|
6332
6358
|
hasSidebar() {
|
|
6333
6359
|
return !!this.$slots.sidebar;
|
|
6334
6360
|
},
|
|
@@ -6390,14 +6416,30 @@ var qo = /*#__PURE__*/ H(Bo, [["render", Ko], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6390
6416
|
this.isSelected = !!e, this.$emit("update:selected", this.isSelected);
|
|
6391
6417
|
},
|
|
6392
6418
|
toggleExpand() {
|
|
6393
|
-
this.setExpanded(!this.
|
|
6419
|
+
this.isExpanded ? this.setExpanded(!1) : this.requestExpand();
|
|
6394
6420
|
},
|
|
6395
6421
|
expand() {
|
|
6396
|
-
this.
|
|
6422
|
+
this.requestExpand();
|
|
6397
6423
|
},
|
|
6398
6424
|
collapse() {
|
|
6399
6425
|
this.setExpanded(!1);
|
|
6400
6426
|
},
|
|
6427
|
+
requestExpand() {
|
|
6428
|
+
if (!(this.isExpanded || this.isLoading)) {
|
|
6429
|
+
if (typeof this.beforeExpand == "function") {
|
|
6430
|
+
let e = this.beforeExpand();
|
|
6431
|
+
if (e && typeof e.then == "function") {
|
|
6432
|
+
this.isLoading = !0, e.then(() => {
|
|
6433
|
+
this.isLoading = !1, this.$nextTick(() => this.setExpanded(!0));
|
|
6434
|
+
}).catch(() => {
|
|
6435
|
+
this.isLoading = !1;
|
|
6436
|
+
});
|
|
6437
|
+
return;
|
|
6438
|
+
}
|
|
6439
|
+
}
|
|
6440
|
+
this.setExpanded(!0);
|
|
6441
|
+
}
|
|
6442
|
+
},
|
|
6401
6443
|
setExpanded(e) {
|
|
6402
6444
|
let t = !!e;
|
|
6403
6445
|
this.isExpanded !== t && (this.measure(), this.isExpanded = t, this.$emit("update:expanded", this.isExpanded));
|
|
@@ -6410,7 +6452,8 @@ var qo = /*#__PURE__*/ H(Bo, [["render", Ko], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6410
6452
|
this._observed = this._observed || {};
|
|
6411
6453
|
let e = {
|
|
6412
6454
|
expand: this.$refs.expandInner,
|
|
6413
|
-
sidebar: this.$refs.sidebarInner
|
|
6455
|
+
sidebar: this.$refs.sidebarInner,
|
|
6456
|
+
footer: this.$refs.footerInner
|
|
6414
6457
|
};
|
|
6415
6458
|
Object.keys(e).forEach((t) => {
|
|
6416
6459
|
let n = e[t];
|
|
@@ -6418,24 +6461,21 @@ var qo = /*#__PURE__*/ H(Bo, [["render", Ko], ["__scopeId", "data-v-95f66a3d"]])
|
|
|
6418
6461
|
});
|
|
6419
6462
|
},
|
|
6420
6463
|
measure() {
|
|
6421
|
-
this.$refs.expandInner && (this.expandHeight = this.$refs.expandInner.offsetHeight), this.$refs.sidebarInner && (this.sidebarWidth = this.$refs.sidebarInner.offsetWidth);
|
|
6464
|
+
this.$refs.expandInner && (this.expandHeight = this.$refs.expandInner.offsetHeight), this.$refs.sidebarInner && (this.sidebarWidth = this.$refs.sidebarInner.offsetWidth), this.$refs.footerInner && (this.footerHeight = this.$refs.footerInner.offsetHeight);
|
|
6422
6465
|
}
|
|
6423
6466
|
}
|
|
6424
|
-
}, Yo = { class: "ecs-content-card-timeline-inner" }, Xo = { class: "ecs-content-card-body" }, Zo = { class: "ecs-content-card-
|
|
6467
|
+
}, Yo = { class: "ecs-content-card-timeline-inner" }, Xo = { class: "ecs-content-card-body" }, Zo = { class: "ecs-content-card-columns" }, Qo = { class: "ecs-content-card-main" }, $o = {
|
|
6425
6468
|
key: 0,
|
|
6426
6469
|
class: "ecs-content-card-header"
|
|
6427
|
-
},
|
|
6470
|
+
}, es = {
|
|
6428
6471
|
key: 1,
|
|
6429
6472
|
class: "ecs-content-card-header-content"
|
|
6430
|
-
},
|
|
6431
|
-
ref: "expandInner",
|
|
6432
|
-
class: "ecs-content-card-expand-inner"
|
|
6433
|
-
}, rs = {
|
|
6434
|
-
key: 2,
|
|
6435
|
-
class: "ecs-content-card-footer"
|
|
6436
|
-
}, is = ["aria-hidden"], as = {
|
|
6473
|
+
}, ts = ["id", "aria-hidden"], ns = ["aria-hidden"], rs = {
|
|
6437
6474
|
ref: "sidebarInner",
|
|
6438
6475
|
class: "ecs-content-card-sidebar-inner"
|
|
6476
|
+
}, is = ["aria-hidden"], as = {
|
|
6477
|
+
ref: "footerInner",
|
|
6478
|
+
class: "ecs-content-card-footer-inner"
|
|
6439
6479
|
};
|
|
6440
6480
|
function os(e, t, n, r, i, a) {
|
|
6441
6481
|
let u = A("ecs-checkbox"), d = A("ecs-button"), p = A("ecs-card");
|
|
@@ -6478,14 +6518,14 @@ function os(e, t, n, r, i, a) {
|
|
|
6478
6518
|
onDblclick: a.onCardDblclick,
|
|
6479
6519
|
id: n.id,
|
|
6480
6520
|
selected: i.isSelected,
|
|
6481
|
-
expanded:
|
|
6521
|
+
expanded: a.cardExpanded,
|
|
6482
6522
|
hover: a.showHover,
|
|
6483
6523
|
progress: n.progress,
|
|
6484
6524
|
disabled: n.disabled,
|
|
6485
6525
|
class: "ecs-content-card-card"
|
|
6486
6526
|
}, {
|
|
6487
|
-
default: I(() => [l("div", Xo, [l("div", Zo, [
|
|
6488
|
-
a.hasHeader ? (T(), c("div",
|
|
6527
|
+
default: I(() => [l("div", Xo, [l("div", Zo, [l("div", Qo, [
|
|
6528
|
+
a.hasHeader ? (T(), c("div", $o, [
|
|
6489
6529
|
n.selectable ? (T(), c("div", {
|
|
6490
6530
|
key: 0,
|
|
6491
6531
|
onClick: t[0] ||= R(() => {}, ["stop"]),
|
|
@@ -6499,7 +6539,7 @@ function os(e, t, n, r, i, a) {
|
|
|
6499
6539
|
"value",
|
|
6500
6540
|
"disabled"
|
|
6501
6541
|
])])) : s("", !0),
|
|
6502
|
-
e.$slots.header ? (T(), c("div",
|
|
6542
|
+
e.$slots.header ? (T(), c("div", es, [k(e.$slots, "header", {}, void 0, !0)])) : s("", !0),
|
|
6503
6543
|
a.showExpandButton ? (T(), o(d, {
|
|
6504
6544
|
key: 2,
|
|
6505
6545
|
onClick: R(a.toggleExpand, ["stop"]),
|
|
@@ -6507,6 +6547,7 @@ function os(e, t, n, r, i, a) {
|
|
|
6507
6547
|
"icon-only": "",
|
|
6508
6548
|
size: "sml",
|
|
6509
6549
|
icon: i.isExpanded ? "collapse" : "expand",
|
|
6550
|
+
loading: a.expandLoading,
|
|
6510
6551
|
active: i.isExpanded || null,
|
|
6511
6552
|
disabled: n.disabled,
|
|
6512
6553
|
"aria-controls": i.expandId,
|
|
@@ -6516,6 +6557,7 @@ function os(e, t, n, r, i, a) {
|
|
|
6516
6557
|
}, null, 8, [
|
|
6517
6558
|
"onClick",
|
|
6518
6559
|
"icon",
|
|
6560
|
+
"loading",
|
|
6519
6561
|
"active",
|
|
6520
6562
|
"disabled",
|
|
6521
6563
|
"aria-controls",
|
|
@@ -6528,21 +6570,28 @@ function os(e, t, n, r, i, a) {
|
|
|
6528
6570
|
class: "ecs-content-card-actions"
|
|
6529
6571
|
}, [k(e.$slots, "actions", {}, void 0, !0)])) : s("", !0)
|
|
6530
6572
|
])) : s("", !0),
|
|
6531
|
-
l("div",
|
|
6573
|
+
l("div", { class: b(["ecs-content-card-content", { "has-select": n.selectable }]) }, [k(e.$slots, "default", {}, void 0, !0)], 2),
|
|
6532
6574
|
e.$slots.contentExpand ? (T(), c("div", {
|
|
6533
6575
|
key: 1,
|
|
6534
6576
|
id: i.expandId,
|
|
6535
6577
|
style: S({ height: i.isExpanded ? i.expandHeight + "px" : "0px" }),
|
|
6536
6578
|
"aria-hidden": i.isExpanded ? "false" : "true",
|
|
6537
6579
|
class: "ecs-content-card-expand"
|
|
6538
|
-
}, [l("div",
|
|
6539
|
-
|
|
6580
|
+
}, [l("div", {
|
|
6581
|
+
ref: "expandInner",
|
|
6582
|
+
class: b(["ecs-content-card-expand-inner", { "has-select": n.selectable }])
|
|
6583
|
+
}, [k(e.$slots, "contentExpand", {}, void 0, !0)], 2)], 12, ts)) : s("", !0)
|
|
6540
6584
|
]), e.$slots.sidebar ? (T(), c("div", {
|
|
6541
6585
|
key: 0,
|
|
6542
6586
|
style: S({ width: i.isExpanded ? "300px" : "0px" }),
|
|
6543
6587
|
"aria-hidden": i.isExpanded ? "false" : "true",
|
|
6544
6588
|
class: "ecs-content-card-sidebar"
|
|
6545
|
-
}, [l("div",
|
|
6589
|
+
}, [l("div", rs, [k(e.$slots, "sidebar", {}, void 0, !0)], 512)], 12, ns)) : s("", !0)]), e.$slots.footer ? (T(), c("div", {
|
|
6590
|
+
key: 0,
|
|
6591
|
+
style: S(a.footerStyle),
|
|
6592
|
+
"aria-hidden": a.footerHidden ? "true" : "false",
|
|
6593
|
+
class: b(["ecs-content-card-footer", { "is-collapsing": n.hideFooterOnExpand }])
|
|
6594
|
+
}, [l("div", as, [k(e.$slots, "footer", {}, void 0, !0)], 512)], 14, is)) : s("", !0)])]),
|
|
6546
6595
|
_: 3
|
|
6547
6596
|
}, 8, [
|
|
6548
6597
|
"onClick",
|
|
@@ -6555,7 +6604,7 @@ function os(e, t, n, r, i, a) {
|
|
|
6555
6604
|
"disabled"
|
|
6556
6605
|
])], 6);
|
|
6557
6606
|
}
|
|
6558
|
-
var ss = /*#__PURE__*/ H(Jo, [["render", os], ["__scopeId", "data-v-
|
|
6607
|
+
var ss = /*#__PURE__*/ H(Jo, [["render", os], ["__scopeId", "data-v-255198d5"]]), cs = {
|
|
6559
6608
|
name: "ecs-formatted",
|
|
6560
6609
|
components: { EcsSkeletonLoader: G },
|
|
6561
6610
|
mixins: [Y],
|