@everchron/ec-shards 20.4.1 → 20.5.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 +175 -140
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -8120,6 +8120,21 @@ var rl = /*#__PURE__*/ V(el, [["render", nl], ["__scopeId", "data-v-4f34cac7"]])
|
|
|
8120
8120
|
hasPill() {
|
|
8121
8121
|
return this.pill?.text || this.pill?.icon;
|
|
8122
8122
|
},
|
|
8123
|
+
designationLevel() {
|
|
8124
|
+
return Number(this.designation?.level) || 0;
|
|
8125
|
+
},
|
|
8126
|
+
showTreeIndicator() {
|
|
8127
|
+
return this.designationLevel > 0;
|
|
8128
|
+
},
|
|
8129
|
+
treeIndicatorStyle() {
|
|
8130
|
+
return { left: `${this.designationLevel * 8 - 2}px` };
|
|
8131
|
+
},
|
|
8132
|
+
treeIndicatorPath() {
|
|
8133
|
+
return `M1 ${this.designation?.firstInLevel ? 4 : 0}V18C1 19.1046 1.89543 20 3 20H5`;
|
|
8134
|
+
},
|
|
8135
|
+
rowStyle() {
|
|
8136
|
+
return this.designationLevel <= 0 ? {} : { paddingLeft: `${this.designationLevel * 8}px` };
|
|
8137
|
+
},
|
|
8123
8138
|
computedOpenButton() {
|
|
8124
8139
|
if (!this.openButton) return null;
|
|
8125
8140
|
let e = {
|
|
@@ -8177,7 +8192,7 @@ var rl = /*#__PURE__*/ V(el, [["render", nl], ["__scopeId", "data-v-4f34cac7"]])
|
|
|
8177
8192
|
this.checkTruncation(this.$refs.pillText), this.checkTruncation(this.$refs.titleText), this.checkTruncation(this.$refs.metaText);
|
|
8178
8193
|
});
|
|
8179
8194
|
}
|
|
8180
|
-
}, al =
|
|
8195
|
+
}, al = ["d"], ol = { class: "ecs-data-card-row-title-container" }, sl = { class: "text" }, cl = {
|
|
8181
8196
|
key: 2,
|
|
8182
8197
|
class: "border"
|
|
8183
8198
|
}, ll = {
|
|
@@ -8186,153 +8201,173 @@ var rl = /*#__PURE__*/ V(el, [["render", nl], ["__scopeId", "data-v-4f34cac7"]])
|
|
|
8186
8201
|
};
|
|
8187
8202
|
function ul(t, n, r, i, a, u) {
|
|
8188
8203
|
let f = j("ecs-button"), p = j("ecs-party-entry"), m = j("ecs-icon"), h = j("ecs-button-table");
|
|
8189
|
-
return T(), c("div",
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
"icon-only": "",
|
|
8195
|
-
icon: u.computedOpenButton.icon,
|
|
8196
|
-
disabled: u.computedOpenButton.disabled,
|
|
8197
|
-
highlighted: u.computedOpenButton.active,
|
|
8198
|
-
"aria-label": u.computedOpenButton.title,
|
|
8199
|
-
title: u.computedOpenButton.title
|
|
8200
|
-
}, null, 8, [
|
|
8201
|
-
"onClick",
|
|
8202
|
-
"icon",
|
|
8203
|
-
"disabled",
|
|
8204
|
-
"highlighted",
|
|
8205
|
-
"aria-label",
|
|
8206
|
-
"title"
|
|
8207
|
-
])) : s("", !0), l("div", { class: b(["ecs-data-card-row-inner", { wrap: r.wrap === "wrap-text" || r.wrap === "wrap-row" }]) }, [
|
|
8208
|
-
l("div", ol, [u.hasPill && r.pill?.party ? (T(), o(p, {
|
|
8204
|
+
return T(), c("div", {
|
|
8205
|
+
class: "ecs-data-card-row",
|
|
8206
|
+
style: S(u.rowStyle)
|
|
8207
|
+
}, [
|
|
8208
|
+
u.showTreeIndicator ? (T(), c("svg", {
|
|
8209
8209
|
key: 0,
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8217
|
-
|
|
8218
|
-
|
|
8219
|
-
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
"is-hovered": a.isHovered
|
|
8224
|
-
})
|
|
8225
|
-
}, {
|
|
8226
|
-
default: L(() => [d(P(r.pill.text), 1)]),
|
|
8227
|
-
_: 1
|
|
8228
|
-
}, 8, [
|
|
8229
|
-
"onClick",
|
|
8230
|
-
"party",
|
|
8231
|
-
"color",
|
|
8232
|
-
"background",
|
|
8233
|
-
"icon",
|
|
8234
|
-
"class"
|
|
8235
|
-
])) : u.hasPill ? (T(), c("span", {
|
|
8210
|
+
class: "ecs-data-card-row-tree-indicator",
|
|
8211
|
+
style: S(u.treeIndicatorStyle),
|
|
8212
|
+
width: "6",
|
|
8213
|
+
height: "32",
|
|
8214
|
+
viewBox: "0 0 6 32",
|
|
8215
|
+
fill: "none",
|
|
8216
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8217
|
+
}, [l("path", {
|
|
8218
|
+
d: u.treeIndicatorPath,
|
|
8219
|
+
stroke: "var(--color-gray-4)",
|
|
8220
|
+
"stroke-linecap": "round"
|
|
8221
|
+
}, null, 8, al)], 4)) : s("", !0),
|
|
8222
|
+
u.computedOpenButton ? (T(), o(f, {
|
|
8236
8223
|
key: 1,
|
|
8237
|
-
onClick:
|
|
8238
|
-
|
|
8239
|
-
onMouseleave: n[4] ||= (e) => u.handleHover(!1),
|
|
8240
|
-
class: b(["ecs-data-card-row-pill", {
|
|
8241
|
-
clickable: r.pill.clickable,
|
|
8242
|
-
emphasized: r.pill.emphasized,
|
|
8243
|
-
"has-background": r.pill.background,
|
|
8244
|
-
ai: r.pill.ai,
|
|
8245
|
-
"is-hovered": a.isHovered
|
|
8246
|
-
}]),
|
|
8247
|
-
style: S({ color: r.pill.color }),
|
|
8248
|
-
ref: "pillText"
|
|
8249
|
-
}, [
|
|
8250
|
-
r.pill.icon ? (T(), o(m, {
|
|
8251
|
-
key: 0,
|
|
8252
|
-
type: r.pill.icon,
|
|
8253
|
-
color: u.pillIconColor,
|
|
8254
|
-
size: "20px"
|
|
8255
|
-
}, null, 8, ["type", "color"])) : s("", !0),
|
|
8256
|
-
l("span", sl, P(r.pill.text), 1),
|
|
8257
|
-
r.pill.background ? (T(), c("span", {
|
|
8258
|
-
key: 1,
|
|
8259
|
-
class: "background",
|
|
8260
|
-
style: S(u.getPillBackgroundStyle)
|
|
8261
|
-
}, null, 4)) : s("", !0),
|
|
8262
|
-
r.pill.border && r.pill.background ? (T(), c("span", cl)) : s("", !0)
|
|
8263
|
-
], 38)) : s("", !0), r.title ? (T(), c("span", {
|
|
8264
|
-
key: 2,
|
|
8265
|
-
class: b(["ecs-data-card-row-title", { ai: r.title.ai }])
|
|
8266
|
-
}, [
|
|
8267
|
-
r.title.icon ? (T(), o(m, {
|
|
8268
|
-
key: 0,
|
|
8269
|
-
type: r.title.icon,
|
|
8270
|
-
color: u.titleIconColor,
|
|
8271
|
-
size: "20px"
|
|
8272
|
-
}, null, 8, ["type", "color"])) : s("", !0),
|
|
8273
|
-
l("span", {
|
|
8274
|
-
onClick: n[5] ||= (...e) => u.titleClick && u.titleClick(...e),
|
|
8275
|
-
onMouseenter: n[6] ||= (e) => u.handleHover(!0),
|
|
8276
|
-
onMouseleave: n[7] ||= (e) => u.handleHover(!1),
|
|
8277
|
-
class: b(["ecs-data-card-row-title-text", {
|
|
8278
|
-
escape: r.wrap === "wrap-row",
|
|
8279
|
-
clickable: r.title.clickable,
|
|
8280
|
-
emphasized: r.title.emphasized,
|
|
8281
|
-
"is-hovered": a.isHovered
|
|
8282
|
-
}]),
|
|
8283
|
-
style: S({ color: r.title.textColor }),
|
|
8284
|
-
ref: "titleText"
|
|
8285
|
-
}, P(r.title.text), 39),
|
|
8286
|
-
A(t.$slots, "titleControls", {}, void 0, !0)
|
|
8287
|
-
], 2)) : s("", !0)]),
|
|
8288
|
-
r.meta || t.$slots.customMeta ? (T(), c("div", {
|
|
8289
|
-
key: 0,
|
|
8290
|
-
class: b([{
|
|
8291
|
-
ai: r.meta?.ai,
|
|
8292
|
-
default: r.meta?.type === "default",
|
|
8293
|
-
identifier: r.meta?.type === "identifier"
|
|
8294
|
-
}, "ecs-data-card-row-meta-container"]),
|
|
8295
|
-
ref: "metaText"
|
|
8296
|
-
}, [d(P(r.meta?.text) + " ", 1), A(t.$slots, "customMeta", {}, void 0, !0)], 2)) : s("", !0),
|
|
8297
|
-
r.count || r.designation ? (T(), c("div", ll, [r.designation ? (T(), o(p, {
|
|
8298
|
-
key: 0,
|
|
8299
|
-
party: r.designation.party,
|
|
8300
|
-
color: r.designation.color,
|
|
8301
|
-
background: "",
|
|
8302
|
-
"icon-size": "20px",
|
|
8303
|
-
"icon-position": "right",
|
|
8304
|
-
"icon-spacing": "var(--spacing-5)",
|
|
8305
|
-
icon: r.designation.icon,
|
|
8306
|
-
badge: r.designation.warning ? "warning" : void 0,
|
|
8307
|
-
"badge-size": 12,
|
|
8308
|
-
class: "designation has-background"
|
|
8309
|
-
}, {
|
|
8310
|
-
default: L(() => [d(P(r.designation.text) + " ", 1), r.designation.secondaryText ? (T(), c(e, { key: 0 }, [n[8] ||= l("span", { class: "separator" }, null, -1), d(" " + P(r.designation.secondaryText), 1)], 64)) : s("", !0)]),
|
|
8311
|
-
_: 1
|
|
8312
|
-
}, 8, [
|
|
8313
|
-
"party",
|
|
8314
|
-
"color",
|
|
8315
|
-
"icon",
|
|
8316
|
-
"badge"
|
|
8317
|
-
])) : s("", !0), r.count ? (T(), o(h, {
|
|
8318
|
-
key: 1,
|
|
8319
|
-
onClick: u.countClick,
|
|
8320
|
-
unreactive: !r.count.clickable,
|
|
8321
|
-
icon: r.count.icon,
|
|
8224
|
+
onClick: u.openButtonClick,
|
|
8225
|
+
type: "secondary",
|
|
8322
8226
|
size: "sml",
|
|
8323
|
-
|
|
8324
|
-
|
|
8325
|
-
|
|
8227
|
+
"icon-only": "",
|
|
8228
|
+
icon: u.computedOpenButton.icon,
|
|
8229
|
+
disabled: u.computedOpenButton.disabled,
|
|
8230
|
+
highlighted: u.computedOpenButton.active,
|
|
8231
|
+
"aria-label": u.computedOpenButton.title,
|
|
8232
|
+
title: u.computedOpenButton.title
|
|
8326
8233
|
}, null, 8, [
|
|
8327
8234
|
"onClick",
|
|
8328
|
-
"unreactive",
|
|
8329
8235
|
"icon",
|
|
8330
|
-
"
|
|
8236
|
+
"disabled",
|
|
8237
|
+
"highlighted",
|
|
8238
|
+
"aria-label",
|
|
8331
8239
|
"title"
|
|
8332
|
-
])) : s("", !0)
|
|
8333
|
-
|
|
8240
|
+
])) : s("", !0),
|
|
8241
|
+
l("div", { class: b(["ecs-data-card-row-inner", { wrap: r.wrap === "wrap-text" || r.wrap === "wrap-row" }]) }, [
|
|
8242
|
+
l("div", ol, [u.hasPill && r.pill?.party ? (T(), o(p, {
|
|
8243
|
+
key: 0,
|
|
8244
|
+
onClick: u.pillClick,
|
|
8245
|
+
onMouseenter: n[0] ||= (e) => u.handleHover(!0),
|
|
8246
|
+
onMouseleave: n[1] ||= (e) => u.handleHover(!1),
|
|
8247
|
+
party: r.pill.party,
|
|
8248
|
+
color: r.pill.color,
|
|
8249
|
+
background: r.pill.background,
|
|
8250
|
+
icon: r.pill.icon,
|
|
8251
|
+
"icon-size": "20px",
|
|
8252
|
+
"icon-spacing": "var(--spacing-5)",
|
|
8253
|
+
class: b({
|
|
8254
|
+
clickable: r.pill.clickable,
|
|
8255
|
+
emphasized: r.pill.emphasized,
|
|
8256
|
+
"has-background": r.pill.background,
|
|
8257
|
+
"is-hovered": a.isHovered
|
|
8258
|
+
})
|
|
8259
|
+
}, {
|
|
8260
|
+
default: L(() => [d(P(r.pill.text), 1)]),
|
|
8261
|
+
_: 1
|
|
8262
|
+
}, 8, [
|
|
8263
|
+
"onClick",
|
|
8264
|
+
"party",
|
|
8265
|
+
"color",
|
|
8266
|
+
"background",
|
|
8267
|
+
"icon",
|
|
8268
|
+
"class"
|
|
8269
|
+
])) : u.hasPill ? (T(), c("span", {
|
|
8270
|
+
key: 1,
|
|
8271
|
+
onClick: n[2] ||= (...e) => u.pillClick && u.pillClick(...e),
|
|
8272
|
+
onMouseenter: n[3] ||= (e) => u.handleHover(!0),
|
|
8273
|
+
onMouseleave: n[4] ||= (e) => u.handleHover(!1),
|
|
8274
|
+
class: b(["ecs-data-card-row-pill", {
|
|
8275
|
+
clickable: r.pill.clickable,
|
|
8276
|
+
emphasized: r.pill.emphasized,
|
|
8277
|
+
"has-background": r.pill.background,
|
|
8278
|
+
ai: r.pill.ai,
|
|
8279
|
+
"is-hovered": a.isHovered
|
|
8280
|
+
}]),
|
|
8281
|
+
style: S({ color: r.pill.color }),
|
|
8282
|
+
ref: "pillText"
|
|
8283
|
+
}, [
|
|
8284
|
+
r.pill.icon ? (T(), o(m, {
|
|
8285
|
+
key: 0,
|
|
8286
|
+
type: r.pill.icon,
|
|
8287
|
+
color: u.pillIconColor,
|
|
8288
|
+
size: "20px"
|
|
8289
|
+
}, null, 8, ["type", "color"])) : s("", !0),
|
|
8290
|
+
l("span", sl, P(r.pill.text), 1),
|
|
8291
|
+
r.pill.background ? (T(), c("span", {
|
|
8292
|
+
key: 1,
|
|
8293
|
+
class: "background",
|
|
8294
|
+
style: S(u.getPillBackgroundStyle)
|
|
8295
|
+
}, null, 4)) : s("", !0),
|
|
8296
|
+
r.pill.border && r.pill.background ? (T(), c("span", cl)) : s("", !0)
|
|
8297
|
+
], 38)) : s("", !0), r.title ? (T(), c("span", {
|
|
8298
|
+
key: 2,
|
|
8299
|
+
class: b(["ecs-data-card-row-title", { ai: r.title.ai }])
|
|
8300
|
+
}, [
|
|
8301
|
+
r.title.icon ? (T(), o(m, {
|
|
8302
|
+
key: 0,
|
|
8303
|
+
type: r.title.icon,
|
|
8304
|
+
color: u.titleIconColor,
|
|
8305
|
+
size: "20px"
|
|
8306
|
+
}, null, 8, ["type", "color"])) : s("", !0),
|
|
8307
|
+
l("span", {
|
|
8308
|
+
onClick: n[5] ||= (...e) => u.titleClick && u.titleClick(...e),
|
|
8309
|
+
onMouseenter: n[6] ||= (e) => u.handleHover(!0),
|
|
8310
|
+
onMouseleave: n[7] ||= (e) => u.handleHover(!1),
|
|
8311
|
+
class: b(["ecs-data-card-row-title-text", {
|
|
8312
|
+
escape: r.wrap === "wrap-row",
|
|
8313
|
+
clickable: r.title.clickable,
|
|
8314
|
+
emphasized: r.title.emphasized,
|
|
8315
|
+
"is-hovered": a.isHovered
|
|
8316
|
+
}]),
|
|
8317
|
+
style: S({ color: r.title.textColor }),
|
|
8318
|
+
ref: "titleText"
|
|
8319
|
+
}, P(r.title.text), 39),
|
|
8320
|
+
A(t.$slots, "titleControls", {}, void 0, !0)
|
|
8321
|
+
], 2)) : s("", !0)]),
|
|
8322
|
+
r.meta || t.$slots.customMeta ? (T(), c("div", {
|
|
8323
|
+
key: 0,
|
|
8324
|
+
class: b([{
|
|
8325
|
+
ai: r.meta?.ai,
|
|
8326
|
+
default: r.meta?.type === "default",
|
|
8327
|
+
identifier: r.meta?.type === "identifier"
|
|
8328
|
+
}, "ecs-data-card-row-meta-container"]),
|
|
8329
|
+
ref: "metaText"
|
|
8330
|
+
}, [d(P(r.meta?.text) + " ", 1), A(t.$slots, "customMeta", {}, void 0, !0)], 2)) : s("", !0),
|
|
8331
|
+
r.count || r.designation ? (T(), c("div", ll, [r.designation ? (T(), o(p, {
|
|
8332
|
+
key: 0,
|
|
8333
|
+
party: r.designation.party,
|
|
8334
|
+
color: r.designation.color,
|
|
8335
|
+
background: "",
|
|
8336
|
+
"icon-size": "20px",
|
|
8337
|
+
"icon-position": "right",
|
|
8338
|
+
"icon-spacing": "var(--spacing-5)",
|
|
8339
|
+
icon: r.designation.icon,
|
|
8340
|
+
badge: r.designation.warning ? "warning" : void 0,
|
|
8341
|
+
"badge-size": 12,
|
|
8342
|
+
class: "designation has-background"
|
|
8343
|
+
}, {
|
|
8344
|
+
default: L(() => [d(P(r.designation.text) + " ", 1), r.designation.secondaryText ? (T(), c(e, { key: 0 }, [n[8] ||= l("span", { class: "separator" }, null, -1), d(" " + P(r.designation.secondaryText), 1)], 64)) : s("", !0)]),
|
|
8345
|
+
_: 1
|
|
8346
|
+
}, 8, [
|
|
8347
|
+
"party",
|
|
8348
|
+
"color",
|
|
8349
|
+
"icon",
|
|
8350
|
+
"badge"
|
|
8351
|
+
])) : s("", !0), r.count ? (T(), o(h, {
|
|
8352
|
+
key: 1,
|
|
8353
|
+
onClick: u.countClick,
|
|
8354
|
+
unreactive: !r.count.clickable,
|
|
8355
|
+
icon: r.count.icon,
|
|
8356
|
+
size: "sml",
|
|
8357
|
+
subtle: "",
|
|
8358
|
+
label: r.count.value,
|
|
8359
|
+
title: r.count.title
|
|
8360
|
+
}, null, 8, [
|
|
8361
|
+
"onClick",
|
|
8362
|
+
"unreactive",
|
|
8363
|
+
"icon",
|
|
8364
|
+
"label",
|
|
8365
|
+
"title"
|
|
8366
|
+
])) : s("", !0)])) : s("", !0)
|
|
8367
|
+
], 2)
|
|
8368
|
+
], 4);
|
|
8334
8369
|
}
|
|
8335
|
-
var dl = /*#__PURE__*/ V(il, [["render", ul], ["__scopeId", "data-v-
|
|
8370
|
+
var dl = /*#__PURE__*/ V(il, [["render", ul], ["__scopeId", "data-v-92467cad"]]), fl = {
|
|
8336
8371
|
name: "ecs-data-grid",
|
|
8337
8372
|
emits: ["tableScroll"],
|
|
8338
8373
|
props: {
|