@astral/ui 4.4.1 → 4.6.0
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/components/DataGrid/Head/Head.js +5 -4
- package/components/DataGrid/HeadCell/styles.js +5 -0
- package/components/DataGrid/types.d.ts +4 -0
- package/components/DataGridColumnHintIcon/DataGridColumnHintIcon.d.ts +4 -0
- package/components/DataGridColumnHintIcon/DataGridColumnHintIcon.js +6 -0
- package/components/DataGridColumnHintIcon/index.d.ts +1 -0
- package/components/DataGridColumnHintIcon/index.js +1 -0
- package/components/HintIcon/HintIcon.d.ts +2 -35
- package/components/HintIcon/HintIcon.js +2 -2
- package/components/HintIcon/Icon/Icon.d.ts +4 -5
- package/components/HintIcon/Icon/Icon.js +2 -1
- package/components/HintIcon/Icon/useLogic/hooks/useIconColor/useIconColor.d.ts +3 -1
- package/components/HintIcon/Icon/useLogic/hooks/useIconColor/useIconColor.js +4 -1
- package/components/HintIcon/Icon/useLogic/useLogic.d.ts +3 -3
- package/components/HintIcon/Icon/useLogic/useLogic.js +5 -2
- package/components/HintIcon/constants.d.ts +3 -0
- package/components/HintIcon/constants.js +4 -0
- package/components/HintIcon/index.d.ts +2 -0
- package/components/HintIcon/index.js +1 -0
- package/components/HintIcon/styles.d.ts +0 -6
- package/components/HintIcon/styles.js +0 -7
- package/components/HintIcon/types.d.ts +38 -0
- package/components/HintIcon/useLogic/useLogic.d.ts +3 -2
- package/components/HintIcon/useLogic/useLogic.js +4 -2
- package/components/Tree/MultipleTreeList/MultipleTreeList.d.ts +2 -2
- package/components/Tree/MultipleTreeList/MultipleTreeList.js +1 -1
- package/components/Tree/MultipleTreeList/TreeItem/TreeItem.d.ts +10 -6
- package/components/Tree/MultipleTreeList/TreeItem/TreeItem.js +3 -2
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.d.ts +3 -2
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.js +24 -18
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsIndeterminate/checkIsIndeterminate.d.ts +2 -1
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsIndeterminate/checkIsIndeterminate.js +2 -1
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.d.ts +2 -1
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.js +2 -1
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.d.ts +5 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.js +22 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/index.d.ts +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/index.js +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.d.ts +5 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.js +6 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/index.d.ts +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/index.js +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/getItemsToAdd.d.ts +5 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/getItemsToAdd.js +14 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/index.d.ts +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/index.js +1 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/index.d.ts +3 -0
- package/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/index.js +3 -0
- package/components/Tree/MultipleTreeList/types.d.ts +8 -4
- package/components/TreeAsyncAutocomplete/types.d.ts +14 -2
- package/components/TreeLikeAsyncAutocomplete/Input/Input.d.ts +3 -0
- package/components/TreeLikeAsyncAutocomplete/Input/Input.js +20 -0
- package/components/TreeLikeAsyncAutocomplete/Input/constants.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/constants.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/styles.d.ts +11 -0
- package/components/TreeLikeAsyncAutocomplete/Input/styles.js +27 -0
- package/components/TreeLikeAsyncAutocomplete/Input/types.d.ts +7 -0
- package/components/TreeLikeAsyncAutocomplete/Input/types.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/useLogic/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/useLogic/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.d.ts +18 -0
- package/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.js +50 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/ErrorMessage.d.ts +13 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/ErrorMessage.js +6 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/styles.d.ts +5 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/styles.js +10 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/Loader.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/Loader.js +4 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/styles.d.ts +5 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/styles.js +8 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/NoData.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/NoData.js +6 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.d.ts +5 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +8 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.d.ts +3 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +33 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/SearchSuggestion.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/SearchSuggestion.js +6 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/styles.d.ts +5 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/styles.js +8 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/constants.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/constants.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +19 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +48 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/types.d.ts +69 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/types.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.d.ts +27 -0
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.js +92 -0
- package/components/TreeLikeAsyncAutocomplete/TreeLikeAsyncAutocomplete.d.ts +3 -0
- package/components/TreeLikeAsyncAutocomplete/TreeLikeAsyncAutocomplete.js +9 -0
- package/components/TreeLikeAsyncAutocomplete/constants.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/constants.js +2 -0
- package/components/TreeLikeAsyncAutocomplete/index.d.ts +2 -0
- package/components/TreeLikeAsyncAutocomplete/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/types.d.ts +69 -0
- package/components/TreeLikeAsyncAutocomplete/types.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.d.ts +626 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.js +82 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/deepMultipleFind.d.ts +3 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/deepMultipleFind.js +12 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/index.js +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/index.d.ts +1 -0
- package/components/TreeLikeAsyncAutocomplete/useLogic/utils/index.js +1 -0
- package/components/TreeLikeList/TreeItem/TreeItem.d.ts +3 -51
- package/components/TreeLikeList/TreeItem/TreeItem.js +3 -2
- package/components/TreeLikeList/TreeItem/types.d.ts +56 -0
- package/components/TreeLikeList/TreeItem/types.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/useLogic.d.ts +4 -3
- package/components/TreeLikeList/TreeItem/useLogic/useLogic.js +22 -13
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItem/addItem.d.ts +6 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItem/addItem.js +8 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItem/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItem/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/addItemsByIds.d.ts +6 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/addItemsByIds.js +15 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.d.ts +2 -1
- package/components/TreeLikeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.js +2 -1
- package/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.d.ts +5 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.js +22 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/getCurrentValueIds.d.ts +5 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/getCurrentValueIds.js +10 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.d.ts +5 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.js +6 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/index.d.ts +7 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/index.js +7 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/removeItem.d.ts +5 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/removeItem.js +10 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/index.d.ts +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/index.js +1 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/removeItemsByIds.d.ts +5 -0
- package/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/removeItemsByIds.js +11 -0
- package/components/TreeLikeList/TreeLikeList.d.ts +2 -3
- package/components/TreeLikeList/TreeLikeList.js +1 -1
- package/components/TreeLikeList/index.d.ts +1 -0
- package/components/TreeLikeList/types.d.ts +8 -4
- package/components/TreeLikeList/useLogic/useLogic.d.ts +3 -3
- package/components/TreeLikeList/useLogic/useLogic.js +3 -2
- package/components/TreeLikeList/useLogic/utils/getChainsId/getChainsId.js +17 -10
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.d.ts +13 -0
- package/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.js +13 -0
- package/hook-form/FormTreeLikeAsyncAutocomplete/index.d.ts +0 -0
- package/hook-form/FormTreeLikeAsyncAutocomplete/index.js +1 -0
- package/node/components/DataGrid/Head/Head.js +4 -3
- package/node/components/DataGrid/HeadCell/styles.js +5 -0
- package/node/components/DataGrid/types.d.ts +4 -0
- package/node/components/DataGridColumnHintIcon/DataGridColumnHintIcon.d.ts +4 -0
- package/node/components/DataGridColumnHintIcon/DataGridColumnHintIcon.js +10 -0
- package/node/components/DataGridColumnHintIcon/index.d.ts +1 -0
- package/node/components/DataGridColumnHintIcon/index.js +17 -0
- package/node/components/HintIcon/HintIcon.d.ts +2 -35
- package/node/components/HintIcon/HintIcon.js +2 -2
- package/node/components/HintIcon/Icon/Icon.d.ts +4 -5
- package/node/components/HintIcon/Icon/Icon.js +2 -1
- package/node/components/HintIcon/Icon/useLogic/hooks/useIconColor/useIconColor.d.ts +3 -1
- package/node/components/HintIcon/Icon/useLogic/hooks/useIconColor/useIconColor.js +4 -1
- package/node/components/HintIcon/Icon/useLogic/useLogic.d.ts +3 -3
- package/node/components/HintIcon/Icon/useLogic/useLogic.js +5 -2
- package/node/components/HintIcon/constants.d.ts +3 -0
- package/node/components/HintIcon/constants.js +5 -1
- package/node/components/HintIcon/index.d.ts +2 -0
- package/node/components/HintIcon/index.js +3 -0
- package/node/components/HintIcon/styles.d.ts +0 -6
- package/node/components/HintIcon/styles.js +1 -8
- package/node/components/HintIcon/types.d.ts +38 -0
- package/node/components/HintIcon/useLogic/useLogic.d.ts +3 -2
- package/node/components/HintIcon/useLogic/useLogic.js +4 -2
- package/node/components/Tree/MultipleTreeList/MultipleTreeList.d.ts +2 -2
- package/node/components/Tree/MultipleTreeList/MultipleTreeList.js +1 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/TreeItem.d.ts +10 -6
- package/node/components/Tree/MultipleTreeList/TreeItem/TreeItem.js +3 -2
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.d.ts +3 -2
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.js +23 -17
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsIndeterminate/checkIsIndeterminate.d.ts +2 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsIndeterminate/checkIsIndeterminate.js +2 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.d.ts +2 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.js +2 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.d.ts +5 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.js +26 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/index.d.ts +1 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/findObjectsByIds/index.js +17 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.d.ts +5 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.js +10 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/index.d.ts +1 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getIdFromValue/index.js +17 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/getItemsToAdd.d.ts +5 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/getItemsToAdd.js +18 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/index.d.ts +1 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/getItemsToAdd/index.js +17 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/index.d.ts +3 -0
- package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/utils/index.js +7 -1
- package/node/components/Tree/MultipleTreeList/types.d.ts +8 -4
- package/node/components/TreeAsyncAutocomplete/types.d.ts +14 -2
- package/node/components/TreeLikeAsyncAutocomplete/Input/Input.d.ts +3 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/Input.js +23 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/constants.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/constants.js +4 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/styles.d.ts +11 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/styles.js +30 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/types.d.ts +7 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/types.js +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/useLogic/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/useLogic/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.d.ts +18 -0
- package/node/components/TreeLikeAsyncAutocomplete/Input/useLogic/useLogic.js +54 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/ErrorMessage.d.ts +13 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/ErrorMessage.js +10 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/styles.d.ts +5 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/ErrorMessage/styles.js +13 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/Loader.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/Loader.js +8 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/styles.d.ts +5 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/Loader/styles.js +11 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/NoData.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/NoData.js +10 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.d.ts +5 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +11 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.d.ts +3 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +37 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/SearchSuggestion.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/SearchSuggestion.js +10 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/styles.d.ts +5 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/styles.js +11 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/constants.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/constants.js +4 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +19 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +51 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/types.d.ts +69 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/types.js +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.d.ts +27 -0
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.js +96 -0
- package/node/components/TreeLikeAsyncAutocomplete/TreeLikeAsyncAutocomplete.d.ts +3 -0
- package/node/components/TreeLikeAsyncAutocomplete/TreeLikeAsyncAutocomplete.js +12 -0
- package/node/components/TreeLikeAsyncAutocomplete/constants.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/constants.js +5 -0
- package/node/components/TreeLikeAsyncAutocomplete/index.d.ts +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/types.d.ts +69 -0
- package/node/components/TreeLikeAsyncAutocomplete/types.js +2 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.d.ts +626 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/useLogic.js +86 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/deepMultipleFind.d.ts +3 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/deepMultipleFind.js +16 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/deepMultipleFind/index.js +17 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/index.d.ts +1 -0
- package/node/components/TreeLikeAsyncAutocomplete/useLogic/utils/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/TreeItem.d.ts +3 -51
- package/node/components/TreeLikeList/TreeItem/TreeItem.js +3 -2
- package/node/components/TreeLikeList/TreeItem/types.d.ts +56 -0
- package/node/components/TreeLikeList/TreeItem/types.js +2 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/useLogic.d.ts +4 -3
- package/node/components/TreeLikeList/TreeItem/useLogic/useLogic.js +21 -12
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItem/addItem.d.ts +6 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItem/addItem.js +12 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItem/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItem/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/addItemsByIds.d.ts +6 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/addItemsByIds.js +19 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/addItemsByIds/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.d.ts +2 -1
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/checkIsSelected/checkIsSelected.js +2 -1
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.d.ts +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/findObjectsByIds.js +26 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/findObjectsByIds/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/getCurrentValueIds.d.ts +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/getCurrentValueIds.js +14 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getCurrentValueIds/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.d.ts +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/getIdFromValue.js +10 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/getIdFromValue/index.js +17 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/index.d.ts +7 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/index.js +15 -1
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/removeItem.d.ts +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItem/removeItem.js +14 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/index.d.ts +1 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/index.js +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/removeItemsByIds.d.ts +5 -0
- package/node/components/TreeLikeList/TreeItem/useLogic/utils/removeItemsByIds/removeItemsByIds.js +15 -0
- package/node/components/TreeLikeList/TreeLikeList.d.ts +2 -3
- package/node/components/TreeLikeList/TreeLikeList.js +1 -1
- package/node/components/TreeLikeList/index.d.ts +1 -0
- package/node/components/TreeLikeList/types.d.ts +8 -4
- package/node/components/TreeLikeList/useLogic/useLogic.d.ts +3 -3
- package/node/components/TreeLikeList/useLogic/useLogic.js +3 -2
- package/node/components/TreeLikeList/useLogic/utils/getChainsId/getChainsId.js +17 -10
- package/node/components/index.d.ts +1 -0
- package/node/components/index.js +4 -2
- package/node/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.d.ts +13 -0
- package/node/hook-form/FormTreeLikeAsyncAutocomplete/FormTreeLikeAsyncAutocomplete.js +17 -0
- package/node/hook-form/FormTreeLikeAsyncAutocomplete/index.d.ts +0 -0
- package/node/hook-form/FormTreeLikeAsyncAutocomplete/index.js +1 -0
- package/package.json +15 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoData = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Typography_1 = require("../../../Typography");
|
|
6
|
+
const styles_1 = require("./styles");
|
|
7
|
+
const NoData = () => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { color: "textSecondary", children: "\u041F\u043E \u0432\u0432\u0435\u0434\u0435\u043D\u043D\u043E\u043C\u0443 \u0437\u0430\u043F\u0440\u043E\u0441\u0443 \u043D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E" }) }));
|
|
9
|
+
};
|
|
10
|
+
exports.NoData = NoData;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NoData';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./NoData"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../../styles");
|
|
5
|
+
exports.Wrapper = styles_1.styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
|
|
10
|
+
height: 100%;
|
|
11
|
+
`;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OptionsModal = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Button_1 = require("../../Button");
|
|
6
|
+
const Dialog_1 = require("../../Dialog");
|
|
7
|
+
const DialogActions_1 = require("../../DialogActions");
|
|
8
|
+
const Paper_1 = require("../../Paper");
|
|
9
|
+
const TreeLikeList_1 = require("../../TreeLikeList");
|
|
10
|
+
const Typography_1 = require("../../Typography");
|
|
11
|
+
const constants_1 = require("./constants");
|
|
12
|
+
const ErrorMessage_1 = require("./ErrorMessage");
|
|
13
|
+
const Loader_1 = require("./Loader");
|
|
14
|
+
const NoData_1 = require("./NoData");
|
|
15
|
+
const SearchSuggestion_1 = require("./SearchSuggestion");
|
|
16
|
+
const styles_1 = require("./styles");
|
|
17
|
+
const useLogic_1 = require("./useLogic");
|
|
18
|
+
const OptionsModal = (props) => {
|
|
19
|
+
const { isNoResult, searchFieldProps, modalProps, treeListProps, cancelButtonProps, confirmButtonProps, handleRetry, isShowUserHint, isShowModalLoader, isShowSearchFieldLoader, isShowSearchSuggestion, isLoadingError, treeProps, loadingErrorMsg, } = (0, useLogic_1.useLogic)(props);
|
|
20
|
+
const renderComponent = () => {
|
|
21
|
+
if (isShowSearchSuggestion) {
|
|
22
|
+
return (0, jsx_runtime_1.jsx)(SearchSuggestion_1.SearchSuggestion, {});
|
|
23
|
+
}
|
|
24
|
+
if (isShowModalLoader) {
|
|
25
|
+
return (0, jsx_runtime_1.jsx)(Loader_1.Loader, {});
|
|
26
|
+
}
|
|
27
|
+
if (isLoadingError) {
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)(ErrorMessage_1.ErrorMessage, { loadingErrorMsg: loadingErrorMsg, onRetry: handleRetry }));
|
|
29
|
+
}
|
|
30
|
+
if (isNoResult) {
|
|
31
|
+
return (0, jsx_runtime_1.jsx)(NoData_1.NoData, {});
|
|
32
|
+
}
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(TreeLikeList_1.TreeLikeList, { ...treeProps, ...treeListProps }));
|
|
34
|
+
};
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: constants_1.SEARCH_FIELD_HELPER_TEXT }), (0, jsx_runtime_1.jsx)(Paper_1.Paper, { variant: "outlined", children: (0, jsx_runtime_1.jsxs)(styles_1.TreeListWrapper, { children: [renderComponent(), isShowUserHint && ((0, jsx_runtime_1.jsx)(styles_1.UserHintWrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
|
|
36
|
+
};
|
|
37
|
+
exports.OptionsModal = OptionsModal;
|
package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/SearchSuggestion/SearchSuggestion.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchSuggestion = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const Typography_1 = require("../../../Typography");
|
|
6
|
+
const styles_1 = require("./styles");
|
|
7
|
+
const SearchSuggestion = () => {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.Wrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { color: "textSecondary", children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u0432\u0432\u043E\u0434\u0438\u0442\u044C \u0434\u043B\u044F \u043F\u043E\u0438\u0441\u043A\u0430" }) }));
|
|
9
|
+
};
|
|
10
|
+
exports.SearchSuggestion = SearchSuggestion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchSuggestion';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SearchSuggestion"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Wrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../../styles");
|
|
5
|
+
exports.Wrapper = styles_1.styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
|
|
10
|
+
height: 100%;
|
|
11
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SEARCH_FIELD_HELPER_TEXT = "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u043E\u0447\u043D\u044B\u0439 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './OptionsModal';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./OptionsModal"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export declare const StyledDialogContent: import("@emotion/styled").StyledComponent<import("../../DialogContent").DialogContentProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
$size: Size;
|
|
7
|
+
}, {}, {}>;
|
|
8
|
+
export declare const TreeListWrapper: import("@emotion/styled").StyledComponent<{
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const StyledSearchField: import("@emotion/styled").StyledComponent<Omit<import("../../SearchField").SearchFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export declare const UserHintWrapper: import("@emotion/styled").StyledComponent<{
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserHintWrapper = exports.StyledSearchField = exports.TreeListWrapper = exports.StyledDialogContent = void 0;
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
|
+
const Dialog_1 = require("../../Dialog");
|
|
6
|
+
const DialogContent_1 = require("../../DialogContent");
|
|
7
|
+
const SearchField_1 = require("../../SearchField");
|
|
8
|
+
const styles_1 = require("../../styles");
|
|
9
|
+
const Tree_1 = require("../../Tree");
|
|
10
|
+
exports.StyledDialogContent = (0, styles_1.styled)(DialogContent_1.DialogContent, {
|
|
11
|
+
shouldForwardProp: (prop) => !['$size'].includes(prop),
|
|
12
|
+
}) `
|
|
13
|
+
display: grid;
|
|
14
|
+
grid-template-columns: 100%;
|
|
15
|
+
grid-template-rows: max-content 1fr;
|
|
16
|
+
gap: ${({ theme }) => theme.spacing(4)};
|
|
17
|
+
|
|
18
|
+
width: ${({ $size }) => Dialog_1.DIALOG_SIZES[$size].minWidth};
|
|
19
|
+
height: ${({ $size }) => ($size === 'md' ? '500px' : `calc(${Dialog_1.DIALOG_SIZES[$size].minWidth} - 50px)`)};
|
|
20
|
+
padding-bottom: ${({ theme }) => theme.spacing(4)};
|
|
21
|
+
|
|
22
|
+
${({ theme }) => theme.breakpoints.down('sm')} {
|
|
23
|
+
width: auto;
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
exports.TreeListWrapper = styles_1.styled.div `
|
|
27
|
+
overflow: auto;
|
|
28
|
+
|
|
29
|
+
height: 100%;
|
|
30
|
+
|
|
31
|
+
& .${Tree_1.treeListClassnames.list} {
|
|
32
|
+
width: auto;
|
|
33
|
+
min-width: max-content;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
exports.StyledSearchField = (0, styles_1.styled)(SearchField_1.SearchField) `
|
|
37
|
+
& .${material_1.formHelperTextClasses.root} {
|
|
38
|
+
display: flex;
|
|
39
|
+
|
|
40
|
+
margin-top: ${({ theme }) => theme.spacing(2)};
|
|
41
|
+
|
|
42
|
+
color: ${({ theme }) => theme.palette.grey[500]};
|
|
43
|
+
}
|
|
44
|
+
`;
|
|
45
|
+
exports.UserHintWrapper = styles_1.styled.div `
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
|
|
50
|
+
height: 36px;
|
|
51
|
+
`;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { DialogProps } from '../../Dialog';
|
|
2
|
+
import type { TreeListProps } from '../../Tree';
|
|
3
|
+
import type { TreeLikeAsyncAutocompleteValue } from '../types';
|
|
4
|
+
export type OptionsModalProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Если true, модальное окно будет открыто
|
|
7
|
+
*/
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Флаг, определяющий отображение состояния загрузки в модальном окне.
|
|
11
|
+
*/
|
|
12
|
+
isLoadingModal: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Функция определения необходимости показа подсказки пользователю
|
|
15
|
+
*/
|
|
16
|
+
onShowUserHint?: (options: TreeLikeAsyncAutocompleteValue) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Опции, которые необходимо отобразить в виде дерева.
|
|
19
|
+
*/
|
|
20
|
+
options: TreeLikeAsyncAutocompleteValue;
|
|
21
|
+
/**
|
|
22
|
+
* Выбранное значения
|
|
23
|
+
*/
|
|
24
|
+
initialValue?: TreeLikeAsyncAutocompleteValue;
|
|
25
|
+
/**
|
|
26
|
+
* Флаг загрузки options
|
|
27
|
+
* Если true, вместо дерева options будет отображен лоадер
|
|
28
|
+
*/
|
|
29
|
+
isLoading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Флаг ошибки загрузки options
|
|
32
|
+
* Если true, вместо дерева options будет отображен плейсхолдер с ошибкой
|
|
33
|
+
*/
|
|
34
|
+
isLoadingError?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Текст ошибки при загрузке данных
|
|
37
|
+
*/
|
|
38
|
+
loadingErrorMsg?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Предназначен для конфигурации древовидного списка
|
|
41
|
+
*/
|
|
42
|
+
treeProps?: Pick<TreeListProps, 'disabledItems' | 'renderItem'>;
|
|
43
|
+
/**
|
|
44
|
+
* Параметры предназначены для конфигурации модального окна
|
|
45
|
+
*/
|
|
46
|
+
dialogProps: Omit<DialogProps, 'open' | 'onChange' | 'disableRestoreFocus'>;
|
|
47
|
+
/**
|
|
48
|
+
* Функция обработки нажатия на кнопку "Повторить запрос"
|
|
49
|
+
*/
|
|
50
|
+
onRetry?: (search?: string) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Функция, которая запускается при выборе item
|
|
53
|
+
*/
|
|
54
|
+
onChange?: (newValue?: TreeLikeAsyncAutocompleteValue) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Функция обработки изменения поля ввода
|
|
57
|
+
*/
|
|
58
|
+
onInputChange: (value: string) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Метаданные опций
|
|
61
|
+
*/
|
|
62
|
+
meta?: {
|
|
63
|
+
isAllDataLoaded?: boolean;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Минимальное количество символов для выполнения запроса
|
|
67
|
+
*/
|
|
68
|
+
minSymbolsToFetch?: number;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useLogic"), exports);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ButtonProps } from '../../../Button';
|
|
2
|
+
import { type DialogProps, type DialogSize } from '../../../Dialog';
|
|
3
|
+
import { type SearchFieldProps } from '../../../SearchField';
|
|
4
|
+
import { type TreeLikeListProps } from '../../../TreeLikeList';
|
|
5
|
+
import type { TreeLikeAsyncAutocompleteValue } from '../../types';
|
|
6
|
+
import type { OptionsModalProps } from '../types';
|
|
7
|
+
type UseLogicParams = OptionsModalProps;
|
|
8
|
+
type UseLogicResult = {
|
|
9
|
+
isNoResult: boolean;
|
|
10
|
+
isShowSearchSuggestion: boolean;
|
|
11
|
+
searchFieldProps: SearchFieldProps;
|
|
12
|
+
modalProps: DialogProps & {
|
|
13
|
+
size: DialogSize;
|
|
14
|
+
};
|
|
15
|
+
treeListProps: TreeLikeListProps<TreeLikeAsyncAutocompleteValue>;
|
|
16
|
+
cancelButtonProps: ButtonProps;
|
|
17
|
+
confirmButtonProps: ButtonProps;
|
|
18
|
+
handleRetry: () => void;
|
|
19
|
+
isShowUserHint?: boolean;
|
|
20
|
+
isShowModalLoader: boolean;
|
|
21
|
+
isShowSearchFieldLoader?: boolean;
|
|
22
|
+
treeProps?: Pick<TreeLikeListProps, 'disabledItems' | 'renderItem'>;
|
|
23
|
+
isLoadingError?: boolean;
|
|
24
|
+
loadingErrorMsg?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const useLogic: ({ isOpen, initialValue, options, onChange, dialogProps, onInputChange, onRetry, meta, onShowUserHint, isLoadingModal, minSymbolsToFetch, isLoading, isLoadingError, loadingErrorMsg, treeProps, }: UseLogicParams) => UseLogicResult;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useLogic = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const array_1 = require("../../../utils/array");
|
|
6
|
+
const useLogic = ({ isOpen, initialValue, options, onChange, dialogProps, onInputChange, onRetry, meta, onShowUserHint, isLoadingModal, minSymbolsToFetch = 0, isLoading, isLoadingError, loadingErrorMsg, treeProps, }) => {
|
|
7
|
+
const [value, setValue] = (0, react_1.useState)(initialValue);
|
|
8
|
+
const [searchValue, setSearchValue] = (0, react_1.useState)();
|
|
9
|
+
const { onClose, ...restDialogProps } = dialogProps;
|
|
10
|
+
(0, react_1.useEffect)(() => {
|
|
11
|
+
setValue(initialValue);
|
|
12
|
+
}, [initialValue]);
|
|
13
|
+
(0, react_1.useEffect)(() => {
|
|
14
|
+
// В поле ввода вставляем выбранное значение или пустую строку для запроса на открытие модального окна
|
|
15
|
+
if (isOpen) {
|
|
16
|
+
setSearchValue('');
|
|
17
|
+
}
|
|
18
|
+
}, [isOpen]);
|
|
19
|
+
const addIsForceExpandedFlag = (item) => {
|
|
20
|
+
if (item.children) {
|
|
21
|
+
return {
|
|
22
|
+
...item,
|
|
23
|
+
options: { ...(item.options || {}), isForceExpanded: true },
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return item;
|
|
27
|
+
};
|
|
28
|
+
// Если строка поиска не пустая и загрузки нет, то раскрываем все дерево в отфильтрованной выдаче
|
|
29
|
+
const optionToRender = (0, react_1.useMemo)(() => searchValue && !isLoading
|
|
30
|
+
? (0, array_1.deepMap)(options, 'children', addIsForceExpandedFlag)
|
|
31
|
+
: options, [options, searchValue, isLoading]);
|
|
32
|
+
const handleChangeSearchField = (event) => {
|
|
33
|
+
setSearchValue(event.target.value);
|
|
34
|
+
onInputChange(event.target.value);
|
|
35
|
+
};
|
|
36
|
+
const handleChange = (newValue) => setValue(newValue);
|
|
37
|
+
const handleClose = (event) => {
|
|
38
|
+
setValue(initialValue);
|
|
39
|
+
onClose?.(event, 'escapeKeyDown');
|
|
40
|
+
};
|
|
41
|
+
const handleCancel = (event) => {
|
|
42
|
+
setValue(initialValue);
|
|
43
|
+
onClose?.(event, 'escapeKeyDown');
|
|
44
|
+
};
|
|
45
|
+
const handleClick = (event) => {
|
|
46
|
+
onChange?.(value);
|
|
47
|
+
onClose?.(event, 'escapeKeyDown');
|
|
48
|
+
};
|
|
49
|
+
const isNoResult = Boolean(searchValue) && !options.length;
|
|
50
|
+
const isDisabledButton = !value || isNoResult;
|
|
51
|
+
const handleRetry = () => {
|
|
52
|
+
onRetry?.(searchValue);
|
|
53
|
+
};
|
|
54
|
+
const isShowUserHint = onShowUserHint?.(options) || meta?.isAllDataLoaded;
|
|
55
|
+
const isShowModalLoader = isLoadingModal && options.length === 0;
|
|
56
|
+
const isShowSearchFieldLoader = (isLoading && !isLoadingModal) ||
|
|
57
|
+
(isLoading && isLoadingModal && options.length > 0);
|
|
58
|
+
const isShowSearchSuggestion = Boolean((!searchValue && minSymbolsToFetch > 0) ||
|
|
59
|
+
(searchValue && searchValue.length < minSymbolsToFetch));
|
|
60
|
+
return {
|
|
61
|
+
isShowModalLoader,
|
|
62
|
+
isShowSearchFieldLoader,
|
|
63
|
+
isNoResult,
|
|
64
|
+
handleRetry,
|
|
65
|
+
isShowUserHint,
|
|
66
|
+
isShowSearchSuggestion,
|
|
67
|
+
treeProps,
|
|
68
|
+
loadingErrorMsg,
|
|
69
|
+
isLoadingError,
|
|
70
|
+
modalProps: {
|
|
71
|
+
onClose: handleClose,
|
|
72
|
+
disableRestoreFocus: true,
|
|
73
|
+
open: isOpen,
|
|
74
|
+
size: 'md',
|
|
75
|
+
...restDialogProps,
|
|
76
|
+
},
|
|
77
|
+
searchFieldProps: {
|
|
78
|
+
value: searchValue,
|
|
79
|
+
onChange: handleChangeSearchField,
|
|
80
|
+
},
|
|
81
|
+
treeListProps: {
|
|
82
|
+
value,
|
|
83
|
+
data: optionToRender,
|
|
84
|
+
onChange: handleChange,
|
|
85
|
+
isObjectMode: true,
|
|
86
|
+
},
|
|
87
|
+
cancelButtonProps: {
|
|
88
|
+
onClick: handleCancel,
|
|
89
|
+
},
|
|
90
|
+
confirmButtonProps: {
|
|
91
|
+
disabled: isDisabledButton,
|
|
92
|
+
onClick: handleClick,
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
exports.useLogic = useLogic;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { TreeLikeAsyncAutocompleteProps } from './types';
|
|
3
|
+
export declare const TreeLikeAsyncAutocomplete: import("react").ForwardRefExoticComponent<Omit<TreeLikeAsyncAutocompleteProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TreeLikeAsyncAutocomplete = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Input_1 = require("./Input");
|
|
7
|
+
const OptionsModal_1 = require("./OptionsModal");
|
|
8
|
+
const useLogic_1 = require("./useLogic");
|
|
9
|
+
exports.TreeLikeAsyncAutocomplete = (0, react_1.forwardRef)((props, forwardedRef) => {
|
|
10
|
+
const { inputProps, optionsModalProps } = (0, useLogic_1.useLogic)(props);
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { ref: forwardedRef, ...inputProps }), (0, jsx_runtime_1.jsx)(OptionsModal_1.OptionsModal, { ...optionsModalProps })] }));
|
|
12
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./TreeLikeAsyncAutocomplete"), exports);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { FetchOptionsResult, TreeAsyncAutocompleteValue } from '../TreeAsyncAutocomplete';
|
|
2
|
+
import type { TreeAutocompleteProps } from '../TreeAutocomplete';
|
|
3
|
+
/**
|
|
4
|
+
* Значение для TreeLikeAsyncAutocomplete - массив элементов дерева
|
|
5
|
+
*/
|
|
6
|
+
export type TreeLikeAsyncAutocompleteValue = TreeAsyncAutocompleteValue[];
|
|
7
|
+
export type { FetchOptionsResult };
|
|
8
|
+
export type TreeLikeAsyncAutocompleteProps = Omit<TreeAutocompleteProps, 'options' | 'isLoading' | 'isLoadingError' | 'value' | 'onChange' | 'filterOptions' | 'trimmed' | 'maxLength' | 'type'> & {
|
|
9
|
+
/**
|
|
10
|
+
* Выбранное значения
|
|
11
|
+
*/
|
|
12
|
+
value?: TreeLikeAsyncAutocompleteValue;
|
|
13
|
+
/**
|
|
14
|
+
* Функция, которая запускается при выборе item
|
|
15
|
+
*/
|
|
16
|
+
onChange?: (newValue?: TreeLikeAsyncAutocompleteValue) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Функция для асинхронной загрузки опций на основе поискового запроса
|
|
19
|
+
* При возникновении ошибки запроса данных, компонент сам ее обработает.
|
|
20
|
+
* Для обработки ошибок вручную используйте параметр `onDataLoadError`
|
|
21
|
+
*
|
|
22
|
+
* @param search - Строка поиска, введенная пользователем. На основе этой
|
|
23
|
+
* строки функция должна вернуть подходящие опции.
|
|
24
|
+
* @param signal - Объект `AbortSignal`, который позволяет отменить запрос,
|
|
25
|
+
* если пользователь изменил поисковый запрос или закрыл компонент.
|
|
26
|
+
*
|
|
27
|
+
* @returns Promise<FetchResult> Промис, который разрешается объектом с массивом узлов дерева и метаданными.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
```typescript
|
|
31
|
+
* const fetchOptions = async (search: string, signal?: AbortSignal) => {
|
|
32
|
+
* const response = await fetch(`/api/options/search?query=${search}`, {
|
|
33
|
+
* signal
|
|
34
|
+
* });
|
|
35
|
+
* const data = await response.json();
|
|
36
|
+
*
|
|
37
|
+
* return {
|
|
38
|
+
* options: data.items,
|
|
39
|
+
* meta: {
|
|
40
|
+
* isAllDataLoaded: data.isAllDataLoaded,
|
|
41
|
+
* }
|
|
42
|
+
* };
|
|
43
|
+
* };
|
|
44
|
+
*
|
|
45
|
+
* <TreeLikeAsyncAutocomplete fetchOptions={fetchOptions} />
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
fetchOptions: (search: string, signal?: AbortSignal) => Promise<FetchOptionsResult>;
|
|
49
|
+
/**
|
|
50
|
+
* Задержка для fetchOptions
|
|
51
|
+
*/
|
|
52
|
+
fetchDelayMs?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Функция для обработки ошибок загрузки данных
|
|
55
|
+
*/
|
|
56
|
+
onDataLoadError?: (error: Error) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Минимальное количество символов для выполнения запроса
|
|
59
|
+
*/
|
|
60
|
+
minSymbolsToFetch?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Функция определения необходимости показа подсказки пользователю
|
|
63
|
+
*/
|
|
64
|
+
onShowUserHint?: (options: TreeLikeAsyncAutocompleteValue) => boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Флаг загрузки данных
|
|
67
|
+
*/
|
|
68
|
+
isLoading?: boolean;
|
|
69
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useLogic';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./useLogic"), exports);
|