react-kui 3.1.2 → 3.2.1
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/README.zh-CN.md +3 -1
- package/ai/kui-components.json +918 -324
- package/es/_virtual/_rolldown/runtime.js +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.js +11 -4
- package/es/anchor/anchor-context.js +1 -1
- package/es/anchor/anchor-link.js +1 -1
- package/es/anchor/anchor.js +1 -1
- package/es/auto-complete/index.js +371 -347
- package/es/avatar/avatar-group-context.js +1 -1
- package/es/avatar/avatar-group.js +1 -1
- package/es/avatar/avatar.js +1 -1
- package/es/back-top/index.js +1 -1
- package/es/badge/index.js +10 -8
- package/es/base/teleport.js +1 -1
- package/es/base/transition-props.js +1 -1
- package/es/base/transition.js +1 -1
- package/es/breadcrumb/breadcrumb-context.js +1 -1
- package/es/breadcrumb/breadcrumb-item.js +1 -1
- package/es/breadcrumb/breadcrumb.js +1 -1
- package/es/button/button-group-context.js +1 -1
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +13 -6
- package/es/calendar/index.js +20 -6
- package/es/card/index.js +11 -4
- package/es/carousel/carousel-context.js +1 -1
- package/es/carousel/carousel-item.js +1 -1
- package/es/carousel/carousel.js +1 -1
- package/es/carousel/drag.js +1 -1
- package/es/cascader/index.js +13 -10
- package/es/check-card/check-card-group.js +3 -3
- package/es/check-card/check-card.js +155 -141
- package/es/check-card/context.js +1 -1
- package/es/checkbox/checkbox-group-context.js +1 -1
- package/es/checkbox/checkbox-group.js +3 -3
- package/es/checkbox/checkbox.js +64 -244
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse-panel.js +1 -1
- package/es/collapse/collapse.js +96 -82
- package/es/color-picker/alpha.js +1 -1
- package/es/color-picker/hue.js +1 -1
- package/es/color-picker/index.js +7 -7
- package/es/color-picker/mode.js +2 -2
- package/es/color-picker/paint.js +1 -1
- package/es/color-picker/presets.js +1 -1
- package/es/components.js +4 -4
- package/es/config/config-context.js +16 -3
- package/es/config/context.js +29 -2
- package/es/config/index.js +31 -12
- package/es/config/popup-host.js +106 -0
- package/es/config/size-context.js +1 -1
- package/es/config/use-config-appearance.js +62 -2
- package/es/const/var.js +6 -2
- package/es/date-picker/index.js +404 -885
- package/es/descriptions/descriptions-item.js +1 -1
- package/es/descriptions/descriptions.js +1 -1
- package/es/divider/index.js +1 -1
- package/es/drawer/index.js +328 -240
- package/es/dropdown/dropdown-button.js +69 -51
- package/es/dropdown/dropdown-context.js +1 -1
- package/es/dropdown/dropdown.js +137 -93
- package/es/dropdown/trigger.js +85 -33
- package/es/empty/index.js +3 -4
- package/es/feature-card/index.js +15 -4
- package/es/feedback-panel/index.js +95 -81
- package/es/flame-wrap/index.js +116 -109
- package/es/flame-wrap/types.js +54 -6
- package/es/flex/index.js +1 -1
- package/es/form/field-context.js +16 -2
- package/es/form/form-context.js +1 -1
- package/es/form/form-item.js +7 -6
- package/es/form/form.js +1 -1
- package/es/form/utils.js +1 -1
- package/es/grid/grid-item.js +1 -1
- package/es/grid/grid.js +1 -1
- package/es/grid/useBreakpoint.js +1 -1
- package/es/icon/index.js +1 -1
- package/es/image/group.js +1 -1
- package/es/image/image-group-context.js +1 -1
- package/es/image/image.js +137 -123
- package/es/image/instance.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/utils.js +1 -1
- package/es/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input-base.js +7 -7
- package/es/input/input-box.js +2 -2
- package/es/input/input-group.js +43 -127
- package/es/input/input.js +1 -1
- package/es/input/textarea.js +28 -114
- package/es/input-number/index.js +7 -5
- package/es/input-otp/index.js +5 -5
- package/es/input-tag/index.js +5 -5
- package/es/kanban/index.js +79 -63
- package/es/layout/index.js +1 -1
- package/es/layout/layout-context.js +1 -1
- package/es/list-panel/index.js +96 -83
- package/es/loading/index.js +1 -1
- package/es/loading/loading-bar.js +1 -1
- package/es/locale/de.js +10 -2
- package/es/locale/el.js +10 -2
- package/es/locale/en.js +10 -2
- package/es/locale/fr.js +10 -2
- package/es/locale/it.js +10 -2
- package/es/locale/ja.js +10 -2
- package/es/locale/ko.js +10 -2
- package/es/locale/ru.js +10 -2
- package/es/locale/th.js +10 -2
- package/es/locale/uk.js +10 -2
- package/es/locale/vi.js +10 -2
- package/es/locale/zh-CN.js +10 -2
- package/es/locale/zh-TW.js +10 -2
- package/es/mentions/index.js +291 -286
- package/es/menu/menu-context.js +1 -1
- package/es/menu/menu-divider.js +1 -1
- package/es/menu/menu-group.js +1 -1
- package/es/menu/menu-item.js +1 -1
- package/es/menu/menu-keyboard.js +41 -2
- package/es/menu/menu.js +268 -222
- package/es/menu/recursive-menu.js +1 -1
- package/es/menu/sub-menu.js +81 -23
- package/es/message/index.js +1 -1
- package/es/modal/api.js +46 -12
- package/es/modal/modal.js +441 -345
- package/es/modal/toast.js +177 -64
- package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +1 -1
- package/es/notice/container.js +1 -1
- package/es/notice/content.js +1 -1
- package/es/notice/index.js +1 -1
- package/es/notice/instance.js +1 -1
- package/es/page/index.js +13 -8
- package/es/page/responsive.js +1 -1
- package/es/page-header/index.js +1 -1
- package/es/popconfirm/index.js +36 -35
- package/es/poptip/index.js +47 -45
- package/es/popup/index.js +5 -2
- package/es/popup/layers.js +11 -2
- package/es/progress/index.js +1 -1
- package/es/qrcode/index.js +13 -7
- package/es/radio/radio-button.js +51 -44
- package/es/radio/radio-group-context.js +1 -1
- package/es/radio/radio-group.js +49 -52
- package/es/radio/radio.js +46 -197
- package/es/rate/index.js +1 -1
- package/es/rate/star.js +1 -1
- package/es/result/index.js +1 -1
- package/es/ripple/index.js +104 -97
- package/es/ripple/types.js +71 -18
- package/es/row-col/col.js +1 -1
- package/es/row-col/row.js +1 -1
- package/es/segmented/index.js +112 -92
- package/es/select/option.js +1 -1
- package/es/select/select.js +29 -29
- package/es/skeleton/skeleton-avatar.js +1 -1
- package/es/skeleton/skeleton-button.js +1 -1
- package/es/skeleton/skeleton-image.js +1 -1
- package/es/skeleton/skeleton-text.js +1 -1
- package/es/skeleton/skeleton.js +1 -1
- package/es/skeleton/use-skeleton-loading.js +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/thumb.js +1 -1
- package/es/space/index.js +1 -1
- package/es/spin/index.js +1 -1
- package/es/splitter/splitter-panel.js +1 -1
- package/es/splitter/splitter.js +1 -1
- package/es/stat-card/countup.js +2 -2
- package/es/stat-card/rollup.js +1 -1
- package/es/stat-card/stat-card.js +16 -7
- package/es/stat-card/stat-number.js +4 -3
- package/es/stat-card/utils/countup.js +1 -1
- package/es/stat-card/utils/odometer.js +1 -1
- package/es/stat-card/utils/stat-item-key.js +22 -0
- package/es/steps/index.js +1 -1
- package/es/switch/index.js +3 -3
- package/es/table/column-setting.js +104 -115
- package/es/table/index.js +556 -207
- package/es/table/utils.js +140 -3
- package/es/tabs/tab-panel.js +1 -1
- package/es/tabs/tabs.js +1 -1
- package/es/tag/index.js +12 -5
- package/es/time-line/timeline-item.js +1 -1
- package/es/time-line/timeline.js +1 -1
- package/es/tooltip/index.js +114 -94
- package/es/tour/index.js +1 -1
- package/es/transfer/index.js +190 -172
- package/es/tree/index.js +55 -44
- package/es/tree/utils.js +1 -1
- package/es/tree-select/index.js +259 -781
- package/es/typography/index.js +1 -1
- package/es/upload/file-list.js +1 -1
- package/es/upload/index.js +5 -6
- package/es/upload/picture-sort.js +1 -1
- package/es/upload/selector.js +1 -1
- package/es/utils/checked.js +1 -1
- package/es/utils/color.js +25 -2
- package/es/utils/css.js +19 -0
- package/es/utils/focus.js +63 -0
- package/es/utils/number.js +1 -1
- package/es/utils/overlay-order.js +18 -0
- package/es/utils/overlay-stack.js +33 -0
- package/es/utils/placement.js +1 -1
- package/es/utils/popup.js +1 -1
- package/es/utils/promise.js +18 -0
- package/es/utils/react-node.js +55 -30
- package/es/utils/selection-tags.js +6 -4
- package/es/utils/share.js +5 -2
- package/es/utils/theme.js +1 -1
- package/es/utils/transition.js +1 -1
- package/es/utils/use-value.js +1 -1
- package/es/virtual-list/index.js +1 -1
- package/es/virtual-list/range.js +3 -2
- package/es/watermark/index.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +2 -2
- package/lib/locale/el.cjs +2 -2
- package/lib/locale/en.cjs +2 -2
- package/lib/locale/fr.cjs +2 -2
- package/lib/locale/it.cjs +2 -2
- package/lib/locale/ja.cjs +2 -2
- package/lib/locale/ko.cjs +2 -2
- package/lib/locale/ru.cjs +2 -2
- package/lib/locale/th.cjs +2 -2
- package/lib/locale/uk.cjs +2 -2
- package/lib/locale/vi.cjs +2 -2
- package/lib/locale/zh-CN.cjs +2 -2
- package/lib/locale/zh-TW.cjs +2 -2
- package/package.json +4 -3
- package/readme.md +3 -1
- package/style/base.css +2 -2
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/theme.css +2 -2
- package/types/alert/index.d.cts +2 -2
- package/types/alert/index.d.ts +2 -2
- package/types/auto-complete/index.d.cts +7 -1
- package/types/auto-complete/index.d.ts +7 -1
- package/types/badge/index.d.cts +2 -1
- package/types/badge/index.d.ts +2 -1
- package/types/button/button.d.cts +2 -2
- package/types/button/button.d.ts +2 -2
- package/types/card/index.d.cts +3 -3
- package/types/card/index.d.ts +3 -3
- package/types/cascader/index.d.cts +1 -1
- package/types/cascader/index.d.ts +1 -1
- package/types/cascader/types.d.cts +2 -0
- package/types/cascader/types.d.ts +2 -0
- package/types/check-card/context.d.cts +4 -3
- package/types/check-card/context.d.ts +4 -3
- package/types/check-card/index.d.cts +1 -1
- package/types/check-card/index.d.ts +1 -1
- package/types/check-card/types.d.cts +3 -4
- package/types/check-card/types.d.ts +3 -4
- package/types/checkbox/checkbox-group.d.cts +2 -2
- package/types/checkbox/checkbox-group.d.ts +2 -2
- package/types/checkbox/checkbox.d.cts +2 -2
- package/types/checkbox/checkbox.d.ts +2 -2
- package/types/collapse/collapse.d.cts +3 -3
- package/types/collapse/collapse.d.ts +3 -3
- package/types/color-picker/index.d.cts +3 -1
- package/types/color-picker/index.d.ts +3 -1
- package/types/components.d.cts +2 -2
- package/types/components.d.ts +2 -2
- package/types/config/config-context.d.cts +15 -2
- package/types/config/config-context.d.ts +15 -2
- package/types/config/context.d.cts +6 -0
- package/types/config/context.d.ts +6 -0
- package/types/config/popup-host.d.cts +16 -0
- package/types/config/popup-host.d.ts +16 -0
- package/types/config/use-config-appearance.d.cts +41 -2
- package/types/config/use-config-appearance.d.ts +41 -2
- package/types/const/types.d.cts +30 -1
- package/types/const/types.d.ts +30 -1
- package/types/const/var.d.cts +6 -1
- package/types/const/var.d.ts +6 -1
- package/types/date-picker/index.d.cts +3 -1
- package/types/date-picker/index.d.ts +3 -1
- package/types/descriptions/descriptions.d.cts +2 -2
- package/types/descriptions/descriptions.d.ts +2 -2
- package/types/drawer/index.d.cts +1 -0
- package/types/drawer/index.d.ts +1 -0
- package/types/dropdown/dropdown-button.d.cts +5 -2
- package/types/dropdown/dropdown-button.d.ts +5 -2
- package/types/dropdown/dropdown-context.d.cts +6 -0
- package/types/dropdown/dropdown-context.d.ts +6 -0
- package/types/dropdown/dropdown.d.cts +2 -0
- package/types/dropdown/dropdown.d.ts +2 -0
- package/types/feature-card/index.d.cts +3 -3
- package/types/feature-card/index.d.ts +3 -3
- package/types/feedback-panel/index.d.cts +3 -3
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/types.d.cts +18 -0
- package/types/flame-wrap/types.d.ts +18 -0
- package/types/form/field-context.d.cts +2 -0
- package/types/form/field-context.d.ts +2 -0
- package/types/image/image.d.cts +2 -2
- package/types/image/image.d.ts +2 -2
- package/types/input/input-group.d.cts +2 -2
- package/types/input/input-group.d.ts +2 -2
- package/types/input-number/index.d.cts +2 -0
- package/types/input-number/index.d.ts +2 -0
- package/types/kanban/index.d.cts +3 -2
- package/types/kanban/index.d.ts +3 -2
- package/types/list-panel/index.d.cts +3 -3
- package/types/list-panel/index.d.ts +3 -3
- package/types/locale/de.d.cts +6 -0
- package/types/locale/de.d.ts +6 -0
- package/types/locale/el.d.cts +6 -0
- package/types/locale/el.d.ts +6 -0
- package/types/locale/en.d.cts +6 -0
- package/types/locale/en.d.ts +6 -0
- package/types/locale/fr.d.cts +6 -0
- package/types/locale/fr.d.ts +6 -0
- package/types/locale/it.d.cts +6 -0
- package/types/locale/it.d.ts +6 -0
- package/types/locale/ja.d.cts +6 -0
- package/types/locale/ja.d.ts +6 -0
- package/types/locale/ko.d.cts +6 -0
- package/types/locale/ko.d.ts +6 -0
- package/types/locale/ru.d.cts +6 -0
- package/types/locale/ru.d.ts +6 -0
- package/types/locale/th.d.cts +6 -0
- package/types/locale/th.d.ts +6 -0
- package/types/locale/uk.d.cts +6 -0
- package/types/locale/uk.d.ts +6 -0
- package/types/locale/vi.d.cts +6 -0
- package/types/locale/vi.d.ts +6 -0
- package/types/locale/zh-CN.d.cts +6 -0
- package/types/locale/zh-CN.d.ts +6 -0
- package/types/locale/zh-TW.d.cts +6 -0
- package/types/locale/zh-TW.d.ts +6 -0
- package/types/mentions/index.d.cts +2 -0
- package/types/mentions/index.d.ts +2 -0
- package/types/menu/menu-keyboard.d.cts +23 -0
- package/types/menu/menu-keyboard.d.ts +23 -0
- package/types/modal/api.d.cts +6 -1
- package/types/modal/api.d.ts +6 -1
- package/types/modal/modal.d.cts +1 -0
- package/types/modal/modal.d.ts +1 -0
- package/types/modal/toast.d.cts +8 -2
- package/types/modal/toast.d.ts +8 -2
- package/types/page/index.d.cts +2 -2
- package/types/page/index.d.ts +2 -2
- package/types/popconfirm/index.d.cts +2 -0
- package/types/popconfirm/index.d.ts +2 -0
- package/types/poptip/index.d.cts +2 -0
- package/types/poptip/index.d.ts +2 -0
- package/types/popup/layers.d.cts +2 -0
- package/types/popup/layers.d.ts +2 -0
- package/types/qrcode/index.d.cts +2 -2
- package/types/qrcode/index.d.ts +2 -2
- package/types/radio/radio-button.d.cts +2 -2
- package/types/radio/radio-button.d.ts +2 -2
- package/types/radio/radio-group.d.cts +2 -2
- package/types/radio/radio-group.d.ts +2 -2
- package/types/radio/radio.d.cts +2 -2
- package/types/radio/radio.d.ts +2 -2
- package/types/ripple/types.d.cts +18 -0
- package/types/ripple/types.d.ts +18 -0
- package/types/segmented/index.d.cts +2 -1
- package/types/segmented/index.d.ts +2 -1
- package/types/select/select.d.cts +2 -0
- package/types/select/select.d.ts +2 -0
- package/types/stat-card/stat-card.d.cts +3 -3
- package/types/stat-card/stat-card.d.ts +3 -3
- package/types/stat-card/utils/stat-item-key.d.cts +11 -0
- package/types/stat-card/utils/stat-item-key.d.ts +11 -0
- package/types/table/column-setting.d.cts +4 -4
- package/types/table/column-setting.d.ts +4 -4
- package/types/table/index.d.cts +2 -2
- package/types/table/index.d.ts +2 -2
- package/types/table/types.d.cts +21 -2
- package/types/table/types.d.ts +21 -2
- package/types/table/utils.d.cts +75 -0
- package/types/table/utils.d.ts +75 -0
- package/types/tag/index.d.cts +2 -2
- package/types/tag/index.d.ts +2 -2
- package/types/tooltip/index.d.cts +2 -0
- package/types/tooltip/index.d.ts +2 -0
- package/types/transfer/index.d.cts +3 -2
- package/types/transfer/index.d.ts +3 -2
- package/types/tree-select/index.d.cts +3 -1
- package/types/tree-select/index.d.ts +3 -1
- package/types/utils/checked.d.cts +1 -1
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/color.d.cts +13 -0
- package/types/utils/color.d.ts +13 -0
- package/types/utils/css.d.cts +2 -0
- package/types/utils/css.d.ts +2 -0
- package/types/utils/focus.d.cts +5 -0
- package/types/utils/focus.d.ts +5 -0
- package/types/utils/overlay-order.d.cts +6 -0
- package/types/utils/overlay-order.d.ts +6 -0
- package/types/utils/overlay-stack.d.cts +13 -0
- package/types/utils/overlay-stack.d.ts +13 -0
- package/types/utils/promise.d.cts +5 -0
- package/types/utils/promise.d.ts +5 -0
- package/types/utils/react-node.d.cts +10 -0
- package/types/utils/react-node.d.ts +10 -0
package/es/transfer/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.1
|
|
2
|
+
* react-kui v3.2.1
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
6
6
|
* Author: Qiu / https://chuchur.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { resolvePaintedTheme, useFormAppearance } from "../config/use-config-appearance.js";
|
|
9
10
|
import { ChevronLeft, ChevronRight, Search } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
10
11
|
import { useValue } from "../utils/use-value.js";
|
|
11
12
|
import Button from "../button/button.js";
|
|
@@ -18,9 +19,16 @@ import clsx from "clsx";
|
|
|
18
19
|
import { useState } from "react";
|
|
19
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
21
|
//#region components/transfer/index.tsx
|
|
22
|
+
var PAINTED_THEMES = [
|
|
23
|
+
"fill",
|
|
24
|
+
"outline",
|
|
25
|
+
"plain",
|
|
26
|
+
"solid",
|
|
27
|
+
"dashed"
|
|
28
|
+
];
|
|
21
29
|
var EMPTY_ITEMS = [];
|
|
22
30
|
function Transfer(t0) {
|
|
23
|
-
const $ = c(
|
|
31
|
+
const $ = c(131);
|
|
24
32
|
let className;
|
|
25
33
|
let filterOption;
|
|
26
34
|
let footer;
|
|
@@ -35,10 +43,10 @@ function Transfer(t0) {
|
|
|
35
43
|
let t4;
|
|
36
44
|
let t5;
|
|
37
45
|
let t6;
|
|
38
|
-
let t7;
|
|
39
46
|
let targetKeys;
|
|
47
|
+
let themeProp;
|
|
40
48
|
if ($[0] !== t0) {
|
|
41
|
-
({dataSource: t1, targetKeys, titles: t2, operations: t3, searchable: t4, disabled: t5, readOnly: t6, theme:
|
|
49
|
+
({dataSource: t1, targetKeys, titles: t2, operations: t3, searchable: t4, disabled: t5, readOnly: t6, theme: themeProp, filterOption, item: renderItem, footer, onChange, onSelectChange, onSearch, className, ...rest} = t0);
|
|
42
50
|
$[0] = t0;
|
|
43
51
|
$[1] = className;
|
|
44
52
|
$[2] = filterOption;
|
|
@@ -54,8 +62,8 @@ function Transfer(t0) {
|
|
|
54
62
|
$[12] = t4;
|
|
55
63
|
$[13] = t5;
|
|
56
64
|
$[14] = t6;
|
|
57
|
-
$[15] =
|
|
58
|
-
$[16] =
|
|
65
|
+
$[15] = targetKeys;
|
|
66
|
+
$[16] = themeProp;
|
|
59
67
|
} else {
|
|
60
68
|
className = $[1];
|
|
61
69
|
filterOption = $[2];
|
|
@@ -71,89 +79,98 @@ function Transfer(t0) {
|
|
|
71
79
|
t4 = $[12];
|
|
72
80
|
t5 = $[13];
|
|
73
81
|
t6 = $[14];
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
targetKeys = $[15];
|
|
83
|
+
themeProp = $[16];
|
|
76
84
|
}
|
|
77
85
|
const dataSource = t1 === void 0 ? EMPTY_ITEMS : t1;
|
|
78
|
-
let
|
|
86
|
+
let t7;
|
|
79
87
|
if ($[17] !== t2) {
|
|
80
|
-
|
|
88
|
+
t7 = t2 === void 0 ? ["Source", "Target"] : t2;
|
|
81
89
|
$[17] = t2;
|
|
82
|
-
$[18] =
|
|
83
|
-
} else
|
|
84
|
-
const titles =
|
|
85
|
-
let
|
|
90
|
+
$[18] = t7;
|
|
91
|
+
} else t7 = $[18];
|
|
92
|
+
const titles = t7;
|
|
93
|
+
let t8;
|
|
86
94
|
if ($[19] !== t3) {
|
|
87
|
-
|
|
95
|
+
t8 = t3 === void 0 ? ["", ""] : t3;
|
|
88
96
|
$[19] = t3;
|
|
89
|
-
$[20] =
|
|
90
|
-
} else
|
|
91
|
-
const operations =
|
|
97
|
+
$[20] = t8;
|
|
98
|
+
} else t8 = $[20];
|
|
99
|
+
const operations = t8;
|
|
92
100
|
const searchable = t4 === void 0 ? false : t4;
|
|
93
101
|
const disabled = t5 === void 0 ? false : t5;
|
|
94
102
|
const readOnly = t6 === void 0 ? false : t6;
|
|
95
|
-
const
|
|
103
|
+
const inheritedAppearance = useFormAppearance();
|
|
104
|
+
let t9;
|
|
105
|
+
if ($[21] !== inheritedAppearance || $[22] !== themeProp) {
|
|
106
|
+
t9 = resolvePaintedTheme(themeProp ?? inheritedAppearance.theme, PAINTED_THEMES) ?? "outline";
|
|
107
|
+
$[21] = inheritedAppearance;
|
|
108
|
+
$[22] = themeProp;
|
|
109
|
+
$[23] = t9;
|
|
110
|
+
} else t9 = $[23];
|
|
111
|
+
const theme = t9;
|
|
112
|
+
const inputTheme = theme === "solid" ? "fill" : theme;
|
|
96
113
|
const [innerTargets, setInnerTargets] = useValue(targetKeys, _temp);
|
|
97
114
|
let t10;
|
|
98
|
-
if ($[
|
|
115
|
+
if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
|
|
99
116
|
t10 = [];
|
|
100
|
-
$[
|
|
101
|
-
} else t10 = $[
|
|
117
|
+
$[24] = t10;
|
|
118
|
+
} else t10 = $[24];
|
|
102
119
|
const [sourceSelected, setSourceSelected] = useState(t10);
|
|
103
120
|
let t11;
|
|
104
|
-
if ($[
|
|
121
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
122
|
t11 = [];
|
|
106
|
-
$[
|
|
107
|
-
} else t11 = $[
|
|
123
|
+
$[25] = t11;
|
|
124
|
+
} else t11 = $[25];
|
|
108
125
|
const [targetSelected, setTargetSelected] = useState(t11);
|
|
109
126
|
let t12;
|
|
110
|
-
if ($[
|
|
127
|
+
if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
|
|
111
128
|
t12 = ["", ""];
|
|
112
|
-
$[
|
|
113
|
-
} else t12 = $[
|
|
129
|
+
$[26] = t12;
|
|
130
|
+
} else t12 = $[26];
|
|
114
131
|
const [queries, setQueries] = useState(t12);
|
|
115
132
|
const targets = innerTargets;
|
|
116
133
|
let t13;
|
|
117
|
-
if ($[
|
|
134
|
+
if ($[27] !== targets) {
|
|
118
135
|
t13 = new Set(targets);
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
} else t13 = $[
|
|
136
|
+
$[27] = targets;
|
|
137
|
+
$[28] = t13;
|
|
138
|
+
} else t13 = $[28];
|
|
122
139
|
const targetSet = t13;
|
|
123
140
|
let t14;
|
|
124
|
-
if ($[
|
|
141
|
+
if ($[29] !== dataSource) {
|
|
125
142
|
t14 = new Map(dataSource.map(_temp2));
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
} else t14 = $[
|
|
143
|
+
$[29] = dataSource;
|
|
144
|
+
$[30] = t14;
|
|
145
|
+
} else t14 = $[30];
|
|
129
146
|
const itemMap = t14;
|
|
130
147
|
let t15;
|
|
131
|
-
if ($[
|
|
148
|
+
if ($[31] !== dataSource || $[32] !== targetSet) {
|
|
132
149
|
let t16;
|
|
133
|
-
if ($[
|
|
150
|
+
if ($[34] !== targetSet) {
|
|
134
151
|
t16 = (entry_0) => !targetSet.has(entry_0.key);
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
} else t16 = $[
|
|
152
|
+
$[34] = targetSet;
|
|
153
|
+
$[35] = t16;
|
|
154
|
+
} else t16 = $[35];
|
|
138
155
|
t15 = dataSource.filter(t16);
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
} else t15 = $[
|
|
156
|
+
$[31] = dataSource;
|
|
157
|
+
$[32] = targetSet;
|
|
158
|
+
$[33] = t15;
|
|
159
|
+
} else t15 = $[33];
|
|
143
160
|
const sourceItems = t15;
|
|
144
161
|
let t16;
|
|
145
|
-
if ($[
|
|
162
|
+
if ($[36] !== dataSource || $[37] !== targetSet) {
|
|
146
163
|
let t17;
|
|
147
|
-
if ($[
|
|
164
|
+
if ($[39] !== targetSet) {
|
|
148
165
|
t17 = (entry_1) => targetSet.has(entry_1.key);
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
} else t17 = $[
|
|
166
|
+
$[39] = targetSet;
|
|
167
|
+
$[40] = t17;
|
|
168
|
+
} else t17 = $[40];
|
|
152
169
|
t16 = dataSource.filter(t17);
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
} else t16 = $[
|
|
170
|
+
$[36] = dataSource;
|
|
171
|
+
$[37] = targetSet;
|
|
172
|
+
$[38] = t16;
|
|
173
|
+
} else t16 = $[38];
|
|
157
174
|
const targetItems = t16;
|
|
158
175
|
const [previousDataSource, setPreviousDataSource] = useState(dataSource);
|
|
159
176
|
const [previousTargets, setPreviousTargets] = useState(targets);
|
|
@@ -164,27 +181,27 @@ function Transfer(t0) {
|
|
|
164
181
|
setTargetSelected((keys_0) => keys_0.filter((key_0) => itemMap.has(key_0) && targetSet.has(key_0)));
|
|
165
182
|
}
|
|
166
183
|
let t17;
|
|
167
|
-
if ($[
|
|
184
|
+
if ($[41] !== filterOption) {
|
|
168
185
|
t17 = (items, keyword) => keyword ? items.filter((entry_2) => filterOption ? filterOption(keyword, entry_2) : `${entry_2.title} ${entry_2.description || ""}`.toLowerCase().includes(keyword.toLowerCase())) : items;
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
} else t17 = $[
|
|
186
|
+
$[41] = filterOption;
|
|
187
|
+
$[42] = t17;
|
|
188
|
+
} else t17 = $[42];
|
|
172
189
|
const filter = t17;
|
|
173
190
|
let t18;
|
|
174
|
-
if ($[
|
|
191
|
+
if ($[43] !== className || $[44] !== disabled || $[45] !== filter || $[46] !== footer || $[47] !== inputTheme || $[48] !== itemMap || $[49] !== onChange || $[50] !== onSearch || $[51] !== onSelectChange || $[52] !== operations[0] || $[53] !== operations[1] || $[54] !== queries[0] || $[55] !== queries[1] || $[56] !== readOnly || $[57] !== renderItem || $[58] !== rest || $[59] !== searchable || $[60] !== setInnerTargets || $[61] !== sourceItems || $[62] !== sourceSelected || $[63] !== targetItems || $[64] !== targetSelected || $[65] !== targets || $[66] !== theme || $[67] !== titles[0] || $[68] !== titles[1]) {
|
|
175
192
|
const visibleSource = filter(sourceItems, queries[0]);
|
|
176
193
|
const visibleTarget = filter(targetItems, queries[1]);
|
|
177
194
|
let t19;
|
|
178
|
-
if ($[
|
|
195
|
+
if ($[70] !== onSelectChange) {
|
|
179
196
|
t19 = (source, target) => {
|
|
180
197
|
onSelectChange?.([...source], [...target]);
|
|
181
198
|
};
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
} else t19 = $[
|
|
199
|
+
$[70] = onSelectChange;
|
|
200
|
+
$[71] = t19;
|
|
201
|
+
} else t19 = $[71];
|
|
185
202
|
const notifySelection = t19;
|
|
186
203
|
let t20;
|
|
187
|
-
if ($[
|
|
204
|
+
if ($[72] !== disabled || $[73] !== itemMap || $[74] !== notifySelection || $[75] !== readOnly || $[76] !== sourceSelected || $[77] !== targetSelected) {
|
|
188
205
|
t20 = (direction, key_1) => {
|
|
189
206
|
if (disabled || readOnly || itemMap.get(key_1)?.disabled) return;
|
|
190
207
|
if (direction === "left") {
|
|
@@ -197,18 +214,18 @@ function Transfer(t0) {
|
|
|
197
214
|
notifySelection(sourceSelected, next_1);
|
|
198
215
|
}
|
|
199
216
|
};
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
} else t20 = $[
|
|
217
|
+
$[72] = disabled;
|
|
218
|
+
$[73] = itemMap;
|
|
219
|
+
$[74] = notifySelection;
|
|
220
|
+
$[75] = readOnly;
|
|
221
|
+
$[76] = sourceSelected;
|
|
222
|
+
$[77] = targetSelected;
|
|
223
|
+
$[78] = t20;
|
|
224
|
+
} else t20 = $[78];
|
|
208
225
|
const toggle = t20;
|
|
209
226
|
const selectableKeys = _temp5;
|
|
210
227
|
let t21;
|
|
211
|
-
if ($[
|
|
228
|
+
if ($[79] !== disabled || $[80] !== notifySelection || $[81] !== readOnly || $[82] !== sourceSelected || $[83] !== targetSelected) {
|
|
212
229
|
t21 = (direction_0, items_1) => {
|
|
213
230
|
if (disabled || readOnly) return;
|
|
214
231
|
const selected = direction_0 === "left" ? sourceSelected : targetSelected;
|
|
@@ -223,16 +240,16 @@ function Transfer(t0) {
|
|
|
223
240
|
notifySelection(sourceSelected, next_2);
|
|
224
241
|
}
|
|
225
242
|
};
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
} else t21 = $[
|
|
243
|
+
$[79] = disabled;
|
|
244
|
+
$[80] = notifySelection;
|
|
245
|
+
$[81] = readOnly;
|
|
246
|
+
$[82] = sourceSelected;
|
|
247
|
+
$[83] = targetSelected;
|
|
248
|
+
$[84] = t21;
|
|
249
|
+
} else t21 = $[84];
|
|
233
250
|
const toggleAll = t21;
|
|
234
251
|
let t22;
|
|
235
|
-
if ($[
|
|
252
|
+
if ($[85] !== disabled || $[86] !== itemMap || $[87] !== notifySelection || $[88] !== onChange || $[89] !== readOnly || $[90] !== setInnerTargets || $[91] !== sourceSelected || $[92] !== targetSelected || $[93] !== targets) {
|
|
236
253
|
t22 = (direction_1) => {
|
|
237
254
|
if (disabled || readOnly) return;
|
|
238
255
|
const movedKeys = (direction_1 === "right" ? sourceSelected : targetSelected).filter((key_4) => {
|
|
@@ -257,20 +274,20 @@ function Transfer(t0) {
|
|
|
257
274
|
notifySelection(sourceSelected, nextTarget);
|
|
258
275
|
}
|
|
259
276
|
};
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
} else t22 = $[
|
|
277
|
+
$[85] = disabled;
|
|
278
|
+
$[86] = itemMap;
|
|
279
|
+
$[87] = notifySelection;
|
|
280
|
+
$[88] = onChange;
|
|
281
|
+
$[89] = readOnly;
|
|
282
|
+
$[90] = setInnerTargets;
|
|
283
|
+
$[91] = sourceSelected;
|
|
284
|
+
$[92] = targetSelected;
|
|
285
|
+
$[93] = targets;
|
|
286
|
+
$[94] = t22;
|
|
287
|
+
} else t22 = $[94];
|
|
271
288
|
const move = t22;
|
|
272
289
|
let t23;
|
|
273
|
-
if ($[
|
|
290
|
+
if ($[95] !== onSearch) {
|
|
274
291
|
t23 = (direction_2, value) => {
|
|
275
292
|
const side = direction_2 === "left" ? 0 : 1;
|
|
276
293
|
setQueries((current) => {
|
|
@@ -280,12 +297,12 @@ function Transfer(t0) {
|
|
|
280
297
|
});
|
|
281
298
|
onSearch?.(direction_2, value);
|
|
282
299
|
};
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
} else t23 = $[
|
|
300
|
+
$[95] = onSearch;
|
|
301
|
+
$[96] = t23;
|
|
302
|
+
} else t23 = $[96];
|
|
286
303
|
const updateSearch = t23;
|
|
287
304
|
let t24;
|
|
288
|
-
if ($[
|
|
305
|
+
if ($[97] !== disabled || $[98] !== footer || $[99] !== inputTheme || $[100] !== queries[0] || $[101] !== queries[1] || $[102] !== readOnly || $[103] !== renderItem || $[104] !== searchable || $[105] !== sourceSelected || $[106] !== targetSelected || $[107] !== toggle || $[108] !== toggleAll || $[109] !== updateSearch) {
|
|
289
306
|
t24 = (direction_3, items_2, allItems, title) => {
|
|
290
307
|
const selected_1 = direction_3 === "left" ? sourceSelected : targetSelected;
|
|
291
308
|
const enabledKeys = selectableKeys(items_2);
|
|
@@ -313,7 +330,7 @@ function Transfer(t0) {
|
|
|
313
330
|
children: /* @__PURE__ */ jsx(input_default, {
|
|
314
331
|
value: direction_3 === "left" ? queries[0] : queries[1],
|
|
315
332
|
disabled,
|
|
316
|
-
theme,
|
|
333
|
+
theme: inputTheme,
|
|
317
334
|
clearable: true,
|
|
318
335
|
icon: Search,
|
|
319
336
|
placeholder: "Search",
|
|
@@ -363,43 +380,43 @@ function Transfer(t0) {
|
|
|
363
380
|
]
|
|
364
381
|
});
|
|
365
382
|
};
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
} else t24 = $[
|
|
383
|
+
$[97] = disabled;
|
|
384
|
+
$[98] = footer;
|
|
385
|
+
$[99] = inputTheme;
|
|
386
|
+
$[100] = queries[0];
|
|
387
|
+
$[101] = queries[1];
|
|
388
|
+
$[102] = readOnly;
|
|
389
|
+
$[103] = renderItem;
|
|
390
|
+
$[104] = searchable;
|
|
391
|
+
$[105] = sourceSelected;
|
|
392
|
+
$[106] = targetSelected;
|
|
393
|
+
$[107] = toggle;
|
|
394
|
+
$[108] = toggleAll;
|
|
395
|
+
$[109] = updateSearch;
|
|
396
|
+
$[110] = t24;
|
|
397
|
+
} else t24 = $[110];
|
|
381
398
|
const renderList = t24;
|
|
382
399
|
const t25 = `k-transfer-${theme}`;
|
|
383
400
|
const t26 = disabled && "is-disabled";
|
|
384
401
|
const t27 = readOnly && "is-readonly";
|
|
385
402
|
let t28;
|
|
386
|
-
if ($[
|
|
403
|
+
if ($[111] !== className || $[112] !== t25 || $[113] !== t26 || $[114] !== t27) {
|
|
387
404
|
t28 = clsx("k-transfer", t25, t26, t27, className);
|
|
388
|
-
$[
|
|
389
|
-
$[
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
} else t28 = $[
|
|
405
|
+
$[111] = className;
|
|
406
|
+
$[112] = t25;
|
|
407
|
+
$[113] = t26;
|
|
408
|
+
$[114] = t27;
|
|
409
|
+
$[115] = t28;
|
|
410
|
+
} else t28 = $[115];
|
|
394
411
|
const t29 = disabled || readOnly || !sourceSelected.length;
|
|
395
412
|
let t30;
|
|
396
|
-
if ($[
|
|
413
|
+
if ($[116] !== move) {
|
|
397
414
|
t30 = () => move("right");
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
} else t30 = $[
|
|
415
|
+
$[116] = move;
|
|
416
|
+
$[117] = t30;
|
|
417
|
+
} else t30 = $[117];
|
|
401
418
|
let t31;
|
|
402
|
-
if ($[
|
|
419
|
+
if ($[118] !== operations[0] || $[119] !== t29 || $[120] !== t30) {
|
|
403
420
|
t31 = /* @__PURE__ */ jsx(Button, {
|
|
404
421
|
type: "primary",
|
|
405
422
|
size: "small",
|
|
@@ -408,20 +425,20 @@ function Transfer(t0) {
|
|
|
408
425
|
onClick: t30,
|
|
409
426
|
children: operations[0]
|
|
410
427
|
});
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
} else t31 = $[
|
|
428
|
+
$[118] = operations[0];
|
|
429
|
+
$[119] = t29;
|
|
430
|
+
$[120] = t30;
|
|
431
|
+
$[121] = t31;
|
|
432
|
+
} else t31 = $[121];
|
|
416
433
|
const t32 = disabled || readOnly || !targetSelected.length;
|
|
417
434
|
let t33;
|
|
418
|
-
if ($[
|
|
435
|
+
if ($[122] !== move) {
|
|
419
436
|
t33 = () => move("left");
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
} else t33 = $[
|
|
437
|
+
$[122] = move;
|
|
438
|
+
$[123] = t33;
|
|
439
|
+
} else t33 = $[123];
|
|
423
440
|
let t34;
|
|
424
|
-
if ($[
|
|
441
|
+
if ($[124] !== operations[1] || $[125] !== t32 || $[126] !== t33) {
|
|
425
442
|
t34 = /* @__PURE__ */ jsx(Button, {
|
|
426
443
|
type: "primary",
|
|
427
444
|
size: "small",
|
|
@@ -430,21 +447,21 @@ function Transfer(t0) {
|
|
|
430
447
|
onClick: t33,
|
|
431
448
|
children: operations[1]
|
|
432
449
|
});
|
|
433
|
-
$[
|
|
434
|
-
$[
|
|
435
|
-
$[
|
|
436
|
-
$[
|
|
437
|
-
} else t34 = $[
|
|
450
|
+
$[124] = operations[1];
|
|
451
|
+
$[125] = t32;
|
|
452
|
+
$[126] = t33;
|
|
453
|
+
$[127] = t34;
|
|
454
|
+
} else t34 = $[127];
|
|
438
455
|
let t35;
|
|
439
|
-
if ($[
|
|
456
|
+
if ($[128] !== t31 || $[129] !== t34) {
|
|
440
457
|
t35 = /* @__PURE__ */ jsxs("div", {
|
|
441
458
|
className: "k-transfer-operations",
|
|
442
459
|
children: [t31, t34]
|
|
443
460
|
});
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
} else t35 = $[
|
|
461
|
+
$[128] = t31;
|
|
462
|
+
$[129] = t34;
|
|
463
|
+
$[130] = t35;
|
|
464
|
+
} else t35 = $[130];
|
|
448
465
|
t18 = /* @__PURE__ */ jsxs("div", {
|
|
449
466
|
...rest,
|
|
450
467
|
className: t28,
|
|
@@ -455,33 +472,34 @@ function Transfer(t0) {
|
|
|
455
472
|
renderList("right", visibleTarget, targetItems, titles[1])
|
|
456
473
|
]
|
|
457
474
|
});
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
$[
|
|
461
|
-
$[
|
|
462
|
-
$[
|
|
463
|
-
$[
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
|
|
475
|
+
$[43] = className;
|
|
476
|
+
$[44] = disabled;
|
|
477
|
+
$[45] = filter;
|
|
478
|
+
$[46] = footer;
|
|
479
|
+
$[47] = inputTheme;
|
|
480
|
+
$[48] = itemMap;
|
|
481
|
+
$[49] = onChange;
|
|
482
|
+
$[50] = onSearch;
|
|
483
|
+
$[51] = onSelectChange;
|
|
484
|
+
$[52] = operations[0];
|
|
485
|
+
$[53] = operations[1];
|
|
486
|
+
$[54] = queries[0];
|
|
487
|
+
$[55] = queries[1];
|
|
488
|
+
$[56] = readOnly;
|
|
489
|
+
$[57] = renderItem;
|
|
490
|
+
$[58] = rest;
|
|
491
|
+
$[59] = searchable;
|
|
492
|
+
$[60] = setInnerTargets;
|
|
493
|
+
$[61] = sourceItems;
|
|
494
|
+
$[62] = sourceSelected;
|
|
495
|
+
$[63] = targetItems;
|
|
496
|
+
$[64] = targetSelected;
|
|
497
|
+
$[65] = targets;
|
|
498
|
+
$[66] = theme;
|
|
499
|
+
$[67] = titles[0];
|
|
500
|
+
$[68] = titles[1];
|
|
501
|
+
$[69] = t18;
|
|
502
|
+
} else t18 = $[69];
|
|
485
503
|
return t18;
|
|
486
504
|
}
|
|
487
505
|
function _temp6(event_0) {
|