@daisforge/ui 1.19.0 → 1.21.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-Cdo6_s1Y.mjs → AnalyticalWidget-BtyWKJuu.mjs} +34 -34
- package/chunks/AnalyticalWidget-YytE3Rlw.cjs +43 -0
- package/chunks/{ApprovalCenter-DxcvzR8q.mjs → ApprovalCenter-DLKZP2AO.mjs} +2 -2
- package/chunks/{ApprovalCenter-CAcC43zn.cjs → ApprovalCenter-DdsLEipZ.cjs} +1 -1
- package/chunks/BlockTitle-DC1McGof.cjs +1 -0
- package/chunks/BlockTitle-DsXxImR6.mjs +86 -0
- package/chunks/{Container-CrB1jwqH.cjs → Container-DHnX1sHY.cjs} +1 -1
- package/chunks/{Container-Cy8w2JOq.mjs → Container-DbZwlfIM.mjs} +1 -1
- package/chunks/{EmptyState-B205JfZA.mjs → EmptyState-CUCseg9M.mjs} +1 -1
- package/chunks/{EmptyState-CcxlsZm0.cjs → EmptyState-DH1xawxg.cjs} +1 -1
- package/chunks/{FiltersActions-CFStLRsU.mjs → FiltersActions-CDZSO0MM.mjs} +4 -4
- package/chunks/{FiltersActions-BKJJH6Mu.cjs → FiltersActions-CVtgAJnC.cjs} +1 -1
- package/chunks/{FormSegmentGroup-CCCqRgCG.cjs → FormSegmentGroup-BYQ6yMK1.cjs} +1 -1
- package/chunks/{FormSegmentGroup-E1JurEt7.mjs → FormSegmentGroup-C9qYxYT9.mjs} +1 -1
- package/chunks/{GridDND-UMUi8M_Q.mjs → GridDND-CqvpXgCY.mjs} +2 -2
- package/chunks/{GridDND-DV-1g1sI.cjs → GridDND-DK6SAO8q.cjs} +1 -1
- package/chunks/LeftPanel-AyuV7bGS.cjs +1 -0
- package/chunks/{LeftPanel-HZu3ECqD.mjs → LeftPanel-C5SsoRJS.mjs} +47 -45
- package/chunks/{ListOfFilters-DJvnT9kw.cjs → ListOfFilters-BAPz0OY9.cjs} +1 -1
- package/chunks/{ListOfFilters-DTAZ3wfQ.mjs → ListOfFilters-Bd8CZHDq.mjs} +3 -3
- package/chunks/{MassActions-Z-48g81T.cjs → MassActions-C08IgW4a.cjs} +1 -1
- package/chunks/{MassActions-DSAaO1-u.mjs → MassActions-D5UwHcNG.mjs} +3 -3
- package/chunks/PageTitle-CrBeieoq.cjs +9 -0
- package/chunks/PageTitle-DkfAiZM4.mjs +133 -0
- package/chunks/{SplitView-DYHeCnl9.mjs → SplitView-BqS1Jbo4.mjs} +1 -1
- package/chunks/{SplitView-UKIBuvTi.cjs → SplitView-DNmd4sJe.cjs} +1 -1
- package/chunks/{Stories-Dlwle-SM.mjs → Stories-BnHxMCEZ.mjs} +3 -3
- package/chunks/{Stories-CZXv_Ves.cjs → Stories-UYVANawW.cjs} +1 -1
- package/chunks/Table-CdaMPDkg.cjs +31 -0
- package/chunks/{Table-B9OAyWAW.mjs → Table-DYSssxRS.mjs} +2761 -2679
- package/chunks/{TableCanvas-DkZAx-r9.mjs → TableCanvas-DDNRdQjN.mjs} +7074 -6977
- package/chunks/TableCanvas-DPHSYfH3.cjs +30 -0
- package/chunks/{TableGlide-CkorJrl9.mjs → TableGlide-DAnTJtye.mjs} +2295 -2231
- package/chunks/TableGlide-am_w97mF.cjs +1 -0
- package/chunks/{styles-C-1Srtr7.mjs → styles-CJ5y9FKW.mjs} +1 -1
- package/chunks/{styles-AUqEaroI.cjs → styles-kUWPuNSD.cjs} +1 -1
- package/chunks/utils-ChDQGRjv.cjs +25 -0
- package/chunks/{utils-YKicAHp0.mjs → utils-u1KJ37g3.mjs} +120 -108
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- 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 +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/BlockTitle.d.ts +1 -1
- package/components/BlockTitle/BlockTitle.types.d.ts +2 -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/styled.d.ts +1 -0
- 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 +2 -2
- package/components/PageTitle/PageTitle.styled.d.ts +3 -1
- 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/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 +2 -2
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +2 -2
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +3 -3
- 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/combobox.d.ts +3 -2
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.d.ts +4 -2
- package/components/Table/feature-filtering/combobox/index.mjs +7 -3
- 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/filter-component-in-popover.d.ts +1 -2
- 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.d.ts +1 -1
- package/components/Table/feature-filtering/index.mjs +13 -9
- package/components/Table/feature-filtering/render-slot.d.ts +5 -0
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +2 -2
- package/components/Table/feature-filtering/use-focus-search-input.d.ts +2 -0
- 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 +3 -3
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +3 -3
- package/components/Table/feature-reorder-columns/handlers.d.ts +4 -0
- 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 +5 -5
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +2 -2
- 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 +2 -2
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.d.ts +1 -1
- package/components/Table/index.mjs +43 -39
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +3 -3
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +9 -9
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +3 -3
- package/components/Table/types/column-config.type.d.ts +1 -0
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/types/table-config.type.d.ts +1 -0
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +4 -4
- 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/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-borders/buildBorderCallbacks.d.ts +16 -0
- package/components/TableCanvas/feature-borders/useBorders.d.ts +14 -0
- 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/combobox.d.ts +3 -2
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.d.ts +4 -2
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +7 -3
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +2 -2
- package/components/TableCanvas/feature-filtering/header-filter-button/filter-component-in-popover.d.ts +1 -2
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +2 -2
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.d.ts +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +12 -8
- package/components/TableCanvas/feature-filtering/render-slot.d.ts +5 -0
- 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 +3 -3
- 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 +2 -2
- 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 +6 -6
- 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-reorder-columns/handlers.d.ts +4 -0
- 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 +3 -3
- 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 +2 -2
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +6 -6
- package/components/TableCanvas/feature-tree/handlers.d.ts +1 -0
- 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 +1 -1
- package/components/TableCanvas/index.mjs +63 -59
- 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 +12 -12
- package/components/TableCanvas/types/column-config.type.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 +28 -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 +2 -2
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +3 -3
- 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 +5 -5
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +8 -8
- 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/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.d.ts +1 -2
- package/components/TableGlide/hooks/selection/index.mjs +6 -7
- package/components/TableGlide/hooks/selection/useColoringLayers.d.ts +25 -0
- package/components/TableGlide/hooks/useHoverState.d.ts +18 -0
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +9 -9
- 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/custom-colors.d.ts +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +3 -3
- package/components/TableGlide/types.d.ts +1 -3
- 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 +1778 -1773
- 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 +1208 -523
- 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.mjs +1 -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.d.ts +1 -0
- package/utils/index.mjs +30 -29
- package/utils/react/getMFReactDOMClient.d.ts +7 -0
- package/utils/react/index.cjs +1 -0
- package/utils/react/index.d.ts +1 -0
- package/utils/react/index.mjs +4 -0
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-wke3Jm3X.cjs +0 -43
- package/chunks/BlockTitle-BEIxiECX.cjs +0 -1
- package/chunks/BlockTitle-BZxOEdTc.mjs +0 -85
- package/chunks/LeftPanel-B3-ySDMW.cjs +0 -1
- package/chunks/PageTitle-Bh3g6FUT.cjs +0 -1
- package/chunks/PageTitle-CaqXfrrQ.mjs +0 -123
- package/chunks/Table-BwhzcFX1.cjs +0 -31
- package/chunks/TableCanvas-QmXGAjPk.cjs +0 -30
- package/chunks/TableGlide-Bngn5_5l.cjs +0 -1
- package/chunks/utils-CUW5bd8S.cjs +0 -25
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EmbeddedButton as et } from "@salutejs/sdds-finai/beta";
|
|
2
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
|
|
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
4
|
import { jsx as i, jsxs as v, Fragment as _t } from "react/jsx-runtime";
|
|
5
|
-
import {
|
|
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
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-
|
|
8
|
-
import { forwardRef as Bt, useRef as R, createElement as Et, useState as $t, useCallback as I, useEffect as
|
|
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
9
|
import { IconDotsVerticalOutline as Dt, IconDotsHorizontalOutline as kt, IconInfoCircleOutline as Mt } from "@salutejs/plasma-icons";
|
|
10
10
|
import { Collapse as Ot } from "../components/Collapse/index.mjs";
|
|
11
11
|
const zt = {
|
|
@@ -145,14 +145,14 @@ const zt = {
|
|
|
145
145
|
dropdownProps: t,
|
|
146
146
|
iconSize: e,
|
|
147
147
|
iconOrientation: o = "vertical",
|
|
148
|
-
view: d = "
|
|
148
|
+
view: d = "default",
|
|
149
149
|
size: l = "m",
|
|
150
150
|
absolute: s = !1,
|
|
151
151
|
absoluteOffset: n = 12,
|
|
152
152
|
style: g,
|
|
153
153
|
...p
|
|
154
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"
|
|
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
156
|
return s ? /* @__PURE__ */ i(Gt, { $offset: n, children: w }) : w;
|
|
157
157
|
});
|
|
158
158
|
X.displayName = "AnalyticalWidgetIconButtonDots";
|
|
@@ -211,7 +211,7 @@ const Vt = a(lt).withConfig({
|
|
|
211
211
|
return d ? /* @__PURE__ */ i(qt, { children: n }) : n;
|
|
212
212
|
}, Jt = {
|
|
213
213
|
BodyL: vt,
|
|
214
|
-
BodyM:
|
|
214
|
+
BodyM: G,
|
|
215
215
|
BodyS: St,
|
|
216
216
|
BodyXS: wt,
|
|
217
217
|
BodyXXS: ft,
|
|
@@ -228,7 +228,7 @@ const Vt = a(lt).withConfig({
|
|
|
228
228
|
TextS: dt,
|
|
229
229
|
TextXS: ot
|
|
230
230
|
};
|
|
231
|
-
function
|
|
231
|
+
function E({
|
|
232
232
|
variant: t,
|
|
233
233
|
children: e,
|
|
234
234
|
refTypography: o,
|
|
@@ -237,7 +237,7 @@ function $({
|
|
|
237
237
|
const l = Jt[t];
|
|
238
238
|
return /* @__PURE__ */ i(l, { ...d, ref: o, children: e });
|
|
239
239
|
}
|
|
240
|
-
|
|
240
|
+
E.displayName = "Typography";
|
|
241
241
|
const b = "typography-with-auto-tooltip-root";
|
|
242
242
|
let W = !1, x = null, C = 0;
|
|
243
243
|
function Y() {
|
|
@@ -284,7 +284,7 @@ const ee = a(B).withConfig({
|
|
|
284
284
|
displayName: "TypographyWithAutoTooltipstyled__StyledTooltip"
|
|
285
285
|
})(["&.popover-target{width:100%;}"]), ie = a.div.withConfig({
|
|
286
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,
|
|
287
|
+
})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), ne = 1, $ = ({
|
|
288
288
|
tooltipText: t,
|
|
289
289
|
tooltipProps: e,
|
|
290
290
|
lines: o = 1,
|
|
@@ -299,8 +299,8 @@ const ee = a(B).withConfig({
|
|
|
299
299
|
} = e || {}, y = R(null), [c, f] = $t(!1), w = R(), {
|
|
300
300
|
schedule: _,
|
|
301
301
|
getContainerId: P,
|
|
302
|
-
createContainer:
|
|
303
|
-
} = te(),
|
|
302
|
+
createContainer: L
|
|
303
|
+
} = te(), D = I(() => {
|
|
304
304
|
if (!y.current)
|
|
305
305
|
return !1;
|
|
306
306
|
const h = y.current;
|
|
@@ -317,25 +317,25 @@ const ee = a(B).withConfig({
|
|
|
317
317
|
return !1;
|
|
318
318
|
}
|
|
319
319
|
}, [o]), q = I(() => {
|
|
320
|
-
|
|
320
|
+
D() && (w.current = setTimeout(() => {
|
|
321
321
|
f(!0);
|
|
322
322
|
}, n));
|
|
323
|
-
}, [
|
|
323
|
+
}, [D, n]), J = I(() => {
|
|
324
324
|
clearTimeout(w.current), setTimeout(() => {
|
|
325
325
|
f(!1), _();
|
|
326
326
|
}, g);
|
|
327
327
|
}, [g, _]), {
|
|
328
328
|
variant: K,
|
|
329
|
-
bold:
|
|
330
|
-
size:
|
|
329
|
+
bold: k,
|
|
330
|
+
size: M,
|
|
331
331
|
...u
|
|
332
332
|
} = s, Q = {
|
|
333
333
|
variant: K,
|
|
334
|
-
...
|
|
335
|
-
bold:
|
|
334
|
+
...k !== void 0 && {
|
|
335
|
+
bold: k
|
|
336
336
|
},
|
|
337
|
-
...
|
|
338
|
-
size:
|
|
337
|
+
...M !== void 0 && {
|
|
338
|
+
size: M
|
|
339
339
|
},
|
|
340
340
|
...u,
|
|
341
341
|
refTypography: y,
|
|
@@ -354,10 +354,10 @@ const ee = a(B).withConfig({
|
|
|
354
354
|
...u.style || {}
|
|
355
355
|
},
|
|
356
356
|
children: l
|
|
357
|
-
},
|
|
358
|
-
return
|
|
357
|
+
}, O = /* @__PURE__ */ i(E, { ...Q, children: l });
|
|
358
|
+
return z(() => L(), [L]), z(() => () => {
|
|
359
359
|
clearTimeout(w.current), _();
|
|
360
|
-
}, [_]), /* @__PURE__ */ i(ie, { className: d, onMouseEnter: q, onMouseLeave: J, children: c ? /* @__PURE__ */ i(ee, { opened: c, text: t ?? "", target:
|
|
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
361
|
}, ae = () => A(Ht), j = () => A(At), le = a.header.withConfig({
|
|
362
362
|
displayName: "AnalyticalWidgetHeaderstyled__StyledHeader"
|
|
363
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({
|
|
@@ -367,10 +367,10 @@ const ee = a(B).withConfig({
|
|
|
367
367
|
})(["margin:0;display:flex;align-items:center;flex-shrink:1;min-width:0;"]);
|
|
368
368
|
a.p.withConfig({
|
|
369
369
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitle"
|
|
370
|
-
})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => ae(), () =>
|
|
371
|
-
const re = a(
|
|
370
|
+
})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => ae(), () => V);
|
|
371
|
+
const re = a($).withConfig({
|
|
372
372
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"
|
|
373
|
-
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), se = a(
|
|
373
|
+
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), se = a($).withConfig({
|
|
374
374
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"
|
|
375
375
|
})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), pe = a.p.withConfig({
|
|
376
376
|
displayName: "AnalyticalWidgetHeaderstyled__StyledAfterTitle"
|
|
@@ -382,25 +382,25 @@ const re = a(L).withConfig({
|
|
|
382
382
|
a.p.withConfig({
|
|
383
383
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitle"
|
|
384
384
|
})(["", " flex-shrink:1;margin:0;min-width:0;color:", ";"], () => j(), () => T);
|
|
385
|
-
a(
|
|
385
|
+
a(E).withConfig({
|
|
386
386
|
displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"
|
|
387
387
|
})(["color:", ";"], () => T);
|
|
388
388
|
const he = a(Wt).withConfig({
|
|
389
389
|
displayName: "AnalyticalWidgetHeaderstyled__StyledTitleLink"
|
|
390
390
|
})(["display:flex;min-width:0;flex-shrink:1;"]);
|
|
391
|
-
a(
|
|
391
|
+
a($).withConfig({
|
|
392
392
|
displayName: "AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"
|
|
393
393
|
})(["flex-shrink:1;margin:0;min-width:0;"]);
|
|
394
394
|
const ge = a.div.withConfig({
|
|
395
395
|
displayName: "AnalyticalWidgetHeaderstyled__StyledRightSlot"
|
|
396
|
-
})(["align-self:start;flex-shrink:0;"]),
|
|
396
|
+
})(["align-self:start;flex-shrink:0;"]), F = ({
|
|
397
397
|
title: t,
|
|
398
398
|
titleTooltipProps: e
|
|
399
399
|
}) => typeof t != "string" ? /* @__PURE__ */ i(_t, { children: t }) : /* @__PURE__ */ i(re, { tooltipText: t, tooltipProps: {
|
|
400
400
|
placement: "top",
|
|
401
401
|
...e
|
|
402
402
|
}, variant: "BodyM", bold: !0, style: {
|
|
403
|
-
color:
|
|
403
|
+
color: V,
|
|
404
404
|
wordBreak: "normal"
|
|
405
405
|
}, lines: 1, children: t }), ye = ({
|
|
406
406
|
title: t,
|
|
@@ -417,7 +417,7 @@ const ge = a.div.withConfig({
|
|
|
417
417
|
}) => /* @__PURE__ */ v(le, { className: S(r.header, y), children: [
|
|
418
418
|
/* @__PURE__ */ v(oe, { children: [
|
|
419
419
|
/* @__PURE__ */ v(de, { children: [
|
|
420
|
-
t && c ? /* @__PURE__ */ i(he, { underline: "none", ...c, children: /* @__PURE__ */ i(
|
|
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
421
|
o && /* @__PURE__ */ i(pe, { style: d, children: o }),
|
|
422
422
|
n && /* @__PURE__ */ i(ce, { children: /* @__PURE__ */ i(B, { trigger: "hover", placement: "top", text: n, target: /* @__PURE__ */ i(Mt, { size: "xs", style: {
|
|
423
423
|
cursor: "pointer",
|
|
@@ -491,7 +491,7 @@ const ge = a.div.withConfig({
|
|
|
491
491
|
return A(["", " ", " ", " "], N.exact(0, 1439)(e.md), N.exact(1440, 1919)(e.lg), N.exact(1920, 1e5)(e.xl));
|
|
492
492
|
}, ({
|
|
493
493
|
$css: t
|
|
494
|
-
}) => t), xe = a(
|
|
494
|
+
}) => t), xe = a(G).withConfig({
|
|
495
495
|
displayName: "AnalyticalWidgetstyled__StyledTopSlot"
|
|
496
496
|
})(["overflow:hidden;margin-top:8px;&:empty{margin-top:0;}&:has(.", "){margin-top:0;}"], r.selfSpacedTopSlot), fe = a.div.withConfig({
|
|
497
497
|
displayName: "AnalyticalWidgetstyled__StyledMiddleSlot"
|
|
@@ -527,8 +527,8 @@ H.DotsIconButton = X;
|
|
|
527
527
|
H.Chips = Yt;
|
|
528
528
|
export {
|
|
529
529
|
H as A,
|
|
530
|
-
|
|
531
|
-
|
|
530
|
+
E as T,
|
|
531
|
+
$ as a,
|
|
532
532
|
r as b,
|
|
533
533
|
Ie as c,
|
|
534
534
|
X as d,
|
|
@@ -0,0 +1,43 @@
|
|
|
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;
|
|
@@ -4,8 +4,8 @@ import { useState as nt } from "react";
|
|
|
4
4
|
import { textNegative as W, surfacePositive as R, textWarning as P, surfaceTransparentSecondary as Y, surfaceSolidCard as O, textSecondary as T, textPrimary as I } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
5
5
|
import { IconCloseCircleFill as j, IconDoneCircleFill as u, IconFocusOutline as st, IconInProgressFill as rt } from "@salutejs/plasma-icons";
|
|
6
6
|
import s from "styled-components";
|
|
7
|
-
import { T as f } from "./AnalyticalWidget-
|
|
8
|
-
import { E as lt } from "./EmptyState-
|
|
7
|
+
import { T as f } from "./AnalyticalWidget-BtyWKJuu.mjs";
|
|
8
|
+
import { E as lt } from "./EmptyState-CUCseg9M.mjs";
|
|
9
9
|
const at = {
|
|
10
10
|
DEFAULT: /* @__PURE__ */ t(u, { size: "xs", color: Y }),
|
|
11
11
|
WAIT: /* @__PURE__ */ t(st, { size: "xs", color: P }),
|
|
@@ -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-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;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Box as x } from "../components/Box/index.mjs";
|
|
3
|
+
import { IconButton as b } from "@salutejs/sdds-finai";
|
|
4
|
+
import { T as S, a as u } from "./AnalyticalWidget-BtyWKJuu.mjs";
|
|
5
|
+
import { IconChevronLeft as C } from "@salutejs/plasma-icons";
|
|
6
|
+
import { d as N } from "./utils-u1KJ37g3.mjs";
|
|
7
|
+
import { spacing2x as d, spacing12x as w, spacing8x as z, textSecondary as v } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
8
|
+
import o from "styled-components";
|
|
9
|
+
const e = {
|
|
10
|
+
backButton: "block-title__back-button",
|
|
11
|
+
container: "block-title__container",
|
|
12
|
+
contentLeft: "block-title__content-left",
|
|
13
|
+
description: "block-title__description",
|
|
14
|
+
topBlock: "block-title__top-block",
|
|
15
|
+
rightBlock: "block-title__right-block",
|
|
16
|
+
title: "block-title__title",
|
|
17
|
+
titleBlock: "block-title__title-block"
|
|
18
|
+
}, L = o.div.withConfig({
|
|
19
|
+
displayName: "styled__BlockTitleContainer"
|
|
20
|
+
})(["display:flex;justify-content:space-between;width:100%;gap:", ";"], () => w), I = o.div.withConfig({
|
|
21
|
+
displayName: "styled__BlockTitleBlock"
|
|
22
|
+
})(["display:flex;align-items:center;gap:", ";margin-bottom:", ";"], () => d, () => d), j = o.div.withConfig({
|
|
23
|
+
displayName: "styled__BlockTitleCustomBlock"
|
|
24
|
+
})(["width:100%;margin-bottom:", ";"], () => d), D = o(S).withConfig({
|
|
25
|
+
displayName: "styled__BlockTitleDescription"
|
|
26
|
+
})(["color:", ";padding-left:", ";"], () => v, ({
|
|
27
|
+
$hasLeftSlot: t
|
|
28
|
+
}) => t ? "28px" : "0"), E = o.div.withConfig({
|
|
29
|
+
displayName: "styled__BlockTitleLeftBlock"
|
|
30
|
+
})(["display:flex;min-height:100%;flex-direction:column;justify-content:end;"]), H = o.div.withConfig({
|
|
31
|
+
displayName: "styled__BlockTitleRightBlock"
|
|
32
|
+
})(["display:flex;min-height:100%;align-items:end;"]), $ = o.div.withConfig({
|
|
33
|
+
displayName: "styled__BlockTitleContentLeft"
|
|
34
|
+
})(["display:flex;align-items:flex-start;gap:", ";flex:1;min-width:0;"], () => z), A = o.div.withConfig({
|
|
35
|
+
displayName: "styled__BlockTitleBackButtonContainer"
|
|
36
|
+
})(["margin-top:3px;"]), g = {
|
|
37
|
+
titleBadgeSize: "m",
|
|
38
|
+
titleIconSize: "s"
|
|
39
|
+
}, R = (t) => t === "H4" || t === "H5" ? {
|
|
40
|
+
titleBadgeSize: "s",
|
|
41
|
+
titleIconSize: "xs"
|
|
42
|
+
} : g, F = (t, i) => ({
|
|
43
|
+
...i ? R(t) : g,
|
|
44
|
+
buttonSize: i ? "xs" : "s",
|
|
45
|
+
actionIconSize: i ? "xs" : "s"
|
|
46
|
+
}), O = (t) => t ? "xxs" : "xs", a = (t, i) => typeof t == "function" ? t(i) : t, Q = ({
|
|
47
|
+
title: t,
|
|
48
|
+
titleSize: i = "H2",
|
|
49
|
+
titleTooltipProps: k,
|
|
50
|
+
titleLeftSlot: r,
|
|
51
|
+
titleRightSlot: m,
|
|
52
|
+
description: p,
|
|
53
|
+
topSlot: h,
|
|
54
|
+
rightSlot: _,
|
|
55
|
+
disableMediaAdaptive: y = !1,
|
|
56
|
+
containerProps: n,
|
|
57
|
+
onBackButtonClick: B
|
|
58
|
+
}) => {
|
|
59
|
+
const {
|
|
60
|
+
down: T
|
|
61
|
+
} = N(), f = !y && T("xl"), s = F(i, f);
|
|
62
|
+
return /* @__PURE__ */ c(x, { ...n, className: `${e.container} ${(n == null ? void 0 : n.className) ?? ""}`, children: [
|
|
63
|
+
/* @__PURE__ */ l(j, { className: e.topBlock, children: a(h, s) }),
|
|
64
|
+
/* @__PURE__ */ c(L, { children: [
|
|
65
|
+
/* @__PURE__ */ c($, { className: e.contentLeft, children: [
|
|
66
|
+
B && /* @__PURE__ */ l(A, { className: e.backButton, children: /* @__PURE__ */ l(b, { size: O(f), view: "secondary", pin: "circle-circle", onClick: B, children: /* @__PURE__ */ l(C, { size: "xs", color: "inherit" }) }) }),
|
|
67
|
+
/* @__PURE__ */ c(E, { children: [
|
|
68
|
+
/* @__PURE__ */ c(I, { className: e.titleBlock, children: [
|
|
69
|
+
a(r, s),
|
|
70
|
+
/* @__PURE__ */ l(u, { tooltipText: typeof t == "string" ? t : void 0, variant: i, className: e.title, lines: 2, tooltipProps: k, children: t }),
|
|
71
|
+
a(m, s)
|
|
72
|
+
] }),
|
|
73
|
+
p && /* @__PURE__ */ l(D, { variant: "BodyS", className: e.description, $hasLeftSlot: !!r, children: p })
|
|
74
|
+
] })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ l(H, { className: e.rightBlock, children: a(_, s) })
|
|
77
|
+
] })
|
|
78
|
+
] });
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
Q as B,
|
|
82
|
+
F as a,
|
|
83
|
+
e as b,
|
|
84
|
+
O as g,
|
|
85
|
+
a as r
|
|
86
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("./utils-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("./utils-ChDQGRjv.cjs"),T=require("react"),u=require("../components/Box/index.cjs"),x=require("@salutejs/sdds-themes/tokens/sdds_finai"),t=require("styled-components"),a={wrapper:"container__wrapper",left:"container__wrapper_left",middle:"container__wrapper_middle",right:"container__wrapper_right"},m={MIN_COL_WIDTH:"360px",GAP:"24px",FIXED_WIDTH:"360px",MIN_FIXED_WIDTH:"240px"},f=e=>{switch(e){case"30/70":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),30%) minmax(0,1fr);"]);case"20/80":return t.css(["grid-template-columns:minmax(var(--container-min-col-width),20%) minmax(0,1fr);"]);case"70/30":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),30%);"]);case"80/20":return t.css(["grid-template-columns:minmax(0,1fr) minmax(var(--container-min-col-width),20%);"]);case"1/1":return t.css(["grid-template-columns:minmax(0,1fr) minmax(0,1fr);",""],i.media.down("xl")`
|
|
2
2
|
grid-template-columns: minmax(0, 1fr)
|
|
3
3
|
`);case"1/1/1":return t.css(["grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);",""],i.media.down("xl")`
|
|
4
4
|
grid-template-columns: minmax(0, 1fr)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as D } from "react/jsx-runtime";
|
|
2
|
-
import { b as n, r as T } from "./utils-
|
|
2
|
+
import { b as n, r as T } from "./utils-u1KJ37g3.mjs";
|
|
3
3
|
import A from "react";
|
|
4
4
|
import { Box as x } from "../components/Box/index.mjs";
|
|
5
5
|
import { borderRadiusM as h } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as E, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { m as a } from "./utils-
|
|
2
|
+
import { m as a } from "./utils-u1KJ37g3.mjs";
|
|
3
3
|
import { useMemo as N } from "react";
|
|
4
4
|
import { spacing4x as B, spacing6x as w, spacing16x as C, textPrimary as Z, spacing8x as H, h2Bold as U, spacing2x as R, h4Bold as I, textSecondary as Q, bodySBold as V, bodyL as W, bodyM as S, bodyS as L } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
5
5
|
import f, { css as Y } from "styled-components";
|