@ryuzaki13/react-foundation-ui 1.2.11 → 1.2.13

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.
Files changed (176) hide show
  1. package/dist/tree-select/TreePickerBase.d.ts.map +1 -1
  2. package/dist/tree-select/index.js +164 -163
  3. package/dist/tree-select/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/storybook-static/assets/{Badge-ENT6G_4v.js → Badge--DWHr76D.js} +1 -1
  6. package/storybook-static/assets/{Badge.stories-9zmjdmOW.js → Badge.stories-B4cYG9l9.js} +1 -1
  7. package/storybook-static/assets/{Button-DRVnqcfq.js → Button-Cx8ZZnYK.js} +1 -1
  8. package/storybook-static/assets/{Button-Dtn9nkH6.js → Button-jmEmtzCG.js} +1 -1
  9. package/storybook-static/assets/{Button.stories-3s3kmopB.js → Button.stories-SiBMniHM.js} +1 -1
  10. package/storybook-static/assets/{CheckBox-CTB2DhsO.js → CheckBox-BHzxm5ud.js} +1 -1
  11. package/storybook-static/assets/{CheckBox-BUi4k0uh.js → CheckBox-CgMbsXwW.js} +1 -1
  12. package/storybook-static/assets/{CheckBox.stories-BkJ0w_uq.js → CheckBox.stories-CZ1wcKEl.js} +1 -1
  13. package/storybook-static/assets/{Color-KMSTOMOX-ouqO0hLE.js → Color-KMSTOMOX-DO0YdKFU.js} +1 -1
  14. package/storybook-static/assets/{ContextMenu-DQRThG0V.js → ContextMenu-DkGOpD2L.js} +1 -1
  15. package/storybook-static/assets/{ContextMenu.stories-Bk0giS5_.js → ContextMenu.stories-ubSyKcEY.js} +1 -1
  16. package/storybook-static/assets/{DateInput-Bb11QDeg.js → DateInput-CaPaYBwV.js} +1 -1
  17. package/storybook-static/assets/{DateInput-B-a9MD30.js → DateInput-CoMvPBgw.js} +1 -1
  18. package/storybook-static/assets/{DateInput.stories-B5IZMb8k.js → DateInput.stories-BrmRRP3u.js} +1 -1
  19. package/storybook-static/assets/{DateRangePresetSelect-9bUVjrwk.js → DateRangePresetSelect-Cqo8FN4l.js} +1 -1
  20. package/storybook-static/assets/{DateRangePresetSelect-NAmuktBR.js → DateRangePresetSelect-DNbWJch4.js} +1 -1
  21. package/storybook-static/assets/{DateRangePresetSelect.stories-TZw_Bwei.js → DateRangePresetSelect.stories-fSd0WyN7.js} +1 -1
  22. package/storybook-static/assets/{Detail-DdwRglON.js → Detail-CUN5whdJ.js} +1 -1
  23. package/storybook-static/assets/{Detail.stories-B_6Q2Hvw.js → Detail.stories-X4YzNqXX.js} +1 -1
  24. package/storybook-static/assets/{Dialog-D22OclFM.js → Dialog-1KYB9IIO.js} +1 -1
  25. package/storybook-static/assets/{Dialog.stories-DKB9Ov_F.js → Dialog.stories-Bm-mh3pV.js} +1 -1
  26. package/storybook-static/assets/{Disclosure-BXZvW9U_.js → Disclosure-Cl7Usm1K.js} +1 -1
  27. package/storybook-static/assets/{Disclosure.stories-BBjtTWLZ.js → Disclosure.stories-Dv0ZFbAG.js} +1 -1
  28. package/storybook-static/assets/{DocsRenderer-JROSPFPF-DqcHwjc9.js → DocsRenderer-JROSPFPF-DpEJB6Iu.js} +2 -2
  29. package/storybook-static/assets/{DropZone-B-ZajpzL.js → DropZone-Dr4Z-pE1.js} +1 -1
  30. package/storybook-static/assets/{DropZone.stories-DighuWN_.js → DropZone.stories-BZvwPSUW.js} +1 -1
  31. package/storybook-static/assets/{DropdownMenu-D9i6QMuS.js → DropdownMenu-DBpOoYuB.js} +1 -1
  32. package/storybook-static/assets/{ExpandableActionPanel.stories-ClDtM4Sx.js → ExpandableActionPanel.stories-HS05XvKj.js} +1 -1
  33. package/storybook-static/assets/{Flex-Cgh_e-We.js → Flex-BLPSitUR.js} +1 -1
  34. package/storybook-static/assets/{Flex-DDPCae__.js → Flex-BLkaMY8A.js} +1 -1
  35. package/storybook-static/assets/{Flex.stories-DhSaGw6l.js → Flex.stories-DHkOsjKa.js} +1 -1
  36. package/storybook-static/assets/{Grid-3WqAlpmW.js → Grid-9nPVBakE.js} +1 -1
  37. package/storybook-static/assets/{Grid-CeE_oAmJ.js → Grid-WyYCZl75.js} +1 -1
  38. package/storybook-static/assets/{Grid.stories-DUacnRtj.js → Grid.stories-D1Aq5mKr.js} +1 -1
  39. package/storybook-static/assets/{ImageCropper.stories-CzvgcbOK.js → ImageCropper.stories-Bwl9JdxT.js} +1 -1
  40. package/storybook-static/assets/{ImageRenderer-Dqf7hdSe.js → ImageRenderer-Bkf4dO-v.js} +1 -1
  41. package/storybook-static/assets/{ImageRenderer.stories-DC0jl7nA.js → ImageRenderer.stories-BvhAt_-E.js} +1 -1
  42. package/storybook-static/assets/{ImageView.stories-BxISSwLl.js → ImageView.stories-DdWSfdOI.js} +1 -1
  43. package/storybook-static/assets/{ImageViewer.stories-C5MwhjNQ.js → ImageViewer.stories-C8J6Buc-.js} +2 -2
  44. package/storybook-static/assets/{ImageViewerRuntime-BVhN9_P5.js → ImageViewerRuntime-BMG0f_9d.js} +1 -1
  45. package/storybook-static/assets/{Input-DkukcDUb.js → Input-DQV1VhD-.js} +1 -1
  46. package/storybook-static/assets/{Input-E3-ZOxBy.js → Input-DbaCFiCC.js} +1 -1
  47. package/storybook-static/assets/{Input.stories-BlYNdbfZ.js → Input.stories-BtYgjKBn.js} +1 -1
  48. package/storybook-static/assets/{InputDateTime-BhjUyTNP.js → InputDateTime-CY3ajtZ5.js} +1 -1
  49. package/storybook-static/assets/{InputDateTime.stories-D6W1tfM3.js → InputDateTime.stories-DnkeVay0.js} +1 -1
  50. package/storybook-static/assets/{InputFile-JJNgE19Q.js → InputFile-Dws7a0vW.js} +1 -1
  51. package/storybook-static/assets/{InputFile.stories-B9-F-5lW.js → InputFile.stories-BX2ZuwvI.js} +1 -1
  52. package/storybook-static/assets/{InputFiles-D21YmLhv.js → InputFiles-CfDCHQCt.js} +1 -1
  53. package/storybook-static/assets/{InputFiles-Bi1_h8e9.js → InputFiles-DZ8nXKan.js} +1 -1
  54. package/storybook-static/assets/{InputFiles.stories-CKOxz7wl.js → InputFiles.stories-BrjhEuBb.js} +1 -1
  55. package/storybook-static/assets/{InputImage-CnKJ7ebf.js → InputImage-BQrV_wZ5.js} +1 -1
  56. package/storybook-static/assets/{InputImage.stories-Dh9_4Uw4.js → InputImage.stories-DvPfY0EM.js} +1 -1
  57. package/storybook-static/assets/{LayoutPicker-A3pqeYYO.js → LayoutPicker-BmZiWK2i.js} +1 -1
  58. package/storybook-static/assets/{LayoutPicker.stories-DgO_6dsY.js → LayoutPicker.stories-BR48XqPQ.js} +1 -1
  59. package/storybook-static/assets/{Listbox-BpL2H7BF.js → Listbox-DFx4qsG9.js} +1 -1
  60. package/storybook-static/assets/{Listbox.stories-hGq6pf2c.js → Listbox.stories-mYx37peV.js} +1 -1
  61. package/storybook-static/assets/{Modal-CZsMyZuy.js → Modal-B7_ZT1rl.js} +1 -1
  62. package/storybook-static/assets/{Modal.stories-D_sAcp0F.js → Modal.stories-eFt2-JCE.js} +1 -1
  63. package/storybook-static/assets/{MultiSelect-DmlNendg.js → MultiSelect-6VhijuY2.js} +1 -1
  64. package/storybook-static/assets/{MultiSelect-CBfl_xQC.js → MultiSelect-Cc_sEash.js} +1 -1
  65. package/storybook-static/assets/{MultiSelect.stories-D1Cobm5f.js → MultiSelect.stories-DaxMx_BY.js} +1 -1
  66. package/storybook-static/assets/{NotificationsHost-BfSm7lQ9.js → NotificationsHost-BjXsC4gT.js} +1 -1
  67. package/storybook-static/assets/{NotificationsHost.stories-BzQ0iI-4.js → NotificationsHost.stories-DEptWGP2.js} +1 -1
  68. package/storybook-static/assets/{ODataMultiSelect-CL0ogbpd.js → ODataMultiSelect-BMPMk3d7.js} +1 -1
  69. package/storybook-static/assets/{ODataMultiSelect-DvSW3I5n.js → ODataMultiSelect-CLOq8OX8.js} +1 -1
  70. package/storybook-static/assets/{ODataMultiSelect.stories-B4v6G0xl.js → ODataMultiSelect.stories-BFPGEQ_E.js} +1 -1
  71. package/storybook-static/assets/{ODataSelect-CQXPiobi.js → ODataSelect-CCLfT40q.js} +1 -1
  72. package/storybook-static/assets/{ODataSelect-DjV-dEHX.js → ODataSelect-Civ1XLjx.js} +1 -1
  73. package/storybook-static/assets/{ODataSelect.stories-pvicK50K.js → ODataSelect.stories-D4RUITpS.js} +1 -1
  74. package/storybook-static/assets/{ODataTreeMultiSelect-VRW_Qioy.js → ODataTreeMultiSelect-C2doZqfr.js} +1 -1
  75. package/storybook-static/assets/{ODataTreeMultiSelect.stories-BWWkE0CS.js → ODataTreeMultiSelect.stories-C4xMNCvZ.js} +1 -1
  76. package/storybook-static/assets/{ODataTreeSelect-BByttYGU.js → ODataTreeSelect-BQmfQn0r.js} +1 -1
  77. package/storybook-static/assets/{ODataTreeSelect.stories-BY-l8Z-C.js → ODataTreeSelect.stories-BRY9vCtH.js} +1 -1
  78. package/storybook-static/assets/{PeriodSelect-oyb_h3Hz.js → PeriodSelect-BJ53Ykfv.js} +1 -1
  79. package/storybook-static/assets/{PeriodSelect.stories-BYjstRYg.js → PeriodSelect.stories--Hl4uIWl.js} +1 -1
  80. package/storybook-static/assets/{Popover-DpwuB3U6.js → Popover-B4nkvxoX.js} +1 -1
  81. package/storybook-static/assets/{Popover.stories-Dafw9FGC.js → Popover.stories-C43SSnlF.js} +1 -1
  82. package/storybook-static/assets/{PresetRangeDateInput-BIvC7ZUy.js → PresetRangeDateInput-3iN63kX-.js} +1 -1
  83. package/storybook-static/assets/{PresetRangeDateInput.stories-DAHlx5he.js → PresetRangeDateInput.stories-CwBVhPU5.js} +1 -1
  84. package/storybook-static/assets/{RadioButton-C0TIKDIe.js → RadioButton-DZ8Nl-n6.js} +1 -1
  85. package/storybook-static/assets/{RadioButton.stories-CICQIgrF.js → RadioButton.stories-C41d4mz9.js} +1 -1
  86. package/storybook-static/assets/{RadioGroup-DRZtVYZy.js → RadioGroup-BU1UODYa.js} +1 -1
  87. package/storybook-static/assets/{RadioGroup-Bp-CKSZK.js → RadioGroup-DlSrHkDR.js} +1 -1
  88. package/storybook-static/assets/{RadioGroup.stories-BZ1yivpC.js → RadioGroup.stories--96Mw_u5.js} +1 -1
  89. package/storybook-static/assets/{Select-CGkVuMJ1.js → Select-BLiUsVjX.js} +1 -1
  90. package/storybook-static/assets/{Select-CnZm1g6f.js → Select-D3lBHJR0.js} +1 -1
  91. package/storybook-static/assets/{Select.stories-CDo6VUaa.js → Select.stories-CZX39tWX.js} +1 -1
  92. package/storybook-static/assets/{SelectOptionContent-BOqpx0Hk.js → SelectOptionContent-g6ApRTfm.js} +1 -1
  93. package/storybook-static/assets/{SerializableSelect-C7PGS11X.js → SerializableSelect-DYHTxerP.js} +1 -1
  94. package/storybook-static/assets/{SerializableSelect-Blwp5rlv.js → SerializableSelect-lGqY5rI5.js} +1 -1
  95. package/storybook-static/assets/{SerializableSelect.stories--yqTBrT0.js → SerializableSelect.stories-BtU5K_Lb.js} +1 -1
  96. package/storybook-static/assets/{SingleDateTimeInput-DDELXfua.js → SingleDateTimeInput-DDkU8stn.js} +1 -1
  97. package/storybook-static/assets/{SingleDateTimeInput.stories-C9vJmahp.js → SingleDateTimeInput.stories-B6uM5uBj.js} +1 -1
  98. package/storybook-static/assets/{Slider-BEt_yzTa.js → Slider-aV7w62Rn.js} +1 -1
  99. package/storybook-static/assets/{Slider.stories-Bt8Rl6S8.js → Slider.stories-jIBFIiup.js} +1 -1
  100. package/storybook-static/assets/{SliderInput-CiAIjmVM.js → SliderInput-D0yRSdH6.js} +1 -1
  101. package/storybook-static/assets/{SliderInput.stories-DFr7ZjmL.js → SliderInput.stories-5L9nhmYE.js} +1 -1
  102. package/storybook-static/assets/{Sortable-CdvkDL2J.js → Sortable-Bj-ITRmD.js} +1 -1
  103. package/storybook-static/assets/{Sortable.stories-DjCjgDv0.js → Sortable.stories-BccPy88q.js} +1 -1
  104. package/storybook-static/assets/{Splitter-_mR1b33X.js → Splitter-0MFVK6eX.js} +1 -1
  105. package/storybook-static/assets/{Splitter.stories-CNaXcmQq.js → Splitter.stories-Cnmcpah6.js} +1 -1
  106. package/storybook-static/assets/{StateSelect-hr-O_OoW.js → StateSelect-EXJTsIib.js} +1 -1
  107. package/storybook-static/assets/{StateSelect.stories-DAB5UQaZ.js → StateSelect.stories-DpeIOomk.js} +1 -1
  108. package/storybook-static/assets/{Switch-VlenSHdf.js → Switch-Bouzf5T9.js} +1 -1
  109. package/storybook-static/assets/{Switch.stories-DzQuLktx.js → Switch.stories-DufwfHRc.js} +1 -1
  110. package/storybook-static/assets/{Table-B2MTB8tD.js → Table-nRBkJNjN.js} +1 -1
  111. package/storybook-static/assets/{Table.stories-DM3YFN8s.js → Table.stories-T4Bh15-x.js} +1 -1
  112. package/storybook-static/assets/{Tabs-BPlm3_T5.js → Tabs-BbF0G8pl.js} +1 -1
  113. package/storybook-static/assets/{Tabs.stories-Uo1XS3-g.js → Tabs.stories-BPTit-WQ.js} +1 -1
  114. package/storybook-static/assets/{TagInput.stories-DKoshHvN.js → TagInput.stories-DUx50IDO.js} +1 -1
  115. package/storybook-static/assets/{Textarea-Diz8dkfw.js → Textarea-DdP0_9Ku.js} +1 -1
  116. package/storybook-static/assets/{Textarea.stories-CY5LJ5aE.js → Textarea.stories-BIIl1zXa.js} +1 -1
  117. package/storybook-static/assets/{TimePanel-BRoHClJ-.js → TimePanel-P5OLY82H.js} +1 -1
  118. package/storybook-static/assets/{TimePanel.stories-BXyx6Ik4.js → TimePanel.stories-DYIjVXe-.js} +1 -1
  119. package/storybook-static/assets/{Toggle-x9XVKft0.js → Toggle-BQ9vj1yQ.js} +1 -1
  120. package/storybook-static/assets/{Toggle.stories-D5E_--tu.js → Toggle.stories-DEirDiOG.js} +1 -1
  121. package/storybook-static/assets/{TreeMultiSelect-BD1Eb0hX.js → TreeMultiSelect-BjQyOyQM.js} +1 -1
  122. package/storybook-static/assets/{TreeMultiSelect-Yk70j57Y.js → TreeMultiSelect-DbR73SDr.js} +1 -1
  123. package/storybook-static/assets/{TreeMultiSelect.stories-B5X7f-F_.js → TreeMultiSelect.stories-CI8OYQ28.js} +1 -1
  124. package/storybook-static/assets/{TreePickerBase-Cl25Mc1C.js → TreePickerBase-BaaAg1C0.js} +2 -2
  125. package/storybook-static/assets/{TreeSelect-WwHG7Bq-.js → TreeSelect-XN67-Ugz.js} +1 -1
  126. package/storybook-static/assets/{TreeSelect-HEKfNvFJ.js → TreeSelect-Zx9nX92Z.js} +1 -1
  127. package/storybook-static/assets/{TreeSelect.stories-DfPaBn1m.js → TreeSelect.stories-4R0G5LPS.js} +1 -1
  128. package/storybook-static/assets/{TreeTable-DGXTORw6.js → TreeTable-Z6jR0E4u.js} +1 -1
  129. package/storybook-static/assets/{TreeTable.stories-BAOXQ8Ay.js → TreeTable.stories-D_A4GmP1.js} +1 -1
  130. package/storybook-static/assets/{WithTooltip-7X4HQR7L-RCNNvzYu.js → WithTooltip-7X4HQR7L-CxbHW8vk.js} +1 -1
  131. package/storybook-static/assets/{base-table-4t1-7Jtx.js → base-table-BAybCumM.js} +1 -1
  132. package/storybook-static/assets/{blocks-BTWDPXw2.js → blocks-6H7dheWg.js} +6 -6
  133. package/storybook-static/assets/{button-B_M21qVB.js → button-BW8g57jt.js} +1 -1
  134. package/storybook-static/assets/{check-box-ejCJBUxW.js → check-box-dDflWCAW.js} +1 -1
  135. package/storybook-static/assets/{chunk-3LY4VQVK-BoMoZ2OO.js → chunk-3LY4VQVK-CvprVBEE.js} +1 -1
  136. package/storybook-static/assets/{chunk-LITCR56V-C7xjXWeE.js → chunk-LITCR56V-ColyGaTs.js} +1 -1
  137. package/storybook-static/assets/{contextMenu-BZlJMFUf.js → contextMenu-BM_w29N2.js} +1 -1
  138. package/storybook-static/assets/{error-JD7u2jGa.js → error-Dd72Ltdx.js} +1 -1
  139. package/storybook-static/assets/{flex-CqPdPDBo.js → flex-BQUmlc5s.js} +1 -1
  140. package/storybook-static/assets/{floating-ui.react-C3A6ClcE.js → floating-ui.react-Cgv_gdpO.js} +1 -1
  141. package/storybook-static/assets/formatter-L2YTDE3Q-BkbAyQS_.js +1 -0
  142. package/storybook-static/assets/{formatters-B-pIx5G7.js → formatters-DR4SipYU.js} +1 -1
  143. package/storybook-static/assets/grid-Clv9wted.js +1 -0
  144. package/storybook-static/assets/{hooks-IjP-1Z2g.js → hooks-CksDwali.js} +1 -1
  145. package/storybook-static/assets/{iframe-DgjKgzSJ.js → iframe-8yiaZsxV.js} +3 -3
  146. package/storybook-static/assets/{input-s2K72WFq.js → input-BDfX2ZJN.js} +1 -1
  147. package/storybook-static/assets/{mdx-react-shim-Cvto3c9j.js → mdx-react-shim-CR1Sqe7O.js} +1 -1
  148. package/storybook-static/assets/{media-mIFj_kVn.js → media-Hxn--irs.js} +1 -1
  149. package/storybook-static/assets/{misc-DGblZc-J.js → misc-C4JomW3A.js} +1 -1
  150. package/storybook-static/assets/{notifications-DtXpE9cN.js → notifications-DHYp1_8F.js} +1 -1
  151. package/storybook-static/assets/{odata-CDbqEvLs.js → odata-Beh7LPwF.js} +1 -1
  152. package/storybook-static/assets/odata-service-DJJFflxw.js +1 -0
  153. package/storybook-static/assets/{odataStoryFixtures-D2mKTk6I.js → odataStoryFixtures-C_NsAWws.js} +1 -1
  154. package/storybook-static/assets/{picker-DQzUbBNQ.js → picker-BF69i-Xf.js} +1 -1
  155. package/storybook-static/assets/{popover-CEQhcRsC.js → popover-BDRQLBEp.js} +1 -1
  156. package/storybook-static/assets/{preset-select-DwlgzBQ0.js → preset-select-C-Xm2xmD.js} +1 -1
  157. package/storybook-static/assets/{react-18-BsG_FFAa.js → react-18-CqASmMhK.js} +1 -1
  158. package/storybook-static/assets/{react-dom-BFflb-Rh.js → react-dom-CXms0ASb.js} +1 -1
  159. package/storybook-static/assets/{react-Dq5IYfFQ.js → react-v2wz2Yxr.js} +1 -1
  160. package/storybook-static/assets/select-D0PdaVj6.js +1 -0
  161. package/storybook-static/assets/{slider-2T09PVR5.js → slider-DqH5Q0D9.js} +1 -1
  162. package/storybook-static/assets/{sortable-BOI4xH-Y.js → sortable-CgPvrRfY.js} +1 -1
  163. package/storybook-static/assets/{syntaxhighlighter-RTCFPKCB-B9sXbrco.js → syntaxhighlighter-RTCFPKCB-CrLT_Ki1.js} +1 -1
  164. package/storybook-static/assets/{text-pom21bVh.js → text-DrpMrZBZ.js} +1 -1
  165. package/storybook-static/assets/{theming-D6WBflMM.js → theming-DZ-M3lNH.js} +1 -1
  166. package/storybook-static/assets/ui-CEAYwuc3.js +1 -0
  167. package/storybook-static/assets/{useODataSelectBase-DVeujs_p.js → useODataSelectBase-C8eWb6CT.js} +1 -1
  168. package/storybook-static/assets/{useODataTreeData-D0ug23UI.js → useODataTreeData-CU1I_UJd.js} +1 -1
  169. package/storybook-static/assets/{utils-rufH70Cx.js → utils-CecGsBKu.js} +1 -1
  170. package/storybook-static/iframe.html +2 -2
  171. package/storybook-static/project.json +1 -1
  172. package/storybook-static/assets/formatter-L2YTDE3Q-DMs2Q5ab.js +0 -1
  173. package/storybook-static/assets/grid-DF_FLs1T.js +0 -1
  174. package/storybook-static/assets/odata-service-B0uo-PiG.js +0 -1
  175. package/storybook-static/assets/select-DWgPehJh.js +0 -1
  176. package/storybook-static/assets/ui-bViB7Jyu.js +0 -1
@@ -79,25 +79,25 @@ function ce(e, t) {
79
79
  }
80
80
  //#endregion
81
81
  //#region src/tree-select/model/useODataTreeData.ts
82
- function M(e, t, n) {
82
+ function le(e, t, n) {
83
83
  return y([{
84
84
  odata: e,
85
85
  segments: t,
86
86
  model: n
87
87
  }]);
88
88
  }
89
- function N(e) {
89
+ function M(e) {
90
90
  return e[0]?.id;
91
91
  }
92
- function P({ odata: e, segments: t, model: n }) {
93
- let r = `${e.service}.${e.target}`, i = _(() => M(e, t, n), [
92
+ function N({ odata: e, segments: t, model: n }) {
93
+ let r = `${e.service}.${e.target}`, i = _(() => le(e, t, n), [
94
94
  e,
95
95
  t,
96
96
  n
97
97
  ]), a = te([e]), o = _(() => ce(i, a), [i, a]), s = _(() => o.map((e) => e.id), [o]), c = x({
98
98
  odata: e,
99
99
  model: S({
100
- codeKey: N(o) ?? Object.keys(t)[0],
100
+ codeKey: M(o) ?? Object.keys(t)[0],
101
101
  ...n
102
102
  })
103
103
  }), { hiddenCodeKeys: l, textValueCodeKeys: u } = _(() => {
@@ -132,12 +132,12 @@ function P({ odata: e, segments: t, model: n }) {
132
132
  }
133
133
  //#endregion
134
134
  //#region src/tree-select/model/treeUtils.ts
135
- function F(e, t) {
135
+ function P(e, t) {
136
136
  return `${e}::${t}`;
137
137
  }
138
- function le(e) {
138
+ function ue(e) {
139
139
  let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = 0, s = (e, c) => {
140
- t.set(e.id, e), n.set(e.id, c), i.set(e.id, o++), a.set(F(e.codeKey, e.value), e.id);
140
+ t.set(e.id, e), n.set(e.id, c), i.set(e.id, o++), a.set(P(e.codeKey, e.value), e.id);
141
141
  let l = (e.children ?? []).map((e) => e.id);
142
142
  r.set(e.id, l);
143
143
  for (let t of e.children ?? []) s(t, e.id);
@@ -152,19 +152,19 @@ function le(e) {
152
152
  nodeIdByCodeValue: a
153
153
  };
154
154
  }
155
- function I(e, t) {
156
- if (e) return t.nodeIdByCodeValue.get(F(e.codeKey, e.value));
155
+ function F(e, t) {
156
+ if (e) return t.nodeIdByCodeValue.get(P(e.codeKey, e.value));
157
157
  }
158
- function L(e, t) {
158
+ function I(e, t) {
159
159
  let n = /* @__PURE__ */ new Set();
160
160
  if (!e) return n;
161
161
  for (let [r, i] of Object.entries(e)) for (let e of i) {
162
- let i = t.nodeIdByCodeValue.get(F(r, e));
162
+ let i = t.nodeIdByCodeValue.get(P(r, e));
163
163
  i && n.add(i);
164
164
  }
165
- return H(n, t);
165
+ return V(n, t);
166
166
  }
167
- function R(e, t) {
167
+ function L(e, t) {
168
168
  let n = [...e].sort((e, n) => (t.preorderIndexById.get(e) ?? 2 ** 53 - 1) - (t.preorderIndexById.get(n) ?? 2 ** 53 - 1)), r = {};
169
169
  for (let e of n) {
170
170
  let n = t.nodeById.get(e);
@@ -172,12 +172,12 @@ function R(e, t) {
172
172
  }
173
173
  return r;
174
174
  }
175
- function ue(e, t) {
175
+ function de(e, t) {
176
176
  let n = [], r = t.parentById.get(e);
177
177
  for (; r;) n.push(r), r = t.parentById.get(r);
178
178
  return n;
179
179
  }
180
- function z(e, t, n) {
180
+ function R(e, t, n) {
181
181
  let r = n.parentById.get(e);
182
182
  for (; r;) {
183
183
  if (r === t) return !0;
@@ -185,41 +185,41 @@ function z(e, t, n) {
185
185
  }
186
186
  return !1;
187
187
  }
188
- function B(e, t, n) {
189
- for (let r of [...e]) z(r, t, n) && e.delete(r);
188
+ function z(e, t, n) {
189
+ for (let r of [...e]) R(r, t, n) && e.delete(r);
190
190
  }
191
- function V(e, t, n) {
191
+ function B(e, t, n) {
192
192
  if (t.has(e)) return !0;
193
193
  if (n.nodeById.get(e)?.disabled) return !1;
194
194
  let r = n.childrenById.get(e) ?? [];
195
- return r.length === 0 ? !1 : r.every((e) => V(e, t, n));
195
+ return r.length === 0 ? !1 : r.every((e) => B(e, t, n));
196
196
  }
197
- function H(e, t) {
197
+ function V(e, t) {
198
198
  let n = new Set(e);
199
- for (let e of [...n]) ue(e, t).some((e) => n.has(e)) && n.delete(e);
199
+ for (let e of [...n]) de(e, t).some((e) => n.has(e)) && n.delete(e);
200
200
  let r = [...t.nodeById.keys()].sort((e, n) => (t.preorderIndexById.get(n) ?? 0) - (t.preorderIndexById.get(e) ?? 0));
201
201
  for (let e of r) {
202
202
  let r = t.childrenById.get(e) ?? [];
203
- r.length === 0 || n.has(e) || t.nodeById.get(e)?.disabled || r.every((e) => V(e, n, t)) && (B(n, e, t), n.add(e));
203
+ r.length === 0 || n.has(e) || t.nodeById.get(e)?.disabled || r.every((e) => B(e, n, t)) && (z(n, e, t), n.add(e));
204
204
  }
205
205
  return n;
206
206
  }
207
- function de(e, t, n) {
207
+ function fe(e, t, n) {
208
208
  let r = n.parentById.get(t);
209
209
  for (; r;) {
210
210
  if (e.has(r)) {
211
211
  e.delete(r);
212
- for (let t of G(n, n.childrenById.get(r) ?? [])) e.add(t);
212
+ for (let t of W(n, n.childrenById.get(r) ?? [])) e.add(t);
213
213
  return !0;
214
214
  }
215
215
  r = n.parentById.get(r);
216
216
  }
217
217
  return !1;
218
218
  }
219
- function U(e, t, n) {
220
- return t.has(e) ? !0 : ue(e, n).some((e) => t.has(e));
219
+ function H(e, t, n) {
220
+ return t.has(e) ? !0 : de(e, n).some((e) => t.has(e));
221
221
  }
222
- function W(e, t, n, r) {
222
+ function U(e, t, n, r) {
223
223
  let i = n.childrenById.get(e) ?? [];
224
224
  if (t.has(e)) return r.selectedIds.add(e), {
225
225
  selected: !0,
@@ -229,7 +229,7 @@ function W(e, t, n, r) {
229
229
  selected: !1,
230
230
  partial: !1
231
231
  };
232
- let a = i.map((e) => W(e, t, n, r)), o = a.every((e) => e.selected && !e.partial), s = a.some((e) => e.selected || e.partial);
232
+ let a = i.map((e) => U(e, t, n, r)), o = a.every((e) => e.selected && !e.partial), s = a.some((e) => e.selected || e.partial);
233
233
  return o ? (r.selectedIds.add(e), {
234
234
  selected: !0,
235
235
  partial: !1
@@ -241,15 +241,15 @@ function W(e, t, n, r) {
241
241
  partial: !1
242
242
  };
243
243
  }
244
- function fe(e, t) {
244
+ function pe(e, t) {
245
245
  let n = {
246
246
  selectedIds: /* @__PURE__ */ new Set(),
247
247
  partialIds: /* @__PURE__ */ new Set()
248
248
  };
249
- for (let r of t.rootIds) W(r, e, t, n);
249
+ for (let r of t.rootIds) U(r, e, t, n);
250
250
  return n;
251
251
  }
252
- function G(e, t = e.rootIds) {
252
+ function W(e, t = e.rootIds) {
253
253
  let n = (t) => {
254
254
  let r = e.nodeById.get(t), i = (e.childrenById.get(t) ?? []).map(n), a = i.flatMap((e) => e.selectedIds), o = r?.disabled === !0 || i.some((e) => e.containsDisabled);
255
255
  return !r || r.disabled || o ? {
@@ -262,41 +262,41 @@ function G(e, t = e.rootIds) {
262
262
  };
263
263
  return new Set(t.flatMap((e) => n(e).selectedIds));
264
264
  }
265
- function pe(e, t, n) {
266
- let r = L(e, n), i = (e) => {
267
- if (U(e, r, n)) {
265
+ function me(e, t, n) {
266
+ let r = I(e, n), i = (e) => {
267
+ if (H(e, r, n)) {
268
268
  if (r.has(e)) {
269
269
  r.delete(e);
270
270
  return;
271
271
  }
272
- de(r, e, n) && i(e);
272
+ fe(r, e, n) && i(e);
273
273
  return;
274
274
  }
275
- B(r, e, n), r.add(e);
276
- }, a = [...G(n, [t])], o = a.length > 0 && a.every((e) => U(e, r, n));
275
+ z(r, e, n), r.add(e);
276
+ }, a = [...W(n, [t])], o = a.length > 0 && a.every((e) => H(e, r, n));
277
277
  for (let e of a) {
278
- let t = U(e, r, n);
278
+ let t = H(e, r, n);
279
279
  (o && t || !o && !t) && i(e);
280
280
  }
281
- return R(H(r, n), n);
281
+ return L(V(r, n), n);
282
282
  }
283
- function K(e, t, n) {
283
+ function G(e, t, n) {
284
284
  let r = t.parentById.get(e);
285
285
  for (; r;) n.add(r), r = t.parentById.get(r);
286
286
  }
287
- function me(e, t) {
287
+ function he(e, t) {
288
288
  let n = /* @__PURE__ */ new Set();
289
- for (let r of e) K(r, t, n);
289
+ for (let r of e) G(r, t, n);
290
290
  return n;
291
291
  }
292
- function he(e, t, n) {
293
- let r = (e.children ?? []).map((e) => he(e, t, n)).filter((e) => !!e);
292
+ function ge(e, t, n) {
293
+ let r = (e.children ?? []).map((e) => ge(e, t, n)).filter((e) => !!e);
294
294
  return !e.searchText.toLowerCase().includes(t) && r.length === 0 ? null : (r.length > 0 && n.add(e.id), r.length === 0 ? e : {
295
295
  ...e,
296
296
  children: r
297
297
  });
298
298
  }
299
- function ge(e, t) {
299
+ function _e(e, t) {
300
300
  let n = t.trim().toLowerCase();
301
301
  if (!n) return {
302
302
  nodes: [...e],
@@ -304,11 +304,11 @@ function ge(e, t) {
304
304
  };
305
305
  let r = /* @__PURE__ */ new Set();
306
306
  return {
307
- nodes: e.map((e) => he(e, n, r)).filter((e) => !!e),
307
+ nodes: e.map((e) => ge(e, n, r)).filter((e) => !!e),
308
308
  expandedIds: r
309
309
  };
310
310
  }
311
- function _e(e, t) {
311
+ function ve(e, t) {
312
312
  let n = [], r = (e, i, a) => {
313
313
  let o = (e.children?.length ?? 0) > 0, s = o && t.has(e.id);
314
314
  if (n.push({
@@ -325,17 +325,17 @@ function _e(e, t) {
325
325
  }
326
326
  //#endregion
327
327
  //#region src/tree-select/model/resolveBalancedTreeColumnsLayout.ts
328
- var ve = 8, q = 16, J = 48, ye = 224, Y = 10, be = 32, xe = 6;
329
- function X(e, t) {
328
+ var ye = 8, K = 16, q = 48, be = 224, J = 10, xe = 32, Se = 6;
329
+ function Y(e, t) {
330
330
  return Number.isFinite(e) && e > 0 ? e : t;
331
331
  }
332
- function Se({ itemCount: e, availableWidth: t, availableHeight: n, viewportWidth: r, viewportHeight: i, referenceWidth: a }) {
333
- let o = Math.max(0, Math.floor(Number.isFinite(e) ? e : 0)), s = X(t, 240), c = X(n, 80), l = X(r, s + ve * 2), u = X(i, c), d = Math.max(1, Math.min(s, Math.max(1, l - ve * 2))), f = Math.max(1, Math.min(c, u * .75)), p = Math.max(1, X(a, 1)), m = Math.min(d, p), h = Math.max(1, Math.floor((d - q + Y) / 234)), g = Math.max(1, Math.min(xe, h, o || 1)), _ = 1, v = Infinity;
332
+ function Ce({ itemCount: e, availableWidth: t, availableHeight: n, viewportWidth: r, viewportHeight: i, referenceWidth: a }) {
333
+ let o = Math.max(0, Math.floor(Number.isFinite(e) ? e : 0)), s = Y(t, 240), c = Y(n, 80), l = Y(r, s + ye * 2), u = Y(i, c), d = Math.max(1, Math.min(s, Math.max(1, l - ye * 2))), f = Math.max(1, Math.min(c, u * .75)), p = Math.max(1, Y(a, 1)), m = Math.min(d, p), h = Math.max(1, Math.floor((d - K + J) / 234)), g = Math.max(1, Math.min(Se, h, o || 1)), _ = 1, v = Infinity;
334
334
  for (let e = 1; e <= g; e += 1) {
335
- let t = Math.ceil(o / e), n = Math.max(m, q + e * ye + (e - 1) * Y), r = J + t * be, i = n / d, a = r / f, s = o ? (e * t - o) / o : 0, c = Math.max(i, a) + .25 * Math.abs(i - a) + .01 * s + .04 * (e - 1);
335
+ let t = Math.ceil(o / e), n = Math.max(m, K + e * be + (e - 1) * J), r = q + t * xe, i = n / d, a = r / f, s = o ? (e * t - o) / o : 0, c = Math.max(i, a) + .25 * Math.abs(i - a) + .01 * s + .04 * (e - 1);
336
336
  c < v && (v = c, _ = e);
337
337
  }
338
- let ee = Math.ceil(o / _), y = Math.max(m, q + _ * ye + (_ - 1) * Y);
338
+ let ee = Math.ceil(o / _), y = Math.max(m, K + _ * be + (_ - 1) * J);
339
339
  return {
340
340
  columnCount: _,
341
341
  rowCount: ee,
@@ -344,7 +344,7 @@ function Se({ itemCount: e, availableWidth: t, availableHeight: n, viewportWidth
344
344
  maxHeight: f
345
345
  };
346
346
  }
347
- var Z = {
347
+ var X = {
348
348
  treeRow: "eMqOwq",
349
349
  treeRowSelected: "JKstO-",
350
350
  treeRowActive: "hKgr8e",
@@ -372,30 +372,30 @@ var Z = {
372
372
  };
373
373
  //#endregion
374
374
  //#region src/tree-select/TreeNodeContent.tsx
375
- function Ce({ node: e, level: t, highlight: r, hasChildren: i, isExpanded: a, selected: o, partial: s, selectionMode: c, optionsLayout: l = "tree", onToggleExpand: u, onToggleSelection: d }) {
375
+ function we({ node: e, level: t, highlight: r, hasChildren: i, isExpanded: a, selected: o, partial: s, selectionMode: c, optionsLayout: l = "tree", onToggleExpand: u, onToggleSelection: d }) {
376
376
  let f = l === "tree";
377
377
  return /* @__PURE__ */ D(ie, { children: [
378
378
  /* @__PURE__ */ E("span", {
379
- className: Z.treeIndent,
379
+ className: X.treeIndent,
380
380
  style: { "--tree-level": t },
381
381
  "aria-hidden": "true"
382
382
  }),
383
383
  f && i ? /* @__PURE__ */ E("button", {
384
384
  type: "button",
385
- className: Z.treeExpander,
385
+ className: X.treeExpander,
386
386
  onClick: (e) => {
387
387
  e.stopPropagation(), u?.();
388
388
  },
389
389
  "aria-label": a ? "Свернуть ветку" : "Развернуть ветку",
390
390
  "data-ui": "tree-select-expander",
391
391
  "data-action": a ? "collapse-tree-select-node" : "expand-tree-select-node",
392
- children: /* @__PURE__ */ E(T, { className: C(Z.treeExpanderIcon, a && Z.treeExpanderIconExpanded) })
392
+ children: /* @__PURE__ */ E(T, { className: C(X.treeExpanderIcon, a && X.treeExpanderIconExpanded) })
393
393
  }) : f ? /* @__PURE__ */ E("span", {
394
- className: Z.treeExpanderPlaceholder,
394
+ className: X.treeExpanderPlaceholder,
395
395
  "aria-hidden": "true"
396
396
  }) : null,
397
397
  c === "multi" && l === "columns" ? /* @__PURE__ */ E("span", {
398
- className: Z.treeColumnCheckBox,
398
+ className: X.treeColumnCheckBox,
399
399
  onMouseDown: (e) => e.stopPropagation(),
400
400
  onClick: (e) => e.stopPropagation(),
401
401
  children: /* @__PURE__ */ E(n, {
@@ -406,12 +406,12 @@ function Ce({ node: e, level: t, highlight: r, hasChildren: i, isExpanded: a, se
406
406
  onChange: () => d?.()
407
407
  })
408
408
  }) : c === "multi" ? /* @__PURE__ */ E("span", {
409
- className: C(Z.treeSelection, o && Z.treeSelectionChecked, s && Z.treeSelectionPartial),
409
+ className: C(X.treeSelection, o && X.treeSelectionChecked, s && X.treeSelectionPartial),
410
410
  "aria-hidden": "true",
411
- children: o ? /* @__PURE__ */ E(w, { className: Z.treeSelectionIcon }) : s ? /* @__PURE__ */ E(ne, { className: Z.treeSelectionIcon }) : null
411
+ children: o ? /* @__PURE__ */ E(w, { className: X.treeSelectionIcon }) : s ? /* @__PURE__ */ E(ne, { className: X.treeSelectionIcon }) : null
412
412
  }) : null,
413
413
  /* @__PURE__ */ E("div", {
414
- className: Z.treeNodeOptionContent,
414
+ className: X.treeNodeOptionContent,
415
415
  children: /* @__PURE__ */ E(p, {
416
416
  label: e.label,
417
417
  code: e.code,
@@ -422,27 +422,27 @@ function Ce({ node: e, level: t, highlight: r, hasChildren: i, isExpanded: a, se
422
422
  }
423
423
  //#endregion
424
424
  //#region src/tree-select/TreePickerBase.tsx
425
- function we({ label: n, description: c, disabled: p, placeholder: m, size: y, nodes: b, selectedIds: x, partialIds: te, selectionMode: S, optionsLayout: w = "tree", open: T, onOpenChange: ne, bulkActions: O, triggerMode: k = "display", selectedSummary: A, selectedSummaryText: j, query: ae, defaultQuery: oe, onQuery: se, onNodeActivate: ce, onClearSelection: M, isLoading: N, error: P }) {
426
- let F = v(null), I = v(null), L = v(!1), [R, ue] = ee(() => /* @__PURE__ */ new Set()), z = k === "search" ? S === "multi" ? "search-multi" : "search-single" : "display", B = _(() => le(b), [b]), { query: V, setQuery: H } = u({
425
+ function Te({ label: n, description: c, disabled: p, placeholder: m, size: y, nodes: b, selectedIds: x, partialIds: te, selectionMode: S, optionsLayout: w = "tree", open: T, onOpenChange: ne, bulkActions: O, triggerMode: k = "display", selectedSummary: A, selectedSummaryText: j, query: ae, defaultQuery: oe, onQuery: se, onNodeActivate: ce, onClearSelection: le, isLoading: M, error: N }) {
426
+ let P = v(null), F = v(null), I = v(!1), [L, de] = ee(() => /* @__PURE__ */ new Set()), R = k === "search" ? S === "multi" ? "search-multi" : "search-single" : "display", z = _(() => ue(b), [b]), { query: B, setQuery: V } = u({
427
427
  open: !0,
428
428
  query: ae,
429
429
  defaultQuery: oe,
430
430
  onQuery: se,
431
431
  triggerMode: "display"
432
- }), { nodes: de, expandedIds: W } = _(() => ge(b, V), [b, V]), fe = _(() => me(x, B), [x, B]), G = _(() => new Set([...B.childrenById].filter(([, e]) => e.length > 0).map(([e]) => e)), [B]), pe = _(() => w === "columns" ? G : /* @__PURE__ */ new Set([
433
- ...R,
434
- ...W,
435
- ...fe
432
+ }), { nodes: fe, expandedIds: U } = _(() => _e(b, B), [b, B]), pe = _(() => he(x, z), [x, z]), W = _(() => new Set([...z.childrenById].filter(([, e]) => e.length > 0).map(([e]) => e)), [z]), me = _(() => w === "columns" ? W : /* @__PURE__ */ new Set([
433
+ ...L,
434
+ ...U,
435
+ ...pe
436
436
  ]), [
437
- G,
438
- R,
439
- w,
440
437
  W,
441
- fe
442
- ]), K = _(() => _e(de, pe), [de, pe]), he = _(() => K.findIndex((e) => x.has(e.node.id)), [x, K]), ve = h((e) => {
443
- let t = Se({
438
+ L,
439
+ w,
440
+ U,
441
+ pe
442
+ ]), G = _(() => ve(fe, me), [fe, me]), ge = _(() => G.findIndex((e) => x.has(e.node.id)), [x, G]), ye = h((e) => {
443
+ let t = Ce({
444
444
  ...e,
445
- itemCount: K.length
445
+ itemCount: G.length
446
446
  });
447
447
  return {
448
448
  width: `${t.width}px`,
@@ -452,39 +452,39 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
452
452
  "--tree-column-count": String(t.columnCount),
453
453
  "--tree-row-count": String(Math.max(t.rowCount, 1))
454
454
  };
455
- }, [K.length]), { open: q, activeIndex: J, context: ye, floatingStyles: Y, getFloatingProps: be, setReference: xe, setFloating: X, setOptionRef: we, close: Te, openList: Ee, toggleOpen: De, selectOption: Q, handleReferenceKeyDown: Oe, handleFloatingKeyDown: ke, getOptionId: Ae, getActiveOptionId: je } = o({
456
- options: K,
457
- selectedIndex: he,
455
+ }, [G.length]), { open: K, activeIndex: q, context: be, floatingStyles: J, getFloatingProps: xe, setReference: Se, setFloating: Y, setOptionRef: Te, close: Ee, openList: De, toggleOpen: Oe, selectOption: Z, handleReferenceKeyDown: ke, handleFloatingKeyDown: Ae, getOptionId: je, getActiveOptionId: Me } = o({
456
+ options: G,
457
+ selectedIndex: ge,
458
458
  open: T,
459
459
  onOpenChange: ne,
460
460
  onSelect: (e) => ce(e.node),
461
461
  getOptionDisabled: (e) => e.node.disabled === !0,
462
- disabled: p || N,
462
+ disabled: p || M,
463
463
  closeOnSelect: S === "single",
464
464
  allowOpenWithoutOptions: !0,
465
- triggerMode: z,
465
+ triggerMode: R,
466
466
  placementStrategy: w === "columns" ? "auto" : "flip",
467
- resolveFloatingSize: w === "columns" ? ve : void 0
468
- }), Me = x.size > 0, Ne = k === "search" && (q || V.length > 0), Pe = Ne ? V : j ?? "", Fe = k === "display" && !!A, Ie = z === "search-multi" && !!A, Le = k === "search" && (!j || Ne) || k === "display" && !Me, $ = d({
469
- mode: z,
470
- open: q,
471
- currentQuery: V,
467
+ resolveFloatingSize: w === "columns" ? ye : void 0
468
+ }), Q = x.size > 0, Ne = k === "search" && (K || B.length > 0), Pe = Ne ? B : j ?? "", Fe = k === "display" && !!A, Ie = R === "search-multi" && !!A, Le = R === "search-multi" && !Q || R === "search-single" && (!j || Ne) || R === "display" && !Q, $ = d({
469
+ mode: R,
470
+ open: K,
471
+ currentQuery: B,
472
472
  hasDisplayValue: !!j,
473
- inputRef: F,
474
- setQuery: H,
475
- openList: Ee,
476
- close: Te,
477
- toggleOpen: De
473
+ inputRef: P,
474
+ setQuery: V,
475
+ openList: De,
476
+ close: Ee,
477
+ toggleOpen: Oe
478
478
  }), Re = w === "columns" && S === "multi" && O, ze = k === "display", Be = Re || ze ? /* @__PURE__ */ D("div", {
479
- className: Z.treePopupHeader,
479
+ className: X.treePopupHeader,
480
480
  children: [Re ? /* @__PURE__ */ E(i, {
481
481
  onSelectAll: O.onSelectAll,
482
482
  onDeselectAll: O.onDeselectAll,
483
- selectAllButtonRef: I
483
+ selectAllButtonRef: F
484
484
  }) : null, ze ? /* @__PURE__ */ E(t, {
485
- value: V,
486
- onChange: H,
487
- onClear: () => H(""),
485
+ value: B,
486
+ onChange: V,
487
+ onClear: () => V(""),
488
488
  placeholder: "Поиск по дереву",
489
489
  onKeyDown: (e) => {
490
490
  e.key !== "Escape" && e.key !== "Tab" && e.stopPropagation();
@@ -495,18 +495,18 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
495
495
  }) : null]
496
496
  }) : void 0;
497
497
  g(() => {
498
- L.current && !q && $.policy.resetQueryOnClose && H(""), L.current = q;
498
+ I.current && !K && $.policy.resetQueryOnClose && V(""), I.current = K;
499
499
  }, [
500
- q,
501
- H,
500
+ K,
501
+ V,
502
502
  $.policy.resetQueryOnClose
503
503
  ]);
504
504
  let Ve = (e) => {
505
- F.current = e;
505
+ P.current = e;
506
506
  }, He = () => {
507
- M?.(), H(""), S === "single" && Te();
507
+ le?.(), V(""), S === "single" && Ee();
508
508
  }, Ue = (e) => {
509
- e.hasChildren && ue((t) => {
509
+ e.hasChildren && de((t) => {
510
510
  let n = new Set(t);
511
511
  return n.has(e.node.id) ? n.delete(e.node.id) : n.add(e.node.id), n;
512
512
  });
@@ -521,35 +521,36 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
521
521
  let c = `${t}-listbox`, l = typeof n == "string" ? n : m;
522
522
  return /* @__PURE__ */ D(ie, { children: [/* @__PURE__ */ E(r, {
523
523
  ref: Ve,
524
- rootRef: xe,
524
+ rootRef: Se,
525
525
  id: t,
526
526
  type: "text",
527
527
  role: "combobox",
528
528
  autoComplete: "off",
529
- disabled: p || N,
529
+ disabled: p || M,
530
530
  readOnly: k !== "search",
531
531
  value: k === "display" && Fe ? "" : Pe,
532
532
  placeholder: Le ? m : void 0,
533
533
  "aria-labelledby": i,
534
+ "aria-label": i ? void 0 : m,
534
535
  "aria-describedby": o,
535
536
  "aria-haspopup": w === "columns" ? "dialog" : "listbox",
536
- "aria-expanded": q,
537
- "aria-controls": q ? c : void 0,
537
+ "aria-expanded": K,
538
+ "aria-controls": K ? c : void 0,
538
539
  "aria-autocomplete": w !== "columns" && k === "search" ? "list" : "none",
539
- "aria-activedescendant": w !== "columns" && q && K.length > 0 ? je(c) : void 0,
540
- inputClassName: C(Me && Z.treeSummary, Fe && Z.inputWithOverlay),
540
+ "aria-activedescendant": w !== "columns" && K && G.length > 0 ? Me(c) : void 0,
541
+ inputClassName: C(Q && X.treeSummary, Fe && X.inputWithOverlay),
541
542
  overlay: Fe ? /* @__PURE__ */ E("div", {
542
- className: Z.valueOverlay,
543
+ className: X.valueOverlay,
543
544
  children: A
544
545
  }) : void 0,
545
546
  endAdornment: /* @__PURE__ */ D(s, {
546
- open: q,
547
- disabled: p || N,
547
+ open: K,
548
+ disabled: p || M,
548
549
  onToggleMouseDown: $.handleToggleMouseDown,
549
550
  onToggleClick: $.handleToggleClick,
550
- children: [Ie ? A : null, Me && M ? /* @__PURE__ */ E("button", {
551
+ children: [Ie ? A : null, Q && le ? /* @__PURE__ */ E("button", {
551
552
  type: "button",
552
- className: Z.treeClearButton,
553
+ className: X.treeClearButton,
553
554
  onMouseDown: (e) => {
554
555
  e.preventDefault(), e.stopPropagation();
555
556
  },
@@ -568,62 +569,62 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
568
569
  $.handleTriggerFocus(e.currentTarget);
569
570
  },
570
571
  onKeyDown: (e) => {
571
- if (w === "columns" && q && e.key === "Tab" && !e.shiftKey && I.current) {
572
- e.preventDefault(), I.current.focus();
572
+ if (w === "columns" && K && e.key === "Tab" && !e.shiftKey && F.current) {
573
+ e.preventDefault(), F.current.focus();
573
574
  return;
574
575
  }
575
- Oe(e), !e.defaultPrevented && $.handleTriggerKeyDown({
576
+ ke(e), !e.defaultPrevented && $.handleTriggerKeyDown({
576
577
  event: e,
577
578
  onActivateWhenOpen: () => {
578
- let e = J >= 0 ? K[J] : void 0;
579
- e && Q(e);
579
+ let e = q >= 0 ? G[q] : void 0;
580
+ e && Z(e);
580
581
  },
581
582
  enableSpaceActivation: k === "display"
582
583
  });
583
584
  }
584
585
  }), /* @__PURE__ */ E(a, {
585
- open: q,
586
- context: ye,
587
- floatingStyles: Y,
586
+ open: K,
587
+ context: be,
588
+ floatingStyles: J,
588
589
  listId: c,
589
590
  labelId: i,
590
591
  popupAriaLabel: l,
591
592
  descriptionId: o,
592
- activeOptionId: w !== "columns" && K.length > 0 ? je(c) : void 0,
593
+ activeOptionId: w !== "columns" && G.length > 0 ? Me(c) : void 0,
593
594
  ariaMultiselectable: w !== "columns" && S === "multi",
594
595
  popupRole: w === "columns" ? "dialog" : "listbox",
595
- setFloating: X,
596
- getFloatingProps: be,
597
- onKeyDown: ke,
596
+ setFloating: Y,
597
+ getFloatingProps: xe,
598
+ onKeyDown: Ae,
598
599
  className: e.uiPopupOptions,
599
600
  bodyClassName: "scrollable",
600
601
  header: Be,
601
602
  children: /* @__PURE__ */ E("div", {
602
- className: C(w === "columns" && Z.treeColumns),
603
- children: K.length === 0 ? /* @__PURE__ */ E(f, {
604
- errorState: P,
605
- loadingState: N ? "Загрузка..." : void 0,
606
- emptyState: !P && !N ? "Нет данных" : void 0
607
- }) : K.map((e, t) => {
608
- let n = S === "multi" ? U(e.node.id, x, B) : x.has(e.node.id), r = S === "multi" && !n && te.has(e.node.id), i = t === J, a = e.node.disabled === !0;
603
+ className: C(w === "columns" && X.treeColumns),
604
+ children: G.length === 0 ? /* @__PURE__ */ E(f, {
605
+ errorState: N,
606
+ loadingState: M ? "Загрузка..." : void 0,
607
+ emptyState: !N && !M ? "Нет данных" : void 0
608
+ }) : G.map((e, t) => {
609
+ let n = S === "multi" ? H(e.node.id, x, z) : x.has(e.node.id), r = S === "multi" && !n && te.has(e.node.id), i = t === q, a = e.node.disabled === !0;
609
610
  return /* @__PURE__ */ E("div", {
610
611
  "data-ui": "tree-select-option",
611
- id: Ae(c, t),
612
- ref: (e) => we(t, e),
612
+ id: je(c, t),
613
+ ref: (e) => Te(t, e),
613
614
  role: w === "columns" ? void 0 : "option",
614
615
  "aria-selected": w === "columns" ? void 0 : n,
615
616
  "aria-disabled": a || void 0,
616
- className: C(Z.treeRow, w === "columns" && Z.treeColumnRow, a && Z.treeRowDisabled, i && Z.treeRowActive, n && Z.treeRowSelected),
617
+ className: C(X.treeRow, w === "columns" && X.treeColumnRow, a && X.treeRowDisabled, i && X.treeRowActive, n && X.treeRowSelected),
617
618
  onMouseDown: (e) => {
618
619
  e.preventDefault();
619
620
  },
620
- onClick: () => Q(e),
621
+ onClick: () => Z(e),
621
622
  children: /* @__PURE__ */ E("div", {
622
- className: Z.treeNodeButton,
623
- children: /* @__PURE__ */ E(Ce, {
623
+ className: X.treeNodeButton,
624
+ children: /* @__PURE__ */ E(we, {
624
625
  node: e.node,
625
626
  level: e.level,
626
- highlight: V,
627
+ highlight: B,
627
628
  hasChildren: e.hasChildren,
628
629
  isExpanded: e.isExpanded,
629
630
  selected: n,
@@ -631,7 +632,7 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
631
632
  selectionMode: S,
632
633
  optionsLayout: w,
633
634
  onToggleExpand: () => Ue(e),
634
- onToggleSelection: () => Q(e)
635
+ onToggleSelection: () => Z(e)
635
636
  })
636
637
  })
637
638
  }, e.node.id);
@@ -643,7 +644,7 @@ function we({ label: n, description: c, disabled: p, placeholder: m, size: y, no
643
644
  }
644
645
  //#endregion
645
646
  //#region src/tree-select/TreeMultiSelect.tsx
646
- function Te(e, t) {
647
+ function Ee(e, t) {
647
648
  if (e.size !== 0) {
648
649
  if (e.size === 1) {
649
650
  let n = t.nodeById.get([...e][0]);
@@ -652,18 +653,18 @@ function Te(e, t) {
652
653
  return `${e.size} элементов`;
653
654
  }
654
655
  }
655
- function Ee(e, t, n) {
656
- let r = L(e, n), i = L(t, n);
656
+ function De(e, t, n) {
657
+ let r = I(e, n), i = I(t, n);
657
658
  return r.size === i.size && [...r].every((e) => i.has(e));
658
659
  }
659
- function De({ label: e, description: t, disabled: n, placeholder: r = "Выберите значения", size: i, nodes: a, value: o, onChange: s, query: l, defaultQuery: u, onQuery: d, isLoading: f, error: p, optionsLayout: h = "tree" }) {
660
- let [g, v] = ee(!1), y = _(() => le(a), [a]), { draftValue: b, setDraftValue: x, prepareOpen: te } = c({
660
+ function Oe({ label: e, description: t, disabled: n, placeholder: r = "Выберите значения", size: i, nodes: a, value: o, onChange: s, query: l, defaultQuery: u, onQuery: d, isLoading: f, error: p, optionsLayout: h = "tree" }) {
661
+ let [g, v] = ee(!1), y = _(() => ue(a), [a]), { draftValue: b, setDraftValue: x, prepareOpen: te } = c({
661
662
  value: o,
662
663
  open: g,
663
664
  onCommit: s,
664
- isEqual: (e, t) => Ee(e, t, y)
665
- }), S = g ? b : o, C = _(() => L(S, y), [S, y]), w = _(() => fe(C, y), [C, y]), T = _(() => Te(C, y), [C, y]);
666
- return /* @__PURE__ */ E(we, {
665
+ isEqual: (e, t) => De(e, t, y)
666
+ }), S = g ? b : o, C = _(() => I(S, y), [S, y]), w = _(() => pe(C, y), [C, y]), T = _(() => Ee(C, y), [C, y]);
667
+ return /* @__PURE__ */ E(Te, {
667
668
  label: e,
668
669
  description: t,
669
670
  disabled: n,
@@ -680,7 +681,7 @@ function De({ label: e, description: t, disabled: n, placeholder: r = "Выбе
680
681
  },
681
682
  bulkActions: {
682
683
  onSelectAll: () => {
683
- x(R(G(y), y));
684
+ x(L(W(y), y));
684
685
  },
685
686
  onDeselectAll: () => x({})
686
687
  },
@@ -690,7 +691,7 @@ function De({ label: e, description: t, disabled: n, placeholder: r = "Выбе
690
691
  defaultQuery: u,
691
692
  onQuery: d,
692
693
  onNodeActivate: (e) => {
693
- x((t) => pe(t, e.id, y));
694
+ x((t) => me(t, e.id, y));
694
695
  },
695
696
  onClearSelection: () => {
696
697
  x({}), g || s({});
@@ -701,13 +702,13 @@ function De({ label: e, description: t, disabled: n, placeholder: r = "Выбе
701
702
  }
702
703
  //#endregion
703
704
  //#region src/tree-select/ODataTreeMultiSelect.tsx
704
- function Q({ label: e, description: t, disabled: n, size: r, placeholder: i, query: a, defaultQuery: o, onQuery: s, optionsLayout: c, value: l, onChange: u, odata: d, segments: f, model: p }) {
705
- let m = P({
705
+ function Z({ label: e, description: t, disabled: n, size: r, placeholder: i, query: a, defaultQuery: o, onQuery: s, optionsLayout: c, value: l, onChange: u, odata: d, segments: f, model: p }) {
706
+ let m = N({
706
707
  odata: d,
707
708
  segments: f,
708
709
  model: p
709
710
  });
710
- return /* @__PURE__ */ E(De, {
711
+ return /* @__PURE__ */ E(Oe, {
711
712
  label: e,
712
713
  description: t,
713
714
  disabled: n || m.isLoading,
@@ -726,12 +727,12 @@ function Q({ label: e, description: t, disabled: n, size: r, placeholder: i, que
726
727
  }
727
728
  //#endregion
728
729
  //#region src/tree-select/TreeSelect.tsx
729
- function Oe(e) {
730
+ function ke(e) {
730
731
  if (e) return e.code && e.code !== e.label ? `${e.label} · ${e.code}` : e.label;
731
732
  }
732
- function ke({ label: e, description: t, disabled: n, placeholder: r = "Выберите значение", size: i, nodes: a, value: o, onChange: s, query: c, defaultQuery: l, onQuery: u, isLoading: d, error: f, clearable: p = !1 }) {
733
- let m = _(() => le(a), [a]), h = I(o, m), g = h ? m.nodeById.get(h) : void 0;
734
- return /* @__PURE__ */ E(we, {
733
+ function Ae({ label: e, description: t, disabled: n, placeholder: r = "Выберите значение", size: i, nodes: a, value: o, onChange: s, query: c, defaultQuery: l, onQuery: u, isLoading: d, error: f, clearable: p = !1 }) {
734
+ let m = _(() => ue(a), [a]), h = F(o, m), g = h ? m.nodeById.get(h) : void 0;
735
+ return /* @__PURE__ */ E(Te, {
735
736
  label: e,
736
737
  description: t,
737
738
  disabled: n,
@@ -742,7 +743,7 @@ function ke({ label: e, description: t, disabled: n, placeholder: r = "Выбе
742
743
  partialIds: /* @__PURE__ */ new Set(),
743
744
  selectionMode: "single",
744
745
  triggerMode: "search",
745
- selectedSummaryText: Oe(g),
746
+ selectedSummaryText: ke(g),
746
747
  query: c,
747
748
  defaultQuery: l,
748
749
  onQuery: u,
@@ -757,13 +758,13 @@ function ke({ label: e, description: t, disabled: n, placeholder: r = "Выбе
757
758
  }
758
759
  //#endregion
759
760
  //#region src/tree-select/ODataTreeSelect.tsx
760
- function Ae({ label: e, description: t, disabled: n, size: r, placeholder: i, query: a, defaultQuery: o, onQuery: s, value: c, onChange: l, odata: u, segments: d, model: f, clearable: p }) {
761
- let m = P({
761
+ function je({ label: e, description: t, disabled: n, size: r, placeholder: i, query: a, defaultQuery: o, onQuery: s, value: c, onChange: l, odata: u, segments: d, model: f, clearable: p }) {
762
+ let m = N({
762
763
  odata: u,
763
764
  segments: d,
764
765
  model: f
765
766
  });
766
- return /* @__PURE__ */ E(ke, {
767
+ return /* @__PURE__ */ E(Ae, {
767
768
  label: e,
768
769
  description: t,
769
770
  disabled: n || m.isLoading,
@@ -781,6 +782,6 @@ function Ae({ label: e, description: t, disabled: n, size: r, placeholder: i, qu
781
782
  });
782
783
  }
783
784
  //#endregion
784
- export { Q as ODataTreeMultiSelect, Ae as ODataTreeSelect, De as TreeMultiSelect, ke as TreeSelect, O as treeSelectValueToSelectedFilters };
785
+ export { Z as ODataTreeMultiSelect, je as ODataTreeSelect, Oe as TreeMultiSelect, Ae as TreeSelect, O as treeSelectValueToSelectedFilters };
785
786
 
786
787
  //# sourceMappingURL=index.js.map