@evercam/ui 1.0.0-preview-cameraPowerSchedule-83b6fbb62 → 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 +11 -11
- 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() {
|
|
@@ -16775,21 +16775,21 @@ 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-absolute e-top-0 e-right-0 e-m-1 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
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);
|