@thebuoyant-tsdev/mui-ts-library 3.11.0 → 3.11.3
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/README.de.md +21 -0
- package/README.md +21 -0
- package/dist/components/chord-chart/ChordChart.d.ts +1 -1
- package/dist/components/chord-chart/ChordChart.js +155 -137
- package/dist/components/chord-chart/ChordChart.types.d.ts +1 -1
- package/dist/components/circle-packing-chart/CirclePackingChart.d.ts +1 -1
- package/dist/components/circle-packing-chart/CirclePackingChart.js +134 -121
- package/dist/components/gantt-chart/GanttTaskDialog.js +131 -126
- package/dist/components/gantt-chart/hooks/useGanttDrag.js +44 -38
- package/dist/components/gantt-chart/util/gantt-chart.util.d.ts +7 -0
- package/dist/components/gantt-chart/util/gantt-chart.util.js +31 -20
- package/dist/components/horizontal-tree-chart/HorizontalTreeChart.js +222 -206
- package/dist/components/horizontal-tree-chart/HorizontalTreeChart.types.d.ts +1 -1
- package/dist/components/json-editor/JsonEditorContent.js +134 -119
- package/dist/components/json-editor/JsonEditorToolbar.js +3 -3
- package/dist/components/password-strength-meter/PasswordStrengthMeter.js +131 -130
- package/dist/components/radial-tree-chart/RadialTreeChart.js +197 -186
- package/dist/components/rich-text-editor/RichTextEditor.js +1 -1
- package/dist/components/rich-text-editor/RichTextEditorMarkdownDialog.js +40 -39
- package/dist/components/shared/useTimedFlag.d.ts +6 -0
- package/dist/components/shared/useTimedFlag.js +14 -0
- package/dist/components/sql-editor/SqlEditorHistoryMenu.js +1 -1
- package/dist/components/sql-editor/useSqlQueryHistory.js +14 -12
- package/dist/components/sql-editor/util/sqlQueryHistory.util.d.ts +1 -0
- package/dist/components/sql-editor/util/sqlQueryHistory.util.js +21 -13
- package/dist/components/sunburst-chart/SunburstChart.d.ts +1 -1
- package/dist/components/sunburst-chart/SunburstChart.js +126 -115
- package/dist/components/tag-selection/TagSelectionAutocomplete.js +7 -5
- package/dist/index.cjs +2 -2
- package/dist/index.js +7 -7
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/components/gantt-chart/util/gantt-chart.util.ts
|
|
2
2
|
function e(e) {
|
|
3
|
-
let t = /* @__PURE__ */ new Date(), n =
|
|
3
|
+
let t = /* @__PURE__ */ new Date(), n = v(t), r = y(t);
|
|
4
4
|
if (e.length === 0) return {
|
|
5
5
|
start: n,
|
|
6
6
|
end: r
|
|
@@ -13,11 +13,11 @@ function e(e) {
|
|
|
13
13
|
}
|
|
14
14
|
function t(e, t) {
|
|
15
15
|
return t === "weeks" ? {
|
|
16
|
-
start:
|
|
16
|
+
start: m(e.start),
|
|
17
17
|
end: e.end
|
|
18
18
|
} : t === "quarters" ? {
|
|
19
|
-
start:
|
|
20
|
-
end:
|
|
19
|
+
start: v(e.start),
|
|
20
|
+
end: y(e.end)
|
|
21
21
|
} : e;
|
|
22
22
|
}
|
|
23
23
|
function n(e, t) {
|
|
@@ -65,11 +65,14 @@ function c(e, t) {
|
|
|
65
65
|
function l(e, t) {
|
|
66
66
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t, 0, 0, 0, 0);
|
|
67
67
|
}
|
|
68
|
-
function u(e
|
|
68
|
+
function u(e) {
|
|
69
|
+
let t = /* @__PURE__ */ new Map();
|
|
70
|
+
for (let n of e) for (let e of n.dependencies ?? []) t.has(e) || t.set(e, []), t.get(e).push(n.id);
|
|
71
|
+
return t;
|
|
72
|
+
}
|
|
73
|
+
function d(e, t, n) {
|
|
69
74
|
if (n === 0) return e;
|
|
70
|
-
let r = /* @__PURE__ */ new
|
|
71
|
-
for (let t of e) for (let e of t.dependencies ?? []) r.has(e) || r.set(e, []), r.get(e).push(t.id);
|
|
72
|
-
let i = new Map(e.map((e) => [e.id, e])), a = [...r.get(t) ?? []], o = /* @__PURE__ */ new Set();
|
|
75
|
+
let r = u(e), i = new Map(e.map((e) => [e.id, e])), a = [...r.get(t) ?? []], o = /* @__PURE__ */ new Set();
|
|
73
76
|
for (; a.length > 0;) {
|
|
74
77
|
let e = a.shift();
|
|
75
78
|
if (o.has(e)) continue;
|
|
@@ -83,41 +86,49 @@ function u(e, t, n) {
|
|
|
83
86
|
}
|
|
84
87
|
return e.map((e) => i.get(e.id));
|
|
85
88
|
}
|
|
86
|
-
function
|
|
89
|
+
function f(e, t) {
|
|
90
|
+
let n = u(e), r = /* @__PURE__ */ new Set(), i = [...n.get(t) ?? []];
|
|
91
|
+
for (; i.length > 0;) {
|
|
92
|
+
let e = i.shift();
|
|
93
|
+
r.has(e) || (r.add(e), i.push(...n.get(e) ?? []));
|
|
94
|
+
}
|
|
95
|
+
return r;
|
|
96
|
+
}
|
|
97
|
+
function p(e) {
|
|
87
98
|
let t = [], n = o(e.start);
|
|
88
99
|
for (; n <= e.end;) t.push(n), n = c(n, 1);
|
|
89
100
|
return t;
|
|
90
101
|
}
|
|
91
|
-
function
|
|
102
|
+
function m(e) {
|
|
92
103
|
let t = new Date(e), n = t.getDay(), r = n === 0 ? -6 : 1 - n;
|
|
93
104
|
return t.setDate(t.getDate() + r), t.setHours(0, 0, 0, 0), t;
|
|
94
105
|
}
|
|
95
|
-
function
|
|
106
|
+
function h(e) {
|
|
96
107
|
let t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), n = t.getUTCDay() || 7;
|
|
97
108
|
t.setUTCDate(t.getUTCDate() + 4 - n);
|
|
98
109
|
let r = new Date(Date.UTC(t.getUTCFullYear(), 0, 1));
|
|
99
110
|
return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
|
|
100
111
|
}
|
|
101
|
-
function
|
|
102
|
-
let t = [], n =
|
|
112
|
+
function g(e) {
|
|
113
|
+
let t = [], n = m(e.start);
|
|
103
114
|
for (; n <= e.end;) t.push(new Date(n)), n = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 7);
|
|
104
115
|
return t;
|
|
105
116
|
}
|
|
106
|
-
function
|
|
117
|
+
function _(e) {
|
|
107
118
|
let t = [], n = new Date(e.start.getFullYear(), e.start.getMonth(), e.start.getDate(), 0, 0, 0, 0), r = new Date(e.end.getFullYear(), e.end.getMonth(), e.end.getDate(), 0, 0, 0, 0).getTime();
|
|
108
119
|
for (; n.getTime() <= r;) t.push(new Date(n)), n = new Date(n.getFullYear(), n.getMonth(), n.getDate() + 1, 0, 0, 0, 0);
|
|
109
120
|
return t;
|
|
110
121
|
}
|
|
111
|
-
function
|
|
122
|
+
function v(e) {
|
|
112
123
|
let t = Math.floor(e.getMonth() / 3) * 3;
|
|
113
124
|
return new Date(e.getFullYear(), t, 1, 0, 0, 0, 0);
|
|
114
125
|
}
|
|
115
|
-
function
|
|
126
|
+
function y(e) {
|
|
116
127
|
let t = Math.floor(e.getMonth() / 3) * 3 + 2;
|
|
117
128
|
return s(new Date(e.getFullYear(), t, 1));
|
|
118
129
|
}
|
|
119
|
-
function
|
|
120
|
-
let t = [], n =
|
|
130
|
+
function b(e) {
|
|
131
|
+
let t = [], n = v(e.start);
|
|
121
132
|
for (; n <= e.end;) {
|
|
122
133
|
let e = Math.floor(n.getMonth() / 3) + 1;
|
|
123
134
|
t.push({
|
|
@@ -128,7 +139,7 @@ function v(e) {
|
|
|
128
139
|
}
|
|
129
140
|
return t;
|
|
130
141
|
}
|
|
131
|
-
function
|
|
142
|
+
function x(e) {
|
|
132
143
|
if (e.length === 0) return /* @__PURE__ */ new Set();
|
|
133
144
|
let t = /* @__PURE__ */ new Map();
|
|
134
145
|
for (let n of e) for (let e of n.dependencies ?? []) t.has(e) || t.set(e, []), t.get(e).push(n.id);
|
|
@@ -147,4 +158,4 @@ function y(e) {
|
|
|
147
158
|
return s;
|
|
148
159
|
}
|
|
149
160
|
//#endregion
|
|
150
|
-
export { l as addDays, c as addMonths, r as buildTaskTree, n as calculateTaskPosition,
|
|
161
|
+
export { l as addDays, c as addMonths, r as buildTaskTree, n as calculateTaskPosition, d as cascadeDateUpdate, x as computeCriticalPath, s as endOfMonth, _ as getDaysInRange, f as getDependencyCycleCandidates, t as getDisplayRange, h as getISOWeekNumber, p as getMonthsInRange, b as getQuartersInRange, e as getTimelineRange, a as getVisibleTasks, g as getWeeksInRange, o as startOfMonth };
|