@ryuzaki13/react-foundation-ui 1.4.5 → 1.5.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/dist/advanced-search/index.js +9 -9
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/button/index.js +1 -1
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/CalendarView-Cfih7hjD.js +439 -0
- package/dist/chunks/{CalendarView-Z_XWk7aI.js.map → CalendarView-Cfih7hjD.js.map} +1 -1
- package/dist/chunks/CheckBox.module-C5SjPwSj.js.map +1 -1
- package/dist/chunks/{TextEditorLexicalClient-CK8j3RA4.js → TextEditorLexicalClient-BSafrkLJ.js} +245 -279
- package/dist/chunks/TextEditorLexicalClient-BSafrkLJ.js.map +1 -0
- package/dist/chunks/{badge-DwIUjH0a.js → badge-CbclcpUi.js} +2 -2
- package/dist/chunks/{badge-DwIUjH0a.js.map → badge-CbclcpUi.js.map} +1 -1
- package/dist/chunks/{base-table-BFsVwXg3.js → base-table-X7aSSjXa.js} +3 -3
- package/dist/chunks/{base-table-BFsVwXg3.js.map → base-table-X7aSSjXa.js.map} +1 -1
- package/dist/chunks/{button-BU2kRzwu.js → button-BOl7hYmT.js} +4 -4
- package/dist/chunks/button-BOl7hYmT.js.map +1 -0
- package/dist/chunks/{check-box-Dd3YFuxd.js → check-box-6HGX_KOy.js} +5 -5
- package/dist/chunks/check-box-6HGX_KOy.js.map +1 -0
- package/dist/chunks/{context-menu-C6RO7soI.js → context-menu-tcD3kVAc.js} +59 -63
- package/dist/chunks/context-menu-tcD3kVAc.js.map +1 -0
- package/dist/chunks/date-input-Bsl9dxxY.js +341 -0
- package/dist/chunks/date-input-Bsl9dxxY.js.map +1 -0
- package/dist/chunks/{floating-arrow-BE-z4QkE.js → floating-arrow-DPKwJfww.js} +3 -3
- package/dist/chunks/{floating-arrow-BE-z4QkE.js.map → floating-arrow-DPKwJfww.js.map} +1 -1
- package/dist/chunks/{input-Bp6_Ucgr.js → input-CAw1Loze.js} +61 -52
- package/dist/chunks/input-CAw1Loze.js.map +1 -0
- package/dist/chunks/{input-files-D1JzSw_Y.js → input-files-CLtQ7p8j.js} +3 -3
- package/dist/chunks/{input-files-D1JzSw_Y.js.map → input-files-CLtQ7p8j.js.map} +1 -1
- package/dist/chunks/{input-search-Bkhcinru.js → input-search-F6MPrUGF.js} +2 -2
- package/dist/chunks/{input-search-Bkhcinru.js.map → input-search-F6MPrUGF.js.map} +1 -1
- package/dist/chunks/{misc-BYxxlJz6.js → misc-Cp_r022Z.js} +2 -2
- package/dist/chunks/{misc-BYxxlJz6.js.map → misc-Cp_r022Z.js.map} +1 -1
- package/dist/chunks/{modal-paexEF0j.js → modal-DPIXoMkB.js} +3 -3
- package/dist/chunks/{modal-paexEF0j.js.map → modal-DPIXoMkB.js.map} +1 -1
- package/dist/chunks/{multi-select-COEkc8Qc.js → multi-select-Dypew65l.js} +165 -154
- package/dist/chunks/multi-select-Dypew65l.js.map +1 -0
- package/dist/chunks/{picker-e6IsrMUG.js → picker-TYLwgl1c.js} +83 -93
- package/dist/chunks/picker-TYLwgl1c.js.map +1 -0
- package/dist/chunks/popover-BTT7zSqx.js +230 -0
- package/dist/chunks/{popover-CGU3MlsH.js.map → popover-BTT7zSqx.js.map} +1 -1
- package/dist/chunks/{radio-group-CM9Lg_nc.js → radio-group-4j2HbemI.js} +2 -2
- package/dist/chunks/{radio-group-CM9Lg_nc.js.map → radio-group-4j2HbemI.js.map} +1 -1
- package/dist/chunks/{select-BON0S9Dr.js → select-DCSNVEYW.js} +37 -36
- package/dist/chunks/select-DCSNVEYW.js.map +1 -0
- package/dist/chunks/{table-Dd5BcC0k.js → table-DihiNNJt.js} +2 -2
- package/dist/chunks/{table-Dd5BcC0k.js.map → table-DihiNNJt.js.map} +1 -1
- package/dist/chunks/{ui.module-BisoTevy.js → ui.module-BfaIVBba.js} +3 -1
- package/dist/chunks/ui.module-BfaIVBba.js.map +1 -0
- package/dist/chunks/{uiClasses-BNjBunnY.js → uiClasses-4atXOh0J.js} +2 -2
- package/dist/chunks/{uiClasses-BNjBunnY.js.map → uiClasses-4atXOh0J.js.map} +1 -1
- package/dist/chunks/{useODataSelectBase-CKe1AVMI.js → useODataSelectBase-DI_wwKgw.js} +2 -2
- package/dist/chunks/{useODataSelectBase-CKe1AVMI.js.map → useODataSelectBase-DI_wwKgw.js.map} +1 -1
- package/dist/context-menu/components/MenuRoot.d.ts.map +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-input/lib/dateInputValue.d.ts +2 -6
- package/dist/date-input/lib/dateInputValue.d.ts.map +1 -1
- package/dist/date-input/lib/types.d.ts +0 -4
- package/dist/date-input/lib/types.d.ts.map +1 -1
- package/dist/date-input/model/useDateInput.d.ts +2 -2
- package/dist/date-input/model/useDateInput.d.ts.map +1 -1
- package/dist/date-input/ui/CalendarView.d.ts.map +1 -1
- package/dist/date-input/ui/DateInput.d.ts +0 -4
- package/dist/date-input/ui/DateInput.d.ts.map +1 -1
- package/dist/date-time-input/index.js +250 -254
- package/dist/date-time-input/index.js.map +1 -1
- package/dist/date-time-input/model/useDateTimeSegments.d.ts.map +1 -1
- package/dist/date-time-input/ui/SingleDateTimeInput.d.ts.map +1 -1
- package/dist/disclosure/index.js +4 -3
- package/dist/disclosure/index.js.map +1 -1
- package/dist/drop-zone/index.js +1 -1
- package/dist/expandable-action-panel/index.js +2 -2
- package/dist/floating-arrow/index.js +1 -1
- package/dist/image/index.js +4 -4
- package/dist/input/Input.d.ts +2 -1
- package/dist/input/Input.d.ts.map +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-date-time/index.js +2 -2
- package/dist/input-file/index.js +2 -2
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +2 -2
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +94 -107
- package/dist/layout-picker/index.js.map +1 -1
- package/dist/layout-picker/ui/LayoutPicker.d.ts.map +1 -1
- package/dist/list/List.d.ts.map +1 -1
- package/dist/list/index.js +75 -46
- package/dist/list/index.js.map +1 -1
- package/dist/list/useListVirtualizer.d.ts +13 -0
- package/dist/list/useListVirtualizer.d.ts.map +1 -0
- package/dist/listbox/Listbox.d.ts +1 -0
- package/dist/listbox/Listbox.d.ts.map +1 -1
- package/dist/listbox/index.js +39 -34
- package/dist/listbox/index.js.map +1 -1
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +2 -2
- package/dist/multi-select/ui/MultiSelect.d.ts.map +1 -1
- package/dist/multi-select/ui/defaultRenderers.d.ts +2 -1
- package/dist/multi-select/ui/defaultRenderers.d.ts.map +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/picker/index.js +1 -1
- package/dist/picker/model/usePickerQuery.d.ts +6 -2
- package/dist/picker/model/usePickerQuery.d.ts.map +1 -1
- package/dist/picker/model/usePickerSelectionLifecycle.d.ts.map +1 -1
- package/dist/popover/FloatingPopover.d.ts +5 -0
- package/dist/popover/FloatingPopover.d.ts.map +1 -1
- package/dist/popover/index.js +1 -1
- package/dist/preset-range-date-input/index.js +2 -3
- package/dist/preset-range-date-input/index.js.map +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/radio-button/index.js +3 -3
- package/dist/radio-button/index.js.map +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/select/Select.d.ts.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/Slider.d.ts.map +1 -1
- package/dist/slider/SliderInput.d.ts.map +1 -1
- package/dist/slider/index.js +400 -343
- package/dist/slider/index.js.map +1 -1
- package/dist/state-select/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.js +2 -2
- package/dist/tabs/index.js.map +1 -1
- package/dist/tag-input/TagInput.d.ts.map +1 -1
- package/dist/tag-input/index.js +2 -2
- package/dist/tag-input/index.js.map +1 -1
- package/dist/text/index.js +1 -1
- package/dist/text-editor/EmailDialog.d.ts +1 -2
- package/dist/text-editor/EmailDialog.d.ts.map +1 -1
- package/dist/text-editor/LinkDialog.d.ts +1 -2
- package/dist/text-editor/LinkDialog.d.ts.map +1 -1
- package/dist/text-editor/PhoneDialog.d.ts +1 -2
- package/dist/text-editor/PhoneDialog.d.ts.map +1 -1
- package/dist/text-editor/SemanticDialog.d.ts +1 -2
- package/dist/text-editor/SemanticDialog.d.ts.map +1 -1
- package/dist/text-editor/TextEditorDialogs.d.ts +2 -1
- package/dist/text-editor/TextEditorDialogs.d.ts.map +1 -1
- package/dist/text-editor/TimeDialog.d.ts +1 -2
- package/dist/text-editor/TimeDialog.d.ts.map +1 -1
- package/dist/text-editor/index.js +2 -2
- package/dist/textarea/Textarea.d.ts.map +1 -1
- package/dist/textarea/index.js +3 -2
- package/dist/textarea/index.js.map +1 -1
- package/dist/toggle/index.js +1 -1
- package/dist/tree-select/TreeMultiSelect.d.ts.map +1 -1
- package/dist/tree-select/TreePickerBase.d.ts.map +1 -1
- package/dist/tree-select/index.js +206 -211
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +8 -2
- package/src/styles/_base.scss +3 -3
- package/src/styles/config/_index.scss +43 -38
- package/src/styles/mixins/_controls.scss +17 -16
- package/storybook-static/assets/Badge-CD5894x5.css +1 -0
- package/storybook-static/assets/{Badge-Bh73-APE.js → Badge-DUTHAQCE.js} +1 -1
- package/storybook-static/assets/{Badge.stories-gNFtCWnR.js → Badge.stories-6iI-UG0f.js} +1 -1
- package/storybook-static/assets/{Button-O9QPAftp.js → Button-B0C3LMAw.js} +1 -1
- package/storybook-static/assets/{Button-mjF9HSg0.js → Button-CqVTrqw2.js} +1 -1
- package/storybook-static/assets/{Button-DtU4kGzD.css → Button-DuVDH6-g.css} +1 -1
- package/storybook-static/assets/{Button.stories-wkiE0c_a.js → Button.stories-DjUmGByS.js} +1 -1
- package/storybook-static/assets/CalendarView-hiZ9ETaP.js +1 -0
- package/storybook-static/assets/{CheckBox-Clpeg9q7.js → CheckBox-DBQ50PCI.js} +2 -2
- package/storybook-static/assets/{CheckBox-CB8fTQF0.js → CheckBox-De010n9y.js} +1 -1
- package/storybook-static/assets/CheckBox-Dw4nDCv8.css +1 -0
- package/storybook-static/assets/{CheckBox.stories-pfWBxvOy.js → CheckBox.stories-BfC6OQx3.js} +1 -1
- package/storybook-static/assets/{Color-6AOWCN3U-CVvkiihj.js → Color-6AOWCN3U-C_KzRv-S.js} +1 -1
- package/storybook-static/assets/ContextMenu-BwrqtNnY.js +1 -0
- package/storybook-static/assets/{ContextMenu-eGnlhRRu.js → ContextMenu-CGLg47OY.js} +1 -1
- package/storybook-static/assets/ContextMenu.stories-JnUlLk_E.js +90 -0
- package/storybook-static/assets/DateInput-4lH8A4HQ.css +1 -0
- package/storybook-static/assets/DateInput-BWbKmFEc.js +1 -0
- package/storybook-static/assets/{DateInput-DQDplLib.js → DateInput-CUPdoLCw.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-BNpS4CND.js → DateInput.stories-DOOukQsB.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-DCBEf98i.js → DateRangePresetSelect-BWm1txZP.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-Bfx-d5qg.js → DateRangePresetSelect-CegjuKSa.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-PAV2jgQb.js → DateRangePresetSelect.stories-BGCOqCf7.js} +1 -1
- package/storybook-static/assets/{Detail-DvmdQCue.js → Detail-DLDL5IhK.js} +1 -1
- package/storybook-static/assets/{Detail.stories-CEm00aSN.js → Detail.stories-BcP01iwW.js} +1 -1
- package/storybook-static/assets/{Dialog-3I2Y7jD7.js → Dialog-BYLrz-6d.js} +1 -1
- package/storybook-static/assets/Dialog-DcQbPiWK.js +1 -0
- package/storybook-static/assets/Dialog.stories-C5o4OhEy.js +31 -0
- package/storybook-static/assets/{Disclosure-DUIQ37oh.js → Disclosure-ChpGjvgZ.js} +1 -1
- package/storybook-static/assets/Disclosure.stories-CTL8h6Q3.js +40 -0
- package/storybook-static/assets/DisclosureGroup-CNoH2D1R.css +1 -0
- package/storybook-static/assets/DisclosureGroup-CUelavR4.js +2 -0
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-DwPk6ai7.js → DocsRenderer-JROSPFPF-BQTqLgKs.js} +1 -1
- package/storybook-static/assets/{DropZone-BGuCU5dq.js → DropZone-5Xw6HUNa.js} +1 -1
- package/storybook-static/assets/DropZone-ULl7tScR.js +9 -0
- package/storybook-static/assets/DropZone.stories-Btud72HY.js +36 -0
- package/storybook-static/assets/DropdownMenu-CZDVKXjD.js +1 -0
- package/storybook-static/assets/ExpandableActionPanel-CwamleZX.js +2 -0
- package/storybook-static/assets/ExpandableActionPanel.stories-BUBvJAPp.js +19 -0
- package/storybook-static/assets/{Flex-CBwbh1yu.js → Flex-cO3yZG-t.js} +1 -1
- package/storybook-static/assets/{Flex.stories-cdk6vRZq.js → Flex.stories-BAuXOTSJ.js} +1 -1
- package/storybook-static/assets/FloatingPopover-C56UHmzH.js +1 -0
- package/storybook-static/assets/{FloatingPopover-DC84VrV3.css → FloatingPopover-jwILx9b0.css} +1 -1
- package/storybook-static/assets/FormattedTableCell-B4ObrqF1.js +18 -0
- package/storybook-static/assets/{Grid-BkKqSMfk.js → Grid-B3-t0FmJ.js} +1 -1
- package/storybook-static/assets/{Grid.stories-828arrPi.js → Grid.stories-Cr_GpL6X.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-CrIWrKKR.js → ImageCropper.stories-BDqwBC8C.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-F3AaZx-K.js → ImageRenderer-CigIY2hD.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-l3PnRYxy.js → ImageRenderer.stories-CI8r-V1l.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-C6uhkvCN.js → ImageView.stories-D_OG6Deg.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-BSPiv5lU.js → ImageViewer.stories-CQSqogxL.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-BOpMGgz6.js → ImageViewerRuntime-DerEzrYU.js} +1 -1
- package/storybook-static/assets/{Input-D-ZrbHVw.js → Input-Bm1cMHGo.js} +1 -1
- package/storybook-static/assets/Input-Bot494Bx.js +3 -0
- package/storybook-static/assets/Input-Db2-9PJZ.css +1 -0
- package/storybook-static/assets/{Input.stories-vqPv6pLx.js → Input.stories-BovBOurM.js} +1 -1
- package/storybook-static/assets/{InputDateTime-DHBVbRii.js → InputDateTime-BekBAEPs.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-BAvLMBuk.js → InputDateTime.stories-w3S5IslS.js} +1 -1
- package/storybook-static/assets/{InputFile-B9TVOEZV.js → InputFile-CuQb2x1k.js} +1 -1
- package/storybook-static/assets/InputFile-GBGGdgQh.js +1 -0
- package/storybook-static/assets/InputFile.stories-f_IZth6c.js +36 -0
- package/storybook-static/assets/InputFiles-C74DVQhN.js +1 -0
- package/storybook-static/assets/{InputFiles-CxZkOZFK.js → InputFiles-CrLCcwgR.js} +1 -1
- package/storybook-static/assets/InputFiles.stories-BsuddNi0.js +33 -0
- package/storybook-static/assets/{InputFilesList-OEX4zGI3.js → InputFilesList-Djxwuhlq.js} +1 -1
- package/storybook-static/assets/InputImage-CwlTJmns.js +7 -0
- package/storybook-static/assets/{InputImage-31A6fxSf.js → InputImage-DMaYEhTE.js} +1 -1
- package/storybook-static/assets/InputImage.stories-CnN_t-Bq.js +45 -0
- package/storybook-static/assets/InteractiveComponents.stories-B87LSnhG.js +303 -0
- package/storybook-static/assets/LayoutPicker-CZRoovVS.css +1 -0
- package/storybook-static/assets/{LayoutPicker-Dc55ovYM.js → LayoutPicker-DKMVqnzr.js} +1 -1
- package/storybook-static/assets/LayoutPicker-I0mjwTRq.js +376 -0
- package/storybook-static/assets/LayoutPicker-yb6IMmd2.css +1 -0
- package/storybook-static/assets/LayoutPicker.stories-B94m5_5E.js +74 -0
- package/storybook-static/assets/Listbox-2CNZxFrM.js +41 -0
- package/storybook-static/assets/Listbox-BOCPTICI.js +1 -0
- package/storybook-static/assets/Listbox.stories-DkRL364d.js +53 -0
- package/storybook-static/assets/{Modal-CXvDgktT.js → Modal-BF5Wtu_Z.js} +1 -1
- package/storybook-static/assets/Modal.stories-BuBDjhkS.js +180 -0
- package/storybook-static/assets/ModalManagerProvider-DtAfcujR.js +1 -0
- package/storybook-static/assets/{MultiSelect-DN4foQlG.js → MultiSelect-B5MJePks.js} +1 -1
- package/storybook-static/assets/MultiSelect-B75x42Va.js +2 -0
- package/storybook-static/assets/{MultiSelect.stories-CgKNQmma.js → MultiSelect.stories-pCDFxnvP.js} +1 -1
- package/storybook-static/assets/{NoData-W7wK8oTW.js → NoData-kWRpCxvl.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-D1UoWmF8.js → NotificationsHost-lblab1gc.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-BWUuMmPl.js → NotificationsHost.stories-a3NIcVIj.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-DE1V4el8.js → ODataMultiSelect-BDqBjXSe.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-Q1DUIL2W.js → ODataMultiSelect.stories-8nYfEOBa.js} +1 -1
- package/storybook-static/assets/{ODataSelect-CtoT2Wxx.js → ODataSelect-BmcZs-Q9.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-DLi7Rwzk.js → ODataSelect.stories-fiEuKGVT.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-DEZfgyPK.js → ODataTreeMultiSelect-ZAlccR5J.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-H42q78xI.js → ODataTreeMultiSelect.stories-sP-IANic.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-BeylEiPN.js → ODataTreeSelect-DSpeH-SQ.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-MOILmtfY.js → ODataTreeSelect.stories-C_G-ryCy.js} +2 -2
- package/storybook-static/assets/{OneStepScroller-BSvYN6QP.js → OneStepScroller-BPYnBbTY.js} +1 -1
- package/storybook-static/assets/PeriodSelect-Dj1G9UDW.js +5 -0
- package/storybook-static/assets/{PeriodSelect-KQFGCxq6.js → PeriodSelect-v-ybkTTW.js} +1 -1
- package/storybook-static/assets/PeriodSelect.stories-DcAJ8fkJ.js +60 -0
- package/storybook-static/assets/{PickerSelectionToolbar-Cvv8vTZm.js → PickerSelectionToolbar-7gktfdu3.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-BBZmXagt.js → PickerTriggerActions-Bd-vIbv8.js} +1 -1
- package/storybook-static/assets/{Popover-7YZIq8Fi.js → Popover-5dsoQ1_b.js} +1 -1
- package/storybook-static/assets/{Popover-D6gSyjaW.js → Popover-BoMs5h0y.js} +1 -1
- package/storybook-static/assets/{Popover.stories-DM69Ztws.js → Popover.stories-CbNVj_hu.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-Ch6GapcJ.js → PresetRangeDateInput-BeQMoRpC.js} +1 -1
- package/storybook-static/assets/PresetRangeDateInput-DyGnRjp4.js +1 -0
- package/storybook-static/assets/PresetRangeDateInput.stories-C7gwDup9.js +15 -0
- package/storybook-static/assets/{PresetSelect-C8uIYhPJ.js → PresetSelect-C8e1Xzbh.js} +1 -1
- package/storybook-static/assets/RadioButton-blBN8xkq.js +2 -0
- package/storybook-static/assets/{RadioButton-BQjiyASl.js → RadioButton-kIVy3cCo.js} +1 -1
- package/storybook-static/assets/RadioButton.stories-B8U30Wqk.js +35 -0
- package/storybook-static/assets/{RadioGroup-vw4ObVj-.js → RadioGroup-CuWLCtLr.js} +1 -1
- package/storybook-static/assets/{RadioGroup-DNqu6WaC.js → RadioGroup-D4fwjGGp.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-B-WQzZW_.js → RadioGroup.stories-CGo-8-Bv.js} +1 -1
- package/storybook-static/assets/{Scrollable-DrxMuH2M.js → Scrollable-CeGzYD_u.js} +1 -1
- package/storybook-static/assets/{Select-BxigZNtu.js → Select-rdcqkPnE.js} +1 -1
- package/storybook-static/assets/Select-txovgbTh.js +12 -0
- package/storybook-static/assets/{Select.stories-BpTrYJSr.js → Select.stories-DPM22VkR.js} +1 -1
- package/storybook-static/assets/{SelectOptionContent-RAmgWCOm.js → SelectOptionContent-HqUICxHy.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-CA9wjk2m.js → SerializableSelect-btIwjUkv.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-DXd4E-3U.js → SerializableSelect.stories-EodX_I8R.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-BeFLYUBF.js → SingleDateTimeInput-CMKsQ13r.js} +1 -1
- package/storybook-static/assets/SingleDateTimeInput-coulKUC8.js +1 -0
- package/storybook-static/assets/SingleDateTimeInput-dwDPQ0HY.css +1 -0
- package/storybook-static/assets/SingleDateTimeInput.stories-BkSaW82_.js +78 -0
- package/storybook-static/assets/Slider-BDjIIhGp.js +1 -0
- package/storybook-static/assets/Slider-BWuie2gr.css +1 -0
- package/storybook-static/assets/{Slider-BdWBkKp4.js → Slider-DhBLW1at.js} +1 -1
- package/storybook-static/assets/{Slider.stories-CgmOhVBs.js → Slider.stories-DpTr65-r.js} +1 -1
- package/storybook-static/assets/SliderInput-BEV5I_1l.js +2 -0
- package/storybook-static/assets/{SliderInput-QmF2VQWA.js → SliderInput-CiuILy6K.js} +1 -1
- package/storybook-static/assets/SliderInput.stories-CL7SlLhr.js +67 -0
- package/storybook-static/assets/{Sortable-D5OTpesH.js → Sortable-CtNygGoQ.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-yz3c5EhY.js → Sortable.stories-BbNoyvN9.js} +1 -1
- package/storybook-static/assets/{Splitter-DVq6XBul.js → Splitter-BYaydk0U.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-CopPw1_p.js → Splitter.stories-Bo2rHdcD.js} +1 -1
- package/storybook-static/assets/{StateSelect-ojwXeKmx.js → StateSelect-D2MILxIu.js} +1 -1
- package/storybook-static/assets/StateSelect-DNKjfPR-.js +4 -0
- package/storybook-static/assets/StateSelect.stories-D_NhQBcN.js +44 -0
- package/storybook-static/assets/{StringToggle.stories-ByYMmlXl.js → StringToggle.stories-CS507_cT.js} +1 -1
- package/storybook-static/assets/Switch-9gK7d4Is.js +1 -0
- package/storybook-static/assets/{Switch-Dy4Pahkn.js → Switch-i3aW21Wi.js} +1 -1
- package/storybook-static/assets/Switch.stories-BRIuS4_o.js +26 -0
- package/storybook-static/assets/{Table-BO6Oa4JV.js → Table-CytIsA37.js} +1 -1
- package/storybook-static/assets/{Table.stories--TpBKwmP.js → Table.stories-DYPLk3TC.js} +1 -1
- package/storybook-static/assets/{Tabs-7c93qVyH.js → Tabs-BMee-SUy.js} +1 -1
- package/storybook-static/assets/Tabs.stories-KqQTRqYo.js +57 -0
- package/storybook-static/assets/TabsBox-B5ugO318.css +1 -0
- package/storybook-static/assets/TabsBox-BM1mIOmT.js +2 -0
- package/storybook-static/assets/TagInput-ChmW4s9O.css +1 -0
- package/storybook-static/assets/TagInput-yEIGCMwZ.js +7 -0
- package/storybook-static/assets/TagInput.stories-DmuVnRfR.js +12 -0
- package/storybook-static/assets/{Text-BPlJUr3R.js → Text-DUN8T0sU.js} +1 -1
- package/storybook-static/assets/{Textarea-D3S4MkiX.js → Textarea-BeKW8LG0.js} +1 -1
- package/storybook-static/assets/Textarea-W648f4l-.js +1 -0
- package/storybook-static/assets/Textarea.stories-BbZ-hCVF.js +27 -0
- package/storybook-static/assets/{TimePanel-C2iZ9Qr6.js → TimePanel-D-RygTSo.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-JTjIv6z1.js → TimePanel.stories-CzVur3oq.js} +1 -1
- package/storybook-static/assets/{Toggle-OlKw8qaK.js → Toggle-CCZ3ekPb.js} +1 -1
- package/storybook-static/assets/{Toggle-CHmajZE5.js → Toggle-Dc5aTAHb.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-k4Z8qQVs.js → Toggle.stories-R3abtezP.js} +1 -1
- package/storybook-static/assets/TreeMultiSelect-Bi-LirPw.js +1 -0
- package/storybook-static/assets/{TreeMultiSelect-dOg0l7rk.js → TreeMultiSelect-CzKVkvZd.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-CAzZRxn5.js → TreeMultiSelect.stories-Co_PUawN.js} +1 -1
- package/storybook-static/assets/TreePickerBase-BIbhsg5t.js +22 -0
- package/storybook-static/assets/{TreePickerBase-DMs9EpFv.css → TreePickerBase-BxLupQDs.css} +1 -1
- package/storybook-static/assets/{TreeSelect-CDecTnag.js → TreeSelect-B4G9gk8x.js} +1 -1
- package/storybook-static/assets/{TreeSelect-BrNyI_Qx.js → TreeSelect-Dm3zEY1S.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-BUOw2Rwn.js → TreeSelect.stories-sRek_0PI.js} +1 -1
- package/storybook-static/assets/{TreeTable-BXw7lFBk.js → TreeTable-ybfR3-5k.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-z40pruPV.js → TreeTable.stories-BoZjeFKM.js} +1 -1
- package/storybook-static/assets/{async-BLDV04P4.js → async-Df2RUQlC.js} +1 -1
- package/storybook-static/assets/{blocks-BiaKjftm.js → blocks-BcJ54T3V.js} +3 -3
- package/storybook-static/assets/{browserAndReact-DX4H5rjQ.js → browserAndReact-Bfk1cWqT.js} +1 -1
- package/storybook-static/assets/{check-fB4gCKB_.js → check-Dl-iF50o.js} +1 -1
- package/storybook-static/assets/{chevron-down-B9GH0QvB.js → chevron-down-DOIDj8WF.js} +1 -1
- package/storybook-static/assets/{chevron-left-DjbyJeHO.js → chevron-left-DHEBK_X7.js} +1 -1
- package/storybook-static/assets/{chevron-right-D29uf09I.js → chevron-right-Cf6T-grH.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-CGkHFiZ0.js → chunk-W22LQPXL-DLMJSt_s.js} +1 -1
- package/storybook-static/assets/{circle-alert-Dmd7-WNp.js → circle-alert-DmNt0Uwi.js} +1 -1
- package/storybook-static/assets/{circle-check-VtVMsaJJ.js → circle-check-DN8HwnBX.js} +1 -1
- package/storybook-static/assets/{components-CsfQDbHv.js → components-DI9O99vY.js} +3 -3
- package/storybook-static/assets/{contextMenu-CzdfaUsd.js → contextMenu-DWXX4ZHr.js} +1 -1
- package/storybook-static/assets/defaultRenderers-DwI2nLiY.js +1 -0
- package/storybook-static/assets/defaultRenderers-tFmVIvt_.css +1 -0
- package/storybook-static/assets/{download-CyVhTbv6.js → download-oMaZX_8z.js} +1 -1
- package/storybook-static/assets/{filesAndExcel-DlUnL-Uu.js → filesAndExcel-ur50Ve27.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-DZ8IyUV4.js → floating-ui.react-zHdvT_EM.js} +1 -1
- package/storybook-static/assets/formatters-CVj-3Vn0-BFaHJqZL.js +1 -0
- package/storybook-static/assets/{formatters-BTz64vfu.js → formatters-CnFJmQFO.js} +16 -1
- package/storybook-static/assets/{formatters-runtime-DVi3RdYb.js → formatters-runtime-LyrD5drJ.js} +1 -1
- package/storybook-static/assets/{foundationLib-CFj4J-Pc.js → foundationLib-D-8O61ay.js} +1 -1
- package/storybook-static/assets/{hooks-Ch5aYb7R.js → hooks-DbzqJvP-.js} +2 -2
- package/storybook-static/assets/iframe-D7iJQEr5.css +1 -0
- package/storybook-static/assets/iframe-hjgtoR20.js +1 -0
- package/storybook-static/assets/{iframe-DaN-XFub.js → iframe-jqJCNVG-.js} +4 -4
- package/storybook-static/assets/{info-Cirk1RKZ.js → info-DTU0XXKY.js} +1 -1
- package/storybook-static/assets/{odata-BtfB5Aje.js → odata-BBbQt4pn.js} +1 -1
- package/storybook-static/assets/odata-service-B5w4YBao-BW9QLSrS.js +3 -0
- package/storybook-static/assets/{odataAndTables-TEZyQ-TZ.js → odataAndTables-VK5X4V6B.js} +1 -1
- package/storybook-static/assets/{odataFetchFn-DEKVPDzV.js → odataFetchFn-T6FIbpPz.js} +1 -1
- package/storybook-static/assets/{odataStoryFixtures-CDDaJZKW.js → odataStoryFixtures-pMgI1q6n.js} +1 -1
- package/storybook-static/assets/{persisted-BzLLmgUK.js → persisted-EtS4vVCD.js} +1 -1
- package/storybook-static/assets/{pureUtilities-Dw249t3R.js → pureUtilities-BIjOnY3J.js} +1 -1
- package/storybook-static/assets/react-BG6GAoHo.js +9 -0
- package/storybook-static/assets/{refresh-cw-BN3JCsXv.js → refresh-cw-1qKqpsOV.js} +1 -1
- package/storybook-static/assets/{runtimeAndState-CCVgv3ck.js → runtimeAndState-BorNVnh8.js} +1 -1
- package/storybook-static/assets/{settings-2-jtcbbWm5.js → settings-2-CPrjOIso.js} +1 -1
- package/storybook-static/assets/{sortable-dNWaObUX.js → sortable-D6C8wTse.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-T5IQBZDB-hYwVxXYm.js → syntaxhighlighter-T5IQBZDB-ifBULuBx.js} +1 -1
- package/storybook-static/assets/{trash-2-DrVfT0z5.js → trash-2-CIrQtNzc.js} +1 -1
- package/storybook-static/assets/{triangle-alert-B1Q28Bq9.js → triangle-alert-D3piZGn9.js} +1 -1
- package/storybook-static/assets/ui-CD51AD-_.css +1 -0
- package/storybook-static/assets/ui.module-kfCm3RIG.js +1 -0
- package/storybook-static/assets/{uiClasses-CO3Cdv1E.js → uiClasses-BS9RPcty.js} +1 -1
- package/storybook-static/assets/{useODataSelectBase-DlbeGYUP.js → useODataSelectBase-CwDThJRi.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-CvsoLfiG.js → useODataTreeData-C4v28uFV.js} +1 -1
- package/storybook-static/assets/{usePickerDefaultFilter-DdxyE_i8.js → usePickerDefaultFilter-Be420WNF.js} +1 -1
- package/storybook-static/assets/usePickerQuery-BodFjGup.js +1 -0
- package/storybook-static/assets/{usePickerTriggerController-BHBjSLtn.js → usePickerTriggerController-BjnU7tfr.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-DzBkX15M.css → usePickerTriggerController-Q-ULIoGr.css} +1 -1
- package/storybook-static/assets/{x-Dh43gJN9.js → x-CaGImgpS.js} +1 -1
- package/storybook-static/iframe.html +3 -3
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/CalendarView-Z_XWk7aI.js +0 -439
- package/dist/chunks/TextEditorLexicalClient-CK8j3RA4.js.map +0 -1
- package/dist/chunks/button-BU2kRzwu.js.map +0 -1
- package/dist/chunks/check-box-Dd3YFuxd.js.map +0 -1
- package/dist/chunks/context-menu-C6RO7soI.js.map +0 -1
- package/dist/chunks/date-input-BzExUQnc.js +0 -340
- package/dist/chunks/date-input-BzExUQnc.js.map +0 -1
- package/dist/chunks/input-Bp6_Ucgr.js.map +0 -1
- package/dist/chunks/multi-select-COEkc8Qc.js.map +0 -1
- package/dist/chunks/picker-e6IsrMUG.js.map +0 -1
- package/dist/chunks/popover-CGU3MlsH.js +0 -222
- package/dist/chunks/select-BON0S9Dr.js.map +0 -1
- package/dist/chunks/ui.module-BisoTevy.js.map +0 -1
- package/storybook-static/assets/Badge-Cr7bAbxa.css +0 -1
- package/storybook-static/assets/CalendarView-CqKlnF8k.js +0 -1
- package/storybook-static/assets/CheckBox-CT1_Mjc0.css +0 -1
- package/storybook-static/assets/ContextMenu-Sv4wfyS3.js +0 -1
- package/storybook-static/assets/ContextMenu.stories-CVw3hOvY.js +0 -90
- package/storybook-static/assets/DateInput-D8_Oleoy.js +0 -1
- package/storybook-static/assets/DateInput-pmGiwdvw.css +0 -1
- package/storybook-static/assets/Dialog.stories-lcadmonM.js +0 -31
- package/storybook-static/assets/Disclosure-DzVnkjef.css +0 -1
- package/storybook-static/assets/Disclosure.stories-BeizaZWP.js +0 -41
- package/storybook-static/assets/DropZone.stories-B4J6OZ3T.js +0 -44
- package/storybook-static/assets/ExpandableActionPanel.stories-gCrqbhG6.js +0 -20
- package/storybook-static/assets/FloatingPopover-D4h-c24R.js +0 -1
- package/storybook-static/assets/FormattedTableCell-Dh-kHTOC.js +0 -18
- package/storybook-static/assets/Input-BioMOZju.css +0 -1
- package/storybook-static/assets/Input-Co--DMHY.js +0 -3
- package/storybook-static/assets/InputFile.stories-CypBLWFh.js +0 -36
- package/storybook-static/assets/InputFiles.stories-BGwCp7OC.js +0 -33
- package/storybook-static/assets/InputImage.stories-CdpOudXI.js +0 -51
- package/storybook-static/assets/LayoutPicker-9tLTatHF.css +0 -1
- package/storybook-static/assets/LayoutPicker.stories-DXcn-WXQ.js +0 -449
- package/storybook-static/assets/Listbox-DF8E6oMR.js +0 -38
- package/storybook-static/assets/Listbox.stories-C98_9wX3.js +0 -47
- package/storybook-static/assets/Modal.stories-DAC_QwN7.js +0 -180
- package/storybook-static/assets/MultiSelect-B-wX6JPo.js +0 -2
- package/storybook-static/assets/MultiSelectToken-DDu5n78h.css +0 -1
- package/storybook-static/assets/MultiSelectToken-fjW8p4YG.js +0 -1
- package/storybook-static/assets/PeriodSelect.stories-BIYx4_Yy.js +0 -64
- package/storybook-static/assets/PresetRangeDateInput.stories-Cqd4eb0N.js +0 -15
- package/storybook-static/assets/RadioButton.stories-Cbho4i83.js +0 -36
- package/storybook-static/assets/Select-X_O4M8Hi.js +0 -12
- package/storybook-static/assets/SingleDateTimeInput-mOllNfg2.css +0 -1
- package/storybook-static/assets/SingleDateTimeInput.stories-B1aZ754N.js +0 -78
- package/storybook-static/assets/Slider-BYrHesOR.js +0 -1
- package/storybook-static/assets/Slider-DMDFRH6B.css +0 -1
- package/storybook-static/assets/SliderInput.stories-MjSmhiOM.js +0 -68
- package/storybook-static/assets/StateSelect.stories-D46m5HNn.js +0 -47
- package/storybook-static/assets/Switch.stories-EiAb5Z-D.js +0 -26
- package/storybook-static/assets/Tabs-BLkTB6pp.css +0 -1
- package/storybook-static/assets/Tabs.stories-DXZ0r2ix.js +0 -58
- package/storybook-static/assets/TagInput-LeQAhDgs.css +0 -1
- package/storybook-static/assets/TagInput.stories-CoM8rXwa.js +0 -18
- package/storybook-static/assets/Textarea.stories-47k8uHdB.js +0 -27
- package/storybook-static/assets/TreeMultiSelect-BC_n1Wb-.js +0 -1
- package/storybook-static/assets/TreePickerBase-ycYQYQgi.js +0 -22
- package/storybook-static/assets/formatters--mhLir82-v41eaI4a.js +0 -1
- package/storybook-static/assets/iframe-CJQlmNUm.css +0 -1
- package/storybook-static/assets/iframe-Cr7AcW_R.js +0 -1
- package/storybook-static/assets/odata-service-DnPlNGpU-Bpd4Zh9L.js +0 -3
- package/storybook-static/assets/react-KzpmXJc9.js +0 -9
- package/storybook-static/assets/ui-CSPaMpbi.css +0 -1
- package/storybook-static/assets/ui.module-DoMIk8Oc.js +0 -1
- package/storybook-static/assets/usePickerQuery-6rDaPaB0.js +0 -1
- /package/storybook-static/assets/{CheckBox.module-BBzuj5He.js → CheckBox.module-CM_GPl_E.js} +0 -0
- /package/storybook-static/assets/{Modal-BL_cTIW7.css → ModalManagerProvider-BL_cTIW7.css} +0 -0
- /package/storybook-static/assets/{array-BBSjoTRy-CIRmlF93.js → array-D-_yMMUK-CIRmlF93.js} +0 -0
|
@@ -1,69 +1,78 @@
|
|
|
1
1
|
import { Text as e } from "../text/index.js";
|
|
2
|
-
import { t } from "./ui.module-
|
|
3
|
-
import { t as n } from "./check-box-
|
|
4
|
-
import { a as r, c as i, d as a, f as o, i as s, l as c, n as l, p as u, r as d, t as f, u as p } from "./picker-
|
|
2
|
+
import { t } from "./ui.module-BfaIVBba.js";
|
|
3
|
+
import { t as n } from "./check-box-6HGX_KOy.js";
|
|
4
|
+
import { a as r, c as i, d as a, f as o, i as s, l as c, n as l, p as u, r as d, t as f, u as p } from "./picker-TYLwgl1c.js";
|
|
5
5
|
import { t as ee } from "./separator-B72Aq-6a.js";
|
|
6
|
-
import { n as m, r as h, t as g } from "./useODataSelectBase-
|
|
6
|
+
import { n as m, r as h, t as g } from "./useODataSelectBase-DI_wwKgw.js";
|
|
7
7
|
import { forwardRef as _, useCallback as te, useMemo as v, useRef as ne, useState as y } from "react";
|
|
8
|
-
import { flattenODataDependentServices as
|
|
9
|
-
import { cn as
|
|
10
|
-
import { XIcon as
|
|
11
|
-
import { Fragment as
|
|
8
|
+
import { flattenODataDependentServices as re, useODataCollectionModel as ie } from "@ryuzaki13/react-foundation-api/odata";
|
|
9
|
+
import { cn as ae } from "@ryuzaki13/react-foundation-lib/utils";
|
|
10
|
+
import { XIcon as oe } from "lucide-react";
|
|
11
|
+
import { Fragment as se, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
12
|
+
import { formatRussianPlural as ce } from "@ryuzaki13/react-foundation-lib/formatters";
|
|
12
13
|
//#region src/multi-select/ui/MultiSelectOption.tsx
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
function le({ item: e, textKey: t, codeKey: n, highlight: r }) {
|
|
15
|
+
return /* @__PURE__ */ b(h, {
|
|
15
16
|
label: e[t],
|
|
16
17
|
code: n && e[n],
|
|
17
18
|
highlight: r
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
var
|
|
21
|
+
var S = {
|
|
21
22
|
multiSelect: "_9oSdQi",
|
|
22
23
|
multiSelectTokens: "iobHig",
|
|
23
24
|
multiSelectToken: "yatXso"
|
|
24
25
|
};
|
|
25
26
|
//#endregion
|
|
26
27
|
//#region src/multi-select/ui/MultiSelectToken.tsx
|
|
27
|
-
function
|
|
28
|
-
return e ? /* @__PURE__ */
|
|
29
|
-
className:
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
className:
|
|
28
|
+
function C({ value: e }) {
|
|
29
|
+
return e ? /* @__PURE__ */ b("div", {
|
|
30
|
+
className: S.multiSelectTokens,
|
|
31
|
+
children: /* @__PURE__ */ b("div", {
|
|
32
|
+
className: S.multiSelectToken,
|
|
32
33
|
children: e
|
|
33
34
|
})
|
|
34
35
|
}) : null;
|
|
35
36
|
}
|
|
36
37
|
//#endregion
|
|
37
38
|
//#region src/multi-select/ui/defaultRenderers.tsx
|
|
38
|
-
|
|
39
|
+
var w = {
|
|
40
|
+
one: "элемент",
|
|
41
|
+
few: "элемента",
|
|
42
|
+
many: "элементов"
|
|
43
|
+
};
|
|
44
|
+
function T(e) {
|
|
45
|
+
return ce(e, w);
|
|
46
|
+
}
|
|
47
|
+
function E(e, t, n) {
|
|
39
48
|
if (n) return n;
|
|
40
49
|
let r = e[0];
|
|
41
50
|
return r ? Object.keys(r).find((e) => e !== t) ?? t : t;
|
|
42
51
|
}
|
|
43
|
-
function
|
|
52
|
+
function ue(e, t, n) {
|
|
44
53
|
if (e.length === 0) return;
|
|
45
|
-
if (e.length > 1) return
|
|
46
|
-
let r =
|
|
54
|
+
if (e.length > 1) return T(e.length);
|
|
55
|
+
let r = E(e, t, n);
|
|
47
56
|
return e[0]?.[r] ?? e[0]?.[t];
|
|
48
57
|
}
|
|
49
|
-
function
|
|
58
|
+
function de(e) {
|
|
50
59
|
return function(t) {
|
|
51
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ b(C, { value: ue(t.selectedItems, e.codeKey, e.textKey) });
|
|
52
61
|
};
|
|
53
62
|
}
|
|
54
|
-
function
|
|
55
|
-
return /* @__PURE__ */
|
|
63
|
+
function fe(e) {
|
|
64
|
+
return /* @__PURE__ */ b(a, {
|
|
56
65
|
onSelectAll: e.selectAll,
|
|
57
66
|
onDeselectAll: e.deselectAll
|
|
58
67
|
});
|
|
59
68
|
}
|
|
60
|
-
function
|
|
69
|
+
function pe(e) {
|
|
61
70
|
return function(t, n) {
|
|
62
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ b(le, {
|
|
63
72
|
item: t,
|
|
64
73
|
selected: n.selected,
|
|
65
74
|
highlight: n.highlightQuery,
|
|
66
|
-
textKey:
|
|
75
|
+
textKey: E([t], e.codeKey, e.textKey),
|
|
67
76
|
codeKey: e.hideCode ? void 0 : e.codeKey
|
|
68
77
|
});
|
|
69
78
|
};
|
|
@@ -71,9 +80,9 @@ function ue(e) {
|
|
|
71
80
|
//#endregion
|
|
72
81
|
//#region src/multi-select/ui/MultiSelectOptionSkeleton.tsx
|
|
73
82
|
function D({ text: n, isError: r }) {
|
|
74
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ x("div", {
|
|
75
84
|
className: t.uiPopupOption,
|
|
76
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ b("span", { className: t.uiPopupOptionIcon }), /* @__PURE__ */ b(e, {
|
|
77
86
|
color: r ? "error" : "primary",
|
|
78
87
|
children: n
|
|
79
88
|
})]
|
|
@@ -81,46 +90,46 @@ function D({ text: n, isError: r }) {
|
|
|
81
90
|
}
|
|
82
91
|
//#endregion
|
|
83
92
|
//#region src/multi-select/ui/MultiSelect.tsx
|
|
84
|
-
function
|
|
85
|
-
return e ? /* @__PURE__ */
|
|
93
|
+
function me({ isNoData: e, isLoading: t, error: n, children: r }) {
|
|
94
|
+
return e ? /* @__PURE__ */ b(p, { emptyState: /* @__PURE__ */ b(D, { text: "Нет данных" }) }) : t ? /* @__PURE__ */ b(p, { loadingState: /* @__PURE__ */ b(D, { text: "Загрузка..." }) }) : n ? /* @__PURE__ */ b(p, { errorState: /* @__PURE__ */ b(D, {
|
|
86
95
|
isError: !0,
|
|
87
96
|
text: "Ошибка загрузки"
|
|
88
|
-
}) }) : /* @__PURE__ */
|
|
97
|
+
}) }) : /* @__PURE__ */ b(se, { children: r });
|
|
89
98
|
}
|
|
90
|
-
var
|
|
99
|
+
var he = [];
|
|
91
100
|
function O(e, t) {
|
|
92
101
|
return e[t];
|
|
93
102
|
}
|
|
94
|
-
function
|
|
103
|
+
function ge(e, t, n) {
|
|
95
104
|
return Array.from(/* @__PURE__ */ new Set([
|
|
96
105
|
e[n],
|
|
97
106
|
e[t],
|
|
98
107
|
...Object.values(e)
|
|
99
108
|
]));
|
|
100
109
|
}
|
|
101
|
-
function
|
|
110
|
+
function _e(e, t, n) {
|
|
102
111
|
if (e.length !== t.length) return !1;
|
|
103
112
|
let r = new Set(t.map((e) => O(e, n)));
|
|
104
113
|
return e.every((e) => r.has(O(e, n)));
|
|
105
114
|
}
|
|
106
|
-
function
|
|
115
|
+
function ve({ entries: e, listId: r, activeIndex: i, selectedKeys: a, codeKey: o, query: s, highlightQuery: c, getOptionDisabled: l, getOptionId: u, setOptionRef: d, toggleOption: f, selectOnlyOption: p, renderItem: ee }) {
|
|
107
116
|
return e.map(({ item: e, index: m }) => {
|
|
108
117
|
let h = m === i, g = a.has(O(e, o)), _ = l?.(e) ?? !1;
|
|
109
|
-
return /* @__PURE__ */
|
|
118
|
+
return /* @__PURE__ */ x("div", {
|
|
110
119
|
id: u(r, m),
|
|
111
120
|
ref: (e) => d(m, e),
|
|
112
121
|
role: "option",
|
|
113
122
|
"aria-selected": g,
|
|
114
123
|
"aria-disabled": _ || void 0,
|
|
115
|
-
className:
|
|
124
|
+
className: ae(t.uiSelectOption, _ && t.disabled, g && t.selected, h && t.uiPopupOptionActive),
|
|
116
125
|
onMouseDown: (e) => {
|
|
117
126
|
e.preventDefault();
|
|
118
127
|
},
|
|
119
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ b("div", {
|
|
120
129
|
onClick: (e) => {
|
|
121
130
|
e.stopPropagation();
|
|
122
131
|
},
|
|
123
|
-
children: /* @__PURE__ */
|
|
132
|
+
children: /* @__PURE__ */ b(n, {
|
|
124
133
|
value: g,
|
|
125
134
|
disabled: _,
|
|
126
135
|
onChange: () => {
|
|
@@ -133,7 +142,7 @@ function he({ entries: e, listId: r, activeIndex: i, selectedKeys: a, codeKey: o
|
|
|
133
142
|
e.stopPropagation();
|
|
134
143
|
}
|
|
135
144
|
})
|
|
136
|
-
}), /* @__PURE__ */
|
|
145
|
+
}), /* @__PURE__ */ b("div", {
|
|
137
146
|
className: "overflowHidden",
|
|
138
147
|
onClick: () => {
|
|
139
148
|
_ || p(e);
|
|
@@ -149,40 +158,41 @@ function he({ entries: e, listId: r, activeIndex: i, selectedKeys: a, codeKey: o
|
|
|
149
158
|
}, `${O(e, o)}-${m}`);
|
|
150
159
|
});
|
|
151
160
|
}
|
|
152
|
-
var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange: h, label: g, description: _, placeholder:
|
|
153
|
-
let
|
|
161
|
+
var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange: h, label: g, description: _, placeholder: re, size: ie, query: ae, defaultQuery: ce, highlightQuery: le, onQuery: C, defaultFilter: w = !0, onOpen: T, onClose: ue, getOptionDisabled: D, disabled: k, error: A, isLoading: j, renderToken: M, renderToolbar: N, renderItem: P }, F) => {
|
|
162
|
+
let I = ne(null), [L, ye] = y(!1), R = "search-multi", z = m ?? he, be = v(() => new Set(z.map((t) => O(t, e))), [e, z]), xe = v(() => p.filter((t) => !be.has(O(t, e))), [
|
|
154
163
|
e,
|
|
155
164
|
be,
|
|
156
165
|
p
|
|
157
|
-
]), B = v(() =>
|
|
166
|
+
]), B = v(() => E([...z, ...p], e, n), [
|
|
158
167
|
e,
|
|
159
168
|
z,
|
|
160
169
|
p,
|
|
161
170
|
n
|
|
162
|
-
]), { query: V, setQuery: Se } = d({
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
onQuery: E,
|
|
171
|
+
]), { query: V, setQuery: Se, resetQueryOnClose: Ce } = d({
|
|
172
|
+
query: ae,
|
|
173
|
+
defaultQuery: ce,
|
|
174
|
+
onQuery: C,
|
|
167
175
|
triggerMode: R
|
|
168
|
-
}),
|
|
176
|
+
}), we = (e) => {
|
|
177
|
+
L && !e && Ce && Se(""), ye(e);
|
|
178
|
+
}, H = r({
|
|
169
179
|
options: z,
|
|
170
180
|
query: V,
|
|
171
|
-
enabled:
|
|
172
|
-
getSearchText: (t) =>
|
|
181
|
+
enabled: w,
|
|
182
|
+
getSearchText: (t) => ge(t, e, B)
|
|
173
183
|
}), U = r({
|
|
174
184
|
options: xe,
|
|
175
185
|
query: V,
|
|
176
|
-
enabled:
|
|
177
|
-
getSearchText: (t) =>
|
|
178
|
-
}), W = v(() => [...H, ...U], [U, H]),
|
|
186
|
+
enabled: w,
|
|
187
|
+
getSearchText: (t) => ge(t, e, B)
|
|
188
|
+
}), W = v(() => [...H, ...U], [U, H]), Te = H.length > 0 ? 0 : -1, { draftValue: G, setDraftValue: K, prepareOpen: Ee } = l({
|
|
179
189
|
value: z,
|
|
180
190
|
open: L,
|
|
181
191
|
onCommit: h,
|
|
182
|
-
onOpen:
|
|
183
|
-
onClose:
|
|
184
|
-
isEqual: (t, n) =>
|
|
185
|
-
}), q = v(() => new Set(G.map((t) => O(t, e))), [e, G]),
|
|
192
|
+
onOpen: T,
|
|
193
|
+
onClose: ue,
|
|
194
|
+
isEqual: (t, n) => _e(t, n, e)
|
|
195
|
+
}), q = v(() => new Set(G.map((t) => O(t, e))), [e, G]), De = v(() => ({
|
|
186
196
|
selectedItems: G,
|
|
187
197
|
committedSelectedItems: z,
|
|
188
198
|
selectedKeys: q,
|
|
@@ -192,29 +202,29 @@ var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange:
|
|
|
192
202
|
G,
|
|
193
203
|
L,
|
|
194
204
|
q
|
|
195
|
-
]), J = te((e) =>
|
|
205
|
+
]), J = te((e) => D?.(e, De) ?? !1, [D, De]), { activeIndex: Y, context: Oe, floatingStyles: ke, getFloatingProps: Ae, setReference: je, setFloating: Me, setOptionRef: Ne, close: Pe, openList: Fe, toggleOpen: Ie, selectActiveOption: Le, handleReferenceKeyDown: Re, handleFloatingKeyDown: ze, getOptionId: Be, getActiveOptionId: Ve } = s({
|
|
196
206
|
options: W,
|
|
197
|
-
selectedIndex:
|
|
207
|
+
selectedIndex: Te,
|
|
198
208
|
open: L,
|
|
199
|
-
onOpenChange:
|
|
209
|
+
onOpenChange: we,
|
|
200
210
|
onSelect: void 0,
|
|
201
|
-
disabled:
|
|
211
|
+
disabled: k,
|
|
202
212
|
getOptionDisabled: J,
|
|
203
213
|
closeOnSelect: !1,
|
|
204
214
|
allowOpenWithoutOptions: !0,
|
|
205
215
|
triggerMode: R
|
|
206
|
-
}),
|
|
216
|
+
}), He = le ?? V, X = (t) => {
|
|
207
217
|
let n = O(t, e);
|
|
208
218
|
K((r) => r.some((t) => O(t, e) === n) ? r.filter((t) => O(t, e) !== n) : J(t) ? r : [...r, t]);
|
|
209
|
-
},
|
|
210
|
-
if (
|
|
211
|
-
|
|
219
|
+
}, Ue = (e) => {
|
|
220
|
+
if (I.current = e, typeof F == "function") {
|
|
221
|
+
F(e);
|
|
212
222
|
return;
|
|
213
223
|
}
|
|
214
|
-
|
|
215
|
-
},
|
|
224
|
+
F && (F.current = e);
|
|
225
|
+
}, We = () => {
|
|
216
226
|
K([]), L || h([]);
|
|
217
|
-
},
|
|
227
|
+
}, Ge = () => {
|
|
218
228
|
K((t) => {
|
|
219
229
|
let n = [...t], r = new Set(t.map((t) => O(t, e)));
|
|
220
230
|
for (let t of W) {
|
|
@@ -223,88 +233,89 @@ var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange:
|
|
|
223
233
|
}
|
|
224
234
|
return n;
|
|
225
235
|
});
|
|
226
|
-
},
|
|
236
|
+
}, Ke = () => {
|
|
227
237
|
K([]);
|
|
228
|
-
},
|
|
229
|
-
J(e) || (K([e]),
|
|
230
|
-
},
|
|
231
|
-
selectedItems:
|
|
238
|
+
}, qe = (e) => {
|
|
239
|
+
J(e) || (K([e]), Pe());
|
|
240
|
+
}, Je = L ? G : z, Z = Je.length > 0, Ye = {
|
|
241
|
+
selectedItems: Je,
|
|
232
242
|
committedSelectedItems: z,
|
|
233
243
|
availableItems: U,
|
|
234
244
|
query: V,
|
|
235
245
|
open: L,
|
|
236
|
-
clearSelection:
|
|
237
|
-
selectAll:
|
|
238
|
-
deselectAll:
|
|
239
|
-
},
|
|
246
|
+
clearSelection: We,
|
|
247
|
+
selectAll: Ge,
|
|
248
|
+
deselectAll: Ke
|
|
249
|
+
}, Xe = M === void 0 ? de({
|
|
240
250
|
codeKey: e,
|
|
241
251
|
textKey: B
|
|
242
|
-
}) :
|
|
252
|
+
}) : M, Ze = N === void 0 ? fe : N, Qe = P ?? pe({
|
|
243
253
|
codeKey: e,
|
|
244
254
|
textKey: B,
|
|
245
255
|
hideCode: a
|
|
246
|
-
}),
|
|
256
|
+
}), $e = typeof Xe == "function" ? Xe(Ye) : null, et = typeof Ze == "function" ? Ze(Ye) : null, Q = H.map((e, t) => ({
|
|
247
257
|
item: e,
|
|
248
258
|
index: t
|
|
249
|
-
})),
|
|
259
|
+
})), tt = U.map((e, t) => ({
|
|
250
260
|
item: e,
|
|
251
261
|
index: t + Q.length
|
|
252
|
-
})),
|
|
262
|
+
})), nt = !j && !A && W.length === 0, $ = f({
|
|
253
263
|
mode: R,
|
|
254
264
|
open: L,
|
|
255
265
|
currentQuery: V,
|
|
256
266
|
hasDisplayValue: !1,
|
|
257
|
-
inputRef:
|
|
267
|
+
inputRef: I,
|
|
258
268
|
setQuery: Se,
|
|
259
|
-
openList:
|
|
260
|
-
close:
|
|
261
|
-
toggleOpen:
|
|
269
|
+
openList: Fe,
|
|
270
|
+
close: Pe,
|
|
271
|
+
toggleOpen: Ie,
|
|
262
272
|
onBeforeOpen: () => {
|
|
263
|
-
L ||
|
|
273
|
+
L || Ee();
|
|
264
274
|
}
|
|
265
275
|
});
|
|
266
|
-
return /* @__PURE__ */
|
|
276
|
+
return /* @__PURE__ */ b(u, {
|
|
267
277
|
label: g,
|
|
268
278
|
description: _,
|
|
269
|
-
disabled:
|
|
270
|
-
size:
|
|
271
|
-
className:
|
|
279
|
+
disabled: k,
|
|
280
|
+
size: ie,
|
|
281
|
+
className: S.multiSelect,
|
|
272
282
|
children: ({ controlId: n, labelId: r, describedBy: a }) => {
|
|
273
283
|
let s = `${n}-listbox`;
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
-
ref:
|
|
276
|
-
rootRef:
|
|
284
|
+
return /* @__PURE__ */ x(se, { children: [/* @__PURE__ */ b(i, {
|
|
285
|
+
ref: Ue,
|
|
286
|
+
rootRef: je,
|
|
277
287
|
id: n,
|
|
278
288
|
type: "text",
|
|
279
289
|
role: "combobox",
|
|
280
290
|
autoComplete: "off",
|
|
281
|
-
disabled:
|
|
291
|
+
disabled: k,
|
|
282
292
|
value: V,
|
|
283
|
-
placeholder:
|
|
293
|
+
placeholder: Z ? void 0 : `${re ?? g ?? "Выберите значения"} <${p.length}>`,
|
|
284
294
|
"aria-labelledby": r,
|
|
285
295
|
"aria-describedby": a,
|
|
286
296
|
"aria-haspopup": "listbox",
|
|
287
297
|
"aria-expanded": L,
|
|
288
298
|
"aria-controls": L ? s : void 0,
|
|
289
299
|
"aria-autocomplete": "list",
|
|
290
|
-
"aria-activedescendant": L ?
|
|
300
|
+
"aria-activedescendant": L ? Ve(s) : void 0,
|
|
291
301
|
rootClassName: "flex alignItemsCenter",
|
|
292
|
-
endAdornment: /* @__PURE__ */
|
|
302
|
+
endAdornment: /* @__PURE__ */ b(c, {
|
|
293
303
|
open: L,
|
|
294
|
-
disabled:
|
|
304
|
+
disabled: k,
|
|
295
305
|
onToggleMouseDown: $.handleToggleMouseDown,
|
|
296
306
|
onToggleClick: $.handleToggleClick,
|
|
297
|
-
children:
|
|
307
|
+
children: /* @__PURE__ */ b("button", {
|
|
298
308
|
type: "button",
|
|
299
|
-
disabled: !
|
|
309
|
+
disabled: !Z,
|
|
300
310
|
className: t.uiClearButton,
|
|
301
311
|
"data-ui": "multi-select-clear-button",
|
|
302
312
|
"data-action": "clear-multi-select",
|
|
303
|
-
onClick:
|
|
313
|
+
onClick: We,
|
|
304
314
|
"aria-label": "Очистить все",
|
|
305
|
-
children: /* @__PURE__ */
|
|
306
|
-
})
|
|
315
|
+
children: /* @__PURE__ */ b(oe, {})
|
|
316
|
+
})
|
|
307
317
|
}),
|
|
318
|
+
overlay: $e,
|
|
308
319
|
onChange: (e) => {
|
|
309
320
|
$.handleTriggerInputChange(e.target.value);
|
|
310
321
|
},
|
|
@@ -313,7 +324,7 @@ var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange:
|
|
|
313
324
|
$.handleTriggerFocus(e.currentTarget);
|
|
314
325
|
},
|
|
315
326
|
onKeyDown: (e) => {
|
|
316
|
-
|
|
327
|
+
Re(e), !e.defaultPrevented && $.handleTriggerKeyDown({
|
|
317
328
|
event: e,
|
|
318
329
|
onActivateWhenOpen: () => {
|
|
319
330
|
if (Y >= 0) {
|
|
@@ -323,65 +334,65 @@ var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange:
|
|
|
323
334
|
return;
|
|
324
335
|
}
|
|
325
336
|
}
|
|
326
|
-
|
|
337
|
+
Le();
|
|
327
338
|
},
|
|
328
339
|
enableClosedArrowDownOpen: !0,
|
|
329
340
|
suppressClosedArrowUp: !0
|
|
330
341
|
});
|
|
331
342
|
}
|
|
332
|
-
}), /* @__PURE__ */
|
|
343
|
+
}), /* @__PURE__ */ b(o, {
|
|
333
344
|
open: L,
|
|
334
|
-
context:
|
|
335
|
-
floatingStyles:
|
|
345
|
+
context: Oe,
|
|
346
|
+
floatingStyles: ke,
|
|
336
347
|
listId: s,
|
|
337
348
|
labelId: r,
|
|
338
349
|
descriptionId: a,
|
|
339
|
-
activeOptionId: L ?
|
|
340
|
-
setFloating:
|
|
341
|
-
getFloatingProps:
|
|
342
|
-
onKeyDown:
|
|
350
|
+
activeOptionId: L ? Ve(s) : void 0,
|
|
351
|
+
setFloating: Me,
|
|
352
|
+
getFloatingProps: Ae,
|
|
353
|
+
onKeyDown: ze,
|
|
343
354
|
initialFocus: -1,
|
|
344
355
|
returnFocus: !1,
|
|
345
356
|
tabIndex: -1,
|
|
346
357
|
className: t.uiPopupOptions,
|
|
347
|
-
header:
|
|
348
|
-
children: /* @__PURE__ */
|
|
349
|
-
isNoData:
|
|
350
|
-
isLoading:
|
|
351
|
-
error:
|
|
352
|
-
children: /* @__PURE__ */
|
|
358
|
+
header: et,
|
|
359
|
+
children: /* @__PURE__ */ b(me, {
|
|
360
|
+
isNoData: nt,
|
|
361
|
+
isLoading: j,
|
|
362
|
+
error: A,
|
|
363
|
+
children: /* @__PURE__ */ x("div", {
|
|
353
364
|
className: "scrollable h100",
|
|
354
365
|
children: [
|
|
355
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ b(ve, {
|
|
356
367
|
entries: Q,
|
|
357
368
|
listId: s,
|
|
358
369
|
activeIndex: Y,
|
|
359
370
|
selectedKeys: q,
|
|
360
371
|
codeKey: e,
|
|
361
372
|
query: V,
|
|
362
|
-
highlightQuery:
|
|
373
|
+
highlightQuery: He,
|
|
363
374
|
getOptionDisabled: J,
|
|
364
|
-
getOptionId:
|
|
365
|
-
setOptionRef:
|
|
375
|
+
getOptionId: Be,
|
|
376
|
+
setOptionRef: Ne,
|
|
366
377
|
toggleOption: X,
|
|
367
|
-
selectOnlyOption:
|
|
368
|
-
renderItem:
|
|
378
|
+
selectOnlyOption: qe,
|
|
379
|
+
renderItem: Qe
|
|
369
380
|
}),
|
|
370
|
-
Q.length > 0 && xe.length > 0 && /* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
entries:
|
|
381
|
+
Q.length > 0 && xe.length > 0 && /* @__PURE__ */ b(ee, { className: "marginBlockSm" }),
|
|
382
|
+
/* @__PURE__ */ b(ve, {
|
|
383
|
+
entries: tt,
|
|
373
384
|
listId: s,
|
|
374
385
|
activeIndex: Y,
|
|
375
386
|
selectedKeys: q,
|
|
376
387
|
codeKey: e,
|
|
377
388
|
query: V,
|
|
378
|
-
highlightQuery:
|
|
389
|
+
highlightQuery: He,
|
|
379
390
|
getOptionDisabled: J,
|
|
380
|
-
getOptionId:
|
|
381
|
-
setOptionRef:
|
|
391
|
+
getOptionId: Be,
|
|
392
|
+
setOptionRef: Ne,
|
|
382
393
|
toggleOption: X,
|
|
383
|
-
selectOnlyOption:
|
|
384
|
-
renderItem:
|
|
394
|
+
selectOnlyOption: qe,
|
|
395
|
+
renderItem: Qe
|
|
385
396
|
})
|
|
386
397
|
]
|
|
387
398
|
})
|
|
@@ -393,7 +404,7 @@ var k = _(({ codeKey: e, textKey: n, hideCode: a, items: p, value: m, onChange:
|
|
|
393
404
|
k.displayName = "MultiSelect";
|
|
394
405
|
//#endregion
|
|
395
406
|
//#region src/multi-select/model/useODataMultiSelect.ts
|
|
396
|
-
function
|
|
407
|
+
function A({ odata: e, segment: t, model: n, value: r, dependencies: i, onChange: a }) {
|
|
397
408
|
let o = m({
|
|
398
409
|
odata: e,
|
|
399
410
|
segment: t,
|
|
@@ -410,16 +421,16 @@ function ge({ odata: e, segment: t, model: n, value: r, dependencies: i, onChang
|
|
|
410
421
|
}
|
|
411
422
|
//#endregion
|
|
412
423
|
//#region src/multi-select/ui/ODataMultiSelect.tsx
|
|
413
|
-
var
|
|
414
|
-
let u =
|
|
424
|
+
var j = ({ odata: e, segment: t, model: n, label: r, description: i, disabled: a, value: o, dependencies: s, onChange: c, size: l }) => {
|
|
425
|
+
let u = A({
|
|
415
426
|
odata: e,
|
|
416
427
|
segment: t,
|
|
417
|
-
model:
|
|
428
|
+
model: ie(n),
|
|
418
429
|
value: o,
|
|
419
430
|
dependencies: s,
|
|
420
431
|
onChange: c
|
|
421
432
|
});
|
|
422
|
-
return /* @__PURE__ */
|
|
433
|
+
return /* @__PURE__ */ b(k, {
|
|
423
434
|
label: r,
|
|
424
435
|
description: i,
|
|
425
436
|
size: l,
|
|
@@ -437,7 +448,7 @@ var A = ({ odata: e, segment: t, model: n, label: r, description: i, disabled: a
|
|
|
437
448
|
placeholder: u.placeholder,
|
|
438
449
|
error: u.isError ? "Ошибка загрузки" : void 0
|
|
439
450
|
});
|
|
440
|
-
},
|
|
451
|
+
}, M = ({ item: e, values: t, onChange: n, width: r = 15 }) => {
|
|
441
452
|
let [i, a] = y({}), o = t ?? i, s = `calc(${r}em + var(--width-add))`, c = te((r) => {
|
|
442
453
|
let i = {
|
|
443
454
|
...o,
|
|
@@ -450,12 +461,12 @@ var A = ({ odata: e, segment: t, model: n, label: r, description: i, disabled: a
|
|
|
450
461
|
o,
|
|
451
462
|
t
|
|
452
463
|
]);
|
|
453
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ b("div", {
|
|
454
465
|
style: {
|
|
455
466
|
maxWidth: s,
|
|
456
467
|
minWidth: s
|
|
457
468
|
},
|
|
458
|
-
children: /* @__PURE__ */
|
|
469
|
+
children: /* @__PURE__ */ b(j, {
|
|
459
470
|
odata: e.odata,
|
|
460
471
|
segment: e.segment,
|
|
461
472
|
model: e.model,
|
|
@@ -464,13 +475,13 @@ var A = ({ odata: e, segment: t, model: n, label: r, description: i, disabled: a
|
|
|
464
475
|
onChange: c
|
|
465
476
|
})
|
|
466
477
|
});
|
|
467
|
-
},
|
|
478
|
+
}, N = ({ width: e = 15, odata: t, segments: n, model: r, values: i, onChange: a }) => {
|
|
468
479
|
let [o, s] = y({}), c = i ?? o;
|
|
469
|
-
return
|
|
480
|
+
return re([{
|
|
470
481
|
odata: t,
|
|
471
482
|
segments: n,
|
|
472
483
|
model: r
|
|
473
|
-
}]).map((t) => /* @__PURE__ */
|
|
484
|
+
}]).map((t) => /* @__PURE__ */ b(M, {
|
|
474
485
|
item: t,
|
|
475
486
|
values: c,
|
|
476
487
|
onChange: (e) => {
|
|
@@ -481,21 +492,21 @@ var A = ({ odata: e, segment: t, model: n, label: r, description: i, disabled: a
|
|
|
481
492
|
};
|
|
482
493
|
//#endregion
|
|
483
494
|
//#region src/multi-select/ui/SerializableMultiSelect.tsx
|
|
484
|
-
function
|
|
495
|
+
function P(e, t) {
|
|
485
496
|
return e[t];
|
|
486
497
|
}
|
|
487
|
-
function
|
|
498
|
+
function F(e, t, n) {
|
|
488
499
|
let r = e[t];
|
|
489
500
|
if (typeof r == "string") return r;
|
|
490
|
-
let i =
|
|
501
|
+
let i = P(e, n);
|
|
491
502
|
return typeof i == "string" ? i : String(i);
|
|
492
503
|
}
|
|
493
|
-
function
|
|
504
|
+
function I({ label: e, description: t, disabled: n, placeholder: r, size: i, options: a, value: o, onChange: s, optionKey: c, optionLabel: l, renderCode: u }) {
|
|
494
505
|
let d = a.map((e) => ({
|
|
495
|
-
key: String(
|
|
496
|
-
text:
|
|
506
|
+
key: String(P(e, c)),
|
|
507
|
+
text: F(e, l, c)
|
|
497
508
|
})), f = new Set((o ?? []).map((e) => String(e))), p = d.filter((e) => f.has(e.key));
|
|
498
|
-
return /* @__PURE__ */
|
|
509
|
+
return /* @__PURE__ */ b(k, {
|
|
499
510
|
label: e,
|
|
500
511
|
description: t,
|
|
501
512
|
disabled: n,
|
|
@@ -510,6 +521,6 @@ function F({ label: e, description: t, disabled: n, placeholder: r, size: i, opt
|
|
|
510
521
|
});
|
|
511
522
|
}
|
|
512
523
|
//#endregion
|
|
513
|
-
export { k as a,
|
|
524
|
+
export { k as a, j as i, N as n, T as o, M as r, C as s, I as t };
|
|
514
525
|
|
|
515
|
-
//# sourceMappingURL=multi-select-
|
|
526
|
+
//# sourceMappingURL=multi-select-Dypew65l.js.map
|