@evercam/ui 1.0.0-preview-cameraPowerSchedule-b7b58a0a7 → 1.0.0-preview-cameraPowerSchedule-83b6fbb62
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 +4 -4
- 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
|
@@ -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
|
}
|
|
@@ -16789,9 +16789,9 @@ var Fc = function() {
|
|
|
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-text-white 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,
|