@trsys-tech/matrix-library 0.6.0-alpha.0 → 0.6.0

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.
@@ -1,11 +1,10 @@
1
- import { getDefaultOptions as f } from "./defaultoptions.es.js";
2
- import { toDate as c } from "./todate.es.js";
3
- function l(n, e) {
4
- const a = f(), o = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, t = c(n, e?.in), s = t.getDay(), r = (s < o ? 7 : 0) + s - o;
1
+ import { getDefaultOptions as c } from "./defaultoptions.es.js";
2
+ import { toDate as f } from "./todate.es.js";
3
+ function k(s, e) {
4
+ const o = c(), a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? o.weekStartsOn ?? o.locale?.options?.weekStartsOn ?? 0, t = f(s, e?.in), n = t.getDay(), r = (n < a ? 7 : 0) + n - a;
5
5
  return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
6
6
  }
7
7
  export {
8
- l as default,
9
- l as startOfWeek
8
+ k as startOfWeek
10
9
  };
11
10
  //# sourceMappingURL=startofweek.es.js.map
@@ -3,11 +3,10 @@ import { constructFrom as i } from "./constructfrom.es.js";
3
3
  import { getWeekYear as f } from "./getweekyear.es.js";
4
4
  import { startOfWeek as c } from "./startofweek.es.js";
5
5
  function D(r, t) {
6
- const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
7
- return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
6
+ const o = n(), s = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = f(r, t), e = i(t?.in || r, 0);
7
+ return e.setFullYear(a, 0, s), e.setHours(0, 0, 0, 0), c(e, t);
8
8
  }
9
9
  export {
10
- D as default,
11
10
  D as startOfWeekYear
12
11
  };
13
12
  //# sourceMappingURL=startofweekyear.es.js.map
@@ -1,10 +1,9 @@
1
- import { toDate as a } from "./todate.es.js";
2
- function s(e, r) {
3
- const t = a(e, r?.in);
1
+ import { toDate as o } from "./todate.es.js";
2
+ function n(e, r) {
3
+ const t = o(e, r?.in);
4
4
  return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
5
5
  }
6
6
  export {
7
- s as default,
8
- s as startOfYear
7
+ n as startOfYear
9
8
  };
10
9
  //# sourceMappingURL=startofyear.es.js.map