@daisforge/ui 1.22.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-BJ5gD6Nx.mjs → FiltersActions-CS27WxA6.mjs} +15 -15
- 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-CfV2bs_4.mjs → ListOfFilters-CEWrWotU.mjs} +3 -3
- package/chunks/{ListOfFilters-mqTsQbq_.cjs → ListOfFilters-DNi-z1cn.cjs} +1 -1
- package/chunks/MassActions-DJiKcC6r.cjs +1 -0
- package/chunks/{MassActions-C6LY-g9r.mjs → MassActions-NLCRjIHw.mjs} +46 -46
- 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-vv1HTrxe.cjs → Table-CZludfzU.cjs} +6 -6
- package/chunks/{Table-tUWuA3Ri.mjs → Table-FrYs56BB.mjs} +1597 -1586
- package/chunks/{TableCanvas-BX5aciu7.mjs → TableCanvas-CasYPFSm.mjs} +5872 -5633
- 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/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/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/type.d.ts +3 -0
- 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-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-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/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 +19 -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/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 +31 -31
- 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 +13 -13
- 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/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 +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +34 -34
- 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/CanvasLink.d.ts +2 -2
- package/components/TableGlide/lib/canvas/primitives/CanvasText.d.ts +3 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +5 -5
- 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 +1 -104
- 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/index.cjs +3 -3
- package/components/TourWidget/index.mjs +14 -14
- 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 -1859
- 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 +1158 -206
- package/mixins/index.cjs +4 -4
- package/mixins/index.mjs +61 -54
- package/package.json +6 -6
- 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-Bg5wvHFG.cjs +0 -1
- package/chunks/MassActions-BTrj9l-R.cjs +0 -1
- package/chunks/PageTitle-CrBeieoq.cjs +0 -9
- package/chunks/Stories-UYVANawW.cjs +0 -1
- package/chunks/TableCanvas-qnwh4c5g.cjs +0 -30
- package/chunks/TableGlide-BLbbkn4C.mjs +0 -8154
- package/chunks/TableGlide-CZ2mkokV.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
|
@@ -1,537 +0,0 @@
|
|
|
1
|
-
import { EmbeddedButton as et } from "@salutejs/sdds-finai/beta";
|
|
2
|
-
import { IconButtonFilter as it } from "../components/IconButton/index.mjs";
|
|
3
|
-
import { Dropdown as nt, ChipGroup as at, Chip as lt, Tooltip as B, TextXS as ot, TextS as dt, TextM as rt, TextL as st, H5 as pt, H4 as ct, H3 as ht, H2 as gt, H1 as yt, DsplS as mt, DsplM as ut, DsplL as xt, BodyXXS as ft, BodyXS as wt, BodyS as St, BodyM as G, BodyL as vt, Link as Wt } from "@salutejs/sdds-finai";
|
|
4
|
-
import { jsx as i, jsxs as v, Fragment as _t } from "react/jsx-runtime";
|
|
5
|
-
import { inverseTextPrimary as Ct, bodyXS as Tt, textTertiary as bt, bodyM as At, textPrimary as V, textSecondary as T, bodyMBold as Ht, surfaceSolidCard as Nt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
6
|
-
import a, { css as A } from "styled-components";
|
|
7
|
-
import { u as It, a as Rt, m as S, b as N } from "./utils-u1KJ37g3.mjs";
|
|
8
|
-
import { forwardRef as Bt, useRef as R, createElement as Et, useState as $t, useCallback as I, useEffect as z, isValidElement as Lt } from "react";
|
|
9
|
-
import { IconDotsVerticalOutline as Dt, IconDotsHorizontalOutline as kt, IconInfoCircleOutline as Mt } from "@salutejs/plasma-icons";
|
|
10
|
-
import { Collapse as Ot } from "../components/Collapse/index.mjs";
|
|
11
|
-
const zt = {
|
|
12
|
-
l: {
|
|
13
|
-
xl: {
|
|
14
|
-
minWidth: "448px",
|
|
15
|
-
maxWidth: "unset",
|
|
16
|
-
// 608
|
|
17
|
-
width: "100%",
|
|
18
|
-
minHeight: "512px",
|
|
19
|
-
padding: "12px",
|
|
20
|
-
borderRadius: "16px"
|
|
21
|
-
},
|
|
22
|
-
lg: {
|
|
23
|
-
minWidth: "448px",
|
|
24
|
-
maxWidth: "unset",
|
|
25
|
-
// 608
|
|
26
|
-
width: "100%",
|
|
27
|
-
minHeight: "512px",
|
|
28
|
-
// 432px
|
|
29
|
-
padding: "12px",
|
|
30
|
-
borderRadius: "16px"
|
|
31
|
-
},
|
|
32
|
-
md: {
|
|
33
|
-
minWidth: "448px",
|
|
34
|
-
maxWidth: "unset",
|
|
35
|
-
// 608
|
|
36
|
-
width: "100%",
|
|
37
|
-
minHeight: "512px",
|
|
38
|
-
// 344px
|
|
39
|
-
padding: "12px",
|
|
40
|
-
borderRadius: "16px"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
m: {
|
|
44
|
-
xl: {
|
|
45
|
-
minWidth: "448px",
|
|
46
|
-
maxWidth: "unset",
|
|
47
|
-
// 608
|
|
48
|
-
width: "100%",
|
|
49
|
-
minHeight: "248px",
|
|
50
|
-
padding: "12px",
|
|
51
|
-
borderRadius: "16px"
|
|
52
|
-
},
|
|
53
|
-
lg: {
|
|
54
|
-
minWidth: "448px",
|
|
55
|
-
maxWidth: "unset",
|
|
56
|
-
// 608
|
|
57
|
-
width: "100%",
|
|
58
|
-
minHeight: "248px",
|
|
59
|
-
// 208px
|
|
60
|
-
padding: "12px",
|
|
61
|
-
borderRadius: "16px"
|
|
62
|
-
},
|
|
63
|
-
md: {
|
|
64
|
-
minWidth: "448px",
|
|
65
|
-
maxWidth: "unset",
|
|
66
|
-
// 608
|
|
67
|
-
width: "100%",
|
|
68
|
-
minHeight: "248px",
|
|
69
|
-
// 172px
|
|
70
|
-
padding: "12px",
|
|
71
|
-
borderRadius: "16px"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
s: {
|
|
75
|
-
xl: {
|
|
76
|
-
minWidth: "216px",
|
|
77
|
-
maxWidth: "unset",
|
|
78
|
-
// 296px
|
|
79
|
-
width: "100%",
|
|
80
|
-
minHeight: "248px",
|
|
81
|
-
padding: "12px",
|
|
82
|
-
borderRadius: "16px"
|
|
83
|
-
},
|
|
84
|
-
lg: {
|
|
85
|
-
minWidth: "216px",
|
|
86
|
-
maxWidth: "unset",
|
|
87
|
-
// 296px
|
|
88
|
-
width: "100%",
|
|
89
|
-
minHeight: "248px",
|
|
90
|
-
// 208px
|
|
91
|
-
padding: "12px",
|
|
92
|
-
borderRadius: "16px"
|
|
93
|
-
},
|
|
94
|
-
md: {
|
|
95
|
-
minWidth: "216px",
|
|
96
|
-
maxWidth: "unset",
|
|
97
|
-
// 296px
|
|
98
|
-
width: "100%",
|
|
99
|
-
minHeight: "248px",
|
|
100
|
-
// 172px
|
|
101
|
-
padding: "12px",
|
|
102
|
-
borderRadius: "16px"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}, Ft = {
|
|
106
|
-
l: {
|
|
107
|
-
topSlot: !0,
|
|
108
|
-
// Filters + chips
|
|
109
|
-
middleSlot: !0
|
|
110
|
-
// Tabs
|
|
111
|
-
},
|
|
112
|
-
m: {
|
|
113
|
-
topSlot: !0,
|
|
114
|
-
// Filters + chips
|
|
115
|
-
middleSlot: !1
|
|
116
|
-
// Tabs
|
|
117
|
-
},
|
|
118
|
-
s: {
|
|
119
|
-
topSlot: !0,
|
|
120
|
-
// Filters + chips
|
|
121
|
-
middleSlot: !1
|
|
122
|
-
// Tabs
|
|
123
|
-
}
|
|
124
|
-
}, r = {
|
|
125
|
-
root: "analytical-widget",
|
|
126
|
-
header: "analytical-widget__header",
|
|
127
|
-
popoverInfo: "analytical-widget__popover-info",
|
|
128
|
-
topSlot: "analytical-widget__top-slot",
|
|
129
|
-
middleSlot: "analytical-widget__middle-slot",
|
|
130
|
-
contentSlot: "analytical-widget__content",
|
|
131
|
-
headerActions: "analytical-widget__header-actions",
|
|
132
|
-
selfSpacedTopSlot: "analytical-widget__self-spaced-top-slot",
|
|
133
|
-
// Маркер на корне виджета: rightSlot шапки заполнен. По нему абсолютная
|
|
134
|
-
// dots-кнопка (сиблинг) поднимает top с 12 до 16 через CSS.
|
|
135
|
-
hasRightSlot: "analytical-widget--has-right-slot"
|
|
136
|
-
}, Gt = a.div.withConfig({
|
|
137
|
-
displayName: "AnalyticalWidgetIconButtonDotsstyled__StyledAbsoluteDots"
|
|
138
|
-
})(["position:absolute;top:", "px;right:", "px;.", " ~ &,&:has(~ .", "),&:has(~ * .", "){top:", "px;}"], ({
|
|
139
|
-
$offset: t
|
|
140
|
-
}) => t, ({
|
|
141
|
-
$offset: t
|
|
142
|
-
}) => t, r.hasRightSlot, r.hasRightSlot, r.hasRightSlot, ({
|
|
143
|
-
$offset: t
|
|
144
|
-
}) => t + 4), X = Bt(({
|
|
145
|
-
dropdownProps: t,
|
|
146
|
-
iconSize: e,
|
|
147
|
-
iconOrientation: o = "vertical",
|
|
148
|
-
view: d = "default",
|
|
149
|
-
size: l = "m",
|
|
150
|
-
absolute: s = !1,
|
|
151
|
-
absoluteOffset: n = 12,
|
|
152
|
-
style: g,
|
|
153
|
-
...p
|
|
154
|
-
}, y) => {
|
|
155
|
-
const f = /* @__PURE__ */ i(et, { ref: y, view: d, size: l, style: g, ...p, children: /* @__PURE__ */ i(o === "vertical" ? Dt : kt, { size: e ?? "s" }) }), w = t ? /* @__PURE__ */ i(nt, { ...t, children: f }) : f;
|
|
156
|
-
return s ? /* @__PURE__ */ i(Gt, { $offset: n, children: w }) : w;
|
|
157
|
-
});
|
|
158
|
-
X.displayName = "AnalyticalWidgetIconButtonDots";
|
|
159
|
-
const Vt = a(lt).withConfig({
|
|
160
|
-
displayName: "AnalyticalWidgetChipsGroupstyled__StyledChip"
|
|
161
|
-
})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]), Xt = a(at).withConfig({
|
|
162
|
-
displayName: "AnalyticalWidgetChipsGroupstyled__StyledChipGroup"
|
|
163
|
-
})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);padding-top:8px;"]), Yt = ({
|
|
164
|
-
chips: t,
|
|
165
|
-
commonView: e = "default",
|
|
166
|
-
commonSize: o = "xs",
|
|
167
|
-
opened: d = !1,
|
|
168
|
-
...l
|
|
169
|
-
}) => {
|
|
170
|
-
const s = It(d, 300, !1), n = R(t);
|
|
171
|
-
t.length > 0 && (n.current = t);
|
|
172
|
-
const g = t.length > 0 ? t : n.current;
|
|
173
|
-
return /* @__PURE__ */ i("div", { className: r.selfSpacedTopSlot, children: /* @__PURE__ */ i(Ot, { isOpen: s, unMountOnClose: !0, children: /* @__PURE__ */ i(Xt, { view: e, size: o, isCommonChipStyles: !1, ...l, children: g.map(({
|
|
174
|
-
key: p,
|
|
175
|
-
view: y,
|
|
176
|
-
...c
|
|
177
|
-
}, f) => /* @__PURE__ */ Et(Vt, { size: "xs", appearance: "transparent", ...c, key: p ?? `${c == null ? void 0 : c.name}-${f}` })) }) }) });
|
|
178
|
-
}, jt = a.div.withConfig({
|
|
179
|
-
displayName: "TooltipList__StyledTooltipContent"
|
|
180
|
-
})(["color:", ";", ";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"], () => Ct, () => A(Tt)), Pt = ({
|
|
181
|
-
groupLabel: t,
|
|
182
|
-
items: e
|
|
183
|
-
}) => /* @__PURE__ */ v(jt, { children: [
|
|
184
|
-
/* @__PURE__ */ i("span", { children: t }),
|
|
185
|
-
/* @__PURE__ */ i("ul", { children: e.map((o, d) => (
|
|
186
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
187
|
-
/* @__PURE__ */ i("li", { children: o }, `${o}-${d}`)
|
|
188
|
-
)) })
|
|
189
|
-
] }), qt = a.div.withConfig({
|
|
190
|
-
displayName: "TooltipList__FullWidthWrapper"
|
|
191
|
-
})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]), Ie = ({
|
|
192
|
-
groupLabel: t,
|
|
193
|
-
items: e,
|
|
194
|
-
children: o,
|
|
195
|
-
fullWidth: d,
|
|
196
|
-
...l
|
|
197
|
-
}) => {
|
|
198
|
-
const s = e.length > 0, n = /* @__PURE__ */ i(
|
|
199
|
-
B,
|
|
200
|
-
{
|
|
201
|
-
usePortal: !0,
|
|
202
|
-
size: "s",
|
|
203
|
-
mouseEnterDelay: 500,
|
|
204
|
-
...l,
|
|
205
|
-
trigger: s ? l.trigger ?? "hover" : "none",
|
|
206
|
-
text: s ? /* @__PURE__ */ i(Pt, { groupLabel: t, items: e }) : null,
|
|
207
|
-
opened: s ? l.opened : !1,
|
|
208
|
-
children: o
|
|
209
|
-
}
|
|
210
|
-
);
|
|
211
|
-
return d ? /* @__PURE__ */ i(qt, { children: n }) : n;
|
|
212
|
-
}, Jt = {
|
|
213
|
-
BodyL: vt,
|
|
214
|
-
BodyM: G,
|
|
215
|
-
BodyS: St,
|
|
216
|
-
BodyXS: wt,
|
|
217
|
-
BodyXXS: ft,
|
|
218
|
-
DsplL: xt,
|
|
219
|
-
DsplM: ut,
|
|
220
|
-
DsplS: mt,
|
|
221
|
-
H1: yt,
|
|
222
|
-
H2: gt,
|
|
223
|
-
H3: ht,
|
|
224
|
-
H4: ct,
|
|
225
|
-
H5: pt,
|
|
226
|
-
TextL: st,
|
|
227
|
-
TextM: rt,
|
|
228
|
-
TextS: dt,
|
|
229
|
-
TextXS: ot
|
|
230
|
-
};
|
|
231
|
-
function E({
|
|
232
|
-
variant: t,
|
|
233
|
-
children: e,
|
|
234
|
-
refTypography: o,
|
|
235
|
-
...d
|
|
236
|
-
}) {
|
|
237
|
-
const l = Jt[t];
|
|
238
|
-
return /* @__PURE__ */ i(l, { ...d, ref: o, children: e });
|
|
239
|
-
}
|
|
240
|
-
E.displayName = "Typography";
|
|
241
|
-
const b = "typography-with-auto-tooltip-root";
|
|
242
|
-
let W = !1, x = null, C = 0;
|
|
243
|
-
function Y() {
|
|
244
|
-
if (typeof document > "u")
|
|
245
|
-
return;
|
|
246
|
-
const t = document.getElementById(b);
|
|
247
|
-
t && t.querySelectorAll("[id^='plasma-popover-root']:empty").forEach((e) => e.remove());
|
|
248
|
-
}
|
|
249
|
-
function Kt() {
|
|
250
|
-
W || (W = !0, x = setTimeout(() => {
|
|
251
|
-
W = !1, x = null, Y();
|
|
252
|
-
}, 0));
|
|
253
|
-
}
|
|
254
|
-
function Qt() {
|
|
255
|
-
x && (clearTimeout(x), x = null), W = !1;
|
|
256
|
-
}
|
|
257
|
-
function Ut() {
|
|
258
|
-
x && (clearTimeout(x), x = null), W = !1, Y();
|
|
259
|
-
}
|
|
260
|
-
function Zt() {
|
|
261
|
-
if (!(typeof document > "u")) {
|
|
262
|
-
if (C += 1, C === 1) {
|
|
263
|
-
const t = document.createElement("div");
|
|
264
|
-
t.id = b, document.body.appendChild(t);
|
|
265
|
-
}
|
|
266
|
-
return () => {
|
|
267
|
-
if (C -= 1, C === 0) {
|
|
268
|
-
const t = document.getElementById(b);
|
|
269
|
-
t && (t.querySelectorAll("[id^='plasma-popover-root']").length > 0 || t.remove());
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
function te() {
|
|
275
|
-
return {
|
|
276
|
-
schedule: Kt,
|
|
277
|
-
flush: Ut,
|
|
278
|
-
cancel: Qt,
|
|
279
|
-
getContainerId: () => b,
|
|
280
|
-
createContainer: Zt
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
const ee = a(B).withConfig({
|
|
284
|
-
displayName: "TypographyWithAutoTooltipstyled__StyledTooltip"
|
|
285
|
-
})(["&.popover-target{width:100%;}"]), ie = a.div.withConfig({
|
|
286
|
-
displayName: "TypographyWithAutoTooltipstyled__StyleTooltipWrapper"
|
|
287
|
-
})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), ne = 1, $ = ({
|
|
288
|
-
tooltipText: t,
|
|
289
|
-
tooltipProps: e,
|
|
290
|
-
lines: o = 1,
|
|
291
|
-
className: d,
|
|
292
|
-
children: l,
|
|
293
|
-
...s
|
|
294
|
-
}) => {
|
|
295
|
-
const {
|
|
296
|
-
mouseEnterDelay: n = 500,
|
|
297
|
-
mouseLeaveDelay: g = 0,
|
|
298
|
-
...p
|
|
299
|
-
} = e || {}, y = R(null), [c, f] = $t(!1), w = R(), {
|
|
300
|
-
schedule: _,
|
|
301
|
-
getContainerId: P,
|
|
302
|
-
createContainer: L
|
|
303
|
-
} = te(), D = I(() => {
|
|
304
|
-
if (!y.current)
|
|
305
|
-
return !1;
|
|
306
|
-
const h = y.current;
|
|
307
|
-
if (o > 1)
|
|
308
|
-
return h.scrollHeight > h.clientHeight || h.scrollWidth > h.clientWidth;
|
|
309
|
-
try {
|
|
310
|
-
const m = document.createRange();
|
|
311
|
-
m.selectNodeContents(h);
|
|
312
|
-
const U = m.getBoundingClientRect().width, Z = h.getBoundingClientRect().width;
|
|
313
|
-
m.detach();
|
|
314
|
-
const tt = window.devicePixelRatio || 1;
|
|
315
|
-
return (U - Z) * tt > ne;
|
|
316
|
-
} catch {
|
|
317
|
-
return !1;
|
|
318
|
-
}
|
|
319
|
-
}, [o]), q = I(() => {
|
|
320
|
-
D() && (w.current = setTimeout(() => {
|
|
321
|
-
f(!0);
|
|
322
|
-
}, n));
|
|
323
|
-
}, [D, n]), J = I(() => {
|
|
324
|
-
clearTimeout(w.current), setTimeout(() => {
|
|
325
|
-
f(!1), _();
|
|
326
|
-
}, g);
|
|
327
|
-
}, [g, _]), {
|
|
328
|
-
variant: K,
|
|
329
|
-
bold: k,
|
|
330
|
-
size: M,
|
|
331
|
-
...u
|
|
332
|
-
} = s, Q = {
|
|
333
|
-
variant: K,
|
|
334
|
-
...k !== void 0 && {
|
|
335
|
-
bold: k
|
|
336
|
-
},
|
|
337
|
-
...M !== void 0 && {
|
|
338
|
-
size: M
|
|
339
|
-
},
|
|
340
|
-
...u,
|
|
341
|
-
refTypography: y,
|
|
342
|
-
onMouseEnter: (h) => {
|
|
343
|
-
var m;
|
|
344
|
-
(m = u.onMouseEnter) == null || m.call(u, h);
|
|
345
|
-
},
|
|
346
|
-
onMouseLeave: (h) => {
|
|
347
|
-
var m;
|
|
348
|
-
(m = u.onMouseLeave) == null || m.call(u, h);
|
|
349
|
-
},
|
|
350
|
-
style: {
|
|
351
|
-
...Rt({
|
|
352
|
-
lines: o
|
|
353
|
-
}),
|
|
354
|
-
...u.style || {}
|
|
355
|
-
},
|
|
356
|
-
children: l
|
|
357
|
-
}, O = /* @__PURE__ */ i(E, { ...Q, children: l });
|
|
358
|
-
return z(() => L(), [L]), z(() => () => {
|
|
359
|
-
clearTimeout(w.current), _();
|
|
360
|
-
}, [_]), /* @__PURE__ */ i(ie, { className: d, onMouseEnter: q, onMouseLeave: J, children: c ? /* @__PURE__ */ i(ee, { opened: c, text: t ?? "", target: O, frame: P(), ...p }) : O });
|
|
361
|
-
}, ae = () => A(Ht), j = () => A(At), le = a.header.withConfig({
|
|
362
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledHeader"
|
|
363
|
-
})(["display:flex;justify-content:space-between;align-items:center;padding-right:24px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], r.popoverInfo), oe = a.div.withConfig({
|
|
364
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledLeftSlot"
|
|
365
|
-
})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;margin-right:16px;"]), de = a.div.withConfig({
|
|
366
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleContainer"
|
|
367
|
-
})(["margin:0;display:flex;align-items:center;flex-shrink:1;min-width:0;"]);
|
|
368
|
-
a.p.withConfig({
|
|
369
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledTitle"
|
|
370
|
-
})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => ae(), () => V);
|
|
371
|
-
const re = a($).withConfig({
|
|
372
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"
|
|
373
|
-
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), se = a($).withConfig({
|
|
374
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"
|
|
375
|
-
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), pe = a.p.withConfig({
|
|
376
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledAfterTitle"
|
|
377
|
-
})(["flex-shrink:0;margin:0;margin-right:4px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => j(), () => bt), ce = a.div.attrs({
|
|
378
|
-
className: r.headerActions
|
|
379
|
-
}).withConfig({
|
|
380
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledHeaderActions"
|
|
381
|
-
})(["display:inline-flex;align-items:center;flex-shrink:0;opacity:0;transition:opacity 0.3s ease;"]);
|
|
382
|
-
a.p.withConfig({
|
|
383
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitle"
|
|
384
|
-
})(["", " flex-shrink:1;margin:0;min-width:0;color:", ";"], () => j(), () => T);
|
|
385
|
-
a(E).withConfig({
|
|
386
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"
|
|
387
|
-
})(["color:", ";"], () => T);
|
|
388
|
-
const he = a(Wt).withConfig({
|
|
389
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleLink"
|
|
390
|
-
})(["display:flex;min-width:0;flex-shrink:1;"]);
|
|
391
|
-
a($).withConfig({
|
|
392
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"
|
|
393
|
-
})(["flex-shrink:1;margin:0;min-width:0;"]);
|
|
394
|
-
const ge = a.div.withConfig({
|
|
395
|
-
displayName: "AnalyticalWidgetHeaderstyled__StyledRightSlot"
|
|
396
|
-
})(["align-self:start;flex-shrink:0;"]), F = ({
|
|
397
|
-
title: t,
|
|
398
|
-
titleTooltipProps: e
|
|
399
|
-
}) => typeof t != "string" ? /* @__PURE__ */ i(_t, { children: t }) : /* @__PURE__ */ i(re, { tooltipText: t, tooltipProps: {
|
|
400
|
-
placement: "top",
|
|
401
|
-
...e
|
|
402
|
-
}, variant: "BodyM", bold: !0, style: {
|
|
403
|
-
color: V,
|
|
404
|
-
wordBreak: "normal"
|
|
405
|
-
}, lines: 1, children: t }), ye = ({
|
|
406
|
-
title: t,
|
|
407
|
-
titleTooltipProps: e,
|
|
408
|
-
badge: o,
|
|
409
|
-
badgeStyles: d,
|
|
410
|
-
subtitle: l,
|
|
411
|
-
subtitleTooltipProps: s,
|
|
412
|
-
infoTooltipText: n,
|
|
413
|
-
infoTooltipProps: g,
|
|
414
|
-
rightSlot: p,
|
|
415
|
-
className: y,
|
|
416
|
-
titleLinkProps: c
|
|
417
|
-
}) => /* @__PURE__ */ v(le, { className: S(r.header, y), children: [
|
|
418
|
-
/* @__PURE__ */ v(oe, { children: [
|
|
419
|
-
/* @__PURE__ */ v(de, { children: [
|
|
420
|
-
t && c ? /* @__PURE__ */ i(he, { underline: "none", ...c, children: /* @__PURE__ */ i(F, { title: t, titleTooltipProps: e }) }) : /* @__PURE__ */ i(F, { title: t, titleTooltipProps: e }),
|
|
421
|
-
o && /* @__PURE__ */ i(pe, { style: d, children: o }),
|
|
422
|
-
n && /* @__PURE__ */ i(ce, { children: /* @__PURE__ */ i(B, { trigger: "hover", placement: "top", text: n, target: /* @__PURE__ */ i(Mt, { size: "xs", style: {
|
|
423
|
-
cursor: "pointer",
|
|
424
|
-
color: T
|
|
425
|
-
} }), className: S(r.popoverInfo), ...g }) })
|
|
426
|
-
] }),
|
|
427
|
-
l && (typeof l == "string" ? /* @__PURE__ */ i(se, { variant: "BodyXS", tooltipText: l, style: {
|
|
428
|
-
color: T,
|
|
429
|
-
wordBreak: "normal"
|
|
430
|
-
}, tooltipProps: {
|
|
431
|
-
placement: "top",
|
|
432
|
-
...s
|
|
433
|
-
}, lines: 1, children: l }) : l)
|
|
434
|
-
] }),
|
|
435
|
-
p && /* @__PURE__ */ i(ge, { children: p })
|
|
436
|
-
] }), me = (t) => {
|
|
437
|
-
const e = zt[t];
|
|
438
|
-
return {
|
|
439
|
-
xl: `
|
|
440
|
-
--analytical-widget-padding: ${e.xl.padding};
|
|
441
|
-
--analytical-widget-br: ${e.xl.borderRadius};
|
|
442
|
-
--analytical-widget-min-height: ${e.xl.minHeight};
|
|
443
|
-
--analytical-widget-min-width: ${e.xl.minWidth || "unset"};
|
|
444
|
-
--analytical-widget-max-width: ${e.xl.maxWidth || "unset"};
|
|
445
|
-
|
|
446
|
-
width: ${e.xl.width};
|
|
447
|
-
min-height: var(--analytical-widget-min-height);
|
|
448
|
-
height: 100%;
|
|
449
|
-
min-width: var(--analytical-widget-min-width);
|
|
450
|
-
max-width: var(--analytical-widget-max-width);
|
|
451
|
-
padding: var(--analytical-widget-padding);
|
|
452
|
-
border-radius: var(--analytical-widget-br);
|
|
453
|
-
`,
|
|
454
|
-
lg: `
|
|
455
|
-
--analytical-widget-padding: ${e.lg.padding};
|
|
456
|
-
--analytical-widget-br: ${e.lg.borderRadius};
|
|
457
|
-
--analytical-widget-min-height: ${e.lg.minHeight};
|
|
458
|
-
--analytical-widget-min-width: ${e.lg.minWidth || "unset"};
|
|
459
|
-
--analytical-widget-max-width: ${e.lg.maxWidth || "unset"};
|
|
460
|
-
|
|
461
|
-
width: ${e.lg.width};
|
|
462
|
-
min-height: var(--analytical-widget-min-height);
|
|
463
|
-
height: 100%;
|
|
464
|
-
min-width: var(--analytical-widget-min-width);
|
|
465
|
-
max-width: var(--analytical-widget-max-width);
|
|
466
|
-
padding: var(--analytical-widget-padding);
|
|
467
|
-
border-radius: var(--analytical-widget-br);
|
|
468
|
-
`,
|
|
469
|
-
md: `
|
|
470
|
-
--analytical-widget-padding: ${e.md.padding};
|
|
471
|
-
--analytical-widget-br: ${e.md.borderRadius};
|
|
472
|
-
--analytical-widget-min-height: ${e.md.minHeight};
|
|
473
|
-
--analytical-widget-min-width: ${e.md.minWidth || "unset"};
|
|
474
|
-
--analytical-widget-max-width: ${e.md.maxWidth || "unset"};
|
|
475
|
-
|
|
476
|
-
width: ${e.md.width};
|
|
477
|
-
min-height: var(--analytical-widget-min-height);
|
|
478
|
-
height: 100%;
|
|
479
|
-
min-width: var(--analytical-widget-min-width);
|
|
480
|
-
max-width: var(--analytical-widget-max-width);
|
|
481
|
-
padding: var(--analytical-widget-padding);
|
|
482
|
-
border-radius: var(--analytical-widget-br);
|
|
483
|
-
`
|
|
484
|
-
};
|
|
485
|
-
}, ue = a.article.withConfig({
|
|
486
|
-
displayName: "AnalyticalWidgetstyled__StyledWidget"
|
|
487
|
-
})(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""], Nt, r.headerActions, ({
|
|
488
|
-
$size: t
|
|
489
|
-
}) => {
|
|
490
|
-
const e = me(t);
|
|
491
|
-
return A(["", " ", " ", " "], N.exact(0, 1439)(e.md), N.exact(1440, 1919)(e.lg), N.exact(1920, 1e5)(e.xl));
|
|
492
|
-
}, ({
|
|
493
|
-
$css: t
|
|
494
|
-
}) => t), xe = a(G).withConfig({
|
|
495
|
-
displayName: "AnalyticalWidgetstyled__StyledTopSlot"
|
|
496
|
-
})(["overflow:hidden;margin-top:8px;&:empty{margin-top:0;}&:has(.", "){margin-top:0;}"], r.selfSpacedTopSlot), fe = a.div.withConfig({
|
|
497
|
-
displayName: "AnalyticalWidgetstyled__StyledMiddleSlot"
|
|
498
|
-
})(["overflow:hidden;padding-top:8px;"]), we = a.div.withConfig({
|
|
499
|
-
displayName: "AnalyticalWidgetstyled__StyledContent"
|
|
500
|
-
})(["position:relative;flex:1;min-height:30px;margin-top:8px;overflow-y:", ";"], ({
|
|
501
|
-
scrollable: t
|
|
502
|
-
}) => t ? "auto" : "visible"), H = ({
|
|
503
|
-
size: t = "l",
|
|
504
|
-
scrollable: e = !0,
|
|
505
|
-
headerSlot: o,
|
|
506
|
-
topSlot: d,
|
|
507
|
-
middleSlot: l,
|
|
508
|
-
contentSlot: s,
|
|
509
|
-
classes: n,
|
|
510
|
-
$css: g
|
|
511
|
-
}) => {
|
|
512
|
-
const p = Ft[t], y = Lt(o) && !!o.props.rightSlot;
|
|
513
|
-
return /* @__PURE__ */ v(ue, { $size: t, $css: g, className: S(r.root, y ? r.hasRightSlot : void 0, n == null ? void 0 : n.root), children: [
|
|
514
|
-
/* @__PURE__ */ i("div", { style: {
|
|
515
|
-
minHeight: "32px"
|
|
516
|
-
}, children: o }),
|
|
517
|
-
p.topSlot && d || p.middleSlot && l ? /* @__PURE__ */ v("div", { children: [
|
|
518
|
-
p.topSlot && d && /* @__PURE__ */ i(xe, { className: S(r.topSlot, n == null ? void 0 : n.topSlot), children: d }),
|
|
519
|
-
p.middleSlot && l && /* @__PURE__ */ i(fe, { className: S(r.middleSlot, n == null ? void 0 : n.middleSlot), children: l })
|
|
520
|
-
] }) : null,
|
|
521
|
-
/* @__PURE__ */ i(we, { scrollable: e, className: S(r.contentSlot, n == null ? void 0 : n.contentSlot), children: s })
|
|
522
|
-
] });
|
|
523
|
-
};
|
|
524
|
-
H.Header = ye;
|
|
525
|
-
H.FilterIconButton = it;
|
|
526
|
-
H.DotsIconButton = X;
|
|
527
|
-
H.Chips = Yt;
|
|
528
|
-
export {
|
|
529
|
-
H as A,
|
|
530
|
-
E as T,
|
|
531
|
-
$ as a,
|
|
532
|
-
r as b,
|
|
533
|
-
Ie as c,
|
|
534
|
-
X as d,
|
|
535
|
-
Yt as e,
|
|
536
|
-
ye as f
|
|
537
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";const Q=require("@salutejs/sdds-finai/beta"),U=require("../components/IconButton/index.cjs"),a=require("@salutejs/sdds-finai"),i=require("react/jsx-runtime"),y=require("@salutejs/sdds-themes/tokens/sdds_finai"),n=require("styled-components"),u=require("./utils-ChDQGRjv.cjs"),g=require("react"),I=require("@salutejs/plasma-icons"),Z=require("../components/Collapse/index.cjs"),tt={l:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"12px",borderRadius:"16px"}},m:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"}},s:{xl:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},lg:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"},md:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"12px",borderRadius:"16px"}}},et={l:{topSlot:!0,middleSlot:!0},m:{topSlot:!0,middleSlot:!1},s:{topSlot:!0,middleSlot:!1}},s={root:"analytical-widget",header:"analytical-widget__header",popoverInfo:"analytical-widget__popover-info",topSlot:"analytical-widget__top-slot",middleSlot:"analytical-widget__middle-slot",contentSlot:"analytical-widget__content",headerActions:"analytical-widget__header-actions",selfSpacedTopSlot:"analytical-widget__self-spaced-top-slot",hasRightSlot:"analytical-widget--has-right-slot"},it=n.div.withConfig({displayName:"AnalyticalWidgetIconButtonDotsstyled__StyledAbsoluteDots"})(["position:absolute;top:","px;right:","px;."," ~ &,&:has(~ .","),&:has(~ * .","){top:","px;}"],({$offset:t})=>t,({$offset:t})=>t,s.hasRightSlot,s.hasRightSlot,s.hasRightSlot,({$offset:t})=>t+4),R=g.forwardRef(({dropdownProps:t,iconSize:e,iconOrientation:d="vertical",view:r="default",size:o="m",absolute:p=!1,absoluteOffset:l=12,style:x,...c},f)=>{const h=d==="vertical"?I.IconDotsVerticalOutline:I.IconDotsHorizontalOutline,C=i.jsx(Q.EmbeddedButton,{ref:f,view:r,size:o,style:x,...c,children:i.jsx(h,{size:e??"s"})}),T=t?i.jsx(a.Dropdown,{...t,children:C}):C;return p?i.jsx(it,{$offset:l,children:T}):T});R.displayName="AnalyticalWidgetIconButtonDots";const nt=n(a.Chip).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChip"})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),lt=n(a.ChipGroup).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChipGroup"})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);padding-top:8px;"]),M=({chips:t,commonView:e="default",commonSize:d="xs",opened:r=!1,...o})=>{const p=u.useDebouncedValue(r,300,!1),l=g.useRef(t);t.length>0&&(l.current=t);const x=t.length>0?t:l.current;return i.jsx("div",{className:s.selfSpacedTopSlot,children:i.jsx(Z.Collapse,{isOpen:p,unMountOnClose:!0,children:i.jsx(lt,{view:e,size:d,isCommonChipStyles:!1,...o,children:x.map(({key:c,view:f,...h},C)=>g.createElement(nt,{size:"xs",appearance:"transparent",...h,key:c??`${h==null?void 0:h.name}-${C}`}))})})})},at=n.div.withConfig({displayName:"TooltipList__StyledTooltipContent"})(["color:",";",";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>y.inverseTextPrimary,()=>n.css(y.bodyXS)),ot=({groupLabel:t,items:e})=>i.jsxs(at,{children:[i.jsx("span",{children:t}),i.jsx("ul",{children:e.map((d,r)=>i.jsx("li",{children:d},`${d}-${r}`))})]}),dt=n.div.withConfig({displayName:"TooltipList__FullWidthWrapper"})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]),rt=({groupLabel:t,items:e,children:d,fullWidth:r,...o})=>{const p=e.length>0,l=i.jsx(a.Tooltip,{usePortal:!0,size:"s",mouseEnterDelay:500,...o,trigger:p?o.trigger??"hover":"none",text:p?i.jsx(ot,{groupLabel:t,items:e}):null,opened:p?o.opened:!1,children:d});return r?i.jsx(dt,{children:l}):l},st={BodyL:a.BodyL,BodyM:a.BodyM,BodyS:a.BodyS,BodyXS:a.BodyXS,BodyXXS:a.BodyXXS,DsplL:a.DsplL,DsplM:a.DsplM,DsplS:a.DsplS,H1:a.H1,H2:a.H2,H3:a.H3,H4:a.H4,H5:a.H5,TextL:a.TextL,TextM:a.TextM,TextS:a.TextS,TextXS:a.TextXS};function j({variant:t,children:e,refTypography:d,...r}){const o=st[t];return i.jsx(o,{...r,ref:d,children:e})}j.displayName="Typography";const H="typography-with-auto-tooltip-root";let W=!1,v=null,A=0;function O(){if(typeof document>"u")return;const t=document.getElementById(H);t&&t.querySelectorAll("[id^='plasma-popover-root']:empty").forEach(e=>e.remove())}function pt(){W||(W=!0,v=setTimeout(()=>{W=!1,v=null,O()},0))}function ct(){v&&(clearTimeout(v),v=null),W=!1}function ht(){v&&(clearTimeout(v),v=null),W=!1,O()}function gt(){if(!(typeof document>"u")){if(A+=1,A===1){const t=document.createElement("div");t.id=H,document.body.appendChild(t)}return()=>{if(A-=1,A===0){const t=document.getElementById(H);t&&(t.querySelectorAll("[id^='plasma-popover-root']").length>0||t.remove())}}}}function yt(){return{schedule:pt,flush:ht,cancel:ct,getContainerId:()=>H,createContainer:gt}}const mt=n(a.Tooltip).withConfig({displayName:"TypographyWithAutoTooltipstyled__StyledTooltip"})(["&.popover-target{width:100%;}"]),ut=n.div.withConfig({displayName:"TypographyWithAutoTooltipstyled__StyleTooltipWrapper"})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]),xt=1,N=({tooltipText:t,tooltipProps:e,lines:d=1,className:r,children:o,...p})=>{const{mouseEnterDelay:l=500,mouseLeaveDelay:x=0,...c}=e||{},f=g.useRef(null),[h,C]=g.useState(!1),T=g.useRef(),{schedule:b,getContainerId:z,createContainer:B}=yt(),L=g.useCallback(()=>{if(!f.current)return!1;const m=f.current;if(d>1)return m.scrollHeight>m.clientHeight||m.scrollWidth>m.clientWidth;try{const w=document.createRange();w.selectNodeContents(m);const P=w.getBoundingClientRect().width,J=m.getBoundingClientRect().width;w.detach();const K=window.devicePixelRatio||1;return(P-J)*K>xt}catch{return!1}},[d]),F=g.useCallback(()=>{L()&&(T.current=setTimeout(()=>{C(!0)},l))},[L,l]),G=g.useCallback(()=>{clearTimeout(T.current),setTimeout(()=>{C(!1),b()},x)},[x,b]),{variant:V,bold:D,size:E,...S}=p,Y={variant:V,...D!==void 0&&{bold:D},...E!==void 0&&{size:E},...S,refTypography:f,onMouseEnter:m=>{var w;(w=S.onMouseEnter)==null||w.call(S,m)},onMouseLeave:m=>{var w;(w=S.onMouseLeave)==null||w.call(S,m)},style:{...u.truncateText({lines:d}),...S.style||{}},children:o},$=i.jsx(j,{...Y,children:o});return g.useEffect(()=>B(),[B]),g.useEffect(()=>()=>{clearTimeout(T.current),b()},[b]),i.jsx(ut,{className:r,onMouseEnter:F,onMouseLeave:G,children:h?i.jsx(mt,{opened:h,text:t??"",target:$,frame:z(),...c}):$})},ft=()=>n.css(y.bodyMBold),q=()=>n.css(y.bodyM),wt=n.header.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeader"})(["display:flex;justify-content:space-between;align-items:center;padding-right:24px;& .popover-wrapper:has(.","){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"],s.popoverInfo),St=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLeftSlot"})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;margin-right:16px;"]),vt=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleContainer"})(["margin:0;display:flex;align-items:center;flex-shrink:1;min-width:0;"]);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitle"})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';",";color:",";"],()=>ft(),()=>y.textPrimary);const Ct=n(N).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),Tt=n(N).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),Wt=n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledAfterTitle"})(["flex-shrink:0;margin:0;margin-right:4px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';"," color:",";text-transform:uppercase;"],()=>q(),()=>y.textTertiary),_t=n.div.attrs({className:s.headerActions}).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeaderActions"})(["display:inline-flex;align-items:center;flex-shrink:0;opacity:0;transition:opacity 0.3s ease;"]);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitle"})([""," flex-shrink:1;margin:0;min-width:0;color:",";"],()=>q(),()=>y.textSecondary);n(j).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"})(["color:",";"],()=>y.textSecondary);const bt=n(a.Link).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleLink"})(["display:flex;min-width:0;flex-shrink:1;"]);n(N).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"})(["flex-shrink:1;margin:0;min-width:0;"]);const At=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledRightSlot"})(["align-self:start;flex-shrink:0;"]),k=({title:t,titleTooltipProps:e})=>typeof t!="string"?i.jsx(i.Fragment,{children:t}):i.jsx(Ct,{tooltipText:t,tooltipProps:{placement:"top",...e},variant:"BodyM",bold:!0,style:{color:y.textPrimary,wordBreak:"normal"},lines:1,children:t}),X=({title:t,titleTooltipProps:e,badge:d,badgeStyles:r,subtitle:o,subtitleTooltipProps:p,infoTooltipText:l,infoTooltipProps:x,rightSlot:c,className:f,titleLinkProps:h})=>i.jsxs(wt,{className:u.mergeClasses(s.header,f),children:[i.jsxs(St,{children:[i.jsxs(vt,{children:[t&&h?i.jsx(bt,{underline:"none",...h,children:i.jsx(k,{title:t,titleTooltipProps:e})}):i.jsx(k,{title:t,titleTooltipProps:e}),d&&i.jsx(Wt,{style:r,children:d}),l&&i.jsx(_t,{children:i.jsx(a.Tooltip,{trigger:"hover",placement:"top",text:l,target:i.jsx(I.IconInfoCircleOutline,{size:"xs",style:{cursor:"pointer",color:y.textSecondary}}),className:u.mergeClasses(s.popoverInfo),...x})})]}),o&&(typeof o=="string"?i.jsx(Tt,{variant:"BodyXS",tooltipText:o,style:{color:y.textSecondary,wordBreak:"normal"},tooltipProps:{placement:"top",...p},lines:1,children:o}):o)]}),c&&i.jsx(At,{children:c})]}),Ht=t=>{const e=tt[t];return{xl:`
|
|
2
|
-
--analytical-widget-padding: ${e.xl.padding};
|
|
3
|
-
--analytical-widget-br: ${e.xl.borderRadius};
|
|
4
|
-
--analytical-widget-min-height: ${e.xl.minHeight};
|
|
5
|
-
--analytical-widget-min-width: ${e.xl.minWidth||"unset"};
|
|
6
|
-
--analytical-widget-max-width: ${e.xl.maxWidth||"unset"};
|
|
7
|
-
|
|
8
|
-
width: ${e.xl.width};
|
|
9
|
-
min-height: var(--analytical-widget-min-height);
|
|
10
|
-
height: 100%;
|
|
11
|
-
min-width: var(--analytical-widget-min-width);
|
|
12
|
-
max-width: var(--analytical-widget-max-width);
|
|
13
|
-
padding: var(--analytical-widget-padding);
|
|
14
|
-
border-radius: var(--analytical-widget-br);
|
|
15
|
-
`,lg:`
|
|
16
|
-
--analytical-widget-padding: ${e.lg.padding};
|
|
17
|
-
--analytical-widget-br: ${e.lg.borderRadius};
|
|
18
|
-
--analytical-widget-min-height: ${e.lg.minHeight};
|
|
19
|
-
--analytical-widget-min-width: ${e.lg.minWidth||"unset"};
|
|
20
|
-
--analytical-widget-max-width: ${e.lg.maxWidth||"unset"};
|
|
21
|
-
|
|
22
|
-
width: ${e.lg.width};
|
|
23
|
-
min-height: var(--analytical-widget-min-height);
|
|
24
|
-
height: 100%;
|
|
25
|
-
min-width: var(--analytical-widget-min-width);
|
|
26
|
-
max-width: var(--analytical-widget-max-width);
|
|
27
|
-
padding: var(--analytical-widget-padding);
|
|
28
|
-
border-radius: var(--analytical-widget-br);
|
|
29
|
-
`,md:`
|
|
30
|
-
--analytical-widget-padding: ${e.md.padding};
|
|
31
|
-
--analytical-widget-br: ${e.md.borderRadius};
|
|
32
|
-
--analytical-widget-min-height: ${e.md.minHeight};
|
|
33
|
-
--analytical-widget-min-width: ${e.md.minWidth||"unset"};
|
|
34
|
-
--analytical-widget-max-width: ${e.md.maxWidth||"unset"};
|
|
35
|
-
|
|
36
|
-
width: ${e.md.width};
|
|
37
|
-
min-height: var(--analytical-widget-min-height);
|
|
38
|
-
height: 100%;
|
|
39
|
-
min-width: var(--analytical-widget-min-width);
|
|
40
|
-
max-width: var(--analytical-widget-max-width);
|
|
41
|
-
padding: var(--analytical-widget-padding);
|
|
42
|
-
border-radius: var(--analytical-widget-br);
|
|
43
|
-
`}},jt=n.article.withConfig({displayName:"AnalyticalWidgetstyled__StyledWidget"})(["--analytical-widget-bg:",";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.","{opacity:1;}}"," ",""],y.surfaceSolidCard,s.headerActions,({$size:t})=>{const e=Ht(t);return n.css([""," "," "," "],u.media.exact(0,1439)(e.md),u.media.exact(1440,1919)(e.lg),u.media.exact(1920,1e5)(e.xl))},({$css:t})=>t),Nt=n(a.BodyM).withConfig({displayName:"AnalyticalWidgetstyled__StyledTopSlot"})(["overflow:hidden;margin-top:8px;&:empty{margin-top:0;}&:has(.","){margin-top:0;}"],s.selfSpacedTopSlot),It=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledMiddleSlot"})(["overflow:hidden;padding-top:8px;"]),Rt=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledContent"})(["position:relative;flex:1;min-height:30px;margin-top:8px;overflow-y:",";"],({scrollable:t})=>t?"auto":"visible"),_=({size:t="l",scrollable:e=!0,headerSlot:d,topSlot:r,middleSlot:o,contentSlot:p,classes:l,$css:x})=>{const c=et[t],f=g.isValidElement(d)&&!!d.props.rightSlot;return i.jsxs(jt,{$size:t,$css:x,className:u.mergeClasses(s.root,f?s.hasRightSlot:void 0,l==null?void 0:l.root),children:[i.jsx("div",{style:{minHeight:"32px"},children:d}),c.topSlot&&r||c.middleSlot&&o?i.jsxs("div",{children:[c.topSlot&&r&&i.jsx(Nt,{className:u.mergeClasses(s.topSlot,l==null?void 0:l.topSlot),children:r}),c.middleSlot&&o&&i.jsx(It,{className:u.mergeClasses(s.middleSlot,l==null?void 0:l.middleSlot),children:o})]}):null,i.jsx(Rt,{scrollable:e,className:u.mergeClasses(s.contentSlot,l==null?void 0:l.contentSlot),children:p})]})};_.Header=X;_.FilterIconButton=U.IconButtonFilter;_.DotsIconButton=R;_.Chips=M;exports.AnalyticalWidget=_;exports.AnalyticalWidgetChipsGroup=M;exports.AnalyticalWidgetHeader=X;exports.AnalyticalWidgetIconButtonDots=R;exports.TooltipList=rt;exports.Typography=j;exports.TypographyWithAutoTooltip=N;exports.analyticalWidgetClassNames=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),W=require("react"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),y=require("@salutejs/plasma-icons"),l=require("styled-components"),h=require("./AnalyticalWidget-YytE3Rlw.cjs"),R=require("./EmptyState-DH1xawxg.cjs"),P={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconFocusOutline,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},_={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconInProgressFill,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},q={DEFAULT:"inactive",WAIT:"active",SUCCESSFUL:"completed",FAILURE:"completed"},Y={DEFAULT:"default",WAIT:"warning",SUCCESSFUL:"positive",FAILURE:"negative"},O={LIFE_CYCLE:"Жизненный цикл",HISTORY:"История изменений"},I=l.div.withConfig({displayName:"styled__ApprovalCenterContainer"})(["min-width:360px;min-height:600px;width:100%;height:100%;border-radius:16px;display:flex;flex-direction:column;flex:1;padding:12px 4px 12px 16px;background:",";",""],()=>r.surfaceSolidCard,({$css:s})=>s),V=l.div.withConfig({displayName:"styled__ApprovalCenterContentWrapper"})(["margin-top:20px;min-height:0;flex-direction:column;display:flex;flex:1;"]),X=l.div.withConfig({displayName:"styled__PreviewContainer"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;"]),M=l.div.withConfig({displayName:"styled__LifeCycleContainer"})(["overflow-y:auto;min-height:0;flex:1;display:flex;flex-direction:column;padding-right:12px;"]),K=l.div.withConfig({displayName:"styled__LifeCycleAccordionTitle"})(["display:flex;align-items:center;gap:4px;"]),D=l.div.withConfig({displayName:"styled__LifeCycleStageContent"})(["> *:not(:first-child){margin-top:8px;}> .comment:not(:first-child){margin-top:2px;}"]),$=l.div.withConfig({displayName:"styled__LifeCycleAssignees"})(["display:flex;flex-direction:column;gap:8px;"]),B=l.div.withConfig({displayName:"styled__LifeCycleButtonsWrapper"})(["display:flex;gap:4px;"]),G=l.div.withConfig({displayName:"styled__LifeCycleStageButtonsWrapper"})(["display:flex;gap:16px;"]),E=l(o.Button).withConfig({displayName:"styled__LifeCycleStyledButton"})(["margin-top:8px;"]),J=l.div.withConfig({displayName:"styled__HistoryContainer"})(["display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;overflow-y:auto;padding-right:12px;"]),Q=l.div.withConfig({displayName:"styled__HistoryDay"})(["display:flex;flex-direction:column;gap:12px;"]),Z=l.div.withConfig({displayName:"styled__HistoryDate"})(["top:0px;position:sticky;display:flex;justify-content:center;width:100%;"]),ee=l.div.withConfig({displayName:"styled__HistoryActions"})(["display:flex;flex-direction:column;gap:12px;"]);l(o.Badge).withConfig({displayName:"styled__HistoryStyledBadge"})(["flex-shrink:0;white-space:nowrap;"]);const T=s=>{const{historyByDay:p}=s;return e.jsx(J,{children:p.map(c=>e.jsxs(Q,{children:[e.jsx(Z,{children:e.jsx(o.Badge,{size:"m",text:c.date,view:"light",customColor:r.textSecondary,customBackgroundColor:r.surfaceSolidCard})}),e.jsx(ee,{children:c.actions.map(i=>e.jsx(o.Cell,{size:"s",title:i.title,subtitle:i.time,contentLeft:P[i.status]}))})]},c.date))})};function d(s){return s!=null}function g(s){return Array.isArray(s)&&s.length>0}function te(s){const p=new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}),c=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}),i=new Date,t=new Map;for(const a of s){const n=new Date(a.actionDate),m=n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?"Сегодня":p.format(n),v=c.format(n),u={status:a.status,title:a.actionTitle,time:v};let x=t.get(m);x===void 0&&(x=[],t.set(m,x)),x.push(u)}return Array.from(t,([a,n])=>({date:a,actions:n}))}const w=s=>{const{lifeCycle:p}=s,c=p.map(i=>({title:i.title,status:q[i.status],completedItemView:Y[i.status],content:d(i.stages)?e.jsxs(e.Fragment,{children:[e.jsx(o.Accordion,{size:"s",view:"clear",defaultActiveEventKey:i.stages.reduce((t,a,n)=>(a.open&&t.push(n),t),[]),children:i.stages.map((t,a)=>e.jsx(o.AccordionItem,{contentLeft:d(t.tooltip)?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:_[t.status],trigger:"hover",placement:"top-start",text:t.tooltip.text})}):_[t.status],title:e.jsxs(K,{children:[e.jsx(h.Typography,{variant:"TextS",children:t.title}),d(t.mark)&&(t.mark.tooltip?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:t.mark.icon,trigger:"hover",placement:"top-start",text:t.mark.tooltip.text})}):t.mark.icon)]}),eventKey:a,children:e.jsxs(D,{children:[g(t.assignee)&&e.jsx($,{children:t.assignee.map(n=>e.jsx(h.Typography,{variant:"TextXS",bold:!0,color:r.textPrimary,children:n},n))}),d(t.comment)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textPrimary,children:t.comment}),g(t.buttons)&&e.jsx(G,{children:t.buttons.map(n=>e.jsx(o.LinkButton,{contentLeft:n.contentLeft,text:n.text,size:"xxs",onClick:n.onClick},n.text))}),d(t.actionTitle)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textSecondary,children:t.actionTitle})]})},t.title))}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]}):e.jsxs(D,{children:[e.jsx(h.Typography,{variant:"BodyXS",color:r.textSecondary,children:i.actionTitle}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]})}));return e.jsx(M,{children:e.jsx(o.Steps,{style:{paddingTop:"1px",height:"auto"},items:c,orientation:"vertical",size:"m"})})},L=s=>{const{preview:p}=s,{button:c,loading:i}=p??{},t=d(c);return e.jsx(X,{children:i?e.jsx(o.Spinner,{size:"l",view:"default"}):e.jsx(R.EmptyState,{size:"m",variant:"no-content",buttons:t?[{props:{text:c.text,children:c.text,view:"accent",onClick:c.onClick},type:"link"}]:void 0})})},ie=s=>{const{className:p,$css:c,preview:i,tabs:t,lifeCycle:a,history:n}=s,[f,m]=W.useState(t.active),v=t.available.length>1,u=t.available[0],x=u==="LIFE_CYCLE",N=u==="HISTORY",b=f==="LIFE_CYCLE",z=f==="HISTORY",S=d(a),H=d(n),A=d(i),j=H?te(n):null,F=d(j);if(v){const k=e.jsxs(V,{children:[S&&b&&e.jsx(w,{lifeCycle:a}),F&&z&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{className:p,$css:c,children:A?e.jsx(L,{preview:i}):e.jsxs(e.Fragment,{children:[e.jsx(o.Tabs,{view:"divider",size:"s",orientation:"horizontal",children:t.available.map(C=>e.jsx(o.TabItem,{view:"divider",size:"s",selected:C===f,onClick:()=>m(C),children:O[C]},C))}),k]})})}const U=e.jsxs(e.Fragment,{children:[S&&x&&e.jsx(w,{lifeCycle:a}),F&&N&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{children:A?e.jsx(L,{preview:i}):U})};exports.ApprovalCenter=ie;exports.History=T;exports.LifeCycle=w;exports.Preview=L;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),S=require("../components/Box/index.cjs"),b=require("@salutejs/sdds-finai"),x=require("./AnalyticalWidget-YytE3Rlw.cjs"),C=require("@salutejs/plasma-icons"),N=require("./utils-ChDQGRjv.cjs"),c=require("@salutejs/sdds-themes/tokens/sdds_finai"),o=require("styled-components"),i={backButton:"block-title__back-button",container:"block-title__container",contentLeft:"block-title__content-left",description:"block-title__description",topBlock:"block-title__top-block",rightBlock:"block-title__right-block",title:"block-title__title",titleBlock:"block-title__title-block"},z=o.div.withConfig({displayName:"styled__BlockTitleContainer"})(["display:flex;justify-content:space-between;width:100%;gap:",";"],()=>c.spacing12x),j=o.div.withConfig({displayName:"styled__BlockTitleBlock"})(["display:flex;align-items:center;gap:",";margin-bottom:",";"],()=>c.spacing2x,()=>c.spacing2x),w=o.div.withConfig({displayName:"styled__BlockTitleCustomBlock"})(["width:100%;margin-bottom:",";"],()=>c.spacing2x),v=o(x.Typography).withConfig({displayName:"styled__BlockTitleDescription"})(["color:",";padding-left:",";"],()=>c.textSecondary,({$hasLeftSlot:t})=>t?"28px":"0"),L=o.div.withConfig({displayName:"styled__BlockTitleLeftBlock"})(["display:flex;min-height:100%;flex-direction:column;justify-content:end;"]),I=o.div.withConfig({displayName:"styled__BlockTitleRightBlock"})(["display:flex;min-height:100%;align-items:end;"]),q=o.div.withConfig({displayName:"styled__BlockTitleContentLeft"})(["display:flex;align-items:flex-start;gap:",";flex:1;min-width:0;"],()=>c.spacing8x),A=o.div.withConfig({displayName:"styled__BlockTitleBackButtonContainer"})(["margin-top:3px;"]),h={titleBadgeSize:"m",titleIconSize:"s"},D=t=>t==="H4"||t==="H5"?{titleBadgeSize:"s",titleIconSize:"xs"}:h,m=(t,l)=>({...l?D(t):h,buttonSize:l?"xs":"s",actionIconSize:l?"xs":"s"}),_=t=>t?"xxs":"xs",s=(t,l)=>typeof t=="function"?t(l):t,E=({title:t,titleSize:l="H2",titleTooltipProps:d,titleLeftSlot:r,titleRightSlot:k,description:B,topSlot:T,rightSlot:y,disableMediaAdaptive:f=!1,containerProps:n,onBackButtonClick:g})=>{const{down:u}=N.useBreakpoint(),p=!f&&u("xl"),a=m(l,p);return e.jsxs(S.Box,{...n,className:`${i.container} ${(n==null?void 0:n.className)??""}`,children:[e.jsx(w,{className:i.topBlock,children:s(T,a)}),e.jsxs(z,{children:[e.jsxs(q,{className:i.contentLeft,children:[g&&e.jsx(A,{className:i.backButton,children:e.jsx(b.IconButton,{size:_(p),view:"secondary",pin:"circle-circle",onClick:g,children:e.jsx(C.IconChevronLeft,{size:"xs",color:"inherit"})})}),e.jsxs(L,{children:[e.jsxs(j,{className:i.titleBlock,children:[s(r,a),e.jsx(x.TypographyWithAutoTooltip,{tooltipText:typeof t=="string"?t:void 0,variant:l,className:i.title,lines:2,tooltipProps:d,children:t}),s(k,a)]}),B&&e.jsx(v,{variant:"BodyS",className:i.description,$hasLeftSlot:!!r,children:B})]})]}),e.jsx(I,{className:i.rightBlock,children:s(y,a)})]})]})};exports.BlockTitle=E;exports.blockTitleClassNames=i;exports.getBlockTitleBackButtonSize=_;exports.getBlockTitleSlotSizes=m;exports.renderBlockTitleSlot=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),C=require("@salutejs/plasma-icons"),d=require("styled-components"),z=require("../components/Box/index.cjs"),K=require("./Table-vv1HTrxe.cjs"),v=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),E=require("../components/TextField/index.cjs"),M=require("./AnalyticalWidget-YytE3Rlw.cjs"),P=require("./utils-ChDQGRjv.cjs"),Y=({dropdownProps:t,iconSize:i,...l})=>{const n=e.jsx(g.IconButton,{view:"secondary",size:"s",...l,children:e.jsx(C.IconDotsVerticalCenteredOutline,{size:i??"s"})});return t?e.jsx(g.Dropdown,{...t,children:n}):n},q=({visible:t,topLeft:i})=>e.jsx(z.Box,{$css:{position:"absolute",top:i??0,right:i??0,width:"8px",aspectRatio:"1",borderRadius:"50%",transition:K.DEFAULT_TABLE_TRANSITION,backgroundColor:"transparent",transform:"scale(0)",...t&&{backgroundColor:v.surfaceNegative,transform:"scale(1)"}}}),N=d(g.Button).attrs(({redSquare:t,hideLabel:i=!1,size:l,iconSize:n,children:r,...h})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),children:e.jsxs(e.Fragment,{children:[r??(!i&&(h.text??"Ещё фильтры")),i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),e.jsx(q,{visible:t})]}),...h})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),tt=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-mqTsQbq_.cjs")).then(t=>t.ListOfFilters_lazy)),H=d(tt).attrs(({paddingTop:t,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),O=({visible:t,offset:i})=>e.jsx(q,{visible:t,topLeft:i}),$=d(g.Tabs).attrs(t=>({size:"xs",view:"filled",...t})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:t})=>t),V=d(g.TabItem).attrs(t=>({size:"s",view:"default",...t})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:t})=>t),A={borderRadiusM:()=>v.borderRadiusM,shadowDownHardS:()=>v.shadowDownHardS,surfaceSolidCard:()=>v.surfaceSolidCard},et=d(g.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),it=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverContentContainer"})(["background-color:",";border-radius:",";box-shadow:",";min-width:360px;max-width:700px;max-height:80dvh;height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"],A.surfaceSolidCard,A.borderRadiusM,A.shadowDownHardS),st=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),ot=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),nt=d.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:",";"],({$searchable:t})=>t?"8px":"0"),rt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverMainContent"})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]),lt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverFooter"})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]),R={minHeight:430,minWidth:360,maxWidth:700,maxHeight:typeof window<"u"?window.innerHeight*.8:600,defaultSize:{width:360,height:430},directions:["bottom-right"],icons:{topRight:null,bottomRight:e.jsx(C.IconResizeCorneredFill,{color:v.textTertiary}),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:t,subtitle:i,content:l,state:n,onClose:r,footer:h,redSquare:o=!1,popoverProps:u={},buttonProps:s,renderTarget:a,searchable:b,searchValue:F,onSearchChange:m,searchingProps:w,emptySearchContent:y})=>{const{resizable:c,...B}=u,_=(x=>x===!1?!1:x===!0||x==null?R:typeof x=="object"&&x!==null?{...R,...x}:R)(c),[I,k]=p.useState(!1),[S,T]=n??[I,k],Z=p.useCallback(()=>{T(!1),r==null||r()},[r,T]),J=p.useCallback(x=>{T(x),x||r==null||r()},[r,T]),W=p.useCallback(()=>{T(!S)},[S,T]);return e.jsx(et,{opened:S,onToggle:J,target:a?a({onClick:W,isOpen:S,isRedDotVisible:o,RedDot:O}):e.jsx(N,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var L;(L=s==null?void 0:s.onClick)==null||L.call(s,x),W()}}),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:_,...B,children:e.jsxs(it,{children:[e.jsxs(st,{children:[e.jsxs(ot,{children:[e.jsxs(nt,{$searchable:b,children:[e.jsx(g.BodyM,{bold:!0,children:t}),i&&e.jsx(g.BodyXS,{color:v.textSecondary,children:i})]}),e.jsx(g.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:b?"8px":void 0},children:e.jsx(C.IconClose,{size:"xs"})})]}),b&&e.jsx(E.TextFieldSearch,{value:F,onChange:x=>m==null?void 0:m(x.target.value),placeholder:"Поиск",...w})]}),e.jsx(rt,{children:y||l}),h&&e.jsx(lt,{children:h})]})})},at=d(g.LinkButton).attrs(t=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:e.jsx(C.IconClose,{size:"xs",color:"inherit"}),style:{...t.style,visibility:t.isVisible?"visible":"hidden",pointerEvents:t.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:t})=>t),ct=d(g.SegmentItem).attrs(t=>({size:"s",view:"primary",...t})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:t})=>t),dt=d(g.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:t})=>t?v.surfaceTransparentSecondary:"none",({hasBackground:t})=>t?"10px 14px":"auto",({hasBackground:t})=>t?"10px":"auto"),X=p.forwardRef(({hasBackground:t,size:i,...l},n)=>e.jsx(dt,{hasBackground:t,ref:n,size:t?"m":i,...l})),ut=({...t})=>e.jsx(X,{size:"m",toggleSize:"s",hasBackground:!0,...t}),ht=(t,i)=>{if(!t&&!i)return;const l=t&&{$css:t.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return d.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pt=d(z.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=d.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>v.borderRadiusL),ft=d(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xt=d(z.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:t,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:h,ref:o,...u}={},onResize:s})=>{const a=p.useRef(null),b=p.useRef(null),F=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const m=a.current,w=b.current,y=F.current;if(!m||!w)return;const c={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},B=()=>{const _=m.getBoundingClientRect().width,I=w.getBoundingClientRect().width,k=y?y.getBoundingClientRect().width:0,S=I;c.containerWidth=_,c.mainBlockWidth=I,c.buttonsBlockWidth=k,c.availableMainBlockWidth=S,s({...c})},j=P.createSafeResizeObserver(()=>{B()});return j.observe(m),j.observe(w),y&&j.observe(y),B(),()=>{j.disconnect()}},[s]),e.jsx(pt,{ref:a,...r,children:e.jsxs(G,{children:[e.jsxs(xt,{$css:ht(n,h),...u,ref:P.mergeRefs(o,b),children:[t,l&&e.jsx(ft,{ref:F,children:l})]}),i]})})};f.FiltersButton=N;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=H;f.TextFieldSearch=E.TextFieldSearch;f.Tabs=$;f.TabItem=V;f.SegmentItem=ct;f.Tooltip=M.TooltipList;f.TooltipList=M.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=at;f.SwitcherFilter=ut;f.RedDot=O;function D(t,i,l){const{visible:n=[],inOverlay:r=[],hidden:h=[],modifications:o={},customActions:u={}}=l,s=new Set(n),a=new Set(r),b=new Set(h),F=t.filter(c=>s.has(c.id)),m=t.filter(c=>a.has(c.id)),w=t.filter(c=>b.has(c.id)),y=[];return n.forEach(c=>{y.push({type:"show",targetId:c,payload:null})}),r.forEach(c=>{y.push({type:"moveToOverlay",targetId:c,payload:null})}),h.forEach(c=>{y.push({type:"hide",targetId:c,payload:null})}),Object.entries(o).forEach(([c,B])=>{y.push({type:"modify",targetId:c,payload:B})}),{visibleItems:F,overlayItems:m,hiddenItems:w,modifications:o,actions:y,activeBreakpoint:i,hasOverlayItems:m.length>0,hasModifications:Object.keys(o).length>0,customActions:u}}const gt=({items:t,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,a])=>({breakpoint:Number(s),config:a})).sort((s,a)=>a.breakpoint-s.breakpoint),u=o.find(({breakpoint:s})=>i>=s);if(!u){const s=o[o.length-1];return D(t,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return D(t,u.breakpoint,u.config)},[t,i,l]),r=p.useCallback((o,u)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&u?s.width=`${u*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),h=p.useCallback((o,u)=>o.some(s=>{const a=u[s.id];return a===void 0?!1:Array.isArray(a)?a.length>0:typeof a=="boolean"?a===!0:typeof a=="string"?a!=="":typeof a=="number"?a!==0:!!a}),[]);return{...n,getItemStyle:r,hasActiveFilters:h}},yt=()=>d.css(v.bodyXS),mt=d.div.withConfig({displayName:"Tooltip__StyledTooltipContent"})(["color:",";"," & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>v.inverseTextPrimary,()=>yt()),vt=({groupLabel:t,items:i})=>e.jsxs(mt,{children:[e.jsx("span",{children:t}),e.jsx("ul",{children:i.map(l=>e.jsx("li",{children:l}))})]}),bt=({groupLabel:t,items:i,children:l,...n})=>{const[r,h]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){h(!0);const u=setTimeout(()=>{h(!1)},0);return()=>clearTimeout(u)}},[o]),e.jsx(g.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:e.jsx(vt,{groupLabel:t,items:i}),size:"s",...n,children:l},`tooltip-${r}`)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=N;exports.FiltersActionsListOfFilters=H;exports.FiltersActionsTabItem=V;exports.FiltersActionsTabs=$;exports.FiltersActionsTooltip=bt;exports.RedDot=O;exports.Switch=X;exports.useAdaptiveFilters=gt;
|