@daisforge/ui 1.12.2 → 1.14.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/AnalyticalWidget-B6czTLSw.cjs +43 -0
- package/chunks/{AnalyticalWidget-CBi-2MtJ.mjs → AnalyticalWidget-BWggL9xa.mjs} +144 -144
- package/chunks/{ApprovalCenter-oACSjXxE.cjs → ApprovalCenter-DG3YvEkY.cjs} +1 -1
- package/chunks/{ApprovalCenter-ClCoA3cr.mjs → ApprovalCenter-XCXGHaEP.mjs} +2 -2
- package/chunks/{BlockTitle-CylSY2DM.cjs → BlockTitle-3YmyxJHJ.cjs} +1 -1
- package/chunks/{BlockTitle-DTaIqiFF.mjs → BlockTitle-DDWF1ZeV.mjs} +2 -2
- package/chunks/{Container-CV4sT-bB.mjs → Container-BlAaXm8V.mjs} +1 -1
- package/chunks/{Container-D8Bcg69e.cjs → Container-CJX4h6tb.cjs} +1 -1
- package/chunks/{EmptyState-Bct6Wrxv.mjs → EmptyState-BB3duGQw.mjs} +1 -1
- package/chunks/{EmptyState-BD6Ic-OX.cjs → EmptyState-Du-RIjie.cjs} +1 -1
- package/chunks/{FiltersActions-C3yWFtQT.mjs → FiltersActions-C38x0y5T.mjs} +4 -4
- package/chunks/{FiltersActions-D1aQXh5d.cjs → FiltersActions-CvAwGV9F.cjs} +1 -1
- package/chunks/{FormSegmentGroup-C8kROjlQ.mjs → FormSegmentGroup-9b3w4_KU.mjs} +1 -1
- package/chunks/{FormSegmentGroup-DIaBZRWv.cjs → FormSegmentGroup-DcOPPn3M.cjs} +1 -1
- package/chunks/{GridDND-rVSi0xX1.mjs → GridDND-BnK1dEhJ.mjs} +2 -2
- package/chunks/{GridDND-BP_H26We.cjs → GridDND-CVAlpElj.cjs} +1 -1
- package/chunks/{LeftPanel-CgexykUg.cjs → LeftPanel-Ciehaz28.cjs} +1 -1
- package/chunks/{LeftPanel-bKmeEOHx.mjs → LeftPanel-DuIinlBm.mjs} +1 -1
- package/chunks/ListOfFilters-Cji5UH2J.mjs +260 -0
- package/chunks/ListOfFilters-DNzfSG-p.cjs +1 -0
- package/chunks/{MassActions-D4nb1_gx.mjs → MassActions-BOG04zip.mjs} +3 -3
- package/chunks/{MassActions-BCgI08G9.cjs → MassActions-DCk9APKP.cjs} +1 -1
- package/chunks/{PageTitle-BC0PnHgQ.cjs → PageTitle-BIllremL.cjs} +1 -1
- package/chunks/{PageTitle-B0tuR3fU.mjs → PageTitle-CQ_6jZ0x.mjs} +2 -2
- package/chunks/{SplitView-OUGciQ51.cjs → SplitView-DdLshcIk.cjs} +1 -1
- package/chunks/{SplitView-C8de8YKV.mjs → SplitView-Dm62AAZj.mjs} +1 -1
- package/chunks/Stories-dFpUqS5T.mjs +673 -0
- package/chunks/Stories-e_CX_1CS.cjs +1 -0
- package/chunks/Table-CrJFfavU.cjs +31 -0
- package/chunks/{Table-Bj2se1hR.mjs → Table-f0CmcIhI.mjs} +1161 -1161
- package/chunks/{TableCanvas-Y53zQ7M0.mjs → TableCanvas-1bi1WWeP.mjs} +2561 -2548
- package/chunks/TableCanvas-DqF5YxEY.cjs +30 -0
- package/chunks/TableGlide-CGAh5x3Q.cjs +1 -0
- package/chunks/{TableGlide-CuBMIM6Q.mjs → TableGlide-DGKw3w0G.mjs} +2184 -2126
- package/chunks/{styles-Dd4uEa27.mjs → styles-BMXAIiBk.mjs} +1 -1
- package/chunks/{styles-kPI9R7DO.cjs → styles-DwCVRGsC.cjs} +1 -1
- package/chunks/{utils-C5SQhoON.mjs → utils-D4eJY8pa.mjs} +81 -74
- package/chunks/utils-DvDFSlCG.cjs +25 -0
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
- 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/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/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
- 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 +2 -2
- 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 +1 -1
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +1 -1
- 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/Stories.types.d.ts +1 -0
- 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/Stories/store/StoriesContext.d.ts +1 -0
- 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/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-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/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/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 +2 -2
- package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- 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/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
- 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 +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- 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 +1 -1
- 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/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- 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 +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- 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.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/column-config.type.d.ts +3 -0
- package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +3 -0
- 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/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- 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/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -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/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- 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/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- 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 +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- 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 +1 -1
- 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/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/types.d.ts +3 -2
- 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 +1 -1
- package/components/TourWidget/index.mjs +2 -2
- 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.mjs +137 -136
- 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 +45769 -0
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +6 -6
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +1 -1
- package/utils/clickStream/index.cjs +1 -1
- package/utils/clickStream/index.d.ts +2 -2
- package/utils/clickStream/index.mjs +6 -5
- package/utils/clickStream/types.d.ts +14 -1
- package/utils/clickStream/utils.d.ts +2 -1
- package/utils/eventBus/index.cjs +1 -1
- package/utils/eventBus/index.mjs +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 +26 -25
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-fBDe37Ur.cjs +0 -43
- package/chunks/ListOfFilters-DgInAZFi.cjs +0 -1
- package/chunks/ListOfFilters-IEPKSKxx.mjs +0 -243
- package/chunks/Stories--_pE4YtR.mjs +0 -668
- package/chunks/Stories-Dvh6rMeV.cjs +0 -1
- package/chunks/Table-CnWVNNoW.cjs +0 -31
- package/chunks/TableCanvas-eYhmqTbp.cjs +0 -30
- package/chunks/TableGlide-CvMz7x7a.cjs +0 -1
- package/chunks/utils-DKi1rqLX.cjs +0 -25
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";const q=require("../components/IconButton/index.cjs"),a=require("@salutejs/sdds-finai"),i=require("react/jsx-runtime"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),n=require("styled-components"),h=require("./utils-DvDFSlCG.cjs"),p=require("react"),K=require("../components/Collapse/index.cjs"),D=require("@salutejs/plasma-icons"),Q=n(a.Chip).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChip"})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),Z=n(a.ChipGroup).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChipGroup"})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);"]),z=({chips:e,commonView:t="default",commonSize:d="xs",opened:s=!1,...o})=>{const y=h.useDebouncedValue(s,300,!1);return i.jsx(K.Collapse,{isOpen:y,unMountOnClose:!0,children:i.jsx(Z,{view:t,size:d,isCommonChipStyles:!1,...o,children:e.map(({key:l,view:S,...c},v)=>p.createElement(Q,{size:"xs",appearance:"transparent",...c,key:l??`${c==null?void 0:c.name}-${v}`}))})})},tt=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;}}"],()=>r.inverseTextPrimary,()=>n.css(r.bodyXS)),et=({groupLabel:e,items:t})=>i.jsxs(tt,{children:[i.jsx("span",{children:e}),i.jsx("ul",{children:t.map((d,s)=>i.jsx("li",{children:d},`${d}-${s}`))})]}),it=n.div.withConfig({displayName:"TooltipList__FullWidthWrapper"})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]),nt=({groupLabel:e,items:t,children:d,fullWidth:s,...o})=>{const y=t.length>0,l=i.jsx(a.Tooltip,{usePortal:!0,size:"s",mouseEnterDelay:500,...o,trigger:y?o.trigger??"hover":"none",text:y?i.jsx(et,{groupLabel:e,items:t}):null,opened:y?o.opened:!1,children:d});return s?i.jsx(it,{children:l}):l},at={l:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"}},m:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}},s:{xl:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}}},lt={l:{topSlot:!0,middleSlot:!0},m:{topSlot:!0,middleSlot:!1},s:{topSlot:!0,middleSlot:!1}},m={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"},ot={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 $({variant:e,children:t,refTypography:d,...s}){const o=ot[e];return i.jsx(o,{...s,ref:d,children:t})}$.displayName="Typography";const L="typography-with-auto-tooltip-root";let A=!1,w=null,B=0;function G(){if(typeof document>"u")return;const e=document.getElementById(L);e&&e.querySelectorAll("[id^='plasma-popover-root']:empty").forEach(t=>t.remove())}function dt(){A||(A=!0,w=setTimeout(()=>{A=!1,w=null,G()},0))}function rt(){w&&(clearTimeout(w),w=null),A=!1}function st(){w&&(clearTimeout(w),w=null),A=!1,G()}function ct(){if(!(typeof document>"u")){if(B+=1,B===1){const e=document.createElement("div");e.id=L,document.body.appendChild(e)}return()=>{if(B-=1,B===0){const e=document.getElementById(L);e&&(e.querySelectorAll("[id^='plasma-popover-root']").length>0||e.remove())}}}}function pt(){return{schedule:dt,flush:st,cancel:rt,getContainerId:()=>L,createContainer:ct}}const ht=n(a.Tooltip).withConfig({displayName:"TypographyWithAutoTooltipstyled__StyledTooltip"})(["&.popover-target{width:100%;}"]),yt=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;}"]),gt=1,k=({tooltipText:e,tooltipProps:t,lines:d=1,className:s,children:o,...y})=>{const{mouseEnterDelay:l=500,mouseLeaveDelay:S=0,...c}=t||{},v=p.useRef(null),[T,j]=p.useState(!1),W=p.useRef(),{schedule:u,getContainerId:C,createContainer:N}=pt(),I=p.useCallback(()=>{if(!v.current)return!1;const g=v.current;if(d>1)return g.scrollHeight>g.clientHeight||g.scrollWidth>g.clientWidth;try{const x=document.createRange();x.selectNodeContents(g);const Y=x.getBoundingClientRect().width,U=g.getBoundingClientRect().width;x.detach();const J=window.devicePixelRatio||1;return(Y-U)*J>gt}catch{return!1}},[d]),R=p.useCallback(()=>{I()&&(W.current=setTimeout(()=>{j(!0)},l))},[I,l]),_=p.useCallback(()=>{clearTimeout(W.current),setTimeout(()=>{j(!1),u()},S)},[S,u]),{variant:E,bold:M,size:b,...f}=y,V={variant:E,...M!==void 0&&{bold:M},...b!==void 0&&{size:b},...f,refTypography:v,onMouseEnter:g=>{var x;(x=f.onMouseEnter)==null||x.call(f,g)},onMouseLeave:g=>{var x;(x=f.onMouseLeave)==null||x.call(f,g)},style:{...h.truncateText({lines:d}),...f.style||{}},children:o},X=i.jsx($,{...V,children:o});return p.useEffect(()=>N(),[N]),p.useEffect(()=>()=>{clearTimeout(W.current),u()},[u]),i.jsx(yt,{className:s,onMouseEnter:R,onMouseLeave:_,children:T?i.jsx(ht,{opened:T,text:e??"",target:X,frame:C(),...c}):X})},ut=()=>n.css(r.bodyMBold),F=()=>n.css(r.bodyM),mt=n.header.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeader"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.","){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"],m.popoverInfo),xt=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLeftSlot"})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]),ft=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleContainer"})(["margin:0;display:flex;flex-shrink:1;min-width:0;"]);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitle"})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';",";color:",";"],()=>ut(),()=>r.textPrimary);const wt=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),St=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]),vt=n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledAfterTitle"})(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';"," color:",";text-transform:uppercase;"],()=>F(),()=>r.textTertiary),Ct=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsContainer"})(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]),Wt=n.div.attrs({className:m.headerActions}).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsWrapper"})(["position:absolute;display:flex;left:0;top:0;transform:translateX( ","px );padding-left:","px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,"," 0%,"," 15%,"," 40%,"," 100% );"],e=>e.$translateX?e.$translateX:0,e=>e.$translateX?20:0,r.surfaceClear,r.surfaceClear,r.surfaceSolidCard,r.surfaceSolidCard);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitle"})([""," flex-shrink:1;margin:0;min-width:0;color:",";"],()=>F(),()=>r.textSecondary);n($).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"})(["color:",";"],()=>r.textSecondary);const Tt=n(a.Link).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleLink"})(["display:flex;min-width:0;flex-shrink:1;"]);n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"})(["flex-shrink:1;margin:0;min-width:0;"]);const _t=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledRightSlot"})(["align-self:start;"]),bt=n(a.IconButton).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLinkIconButton"})(["&&{width:24px;height:24px;color:",";}"],()=>r.textSecondary),O=({title:e,titleTooltipProps:t})=>i.jsx(wt,{tooltipText:e,tooltipProps:{placement:"top",...t},variant:"BodyM",bold:!0,style:{color:r.textPrimary,wordBreak:"normal"},lines:1,children:e}),P=({title:e,titleTooltipProps:t,badge:d,badgeStyles:s,subtitle:o,subtitleTooltipProps:y,infoTooltipText:l,infoTooltipProps:S,href:c,hrefProps:v,rightSlot:T,className:j,titleLinkProps:W})=>{const u=p.useRef(null),C=p.useRef(null),[N,I]=p.useState(0);return p.useLayoutEffect(()=>{const R=()=>{if(u.current&&C.current){const E=u.current.offsetWidth,b=C.current.offsetWidth-E;I(b>0?-b-4:0)}},_=h.createSafeResizeObserver(R);return u.current&&_.observe(u.current),C.current&&_.observe(C.current),R(),()=>_.disconnect()},[]),i.jsxs(mt,{className:h.mergeClasses(m.header,j),children:[i.jsxs(xt,{children:[i.jsxs(ft,{children:[e&&W?i.jsx(Tt,{underline:"none",...W,children:i.jsx(O,{title:e,titleTooltipProps:t})}):i.jsx(O,{title:e,titleTooltipProps:t}),d&&i.jsx(vt,{style:s,children:d}),i.jsx(Ct,{ref:u,children:i.jsxs(Wt,{ref:C,$translateX:N,children:[l&&i.jsx(a.Tooltip,{trigger:"hover",placement:"top",text:l,target:i.jsx(a.EmbedIconButton,{children:i.jsx(D.IconInfoCircleOutline,{size:"xs",style:{cursor:"pointer",color:r.textSecondary}})}),className:h.mergeClasses(m.popoverInfo),...S}),c&&i.jsx(a.Link,{href:c,style:{flexShrink:0},size:"xs",...v,children:i.jsx(bt,{view:"clear",size:"xs",children:i.jsx(D.IconArrowDiagRightUp,{size:"xs"})})})]})})]}),o&&i.jsx(St,{variant:"BodyXS",tooltipText:o,style:{color:r.textSecondary,wordBreak:"normal"},tooltipProps:{placement:"top",...y},lines:1,children:o})]}),T&&i.jsx(_t,{children:T})]})},At=e=>{const t=at[e];return{xl:`
|
|
2
|
+
--analytical-widget-padding: ${t.xl.padding};
|
|
3
|
+
--analytical-widget-br: ${t.xl.borderRadius};
|
|
4
|
+
--analytical-widget-min-height: ${t.xl.minHeight};
|
|
5
|
+
--analytical-widget-min-width: ${t.xl.minWidth||"unset"};
|
|
6
|
+
--analytical-widget-max-width: ${t.xl.maxWidth||"unset"};
|
|
7
|
+
|
|
8
|
+
width: ${t.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: ${t.lg.padding};
|
|
17
|
+
--analytical-widget-br: ${t.lg.borderRadius};
|
|
18
|
+
--analytical-widget-min-height: ${t.lg.minHeight};
|
|
19
|
+
--analytical-widget-min-width: ${t.lg.minWidth||"unset"};
|
|
20
|
+
--analytical-widget-max-width: ${t.lg.maxWidth||"unset"};
|
|
21
|
+
|
|
22
|
+
width: ${t.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: ${t.md.padding};
|
|
31
|
+
--analytical-widget-br: ${t.md.borderRadius};
|
|
32
|
+
--analytical-widget-min-height: ${t.md.minHeight};
|
|
33
|
+
--analytical-widget-min-width: ${t.md.minWidth||"unset"};
|
|
34
|
+
--analytical-widget-max-width: ${t.md.maxWidth||"unset"};
|
|
35
|
+
|
|
36
|
+
width: ${t.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
|
+
`}},Ht=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;}}"," ",""],r.surfaceSolidCard,m.headerActions,({$size:e})=>{const t=At(e);return n.css([""," "," "," "],h.media.exact(0,1439)(t.md),h.media.exact(1440,1919)(t.lg),h.media.exact(1920,1e5)(t.xl))},({$css:e})=>e),jt=n(a.BodyM).withConfig({displayName:"AnalyticalWidgetstyled__StyledTopSlot"})(["overflow:hidden;"]),Nt=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledMiddleSlot"})(["overflow:hidden;padding-top:4px;"]),It=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledContent"})(["position:relative;flex:1;min-height:30px;margin-top:4px;overflow-y:",";"],({scrollable:e})=>e?"auto":"visible"),H=({size:e="l",scrollable:t=!0,headerSlot:d,topSlot:s,middleSlot:o,contentSlot:y,classes:l,$css:S})=>{const c=lt[e];return i.jsxs(Ht,{$size:e,$css:S,className:h.mergeClasses(m.root,l==null?void 0:l.root),children:[i.jsx("div",{style:{minHeight:"32px"},children:d}),c.topSlot&&s||c.middleSlot&&o?i.jsxs("div",{children:[c.topSlot&&s&&i.jsx(jt,{className:h.mergeClasses(m.topSlot,l==null?void 0:l.topSlot),children:s}),c.middleSlot&&o&&i.jsx(Nt,{className:h.mergeClasses(m.middleSlot,l==null?void 0:l.middleSlot),children:o})]}):null,i.jsx(It,{scrollable:t,className:h.mergeClasses(m.contentSlot,l==null?void 0:l.contentSlot),children:y})]})};H.Header=P;H.FilterIconButton=q.IconButtonFilter;H.DotsIconButton=q.IconButtonDots;H.Chips=z;exports.AnalyticalWidget=H;exports.AnalyticalWidgetChipsGroup=z;exports.AnalyticalWidgetHeader=P;exports.TooltipList=nt;exports.Typography=$;exports.TypographyWithAutoTooltip=k;exports.analyticalWidgetClassNames=m;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IconButtonFilter as
|
|
2
|
-
import { ChipGroup as
|
|
1
|
+
import { IconButtonFilter as at, IconButtonDots as lt } from "../components/IconButton/index.mjs";
|
|
2
|
+
import { ChipGroup as ot, Chip as dt, Tooltip as z, TextXS as rt, TextS as st, TextM as pt, TextL as ct, H5 as ht, H4 as yt, H3 as gt, H2 as mt, H1 as ut, DsplS as xt, DsplM as ft, DsplL as wt, BodyXXS as St, BodyXS as vt, BodyS as Wt, BodyM as q, BodyL as Ct, Link as U, IconButton as _t, EmbedIconButton as Tt } from "@salutejs/sdds-finai";
|
|
3
3
|
import { jsx as i, jsxs as w } from "react/jsx-runtime";
|
|
4
|
-
import { inverseTextPrimary as
|
|
5
|
-
import n, { css as
|
|
6
|
-
import { u as
|
|
7
|
-
import { createElement as Bt, useRef as
|
|
4
|
+
import { inverseTextPrimary as bt, bodyXS as At, textTertiary as Ht, surfaceClear as Y, surfaceSolidCard as X, textSecondary as b, bodyM as Nt, textPrimary as J, bodyMBold as It } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
5
|
+
import n, { css as B } from "styled-components";
|
|
6
|
+
import { u as Rt, a as $t, c as Lt, m as v, b as D } from "./utils-D4eJY8pa.mjs";
|
|
7
|
+
import { createElement as Bt, useRef as $, useState as K, useCallback as O, useEffect as P, useLayoutEffect as Et } from "react";
|
|
8
8
|
import { Collapse as kt } from "../components/Collapse/index.mjs";
|
|
9
|
-
import { IconInfoCircleOutline as
|
|
10
|
-
const
|
|
9
|
+
import { IconInfoCircleOutline as Mt, IconArrowDiagRightUp as Dt } from "@salutejs/plasma-icons";
|
|
10
|
+
const Ot = n(dt).withConfig({
|
|
11
11
|
displayName: "AnalyticalWidgetChipsGroupstyled__StyledChip"
|
|
12
|
-
})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),
|
|
12
|
+
})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]), Xt = n(ot).withConfig({
|
|
13
13
|
displayName: "AnalyticalWidgetChipsGroupstyled__StyledChipGroup"
|
|
14
14
|
})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);"]), zt = ({
|
|
15
15
|
chips: e,
|
|
@@ -18,46 +18,46 @@ const Xt = n(ot).withConfig({
|
|
|
18
18
|
opened: d = !1,
|
|
19
19
|
...l
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */ i(kt, { isOpen:
|
|
21
|
+
const s = Rt(d, 300, !1);
|
|
22
|
+
return /* @__PURE__ */ i(kt, { isOpen: s, unMountOnClose: !0, children: /* @__PURE__ */ i(Xt, { view: t, size: o, isCommonChipStyles: !1, ...l, children: e.map(({
|
|
23
23
|
key: a,
|
|
24
24
|
view: u,
|
|
25
25
|
...r
|
|
26
|
-
}, x) => /* @__PURE__ */ Bt(
|
|
27
|
-
},
|
|
26
|
+
}, x) => /* @__PURE__ */ Bt(Ot, { size: "xs", appearance: "transparent", ...r, key: a ?? `${r == null ? void 0 : r.name}-${x}` })) }) });
|
|
27
|
+
}, Gt = n.div.withConfig({
|
|
28
28
|
displayName: "TooltipList__StyledTooltipContent"
|
|
29
|
-
})(["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;}}"], () =>
|
|
29
|
+
})(["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;}}"], () => bt, () => B(At)), Ft = ({
|
|
30
30
|
groupLabel: e,
|
|
31
31
|
items: t
|
|
32
|
-
}) => /* @__PURE__ */ w(
|
|
32
|
+
}) => /* @__PURE__ */ w(Gt, { children: [
|
|
33
33
|
/* @__PURE__ */ i("span", { children: e }),
|
|
34
34
|
/* @__PURE__ */ i("ul", { children: t.map((o, d) => (
|
|
35
35
|
// eslint-disable-next-line react/no-array-index-key
|
|
36
36
|
/* @__PURE__ */ i("li", { children: o }, `${o}-${d}`)
|
|
37
37
|
)) })
|
|
38
|
-
] }),
|
|
38
|
+
] }), Vt = n.div.withConfig({
|
|
39
39
|
displayName: "TooltipList__FullWidthWrapper"
|
|
40
|
-
})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]),
|
|
40
|
+
})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]), Ne = ({
|
|
41
41
|
groupLabel: e,
|
|
42
42
|
items: t,
|
|
43
43
|
children: o,
|
|
44
44
|
fullWidth: d,
|
|
45
45
|
...l
|
|
46
46
|
}) => {
|
|
47
|
-
const
|
|
48
|
-
|
|
47
|
+
const s = t.length > 0, a = /* @__PURE__ */ i(
|
|
48
|
+
z,
|
|
49
49
|
{
|
|
50
50
|
usePortal: !0,
|
|
51
51
|
size: "s",
|
|
52
52
|
mouseEnterDelay: 500,
|
|
53
53
|
...l,
|
|
54
|
-
trigger:
|
|
55
|
-
text:
|
|
56
|
-
opened:
|
|
54
|
+
trigger: s ? l.trigger ?? "hover" : "none",
|
|
55
|
+
text: s ? /* @__PURE__ */ i(Ft, { groupLabel: e, items: t }) : null,
|
|
56
|
+
opened: s ? l.opened : !1,
|
|
57
57
|
children: o
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
|
-
return d ? /* @__PURE__ */ i(
|
|
60
|
+
return d ? /* @__PURE__ */ i(Vt, { children: a }) : a;
|
|
61
61
|
}, Yt = {
|
|
62
62
|
l: {
|
|
63
63
|
xl: {
|
|
@@ -152,7 +152,7 @@ const Xt = n(ot).withConfig({
|
|
|
152
152
|
borderRadius: "16px"
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, Pt = {
|
|
156
156
|
l: {
|
|
157
157
|
topSlot: !0,
|
|
158
158
|
// Filters + chips
|
|
@@ -179,24 +179,24 @@ const Xt = n(ot).withConfig({
|
|
|
179
179
|
middleSlot: "analytical-widget__middle-slot",
|
|
180
180
|
contentSlot: "analytical-widget__content",
|
|
181
181
|
headerActions: "analytical-widget__header-actions"
|
|
182
|
-
},
|
|
183
|
-
BodyL:
|
|
184
|
-
BodyM:
|
|
185
|
-
BodyS:
|
|
186
|
-
BodyXS:
|
|
187
|
-
BodyXXS:
|
|
188
|
-
DsplL:
|
|
189
|
-
DsplM:
|
|
190
|
-
DsplS:
|
|
191
|
-
H1:
|
|
192
|
-
H2:
|
|
193
|
-
H3:
|
|
194
|
-
H4:
|
|
195
|
-
H5:
|
|
196
|
-
TextL:
|
|
197
|
-
TextM:
|
|
198
|
-
TextS:
|
|
199
|
-
TextXS:
|
|
182
|
+
}, jt = {
|
|
183
|
+
BodyL: Ct,
|
|
184
|
+
BodyM: q,
|
|
185
|
+
BodyS: Wt,
|
|
186
|
+
BodyXS: vt,
|
|
187
|
+
BodyXXS: St,
|
|
188
|
+
DsplL: wt,
|
|
189
|
+
DsplM: ft,
|
|
190
|
+
DsplS: xt,
|
|
191
|
+
H1: ut,
|
|
192
|
+
H2: mt,
|
|
193
|
+
H3: gt,
|
|
194
|
+
H4: yt,
|
|
195
|
+
H5: ht,
|
|
196
|
+
TextL: ct,
|
|
197
|
+
TextM: pt,
|
|
198
|
+
TextS: st,
|
|
199
|
+
TextXS: rt
|
|
200
200
|
};
|
|
201
201
|
function G({
|
|
202
202
|
variant: e,
|
|
@@ -204,118 +204,118 @@ function G({
|
|
|
204
204
|
refTypography: o,
|
|
205
205
|
...d
|
|
206
206
|
}) {
|
|
207
|
-
const l =
|
|
207
|
+
const l = jt[e];
|
|
208
208
|
return /* @__PURE__ */ i(l, { ...d, ref: o, children: t });
|
|
209
209
|
}
|
|
210
210
|
G.displayName = "Typography";
|
|
211
|
-
const
|
|
212
|
-
let
|
|
211
|
+
const L = "typography-with-auto-tooltip-root";
|
|
212
|
+
let T = !1, m = null, R = 0;
|
|
213
213
|
function Q() {
|
|
214
214
|
if (typeof document > "u")
|
|
215
215
|
return;
|
|
216
|
-
const e = document.getElementById(
|
|
216
|
+
const e = document.getElementById(L);
|
|
217
217
|
e && e.querySelectorAll("[id^='plasma-popover-root']:empty").forEach((t) => t.remove());
|
|
218
218
|
}
|
|
219
219
|
function qt() {
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
T || (T = !0, m = setTimeout(() => {
|
|
221
|
+
T = !1, m = null, Q();
|
|
222
222
|
}, 0));
|
|
223
223
|
}
|
|
224
|
-
function Pt() {
|
|
225
|
-
m && (clearTimeout(m), m = null), _ = !1;
|
|
226
|
-
}
|
|
227
224
|
function Ut() {
|
|
228
|
-
m && (clearTimeout(m), m = null),
|
|
225
|
+
m && (clearTimeout(m), m = null), T = !1;
|
|
229
226
|
}
|
|
230
227
|
function Jt() {
|
|
228
|
+
m && (clearTimeout(m), m = null), T = !1, Q();
|
|
229
|
+
}
|
|
230
|
+
function Kt() {
|
|
231
231
|
if (!(typeof document > "u")) {
|
|
232
|
-
if (
|
|
232
|
+
if (R += 1, R === 1) {
|
|
233
233
|
const e = document.createElement("div");
|
|
234
|
-
e.id =
|
|
234
|
+
e.id = L, document.body.appendChild(e);
|
|
235
235
|
}
|
|
236
236
|
return () => {
|
|
237
|
-
if (
|
|
238
|
-
const e = document.getElementById(
|
|
237
|
+
if (R -= 1, R === 0) {
|
|
238
|
+
const e = document.getElementById(L);
|
|
239
239
|
e && (e.querySelectorAll("[id^='plasma-popover-root']").length > 0 || e.remove());
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Qt() {
|
|
245
245
|
return {
|
|
246
246
|
schedule: qt,
|
|
247
|
-
flush:
|
|
248
|
-
cancel:
|
|
249
|
-
getContainerId: () =>
|
|
250
|
-
createContainer:
|
|
247
|
+
flush: Jt,
|
|
248
|
+
cancel: Ut,
|
|
249
|
+
getContainerId: () => L,
|
|
250
|
+
createContainer: Kt
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
const
|
|
253
|
+
const Zt = n(z).withConfig({
|
|
254
254
|
displayName: "TypographyWithAutoTooltipstyled__StyledTooltip"
|
|
255
|
-
})(["&.popover-target{width:100%;}"]),
|
|
255
|
+
})(["&.popover-target{width:100%;}"]), te = n.div.withConfig({
|
|
256
256
|
displayName: "TypographyWithAutoTooltipstyled__StyleTooltipWrapper"
|
|
257
|
-
})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), F = ({
|
|
257
|
+
})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), ee = 1, F = ({
|
|
258
258
|
tooltipText: e,
|
|
259
259
|
tooltipProps: t,
|
|
260
260
|
lines: o = 1,
|
|
261
261
|
className: d,
|
|
262
262
|
children: l,
|
|
263
|
-
...
|
|
263
|
+
...s
|
|
264
264
|
}) => {
|
|
265
265
|
const {
|
|
266
266
|
mouseEnterDelay: a = 500,
|
|
267
267
|
mouseLeaveDelay: u = 0,
|
|
268
268
|
...r
|
|
269
|
-
} = t || {}, x =
|
|
269
|
+
} = t || {}, x = $(null), [W, A] = K(!1), S = $(), {
|
|
270
270
|
schedule: c,
|
|
271
271
|
getContainerId: f,
|
|
272
272
|
createContainer: H
|
|
273
|
-
} =
|
|
273
|
+
} = Qt(), N = O(() => {
|
|
274
274
|
if (!x.current)
|
|
275
275
|
return !1;
|
|
276
|
-
const
|
|
276
|
+
const p = x.current;
|
|
277
277
|
if (o > 1)
|
|
278
|
-
return
|
|
279
|
-
if (s.scrollWidth > s.clientWidth)
|
|
280
|
-
return !0;
|
|
278
|
+
return p.scrollHeight > p.clientHeight || p.scrollWidth > p.clientWidth;
|
|
281
279
|
try {
|
|
282
280
|
const h = document.createRange();
|
|
283
|
-
h.selectNodeContents(
|
|
284
|
-
const et = h.getBoundingClientRect().width, it =
|
|
285
|
-
|
|
281
|
+
h.selectNodeContents(p);
|
|
282
|
+
const et = h.getBoundingClientRect().width, it = p.getBoundingClientRect().width;
|
|
283
|
+
h.detach();
|
|
284
|
+
const nt = window.devicePixelRatio || 1;
|
|
285
|
+
return (et - it) * nt > ee;
|
|
286
286
|
} catch {
|
|
287
287
|
return !1;
|
|
288
288
|
}
|
|
289
|
-
}, [o]), I =
|
|
289
|
+
}, [o]), I = O(() => {
|
|
290
290
|
N() && (S.current = setTimeout(() => {
|
|
291
291
|
A(!0);
|
|
292
292
|
}, a));
|
|
293
|
-
}, [N, a]), C =
|
|
293
|
+
}, [N, a]), C = O(() => {
|
|
294
294
|
clearTimeout(S.current), setTimeout(() => {
|
|
295
295
|
A(!1), c();
|
|
296
296
|
}, u);
|
|
297
297
|
}, [u, c]), {
|
|
298
|
-
variant:
|
|
298
|
+
variant: k,
|
|
299
299
|
bold: M,
|
|
300
|
-
size:
|
|
300
|
+
size: _,
|
|
301
301
|
...g
|
|
302
|
-
} =
|
|
303
|
-
variant:
|
|
302
|
+
} = s, tt = {
|
|
303
|
+
variant: k,
|
|
304
304
|
...M !== void 0 && {
|
|
305
305
|
bold: M
|
|
306
306
|
},
|
|
307
|
-
...
|
|
308
|
-
size:
|
|
307
|
+
..._ !== void 0 && {
|
|
308
|
+
size: _
|
|
309
309
|
},
|
|
310
310
|
...g,
|
|
311
311
|
refTypography: x,
|
|
312
|
-
onMouseEnter: (
|
|
312
|
+
onMouseEnter: (p) => {
|
|
313
313
|
var h;
|
|
314
|
-
(h = g.onMouseEnter) == null || h.call(g,
|
|
314
|
+
(h = g.onMouseEnter) == null || h.call(g, p);
|
|
315
315
|
},
|
|
316
|
-
onMouseLeave: (
|
|
316
|
+
onMouseLeave: (p) => {
|
|
317
317
|
var h;
|
|
318
|
-
(h = g.onMouseLeave) == null || h.call(g,
|
|
318
|
+
(h = g.onMouseLeave) == null || h.call(g, p);
|
|
319
319
|
},
|
|
320
320
|
style: {
|
|
321
321
|
...$t({
|
|
@@ -324,65 +324,65 @@ const Qt = n(O).withConfig({
|
|
|
324
324
|
...g.style || {}
|
|
325
325
|
},
|
|
326
326
|
children: l
|
|
327
|
-
},
|
|
328
|
-
return
|
|
327
|
+
}, V = /* @__PURE__ */ i(G, { ...tt, children: l });
|
|
328
|
+
return P(() => H(), [H]), P(() => () => {
|
|
329
329
|
clearTimeout(S.current), c();
|
|
330
|
-
}, [c]), /* @__PURE__ */ i(
|
|
331
|
-
},
|
|
330
|
+
}, [c]), /* @__PURE__ */ i(te, { className: d, onMouseEnter: I, onMouseLeave: C, children: W ? /* @__PURE__ */ i(Zt, { opened: W, text: e ?? "", target: V, frame: f(), ...r }) : V });
|
|
331
|
+
}, ie = () => B(It), Z = () => B(Nt), ne = n.header.withConfig({
|
|
332
332
|
displayName: "AnalyticalWidgetHeaderstyled__StyledHeader"
|
|
333
|
-
})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], y.popoverInfo),
|
|
333
|
+
})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], y.popoverInfo), ae = n.div.withConfig({
|
|
334
334
|
displayName: "AnalyticalWidgetHeaderstyled__StyledLeftSlot"
|
|
335
|
-
})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]),
|
|
335
|
+
})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]), le = n.div.withConfig({
|
|
336
336
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleContainer"
|
|
337
337
|
})(["margin:0;display:flex;flex-shrink:1;min-width:0;"]);
|
|
338
338
|
n.p.withConfig({
|
|
339
339
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitle"
|
|
340
|
-
})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () =>
|
|
341
|
-
const
|
|
340
|
+
})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => ie(), () => J);
|
|
341
|
+
const oe = n(F).withConfig({
|
|
342
342
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"
|
|
343
|
-
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),
|
|
343
|
+
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), de = n(F).withConfig({
|
|
344
344
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"
|
|
345
|
-
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]),
|
|
345
|
+
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]), re = n.p.withConfig({
|
|
346
346
|
displayName: "AnalyticalWidgetHeaderstyled__StyledAfterTitle"
|
|
347
|
-
})(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => Z(), () =>
|
|
347
|
+
})(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => Z(), () => Ht), se = n.div.withConfig({
|
|
348
348
|
displayName: "AnalyticalWidgetHeaderstyled__StyledActionsContainer"
|
|
349
|
-
})(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]),
|
|
349
|
+
})(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]), pe = n.div.attrs({
|
|
350
350
|
className: y.headerActions
|
|
351
351
|
}).withConfig({
|
|
352
352
|
displayName: "AnalyticalWidgetHeaderstyled__StyledActionsWrapper"
|
|
353
|
-
})(["position:absolute;display:flex;left:0;top:0;transform:translateX( ", "px );padding-left:", "px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,", " 0%,", " 15%,", " 40%,", " 100% );"], (e) => e.$translateX ? e.$translateX : 0, (e) => e.$translateX ? 20 : 0,
|
|
353
|
+
})(["position:absolute;display:flex;left:0;top:0;transform:translateX( ", "px );padding-left:", "px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,", " 0%,", " 15%,", " 40%,", " 100% );"], (e) => e.$translateX ? e.$translateX : 0, (e) => e.$translateX ? 20 : 0, Y, Y, X, X);
|
|
354
354
|
n.p.withConfig({
|
|
355
355
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitle"
|
|
356
356
|
})(["", " flex-shrink:1;margin:0;min-width:0;color:", ";"], () => Z(), () => b);
|
|
357
357
|
n(G).withConfig({
|
|
358
358
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"
|
|
359
359
|
})(["color:", ";"], () => b);
|
|
360
|
-
const
|
|
360
|
+
const ce = n(U).withConfig({
|
|
361
361
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleLink"
|
|
362
362
|
})(["display:flex;min-width:0;flex-shrink:1;"]);
|
|
363
363
|
n(F).withConfig({
|
|
364
364
|
displayName: "AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"
|
|
365
365
|
})(["flex-shrink:1;margin:0;min-width:0;"]);
|
|
366
|
-
const
|
|
366
|
+
const he = n.div.withConfig({
|
|
367
367
|
displayName: "AnalyticalWidgetHeaderstyled__StyledRightSlot"
|
|
368
|
-
})(["align-self:start;"]),
|
|
368
|
+
})(["align-self:start;"]), ye = n(_t).withConfig({
|
|
369
369
|
displayName: "AnalyticalWidgetHeaderstyled__StyledLinkIconButton"
|
|
370
|
-
})(["&&{width:24px;height:24px;color:", ";}"], () => b),
|
|
370
|
+
})(["&&{width:24px;height:24px;color:", ";}"], () => b), j = ({
|
|
371
371
|
title: e,
|
|
372
372
|
titleTooltipProps: t
|
|
373
|
-
}) => /* @__PURE__ */ i(
|
|
373
|
+
}) => /* @__PURE__ */ i(oe, { tooltipText: e, tooltipProps: {
|
|
374
374
|
placement: "top",
|
|
375
375
|
...t
|
|
376
376
|
}, variant: "BodyM", bold: !0, style: {
|
|
377
377
|
color: J,
|
|
378
378
|
wordBreak: "normal"
|
|
379
|
-
}, lines: 1, children: e }),
|
|
379
|
+
}, lines: 1, children: e }), ge = ({
|
|
380
380
|
title: e,
|
|
381
381
|
titleTooltipProps: t,
|
|
382
382
|
badge: o,
|
|
383
383
|
badgeStyles: d,
|
|
384
384
|
subtitle: l,
|
|
385
|
-
subtitleTooltipProps:
|
|
385
|
+
subtitleTooltipProps: s,
|
|
386
386
|
infoTooltipText: a,
|
|
387
387
|
infoTooltipProps: u,
|
|
388
388
|
href: r,
|
|
@@ -391,41 +391,41 @@ const pe = n.div.withConfig({
|
|
|
391
391
|
className: A,
|
|
392
392
|
titleLinkProps: S
|
|
393
393
|
}) => {
|
|
394
|
-
const c =
|
|
395
|
-
return
|
|
394
|
+
const c = $(null), f = $(null), [H, N] = K(0);
|
|
395
|
+
return Et(() => {
|
|
396
396
|
const I = () => {
|
|
397
397
|
if (c.current && f.current) {
|
|
398
|
-
const
|
|
399
|
-
N(
|
|
398
|
+
const k = c.current.offsetWidth, _ = f.current.offsetWidth - k;
|
|
399
|
+
N(_ > 0 ? -_ - 4 : 0);
|
|
400
400
|
}
|
|
401
|
-
}, C =
|
|
401
|
+
}, C = Lt(I);
|
|
402
402
|
return c.current && C.observe(c.current), f.current && C.observe(f.current), I(), () => C.disconnect();
|
|
403
|
-
}, []), /* @__PURE__ */ w(
|
|
404
|
-
/* @__PURE__ */ w(
|
|
405
|
-
/* @__PURE__ */ w(
|
|
406
|
-
e && S ? /* @__PURE__ */ i(
|
|
407
|
-
o && /* @__PURE__ */ i(
|
|
408
|
-
/* @__PURE__ */ i(
|
|
409
|
-
a && /* @__PURE__ */ i(
|
|
403
|
+
}, []), /* @__PURE__ */ w(ne, { className: v(y.header, A), children: [
|
|
404
|
+
/* @__PURE__ */ w(ae, { children: [
|
|
405
|
+
/* @__PURE__ */ w(le, { children: [
|
|
406
|
+
e && S ? /* @__PURE__ */ i(ce, { underline: "none", ...S, children: /* @__PURE__ */ i(j, { title: e, titleTooltipProps: t }) }) : /* @__PURE__ */ i(j, { title: e, titleTooltipProps: t }),
|
|
407
|
+
o && /* @__PURE__ */ i(re, { style: d, children: o }),
|
|
408
|
+
/* @__PURE__ */ i(se, { ref: c, children: /* @__PURE__ */ w(pe, { ref: f, $translateX: H, children: [
|
|
409
|
+
a && /* @__PURE__ */ i(z, { trigger: "hover", placement: "top", text: a, target: /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(Mt, { size: "xs", style: {
|
|
410
410
|
cursor: "pointer",
|
|
411
411
|
color: b
|
|
412
412
|
} }) }), className: v(y.popoverInfo), ...u }),
|
|
413
413
|
r && /* @__PURE__ */ i(U, { href: r, style: {
|
|
414
414
|
flexShrink: 0
|
|
415
|
-
}, size: "xs", ...x, children: /* @__PURE__ */ i(
|
|
415
|
+
}, size: "xs", ...x, children: /* @__PURE__ */ i(ye, { view: "clear", size: "xs", children: /* @__PURE__ */ i(Dt, { size: "xs" }) }) })
|
|
416
416
|
] }) })
|
|
417
417
|
] }),
|
|
418
|
-
l && /* @__PURE__ */ i(
|
|
418
|
+
l && /* @__PURE__ */ i(de, { variant: "BodyXS", tooltipText: l, style: {
|
|
419
419
|
color: b,
|
|
420
420
|
wordBreak: "normal"
|
|
421
421
|
}, tooltipProps: {
|
|
422
422
|
placement: "top",
|
|
423
|
-
...
|
|
423
|
+
...s
|
|
424
424
|
}, lines: 1, children: l })
|
|
425
425
|
] }),
|
|
426
|
-
W && /* @__PURE__ */ i(
|
|
426
|
+
W && /* @__PURE__ */ i(he, { children: W })
|
|
427
427
|
] });
|
|
428
|
-
},
|
|
428
|
+
}, me = (e) => {
|
|
429
429
|
const t = Yt[e];
|
|
430
430
|
return {
|
|
431
431
|
xl: `
|
|
@@ -474,55 +474,55 @@ const pe = n.div.withConfig({
|
|
|
474
474
|
border-radius: var(--analytical-widget-br);
|
|
475
475
|
`
|
|
476
476
|
};
|
|
477
|
-
},
|
|
477
|
+
}, ue = n.article.withConfig({
|
|
478
478
|
displayName: "AnalyticalWidgetstyled__StyledWidget"
|
|
479
|
-
})(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""],
|
|
479
|
+
})(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""], X, y.headerActions, ({
|
|
480
480
|
$size: e
|
|
481
481
|
}) => {
|
|
482
|
-
const t =
|
|
483
|
-
return
|
|
482
|
+
const t = me(e);
|
|
483
|
+
return B(["", " ", " ", " "], D.exact(0, 1439)(t.md), D.exact(1440, 1919)(t.lg), D.exact(1920, 1e5)(t.xl));
|
|
484
484
|
}, ({
|
|
485
485
|
$css: e
|
|
486
|
-
}) => e),
|
|
486
|
+
}) => e), xe = n(q).withConfig({
|
|
487
487
|
displayName: "AnalyticalWidgetstyled__StyledTopSlot"
|
|
488
|
-
})(["overflow:hidden;"]),
|
|
488
|
+
})(["overflow:hidden;"]), fe = n.div.withConfig({
|
|
489
489
|
displayName: "AnalyticalWidgetstyled__StyledMiddleSlot"
|
|
490
|
-
})(["overflow:hidden;padding-top:4px;"]),
|
|
490
|
+
})(["overflow:hidden;padding-top:4px;"]), we = n.div.withConfig({
|
|
491
491
|
displayName: "AnalyticalWidgetstyled__StyledContent"
|
|
492
492
|
})(["position:relative;flex:1;min-height:30px;margin-top:4px;overflow-y:", ";"], ({
|
|
493
493
|
scrollable: e
|
|
494
|
-
}) => e ? "auto" : "visible"),
|
|
494
|
+
}) => e ? "auto" : "visible"), E = ({
|
|
495
495
|
size: e = "l",
|
|
496
496
|
scrollable: t = !0,
|
|
497
497
|
headerSlot: o,
|
|
498
498
|
topSlot: d,
|
|
499
499
|
middleSlot: l,
|
|
500
|
-
contentSlot:
|
|
500
|
+
contentSlot: s,
|
|
501
501
|
classes: a,
|
|
502
502
|
$css: u
|
|
503
503
|
}) => {
|
|
504
|
-
const r =
|
|
505
|
-
return /* @__PURE__ */ w(
|
|
504
|
+
const r = Pt[e];
|
|
505
|
+
return /* @__PURE__ */ w(ue, { $size: e, $css: u, className: v(y.root, a == null ? void 0 : a.root), children: [
|
|
506
506
|
/* @__PURE__ */ i("div", { style: {
|
|
507
507
|
minHeight: "32px"
|
|
508
508
|
}, children: o }),
|
|
509
509
|
r.topSlot && d || r.middleSlot && l ? /* @__PURE__ */ w("div", { children: [
|
|
510
|
-
r.topSlot && d && /* @__PURE__ */ i(
|
|
511
|
-
r.middleSlot && l && /* @__PURE__ */ i(
|
|
510
|
+
r.topSlot && d && /* @__PURE__ */ i(xe, { className: v(y.topSlot, a == null ? void 0 : a.topSlot), children: d }),
|
|
511
|
+
r.middleSlot && l && /* @__PURE__ */ i(fe, { className: v(y.middleSlot, a == null ? void 0 : a.middleSlot), children: l })
|
|
512
512
|
] }) : null,
|
|
513
|
-
/* @__PURE__ */ i(
|
|
513
|
+
/* @__PURE__ */ i(we, { scrollable: t, className: v(y.contentSlot, a == null ? void 0 : a.contentSlot), children: s })
|
|
514
514
|
] });
|
|
515
515
|
};
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
516
|
+
E.Header = ge;
|
|
517
|
+
E.FilterIconButton = at;
|
|
518
|
+
E.DotsIconButton = lt;
|
|
519
|
+
E.Chips = zt;
|
|
520
520
|
export {
|
|
521
|
-
|
|
521
|
+
E as A,
|
|
522
522
|
G as T,
|
|
523
523
|
F as a,
|
|
524
524
|
y as b,
|
|
525
|
-
|
|
525
|
+
Ne as c,
|
|
526
526
|
zt as d,
|
|
527
|
-
|
|
527
|
+
ge as e
|
|
528
528
|
};
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-B6czTLSw.cjs"),R=require("./EmptyState-Du-RIjie.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;
|