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