@ryuzaki13/react-foundation-ui 1.0.8 → 1.0.11
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 +11 -11
- package/dist/badge/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/button/index.js +2 -23
- package/dist/check-box/index.js +1 -1
- package/dist/chunks/{CalendarView-DjeTJkTT.js → CalendarView-DCQjO2ho.js} +2 -2
- package/dist/chunks/{CalendarView-DjeTJkTT.js.map → CalendarView-DCQjO2ho.js.map} +1 -1
- package/dist/chunks/{odata-DSW7z3nh.js → SelectOptionContent-lfEtHXfO.js} +404 -381
- package/dist/chunks/SelectOptionContent-lfEtHXfO.js.map +1 -0
- package/dist/chunks/{TextEditorLexicalClient-16S18Yir.js → TextEditorLexicalClient-Bca3FOUs.js} +8 -8
- package/dist/chunks/{TextEditorLexicalClient-16S18Yir.js.map → TextEditorLexicalClient-Bca3FOUs.js.map} +1 -1
- package/dist/chunks/{BadgeList-DYgun2rf.js → badge-BfbLPk0z.js} +2 -2
- package/dist/chunks/badge-BfbLPk0z.js.map +1 -0
- package/dist/chunks/{base-table-CoQlKABk.js → base-table-CiYSRI_J.js} +4 -4
- package/dist/chunks/{base-table-CoQlKABk.js.map → base-table-CiYSRI_J.js.map} +1 -1
- package/dist/chunks/button-CC0Jdx1j.js +72 -0
- package/dist/chunks/button-CC0Jdx1j.js.map +1 -0
- package/dist/chunks/{CheckBox-BowNqqd3.js → check-box-BowNqqd3.js} +1 -1
- package/dist/chunks/check-box-BowNqqd3.js.map +1 -0
- package/dist/chunks/{DropdownMenu-DQeR3y7M.js → context-menu-DQeR3y7M.js} +1 -1
- package/dist/chunks/context-menu-DQeR3y7M.js.map +1 -0
- package/dist/chunks/{DateInput-BTJ-QTUx.js → date-input-DjAQ75n9.js} +5 -5
- package/dist/chunks/date-input-DjAQ75n9.js.map +1 -0
- package/dist/chunks/{DateRangePresetSelect-UgsfaOeM.js → date-range-preset-select-UgsfaOeM.js} +1 -1
- package/dist/chunks/date-range-preset-select-UgsfaOeM.js.map +1 -0
- package/dist/chunks/{Flex-DUYSL5TE.js → flex-CPO6xlPR.js} +38 -33
- package/dist/chunks/{Flex-DUYSL5TE.js.map → flex-CPO6xlPR.js.map} +1 -1
- package/dist/chunks/{Grid-ByIIytjh.js → grid-ByIIytjh.js} +1 -1
- package/dist/chunks/{Grid-ByIIytjh.js.map → grid-ByIIytjh.js.map} +1 -1
- package/dist/chunks/{Input-anSjiM9b.js → input-CZLUUggm.js} +10 -2
- package/dist/chunks/input-CZLUUggm.js.map +1 -0
- package/dist/chunks/{InputFiles-XBQxkHdB.js → input-files-aB8iaqGk.js} +5 -5
- package/dist/chunks/input-files-aB8iaqGk.js.map +1 -0
- package/dist/chunks/{input-search-B_njjJuV.js → input-search-eMvnvgV0.js} +2 -2
- package/dist/chunks/{input-search-B_njjJuV.js.map → input-search-eMvnvgV0.js.map} +1 -1
- package/dist/chunks/{misc-DoqZBMof.js → misc-1PxS8OWD.js} +2 -2
- package/dist/chunks/{misc-DoqZBMof.js.map → misc-1PxS8OWD.js.map} +1 -1
- package/dist/chunks/{modal-ByNRME3b.js → modal-C0j0hEIt.js} +5 -5
- package/dist/chunks/{modal-ByNRME3b.js.map → modal-C0j0hEIt.js.map} +1 -1
- package/dist/chunks/multi-select-r0ekR6Bh.js +541 -0
- package/dist/chunks/multi-select-r0ekR6Bh.js.map +1 -0
- package/dist/chunks/{picker-Du7Y4-el.js → picker-beNX-cW9.js} +11 -11
- package/dist/chunks/{picker-Du7Y4-el.js.map → picker-beNX-cW9.js.map} +1 -1
- package/dist/chunks/{RadioGroup-B9XjkcOy.js → radio-group-B9XjkcOy.js} +1 -1
- package/dist/chunks/radio-group-B9XjkcOy.js.map +1 -0
- package/dist/chunks/select-CFbZS7fx.js +284 -0
- package/dist/chunks/select-CFbZS7fx.js.map +1 -0
- package/dist/chunks/{table-Dc3AqMzP.js → table-BR2VqeEg.js} +2 -2
- package/dist/chunks/{table-Dc3AqMzP.js.map → table-BR2VqeEg.js.map} +1 -1
- package/dist/chunks/{toolbar-BCZNdRXM.js → toolbar-XCDeS2Li.js} +2 -2
- package/dist/chunks/{toolbar-BCZNdRXM.js.map → toolbar-XCDeS2Li.js.map} +1 -1
- package/dist/chunks/{useODataSelectBase-BbeKdq6x.js → useODataSelectBase-BxAvhDww.js} +2 -2
- package/dist/chunks/{useODataSelectBase-BbeKdq6x.js.map → useODataSelectBase-BxAvhDww.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-range-preset-select/index.js +1 -1
- package/dist/date-time-input/index.js +458 -2
- package/dist/date-time-input/index.js.map +1 -0
- package/dist/detail/index.js +80 -2
- package/dist/detail/index.js.map +1 -0
- package/dist/dialog/index.js +50 -2
- package/dist/dialog/index.js.map +1 -0
- package/dist/disclosure/index.js +49 -2
- package/dist/disclosure/index.js.map +1 -0
- package/dist/drop-zone/index.js +98 -2
- package/dist/drop-zone/index.js.map +1 -0
- package/dist/errors/index.js +1 -1
- package/dist/expandable-action-panel/index.js +82 -2
- package/dist/expandable-action-panel/index.js.map +1 -0
- package/dist/flex/index.js +2 -14
- package/dist/grid/index.js +1 -1
- package/dist/image/index.js +5 -5
- package/dist/input/index.js +2 -14
- package/dist/input-date-time/index.js +258 -2
- package/dist/input-date-time/index.js.map +1 -0
- package/dist/input-file/index.js +105 -2
- package/dist/input-file/index.js.map +1 -0
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +100 -2
- package/dist/input-image/index.js.map +1 -0
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +1171 -2
- package/dist/layout-picker/index.js.map +1 -0
- package/dist/list/index.js +2 -2
- package/dist/listbox/index.js +81 -2
- package/dist/listbox/index.js.map +1 -0
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +2 -3
- package/dist/notifications/index.js +151 -3
- package/dist/notifications/index.js.map +1 -0
- package/dist/picker/index.js +1 -1
- package/dist/preset-range-date-input/index.js +52 -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 +48 -2
- package/dist/radio-button/index.js.map +1 -0
- package/dist/radio-group/index.js +1 -1
- package/dist/select/index.js +2 -4
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +695 -2
- package/dist/slider/index.js.map +1 -0
- package/dist/splitter/index.js +168 -2
- package/dist/splitter/index.js.map +1 -0
- package/dist/state-select/index.js +78 -2
- package/dist/state-select/index.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/switch/index.js +81 -2
- package/dist/switch/index.js.map +1 -0
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.js +384 -2
- package/dist/tabs/index.js.map +1 -0
- package/dist/text-editor/index.js +3 -3
- package/dist/text-editor/toolbar/index.js +1 -1
- package/dist/textarea/index.js +44 -2
- package/dist/textarea/index.js.map +1 -0
- package/dist/toggle/index.js +73 -2
- package/dist/toggle/index.js.map +1 -0
- package/dist/toolbar/index.js +2 -3
- package/dist/toolbar/index.js.map +1 -1
- package/dist/tree-select/index.js +569 -89
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +5 -304
- package/src/styles/_base.scss +11 -3
- package/src/styles/config/_index.scss +21 -37
- package/src/styles/themes/dark/_default.scss +0 -17
- package/storybook-static/assets/Badge-Cr7bAbxa.css +1 -0
- package/storybook-static/assets/Badge-Q8iX86Mn.js +139 -0
- package/storybook-static/assets/Badge.stories-BEMBzR2f.js +51 -0
- package/storybook-static/assets/Button-BN8Cuwsy.css +1 -0
- package/storybook-static/assets/Button-BUkCW8Zg.js +12 -0
- package/storybook-static/assets/Button-CfX05aoR.js +124 -0
- package/storybook-static/assets/Button.stories-BoNLZb6w.js +75 -0
- package/storybook-static/assets/CheckBox-B1xm2kwz.css +1 -0
- package/storybook-static/assets/CheckBox-CcXGzkSE.js +42 -0
- package/storybook-static/assets/CheckBox-DTSi8Yok.js +2 -0
- package/storybook-static/assets/CheckBox.module-Hr3mvdAC.js +1 -0
- package/storybook-static/assets/CheckBox.stories-Bo53TxC7.js +60 -0
- package/storybook-static/assets/Color-KMSTOMOX-Mbprgrbi.js +1 -0
- package/storybook-static/assets/ContextMenu-DYlSojIE.js +40 -0
- package/storybook-static/assets/ContextMenu.stories-BJr53bsq.js +90 -0
- package/storybook-static/assets/DateInput-Bc-MiPp1.css +1 -0
- package/storybook-static/assets/DateInput-BrmilavO.js +40 -0
- package/storybook-static/assets/DateInput-C72jV86j.js +1 -0
- package/storybook-static/assets/DateInput.stories-0hU_T1iZ.js +115 -0
- package/storybook-static/assets/DateRangePresetSelect-BklzgpCR.js +3 -0
- package/storybook-static/assets/DateRangePresetSelect-C7gJVkMB.js +30 -0
- package/storybook-static/assets/DateRangePresetSelect.stories-DQKDcAdP.js +11 -0
- package/storybook-static/assets/Detail-BKSBSfTO.css +1 -0
- package/storybook-static/assets/Detail-BMu0MY4h.js +40 -0
- package/storybook-static/assets/Detail.stories-CgBJjWQd.js +44 -0
- package/storybook-static/assets/Dialog-M7Uy3LiO.js +40 -0
- package/storybook-static/assets/Dialog.stories-BZ0opvaJ.js +31 -0
- package/storybook-static/assets/Disclosure-BXnfHC6v.js +29 -0
- package/storybook-static/assets/Disclosure-zNgXNDkm.css +1 -0
- package/storybook-static/assets/Disclosure.stories-C7wh6KJU.js +35 -0
- package/storybook-static/assets/DocsRenderer-JROSPFPF-BjXFJaat.js +2 -0
- package/storybook-static/assets/DropZone-C7HIN5ml.css +1 -0
- package/storybook-static/assets/DropZone-cd1aCNT1.js +36 -0
- package/storybook-static/assets/DropZone.stories-CVu731Lk.js +44 -0
- package/storybook-static/assets/DropdownMenu-B97Ad5Dg.js +1 -0
- package/storybook-static/assets/DropdownMenu-BgzIzwzM.css +1 -0
- package/storybook-static/assets/ExpandableActionPanel-D7q9two4.css +1 -0
- package/storybook-static/assets/ExpandableActionPanel.stories-k-eTxMyV.js +20 -0
- package/storybook-static/assets/Flex-BQkqAqL5.js +61 -0
- package/storybook-static/assets/Flex-C_VnI9xY.js +3 -0
- package/storybook-static/assets/Flex-IXK2se1Y.css +1 -0
- package/storybook-static/assets/Flex.stories-C1VO9Ct3.js +300 -0
- package/storybook-static/assets/Grid-Dr3BuEgd.js +61 -0
- package/storybook-static/assets/Grid-K9R_IHaw.css +1 -0
- package/storybook-static/assets/Grid-y8wKyEwc.js +163 -0
- package/storybook-static/assets/Grid.stories-6WUp6Tof.js +495 -0
- package/storybook-static/assets/Input-B7DWcGCL.js +3 -0
- package/storybook-static/assets/Input-BioMOZju.css +1 -0
- package/storybook-static/assets/Input-yly8wxYE.js +39 -0
- package/storybook-static/assets/Input.stories-CkVqvY-C.js +38 -0
- package/storybook-static/assets/InputDateTime-Cv8gmBe0.css +1 -0
- package/storybook-static/assets/InputDateTime-DHirw8rp.js +39 -0
- package/storybook-static/assets/InputDateTime.stories-Dci_81MA.js +35 -0
- package/storybook-static/assets/InputFile-DBFfWIkJ.js +37 -0
- package/storybook-static/assets/InputFile-hNjZ_wlG.css +1 -0
- package/storybook-static/assets/InputFile.stories-Bar27dP5.js +36 -0
- package/storybook-static/assets/InputFiles-ByK52qUe.css +1 -0
- package/storybook-static/assets/InputFiles-DPz7PiOC.js +1 -0
- package/storybook-static/assets/InputFiles-tULKp1KR.js +37 -0
- package/storybook-static/assets/InputFiles.stories-CkZ8et32.js +33 -0
- package/storybook-static/assets/InputImage-C-pnIXhT.css +1 -0
- package/storybook-static/assets/InputImage-D8VckxKl.js +37 -0
- package/storybook-static/assets/InputImage.stories-Dq8ORce3.js +51 -0
- package/storybook-static/assets/LayoutPicker-9tLTatHF.css +1 -0
- package/storybook-static/assets/LayoutPicker-l3XFAkqv.js +65 -0
- package/storybook-static/assets/LayoutPicker.stories-BjUmm2cg.js +449 -0
- package/storybook-static/assets/Listbox-B_6QVPAJ.js +38 -0
- package/storybook-static/assets/Listbox.stories-Cf_ApbmT.js +47 -0
- package/storybook-static/assets/Modal-BL_cTIW7.css +1 -0
- package/storybook-static/assets/Modal-BzienAaa.js +54 -0
- package/storybook-static/assets/Modal.stories-cPIHRa9a.js +180 -0
- package/storybook-static/assets/MultiSelect-CK2D25RA.js +56 -0
- package/storybook-static/assets/MultiSelect-CUQV67Ev.css +1 -0
- package/storybook-static/assets/MultiSelect-CjGBd2pC.js +2 -0
- package/storybook-static/assets/MultiSelect.stories--f_FoBzR.js +29 -0
- package/storybook-static/assets/NotificationsHost-D5Pvn4eu.css +1 -0
- package/storybook-static/assets/NotificationsHost-DKmlmqh0.js +44 -0
- package/storybook-static/assets/NotificationsHost.stories-1bPUJXfm.js +25 -0
- package/storybook-static/assets/ODataMultiSelect-BWUXuzlr.js +53 -0
- package/storybook-static/assets/ODataMultiSelect.stories-DA0f6SUG.js +73 -0
- package/storybook-static/assets/ODataSelect-D7GAFOcM.js +1 -0
- package/storybook-static/assets/ODataSelect-aNdHSjo_.js +52 -0
- package/storybook-static/assets/ODataSelect.stories-CjXA9Y9l.js +73 -0
- package/storybook-static/assets/ODataTreeMultiSelect-DKodulQ8.js +17 -0
- package/storybook-static/assets/ODataTreeMultiSelect.stories-BjRcb4W0.js +24 -0
- package/storybook-static/assets/ODataTreeSelect-Ck8HCh74.js +16 -0
- package/storybook-static/assets/ODataTreeSelect.stories-BgDj08mH.js +21 -0
- package/storybook-static/assets/PeriodSelect-Db7QmUfi.js +35 -0
- package/storybook-static/assets/PeriodSelect.stories-BI6yLRCK.js +23 -0
- package/storybook-static/assets/Popover-DR-r8iC5.js +45 -0
- package/storybook-static/assets/Popover.stories-ReRFMWiO.js +69 -0
- package/storybook-static/assets/PresetRangeDateInput-tSpiPAT9.js +31 -0
- package/storybook-static/assets/PresetRangeDateInput.stories-LVQa2_DG.js +15 -0
- package/storybook-static/assets/RadioButton-C-RjN-wY.css +1 -0
- package/storybook-static/assets/RadioButton-sEzdlL1y.js +38 -0
- package/storybook-static/assets/RadioButton.stories-CR0km0zF.js +36 -0
- package/storybook-static/assets/RadioGroup-BtNCd3Je.js +1 -0
- package/storybook-static/assets/RadioGroup-D-J7t20C.css +1 -0
- package/storybook-static/assets/RadioGroup-DR0H6Z0w.js +42 -0
- package/storybook-static/assets/RadioGroup.stories-FEqmkrs7.js +42 -0
- package/storybook-static/assets/Select-CO4ZHP9h.css +1 -0
- package/storybook-static/assets/Select-CUAevk01.js +57 -0
- package/storybook-static/assets/Select-DYVS7SCZ.js +9 -0
- package/storybook-static/assets/Select.stories-Df_c0IfC.js +37 -0
- package/storybook-static/assets/SelectOptionContent-B7W0Mned.js +1 -0
- package/storybook-static/assets/SerializableSelect-D63xBqOT.js +48 -0
- package/storybook-static/assets/SerializableSelect-DwCnuBgv.js +4 -0
- package/storybook-static/assets/SerializableSelect.stories-BLPXVOtP.js +43 -0
- package/storybook-static/assets/SingleDateTimeInput-mOllNfg2.css +1 -0
- package/storybook-static/assets/SingleDateTimeInput-xMkDodYz.js +53 -0
- package/storybook-static/assets/SingleDateTimeInput.stories-kcuSwx76.js +78 -0
- package/storybook-static/assets/Slider-BHZgpCjC.js +63 -0
- package/storybook-static/assets/Slider.stories-Bias_Soq.js +77 -0
- package/storybook-static/assets/SliderInput-jzFZcWr7.js +58 -0
- package/storybook-static/assets/SliderInput.stories-B7w8bp86.js +67 -0
- package/storybook-static/assets/Sortable-DcmDaPBw.js +72 -0
- package/storybook-static/assets/Sortable.stories-CwhHGCih.js +141 -0
- package/storybook-static/assets/Splitter-Bn7AJiD_.js +83 -0
- package/storybook-static/assets/Splitter-D-LmmQad.css +1 -0
- package/storybook-static/assets/Splitter.stories-CSvjKF-O.js +22 -0
- package/storybook-static/assets/StateSelect-MIGiXD10.js +36 -0
- package/storybook-static/assets/StateSelect-pIMkhj9A.css +1 -0
- package/storybook-static/assets/StateSelect.stories-BGDCnVqb.js +47 -0
- package/storybook-static/assets/Switch-C5zxOq_O.js +36 -0
- package/storybook-static/assets/Switch-DGYGWtPw.css +1 -0
- package/storybook-static/assets/Switch.stories-BmCl_Ts5.js +26 -0
- package/storybook-static/assets/Table-BGvRn9y0.css +1 -0
- package/storybook-static/assets/Table-CoySXvs5.js +197 -0
- package/storybook-static/assets/Table.stories-CA7ARhwC.js +122 -0
- package/storybook-static/assets/Tabs-BLkTB6pp.css +1 -0
- package/storybook-static/assets/Tabs-CQdzU18E.js +72 -0
- package/storybook-static/assets/Tabs.stories-SBWTpiy2.js +58 -0
- package/storybook-static/assets/Textarea-Bo-I0cnE.js +37 -0
- package/storybook-static/assets/Textarea-CPNMR88I.css +1 -0
- package/storybook-static/assets/Textarea.stories-C1wO9PKR.js +27 -0
- package/storybook-static/assets/TimePanel-0-mzaXky.js +1 -0
- package/storybook-static/assets/TimePanel-Bh98qsCo.css +1 -0
- package/storybook-static/assets/TimePanel.stories-C1VM13qN.js +25 -0
- package/storybook-static/assets/Toggle-B9H63WWC.js +37 -0
- package/storybook-static/assets/Toggle-DHulCX3T.css +1 -0
- package/storybook-static/assets/Toggle.stories-CKlGFcZW.js +30 -0
- package/storybook-static/assets/TreeMultiSelect-AXIl2Ge2.js +15 -0
- package/storybook-static/assets/TreeMultiSelect-Ci3bUpmv.js +1 -0
- package/storybook-static/assets/TreeMultiSelect.stories-CXGt4Q_u.js +14 -0
- package/storybook-static/assets/TreePickerBase-Md6Mt9qF.js +19 -0
- package/storybook-static/assets/TreePickerBase-qreyVjhY.css +1 -0
- package/storybook-static/assets/TreeSelect-BWoURakw.js +15 -0
- package/storybook-static/assets/TreeSelect-bOgRYtQQ.js +1 -0
- package/storybook-static/assets/TreeSelect.stories-By0h6wRi.js +16 -0
- package/storybook-static/assets/TreeTable--ZoksUiw.css +1 -0
- package/storybook-static/assets/TreeTable-C52Jh7O_.js +175 -0
- package/storybook-static/assets/TreeTable.stories-BH9Q8NPP.js +83 -0
- package/storybook-static/assets/WithTooltip-7X4HQR7L-DQXHhZoH.js +9 -0
- package/storybook-static/assets/axe-GLfyhAYL.js +20 -0
- package/storybook-static/assets/base-table-BNO0lnTL.css +1 -0
- package/storybook-static/assets/base-table-BSkQBgdx.js +18 -0
- package/storybook-static/assets/blocks-CwEU-ME1.js +285 -0
- package/storybook-static/assets/button-Bl3Hu8CS.js +1 -0
- package/storybook-static/assets/check-box-BrnNQnSi.js +1 -0
- package/storybook-static/assets/chunk-242VQQM5-Dtm7LRbQ.js +1 -0
- package/storybook-static/assets/chunk-3LY4VQVK-BxHCYS2R.js +6 -0
- package/storybook-static/assets/chunk-LITCR56V-euffoZAN.js +18 -0
- package/storybook-static/assets/contextMenu-Do6qEwKB.js +2 -0
- package/storybook-static/assets/date-segments-CzU9k5bl.js +1 -0
- package/storybook-static/assets/error-RVOk7zpw.js +1 -0
- package/storybook-static/assets/file-hArYcyES.js +1 -0
- package/storybook-static/assets/flex-DuYzsEBQ.js +1 -0
- package/storybook-static/assets/floating-ui.react-BR04wkLx.js +1 -0
- package/storybook-static/assets/formatter-L2YTDE3Q-Cdp-Jp2M.js +1 -0
- package/storybook-static/assets/formatters-yIBztcem.js +3 -0
- package/storybook-static/assets/grid-D0WOuGlB.js +1 -0
- package/storybook-static/assets/hooks-BEB2Gqy0.js +5 -0
- package/storybook-static/assets/iframe-SfMJGCsn.js +1117 -0
- package/storybook-static/assets/input-Be5K9_B7.js +1 -0
- package/storybook-static/assets/jsx-runtime-BBQGix-2.js +1 -0
- package/storybook-static/assets/lucide-react-CK2oyDtF.js +1 -0
- package/storybook-static/assets/matchers-JIUQ3HVY-BPS-eazD.js +28 -0
- package/storybook-static/assets/mdx-react-shim-DnKFgFHy.js +1 -0
- package/storybook-static/assets/media-Djn0SUaN.js +1 -0
- package/storybook-static/assets/misc-CPvLzCFJ.js +5 -0
- package/storybook-static/assets/misc-CerLA5Xh.css +1 -0
- package/storybook-static/assets/notifications-Zk996KvR.js +1 -0
- package/storybook-static/assets/odata-C2BNbnc9.js +1 -0
- package/storybook-static/assets/odata-service-8sDCOQ3I.js +1 -0
- package/storybook-static/assets/odataStoryFixtures-BBfdskiC.js +25 -0
- package/storybook-static/assets/picker-BmTTr59E.css +1 -0
- package/storybook-static/assets/picker-De4ZbESe.js +1 -0
- package/storybook-static/assets/popover-BiQHI7Wi.css +1 -0
- package/storybook-static/assets/popover-DWA5VOMQ.js +2 -0
- package/storybook-static/assets/preload-helper-B45gAKPr.js +1 -0
- package/storybook-static/assets/preset-select-DozCGhmu.js +5 -0
- package/storybook-static/assets/react-18-CfpYK14y.js +9 -0
- package/storybook-static/assets/react-BWN-5oQj.js +9 -0
- package/storybook-static/assets/react-dom-CncQzc_h.js +1 -0
- package/storybook-static/assets/select-BPvMbVDe.js +1 -0
- package/storybook-static/assets/slider-39Mty47U.js +2 -0
- package/storybook-static/assets/slider-DMDFRH6B.css +1 -0
- package/storybook-static/assets/sortable-CgCCp3dq.js +1 -0
- package/storybook-static/assets/sortable-DiBavgm0.css +1 -0
- package/storybook-static/assets/syntaxhighlighter-RTCFPKCB-Di6cCrDX.js +6 -0
- package/storybook-static/assets/text-BxA8yj6Z.js +4 -0
- package/storybook-static/assets/theming-DZauqOKI.js +39 -0
- package/storybook-static/assets/treeStoryFixtures-Cd984L7t.js +1 -0
- package/storybook-static/assets/ui-CmVy0trY.js +1 -0
- package/storybook-static/assets/ui-ZWM9zG1I.css +1 -0
- package/storybook-static/assets/ui.module-DS2qtZts.js +1 -0
- package/storybook-static/assets/uiClasses-CZ_HVS3Y.js +1 -0
- package/storybook-static/assets/useODataSelectBase-D33B4x2W.js +1 -0
- package/storybook-static/assets/useODataTreeData-CDdzN-LC.js +1 -0
- package/storybook-static/assets/utils-CReRlw17.js +1 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +709 -0
- package/storybook-static/index.html +146 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/a11y-2/manager-bundle.js +57 -0
- package/storybook-static/sb-addons/docs-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +630 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-runtime.js +76714 -0
- package/storybook-static/sb-manager/globals.js +24 -0
- package/storybook-static/sb-manager/manager-stores.js +23 -0
- package/storybook-static/sb-manager/runtime.js +27451 -0
- package/storybook-static/vite-inject-mocker-entry.js +2 -0
- package/dist/badge/stories/Badge.stories.d.ts +0 -54
- package/dist/badge/stories/Badge.stories.d.ts.map +0 -1
- package/dist/badge/stories/Badge.stories.js +0 -147
- package/dist/badge/stories/Badge.stories.js.map +0 -1
- package/dist/button/index.js.map +0 -1
- package/dist/button/stories/Button.stories.d.ts +0 -69
- package/dist/button/stories/Button.stories.d.ts.map +0 -1
- package/dist/button/stories/Button.stories.js +0 -223
- package/dist/button/stories/Button.stories.js.map +0 -1
- package/dist/check-box/stories/CheckBox.stories.d.ts +0 -58
- package/dist/check-box/stories/CheckBox.stories.d.ts.map +0 -1
- package/dist/check-box/stories/CheckBox.stories.js +0 -150
- package/dist/check-box/stories/CheckBox.stories.js.map +0 -1
- package/dist/chunks/BadgeList-DYgun2rf.js.map +0 -1
- package/dist/chunks/Button-CCWuggdA.js +0 -55
- package/dist/chunks/Button-CCWuggdA.js.map +0 -1
- package/dist/chunks/CheckBox-BowNqqd3.js.map +0 -1
- package/dist/chunks/DateInput-BTJ-QTUx.js.map +0 -1
- package/dist/chunks/DateRangePresetSelect-UgsfaOeM.js.map +0 -1
- package/dist/chunks/Detail-DHDMsg8q.js +0 -80
- package/dist/chunks/Detail-DHDMsg8q.js.map +0 -1
- package/dist/chunks/Dialog-CFIvGxER.js +0 -50
- package/dist/chunks/Dialog-CFIvGxER.js.map +0 -1
- package/dist/chunks/DisclosureGroup-CfRTkl6Z.js +0 -49
- package/dist/chunks/DisclosureGroup-CfRTkl6Z.js.map +0 -1
- package/dist/chunks/DropZone-DgDMu4Iw.js +0 -98
- package/dist/chunks/DropZone-DgDMu4Iw.js.map +0 -1
- package/dist/chunks/DropdownMenu-DQeR3y7M.js.map +0 -1
- package/dist/chunks/Input-anSjiM9b.js.map +0 -1
- package/dist/chunks/InputDateTime-BGLJ_pbV.js +0 -258
- package/dist/chunks/InputDateTime-BGLJ_pbV.js.map +0 -1
- package/dist/chunks/InputFile-B5E0prk_.js +0 -105
- package/dist/chunks/InputFile-B5E0prk_.js.map +0 -1
- package/dist/chunks/InputFiles-XBQxkHdB.js.map +0 -1
- package/dist/chunks/InputImage-Bs6cFQIo.js +0 -100
- package/dist/chunks/InputImage-Bs6cFQIo.js.map +0 -1
- package/dist/chunks/LabeledExpandableActionPanel-D3kUvmFH.js +0 -82
- package/dist/chunks/LabeledExpandableActionPanel-D3kUvmFH.js.map +0 -1
- package/dist/chunks/Listbox-BZlp5qHz.js +0 -81
- package/dist/chunks/Listbox-BZlp5qHz.js.map +0 -1
- package/dist/chunks/MultiSelect-DblDAklj.js +0 -422
- package/dist/chunks/MultiSelect-DblDAklj.js.map +0 -1
- package/dist/chunks/NotificationsHost-_icJx4xR.js +0 -151
- package/dist/chunks/NotificationsHost-_icJx4xR.js.map +0 -1
- package/dist/chunks/PresetRangeDateInput-Bytk5sAs.js +0 -53
- package/dist/chunks/PresetRangeDateInput-Bytk5sAs.js.map +0 -1
- package/dist/chunks/RadioButton-D0uA0rX_.js +0 -48
- package/dist/chunks/RadioButton-D0uA0rX_.js.map +0 -1
- package/dist/chunks/RadioGroup-B9XjkcOy.js.map +0 -1
- package/dist/chunks/Select-ClBs-16a.js +0 -182
- package/dist/chunks/Select-ClBs-16a.js.map +0 -1
- package/dist/chunks/SelectOptionContent-CI7wq9Oi.js +0 -27
- package/dist/chunks/SelectOptionContent-CI7wq9Oi.js.map +0 -1
- package/dist/chunks/SerializableSelect-Ds8wp2_p.js +0 -33
- package/dist/chunks/SerializableSelect-Ds8wp2_p.js.map +0 -1
- package/dist/chunks/SingleDateTimeInput-kXrkLAAI.js +0 -331
- package/dist/chunks/SingleDateTimeInput-kXrkLAAI.js.map +0 -1
- package/dist/chunks/Splitter-BFkVGVRb.js +0 -168
- package/dist/chunks/Splitter-BFkVGVRb.js.map +0 -1
- package/dist/chunks/StateSelect-BzUsurDe.js +0 -78
- package/dist/chunks/StateSelect-BzUsurDe.js.map +0 -1
- package/dist/chunks/Switch-B57Qmy1z.js +0 -81
- package/dist/chunks/Switch-B57Qmy1z.js.map +0 -1
- package/dist/chunks/Textarea-CLyGS1h9.js +0 -44
- package/dist/chunks/Textarea-CLyGS1h9.js.map +0 -1
- package/dist/chunks/TimePanel-b4saqoUY.js +0 -135
- package/dist/chunks/TimePanel-b4saqoUY.js.map +0 -1
- package/dist/chunks/Toggle-DVqOQXmt.js +0 -73
- package/dist/chunks/Toggle-DVqOQXmt.js.map +0 -1
- package/dist/chunks/TreeMultiSelect-mIG8VKx8.js +0 -40
- package/dist/chunks/TreeMultiSelect-mIG8VKx8.js.map +0 -1
- package/dist/chunks/TreePickerBase-C9HEABt5.js +0 -423
- package/dist/chunks/TreePickerBase-C9HEABt5.js.map +0 -1
- package/dist/chunks/TreeSelect-B9rb_fbI.js +0 -37
- package/dist/chunks/TreeSelect-B9rb_fbI.js.map +0 -1
- package/dist/chunks/layout-picker-CSLuIUVZ.js +0 -1171
- package/dist/chunks/layout-picker-CSLuIUVZ.js.map +0 -1
- package/dist/chunks/multi-select-ei7LHBCv.js +0 -126
- package/dist/chunks/multi-select-ei7LHBCv.js.map +0 -1
- package/dist/chunks/odata-DSW7z3nh.js.map +0 -1
- package/dist/chunks/select-Ds7_EAGN.js +0 -81
- package/dist/chunks/select-Ds7_EAGN.js.map +0 -1
- package/dist/chunks/slider-uU26AeGu.js +0 -695
- package/dist/chunks/slider-uU26AeGu.js.map +0 -1
- package/dist/chunks/tabs-DlnVVMJl.js +0 -384
- package/dist/chunks/tabs-DlnVVMJl.js.map +0 -1
- package/dist/chunks/treeStoryFixtures-Bhm3Gdky.js +0 -113
- package/dist/chunks/treeStoryFixtures-Bhm3Gdky.js.map +0 -1
- package/dist/context-menu/stories/ContextMenu.stories.d.ts +0 -16
- package/dist/context-menu/stories/ContextMenu.stories.d.ts.map +0 -1
- package/dist/context-menu/stories/ContextMenu.stories.js +0 -136
- package/dist/context-menu/stories/ContextMenu.stories.js.map +0 -1
- package/dist/date-input/stories/DateInput.stories.d.ts +0 -132
- package/dist/date-input/stories/DateInput.stories.d.ts.map +0 -1
- package/dist/date-input/stories/DateInput.stories.js +0 -247
- package/dist/date-input/stories/DateInput.stories.js.map +0 -1
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.d.ts +0 -22
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.d.ts.map +0 -1
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js +0 -41
- package/dist/date-range-preset-select/stories/DateRangePresetSelect.stories.js.map +0 -1
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.d.ts +0 -95
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.d.ts.map +0 -1
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.js +0 -195
- package/dist/date-time-input/stories/SingleDateTimeInput.stories.js.map +0 -1
- package/dist/date-time-input/stories/TimePanel.stories.d.ts +0 -26
- package/dist/date-time-input/stories/TimePanel.stories.d.ts.map +0 -1
- package/dist/date-time-input/stories/TimePanel.stories.js +0 -53
- package/dist/date-time-input/stories/TimePanel.stories.js.map +0 -1
- package/dist/detail/stories/Detail.stories.d.ts +0 -67
- package/dist/detail/stories/Detail.stories.d.ts.map +0 -1
- package/dist/detail/stories/Detail.stories.js +0 -170
- package/dist/detail/stories/Detail.stories.js.map +0 -1
- package/dist/dialog/stories/Dialog.stories.d.ts +0 -50
- package/dist/dialog/stories/Dialog.stories.d.ts.map +0 -1
- package/dist/dialog/stories/Dialog.stories.js +0 -89
- package/dist/dialog/stories/Dialog.stories.js.map +0 -1
- package/dist/disclosure/stories/Disclosure.stories.d.ts +0 -35
- package/dist/disclosure/stories/Disclosure.stories.d.ts.map +0 -1
- package/dist/disclosure/stories/Disclosure.stories.js +0 -70
- package/dist/disclosure/stories/Disclosure.stories.js.map +0 -1
- package/dist/drop-zone/stories/DropZone.stories.d.ts +0 -63
- package/dist/drop-zone/stories/DropZone.stories.d.ts.map +0 -1
- package/dist/drop-zone/stories/DropZone.stories.js +0 -97
- package/dist/drop-zone/stories/DropZone.stories.js.map +0 -1
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.d.ts +0 -44
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.d.ts.map +0 -1
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js +0 -117
- package/dist/expandable-action-panel/stories/ExpandableActionPanel.stories.js.map +0 -1
- package/dist/flex/index.js.map +0 -1
- package/dist/flex/stories/Flex.stories.d.ts +0 -24
- package/dist/flex/stories/Flex.stories.d.ts.map +0 -1
- package/dist/flex/stories/Flex.stories.js +0 -607
- package/dist/flex/stories/Flex.stories.js.map +0 -1
- package/dist/grid/stories/Grid.stories.d.ts +0 -24
- package/dist/grid/stories/Grid.stories.d.ts.map +0 -1
- package/dist/grid/stories/Grid.stories.js +0 -840
- package/dist/grid/stories/Grid.stories.js.map +0 -1
- package/dist/input/index.js.map +0 -1
- package/dist/input/stories/Input.stories.d.ts +0 -69
- package/dist/input/stories/Input.stories.d.ts.map +0 -1
- package/dist/input/stories/Input.stories.js +0 -132
- package/dist/input/stories/Input.stories.js.map +0 -1
- package/dist/input-date-time/stories/InputDateTime.stories.d.ts +0 -69
- package/dist/input-date-time/stories/InputDateTime.stories.d.ts.map +0 -1
- package/dist/input-date-time/stories/InputDateTime.stories.js +0 -125
- package/dist/input-date-time/stories/InputDateTime.stories.js.map +0 -1
- package/dist/input-file/stories/InputFile.stories.d.ts +0 -85
- package/dist/input-file/stories/InputFile.stories.d.ts.map +0 -1
- package/dist/input-file/stories/InputFile.stories.js +0 -158
- package/dist/input-file/stories/InputFile.stories.js.map +0 -1
- package/dist/input-files/stories/InputFiles.stories.d.ts +0 -86
- package/dist/input-files/stories/InputFiles.stories.d.ts.map +0 -1
- package/dist/input-files/stories/InputFiles.stories.js +0 -158
- package/dist/input-files/stories/InputFiles.stories.js.map +0 -1
- package/dist/input-image/stories/InputImage.stories.d.ts +0 -81
- package/dist/input-image/stories/InputImage.stories.d.ts.map +0 -1
- package/dist/input-image/stories/InputImage.stories.js +0 -174
- package/dist/input-image/stories/InputImage.stories.js.map +0 -1
- package/dist/layout-picker/stories/LayoutPicker.stories.d.ts +0 -873
- package/dist/layout-picker/stories/LayoutPicker.stories.d.ts.map +0 -1
- package/dist/layout-picker/stories/LayoutPicker.stories.js +0 -422
- package/dist/layout-picker/stories/LayoutPicker.stories.js.map +0 -1
- package/dist/listbox/stories/Listbox.stories.d.ts +0 -76
- package/dist/listbox/stories/Listbox.stories.d.ts.map +0 -1
- package/dist/listbox/stories/Listbox.stories.js +0 -140
- package/dist/listbox/stories/Listbox.stories.js.map +0 -1
- package/dist/modal/stories/Modal.stories.d.ts +0 -74
- package/dist/modal/stories/Modal.stories.d.ts.map +0 -1
- package/dist/modal/stories/Modal.stories.js +0 -320
- package/dist/modal/stories/Modal.stories.js.map +0 -1
- package/dist/multi-select/ui/stories/MultiSelect.stories.d.ts +0 -67
- package/dist/multi-select/ui/stories/MultiSelect.stories.d.ts.map +0 -1
- package/dist/multi-select/ui/stories/MultiSelect.stories.js +0 -114
- package/dist/multi-select/ui/stories/MultiSelect.stories.js.map +0 -1
- package/dist/multi-select/ui/stories/ODataMultiSelect.stories.d.ts +0 -44
- package/dist/multi-select/ui/stories/ODataMultiSelect.stories.d.ts.map +0 -1
- package/dist/notifications/ui/stories/NotificationsHost.stories.d.ts +0 -21
- package/dist/notifications/ui/stories/NotificationsHost.stories.d.ts.map +0 -1
- package/dist/notifications/ui/stories/NotificationsHost.stories.js +0 -326
- package/dist/notifications/ui/stories/NotificationsHost.stories.js.map +0 -1
- package/dist/period-select/stories/PeriodSelect.stories.d.ts +0 -96
- package/dist/period-select/stories/PeriodSelect.stories.d.ts.map +0 -1
- package/dist/period-select/stories/PeriodSelect.stories.js +0 -166
- package/dist/period-select/stories/PeriodSelect.stories.js.map +0 -1
- package/dist/popover/stories/Popover.stories.d.ts +0 -10
- package/dist/popover/stories/Popover.stories.d.ts.map +0 -1
- package/dist/popover/stories/Popover.stories.js +0 -75
- package/dist/popover/stories/Popover.stories.js.map +0 -1
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.d.ts +0 -22
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.d.ts.map +0 -1
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js +0 -45
- package/dist/preset-range-date-input/ui/stories/PresetRangeDateInput.stories.js.map +0 -1
- package/dist/radio-button/stories/RadioButton.stories.d.ts +0 -60
- package/dist/radio-button/stories/RadioButton.stories.d.ts.map +0 -1
- package/dist/radio-button/stories/RadioButton.stories.js +0 -121
- package/dist/radio-button/stories/RadioButton.stories.js.map +0 -1
- package/dist/radio-group/stories/RadioGroup.stories.d.ts +0 -74
- package/dist/radio-group/stories/RadioGroup.stories.d.ts.map +0 -1
- package/dist/radio-group/stories/RadioGroup.stories.js +0 -146
- package/dist/radio-group/stories/RadioGroup.stories.js.map +0 -1
- package/dist/select/stories/ODataSelect.stories.d.ts +0 -46
- package/dist/select/stories/ODataSelect.stories.d.ts.map +0 -1
- package/dist/select/stories/Select.stories.d.ts +0 -127
- package/dist/select/stories/Select.stories.d.ts.map +0 -1
- package/dist/select/stories/Select.stories.js +0 -214
- package/dist/select/stories/Select.stories.js.map +0 -1
- package/dist/select/stories/SerializableSelect.stories.d.ts +0 -91
- package/dist/select/stories/SerializableSelect.stories.d.ts.map +0 -1
- package/dist/select/stories/SerializableSelect.stories.js +0 -165
- package/dist/select/stories/SerializableSelect.stories.js.map +0 -1
- package/dist/select/stories/odataStoryCollection.d.ts +0 -2
- package/dist/select/stories/odataStoryCollection.d.ts.map +0 -1
- package/dist/select/stories/odataStoryFixtures.d.ts +0 -35
- package/dist/select/stories/odataStoryFixtures.d.ts.map +0 -1
- package/dist/slider/stories/Slider.stories.d.ts +0 -29
- package/dist/slider/stories/Slider.stories.d.ts.map +0 -1
- package/dist/slider/stories/Slider.stories.js +0 -310
- package/dist/slider/stories/Slider.stories.js.map +0 -1
- package/dist/slider/stories/SliderInput.stories.d.ts +0 -30
- package/dist/slider/stories/SliderInput.stories.d.ts.map +0 -1
- package/dist/slider/stories/SliderInput.stories.js +0 -282
- package/dist/slider/stories/SliderInput.stories.js.map +0 -1
- package/dist/sortable/stories/Sortable.stories.d.ts +0 -58
- package/dist/sortable/stories/Sortable.stories.d.ts.map +0 -1
- package/dist/sortable/stories/Sortable.stories.js +0 -255
- package/dist/sortable/stories/Sortable.stories.js.map +0 -1
- package/dist/splitter/stories/Splitter.stories.d.ts +0 -66
- package/dist/splitter/stories/Splitter.stories.d.ts.map +0 -1
- package/dist/splitter/stories/Splitter.stories.js +0 -223
- package/dist/splitter/stories/Splitter.stories.js.map +0 -1
- package/dist/state-select/stories/StateSelect.stories.d.ts +0 -70
- package/dist/state-select/stories/StateSelect.stories.d.ts.map +0 -1
- package/dist/state-select/stories/StateSelect.stories.js +0 -145
- package/dist/state-select/stories/StateSelect.stories.js.map +0 -1
- package/dist/switch/stories/Switch.stories.d.ts +0 -59
- package/dist/switch/stories/Switch.stories.d.ts.map +0 -1
- package/dist/switch/stories/Switch.stories.js +0 -90
- package/dist/switch/stories/Switch.stories.js.map +0 -1
- package/dist/table/stories/Table.stories.d.ts +0 -155
- package/dist/table/stories/Table.stories.d.ts.map +0 -1
- package/dist/tabs/stories/Tabs.stories.d.ts +0 -94
- package/dist/tabs/stories/Tabs.stories.d.ts.map +0 -1
- package/dist/tabs/stories/Tabs.stories.js +0 -283
- package/dist/tabs/stories/Tabs.stories.js.map +0 -1
- package/dist/textarea/stories/Textarea.stories.d.ts +0 -64
- package/dist/textarea/stories/Textarea.stories.d.ts.map +0 -1
- package/dist/textarea/stories/Textarea.stories.js +0 -98
- package/dist/textarea/stories/Textarea.stories.js.map +0 -1
- package/dist/toggle/stories/Toggle.stories.d.ts +0 -61
- package/dist/toggle/stories/Toggle.stories.d.ts.map +0 -1
- package/dist/toggle/stories/Toggle.stories.js +0 -102
- package/dist/toggle/stories/Toggle.stories.js.map +0 -1
- package/dist/tree-select/stories/ODataTreeMultiSelect.stories.d.ts +0 -55
- package/dist/tree-select/stories/ODataTreeMultiSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/ODataTreeSelect.stories.d.ts +0 -54
- package/dist/tree-select/stories/ODataTreeSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeMultiSelect.stories.d.ts +0 -35
- package/dist/tree-select/stories/TreeMultiSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeMultiSelect.stories.js +0 -64
- package/dist/tree-select/stories/TreeMultiSelect.stories.js.map +0 -1
- package/dist/tree-select/stories/TreeSelect.stories.d.ts +0 -35
- package/dist/tree-select/stories/TreeSelect.stories.d.ts.map +0 -1
- package/dist/tree-select/stories/TreeSelect.stories.js +0 -66
- package/dist/tree-select/stories/TreeSelect.stories.js.map +0 -1
- package/dist/tree-select/stories/treeStoryFixtures.d.ts +0 -3
- package/dist/tree-select/stories/treeStoryFixtures.d.ts.map +0 -1
- package/dist/tree-table/stories/TreeTable.stories.d.ts +0 -158
- package/dist/tree-table/stories/TreeTable.stories.d.ts.map +0 -1
- package/src/styles/fonts.scss +0 -47
|
@@ -1,90 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { HighlightText as e } from "../text/index.js";
|
|
2
|
+
import { t } from "./ui.module-BisoTevy.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
|
+
import { cn as s, logError as c } from "@ryuzaki13/react-foundation-lib/utils";
|
|
5
|
+
import { asRecord as l, isRecord as u, isSafe as d } from "@ryuzaki13/react-foundation-lib/validators";
|
|
6
|
+
import { reportTransportError as f } from "@ryuzaki13/react-foundation-lib/error-report";
|
|
7
|
+
import { formatDateAsODataDatetime as p, parseDate as m, truncateText as h } from "@ryuzaki13/react-foundation-lib/formatters";
|
|
8
|
+
import { queryOptions as g, useQuery as _, useQueryClient as v } from "@tanstack/react-query";
|
|
9
|
+
import { persistedQueryMeta as y } from "@ryuzaki13/react-foundation-lib/query-client";
|
|
10
|
+
import { buildEntityOperationPath as b, buildEntityPath as x, buildFunctionImportPath as S, buildODataFilter as C, buildODataOrder as w, odataParseValueByMetadata as T, parseServiceMetadata as ee } from "@ryuzaki13/react-foundation-lib/odata-service";
|
|
9
11
|
import "@ryuzaki13/react-foundation-lib/string-comparison";
|
|
10
|
-
import { buildSeparatedArrays as
|
|
11
|
-
import { createTableColumnVisibilityFromODataMetadata as
|
|
12
|
+
import { buildSeparatedArrays as te, useODataCollectionStore as E } from "@ryuzaki13/react-foundation-lib/odata";
|
|
13
|
+
import { createTableColumnVisibilityFromODataMetadata as ne, createTableColumnsFromODataMetadata as re, enrichTableColumnsWithODataFormatting as ie, resolveStableColumnId as ae } from "@ryuzaki13/react-foundation-lib/table";
|
|
12
14
|
import "@ryuzaki13/react-foundation-lib/notifications";
|
|
15
|
+
import { jsx as D, jsxs as oe } from "react/jsx-runtime";
|
|
13
16
|
//#region node_modules/@ryuzaki13/react-foundation-api/dist/chunks/fetch-CPEFkAcU.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
return
|
|
17
|
+
var O = {};
|
|
18
|
+
function k() {
|
|
19
|
+
return O;
|
|
17
20
|
}
|
|
18
|
-
function
|
|
21
|
+
function se(e) {
|
|
19
22
|
return e.split(";")[0] ?? e;
|
|
20
23
|
}
|
|
21
|
-
function
|
|
22
|
-
let n =
|
|
23
|
-
return (__DEV__ || __PREVIEW__) && n &&
|
|
24
|
+
function A(e, t) {
|
|
25
|
+
let n = O.devDp0Service;
|
|
26
|
+
return (__DEV__ || __PREVIEW__) && n && se(e) === se(n) ? "odataDp0" : t ?? "odata";
|
|
24
27
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
28
|
+
function ce() {
|
|
29
|
+
return O.resolveSapClient?.() ?? null;
|
|
27
30
|
}
|
|
28
|
-
var
|
|
31
|
+
var le = "/sap/opu/odata/sap", ue = __DEV__ || __PREVIEW__ ? "/sap-dp0/opu/odata/sap" : "/sap/opu/odata/sap", de = __DEV__ || __PREVIEW__ ? "/sap-dp0/opu/odata/UI2" : "/sap/opu/odata/UI2", fe = __BASE_APP_CONFIG_URL__, j = Object.freeze({
|
|
29
32
|
"": "",
|
|
30
|
-
odata:
|
|
31
|
-
odataDp0:
|
|
32
|
-
odataUi2:
|
|
33
|
-
config:
|
|
33
|
+
odata: le,
|
|
34
|
+
odataDp0: ue,
|
|
35
|
+
odataUi2: de,
|
|
36
|
+
config: fe
|
|
34
37
|
});
|
|
35
|
-
function
|
|
38
|
+
function M(e) {
|
|
36
39
|
return typeof e == "string" ? e : typeof Request < "u" && e instanceof Request ? e.url : e.toString();
|
|
37
40
|
}
|
|
38
|
-
function
|
|
41
|
+
function N(e) {
|
|
39
42
|
let t = e.split("?")[0]?.split("#")[0] ?? "";
|
|
40
43
|
return t ? t.startsWith("/") ? t : `/${t}` : "/";
|
|
41
44
|
}
|
|
42
|
-
var
|
|
43
|
-
function
|
|
45
|
+
var pe = 40, me = 1e3;
|
|
46
|
+
function he(e) {
|
|
44
47
|
try {
|
|
45
48
|
let t = typeof window < "u" ? window.location.origin : "http://localhost", n = new URL(e, t);
|
|
46
49
|
return `${n.origin === t ? "" : n.origin}${n.pathname}`;
|
|
47
50
|
} catch {
|
|
48
|
-
return
|
|
51
|
+
return N(e);
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
|
-
function
|
|
54
|
+
function ge(e) {
|
|
52
55
|
if (!(typeof DOMParser > "u")) try {
|
|
53
56
|
return new DOMParser().parseFromString(e, "text/html");
|
|
54
57
|
} catch {
|
|
55
58
|
return;
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
|
-
function
|
|
61
|
+
function _e(e, t) {
|
|
59
62
|
return t?.querySelector("title")?.textContent || /<title[^>]*>([\s\S]*?)<\/title>/i.exec(e)?.[1];
|
|
60
63
|
}
|
|
61
|
-
function
|
|
64
|
+
function ve(e, t) {
|
|
62
65
|
let n = t?.querySelectorAll("form").length;
|
|
63
66
|
return n === void 0 ? Array.from(e.matchAll(/<form\b/gi)).length : n;
|
|
64
67
|
}
|
|
65
|
-
function
|
|
68
|
+
function ye(e, t) {
|
|
66
69
|
let n = t ? Array.from(t.querySelectorAll("input[name],textarea[name],select[name]")).map((e) => e.name).filter(Boolean) : Array.from(e.matchAll(/\bname\s*=\s*["']([^"']+)["']/gi)).map((e) => e[1]).filter((e) => !!e);
|
|
67
|
-
return Array.from(new Set(n)).slice(0,
|
|
70
|
+
return Array.from(new Set(n)).slice(0, pe);
|
|
68
71
|
}
|
|
69
|
-
function
|
|
70
|
-
return
|
|
72
|
+
function be(e, t) {
|
|
73
|
+
return h(t?.body?.textContent ?? e.replace(/<script\b[\s\S]*?<\/script>/gi, " ").replace(/<style\b[\s\S]*?<\/style>/gi, " ").replace(/<[^>]+>/g, " "), me);
|
|
71
74
|
}
|
|
72
|
-
function
|
|
73
|
-
let t =
|
|
75
|
+
function xe(e) {
|
|
76
|
+
let t = ge(e);
|
|
74
77
|
return {
|
|
75
78
|
length: e.length,
|
|
76
|
-
title:
|
|
77
|
-
formCount:
|
|
78
|
-
inputNames:
|
|
79
|
-
textPreview:
|
|
79
|
+
title: h(_e(e, t), 200),
|
|
80
|
+
formCount: ve(e, t),
|
|
81
|
+
inputNames: ye(e, t),
|
|
82
|
+
textPreview: be(e, t)
|
|
80
83
|
};
|
|
81
84
|
}
|
|
82
|
-
function
|
|
83
|
-
let a = i ?
|
|
84
|
-
|
|
85
|
+
function Se(e, t, n, r, i) {
|
|
86
|
+
let a = i ? M(i.input) : void 0, o = a?.startsWith("http") ? a : a ? `${j[i?.baseUrlType ?? ""]}${a}` : void 0;
|
|
87
|
+
f(e, {
|
|
85
88
|
source: t,
|
|
86
|
-
requestUrl: o ?
|
|
87
|
-
responseUrl: n.url ?
|
|
89
|
+
requestUrl: o ? he(o) : void 0,
|
|
90
|
+
responseUrl: n.url ? he(n.url) : void 0,
|
|
88
91
|
method: i?.init.method?.toUpperCase() ?? "GET",
|
|
89
92
|
baseUrlType: i?.baseUrlType,
|
|
90
93
|
sapClient: i?.sapClient,
|
|
@@ -93,11 +96,11 @@ function ve(e, t, n, r, i) {
|
|
|
93
96
|
contentType: n.headers.get("Content-Type") || void 0,
|
|
94
97
|
redirected: n.redirected,
|
|
95
98
|
responseType: n.type,
|
|
96
|
-
html:
|
|
99
|
+
html: xe(r)
|
|
97
100
|
});
|
|
98
101
|
}
|
|
99
|
-
var
|
|
100
|
-
function
|
|
102
|
+
var P = null, Ce = 0;
|
|
103
|
+
function we(e) {
|
|
101
104
|
if (typeof window > "u") return e;
|
|
102
105
|
try {
|
|
103
106
|
let t = new RegExp(__ORIGIN_REG_EXP__, "i"), n = new URL(e, window.location.origin), r = t.test(n.origin), i = n.origin === __SSO_ORIGIN__;
|
|
@@ -106,14 +109,14 @@ function be(e) {
|
|
|
106
109
|
return e;
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
|
-
function
|
|
112
|
+
function F(e) {
|
|
110
113
|
return e ? typeof e.inputs.SAMLRequest == "string" || typeof e.inputs.SAMLResponse == "string" : !1;
|
|
111
114
|
}
|
|
112
|
-
function
|
|
113
|
-
let e = `${__APP_ID__}-sso-iframe-${++
|
|
115
|
+
function Te() {
|
|
116
|
+
let e = `${__APP_ID__}-sso-iframe-${++Ce}`, t = document.createElement("iframe");
|
|
114
117
|
return t.name = e, t.style.display = "none", t;
|
|
115
118
|
}
|
|
116
|
-
function
|
|
119
|
+
function Ee(e, t) {
|
|
117
120
|
return new Promise((n) => {
|
|
118
121
|
let r = null, i = () => {
|
|
119
122
|
r !== null && window.clearTimeout(r), r = window.setTimeout(() => {
|
|
@@ -123,139 +126,139 @@ function Se(e, t) {
|
|
|
123
126
|
e.addEventListener("load", i), e.addEventListener("error", i);
|
|
124
127
|
});
|
|
125
128
|
}
|
|
126
|
-
function
|
|
129
|
+
function De(e, t) {
|
|
127
130
|
let n = document.createElement("form");
|
|
128
|
-
n.method = e.method === "GET" ? "GET" : "POST", n.action =
|
|
131
|
+
n.method = e.method === "GET" ? "GET" : "POST", n.action = we(e.action), n.target = t, n.style.display = "none";
|
|
129
132
|
for (let [t, r] of Object.entries(e.inputs)) {
|
|
130
133
|
let e = document.createElement("input");
|
|
131
134
|
e.type = "hidden", e.name = t, e.value = r, n.appendChild(e);
|
|
132
135
|
}
|
|
133
136
|
return n;
|
|
134
137
|
}
|
|
135
|
-
function
|
|
138
|
+
function Oe() {
|
|
136
139
|
return typeof document > "u" ? null : document.body ?? document.documentElement;
|
|
137
140
|
}
|
|
138
|
-
function
|
|
139
|
-
let t =
|
|
141
|
+
function ke(e) {
|
|
142
|
+
let t = Oe();
|
|
140
143
|
if (!t) return Promise.resolve(!1);
|
|
141
|
-
let n =
|
|
144
|
+
let n = Te(), r = De(e, n.name), i = Ee(n, () => {
|
|
142
145
|
n.remove(), r.remove();
|
|
143
146
|
});
|
|
144
147
|
return t.appendChild(n), t.appendChild(r), r.submit(), i;
|
|
145
148
|
}
|
|
146
|
-
function
|
|
147
|
-
let t =
|
|
149
|
+
function Ae(e) {
|
|
150
|
+
let t = Oe();
|
|
148
151
|
if (!t) return Promise.resolve(!1);
|
|
149
|
-
let n =
|
|
152
|
+
let n = Te(), r = Ee(n, () => {
|
|
150
153
|
n.remove();
|
|
151
154
|
});
|
|
152
|
-
return t.appendChild(n), n.src =
|
|
155
|
+
return t.appendChild(n), n.src = we(e), r;
|
|
153
156
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}),
|
|
157
|
+
function je({ form: e, recoveryUrl: t } = {}) {
|
|
158
|
+
return P || (typeof window > "u" ? !1 : (P = (async () => F(e) ? ke(e) : t ? Ae(t) : !1)().finally(() => {
|
|
159
|
+
P = null;
|
|
160
|
+
}), P));
|
|
158
161
|
}
|
|
159
|
-
var
|
|
162
|
+
var I = class e extends Error {
|
|
160
163
|
form;
|
|
161
164
|
recoveryUrl;
|
|
162
165
|
recoverable;
|
|
163
166
|
constructor(t, n, r, i = {}) {
|
|
164
167
|
super(t), this.form = n, this.recoveryUrl = r, this.recoverable = i.recoverable ?? !0, Object.setPrototypeOf(this, e.prototype);
|
|
165
168
|
}
|
|
166
|
-
},
|
|
167
|
-
function
|
|
169
|
+
}, L = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), z = null, B = null;
|
|
170
|
+
function V(e, t) {
|
|
168
171
|
if (t !== "") return !0;
|
|
169
|
-
let n = M(
|
|
172
|
+
let n = N(M(e));
|
|
170
173
|
return n.startsWith("/sap/") || n.startsWith("/sap-dp0/");
|
|
171
174
|
}
|
|
172
|
-
function
|
|
173
|
-
return __DEV__ || __PREVIEW__ ?
|
|
175
|
+
function H(e, t) {
|
|
176
|
+
return __DEV__ || __PREVIEW__ ? V(e, t) ? t === "odataDp0" || t === "" && N(M(e)).startsWith("/sap-dp0/") ? "300" : `${__SAP_CLIENT__}` : null : ce();
|
|
174
177
|
}
|
|
175
|
-
function
|
|
176
|
-
return new
|
|
178
|
+
function Me(e) {
|
|
179
|
+
return new I("Не удалось автоматически восстановить SSO-сессию. Перезагрузите страницу и выполните вход заново.", e.form, e.recoveryUrl, { recoverable: !1 });
|
|
177
180
|
}
|
|
178
|
-
function
|
|
179
|
-
let t =
|
|
180
|
-
return typeof window < "u" && (
|
|
181
|
+
function U(e) {
|
|
182
|
+
let t = Me(e);
|
|
183
|
+
return typeof window < "u" && (B = t), t;
|
|
181
184
|
}
|
|
182
|
-
async function
|
|
183
|
-
let e =
|
|
184
|
-
if (e && await e.catch(() => {}),
|
|
185
|
+
async function Ne() {
|
|
186
|
+
let e = z;
|
|
187
|
+
if (e && await e.catch(() => {}), B) throw B;
|
|
185
188
|
}
|
|
186
|
-
async function
|
|
187
|
-
if (
|
|
189
|
+
async function W(e, t) {
|
|
190
|
+
if (B) throw B;
|
|
188
191
|
let n;
|
|
189
|
-
if (!
|
|
190
|
-
if (
|
|
191
|
-
if (!await Promise.resolve(
|
|
192
|
+
if (!z) {
|
|
193
|
+
if (z = (async () => {
|
|
194
|
+
if (!await Promise.resolve(je({
|
|
192
195
|
form: e.form,
|
|
193
196
|
recoveryUrl: e.recoveryUrl
|
|
194
|
-
})).catch(() => !1)) throw
|
|
197
|
+
})).catch(() => !1)) throw U(e);
|
|
195
198
|
try {
|
|
196
|
-
n = { value: await t() },
|
|
199
|
+
n = { value: await t() }, B = null;
|
|
197
200
|
} catch (e) {
|
|
198
|
-
throw e instanceof
|
|
201
|
+
throw e instanceof I ? U(e) : e;
|
|
199
202
|
}
|
|
200
203
|
})().finally(() => {
|
|
201
|
-
|
|
202
|
-
}), await
|
|
204
|
+
z = null;
|
|
205
|
+
}), await z, !n) throw B ?? Me(e);
|
|
203
206
|
return n.value;
|
|
204
207
|
}
|
|
205
|
-
await
|
|
208
|
+
await Ne();
|
|
206
209
|
try {
|
|
207
210
|
return await t();
|
|
208
211
|
} catch (e) {
|
|
209
|
-
throw e instanceof
|
|
212
|
+
throw e instanceof I ? U(e) : e;
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
|
-
function
|
|
215
|
+
function Pe(e, t, n) {
|
|
213
216
|
if (t === "config") return {
|
|
214
217
|
cacheKey: `${__APP_ID__}:${n ?? ""}`,
|
|
215
218
|
fetchUrl: "/Statistics"
|
|
216
219
|
};
|
|
217
|
-
let [r] = M(
|
|
220
|
+
let [r] = N(M(e)).split("/").filter(Boolean);
|
|
218
221
|
if (!r) throw Error("Не удалось определить сервис для получения CSRF-токена");
|
|
219
222
|
return {
|
|
220
223
|
cacheKey: `${t}:${n ?? ""}:${r}`,
|
|
221
224
|
fetchUrl: `/${r}/`
|
|
222
225
|
};
|
|
223
226
|
}
|
|
224
|
-
async function
|
|
225
|
-
let r =
|
|
227
|
+
async function Fe(e, t, n) {
|
|
228
|
+
let r = Pe(e, t, n), i = L.get(r.cacheKey);
|
|
226
229
|
if (i) return i;
|
|
227
|
-
let a =
|
|
230
|
+
let a = R.get(r.cacheKey);
|
|
228
231
|
if (a) return a;
|
|
229
232
|
let o = new Headers({ "x-csrf-token": "Fetch" });
|
|
230
233
|
o.set("sap-language", "ru"), o.set("sap-contextid-accept", "header"), o.set("Accept-Language", "ru"), n && o.set("sap-client", n);
|
|
231
|
-
let s = (t &&
|
|
234
|
+
let s = (t && j[t]) ?? "", c = fetch(s + r.fetchUrl, {
|
|
232
235
|
method: "GET",
|
|
233
236
|
headers: o,
|
|
234
237
|
credentials: "include",
|
|
235
238
|
redirect: "manual"
|
|
236
239
|
}).then(async (e) => {
|
|
237
|
-
if (
|
|
240
|
+
if (Ge(e)) throw new I("Требуется повторная аутентификация", void 0, s + r.fetchUrl);
|
|
238
241
|
if (!e.ok) throw Error("Не удалось получить CSRF-токен");
|
|
239
242
|
let t = e.headers.get("x-csrf-token");
|
|
240
243
|
if (!t) {
|
|
241
244
|
let t = (e.headers.get("Content-Type") || "").toLowerCase(), n = await e.text();
|
|
242
|
-
if (
|
|
243
|
-
let e =
|
|
244
|
-
if (
|
|
245
|
+
if (Ie(t, n)) {
|
|
246
|
+
let e = K(n);
|
|
247
|
+
if (F(e)) throw new I("Требуется повторная аутентификация", e, s + r.fetchUrl);
|
|
245
248
|
}
|
|
246
249
|
throw Error("CSRF-токен отсутствует в ответе");
|
|
247
250
|
}
|
|
248
|
-
return
|
|
251
|
+
return L.set(r.cacheKey, t), R.delete(r.cacheKey), t;
|
|
249
252
|
}).catch((e) => {
|
|
250
|
-
throw
|
|
253
|
+
throw R.delete(r.cacheKey), e;
|
|
251
254
|
});
|
|
252
|
-
return
|
|
255
|
+
return R.set(r.cacheKey, c), c;
|
|
253
256
|
}
|
|
254
|
-
function
|
|
257
|
+
function G(e, t) {
|
|
255
258
|
let n = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
256
259
|
return RegExp(`${n}\\s*=\\s*["']([^"']*)["']`, "i").exec(e)?.[1];
|
|
257
260
|
}
|
|
258
|
-
function
|
|
261
|
+
function K(e) {
|
|
259
262
|
try {
|
|
260
263
|
if (typeof DOMParser < "u") {
|
|
261
264
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("form");
|
|
@@ -273,10 +276,10 @@ function Me(e) {
|
|
|
273
276
|
} catch {}
|
|
274
277
|
let t = /<form\b([^>]*)>([\s\S]*?)<\/form>/i.exec(e);
|
|
275
278
|
if (!t) return;
|
|
276
|
-
let [, n = "", r = ""] = t, i =
|
|
279
|
+
let [, n = "", r = ""] = t, i = G(n, "action") || (typeof window < "u" ? window.location.href : ""), a = (G(n, "method") || "GET").toUpperCase(), o = {};
|
|
277
280
|
for (let e of r.matchAll(/<input\b([^>]*)>/gi)) {
|
|
278
|
-
let t = e[1] ?? "", n =
|
|
279
|
-
n && (o[n] =
|
|
281
|
+
let t = e[1] ?? "", n = G(t, "name");
|
|
282
|
+
n && (o[n] = G(t, "value") ?? "");
|
|
280
283
|
}
|
|
281
284
|
return {
|
|
282
285
|
action: i,
|
|
@@ -284,74 +287,74 @@ function Me(e) {
|
|
|
284
287
|
inputs: o
|
|
285
288
|
};
|
|
286
289
|
}
|
|
287
|
-
function
|
|
290
|
+
function Ie(e, t) {
|
|
288
291
|
return e.includes("text/html") || /<html/i.test(t) || /<form/i.test(t);
|
|
289
292
|
}
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
293
|
+
function Le(e) {
|
|
294
|
+
if (!u(e)) return e;
|
|
292
295
|
let t = { ...e };
|
|
293
296
|
return delete t.__metadata, t;
|
|
294
297
|
}
|
|
295
|
-
function
|
|
296
|
-
if (
|
|
298
|
+
function Re(e) {
|
|
299
|
+
if (u(e) && u(e.d) && Array.isArray(e.d.results)) {
|
|
297
300
|
let t;
|
|
298
301
|
return e.d.__count && (t = Number(e.d.__count)), {
|
|
299
|
-
data: e.d.results.map(
|
|
302
|
+
data: e.d.results.map(Le),
|
|
300
303
|
totalCount: t
|
|
301
304
|
};
|
|
302
305
|
}
|
|
303
|
-
return
|
|
306
|
+
return u(e) && e.d !== void 0 ? { data: Le(e.d) } : { data: e };
|
|
304
307
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
308
|
+
var ze = Object.freeze({ __noContent: !0 });
|
|
309
|
+
function Be(e) {
|
|
307
310
|
return !!e && typeof e == "object" && "__noContent" in e;
|
|
308
311
|
}
|
|
309
|
-
async function
|
|
310
|
-
if (e.status === 204 || e.status === 205) return { data:
|
|
312
|
+
async function Ve(e, t) {
|
|
313
|
+
if (e.status === 204 || e.status === 205) return { data: ze };
|
|
311
314
|
let n = (e.headers.get("Content-Type") || "").toLowerCase();
|
|
312
|
-
if (n.includes("application/json") || n.includes("application/odata+json")) return
|
|
315
|
+
if (n.includes("application/json") || n.includes("application/odata+json")) return Re(await e.json());
|
|
313
316
|
let r = await e.text();
|
|
314
|
-
if (
|
|
315
|
-
let n =
|
|
316
|
-
if (
|
|
317
|
+
if (Ie(n, r)) {
|
|
318
|
+
let n = K(r);
|
|
319
|
+
if (F(n)) throw new I("Требуется повторная аутентификация", n);
|
|
317
320
|
let i = /* @__PURE__ */ Error("Unexpected HTML response from OData endpoint");
|
|
318
|
-
throw
|
|
321
|
+
throw Se(i, "fetch.parseResponse", e, r, t), i;
|
|
319
322
|
}
|
|
320
323
|
try {
|
|
321
|
-
return
|
|
324
|
+
return Re(JSON.parse(r));
|
|
322
325
|
} catch (e) {
|
|
323
|
-
throw
|
|
326
|
+
throw c(e), Error("Unsupported response content type and body is not JSON");
|
|
324
327
|
}
|
|
325
328
|
}
|
|
326
|
-
function
|
|
329
|
+
function He(e) {
|
|
327
330
|
if (typeof e != "string") return null;
|
|
328
331
|
let t = e.trim();
|
|
329
332
|
return t.length ? t : null;
|
|
330
333
|
}
|
|
331
|
-
function
|
|
332
|
-
let n =
|
|
334
|
+
function q(e, t) {
|
|
335
|
+
let n = He(t);
|
|
333
336
|
!n || e.includes(n) || e.push(n);
|
|
334
337
|
}
|
|
335
|
-
function
|
|
338
|
+
function Ue(e) {
|
|
336
339
|
let t = [], n = e.error;
|
|
337
|
-
typeof n == "string" &&
|
|
338
|
-
let r =
|
|
339
|
-
return r && (
|
|
340
|
+
typeof n == "string" && q(t, n);
|
|
341
|
+
let r = l(n);
|
|
342
|
+
return r && (q(t, r.code), q(t, l(r.message)?.value ?? r.message)), q(t, e.details), q(t, e.message), t;
|
|
340
343
|
}
|
|
341
|
-
async function
|
|
344
|
+
async function We(e, t) {
|
|
342
345
|
let n = (e.headers.get("Content-Type") || "").toLowerCase();
|
|
343
346
|
try {
|
|
344
347
|
if (n.includes("application/json") || n.includes("application/odata+json")) {
|
|
345
|
-
let t =
|
|
348
|
+
let t = Ue(await e.json());
|
|
346
349
|
if (t.length) return Error(t.join(" | "));
|
|
347
350
|
} else {
|
|
348
|
-
let r =
|
|
351
|
+
let r = He(await e.text());
|
|
349
352
|
if (r) {
|
|
350
|
-
if (
|
|
351
|
-
let n =
|
|
352
|
-
if (
|
|
353
|
+
if (Ie(n, r)) {
|
|
354
|
+
let n = K(r);
|
|
355
|
+
if (F(n)) return new I("Требуется повторная аутентификация", n);
|
|
353
356
|
let i = /* @__PURE__ */ Error("Unexpected HTML response from OData endpoint");
|
|
354
|
-
return
|
|
357
|
+
return Se(i, "fetch.buildHttpError", e, r, t), i;
|
|
355
358
|
}
|
|
356
359
|
return Error(r);
|
|
357
360
|
}
|
|
@@ -359,39 +362,39 @@ async function Ve(e, t) {
|
|
|
359
362
|
} catch {}
|
|
360
363
|
return /* @__PURE__ */ Error(`HTTP error: ${e.status} ${e.statusText}`);
|
|
361
364
|
}
|
|
362
|
-
function
|
|
365
|
+
function Ge(e) {
|
|
363
366
|
return e.type === "opaqueredirect";
|
|
364
367
|
}
|
|
365
|
-
async function
|
|
366
|
-
let r = t.method?.toUpperCase() || "GET", i = new Headers(t.headers), a = !["GET", "HEAD"].includes(r), o =
|
|
367
|
-
if (i.set("sap-language", "ru"), s && (i.set("sap-language", "ru"), i.set("sap-contextid-accept", "header")),
|
|
368
|
-
let t = await
|
|
368
|
+
async function Ke(e, t = {}, n = "odata") {
|
|
369
|
+
let r = t.method?.toUpperCase() || "GET", i = new Headers(t.headers), a = !["GET", "HEAD"].includes(r), o = d(t.body), s = V(e, n), c = H(e, n);
|
|
370
|
+
if (i.set("sap-language", "ru"), s && (i.set("sap-language", "ru"), i.set("sap-contextid-accept", "header")), c && i.set("sap-client", c), a && s) {
|
|
371
|
+
let t = await Fe(e, n, c);
|
|
369
372
|
i.set("x-csrf-token", t);
|
|
370
373
|
}
|
|
371
374
|
i.has("Accept") || i.set("Accept", "application/json"), o && a && !i.has("Content-Type") && i.set("Content-Type", "application/json");
|
|
372
|
-
let
|
|
375
|
+
let l = (n && j[n]) ?? "", u = typeof e == "string" ? e : e.toString(), f = await fetch(l + u, {
|
|
373
376
|
...t,
|
|
374
377
|
headers: i,
|
|
375
378
|
credentials: "include",
|
|
376
379
|
redirect: s ? "manual" : t.redirect
|
|
377
380
|
});
|
|
378
|
-
if (s &&
|
|
381
|
+
if (s && Ge(f)) throw new I("Требуется повторная аутентификация", void 0, l + u);
|
|
379
382
|
if ((f.status === 401 || f.status === 403) && a && s && !t.retried) {
|
|
380
|
-
let r =
|
|
381
|
-
|
|
382
|
-
let a = await
|
|
383
|
-
if (o.set("x-csrf-token", a), f = await fetch(
|
|
383
|
+
let r = Pe(e, n, c);
|
|
384
|
+
L.delete(r.cacheKey), R.delete(r.cacheKey);
|
|
385
|
+
let a = await Fe(e, n, c), o = new Headers(i);
|
|
386
|
+
if (o.set("x-csrf-token", a), f = await fetch(l + u, {
|
|
384
387
|
...t,
|
|
385
388
|
headers: o,
|
|
386
389
|
credentials: "include",
|
|
387
390
|
redirect: "manual",
|
|
388
391
|
retried: !0
|
|
389
|
-
}),
|
|
392
|
+
}), Ge(f)) throw new I("Требуется повторная аутентификация", void 0, l + u);
|
|
390
393
|
}
|
|
391
394
|
return f;
|
|
392
395
|
}
|
|
393
|
-
async function
|
|
394
|
-
if (!e.ok) throw e.status === 0 ? Error("Ошибка сети или CORS. Проверьте подключение и настройки сервера.") : await
|
|
396
|
+
async function qe(e, t, n, r, i) {
|
|
397
|
+
if (!e.ok) throw e.status === 0 ? Error("Ошибка сети или CORS. Проверьте подключение и настройки сервера.") : await We(e, {
|
|
395
398
|
input: t,
|
|
396
399
|
init: n,
|
|
397
400
|
baseUrlType: r,
|
|
@@ -399,31 +402,31 @@ async function K(e, t, n, r, i) {
|
|
|
399
402
|
});
|
|
400
403
|
return e;
|
|
401
404
|
}
|
|
402
|
-
async function
|
|
403
|
-
let r =
|
|
404
|
-
return
|
|
405
|
+
async function Je(e, t = {}, n = "odata") {
|
|
406
|
+
let r = H(e, n);
|
|
407
|
+
return qe(await Ke(e, t, n), e, t, n, r);
|
|
405
408
|
}
|
|
406
|
-
async function
|
|
407
|
-
let r =
|
|
409
|
+
async function Ye(e, t = {}, n = "odata") {
|
|
410
|
+
let r = V(e, n), i = H(e, n), a = () => Je(e, {
|
|
408
411
|
...t,
|
|
409
412
|
ssoRetried: !0
|
|
410
413
|
}, n);
|
|
411
|
-
r && await
|
|
414
|
+
r && await Ne();
|
|
412
415
|
let o;
|
|
413
416
|
try {
|
|
414
|
-
o = await
|
|
417
|
+
o = await Ke(e, t, n);
|
|
415
418
|
} catch (e) {
|
|
416
|
-
if (r && e instanceof
|
|
419
|
+
if (r && e instanceof I && e.recoverable && !t.ssoRetried) o = await W(e, a);
|
|
417
420
|
else throw e;
|
|
418
421
|
}
|
|
419
422
|
try {
|
|
420
|
-
return await
|
|
423
|
+
return await qe(o, e, t, n, i);
|
|
421
424
|
} catch (o) {
|
|
422
|
-
if (r && o instanceof
|
|
425
|
+
if (r && o instanceof I && o.recoverable && !t.ssoRetried) return qe(await W(o, a), e, t, n, i);
|
|
423
426
|
throw o;
|
|
424
427
|
}
|
|
425
428
|
}
|
|
426
|
-
async function
|
|
429
|
+
async function Xe(e, t = {}, n = "odata") {
|
|
427
430
|
let r = new Headers(t.headers);
|
|
428
431
|
r.set("DataServiceVersion", "2.0"), r.set("MaxDataServiceVersion", "2.0");
|
|
429
432
|
let i = {
|
|
@@ -433,27 +436,27 @@ async function Ke(e, t = {}, n = "odata") {
|
|
|
433
436
|
input: e,
|
|
434
437
|
init: t,
|
|
435
438
|
baseUrlType: n,
|
|
436
|
-
sapClient:
|
|
439
|
+
sapClient: H(e, n)
|
|
437
440
|
};
|
|
438
441
|
try {
|
|
439
|
-
return await
|
|
442
|
+
return await Ve(await Ye(e, i, n), a);
|
|
440
443
|
} catch (r) {
|
|
441
|
-
if (
|
|
444
|
+
if (V(e, n) && r instanceof I && r.recoverable && !t.ssoRetried) return W(r, async () => {
|
|
442
445
|
let t = {
|
|
443
446
|
...i,
|
|
444
447
|
ssoRetried: !0
|
|
445
448
|
};
|
|
446
|
-
return
|
|
449
|
+
return Ve(await Je(e, t, n), {
|
|
447
450
|
input: e,
|
|
448
451
|
init: t,
|
|
449
452
|
baseUrlType: n,
|
|
450
|
-
sapClient:
|
|
453
|
+
sapClient: H(e, n)
|
|
451
454
|
});
|
|
452
455
|
});
|
|
453
456
|
throw r;
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
|
-
function
|
|
459
|
+
function Ze(e, t) {
|
|
457
460
|
let n = t.init || {}, r = t.baseUrl, i = t.transform;
|
|
458
461
|
if (t.swCache) {
|
|
459
462
|
let e = new Headers(n.headers);
|
|
@@ -461,24 +464,24 @@ function qe(e, t) {
|
|
|
461
464
|
}
|
|
462
465
|
return async (t) => {
|
|
463
466
|
!n.signal && t?.signal && (n.signal = t.signal);
|
|
464
|
-
let a = await
|
|
467
|
+
let a = await Ye(e, n, r);
|
|
465
468
|
if (typeof i != "function") throw Error("fetchQueryFn requires a transformation function!");
|
|
466
469
|
return await i(a);
|
|
467
470
|
};
|
|
468
471
|
}
|
|
469
472
|
//#endregion
|
|
470
473
|
//#region node_modules/@ryuzaki13/react-foundation-api/dist/chunks/odataFetchFn-D8PGKDZM.js
|
|
471
|
-
var
|
|
472
|
-
function
|
|
474
|
+
var J = ["odata"];
|
|
475
|
+
function Qe(e, t, n) {
|
|
473
476
|
n === void 0 || n === "" || e.set(t, String(n));
|
|
474
477
|
}
|
|
475
|
-
function
|
|
478
|
+
function $e(e, t = {}, n = {}) {
|
|
476
479
|
let [r, i = ""] = e.split("?"), a = new URLSearchParams(i);
|
|
477
480
|
if (t.expression) {
|
|
478
|
-
let e =
|
|
481
|
+
let e = C(t.expression);
|
|
479
482
|
e && a.set("$filter", e);
|
|
480
483
|
}
|
|
481
|
-
t.sorts && a.set("$orderby",
|
|
484
|
+
t.sorts && a.set("$orderby", w(t.sorts)), t.select && a.set("$select", t.select.join(",")), t.expand && a.set("$expand", t.expand.join(",")), Qe(a, "$top", t.top), Qe(a, "$skip", t.skip), Qe(a, "$inlinecount", t.inlinecount);
|
|
482
485
|
let o = r.replace(/\/+$/, ""), s = a.toString(), c = s ? `${o}?${s}` : o, l = n;
|
|
483
486
|
if (t.swCache) {
|
|
484
487
|
let e = new Headers(n.headers);
|
|
@@ -489,133 +492,133 @@ function Je(e, t = {}, n = {}) {
|
|
|
489
492
|
}
|
|
490
493
|
return {
|
|
491
494
|
path: c,
|
|
492
|
-
fullUrl: `${
|
|
495
|
+
fullUrl: `${j[t.baseUrl ?? "odata"]}${c}`,
|
|
493
496
|
baseUrl: t.baseUrl,
|
|
494
497
|
init: l,
|
|
495
498
|
queryString: s
|
|
496
499
|
};
|
|
497
500
|
}
|
|
498
501
|
async function Y(e, t = {}, n = {}) {
|
|
499
|
-
let r =
|
|
500
|
-
return
|
|
502
|
+
let r = $e(e, t, n);
|
|
503
|
+
return Xe(r.path, r.init, t.baseUrl);
|
|
501
504
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
505
|
+
var et = __APP_BUILD_ID__, tt = 1e3 * 60 * 60 * 24;
|
|
506
|
+
function nt(e) {
|
|
504
507
|
if (e) return Array.isArray(e) ? e[0] : e;
|
|
505
508
|
}
|
|
506
|
-
var
|
|
507
|
-
...
|
|
509
|
+
var rt = ({ service: e }) => [
|
|
510
|
+
...J,
|
|
508
511
|
"metadata-version",
|
|
509
512
|
{
|
|
510
513
|
service: e,
|
|
511
|
-
buildId:
|
|
514
|
+
buildId: et
|
|
512
515
|
}
|
|
513
516
|
];
|
|
514
|
-
function
|
|
517
|
+
function it(e) {
|
|
515
518
|
return {
|
|
516
519
|
service: e,
|
|
517
520
|
changedAt: null,
|
|
518
521
|
version: null
|
|
519
522
|
};
|
|
520
523
|
}
|
|
521
|
-
function
|
|
524
|
+
function at(e) {
|
|
522
525
|
return async ({ signal: t }) => {
|
|
523
|
-
let n =
|
|
524
|
-
if (!n) return
|
|
525
|
-
let r =
|
|
526
|
+
let n = k().metadataVersion;
|
|
527
|
+
if (!n) return it(e.service);
|
|
528
|
+
let r = m(nt((await Y(`/${n.service}/${n.target}('${se(e.service)}')`, { baseUrl: A(n.service, n.baseUrl) }, { signal: t })).data)?.lastChanged);
|
|
526
529
|
return {
|
|
527
530
|
service: e.service,
|
|
528
531
|
changedAt: r,
|
|
529
|
-
version: r ?
|
|
532
|
+
version: r ? p(r) : null
|
|
530
533
|
};
|
|
531
534
|
};
|
|
532
535
|
}
|
|
533
|
-
var
|
|
534
|
-
queryKey:
|
|
535
|
-
queryFn:
|
|
536
|
-
meta:
|
|
537
|
-
enabled: !!(e.service &&
|
|
538
|
-
staleTime: e.staleTime ??
|
|
536
|
+
var ot = (e) => g({
|
|
537
|
+
queryKey: rt(e),
|
|
538
|
+
queryFn: at(e),
|
|
539
|
+
meta: y,
|
|
540
|
+
enabled: !!(e.service && k().metadataVersion),
|
|
541
|
+
staleTime: e.staleTime ?? tt,
|
|
539
542
|
gcTime: Infinity
|
|
540
543
|
});
|
|
541
|
-
function
|
|
544
|
+
function st(e, t) {
|
|
542
545
|
return e.invalidateQueries({ predicate: (e) => {
|
|
543
546
|
let [n, r, i] = e.queryKey;
|
|
544
|
-
return n !==
|
|
547
|
+
return n !== J[0] || r !== "metadata" || !i || typeof i != "object" ? !1 : "service" in i && i.service === t;
|
|
545
548
|
} });
|
|
546
549
|
}
|
|
547
|
-
function
|
|
550
|
+
function ct(e, t) {
|
|
548
551
|
return e?.data === void 0 || !t.changedAt ? !1 : t.changedAt.getTime() > e.dataUpdatedAt;
|
|
549
552
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
552
|
-
baseUrl:
|
|
553
|
+
function lt(e) {
|
|
554
|
+
return Ze(`/${e.service}/$metadata`, {
|
|
555
|
+
baseUrl: A(e.service, e.baseUrl),
|
|
553
556
|
init: { headers: {
|
|
554
557
|
Accept: "*/*",
|
|
555
558
|
"Content-Type": "application/xml"
|
|
556
559
|
} },
|
|
557
560
|
transform: async (t) => {
|
|
558
561
|
try {
|
|
559
|
-
return
|
|
562
|
+
return ee(await t.text());
|
|
560
563
|
} catch (t) {
|
|
561
564
|
throw Error(`Сервис ${e.service} содержит необработанную ошибку: ${String(t)}`);
|
|
562
565
|
}
|
|
563
566
|
}
|
|
564
567
|
});
|
|
565
568
|
}
|
|
566
|
-
var X = (e) =>
|
|
569
|
+
var X = (e) => g({
|
|
567
570
|
queryKey: [
|
|
568
|
-
...
|
|
571
|
+
...J,
|
|
569
572
|
"metadata",
|
|
570
573
|
e
|
|
571
574
|
],
|
|
572
|
-
queryFn:
|
|
573
|
-
meta:
|
|
575
|
+
queryFn: lt(e),
|
|
576
|
+
meta: y,
|
|
574
577
|
enabled: !!e.service,
|
|
575
578
|
staleTime: Infinity,
|
|
576
579
|
gcTime: Infinity
|
|
577
580
|
});
|
|
578
|
-
async function
|
|
581
|
+
async function ut(e, t, n) {
|
|
579
582
|
if (!t.service) return;
|
|
580
583
|
let r = X(t).queryKey;
|
|
581
|
-
|
|
584
|
+
ct(e.getQueryState(r), n) && await st(e, t.service);
|
|
582
585
|
}
|
|
583
|
-
function
|
|
584
|
-
let
|
|
586
|
+
function dt(e) {
|
|
587
|
+
let t = v(), n = i(() => ({
|
|
585
588
|
service: e.service,
|
|
586
589
|
baseUrl: e.baseUrl
|
|
587
|
-
}), [e.baseUrl, e.service]), a =
|
|
588
|
-
return
|
|
589
|
-
!e.service || !a.isSuccess ||
|
|
590
|
+
}), [e.baseUrl, e.service]), a = _(ot(i(() => ({ service: e.service }), [e.service]))), o = _(X(n));
|
|
591
|
+
return r(() => {
|
|
592
|
+
!e.service || !a.isSuccess || ut(t, n, a.data);
|
|
590
593
|
}, [
|
|
591
|
-
|
|
594
|
+
n,
|
|
592
595
|
o.dataUpdatedAt,
|
|
593
596
|
e.service,
|
|
594
|
-
|
|
597
|
+
t,
|
|
595
598
|
a.data,
|
|
596
599
|
a.isSuccess
|
|
597
600
|
]), o;
|
|
598
601
|
}
|
|
599
|
-
async function
|
|
602
|
+
async function ft(e, t) {
|
|
600
603
|
let n = { service: e.service };
|
|
601
604
|
try {
|
|
602
|
-
await
|
|
605
|
+
await ut(t, e, await t.fetchQuery(ot(n)));
|
|
603
606
|
} catch {}
|
|
604
607
|
}
|
|
605
|
-
async function
|
|
606
|
-
if (e.service) return await t.fetchQuery(X(e)), await
|
|
608
|
+
async function pt(e, t) {
|
|
609
|
+
if (e.service) return await t.fetchQuery(X(e)), await ft(e, t), t.fetchQuery(X(e));
|
|
607
610
|
}
|
|
608
611
|
function Z(e) {
|
|
609
612
|
return "returnType" in e;
|
|
610
613
|
}
|
|
611
|
-
function
|
|
614
|
+
function mt(e, t) {
|
|
612
615
|
let n = e?.entities[t], r = e?.functionImports[t];
|
|
613
616
|
if (n && r) throw Error(`Найден конфликт metadata: '${t}' существует и как Entity, и как FunctionImport`);
|
|
614
617
|
if (n) return n;
|
|
615
618
|
if (r) return r;
|
|
616
619
|
throw Error(`OData target '${t}' не был загружен`);
|
|
617
620
|
}
|
|
618
|
-
function
|
|
621
|
+
function ht(e, t, n) {
|
|
619
622
|
if (Z(e)) {
|
|
620
623
|
if (t !== "fi") throw Error(`OData operation '${t}' несовместима с FunctionImport '${e.name}'. Для FunctionImport используйте method: 'fi'.`);
|
|
621
624
|
return;
|
|
@@ -623,7 +626,7 @@ function ut(e, t, n) {
|
|
|
623
626
|
if (t === "fi") throw Error(`OData operation 'fi' несовместима с Entity '${n.target}'. Для Entity используйте один из методов: 'create', 'update', 'delete', 'read', 'query', 'fm'.`);
|
|
624
627
|
if (t === "read" && e.result) throw Error(`OData operation '${t}' несовместима с parameterized query entity '${n.target}'. Для target с result='${e.result}' используйте method: 'query'.`);
|
|
625
628
|
}
|
|
626
|
-
function
|
|
629
|
+
function gt(e, t) {
|
|
627
630
|
if (t === "create") return "POST";
|
|
628
631
|
if (t === "update") return "PUT";
|
|
629
632
|
if (t === "delete") return "DELETE";
|
|
@@ -634,19 +637,19 @@ function dt(e, t) {
|
|
|
634
637
|
}
|
|
635
638
|
throw Error(`OData operation '${t}' не поддерживается для target '${"title" in e ? e.title : "unknown"}'.`);
|
|
636
639
|
}
|
|
637
|
-
function
|
|
640
|
+
function _t(e, t) {
|
|
638
641
|
if (e && (t === "create" || t === "update")) return JSON.stringify(e);
|
|
639
642
|
}
|
|
640
|
-
function
|
|
641
|
-
if (Z(e)) return
|
|
643
|
+
function vt(e, t, n, r) {
|
|
644
|
+
if (Z(e)) return S(e, t, n);
|
|
642
645
|
if (r === "fi") throw Error(`OData operation 'fi' несовместима с Entity '${t.target}'.`);
|
|
643
|
-
return
|
|
646
|
+
return b(e, t, n, r);
|
|
644
647
|
}
|
|
645
|
-
function
|
|
648
|
+
function yt(e, t) {
|
|
646
649
|
if (!Z(e)) return e.columns;
|
|
647
650
|
if (e.resultEntity) return t.entities[e.resultEntity]?.columns;
|
|
648
651
|
}
|
|
649
|
-
function
|
|
652
|
+
function bt(e) {
|
|
650
653
|
let t = [];
|
|
651
654
|
for (let n = 0; n < e.length; n += 1) {
|
|
652
655
|
let r = e[n];
|
|
@@ -658,45 +661,45 @@ function ht(e) {
|
|
|
658
661
|
}
|
|
659
662
|
return t;
|
|
660
663
|
}
|
|
661
|
-
function
|
|
664
|
+
function xt(e, t) {
|
|
662
665
|
let n;
|
|
663
666
|
for (let r = 0; r < t.length; r += 1) {
|
|
664
667
|
let i = t[r];
|
|
665
668
|
if (!Object.prototype.hasOwnProperty.call(e, i.id)) continue;
|
|
666
|
-
let a = e[i.id], o =
|
|
669
|
+
let a = e[i.id], o = T(i, a);
|
|
667
670
|
o !== a && (n ||= { ...e }, n[i.id] = o);
|
|
668
671
|
}
|
|
669
672
|
return n ?? e;
|
|
670
673
|
}
|
|
671
|
-
function
|
|
672
|
-
let r =
|
|
674
|
+
function St(e, t, n) {
|
|
675
|
+
let r = yt(t, n);
|
|
673
676
|
if (!r?.length) return e;
|
|
674
|
-
let i =
|
|
677
|
+
let i = bt(r);
|
|
675
678
|
if (Array.isArray(e)) {
|
|
676
679
|
let t;
|
|
677
680
|
for (let n = 0; n < e.length; n += 1) {
|
|
678
681
|
let r = e[n];
|
|
679
|
-
if (!
|
|
680
|
-
let a =
|
|
682
|
+
if (!u(r)) continue;
|
|
683
|
+
let a = xt(r, i);
|
|
681
684
|
a !== r && (t ||= e.slice(), t[n] = a);
|
|
682
685
|
}
|
|
683
686
|
return t ?? e;
|
|
684
687
|
}
|
|
685
|
-
return
|
|
688
|
+
return u(e) ? xt(e, i) : e;
|
|
686
689
|
}
|
|
687
|
-
function
|
|
690
|
+
function Ct(...e) {
|
|
688
691
|
let [t, n] = e, { odata: r, options: i = {}, init: a = {}, autoParse: o, swCache: s } = n, c = "params" in n ? n.params ?? {} : {};
|
|
689
692
|
return async ({ client: e, signal: l }) => {
|
|
690
|
-
let u =
|
|
693
|
+
let u = A(r.service, i.baseUrl), d = await pt({
|
|
691
694
|
service: r.service,
|
|
692
695
|
baseUrl: u
|
|
693
696
|
}, e);
|
|
694
697
|
if (!d) throw Error(`Не удалось загрузить metadata OData-сервиса '${r.service}'`);
|
|
695
|
-
let f =
|
|
696
|
-
|
|
697
|
-
let p = "body" in n ?
|
|
698
|
+
let f = mt(d, r.target);
|
|
699
|
+
ht(f, t, r);
|
|
700
|
+
let p = "body" in n ? _t(n.body, t) : void 0, m = gt(f, t);
|
|
698
701
|
__DEV__ && t === "query" && !("result" in f) && Object.keys(c).length > 0 && console.warn(`OData query для plain entity "${r.service}/${r.target}" получил params, но они будут проигнорированы. Для чтения сущности по ключу используйте odataReadFn.`);
|
|
699
|
-
let h =
|
|
702
|
+
let h = vt(f, r, c, t), g = s ? {
|
|
700
703
|
...i,
|
|
701
704
|
baseUrl: u,
|
|
702
705
|
swCache: s
|
|
@@ -711,34 +714,34 @@ function vt(...e) {
|
|
|
711
714
|
};
|
|
712
715
|
if (t === "query") {
|
|
713
716
|
let e = await Y(h, g, _);
|
|
714
|
-
if (
|
|
715
|
-
let t = o ?
|
|
717
|
+
if (Be(e)) throw Error("OData query не должен возвращать 204 No Content");
|
|
718
|
+
let t = o ? St(e.data, f, d) : e.data;
|
|
716
719
|
return {
|
|
717
720
|
data: n.transform ? n.transform(t, f) : t,
|
|
718
721
|
totalCount: e.totalCount
|
|
719
722
|
};
|
|
720
723
|
}
|
|
721
724
|
let v = await Y(h, g, _);
|
|
722
|
-
if (
|
|
723
|
-
let y = o ?
|
|
725
|
+
if (Be(v)) return { data: v.data };
|
|
726
|
+
let y = o ? St(v.data, f, d) : v.data;
|
|
724
727
|
return {
|
|
725
728
|
data: n.transform ? n.transform(y, f) : y,
|
|
726
729
|
totalCount: v.totalCount
|
|
727
730
|
};
|
|
728
731
|
};
|
|
729
732
|
}
|
|
730
|
-
function
|
|
731
|
-
return
|
|
733
|
+
function wt(e) {
|
|
734
|
+
return Ct("query", e);
|
|
732
735
|
}
|
|
733
736
|
//#endregion
|
|
734
737
|
//#region node_modules/@ryuzaki13/react-foundation-api/dist/odata/index.js
|
|
735
|
-
var
|
|
738
|
+
var Tt = () => [...J, "collection"], Q = ({ service: e, target: t, limitedKeys: n, serverFilter: r }) => [...Tt(), {
|
|
736
739
|
service: e,
|
|
737
740
|
target: t,
|
|
738
741
|
limitedKeys: n,
|
|
739
742
|
serverFilter: r
|
|
740
743
|
}];
|
|
741
|
-
function
|
|
744
|
+
function Et(e) {
|
|
742
745
|
let t = [];
|
|
743
746
|
for (let [n, r] of e.entries()) {
|
|
744
747
|
let e = `${r.odata.service}.${r.odata.target}`;
|
|
@@ -758,7 +761,7 @@ function xt(e) {
|
|
|
758
761
|
}
|
|
759
762
|
return t;
|
|
760
763
|
}
|
|
761
|
-
function
|
|
764
|
+
function Dt(e, t, n) {
|
|
762
765
|
let r = /* @__PURE__ */ new Map();
|
|
763
766
|
for (let [e, n] of Object.entries(t)) r.set(e, new Map(n.map((e, t) => [e.codeKey, t])));
|
|
764
767
|
let i = [...e].map((e, t) => ({
|
|
@@ -778,58 +781,58 @@ function St(e, t, n) {
|
|
|
778
781
|
return n !== void 0 && r !== void 0 ? n - r : n === void 0 ? r === void 0 ? e.index - t.index : 1 : -1;
|
|
779
782
|
}).map(({ item: e }) => e);
|
|
780
783
|
}
|
|
781
|
-
async function
|
|
784
|
+
async function Ot(e) {
|
|
782
785
|
let { url: t, query: n, signal: r } = e;
|
|
783
786
|
try {
|
|
784
787
|
let e = await Y(t, n, { signal: r });
|
|
785
|
-
if (
|
|
788
|
+
if (Be(e)) throw Error("отсутствует тело ответа");
|
|
786
789
|
return { items: e.data.map(({ ID: e, CNT: t, __metadata: n, __Parameters: r, ...i }) => i) };
|
|
787
790
|
} catch (e) {
|
|
788
|
-
return
|
|
791
|
+
return c("Ошибка загрузки справочника:", e), { items: [] };
|
|
789
792
|
}
|
|
790
793
|
}
|
|
791
|
-
var
|
|
792
|
-
...
|
|
794
|
+
var kt = __APP_BUILD_ID__, At = 1e3 * 60 * 60 * 4, jt = 1e3 * 60 * 60 * 24 * 7, Mt = "ttl=forever;name=ref", Nt = "bust=forever;name=ref", Pt = "ttl=4h;name=ref-updates", Ft = () => [
|
|
795
|
+
...J,
|
|
793
796
|
"collection-updates",
|
|
794
|
-
{ buildId:
|
|
797
|
+
{ buildId: kt }
|
|
795
798
|
];
|
|
796
|
-
function
|
|
799
|
+
function It(e) {
|
|
797
800
|
return {
|
|
798
801
|
...e,
|
|
799
|
-
lastChangedAt:
|
|
802
|
+
lastChangedAt: m(e.lastChanged)
|
|
800
803
|
};
|
|
801
804
|
}
|
|
802
|
-
function
|
|
803
|
-
let n = e.map(
|
|
805
|
+
function Lt(e, t) {
|
|
806
|
+
let n = e.map(It);
|
|
804
807
|
return {
|
|
805
808
|
items: n,
|
|
806
809
|
byEntityName: n.reduce((e, t) => (t.entityName && (e[t.entityName] = t), e), {}),
|
|
807
810
|
fetchedAt: t,
|
|
808
|
-
coverageStartedAt: t -
|
|
811
|
+
coverageStartedAt: t - jt
|
|
809
812
|
};
|
|
810
813
|
}
|
|
811
|
-
function
|
|
814
|
+
function Rt() {
|
|
812
815
|
return async ({ signal: e }) => {
|
|
813
|
-
let t = Date.now(), n =
|
|
814
|
-
return n ?
|
|
815
|
-
baseUrl:
|
|
816
|
-
swCache:
|
|
817
|
-
}, { signal: e })).data, Math.max(t, Date.now())) :
|
|
816
|
+
let t = Date.now(), n = k().collectionUpdates;
|
|
817
|
+
return n ? Lt((await Y(`/${n.service}/${n.target}`, {
|
|
818
|
+
baseUrl: A(n.service, n.baseUrl),
|
|
819
|
+
swCache: Pt
|
|
820
|
+
}, { signal: e })).data, Math.max(t, Date.now())) : Lt([], t);
|
|
818
821
|
};
|
|
819
822
|
}
|
|
820
|
-
var
|
|
821
|
-
queryKey:
|
|
822
|
-
queryFn:
|
|
823
|
-
meta:
|
|
824
|
-
enabled: !!
|
|
825
|
-
staleTime: e.staleTime ??
|
|
823
|
+
var zt = (e = {}) => g({
|
|
824
|
+
queryKey: Ft(),
|
|
825
|
+
queryFn: Rt(),
|
|
826
|
+
meta: y,
|
|
827
|
+
enabled: !!k().collectionUpdates,
|
|
828
|
+
staleTime: e.staleTime ?? At,
|
|
826
829
|
gcTime: Infinity
|
|
827
830
|
});
|
|
828
|
-
function
|
|
829
|
-
return
|
|
831
|
+
function Bt(e = {}) {
|
|
832
|
+
return _(zt(e));
|
|
830
833
|
}
|
|
831
|
-
function
|
|
832
|
-
let { data: t, dataUpdatedAt: n = 0, isLoading: r, isError: i } =
|
|
834
|
+
function Vt(e) {
|
|
835
|
+
let { data: t, dataUpdatedAt: n = 0, isLoading: r, isError: i } = dt({ service: e.service }), a = t?.entities[e.target];
|
|
833
836
|
if (!r && !a && t?.functionImports[e.target]) throw Error(`OData target '${e.target}' является FunctionImport и не может использоваться как сущность`);
|
|
834
837
|
if (i) throw Error(`Ошибка загрузки метаданных сервиса ${e.service}`);
|
|
835
838
|
return {
|
|
@@ -839,17 +842,17 @@ function It(e) {
|
|
|
839
842
|
};
|
|
840
843
|
}
|
|
841
844
|
var $ = "Использование actions недопустимо до окончания загрузки metadata";
|
|
842
|
-
function
|
|
843
|
-
let { metadata: t, metadataUpdatedAt:
|
|
845
|
+
function Ht(e) {
|
|
846
|
+
let { metadata: t, metadataUpdatedAt: n, isLoading: r } = Vt(e);
|
|
844
847
|
return {
|
|
845
848
|
config: e,
|
|
846
849
|
metadata: t,
|
|
847
|
-
metadataUpdatedAt:
|
|
848
|
-
isLoading:
|
|
849
|
-
actions:
|
|
850
|
+
metadataUpdatedAt: n,
|
|
851
|
+
isLoading: r,
|
|
852
|
+
actions: i(() => ({
|
|
850
853
|
getEntityPath: (n = {}) => {
|
|
851
854
|
if (!t) throw Error($);
|
|
852
|
-
return
|
|
855
|
+
return x(t, e, n);
|
|
853
856
|
},
|
|
854
857
|
getKeys: () => {
|
|
855
858
|
if (!t) throw Error($);
|
|
@@ -871,81 +874,81 @@ function Lt(e) {
|
|
|
871
874
|
}), [e, t])
|
|
872
875
|
};
|
|
873
876
|
}
|
|
874
|
-
function
|
|
877
|
+
function Ut(e, t) {
|
|
875
878
|
if (!t) return e;
|
|
876
879
|
let n = e.trim().toLowerCase();
|
|
877
|
-
return n === "off" || n.startsWith("bust=") ? e : n.startsWith("ttl=") ? e.replace(/^\s*ttl=/i, "bust=") :
|
|
880
|
+
return n === "off" || n.startsWith("bust=") ? e : n.startsWith("ttl=") ? e.replace(/^\s*ttl=/i, "bust=") : Nt;
|
|
878
881
|
}
|
|
879
|
-
function
|
|
882
|
+
function Wt(e) {
|
|
880
883
|
return typeof e == "number" && Number.isFinite(e) && e > 0;
|
|
881
884
|
}
|
|
882
|
-
function
|
|
885
|
+
function Gt(e, t) {
|
|
883
886
|
let n = t?.cacheUpdatedAt ?? 0, r = e.update?.lastChangedAt?.getTime();
|
|
884
|
-
return !!(
|
|
887
|
+
return !!(Wt(r) && (!t || !n || r > n) || Wt(e.metadataUpdatedAt) && (!t || !n || e.metadataUpdatedAt > n) || Wt(e.updatesCoverageStartedAt) && (!t || !n || n < e.updatesCoverageStartedAt));
|
|
885
888
|
}
|
|
886
|
-
function
|
|
887
|
-
let { service:
|
|
888
|
-
service:
|
|
889
|
-
target:
|
|
889
|
+
function Kt(e) {
|
|
890
|
+
let { service: t, target: n, limitedKeys: a, excludeEmpty: o, sortByCode: s, serverFilter: c, clientFilter: l, swCache: u = Mt } = e, d = v(), { actions: f, metadata: p, metadataUpdatedAt: m, isLoading: h } = Ht(e), g = Bt(), b = i(() => Q({
|
|
891
|
+
service: t,
|
|
892
|
+
target: n,
|
|
890
893
|
limitedKeys: a,
|
|
891
894
|
serverFilter: c
|
|
892
895
|
}), [
|
|
893
|
-
|
|
894
|
-
|
|
896
|
+
t,
|
|
897
|
+
n,
|
|
895
898
|
a,
|
|
896
899
|
c
|
|
897
|
-
]), x = d.getQueryData(b), S =
|
|
900
|
+
]), x = d.getQueryData(b), S = g.data?.byEntityName[n], C = Gt({
|
|
898
901
|
update: S,
|
|
899
|
-
metadataUpdatedAt:
|
|
900
|
-
updatesCoverageStartedAt:
|
|
901
|
-
}, x), w =
|
|
902
|
-
return
|
|
902
|
+
metadataUpdatedAt: m,
|
|
903
|
+
updatesCoverageStartedAt: g.data?.coverageStartedAt
|
|
904
|
+
}, x), w = Ut(u, C), T = g.isError || g.isSuccess && !g.isFetching;
|
|
905
|
+
return r(() => {
|
|
903
906
|
!x || !C || d.invalidateQueries({ queryKey: b });
|
|
904
907
|
}, [
|
|
905
908
|
x,
|
|
906
909
|
d,
|
|
907
910
|
b,
|
|
908
911
|
C
|
|
909
|
-
]),
|
|
912
|
+
]), _({
|
|
910
913
|
queryKey: b,
|
|
911
914
|
queryFn: async ({ signal: e }) => {
|
|
912
|
-
let
|
|
915
|
+
let r = Date.now(), i = a ? [...a] : f.getKeys(), u = f.getKeyPairs(), d = f.getKeyPairsMap();
|
|
913
916
|
if (a) for (let e of a) {
|
|
914
917
|
let t = d[e];
|
|
915
|
-
t && !
|
|
918
|
+
t && !i.includes(t) && i.push(t);
|
|
916
919
|
}
|
|
917
|
-
let { items: p } = await
|
|
918
|
-
url: `/${
|
|
920
|
+
let { items: p } = await Ot({
|
|
921
|
+
url: `/${t}/${n}`,
|
|
919
922
|
query: {
|
|
920
|
-
select:
|
|
923
|
+
select: i,
|
|
921
924
|
expression: c,
|
|
922
925
|
swCache: w
|
|
923
926
|
},
|
|
924
927
|
signal: e
|
|
925
|
-
}),
|
|
926
|
-
l && (
|
|
927
|
-
let
|
|
928
|
+
}), h = p;
|
|
929
|
+
l && (h = p.filter(l));
|
|
930
|
+
let g = te(h, u, o, s), _ = u.map((e) => ({
|
|
928
931
|
codeKey: e.codeKey,
|
|
929
|
-
count:
|
|
932
|
+
count: g[e.codeKey].length
|
|
930
933
|
})).sort((e, t) => e.count - t.count);
|
|
931
934
|
return {
|
|
932
|
-
items:
|
|
935
|
+
items: h,
|
|
933
936
|
keyPairs: u,
|
|
934
937
|
keyPairsMap: d,
|
|
935
|
-
separated:
|
|
936
|
-
chain:
|
|
937
|
-
count:
|
|
938
|
-
cacheUpdatedAt: Math.max(
|
|
938
|
+
separated: g,
|
|
939
|
+
chain: _,
|
|
940
|
+
count: h.length,
|
|
941
|
+
cacheUpdatedAt: Math.max(r, Date.now(), S?.lastChangedAt?.getTime() ?? 0, m)
|
|
939
942
|
};
|
|
940
943
|
},
|
|
941
|
-
enabled: !!(!
|
|
942
|
-
meta:
|
|
944
|
+
enabled: !!(!h && p && t && n && T),
|
|
945
|
+
meta: y,
|
|
943
946
|
staleTime: 1e3 * 60 * 60 * 2,
|
|
944
947
|
gcTime: 1e3 * 60 * 60 * 1
|
|
945
948
|
});
|
|
946
949
|
}
|
|
947
|
-
function
|
|
948
|
-
let { codeKey: s, maxVisibleItems: c } =
|
|
950
|
+
function qt({ odata: e, model: t, pageSize: r = 50 }) {
|
|
951
|
+
let { codeKey: s, maxVisibleItems: c } = t, { data: l, isLoading: u, isError: d, refetch: f } = Kt(e), p = l?.keyPairsMap[s] ?? "", m = v(), [h, g] = o(), _ = a(/* @__PURE__ */ new Map()), { itemsMap: y, separatedItems: b, orderedKeys: x } = i(() => {
|
|
949
952
|
let e = /* @__PURE__ */ new Map(), t = [], n = [];
|
|
950
953
|
if (l && l.separated[s]) {
|
|
951
954
|
n = l.separated[s];
|
|
@@ -959,7 +962,7 @@ function Ht({ odata: t, model: a, pageSize: o = 50 }) {
|
|
|
959
962
|
separatedItems: n,
|
|
960
963
|
orderedKeys: t
|
|
961
964
|
};
|
|
962
|
-
}, [l, s]), S =
|
|
965
|
+
}, [l, s]), S = n((e) => {
|
|
963
966
|
let t = l?.separated[s];
|
|
964
967
|
if (!t) return /* @__PURE__ */ new Map();
|
|
965
968
|
let n = /* @__PURE__ */ new Map();
|
|
@@ -971,21 +974,21 @@ function Ht({ odata: t, model: a, pageSize: o = 50 }) {
|
|
|
971
974
|
}
|
|
972
975
|
}
|
|
973
976
|
return n;
|
|
974
|
-
}, [l, s]), C =
|
|
975
|
-
|
|
977
|
+
}, [l, s]), C = n((e) => {
|
|
978
|
+
g(() => {
|
|
976
979
|
if (e?.length) return new Set(e.map((e) => e[s]));
|
|
977
980
|
});
|
|
978
|
-
}, [s]),
|
|
981
|
+
}, [s]), w = n((e, t) => {
|
|
979
982
|
if (!x.length) return [];
|
|
980
983
|
let n = c, r = /* @__PURE__ */ new Set(), i = [];
|
|
981
984
|
if (t?.length) for (let e = 0; e < t.length; e++) r.add(t[e][s]);
|
|
982
|
-
let a = 0, o =
|
|
985
|
+
let a = 0, o = h && h.size > 0;
|
|
983
986
|
for (let t of x) {
|
|
984
987
|
if (a >= n) break;
|
|
985
988
|
let c = y.get(t);
|
|
986
989
|
if (!c || r.size > 0 && r.has(t)) continue;
|
|
987
990
|
let l = c[s];
|
|
988
|
-
o && !
|
|
991
|
+
o && !h.has(l) || e && !e(l, c[p]) || (i.push(c), a++);
|
|
989
992
|
}
|
|
990
993
|
return i;
|
|
991
994
|
}, [
|
|
@@ -993,76 +996,76 @@ function Ht({ odata: t, model: a, pageSize: o = 50 }) {
|
|
|
993
996
|
c,
|
|
994
997
|
s,
|
|
995
998
|
y,
|
|
996
|
-
|
|
999
|
+
h,
|
|
997
1000
|
p
|
|
998
|
-
]),
|
|
999
|
-
let t = l?.separated[s] || [], n = e *
|
|
1000
|
-
return t.slice(n,
|
|
1001
|
+
]), T = n((e) => {
|
|
1002
|
+
let t = l?.separated[s] || [], n = e * r, i = n + r;
|
|
1003
|
+
return t.slice(n, i);
|
|
1001
1004
|
}, [
|
|
1002
1005
|
l,
|
|
1003
|
-
|
|
1006
|
+
r,
|
|
1004
1007
|
s
|
|
1005
|
-
]),
|
|
1008
|
+
]), ee = n((e, t) => {
|
|
1006
1009
|
if (!l) return [];
|
|
1007
1010
|
let n = new Set(t);
|
|
1008
1011
|
return l.items.filter((t) => n.has(t[e]));
|
|
1009
|
-
}, [l]), te =
|
|
1010
|
-
|
|
1012
|
+
}, [l]), te = n((e, t, n = 200) => {
|
|
1013
|
+
_.current.has(e) && clearTimeout(_.current.get(e));
|
|
1011
1014
|
let r = setTimeout(t, n);
|
|
1012
|
-
|
|
1013
|
-
}, []),
|
|
1014
|
-
for (let e of
|
|
1015
|
-
|
|
1015
|
+
_.current.set(e, r);
|
|
1016
|
+
}, []), E = n(() => {
|
|
1017
|
+
for (let e of _.current.values()) clearTimeout(e);
|
|
1018
|
+
_.current.clear();
|
|
1016
1019
|
}, []);
|
|
1017
|
-
return
|
|
1018
|
-
|
|
1019
|
-
}, [
|
|
1020
|
+
return i(() => () => {
|
|
1021
|
+
E();
|
|
1022
|
+
}, [E]), {
|
|
1020
1023
|
data: l,
|
|
1021
1024
|
isLoading: u,
|
|
1022
1025
|
isError: d,
|
|
1023
1026
|
codeKey: s,
|
|
1024
1027
|
textKey: p,
|
|
1025
|
-
getItems:
|
|
1026
|
-
findSourceItemsByKeys:
|
|
1028
|
+
getItems: w,
|
|
1029
|
+
findSourceItemsByKeys: ee,
|
|
1027
1030
|
setFilteredItems: C,
|
|
1028
|
-
getPage:
|
|
1031
|
+
getPage: T,
|
|
1029
1032
|
buildSearchIndex: S,
|
|
1030
1033
|
debounce: te,
|
|
1031
1034
|
itemsMap: y,
|
|
1032
1035
|
separatedItems: b,
|
|
1033
1036
|
orderedKeys: x,
|
|
1034
1037
|
refetch: f,
|
|
1035
|
-
invalidate: () => m.invalidateQueries({ queryKey: Q(
|
|
1038
|
+
invalidate: () => m.invalidateQueries({ queryKey: Q(e) }),
|
|
1036
1039
|
totalCount: l?.separated[s]?.length || 0,
|
|
1037
|
-
pageSize:
|
|
1040
|
+
pageSize: r
|
|
1038
1041
|
};
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let
|
|
1042
|
-
return
|
|
1043
|
-
function
|
|
1044
|
-
let
|
|
1045
|
-
for (let
|
|
1046
|
-
let e = Q(
|
|
1047
|
-
i?.chain && (
|
|
1043
|
+
function Jt(e) {
|
|
1044
|
+
let t = v(), [n, a] = o({}), s = i(() => e.map((e) => Q(e)), [e]);
|
|
1045
|
+
return r(() => {
|
|
1046
|
+
function n() {
|
|
1047
|
+
let n = {};
|
|
1048
|
+
for (let r of e) {
|
|
1049
|
+
let e = Q(r), i = t.getQueryData(e);
|
|
1050
|
+
i?.chain && (n[`${r.service}.${r.target}`] = i.chain);
|
|
1048
1051
|
}
|
|
1049
|
-
|
|
1052
|
+
a((e) => Object.keys(e).length === Object.keys(n).length && Object.entries(n).every(([t, n]) => e[t] === n) ? e : n);
|
|
1050
1053
|
}
|
|
1051
|
-
return
|
|
1054
|
+
return n(), t.getQueryCache().subscribe((e) => {
|
|
1052
1055
|
if (e?.query) {
|
|
1053
|
-
let
|
|
1054
|
-
s.some((e) => JSON.stringify(e) === JSON.stringify(
|
|
1056
|
+
let t = e.query;
|
|
1057
|
+
s.some((e) => JSON.stringify(e) === JSON.stringify(t.queryKey)) && n();
|
|
1055
1058
|
}
|
|
1056
1059
|
});
|
|
1057
1060
|
}, [
|
|
1058
1061
|
e,
|
|
1059
|
-
|
|
1062
|
+
t,
|
|
1060
1063
|
s
|
|
1061
|
-
]),
|
|
1064
|
+
]), n;
|
|
1062
1065
|
}
|
|
1063
|
-
function
|
|
1064
|
-
let [t] =
|
|
1065
|
-
let t =
|
|
1066
|
+
function Yt(e) {
|
|
1067
|
+
let [t] = o(() => {
|
|
1068
|
+
let t = E.getState(), { codeKey: n, maxVisibleItems: r = t.defaultMaxVisibleItems, minSearchCodeLength: i = t.defaultMinSearchCodeLength, minSearchTextLength: a = t.defaultMinSearchTextLength, searchDebounceDelay: o = t.defaultSearchDebounceDelay } = e;
|
|
1066
1069
|
return {
|
|
1067
1070
|
codeKey: n,
|
|
1068
1071
|
maxVisibleItems: r,
|
|
@@ -1073,37 +1076,57 @@ function Wt(e) {
|
|
|
1073
1076
|
});
|
|
1074
1077
|
return t;
|
|
1075
1078
|
}
|
|
1076
|
-
function
|
|
1079
|
+
function Xt(e, t) {
|
|
1077
1080
|
let n = {}, r = (e) => {
|
|
1078
1081
|
for (let i of e) {
|
|
1079
1082
|
if ("columns" in i && Array.isArray(i.columns) && i.columns.length > 0) {
|
|
1080
1083
|
r(i.columns);
|
|
1081
1084
|
continue;
|
|
1082
1085
|
}
|
|
1083
|
-
let e =
|
|
1086
|
+
let e = ae(i);
|
|
1084
1087
|
!e || !(e in t) || (n[e] = t[e]);
|
|
1085
1088
|
}
|
|
1086
1089
|
};
|
|
1087
1090
|
return r(e), n;
|
|
1088
1091
|
}
|
|
1089
|
-
function
|
|
1090
|
-
let { metadata: t, isLoading:
|
|
1092
|
+
function Zt(e) {
|
|
1093
|
+
let { metadata: t, isLoading: n } = Vt(e);
|
|
1091
1094
|
return {
|
|
1092
|
-
columns:
|
|
1095
|
+
columns: i(() => t ? e.mode === "build" ? re(t.columns, {
|
|
1093
1096
|
resolveHeader: e.resolveHeader,
|
|
1094
1097
|
resolveFormatting: e.resolveFormatting
|
|
1095
|
-
}) :
|
|
1096
|
-
defaultColumnVisibility:
|
|
1098
|
+
}) : ie(e.columns, t.columns) : e.mode === "build" ? [] : [...e.columns], [e, t]),
|
|
1099
|
+
defaultColumnVisibility: i(() => {
|
|
1097
1100
|
if (!t) return;
|
|
1098
|
-
if (e.mode === "build") return
|
|
1099
|
-
let n =
|
|
1100
|
-
return
|
|
1101
|
+
if (e.mode === "build") return ne(t.columns, { resolveVisible: e.resolveVisible });
|
|
1102
|
+
let n = ne(t.columns);
|
|
1103
|
+
return Xt(e.columns, n);
|
|
1101
1104
|
}, [e, t]),
|
|
1102
1105
|
metadata: t,
|
|
1103
|
-
isLoading:
|
|
1106
|
+
isLoading: n
|
|
1104
1107
|
};
|
|
1105
1108
|
}
|
|
1106
1109
|
//#endregion
|
|
1107
|
-
|
|
1110
|
+
//#region src/select/SelectOptionContent.tsx
|
|
1111
|
+
function Qt({ label: n, code: r, highlight: i }) {
|
|
1112
|
+
return /* @__PURE__ */ oe("div", {
|
|
1113
|
+
className: t.uiOptionBase,
|
|
1114
|
+
children: [/* @__PURE__ */ D("div", {
|
|
1115
|
+
className: s(t.uiOptionText, "flexEllipsis"),
|
|
1116
|
+
children: /* @__PURE__ */ D(e, {
|
|
1117
|
+
text: n,
|
|
1118
|
+
highlight: i
|
|
1119
|
+
})
|
|
1120
|
+
}), r && /* @__PURE__ */ D("div", {
|
|
1121
|
+
className: t.uiOptionCode,
|
|
1122
|
+
children: /* @__PURE__ */ D(e, {
|
|
1123
|
+
text: r,
|
|
1124
|
+
highlight: i
|
|
1125
|
+
})
|
|
1126
|
+
})]
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
//#endregion
|
|
1130
|
+
export { Dt as a, wt as c, Et as i, Zt as n, Yt as o, Jt as r, qt as s, Qt as t };
|
|
1108
1131
|
|
|
1109
|
-
//# sourceMappingURL=
|
|
1132
|
+
//# sourceMappingURL=SelectOptionContent-lfEtHXfO.js.map
|