@alfadocs/ui-kit 1.134.0 → 1.136.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-prompt-input-JIPbrTF3.js → ai-prompt-input-CVNeusoW.js} +2 -2
- package/dist/_chunks/ai-summary-panel-BhCo2vZF.js +1045 -0
- package/dist/_chunks/{alia-sidebar-CK1zw_Bc.js → alia-sidebar-CVBlKur9.js} +4 -4
- package/dist/_chunks/{anamnesis-summary-rows-CCNmkq55.js → anamnesis-summary-rows-Dr2V1Rtf.js} +3 -3
- package/dist/_chunks/{appointment-card-DG3m9yN-.js → appointment-card-BT1cMZIX.js} +2 -2
- package/dist/_chunks/{appointment-peek-BK0tDs4C.js → appointment-peek-BP_ACFz5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-BiI2riRZ.js → appointment-timeline-Dy4YQJ17.js} +2 -2
- package/dist/_chunks/{appointment-tray-ClJCtYQj.js → appointment-tray-B3gSHL1j.js} +2 -2
- package/dist/_chunks/{audio-recorder-CsnM_WDy.js → audio-recorder-BOF5YYoC.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DTiMdnCZ.js → balance-badge-cell-BSB02Bwo.js} +4 -4
- package/dist/_chunks/{bill-line-table-DHKb_O7c.js → bill-line-table-By-YL2ms.js} +2 -2
- package/dist/_chunks/{bishop-score-CKztphVz.js → bishop-score-DWGESRP9.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BSkIYGlW.js → calendar-appointment-editor-dialog-CB4cQOtc.js} +10 -10
- package/dist/_chunks/call-status-chip-pajxN5eZ.js +180 -0
- package/dist/_chunks/calls-panel-BIfatK90.js +1094 -0
- package/dist/_chunks/{chat-container-B83b4hut.js → chat-container-CoOT7dzB.js} +37 -36
- package/dist/_chunks/{chat-input-DwQ4_WXK.js → chat-input-BmvnuZqj.js} +112 -106
- package/dist/_chunks/{chat-message-CfIyXrxA.js → chat-message-B4TMeZ2m.js} +35 -30
- package/dist/_chunks/circle-x-W8Enq3i4.js +16 -0
- package/dist/_chunks/communications-panel-SQ-55e3V.js +1079 -0
- package/dist/_chunks/{data-grid-B2oaI7Lt.js → data-grid-CxKz8flO.js} +2 -2
- package/dist/_chunks/{data-table-FTV3uRjX.js → data-table-_tgj0C_T.js} +2 -2
- package/dist/_chunks/{default-tabs-DbebYO04.js → default-tabs-oDWQzbN7.js} +3 -3
- package/dist/_chunks/{document-preview-DLVIrOYV.js → document-preview-DWlejd8A.js} +2 -2
- package/dist/_chunks/entity-summary-CPUHzyil.js +297 -0
- package/dist/_chunks/{file-manager-Bzr5NK1t.js → file-manager-CEi4z2i0.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-mB6brTlp.js → gestational-age-calculator-CHbpC4vL.js} +2 -2
- package/dist/_chunks/get-error-message-DbFUzuja.js +7 -0
- package/dist/_chunks/handled-rejection-C-6Dq0As.js +9 -0
- package/dist/_chunks/{heatmap-C5gJin_F.js → heatmap-_546qI2V.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-B5aMffTy.js → invoice-upload-list-CQI9MUl6.js} +3 -3
- package/dist/_chunks/{kit-extensions-DUaIYyMD.js → kit-extensions-BNBf4m8O.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-D3JLPURZ.js → link-cell-renderer-Xx5T8u5Q.js} +3 -3
- package/dist/_chunks/megaphone-CzeTT9B3.js +22 -0
- package/dist/_chunks/{muscle-scheme-BGJD62op.js → muscle-scheme-D_rSyGDj.js} +2 -2
- package/dist/_chunks/{notes-panel-BAyPOr8N.js → notes-panel-BvjAo4RQ.js} +5 -4
- package/dist/_chunks/{optical-prescription-Da_r8pMr.js → optical-prescription-DaSbsh4p.js} +2 -2
- package/dist/_chunks/{patient-account-settings-BkAtIxJW.js → patient-account-settings-Bmfeclpd.js} +3 -3
- package/dist/_chunks/{patient-card-DTh3QTyS.js → patient-card-Cpr8iD19.js} +4 -4
- package/dist/_chunks/{patient-check-in-resume-xhqjC6gf.js → patient-check-in-resume-CYZ-SvsF.js} +41 -41
- package/dist/_chunks/{patient-details-DBtEITfE.js → patient-details-9eh9cNy7.js} +2 -2
- package/dist/_chunks/{patient-field-row-a5d4QijH.js → patient-field-row-B782eT0C.js} +2 -2
- package/dist/_chunks/{patient-sign-in-pin-CDBqV254.js → patient-sign-in-pin-DmMBwWet.js} +2 -2
- package/dist/_chunks/{patient-sign-in-steps-C2JSqlok.js → patient-sign-in-steps-BKcxNkdY.js} +37 -59
- package/dist/_chunks/{patient-summary-card-Bl2NknPe.js → patient-summary-card-K9zaMl1O.js} +2 -2
- package/dist/_chunks/phone-off-DQSTLz4l.js +28 -0
- package/dist/_chunks/{portal-details-CTEsm705.js → portal-details-DCIiGkHA.js} +2 -2
- package/dist/_chunks/{portal-documents-D8skew0h.js → portal-documents-DVKj6Sco.js} +4 -4
- package/dist/_chunks/{portal-parts-BdR29P7z.js → portal-parts-Br8wuala.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BNI32qNw.js → pregnancy-dating-lJbzai73.js} +2 -2
- package/dist/_chunks/{registration-form-DS3RuKHu.js → registration-form-CuLiTA52.js} +2 -2
- package/dist/_chunks/{reserved.agent-DOzOBUW7.js → reserved.agent-CabZHFJC.js} +2 -2
- package/dist/_chunks/{select-uESzXTX6.js → select-CIXKyUMw.js} +172 -149
- package/dist/_chunks/{session-countdown-DOx1IBUB.js → session-countdown-StcyUU5O.js} +56 -66
- package/dist/_chunks/{signature-request-CHsM_iWi.js → signature-request-vJDSHZld.js} +2 -2
- package/dist/_chunks/signing-end-screen-BdhbkPKO.js +1355 -0
- package/dist/_chunks/{tabs-CRIDBLP7.js → tabs-Czkmw5ou.js} +2 -2
- package/dist/_chunks/{task-editor-g1AGfxhr.js → task-editor-BfXSn6U1.js} +4 -3
- package/dist/_chunks/{tasks-panel-BE3zaayj.js → tasks-panel-DbtJS4QI.js} +156 -172
- package/dist/_chunks/{toolbar-CfdoJzMV.js → toolbar-DjG-cpD_.js} +2 -2
- package/dist/_chunks/{unit-converter-YKlHyUC2.js → unit-converter-CUAUTu2B.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-Dzc6fEzG.js → use-appointment-details-read-7J0j1FP7.js} +111 -110
- package/dist/_chunks/{voice-control-panel-Be_c0CQ0.js → voice-control-panel-Cp4vs1iy.js} +2 -2
- package/dist/_chunks/{workflow-status-D1WgGVTP.js → workflow-status-CO0mxXs2.js} +3 -2
- package/dist/agent-catalog.json +528 -2
- package/dist/agent-i18n/en.json +51 -1
- package/dist/browser-support.js +1 -1
- package/dist/components/_shared/sms-segments.d.ts +43 -0
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-summary-panel/ai-summary-panel.agent.d.ts +4 -0
- package/dist/components/ai-summary-panel/ai-summary-panel.d.ts +134 -0
- package/dist/components/ai-summary-panel/index.d.ts +4 -0
- package/dist/components/ai-summary-panel/index.js +6 -0
- package/dist/components/ai-summary-panel/summary-markdown.d.ts +15 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/call-status-chip/call-status-chip.d.ts +30 -0
- package/dist/components/call-status-chip/index.d.ts +3 -0
- package/dist/components/call-status-chip/index.js +5 -0
- package/dist/components/calls-panel/calls-panel.agent.d.ts +4 -0
- package/dist/components/calls-panel/calls-panel.d.ts +153 -0
- package/dist/components/calls-panel/index.d.ts +4 -0
- package/dist/components/calls-panel/index.js +6 -0
- package/dist/components/chat-container/chat-container.d.ts +7 -0
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/chat-input.d.ts +20 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/communications-panel/communications-panel.agent.d.ts +4 -0
- package/dist/components/communications-panel/communications-panel.d.ts +148 -0
- package/dist/components/communications-panel/index.d.ts +6 -0
- package/dist/components/communications-panel/index.js +7 -0
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/entity-summary/entity-summary.d.ts +37 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +8 -0
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +162 -0
- package/dist/i18n/locales/ar.js +163 -0
- package/dist/i18n/locales/de.d.ts +162 -0
- package/dist/i18n/locales/de.js +163 -0
- package/dist/i18n/locales/el.d.ts +162 -0
- package/dist/i18n/locales/el.js +163 -0
- package/dist/i18n/locales/en.d.ts +162 -0
- package/dist/i18n/locales/en.js +163 -0
- package/dist/i18n/locales/es.d.ts +162 -0
- package/dist/i18n/locales/es.js +163 -0
- package/dist/i18n/locales/fr.d.ts +162 -0
- package/dist/i18n/locales/fr.js +163 -0
- package/dist/i18n/locales/hi.d.ts +162 -0
- package/dist/i18n/locales/hi.js +163 -0
- package/dist/i18n/locales/it.d.ts +162 -0
- package/dist/i18n/locales/it.js +163 -0
- package/dist/i18n/locales/ja.d.ts +162 -0
- package/dist/i18n/locales/ja.js +163 -0
- package/dist/i18n/locales/nl.d.ts +162 -0
- package/dist/i18n/locales/nl.js +163 -0
- package/dist/i18n/locales/pl.d.ts +162 -0
- package/dist/i18n/locales/pl.js +163 -0
- package/dist/i18n/locales/pt.d.ts +162 -0
- package/dist/i18n/locales/pt.js +163 -0
- package/dist/i18n/locales/ro.d.ts +162 -0
- package/dist/i18n/locales/ro.js +163 -0
- package/dist/i18n/locales/ru.d.ts +162 -0
- package/dist/i18n/locales/ru.js +163 -0
- package/dist/i18n/locales/sq.d.ts +162 -0
- package/dist/i18n/locales/sq.js +163 -0
- package/dist/i18n/locales/sv.d.ts +162 -0
- package/dist/i18n/locales/sv.js +163 -0
- package/dist/i18n/locales/tr.d.ts +162 -0
- package/dist/i18n/locales/tr.js +163 -0
- package/dist/i18n/locales/zh.d.ts +162 -0
- package/dist/i18n/locales/zh.js +163 -0
- package/dist/index.js +905 -893
- package/dist/locales/ar.json +162 -0
- package/dist/locales/de.json +162 -0
- package/dist/locales/el.json +162 -0
- package/dist/locales/en.json +162 -0
- package/dist/locales/es.json +162 -0
- package/dist/locales/fr.json +162 -0
- package/dist/locales/hi.json +162 -0
- package/dist/locales/it.json +162 -0
- package/dist/locales/ja.json +162 -0
- package/dist/locales/nl.json +162 -0
- package/dist/locales/pl.json +162 -0
- package/dist/locales/pt.json +162 -0
- package/dist/locales/ro.json +162 -0
- package/dist/locales/ru.json +162 -0
- package/dist/locales/sq.json +162 -0
- package/dist/locales/sv.json +162 -0
- package/dist/locales/tr.json +162 -0
- package/dist/locales/zh.json +162 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar.journey.d.ts +7 -0
- package/dist/patterns/calendar/index.js +1 -1
- 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/patient-sign-in/index.js +2 -2
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signing/index.d.ts +1 -0
- package/dist/patterns/signing/index.js +1 -1
- package/dist/patterns/signing/multi-field-signer.d.ts +22 -1
- package/dist/patterns/signing/signing-checkbox-pill.d.ts +66 -0
- package/dist/patterns/signing/signing-checkbox-sheet.d.ts +16 -0
- package/dist/patterns/signing/signing-document-screen.d.ts +18 -1
- package/dist/tokens.css +1 -1
- package/package.json +17 -1
- package/dist/_chunks/entity-summary-KHM0PnSI.js +0 -265
- package/dist/_chunks/handled-rejection-6gqCf5vt.js +0 -13
- package/dist/_chunks/signing-end-screen-an9P8DOT.js +0 -1041
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
import { jsx as c, jsxs as b, Fragment as we } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
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
|
|
5
|
-
import { A as
|
|
4
|
+
import { useTranslation as Ws } from "react-i18next";
|
|
5
|
+
import { A as Ie } from "./alert-C4WKViaS.js";
|
|
6
6
|
import { B as $s } from "./badge-BUk4RjTS.js";
|
|
7
7
|
import { B as Pe } from "./button-DohK_Ak_.js";
|
|
8
|
-
import { I as
|
|
8
|
+
import { I as He } from "./icon-button-S8_weU3g.js";
|
|
9
9
|
import { B as Et } from "./button-group-DuQuuulC.js";
|
|
10
|
-
import { P as
|
|
11
|
-
import { S as Ot } from "./select-
|
|
10
|
+
import { P as qs } from "./panel-header-CbtlTe85.js";
|
|
11
|
+
import { S as Ot } from "./select-CIXKyUMw.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 We } 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
|
-
import { a as Ys, u as Dt, R as
|
|
18
|
+
import { a as Ys, u as Dt, R as At } from "./use-list-reflow-C7O4Uqnl.js";
|
|
19
19
|
import { u as Fs } from "./use-theme-CYGyzFgZ.js";
|
|
20
|
-
import { u as
|
|
20
|
+
import { u as $e } 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";
|
|
24
24
|
import { P as Zs } from "./pencil-B1sKKyuT.js";
|
|
25
25
|
import { X as en } from "./x-B5YnXwCz.js";
|
|
26
|
-
import { c as
|
|
26
|
+
import { c as Ke } from "./createLucideIcon-DhHxpK9K.js";
|
|
27
|
+
import { M as tn } from "./megaphone-CzeTT9B3.js";
|
|
27
28
|
/**
|
|
28
29
|
* @license lucide-react v1.22.0 - ISC
|
|
29
30
|
*
|
|
30
31
|
* This source code is licensed under the ISC license.
|
|
31
32
|
* See the LICENSE file in the root directory of this source tree.
|
|
32
33
|
*/
|
|
33
|
-
const
|
|
34
|
+
const sn = [
|
|
34
35
|
["path", { d: "M13.744 17.736a6 6 0 1 1-7.48-7.48", key: "bq4yh3" }],
|
|
35
36
|
["path", { d: "M15 6h1v4", key: "11y1tn" }],
|
|
36
37
|
["path", { d: "m6.134 14.768.866-.5 2 3.464", key: "17snzx" }],
|
|
37
38
|
["circle", { cx: "16", cy: "8", r: "6", key: "14bfc9" }]
|
|
38
|
-
],
|
|
39
|
+
], nn = Ke("coins", sn);
|
|
39
40
|
/**
|
|
40
41
|
* @license lucide-react v1.22.0 - ISC
|
|
41
42
|
*
|
|
42
43
|
* This source code is licensed under the ISC license.
|
|
43
44
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
45
|
*/
|
|
45
|
-
const
|
|
46
|
+
const rn = [
|
|
46
47
|
["path", { d: "M10.5 3 8 9l4 13 4-13-2.5-6", key: "b3dvk1" }],
|
|
47
48
|
[
|
|
48
49
|
"path",
|
|
@@ -52,31 +53,14 @@ const nn = [
|
|
|
52
53
|
}
|
|
53
54
|
],
|
|
54
55
|
["path", { d: "M2 9h20", key: "16fsjt" }]
|
|
55
|
-
],
|
|
56
|
+
], on = Ke("gem", rn);
|
|
56
57
|
/**
|
|
57
58
|
* @license lucide-react v1.22.0 - ISC
|
|
58
59
|
*
|
|
59
60
|
* This source code is licensed under the ISC license.
|
|
60
61
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
62
|
*/
|
|
62
|
-
const
|
|
63
|
-
[
|
|
64
|
-
"path",
|
|
65
|
-
{
|
|
66
|
-
d: "M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",
|
|
67
|
-
key: "q8bfy3"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
["path", { d: "M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14", key: "1853fq" }],
|
|
71
|
-
["path", { d: "M8 6v8", key: "15ugcq" }]
|
|
72
|
-
], an = Se("megaphone", on);
|
|
73
|
-
/**
|
|
74
|
-
* @license lucide-react v1.22.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/
|
|
79
|
-
const cn = [
|
|
63
|
+
const an = [
|
|
80
64
|
[
|
|
81
65
|
"path",
|
|
82
66
|
{
|
|
@@ -85,7 +69,7 @@ const cn = [
|
|
|
85
69
|
}
|
|
86
70
|
],
|
|
87
71
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
88
|
-
], _t =
|
|
72
|
+
], _t = Ke("tag", an), cn = {
|
|
89
73
|
id: "tasks-panel",
|
|
90
74
|
// 'pick' backs select_item (non-persisting activation, matching
|
|
91
75
|
// AppointmentTimeline); 'dismiss' backs dismiss; 'scroll' backs
|
|
@@ -225,19 +209,19 @@ const cn = [
|
|
|
225
209
|
description: "Stable task id emitted on each rendered TaskCard inside the panel."
|
|
226
210
|
}
|
|
227
211
|
}
|
|
228
|
-
},
|
|
212
|
+
}, dn = 96, ln = {
|
|
229
213
|
status: "todo",
|
|
230
214
|
type: null,
|
|
231
215
|
assignee: null,
|
|
232
216
|
overdueOnly: !1
|
|
233
|
-
}, Nt = /* @__PURE__ */ new Map(),
|
|
234
|
-
function
|
|
217
|
+
}, Nt = /* @__PURE__ */ new Map(), jt = /* @__PURE__ */ new Set();
|
|
218
|
+
function qe(a) {
|
|
235
219
|
return a.map((o) => `${o.id}:${o.status ?? "open"}`).join("|");
|
|
236
220
|
}
|
|
237
|
-
function
|
|
221
|
+
function un(a, o) {
|
|
238
222
|
return a.status === o.status && a.type === o.type && a.assignee === o.assignee && a.overdueOnly === o.overdueOnly;
|
|
239
223
|
}
|
|
240
|
-
function
|
|
224
|
+
function fn(a, o) {
|
|
241
225
|
return a.status === o.status && (a.type || null) === (o.type || null) && (a.assignee || null) === (o.assignee || null) && a.overdueOnly === o.overdueOnly;
|
|
242
226
|
}
|
|
243
227
|
function xe(a) {
|
|
@@ -245,19 +229,19 @@ function xe(a) {
|
|
|
245
229
|
return o.catch(() => {
|
|
246
230
|
}), o;
|
|
247
231
|
}
|
|
248
|
-
function
|
|
232
|
+
function pn(a) {
|
|
249
233
|
try {
|
|
250
234
|
return new Intl.NumberFormat(a);
|
|
251
235
|
} catch {
|
|
252
236
|
return new Intl.NumberFormat();
|
|
253
237
|
}
|
|
254
238
|
}
|
|
255
|
-
function
|
|
239
|
+
function mn(a) {
|
|
256
240
|
const o = Promise.resolve(a);
|
|
257
241
|
return o.catch(() => {
|
|
258
242
|
}), o;
|
|
259
243
|
}
|
|
260
|
-
const
|
|
244
|
+
const vn = Hs(
|
|
261
245
|
[
|
|
262
246
|
"ds:flex ds:flex-col ds:h-full ds:min-h-0",
|
|
263
247
|
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]"
|
|
@@ -266,7 +250,7 @@ const hn = Hs(
|
|
|
266
250
|
variants: { size: { xs: "", sm: "", md: "" } },
|
|
267
251
|
defaultVariants: { size: "sm" }
|
|
268
252
|
}
|
|
269
|
-
),
|
|
253
|
+
), hn = [
|
|
270
254
|
"ds:flex-1 ds:min-h-0 ds:overflow-y-auto",
|
|
271
255
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-md)]",
|
|
272
256
|
"ds:px-[var(--spacing-md)] ds:py-[var(--spacing-xs)]",
|
|
@@ -279,14 +263,14 @@ const hn = Hs(
|
|
|
279
263
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
280
264
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:[outline-offset:-2px]",
|
|
281
265
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
282
|
-
].join(" "),
|
|
266
|
+
].join(" "), gn = [
|
|
283
267
|
"ds:shadow-[var(--shadow-card)] ds:bg-[color:var(--card)]",
|
|
284
268
|
// Declared at rest, not only while leaving: a transition added at the
|
|
285
269
|
// same moment as the value it animates has nothing to move from.
|
|
286
270
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
287
271
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
288
|
-
].join(" "), zt = "ds:opacity-0",
|
|
289
|
-
function
|
|
272
|
+
].join(" "), zt = "ds:opacity-0", yn = 12;
|
|
273
|
+
function kn({
|
|
290
274
|
item: a,
|
|
291
275
|
checked: o,
|
|
292
276
|
pending: h,
|
|
@@ -357,7 +341,7 @@ function bn({
|
|
|
357
341
|
"path",
|
|
358
342
|
{
|
|
359
343
|
d: "M5 9.25 L7.75 12 L13 6.25",
|
|
360
|
-
strokeDashoffset: f ? 0 :
|
|
344
|
+
strokeDashoffset: f ? 0 : yn,
|
|
361
345
|
className: "ds:fill-none ds:stroke-current ds:[stroke-width:2] ds:[stroke-linecap:round] ds:[stroke-linejoin:round] ds:[stroke-dasharray:12] ds:transition-[stroke-dashoffset] ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
362
346
|
}
|
|
363
347
|
)
|
|
@@ -367,12 +351,12 @@ function bn({
|
|
|
367
351
|
}
|
|
368
352
|
);
|
|
369
353
|
}
|
|
370
|
-
const
|
|
371
|
-
recall: { variant: "info", Icon:
|
|
372
|
-
payment: { variant: "warning", Icon:
|
|
373
|
-
collection: { variant: "error", Icon:
|
|
354
|
+
const bn = {
|
|
355
|
+
recall: { variant: "info", Icon: tn },
|
|
356
|
+
payment: { variant: "warning", Icon: on },
|
|
357
|
+
collection: { variant: "error", Icon: nn },
|
|
374
358
|
other: { variant: "neutral", Icon: _t }
|
|
375
|
-
},
|
|
359
|
+
}, wn = [
|
|
376
360
|
"overdue",
|
|
377
361
|
"today",
|
|
378
362
|
"tomorrow",
|
|
@@ -380,11 +364,11 @@ const wn = {
|
|
|
380
364
|
"later",
|
|
381
365
|
"done"
|
|
382
366
|
];
|
|
383
|
-
function
|
|
367
|
+
function Pn(a) {
|
|
384
368
|
return new Date(a.getFullYear(), a.getMonth(), a.getDate());
|
|
385
369
|
}
|
|
386
370
|
function Bt(a) {
|
|
387
|
-
const o =
|
|
371
|
+
const o = Pn(a), h = new Date(o);
|
|
388
372
|
h.setDate(o.getDate() + 1);
|
|
389
373
|
const g = new Date(o);
|
|
390
374
|
g.setDate(o.getDate() + 2);
|
|
@@ -396,28 +380,28 @@ function Bt(a) {
|
|
|
396
380
|
startOfNextWeek: +u
|
|
397
381
|
};
|
|
398
382
|
}
|
|
399
|
-
function
|
|
383
|
+
function xn(a, o, h) {
|
|
400
384
|
if (o) return "done";
|
|
401
385
|
const { startOfToday: g, startOfTomorrow: k, startOfDayAfter: u, startOfNextWeek: f } = Bt(h), y = +new Date(a.dueIso);
|
|
402
386
|
return y < g ? "overdue" : y < k ? "today" : y < u ? "tomorrow" : y < f ? "thisWeek" : "later";
|
|
403
387
|
}
|
|
404
|
-
function
|
|
388
|
+
function Sn(a, o) {
|
|
405
389
|
return a.status === "done" ? !1 : +new Date(a.dueIso) < Bt(o).startOfTomorrow;
|
|
406
390
|
}
|
|
407
|
-
function
|
|
391
|
+
function Tn(a, o, h) {
|
|
408
392
|
const g = /* @__PURE__ */ new Map();
|
|
409
393
|
for (const u of a) {
|
|
410
|
-
const f =
|
|
394
|
+
const f = xn(u, h(u), o), y = g.get(f);
|
|
411
395
|
y ? y.push(u) : g.set(f, [u]);
|
|
412
396
|
}
|
|
413
397
|
const k = [];
|
|
414
|
-
for (const u of
|
|
398
|
+
for (const u of wn) {
|
|
415
399
|
const f = g.get(u);
|
|
416
400
|
!f || f.length === 0 || (f.sort((y, E) => +new Date(y.dueIso) - +new Date(E.dueIso)), k.push({ key: u, items: f }));
|
|
417
401
|
}
|
|
418
402
|
return k;
|
|
419
403
|
}
|
|
420
|
-
const
|
|
404
|
+
const Rn = Ms(
|
|
421
405
|
({
|
|
422
406
|
id: a,
|
|
423
407
|
items: o,
|
|
@@ -433,45 +417,45 @@ const En = Ls(
|
|
|
433
417
|
onDismissTask: N,
|
|
434
418
|
onAddTask: U,
|
|
435
419
|
readOnly: S = !1,
|
|
436
|
-
renderItemActions:
|
|
437
|
-
renderItemExtraActions:
|
|
438
|
-
scope:
|
|
439
|
-
defaultScope:
|
|
420
|
+
renderItemActions: Se,
|
|
421
|
+
renderItemExtraActions: Te,
|
|
422
|
+
scope: Re,
|
|
423
|
+
defaultScope: Lt,
|
|
440
424
|
onScopeChange: oe,
|
|
441
425
|
availableScopes: B,
|
|
442
426
|
onLoadMore: H,
|
|
443
|
-
hasMore:
|
|
427
|
+
hasMore: Ee,
|
|
444
428
|
loadingMore: Y = !1,
|
|
445
429
|
loading: w = !1,
|
|
446
430
|
error: P = !1,
|
|
447
431
|
onRetry: ae,
|
|
448
|
-
showFilters:
|
|
432
|
+
showFilters: Mt = !0,
|
|
449
433
|
defaultFilters: It,
|
|
450
|
-
onFiltersChange:
|
|
434
|
+
onFiltersChange: L,
|
|
451
435
|
statusFilter: Ve,
|
|
452
436
|
defaultStatusFilter: Ht,
|
|
453
437
|
onStatusFilterChange: ie,
|
|
454
438
|
typeOptions: ce,
|
|
455
|
-
typeFilter:
|
|
439
|
+
typeFilter: Oe,
|
|
456
440
|
onTypeFilterChange: de,
|
|
457
441
|
assigneeOptions: le,
|
|
458
|
-
assigneeFilter:
|
|
442
|
+
assigneeFilter: De,
|
|
459
443
|
onAssigneeFilterChange: ue,
|
|
460
444
|
overdueOnly: Ce,
|
|
461
|
-
defaultOverdueOnly:
|
|
445
|
+
defaultOverdueOnly: Wt,
|
|
462
446
|
onOverdueOnlyChange: fe,
|
|
463
447
|
emptyTitle: $t,
|
|
464
|
-
emptyDescription:
|
|
448
|
+
emptyDescription: qt,
|
|
465
449
|
emptyAction: Kt,
|
|
466
450
|
className: Vt,
|
|
467
451
|
"aria-label": Ge,
|
|
468
452
|
...Ct
|
|
469
453
|
}, Gt) => {
|
|
470
|
-
const { t: d, i18n: Ue } =
|
|
471
|
-
status: !p || !!
|
|
472
|
-
type: !p || !!
|
|
473
|
-
assignee: !p || !!
|
|
474
|
-
overdueOnly: !p || !!
|
|
454
|
+
const { t: d, i18n: Ue } = Ws("ui"), Ye = Rt(), Ut = Rt(), Ne = g ?? d("tasksPanel.title"), p = y === "server", W = {
|
|
455
|
+
status: !p || !!L || !!ie,
|
|
456
|
+
type: !p || !!L || !!de,
|
|
457
|
+
assignee: !p || !!L || !!ue,
|
|
458
|
+
overdueOnly: !p || !!L || !!fe
|
|
475
459
|
}, Yt = {
|
|
476
460
|
todo: d("tasksPanel.status.todo"),
|
|
477
461
|
done: d("tasksPanel.status.done"),
|
|
@@ -495,44 +479,44 @@ const En = Ls(
|
|
|
495
479
|
() => h ? new Date(h) : /* @__PURE__ */ new Date(),
|
|
496
480
|
[h]
|
|
497
481
|
), Fe = z(
|
|
498
|
-
() =>
|
|
482
|
+
() => pn(Ue.language),
|
|
499
483
|
[Ue.language]
|
|
500
484
|
), Qe = (e) => d("tasksPanel.bracketedCount", { value: Fe.format(e) }), [Jt, Zt] = R(
|
|
501
|
-
|
|
502
|
-
), es =
|
|
485
|
+
Lt ?? (B == null ? void 0 : B[0]) ?? "patient"
|
|
486
|
+
), es = Re ?? Jt, Xe = Me(
|
|
503
487
|
(e) => {
|
|
504
|
-
|
|
488
|
+
Re === void 0 && Zt(e), oe == null || oe(e);
|
|
505
489
|
},
|
|
506
|
-
[
|
|
507
|
-
),
|
|
508
|
-
Ht ??
|
|
509
|
-
), [ns, rs] = R(
|
|
510
|
-
|
|
490
|
+
[Re, oe]
|
|
491
|
+
), j = It ?? ln, [ts, ss] = R(
|
|
492
|
+
Ht ?? j.status
|
|
493
|
+
), [ns, rs] = R(j.type), [os, as] = R(
|
|
494
|
+
j.assignee
|
|
511
495
|
), [is, cs] = R(
|
|
512
|
-
|
|
513
|
-
), O = Ve ?? ts,
|
|
496
|
+
Wt ?? j.overdueOnly
|
|
497
|
+
), O = Ve ?? ts, M = Oe !== void 0 ? Oe : ns, I = De !== void 0 ? De : os, $ = Ce ?? is, Je = p ? $ && O !== "done" : $, me = v({
|
|
514
498
|
status: O,
|
|
515
|
-
type:
|
|
499
|
+
type: M,
|
|
516
500
|
assignee: I,
|
|
517
501
|
overdueOnly: $
|
|
518
502
|
});
|
|
519
503
|
me.current = {
|
|
520
504
|
status: O,
|
|
521
|
-
type:
|
|
505
|
+
type: M,
|
|
522
506
|
assignee: I,
|
|
523
507
|
overdueOnly: $
|
|
524
508
|
};
|
|
525
|
-
const
|
|
509
|
+
const q = (e) => {
|
|
526
510
|
const t = Object.fromEntries(
|
|
527
511
|
Object.entries(e).filter(
|
|
528
|
-
([l]) =>
|
|
512
|
+
([l]) => W[l]
|
|
529
513
|
)
|
|
530
514
|
);
|
|
531
515
|
if (Object.keys(e).length > 0 && Object.keys(t).length === 0)
|
|
532
516
|
return;
|
|
533
517
|
const s = me.current, r = p && s.status === "done" && s.overdueOnly ? { ...s, overdueOnly: !1 } : s, n = { ...r, ...t }, i = new Set(Object.keys(t));
|
|
534
|
-
r !== s && i.add("overdueOnly"), p && n.status === "done" && n.overdueOnly && (t.status !== void 0 ? (n.overdueOnly = !1, i.add("overdueOnly")) : (n.status =
|
|
535
|
-
}, ds = () =>
|
|
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"))), me.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") && (ie == null || ie(n.status)), i.has("type") && (de == null || de(n.type)), i.has("assignee") && (ue == null || ue(n.assignee)), i.has("overdueOnly") && (fe == null || fe(n.overdueOnly)), un(s, n) || L == null || L(n);
|
|
519
|
+
}, ds = () => q({ ...j }), [F, ls] = R(Nt), T = v(Nt), [Ze, us] = R(jt), Q = v(jt), X = v(!0), je = v(/* @__PURE__ */ new Set());
|
|
536
520
|
G(() => {
|
|
537
521
|
X.current = !0;
|
|
538
522
|
const e = je.current;
|
|
@@ -542,51 +526,51 @@ const En = Ls(
|
|
|
542
526
|
), e.clear();
|
|
543
527
|
};
|
|
544
528
|
}, []);
|
|
545
|
-
const
|
|
529
|
+
const A = (e) => {
|
|
546
530
|
const t = new Map(T.current);
|
|
547
531
|
e(t), T.current = t, ls(t);
|
|
548
|
-
},
|
|
532
|
+
}, Ae = (e) => {
|
|
549
533
|
const t = new Set(Q.current);
|
|
550
534
|
e(t), Q.current = t, us(t);
|
|
551
535
|
}, K = z(() => p ? o.filter((e) => !Ze.has(e.id)) : o.filter((e) => {
|
|
552
536
|
const t = e.status === "done";
|
|
553
|
-
return !(O === "todo" && t || O === "done" && !t ||
|
|
537
|
+
return !(O === "todo" && t || O === "done" && !t || M && e.type !== M || I && (e.assignee ?? "") !== I || $ && !Sn(e, pe));
|
|
554
538
|
}), [
|
|
555
539
|
p,
|
|
556
540
|
Ze,
|
|
557
541
|
o,
|
|
558
542
|
O,
|
|
559
|
-
|
|
543
|
+
M,
|
|
560
544
|
I,
|
|
561
545
|
$,
|
|
562
546
|
pe
|
|
563
|
-
]), ve = z(() =>
|
|
547
|
+
]), ve = z(() => Tn(K, pe, (t) => {
|
|
564
548
|
if (p) {
|
|
565
549
|
const s = F.get(t.id);
|
|
566
550
|
if ((s == null ? void 0 : s.kind) === "done" && s.next !== void 0 && !s.leaves)
|
|
567
551
|
return s.next;
|
|
568
552
|
}
|
|
569
553
|
return t.status === "done";
|
|
570
|
-
}), [K, pe, p, F]),
|
|
554
|
+
}), [K, pe, p, F]), _e = z(
|
|
571
555
|
() => ve.flatMap((e) => e.items.map((t) => t.id)),
|
|
572
556
|
[ve]
|
|
573
|
-
), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z =
|
|
557
|
+
), J = v(null), et = v(null), [fs, ps] = R(!1), [ms, vs] = R(!1), Z = Me(() => {
|
|
574
558
|
const e = J.current;
|
|
575
559
|
if (!e) return;
|
|
576
560
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
577
561
|
ps(t > 1), vs(t + r < s - 1);
|
|
578
562
|
}, []);
|
|
579
|
-
|
|
563
|
+
$e(() => {
|
|
580
564
|
Z();
|
|
581
|
-
}, [ve, Z]),
|
|
565
|
+
}, [ve, Z]), $e(() => {
|
|
582
566
|
const e = J.current;
|
|
583
567
|
if (!e || typeof ResizeObserver > "u") return;
|
|
584
568
|
const t = new ResizeObserver(Z);
|
|
585
569
|
return t.observe(e), () => t.disconnect();
|
|
586
570
|
}, [Z]);
|
|
587
|
-
const tt = p ?
|
|
571
|
+
const tt = p ? Ee === !0 : Ee ?? !!H, _ = v(o);
|
|
588
572
|
_.current = o;
|
|
589
|
-
const hs = z(() =>
|
|
573
|
+
const hs = z(() => qe(o), [o]), he = z(
|
|
590
574
|
() => o.map((e) => e.id).join("|"),
|
|
591
575
|
[o]
|
|
592
576
|
), st = v(he);
|
|
@@ -595,7 +579,7 @@ const En = Ls(
|
|
|
595
579
|
G(() => {
|
|
596
580
|
nt.current && !w && !P && (ee.current += 1), nt.current = w;
|
|
597
581
|
}, [w, P]);
|
|
598
|
-
const ge = v(!0), rt = v(""), ot = v(0),
|
|
582
|
+
const ge = v(!0), rt = v(""), ot = v(0), ze = () => {
|
|
599
583
|
ge.current = !1, rt.current = st.current, ot.current = ee.current, H == null || H();
|
|
600
584
|
};
|
|
601
585
|
G(() => {
|
|
@@ -606,17 +590,17 @@ const En = Ls(
|
|
|
606
590
|
const e = J.current;
|
|
607
591
|
if (!e) return;
|
|
608
592
|
const { scrollTop: t, scrollHeight: s, clientHeight: r } = e;
|
|
609
|
-
H && tt && !w && !Y && ge.current && s - t - r <=
|
|
593
|
+
H && tt && !w && !Y && ge.current && s - t - r <= dn && ze();
|
|
610
594
|
}, { resolvedTheme: ys } = Fs(), ye = ys.endsWith("-accessible") || void 0, { containerRef: ks } = Ys({
|
|
611
|
-
key:
|
|
595
|
+
key: _e.join(),
|
|
612
596
|
reduceMotion: ye
|
|
613
|
-
}), te = Dt({ delayMs: 200, reduceMotion: ye }), se = Dt({ reduceMotion: ye }),
|
|
597
|
+
}), te = Dt({ delayMs: 200, reduceMotion: ye }), se = Dt({ reduceMotion: ye }), Be = (e) => te.isLeaving(e) || se.isLeaving(e), bs = (e) => {
|
|
614
598
|
const { status: t, overdueOnly: s } = me.current;
|
|
615
599
|
return t === "todo" && e || t === "done" && !e || (p ? s && t !== "done" : s) && e;
|
|
616
600
|
}, at = (e) => {
|
|
617
|
-
T.current.has(e) &&
|
|
601
|
+
T.current.has(e) && A((t) => t.delete(e)), Q.current.has(e) && Ae((t) => t.delete(e)), te.cancel(e), se.cancel(e);
|
|
618
602
|
}, it = () => {
|
|
619
|
-
const e = _.current, t =
|
|
603
|
+
const e = _.current, t = qe(e), s = new Map(e.map((i) => [i.id, i])), r = [], n = [];
|
|
620
604
|
T.current.forEach((i, l) => {
|
|
621
605
|
const m = s.get(l);
|
|
622
606
|
if (!m) {
|
|
@@ -624,19 +608,19 @@ const En = Ls(
|
|
|
624
608
|
return;
|
|
625
609
|
}
|
|
626
610
|
if (!i.settled) return;
|
|
627
|
-
const Bs = i.kind === "done" && m.status === "done" === i.next,
|
|
628
|
-
(Bs ||
|
|
629
|
-
}), r.length !== 0 && (
|
|
611
|
+
const Bs = i.kind === "done" && m.status === "done" === i.next, Ls = ee.current > i.edgeAtSettle || t !== i.sigAtSettle;
|
|
612
|
+
(Bs || Ls) && (r.push(l), n.push(l));
|
|
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) => {
|
|
630
614
|
te.cancel(i), se.cancel(i);
|
|
631
615
|
}));
|
|
632
616
|
}, ws = (e) => {
|
|
633
617
|
const t = T.current.get(e);
|
|
634
|
-
t && (
|
|
618
|
+
t && (A(
|
|
635
619
|
(s) => s.set(e, {
|
|
636
620
|
...t,
|
|
637
621
|
settled: !0,
|
|
638
622
|
edgeAtSettle: ee.current,
|
|
639
|
-
sigAtSettle:
|
|
623
|
+
sigAtSettle: qe(_.current)
|
|
640
624
|
})
|
|
641
625
|
), it());
|
|
642
626
|
};
|
|
@@ -645,7 +629,7 @@ const En = Ls(
|
|
|
645
629
|
}, [p, hs, w, P]);
|
|
646
630
|
const ct = (e, t, s, r) => {
|
|
647
631
|
const n = e.id;
|
|
648
|
-
|
|
632
|
+
A((m) => m.set(n, t));
|
|
649
633
|
let i;
|
|
650
634
|
try {
|
|
651
635
|
i = s();
|
|
@@ -653,7 +637,7 @@ const En = Ls(
|
|
|
653
637
|
return at(n), { started: !1, result: xe(m) };
|
|
654
638
|
}
|
|
655
639
|
t.leaves && r.leave(n, () => {
|
|
656
|
-
T.current.has(n) &&
|
|
640
|
+
T.current.has(n) && Ae((m) => m.add(n));
|
|
657
641
|
});
|
|
658
642
|
const l = Promise.resolve(i);
|
|
659
643
|
return l.then(
|
|
@@ -668,7 +652,7 @@ const En = Ls(
|
|
|
668
652
|
started: !1,
|
|
669
653
|
result: xe(new Error(`TasksPanel: ${e}`))
|
|
670
654
|
}), ne = (e) => {
|
|
671
|
-
X.current && T.current.has(e) &&
|
|
655
|
+
X.current && T.current.has(e) && A((t) => t.delete(e));
|
|
672
656
|
}, dt = (e, t, s) => {
|
|
673
657
|
let r, n;
|
|
674
658
|
const i = new Promise((l, m) => {
|
|
@@ -721,7 +705,7 @@ const En = Ls(
|
|
|
721
705
|
} catch (l) {
|
|
722
706
|
return { started: !1, result: xe(l) };
|
|
723
707
|
}
|
|
724
|
-
return i instanceof Promise && (
|
|
708
|
+
return i instanceof Promise && (A(
|
|
725
709
|
(l) => l.set(s, {
|
|
726
710
|
kind: "done",
|
|
727
711
|
leaves: n,
|
|
@@ -732,9 +716,9 @@ const En = Ls(
|
|
|
732
716
|
), i.then(
|
|
733
717
|
() => ne(s),
|
|
734
718
|
() => ne(s)
|
|
735
|
-
)), { started: !0, result:
|
|
719
|
+
)), { started: !0, result: mn(i) };
|
|
736
720
|
}
|
|
737
|
-
return
|
|
721
|
+
return A(
|
|
738
722
|
(i) => i.set(s, {
|
|
739
723
|
kind: "done",
|
|
740
724
|
next: r,
|
|
@@ -765,11 +749,11 @@ const En = Ls(
|
|
|
765
749
|
s,
|
|
766
750
|
() => N(e),
|
|
767
751
|
se
|
|
768
|
-
) : (
|
|
752
|
+
) : (A((r) => r.set(t, s)), {
|
|
769
753
|
started: !0,
|
|
770
754
|
result: dt(t, se, () => N(e))
|
|
771
755
|
});
|
|
772
|
-
}, ft =
|
|
756
|
+
}, ft = Me(() => {
|
|
773
757
|
const e = J.current, t = et.current;
|
|
774
758
|
if (!e || !t) {
|
|
775
759
|
e == null || e.scrollTo({ top: 0 });
|
|
@@ -779,8 +763,8 @@ const En = Ls(
|
|
|
779
763
|
e.scrollTo({ top: e.scrollTop + s });
|
|
780
764
|
}, []), ke = v(null);
|
|
781
765
|
Is(Gt, () => ke.current, []);
|
|
782
|
-
const C = v(null), be = v(
|
|
783
|
-
be.current =
|
|
766
|
+
const C = v(null), be = v(_e);
|
|
767
|
+
be.current = _e, G(() => {
|
|
784
768
|
const e = ke.current;
|
|
785
769
|
if (!e) return;
|
|
786
770
|
const t = (r) => {
|
|
@@ -809,7 +793,7 @@ const En = Ls(
|
|
|
809
793
|
return e.addEventListener("focusin", t), e.addEventListener("focusout", s), () => {
|
|
810
794
|
e.removeEventListener("focusin", t), e.removeEventListener("focusout", s);
|
|
811
795
|
};
|
|
812
|
-
}, []),
|
|
796
|
+
}, []), $e(() => {
|
|
813
797
|
const e = C.current, t = ke.current;
|
|
814
798
|
if (!e || !t) return;
|
|
815
799
|
if (e.el.isConnected) {
|
|
@@ -831,9 +815,9 @@ const En = Ls(
|
|
|
831
815
|
toggleDone: (e) => lt(e),
|
|
832
816
|
dismiss: (e) => ut(e),
|
|
833
817
|
onOpenTask: E,
|
|
834
|
-
loadMore:
|
|
818
|
+
loadMore: ze,
|
|
835
819
|
changeScope: Xe,
|
|
836
|
-
commitFilters:
|
|
820
|
+
commitFilters: q,
|
|
837
821
|
serverMode: p
|
|
838
822
|
};
|
|
839
823
|
const Ps = z(() => {
|
|
@@ -868,10 +852,10 @@ const En = Ls(
|
|
|
868
852
|
loadMore: () => e().loadMore()
|
|
869
853
|
};
|
|
870
854
|
}, [ft]);
|
|
871
|
-
Qs(
|
|
855
|
+
Qs(cn, Ps, a);
|
|
872
856
|
const xs = (e) => {
|
|
873
857
|
if (!e.type) return null;
|
|
874
|
-
const t =
|
|
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");
|
|
875
859
|
return /* @__PURE__ */ c(
|
|
876
860
|
$s,
|
|
877
861
|
{
|
|
@@ -883,7 +867,7 @@ const En = Ls(
|
|
|
883
867
|
);
|
|
884
868
|
}, Ss = (e) => S ? null : /* @__PURE__ */ b(we, { children: [
|
|
885
869
|
re ? /* @__PURE__ */ c(
|
|
886
|
-
|
|
870
|
+
He,
|
|
887
871
|
{
|
|
888
872
|
icon: /* @__PURE__ */ c(Zs, {}),
|
|
889
873
|
intent: "ghost",
|
|
@@ -894,7 +878,7 @@ const En = Ls(
|
|
|
894
878
|
}
|
|
895
879
|
) : null,
|
|
896
880
|
N ? /* @__PURE__ */ c(
|
|
897
|
-
|
|
881
|
+
He,
|
|
898
882
|
{
|
|
899
883
|
icon: /* @__PURE__ */ c(en, {}),
|
|
900
884
|
intent: "ghost",
|
|
@@ -907,7 +891,7 @@ const En = Ls(
|
|
|
907
891
|
}
|
|
908
892
|
) : null
|
|
909
893
|
] }), Ts = (e) => {
|
|
910
|
-
const t = (
|
|
894
|
+
const t = (Te == null ? void 0 : Te(e)) ?? null, r = (S ? null : Se == null ? void 0 : Se(e)) ?? Ss(e), n = xs(e);
|
|
911
895
|
if (!(!n && !t && !r))
|
|
912
896
|
return /* @__PURE__ */ b(we, { children: [
|
|
913
897
|
n,
|
|
@@ -923,7 +907,7 @@ const En = Ls(
|
|
|
923
907
|
},
|
|
924
908
|
e
|
|
925
909
|
), vt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: typeof P == "boolean" ? /* @__PURE__ */ c(
|
|
926
|
-
|
|
910
|
+
We,
|
|
927
911
|
{
|
|
928
912
|
variant: "error",
|
|
929
913
|
size: "sm",
|
|
@@ -932,16 +916,16 @@ const En = Ls(
|
|
|
932
916
|
primaryAction: ae ? { label: d("emptyState.error.cta"), onClick: ae } : void 0
|
|
933
917
|
}
|
|
934
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}`)) }), ht = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
935
|
-
|
|
919
|
+
We,
|
|
936
920
|
{
|
|
937
921
|
variant: "first-use",
|
|
938
922
|
size: "sm",
|
|
939
923
|
title: $t ?? d("tasksPanel.empty.title"),
|
|
940
|
-
description:
|
|
924
|
+
description: qt ?? d("tasksPanel.empty.description"),
|
|
941
925
|
primaryAction: Kt
|
|
942
926
|
}
|
|
943
|
-
) }), Es = Object.values(
|
|
944
|
-
|
|
927
|
+
) }), Es = Object.values(W).some(Boolean), gt = /* @__PURE__ */ c("div", { className: "ds:flex-1 ds:min-h-0 ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ c(
|
|
928
|
+
We,
|
|
945
929
|
{
|
|
946
930
|
variant: "no-results",
|
|
947
931
|
size: "sm",
|
|
@@ -952,9 +936,9 @@ const En = Ls(
|
|
|
952
936
|
onClick: ds
|
|
953
937
|
} : void 0
|
|
954
938
|
}
|
|
955
|
-
) }), 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(
|
|
956
|
-
/* @__PURE__ */ c(
|
|
957
|
-
ae ? /* @__PURE__ */ c(
|
|
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
|
+
/* @__PURE__ */ c(Ie.Title, { as: "p", children: d("tasksPanel.error.title") }),
|
|
941
|
+
ae ? /* @__PURE__ */ c(Ie.Action, { children: /* @__PURE__ */ c(Pe, { intent: "outline", size: "sm", onClick: ae, children: d("emptyState.error.cta") }) }) : null
|
|
958
942
|
] }) : P }) : null, yt = /* @__PURE__ */ b(we, { children: [
|
|
959
943
|
Os,
|
|
960
944
|
/* @__PURE__ */ b(
|
|
@@ -968,7 +952,7 @@ const En = Ls(
|
|
|
968
952
|
"data-tasks-panel-region": "",
|
|
969
953
|
"data-fade-top": fs ? "true" : void 0,
|
|
970
954
|
"data-fade-bottom": ms ? "true" : void 0,
|
|
971
|
-
className:
|
|
955
|
+
className: hn,
|
|
972
956
|
children: [
|
|
973
957
|
/* @__PURE__ */ c(
|
|
974
958
|
"ol",
|
|
@@ -981,15 +965,15 @@ const En = Ls(
|
|
|
981
965
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)]",
|
|
982
966
|
children: [
|
|
983
967
|
/* @__PURE__ */ c(
|
|
984
|
-
|
|
968
|
+
En,
|
|
985
969
|
{
|
|
986
970
|
bucketKey: e.key,
|
|
987
971
|
countLabel: Qe(e.items.length),
|
|
988
|
-
showCount: !(p &&
|
|
972
|
+
showCount: !(p && Ee === !0),
|
|
989
973
|
label: Qt[e.key],
|
|
990
974
|
headerRef: e.key === "overdue" ? et : void 0,
|
|
991
975
|
reflowId: `bucket-${e.key}`,
|
|
992
|
-
leaving: e.items.every((t) =>
|
|
976
|
+
leaving: e.items.every((t) => Be(t.id))
|
|
993
977
|
}
|
|
994
978
|
),
|
|
995
979
|
/* @__PURE__ */ c("ul", { className: "ds:m-0 ds:flex ds:list-none ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-0", children: e.items.map((t) => {
|
|
@@ -1002,7 +986,7 @@ const En = Ls(
|
|
|
1002
986
|
onActivate: E ? () => E(t) : void 0,
|
|
1003
987
|
actions: Ts(t),
|
|
1004
988
|
leading: D && !S ? /* @__PURE__ */ c(
|
|
1005
|
-
|
|
989
|
+
kn,
|
|
1006
990
|
{
|
|
1007
991
|
item: t,
|
|
1008
992
|
checked: ((s = F.get(t.id)) == null ? void 0 : s.next) ?? t.status === "done",
|
|
@@ -1014,8 +998,8 @@ const En = Ls(
|
|
|
1014
998
|
onToggle: Rs
|
|
1015
999
|
}
|
|
1016
1000
|
) : void 0,
|
|
1017
|
-
className: `${
|
|
1018
|
-
"data-leaving":
|
|
1001
|
+
className: `${gn} ${At}${Be(t.id) ? ` ${zt}` : ""}`,
|
|
1002
|
+
"data-leaving": Be(t.id) ? "" : void 0,
|
|
1019
1003
|
"data-reflow-id": t.id,
|
|
1020
1004
|
"data-task-id": t.id
|
|
1021
1005
|
},
|
|
@@ -1037,7 +1021,7 @@ const En = Ls(
|
|
|
1037
1021
|
"aria-busy": Y || void 0,
|
|
1038
1022
|
"aria-disabled": Y || void 0,
|
|
1039
1023
|
onClick: () => {
|
|
1040
|
-
Y ||
|
|
1024
|
+
Y || ze();
|
|
1041
1025
|
},
|
|
1042
1026
|
children: d("tasksPanel.loadMore")
|
|
1043
1027
|
}
|
|
@@ -1048,14 +1032,14 @@ const En = Ls(
|
|
|
1048
1032
|
] });
|
|
1049
1033
|
let x;
|
|
1050
1034
|
if (p) {
|
|
1051
|
-
const e = [...F.values()].some((s) => !s.settled), t = !
|
|
1035
|
+
const e = [...F.values()].some((s) => !s.settled), t = !fn(
|
|
1052
1036
|
{
|
|
1053
1037
|
status: O,
|
|
1054
|
-
type:
|
|
1038
|
+
type: M,
|
|
1055
1039
|
assignee: I,
|
|
1056
1040
|
overdueOnly: Je
|
|
1057
1041
|
},
|
|
1058
|
-
|
|
1042
|
+
j
|
|
1059
1043
|
);
|
|
1060
1044
|
P && K.length === 0 ? x = vt : K.length === 0 && (w || e) ? x = Le : K.length === 0 ? x = t ? gt : ht : x = yt;
|
|
1061
1045
|
} else P ? x = vt : w ? x = Le : o.length === 0 ? x = ht : K.length === 0 ? x = gt : x = yt;
|
|
@@ -1063,8 +1047,8 @@ const En = Ls(
|
|
|
1063
1047
|
G(() => {
|
|
1064
1048
|
Ns(kt);
|
|
1065
1049
|
}, [kt]);
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1050
|
+
const js = u === void 0 ? Ne : /* @__PURE__ */ b(we, { children: [
|
|
1051
|
+
Ne,
|
|
1068
1052
|
/* @__PURE__ */ c(
|
|
1069
1053
|
"span",
|
|
1070
1054
|
{
|
|
@@ -1075,8 +1059,8 @@ const En = Ls(
|
|
|
1075
1059
|
}
|
|
1076
1060
|
),
|
|
1077
1061
|
/* @__PURE__ */ c(Gs, { children: ` ${d("tasksPanel.totalCount", { count: u })}` })
|
|
1078
|
-
] }), bt = ((B == null ? void 0 : B.length) ?? 0) > 1,
|
|
1079
|
-
|
|
1062
|
+
] }), bt = ((B == null ? void 0 : B.length) ?? 0) > 1, As = ["todo", "done", "all"], _s = U && !S ? /* @__PURE__ */ c(
|
|
1063
|
+
He,
|
|
1080
1064
|
{
|
|
1081
1065
|
icon: /* @__PURE__ */ c(Xs, {}),
|
|
1082
1066
|
intent: "outline",
|
|
@@ -1085,7 +1069,7 @@ const En = Ls(
|
|
|
1085
1069
|
"data-action": "add-task",
|
|
1086
1070
|
onClick: U
|
|
1087
1071
|
}
|
|
1088
|
-
) : void 0, wt =
|
|
1072
|
+
) : void 0, wt = W.status, Pt = !!(ce != null && ce.length) && W.type, xt = !!(le != null && le.length) && W.assignee, St = W.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: [
|
|
1089
1073
|
bt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.scope.label"), children: B.map((e) => {
|
|
1090
1074
|
const t = es === e;
|
|
1091
1075
|
return /* @__PURE__ */ c(
|
|
@@ -1101,7 +1085,7 @@ const En = Ls(
|
|
|
1101
1085
|
);
|
|
1102
1086
|
}) }) : null,
|
|
1103
1087
|
Tt ? /* @__PURE__ */ b("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
1104
|
-
wt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.status.label"), children:
|
|
1088
|
+
wt ? /* @__PURE__ */ c(Et, { label: d("tasksPanel.status.label"), children: As.map((e) => {
|
|
1105
1089
|
const t = O === e;
|
|
1106
1090
|
return /* @__PURE__ */ c(
|
|
1107
1091
|
Pe,
|
|
@@ -1110,7 +1094,7 @@ const En = Ls(
|
|
|
1110
1094
|
size: "sm",
|
|
1111
1095
|
"aria-pressed": t,
|
|
1112
1096
|
"data-status-filter": e,
|
|
1113
|
-
onClick: () =>
|
|
1097
|
+
onClick: () => q({ status: e }),
|
|
1114
1098
|
children: Yt[e]
|
|
1115
1099
|
},
|
|
1116
1100
|
e
|
|
@@ -1124,8 +1108,8 @@ const En = Ls(
|
|
|
1124
1108
|
"aria-label": d("tasksPanel.type.label"),
|
|
1125
1109
|
placeholder: d("tasksPanel.type.placeholder"),
|
|
1126
1110
|
options: ce,
|
|
1127
|
-
value:
|
|
1128
|
-
onValueChange: (e) =>
|
|
1111
|
+
value: M ?? "",
|
|
1112
|
+
onValueChange: (e) => q({ type: e || null })
|
|
1129
1113
|
}
|
|
1130
1114
|
) : null,
|
|
1131
1115
|
xt ? /* @__PURE__ */ c(
|
|
@@ -1137,7 +1121,7 @@ const En = Ls(
|
|
|
1137
1121
|
placeholder: d("tasksPanel.assignee.placeholder"),
|
|
1138
1122
|
options: le,
|
|
1139
1123
|
value: I ?? "",
|
|
1140
|
-
onValueChange: (e) =>
|
|
1124
|
+
onValueChange: (e) => q({ assignee: e || null })
|
|
1141
1125
|
}
|
|
1142
1126
|
) : null,
|
|
1143
1127
|
St ? /* @__PURE__ */ c(
|
|
@@ -1148,7 +1132,7 @@ const En = Ls(
|
|
|
1148
1132
|
label: d("tasksPanel.overdueOnly"),
|
|
1149
1133
|
checked: Je,
|
|
1150
1134
|
disabled: p && O === "done",
|
|
1151
|
-
onCheckedChange: (e) =>
|
|
1135
|
+
onCheckedChange: (e) => q({ overdueOnly: e })
|
|
1152
1136
|
}
|
|
1153
1137
|
) : null
|
|
1154
1138
|
] }) : null
|
|
@@ -1161,15 +1145,15 @@ const En = Ls(
|
|
|
1161
1145
|
"data-component-id": a,
|
|
1162
1146
|
"aria-labelledby": Ge ? void 0 : Ye,
|
|
1163
1147
|
"aria-label": Ge,
|
|
1164
|
-
className:
|
|
1148
|
+
className: vn({ size: f, className: Vt }),
|
|
1165
1149
|
...Ct,
|
|
1166
1150
|
children: [
|
|
1167
1151
|
/* @__PURE__ */ c(
|
|
1168
|
-
|
|
1152
|
+
qs,
|
|
1169
1153
|
{
|
|
1170
|
-
title:
|
|
1154
|
+
title: js,
|
|
1171
1155
|
titleTooltip: u === void 0 ? void 0 : d("tasksPanel.titleWithCount", {
|
|
1172
|
-
title:
|
|
1156
|
+
title: Ne,
|
|
1173
1157
|
value: Fe.format(u)
|
|
1174
1158
|
}),
|
|
1175
1159
|
icon: k ?? /* @__PURE__ */ c(Js, {}),
|
|
@@ -1185,8 +1169,8 @@ const En = Ls(
|
|
|
1185
1169
|
);
|
|
1186
1170
|
}
|
|
1187
1171
|
);
|
|
1188
|
-
|
|
1189
|
-
function
|
|
1172
|
+
Rn.displayName = "TasksPanel";
|
|
1173
|
+
function En({
|
|
1190
1174
|
bucketKey: a,
|
|
1191
1175
|
countLabel: o,
|
|
1192
1176
|
showCount: h = !0,
|
|
@@ -1208,7 +1192,7 @@ function On({
|
|
|
1208
1192
|
// A header travels with its bucket, and leaves with it: a heading
|
|
1209
1193
|
// left standing over nothing, or snapping while its rows glide,
|
|
1210
1194
|
// reads as two lists rather than one.
|
|
1211
|
-
|
|
1195
|
+
At,
|
|
1212
1196
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
1213
1197
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
|
|
1214
1198
|
f ? zt : "",
|
|
@@ -1236,7 +1220,7 @@ function On({
|
|
|
1236
1220
|
);
|
|
1237
1221
|
}
|
|
1238
1222
|
export {
|
|
1239
|
-
|
|
1240
|
-
|
|
1223
|
+
Rn as T,
|
|
1224
|
+
cn as t
|
|
1241
1225
|
};
|
|
1242
|
-
//# sourceMappingURL=tasks-panel-
|
|
1226
|
+
//# sourceMappingURL=tasks-panel-DbtJS4QI.js.map
|