@evercam/ui 1.0.0-preview-cameraPowerSchedule-b7b58a0a7 → 1.0.0-preview-cameraPowerSchedule-99037b531
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/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -16588,10 +16588,10 @@ const Bc = zc.exports, Ic = A.extend({
|
|
|
16588
16588
|
const { hours: n, minutes: i } = this.parseTime(e), { hours: o, minutes: s } = this.parseTime(r), c = n + i / 60, l = o + s / 60 - c, d = c / 24 * 100, p = l / 24 * 100, m = t * this.rowHeightPx, b = this.rowHeightPx;
|
|
16589
16589
|
return {
|
|
16590
16590
|
position: "absolute",
|
|
16591
|
-
top: `${m
|
|
16591
|
+
top: `${m}px`,
|
|
16592
16592
|
left: `calc(${d}% + 1px)`,
|
|
16593
16593
|
width: `calc(${p}% - 2px)`,
|
|
16594
|
-
height: `${b -
|
|
16594
|
+
height: `${b - 1}px`
|
|
16595
16595
|
};
|
|
16596
16596
|
},
|
|
16597
16597
|
onResize() {
|
|
@@ -16639,7 +16639,7 @@ const Bc = zc.exports, Ic = A.extend({
|
|
|
16639
16639
|
origEndFrac: s
|
|
16640
16640
|
} = this.editing, a = (t.clientX - i) / this.pixelsPerHour;
|
|
16641
16641
|
let l = o, d = s;
|
|
16642
|
-
n === "move" ? (l = o + a, d = s + a) : n === "resize-left" ? l = o + a : n === "resize-right" && (d = s + a),
|
|
16642
|
+
n === "move" ? (l = o + a, d = s + a) : n === "resize-left" ? l = o + a : n === "resize-right" && (d = s + a), n === "resize-left" && d - l < 1 && (l = d - 1), n === "resize-right" && d - l < 1 && (d = l + 1), l = this.roundToFive(Math.max(0, Math.min(l, 24))), d = this.roundToFive(Math.max(0, Math.min(d, 24)));
|
|
16643
16643
|
const p = this.sortedDays[e].day;
|
|
16644
16644
|
this.internalDays = this.internalDays.map((m) => {
|
|
16645
16645
|
if (m.day !== p)
|
|
@@ -16710,7 +16710,7 @@ const Bc = zc.exports, Ic = A.extend({
|
|
|
16710
16710
|
return;
|
|
16711
16711
|
const { startDayIndex: t, currentDayIndex: e, startFrac: r, currentFrac: n } = this.creating;
|
|
16712
16712
|
let i = Math.min(r, n), o = Math.max(r, n);
|
|
16713
|
-
if (o - i <
|
|
16713
|
+
if (o - i < 1) {
|
|
16714
16714
|
this.cleanupCreate();
|
|
16715
16715
|
return;
|
|
16716
16716
|
}
|
|
@@ -16775,23 +16775,23 @@ var Fc = function() {
|
|
|
16775
16775
|
return r("th", { key: n, staticClass: "hour-label e-p-1 e-text-center e-h-8" }, [e.showHour(n) ? r("span", [e._v(e._s(e.formatHour(n)))]) : e._e()]);
|
|
16776
16776
|
})], 2)]), r("tbody", e._l(e.sortedDays, function(n, i) {
|
|
16777
16777
|
return r("tr", { key: n.day, staticClass: "h-8" }, [r("th", { staticClass: "e-p-1 e-text-center e-h-8", attrs: { scope: "row" } }, [e._v(" " + e._s(e.formatDay(n.day)) + " ")]), e._l(24, function(o) {
|
|
16778
|
-
return r("td", { key: o, staticClass: "segment-cell
|
|
16779
|
-
"
|
|
16780
|
-
"
|
|
16781
|
-
"
|
|
16782
|
-
"
|
|
16783
|
-
"
|
|
16784
|
-
"
|
|
16785
|
-
"
|
|
16778
|
+
return r("td", { key: o, staticClass: "segment-cell border-bottom e-h-8", class: {
|
|
16779
|
+
"border-left": o === 1,
|
|
16780
|
+
"border-right": o === 24,
|
|
16781
|
+
"border-top": i === 0,
|
|
16782
|
+
"rounded-topleft-lg": i === 0 && o === 1,
|
|
16783
|
+
"rounded-topright-lg": i === 0 && o === 24,
|
|
16784
|
+
"rounded-bottomleft-lg": i === e.sortedDays.length - 1 && o === 1,
|
|
16785
|
+
"rounded-bottomright-lg": i === e.sortedDays.length - 1 && o === 24
|
|
16786
16786
|
} });
|
|
16787
16787
|
})], 2);
|
|
16788
16788
|
}), 0)]), e.segmentsContainerRect ? r("div", { ref: "overlay", staticClass: "e-absolute e-inset-0 e-cursor-crosshair", style: e.segmentsContainerStyles, on: { mousedown: e.onBackgroundMouseDown } }, [e._l(e.sortedDays, function(n, i) {
|
|
16789
16789
|
return r("div", { key: n.day }, e._l(n.segments, function(o, s) {
|
|
16790
16790
|
return r("div", { key: o.startTime + "-" + o.endTime, staticClass: "segment e-rounded e-absolute e-bg-blue-500/80", style: e.calculateBarStyle(i, o.startTime, o.endTime), on: { mousedown: function(c) {
|
|
16791
16791
|
return c.stopPropagation(), e.onSegmentMouseDown(c, i, s);
|
|
16792
|
-
}, mousemove: e.onSegmentMouseMove, mouseleave: e.onSegmentMouseLeave } }, [r("button", { staticClass: "delete-btn e-
|
|
16792
|
+
}, mousemove: e.onSegmentMouseMove, mouseleave: e.onSegmentMouseLeave } }, [r("button", { staticClass: "delete-btn e-absolute e-top-0 e-right-0 e-m-1 e-p-1", on: { click: function(c) {
|
|
16793
16793
|
return c.stopPropagation(), e.deleteSegment(i, s);
|
|
16794
|
-
} } }, [e._v("
|
|
16794
|
+
} } }, [e._v(" + ")]), r("div", { staticClass: "e-flex e-justify-center e-items-center e-text-xs e-text-white e-h-full e-select-none", domProps: { innerHTML: e._s(e.getSegmentLabel(o)) } })]);
|
|
16795
16795
|
}), 0);
|
|
16796
16796
|
}), e.creating ? r("div", { staticClass: "segment e-rounded e-absolute e-bg-blue-300/50 e-border e-border-blue-400 e-flex e-justify-center e-items-center e-text-xs e-text-white", style: e.calculateMultiDayStyle(
|
|
16797
16797
|
e.creating.startDayIndex,
|