@everchron/ec-shards 13.0.11 → 13.0.12
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 +14 -3
- package/dist/ec-shards.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/ec-shards.js
CHANGED
|
@@ -14279,6 +14279,15 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
|
|
|
14279
14279
|
list: {
|
|
14280
14280
|
type: Array,
|
|
14281
14281
|
default: null
|
|
14282
|
+
},
|
|
14283
|
+
/** Whether the range is disabled */
|
|
14284
|
+
disabled: {
|
|
14285
|
+
type: Boolean,
|
|
14286
|
+
default: !1
|
|
14287
|
+
},
|
|
14288
|
+
/** The id of the range */
|
|
14289
|
+
id: {
|
|
14290
|
+
type: String
|
|
14282
14291
|
}
|
|
14283
14292
|
},
|
|
14284
14293
|
computed: {
|
|
@@ -14304,7 +14313,7 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
|
|
|
14304
14313
|
},
|
|
14305
14314
|
updateProgress(t) {
|
|
14306
14315
|
const e = (t - this.min) / (this.max - this.min) * 100;
|
|
14307
|
-
this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-blue-9) ${e}%, var(--color-gray-4) ${e}%)`;
|
|
14316
|
+
this.disabled ? this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-gray-6) ${e}%, var(--color-gray-4) ${e}%)` : this.$refs.rangeInput.style.background = `linear-gradient(to right, var(--color-blue-9) ${e}%, var(--color-gray-4) ${e}%)`;
|
|
14308
14317
|
}
|
|
14309
14318
|
},
|
|
14310
14319
|
mounted() {
|
|
@@ -14315,7 +14324,7 @@ const lt0 = /* @__PURE__ */ w(m$, [["render", j$], ["__scopeId", "data-v-db5374f
|
|
|
14315
14324
|
this.updateProgress(t);
|
|
14316
14325
|
}
|
|
14317
14326
|
}
|
|
14318
|
-
}, F$ = ["min", "max", "value", "step"], H$ = {
|
|
14327
|
+
}, F$ = ["id", "disabled", "min", "max", "value", "step"], H$ = {
|
|
14319
14328
|
key: 0,
|
|
14320
14329
|
class: "ecs-range-markers"
|
|
14321
14330
|
}, T$ = {
|
|
@@ -14328,6 +14337,8 @@ function U$(t, e, l, a, i, n) {
|
|
|
14328
14337
|
}, [
|
|
14329
14338
|
s("input", {
|
|
14330
14339
|
ref: "rangeInput",
|
|
14340
|
+
id: l.id,
|
|
14341
|
+
disabled: l.disabled,
|
|
14331
14342
|
onInput: e[0] || (e[0] = (...c) => n.onInput && n.onInput(...c)),
|
|
14332
14343
|
type: "range",
|
|
14333
14344
|
min: l.min,
|
|
@@ -14350,7 +14361,7 @@ function U$(t, e, l, a, i, n) {
|
|
|
14350
14361
|
])) : u("", !0)
|
|
14351
14362
|
], 2);
|
|
14352
14363
|
}
|
|
14353
|
-
const ot0 = /* @__PURE__ */ w(B$, [["render", U$], ["__scopeId", "data-v-
|
|
14364
|
+
const ot0 = /* @__PURE__ */ w(B$, [["render", U$], ["__scopeId", "data-v-b6f3e6b0"]]), V$ = {
|
|
14354
14365
|
name: "ecs-rating-star-write",
|
|
14355
14366
|
emits: ["click", "reset"],
|
|
14356
14367
|
props: {
|