@g4rcez/components 5.0.2 → 5.0.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/dist/AnimatePresence-j36AYeOQ.js +181 -0
- package/dist/AnimatePresence-j36AYeOQ.js.map +1 -0
- package/dist/Calendar.es-xICmgvjq.js +23 -0
- package/dist/Calendar.es-xICmgvjq.js.map +1 -0
- package/dist/Funnel.es-DjKVl8Nj.js +23 -0
- package/dist/Funnel.es-DjKVl8Nj.js.map +1 -0
- package/dist/{MotionConfig-DKKYqBH2.js → MotionConfig-CXHoPGbK.js} +2 -2
- package/dist/{MotionConfig-DKKYqBH2.js.map → MotionConfig-CXHoPGbK.js.map} +1 -1
- package/dist/Plus.es-DbyRkEE2.js +23 -0
- package/dist/Plus.es-DbyRkEE2.js.map +1 -0
- package/dist/Trash.es-BFAc8PMf.js +23 -0
- package/dist/Trash.es-BFAc8PMf.js.map +1 -0
- package/dist/{calendar-PCCZDUIL.js → calendar-DEPkz8sw.js} +364 -502
- package/dist/calendar-DEPkz8sw.js.map +1 -0
- package/dist/calendar-header-Dfr-CwkY.js +174 -0
- package/dist/calendar-header-Dfr-CwkY.js.map +1 -0
- package/dist/chunk-jwUa06l-.js +23 -0
- package/dist/components/core/button.js +1 -1
- package/dist/components/core/heading.js +11 -0
- package/dist/components/core/heading.js.map +1 -0
- package/dist/{polymorph-BLXhrn9n.js → components/core/polymorph.js} +2 -2
- package/dist/components/core/polymorph.js.map +1 -0
- package/dist/components/core/render-on-view.js +29 -0
- package/dist/components/core/render-on-view.js.map +1 -0
- package/dist/components/core/resizable.d.ts +7 -1
- package/dist/components/core/resizable.d.ts.map +1 -1
- package/dist/components/core/resizable.js +60 -0
- package/dist/components/core/resizable.js.map +1 -0
- package/dist/components/core/resizable.jsx +46 -40
- package/dist/{slot-pC8kH9De.js → components/core/slot.js} +2 -2
- package/dist/components/core/slot.js.map +1 -0
- package/dist/components/core/tag.js +1 -1
- package/dist/components/core/typography.js +40 -0
- package/dist/components/core/typography.js.map +1 -0
- package/dist/components/display/alert.d.ts.map +1 -1
- package/dist/components/display/alert.js +83 -102
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/alert.jsx +26 -29
- package/dist/components/display/calendar.d.ts.map +1 -1
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/calendar.jsx +15 -10
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/empty.d.ts.map +1 -1
- package/dist/components/display/empty.js +25 -0
- package/dist/components/display/empty.js.map +1 -0
- package/dist/components/display/empty.jsx +3 -1
- package/dist/components/display/list.d.ts.map +1 -1
- package/dist/components/display/list.js +132 -122
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/list.jsx +30 -25
- package/dist/components/display/notifications.d.ts.map +1 -1
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/display/notifications.jsx +8 -6
- package/dist/components/display/progress.d.ts.map +1 -1
- package/dist/components/display/progress.js +3 -0
- package/dist/components/display/progress.jsx +6 -8
- package/dist/components/display/shortcut.js +2 -0
- package/dist/components/display/skeleton.js +41 -0
- package/dist/components/display/skeleton.js.map +1 -0
- package/dist/components/display/spinner.js +17 -0
- package/dist/components/display/spinner.js.map +1 -0
- package/dist/components/display/step.d.ts.map +1 -1
- package/dist/components/display/step.js +3 -0
- package/dist/components/display/step.jsx +5 -5
- package/dist/components/display/tabs.js +1 -1
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/command-palette.js +255 -0
- package/dist/components/floating/command-palette.js.map +1 -0
- package/dist/components/floating/command-palette.jsx +34 -25
- package/dist/components/floating/dropdown.js +1 -1
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/dropdown.jsx +1 -1
- package/dist/components/floating/expand.js +15 -14
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +1 -1
- package/dist/components/floating/modal.d.ts +14 -11
- package/dist/components/floating/modal.d.ts.map +1 -1
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/floating/modal.jsx +56 -17
- package/dist/components/floating/toolbar.d.ts +3 -3
- package/dist/components/floating/toolbar.d.ts.map +1 -1
- package/dist/components/floating/toolbar.js +20 -0
- package/dist/components/floating/toolbar.js.map +1 -0
- package/dist/components/floating/toolbar.jsx +7 -3
- package/dist/components/floating/tooltip.js +2 -2
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/floating/tooltip.jsx +1 -1
- package/dist/components/floating/wizard.js +3 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -1
- package/dist/components/form/autocomplete.js +344 -2
- package/dist/components/form/autocomplete.js.map +1 -0
- package/dist/components/form/autocomplete.jsx +27 -18
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/checkbox.js +29 -27
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/checkbox.jsx +21 -6
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/date-picker.jsx +1 -1
- package/dist/components/form/file-upload.d.ts +6 -1
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/form/file-upload.jsx +34 -12
- package/dist/components/form/formReset.js +10 -0
- package/dist/components/form/formReset.js.map +1 -0
- package/dist/components/form/free-text.js +70 -0
- package/dist/components/form/free-text.js.map +1 -0
- package/dist/components/form/free-text.jsx +1 -1
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input-field.js +3 -0
- package/dist/components/form/input-field.jsx +14 -8
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/multi-select.d.ts.map +1 -1
- package/dist/components/form/multi-select.js +420 -0
- package/dist/components/form/multi-select.js.map +1 -0
- package/dist/components/form/multi-select.jsx +41 -33
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +55 -51
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/select.jsx +8 -5
- package/dist/components/form/slider.js +3 -0
- package/dist/components/form/switch.d.ts +2 -1
- package/dist/components/form/switch.d.ts.map +1 -1
- package/dist/components/form/switch.js +32 -26
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/switch.jsx +26 -13
- package/dist/components/form/textarea.js +19 -0
- package/dist/components/form/textarea.js.map +1 -0
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -1
- package/dist/components/page-calendar/calendar-header.js +2 -0
- package/dist/components/page-calendar/calendar-header.jsx +6 -4
- package/dist/components/page-calendar/day-view.js +124 -0
- package/dist/components/page-calendar/day-view.js.map +1 -0
- package/dist/components/page-calendar/event-pill.js +44 -0
- package/dist/components/page-calendar/event-pill.js.map +1 -0
- package/dist/components/page-calendar/month-view.d.ts.map +1 -1
- package/dist/components/page-calendar/month-view.js +109 -0
- package/dist/components/page-calendar/month-view.js.map +1 -0
- package/dist/components/page-calendar/month-view.jsx +78 -31
- package/dist/components/page-calendar/page-calendar.d.ts.map +1 -1
- package/dist/components/page-calendar/page-calendar.js +75 -0
- package/dist/components/page-calendar/page-calendar.js.map +1 -0
- package/dist/components/page-calendar/page-calendar.jsx +2 -2
- package/dist/components/page-calendar/week-view.js +88 -0
- package/dist/components/page-calendar/week-view.js.map +1 -0
- package/dist/components/table/filter.d.ts.map +1 -1
- package/dist/components/table/filter.js +239 -0
- package/dist/components/table/filter.js.map +1 -0
- package/dist/components/table/filter.jsx +9 -4
- package/dist/components/table/group.d.ts.map +1 -1
- package/dist/components/table/group.js +3 -0
- package/dist/components/table/group.jsx +5 -3
- package/dist/components/table/index.js +102 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/inner-table.js +2 -0
- package/dist/components/table/inner-table.jsx +1 -1
- package/dist/components/table/metadata.js +73 -0
- package/dist/components/table/metadata.js.map +1 -0
- package/dist/components/table/metadata.jsx +1 -1
- package/dist/components/table/pagination.js +70 -0
- package/dist/components/table/pagination.js.map +1 -0
- package/dist/components/table/row.js +58 -0
- package/dist/components/table/row.js.map +1 -0
- package/dist/components/table/sort.d.ts.map +1 -1
- package/dist/components/table/sort.js +3 -0
- package/dist/components/table/sort.jsx +3 -1
- package/dist/components/table/thead.js +3 -0
- package/dist/config/default-translations.d.ts +18 -0
- package/dist/config/default-translations.d.ts.map +1 -1
- package/dist/config/default-translations.jsx +18 -0
- package/dist/{use-translations-DTLfPE3_.js → context-CsnUsfeP.js} +55 -40
- package/dist/context-CsnUsfeP.js.map +1 -0
- package/dist/{date-picker-BhKEFZew.js → date-picker-DNzupG8R.js} +301 -317
- package/dist/date-picker-DNzupG8R.js.map +1 -0
- package/dist/dict-CisoYSMO.js +28 -0
- package/dist/dict-CisoYSMO.js.map +1 -0
- package/dist/dist-ChfJ5LO9.js +498 -0
- package/dist/dist-ChfJ5LO9.js.map +1 -0
- package/dist/{dist-BrGpYRaj.js → dist-DIjUECx9.js} +56 -56
- package/dist/{dist-BrGpYRaj.js.map → dist-DIjUECx9.js.map} +1 -1
- package/dist/dom-Bn4wY_Zx.js.map +1 -1
- package/dist/{file-upload-DWbZfeG5.js → file-upload-C2zNnv9n.js} +501 -481
- package/dist/{file-upload-DWbZfeG5.js.map → file-upload-C2zNnv9n.js.map} +1 -1
- package/dist/fzf-CPGDDCoU.js +64 -0
- package/dist/fzf-CPGDDCoU.js.map +1 -0
- package/dist/getISOWeek-EcB4Ebqp.js +72 -0
- package/dist/getISOWeek-EcB4Ebqp.js.map +1 -0
- package/dist/group-Dl14TJXO.js +222 -0
- package/dist/group-Dl14TJXO.js.map +1 -0
- package/dist/hooks/use-translations.d.ts +18 -0
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inner-table-CeDX60cL.js +151 -0
- package/dist/inner-table-CeDX60cL.js.map +1 -0
- package/dist/input-Cmyuea4Y.js +412 -0
- package/dist/input-Cmyuea4Y.js.map +1 -0
- package/dist/{input-field-B_whI66Q.js → input-field-ffx1MbHo.js} +29 -16
- package/dist/input-field-ffx1MbHo.js.map +1 -0
- package/dist/isSameMonth-C3lsSwcg.js +10 -0
- package/dist/isSameMonth-C3lsSwcg.js.map +1 -0
- package/dist/isToday-COXfxFui.js +32 -0
- package/dist/isToday-COXfxFui.js.map +1 -0
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/modal-Df8-6i-o.js +408 -0
- package/dist/modal-Df8-6i-o.js.map +1 -0
- package/dist/notifications-NhCESJUV.js +1697 -0
- package/dist/notifications-NhCESJUV.js.map +1 -0
- package/dist/page-calendar.utils-Bd0PHktL.js +102 -0
- package/dist/page-calendar.utils-Bd0PHktL.js.map +1 -0
- package/dist/preset/preset.tailwind.d.ts.map +1 -1
- package/dist/preset/preset.tailwind.js +6 -7
- package/dist/preset/src/styles/dark.js +1 -1
- package/dist/progress-8LO5gWLp.js +104 -0
- package/dist/progress-8LO5gWLp.js.map +1 -0
- package/dist/{proxy-BcJ_5Dwq.js → proxy-fP2NxmhM.js} +658 -844
- package/dist/proxy-fP2NxmhM.js.map +1 -0
- package/dist/shim-Czv-YhKR.js +93 -0
- package/dist/shim-Czv-YhKR.js.map +1 -0
- package/dist/shortcut-CQCmgmlU.js +100 -0
- package/dist/shortcut-CQCmgmlU.js.map +1 -0
- package/dist/slider-TX9hiHO-.js +1196 -0
- package/dist/slider-TX9hiHO-.js.map +1 -0
- package/dist/sort-DGmiselV.js +195 -0
- package/dist/sort-DGmiselV.js.map +1 -0
- package/dist/step-DFpJ7zCG.js +185 -0
- package/dist/step-DFpJ7zCG.js.map +1 -0
- package/dist/styles/dark.js +1 -1
- package/dist/subMonths-QcCnE3Yh.js +43 -0
- package/dist/subMonths-QcCnE3Yh.js.map +1 -0
- package/dist/table-lib-1bkYSklk.js +174 -0
- package/dist/table-lib-1bkYSklk.js.map +1 -0
- package/dist/{tabs-Ciy0l9OF.js → tabs-Brc963EW.js} +2 -2
- package/dist/{tabs-Ciy0l9OF.js.map → tabs-Brc963EW.js.map} +1 -1
- package/dist/thead-B6WELJZ-.js +211 -0
- package/dist/thead-B6WELJZ-.js.map +1 -0
- package/dist/use-locale-DPM_sg4s.js +12 -0
- package/dist/use-locale-DPM_sg4s.js.map +1 -0
- package/dist/use-remove-scroll-pAgC09Sq.js +38 -0
- package/dist/use-remove-scroll-pAgC09Sq.js.map +1 -0
- package/dist/use-translations-BE4PuhLm.js +11 -0
- package/dist/use-translations-BE4PuhLm.js.map +1 -0
- package/dist/useAnimationFrame-DnKbaXfi.js +223 -0
- package/dist/useAnimationFrame-DnKbaXfi.js.map +1 -0
- package/dist/valueToPercent-DZc_m1tm.js +43 -0
- package/dist/valueToPercent-DZc_m1tm.js.map +1 -0
- package/dist/visuallyHidden-B7wI86yi.js +303 -0
- package/dist/visuallyHidden-B7wI86yi.js.map +1 -0
- package/dist/with-selector-BFW5n-pb.js +102 -0
- package/dist/with-selector-BFW5n-pb.js.map +1 -0
- package/dist/wizard-7u_qZ-78.js +218 -0
- package/dist/wizard-7u_qZ-78.js.map +1 -0
- package/package.json +19 -11
- package/dist/autocomplete-D3VOTihi.js +0 -415
- package/dist/autocomplete-D3VOTihi.js.map +0 -1
- package/dist/calendar-PCCZDUIL.js.map +0 -1
- package/dist/components/table/table.js +0 -3
- package/dist/date-picker-BhKEFZew.js.map +0 -1
- package/dist/input-B7jqwPG4.js +0 -473
- package/dist/input-B7jqwPG4.js.map +0 -1
- package/dist/input-field-B_whI66Q.js.map +0 -1
- package/dist/modal-Bz-61ays.js +0 -373
- package/dist/modal-Bz-61ays.js.map +0 -1
- package/dist/notifications-MT4XkLov.js +0 -2203
- package/dist/notifications-MT4XkLov.js.map +0 -1
- package/dist/polymorph-BLXhrn9n.js.map +0 -1
- package/dist/proxy-BcJ_5Dwq.js.map +0 -1
- package/dist/skeleton-CBYEq3lM.js +0 -26
- package/dist/skeleton-CBYEq3lM.js.map +0 -1
- package/dist/slot-pC8kH9De.js.map +0 -1
- package/dist/table-CUFbAI2k.js +0 -1914
- package/dist/table-CUFbAI2k.js.map +0 -1
- package/dist/use-translations-DTLfPE3_.js.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { p as e } from "./dom-Bn4wY_Zx.js";
|
|
2
|
+
//#region src/lib/fzf.ts
|
|
3
|
+
var t = (e, t) => {
|
|
4
|
+
if (e = String(e).toLocaleLowerCase(), t = String(t).toLocaleLowerCase(), e === t) return 1;
|
|
5
|
+
let n = t[0];
|
|
6
|
+
if (!n) return null;
|
|
7
|
+
let r = [], i = 0;
|
|
8
|
+
for (; i < e.length;) {
|
|
9
|
+
let a = e.indexOf(n, i);
|
|
10
|
+
if (a === -1) break;
|
|
11
|
+
let o = a + 1, s = [a], c = !0;
|
|
12
|
+
for (let n = 1; n < t.length; n++) {
|
|
13
|
+
let r = e.indexOf(t[n], o);
|
|
14
|
+
if (r === -1) {
|
|
15
|
+
c = !1;
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
s.push(r), o = r + 1;
|
|
19
|
+
}
|
|
20
|
+
c && r.push(s), i = a + 1;
|
|
21
|
+
}
|
|
22
|
+
if (r.length === 0) return null;
|
|
23
|
+
let a = r.sort((e, t) => e.length === 1 ? e[0] - t[0] : e[e.length - 1] - e[0] - (t[t.length - 1] - t[0]))[0];
|
|
24
|
+
return a.length > 1 ? 2 + (a[a.length - 1] - a[0]) : 2 + a[0];
|
|
25
|
+
}, n = (e, t, n) => {
|
|
26
|
+
let r = e.split(t).filter(Boolean), i = n;
|
|
27
|
+
for (let e of r) {
|
|
28
|
+
if (i == null) return i;
|
|
29
|
+
i = i[e];
|
|
30
|
+
}
|
|
31
|
+
return i;
|
|
32
|
+
}, r = {
|
|
33
|
+
basic: /[,[\]]+?/,
|
|
34
|
+
extend: /[,[\].]+?/
|
|
35
|
+
}, i = (e, t) => {
|
|
36
|
+
let i = n(t, r.basic, e);
|
|
37
|
+
return i !== void 0 && i !== e ? i : n(t, r.extend, e);
|
|
38
|
+
}, a = (e) => e.replace(/[^0-9]/g, ""), o = (e) => e.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), s = (e, n, r, i = "FUZZY") => i === "CONTAINS" ? e.includes(n) : i === "EQUAL" ? e === n : i === "CONTAINS_NUMBERS" ? a(e).includes(a(n)) : i === "STARTS_WITH" ? e.startsWith(n) : i === "ENDS_WITH" ? e.endsWith(n) : i === "FUZZY" ? t(e, n) !== null : !1, c = (e, t, n, r = "FUZZY") => Array.isArray(t) ? t.some((t) => s(e, t, n, r)) : s(e, t, n, r), l = (t, n, r) => {
|
|
39
|
+
if (r.length === 0) return t;
|
|
40
|
+
let a = /* @__PURE__ */ new Map(), s = r.map((t) => {
|
|
41
|
+
let n = e.array(t.value) ? t.value.map((e) => o(`${e}`.toLocaleLowerCase()).trim()) : o(`${t.value}`.toLocaleLowerCase()).trim();
|
|
42
|
+
return {
|
|
43
|
+
...t,
|
|
44
|
+
target: n
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
return t.forEach((t) => {
|
|
48
|
+
let r = i(t, n);
|
|
49
|
+
s.forEach((n) => {
|
|
50
|
+
let s = i(t, n.key);
|
|
51
|
+
if (!s) return;
|
|
52
|
+
let l = o(`${s}`.toLocaleLowerCase()).trim();
|
|
53
|
+
if (c(l, n.target, n.score, n.match)) {
|
|
54
|
+
a.set(r, t);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
e.function(n.ifNotMatch) && n.ifNotMatch(n.target, l) && a.set(r, t);
|
|
58
|
+
});
|
|
59
|
+
}), Array.from(a.values());
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { l as t };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=fzf-CPGDDCoU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fzf-CPGDDCoU.js","names":[],"sources":["../src/lib/fzf.ts"],"sourcesContent":["import { Is } from \"sidekicker\";\nimport { Any, Walk } from \"../types\";\n\nexport const fuzzyMatch = (text: string, search: string): number | null => {\n text = String(text).toLocaleLowerCase();\n search = String(search).toLocaleLowerCase();\n if (text === search) return 1;\n const firstChar = search[0];\n if (!firstChar) return null;\n\n const matchedIndexes: number[][] = [];\n let cursor = 0;\n while (cursor < text.length) {\n const startIdx = text.indexOf(firstChar, cursor);\n if (startIdx === -1) break;\n let pos = startIdx + 1;\n const indexes = [startIdx];\n let matched = true;\n for (let i = 1; i < search.length; i++) {\n const foundAt = text.indexOf(search[i]!, pos);\n if (foundAt === -1) {\n matched = false;\n break;\n }\n indexes.push(foundAt);\n pos = foundAt + 1;\n }\n if (matched) matchedIndexes.push(indexes);\n cursor = startIdx + 1;\n }\n\n if (matchedIndexes.length === 0) return null;\n const bestMatch = matchedIndexes.sort((a, b) => {\n if (a.length === 1) return a[0]! - b[0]!;\n return a[a.length - 1]! - a[0]! - (b[b.length - 1]! - b[0]!);\n })[0]!;\n if (bestMatch.length > 1) return 2 + (bestMatch[bestMatch.length - 1]! - bestMatch[0]!);\n return 2 + bestMatch[0]!;\n};\n\nexport type Match = \"EQUAL\" | \"CONTAINS\" | \"CONTAINS_NUMBERS\" | \"STARTS_WITH\" | \"ENDS_WITH\" | \"FUZZY\";\n\nexport type MatchValue<T> = {\n match?: Match;\n score?: number;\n key: Walk<T>;\n value: string | string[];\n ifNotMatch?: (value: string, source: string) => boolean;\n};\n\nexport type Matcher<T> = { match?: Match; key: Walk<T> };\n\nconst travel = (path: string, regexp: RegExp, obj: unknown): unknown => {\n const keys = path.split(regexp).filter(Boolean);\n let res: unknown = obj;\n for (const key of keys) {\n if (res === null || res === undefined) {\n return res;\n }\n res = (res as Record<string, unknown>)[key];\n }\n return res;\n};\n\nconst regexPaths = { basic: /[,[\\]]+?/, extend: /[,[\\].]+?/ };\n\nconst path = <T extends Any, V>(obj: T, path: Walk<T>): V => {\n const result = travel(path as string, regexPaths.basic, obj);\n if (result !== undefined && result !== obj) return result as unknown as V;\n return travel(path as string, regexPaths.extend, obj) as unknown as V;\n};\n\nconst onlyNumbers = (str: string) => str.replace(/[^0-9]/g, \"\");\n\nconst diacritics = (input: string): string => input.normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g, \"\");\n\nconst strCompare = (text: string, value: string, _?: number, match: Match = \"FUZZY\"): boolean => {\n if (match === \"CONTAINS\") {\n return text.includes(value);\n }\n if (match === \"EQUAL\") {\n return text === value;\n }\n if (match === \"CONTAINS_NUMBERS\") {\n return onlyNumbers(text).includes(onlyNumbers(value));\n }\n if (match === \"STARTS_WITH\") {\n return text.startsWith(value);\n }\n if (match === \"ENDS_WITH\") {\n return text.endsWith(value);\n }\n if (match === \"FUZZY\") {\n const r = fuzzyMatch(text, value);\n return r !== null;\n }\n return false;\n};\n\nconst compare = (search: string, value: string | string[], defaultScore?: number, match: Match = \"FUZZY\"): boolean =>\n Array.isArray(value) ? value.some((x) => strCompare(search, x, defaultScore, match)) : strCompare(search, value, defaultScore, match);\n\nexport const fzf = <T extends Any, ID extends Walk<T>>(items: T[], id: ID, keys: MatchValue<T>[]) => {\n if (keys.length === 0) {\n return items;\n }\n const map = new Map<ID, T>();\n const remap = keys.map((x) => {\n const target = Is.array(x.value)\n ? x.value.map((v) => diacritics(`${v}`.toLocaleLowerCase()).trim())\n : diacritics(`${x.value}`.toLocaleLowerCase()).trim();\n return { ...x, target };\n });\n items.forEach((item) => {\n const idVal = path<T, ID>(item, id);\n remap.forEach((filter) => {\n const searchValue = path(item, filter.key);\n if (!searchValue) return;\n const search = diacritics(`${searchValue}`.toLocaleLowerCase()).trim();\n if (compare(search, filter.target, filter.score, filter.match)) {\n return void map.set(idVal, item);\n }\n if (Is.function(filter.ifNotMatch)) {\n const result = filter.ifNotMatch(filter.target as string, search);\n if (result) map.set(idVal, item);\n }\n });\n });\n return Array.from(map.values());\n};\n"],"mappings":";;AAGA,IAAa,KAAc,GAAc,MAAkC;CAGvE,IAFA,IAAO,OAAO,CAAI,EAAE,kBAAkB,GACtC,IAAS,OAAO,CAAM,EAAE,kBAAkB,GACtC,MAAS,GAAQ,OAAO;CAC5B,IAAM,IAAY,EAAO;CACzB,IAAI,CAAC,GAAW,OAAO;CA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W,EAAO,QAAkB,CACtD,KAAQ,EAAI,IAAI,GAAO,CAAI;EAEvC,CAAC;CACL,CAAC,GACM,MAAM,KAAK,EAAI,OAAO,CAAC;AAClC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js
|
|
2
|
+
var e = 365.2425, t = 6048e5, n = 864e5, r = 6e4, i = 36e5, a = 1e3, o = 3600 * 24;
|
|
3
|
+
o * 7, o * e / 12 * 3;
|
|
4
|
+
var s = Symbol.for("constructDateFrom");
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js
|
|
7
|
+
function c(e, t) {
|
|
8
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && s in e ? e[s](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js
|
|
12
|
+
function l(e, t) {
|
|
13
|
+
return c(t || e, e);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js
|
|
17
|
+
function u(e, t, n) {
|
|
18
|
+
let r = l(e, n?.in);
|
|
19
|
+
return isNaN(t) ? c(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
23
|
+
var d = {};
|
|
24
|
+
function f() {
|
|
25
|
+
return d;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js
|
|
29
|
+
function p(e, t) {
|
|
30
|
+
let n = f(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = l(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
31
|
+
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js
|
|
35
|
+
function m(e, t) {
|
|
36
|
+
return p(e, {
|
|
37
|
+
...t,
|
|
38
|
+
weekStartsOn: 1
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js
|
|
43
|
+
function h(e, t) {
|
|
44
|
+
let n = l(e, t?.in), r = n.getFullYear(), i = c(n, 0);
|
|
45
|
+
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
46
|
+
let a = m(i), o = c(n, 0);
|
|
47
|
+
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
48
|
+
let s = m(o);
|
|
49
|
+
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
53
|
+
function g(e, t) {
|
|
54
|
+
let n = h(e, t), r = c(t?.in || e, 0);
|
|
55
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), m(r);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js
|
|
59
|
+
function _(e, t) {
|
|
60
|
+
let n = l(e, t?.in);
|
|
61
|
+
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js
|
|
65
|
+
function v(e, n) {
|
|
66
|
+
let r = l(e, n?.in), i = m(r) - +g(r);
|
|
67
|
+
return Math.round(i / t) + 1;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { p as a, l as c, i as d, r as f, m as i, c as l, t as m, _ as n, f as o, a as p, h as r, u as s, v as t, n as u };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=getISOWeek-EcB4Ebqp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getISOWeek-EcB4Ebqp.js","names":[],"sources":["../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constructFrom.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/toDate.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/_lib/defaultOptions.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfWeek.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeek.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeekYear.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfISOWeekYear.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/startOfMonth.js","../../../node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISOWeek.js"],"sourcesContent":["/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n","import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * **You don't need date-fns\\***:\n *\n * Temporal has a built-in `add` method on all its classes:\n *\n * - [`Temporal.Instant.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/Instant/add)\n * - [`Temporal.PlainDate.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDate/add)\n * - [`Temporal.PlainDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainDateTime/add)\n * - [`Temporal.PlainTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainTime/add)\n * - [`Temporal.PlainYearMonth.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/PlainYearMonth/add)\n * - [`Temporal.ZonedDateTime.prototype.add()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal/ZonedDateTime/add)\n *\n * \\* **Not really**, see: https://date-fns.org/you-dont-need-date-fns\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n *\n * @example\n * // Using Temporal:\n * // Add 10 days to 1 September 2014:\n * Temporal.PlainDate.from(\"2014-09-01\").add({ days: 10 }).toString();\n * //=> \"2014-09-11\"\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n","let defaultOptions = {};\n\nexport function getDefaultOptions() {\n return defaultOptions;\n}\n\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n","import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10],"mappings":";AAqCA,IAAa,IAAa,UAuCb,IAAqB,QAOrB,IAAoB,OAOpB,IAAuB,KAOvB,IAAqB,MAOrB,IAAuB,KAsEvB,IAAe,OAAgB;AAOf,IAAe,GAOf,IAAe,IAOE,KAOG;AAajD,IAAa,IAAsB,OAAO,IAAI,mBAAmB;;;AClLjE,SAAgB,EAAc,GAAM,GAAO;CAQzC,OAPI,OAAO,KAAS,aAAmB,EAAK,CAAK,IAE7C,KAAQ,OAAO,KAAS,YAAY,KAAuB,IACtD,EAAK,GAAqB,CAAK,IAEpC,aAAgB,OAAa,IAAI,EAAK,YAAY,CAAK,IAEpD,IAAI,KAAK,CAAK;AACvB;;;ACNA,SAAgB,EAAO,GAAU,GAAS;CAExC,OAAO,EAAc,KAAW,GAAU,CAAQ;AACpD;;;ACKA,SAAgB,EAAQ,GAAM,GAAQ,GAAS;CAC7C,IAAM,IAAQ,EAAO,GAAM,GAAS,EAAE;CAOtC,OANI,MAAM,CAAM,IAAU,EAAc,GAAS,MAAM,GAAM,GAAG,KAG3D,KAEL,EAAM,QAAQ,EAAM,QAAQ,IAAI,CAAM,GAFlB;AAItB;;;ACzDA,IAAI,IAAiB,CAAC;AAEtB,SAAgB,IAAoB;CAClC,OAAO;AACT;;;AC8BA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EAAa,GAAM,GAAS;CAC1C,IAAM,IAAQ,EAAO,GAAM,GAAS,EAAE;CAGtC,OAFA,EAAM,QAAQ,CAAC,GACf,EAAM,SAAS,GAAG,GAAG,GAAG,CAAC,GAClB;AACT;;;ACLA,SAAgB,EAAW,GAAM,GAAS;CACxC,IAAM,IAAQ,EAAO,GAAM,GAAS,EAAE,GAChC,IAAQ,EAAe,CAAK,IAAI,CAAC,EAAmB,CAAK;CAK/D,OAAO,KAAK,MAAM,IAAO,CAAkB,IAAI;AACjD"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { h as e } from "./dom-Bn4wY_Zx.js";
|
|
2
|
+
import { t } from "./Trash.es-BFAc8PMf.js";
|
|
3
|
+
import { t as n } from "./IconBase.es-BlJQ9IXo.js";
|
|
4
|
+
import { t as r } from "./use-translations-BE4PuhLm.js";
|
|
5
|
+
import { c as i } from "./fns-KbsWlOTG.js";
|
|
6
|
+
import { Button as a } from "./components/core/button.js";
|
|
7
|
+
import { Select as o } from "./components/form/select.js";
|
|
8
|
+
import { o as s, s as c } from "./proxy-fP2NxmhM.js";
|
|
9
|
+
import { Ft as l, pt as u } from "./MotionConfigContext-BORpSKe8.js";
|
|
10
|
+
import { i as d, n as f, r as p } from "./dist-ChfJ5LO9.js";
|
|
11
|
+
import { t as m } from "./use-motion-value-BqPF1j90.js";
|
|
12
|
+
import { Dropdown as h } from "./components/floating/dropdown.js";
|
|
13
|
+
import { r as g } from "./table-lib-1bkYSklk.js";
|
|
14
|
+
import * as _ from "react";
|
|
15
|
+
import { Fragment as v, createContext as y, useCallback as b, useContext as x, useMemo as S, useRef as C, useState as w } from "react";
|
|
16
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
17
|
+
//#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/DotsSixVertical.es.js
|
|
18
|
+
var D = /* @__PURE__ */ new Map([
|
|
19
|
+
["bold", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z" }))],
|
|
20
|
+
["duotone", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", {
|
|
21
|
+
d: "M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z",
|
|
22
|
+
opacity: "0.2"
|
|
23
|
+
}), /* @__PURE__ */ _.createElement("path", { d: "M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z" }))],
|
|
24
|
+
["fill", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z" }))],
|
|
25
|
+
["light", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z" }))],
|
|
26
|
+
["regular", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z" }))],
|
|
27
|
+
["thin", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z" }))]
|
|
28
|
+
]), O = /* @__PURE__ */ new Map([
|
|
29
|
+
["bold", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M240,200a12,12,0,0,1-12,12H188a12,12,0,0,1,0-24h40A12,12,0,0,1,240,200ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,1,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89ZM138,212.3,128,218.11,38.05,165.63A12,12,0,0,0,26,186.37l96,56a12,12,0,0,0,12.1,0l16-9.34A12,12,0,1,0,138,212.3Z" }))],
|
|
30
|
+
["duotone", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", {
|
|
31
|
+
d: "M224,80l-96,56L32,80l96-56Z",
|
|
32
|
+
opacity: "0.2"
|
|
33
|
+
}), /* @__PURE__ */ _.createElement("path", { d: "M240,200a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16h48A8,8,0,0,1,240,200Zm-20-78.91-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM140,215.76l-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
|
|
34
|
+
["fill", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
|
|
35
|
+
["light", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M238,200a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h48A6,6,0,0,1,238,200Zm-17-77.18-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31ZM141,217.48l-13,7.57L35,170.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l16-9.33a6,6,0,0,0-6-10.37Z" }))],
|
|
36
|
+
["regular", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z" }))],
|
|
37
|
+
["thin", /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("path", { d: "M236,200a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h48A4,4,0,0,1,236,200Zm-14-75.46-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,1,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63ZM142,219.21l-14,8.16L34,172.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l16-9.34a4,4,0,1,0-4-6.91Z" }))]
|
|
38
|
+
]), k = _.forwardRef((e, t) => /* @__PURE__ */ _.createElement(n, {
|
|
39
|
+
ref: t,
|
|
40
|
+
...e,
|
|
41
|
+
weights: D
|
|
42
|
+
}));
|
|
43
|
+
k.displayName = "DotsSixVerticalIcon";
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/StackMinus.es.js
|
|
46
|
+
var A = _.forwardRef((e, t) => /* @__PURE__ */ _.createElement(n, {
|
|
47
|
+
ref: t,
|
|
48
|
+
...e,
|
|
49
|
+
weights: O
|
|
50
|
+
}));
|
|
51
|
+
A.displayName = "StackMinusIcon";
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/group.mjs
|
|
54
|
+
var j = (e) => !e.isLayoutDirty && e.willUpdate(!1);
|
|
55
|
+
function M() {
|
|
56
|
+
let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(j);
|
|
57
|
+
return {
|
|
58
|
+
add: (r) => {
|
|
59
|
+
e.add(r), t.set(r, r.addEventListener("willUpdate", n));
|
|
60
|
+
},
|
|
61
|
+
remove: (r) => {
|
|
62
|
+
e.delete(r);
|
|
63
|
+
let i = t.get(r);
|
|
64
|
+
i && (i(), t.delete(r)), n();
|
|
65
|
+
},
|
|
66
|
+
dirty: n
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
|
|
71
|
+
var N = y(null);
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs
|
|
74
|
+
function P() {
|
|
75
|
+
let e = C(!1);
|
|
76
|
+
return s(() => (e.current = !0, () => {
|
|
77
|
+
e.current = !1;
|
|
78
|
+
}), []), e;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-force-update.mjs
|
|
82
|
+
function F() {
|
|
83
|
+
let e = P(), [t, n] = w(0), r = b(() => {
|
|
84
|
+
e.current && n(t + 1);
|
|
85
|
+
}, [t]);
|
|
86
|
+
return [b(() => u.postRender(r), [r]), t];
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs
|
|
90
|
+
var I = (e) => e === !0, L = (e) => I(e === !0) || e === "id", R = ({ children: e, id: t, inherit: n = !0 }) => {
|
|
91
|
+
let r = x(c), i = x(N), [a, o] = F(), s = C(null), l = r.id || i;
|
|
92
|
+
s.current === null && (L(n) && l && (t = t ? l + "-" + t : l), s.current = {
|
|
93
|
+
id: t,
|
|
94
|
+
group: I(n) && r.group || M()
|
|
95
|
+
});
|
|
96
|
+
let u = S(() => ({
|
|
97
|
+
...s.current,
|
|
98
|
+
forceRender: a
|
|
99
|
+
}), [o]);
|
|
100
|
+
return T(c.Provider, {
|
|
101
|
+
value: u,
|
|
102
|
+
children: e
|
|
103
|
+
});
|
|
104
|
+
}, z = class {
|
|
105
|
+
constructor() {
|
|
106
|
+
this.componentControls = /* @__PURE__ */ new Set();
|
|
107
|
+
}
|
|
108
|
+
subscribe(e) {
|
|
109
|
+
return this.componentControls.add(e), () => this.componentControls.delete(e);
|
|
110
|
+
}
|
|
111
|
+
start(e, t) {
|
|
112
|
+
this.componentControls.forEach((n) => {
|
|
113
|
+
n.start(e.nativeEvent || e, t);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
cancel() {
|
|
117
|
+
this.componentControls.forEach((e) => {
|
|
118
|
+
e.cancel();
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
stop() {
|
|
122
|
+
this.componentControls.forEach((e) => {
|
|
123
|
+
e.stop();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}, B = () => new z();
|
|
127
|
+
function V() {
|
|
128
|
+
return l(B);
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/components/table/group.tsx
|
|
132
|
+
var H = ({ item: e, onPointerDown: t }) => {
|
|
133
|
+
let n = m(0);
|
|
134
|
+
return /* @__PURE__ */ E(p, {
|
|
135
|
+
onPointerDown: t,
|
|
136
|
+
id: e.groupId,
|
|
137
|
+
className: "flex flex-row items-center gap-2",
|
|
138
|
+
value: e,
|
|
139
|
+
style: { y: n },
|
|
140
|
+
children: [/* @__PURE__ */ T("button", {
|
|
141
|
+
type: "button",
|
|
142
|
+
className: "cursor-grab",
|
|
143
|
+
children: /* @__PURE__ */ T(k, { size: 14 })
|
|
144
|
+
}), /* @__PURE__ */ T("span", { children: e.groupName })]
|
|
145
|
+
}, e.groupId);
|
|
146
|
+
}, U = (n) => {
|
|
147
|
+
let s = r(), c = g(n.cols), l = V(), [u, p] = w(n.groups[0]?.thead || "");
|
|
148
|
+
return /* @__PURE__ */ T(v, { children: /* @__PURE__ */ E(h, {
|
|
149
|
+
arrow: !1,
|
|
150
|
+
title: s.tableGroupLabel,
|
|
151
|
+
trigger: /* @__PURE__ */ E("span", {
|
|
152
|
+
className: "flex items-center gap-table-inline-gap-tight proportional-nums",
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ T(A, { size: 14 }),
|
|
155
|
+
s.tableGroupLabelWithCount,
|
|
156
|
+
n.groups.length > 0 ? ` - ${u}(${n.groups.length})` : ""
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
children: [/* @__PURE__ */ E("div", {
|
|
160
|
+
className: "flex flex-nowrap items-center",
|
|
161
|
+
children: [/* @__PURE__ */ T(o, {
|
|
162
|
+
value: u,
|
|
163
|
+
title: s.tableGroupTypeTitle,
|
|
164
|
+
onChange: (t) => {
|
|
165
|
+
let r = t.target, a = r.value, o = r.options.selectedIndex;
|
|
166
|
+
p(r.options.item(o)?.label || "");
|
|
167
|
+
let s = new f(n.rows).GroupBy(a), c = n.cols.find((e) => e.id === a);
|
|
168
|
+
n.setGroups(e(s).map((e, t) => {
|
|
169
|
+
let n = s[e];
|
|
170
|
+
return {
|
|
171
|
+
...c,
|
|
172
|
+
groupId: i(),
|
|
173
|
+
groupKey: a,
|
|
174
|
+
index: t,
|
|
175
|
+
rows: n,
|
|
176
|
+
groupName: e
|
|
177
|
+
};
|
|
178
|
+
}));
|
|
179
|
+
},
|
|
180
|
+
options: c,
|
|
181
|
+
placeholder: s.tableGroupPlaceholder
|
|
182
|
+
}), /* @__PURE__ */ T(a, {
|
|
183
|
+
className: "mt-table-groups-mt",
|
|
184
|
+
onClick: () => n.setGroups([]),
|
|
185
|
+
theme: "raw",
|
|
186
|
+
"data-id": u,
|
|
187
|
+
children: /* @__PURE__ */ T("span", {
|
|
188
|
+
className: "text-danger",
|
|
189
|
+
children: /* @__PURE__ */ T(t, {
|
|
190
|
+
size: 16,
|
|
191
|
+
"aria-hidden": "true"
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
}), n.groups.length > 0 ? /* @__PURE__ */ E("section", {
|
|
196
|
+
className: "my-table-groups-my",
|
|
197
|
+
children: [/* @__PURE__ */ T("header", { children: /* @__PURE__ */ T("h2", {
|
|
198
|
+
className: "text-typography-xl font-medium",
|
|
199
|
+
children: s.tableGroupOrderTitle
|
|
200
|
+
}) }), /* @__PURE__ */ T(R, { children: /* @__PURE__ */ T(d, {
|
|
201
|
+
axis: "y",
|
|
202
|
+
className: "relative space-y-2",
|
|
203
|
+
drag: !0,
|
|
204
|
+
dragControls: l,
|
|
205
|
+
dragListener: !1,
|
|
206
|
+
layoutScroll: !0,
|
|
207
|
+
onReorder: n.setGroups,
|
|
208
|
+
values: n.groups,
|
|
209
|
+
children: n.groups.map((e) => /* @__PURE__ */ T(H, {
|
|
210
|
+
item: e,
|
|
211
|
+
onPointerDown: (e) => {
|
|
212
|
+
l.start(e), n.setGroups([...n.groups]);
|
|
213
|
+
}
|
|
214
|
+
}, e.groupId))
|
|
215
|
+
}) })]
|
|
216
|
+
}) : null]
|
|
217
|
+
}) });
|
|
218
|
+
};
|
|
219
|
+
//#endregion
|
|
220
|
+
export { U as t };
|
|
221
|
+
|
|
222
|
+
//# sourceMappingURL=group-Dl14TJXO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-Dl14TJXO.js","names":["t","o","a","e","i","o","e","a","r"],"sources":["../../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/DotsSixVertical.es.js","../../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/defs/StackMinus.es.js","../../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/DotsSixVertical.es.js","../../../node_modules/.pnpm/@phosphor-icons+react@2.1.10_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@phosphor-icons/react/dist/csr/StackMinus.es.js","../../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/group.mjs","../../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs","../../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs","../../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-force-update.mjs","../../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs","../../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.mjs","../src/components/table/group.tsx"],"sourcesContent":["import * as a from \"react\";\nconst e = /* @__PURE__ */ new Map([\n [\n \"bold\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M108,60A16,16,0,1,1,92,44,16,16,0,0,1,108,60Zm56,16a16,16,0,1,0-16-16A16,16,0,0,0,164,76ZM92,112a16,16,0,1,0,16,16A16,16,0,0,0,92,112Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,112ZM92,180a16,16,0,1,0,16,16A16,16,0,0,0,92,180Zm72,0a16,16,0,1,0,16,16A16,16,0,0,0,164,180Z\" }))\n ],\n [\n \"duotone\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\n \"path\",\n {\n d: \"M208,32V224a16,16,0,0,1-16,16H64a16,16,0,0,1-16-16V32A16,16,0,0,1,64,16H192A16,16,0,0,1,208,32Z\",\n opacity: \"0.2\"\n }\n ), /* @__PURE__ */ a.createElement(\"path\", { d: \"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z\" }))\n ],\n [\n \"fill\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M192,16H64A16,16,0,0,0,48,32V224a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V32A16,16,0,0,0,192,16ZM100,200a12,12,0,1,1,12-12A12,12,0,0,1,100,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,100,80Zm56,120a12,12,0,1,1,12-12A12,12,0,0,1,156,200Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,140Zm0-60a12,12,0,1,1,12-12A12,12,0,0,1,156,80Z\" }))\n ],\n [\n \"light\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M102,60A10,10,0,1,1,92,50,10,10,0,0,1,102,60Zm62,10a10,10,0,1,0-10-10A10,10,0,0,0,164,70ZM92,118a10,10,0,1,0,10,10A10,10,0,0,0,92,118Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,118ZM92,186a10,10,0,1,0,10,10A10,10,0,0,0,92,186Zm72,0a10,10,0,1,0,10,10A10,10,0,0,0,164,186Z\" }))\n ],\n [\n \"regular\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z\" }))\n ],\n [\n \"thin\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M100,60a8,8,0,1,1-8-8A8,8,0,0,1,100,60Zm64,8a8,8,0,1,0-8-8A8,8,0,0,0,164,68ZM92,120a8,8,0,1,0,8,8A8,8,0,0,0,92,120Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,120ZM92,188a8,8,0,1,0,8,8A8,8,0,0,0,92,188Zm72,0a8,8,0,1,0,8,8A8,8,0,0,0,164,188Z\" }))\n ]\n]);\nexport {\n e as default\n};\n","import * as a from \"react\";\nconst l = /* @__PURE__ */ new Map([\n [\n \"bold\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M240,200a12,12,0,0,1-12,12H188a12,12,0,0,1,0-24h40A12,12,0,0,1,240,200ZM218,117.63,128,170.11,38.05,117.63A12,12,0,0,0,26,138.37l96,56a12,12,0,0,0,12.1,0l96-56A12,12,0,1,0,218,117.63ZM20,80a12,12,0,0,1,6-10.37l96-56a12.06,12.06,0,0,1,12.1,0l96,56a12,12,0,0,1,0,20.74l-96,56a12,12,0,0,1-12.1,0l-96-56A12,12,0,0,1,20,80Zm35.82,0L128,122.11,200.18,80,128,37.89ZM138,212.3,128,218.11,38.05,165.63A12,12,0,0,0,26,186.37l96,56a12,12,0,0,0,12.1,0l16-9.34A12,12,0,1,0,138,212.3Z\" }))\n ],\n [\n \"duotone\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M224,80l-96,56L32,80l96-56Z\", opacity: \"0.2\" }), /* @__PURE__ */ a.createElement(\"path\", { d: \"M240,200a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16h48A8,8,0,0,1,240,200Zm-20-78.91-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM140,215.76l-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z\" }))\n ],\n [\n \"fill\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM28,86.91l96,56a8,8,0,0,0,8.06,0l96-56a8,8,0,0,0,0-13.82l-96-56a8,8,0,0,0-8.06,0l-96,56a8,8,0,0,0,0,13.82ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z\" }))\n ],\n [\n \"light\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M238,200a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h48A6,6,0,0,1,238,200Zm-17-77.18-93,54.23L35,122.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l96-56a6,6,0,0,0-6-10.36ZM26,80a6,6,0,0,1,3-5.18l96-56a6,6,0,0,1,6,0l96,56a6,6,0,0,1,0,10.36l-96,56a6,6,0,0,1-6,0l-96-56A6,6,0,0,1,26,80Zm17.91,0L128,129.05,212.09,80,128,31ZM141,217.48l-13,7.57L35,170.82a6,6,0,0,0-6,10.36l96,56a6,6,0,0,0,6,0l16-9.33a6,6,0,0,0-6-10.37Z\" }))\n ],\n [\n \"regular\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M230.91,124A8,8,0,0,1,228,134.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,121.09l92,53.65,92-53.65A8,8,0,0,1,230.91,124ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26ZM232,192H184a8,8,0,0,0,0,16h48a8,8,0,0,0,0-16Zm-92,23.76-12,7L36,169.09A8,8,0,0,0,28,182.91l96,56a8,8,0,0,0,8.06,0l16-9.33A8,8,0,1,0,140,215.76Z\" }))\n ],\n [\n \"thin\",\n /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(\"path\", { d: \"M236,200a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h48A4,4,0,0,1,236,200Zm-14-75.46-94,54.83L34,124.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l96-56a4,4,0,1,0-4-6.92ZM28,80a4,4,0,0,1,2-3.46l96-56a4,4,0,0,1,4,0l96,56a4,4,0,0,1,0,6.92l-96,56a4,4,0,0,1-4,0l-96-56A4,4,0,0,1,28,80Zm11.94,0L128,131.37,216.06,80,128,28.63ZM142,219.21l-14,8.16L34,172.54a4,4,0,0,0-4,6.92l96,56a4,4,0,0,0,4,0l16-9.34a4,4,0,1,0-4-6.91Z\" }))\n ]\n]);\nexport {\n l as default\n};\n","import * as o from \"react\";\nimport a from \"../lib/IconBase.es.js\";\nimport i from \"../defs/DotsSixVertical.es.js\";\nconst t = o.forwardRef((e, r) => /* @__PURE__ */ o.createElement(a, { ref: r, ...e, weights: i }));\nt.displayName = \"DotsSixVerticalIcon\";\nconst m = t;\nexport {\n m as DotsSixVertical,\n t as DotsSixVerticalIcon\n};\n","import * as o from \"react\";\nimport e from \"../lib/IconBase.es.js\";\nimport r from \"../defs/StackMinus.es.js\";\nconst t = o.forwardRef((a, c) => /* @__PURE__ */ o.createElement(e, { ref: c, ...a, weights: r }));\nt.displayName = \"StackMinusIcon\";\nconst i = t;\nexport {\n i as StackMinus,\n t as StackMinusIcon\n};\n","const notify = (node) => !node.isLayoutDirty && node.willUpdate(false);\nfunction nodeGroup() {\n const nodes = new Set();\n const subscriptions = new WeakMap();\n const dirtyAll = () => nodes.forEach(notify);\n return {\n add: (node) => {\n nodes.add(node);\n subscriptions.set(node, node.addEventListener(\"willUpdate\", dirtyAll));\n },\n remove: (node) => {\n nodes.delete(node);\n const unsubscribe = subscriptions.get(node);\n if (unsubscribe) {\n unsubscribe();\n subscriptions.delete(node);\n }\n dirtyAll();\n },\n dirty: dirtyAll,\n };\n}\n\nexport { nodeGroup };\n//# sourceMappingURL=group.mjs.map\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * Note: Still used by components generated by old versions of Framer\n *\n * @deprecated\n */\nconst DeprecatedLayoutGroupContext = createContext(null);\n\nexport { DeprecatedLayoutGroupContext };\n//# sourceMappingURL=DeprecatedLayoutGroupContext.mjs.map\n","\"use client\";\nimport { useRef } from 'react';\nimport { useIsomorphicLayoutEffect } from './use-isomorphic-effect.mjs';\n\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useIsomorphicLayoutEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return isMounted;\n}\n\nexport { useIsMounted };\n//# sourceMappingURL=use-is-mounted.mjs.map\n","\"use client\";\nimport { frame } from 'motion-dom';\nimport { useState, useCallback } from 'react';\nimport { useIsMounted } from './use-is-mounted.mjs';\n\nfunction useForceUpdate() {\n const isMounted = useIsMounted();\n const [forcedRenderCount, setForcedRenderCount] = useState(0);\n const forceRender = useCallback(() => {\n isMounted.current && setForcedRenderCount(forcedRenderCount + 1);\n }, [forcedRenderCount]);\n /**\n * Defer this to the end of the next animation frame in case there are multiple\n * synchronous calls.\n */\n const deferredForceRender = useCallback(() => frame.postRender(forceRender), [forceRender]);\n return [deferredForceRender, forcedRenderCount];\n}\n\nexport { useForceUpdate };\n//# sourceMappingURL=use-force-update.mjs.map\n","\"use client\";\nimport { jsx } from 'react/jsx-runtime';\nimport { useContext, useRef, useMemo } from 'react';\nimport { LayoutGroupContext } from '../../context/LayoutGroupContext.mjs';\nimport { DeprecatedLayoutGroupContext } from '../../context/DeprecatedLayoutGroupContext.mjs';\nimport { useForceUpdate } from '../../utils/use-force-update.mjs';\nimport { nodeGroup } from 'motion-dom';\n\nconst shouldInheritGroup = (inherit) => inherit === true;\nconst shouldInheritId = (inherit) => shouldInheritGroup(inherit === true) || inherit === \"id\";\nconst LayoutGroup = ({ children, id, inherit = true }) => {\n const layoutGroupContext = useContext(LayoutGroupContext);\n const deprecatedLayoutGroupContext = useContext(DeprecatedLayoutGroupContext);\n const [forceRender, key] = useForceUpdate();\n const context = useRef(null);\n const upstreamId = layoutGroupContext.id || deprecatedLayoutGroupContext;\n if (context.current === null) {\n if (shouldInheritId(inherit) && upstreamId) {\n id = id ? upstreamId + \"-\" + id : upstreamId;\n }\n context.current = {\n id,\n group: shouldInheritGroup(inherit)\n ? layoutGroupContext.group || nodeGroup()\n : nodeGroup(),\n };\n }\n const memoizedContext = useMemo(() => ({ ...context.current, forceRender }), [key]);\n return (jsx(LayoutGroupContext.Provider, { value: memoizedContext, children: children }));\n};\n\nexport { LayoutGroup };\n//# sourceMappingURL=index.mjs.map\n","import { useConstant } from '../../utils/use-constant.mjs';\n\n/**\n * Can manually trigger a drag gesture on one or more `drag`-enabled `motion` components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nclass DragControls {\n constructor() {\n this.componentControls = new Set();\n }\n /**\n * Subscribe a component's internal `VisualElementDragControls` to the user-facing API.\n *\n * @internal\n */\n subscribe(controls) {\n this.componentControls.add(controls);\n return () => this.componentControls.delete(controls);\n }\n /**\n * Start a drag gesture on every `motion` component that has this set of drag controls\n * passed into it via the `dragControls` prop.\n *\n * ```jsx\n * dragControls.start(e, {\n * snapToCursor: true\n * })\n * ```\n *\n * @param event - PointerEvent\n * @param options - Options\n *\n * @public\n */\n start(event, options) {\n this.componentControls.forEach((controls) => {\n controls.start(event.nativeEvent || event, options);\n });\n }\n /**\n * Cancels a drag gesture.\n *\n * ```jsx\n * dragControls.cancel()\n * ```\n *\n * @public\n */\n cancel() {\n this.componentControls.forEach((controls) => {\n controls.cancel();\n });\n }\n /**\n * Stops a drag gesture.\n *\n * ```jsx\n * dragControls.stop()\n * ```\n *\n * @public\n */\n stop() {\n this.componentControls.forEach((controls) => {\n controls.stop();\n });\n }\n}\nconst createDragControls = () => new DragControls();\n/**\n * Usually, dragging is initiated by pressing down on a `motion` component with a `drag` prop\n * and moving it. For some use-cases, for instance clicking at an arbitrary point on a video scrubber, we\n * might want to initiate that dragging from a different component than the draggable one.\n *\n * By creating a `dragControls` using the `useDragControls` hook, we can pass this into\n * the draggable component's `dragControls` prop. It exposes a `start` method\n * that can start dragging from pointer events on other components.\n *\n * ```jsx\n * const dragControls = useDragControls()\n *\n * function startDrag(event) {\n * dragControls.start(event, { snapToCursor: true })\n * }\n *\n * return (\n * <>\n * <div onPointerDown={startDrag} />\n * <motion.div drag=\"x\" dragControls={dragControls} />\n * </>\n * )\n * ```\n *\n * @public\n */\nfunction useDragControls() {\n return useConstant(createDragControls);\n}\n\nexport { DragControls, useDragControls };\n//# sourceMappingURL=use-drag-controls.mjs.map\n","\"use client\";\nimport { LayoutGroup, Reorder, useDragControls, useMotionValue } from \"motion/react\";\nimport Linq from \"linq-arrays\";\nimport { DotsSixVerticalIcon, TrashIcon, StackMinusIcon } from \"@phosphor-icons/react\";\nimport React, { Fragment, useState } from \"react\";\nimport { keys } from \"sidekicker\";\nimport { useTranslations } from \"../../hooks/use-translations\";\nimport { uuid } from \"../../lib/fns\";\nimport { Button } from \"../core/button\";\nimport { Dropdown } from \"../floating/dropdown\";\nimport { Select } from \"../form/select\";\nimport { Col, createOptionCols, TableConfiguration } from \"./table-lib\";\n\nexport type GroupItem<T extends object> = Col<T> & {\n rows: T[];\n index: number;\n groupId: string;\n groupName: string;\n groupKey: keyof T;\n};\n\ntype Props<T extends object> = TableConfiguration<\n T,\n {\n rows: T[];\n groups: GroupItem<T>[];\n setGroups: React.Dispatch<React.SetStateAction<GroupItem<T>[]>>;\n }\n>;\n\nconst Item = <T extends object>({ item, onPointerDown }: { item: GroupItem<T>; onPointerDown: (e: React.PointerEvent) => void }) => {\n const y = useMotionValue(0);\n return (\n <Reorder.Item\n onPointerDown={onPointerDown}\n id={item.groupId}\n className=\"flex flex-row items-center gap-2\"\n key={item.groupId}\n value={item}\n style={{ y }}\n >\n <button type=\"button\" className=\"cursor-grab\">\n <DotsSixVerticalIcon size={14} />\n </button>\n <span>{item.groupName}</span>\n </Reorder.Item>\n );\n};\n\nexport const Group = <T extends object>(props: Props<T>) => {\n const translations = useTranslations();\n const options = createOptionCols(props.cols);\n const controls = useDragControls();\n const [group, setGroup] = useState((props.groups[0]?.thead as string) || \"\");\n\n const onChange = (e: React.ChangeEvent<HTMLSelectElement>) => {\n const select = e.target;\n const key = select.value as keyof T;\n const index = select.options.selectedIndex;\n const label = select.options.item(index)?.label || \"\";\n setGroup(label);\n const groupBy = new Linq(props.rows).GroupBy(key);\n const col = props.cols.find((x) => x.id === key)!;\n props.setGroups(\n keys(groupBy).map((groupName, index): GroupItem<T> => {\n const rows = groupBy[groupName];\n return {\n ...col,\n groupId: uuid(),\n groupKey: key,\n index,\n rows,\n groupName: groupName as string,\n };\n })\n );\n };\n\n const onDelete = () => props.setGroups([]);\n\n return (\n <Fragment>\n <Dropdown\n arrow={false}\n title={translations.tableGroupLabel}\n trigger={\n <span className=\"flex items-center gap-table-inline-gap-tight proportional-nums\">\n <StackMinusIcon size={14} />\n {translations.tableGroupLabelWithCount}\n {props.groups.length > 0 ? ` - ${group}(${props.groups.length})` : \"\"}\n </span>\n }\n >\n <div className=\"flex flex-nowrap items-center\">\n <Select\n value={group}\n title={translations.tableGroupTypeTitle}\n onChange={onChange}\n options={options}\n placeholder={translations.tableGroupPlaceholder}\n />\n <Button className=\"mt-table-groups-mt\" onClick={onDelete} theme=\"raw\" data-id={group}>\n <span className=\"text-danger\">\n <TrashIcon size={16} aria-hidden=\"true\" />\n </span>\n </Button>\n </div>\n {props.groups.length > 0 ? (\n <section className=\"my-table-groups-my\">\n <header>\n <h2 className=\"text-typography-xl font-medium\">{translations.tableGroupOrderTitle}</h2>\n </header>\n <LayoutGroup>\n <Reorder.Group\n axis=\"y\"\n className=\"relative space-y-2\"\n drag\n dragControls={controls}\n dragListener={false}\n layoutScroll\n onReorder={props.setGroups}\n values={props.groups}\n >\n {props.groups.map((item) => (\n <Item\n key={item.groupId}\n item={item}\n onPointerDown={(e) => {\n controls.start(e);\n props.setGroups([...props.groups]);\n }}\n />\n ))}\n </Reorder.Group>\n </LayoutGroup>\n </section>\n ) : null}\n </Dropdown>\n </Fragment>\n );\n};\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAM,oBAAoB,IAAI,IAAI;CAChC,CACE,QACgB,kBAAE,cAAc,EAAE,UAAU,MAAsB,kBAAE,cAAc,QAAQ,EAAE,GAAG,8QAA8Q,CAAC,CAAC,CACjX;CACA,CACE,WACgB,kBAAE,cAAc,EAAE,UAAU,MAAsB,kBAAE,cAClE,QACA;EACE,GAAG;EACH,SAAS;CACX,CACF,GAAmB,kBAAE,cAAc,QAAQ,EAAE,GAAG,8QAA8Q,CAAC,CAAC,CAClU;CACA,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,WAAU;eACZ,kBAAC,GAAD;MAAW,MAAM;MAAI,eAAY;KAAQ,CAAA;IACvC,CAAA;GACF,CAAA,CACP;MACJ,EAAM,OAAO,SAAS,IACnB,kBAAC,WAAD;GAAS,WAAU;aAAnB,CACI,kBAAC,UAAD,EAAA,UACI,kBAAC,MAAD;IAAI,WAAU;cAAkC,EAAa;GAAyB,CAAA,EAClF,CAAA,GACR,kBAAC,GAAD,EAAA,UACI,kBAAC,GAAD;IACI,MAAK;IACL,WAAU;IACV,MAAA;IACA,cAAc;IACd,cAAc;IACd,cAAA;IACA,WAAW,EAAM;IACjB,QAAQ,EAAM;cAEb,EAAM,OAAO,KAAK,MACf,kBAAC,GAAD;KAEU;KACN,gBAAgB,MAAM;MAElB,AADA,EAAS,MAAM,CAAC,GAChB,EAAM,UAAU,CAAC,GAAG,EAAM,MAAM,CAAC;KACrC;IACH,GANQ,EAAK,OAMb,CACJ;GACU,CAAA,EACN,CAAA,CACR;OACT,IACE;IACJ,CAAA;AAElB"}
|
|
@@ -26,6 +26,10 @@ export declare const useTranslations: () => {
|
|
|
26
26
|
pageCalendarEventAt: (title: string, time: string) => string;
|
|
27
27
|
commandPaletteEmpty: string;
|
|
28
28
|
commandPaletteLoading: string;
|
|
29
|
+
commandPaletteResults: string;
|
|
30
|
+
commandPaletteSearchLabel: string;
|
|
31
|
+
commandPaletteSearchPlaceholder: string;
|
|
32
|
+
commandPaletteTitle: string;
|
|
29
33
|
datePickerCalendarButtonLabel: string;
|
|
30
34
|
emptyDataMessage: string;
|
|
31
35
|
inputCaretDown: string;
|
|
@@ -56,8 +60,12 @@ export declare const useTranslations: () => {
|
|
|
56
60
|
tableFilterTypeStartsWith: string;
|
|
57
61
|
tableFilterValuePlaceholder: string;
|
|
58
62
|
tableFilterValueTitle: string;
|
|
63
|
+
tableFilterDeleteLabel: (label: string) => string;
|
|
59
64
|
tableGroupLabel: string;
|
|
60
65
|
tableGroupLabelWithCount: string;
|
|
66
|
+
tableGroupOrderTitle: string;
|
|
67
|
+
tableGroupPlaceholder: string;
|
|
68
|
+
tableGroupTypeTitle: string;
|
|
61
69
|
tablePaginationFooter: (pagination: {
|
|
62
70
|
pages: number;
|
|
63
71
|
totalItems: number;
|
|
@@ -83,10 +91,20 @@ export declare const useTranslations: () => {
|
|
|
83
91
|
n: number;
|
|
84
92
|
}) => string;
|
|
85
93
|
uploadDialogTitle: string;
|
|
94
|
+
fileUploadRemoveFile: (name: string) => string;
|
|
95
|
+
fileUploadUploadButtonLabel: (label: string) => string;
|
|
96
|
+
fileUploadViewFile: (name: string) => string;
|
|
97
|
+
dialogResizeLabel: string;
|
|
98
|
+
dialogResizeInstructions: string;
|
|
99
|
+
modalConfirmCancel: string;
|
|
100
|
+
modalConfirmConfirm: string;
|
|
101
|
+
modalConfirmTitle: string;
|
|
86
102
|
datepickerPlaceholder: (_: string) => string;
|
|
87
103
|
spinnerLoading: string;
|
|
88
104
|
skeletonLoading: string;
|
|
89
105
|
closeButton: string;
|
|
90
106
|
fileUploadZoneLabel: string;
|
|
107
|
+
listCloseDetails: string;
|
|
108
|
+
listOpenDetails: (title: string) => string;
|
|
91
109
|
};
|
|
92
110
|
//# sourceMappingURL=use-translations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"use-translations.d.ts","sourceRoot":"","sources":["../../src/hooks/use-translations.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKwmF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADpoF,CAAC"}
|