aristid-ds 20.0.0 → 20.2.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/CHANGELOG.md +129 -0
- package/dist/Kit/App/index.js +1 -1
- package/dist/Kit/DataDisplay/Avatar/index.js +1 -1
- package/dist/Kit/DataDisplay/Badge/index.js +1 -1
- package/dist/Kit/DataDisplay/Card/index.js +1 -1
- package/dist/Kit/DataDisplay/Carousel/index.js +1 -1
- package/dist/Kit/DataDisplay/Comment/index.js +1 -1
- package/dist/Kit/DataDisplay/Empty/index.js +1 -1
- package/dist/Kit/DataDisplay/Error/index.js +1 -1
- package/dist/Kit/DataDisplay/IdCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/Kanban/KanbanCard.d.ts +12 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanColumn.d.ts +20 -0
- package/dist/Kit/DataDisplay/Kanban/KanbanItem.d.ts +14 -0
- package/dist/Kit/DataDisplay/Kanban/index.d.ts +8 -0
- package/dist/Kit/DataDisplay/Kanban/index.js +1 -0
- package/dist/Kit/DataDisplay/Kanban/types.d.ts +114 -0
- package/dist/Kit/DataDisplay/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Tab/TabDropdownButton.d.ts +7 -0
- package/dist/Kit/DataDisplay/Tab/index.d.ts +6 -1
- package/dist/Kit/DataDisplay/Tab/index.js +1 -1
- package/dist/Kit/DataDisplay/Tab/types.d.ts +8 -0
- package/dist/Kit/DataDisplay/Table/KitTableExpandButton.d.ts +2 -1
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/types.d.ts +12 -1
- package/dist/Kit/DataDisplay/ToolBar/index.d.ts +3 -0
- package/dist/Kit/DataDisplay/ToolBar/index.js +1 -0
- package/dist/Kit/DataDisplay/ToolBar/types.d.ts +11 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +2 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/DatePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/preset/useActiveDatePickerPreset.d.ts +1 -1
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +2 -0
- package/dist/Kit/DataEntry/Filter/FilterButton.d.ts +1 -2
- package/dist/Kit/DataEntry/Filter/index.js +1 -1
- package/dist/Kit/DataEntry/Filter/types.d.ts +19 -3
- package/dist/Kit/DataEntry/Input/index.js +1 -1
- package/dist/Kit/DataEntry/Input/types.d.ts +1 -0
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +1 -0
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +1 -1
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/FontSizeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.d.ts +3 -3
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +28 -18
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/types.d.ts +4 -0
- package/dist/Kit/DataEntry/RichText/MenuBar/ShowMoreButton.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.d.ts +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/types.d.ts +2 -0
- package/dist/Kit/DataEntry/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/LoadingSuffix.d.ts +2 -0
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/useIcons.d.ts +4 -2
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +5 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/index.js +1 -1
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Navigation/DropDown/index.js +52 -38
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/index.d.ts +4 -0
- package/dist/Kit/index.js +62 -60
- package/dist/assets/App.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ColorPicker.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Filter.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/Kanban.css +1 -0
- package/dist/assets/LoadingSuffix.css +1 -0
- package/dist/assets/MenuBar.css +1 -1
- package/dist/assets/RichText.css +1 -1
- package/dist/assets/SideMenu.css +1 -1
- package/dist/assets/Tab.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/ToolBar.css +1 -0
- package/dist/assets/icons/loader/faKitLoader.d.ts +2 -0
- package/dist/chunks/{Alert.CQaVbuFR.js → Alert.CHcxwc-7.js} +2 -2
- package/dist/chunks/{App.D0rw9orm.js → App.DEAyG_cT.js} +4 -4
- package/dist/chunks/{Avatar.BHlNyW0q.js → Avatar.CHhPAXNx.js} +1 -1
- package/dist/chunks/{Avatar.DysCcyLq.js → Avatar.CPy-hK8w.js} +1 -1
- package/dist/chunks/{Badge.B__O4nmc.js → Badge.tu17MdMt.js} +1 -1
- package/dist/chunks/Button.Cf2t8x-g.js +152 -0
- package/dist/chunks/{Card.Cq08rN_s.js → Card.BifWds4Q.js} +1 -1
- package/dist/chunks/{Carousel.BlbPUDYo.js → Carousel.D_UPa7c6.js} +2 -1
- package/dist/chunks/{Checkbox.CklNShKc.js → Checkbox.C0E-Lf9F.js} +1 -1
- package/dist/chunks/{ColorPicker.gPY0qyUV.js → ColorPicker.CXPDOjlD.js} +5 -5
- package/dist/chunks/{Comment.DmUzK6J4.js → Comment.D3uQOVRA.js} +1 -1
- package/dist/chunks/DatePicker.CZ7uUpci.js +283 -0
- package/dist/chunks/{DynamicActions.DK0mupe6.js → DynamicActions.B0RCwP59.js} +1 -1
- package/dist/chunks/{Empty.kPH-hJ9V.js → Empty.C_H88Lwp.js} +1 -1
- package/dist/chunks/{Error.CYRnZXNg.js → Error.DtFtGSNd.js} +1 -1
- package/dist/chunks/Filter.bcFfECQ2.js +91 -0
- package/dist/chunks/{FontSizeSelect.CFAIqibs.js → FontSizeSelect.BEujUTOk.js} +1 -1
- package/dist/chunks/{Header.C7xrnZDI.js → Header.CjmOOvCM.js} +3 -3
- package/dist/chunks/{Icon.DRPmn7dQ.js → Icon.DbHbt0HM.js} +1 -1
- package/dist/chunks/{IdCard.Dx6_WU3t.js → IdCard.DcdzxJ6s.js} +1 -1
- package/dist/chunks/{Input.CNLvspAE.js → Input.NJ0gxOKB.js} +201 -177
- package/dist/chunks/InputNumber.ArmZWyjD.js +59 -0
- package/dist/chunks/{InputWrapper.DXw2Vcpa.js → InputWrapper.UG5UbUiq.js} +1 -1
- package/dist/chunks/{InternalSizeChanger.CvYkvotd.js → InternalSizeChanger.4uhUYdQf.js} +2 -2
- package/dist/chunks/{ItemCard.CyPAPDy2.js → ItemCard.I_EZWDr7.js} +4 -4
- package/dist/chunks/{ItemList.Cy8wRu3i.js → ItemList.ZRUcXI2B.js} +4 -4
- package/dist/chunks/Kanban.DlRMF3Pf.js +478 -0
- package/dist/chunks/{LinkButton.CzpCbe5U.js → LinkButton.VSCUoTOf.js} +3 -3
- package/dist/chunks/LoadingSuffix.DoHzo7nz.js +13 -0
- package/dist/chunks/MenuBar.BKo3YUWL.js +86 -0
- package/dist/chunks/{Modal.Bi8z9VE0.js → Modal.BGfgvCM-.js} +5 -5
- package/dist/chunks/{Notification.BrJDgjWr.js → Notification.BvB2WQpw.js} +4 -4
- package/dist/chunks/{PageHeader.CLKSCN4a.js → PageHeader.CK5neQHJ.js} +3 -3
- package/dist/chunks/{PageLayout.D4BnVUAq.js → PageLayout.CypWl6mK.js} +2 -2
- package/dist/chunks/{Pagination.Dqci6TDr.js → Pagination.D2RZjMJN.js} +1 -1
- package/dist/chunks/{Progress.DIpbT4Go.js → Progress.DGZSgm84.js} +1 -1
- package/dist/chunks/{Radio.Cik5u8WU.js → Radio.BpOV2_Ga.js} +1 -1
- package/dist/chunks/{Rate.DOR2Ky6x.js → Rate.ClZk2tCh.js} +1 -1
- package/dist/chunks/{RedirectCard.C-uKjgcb.js → RedirectCard.NBOpek7n.js} +3 -3
- package/dist/chunks/{RichText.D98AWkBw.js → RichText.D_VsFypi.js} +73 -73
- package/dist/chunks/{SearchInput.De_qSxro.js → SearchInput.C7EnHTpX.js} +1 -1
- package/dist/chunks/Select.DAAdVERs.js +247 -0
- package/dist/chunks/{SideMenu.DQiL42Il.js → SideMenu.Cd2GjK9u.js} +9 -9
- package/dist/chunks/{SidePanel.C5nMMMse.js → SidePanel.C-fXIhny.js} +3 -3
- package/dist/chunks/SnackBar.CEjyTWJG.js +82 -0
- package/dist/chunks/Tab.BQDQSuOg.js +281 -0
- package/dist/chunks/{Table.BN-UWSUv.js → Table.DPRSm9mV.js} +63 -55
- package/dist/chunks/{Tag.gcpIeECV.js → Tag.By8jS_2F.js} +9 -9
- package/dist/chunks/ToolBar.qYFzjJ3S.js +22 -0
- package/dist/chunks/{TreeSelect.BRaAmKyc.js → TreeSelect.DD8WhA4W.js} +97 -95
- package/dist/chunks/{Typography.MRyLnlCD.js → Typography.dSdY4EZz.js} +1 -1
- package/dist/chunks/{Upload.CXHhjlnm.js → Upload.DxszpKf4.js} +5 -5
- package/dist/chunks/faKitLoader.BJKbv-bm.js +13 -0
- package/dist/chunks/{functions.Cjvxsib3.js → functions.m4ADIGGk.js} +2 -2
- package/dist/chunks/useLoadingWidthLock.CzCPeVNp.js +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +56 -54
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/general/utilities/index.js +12 -6
- package/dist/theme/types/utilities/index.d.ts +18 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.d.ts +1 -0
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +1 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/en-US/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/en-US/index.js +34 -30
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/fr-FR/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/fr-FR/index.js +34 -30
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/DataDisplay/Kanban/index.js +16 -0
- package/dist/translation/pt-PT/components/DataDisplay/Tab/index.js +5 -1
- package/dist/translation/pt-PT/index.js +34 -30
- package/dist/translation/types/components/DataDisplay/Kanban/index.d.ts +16 -0
- package/dist/translation/types/components/DataDisplay/Tab/index.d.ts +2 -0
- package/dist/translation/types/index.d.ts +2 -0
- package/dist/utils/functions/colorVariants.d.ts +18 -0
- package/dist/utils/functions/index.d.ts +1 -2
- package/dist/utils/functions/index.js +1 -1
- package/dist/utils/functions/types.d.ts +6 -0
- package/dist/utils/hooks/useLoadingWidthLock.d.ts +2 -0
- package/package.json +17 -19
- package/dist/assets/styles.css +0 -1
- package/dist/chunks/Button.mFkl13ue.js +0 -145
- package/dist/chunks/DatePicker.CtiOTI4X.js +0 -267
- package/dist/chunks/Filter.ByG4s-gy.js +0 -83
- package/dist/chunks/InputNumber.CtaH9tBG.js +0 -52
- package/dist/chunks/MenuBar.DigScTZX.js +0 -68
- package/dist/chunks/Select.S4xsr0eN.js +0 -248
- package/dist/chunks/SnackBar.CdNbNCdU.js +0 -83
- package/dist/chunks/Tab.BLLuv1ds.js +0 -188
- package/dist/chunks/styles.module.DRkuoXqe.js +0 -3
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { t as e } from "./Divider.C-DXVgoI.js";
|
|
2
|
+
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
+
import { t as n } from "./FontSizeSelect.BEujUTOk.js";
|
|
4
|
+
import { KitMenuActionList as r, menuActionGroups as i } from "../Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js";
|
|
5
|
+
import { B as a } from "./Ant.m5ItQOpq.js";
|
|
6
|
+
import { n as o } from "./useKitLocale.Y5XHnnYS.js";
|
|
7
|
+
import { KitButtonTooltip as s } from "../Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js";
|
|
8
|
+
import { KitUndoRedoButtons as c } from "../Kit/DataEntry/RichText/MenuBar/UndoRedoButtons/index.js";
|
|
9
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
10
|
+
import { useLayoutEffect as d, useRef as f, useState as p } from "react";
|
|
11
|
+
import m from "classnames";
|
|
12
|
+
import { faEllipsisVertical as h } from "@fortawesome/free-solid-svg-icons";
|
|
13
|
+
import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
|
|
14
|
+
import { useEditorState as _ } from "@tiptap/react";
|
|
15
|
+
import '../assets/MenuBar.css';// src/Kit/DataEntry/RichText/MenuBar/styles.module.scss
|
|
16
|
+
var v = {
|
|
17
|
+
"kit-rich-text-menu-bar": "_kit-rich-text-menu-bar_xkz56_1",
|
|
18
|
+
"kit-rich-text-menu-popover": "_kit-rich-text-menu-popover_xkz56_2"
|
|
19
|
+
}, y = ({ editor: e, onImageUpload: t, groups: n }) => {
|
|
20
|
+
let { locale: i } = o();
|
|
21
|
+
return l(s, {
|
|
22
|
+
title: i.RichText?.moreOptions,
|
|
23
|
+
children: l(a, {
|
|
24
|
+
trigger: "click",
|
|
25
|
+
placement: "bottom",
|
|
26
|
+
zIndex: 1010,
|
|
27
|
+
arrow: !1,
|
|
28
|
+
classNames: { root: v["kit-rich-text-menu-popover"] },
|
|
29
|
+
content: l("div", {
|
|
30
|
+
className: "kit-rich-text-menu-popover-options",
|
|
31
|
+
children: l(r, {
|
|
32
|
+
editor: e,
|
|
33
|
+
onImageUpload: t,
|
|
34
|
+
groups: n
|
|
35
|
+
})
|
|
36
|
+
}),
|
|
37
|
+
children: l("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-label": i.RichText?.moreOptions,
|
|
40
|
+
className: "show-more",
|
|
41
|
+
children: l(g, { icon: h })
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}, b = ({ editor: a, onImageUpload: o }) => {
|
|
46
|
+
let { appId: s } = t(), h = f(null), [g, b] = p([]);
|
|
47
|
+
_({
|
|
48
|
+
editor: a,
|
|
49
|
+
selector: ({ transactionNumber: e }) => e
|
|
50
|
+
}), d(() => {
|
|
51
|
+
let e = h.current;
|
|
52
|
+
if (!e) return;
|
|
53
|
+
let t = () => {
|
|
54
|
+
let t = e.firstElementChild?.offsetTop ?? 0, n = i.filter((n) => {
|
|
55
|
+
let r = e.querySelector(`[data-menu-action-group="${n}"]`);
|
|
56
|
+
return !!r && r.offsetTop > t;
|
|
57
|
+
});
|
|
58
|
+
b((e) => e.length === n.length && e.every((e, t) => e === n[t]) ? e : n);
|
|
59
|
+
};
|
|
60
|
+
t();
|
|
61
|
+
let n = new ResizeObserver(t);
|
|
62
|
+
return n.observe(e), () => n.disconnect();
|
|
63
|
+
}, []);
|
|
64
|
+
let x = m(s, v["kit-rich-text-menu-bar"], "menu-bar");
|
|
65
|
+
return u("div", {
|
|
66
|
+
ref: h,
|
|
67
|
+
className: x,
|
|
68
|
+
children: [
|
|
69
|
+
l(c, { editor: a }),
|
|
70
|
+
l(e, { orientation: "vertical" }),
|
|
71
|
+
l(n, { editor: a }),
|
|
72
|
+
l(e, { orientation: "vertical" }),
|
|
73
|
+
l(r, {
|
|
74
|
+
editor: a,
|
|
75
|
+
onImageUpload: o,
|
|
76
|
+
hiddenGroups: g
|
|
77
|
+
}),
|
|
78
|
+
g.length > 0 && l(y, {
|
|
79
|
+
editor: a,
|
|
80
|
+
onImageUpload: o,
|
|
81
|
+
groups: g
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
export { b as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as e } from "./App.
|
|
2
|
-
import { f as t } from "./functions.
|
|
3
|
-
import { t as n } from "./Button.
|
|
4
|
-
import { t as r } from "./Icon.
|
|
1
|
+
import { t as e } from "./App.DEAyG_cT.js";
|
|
2
|
+
import { f as t } from "./functions.m4ADIGGk.js";
|
|
3
|
+
import { t as n } from "./Button.Cf2t8x-g.js";
|
|
4
|
+
import { t as r } from "./Icon.DbHbt0HM.js";
|
|
5
5
|
import { n as i } from "./useKitTheme.P5Q2DIyI.js";
|
|
6
6
|
import { KitSpace as a } from "../Kit/General/Space/index.js";
|
|
7
7
|
import { KitTooltip as o } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
8
|
-
import { t as s } from "./Typography.
|
|
8
|
+
import { t as s } from "./Typography.dSdY4EZz.js";
|
|
9
9
|
import { n as c } from "./useKitLocale.Y5XHnnYS.js";
|
|
10
10
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
11
|
import { forwardRef as f, useId as p } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as e } from "./functions.
|
|
1
|
+
import { f as e } from "./functions.m4ADIGGk.js";
|
|
2
2
|
import { KitTooltip as t } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
3
|
-
import { t as n } from "./Button.
|
|
4
|
-
import { t as r } from "./Icon.
|
|
5
|
-
import { t as i } from "./Typography.
|
|
3
|
+
import { t as n } from "./Button.Cf2t8x-g.js";
|
|
4
|
+
import { t as r } from "./Icon.DbHbt0HM.js";
|
|
5
|
+
import { t as i } from "./Typography.dSdY4EZz.js";
|
|
6
6
|
import { n as a } from "./useKitLocale.Y5XHnnYS.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { forwardRef as c, useState as l } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./Input.
|
|
2
|
-
import { t } from "./Button.
|
|
1
|
+
import { t as e } from "./Input.NJ0gxOKB.js";
|
|
2
|
+
import { t } from "./Button.Cf2t8x-g.js";
|
|
3
3
|
import { KitSpace as n } from "../Kit/General/Space/index.js";
|
|
4
|
-
import { t as r } from "./Typography.
|
|
4
|
+
import { t as r } from "./Typography.dSdY4EZz.js";
|
|
5
5
|
import { n as i } from "./useKitTheme.P5Q2DIyI.js";
|
|
6
6
|
import { n as a } from "./useKitLocale.Y5XHnnYS.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./Header.
|
|
2
|
-
import { t } from "./SideMenu.
|
|
1
|
+
import { t as e } from "./Header.CjmOOvCM.js";
|
|
2
|
+
import { t } from "./SideMenu.Cd2GjK9u.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as i } from "react";
|
|
5
5
|
import a from "classnames";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./useKitTheme.P5Q2DIyI.js";
|
|
2
2
|
import { n as t } from "./useKitLocale.Y5XHnnYS.js";
|
|
3
|
-
import { n, t as r } from "./InternalSizeChanger.
|
|
3
|
+
import { n, t as r } from "./InternalSizeChanger.4uhUYdQf.js";
|
|
4
4
|
import { Pagination as i } from "antd";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "classnames";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Typography.
|
|
1
|
+
import { t as e } from "./Typography.dSdY4EZz.js";
|
|
2
2
|
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
3
|
import { n } from "./useKitLocale.Y5XHnnYS.js";
|
|
4
4
|
import { KitTooltip as r } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./InputWrapper.
|
|
1
|
+
import { t as e } from "./InputWrapper.UG5UbUiq.js";
|
|
2
2
|
import { t } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
3
3
|
import { t as n } from "./CheckableTile.B_BbiYRf.js";
|
|
4
4
|
import { n as r } from "./useKitTheme.P5Q2DIyI.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { kitRateCssTokens as e } from "../theme/aristid/components/DataEntry/Rate/index.js";
|
|
2
2
|
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
-
import { n, u as r } from "./functions.
|
|
3
|
+
import { n, u as r } from "./functions.m4ADIGGk.js";
|
|
4
4
|
import { Rate as i } from "antd";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import { forwardRef as o, useEffect as s, useId as c, useMemo as l } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./useKitTheme.P5Q2DIyI.js";
|
|
2
|
-
import { t } from "./Icon.
|
|
3
|
-
import { t as n } from "./Typography.
|
|
2
|
+
import { t } from "./Icon.DbHbt0HM.js";
|
|
3
|
+
import { t as n } from "./Typography.dSdY4EZz.js";
|
|
4
4
|
import { t as r } from "./Divider.C-DXVgoI.js";
|
|
5
|
-
import { t as i } from "./Button.
|
|
5
|
+
import { t as i } from "./Button.Cf2t8x-g.js";
|
|
6
6
|
import { KitDropDown as a } from "../Kit/Navigation/DropDown/index.js";
|
|
7
7
|
import { n as o } from "./useKitLocale.Y5XHnnYS.js";
|
|
8
8
|
import { KitTooltip as s } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as e } from "./InputWrapper.
|
|
1
|
+
import { t as e } from "./InputWrapper.UG5UbUiq.js";
|
|
2
2
|
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
-
import { f as n } from "./functions.
|
|
3
|
+
import { f as n } from "./functions.m4ADIGGk.js";
|
|
4
4
|
import { t as r } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
5
5
|
import { t as i } from "./EditorContentCharacterCount.1uKyzXLA.js";
|
|
6
6
|
import { KitDropDown as a } from "../Kit/Navigation/DropDown/index.js";
|
|
7
|
-
import { t as o } from "./MenuBar.
|
|
7
|
+
import { t as o } from "./MenuBar.BKo3YUWL.js";
|
|
8
8
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
9
|
import { forwardRef as l, useEffect as u, useImperativeHandle as d, useRef as f, useState as p } from "react";
|
|
10
10
|
import m from "classnames";
|
|
11
11
|
import h from "@tiptap/extension-image";
|
|
12
12
|
import g from "@tiptap/extension-link";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { Color as
|
|
16
|
-
import { CharacterCount as
|
|
17
|
-
import { EditorContent as
|
|
18
|
-
import
|
|
13
|
+
import _ from "@tiptap/extension-mention";
|
|
14
|
+
import v from "@tiptap/extension-text-align";
|
|
15
|
+
import { Color as y, TextStyle as ee } from "@tiptap/extension-text-style";
|
|
16
|
+
import { CharacterCount as te, Placeholder as b } from "@tiptap/extensions";
|
|
17
|
+
import { EditorContent as ne, ReactRenderer as x, useEditor as re } from "@tiptap/react";
|
|
18
|
+
import ie from "@tiptap/starter-kit";
|
|
19
19
|
import '../assets/RichText.css';// src/Kit/DataEntry/RichText/Mention/MentionList.tsx
|
|
20
|
-
var
|
|
20
|
+
var S = l((e, t) => {
|
|
21
21
|
let [n, r] = p(0);
|
|
22
22
|
u(() => r(0), [e.items]);
|
|
23
23
|
function i(t) {
|
|
@@ -57,11 +57,11 @@ var w = l((e, t) => {
|
|
|
57
57
|
})
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
|
-
}),
|
|
60
|
+
}), C = () => {
|
|
61
61
|
let e, t = () => e.element.classList.add("hidden"), n = () => e.element.classList.remove("hidden");
|
|
62
62
|
return {
|
|
63
63
|
onStart: (r) => {
|
|
64
|
-
e = new
|
|
64
|
+
e = new x(S, {
|
|
65
65
|
props: r,
|
|
66
66
|
editor: r.editor,
|
|
67
67
|
className: "react-renderer"
|
|
@@ -77,40 +77,40 @@ var w = l((e, t) => {
|
|
|
77
77
|
r.editor.off("blur", t), r.editor.off("focus", n), e.element.remove(), e.destroy();
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
},
|
|
81
|
-
"kit-rich-text-wrapper": "_kit-rich-text-
|
|
82
|
-
"kit-rich-text": "_kit-rich-
|
|
83
|
-
},
|
|
84
|
-
let { appId:
|
|
80
|
+
}, w = {
|
|
81
|
+
"kit-rich-text-wrapper": "_kit-rich-text-wrapper_1c50v_2",
|
|
82
|
+
"kit-rich-text": "_kit-rich-text_1c50v_2"
|
|
83
|
+
}, T = l(({ label: a, helper: l, htmlFor: x, wrapperClassName: S, className: T, required: E, actions: D, extra: O, placeholder: k, disabled: A, readonlyLight: j, readonly: M, getMentionItems: N, status: P, style: ae, defaultValue: oe, value: F, onChange: I, onFocus: L, onBlur: R, onImageUpload: z, maxLength: B, autoFocus: V = !1, showCount: H = !1, AI: U = !1, showMenubar: W = "focus", "aria-required": G = E, ...K }, se) => {
|
|
84
|
+
let { appId: q } = t(), J = f(null);
|
|
85
85
|
r("RichText", {
|
|
86
86
|
label: a,
|
|
87
87
|
helper: l,
|
|
88
|
-
htmlFor:
|
|
89
|
-
className:
|
|
90
|
-
actions:
|
|
91
|
-
extra:
|
|
92
|
-
...
|
|
88
|
+
htmlFor: x,
|
|
89
|
+
className: S,
|
|
90
|
+
actions: D,
|
|
91
|
+
extra: O,
|
|
92
|
+
...K
|
|
93
93
|
});
|
|
94
|
-
let [X, Z] = p(
|
|
95
|
-
"kit-rich-text-disabled":
|
|
96
|
-
"kit-rich-text-ai":
|
|
97
|
-
"kit-rich-text-readonly-light":
|
|
98
|
-
"kit-rich-text-readonly":
|
|
99
|
-
"kit-rich-text-error":
|
|
100
|
-
"kit-rich-text-warning":
|
|
94
|
+
let Y = !A && !j && !M, [X, Z] = p(V && Y), ce = m(q, T, w["kit-rich-text"], {
|
|
95
|
+
"kit-rich-text-disabled": A,
|
|
96
|
+
"kit-rich-text-ai": U,
|
|
97
|
+
"kit-rich-text-readonly-light": j,
|
|
98
|
+
"kit-rich-text-readonly": M,
|
|
99
|
+
"kit-rich-text-error": P === "error",
|
|
100
|
+
"kit-rich-text-warning": P === "warning",
|
|
101
101
|
"kit-rich-text-focused": X,
|
|
102
|
-
"kit-rich-text-menu-bar-focus":
|
|
103
|
-
}), Q =
|
|
104
|
-
editable:
|
|
105
|
-
content:
|
|
102
|
+
"kit-rich-text-menu-bar-focus": W === "focus"
|
|
103
|
+
}), Q = re({
|
|
104
|
+
editable: Y,
|
|
105
|
+
content: oe,
|
|
106
106
|
editorProps: { attributes: {
|
|
107
107
|
role: "textbox",
|
|
108
|
-
...a ??
|
|
109
|
-
...
|
|
110
|
-
...
|
|
108
|
+
...a ?? k ? { "aria-label": a ?? k } : {},
|
|
109
|
+
...M || j ? { tabindex: "0" } : {},
|
|
110
|
+
...G === void 0 ? {} : { "aria-required": String(G) }
|
|
111
111
|
} },
|
|
112
112
|
extensions: [
|
|
113
|
-
|
|
113
|
+
ie.configure({
|
|
114
114
|
heading: { levels: [
|
|
115
115
|
1,
|
|
116
116
|
2,
|
|
@@ -119,31 +119,31 @@ var w = l((e, t) => {
|
|
|
119
119
|
] },
|
|
120
120
|
link: !1
|
|
121
121
|
}),
|
|
122
|
-
|
|
122
|
+
v.configure({ types: ["heading", "paragraph"] }),
|
|
123
123
|
g.extend({ inclusive: !1 }).configure({ openOnClick: !0 }),
|
|
124
|
+
ee,
|
|
124
125
|
y,
|
|
125
|
-
v,
|
|
126
126
|
h.configure({ allowBase64: !0 }),
|
|
127
|
-
|
|
128
|
-
placeholder: !
|
|
127
|
+
b.configure({
|
|
128
|
+
placeholder: !j && !M ? k : void 0,
|
|
129
129
|
showOnlyWhenEditable: !1
|
|
130
130
|
}),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
HTMLAttributes: { class:
|
|
131
|
+
te.configure({ limit: B }),
|
|
132
|
+
_.configure({
|
|
133
|
+
HTMLAttributes: { class: U ? "mention-ai" : "mention" },
|
|
134
134
|
deleteTriggerWithBackspace: !0,
|
|
135
135
|
suggestion: {
|
|
136
|
-
items: (e) =>
|
|
137
|
-
render:
|
|
138
|
-
allow: () => !!
|
|
136
|
+
items: (e) => N?.(e.query) ?? [],
|
|
137
|
+
render: C,
|
|
138
|
+
allow: () => !!N
|
|
139
139
|
}
|
|
140
140
|
})
|
|
141
141
|
],
|
|
142
142
|
onUpdate: ({ editor: e }) => {
|
|
143
|
-
|
|
143
|
+
I?.(e.getHTML());
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
-
d(
|
|
146
|
+
d(se, () => ({ getMentions() {
|
|
147
147
|
let e = /* @__PURE__ */ new Map();
|
|
148
148
|
return Q?.state.doc.descendants((t) => {
|
|
149
149
|
if (t.type.name === "mention") {
|
|
@@ -155,53 +155,53 @@ var w = l((e, t) => {
|
|
|
155
155
|
}
|
|
156
156
|
}), [...e.values()];
|
|
157
157
|
} }));
|
|
158
|
-
let $ = `kit-rich-text-wrapper-${n()}`,
|
|
158
|
+
let $ = `kit-rich-text-wrapper-${n()}`, le = m(S, $, w["kit-rich-text-wrapper"]);
|
|
159
159
|
return u(() => {
|
|
160
160
|
let e = (e) => {
|
|
161
161
|
let t = e.target, n = t.closest(`.${$}`), r = t.closest(".select-font-size"), i = t.closest(".link-modal") || t.contains(document.querySelector(".link-modal")), a = t.closest(".ant-popover") || t.contains(document.querySelector(".ant-popover"));
|
|
162
|
-
!X ||
|
|
162
|
+
!X || J.current?.contains(t) || n || r || i || a || (R?.(Q?.getHTML() ?? ""), Z(!1));
|
|
163
163
|
};
|
|
164
164
|
return document.addEventListener("mousedown", e), document.addEventListener("focusin", e), () => {
|
|
165
165
|
document.removeEventListener("mousedown", e), document.removeEventListener("focusin", e);
|
|
166
166
|
};
|
|
167
167
|
}, [
|
|
168
168
|
$,
|
|
169
|
-
|
|
169
|
+
R,
|
|
170
170
|
Q,
|
|
171
171
|
X
|
|
172
172
|
]), u(() => {
|
|
173
|
-
Q !== null &&
|
|
174
|
-
}, [
|
|
175
|
-
className:
|
|
173
|
+
Q !== null && F !== void 0 && F !== Q.getHTML() && Q.commands.setContent(F);
|
|
174
|
+
}, [F, Q]), Q ? c(e, {
|
|
175
|
+
className: le,
|
|
176
176
|
label: a,
|
|
177
177
|
helper: l,
|
|
178
|
-
htmlFor:
|
|
179
|
-
disabled:
|
|
180
|
-
status:
|
|
181
|
-
required:
|
|
182
|
-
extra:
|
|
183
|
-
style:
|
|
184
|
-
AI:
|
|
178
|
+
htmlFor: x,
|
|
179
|
+
disabled: A,
|
|
180
|
+
status: P,
|
|
181
|
+
required: E,
|
|
182
|
+
extra: O ?? D,
|
|
183
|
+
style: ae,
|
|
184
|
+
AI: U,
|
|
185
185
|
children: [c("div", {
|
|
186
|
-
ref:
|
|
187
|
-
className:
|
|
188
|
-
...
|
|
186
|
+
ref: J,
|
|
187
|
+
className: ce,
|
|
188
|
+
...K,
|
|
189
189
|
children: [s(o, {
|
|
190
190
|
editor: Q,
|
|
191
|
-
onImageUpload:
|
|
192
|
-
}), s(
|
|
191
|
+
onImageUpload: z
|
|
192
|
+
}), s(ne, {
|
|
193
193
|
editor: Q,
|
|
194
194
|
className: "ant-typography",
|
|
195
195
|
onFocus: (e) => {
|
|
196
|
-
|
|
196
|
+
L?.(e), Y && Z(!0);
|
|
197
197
|
}
|
|
198
198
|
})]
|
|
199
|
-
}),
|
|
199
|
+
}), H && s(i, {
|
|
200
200
|
editor: Q,
|
|
201
|
-
status:
|
|
202
|
-
maxLength:
|
|
201
|
+
status: P,
|
|
202
|
+
maxLength: B
|
|
203
203
|
})]
|
|
204
204
|
}) : null;
|
|
205
205
|
});
|
|
206
|
-
|
|
207
|
-
export {
|
|
206
|
+
T.displayName = "KitRichText";
|
|
207
|
+
export { T as t };
|