@alfadocs/ui-kit 1.142.0 → 1.143.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.
- package/dist/_chunks/{ai-permission-notice-C-xR2_iS.js → ai-permission-notice-CEDEWE2-.js} +19 -11
- package/dist/_chunks/{ai-summary-panel-BhCo2vZF.js → ai-summary-panel-CJVOjr2I.js} +3 -3
- package/dist/_chunks/{alia-sidebar-uxTsUbIt.js → alia-sidebar-AKz42_XE.js} +2 -2
- package/dist/_chunks/{anamnesis-card-sUFT0dpF.js → anamnesis-card-W8ZaDytS.js} +15 -14
- package/dist/_chunks/{anamnesis-summary-rows-C2Ca9_Qj.js → anamnesis-summary-rows-wUl7oXBO.js} +2 -2
- package/dist/_chunks/{appointment-card-C0UFYFLZ.js → appointment-card-HOZrABrQ.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BUXwhill.js → appointment-details-panel.history-B8R8XfGe.js} +36 -29
- package/dist/_chunks/appointment-timeline-CMc_3C74.js +776 -0
- package/dist/_chunks/{appointment-tray-dfgScPcC.js → appointment-tray-D8k5YKLU.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-CXi6moSa.js → balance-badge-cell-10BdaOQ8.js} +4 -4
- package/dist/_chunks/{calendar-appointment-editor-dialog-BDc8Q4Ji.js → calendar-appointment-editor-dialog-9kVppi9f.js} +8 -8
- package/dist/_chunks/{calendar-waiting-list-panel-js-0KEh8.js → calendar-waiting-list-panel-CSFJw5np.js} +2 -2
- package/dist/_chunks/{calendar.sheets-sBWH7Jxn.js → calendar.sheets-DZh3p8HE.js} +4 -4
- package/dist/_chunks/{care-plan-card-TZH6C60K.js → care-plan-card-CkRqA58O.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CufvXAWa.js → care-plan-entry-card-DurPuYAP.js} +2 -2
- package/dist/_chunks/{care-plan-header-CeFXUDnL.js → care-plan-header-C4i93i8H.js} +2 -2
- package/dist/_chunks/{chat-message-B4TMeZ2m.js → chat-message-IG9uRq6y.js} +2 -2
- package/dist/_chunks/{clinical-note-card-D--IwbZa.js → clinical-note-card-D-9xmRpf.js} +68 -52
- package/dist/_chunks/{communications-panel-EP27FN7e.js → communications-panel-MgAuWYBy.js} +3 -3
- package/dist/_chunks/{control-room-rail-7SidoPJH.js → control-room-rail-DBmNpbDE.js} +2 -2
- package/dist/_chunks/{data-table-Bq1FRBGB.js → data-table-Huk4CNHs.js} +115 -115
- package/dist/_chunks/{entity-summary-CPUHzyil.js → entity-summary-DgZSdp6d.js} +2 -2
- package/dist/_chunks/{file-manager-ChQSjfU8.js → file-manager-kdPsJq_k.js} +2 -2
- package/dist/_chunks/{heatmap-D0OGx-70.js → heatmap-Cb4JSpv_.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-ByOAy2Sb.js → link-cell-renderer-Bt_sl4iP.js} +3 -3
- package/dist/_chunks/{message-card-Bw_q1qKx.js → message-card-DvBjcZgH.js} +10 -9
- package/dist/_chunks/{message-tray-g6dp_AAt.js → message-tray-BHaE254g.js} +2 -2
- package/dist/_chunks/{notes-panel-CtMLUJOe.js → notes-panel-DCKbuZqS.js} +399 -397
- package/dist/_chunks/{notification-card-DRMv2_pW.js → notification-card-CDuzAytQ.js} +11 -10
- package/dist/_chunks/{notification-tray-DqCYs9Bw.js → notification-tray-CnPV8jDA.js} +2 -2
- package/dist/_chunks/{patient-account-settings-e8Wp2g-F.js → patient-account-settings-BQ9bMsJS.js} +2 -2
- package/dist/_chunks/{patient-check-in-resume-_nwf9gpx.js → patient-check-in-resume-v5lYhMsh.js} +4 -4
- package/dist/_chunks/{portal-details-D9oF6FUV.js → portal-details-CwX3VNxh.js} +2 -2
- package/dist/_chunks/{portal-documents-DSiLSave.js → portal-documents-BWdXhWpZ.js} +2 -2
- package/dist/_chunks/{portal-parts-8qrUM-uK.js → portal-parts-DbCMuZVl.js} +2 -2
- package/dist/_chunks/{prescription-history-DFcPXYdF.js → prescription-history-DPjqflwJ.js} +2 -2
- package/dist/_chunks/{product-hub-panel-BPpmVDm5.js → product-hub-panel-DiWjSIR2.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-iglUBIF3.js → recaptcha-widget-D6RwGg8B.js} +35 -35
- package/dist/_chunks/{registration-form-DRGMzq9V.js → registration-form-BEsIjznv.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CQ54ybTB.js → rich-text-editor-DoCaj0qc.js} +2 -2
- package/dist/_chunks/{sync-tray-BTmveFGE.js → sync-tray-BgrO4QjH.js} +55 -53
- package/dist/_chunks/{tasks-panel-Dmp49cBo.js → tasks-panel-CDFHAHrN.js} +137 -137
- package/dist/_chunks/{timeline-DXko0M1t.js → timeline-BzGi_3GQ.js} +2 -2
- package/dist/_chunks/timestamp-UMF1llBs.js +113 -0
- package/dist/_chunks/{tool-rail-CKOuVHUQ.js → tool-rail-mWmYNRCV.js} +56 -56
- package/dist/_chunks/{use-appointment-details-read-DIRHedaM.js → use-appointment-details-read-xj0PyEhI.js} +591 -576
- package/dist/_chunks/use-resolved-theme-B0f1_oyq.js +32 -0
- package/dist/_chunks/{voice-control-panel-CfBUrzhJ.js → voice-control-panel-DqvvZN2A.js} +2 -2
- package/dist/_chunks/{workflow-map-CsfRHhlz.js → workflow-map-CwfLHuiD.js} +2 -2
- package/dist/agent-catalog.json +10 -7
- package/dist/agent-i18n/en.json +3 -3
- package/dist/appointment-editor-panel/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +5 -0
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +27 -0
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +2 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sync-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/timestamp/timestamp.d.ts +6 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +58 -56
- package/dist/hooks/use-resolved-theme.d.ts +20 -0
- package/dist/i18n/locales/ar.d.ts +5 -0
- package/dist/i18n/locales/ar.js +5 -0
- package/dist/i18n/locales/de.d.ts +5 -0
- package/dist/i18n/locales/de.js +5 -0
- package/dist/i18n/locales/el.d.ts +5 -0
- package/dist/i18n/locales/el.js +5 -0
- package/dist/i18n/locales/en.d.ts +5 -0
- package/dist/i18n/locales/en.js +5 -0
- package/dist/i18n/locales/es.d.ts +5 -0
- package/dist/i18n/locales/es.js +5 -0
- package/dist/i18n/locales/fr.d.ts +5 -0
- package/dist/i18n/locales/fr.js +5 -0
- package/dist/i18n/locales/hi.d.ts +5 -0
- package/dist/i18n/locales/hi.js +5 -0
- package/dist/i18n/locales/it.d.ts +5 -0
- package/dist/i18n/locales/it.js +5 -0
- package/dist/i18n/locales/ja.d.ts +5 -0
- package/dist/i18n/locales/ja.js +5 -0
- package/dist/i18n/locales/nl.d.ts +5 -0
- package/dist/i18n/locales/nl.js +5 -0
- package/dist/i18n/locales/pl.d.ts +5 -0
- package/dist/i18n/locales/pl.js +5 -0
- package/dist/i18n/locales/pt.d.ts +5 -0
- package/dist/i18n/locales/pt.js +5 -0
- package/dist/i18n/locales/ro.d.ts +5 -0
- package/dist/i18n/locales/ro.js +5 -0
- package/dist/i18n/locales/ru.d.ts +5 -0
- package/dist/i18n/locales/ru.js +5 -0
- package/dist/i18n/locales/sq.d.ts +5 -0
- package/dist/i18n/locales/sq.js +5 -0
- package/dist/i18n/locales/sv.d.ts +5 -0
- package/dist/i18n/locales/sv.js +5 -0
- package/dist/i18n/locales/tr.d.ts +5 -0
- package/dist/i18n/locales/tr.js +5 -0
- package/dist/i18n/locales/zh.d.ts +5 -0
- package/dist/i18n/locales/zh.js +5 -0
- package/dist/index.js +44 -44
- package/dist/locales/ar.json +5 -0
- package/dist/locales/de.json +5 -0
- package/dist/locales/el.json +5 -0
- package/dist/locales/en.json +5 -0
- package/dist/locales/es.json +5 -0
- package/dist/locales/fr.json +5 -0
- package/dist/locales/hi.json +5 -0
- package/dist/locales/it.json +5 -0
- package/dist/locales/ja.json +5 -0
- package/dist/locales/nl.json +5 -0
- package/dist/locales/pl.json +5 -0
- package/dist/locales/pt.json +5 -0
- package/dist/locales/ro.json +5 -0
- package/dist/locales/ru.json +5 -0
- package/dist/locales/sq.json +5 -0
- package/dist/locales/sv.json +5 -0
- package/dist/locales/tr.json +5 -0
- package/dist/locales/zh.json +5 -0
- package/dist/online-bookings-panel/index.js +1 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +2 -2
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/waiting-list-panel/index.js +2 -2
- package/package.json +1 -1
- package/dist/_chunks/appointment-timeline-BK68CCBl.js +0 -689
- package/dist/_chunks/timestamp-DPLDWdxA.js +0 -109
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as c, jsxs as b, Fragment as we } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Ms, useId as Rt, useMemo as z, useState as R, useCallback as Me, useRef as v, useEffect as G, useImperativeHandle as Is } from "react";
|
|
3
3
|
import { c as Hs } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
4
|
+
import { useTranslation as $s } from "react-i18next";
|
|
5
5
|
import { A as Ie } from "./alert-C4WKViaS.js";
|
|
6
|
-
import { B as
|
|
6
|
+
import { B as qs } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as Pe } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { I as He } from "./icon-button-S8_weU3g.js";
|
|
9
9
|
import { B as Et } from "./button-group-DoKG16Fy.js";
|
|
10
|
-
import { P as
|
|
10
|
+
import { P as Ws } from "./panel-header-CbtlTe85.js";
|
|
11
11
|
import { S as Ot } from "./select-Bw5FvGJ7.js";
|
|
12
12
|
import { S as Ks } from "./switch-DO6uC4HJ.js";
|
|
13
13
|
import { S as Vs } from "./skeleton-tTWJpvAq.js";
|
|
14
|
-
import { E as
|
|
14
|
+
import { E as $e } from "./empty-state-DwJ5YNzz.js";
|
|
15
15
|
import { T as Cs } from "./task-card-BNbkwIYM.js";
|
|
16
16
|
import { V as Gs } from "./visually-hidden-BHxEUGyT.js";
|
|
17
17
|
import { u as Us } from "./use-check-animation--I3cS00X.js";
|
|
18
18
|
import { a as Ys, u as Dt, R as At } from "./use-list-reflow-C7O4Uqnl.js";
|
|
19
|
-
import { u as Fs } from "./use-theme-
|
|
20
|
-
import { u as
|
|
19
|
+
import { u as Fs } from "./use-resolved-theme-B0f1_oyq.js";
|
|
20
|
+
import { u as qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
21
21
|
import { u as Qs } from "./registry-DvAUVLHh.js";
|
|
22
22
|
import { P as Xs } from "./plus-DzMQ_c6b.js";
|
|
23
23
|
import { C as Js } from "./clipboard-check-BeAGxDVT.js";
|
|
@@ -215,7 +215,7 @@ const an = [
|
|
|
215
215
|
assignee: null,
|
|
216
216
|
overdueOnly: !1
|
|
217
217
|
}, Nt = /* @__PURE__ */ new Map(), jt = /* @__PURE__ */ new Set();
|
|
218
|
-
function
|
|
218
|
+
function We(a) {
|
|
219
219
|
return a.map((o) => `${o.id}:${o.status ?? "open"}`).join("|");
|
|
220
220
|
}
|
|
221
221
|
function un(a, o) {
|
|
@@ -250,7 +250,7 @@ const vn = Hs(
|
|
|
250
250
|
variants: { size: { xs: "", sm: "", md: "" } },
|
|
251
251
|
defaultVariants: { size: "sm" }
|
|
252
252
|
}
|
|
253
|
-
),
|
|
253
|
+
), gn = [
|
|
254
254
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
255
255
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
256
256
|
"ds:px-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
|
|
@@ -263,7 +263,7 @@ const vn = Hs(
|
|
|
263
263
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
264
264
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
|
|
265
265
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
266
|
-
].join(" "),
|
|
266
|
+
].join(" "), hn = [
|
|
267
267
|
"ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]",
|
|
268
268
|
// Declared at rest, not only while leaving: a transition added at the
|
|
269
269
|
// same moment as the value it animates has nothing to move from.
|
|
@@ -273,8 +273,8 @@ const vn = Hs(
|
|
|
273
273
|
function kn({
|
|
274
274
|
item: a,
|
|
275
275
|
checked: o,
|
|
276
|
-
pending:
|
|
277
|
-
label:
|
|
276
|
+
pending: g,
|
|
277
|
+
label: h,
|
|
278
278
|
reduceMotion: k,
|
|
279
279
|
onToggle: u
|
|
280
280
|
}) {
|
|
@@ -287,7 +287,7 @@ function kn({
|
|
|
287
287
|
reduceMotion: k
|
|
288
288
|
}), D = v({ shown: f, checked: o, toggle: E });
|
|
289
289
|
D.current = { shown: f, checked: o, toggle: E };
|
|
290
|
-
const
|
|
290
|
+
const oe = f ? (
|
|
291
291
|
// `--accent` is magenta-700 in light, the step that clears AA there.
|
|
292
292
|
"ds:text-[color:var(--accent)]"
|
|
293
293
|
) : a.priority === "high" ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]";
|
|
@@ -297,12 +297,12 @@ function kn({
|
|
|
297
297
|
type: "button",
|
|
298
298
|
role: "checkbox",
|
|
299
299
|
"aria-checked": f,
|
|
300
|
-
"aria-label":
|
|
301
|
-
"aria-disabled":
|
|
300
|
+
"aria-label": h,
|
|
301
|
+
"aria-disabled": g || void 0,
|
|
302
302
|
"data-action": "toggle-done",
|
|
303
303
|
"data-drawing": y ? "" : void 0,
|
|
304
304
|
onClick: () => {
|
|
305
|
-
if (
|
|
305
|
+
if (g) return;
|
|
306
306
|
const N = !f, U = u(a, N);
|
|
307
307
|
U.started && (E(), U.result.catch(() => {
|
|
308
308
|
const S = D.current;
|
|
@@ -317,7 +317,7 @@ function kn({
|
|
|
317
317
|
"ds:[min-block-size:var(--accessible-target-floor,auto)] ds:[min-inline-size:var(--accessible-target-floor,auto)]",
|
|
318
318
|
"ds:hover:bg-[color:var(--muted)]/40 ds:aria-disabled:cursor-progress",
|
|
319
319
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-[color:var(--ring)] ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
320
|
-
|
|
320
|
+
oe
|
|
321
321
|
].join(" "),
|
|
322
322
|
children: /* @__PURE__ */ b(
|
|
323
323
|
"svg",
|
|
@@ -368,35 +368,35 @@ function Pn(a) {
|
|
|
368
368
|
return new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
369
369
|
}
|
|
370
370
|
function Bt(a) {
|
|
371
|
-
const o = Pn(a),
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
|
|
371
|
+
const o = Pn(a), g = new Date(o);
|
|
372
|
+
g.setDate(o.getDate() + 1);
|
|
373
|
+
const h = new Date(o);
|
|
374
|
+
h.setDate(o.getDate() + 2);
|
|
375
375
|
const k = (o.getDay() + 6) % 7, u = new Date(o);
|
|
376
376
|
return u.setDate(o.getDate() + (7 - k)), {
|
|
377
377
|
startOfToday: +o,
|
|
378
|
-
startOfTomorrow: +
|
|
379
|
-
startOfDayAfter: +
|
|
378
|
+
startOfTomorrow: +g,
|
|
379
|
+
startOfDayAfter: +h,
|
|
380
380
|
startOfNextWeek: +u
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
function xn(a, o,
|
|
383
|
+
function xn(a, o, g) {
|
|
384
384
|
if (o) return "done";
|
|
385
|
-
const { startOfToday:
|
|
386
|
-
return y <
|
|
385
|
+
const { startOfToday: h, startOfTomorrow: k, startOfDayAfter: u, startOfNextWeek: f } = Bt(g), y = +new Date(a.dueIso);
|
|
386
|
+
return y < h ? "overdue" : y < k ? "today" : y < u ? "tomorrow" : y < f ? "thisWeek" : "later";
|
|
387
387
|
}
|
|
388
388
|
function Sn(a, o) {
|
|
389
389
|
return a.status === "done" ? !1 : +new Date(a.dueIso) < Bt(o).startOfTomorrow;
|
|
390
390
|
}
|
|
391
|
-
function Tn(a, o,
|
|
392
|
-
const
|
|
391
|
+
function Tn(a, o, g) {
|
|
392
|
+
const h = /* @__PURE__ */ new Map();
|
|
393
393
|
for (const u of a) {
|
|
394
|
-
const f = xn(u,
|
|
395
|
-
y ? y.push(u) :
|
|
394
|
+
const f = xn(u, g(u), o), y = h.get(f);
|
|
395
|
+
y ? y.push(u) : h.set(f, [u]);
|
|
396
396
|
}
|
|
397
397
|
const k = [];
|
|
398
398
|
for (const u of wn) {
|
|
399
|
-
const f =
|
|
399
|
+
const f = h.get(u);
|
|
400
400
|
!f || f.length === 0 || (f.sort((y, E) => +new Date(y.dueIso) - +new Date(E.dueIso)), k.push({ key: u, items: f }));
|
|
401
401
|
}
|
|
402
402
|
return k;
|
|
@@ -405,15 +405,15 @@ const Rn = Ms(
|
|
|
405
405
|
({
|
|
406
406
|
id: a,
|
|
407
407
|
items: o,
|
|
408
|
-
nowIso:
|
|
409
|
-
title:
|
|
408
|
+
nowIso: g,
|
|
409
|
+
title: h,
|
|
410
410
|
icon: k,
|
|
411
411
|
totalCount: u,
|
|
412
412
|
size: f = "sm",
|
|
413
413
|
filtering: y = "client",
|
|
414
414
|
onOpenTask: E,
|
|
415
415
|
onToggleDone: D,
|
|
416
|
-
onEditTask:
|
|
416
|
+
onEditTask: oe,
|
|
417
417
|
onDismissTask: N,
|
|
418
418
|
onAddTask: U,
|
|
419
419
|
readOnly: S = !1,
|
|
@@ -421,41 +421,41 @@ const Rn = Ms(
|
|
|
421
421
|
renderItemExtraActions: Te,
|
|
422
422
|
scope: Re,
|
|
423
423
|
defaultScope: Lt,
|
|
424
|
-
onScopeChange:
|
|
424
|
+
onScopeChange: ae,
|
|
425
425
|
availableScopes: B,
|
|
426
426
|
onLoadMore: H,
|
|
427
427
|
hasMore: Ee,
|
|
428
428
|
loadingMore: Y = !1,
|
|
429
429
|
loading: w = !1,
|
|
430
430
|
error: P = !1,
|
|
431
|
-
onRetry:
|
|
431
|
+
onRetry: ie,
|
|
432
432
|
showFilters: Mt = !0,
|
|
433
433
|
defaultFilters: It,
|
|
434
434
|
onFiltersChange: L,
|
|
435
435
|
statusFilter: Ve,
|
|
436
436
|
defaultStatusFilter: Ht,
|
|
437
|
-
onStatusFilterChange:
|
|
438
|
-
typeOptions:
|
|
437
|
+
onStatusFilterChange: ce,
|
|
438
|
+
typeOptions: de,
|
|
439
439
|
typeFilter: Oe,
|
|
440
|
-
onTypeFilterChange:
|
|
441
|
-
assigneeOptions:
|
|
440
|
+
onTypeFilterChange: le,
|
|
441
|
+
assigneeOptions: ue,
|
|
442
442
|
assigneeFilter: De,
|
|
443
|
-
onAssigneeFilterChange:
|
|
443
|
+
onAssigneeFilterChange: fe,
|
|
444
444
|
overdueOnly: Ce,
|
|
445
|
-
defaultOverdueOnly:
|
|
446
|
-
onOverdueOnlyChange:
|
|
447
|
-
emptyTitle:
|
|
448
|
-
emptyDescription:
|
|
445
|
+
defaultOverdueOnly: $t,
|
|
446
|
+
onOverdueOnlyChange: pe,
|
|
447
|
+
emptyTitle: qt,
|
|
448
|
+
emptyDescription: Wt,
|
|
449
449
|
emptyAction: Kt,
|
|
450
450
|
className: Vt,
|
|
451
451
|
"aria-label": Ge,
|
|
452
452
|
...Ct
|
|
453
453
|
}, Gt) => {
|
|
454
|
-
const { t: d, i18n: Ue } =
|
|
455
|
-
status: !p || !!L || !!
|
|
456
|
-
type: !p || !!L || !!
|
|
457
|
-
assignee: !p || !!L || !!
|
|
458
|
-
overdueOnly: !p || !!L || !!
|
|
454
|
+
const { t: d, i18n: Ue } = $s("ui"), Ye = Rt(), Ut = Rt(), Ne = h ?? d("tasksPanel.title"), p = y === "server", $ = {
|
|
455
|
+
status: !p || !!L || !!ce,
|
|
456
|
+
type: !p || !!L || !!le,
|
|
457
|
+
assignee: !p || !!L || !!fe,
|
|
458
|
+
overdueOnly: !p || !!L || !!pe
|
|
459
459
|
}, Yt = {
|
|
460
460
|
todo: d("tasksPanel.status.todo"),
|
|
461
461
|
done: d("tasksPanel.status.done"),
|
|
@@ -475,9 +475,9 @@ const Rn = Ms(
|
|
|
475
475
|
payment: d("tasksPanel.types.payment"),
|
|
476
476
|
collection: d("tasksPanel.types.collection"),
|
|
477
477
|
other: d("tasksPanel.types.other")
|
|
478
|
-
},
|
|
479
|
-
() =>
|
|
480
|
-
[
|
|
478
|
+
}, me = z(
|
|
479
|
+
() => g ? new Date(g) : /* @__PURE__ */ new Date(),
|
|
480
|
+
[g]
|
|
481
481
|
), Fe = z(
|
|
482
482
|
() => pn(Ue.language),
|
|
483
483
|
[Ue.language]
|
|
@@ -485,38 +485,38 @@ const Rn = Ms(
|
|
|
485
485
|
Lt ?? (B == null ? void 0 : B[0]) ?? "patient"
|
|
486
486
|
), es = Re ?? Jt, Xe = Me(
|
|
487
487
|
(e) => {
|
|
488
|
-
Re === void 0 && Zt(e),
|
|
488
|
+
Re === void 0 && Zt(e), ae == null || ae(e);
|
|
489
489
|
},
|
|
490
|
-
[Re,
|
|
490
|
+
[Re, ae]
|
|
491
491
|
), j = It ?? ln, [ts, ss] = R(
|
|
492
492
|
Ht ?? j.status
|
|
493
493
|
), [ns, rs] = R(j.type), [os, as] = R(
|
|
494
494
|
j.assignee
|
|
495
495
|
), [is, cs] = R(
|
|
496
|
-
|
|
497
|
-
), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os,
|
|
496
|
+
$t ?? j.overdueOnly
|
|
497
|
+
), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os, q = Ce ?? is, Je = p ? q && O !== "done" : q, ve = v({
|
|
498
498
|
status: O,
|
|
499
499
|
type: M,
|
|
500
500
|
assignee: I,
|
|
501
|
-
overdueOnly:
|
|
501
|
+
overdueOnly: q
|
|
502
502
|
});
|
|
503
|
-
|
|
503
|
+
ve.current = {
|
|
504
504
|
status: O,
|
|
505
505
|
type: M,
|
|
506
506
|
assignee: I,
|
|
507
|
-
overdueOnly:
|
|
507
|
+
overdueOnly: q
|
|
508
508
|
};
|
|
509
|
-
const
|
|
509
|
+
const W = (e) => {
|
|
510
510
|
const t = Object.fromEntries(
|
|
511
511
|
Object.entries(e).filter(
|
|
512
|
-
([l]) =>
|
|
512
|
+
([l]) => $[l]
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
515
|
if (Object.keys(e).length > 0 && Object.keys(t).length === 0)
|
|
516
516
|
return;
|
|
517
|
-
const s =
|
|
518
|
-
r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = j.status === "done" ? "todo" : j.status, i.add("status"))),
|
|
519
|
-
}, ds = () =>
|
|
517
|
+
const s = ve.current, r = p && s.status === "done" && s.overdueOnly ? { ...s, overdueOnly: !1 } : s, n = { ...r, ...t }, i = new Set(Object.keys(t));
|
|
518
|
+
r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status = j.status === "done" ? "todo" : j.status, i.add("status"))), ve.current = n, Ve === void 0 && ss(n.status), Oe === void 0 && rs(n.type), De === void 0 && as(n.assignee), Ce === void 0 && cs(n.overdueOnly), i.has("status") && (ce == null || ce(n.status)), i.has("type") && (le == null || le(n.type)), i.has("assignee") && (fe == null || fe(n.assignee)), i.has("overdueOnly") && (pe == null || pe(n.overdueOnly)), un(s, n) || L == null || L(n);
|
|
519
|
+
}, ds = () => W({ ...j }), [F, ls] = R(Nt), T = v(Nt), [Ze, us] = R(jt), Q = v(jt), X = v(!0), je = v(/* @__PURE__ */ new Set());
|
|
520
520
|
G(() => {
|
|
521
521
|
X.current = !0;
|
|
522
522
|
const e = je.current;
|
|
@@ -534,7 +534,7 @@ const Rn = Ms(
|
|
|
534
534
|
e(t), Q.current = t, us(t);
|
|
535
535
|
}, K = z(() => p ? o.filter((e) => !Ze.has(e.id)) : o.filter((e) => {
|
|
536
536
|
const t = e.status === "done";
|
|
537
|
-
return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I ||
|
|
537
|
+
return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I || q && !Sn(e, me));
|
|
538
538
|
}), [
|
|
539
539
|
p,
|
|
540
540
|
Ze,
|
|
@@ -542,27 +542,27 @@ const Rn = Ms(
|
|
|
542
542
|
O,
|
|
543
543
|
M,
|
|
544
544
|
I,
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
]),
|
|
545
|
+
q,
|
|
546
|
+
me
|
|
547
|
+
]), ge = z(() => Tn(K, me, (t) => {
|
|
548
548
|
if (p) {
|
|
549
549
|
const s = F.get(t.id);
|
|
550
550
|
if ((s == null ? void 0 : s.kind) === "done" && s.next !== void 0 && !s.leaves)
|
|
551
551
|
return s.next;
|
|
552
552
|
}
|
|
553
553
|
return t.status === "done";
|
|
554
|
-
}), [K,
|
|
555
|
-
() =>
|
|
556
|
-
[
|
|
554
|
+
}), [K, me, p, F]), _e = z(
|
|
555
|
+
() => ge.flatMap((e) => e.items.map((t) => t.id)),
|
|
556
|
+
[ge]
|
|
557
557
|
), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z = Me(() => {
|
|
558
558
|
const e = J.current;
|
|
559
559
|
if (!e) return;
|
|
560
560
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
561
561
|
ps(t > 1), vs(t + r < s - 1);
|
|
562
562
|
}, []);
|
|
563
|
-
|
|
563
|
+
qe(() => {
|
|
564
564
|
Z();
|
|
565
|
-
}, [
|
|
565
|
+
}, [ge, Z]), qe(() => {
|
|
566
566
|
const e = J.current;
|
|
567
567
|
if (!e || typeof ResizeObserver > "u") return;
|
|
568
568
|
const t = new ResizeObserver(Z);
|
|
@@ -570,7 +570,7 @@ const Rn = Ms(
|
|
|
570
570
|
}, [Z]);
|
|
571
571
|
const tt = p ? Ee === !0 : Ee ?? !!H, _ = v(o);
|
|
572
572
|
_.current = o;
|
|
573
|
-
const
|
|
573
|
+
const gs = z(() => We(o), [o]), he = z(
|
|
574
574
|
() => o.map((e) => e.id).join("|"),
|
|
575
575
|
[o]
|
|
576
576
|
), st = v(he);
|
|
@@ -579,28 +579,28 @@ const Rn = Ms(
|
|
|
579
579
|
G(() => {
|
|
580
580
|
nt.current && !w && !P && (ee.current += 1), nt.current = w;
|
|
581
581
|
}, [w, P]);
|
|
582
|
-
const
|
|
583
|
-
|
|
582
|
+
const ye = v(!0), rt = v(""), ot = v(0), ze = () => {
|
|
583
|
+
ye.current = !1, rt.current = st.current, ot.current = ee.current, H == null || H();
|
|
584
584
|
};
|
|
585
585
|
G(() => {
|
|
586
|
-
|
|
586
|
+
ye.current || (he !== rt.current || ee.current > ot.current) && (ye.current = !0);
|
|
587
587
|
}, [he, w, P]);
|
|
588
|
-
const
|
|
588
|
+
const hs = () => {
|
|
589
589
|
Z();
|
|
590
590
|
const e = J.current;
|
|
591
591
|
if (!e) return;
|
|
592
592
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
593
|
-
H && tt && !w && !Y &&
|
|
594
|
-
}, {
|
|
593
|
+
H && tt && !w && !Y && ye.current && s - t - r <= dn && ze();
|
|
594
|
+
}, te = v(null), { isAccessible: ys } = Fs(te), ke = ys || void 0, { containerRef: ks } = Ys({
|
|
595
595
|
key: _e.join(),
|
|
596
|
-
reduceMotion:
|
|
597
|
-
}),
|
|
598
|
-
const { status: t, overdueOnly: s } =
|
|
596
|
+
reduceMotion: ke
|
|
597
|
+
}), se = Dt({ delayMs: 200, reduceMotion: ke }), ne = Dt({ reduceMotion: ke }), Be = (e) => se.isLeaving(e) || ne.isLeaving(e), bs = (e) => {
|
|
598
|
+
const { status: t, overdueOnly: s } = ve.current;
|
|
599
599
|
return t === "todo" && e || t === "done" && !e || (p ? s && t !== "done" : s) && e;
|
|
600
600
|
}, at = (e) => {
|
|
601
|
-
T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)),
|
|
601
|
+
T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)), se.cancel(e), ne.cancel(e);
|
|
602
602
|
}, it = () => {
|
|
603
|
-
const e = _.current, t =
|
|
603
|
+
const e = _.current, t = We(e), s = new Map(e.map((i) => [i.id, i])), r = [], n = [];
|
|
604
604
|
T.current.forEach((i, l) => {
|
|
605
605
|
const m = s.get(l);
|
|
606
606
|
if (!m) {
|
|
@@ -611,7 +611,7 @@ const Rn = Ms(
|
|
|
611
611
|
const Bs = i.kind === "done" && m.status === "done" === i.next, Ls = ee.current > i.edgeAtSettle || t !== i.sigAtSettle;
|
|
612
612
|
(Bs || Ls) && (r.push(l), n.push(l));
|
|
613
613
|
}), r.length !== 0 && (A((i) => r.forEach((l) => i.delete(l))), r.some((i) => Q.current.has(i)) && Ae((i) => r.forEach((l) => i.delete(l))), n.forEach((i) => {
|
|
614
|
-
|
|
614
|
+
se.cancel(i), ne.cancel(i);
|
|
615
615
|
}));
|
|
616
616
|
}, ws = (e) => {
|
|
617
617
|
const t = T.current.get(e);
|
|
@@ -620,13 +620,13 @@ const Rn = Ms(
|
|
|
620
620
|
...t,
|
|
621
621
|
settled: !0,
|
|
622
622
|
edgeAtSettle: ee.current,
|
|
623
|
-
sigAtSettle:
|
|
623
|
+
sigAtSettle: We(_.current)
|
|
624
624
|
})
|
|
625
625
|
), it());
|
|
626
626
|
};
|
|
627
627
|
G(() => {
|
|
628
628
|
p && it();
|
|
629
|
-
}, [p,
|
|
629
|
+
}, [p, gs, w, P]);
|
|
630
630
|
const ct = (e, t, s, r) => {
|
|
631
631
|
const n = e.id;
|
|
632
632
|
A((m) => m.set(n, t));
|
|
@@ -651,7 +651,7 @@ const Rn = Ms(
|
|
|
651
651
|
}, V = (e) => ({
|
|
652
652
|
started: !1,
|
|
653
653
|
result: xe(new Error(`TasksPanel: ${e}`))
|
|
654
|
-
}),
|
|
654
|
+
}), re = (e) => {
|
|
655
655
|
X.current && T.current.has(e) && A((t) => t.delete(e));
|
|
656
656
|
}, dt = (e, t, s) => {
|
|
657
657
|
let r, n;
|
|
@@ -665,15 +665,15 @@ const Rn = Ms(
|
|
|
665
665
|
try {
|
|
666
666
|
l = s();
|
|
667
667
|
} catch (m) {
|
|
668
|
-
|
|
668
|
+
re(e), n(m);
|
|
669
669
|
return;
|
|
670
670
|
}
|
|
671
671
|
Promise.resolve(l).then(
|
|
672
672
|
() => {
|
|
673
|
-
|
|
673
|
+
re(e), r();
|
|
674
674
|
},
|
|
675
675
|
(m) => {
|
|
676
|
-
|
|
676
|
+
re(e), n(m);
|
|
677
677
|
}
|
|
678
678
|
);
|
|
679
679
|
}), i;
|
|
@@ -696,7 +696,7 @@ const Rn = Ms(
|
|
|
696
696
|
sigAtSettle: ""
|
|
697
697
|
},
|
|
698
698
|
() => D(e, r),
|
|
699
|
-
|
|
699
|
+
se
|
|
700
700
|
);
|
|
701
701
|
if (!n) {
|
|
702
702
|
let i;
|
|
@@ -714,8 +714,8 @@ const Rn = Ms(
|
|
|
714
714
|
sigAtSettle: ""
|
|
715
715
|
})
|
|
716
716
|
), i.then(
|
|
717
|
-
() =>
|
|
718
|
-
() =>
|
|
717
|
+
() => re(s),
|
|
718
|
+
() => re(s)
|
|
719
719
|
)), { started: !0, result: mn(i) };
|
|
720
720
|
}
|
|
721
721
|
return A(
|
|
@@ -729,7 +729,7 @@ const Rn = Ms(
|
|
|
729
729
|
})
|
|
730
730
|
), {
|
|
731
731
|
started: !0,
|
|
732
|
-
result: dt(s,
|
|
732
|
+
result: dt(s, se, () => D(e, r))
|
|
733
733
|
};
|
|
734
734
|
}, ut = (e) => {
|
|
735
735
|
if (S) return V("the panel is read-only.");
|
|
@@ -748,10 +748,10 @@ const Rn = Ms(
|
|
|
748
748
|
e,
|
|
749
749
|
s,
|
|
750
750
|
() => N(e),
|
|
751
|
-
|
|
751
|
+
ne
|
|
752
752
|
) : (A((r) => r.set(t, s)), {
|
|
753
753
|
started: !0,
|
|
754
|
-
result: dt(t,
|
|
754
|
+
result: dt(t, ne, () => N(e))
|
|
755
755
|
});
|
|
756
756
|
}, ft = Me(() => {
|
|
757
757
|
const e = J.current, t = et.current;
|
|
@@ -761,11 +761,11 @@ const Rn = Ms(
|
|
|
761
761
|
}
|
|
762
762
|
const s = t.getBoundingClientRect().top - e.getBoundingClientRect().top;
|
|
763
763
|
e.scrollTo({ top: e.scrollTop + s });
|
|
764
|
-
}, [])
|
|
765
|
-
Is(Gt, () =>
|
|
764
|
+
}, []);
|
|
765
|
+
Is(Gt, () => te.current, []);
|
|
766
766
|
const C = v(null), be = v(_e);
|
|
767
767
|
be.current = _e, G(() => {
|
|
768
|
-
const e =
|
|
768
|
+
const e = te.current;
|
|
769
769
|
if (!e) return;
|
|
770
770
|
const t = (r) => {
|
|
771
771
|
var l, m;
|
|
@@ -793,8 +793,8 @@ const Rn = Ms(
|
|
|
793
793
|
return e.addEventListener("focusin", t), e.addEventListener("focusout", s), () => {
|
|
794
794
|
e.removeEventListener("focusin", t), e.removeEventListener("focusout", s);
|
|
795
795
|
};
|
|
796
|
-
}, []),
|
|
797
|
-
const e = C.current, t =
|
|
796
|
+
}, []), qe(() => {
|
|
797
|
+
const e = C.current, t = te.current;
|
|
798
798
|
if (!e || !t) return;
|
|
799
799
|
if (e.el.isConnected) {
|
|
800
800
|
e.rowId && (e.index = be.current.indexOf(e.rowId));
|
|
@@ -817,7 +817,7 @@ const Rn = Ms(
|
|
|
817
817
|
onOpenTask: E,
|
|
818
818
|
loadMore: ze,
|
|
819
819
|
changeScope: Xe,
|
|
820
|
-
commitFilters:
|
|
820
|
+
commitFilters: W,
|
|
821
821
|
serverMode: p
|
|
822
822
|
};
|
|
823
823
|
const Ps = z(() => {
|
|
@@ -857,7 +857,7 @@ const Rn = Ms(
|
|
|
857
857
|
if (!e.type) return null;
|
|
858
858
|
const t = bn[e.type], s = (t == null ? void 0 : t.variant) ?? "neutral", r = (t == null ? void 0 : t.Icon) ?? _t, n = e.typeLabel || Xt[e.type] || d("tasksPanel.types.other");
|
|
859
859
|
return /* @__PURE__ */ c(
|
|
860
|
-
|
|
860
|
+
qs,
|
|
861
861
|
{
|
|
862
862
|
variant: s,
|
|
863
863
|
size: "sm",
|
|
@@ -866,7 +866,7 @@ const Rn = Ms(
|
|
|
866
866
|
}
|
|
867
867
|
);
|
|
868
868
|
}, Ss = (e) => S ? null : /* @__PURE__ */ b(we, { children: [
|
|
869
|
-
|
|
869
|
+
oe ? /* @__PURE__ */ c(
|
|
870
870
|
He,
|
|
871
871
|
{
|
|
872
872
|
icon: /* @__PURE__ */ c(Zs, {}),
|
|
@@ -874,7 +874,7 @@ const Rn = Ms(
|
|
|
874
874
|
size: "sm",
|
|
875
875
|
"aria-label": d("tasksPanel.edit"),
|
|
876
876
|
"data-action": "edit-task",
|
|
877
|
-
onClick: () =>
|
|
877
|
+
onClick: () => oe(e)
|
|
878
878
|
}
|
|
879
879
|
) : null,
|
|
880
880
|
N ? /* @__PURE__ */ c(
|
|
@@ -907,25 +907,25 @@ const Rn = Ms(
|
|
|
907
907
|
},
|
|
908
908
|
e
|
|
909
909
|
), vt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: typeof P == "boolean" ? /* @__PURE__ */ c(
|
|
910
|
-
|
|
910
|
+
$e,
|
|
911
911
|
{
|
|
912
912
|
variant: "error",
|
|
913
913
|
size: "sm",
|
|
914
914
|
title: d("tasksPanel.error.title"),
|
|
915
915
|
description: d("tasksPanel.error.description"),
|
|
916
|
-
primaryAction:
|
|
916
|
+
primaryAction: ie ? { label: d("emptyState.error.cta"), onClick: ie } : void 0
|
|
917
917
|
}
|
|
918
|
-
) : P }), Le = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3].map((e) => mt(`skeleton-${e}`)) }),
|
|
919
|
-
|
|
918
|
+
) : P }), Le = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [0, 1, 2, 3].map((e) => mt(`skeleton-${e}`)) }), gt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
919
|
+
$e,
|
|
920
920
|
{
|
|
921
921
|
variant: "first-use",
|
|
922
922
|
size: "sm",
|
|
923
|
-
title:
|
|
924
|
-
description:
|
|
923
|
+
title: qt ?? d("tasksPanel.empty.title"),
|
|
924
|
+
description: Wt ?? d("tasksPanel.empty.description"),
|
|
925
925
|
primaryAction: Kt
|
|
926
926
|
}
|
|
927
|
-
) }), Es = Object.values(
|
|
928
|
-
|
|
927
|
+
) }), Es = Object.values($).some(Boolean), ht = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
928
|
+
$e,
|
|
929
929
|
{
|
|
930
930
|
variant: "no-results",
|
|
931
931
|
size: "sm",
|
|
@@ -938,7 +938,7 @@ const Rn = Ms(
|
|
|
938
938
|
}
|
|
939
939
|
) }), Os = p && P ? /* @__PURE__ */ c("div", { className: "ds:shrink-0 ds:px-[var(--spacing-md)] ds:pt-[var(--spacing-xs)]", children: typeof P == "boolean" ? /* @__PURE__ */ b(Ie, { variant: "error", children: [
|
|
940
940
|
/* @__PURE__ */ c(Ie.Title, { as: "p", children: d("tasksPanel.error.title") }),
|
|
941
|
-
|
|
941
|
+
ie ? /* @__PURE__ */ c(Ie.Action, { children: /* @__PURE__ */ c(Pe, { intent: "outline", size: "sm", onClick: ie, children: d("emptyState.error.cta") }) }) : null
|
|
942
942
|
] }) : P }) : null, yt = /* @__PURE__ */ b(we, { children: [
|
|
943
943
|
Os,
|
|
944
944
|
/* @__PURE__ */ b(
|
|
@@ -948,18 +948,18 @@ const Rn = Ms(
|
|
|
948
948
|
J.current = e, ks.current = e;
|
|
949
949
|
},
|
|
950
950
|
tabIndex: 0,
|
|
951
|
-
onScroll:
|
|
951
|
+
onScroll: hs,
|
|
952
952
|
"data-tasks-panel-region": "",
|
|
953
953
|
"data-fade-top": fs ? "true" : void 0,
|
|
954
954
|
"data-fade-bottom": ms ? "true" : void 0,
|
|
955
|
-
className:
|
|
955
|
+
className: gn,
|
|
956
956
|
children: [
|
|
957
957
|
/* @__PURE__ */ c(
|
|
958
958
|
"ol",
|
|
959
959
|
{
|
|
960
960
|
"aria-busy": w || void 0,
|
|
961
961
|
className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-md)] ds:p-0",
|
|
962
|
-
children:
|
|
962
|
+
children: ge.map((e) => /* @__PURE__ */ b(
|
|
963
963
|
"li",
|
|
964
964
|
{
|
|
965
965
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
@@ -994,11 +994,11 @@ const Rn = Ms(
|
|
|
994
994
|
label: d("tasksPanel.doneItem", {
|
|
995
995
|
title: t.title
|
|
996
996
|
}),
|
|
997
|
-
reduceMotion:
|
|
997
|
+
reduceMotion: ke,
|
|
998
998
|
onToggle: Rs
|
|
999
999
|
}
|
|
1000
1000
|
) : void 0,
|
|
1001
|
-
className: `${
|
|
1001
|
+
className: `${hn} ${At}${Be(t.id) ? ` ${zt}` : ""}`,
|
|
1002
1002
|
"data-leaving": Be(t.id) ? "" : void 0,
|
|
1003
1003
|
"data-reflow-id": t.id,
|
|
1004
1004
|
"data-task-id": t.id
|
|
@@ -1041,8 +1041,8 @@ const Rn = Ms(
|
|
|
1041
1041
|
},
|
|
1042
1042
|
j
|
|
1043
1043
|
);
|
|
1044
|
-
P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ?
|
|
1045
|
-
} else P ? x = vt : w ? x = Le : o.length === 0 ? x =
|
|
1044
|
+
P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ? ht : gt : x = yt;
|
|
1045
|
+
} else P ? x = vt : w ? x = Le : o.length === 0 ? x = gt : K.length === 0 ? x = ht : x = yt;
|
|
1046
1046
|
const kt = x === Le, [Ds, Ns] = R(!1);
|
|
1047
1047
|
G(() => {
|
|
1048
1048
|
Ns(kt);
|
|
@@ -1069,7 +1069,7 @@ const Rn = Ms(
|
|
|
1069
1069
|
"data-action": "add-task",
|
|
1070
1070
|
onClick: U
|
|
1071
1071
|
}
|
|
1072
|
-
) : void 0, wt =
|
|
1072
|
+
) : void 0, wt = $.status, Pt = !!(de != null && de.length) && $.type, xt = !!(ue != null && ue.length) && $.assignee, St = $.overdueOnly, Tt = Mt && (wt || Pt || xt || St), zs = bt || Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
|
|
1073
1073
|
bt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.scope.label"), children: B.map((e) => {
|
|
1074
1074
|
const t = es === e;
|
|
1075
1075
|
return /* @__PURE__ */ c(
|
|
@@ -1094,7 +1094,7 @@ const Rn = Ms(
|
|
|
1094
1094
|
size: "sm",
|
|
1095
1095
|
"aria-pressed": t,
|
|
1096
1096
|
"data-status-filter": e,
|
|
1097
|
-
onClick: () =>
|
|
1097
|
+
onClick: () => W({ status: e }),
|
|
1098
1098
|
children: Yt[e]
|
|
1099
1099
|
},
|
|
1100
1100
|
e
|
|
@@ -1107,9 +1107,9 @@ const Rn = Ms(
|
|
|
1107
1107
|
clearable: !0,
|
|
1108
1108
|
"aria-label": d("tasksPanel.type.label"),
|
|
1109
1109
|
placeholder: d("tasksPanel.type.placeholder"),
|
|
1110
|
-
options:
|
|
1110
|
+
options: de,
|
|
1111
1111
|
value: M ?? "",
|
|
1112
|
-
onValueChange: (e) =>
|
|
1112
|
+
onValueChange: (e) => W({ type: e || null })
|
|
1113
1113
|
}
|
|
1114
1114
|
) : null,
|
|
1115
1115
|
xt ? /* @__PURE__ */ c(
|
|
@@ -1119,9 +1119,9 @@ const Rn = Ms(
|
|
|
1119
1119
|
clearable: !0,
|
|
1120
1120
|
"aria-label": d("tasksPanel.assignee.label"),
|
|
1121
1121
|
placeholder: d("tasksPanel.assignee.placeholder"),
|
|
1122
|
-
options:
|
|
1122
|
+
options: ue,
|
|
1123
1123
|
value: I ?? "",
|
|
1124
|
-
onValueChange: (e) =>
|
|
1124
|
+
onValueChange: (e) => W({ assignee: e || null })
|
|
1125
1125
|
}
|
|
1126
1126
|
) : null,
|
|
1127
1127
|
St ? /* @__PURE__ */ c(
|
|
@@ -1132,7 +1132,7 @@ const Rn = Ms(
|
|
|
1132
1132
|
label: d("tasksPanel.overdueOnly"),
|
|
1133
1133
|
checked: Je,
|
|
1134
1134
|
disabled: p && O === "done",
|
|
1135
|
-
onCheckedChange: (e) =>
|
|
1135
|
+
onCheckedChange: (e) => W({ overdueOnly: e })
|
|
1136
1136
|
}
|
|
1137
1137
|
) : null
|
|
1138
1138
|
] }) : null
|
|
@@ -1140,7 +1140,7 @@ const Rn = Ms(
|
|
|
1140
1140
|
return /* @__PURE__ */ b(
|
|
1141
1141
|
"section",
|
|
1142
1142
|
{
|
|
1143
|
-
ref:
|
|
1143
|
+
ref: te,
|
|
1144
1144
|
"data-component": "tasks-panel",
|
|
1145
1145
|
"data-component-id": a,
|
|
1146
1146
|
"aria-labelledby": Ge ? void 0 : Ye,
|
|
@@ -1149,7 +1149,7 @@ const Rn = Ms(
|
|
|
1149
1149
|
...Ct,
|
|
1150
1150
|
children: [
|
|
1151
1151
|
/* @__PURE__ */ c(
|
|
1152
|
-
|
|
1152
|
+
Ws,
|
|
1153
1153
|
{
|
|
1154
1154
|
title: js,
|
|
1155
1155
|
titleTooltip: u === void 0 ? void 0 : d("tasksPanel.titleWithCount", {
|
|
@@ -1173,8 +1173,8 @@ Rn.displayName = "TasksPanel";
|
|
|
1173
1173
|
function En({
|
|
1174
1174
|
bucketKey: a,
|
|
1175
1175
|
countLabel: o,
|
|
1176
|
-
showCount:
|
|
1177
|
-
label:
|
|
1176
|
+
showCount: g = !0,
|
|
1177
|
+
label: h,
|
|
1178
1178
|
headerRef: k,
|
|
1179
1179
|
reflowId: u,
|
|
1180
1180
|
leaving: f = !1
|
|
@@ -1206,8 +1206,8 @@ function En({
|
|
|
1206
1206
|
className: "ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)]"
|
|
1207
1207
|
}
|
|
1208
1208
|
) : null,
|
|
1209
|
-
|
|
1210
|
-
|
|
1209
|
+
h,
|
|
1210
|
+
g ? /* @__PURE__ */ c(
|
|
1211
1211
|
"span",
|
|
1212
1212
|
{
|
|
1213
1213
|
"data-bucket-count": "",
|
|
@@ -1223,4 +1223,4 @@ export {
|
|
|
1223
1223
|
Rn as T,
|
|
1224
1224
|
cn as t
|
|
1225
1225
|
};
|
|
1226
|
-
//# sourceMappingURL=tasks-panel-
|
|
1226
|
+
//# sourceMappingURL=tasks-panel-CDFHAHrN.js.map
|