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,59 @@
|
|
|
1
|
+
import { t as e } from "./InputWrapper.UG5UbUiq.js";
|
|
2
|
+
import { n as t } from "./useKitTheme.P5Q2DIyI.js";
|
|
3
|
+
import { t as n } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
4
|
+
import { t as r } from "./faKitLoader.BJKbv-bm.js";
|
|
5
|
+
import { InputNumber as i } from "antd";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { forwardRef as o, useState as s } from "react";
|
|
8
|
+
import c from "classnames";
|
|
9
|
+
import { FontAwesomeIcon as l } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import '../assets/InputNumber.css';// src/Kit/DataEntry/InputNumber/styles.module.scss
|
|
11
|
+
var u = { "kit-input-number": "_kit-input-number_16760_1" }, d = o(({ label: o, helper: d, htmlFor: f, wrapperClassName: p, className: m, required: h, actions: g, extra: _, disabled: v, placeholder: y, readonly: b, loading: x = !1, onFocus: S, onBlur: C, size: w = "large", ...T }, E) => {
|
|
12
|
+
let { appId: D } = t(), [O, k] = s(!1);
|
|
13
|
+
n("InputNumber", {
|
|
14
|
+
label: o,
|
|
15
|
+
helper: d,
|
|
16
|
+
htmlFor: f,
|
|
17
|
+
clasName: p,
|
|
18
|
+
actions: g,
|
|
19
|
+
extra: _,
|
|
20
|
+
...T
|
|
21
|
+
});
|
|
22
|
+
let A = c(D, u["kit-input-number"], m, {
|
|
23
|
+
"kit-input-number-affix-wrapper-focused": O,
|
|
24
|
+
"kit-input-number-readonly": b
|
|
25
|
+
});
|
|
26
|
+
return a(e, {
|
|
27
|
+
label: o,
|
|
28
|
+
helper: d,
|
|
29
|
+
htmlFor: f,
|
|
30
|
+
disabled: v,
|
|
31
|
+
status: T.status,
|
|
32
|
+
className: p,
|
|
33
|
+
required: h,
|
|
34
|
+
extra: _ ?? g,
|
|
35
|
+
children: a(i, {
|
|
36
|
+
ref: E,
|
|
37
|
+
required: h,
|
|
38
|
+
size: w,
|
|
39
|
+
id: T.id ?? f,
|
|
40
|
+
onFocus: (e) => {
|
|
41
|
+
S?.(e), k(!0);
|
|
42
|
+
},
|
|
43
|
+
onBlur: (e) => {
|
|
44
|
+
C?.(e), k(!1);
|
|
45
|
+
},
|
|
46
|
+
className: A,
|
|
47
|
+
disabled: v || b,
|
|
48
|
+
suffix: x ? a(l, {
|
|
49
|
+
icon: r,
|
|
50
|
+
spin: !0
|
|
51
|
+
}) : void 0,
|
|
52
|
+
"aria-busy": x || void 0,
|
|
53
|
+
placeholder: b ? void 0 : y,
|
|
54
|
+
...T
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
d.displayName = "KitInputNumber";
|
|
59
|
+
export { d as t };
|
|
@@ -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 { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { forwardRef as a } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Select.
|
|
1
|
+
import { t as e } from "./Select.DAAdVERs.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { faChevronDown as n } from "@fortawesome/free-solid-svg-icons";
|
|
4
4
|
import { FontAwesomeIcon as r } from "@fortawesome/react-fontawesome";
|
|
@@ -37,7 +37,7 @@ var i = [
|
|
|
37
37
|
allowClear: !1,
|
|
38
38
|
popupMatchSelectWidth: !1,
|
|
39
39
|
builtinPlacements: o,
|
|
40
|
-
|
|
40
|
+
suffix: t(r, { icon: n }),
|
|
41
41
|
onChange: (e) => {
|
|
42
42
|
e !== null && u(e);
|
|
43
43
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as e } from "./useWindowSize.DYK_ESLw.js";
|
|
2
|
-
import { t } from "./Tag.
|
|
3
|
-
import { t as n } from "./Checkbox.
|
|
2
|
+
import { t } from "./Tag.By8jS_2F.js";
|
|
3
|
+
import { t as n } from "./Checkbox.C0E-Lf9F.js";
|
|
4
4
|
import { t as r } from "./Switch.BTyPj5S0.js";
|
|
5
5
|
import { t as i } from "./Loader.B154m8Uo.js";
|
|
6
|
-
import { t as a } from "./Typography.
|
|
6
|
+
import { t as a } from "./Typography.dSdY4EZz.js";
|
|
7
7
|
import { n as o } from "./Breadcrumb.DUEiho8q.js";
|
|
8
8
|
import { n as s } from "./useKitTheme.P5Q2DIyI.js";
|
|
9
|
-
import { t as c } from "./Button.
|
|
9
|
+
import { t as c } from "./Button.Cf2t8x-g.js";
|
|
10
10
|
import { KitDropDown as l } from "../Kit/Navigation/DropDown/index.js";
|
|
11
11
|
import { n as u } from "./useKitLocale.Y5XHnnYS.js";
|
|
12
12
|
import { KitTooltip as d } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as e } from "./IdCard.
|
|
1
|
+
import { t as e } from "./IdCard.DcdzxJ6s.js";
|
|
2
2
|
import { KitTooltip as t } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
3
|
-
import { t as n } from "./Checkbox.
|
|
4
|
-
import { t as r } from "./Button.
|
|
3
|
+
import { t as n } from "./Checkbox.C0E-Lf9F.js";
|
|
4
|
+
import { t as r } from "./Button.Cf2t8x-g.js";
|
|
5
5
|
import { KitDropDown as i } from "../Kit/Navigation/DropDown/index.js";
|
|
6
6
|
import { n as a } from "./useKitTheme.P5Q2DIyI.js";
|
|
7
7
|
import { n as o } from "./useKitLocale.Y5XHnnYS.js";
|
|
8
8
|
import "./constants.CirCT_qA.js";
|
|
9
|
-
import { o as s } from "./functions.
|
|
9
|
+
import { o as s } from "./functions.m4ADIGGk.js";
|
|
10
10
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
11
|
import { forwardRef as d, useState as f } from "react";
|
|
12
12
|
import p from "classnames";
|
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
import { n as e } from "./useKitTheme.P5Q2DIyI.js";
|
|
2
|
+
import { kitKanbanLocale as t } from "../translation/en-US/components/DataDisplay/Kanban/index.js";
|
|
3
|
+
import { n } from "./useKitLocale.Y5XHnnYS.js";
|
|
4
|
+
import { t as r } from "./Loader.B154m8Uo.js";
|
|
5
|
+
import { t as i } from "./SnackBar.CEjyTWJG.js";
|
|
6
|
+
import { t as a } from "./Checkbox.C0E-Lf9F.js";
|
|
7
|
+
import { t as o } from "./Card.BifWds4Q.js";
|
|
8
|
+
import { m as s, p as c, r as l } from "./functions.m4ADIGGk.js";
|
|
9
|
+
import { colorsPalette as u } from "../theme/aristid/general/colors/index.js";
|
|
10
|
+
import { t as d } from "./Button.Cf2t8x-g.js";
|
|
11
|
+
import { t as f } from "./Badge.tu17MdMt.js";
|
|
12
|
+
import { t as p } from "./IdCard.DcdzxJ6s.js";
|
|
13
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
14
|
+
import { forwardRef as g, useCallback as _, useId as v, useLayoutEffect as y, useRef as b, useState as x } from "react";
|
|
15
|
+
import S from "classnames";
|
|
16
|
+
import C from "color-convert";
|
|
17
|
+
import { faArrowDown as ee } from "@fortawesome/free-solid-svg-icons";
|
|
18
|
+
import { FontAwesomeIcon as te } from "@fortawesome/react-fontawesome";
|
|
19
|
+
import { useComposeRef as ne } from "@rc-component/util/es/ref";
|
|
20
|
+
import { DndContext as re, DragOverlay as ie, KeyboardCode as w, KeyboardSensor as T, PointerSensor as ae, pointerWithin as E, rectIntersection as D, useDraggable as O, useDroppable as oe, useSensor as k, useSensors as se } from "@dnd-kit/core";
|
|
21
|
+
import '../assets/Kanban.css';// src/Kit/DataDisplay/Kanban/KanbanCard.tsx
|
|
22
|
+
var A = (e) => e.stopPropagation(), ce = ({ item: e, columnId: r, disabled: i, selectable: s, selected: c, onSelect: l }) => {
|
|
23
|
+
let { locale: u } = n(), { id: d, selectable: f, selectLabel: p, children: g, className: _, style: v } = e, y = f ?? s, b = e.disabled || i;
|
|
24
|
+
return h(o, {
|
|
25
|
+
className: S(_, { "kit-kanban-card-selectable": y }),
|
|
26
|
+
style: v,
|
|
27
|
+
disabled: b,
|
|
28
|
+
children: [y && m("div", {
|
|
29
|
+
role: "presentation",
|
|
30
|
+
className: "kit-kanban-select",
|
|
31
|
+
onPointerDown: A,
|
|
32
|
+
children: m(a, {
|
|
33
|
+
"aria-label": p ?? u.Kanban?.selectCard ?? t.selectCard,
|
|
34
|
+
checked: c,
|
|
35
|
+
disabled: b,
|
|
36
|
+
onChange: (e) => l?.({
|
|
37
|
+
itemId: d,
|
|
38
|
+
columnId: r,
|
|
39
|
+
selected: e.target.checked
|
|
40
|
+
})
|
|
41
|
+
})
|
|
42
|
+
}), g]
|
|
43
|
+
});
|
|
44
|
+
}, j = 95, M = 95, N = .78, P = (e) => {
|
|
45
|
+
let t = c(e);
|
|
46
|
+
if (t) return t;
|
|
47
|
+
let n = s(e);
|
|
48
|
+
if (!n) return null;
|
|
49
|
+
let [r, i, a] = C.rgb.hsl([
|
|
50
|
+
n[0],
|
|
51
|
+
n[1],
|
|
52
|
+
n[2]
|
|
53
|
+
]);
|
|
54
|
+
return [
|
|
55
|
+
r,
|
|
56
|
+
i,
|
|
57
|
+
a,
|
|
58
|
+
n[3]
|
|
59
|
+
];
|
|
60
|
+
}, F = ([e, t, n, r]) => r === 1 ? `hsl(${e}, ${t}%, ${n}%)` : `hsla(${e}, ${t}%, ${n}%, ${r})`, I = ([e, t, n]) => {
|
|
61
|
+
let [r, i, a] = C.hsl.rgb([
|
|
62
|
+
e,
|
|
63
|
+
t,
|
|
64
|
+
n
|
|
65
|
+
]);
|
|
66
|
+
return (r * 299 + i * 587 + a * 114) / 1e3 < 128 ? u.neutral.white : u.neutral.black;
|
|
67
|
+
}, L = (e) => {
|
|
68
|
+
let t = P(e);
|
|
69
|
+
if (!t) return null;
|
|
70
|
+
let [n, r, i, a] = t;
|
|
71
|
+
return {
|
|
72
|
+
color: F(t),
|
|
73
|
+
isLight: i > j,
|
|
74
|
+
lighter: F([
|
|
75
|
+
n,
|
|
76
|
+
r,
|
|
77
|
+
M,
|
|
78
|
+
a
|
|
79
|
+
]),
|
|
80
|
+
darker: F([
|
|
81
|
+
n,
|
|
82
|
+
r,
|
|
83
|
+
Math.round(i * N),
|
|
84
|
+
a
|
|
85
|
+
]),
|
|
86
|
+
contrastText: I(t)
|
|
87
|
+
};
|
|
88
|
+
}, R = {
|
|
89
|
+
"kit-kanban": "_kit-kanban_aezw0_1",
|
|
90
|
+
"kit-kanban-board": "_kit-kanban-board_aezw0_35",
|
|
91
|
+
"kit-kanban-column": "_kit-kanban-column_aezw0_11",
|
|
92
|
+
"kit-kanban-item": "_kit-kanban-item_aezw0_205"
|
|
93
|
+
}, z = "a, button, input, label, select, textarea, [role=\"button\"], [role=\"link\"], .kit-kanban-select", B = ({ id: e, columnId: t, isDragging: n, onItemClick: r }) => r ? {
|
|
94
|
+
onClick: (n) => {
|
|
95
|
+
let i = n.target, a = i.closest(z);
|
|
96
|
+
!n.currentTarget.contains(i) || a && n.currentTarget.contains(a) || r({
|
|
97
|
+
itemId: e,
|
|
98
|
+
columnId: t
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
onKeyDown: (i) => {
|
|
102
|
+
i.key === "Enter" && i.target === i.currentTarget && !n && r({
|
|
103
|
+
itemId: e,
|
|
104
|
+
columnId: t
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
} : {}, V = ({ id: e, columnId: r, disabled: i, isGhost: a, draggable: o, isDragging: s, onItemClick: c, children: l }) => {
|
|
108
|
+
let { locale: u } = n(), { attributes: d, listeners: f, setNodeRef: p, setActivatorNodeRef: h } = O({
|
|
109
|
+
id: e,
|
|
110
|
+
data: { columnId: r },
|
|
111
|
+
disabled: i || !o,
|
|
112
|
+
attributes: {
|
|
113
|
+
role: "listitem",
|
|
114
|
+
roleDescription: u.Kanban?.draggableItem ?? t.draggableItem
|
|
115
|
+
}
|
|
116
|
+
}), g = B({
|
|
117
|
+
id: e,
|
|
118
|
+
columnId: r,
|
|
119
|
+
isDragging: s,
|
|
120
|
+
onItemClick: c
|
|
121
|
+
}), v = _((e) => {
|
|
122
|
+
p(e), h(e);
|
|
123
|
+
}, [p, h]), y = o ? {
|
|
124
|
+
...d,
|
|
125
|
+
...f,
|
|
126
|
+
tabIndex: i && !c ? void 0 : d.tabIndex
|
|
127
|
+
} : {
|
|
128
|
+
role: "listitem",
|
|
129
|
+
tabIndex: c ? 0 : void 0
|
|
130
|
+
};
|
|
131
|
+
return m("div", {
|
|
132
|
+
ref: v,
|
|
133
|
+
...y,
|
|
134
|
+
onClick: g.onClick,
|
|
135
|
+
onKeyDown: (e) => {
|
|
136
|
+
var t, n;
|
|
137
|
+
o && ((t = f?.onKeyDown) == null || t.call(f, e)), (n = g.onKeyDown) == null || n.call(g, e);
|
|
138
|
+
},
|
|
139
|
+
className: S(R["kit-kanban-item"], {
|
|
140
|
+
"kit-kanban-item-draggable": o && !i,
|
|
141
|
+
"kit-kanban-item-clickable": c,
|
|
142
|
+
"kit-kanban-item-ghost": a
|
|
143
|
+
}),
|
|
144
|
+
"data-kanban-item-id": e,
|
|
145
|
+
children: l
|
|
146
|
+
});
|
|
147
|
+
}, le = () => m("div", {
|
|
148
|
+
className: "kit-kanban-column-loader",
|
|
149
|
+
"aria-hidden": "true",
|
|
150
|
+
children: m(r, {})
|
|
151
|
+
}), H = 6, U = 10, W = (e, t, n) => {
|
|
152
|
+
let r = Array.from(e.querySelectorAll("[data-kanban-item-id]")).filter((e) => e.dataset.kanbanItemId !== n);
|
|
153
|
+
if (t < r.length) return r[t].offsetTop - U;
|
|
154
|
+
let i = r[r.length - 1];
|
|
155
|
+
return i ? i.offsetTop + i.offsetHeight + H : (e.querySelector(".kit-kanban-column-list")?.offsetTop ?? 0) - U;
|
|
156
|
+
}, ue = ({ column: e, state: r, dropIndex: i, activeItemId: a, visibleCount: o, onSeeMore: s, isDragging: c = !1, draggable: u = !0, sortable: g = !0, selectable: _ = !1, selectedIds: v, onSelect: C, onItemClick: ne, className: re }) => {
|
|
157
|
+
let { locale: ie } = n(), w = b(null), [T, ae] = x(null), { setNodeRef: E } = oe({
|
|
158
|
+
id: e.id,
|
|
159
|
+
disabled: !u
|
|
160
|
+
}), { id: D, title: O, color: k = "neutral", className: se, style: A, items: j, count: M, disabled: N = !1, hasMore: P, loading: F = !1, seeMoreProps: I } = e, z = j.slice(0, o), B = r === "disabled", H = r === "highlight" && i !== null && g, U = !F && (P ?? j.length > o), ue = !F || M !== void 0;
|
|
161
|
+
y(() => {
|
|
162
|
+
let e = w.current;
|
|
163
|
+
ae(H && e ? W(e, i, a) : null);
|
|
164
|
+
}, [
|
|
165
|
+
H,
|
|
166
|
+
i,
|
|
167
|
+
a,
|
|
168
|
+
o,
|
|
169
|
+
j
|
|
170
|
+
]);
|
|
171
|
+
let G = A?.["--kit-kanban-column-color"], K = G && !B ? L(G) : null, de = K ? {
|
|
172
|
+
...A,
|
|
173
|
+
"--kit-kanban-column-tint": K.lighter,
|
|
174
|
+
"--kit-kanban-column-accent": K.color,
|
|
175
|
+
"--kit-kanban-column-badge": K.darker,
|
|
176
|
+
"--kit-kanban-column-badge-text": l(K.darker)
|
|
177
|
+
} : A, q = K ? "kit-kanban-column-color-custom" : `kit-kanban-column-color-${k}`, fe = S(R["kit-kanban-column"], q, se, re, {
|
|
178
|
+
"kit-kanban-column-highlight": r === "highlight",
|
|
179
|
+
"kit-kanban-column-disabled": B,
|
|
180
|
+
"kit-kanban-column-dragging": c
|
|
181
|
+
});
|
|
182
|
+
return h("div", {
|
|
183
|
+
className: fe,
|
|
184
|
+
style: de,
|
|
185
|
+
role: "group",
|
|
186
|
+
tabIndex: u ? 0 : void 0,
|
|
187
|
+
"aria-label": O,
|
|
188
|
+
"aria-disabled": B || void 0,
|
|
189
|
+
"aria-busy": F || void 0,
|
|
190
|
+
"data-kanban-column-id": D,
|
|
191
|
+
"data-state": r,
|
|
192
|
+
children: [h("div", {
|
|
193
|
+
className: "kit-kanban-column-header",
|
|
194
|
+
children: [m(p, {
|
|
195
|
+
className: "kit-kanban-column-id-card",
|
|
196
|
+
size: "m",
|
|
197
|
+
title: O,
|
|
198
|
+
color: "var(--kit-kanban-column-accent)",
|
|
199
|
+
disabled: B
|
|
200
|
+
}), ue && m(f, {
|
|
201
|
+
className: "kit-kanban-column-count",
|
|
202
|
+
count: M ?? j.length,
|
|
203
|
+
showZero: !0
|
|
204
|
+
})]
|
|
205
|
+
}), m("div", {
|
|
206
|
+
className: "kit-kanban-column-body",
|
|
207
|
+
ref: w,
|
|
208
|
+
children: h("div", {
|
|
209
|
+
className: "kit-kanban-column-content",
|
|
210
|
+
ref: E,
|
|
211
|
+
children: [
|
|
212
|
+
m("div", {
|
|
213
|
+
className: "kit-kanban-column-list",
|
|
214
|
+
role: "list",
|
|
215
|
+
children: z.map((e) => {
|
|
216
|
+
let t = e.id, n = t === a;
|
|
217
|
+
return m(V, {
|
|
218
|
+
id: t,
|
|
219
|
+
columnId: D,
|
|
220
|
+
disabled: N || !!e.disabled,
|
|
221
|
+
isGhost: n,
|
|
222
|
+
draggable: u,
|
|
223
|
+
isDragging: c,
|
|
224
|
+
onItemClick: ne,
|
|
225
|
+
children: m(ce, {
|
|
226
|
+
item: e,
|
|
227
|
+
columnId: D,
|
|
228
|
+
disabled: B || n,
|
|
229
|
+
selectable: _,
|
|
230
|
+
selected: v?.includes(t) ?? !1,
|
|
231
|
+
onSelect: C
|
|
232
|
+
})
|
|
233
|
+
}, t);
|
|
234
|
+
})
|
|
235
|
+
}),
|
|
236
|
+
F && m(le, {}),
|
|
237
|
+
U && m(d, {
|
|
238
|
+
type: "secondary",
|
|
239
|
+
size: "m",
|
|
240
|
+
icon: m(te, { icon: ee }),
|
|
241
|
+
...I,
|
|
242
|
+
className: S("kit-kanban-see-more", I?.className),
|
|
243
|
+
onClick: () => s(D),
|
|
244
|
+
children: ie.Kanban?.seeMore ?? t.seeMore
|
|
245
|
+
}),
|
|
246
|
+
T !== null && m("div", {
|
|
247
|
+
className: "kit-kanban-drop-indicator",
|
|
248
|
+
style: { top: T },
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
})
|
|
251
|
+
]
|
|
252
|
+
})
|
|
253
|
+
})]
|
|
254
|
+
});
|
|
255
|
+
}, G = 10, K = [], de = {
|
|
256
|
+
start: [w.Space],
|
|
257
|
+
cancel: [w.Esc],
|
|
258
|
+
end: [
|
|
259
|
+
w.Space,
|
|
260
|
+
w.Enter,
|
|
261
|
+
w.Tab
|
|
262
|
+
]
|
|
263
|
+
}, q = (e, t) => e.replace(/\{(\w+)\}/g, (e, n) => t[n] ?? ""), fe = 320, pe = (e) => e.pointerCoordinates ? E(e) : D(e), me = (e, t) => Array.from(e?.querySelectorAll("[data-kanban-item-id]") ?? []).filter((e) => e.dataset.kanbanItemId !== t).map((e) => {
|
|
264
|
+
let { top: t, height: n } = e.getBoundingClientRect();
|
|
265
|
+
return t + n / 2;
|
|
266
|
+
}), he = (e, t) => {
|
|
267
|
+
let { initial: n, translated: r } = e.rect.current, i = r ?? n;
|
|
268
|
+
return i ? n && "clientY" in t ? i.top + (t.clientY - n.top) : i.top + i.height / 2 : null;
|
|
269
|
+
}, ge = g(({ columns: a, loading: o = !1, canDrop: s, onDrop: c, onGrab: l, onGrabCancel: u, onItemClick: d, onLoadMore: f, draggable: p = !0, sortable: g = !0, selectable: _ = !1, selectedIds: y, selectedCount: C, onSelect: ee, selectionActions: te, onClearSelection: w, pageSize: E = G, columnWidth: D = fe, className: O, style: oe, ...A }, j) => {
|
|
270
|
+
let { appId: M } = e(), { locale: N } = n(), P = v(), F = b(null), I = ne(F, j), [L, z] = x(null), [B, V] = x(null), [le, H] = x(!1), U = b(null), W = b(null), [ge, _e] = x({}), J = (e) => {
|
|
271
|
+
let t = a.find(({ id: t }) => t === e);
|
|
272
|
+
return t?.hasMore === void 0 ? ge[e] ?? E : t.items.length;
|
|
273
|
+
}, ve = (e) => e === null ? null : F.current?.querySelector(`[data-kanban-column-id="${CSS.escape(e)}"]`) ?? null, ye = se(k(ae, { activationConstraint: { distance: 5 } }), k(T, {
|
|
274
|
+
coordinateGetter: (e, { context: t, currentCoordinates: n }) => {
|
|
275
|
+
let { collisionRect: r } = t;
|
|
276
|
+
if (r) switch (e.code) {
|
|
277
|
+
case "ArrowUp":
|
|
278
|
+
case "ArrowDown": {
|
|
279
|
+
if (e.preventDefault(), !g) return;
|
|
280
|
+
let i = e.code === "ArrowUp" ? -1 : 1, a = r.top + r.height / 2, o = me(ve(U.current), String(t.active?.id)).filter((e) => (e - a) * i > 1).sort((e, t) => Math.abs(e - a) - Math.abs(t - a));
|
|
281
|
+
return o.length > 0 ? {
|
|
282
|
+
x: n.x,
|
|
283
|
+
y: n.y + o[0] + i - a
|
|
284
|
+
} : void 0;
|
|
285
|
+
}
|
|
286
|
+
case "ArrowLeft":
|
|
287
|
+
case "ArrowRight": {
|
|
288
|
+
e.preventDefault();
|
|
289
|
+
let t = e.code === "ArrowLeft" ? -1 : 1, i = r.left + r.width / 2, a = Array.from(F.current?.querySelectorAll("[data-kanban-column-id]:not([data-state=\"disabled\"])") ?? []).map((e) => {
|
|
290
|
+
let { left: t, width: n } = e.getBoundingClientRect();
|
|
291
|
+
return t + n / 2;
|
|
292
|
+
}).filter((e) => (e - i) * t > 1).sort((e, t) => Math.abs(e - i) - Math.abs(t - i));
|
|
293
|
+
return a.length > 0 ? {
|
|
294
|
+
x: a[0] - r.width / 2,
|
|
295
|
+
y: n.y
|
|
296
|
+
} : void 0;
|
|
297
|
+
}
|
|
298
|
+
default: return;
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
keyboardCodes: de
|
|
302
|
+
})), be = (e, t) => a.find((t) => t.id === e)?.items.find((e) => e.id === t), Y = (e, t) => {
|
|
303
|
+
let n = a.find((e) => e.id === t), r = be(e.columnId, e.itemId);
|
|
304
|
+
return n !== void 0 && r !== void 0 && !n.disabled && !n.loading && (s?.(r, e.columnId, t) ?? !0);
|
|
305
|
+
}, X = (e, t) => !g && t === e.columnId, xe = (e) => L ? X(L, e) ? "default" : Y(L, e) ? B?.columnId === e ? "highlight" : "default" : "disabled" : a.find((t) => t.id === e)?.disabled ? "disabled" : "default", Se = (e, t, n) => {
|
|
306
|
+
let r = he(t, n), i = ve(e);
|
|
307
|
+
if (r === null || !i) return null;
|
|
308
|
+
let a = me(i, String(t.id));
|
|
309
|
+
return g ? a.filter((e) => e < r).length : a.length;
|
|
310
|
+
}, Ce = (e, t, n) => {
|
|
311
|
+
if (e !== null && L && X(L, e)) {
|
|
312
|
+
V(null);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
let r = e === null ? null : Se(e, t, n);
|
|
316
|
+
V((t) => e === null || r === null ? null : t?.columnId === e && t.index === r ? t : {
|
|
317
|
+
columnId: e,
|
|
318
|
+
index: r
|
|
319
|
+
});
|
|
320
|
+
}, we = ({ active: e, activatorEvent: t }) => {
|
|
321
|
+
let n = String(e.data.current?.columnId), r = String(e.id), i = a.find((e) => e.id === n)?.items.findIndex((e) => e.id === r) ?? -1;
|
|
322
|
+
z({
|
|
323
|
+
itemId: r,
|
|
324
|
+
columnId: n,
|
|
325
|
+
index: i
|
|
326
|
+
}), U.current = n, g && Ce(n, e, t), l?.({
|
|
327
|
+
itemId: r,
|
|
328
|
+
columnId: n,
|
|
329
|
+
index: i
|
|
330
|
+
});
|
|
331
|
+
}, Te = ({ active: e, activatorEvent: t, over: n }) => {
|
|
332
|
+
U.current = n ? String(n.id) : null, H(U.current !== null && L !== null && !X(L, U.current) && !Y(L, U.current)), Ce(U.current, e, t);
|
|
333
|
+
}, Ee = ({ active: e, activatorEvent: t }) => Ce(U.current, e, t), De = () => {
|
|
334
|
+
U.current = null, H(!1), z(null), V(null);
|
|
335
|
+
}, Oe = (e) => u?.({
|
|
336
|
+
itemId: e.itemId,
|
|
337
|
+
columnId: e.columnId,
|
|
338
|
+
index: e.index
|
|
339
|
+
}), ke = () => {
|
|
340
|
+
let e = L;
|
|
341
|
+
De(), e && Oe(e);
|
|
342
|
+
}, Ae = ({ active: e, activatorEvent: t, over: n }) => {
|
|
343
|
+
let r = L;
|
|
344
|
+
if (De(), !r) return;
|
|
345
|
+
let i = n ? String(n.id) : null, o = i === null ? null : Se(i, e, t);
|
|
346
|
+
if (i === null || o === null || X(r, i) || !Y(r, i)) {
|
|
347
|
+
Oe(r);
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
let s = r.index;
|
|
351
|
+
if (i === r.columnId && o === s) {
|
|
352
|
+
Oe(r);
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
let l = a.find((e) => e.id === i);
|
|
356
|
+
l && i !== r.columnId && l.items.length >= J(i) && _e((e) => ({
|
|
357
|
+
...e,
|
|
358
|
+
[i]: J(i) + 1
|
|
359
|
+
})), c?.({
|
|
360
|
+
itemId: r.itemId,
|
|
361
|
+
fromColumnId: r.columnId,
|
|
362
|
+
fromIndex: s,
|
|
363
|
+
toColumnId: i,
|
|
364
|
+
toIndex: o
|
|
365
|
+
});
|
|
366
|
+
}, je = (e) => {
|
|
367
|
+
_e((t) => ({
|
|
368
|
+
...t,
|
|
369
|
+
[e]: J(e) + E
|
|
370
|
+
})), f?.(e);
|
|
371
|
+
}, Me = L ? be(L.columnId, L.itemId) : void 0, Z = (e) => N.Kanban?.[e] ?? t[e], Ne = (e) => a.find((t) => t.id === e)?.title ?? e, Q = (e) => {
|
|
372
|
+
let t = String(e.data.current?.columnId), n = String(e.id);
|
|
373
|
+
return {
|
|
374
|
+
itemId: n,
|
|
375
|
+
columnId: t,
|
|
376
|
+
index: a.find((e) => e.id === t)?.items.findIndex((e) => e.id === n) ?? -1
|
|
377
|
+
};
|
|
378
|
+
}, $ = (e, t) => ({
|
|
379
|
+
card: be(e.columnId, e.itemId)?.label ?? e.itemId,
|
|
380
|
+
column: Ne(t)
|
|
381
|
+
}), Pe = {
|
|
382
|
+
onDragStart: ({ active: e }) => {
|
|
383
|
+
let t = Q(e);
|
|
384
|
+
return W.current = t.columnId, q(Z("dragStarted"), $(t, t.columnId));
|
|
385
|
+
},
|
|
386
|
+
onDragOver: ({ active: e, over: t }) => {
|
|
387
|
+
let n = Q(e), r = t ? String(t.id) : null;
|
|
388
|
+
if (r !== W.current) return W.current = r, r === null ? q(Z("dragOutsideColumns"), $(n, n.columnId)) : q(Z("dragOverColumn"), $(n, r));
|
|
389
|
+
},
|
|
390
|
+
onDragEnd: ({ active: e, over: t }) => {
|
|
391
|
+
let n = Q(e), r = t ? String(t.id) : null;
|
|
392
|
+
return r !== null && !X(n, r) && Y(n, r) ? q(Z("dragDropped"), $(n, r)) : q(Z("dragReturned"), $(n, n.columnId));
|
|
393
|
+
},
|
|
394
|
+
onDragCancel: ({ active: e }) => {
|
|
395
|
+
let t = Q(e);
|
|
396
|
+
return q(Z("dragReturned"), $(t, t.columnId));
|
|
397
|
+
}
|
|
398
|
+
}, Fe = _ && (!!te?.length || w !== void 0), Ie = S(M, R["kit-kanban"], O, {
|
|
399
|
+
"kit-kanban-dragging": L !== null,
|
|
400
|
+
"kit-kanban-drop-refused": le,
|
|
401
|
+
"kit-kanban-with-selection-snack-bar": Fe
|
|
402
|
+
}), Le = {
|
|
403
|
+
"--kit-kanban-column-width": typeof D == "number" ? `${D}px` : D,
|
|
404
|
+
...oe
|
|
405
|
+
}, Re = C ?? y?.length ?? 0, ze = Fe && Re > 0, Be = Re === 1 ? N.Kanban?.cardSelected ?? t.cardSelected : N.Kanban?.cardsSelected ?? t.cardsSelected;
|
|
406
|
+
if (o) return m("div", {
|
|
407
|
+
...A,
|
|
408
|
+
ref: I,
|
|
409
|
+
className: Ie,
|
|
410
|
+
style: Le,
|
|
411
|
+
"aria-busy": "true",
|
|
412
|
+
children: m("div", {
|
|
413
|
+
className: "kit-kanban-loader",
|
|
414
|
+
"aria-hidden": "true",
|
|
415
|
+
children: m(r, {})
|
|
416
|
+
})
|
|
417
|
+
});
|
|
418
|
+
let Ve = h("div", {
|
|
419
|
+
...A,
|
|
420
|
+
ref: I,
|
|
421
|
+
className: Ie,
|
|
422
|
+
style: Le,
|
|
423
|
+
children: [h("div", {
|
|
424
|
+
className: R["kit-kanban-board"],
|
|
425
|
+
children: [a.map((e) => m(ue, {
|
|
426
|
+
column: e,
|
|
427
|
+
state: xe(e.id),
|
|
428
|
+
dropIndex: B?.columnId === e.id ? B.index : null,
|
|
429
|
+
activeItemId: L?.itemId ?? null,
|
|
430
|
+
visibleCount: J(e.id),
|
|
431
|
+
onSeeMore: je,
|
|
432
|
+
isDragging: L !== null,
|
|
433
|
+
draggable: p,
|
|
434
|
+
sortable: g,
|
|
435
|
+
selectable: _,
|
|
436
|
+
selectedIds: y,
|
|
437
|
+
onSelect: ee,
|
|
438
|
+
onItemClick: d
|
|
439
|
+
}, e.id)), p && m(ie, { children: Me && L && m("div", {
|
|
440
|
+
className: S(R["kit-kanban-item"], "kit-kanban-item-overlay"),
|
|
441
|
+
"aria-hidden": "true",
|
|
442
|
+
children: m(ce, {
|
|
443
|
+
item: Me,
|
|
444
|
+
columnId: L.columnId,
|
|
445
|
+
disabled: !1,
|
|
446
|
+
selectable: _,
|
|
447
|
+
selected: y?.includes(Me.id) ?? !1
|
|
448
|
+
})
|
|
449
|
+
}) })]
|
|
450
|
+
}), m("div", {
|
|
451
|
+
className: "kit-kanban-selection",
|
|
452
|
+
role: "status",
|
|
453
|
+
children: ze && m(i, {
|
|
454
|
+
message: `${Re} ${Be}`,
|
|
455
|
+
actions: te,
|
|
456
|
+
closable: w ? !0 : void 0,
|
|
457
|
+
onClose: w
|
|
458
|
+
})
|
|
459
|
+
})]
|
|
460
|
+
});
|
|
461
|
+
return m(re, {
|
|
462
|
+
id: P,
|
|
463
|
+
sensors: p ? ye : K,
|
|
464
|
+
collisionDetection: pe,
|
|
465
|
+
accessibility: {
|
|
466
|
+
screenReaderInstructions: { draggable: d ? `${Z("dragInstructions")} ${Z("openInstructions")}` : Z("dragInstructions") },
|
|
467
|
+
announcements: Pe
|
|
468
|
+
},
|
|
469
|
+
onDragStart: we,
|
|
470
|
+
onDragOver: Te,
|
|
471
|
+
onDragMove: Ee,
|
|
472
|
+
onDragEnd: Ae,
|
|
473
|
+
onDragCancel: ke,
|
|
474
|
+
children: Ve
|
|
475
|
+
});
|
|
476
|
+
});
|
|
477
|
+
ge.displayName = "KitKanban";
|
|
478
|
+
export { L as n, ge as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./useKitLocale.Y5XHnnYS.js";
|
|
2
2
|
import { KitButtonTooltip as t } from "../Kit/DataEntry/RichText/MenuBar/ButtonTooltip/index.js";
|
|
3
|
-
import { t as n } from "./Input.
|
|
4
|
-
import { t as r } from "./Modal.
|
|
5
|
-
import { t as i } from "./Button.
|
|
3
|
+
import { t as n } from "./Input.NJ0gxOKB.js";
|
|
4
|
+
import { t as r } from "./Modal.BGfgvCM-.js";
|
|
5
|
+
import { t as i } from "./Button.Cf2t8x-g.js";
|
|
6
6
|
import { KitSpace as a } from "../Kit/General/Space/index.js";
|
|
7
7
|
import { Form as o } from "antd";
|
|
8
8
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { t as e } from "./faKitLoader.BJKbv-bm.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { FontAwesomeIcon as r } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import '../assets/LoadingSuffix.css';// src/Kit/DataEntry/Select/styles.module.scss
|
|
5
|
+
var i = { "kit-select": "_kit-select_1cppq_1" }, a = ({ children: i }) => n("span", {
|
|
6
|
+
className: "kit-select-loading-suffix",
|
|
7
|
+
children: [t(r, {
|
|
8
|
+
icon: e,
|
|
9
|
+
spin: !0,
|
|
10
|
+
className: "kit-select-loader"
|
|
11
|
+
}), i]
|
|
12
|
+
}), o = (e) => typeof e == "function" ? ((n) => t(a, { children: e(n) })) : t(a, { children: e });
|
|
13
|
+
export { i as n, o as t };
|