@daisforge/ui 1.21.0 → 1.23.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/chunks/AiAgentPopup-CLGSjg5L.cjs +11 -0
- package/chunks/AiAgentPopup-CtMhai1X.mjs +797 -0
- package/chunks/AnalyticalWidget-Bvcm1qpU.cjs +43 -0
- package/chunks/AnalyticalWidget-CRfihris.mjs +352 -0
- package/chunks/ApprovalCenter-D7K7J-QB.cjs +1 -0
- package/chunks/{ApprovalCenter-DLKZP2AO.mjs → ApprovalCenter-dJpI91uN.mjs} +10 -10
- package/chunks/BlockTitle-CcYYHiOo.cjs +1 -0
- package/chunks/{BlockTitle-DsXxImR6.mjs → BlockTitle-DCmM-9AN.mjs} +2 -2
- package/chunks/{Container-DbZwlfIM.mjs → Container-C7PzvUwd.mjs} +1 -1
- package/chunks/{Container-DHnX1sHY.cjs → Container-bVqI3en9.cjs} +1 -1
- package/chunks/{EmptyState-DH1xawxg.cjs → EmptyState-D-bmtvmy.cjs} +1 -1
- package/chunks/{EmptyState-CUCseg9M.mjs → EmptyState-ZsOlvU4d.mjs} +1 -1
- package/chunks/{FiltersActions-CDZSO0MM.mjs → FiltersActions-CS27WxA6.mjs} +38 -36
- package/chunks/FiltersActions-Cie245Po.cjs +1 -0
- package/chunks/{FormSegmentGroup-BYQ6yMK1.cjs → FormSegmentGroup-CNIqOYfm.cjs} +1 -1
- package/chunks/{FormSegmentGroup-C9qYxYT9.mjs → FormSegmentGroup-DwTRM58f.mjs} +1 -1
- package/chunks/{GridDND-DK6SAO8q.cjs → GridDND-Bwmr7gla.cjs} +1 -1
- package/chunks/{GridDND-CqvpXgCY.mjs → GridDND-DC5VoxEY.mjs} +83 -83
- package/chunks/{LeftPanel-C5SsoRJS.mjs → LeftPanel-C10BLKIn.mjs} +1 -1
- package/chunks/{LeftPanel-AyuV7bGS.cjs → LeftPanel-upGFk7jM.cjs} +1 -1
- package/chunks/{ListOfFilters-Bd8CZHDq.mjs → ListOfFilters-CEWrWotU.mjs} +3 -3
- package/chunks/{ListOfFilters-BAPz0OY9.cjs → ListOfFilters-DNi-z1cn.cjs} +1 -1
- package/chunks/MassActions-DJiKcC6r.cjs +1 -0
- package/chunks/{MassActions-D5UwHcNG.mjs → MassActions-NLCRjIHw.mjs} +187 -186
- package/chunks/PageTitle-Bg4PNEXS.cjs +9 -0
- package/chunks/{PageTitle-DkfAiZM4.mjs → PageTitle-CXtNgH-b.mjs} +7 -7
- package/chunks/{SplitView-BqS1Jbo4.mjs → SplitView-BzamJzNc.mjs} +17 -17
- package/chunks/{SplitView-DNmd4sJe.cjs → SplitView-DeJ3V-kq.cjs} +1 -1
- package/chunks/Stories-CNlL0Bcb.cjs +1 -0
- package/chunks/{Stories-BnHxMCEZ.mjs → Stories-UUV0GNEV.mjs} +33 -33
- package/chunks/Table-CZludfzU.cjs +31 -0
- package/chunks/{Table-DYSssxRS.mjs → Table-FrYs56BB.mjs} +2341 -2329
- package/chunks/{TableCanvas-DDNRdQjN.mjs → TableCanvas-CasYPFSm.mjs} +6016 -5720
- package/chunks/TableCanvas-DFne0YHS.cjs +30 -0
- package/chunks/TableGlide-BKSjSgBn.mjs +9131 -0
- package/chunks/TableGlide-C2_HrWEA.cjs +1 -0
- package/chunks/{styles-CJ5y9FKW.mjs → styles-CJPkBVWK.mjs} +6 -6
- package/chunks/{styles-kUWPuNSD.cjs → styles-CpC_FuBg.cjs} +1 -1
- package/chunks/{utils-u1KJ37g3.mjs → utils-Hu77fGGe.mjs} +102 -102
- package/chunks/{utils-ChDQGRjv.cjs → utils-OQNruMpn.cjs} +5 -5
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- package/components/AiAgentPopup/AiAgentInput.d.ts +3 -0
- package/components/AiAgentPopup/AiAgentLeftPanel.d.ts +6 -0
- package/components/AiAgentPopup/AiAgentPopup.constants.d.ts +32 -0
- package/components/AiAgentPopup/AiAgentPopup.d.ts +3 -0
- package/components/AiAgentPopup/AiAgentPopup.styled.d.ts +33 -0
- package/components/AiAgentPopup/AiAgentPopup.types.d.ts +83 -0
- package/components/AiAgentPopup/AiAgentPopup.utils.d.ts +12 -0
- package/components/AiAgentPopup/AiAgentSurface.d.ts +6 -0
- package/components/AiAgentPopup/hooks/useDrag.d.ts +18 -0
- package/components/AiAgentPopup/hooks/useIsDarkTheme.d.ts +1 -0
- package/components/AiAgentPopup/hooks/usePopupPosition.d.ts +20 -0
- package/components/AiAgentPopup/hooks/usePopupResize.d.ts +40 -0
- package/components/AiAgentPopup/hooks/useStateStorage.d.ts +6 -0
- package/components/AiAgentPopup/index.cjs +1 -0
- package/components/AiAgentPopup/index.d.ts +3 -0
- package/components/AiAgentPopup/index.mjs +5 -0
- package/components/AnalyticalWidget/AnalyticalWidget.d.ts +8 -24
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +8 -24
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +2 -2
- package/components/AnalyticalWidget/index.cjs +1 -1
- package/components/AnalyticalWidget/index.mjs +1 -1
- package/components/ApprovalCenter/components/index.cjs +1 -1
- package/components/ApprovalCenter/components/index.mjs +1 -1
- package/components/ApprovalCenter/index.cjs +1 -1
- package/components/ApprovalCenter/index.mjs +1 -1
- package/components/Autocomplete/Autocomplete.d.ts +128 -128
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +2 -2
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +1 -1
- package/components/BlockTitle/index.cjs +1 -1
- package/components/BlockTitle/index.mjs +1 -1
- package/components/BlockTitle/utils/index.cjs +1 -1
- package/components/BlockTitle/utils/index.mjs +1 -1
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +1 -1
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/EmptyState/components/index.cjs +1 -1
- package/components/EmptyState/components/index.mjs +1 -1
- package/components/EmptyState/index.cjs +1 -1
- package/components/EmptyState/index.mjs +1 -1
- package/components/GridDND/index.cjs +1 -1
- package/components/GridDND/index.mjs +1 -1
- package/components/GridDND/utils/index.cjs +1 -1
- package/components/GridDND/utils/index.mjs +1 -1
- package/components/IconButton/index.cjs +1 -1
- package/components/IconButton/index.mjs +1 -1
- package/components/LeftPanel/components/index.cjs +1 -1
- package/components/LeftPanel/components/index.mjs +1 -1
- package/components/LeftPanel/hooks/index.cjs +1 -1
- package/components/LeftPanel/hooks/index.mjs +1 -1
- package/components/LeftPanel/index.cjs +1 -1
- package/components/LeftPanel/index.mjs +1 -1
- package/components/LeftPanel/utils/index.cjs +1 -1
- package/components/LeftPanel/utils/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActions/types.d.ts +1 -0
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +1 -1
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +6 -6
- package/components/PageTitle/index.cjs +1 -1
- package/components/PageTitle/index.mjs +1 -1
- package/components/PageTitle/utils/index.cjs +1 -1
- package/components/PageTitle/utils/index.mjs +1 -1
- package/components/PopoverDF/index.cjs +1 -1
- package/components/PopoverDF/index.mjs +9 -9
- package/components/PopoverDF/styled.d.ts +1 -23
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +118 -143
- package/components/SplitView/index.cjs +1 -1
- package/components/SplitView/index.mjs +1 -1
- package/components/SplitView/utils/index.cjs +1 -1
- package/components/SplitView/utils/index.mjs +1 -1
- package/components/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/popover.d.ts +1 -23
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-searching/styled.d.ts +128 -128
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/types/table-config.type.d.ts +1 -0
- package/components/Table/types/utils.type.d.ts +1 -1
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/TableGlideInstance.d.ts +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +6 -6
- package/components/TableCanvas/TableGlideInstance/reexports-for-external.d.ts +4 -1
- package/components/TableCanvas/TableGlideInstance/type.d.ts +4 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/contexts.d.ts +8 -2
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +13 -13
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +2 -2
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +2 -2
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +4 -4
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +3 -3
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +6 -6
- package/components/TableCanvas/feature-edit/types.d.ts +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +4 -4
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +3 -3
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +4 -4
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +6 -6
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +2 -2
- package/components/TableCanvas/feature-pagination/TablePagination.d.ts +2 -0
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +3 -3
- package/components/TableCanvas/feature-popover-table/components/styled.d.ts +1 -23
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +3 -3
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/compatibility.d.ts +8 -0
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.d.ts +2 -3
- package/components/TableCanvas/feature-right-sidebar/index.mjs +3 -3
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +7 -7
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +4 -4
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +10 -10
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/styled.d.ts +128 -128
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/types.d.ts +1 -0
- package/components/TableCanvas/feature-select-row/useSelectRow.d.ts +1 -0
- package/components/TableCanvas/feature-sidebar/constants.d.ts +7 -0
- package/components/TableCanvas/feature-sidebar/getCustomSidebarTabs.d.ts +4 -0
- package/components/TableCanvas/feature-sidebar/index.cjs +1 -0
- package/components/TableCanvas/feature-sidebar/index.d.ts +1 -0
- package/components/TableCanvas/feature-sidebar/index.mjs +4 -0
- package/components/TableCanvas/feature-sidebar/ui/BottomSheet.d.ts +6 -0
- package/components/TableCanvas/feature-sidebar/ui/BottomSheet.styled.d.ts +6 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarContentLayout.d.ts +1 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/SidebarTabs.d.ts +2 -1
- package/components/TableCanvas/feature-sidebar/ui/TableSidebar.d.ts +16 -0
- package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/styled.d.ts +5 -2
- package/components/TableCanvas/feature-sidebar/useSidebarTabsState.d.ts +14 -0
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-sticky/index.cjs +1 -0
- package/components/TableCanvas/feature-sticky/index.d.ts +3 -0
- package/components/TableCanvas/feature-sticky/index.mjs +5 -0
- package/components/TableCanvas/feature-sticky/types.d.ts +2 -0
- package/components/TableCanvas/feature-sticky/useStickyColumnIndexes.d.ts +8 -0
- package/components/TableCanvas/feature-sticky/useStickyRowIndexes.d.ts +3 -0
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +2 -2
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +4 -4
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.d.ts +2 -1
- package/components/TableCanvas/index.mjs +43 -41
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/renders/renderEditCell.d.ts +1 -1
- package/components/TableCanvas/styles/classNames.d.ts +1 -0
- package/components/TableCanvas/styles/getReservedTableHeight.d.ts +18 -0
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +10 -10
- package/components/TableCanvas/styles/styles.constants.d.ts +1 -1
- package/components/TableCanvas/styles/styles.d.ts +2 -5
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +4 -4
- package/components/TableCanvas/table-hooks/useInlineStyle.d.ts +2 -1
- package/components/TableCanvas/table-hooks/useLeftSidebarValues.d.ts +7 -0
- package/components/TableCanvas/table-hooks/useSidebarOpenState.d.ts +11 -0
- package/components/TableCanvas/table-hooks/useSidebarValues.d.ts +1 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +2 -2
- package/components/TableCanvas/types/table-config.type.d.ts +20 -1
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +2 -2
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/control-block.constants.d.ts +6 -0
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +5 -5
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/types.d.ts +1 -0
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +5 -5
- package/components/TableCanvas/widgets/mass-actions/MassActions.d.ts +2 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsCanvasWidth.d.ts +1 -0
- package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsCompression.d.ts +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/useMassActionsSidebar.d.ts +4 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/widgets/table-or-card-UI.d.ts +6 -3
- package/components/TableContract/index.cjs +1 -1
- package/components/TableContract/index.mjs +2 -2
- package/components/TableGlide/TableGlide.d.ts +1 -1
- package/components/TableGlide/cellRenderer.d.ts +2 -1
- package/components/TableGlide/constants.d.ts +3 -3
- package/components/TableGlide/content-tokens.generated.d.ts +612 -0
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/hooks/selection/useBaseHighlightRegions.d.ts +2 -1
- package/components/TableGlide/hooks/selection/useColoringLayers.d.ts +2 -3
- package/components/TableGlide/hooks/selection/useColumnRowHighlightRegions.d.ts +1 -4
- package/components/TableGlide/hooks/selection/useSelectionGeometry.d.ts +3 -1
- package/components/TableGlide/hooks/useErrorCellRanges.d.ts +1 -2
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +93 -90
- package/components/TableGlide/lib/canvas/cells/CellCanvasRoot.d.ts +2 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +4 -4
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +16 -16
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +4 -4
- package/components/TableGlide/lib/canvas/cells/renderer/types.d.ts +4 -2
- package/components/TableGlide/lib/canvas/cells/types.d.ts +3 -1
- package/components/TableGlide/lib/canvas/components/index.d.ts +31 -4
- package/components/TableGlide/lib/canvas/core/CanvasImageResources.d.ts +7 -0
- package/components/TableGlide/lib/canvas/core/CanvasImageTransitions.d.ts +11 -0
- package/components/TableGlide/lib/canvas/core/DrawBatcher.d.ts +5 -0
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +4 -4
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.d.ts +7 -7
- package/components/TableGlide/lib/canvas/index.mjs +75 -72
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/CanvasAvatar.d.ts +58 -0
- package/components/TableGlide/lib/canvas/primitives/CanvasAvatarGroup.d.ts +45 -0
- package/components/TableGlide/lib/canvas/primitives/CanvasImage.d.ts +17 -0
- package/components/TableGlide/lib/canvas/primitives/CanvasLink.d.ts +2 -2
- package/components/TableGlide/lib/canvas/primitives/CanvasText.d.ts +3 -1
- package/components/TableGlide/lib/canvas/primitives/avatar/geometry.d.ts +6 -0
- package/components/TableGlide/lib/canvas/primitives/image/image.d.ts +20 -0
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.d.ts +11 -4
- package/components/TableGlide/lib/canvas/primitives/index.mjs +14 -11
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +2 -2
- package/components/TableGlide/theming/activeTheme.type.d.ts +3 -1
- package/components/TableGlide/theming/cell-fill-override.d.ts +31 -0
- package/components/TableGlide/theming/custom-colors.d.ts +46 -11
- package/components/TableGlide/theming/fill-states.d.ts +19 -0
- package/components/TableGlide/theming/glide-colors.d.ts +14 -14
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/theming/size-tokens.d.ts +1 -1
- package/components/TableGlide/theming/table-colors.generated.d.ts +529 -0
- package/components/TableGlide/tokens.d.ts +3 -103
- package/components/TableGlide/types.d.ts +3 -5
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +1 -1
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/TourWidget.palette.d.ts +36 -0
- package/components/TourWidget/TourWidget.styled.d.ts +4 -0
- package/components/TourWidget/TourWidget.tokens.d.ts +52 -0
- package/components/TourWidget/hooks/useIsDarkTheme.d.ts +1 -0
- package/components/TourWidget/index.cjs +22 -22
- package/components/TourWidget/index.d.ts +1 -0
- package/components/TourWidget/index.mjs +269 -179
- package/components/Typography/index.cjs +1 -1
- package/components/Typography/index.mjs +1 -1
- package/components/Widget/index.cjs +1 -1
- package/components/Widget/index.mjs +2 -2
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +1 -1
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +1 -1
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +3 -1
- package/index.mjs +1864 -1858
- package/layouts/Container/index.cjs +1 -1
- package/layouts/Container/index.mjs +1 -1
- package/layouts/Container/lib/utils/index.cjs +1 -1
- package/layouts/Container/lib/utils/index.mjs +1 -1
- package/layouts/ErrorPage/index.cjs +1 -1
- package/layouts/ErrorPage/index.mjs +1 -1
- package/layouts/FiltersActions/hooks/index.cjs +1 -1
- package/layouts/FiltersActions/hooks/index.mjs +1 -1
- package/layouts/FiltersActions/index.cjs +1 -1
- package/layouts/FiltersActions/index.mjs +1 -1
- package/layouts/Layout/index.cjs +1 -1
- package/layouts/Layout/index.mjs +1 -1
- package/layouts/PageLayout/index.cjs +1 -1
- package/layouts/PageLayout/index.mjs +1 -1
- package/mcp-data/component-index.json +1912 -366
- package/mixins/index.cjs +4 -4
- package/mixins/index.mjs +61 -54
- package/package.json +7 -7
- package/shared/utils/resizable/index.cjs +1 -0
- package/shared/utils/resizable/index.d.ts +2 -0
- package/shared/utils/resizable/index.mjs +39 -0
- package/shared/utils/resizable/resizableConfig.d.ts +16 -0
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/types/index.d.ts +1 -0
- package/types/utility.d.ts +1 -0
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +2 -2
- package/utils/clickStream/index.cjs +1 -1
- package/utils/clickStream/index.mjs +1 -1
- package/utils/eventBus/index.cjs +1 -1
- package/utils/eventBus/index.mjs +1 -1
- package/utils/getActiveTheme.d.ts +1 -1
- package/utils/hooks/index.cjs +1 -1
- package/utils/hooks/index.mjs +1 -1
- package/utils/index.cjs +1 -1
- package/utils/index.mjs +8 -8
- package/utils/react/index.cjs +1 -1
- package/utils/react/index.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-BtyWKJuu.mjs +0 -537
- package/chunks/AnalyticalWidget-YytE3Rlw.cjs +0 -43
- package/chunks/ApprovalCenter-DdsLEipZ.cjs +0 -1
- package/chunks/BlockTitle-DC1McGof.cjs +0 -1
- package/chunks/FiltersActions-CVtgAJnC.cjs +0 -1
- package/chunks/MassActions-C08IgW4a.cjs +0 -1
- package/chunks/PageTitle-CrBeieoq.cjs +0 -9
- package/chunks/Stories-UYVANawW.cjs +0 -1
- package/chunks/Table-CdaMPDkg.cjs +0 -31
- package/chunks/TableCanvas-DPHSYfH3.cjs +0 -30
- package/chunks/TableGlide-DAnTJtye.mjs +0 -7811
- package/chunks/TableGlide-am_w97mF.cjs +0 -1
- package/components/TableCanvas/feature-right-sidebar/constants.d.ts +0 -1
- package/components/TableCanvas/feature-right-sidebar/ui/TableSidebar.d.ts +0 -16
- /package/components/TableCanvas/{feature-right-sidebar → feature-sidebar}/ui/TableSidebar.classnames.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";const y=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),f=require("./AiAgentPopup-CLGSjg5L.cjs"),w=require("@salutejs/plasma-icons"),$=require("@salutejs/sdds-themes/tokens/sdds_finai"),a=require("./utils-OQNruMpn.cjs"),q=require("react"),o=require("../constants/index.cjs"),s=require("styled-components"),n="PageTitle__",l={root:`${n}root`,breadcrumbs:`${n}breadcrumbs`,content:`${n}content`,leftBlock:`${n}left-block`,titleBlock:`${n}title-block`,title:`${n}title`,subtitle:`${n}subtitle`,titleSlot:`${n}title-slot`,rightBlock:`${n}right-block`,backIconButton:`${n}back-icon-block`},R=s.div.attrs({className:l.root}).withConfig({displayName:"PageTitlestyled__StyledRoot"})(["width:100%;display:flex;flex-direction:column;gap:",";"],()=>o.s.x8),z=s.div.attrs({className:l.breadcrumbs}).withConfig({displayName:"PageTitlestyled__StyledBreadcrumbs"})([""]),A=s.div.attrs({className:l.content}).withConfig({displayName:"PageTitlestyled__StyledContent"})(["display:flex;justify-content:space-between;align-items:flex-start;gap:",";"],()=>o.s.x12),I=s.div.attrs({className:l.leftBlock}).withConfig({displayName:"PageTitlestyled__StyledLeftBlock"})(["display:flex;align-items:flex-start;gap:",";flex:1;min-width:0;"],()=>o.s.x8),L=s.div.attrs({className:l.titleBlock}).withConfig({displayName:"PageTitlestyled__StyledTitleBlock"})(["display:flex;flex-direction:column;gap:",";flex-shrink:1;min-width:0;"],()=>o.s.x2),H=s.div.attrs({className:l.backIconButton}).withConfig({displayName:"PageTitlestyled__StyledBackButtonContainer"})(["margin-top:4px;",""],({$isAdaptive1280:t})=>t&&s.css([""," ",""],a.media.exact(960,1280)`
|
|
2
|
+
margin-top: 2px;
|
|
3
|
+
`,a.media.exact(0,959)`
|
|
4
|
+
margin-top: 0;
|
|
5
|
+
`)),W=s.div.attrs({className:l.title}).withConfig({displayName:"PageTitlestyled__StyledTitle"})([""]),E=s.div.attrs({className:l.subtitle}).withConfig({displayName:"PageTitlestyled__StyledSubtitle"})([""]),F=s.div.attrs({className:l.titleSlot}).withConfig({displayName:"PageTitlestyled__StyledTitleSlot"})(["margin-top:4px;",""],({$isAdaptive1280:t})=>t&&s.css([""," ",""],a.media.exact(960,1280)`
|
|
6
|
+
margin-top: 3px;
|
|
7
|
+
`,a.media.exact(0,959)`
|
|
8
|
+
margin-top: 2px;
|
|
9
|
+
`)),D=s.div.attrs({className:l.rightBlock}).withConfig({displayName:"PageTitlestyled__StyledRightBlock"})(["display:flex;align-items:flex-end;flex-shrink:0;align-self:flex-end;"]),S=t=>({buttonSize:t?"xs":"s"}),d=(t,i)=>typeof t=="function"?t(i):t,G=({isAdaptive1280:t,...i})=>e.jsx(H,{$isAdaptive1280:t,children:e.jsx(y.IconButton,{size:"xs",view:"secondary",className:l.backIconButton,pin:"circle-circle",...i,children:e.jsx(w.IconChevronLeft,{size:"xs",color:"inherit"})})}),J=({breadcrumbs:t})=>{if(!t)return null;const i={size:"m",...t};return e.jsx(z,{children:e.jsx(y.Breadcrumbs,{...i})})},K=({title:t,titleTypographyProps:i})=>t?e.jsx(W,{children:e.jsx(f.TypographyWithAutoTooltip,{variant:"H2",bold:!0,tooltipText:(i&&"tooltipText"in i?i.tooltipText:void 0)??t,...i,children:t})}):null,M=({subtitle:t,subtitleTypographyProps:i})=>t?e.jsx(E,{children:e.jsx(f.TypographyWithAutoTooltip,{variant:"BodyS",color:$.textSecondary,tooltipText:(i&&"tooltipText"in i?i.tooltipText:void 0)??t,...i,children:t})}):null,p=q.forwardRef(({title:t,titleTypographyProps:i,subtitle:r,subtitleTypographyProps:T,titleSlot:h,rightSlot:B,disableMediaAdaptive:k=!1,breadcrumbs:x,$css:N,className:_,showBackButton:j,onBackClick:b,...v},C)=>{const{down:P}=a.useBreakpoint(),c=!k&&P("xl"),g=S(c),m=d(h,g),u=d(B,g);return e.jsxs(R,{ref:C,$css:N,className:a.mCls(l.root,_),...v,children:[x&&e.jsx(J,{breadcrumbs:x}),e.jsxs(A,{children:[e.jsxs(I,{children:[j&&e.jsx(G,{isAdaptive1280:c,onClick:b}),(t||r)&&e.jsxs(L,{children:[e.jsx(K,{title:t,titleTypographyProps:i}),e.jsx(M,{subtitle:r,subtitleTypographyProps:T})]}),m&&e.jsx(F,{$isAdaptive1280:c,children:m})]}),u&&e.jsx(D,{children:u})]})]})});p.displayName="PageTitle";exports.PageTitle=p;exports.getPageTitleSlotSizes=S;exports.pageTitleClassNames=l;exports.renderPageTitleSlot=d;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Breadcrumbs as P, IconButton as $ } from "@salutejs/sdds-finai";
|
|
2
2
|
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { T as y } from "./AiAgentPopup-CtMhai1X.mjs";
|
|
4
4
|
import { IconChevronLeft as R } from "@salutejs/plasma-icons";
|
|
5
5
|
import { textSecondary as z } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
6
|
-
import { b as s,
|
|
6
|
+
import { b as s, e as I, x as A } from "./utils-Hu77fGGe.mjs";
|
|
7
7
|
import { forwardRef as j } from "react";
|
|
8
8
|
import { s as c } from "../constants/index.mjs";
|
|
9
9
|
import a, { css as S } from "styled-components";
|
|
@@ -72,7 +72,7 @@ const o = "PageTitle__", i = {
|
|
|
72
72
|
displayName: "PageTitlestyled__StyledRightBlock"
|
|
73
73
|
})(["display:flex;align-items:flex-end;flex-shrink:0;align-self:flex-end;"]), M = (t) => ({
|
|
74
74
|
buttonSize: t ? "xs" : "s"
|
|
75
|
-
}),
|
|
75
|
+
}), x = (t, e) => typeof t == "function" ? t(e) : t, O = ({
|
|
76
76
|
isAdaptive1280: t,
|
|
77
77
|
...e
|
|
78
78
|
}) => /* @__PURE__ */ l(D, { $isAdaptive1280: t, children: /* @__PURE__ */ l($, { size: "xs", view: "secondary", className: i.backIconButton, pin: "circle-circle", ...e, children: /* @__PURE__ */ l(R, { size: "xs", color: "inherit" }) }) }), Q = ({
|
|
@@ -88,10 +88,10 @@ const o = "PageTitle__", i = {
|
|
|
88
88
|
}, U = ({
|
|
89
89
|
title: t,
|
|
90
90
|
titleTypographyProps: e
|
|
91
|
-
}) => t ? /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(
|
|
91
|
+
}) => t ? /* @__PURE__ */ l(F, { children: /* @__PURE__ */ l(y, { variant: "H2", bold: !0, tooltipText: (e && "tooltipText" in e ? e.tooltipText : void 0) ?? t, ...e, children: t }) }) : null, V = ({
|
|
92
92
|
subtitle: t,
|
|
93
93
|
subtitleTypographyProps: e
|
|
94
|
-
}) => t ? /* @__PURE__ */ l(G, { children: /* @__PURE__ */ l(
|
|
94
|
+
}) => t ? /* @__PURE__ */ l(G, { children: /* @__PURE__ */ l(y, { variant: "BodyS", color: z, tooltipText: (e && "tooltipText" in e ? e.tooltipText : void 0) ?? t, ...e, children: t }) }) : null, X = j(({
|
|
95
95
|
title: t,
|
|
96
96
|
titleTypographyProps: e,
|
|
97
97
|
subtitle: r,
|
|
@@ -108,7 +108,7 @@ const o = "PageTitle__", i = {
|
|
|
108
108
|
}, C) => {
|
|
109
109
|
const {
|
|
110
110
|
down: w
|
|
111
|
-
} = I(), d = !B && w("xl"), f = M(d), g =
|
|
111
|
+
} = I(), d = !B && w("xl"), f = M(d), g = x(u, f), p = x(T, f);
|
|
112
112
|
return /* @__PURE__ */ n(L, { ref: C, $css: k, className: A(i.root, N), ...v, children: [
|
|
113
113
|
m && /* @__PURE__ */ l(Q, { breadcrumbs: m }),
|
|
114
114
|
/* @__PURE__ */ n(E, { children: [
|
|
@@ -129,5 +129,5 @@ export {
|
|
|
129
129
|
X as P,
|
|
130
130
|
M as g,
|
|
131
131
|
i as p,
|
|
132
|
-
|
|
132
|
+
x as r
|
|
133
133
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as W, jsxs as
|
|
2
|
-
import { t as G,
|
|
1
|
+
import { jsx as W, jsxs as q } from "react/jsx-runtime";
|
|
2
|
+
import { t as G, f as V, d as J, b as y, e as K, x as Q, r as Y } from "./utils-Hu77fGGe.mjs";
|
|
3
3
|
import { useState as F, useEffect as $, useCallback as T, useRef as L, useMemo as X } from "react";
|
|
4
4
|
import { ModalDF as Z } from "../components/ModalDF/index.mjs";
|
|
5
5
|
import { s as E } from "../constants/index.mjs";
|
|
@@ -74,11 +74,11 @@ const nt = ({
|
|
|
74
74
|
const s = () => {
|
|
75
75
|
var l;
|
|
76
76
|
document.body.style.cursor = "auto", t.current = !1, (l = i.current) == null || l.classList.toggle(n.sidebarBlockIsResizing, !1);
|
|
77
|
-
},
|
|
77
|
+
}, v = G((l) => {
|
|
78
78
|
if (!t.current || !i.current)
|
|
79
79
|
return;
|
|
80
80
|
l.preventDefault();
|
|
81
|
-
const g = l.clientX, m = i.current.getBoundingClientRect(), p = m.width - r.separatorDefaultWidth, b = (m.right - g - r.separatorButtonDefaultWidth / 2) / p * 100,
|
|
81
|
+
const g = l.clientX, m = i.current.getBoundingClientRect(), p = m.width - r.separatorDefaultWidth, b = (m.right - g - r.separatorButtonDefaultWidth / 2) / p * 100, w = at(o, p), x = V(w, b, a), f = 100 - x, k = x * p / 100, B = f * p / 100, P = {
|
|
82
82
|
main: f,
|
|
83
83
|
mainPx: B,
|
|
84
84
|
sidebar: x,
|
|
@@ -86,8 +86,8 @@ const nt = ({
|
|
|
86
86
|
};
|
|
87
87
|
e(P), d == null || d(P);
|
|
88
88
|
}, 150);
|
|
89
|
-
return window.addEventListener("mousemove",
|
|
90
|
-
window.removeEventListener("mousemove",
|
|
89
|
+
return window.addEventListener("mousemove", v), window.addEventListener("mouseup", s), () => {
|
|
90
|
+
window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", s);
|
|
91
91
|
};
|
|
92
92
|
}, [i, t, d, e, a, o]), {
|
|
93
93
|
startResizing: c
|
|
@@ -177,17 +177,17 @@ const nt = ({
|
|
|
177
177
|
onResize: c,
|
|
178
178
|
headerHeight: s,
|
|
179
179
|
insidePageLayout: h = !1,
|
|
180
|
-
disableMediaAdaptive:
|
|
180
|
+
disableMediaAdaptive: v = !1,
|
|
181
181
|
...l
|
|
182
182
|
}) => {
|
|
183
183
|
const g = L(!1), m = L(null), {
|
|
184
184
|
down: C
|
|
185
|
-
} = K(), p = !
|
|
185
|
+
} = K(), p = !v && C("xl"), {
|
|
186
186
|
minWidthPx: b,
|
|
187
|
-
maxWidthPercent:
|
|
187
|
+
maxWidthPercent: w = r.sidebarWidths.maxWidthPercent,
|
|
188
188
|
defaultWidthPercent: D = r.sidebarWidths.defaultWidthPercent
|
|
189
189
|
} = t ?? {}, x = t == null ? void 0 : t.content, f = ht(p, b), k = X(() => ut(p), [p]), B = X(() => mt(x, k), [x, k]), [P, z] = F(() => {
|
|
190
|
-
const I = V(0, D, Math.min(
|
|
190
|
+
const I = V(0, D, Math.min(w, 100));
|
|
191
191
|
return {
|
|
192
192
|
main: 100 - I,
|
|
193
193
|
sidebar: I
|
|
@@ -198,32 +198,32 @@ const nt = ({
|
|
|
198
198
|
setSizes: z,
|
|
199
199
|
containerRef: m,
|
|
200
200
|
isResizingRef: g,
|
|
201
|
-
sidebarMaxWidthPercent:
|
|
201
|
+
sidebarMaxWidthPercent: w,
|
|
202
202
|
sidebarMinWidthPx: f,
|
|
203
203
|
onResize: c
|
|
204
204
|
});
|
|
205
205
|
dt({
|
|
206
206
|
setSizes: z,
|
|
207
207
|
containerRef: m,
|
|
208
|
-
sidebarMaxWidthPercent:
|
|
208
|
+
sidebarMaxWidthPercent: w,
|
|
209
209
|
sidebarMinWidthPx: f,
|
|
210
210
|
onResize: c
|
|
211
211
|
});
|
|
212
212
|
const {
|
|
213
|
-
isClosingOrClosedOrOpening:
|
|
214
|
-
onTransitionEnd:
|
|
213
|
+
isClosingOrClosedOrOpening: A,
|
|
214
|
+
onTransitionEnd: H
|
|
215
215
|
} = ot({
|
|
216
216
|
sidebarIsClosed: O,
|
|
217
217
|
isResizingRef: g,
|
|
218
218
|
onTransitionEndExt: d
|
|
219
219
|
});
|
|
220
|
-
return /* @__PURE__ */
|
|
220
|
+
return /* @__PURE__ */ q(pt, { ref: Y(m, o), style: {
|
|
221
221
|
...ct(P, O, t == null ? void 0 : t.paddingLeftOnClosed, f),
|
|
222
222
|
...i
|
|
223
|
-
}, $css: a, $headerHeight: s, $insidePageLayout: h, $sidebarIsClosed: O, onTransitionEnd:
|
|
223
|
+
}, $css: a, $headerHeight: s, $insidePageLayout: h, $sidebarIsClosed: O, onTransitionEnd: H, ...l, children: [
|
|
224
224
|
/* @__PURE__ */ W("div", { className: n.mainBlock, children: e }),
|
|
225
225
|
/* @__PURE__ */ W("div", { className: n.separator, children: /* @__PURE__ */ W("button", { className: n.separatorButton, type: "button", onMouseDown: U, children: "Разделитель" }) }),
|
|
226
|
-
/* @__PURE__ */ W("div", { className: Q(n.sidebarBlock,
|
|
226
|
+
/* @__PURE__ */ W("div", { className: Q(n.sidebarBlock, A && n.sidebarIsClosingOrClosedOrOpening, (t == null ? void 0 : t.isFullScreened) && n.sidebarBlockInModal), children: /* @__PURE__ */ W(nt, { isFullScreened: t == null ? void 0 : t.isFullScreened, fullScreenedModalDFProps: t == null ? void 0 : t.fullScreenedModalDFProps, children: B }) })
|
|
227
227
|
] });
|
|
228
228
|
};
|
|
229
229
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const W=require("react/jsx-runtime"),u=require("./utils-
|
|
1
|
+
"use strict";const W=require("react/jsx-runtime"),u=require("./utils-OQNruMpn.cjs"),l=require("react"),H=require("../components/ModalDF/index.cjs"),L=require("../constants/index.cjs"),S=require("@salutejs/sdds-themes/tokens/sdds_finai"),U=require("styled-components"),A=({children:e,isFullScreened:t,fullScreenedModalDFProps:i})=>{if(!t)return e;const s=typeof(i==null?void 0:i.fullScreen)=="object"?i.fullScreen:void 0;return W.jsx(H.ModalDF,{opened:!0,closeOnOverlayClick:!1,...i,fullScreen:{...s,defaultEnabled:!0},children:e})},G=({sidebarIsClosed:e,isResizingRef:t,onTransitionEndExt:i})=>{const[s,o]=l.useState(()=>e);l.useEffect(()=>{e&&o(!0)},[e]);const d=l.useCallback(c=>{i&&i(c),!e&&!t.current&&s&&o(!1)},[s,t,i,e]);return{isClosingOrClosedOrOpening:s,onTransitionEnd:d}},m="SplitView__",r={container:`${m}container`,separator:`${m}separator`,separatorButton:`${m}separator-button`,mainBlock:`${m}main-block`,sidebarBlock:`${m}sidebar-block`,sidebarBlockIsResizing:`${m}sidebar-block-is-resizing`,sidebarIsClosingOrClosedOrOpening:`${m}sidebar-is-closing-closed-opening`,sidebarBlockFullScreenContentContainer:`${m}sidebar-block__full-screen-content-container`,sidebarBlockInModal:`${m}sidebar-block-in-modal`},j=32,E=12,n={mainWidthVar:"--main-width",separatorWidthVar:"--separator-width",sidebarWidthVar:"--sidebar-width",sidebarWidthInPxVar:"--sidebar-width-in-px",gapBetweenBlocksDefaultWidth:j,separatorButtonDefaultWidth:E,separatorDefaultWidth:j+E,sidebarWidths:{minWidthPx:600,adaptive1280MinWidthPx:440,maxWidthPercent:70,defaultWidthPercent:30}},M=(e,t)=>e/100*t,J=(e,t)=>e/t*100,K=({setSizes:e,isResizingRef:t,containerRef:i,sidebarMinWidthPx:s,sidebarMaxWidthPercent:o,onResize:d})=>{const c=l.useCallback(()=>{var a;document.body.style.cursor="col-resize",t.current=!0,(a=i.current)==null||a.classList.toggle(r.sidebarBlockIsResizing,!0)},[i,t]);return l.useEffect(()=>{const a=()=>{var p;document.body.style.cursor="auto",t.current=!1,(p=i.current)==null||p.classList.toggle(r.sidebarBlockIsResizing,!1)},g=p=>{if(!t.current||!i.current)return;p.preventDefault();const x=p.clientX,b=i.current.getBoundingClientRect(),h=b.width-n.separatorDefaultWidth,f=(b.right-x-n.separatorButtonDefaultWidth/2)/h*100,k=J(s,h),y=o,w=u.clamp(k,f,y),v=100-w,B=w*h/100,$=v*h/100,O={main:v,mainPx:$,sidebar:w,sidebarPx:B};e(O),d==null||d(O)},C=u.throttleWithLastCall(g,150);return window.addEventListener("mousemove",C),window.addEventListener("mouseup",a),()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",a)}},[i,t,d,e,o,s]),{startResizing:c}},Q=({setSizes:e,containerRef:t,sidebarMinWidthPx:i,sidebarMaxWidthPercent:s,onResize:o})=>{l.useEffect(()=>{const d=g=>{const p=g.contentRect.width-n.separatorDefaultWidth;e(x=>{const b=M(x.sidebar,p),V=M(s,p),h=u.clamp(i,b,V),f={...x,sidebarPx:h};return o==null||o(f),f})},c=u.debounce(d,1e3),a=new ResizeObserver(g=>{g.forEach(c)});return t.current&&a.observe(t.current),()=>{a.disconnect()}},[t,e,s,i])},P={spaceX4:()=>L.s.x4,spaceX16:()=>L.s.x16},Y=(e,t,i,s=n.sidebarWidths.minWidthPx)=>{const o=t?{...e,main:100,separator:`${i??0}px`,sidebar:0}:{...e,separator:`${n.separatorDefaultWidth}px`},{main:d,sidebar:c,sidebarPx:a,separator:g}=o;return{[n.mainWidthVar]:`${d}fr`,[n.sidebarWidthVar]:c===0?"minmax(0px, 0fr)":`minmax(${s}px, ${c}fr)`,[n.separatorWidthVar]:g,...a!==void 0&&{[n.sidebarWidthInPxVar]:`${a}px`}}},Z=`
|
|
2
2
|
border-top-right-radius: ${P.spaceX4};
|
|
3
3
|
border-bottom-right-radius: ${P.spaceX4};
|
|
4
4
|
`,R=U.div.attrs({className:r.container}).withConfig({displayName:"SplitViewstyled__StyledDiv"})(["*{box-sizing:border-box;}display:grid;position:relative;z-index:0;grid-template-columns:var(",") var(",") var(",");transition:grid-template-columns 0.2s ease-in-out,margin-right 0.2s ease-in-out;flex-grow:1;& .","{overflow-x:hidden;}& .",",& .","{--split-view-header-height:",";--split-view-bottom-gap:var(--page-layout-padding-bottom,32px);"," position:sticky;top:var(--split-view-header-height);height:calc( 100vh - var(--split-view-header-height) - var(--split-view-bottom-gap) );overflow-x:hidden;}& .","{align-self:start;z-index:1;& .","{margin-left:","px;position:relative;border:none;padding:0;width:","px;height:100%;background-color:",";border-radius:"," 0 0 ",";&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:",";border-radius:95px;background-color:",";}&:hover{&::before{background-color:",";}}cursor:col-resize;text-indent:100%;white-space:nowrap;overflow:hidden;}}&.","{& .",":before{background-color:",";}}.","{z-index:0;align-self:start;background-color:",";box-shadow:",";",";}."," > *{width:var(",");}"," ",""],n.mainWidthVar,n.separatorWidthVar,n.sidebarWidthVar,r.mainBlock,r.separator,r.sidebarBlock,({$headerHeight:e})=>e!==void 0?`${e}px`:"var(--global-header-height, 72px)",u.media.down("l")`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),U=require("@salutejs/sdds-finai"),ne=require("@salutejs/plasma-icons"),s=require("react"),fe=require("react-dom"),Re=require("./EmptyState-D-bmtvmy.cjs"),q=require("./utils-OQNruMpn.cjs"),V=require("@salutejs/sdds-themes/tokens/sdds_finai"),l=require("styled-components"),Ee=require("./AiAgentPopup-CLGSjg5L.cjs"),Pe=({controller:e,pauseHoldDelay:t,tapPrevZone:n,isOpen:o})=>{const i=s.useRef(),y=s.useRef(!1),p=s.useRef("next"),u=()=>{i.current&&(clearTimeout(i.current),i.current=void 0)},v=f=>{const c=f.currentTarget.getBoundingClientRect(),_=c.width>0?(f.clientX-c.left)/c.width:1;p.current=_<n?"prev":"next",y.current=!1,u(),i.current=setTimeout(()=>{y.current=!0,e.pause()},t)},I=()=>{if(u(),y.current){y.current=!1,e.resume();return}p.current==="prev"?e.prev():e.next()},d=()=>{u(),y.current&&(y.current=!1,e.resume())};return s.useEffect(()=>{if(!o)return;const f=c=>{c.key==="ArrowLeft"?(c.preventDefault(),e.prev()):c.key==="ArrowRight"?(c.preventDefault(),e.next()):c.key==="Escape"&&(c.preventDefault(),e.close())};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[o,e]),{onPointerDown:v,onPointerUp:I,onPointerLeave:d,onPointerCancel:d}},ge=s.createContext(null),je=ge.Provider,Y=()=>{const e=s.useContext(ge);if(!e)throw new Error("Компоненты Stories должны использоваться внутри <Stories>.");return e},Z=e=>s.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot),C={root:"df-stories",preview:"df-stories-preview",previewRing:"df-stories-preview__ring",previewGap:"df-stories-preview__gap",previewBody:"df-stories-preview__body",previewTitle:"df-stories-preview__title",viewer:"df-stories-viewer",overlay:"df-stories-viewer__overlay",stage:"df-stories-viewer__stage",banner:"df-stories-banner",progress:"df-stories-progress",progressItem:"df-stories-progress__item",content:"df-stories-content",action:"df-stories-banner__action",arrowPrev:"df-stories-viewer__arrow-prev",arrowNext:"df-stories-viewer__arrow-next",close:"df-stories-viewer__close"},ke="linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)",Ne="#ecf6fc",L="df-stories-banner",X={duration:5e3,pauseHoldDelay:200,tapPrevZone:1/3,overlayColor:"#060a0c47",zIndex:9e3},x={circle:98,ring:2,titleGap:6,rectRadiusOuter:12,rectRadiusBody:8,bannerMaxWidth:430,bannerMaxHeight:900,bannerRadius:16,bannerPadding:28,stageWidth:558,progressHeight:4,progressRadius:2,progressFillRadius:6,progressGap:4},Te="StoriesPreview",ce=l.div.withConfig({displayName:"StoriesContentstyled__StyledContent"})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:",";"],V.surfaceSolidCard),Oe=l.img.withConfig({displayName:"StoriesContentstyled__StyledImage"})(["width:100%;height:100%;object-fit:",";opacity:",";transition:opacity 0.2s ease;user-select:none;"],({$objectFit:e})=>e,({$loaded:e})=>e?1:0),Ae=l.div.withConfig({displayName:"StoriesContentstyled__StyledSpinner"})(["position:absolute;display:flex;align-items:center;justify-content:center;"]),ze=l.div.withConfig({displayName:"StoriesContentstyled__StyledErrorSlot"})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:","px;"],x.bannerPadding),ye=({slide:e,status:t,errorNode:n})=>{const o=e.objectFit??"cover",i=t==="loaded";return t==="error"?r.jsx(ce,{className:C.content,children:r.jsx(ze,{children:n})}):r.jsxs(ce,{className:C.content,children:[r.jsx(Oe,{src:e.src,alt:"",draggable:!1,$objectFit:o,$loaded:i}),t==="loading"?r.jsx(Ae,{children:r.jsx(U.Spinner,{view:"default",size:"l"})}):null]})},pe=(e,t)=>{e&&(e.style.transform=`scaleX(${t})`)},De=({fillRef:e,active:t,duration:n,isPlaying:o,isReady:i,resetKey:y,onComplete:p})=>{const u=s.useRef(0),v=s.useRef(p);v.current=p,s.useEffect(()=>{u.current=0,pe(e.current,0)},[y,e]),s.useEffect(()=>{if(!t||!o||!i||n<=0)return;let I=0,d=performance.now();const f=c=>{u.current+=c-d,d=c;const _=Math.min(1,u.current/n);if(pe(e.current,_),_>=1){v.current();return}I=requestAnimationFrame(f)};return I=requestAnimationFrame(f),()=>cancelAnimationFrame(I)},[t,o,i,n,y,e])},$e=l.div.withConfig({displayName:"StoriesProgressstyled__StyledProgress"})(["display:flex;gap:","px;width:100%;"],x.progressGap),Be=l.div.withConfig({displayName:"StoriesProgressstyled__StyledItem"})(["position:relative;flex:1 1 0;height:","px;border-radius:","px;overflow:hidden;background:",";"],x.progressHeight,x.progressRadius,({$bg:e})=>e),Ve=l.span.withConfig({displayName:"StoriesProgressstyled__StyledFill"})(["position:absolute;inset:0;border-radius:","px;background:",";transform:scaleX(0);transform-origin:left center;will-change:transform;"],x.progressFillRadius,({$color:e})=>e),xe=({isReady:e})=>{var O;const{store:t,controller:n,groups:o,defaultDuration:i,mode:y}=Y(),{groupIndex:p,slideIndex:u,isPlaying:v,isOpen:I}=Z(t),d=q.useActiveTheme(),c=(y??d)==="dark",_=c?V.onLightSurfaceTransparentTertiary:V.onDarkSurfaceTransparentTertiary,S=c?V.onLightSurfaceTransparentDeep:V.onDarkSurfaceTransparentDeep,b=o[p],h=(b==null?void 0:b.slides)??[],z=s.useRef(null),k=((O=h[u])==null?void 0:O.duration)??(b==null?void 0:b.defaultDuration)??i;return De({fillRef:z,active:I,duration:k,isPlaying:v,isReady:e,resetKey:`${p}-${u}`,onComplete:n.next}),r.jsx($e,{className:C.progress,children:h.map((D,N)=>{const T=D.id??`${p}-${N}`,P=N<u,G=N===u;return r.jsx(Be,{className:C.progressItem,$bg:P?S:_,children:G?r.jsx(Ve,{ref:z,$color:S}):null},T)})})},Ge=l.keyframes(["from{opacity:0;transform:scale(0.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}"]),Le=l.keyframes(["from{opacity:1;transform:scale(1) translateY(0);}to{opacity:0;transform:scale(0.96) translateY(6px);}"]),Fe=l.div.withConfig({displayName:"StoriesBannerstyled__StyledBanner"})(["position:relative;height:100%;width:auto;aspect-ratio:"," / ",";max-width:calc( 100vw - ","px );border-radius:","px;overflow:hidden;view-transition-name:",";animation:"," "," ease forwards;"],x.bannerMaxWidth,x.bannerMaxHeight,x.stageWidth-x.bannerMaxWidth,x.bannerRadius,L,({$closing:e})=>e?Le:Ge,({$closing:e})=>e?"0.2s":"0.24s"),He=l.div.withConfig({displayName:"StoriesBannerstyled__StyledTapLayer"})(["position:absolute;inset:0;z-index:1;touch-action:none;"]),Me=l.div.withConfig({displayName:"StoriesBannerstyled__StyledTop"})(["position:absolute;top:0;left:0;right:0;z-index:2;padding:","px;pointer-events:none;"],x.bannerPadding),We=l.div.withConfig({displayName:"StoriesBannerstyled__StyledBottom"})(["position:absolute;bottom:0;left:0;right:0;z-index:2;padding:","px;pointer-events:none;"],x.bannerPadding),Xe=l.div.withConfig({displayName:"StoriesBannerstyled__StyledActionSlot"})(["pointer-events:auto;"]),me=({closing:e,onAnimationEnd:t})=>{const{store:n,controller:o,groups:i,pauseHoldDelay:y,tapPrevZone:p,loadingDelay:u,onError:v,renderError:I}=Y(),{groupIndex:d,slideIndex:f,isOpen:c}=Z(n),_=i[d],S=_==null?void 0:_.slides[f],{status:b,reload:h}=q.useImageLoader(S==null?void 0:S.src,u),z=Pe({controller:o,pauseHoldDelay:y,tapPrevZone:p,isOpen:c}),k=s.useRef();s.useEffect(()=>{if(b!=="error"||!S)return;const P=`${d}-${f}`;k.current!==P&&(k.current=P,v==null||v({groupIndex:d,slideIndex:f,slide:S,retry:h}))},[b,d,f,S,v,h]);const O=P=>P.stopPropagation(),D=P=>{P.target===P.currentTarget&&t()};if(!S)return null;const{footer:N}=S,T=I?I({groupIndex:d,slideIndex:f,slide:S,retry:h}):r.jsx(Re.EmptyState,{size:"s",variant:"loading",title:"Не удалось загрузить",centered:!0,buttons:[{type:"link",props:{text:"Обновить",view:"accent",onClick:h}}]});return r.jsxs(Fe,{className:C.banner,$closing:e,onClick:O,onAnimationEnd:D,children:[r.jsx(ye,{slide:S,status:b,errorNode:T}),b==="error"?null:r.jsx(He,{...z}),r.jsx(Me,{children:r.jsx(xe,{isReady:b==="loaded"})}),N?r.jsx(We,{children:r.jsx(Xe,{className:C.action,children:N})}):null]})},se={ring:()=>ke,fallback:()=>Ne,boxShadow:()=>V.shadowDownSoftL},re=(e,t)=>e==="circle"?"50%":`${{outer:x.rectRadiusOuter,body:x.rectRadiusBody}[t]}px`,qe=l.div.withConfig({displayName:"StoriesPreviewstyled__StyledPreview"})(["display:flex;flex-direction:column;align-items:center;width:","px;"],({$width:e})=>e),Ye=l.button.withConfig({displayName:"StoriesPreviewstyled__StyledTrigger"})(["position:relative;display:block;box-sizing:border-box;width:","px;height:","px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;border-radius:",";outline:none;&:focus-visible{outline:2px solid ",";outline-offset:2px;}"],({$width:e})=>e,({$height:e})=>e,({$shape:e})=>re(e,"outer"),V.textAccent),Ze=l.div.withConfig({displayName:"StoriesPreviewstyled__StyledRing"})(["position:absolute;inset:0;box-sizing:border-box;padding:","px;background:",";border-radius:",";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;"],x.ring,se.ring,({$shape:e})=>re(e,"outer")),Ke=l.div.withConfig({displayName:"StoriesPreviewstyled__StyledBody"})(["position:absolute;inset:","px;box-sizing:border-box;box-shadow:",";background-color:",";background-position:center;background-size:cover;background-repeat:no-repeat;"," border-radius:",";"],({$viewed:e})=>e?0:x.ring*2,se.boxShadow,se.fallback,({$image:e})=>e&&l.css(["background-image:url('","');"],e),({$shape:e,$viewed:t})=>re(e,t?"outer":"body")),Ue=l.div.withConfig({displayName:"StoriesPreviewstyled__StyledTitle"})(["margin-top:","px;width:100%;text-align:",";& > *{width:100%;}"],x.titleGap,({$align:e})=>e),oe=e=>{var $;const{slides:t,shape:n="circle",title:o,titleProps:i,image:y,viewed:p=!1,size:u=x.circle,width:v,height:I,renderTrigger:d,className:f,__index:c=0}=e,{store:_,controller:S,preloadOnHover:b}=Y(),h=Z(_),z=h.isOpen&&h.groupIndex===c,k=n==="rect"?v??u:u,O=n==="rect"?I??u:u,D=()=>S.open(c),N=()=>{b&&t[0]&&q.preloadImage(t[0].src)},T=()=>d?d({index:c,viewed:p,isActive:z}):r.jsxs(r.Fragment,{children:[p?null:r.jsx(Ze,{className:C.previewRing,$shape:n}),r.jsx(Ke,{className:C.previewBody,$shape:n,$viewed:p,$image:y})]}),P={variant:"BodyXXS",bold:!0,lines:2,tooltipText:o,color:V.textPrimary,...i,children:o},G=(($=i==null?void 0:i.style)==null?void 0:$.textAlign)??"center";return r.jsxs(qe,{className:[C.preview,f].filter(Boolean).join(" "),"data-component":Te,$width:k,children:[r.jsx(Ye,{type:"button","aria-label":o,$width:k,$height:O,$shape:n,onClick:D,onMouseEnter:N,children:T()}),o?r.jsx(Ue,{className:C.previewTitle,style:{maxWidth:k},$align:G,children:r.jsx(Ee.TypographyWithAutoTooltip,{...P})}):null]})},Je=l.keyframes(["from{opacity:0;}to{opacity:1;}"]),Qe=l.keyframes(["from{opacity:1;}to{opacity:0;}"]),Se=e=>l.css(["animation:"," "," ease forwards;"],e?Qe:Je,e?"0.2s":"0.24s"),et=l.div.withConfig({displayName:"StoriesViewerstyled__StyledRoot"})(["position:fixed;inset:0;z-index:",";display:flex;align-items:center;justify-content:center;"],({$zIndex:e})=>e),tt=l.div.withConfig({displayName:"StoriesViewerstyled__StyledOverlay"})(["position:absolute;inset:0;background:",";opacity:",";transition:opacity 0.24s ease;"],({$color:e})=>e,({$closing:e})=>e?0:1),nt=l.div.withConfig({displayName:"StoriesViewerstyled__StyledStage"})(["position:relative;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content;max-width:min(","px,100vw);height:min(","px,calc(100vh - 32px));padding:0 ","px;outline:none;"],x.stageWidth,x.bannerMaxHeight,(x.stageWidth-x.bannerMaxWidth)/2),ue=l.div.withConfig({displayName:"StoriesViewerstyled__StyledArrow"})(["position:absolute;top:50%;"," z-index:3;transform:translateY(-50%);",""],({$side:e})=>e==="prev"?"left: 0;":"right: 0;",({$closing:e})=>Se(e)),st=l.div.withConfig({displayName:"StoriesViewerstyled__StyledClose"})(["position:absolute;top:0;right:0;z-index:3;",""],({$closing:e})=>Se(e)),rt=l.keyframes(["from{transform:translateX(24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]),ot=l.keyframes(["from{transform:translateX(0);opacity:1;}to{transform:translateX(-24px);opacity:0;}"]),it=l.keyframes(["from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]),at=l.keyframes(["from{transform:translateX(0);opacity:1;}to{transform:translateX(24px);opacity:0;}"]),lt=l.createGlobalStyle(["::view-transition-old(","),::view-transition-new(","){animation-duration:0.3s;animation-timing-function:ease;}html[data-df-stories-dir='next']::view-transition-new(","){animation-name:",";}html[data-df-stories-dir='next']::view-transition-old(","){animation-name:",";}html[data-df-stories-dir='prev']::view-transition-new(","){animation-name:",";}html[data-df-stories-dir='prev']::view-transition-old(","){animation-name:",";}"],L,L,L,rt,L,ot,L,it,L,at),he=()=>{var Q;const{store:e,controller:t,groups:n,overlay:o,overlayColor:i,zIndex:y,groupTransition:p,arrows:u,hideDisabledArrows:v,preloadGroup:I}=Y(),{isOpen:d,groupIndex:f,slideIndex:c}=Z(e),[_,S]=s.useState(d),b=s.useRef(null);s.useEffect(()=>{d&&S(!0)},[d]),s.useEffect(()=>{var A;d&&((A=b.current)==null||A.focus())},[d]),s.useEffect(()=>{d&&I(f)},[d,f,I]);const h=_&&!d,z=s.useCallback(()=>{h&&S(!1)},[h]);if(!_||typeof document>"u")return null;const k=((Q=n[f])==null?void 0:Q.slides.length)??0,O=f>0||c>0,D=c+1<k||f+1<n.length,N=n.reduce((A,F)=>A+F.slides.length,0),T=u==="always"||u==="auto"&&N>1,P=T&&(O||!v),G=T&&(D||!v),$=A=>A.stopPropagation(),J=r.jsxs(et,{className:C.viewer,$zIndex:y,onClick:()=>t.close(),children:[o?r.jsx(tt,{className:C.overlay,$color:i,$closing:h}):null,p==="slide"?r.jsx(lt,{}):null,r.jsxs(nt,{ref:b,tabIndex:-1,className:C.stage,children:[P?r.jsx(ue,{className:C.arrowPrev,$side:"prev",$closing:h,onClick:$,children:r.jsx(U.IconButton,{size:"s",view:"white",pin:"circle-circle","aria-label":"Назад",disabled:!O,onClick:()=>t.prev(),children:r.jsx(ne.IconDisclosureLeftOutline,{size:"s"})})}):null,r.jsx(me,{closing:h,onAnimationEnd:z}),G?r.jsx(ue,{className:C.arrowNext,$side:"next",$closing:h,onClick:$,children:r.jsx(U.IconButton,{size:"s",view:"white",pin:"circle-circle","aria-label":"Вперёд",disabled:!D,onClick:()=>t.next(),children:r.jsx(ne.IconDisclosureRightOutline,{size:"s"})})}):null,r.jsx(st,{className:C.close,$closing:h,onClick:$,children:r.jsx(U.IconButton,{size:"s",view:"white",pin:"circle-circle","aria-label":"Закрыть",onClick:()=>t.close(),children:r.jsx(ne.IconClose,{size:"s"})})})]})]});return fe.createPortal(J,document.body)},dt=Object.freeze(Object.defineProperty({__proto__:null,StoriesViewer:he},Symbol.toStringTag,{value:"Module"})),we=s.lazy(()=>Promise.resolve().then(()=>dt).then(e=>({default:e.StoriesViewer}))),ct=e=>{const t=s.useRef(e);return t.current=e,s.useCallback(n=>{const o=t.current[n];if(!o)return;o.slides.forEach(y=>q.preloadImage(y.src));const i=t.current[n+1];i!=null&&i.slides[0]&&q.preloadImage(i.slides[0].src)},[])},pt={isOpen:!1,groupIndex:0,slideIndex:0,isPlaying:!0,direction:"next"},ut=e=>{let t={...pt,...e};const n=new Set;return{getSnapshot:()=>t,subscribe:o=>(n.add(o),()=>{n.delete(o)}),setState:o=>{Object.keys(o).some(p=>t[p]!==o[p])&&(t={...t,...o},n.forEach(p=>p()))}}},ft=()=>typeof document<"u"&&typeof document.startViewTransition=="function",gt=(e,t)=>{const{direction:n="next",enabled:o=!0}=t??{};if(!o||!ft()){e();return}const i=document;i.documentElement.dataset.dfStoriesDir=n,i.startViewTransition(()=>fe.flushSync(e)).finished.finally(()=>{delete i.documentElement.dataset.dfStoriesDir})},yt=l.div.withConfig({displayName:"Storiesstyled__StyledStories"})(["display:flex;align-items:flex-start;gap:16px;"]),ve=e=>s.isValidElement(e)&&e.type===oe,be=e=>{const t=[];return s.Children.forEach(e,n=>{var o;ve(n)?t.push(n):s.isValidElement(n)&&((o=n.props)!=null&&o.children)&&t.push(...be(n.props.children))}),t},Ie=(e,t)=>s.Children.map(e,n=>{var o;if(ve(n)){const i=t.value;return t.value+=1,s.cloneElement(n,{__index:i})}return s.isValidElement(n)&&((o=n.props)!=null&&o.children)?s.cloneElement(n,void 0,Ie(n.props.children,t)):n}),xt=()=>{const{store:e}=Y(),{isOpen:t}=Z(e),[n,o]=s.useState(t);return s.useEffect(()=>{t&&o(!0)},[t]),n?r.jsx(s.Suspense,{fallback:null,children:r.jsx(we,{})}):null},mt=(e,t)=>{const{children:n,defaultDuration:o=X.duration,open:i,defaultOpen:y,activeGroupIndex:p,activeSlideIndex:u,onOpenChange:v,onGroupChange:I,onSlideChange:d,onComplete:f,onGroupComplete:c,onClose:_,onError:S,renderError:b,overlay:h=!0,overlayColor:z=X.overlayColor,zIndex:k=X.zIndex,preloadOnHover:O=!0,loadingDelay:D=0,pauseHoldDelay:N=X.pauseHoldDelay,groupTransition:T="slide",arrows:P="auto",hideDisabledArrows:G=!0,mode:$,className:J}=e,A=be(n).map(R=>({slides:R.props.slides??[],defaultDuration:R.props.defaultDuration})),F=s.useRef();F.current||(F.current=ut({isOpen:y??!1}));const g=F.current,K=s.useRef(A);K.current=A;const ae=s.useRef({groupTransition:T});ae.current={groupTransition:T};const H=s.useRef({onOpenChange:v,onGroupChange:I,onSlideChange:d,onComplete:f,onGroupComplete:c,onClose:_});H.current={onOpenChange:v,onGroupChange:I,onSlideChange:d,onComplete:f,onGroupComplete:c,onClose:_};const ee=s.useRef();if(!ee.current){const R=(a,E)=>g.setState({slideIndex:a,direction:E,isPlaying:!0}),m=(a,E,j)=>gt(()=>g.setState({groupIndex:a,slideIndex:E,direction:j,isPlaying:!0}),{direction:j,enabled:ae.current.groupTransition!=="none"}),w=()=>{var a,E;(E=(a=H.current).onComplete)==null||E.call(a),g.setState({isOpen:!1,isPlaying:!1})};ee.current={open:(a,E)=>{const j=g.getSnapshot();g.setState({isOpen:!0,groupIndex:a??j.groupIndex,slideIndex:E??0,isPlaying:!0,direction:"next"})},close:()=>g.setState({isOpen:!1,isPlaying:!1}),next:()=>{var j,B,M,W,de;const a=g.getSnapshot(),E=((j=K.current[a.groupIndex])==null?void 0:j.slides.length)??0;a.slideIndex+1<E?R(a.slideIndex+1,"next"):a.groupIndex+1<K.current.length?((M=(B=H.current).onGroupComplete)==null||M.call(B,a.groupIndex),m(a.groupIndex+1,0,"next")):((de=(W=H.current).onGroupComplete)==null||de.call(W,a.groupIndex),w())},prev:()=>{const a=g.getSnapshot();a.slideIndex>0?R(a.slideIndex-1,"prev"):a.groupIndex>0&&m(a.groupIndex-1,0,"prev")},nextGroup:()=>{const a=g.getSnapshot();a.groupIndex+1<K.current.length&&m(a.groupIndex+1,0,"next")},prevGroup:()=>{const a=g.getSnapshot();a.groupIndex>0&&m(a.groupIndex-1,0,"prev")},goTo:(a,E)=>{const j=g.getSnapshot(),B=a<j.groupIndex?"prev":"next";a===j.groupIndex?R(E??0,B):m(a,E??0,B)},pause:()=>g.setState({isPlaying:!1}),resume:()=>g.setState({isPlaying:!0})}}const te=ee.current,_e=ct(A),le=s.useRef(g.getSnapshot());s.useEffect(()=>g.subscribe(()=>{var a,E,j,B,M,W;const R=le.current,m=g.getSnapshot();le.current=m;const w=H.current;if(R.isOpen!==m.isOpen){(a=w.onOpenChange)==null||a.call(w,m.isOpen,{groupIndex:m.groupIndex}),m.isOpen?((E=w.onGroupChange)==null||E.call(w,m.groupIndex),(j=w.onSlideChange)==null||j.call(w,m.groupIndex,m.slideIndex)):(B=w.onClose)==null||B.call(w);return}m.isOpen&&(R.groupIndex!==m.groupIndex&&((M=w.onGroupChange)==null||M.call(w,m.groupIndex)),(R.groupIndex!==m.groupIndex||R.slideIndex!==m.slideIndex)&&((W=w.onSlideChange)==null||W.call(w,m.groupIndex,m.slideIndex)))}),[g]),s.useEffect(()=>{i!==void 0&&g.setState({isOpen:i})},[i,g]),s.useEffect(()=>{p!==void 0&&g.setState({groupIndex:p})},[p,g]),s.useEffect(()=>{u!==void 0&&g.setState({slideIndex:u})},[u,g]),s.useImperativeHandle(t,()=>({...te,getState:()=>{const R=g.getSnapshot();return{isOpen:R.isOpen,groupIndex:R.groupIndex,slideIndex:R.slideIndex,isPlaying:R.isPlaying}}}),[te,g]);const Ce={store:g,controller:te,groups:A,defaultDuration:o,pauseHoldDelay:N,tapPrevZone:X.tapPrevZone,preloadGroup:_e,preloadOnHover:O,loadingDelay:D,overlay:h,overlayColor:z,zIndex:k,groupTransition:T,arrows:P,hideDisabledArrows:G,mode:$,onError:S,renderError:b};return r.jsxs(je,{value:Ce,children:[r.jsx(yt,{className:[C.root,J].filter(Boolean).join(" "),children:Ie(n,{value:0})}),r.jsx(xt,{})]})},ie=s.forwardRef(mt);ie.Preview=oe;ie.displayName="Stories";exports.Stories=ie;exports.StoriesBanner=me;exports.StoriesContent=ye;exports.StoriesPreview=oe;exports.StoriesProgress=xe;exports.StoriesViewer=he;exports.StoriesViewerLazy=we;exports.storiesClassNames=C;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as i, jsxs as H, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
-
import { Spinner as
|
|
3
|
-
import { IconDisclosureLeftOutline as
|
|
4
|
-
import { useRef as
|
|
2
|
+
import { Spinner as Te, IconButton as ne } from "@salutejs/sdds-finai";
|
|
3
|
+
import { IconDisclosureLeftOutline as ke, IconDisclosureRightOutline as Oe, IconClose as Ee } from "@salutejs/plasma-icons";
|
|
4
|
+
import { useRef as T, useEffect as A, useContext as Re, createContext as Ae, useSyncExternalStore as ze, useState as fe, useCallback as ye, lazy as De, forwardRef as $e, useImperativeHandle as Be, Children as me, isValidElement as ie, cloneElement as ce, Suspense as Ge } from "react";
|
|
5
5
|
import { createPortal as Ve, flushSync as Le } from "react-dom";
|
|
6
|
-
import { E as je } from "./EmptyState-
|
|
7
|
-
import {
|
|
6
|
+
import { E as je } from "./EmptyState-ZsOlvU4d.mjs";
|
|
7
|
+
import { o as Fe, y as He, z as oe } from "./utils-Hu77fGGe.mjs";
|
|
8
8
|
import { surfaceSolidCard as Me, onLightSurfaceTransparentDeep as We, onDarkSurfaceTransparentDeep as Xe, onLightSurfaceTransparentTertiary as Ye, onDarkSurfaceTransparentTertiary as Ze, textAccent as Ke, shadowDownSoftL as qe, textPrimary as Ue } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
9
9
|
import f, { keyframes as L, css as Se, createGlobalStyle as Je } from "styled-components";
|
|
10
|
-
import {
|
|
10
|
+
import { T as Qe } from "./AiAgentPopup-CtMhai1X.mjs";
|
|
11
11
|
const et = ({
|
|
12
12
|
controller: e,
|
|
13
13
|
pauseHoldDelay: t,
|
|
14
14
|
tapPrevZone: n,
|
|
15
15
|
isOpen: o
|
|
16
16
|
}) => {
|
|
17
|
-
const r =
|
|
17
|
+
const r = T(), g = T(!1), d = T("next"), c = () => {
|
|
18
18
|
r.current && (clearTimeout(r.current), r.current = void 0);
|
|
19
19
|
}, w = (p) => {
|
|
20
20
|
const l = p.currentTarget.getBoundingClientRect(), I = l.width > 0 ? (p.clientX - l.left) / l.width : 1;
|
|
@@ -119,7 +119,7 @@ const et = ({
|
|
|
119
119
|
const o = e.objectFit ?? "cover", r = t === "loaded";
|
|
120
120
|
return t === "error" ? /* @__PURE__ */ i(pe, { className: _.content, children: /* @__PURE__ */ i(at, { children: n }) }) : /* @__PURE__ */ H(pe, { className: _.content, children: [
|
|
121
121
|
/* @__PURE__ */ i(it, { src: e.src, alt: "", draggable: !1, $objectFit: o, $loaded: r }),
|
|
122
|
-
t === "loading" ? /* @__PURE__ */ i(st, { children: /* @__PURE__ */ i(
|
|
122
|
+
t === "loading" ? /* @__PURE__ */ i(st, { children: /* @__PURE__ */ i(Te, { view: "default", size: "l" }) }) : null
|
|
123
123
|
] });
|
|
124
124
|
}, ue = (e, t) => {
|
|
125
125
|
e && (e.style.transform = `scaleX(${t})`);
|
|
@@ -132,7 +132,7 @@ const et = ({
|
|
|
132
132
|
resetKey: g,
|
|
133
133
|
onComplete: d
|
|
134
134
|
}) => {
|
|
135
|
-
const c =
|
|
135
|
+
const c = T(0), w = T(d);
|
|
136
136
|
w.current = d, A(() => {
|
|
137
137
|
c.current = 0, ue(e.current, 0);
|
|
138
138
|
}, [g, e]), A(() => {
|
|
@@ -175,7 +175,7 @@ const et = ({
|
|
|
175
175
|
slideIndex: c,
|
|
176
176
|
isPlaying: w,
|
|
177
177
|
isOpen: b
|
|
178
|
-
} = q(t), a = Fe(), l = (g ?? a) === "dark", I = l ? Ye : Ze, S = l ? We : Xe, v = o[d], x = (v == null ? void 0 : v.slides) ?? [], $ =
|
|
178
|
+
} = q(t), a = Fe(), l = (g ?? a) === "dark", I = l ? Ye : Ze, S = l ? We : Xe, v = o[d], x = (v == null ? void 0 : v.slides) ?? [], $ = T(null), O = ((z = x[c]) == null ? void 0 : z.duration) ?? (v == null ? void 0 : v.defaultDuration) ?? r;
|
|
179
179
|
return dt({
|
|
180
180
|
fillRef: $,
|
|
181
181
|
active: b,
|
|
@@ -227,7 +227,7 @@ const et = ({
|
|
|
227
227
|
pauseHoldDelay: g,
|
|
228
228
|
tapPrevZone: d,
|
|
229
229
|
isOpen: l
|
|
230
|
-
}), O =
|
|
230
|
+
}), O = T();
|
|
231
231
|
A(() => {
|
|
232
232
|
if (v !== "error" || !S)
|
|
233
233
|
return;
|
|
@@ -345,7 +345,7 @@ const et = ({
|
|
|
345
345
|
maxWidth: O
|
|
346
346
|
}, $align: j, children: /* @__PURE__ */ i(Qe, { ...P }) }) : null
|
|
347
347
|
] });
|
|
348
|
-
}, Pt = L(["from{opacity:0;}to{opacity:1;}"]),
|
|
348
|
+
}, Pt = L(["from{opacity:0;}to{opacity:1;}"]), Tt = L(["from{opacity:1;}to{opacity:0;}"]), we = (e) => Se(["animation:", " ", " ease forwards;"], e ? Tt : Pt, e ? "0.2s" : "0.24s"), kt = f.div.withConfig({
|
|
349
349
|
displayName: "StoriesViewerstyled__StyledRoot"
|
|
350
350
|
})(["position:fixed;inset:0;z-index:", ";display:flex;align-items:center;justify-content:center;"], ({
|
|
351
351
|
$zIndex: e
|
|
@@ -384,7 +384,7 @@ const et = ({
|
|
|
384
384
|
isOpen: a,
|
|
385
385
|
groupIndex: p,
|
|
386
386
|
slideIndex: l
|
|
387
|
-
} = q(e), [I, S] = fe(a), v =
|
|
387
|
+
} = q(e), [I, S] = fe(a), v = T(null);
|
|
388
388
|
A(() => {
|
|
389
389
|
a && S(!0);
|
|
390
390
|
}, [a]), A(() => {
|
|
@@ -398,11 +398,11 @@ const et = ({
|
|
|
398
398
|
}, [x]);
|
|
399
399
|
if (!I || typeof document > "u")
|
|
400
400
|
return null;
|
|
401
|
-
const O = ((Q = n[p]) == null ? void 0 : Q.slides.length) ?? 0, z = p > 0 || l > 0, B = l + 1 < O || p + 1 < n.length, E = n.reduce((D, M) => D + M.slides.length, 0), R = c === "always" || c === "auto" && E > 1, P = R && (z || !w), j = R && (B || !w), G = (D) => D.stopPropagation(), J = /* @__PURE__ */ H(
|
|
401
|
+
const O = ((Q = n[p]) == null ? void 0 : Q.slides.length) ?? 0, z = p > 0 || l > 0, B = l + 1 < O || p + 1 < n.length, E = n.reduce((D, M) => D + M.slides.length, 0), R = c === "always" || c === "auto" && E > 1, P = R && (z || !w), j = R && (B || !w), G = (D) => D.stopPropagation(), J = /* @__PURE__ */ H(kt, { className: _.viewer, $zIndex: g, onClick: () => t.close(), children: [
|
|
402
402
|
o ? /* @__PURE__ */ i(Ot, { className: _.overlay, $color: r, $closing: x }) : null,
|
|
403
403
|
d === "slide" ? /* @__PURE__ */ i(Bt, {}) : null,
|
|
404
404
|
/* @__PURE__ */ H(Et, { ref: v, tabIndex: -1, className: _.stage, children: [
|
|
405
|
-
P ? /* @__PURE__ */ i(ge, { className: _.arrowPrev, $side: "prev", $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Назад", disabled: !z, onClick: () => t.prev(), children: /* @__PURE__ */ i(
|
|
405
|
+
P ? /* @__PURE__ */ i(ge, { className: _.arrowPrev, $side: "prev", $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Назад", disabled: !z, onClick: () => t.prev(), children: /* @__PURE__ */ i(ke, { size: "s" }) }) }) : null,
|
|
406
406
|
/* @__PURE__ */ i(vt, { closing: x, onAnimationEnd: $ }),
|
|
407
407
|
j ? /* @__PURE__ */ i(ge, { className: _.arrowNext, $side: "next", $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Вперёд", disabled: !B, onClick: () => t.next(), children: /* @__PURE__ */ i(Oe, { size: "s" }) }) }) : null,
|
|
408
408
|
/* @__PURE__ */ i(Rt, { className: _.close, $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Закрыть", onClick: () => t.close(), children: /* @__PURE__ */ i(Ee, { size: "s" }) }) })
|
|
@@ -415,7 +415,7 @@ const et = ({
|
|
|
415
415
|
}, Symbol.toStringTag, { value: "Module" })), Lt = De(() => Promise.resolve().then(() => Vt).then((e) => ({
|
|
416
416
|
default: e.StoriesViewer
|
|
417
417
|
}))), jt = (e) => {
|
|
418
|
-
const t =
|
|
418
|
+
const t = T(e);
|
|
419
419
|
return t.current = e, ye((n) => {
|
|
420
420
|
const o = t.current[n];
|
|
421
421
|
if (!o)
|
|
@@ -517,19 +517,19 @@ const et = ({
|
|
|
517
517
|
} = e, D = be(n).map((C) => ({
|
|
518
518
|
slides: C.props.slides ?? [],
|
|
519
519
|
defaultDuration: C.props.defaultDuration
|
|
520
|
-
})), M =
|
|
520
|
+
})), M = T();
|
|
521
521
|
M.current || (M.current = Ht({
|
|
522
522
|
isOpen: g ?? !1
|
|
523
523
|
}));
|
|
524
|
-
const u = M.current, U =
|
|
524
|
+
const u = M.current, U = T(D);
|
|
525
525
|
U.current = D;
|
|
526
|
-
const ae =
|
|
526
|
+
const ae = T({
|
|
527
527
|
groupTransition: R
|
|
528
528
|
});
|
|
529
529
|
ae.current = {
|
|
530
530
|
groupTransition: R
|
|
531
531
|
};
|
|
532
|
-
const W =
|
|
532
|
+
const W = T({
|
|
533
533
|
onOpenChange: w,
|
|
534
534
|
onGroupChange: b,
|
|
535
535
|
onSlideChange: a,
|
|
@@ -545,19 +545,19 @@ const et = ({
|
|
|
545
545
|
onGroupComplete: l,
|
|
546
546
|
onClose: I
|
|
547
547
|
};
|
|
548
|
-
const ee =
|
|
548
|
+
const ee = T();
|
|
549
549
|
if (!ee.current) {
|
|
550
550
|
const C = (s, N) => u.setState({
|
|
551
551
|
slideIndex: s,
|
|
552
552
|
direction: N,
|
|
553
553
|
isPlaying: !0
|
|
554
|
-
}), m = (s, N,
|
|
554
|
+
}), m = (s, N, k) => Wt(() => u.setState({
|
|
555
555
|
groupIndex: s,
|
|
556
556
|
slideIndex: N,
|
|
557
|
-
direction:
|
|
557
|
+
direction: k,
|
|
558
558
|
isPlaying: !0
|
|
559
559
|
}), {
|
|
560
|
-
direction:
|
|
560
|
+
direction: k,
|
|
561
561
|
enabled: ae.current.groupTransition !== "none"
|
|
562
562
|
}), h = () => {
|
|
563
563
|
var s, N;
|
|
@@ -568,10 +568,10 @@ const et = ({
|
|
|
568
568
|
};
|
|
569
569
|
ee.current = {
|
|
570
570
|
open: (s, N) => {
|
|
571
|
-
const
|
|
571
|
+
const k = u.getSnapshot();
|
|
572
572
|
u.setState({
|
|
573
573
|
isOpen: !0,
|
|
574
|
-
groupIndex: s ??
|
|
574
|
+
groupIndex: s ?? k.groupIndex,
|
|
575
575
|
slideIndex: N ?? 0,
|
|
576
576
|
isPlaying: !0,
|
|
577
577
|
direction: "next"
|
|
@@ -582,8 +582,8 @@ const et = ({
|
|
|
582
582
|
isPlaying: !1
|
|
583
583
|
}),
|
|
584
584
|
next: () => {
|
|
585
|
-
var
|
|
586
|
-
const s = u.getSnapshot(), N = ((
|
|
585
|
+
var k, V, X, Y, de;
|
|
586
|
+
const s = u.getSnapshot(), N = ((k = U.current[s.groupIndex]) == null ? void 0 : k.slides.length) ?? 0;
|
|
587
587
|
s.slideIndex + 1 < N ? C(s.slideIndex + 1, "next") : s.groupIndex + 1 < U.current.length ? ((X = (V = W.current).onGroupComplete) == null || X.call(V, s.groupIndex), m(s.groupIndex + 1, 0, "next")) : ((de = (Y = W.current).onGroupComplete) == null || de.call(Y, s.groupIndex), h());
|
|
588
588
|
},
|
|
589
589
|
prev: () => {
|
|
@@ -599,8 +599,8 @@ const et = ({
|
|
|
599
599
|
s.groupIndex > 0 && m(s.groupIndex - 1, 0, "prev");
|
|
600
600
|
},
|
|
601
601
|
goTo: (s, N) => {
|
|
602
|
-
const
|
|
603
|
-
s ===
|
|
602
|
+
const k = u.getSnapshot(), V = s < k.groupIndex ? "prev" : "next";
|
|
603
|
+
s === k.groupIndex ? C(N ?? 0, V) : m(s, N ?? 0, V);
|
|
604
604
|
},
|
|
605
605
|
pause: () => u.setState({
|
|
606
606
|
isPlaying: !1
|
|
@@ -610,16 +610,16 @@ const et = ({
|
|
|
610
610
|
})
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
|
-
const te = ee.current, Ce = jt(D), le =
|
|
613
|
+
const te = ee.current, Ce = jt(D), le = T(u.getSnapshot());
|
|
614
614
|
A(() => u.subscribe(() => {
|
|
615
|
-
var s, N,
|
|
615
|
+
var s, N, k, V, X, Y;
|
|
616
616
|
const C = le.current, m = u.getSnapshot();
|
|
617
617
|
le.current = m;
|
|
618
618
|
const h = W.current;
|
|
619
619
|
if (C.isOpen !== m.isOpen) {
|
|
620
620
|
(s = h.onOpenChange) == null || s.call(h, m.isOpen, {
|
|
621
621
|
groupIndex: m.groupIndex
|
|
622
|
-
}), m.isOpen ? ((N = h.onGroupChange) == null || N.call(h, m.groupIndex), (
|
|
622
|
+
}), m.isOpen ? ((N = h.onGroupChange) == null || N.call(h, m.groupIndex), (k = h.onSlideChange) == null || k.call(h, m.groupIndex, m.slideIndex)) : (V = h.onClose) == null || V.call(h);
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
625
625
|
m.isOpen && (C.groupIndex !== m.groupIndex && ((X = h.onGroupChange) == null || X.call(h, m.groupIndex)), (C.groupIndex !== m.groupIndex || C.slideIndex !== m.slideIndex) && ((Y = h.onSlideChange) == null || Y.call(h, m.groupIndex, m.slideIndex)));
|