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
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./Button.
|
|
2
|
-
import { n as t, t as n } from "./InternalSizeChanger.
|
|
1
|
+
import { t as e } from "./Button.Cf2t8x-g.js";
|
|
2
|
+
import { n as t, t as n } from "./InternalSizeChanger.4uhUYdQf.js";
|
|
3
3
|
import { n as r } from "./useKitTheme.P5Q2DIyI.js";
|
|
4
4
|
import { n as i } from "./useKitLocale.Y5XHnnYS.js";
|
|
5
|
-
import { t as a } from "./Icon.
|
|
5
|
+
import { t as a } from "./Icon.DbHbt0HM.js";
|
|
6
6
|
import { Table as o } from "antd";
|
|
7
7
|
import { jsx as s } from "react/jsx-runtime";
|
|
8
8
|
import { forwardRef as c, useMemo as l, useRef as u } from "react";
|
|
@@ -134,18 +134,20 @@ function D(e, t) {
|
|
|
134
134
|
var O = {
|
|
135
135
|
"kit-table": "_kit-table_1tdvg_21",
|
|
136
136
|
"expand-button": "_expand-button_1tdvg_970"
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
}, k = (t, n) => s(e, {
|
|
138
|
+
className: d(O["expand-button"], { "kit-table-expand-button-expanded": t }),
|
|
139
|
+
type: "tertiary",
|
|
140
|
+
onClick: n,
|
|
141
|
+
children: s(v, { icon: t ? m : h })
|
|
142
|
+
});
|
|
143
|
+
function A({ record: e, expanded: t, onExpand: n, expandable: r }) {
|
|
144
|
+
return r ? k(t, (t) => n(e, t)) : null;
|
|
145
|
+
}
|
|
146
|
+
function j({ expanded: e, expandable: t, onClick: n }) {
|
|
147
|
+
return t ? k(e, n) : null;
|
|
146
148
|
}
|
|
147
149
|
// src/Kit/DataDisplay/Table/SortIcon.tsx
|
|
148
|
-
var
|
|
150
|
+
var M = ({ sortOrder: e }) => {
|
|
149
151
|
let t, n;
|
|
150
152
|
switch (e) {
|
|
151
153
|
case "ascend":
|
|
@@ -160,26 +162,26 @@ var A = ({ sortOrder: e }) => {
|
|
|
160
162
|
color: n,
|
|
161
163
|
icon: s(v, { icon: t })
|
|
162
164
|
});
|
|
163
|
-
},
|
|
165
|
+
}, N = (e, t, n, r) => {
|
|
164
166
|
let i = e.bordered ?? !!e.children;
|
|
165
167
|
return {
|
|
166
168
|
start: i || r.start && t === 0,
|
|
167
169
|
end: i || r.end && t === n - 1
|
|
168
170
|
};
|
|
169
|
-
},
|
|
170
|
-
let i =
|
|
171
|
-
return n.children ?
|
|
172
|
-
}),
|
|
173
|
-
let t =
|
|
171
|
+
}, P = (e) => e.children?.reduce((e, t) => e + P(t), 0) ?? 1, F = (e, t) => e.flatMap((n, r) => {
|
|
172
|
+
let i = N(n, r, e.length, t);
|
|
173
|
+
return n.children ? F(n.children, i) : [i];
|
|
174
|
+
}), I = (e) => {
|
|
175
|
+
let t = F(e, {
|
|
174
176
|
start: !1,
|
|
175
177
|
end: !1
|
|
176
178
|
});
|
|
177
179
|
return t.map((e, n) => e.end && !!t[n + 1]?.start);
|
|
178
|
-
},
|
|
180
|
+
}, L = (e, t, { isTop: n, isEdgeStart: r, isEdgeEnd: i, firstLeaf: a, ...s }) => {
|
|
179
181
|
let c = a;
|
|
180
182
|
return e.map((a, l) => {
|
|
181
183
|
if (a === o.SELECTION_COLUMN) return c += 1, a;
|
|
182
|
-
let { bordered: u, children: f, className: p, ...m } = a, h =
|
|
184
|
+
let { bordered: u, children: f, className: p, ...m } = a, h = N(a, l, e.length, s), g = r && l === 0, _ = i && l === e.length - 1, v = c, y = v + P(a) - 1;
|
|
183
185
|
return c = y + 1, {
|
|
184
186
|
...m,
|
|
185
187
|
className: d(p, {
|
|
@@ -193,7 +195,7 @@ var A = ({ sortOrder: e }) => {
|
|
|
193
195
|
"kit-table-header-edge-start": g,
|
|
194
196
|
"kit-table-header-edge-end": _
|
|
195
197
|
}),
|
|
196
|
-
...f && { children:
|
|
198
|
+
...f && { children: L(f, t, {
|
|
197
199
|
...h,
|
|
198
200
|
isTop: !1,
|
|
199
201
|
isEdgeStart: g,
|
|
@@ -202,83 +204,89 @@ var A = ({ sortOrder: e }) => {
|
|
|
202
204
|
}) }
|
|
203
205
|
};
|
|
204
206
|
});
|
|
205
|
-
},
|
|
207
|
+
}, R = (e) => L(e, I(e), {
|
|
206
208
|
start: !1,
|
|
207
209
|
end: !1,
|
|
208
210
|
isTop: !0,
|
|
209
211
|
isEdgeStart: !0,
|
|
210
212
|
isEdgeEnd: !0,
|
|
211
213
|
firstLeaf: 0
|
|
212
|
-
}),
|
|
214
|
+
}), z = 48, B = {
|
|
213
215
|
xs: 32,
|
|
214
216
|
s: 48,
|
|
215
217
|
m: 56,
|
|
216
218
|
l: 72
|
|
217
|
-
},
|
|
218
|
-
function
|
|
219
|
-
let { appId:
|
|
219
|
+
}, V = (e) => e === !0 || e === "left" || e === "start";
|
|
220
|
+
function H({ className: e, style: a, cellsBackgroundColor: c, backgroundColor: f, borderedRows: p, columns: m, onChange: h, components: g, showDragHandle: _, showHeader: v = !0, dragHandleElement: b, headerLineSize: x = "m", lineSize: S = "l", virtual: w, pagination: T, fullWidthRow: E, ...k }) {
|
|
221
|
+
let { appId: A, theme: N } = r(), { locale: P } = i(), F = k.dataSource?.length ?? 0, I = !!w && F > 0, L = d(A, O["kit-table"], e, `kit-table-line-size-${S}`, `kit-table-header-line-size-${x}`, {
|
|
220
222
|
"kit-table-bordered-rows": p,
|
|
221
223
|
"kit-table-headless": v === !1
|
|
222
224
|
}), H = u(E);
|
|
223
225
|
H.current = E;
|
|
224
|
-
let U = !!E, W =
|
|
225
|
-
...
|
|
226
|
-
columnWidth:
|
|
227
|
-
}, [
|
|
226
|
+
let U = !!E, W = !!k.expandable?.expandIcon, G = k?.rowSelection, K = l(() => G && {
|
|
227
|
+
...G,
|
|
228
|
+
columnWidth: z
|
|
229
|
+
}, [G]), q = l(() => {
|
|
228
230
|
let e = (U ? C(m, (e) => !!H.current?.call(H, e)) : [...m]).map((e) => _ ? {
|
|
229
231
|
...e,
|
|
230
232
|
sorter: void 0
|
|
231
|
-
} : (e.sorter && (e.sortIcon = ({ sortOrder: e }) => s(
|
|
232
|
-
return
|
|
233
|
+
} : (e.sorter && (e.sortIcon = ({ sortOrder: e }) => s(M, { sortOrder: e })), e));
|
|
234
|
+
return K && e.unshift(o.SELECTION_COLUMN), _ && e.unshift({
|
|
233
235
|
key: "drag-handle",
|
|
234
236
|
align: "center",
|
|
235
237
|
render: (e, t) => H.current?.call(H, t) ? null : b ?? s(y, {})
|
|
236
|
-
}),
|
|
238
|
+
}), R(e);
|
|
237
239
|
}, [
|
|
238
240
|
m,
|
|
239
|
-
|
|
241
|
+
K,
|
|
240
242
|
_,
|
|
241
243
|
b,
|
|
242
244
|
U
|
|
243
|
-
]),
|
|
245
|
+
]), J = !!K && V(K?.fixed ?? m[0]?.fixed), Y = (T ? T.pageSizeOptions : void 0)?.join(","), X = l(() => n(Y ? Y.split(",").map(Number) : t, P), [Y, P]), Z = T !== !1 && {
|
|
244
246
|
...T,
|
|
245
247
|
components: {
|
|
246
248
|
...T?.components,
|
|
247
|
-
sizeChanger: T?.components?.sizeChanger ??
|
|
249
|
+
sizeChanger: T?.components?.sizeChanger ?? X
|
|
248
250
|
}
|
|
249
|
-
},
|
|
251
|
+
}, Q = (e, t, n, r) => {
|
|
250
252
|
h?.(e, n, r);
|
|
251
|
-
},
|
|
253
|
+
}, $ = I ? { listItemHeight: B[S] } : void 0;
|
|
252
254
|
return s(o, {
|
|
253
|
-
className:
|
|
255
|
+
className: L,
|
|
254
256
|
style: {
|
|
255
257
|
"--kit-table-cells-background-color": c,
|
|
256
258
|
"--kit-table-background": f,
|
|
257
|
-
"--kit-table-pinned-left":
|
|
259
|
+
"--kit-table-pinned-left": J ? `${z}px` : void 0,
|
|
258
260
|
...a
|
|
259
261
|
},
|
|
260
|
-
columns:
|
|
261
|
-
components: l(() =>
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
columns: q,
|
|
263
|
+
components: l(() => ({
|
|
264
|
+
...D(g, I),
|
|
265
|
+
ExpandIcon: W ? void 0 : j
|
|
266
|
+
}), [
|
|
267
|
+
g,
|
|
268
|
+
I,
|
|
269
|
+
W
|
|
270
|
+
]),
|
|
271
|
+
onChange: Q,
|
|
272
|
+
...k,
|
|
273
|
+
pagination: Z,
|
|
265
274
|
rowClassName: (e, t, n) => {
|
|
266
275
|
let r = `kit-table-row-level-${n} `;
|
|
267
|
-
return r += !n || n % 2 ? "" : "with-light-gray-background ", typeof
|
|
276
|
+
return r += !n || n % 2 ? "" : "with-light-gray-background ", typeof k.rowClassName == "string" && (r += k.rowClassName), typeof k.rowClassName == "function" && (r += k.rowClassName(e, t, n)), r;
|
|
268
277
|
},
|
|
269
278
|
expandable: {
|
|
270
|
-
expandIcon: k,
|
|
271
279
|
rowExpandable: (e) => !Array.isArray(e?.children) || !e?.children?.length,
|
|
272
280
|
indentSize: N.spacing.m,
|
|
273
|
-
...
|
|
281
|
+
...k.expandable
|
|
274
282
|
},
|
|
275
|
-
rowSelection:
|
|
283
|
+
rowSelection: K,
|
|
276
284
|
showHeader: v,
|
|
277
|
-
|
|
278
|
-
virtual:
|
|
285
|
+
...$,
|
|
286
|
+
virtual: I
|
|
279
287
|
});
|
|
280
288
|
}
|
|
281
289
|
// src/Kit/DataDisplay/Table/index.tsx
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
export {
|
|
290
|
+
var U = H;
|
|
291
|
+
U.displayName = "KitTable", U.DragHandle = y;
|
|
292
|
+
export { A as n, U as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./Modal.
|
|
1
|
+
import { t as e } from "./Modal.BGfgvCM-.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";
|
|
5
|
-
import { t as i } from "./IdCard.
|
|
5
|
+
import { t as i } from "./IdCard.DcdzxJ6s.js";
|
|
6
6
|
import { Tag as a } from "antd";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { forwardRef as c, useEffect as l, useLayoutEffect as u, useRef as d, useState as f } from "react";
|
|
@@ -11,13 +11,13 @@ import { faXmark as m } from "@fortawesome/free-solid-svg-icons";
|
|
|
11
11
|
import { FontAwesomeIcon as h } from "@fortawesome/react-fontawesome";
|
|
12
12
|
import '../assets/Tag.css';// src/Kit/DataDisplay/Tag/styles.module.scss
|
|
13
13
|
var g = {
|
|
14
|
-
"kit-tag": "_kit-
|
|
15
|
-
"kit-tag-group": "_kit-tag-
|
|
16
|
-
"kit-tag-group-measure": "_kit-tag-group-
|
|
17
|
-
"kit-tag-group-item": "_kit-tag-group-
|
|
18
|
-
"kit-tag-group-modal-list": "_kit-tag-group-modal-
|
|
19
|
-
"kit-tag-group-container": "_kit-tag-group-
|
|
20
|
-
"kit-tag-group-tooltip-overlay": "_kit-tag-group-tooltip-
|
|
14
|
+
"kit-tag": "_kit-tag_mppkn_1",
|
|
15
|
+
"kit-tag-group": "_kit-tag-group_mppkn_255",
|
|
16
|
+
"kit-tag-group-measure": "_kit-tag-group-measure_mppkn_256",
|
|
17
|
+
"kit-tag-group-item": "_kit-tag-group-item_mppkn_268",
|
|
18
|
+
"kit-tag-group-modal-list": "_kit-tag-group-modal-list_mppkn_283",
|
|
19
|
+
"kit-tag-group-container": "_kit-tag-group-container_mppkn_299",
|
|
20
|
+
"kit-tag-group-tooltip-overlay": "_kit-tag-group-tooltip-overlay_mppkn_306"
|
|
21
21
|
}, _ = c(({ className: e, closeIcon: s, type: c = "neutral", disabled: l, onClick: u, onKeyDown: d, onKeyUp: f, idCardProps: _, size: v = "medium", children: y, closeText: b, ...x }, S) => {
|
|
22
22
|
let { appId: C } = t(), { locale: w } = n(), T = p(C, g["kit-tag"], e, {
|
|
23
23
|
[`kit-tag-${c}`]: c,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { n as e } from "./useKitTheme.P5Q2DIyI.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as r } from "react";
|
|
4
|
+
import i from "classnames";
|
|
5
|
+
import '../assets/ToolBar.css';// src/Kit/DataDisplay/ToolBar/styles.module.scss
|
|
6
|
+
var a = { "kit-toolbar": "_kit-toolbar_1m8f5_1" }, o = r(({ className: r, children: o, actions: s, gap: c = "xs", ...l }, u) => {
|
|
7
|
+
let { appId: d } = e(), f = s != null && typeof s != "boolean" && s !== "";
|
|
8
|
+
return n("div", {
|
|
9
|
+
ref: u,
|
|
10
|
+
className: i(a["kit-toolbar"], `kit-toolbar-gap-${c}`, r, d),
|
|
11
|
+
...l,
|
|
12
|
+
children: [t("div", {
|
|
13
|
+
className: "kit-toolbar-content",
|
|
14
|
+
children: o
|
|
15
|
+
}), f && t("div", {
|
|
16
|
+
className: "kit-toolbar-actions",
|
|
17
|
+
children: s
|
|
18
|
+
})]
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
o.displayName = "KitToolBar";
|
|
22
|
+
export { o as t };
|
|
@@ -1,43 +1,44 @@
|
|
|
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
3
|
import { n } from "./Breadcrumb.DUEiho8q.js";
|
|
4
4
|
import { n as r } from "./useKitLocale.Y5XHnnYS.js";
|
|
5
5
|
import { t as i } from "./useDeprecatedInputWrapper.CZ2-c80o.js";
|
|
6
6
|
import { t as a } from "./useGetPopupContainer.Bcn4zw7O.js";
|
|
7
|
-
import { t as o } from "./
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import _ from "
|
|
15
|
-
import
|
|
7
|
+
import { t as o } from "./useLoadingWidthLock.CzCPeVNp.js";
|
|
8
|
+
import { n as s, t as c } from "./LoadingSuffix.DoHzo7nz.js";
|
|
9
|
+
import { t as l } from "./IdCard.DcdzxJ6s.js";
|
|
10
|
+
import { t as u } from "./Tag.By8jS_2F.js";
|
|
11
|
+
import { t as d } from "./Icon.DbHbt0HM.js";
|
|
12
|
+
import { TreeSelect as f } from "antd";
|
|
13
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
14
|
+
import { forwardRef as m, useEffect as ee, useMemo as h, useRef as g, useState as _ } from "react";
|
|
15
|
+
import v from "classnames";
|
|
16
|
+
import { faCaretRight as te, faCheck as y, faChevronDown as b, faCircleXmark as x } from "@fortawesome/free-solid-svg-icons";
|
|
16
17
|
import { FontAwesomeIcon as S } from "@fortawesome/react-fontawesome";
|
|
17
|
-
import { useDebouncedCallback as
|
|
18
|
+
import { useDebouncedCallback as ne } from "use-debounce";
|
|
18
19
|
import C from "short-unique-id";
|
|
19
20
|
// src/Kit/DataEntry/TreeSelect/renders.tsx
|
|
20
|
-
var w = (e, t, n) => e === "onDuplicate" ? typeof t == "string" && n.has(t) : !!e,
|
|
21
|
-
let
|
|
22
|
-
description:
|
|
23
|
-
descriptionPrefix: w(a,
|
|
24
|
-
},
|
|
25
|
-
return
|
|
26
|
-
type: T(
|
|
27
|
-
disabled:
|
|
21
|
+
var w = (e, t, n) => e === "onDuplicate" ? typeof t == "string" && n.has(t) : !!e, re = (e, t, n, r, i, a, o) => {
|
|
22
|
+
let s = i.get(e.value), c = s?.ancestorTitles ?? [], d = {
|
|
23
|
+
description: s?.node.title ?? e?.label,
|
|
24
|
+
descriptionPrefix: w(a, s?.node.title, o) && c.length > 0 ? `${c.join(" > ")} > ` : void 0
|
|
25
|
+
}, f = t || !!s?.node.disabled, m = e.closable && !r;
|
|
26
|
+
return p(u, {
|
|
27
|
+
type: T(f, n),
|
|
28
|
+
disabled: f,
|
|
28
29
|
onClose: m ? (t) => {
|
|
29
30
|
e.onClose(t);
|
|
30
31
|
} : void 0,
|
|
31
32
|
onMouseDown: (e) => {
|
|
32
33
|
e.preventDefault(), e.stopPropagation();
|
|
33
34
|
},
|
|
34
|
-
children:
|
|
35
|
-
disabled:
|
|
36
|
-
description:
|
|
37
|
-
descriptionPrefix:
|
|
35
|
+
children: p(l, {
|
|
36
|
+
disabled: f,
|
|
37
|
+
description: d.description,
|
|
38
|
+
descriptionPrefix: d.descriptionPrefix
|
|
38
39
|
})
|
|
39
40
|
});
|
|
40
|
-
}, T = (e, t) => e || t === "warning" ? "neutral" : t === "error" ? "error" : "secondary",
|
|
41
|
+
}, T = (e, t) => e || t === "warning" ? "neutral" : t === "error" ? "error" : "secondary", ie = (e, t) => p("div", {
|
|
41
42
|
className: "kit-select-dropdown-content",
|
|
42
43
|
children: t ? t(e) : e
|
|
43
44
|
}), E = (e) => {
|
|
@@ -48,19 +49,16 @@ var w = (e, t, n) => e === "onDuplicate" ? typeof t == "string" && n.has(t) : !!
|
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
// src/Kit/DataEntry/TreeSelect/useIcons.tsx
|
|
51
|
-
function
|
|
52
|
-
let { locale:
|
|
52
|
+
function ae({ allowClear: e = !0, loading: t = !1, suffix: n }) {
|
|
53
|
+
let { locale: i } = r(), a = e ? p(S, {
|
|
54
|
+
"aria-label": i.General?.clear,
|
|
55
|
+
icon: x
|
|
56
|
+
}) : null, o = n ?? p(S, { icon: b });
|
|
53
57
|
return {
|
|
54
|
-
clearIcon:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_suffixIcon: t ? d(S, {
|
|
59
|
-
icon: b,
|
|
60
|
-
spin: !0
|
|
61
|
-
}) : d(S, { icon: y }),
|
|
62
|
-
selectedItemIcon: d(l, {
|
|
63
|
-
icon: d(S, { icon: v }),
|
|
58
|
+
clearIcon: a,
|
|
59
|
+
_suffixIcon: t ? c(o) : o,
|
|
60
|
+
selectedItemIcon: p(d, {
|
|
61
|
+
icon: p(S, { icon: y }),
|
|
64
62
|
on: !0
|
|
65
63
|
})
|
|
66
64
|
};
|
|
@@ -73,13 +71,13 @@ var D = (e, t = /* @__PURE__ */ new Map(), n = []) => (e?.forEach((e) => {
|
|
|
73
71
|
});
|
|
74
72
|
let r = typeof e.title == "string" ? [...n, e.title] : n;
|
|
75
73
|
D(e.children, t, r);
|
|
76
|
-
}), t), O = (e) => e.closable === !1 && !e.disabled, k = "kitFullPathLabel",
|
|
74
|
+
}), t), O = (e) => e.closable === !1 && !e.disabled, k = "kitFullPathLabel", oe = (e) => {
|
|
77
75
|
let t = /* @__PURE__ */ new Map(), n = (e) => e?.forEach((e) => {
|
|
78
76
|
typeof e.title == "string" && t.set(e.title, (t.get(e.title) ?? 0) + 1), n(e.children);
|
|
79
77
|
});
|
|
80
78
|
return n(e), new Set([...t].filter(([, e]) => e > 1).map(([e]) => e));
|
|
81
79
|
}, A = (e, t, r, i = []) => e?.map((e) => {
|
|
82
|
-
let a = typeof e.title == "string" ? [...i, e.title] : i, o = w(t, e.title, r) && typeof e.title == "string" && i.length > 0 ?
|
|
80
|
+
let a = typeof e.title == "string" ? [...i, e.title] : i, o = w(t, e.title, r) && typeof e.title == "string" && i.length > 0 ? p(n.Path, {
|
|
83
81
|
separator: ">",
|
|
84
82
|
ancestorTitles: i,
|
|
85
83
|
children: e.title
|
|
@@ -90,48 +88,51 @@ var D = (e, t = /* @__PURE__ */ new Map(), n = []) => (e?.forEach((e) => {
|
|
|
90
88
|
[k]: o,
|
|
91
89
|
...O(e) ? { disabled: !0 } : {}
|
|
92
90
|
};
|
|
93
|
-
}),
|
|
91
|
+
}), se = (e, t, n, r, i) => {
|
|
94
92
|
let a = n?.includes("top");
|
|
95
|
-
return
|
|
93
|
+
return v(e, s["kit-select"], t, {
|
|
96
94
|
"ant-select-top": a,
|
|
97
95
|
"ant-select-bottom": !a,
|
|
98
96
|
"kit-select-readonly-light": r,
|
|
99
97
|
"kit-select-readonly": i
|
|
100
98
|
});
|
|
101
|
-
},
|
|
99
|
+
}, ce = (e, t, n, r, i) => {
|
|
102
100
|
let a = n?.includes("top");
|
|
103
|
-
return
|
|
101
|
+
return v(e, t, "kit-select-dropdown-content", {
|
|
104
102
|
"kit-select-dropdown-top": a,
|
|
105
103
|
"kit-select-dropdown-bottom": !a,
|
|
106
104
|
"kit-select-dropdown-focus": r,
|
|
107
105
|
"kit-select-dropdown-error": i === "error",
|
|
108
106
|
"kit-select-dropdown-warning": i === "warning"
|
|
109
107
|
});
|
|
110
|
-
},
|
|
108
|
+
}, le = new C({
|
|
111
109
|
length: 10,
|
|
112
110
|
dictionary: "alpha"
|
|
113
|
-
}), j =
|
|
114
|
-
let { appId: z } = t(), { locale: B } = r(), [V, H] =
|
|
111
|
+
}), j = m(({ id: n, treeData: s, htmlFor: c, label: l, extra: u, actions: d, helper: m, open: y, disabled: b, status: x, className: C, placement: w, readonlyLight: T = !1, readonly: O = !1, wrapperClassName: j, popupClassName: ue, required: M, allowClear: de, loading: N, suffixIcon: fe, suffix: pe, multiple: P, placeholder: me, getPopupContainer: he, dropdownRender: ge, popupRender: _e, onFocus: F, onBlur: I, onClick: ve, onClear: ye, onSearch: be, onSelect: xe, size: Se = "large", showFullPath: L = !1, treeNodeFilterProp: Ce = "title", treeNodeLabelProp: we = k, ...R }, Te) => {
|
|
112
|
+
let { appId: z } = t(), { locale: B } = r(), [V, H] = _(!1), [U, W] = _(!1), G = n ?? c ?? le.rnd(), Ee = g(null), K = g(!1), q = g("");
|
|
115
113
|
i("TreeSelect", {
|
|
116
|
-
htmlFor:
|
|
117
|
-
label:
|
|
118
|
-
extra:
|
|
119
|
-
actions:
|
|
120
|
-
helper:
|
|
114
|
+
htmlFor: c,
|
|
115
|
+
label: l,
|
|
116
|
+
extra: u,
|
|
117
|
+
actions: d,
|
|
118
|
+
helper: m,
|
|
121
119
|
className: j,
|
|
122
120
|
...R
|
|
123
121
|
});
|
|
124
|
-
let J =
|
|
125
|
-
allowClear:
|
|
126
|
-
loading: N
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
let J = Te ?? Ee, De = a(J, he), { clearIcon: Y, _suffixIcon: Oe } = ae({
|
|
123
|
+
allowClear: de,
|
|
124
|
+
loading: N,
|
|
125
|
+
suffix: pe ?? fe
|
|
126
|
+
});
|
|
127
|
+
o(N, () => J?.current?.nativeElement);
|
|
128
|
+
let ke = h(() => D(s), [s]), X = h(() => L === "onDuplicate" ? oe(s) : /* @__PURE__ */ new Set(), [s, L]), Ae = h(() => A(s, L, X), [
|
|
129
|
+
s,
|
|
129
130
|
L,
|
|
130
131
|
X
|
|
131
|
-
]), Z =
|
|
132
|
+
]), Z = ne(() => {
|
|
132
133
|
E(G);
|
|
133
134
|
}, 15);
|
|
134
|
-
|
|
135
|
+
ee(() => (V && (requestAnimationFrame(() => {
|
|
135
136
|
E(G);
|
|
136
137
|
}), document.addEventListener("scroll", Z)), () => {
|
|
137
138
|
document.removeEventListener("scroll", Z);
|
|
@@ -140,7 +141,7 @@ var D = (e, t = /* @__PURE__ */ new Map(), n = []) => (e?.forEach((e) => {
|
|
|
140
141
|
V,
|
|
141
142
|
G
|
|
142
143
|
]);
|
|
143
|
-
let
|
|
144
|
+
let je = (e) => {
|
|
144
145
|
var t;
|
|
145
146
|
(t = J?.current) == null || t.focus(), U || W(!0);
|
|
146
147
|
let n = e.target;
|
|
@@ -148,43 +149,43 @@ var D = (e, t = /* @__PURE__ */ new Map(), n = []) => (e?.forEach((e) => {
|
|
|
148
149
|
let e = q.current.length > 0;
|
|
149
150
|
n.closest(".ant-select-clear") || !e && (!P && V || P && V && n.closest(".ant-select")) ? H(!1) : H(!0);
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
q.current = e,
|
|
154
|
-
},
|
|
155
|
-
P || H(!1),
|
|
156
|
-
},
|
|
157
|
-
H(!1),
|
|
158
|
-
},
|
|
159
|
-
K.current || (H(!1), W(!1),
|
|
160
|
-
},
|
|
161
|
-
W(!0),
|
|
152
|
+
ve?.(e);
|
|
153
|
+
}, Q = (e) => {
|
|
154
|
+
q.current = e, be?.(e);
|
|
155
|
+
}, Me = (...e) => {
|
|
156
|
+
P || H(!1), xe?.(...e);
|
|
157
|
+
}, Ne = () => {
|
|
158
|
+
H(!1), ye?.();
|
|
159
|
+
}, Pe = (e) => {
|
|
160
|
+
K.current || (H(!1), W(!1), I?.(e)), K.current = !1;
|
|
161
|
+
}, Fe = (e) => {
|
|
162
|
+
W(!0), F?.(e);
|
|
162
163
|
}, $ = typeof R.classNames == "function" ? void 0 : R.classNames;
|
|
163
|
-
return
|
|
164
|
-
label:
|
|
165
|
-
extra:
|
|
166
|
-
helper:
|
|
167
|
-
htmlFor:
|
|
164
|
+
return p(e, {
|
|
165
|
+
label: l,
|
|
166
|
+
extra: u ?? d,
|
|
167
|
+
helper: m,
|
|
168
|
+
htmlFor: c,
|
|
168
169
|
disabled: b,
|
|
169
170
|
status: x,
|
|
170
171
|
className: j,
|
|
171
172
|
required: M,
|
|
172
|
-
children:
|
|
173
|
+
children: p(f, {
|
|
173
174
|
...R,
|
|
174
175
|
virtual: !1,
|
|
175
|
-
size:
|
|
176
|
+
size: Se,
|
|
176
177
|
ref: J,
|
|
177
|
-
switcherIcon: (e) =>
|
|
178
|
+
switcherIcon: (e) => p("span", {
|
|
178
179
|
role: "img",
|
|
179
180
|
"aria-label": e.expanded ? B.General?.close : B.General?.open,
|
|
180
|
-
children:
|
|
181
|
-
icon:
|
|
181
|
+
children: p(S, {
|
|
182
|
+
icon: te,
|
|
182
183
|
rotation: e.expanded ? 90 : void 0
|
|
183
184
|
})
|
|
184
185
|
}),
|
|
185
|
-
getPopupContainer:
|
|
186
|
+
getPopupContainer: De,
|
|
186
187
|
id: G,
|
|
187
|
-
|
|
188
|
+
suffix: Oe,
|
|
188
189
|
allowClear: Y ? {
|
|
189
190
|
clearIcon: Y,
|
|
190
191
|
label: B.General?.clear
|
|
@@ -193,32 +194,33 @@ var D = (e, t = /* @__PURE__ */ new Map(), n = []) => (e?.forEach((e) => {
|
|
|
193
194
|
loading: N,
|
|
194
195
|
"aria-required": R["aria-required"] ?? M,
|
|
195
196
|
"aria-disabled": b,
|
|
196
|
-
|
|
197
|
+
"aria-busy": N || void 0,
|
|
198
|
+
className: v(se(z, C, w, T, O), { "kit-select-loading": N }),
|
|
197
199
|
classNames: {
|
|
198
200
|
...$,
|
|
199
201
|
popup: {
|
|
200
202
|
...$?.popup,
|
|
201
|
-
root:
|
|
203
|
+
root: v($?.popup?.root, ce(z, ue, w, U, x))
|
|
202
204
|
}
|
|
203
205
|
},
|
|
204
206
|
placement: w,
|
|
205
|
-
treeNodeFilterProp:
|
|
206
|
-
treeNodeLabelProp:
|
|
207
|
+
treeNodeFilterProp: Ce,
|
|
208
|
+
treeNodeLabelProp: we,
|
|
207
209
|
multiple: P,
|
|
208
210
|
treeCheckable: P,
|
|
209
211
|
disabled: b || T || O,
|
|
210
212
|
variant: T ? "borderless" : void 0,
|
|
211
213
|
open: y === void 0 ? V : y,
|
|
212
|
-
popupRender: (e) =>
|
|
213
|
-
tagRender: (e) =>
|
|
214
|
-
placeholder: !T && !O ?
|
|
215
|
-
treeData:
|
|
216
|
-
onFocus:
|
|
217
|
-
onBlur:
|
|
218
|
-
onClear:
|
|
219
|
-
onClick:
|
|
220
|
-
onSearch:
|
|
221
|
-
onSelect:
|
|
214
|
+
popupRender: (e) => ie(e, _e ?? ge),
|
|
215
|
+
tagRender: (e) => re(e, b, x, T || O, ke, L, X),
|
|
216
|
+
placeholder: !T && !O ? me : void 0,
|
|
217
|
+
treeData: Ae,
|
|
218
|
+
onFocus: Fe,
|
|
219
|
+
onBlur: Pe,
|
|
220
|
+
onClear: Ne,
|
|
221
|
+
onClick: je,
|
|
222
|
+
onSearch: Q,
|
|
223
|
+
onSelect: Me
|
|
222
224
|
})
|
|
223
225
|
});
|
|
224
226
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e } from "./useKitTheme.P5Q2DIyI.js";
|
|
2
|
-
import { n as t, u as n } from "./functions.
|
|
2
|
+
import { n as t, u as n } from "./functions.m4ADIGGk.js";
|
|
3
3
|
import { n as r, t as i } from "./useEllipsisTooltip.BmVFCjWv.js";
|
|
4
4
|
import { KitTooltip as a } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
5
5
|
import { Typography as o } from "antd";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as e } from "./Button.
|
|
2
|
-
import { t } from "./Typography.
|
|
1
|
+
import { t as e } from "./Button.Cf2t8x-g.js";
|
|
2
|
+
import { t } from "./Typography.dSdY4EZz.js";
|
|
3
3
|
import { n } from "./useKitTheme.P5Q2DIyI.js";
|
|
4
4
|
import { n as r } from "./useKitLocale.Y5XHnnYS.js";
|
|
5
5
|
import { KitTooltip as i } from "../Kit/DataDisplay/Tooltip/index.js";
|
|
6
|
-
import { t as a } from "./Progress.
|
|
6
|
+
import { t as a } from "./Progress.DGZSgm84.js";
|
|
7
7
|
import { t as o } from "./getBase64.o9rtRKzl.js";
|
|
8
|
-
import { t as s } from "./Avatar.
|
|
9
|
-
import { t as c } from "./ItemList.
|
|
8
|
+
import { t as s } from "./Avatar.CHhPAXNx.js";
|
|
9
|
+
import { t as c } from "./ItemList.ZRUcXI2B.js";
|
|
10
10
|
import { Upload as l } from "antd";
|
|
11
11
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
12
|
import { forwardRef as p, useEffect as m, useState as h } from "react";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/assets/icons/loader/faKitLoader.ts
|
|
2
|
+
var e = {
|
|
3
|
+
prefix: "fas",
|
|
4
|
+
iconName: "loader",
|
|
5
|
+
icon: [
|
|
6
|
+
512,
|
|
7
|
+
512,
|
|
8
|
+
[],
|
|
9
|
+
"",
|
|
10
|
+
"M288 128L288 64A32 32 0 0 0 224 64L224 128A32 32 0 0 0 288 128ZM369.1 188.1L414.4 142.9A32 32 0 0 0 369.1 97.6L323.9 142.9A32 32 0 0 0 369.1 188.1ZM384 288L448 288A32 32 0 0 0 448 224L384 224A32 32 0 0 0 384 288ZM323.9 369.1L369.1 414.4A32 32 0 0 0 414.4 369.1L369.1 323.9A32 32 0 0 0 323.9 369.1ZM224 384L224 448A32 32 0 0 0 288 448L288 384A32 32 0 0 0 224 384ZM142.9 323.9L97.6 369.1A32 32 0 0 0 142.9 414.4L188.1 369.1A32 32 0 0 0 142.9 323.9ZM128 224L64 224A32 32 0 0 0 64 288L128 288A32 32 0 0 0 128 224ZM188.1 142.9L142.9 97.6A32 32 0 0 0 97.6 142.9L142.9 188.1A32 32 0 0 0 188.1 142.9Z"
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
export { e as t };
|
|
@@ -30,7 +30,7 @@ function r(e) {
|
|
|
30
30
|
0,
|
|
31
31
|
0,
|
|
32
32
|
0
|
|
33
|
-
] :
|
|
33
|
+
] : null;
|
|
34
34
|
else return null;
|
|
35
35
|
for (l = 0; l < 3; l++) s[l] = a(s[l], 0, 255);
|
|
36
36
|
return s[3] = a(s[3], 0, 1), s;
|
|
@@ -121,4 +121,4 @@ var o = (e, t = "-", n = {}) => (e && Object.keys(e).forEach((r) => {
|
|
|
121
121
|
for (let r = 0; r < t; r++) n += e[r].charAt(0);
|
|
122
122
|
return n.toUpperCase();
|
|
123
123
|
}, v = (e) => typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
124
|
-
export { f as a, c, o as d, h as f, g as i, l, d as n, v as o, p as r, s, _ as t, u };
|
|
124
|
+
export { f as a, c, o as d, h as f, g as i, l, r as m, d as n, v as o, i as p, p as r, s, _ as t, u };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useLayoutEffect as e } from "react";
|
|
2
|
+
// src/utils/hooks/useLoadingWidthLock.ts
|
|
3
|
+
var t = "data-kit-loading-reserve", n = (n, r) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
let e = n ? r() : null;
|
|
6
|
+
if (!e) return;
|
|
7
|
+
let i = e.style.width;
|
|
8
|
+
return e.style.width = `${e.getBoundingClientRect().width}px`, e.setAttribute(t, "true"), () => {
|
|
9
|
+
e.style.width = i, e.removeAttribute(t);
|
|
10
|
+
};
|
|
11
|
+
}, [n]);
|
|
12
|
+
};
|
|
13
|
+
export { n as t };
|