@everchron/ec-shards 8.12.1 → 8.12.2
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.js +8 -8
- package/dist/ec-shards.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -9488,7 +9488,7 @@ const e_ = /* @__PURE__ */ v(Lg, [["render", Dg], ["__scopeId", "data-v-c9188464
|
|
|
9488
9488
|
default: "overlay"
|
|
9489
9489
|
},
|
|
9490
9490
|
/** Determines the style of the highlight: `background` fills the entire background with a color, while `border` just adds a colored border to the left (avoid using on elements with border radius). */
|
|
9491
|
-
|
|
9491
|
+
type: {
|
|
9492
9492
|
type: String,
|
|
9493
9493
|
validator: (e) => ["background", "border"].includes(e),
|
|
9494
9494
|
default: "background"
|
|
@@ -9518,12 +9518,12 @@ const e_ = /* @__PURE__ */ v(Lg, [["render", Dg], ["__scopeId", "data-v-c9188464
|
|
|
9518
9518
|
return this.show || this.layout === "wrap" && this.$slots.default;
|
|
9519
9519
|
},
|
|
9520
9520
|
highlightColor() {
|
|
9521
|
-
return this.color ? this.
|
|
9521
|
+
return this.color ? this.type === "background" ? {
|
|
9522
9522
|
"--ecs-highlight-background": this.color
|
|
9523
9523
|
} : {
|
|
9524
9524
|
"--ecs-highlight-background": C(this.color).setAlpha(0.1).toRgbString(),
|
|
9525
9525
|
"--ecs-highlight-border": this.color
|
|
9526
|
-
} : this.
|
|
9526
|
+
} : this.type === "background" ? {
|
|
9527
9527
|
"--ecs-highlight-background": "var(--color-yellow-3)"
|
|
9528
9528
|
} : {
|
|
9529
9529
|
"--ecs-highlight-background": "var(--color-yellow-3)",
|
|
@@ -9531,18 +9531,18 @@ const e_ = /* @__PURE__ */ v(Lg, [["render", Dg], ["__scopeId", "data-v-c9188464
|
|
|
9531
9531
|
};
|
|
9532
9532
|
},
|
|
9533
9533
|
borderRadiusStyle() {
|
|
9534
|
-
return this.borderRadius ? { borderRadius: `${this.borderRadius}px` } : this.
|
|
9534
|
+
return this.borderRadius ? { borderRadius: `${this.borderRadius}px` } : this.type === "border" ? { borderRadius: 0 } : { borderRadius: "6px" };
|
|
9535
9535
|
},
|
|
9536
9536
|
transitionStyles() {
|
|
9537
9537
|
const e = {};
|
|
9538
|
-
return this.fadeOutDuration !== 0 && this.show && this.setFadeOut && (this.layout === "overlay" ? e.transition = `opacity ${this.fadeOutDuration}ms` : this.layout === "wrap" && (this.
|
|
9538
|
+
return this.fadeOutDuration !== 0 && this.show && this.setFadeOut && (this.layout === "overlay" ? e.transition = `opacity ${this.fadeOutDuration}ms` : this.layout === "wrap" && (this.type === "border" ? e.transition = `background-position ${this.fadeOutDuration}ms, border-color ${this.fadeOutDuration}ms` : e.transition = `background-color ${this.fadeOutDuration}ms`)), e;
|
|
9539
9539
|
},
|
|
9540
9540
|
classes() {
|
|
9541
9541
|
return {
|
|
9542
9542
|
"ecs-highlight-wrap": this.layout === "wrap",
|
|
9543
9543
|
"ecs-highlight-overlay": this.layout === "overlay",
|
|
9544
|
-
"ecs-highlight-background": this.
|
|
9545
|
-
"ecs-highlight-border": this.
|
|
9544
|
+
"ecs-highlight-background": this.type === "background",
|
|
9545
|
+
"ecs-highlight-border": this.type === "border",
|
|
9546
9546
|
show: this.showClass
|
|
9547
9547
|
};
|
|
9548
9548
|
}
|
|
@@ -9564,7 +9564,7 @@ function Rg(e, s, t, a, n, i) {
|
|
|
9564
9564
|
t.layout === "wrap" ? p(e.$slots, "default", { key: 0 }, void 0, !0) : u("", !0)
|
|
9565
9565
|
], 6)) : u("", !0);
|
|
9566
9566
|
}
|
|
9567
|
-
const t_ = /* @__PURE__ */ v(Fg, [["render", Rg], ["__scopeId", "data-v-
|
|
9567
|
+
const t_ = /* @__PURE__ */ v(Fg, [["render", Rg], ["__scopeId", "data-v-82c60808"]]), Vg = {
|
|
9568
9568
|
name: "ecs-toolbar",
|
|
9569
9569
|
props: {
|
|
9570
9570
|
/** Determines the type of the toolbar. */
|