@alfadocs/ui-kit 0.65.0 → 0.67.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/{agenda-card-Bl-SBiCh.js → agenda-card-BxSFkqgY.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-JnlTqfS4.js → ai-tools-rail-DfmewPUN.js} +92 -76
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
- package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-CQJ3Nbi5.js} +4 -4
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-CjsB9bM-.js} +3 -3
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-n-823_1V.js} +3 -3
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-CJei-nl9.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-EmfrbHu8.js} +4 -4
- package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
- package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-B7xsn6tX.js} +186 -167
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-BF0ointe.js} +3 -3
- package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
- package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js → due-date-calculator-DU9AEWNy.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-BVJ04DkB.js} +914 -865
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-BVSzOhuR.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-DBlFdoiP.js} +4 -4
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-if4Q8aSX.js} +3 -3
- package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
- package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Bu-HD3fy.js} +3 -3
- package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
- package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
- package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
- package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
- package/dist/_chunks/{patient-shell-CF_qon7C.js → patient-shell-DrV_iekt.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-ByfIU8N0.js} +4 -4
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-yTjzKQCU.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
- package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js → pregnancy-dating-QY-sqpvj.js} +4 -4
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-DOJXXNYP.js} +3 -3
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js +1970 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-eccd_Uf-.js} +38 -28
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-CGjIk_FQ.js} +36 -22
- package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
- package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
- package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
- package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-BrW8P50O.js} +19 -19
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-JAZryZJr.js} +137 -149
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/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/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +16 -0
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts +12 -0
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.js +13 -12
- package/dist/components/data-table/toolbar.d.ts +5 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/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/operator-hero/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +36 -2
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +26 -0
- package/dist/i18n/locales/ar.js +27 -1
- package/dist/i18n/locales/de.d.ts +26 -0
- package/dist/i18n/locales/de.js +27 -1
- package/dist/i18n/locales/el.d.ts +26 -0
- package/dist/i18n/locales/el.js +27 -1
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/en.js +27 -1
- package/dist/i18n/locales/es.d.ts +26 -0
- package/dist/i18n/locales/es.js +27 -1
- package/dist/i18n/locales/fr.d.ts +26 -0
- package/dist/i18n/locales/fr.js +27 -1
- package/dist/i18n/locales/hi.d.ts +26 -0
- package/dist/i18n/locales/hi.js +27 -1
- package/dist/i18n/locales/it.d.ts +26 -0
- package/dist/i18n/locales/it.js +27 -1
- package/dist/i18n/locales/ja.d.ts +26 -0
- package/dist/i18n/locales/ja.js +27 -1
- package/dist/i18n/locales/nl.d.ts +26 -0
- package/dist/i18n/locales/nl.js +25 -1
- package/dist/i18n/locales/pl.d.ts +26 -0
- package/dist/i18n/locales/pl.js +27 -1
- package/dist/i18n/locales/pt.d.ts +26 -0
- package/dist/i18n/locales/pt.js +27 -1
- package/dist/i18n/locales/ro.d.ts +26 -0
- package/dist/i18n/locales/ro.js +27 -1
- package/dist/i18n/locales/ru.d.ts +26 -0
- package/dist/i18n/locales/ru.js +27 -1
- package/dist/i18n/locales/sq.d.ts +26 -0
- package/dist/i18n/locales/sq.js +27 -1
- package/dist/i18n/locales/sv.d.ts +26 -0
- package/dist/i18n/locales/sv.js +25 -1
- package/dist/i18n/locales/tr.d.ts +26 -0
- package/dist/i18n/locales/tr.js +27 -1
- package/dist/i18n/locales/zh.d.ts +26 -0
- package/dist/i18n/locales/zh.js +25 -1
- package/dist/index.js +509 -508
- package/dist/locales/ar.json +27 -1
- package/dist/locales/de.json +27 -1
- package/dist/locales/el.json +27 -1
- package/dist/locales/en.json +27 -1
- package/dist/locales/es.json +27 -1
- package/dist/locales/fr.json +27 -1
- package/dist/locales/hi.json +27 -1
- package/dist/locales/it.json +27 -1
- package/dist/locales/ja.json +27 -1
- package/dist/locales/nl.json +27 -1
- package/dist/locales/pl.json +27 -1
- package/dist/locales/pt.json +27 -1
- package/dist/locales/ro.json +27 -1
- package/dist/locales/ru.json +27 -1
- package/dist/locales/sq.json +27 -1
- package/dist/locales/sv.json +27 -1
- package/dist/locales/tr.json +27 -1
- package/dist/locales/zh.json +27 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +0 -1190
package/dist/agent-catalog.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e } from "../../_chunks/agenda-card-
|
|
1
|
+
import { A as e } from "../../_chunks/agenda-card-BxSFkqgY.js";
|
|
2
2
|
import { a as d } from "../../_chunks/agenda-card.agent-B_R47-c9.js";
|
|
3
3
|
import { i as g } from "../../_chunks/is-safe-url-DkETxeHz.js";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as n, a as p, b as e, c as o } from "../../_chunks/appointment-tray-
|
|
1
|
+
import { A as n, a as p, b as e, c as o } from "../../_chunks/appointment-tray-CQJ3Nbi5.js";
|
|
2
2
|
import { i } from "../../_chunks/is-safe-url-DkETxeHz.js";
|
|
3
3
|
export {
|
|
4
4
|
n as AppointmentCard,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as m } from "../../_chunks/bmi-calculator-
|
|
1
|
+
import { B as m } from "../../_chunks/bmi-calculator-n-823_1V.js";
|
|
2
2
|
import { b as e, a as t, c as r, d as T, e as c, f as i, i as b, k as n, l as f } from "../../_chunks/bmi-BxD-tFzU.js";
|
|
3
3
|
export {
|
|
4
4
|
m as BmiCalculator,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-
|
|
1
|
+
import { C as _, a as O, b as o, c as r } from "../../_chunks/contact-profile-card-7BMB85T6.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as CONTACT_PROFILE_CARD_ROW_ICONS,
|
|
4
4
|
O as CONTACT_PROFILE_CARD_ROW_KEYS,
|
|
@@ -18,6 +18,22 @@ export interface ActionDef<TData = unknown> {
|
|
|
18
18
|
}
|
|
19
19
|
export interface ActionsCellRendererParams<TData = unknown> {
|
|
20
20
|
actions: ActionDef<TData>[];
|
|
21
|
+
/** Intent of the inline buttons / the collapsed trigger (default `ghost`). */
|
|
22
|
+
intent?: 'ghost' | 'outline';
|
|
23
|
+
/**
|
|
24
|
+
* Render the inline buttons as a connected `IconButtonGroup` (a segmented
|
|
25
|
+
* control) rather than a loose row. Requires `label` for the group name.
|
|
26
|
+
*/
|
|
27
|
+
group?: boolean;
|
|
28
|
+
/** Accessible name for the group and the collapsed overflow trigger. */
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Collapse the actions into a single "…" overflow menu instead of inline
|
|
32
|
+
* buttons. Pass a getter to flip it at runtime — call
|
|
33
|
+
* `api.refreshCells({ force: true })` after the underlying value changes so
|
|
34
|
+
* the cells re-read it (this preserves column state, unlike rebuilding defs).
|
|
35
|
+
*/
|
|
36
|
+
collapsed?: boolean | (() => boolean);
|
|
21
37
|
}
|
|
22
38
|
export declare function ActionsCellRenderer<TData = unknown>(props: CustomCellRendererProps<TData> & ActionsCellRendererParams<TData>): import("react/jsx-runtime").JSX.Element | null;
|
|
23
39
|
//# sourceMappingURL=actions-cell-renderer.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CustomCellRendererProps } from 'ag-grid-react';
|
|
2
|
+
export interface ToothCellRendererParams {
|
|
3
|
+
/** Max inline size of the chip before its label truncates (with a tooltip). */
|
|
4
|
+
maxInlineSize?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Renders an array of tooth ids (FDI notation) as a single outlined Tag — the
|
|
8
|
+
* teeth comma-separated and prefixed with a tooth glyph, so dentition reads at
|
|
9
|
+
* a glance instead of as bare numbers.
|
|
10
|
+
*/
|
|
11
|
+
export declare function ToothCellRenderer(props: CustomCellRendererProps<unknown, string[]> & ToothCellRendererParams): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=tooth-cell-renderer.d.ts.map
|
|
@@ -78,7 +78,7 @@ export declare const DataTable: (<TData = unknown>(props: DataTableProps<TData>
|
|
|
78
78
|
label?: string;
|
|
79
79
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
80
80
|
ColumnToggle: {
|
|
81
|
-
({ label }: import("./toolbar").ColumnToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
81
|
+
({ label, icon, footer }: import("./toolbar").ColumnToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
82
82
|
displayName: string;
|
|
83
83
|
};
|
|
84
84
|
BulkAction: import("react").ForwardRefExoticComponent<import("./toolbar").BulkActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -22,6 +22,8 @@ export { ImageCellRenderer } from './cell-renderers/image-cell-renderer';
|
|
|
22
22
|
export type { ImageCellRendererParams } from './cell-renderers/image-cell-renderer';
|
|
23
23
|
export { TagListCellRenderer } from './cell-renderers/tag-list-cell-renderer';
|
|
24
24
|
export type { TagListCellRendererParams } from './cell-renderers/tag-list-cell-renderer';
|
|
25
|
+
export { ToothCellRenderer } from './cell-renderers/tooth-cell-renderer';
|
|
26
|
+
export type { ToothCellRendererParams } from './cell-renderers/tooth-cell-renderer';
|
|
25
27
|
export { DateCellRenderer } from './cell-renderers/date-cell-renderer';
|
|
26
28
|
export type { DateCellFormat, DateCellRendererParams, } from './cell-renderers/date-cell-renderer';
|
|
27
29
|
export { CurrencyCellRenderer } from './cell-renderers/currency-cell-renderer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as l, B as r, C as t, a as s, D as n, b as d, c as
|
|
1
|
+
import { A as l, B as r, C as t, a as s, D as n, b as d, c as o, d as i, E as C, e as R, I as F, L as T, N as g, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as h, m as y, n as E, o as S, p as A, U as L, q as N, r as k, u as B } from "../../_chunks/editable-currency-cell-renderer-BVJ04DkB.js";
|
|
2
2
|
export {
|
|
3
3
|
l as ActionsCellRenderer,
|
|
4
4
|
r as BalanceCellRenderer,
|
|
@@ -6,13 +6,13 @@ export {
|
|
|
6
6
|
s as CurrencyCellRenderer,
|
|
7
7
|
n as DataTable,
|
|
8
8
|
d as DateCellRenderer,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
o as DateRangeFilter,
|
|
10
|
+
i as DateRangeFloatingFilter,
|
|
11
11
|
C as EditableCurrencyCellRenderer,
|
|
12
12
|
R as EditableTextCellRenderer,
|
|
13
13
|
F as ImageCellRenderer,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
T as LinkCellRenderer,
|
|
15
|
+
g as NumberFilter,
|
|
16
16
|
b as NumberFloatingFilter,
|
|
17
17
|
u as SelectFilter,
|
|
18
18
|
c as SelectFloatingFilter,
|
|
@@ -21,13 +21,14 @@ export {
|
|
|
21
21
|
p as TextFilter,
|
|
22
22
|
x as TextFloatingFilter,
|
|
23
23
|
f as ToggleCellRenderer,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
h as Toolbar,
|
|
25
|
+
y as ToolbarProvider,
|
|
26
|
+
E as ToothCellRenderer,
|
|
26
27
|
S as TypeaheadFilter,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
A as TypeaheadFloatingFilter,
|
|
29
|
+
L as UserCellRenderer,
|
|
30
|
+
N as dataTableAgent,
|
|
31
|
+
k as defaultExportPdf,
|
|
32
|
+
B as useTotalRow
|
|
32
33
|
};
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -82,6 +82,10 @@ export interface ExportMenuProps {
|
|
|
82
82
|
}
|
|
83
83
|
export interface ColumnToggleProps {
|
|
84
84
|
label?: string;
|
|
85
|
+
/** Override the trigger glyph (defaults to the Columns icon). */
|
|
86
|
+
icon?: ReactNode;
|
|
87
|
+
/** Extra content rendered below the column list (e.g. a settings switch). */
|
|
88
|
+
footer?: ReactNode;
|
|
85
89
|
}
|
|
86
90
|
export interface BulkActionProps extends Omit<ButtonProps, 'onClick' | 'children' | 'startIcon' | 'intent'> {
|
|
87
91
|
label: string;
|
|
@@ -101,7 +105,7 @@ export declare const Toolbar: import("react").ForwardRefExoticComponent<ToolbarR
|
|
|
101
105
|
label?: string;
|
|
102
106
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
103
107
|
ColumnToggle: {
|
|
104
|
-
({ label }: ColumnToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
108
|
+
({ label, icon, footer }: ColumnToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
105
109
|
displayName: string;
|
|
106
110
|
};
|
|
107
111
|
BulkAction: import("react").ForwardRefExoticComponent<BulkActionProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e } from "../../_chunks/due-date-calculator-
|
|
2
|
-
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-
|
|
1
|
+
import { D as e } from "../../_chunks/due-date-calculator-DU9AEWNy.js";
|
|
2
|
+
import { C as r, a as o, D, G as _, M as T, T as M, c as E, b as l, g as C, p as A, r as N, d as i, t as n } from "../../_chunks/antenatal-schedule-timeline-35ebkcZT.js";
|
|
3
3
|
export {
|
|
4
4
|
r as CRL_DATING_MAX_MM,
|
|
5
5
|
o as CRL_DATING_MIN_MM,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as a } from "../../_chunks/message-card-
|
|
1
|
+
import { M as a } from "../../_chunks/message-card-Bx4GmLvf.js";
|
|
2
2
|
import { m as o } from "../../_chunks/message-card.agent-4IeIgrnJ.js";
|
|
3
3
|
import { i as f } from "../../_chunks/is-safe-url-DkETxeHz.js";
|
|
4
4
|
export {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
1
2
|
export type EditorToolbarPreset = 'minimal' | 'standard' | 'full';
|
|
2
3
|
export interface EditorToolbarProps {
|
|
3
4
|
/** Dispatch a Redactor command (and refresh active state). */
|
|
@@ -5,12 +6,45 @@ export interface EditorToolbarProps {
|
|
|
5
6
|
/** Active formats at the caret — toggle buttons render pressed. */
|
|
6
7
|
active: ReadonlySet<string>;
|
|
7
8
|
preset: EditorToolbarPreset;
|
|
8
|
-
/**
|
|
9
|
+
/** Insert sanitised HTML at the caret (link / image / table). */
|
|
10
|
+
insertHtml: (html: string) => void;
|
|
11
|
+
/** Insert a table — list-aware (drops it after a list, never inside an <li>). */
|
|
12
|
+
insertTable: (html: string) => void;
|
|
13
|
+
/** Save the editor selection before a DS popover/dialog takes focus. */
|
|
14
|
+
saveSelection: () => void;
|
|
15
|
+
/** Restore the saved selection before applying. */
|
|
16
|
+
restoreSelection: () => void;
|
|
17
|
+
/** Current selected text — prefills the link dialog's text field. */
|
|
18
|
+
getSelectedText: () => string;
|
|
19
|
+
/** Upload an image file and resolve its URL (image dialog's upload area). */
|
|
20
|
+
uploadImage?: (file: File, signal?: AbortSignal) => Promise<string>;
|
|
21
|
+
/** Show the text-colour control. */
|
|
9
22
|
enableColor?: boolean;
|
|
10
23
|
/** Show the image control (consumer set an image-upload URL). */
|
|
11
24
|
enableImage?: boolean;
|
|
12
25
|
/** Show the table control (consumer loaded the table plugin). */
|
|
13
26
|
enableTable?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Show an "Editor extensions" tools affordance (marketplace tools), placed
|
|
29
|
+
* inline at the end of the toolbar. Currently a visual placeholder — not
|
|
30
|
+
* wired to a menu.
|
|
31
|
+
*/
|
|
32
|
+
showExtensions?: boolean;
|
|
14
33
|
}
|
|
15
|
-
export
|
|
34
|
+
export interface TableFloatingToolbarProps {
|
|
35
|
+
active: ReadonlySet<string>;
|
|
36
|
+
run: EditorToolbarProps['run'];
|
|
37
|
+
/** Positioned container the bar is absolutely placed within. */
|
|
38
|
+
areaRef: RefObject<HTMLDivElement | null>;
|
|
39
|
+
/** The <table> the caret is currently inside (relative to this editor). */
|
|
40
|
+
getActiveTableEl: () => HTMLElement | null;
|
|
41
|
+
/** Show the cell/row background-colour controls (fontcolor plugin loaded). */
|
|
42
|
+
enableColor?: boolean;
|
|
43
|
+
/** Snapshot the current cell before a colour popover takes focus. */
|
|
44
|
+
saveTableCell: () => void;
|
|
45
|
+
/** Set/clear a background colour on the current cell or its row. */
|
|
46
|
+
applyTableBackground: (scope: 'cell' | 'row', colour: string | null) => void;
|
|
47
|
+
}
|
|
48
|
+
export declare function TableFloatingToolbar({ active, run, areaRef, getActiveTableEl, enableColor, saveTableCell, applyTableBackground, }: TableFloatingToolbarProps): React.JSX.Element | null;
|
|
49
|
+
export declare function EditorToolbar({ run, active, preset, insertHtml, insertTable, saveSelection, restoreSelection, getSelectedText, uploadImage, enableColor, enableImage, enableTable, showExtensions, }: EditorToolbarProps): React.JSX.Element;
|
|
16
50
|
//# sourceMappingURL=editor-toolbar.d.ts.map
|
|
@@ -24,6 +24,8 @@ export interface RichTextEditorProps {
|
|
|
24
24
|
ariaLabel?: string;
|
|
25
25
|
/** Size variant for the minimum block-size of the editing region. */
|
|
26
26
|
minHeight?: 'sm' | 'md' | 'lg';
|
|
27
|
+
/** Show a right-aligned editor-extensions affordance (visual placeholder). */
|
|
28
|
+
showExtensions?: boolean;
|
|
27
29
|
/** Extra class names on the wrapper. */
|
|
28
30
|
className?: string;
|
|
29
31
|
/** Inject the Redactor factory explicitly; else `window.$R` / `window.Redactor`. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-
|
|
1
|
+
import { S as r, a as i, b as s, c as d, d as S, e as b, f as t, g as o, h as m, i as n, j as p, k as l, l as c, m as g, n as u, o as I, p as P, q as f, s as h, u as B } from "../../_chunks/sidebar-CGjIk_FQ.js";
|
|
2
2
|
import { u as k } from "../../_chunks/use-persistent-state-i23OWy6G.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Sidebar,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-
|
|
1
|
+
import { C as r, W as e, a as s, b as d, c as w, i as t, l as f, m as l, r as i, w as k, d as n, e as A, f as C } from "../../_chunks/workflow-map-JAZryZJr.js";
|
|
2
2
|
export {
|
|
3
3
|
r as CORE_PATIENT_FIELDS,
|
|
4
4
|
e as WorkflowCard,
|
|
@@ -1660,12 +1660,15 @@ export declare const arUi: {
|
|
|
1660
1660
|
readonly bold: "غامق";
|
|
1661
1661
|
readonly italic: "مائل";
|
|
1662
1662
|
readonly strike: "يتوسطه خط";
|
|
1663
|
+
readonly underline: "تسطير";
|
|
1663
1664
|
readonly format: "نمط الفقرة";
|
|
1664
1665
|
readonly paragraph: "فقرة";
|
|
1665
1666
|
readonly heading2: "عنوان 2";
|
|
1666
1667
|
readonly heading3: "عنوان 3";
|
|
1667
1668
|
readonly textColor: "لون النص";
|
|
1669
|
+
readonly highlightColor: "تمييز";
|
|
1668
1670
|
readonly color: {
|
|
1671
|
+
readonly apply: "تطبيق";
|
|
1669
1672
|
readonly default: "افتراضي";
|
|
1670
1673
|
readonly violet: "بنفسجي";
|
|
1671
1674
|
readonly magenta: "أرجواني";
|
|
@@ -1675,8 +1678,17 @@ export declare const arUi: {
|
|
|
1675
1678
|
readonly red: "أحمر";
|
|
1676
1679
|
readonly remove: "إزالة اللون";
|
|
1677
1680
|
};
|
|
1681
|
+
readonly highlight: {
|
|
1682
|
+
readonly remove: "إزالة التمييز";
|
|
1683
|
+
};
|
|
1678
1684
|
readonly heading: "عنوان";
|
|
1685
|
+
readonly extensions: "إضافات المحرر";
|
|
1679
1686
|
readonly link: {
|
|
1687
|
+
readonly url: "URL";
|
|
1688
|
+
readonly text: "النص المعروض";
|
|
1689
|
+
readonly textPlaceholder: "نص الرابط";
|
|
1690
|
+
readonly newTab: "فتح في علامة تبويب جديدة";
|
|
1691
|
+
readonly insertAction: "إدراج";
|
|
1680
1692
|
readonly insert: "إدراج رابط";
|
|
1681
1693
|
readonly edit: "تعديل الرابط";
|
|
1682
1694
|
readonly remove: "إزالة الرابط";
|
|
@@ -1687,9 +1699,19 @@ export declare const arUi: {
|
|
|
1687
1699
|
};
|
|
1688
1700
|
readonly quote: "اقتباس";
|
|
1689
1701
|
readonly image: {
|
|
1702
|
+
readonly url: "رابط الصورة";
|
|
1703
|
+
readonly alt: "نص بديل";
|
|
1704
|
+
readonly altPlaceholder: "صف الصورة";
|
|
1705
|
+
readonly upload: "رفع";
|
|
1706
|
+
readonly orUrl: "أو ألصق رابط صورة";
|
|
1690
1707
|
readonly insert: "إدراج صورة";
|
|
1691
1708
|
};
|
|
1692
1709
|
readonly table: {
|
|
1710
|
+
readonly addHeader: "إضافة صف رأس";
|
|
1711
|
+
readonly deleteHeader: "إزالة صف الرأس";
|
|
1712
|
+
readonly sizePicker: "حجم الجدول";
|
|
1713
|
+
readonly sizeCell: "{{r}}×{{c}}";
|
|
1714
|
+
readonly sizeHint: "اختر الحجم";
|
|
1693
1715
|
readonly insert: "إدراج جدول";
|
|
1694
1716
|
readonly rowAbove: "إضافة صف أعلى";
|
|
1695
1717
|
readonly rowBelow: "إضافة صف أسفل";
|
|
@@ -1698,6 +1720,10 @@ export declare const arUi: {
|
|
|
1698
1720
|
readonly deleteRow: "حذف الصف";
|
|
1699
1721
|
readonly deleteColumn: "حذف العمود";
|
|
1700
1722
|
readonly deleteTable: "حذف الجدول";
|
|
1723
|
+
readonly toolbar: "أدوات الجدول";
|
|
1724
|
+
readonly cellColor: "لون الخلية";
|
|
1725
|
+
readonly rowColor: "لون الصف";
|
|
1726
|
+
readonly clearColor: "إزالة اللون";
|
|
1701
1727
|
};
|
|
1702
1728
|
readonly codeBlock: "كتلة كود";
|
|
1703
1729
|
readonly horizontalRule: "خط أفقي";
|
package/dist/i18n/locales/ar.js
CHANGED
|
@@ -1643,12 +1643,15 @@ const e = {
|
|
|
1643
1643
|
bold: "غامق",
|
|
1644
1644
|
italic: "مائل",
|
|
1645
1645
|
strike: "يتوسطه خط",
|
|
1646
|
+
underline: "تسطير",
|
|
1646
1647
|
format: "نمط الفقرة",
|
|
1647
1648
|
paragraph: "فقرة",
|
|
1648
1649
|
heading2: "عنوان 2",
|
|
1649
1650
|
heading3: "عنوان 3",
|
|
1650
1651
|
textColor: "لون النص",
|
|
1652
|
+
highlightColor: "تمييز",
|
|
1651
1653
|
color: {
|
|
1654
|
+
apply: "تطبيق",
|
|
1652
1655
|
default: "افتراضي",
|
|
1653
1656
|
violet: "بنفسجي",
|
|
1654
1657
|
magenta: "أرجواني",
|
|
@@ -1658,8 +1661,17 @@ const e = {
|
|
|
1658
1661
|
red: "أحمر",
|
|
1659
1662
|
remove: "إزالة اللون"
|
|
1660
1663
|
},
|
|
1664
|
+
highlight: {
|
|
1665
|
+
remove: "إزالة التمييز"
|
|
1666
|
+
},
|
|
1661
1667
|
heading: "عنوان",
|
|
1668
|
+
extensions: "إضافات المحرر",
|
|
1662
1669
|
link: {
|
|
1670
|
+
url: "URL",
|
|
1671
|
+
text: "النص المعروض",
|
|
1672
|
+
textPlaceholder: "نص الرابط",
|
|
1673
|
+
newTab: "فتح في علامة تبويب جديدة",
|
|
1674
|
+
insertAction: "إدراج",
|
|
1663
1675
|
insert: "إدراج رابط",
|
|
1664
1676
|
edit: "تعديل الرابط",
|
|
1665
1677
|
remove: "إزالة الرابط"
|
|
@@ -1670,9 +1682,19 @@ const e = {
|
|
|
1670
1682
|
},
|
|
1671
1683
|
quote: "اقتباس",
|
|
1672
1684
|
image: {
|
|
1685
|
+
url: "رابط الصورة",
|
|
1686
|
+
alt: "نص بديل",
|
|
1687
|
+
altPlaceholder: "صف الصورة",
|
|
1688
|
+
upload: "رفع",
|
|
1689
|
+
orUrl: "أو ألصق رابط صورة",
|
|
1673
1690
|
insert: "إدراج صورة"
|
|
1674
1691
|
},
|
|
1675
1692
|
table: {
|
|
1693
|
+
addHeader: "إضافة صف رأس",
|
|
1694
|
+
deleteHeader: "إزالة صف الرأس",
|
|
1695
|
+
sizePicker: "حجم الجدول",
|
|
1696
|
+
sizeCell: "{{r}}×{{c}}",
|
|
1697
|
+
sizeHint: "اختر الحجم",
|
|
1676
1698
|
insert: "إدراج جدول",
|
|
1677
1699
|
rowAbove: "إضافة صف أعلى",
|
|
1678
1700
|
rowBelow: "إضافة صف أسفل",
|
|
@@ -1680,7 +1702,11 @@ const e = {
|
|
|
1680
1702
|
columnRight: "إضافة عمود إلى اليمين",
|
|
1681
1703
|
deleteRow: "حذف الصف",
|
|
1682
1704
|
deleteColumn: "حذف العمود",
|
|
1683
|
-
deleteTable: "حذف الجدول"
|
|
1705
|
+
deleteTable: "حذف الجدول",
|
|
1706
|
+
toolbar: "أدوات الجدول",
|
|
1707
|
+
cellColor: "لون الخلية",
|
|
1708
|
+
rowColor: "لون الصف",
|
|
1709
|
+
clearColor: "إزالة اللون"
|
|
1684
1710
|
},
|
|
1685
1711
|
codeBlock: "كتلة كود",
|
|
1686
1712
|
horizontalRule: "خط أفقي",
|