@daisforge/ui 1.14.1 → 1.15.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-BSpo7GCr.mjs +535 -0
- package/chunks/AnalyticalWidget-D_g7b36w.cjs +43 -0
- package/chunks/{ApprovalCenter-XCXGHaEP.mjs → ApprovalCenter-B0yUrIFR.mjs} +1 -1
- package/chunks/{ApprovalCenter-DG3YvEkY.cjs → ApprovalCenter-BeD-ALq3.cjs} +1 -1
- package/chunks/{BlockTitle-3YmyxJHJ.cjs → BlockTitle-BcV_T7TJ.cjs} +1 -1
- package/chunks/{BlockTitle-DDWF1ZeV.mjs → BlockTitle-D-4agd3o.mjs} +1 -1
- package/chunks/{FiltersActions-C38x0y5T.mjs → FiltersActions-DlV5c-6Y.mjs} +3 -3
- package/chunks/{FiltersActions-CvAwGV9F.cjs → FiltersActions-Dw5QqWa8.cjs} +1 -1
- package/chunks/{GridDND-BnK1dEhJ.mjs → GridDND-BhSmT9qp.mjs} +125 -131
- package/chunks/GridDND-D7-FwG3y.cjs +1 -0
- package/chunks/{ListOfFilters-DNzfSG-p.cjs → ListOfFilters-DEkjOH7o.cjs} +1 -1
- package/chunks/{ListOfFilters-Cji5UH2J.mjs → ListOfFilters-DngSRGOp.mjs} +2 -2
- package/chunks/{MassActions-BOG04zip.mjs → MassActions-CA35MxqC.mjs} +2 -2
- package/chunks/{MassActions-DCk9APKP.cjs → MassActions-Cphn-d4v.cjs} +1 -1
- package/chunks/{PageTitle-CQ_6jZ0x.mjs → PageTitle-BjLWtqbD.mjs} +1 -1
- package/chunks/{PageTitle-BIllremL.cjs → PageTitle-S-pY5lbg.cjs} +1 -1
- package/chunks/{Stories-dFpUqS5T.mjs → Stories-BCtwdhv0.mjs} +1 -1
- package/chunks/{Stories-e_CX_1CS.cjs → Stories-CkjLhZAi.cjs} +1 -1
- package/chunks/{Table-CrJFfavU.cjs → Table-C2ehPQDQ.cjs} +1 -1
- package/chunks/{Table-f0CmcIhI.mjs → Table-DBKZzRuR.mjs} +4 -4
- package/chunks/{TableCanvas-1bi1WWeP.mjs → TableCanvas-1y-yKIq1.mjs} +4 -4
- package/chunks/{TableCanvas-DqF5YxEY.cjs → TableCanvas-CE8Fv99t.cjs} +1 -1
- package/components/AnalyticalWidget/AnalyticalWidget.constants.d.ts +2 -0
- package/components/AnalyticalWidget/AnalyticalWidget.d.ts +13 -54
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +14 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.styled.d.ts +3 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.d.ts +3 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +4 -3
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.d.ts +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.styled.d.ts +1 -75
- 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 +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/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/GridDND/GridDND.ItemWrapper.d.ts +1 -2
- package/components/GridDND/GridDND.d.ts +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/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/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/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/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 +1 -1
- 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-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 +1 -1
- 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/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +1 -1
- 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 +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 +1 -1
- 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 +1 -1
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/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 +11 -11
- 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/mcp-data/component-index.json +57 -131
- package/package.json +1 -1
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +6 -6
- package/chunks/AnalyticalWidget-B6czTLSw.cjs +0 -43
- package/chunks/AnalyticalWidget-BWggL9xa.mjs +0 -528
- package/chunks/GridDND-CVAlpElj.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),u=require("../components/Box/index.cjs"),S=require("@salutejs/sdds-finai"),x=require("./AnalyticalWidget-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),u=require("../components/Box/index.cjs"),S=require("@salutejs/sdds-finai"),x=require("./AnalyticalWidget-D_g7b36w.cjs"),b=require("@salutejs/plasma-icons"),C=require("./utils-DvDFSlCG.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"},N=o.div.withConfig({displayName:"styled__BlockTitleContainer"})(["display:flex;justify-content:space-between;width:100%;gap:",";"],()=>c.spacing12x),z=o.div.withConfig({displayName:"styled__BlockTitleBlock"})(["display:flex;align-items:center;gap:",";margin-bottom:",";"],()=>c.spacing2x,()=>c.spacing2x),j=o.div.withConfig({displayName:"styled__BlockTitleCustomBlock"})(["width:100%;margin-bottom:",";"],()=>c.spacing2x),w=o(x.Typography).withConfig({displayName:"styled__BlockTitleDescription"})(["color:",";padding-left:",";"],()=>c.textSecondary,({$hasLeftSlot:t})=>t?"28px":"0"),v=o.div.withConfig({displayName:"styled__BlockTitleLeftBlock"})(["display:flex;min-height:100%;flex-direction:column;justify-content:end;"]),L=o.div.withConfig({displayName:"styled__BlockTitleRightBlock"})(["display:flex;min-height:100%;align-items:end;"]),I=o.div.withConfig({displayName:"styled__BlockTitleContentLeft"})(["display:flex;align-items:flex-start;gap:",";flex:1;min-width:0;"],()=>c.spacing8x),q=o.div.withConfig({displayName:"styled__BlockTitleBackButtonContainer"})(["margin-top:3px;"]),p={titleBadgeSize:"m",titleIconSize:"s"},A=t=>t==="H4"||t==="H5"?{titleBadgeSize:"s",titleIconSize:"xs"}:p,h=(t,l)=>({...l?A(t):p,buttonSize:l?"xs":"s",actionIconSize:l?"xs":"s"}),m=t=>t?"xxs":"xs",s=(t,l)=>typeof t=="function"?t(l):t,D=({title:t,titleSize:l="H2",titleLeftSlot:d,titleRightSlot:k,description:r,topSlot:_,rightSlot:T,disableMediaAdaptive:y=!1,containerProps:n,onBackButtonClick:B})=>{const{down:f}=C.useBreakpoint(),g=!y&&f("xl"),a=h(l,g);return e.jsxs(u.Box,{...n,className:`${i.container} ${(n==null?void 0:n.className)??""}`,children:[e.jsx(j,{className:i.topBlock,children:s(_,a)}),e.jsxs(N,{children:[e.jsxs(I,{className:i.contentLeft,children:[B&&e.jsx(q,{className:i.backButton,children:e.jsx(S.IconButton,{size:m(g),view:"secondary",pin:"circle-circle",onClick:B,children:e.jsx(b.IconChevronLeft,{size:"xs",color:"inherit"})})}),e.jsxs(v,{children:[e.jsxs(z,{className:i.titleBlock,children:[s(d,a),e.jsx(x.TypographyWithAutoTooltip,{tooltipText:typeof t=="string"?t:void 0,variant:l,className:i.title,lines:2,children:t}),s(k,a)]}),r&&e.jsx(w,{variant:"BodyS",className:i.description,$hasLeftSlot:!!d,children:r})]})]}),e.jsx(L,{className:i.rightBlock,children:s(T,a)})]})]})};exports.BlockTitle=D;exports.blockTitleClassNames=i;exports.getBlockTitleBackButtonSize=m;exports.getBlockTitleSlotSizes=h;exports.renderBlockTitleSlot=s;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Box as T } from "../components/Box/index.mjs";
|
|
3
3
|
import { IconButton as x } from "@salutejs/sdds-finai";
|
|
4
|
-
import { T as b, a as S } from "./AnalyticalWidget-
|
|
4
|
+
import { T as b, a as S } from "./AnalyticalWidget-BSpo7GCr.mjs";
|
|
5
5
|
import { IconChevronLeft as u } from "@salutejs/plasma-icons";
|
|
6
6
|
import { d as C } from "./utils-D4eJY8pa.mjs";
|
|
7
7
|
import { spacing2x as k, spacing12x as N, spacing8x as w, textSecondary as z } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
@@ -3,12 +3,12 @@ import { jsx as o, jsxs as y, Fragment as lt } from "react/jsx-runtime";
|
|
|
3
3
|
import { IconDotsVerticalCenteredOutline as at, IconSettingsFilter as W, IconClose as P, IconResizeCorneredFill as dt } from "@salutejs/plasma-icons";
|
|
4
4
|
import c, { css as D } from "styled-components";
|
|
5
5
|
import { Box as A } from "../components/Box/index.mjs";
|
|
6
|
-
import { D as ct } from "./Table-
|
|
6
|
+
import { D as ct } from "./Table-DBKZzRuR.mjs";
|
|
7
7
|
import { surfaceNegative as pt, textSecondary as ht, surfaceSolidCard as ft, borderRadiusM as ut, shadowDownHardS as mt, textTertiary as gt, surfaceTransparentSecondary as yt, borderRadiusL as xt, inverseTextPrimary as vt, bodyXS as wt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
8
8
|
import { lazy as bt, useState as M, useCallback as T, forwardRef as Ft, useRef as I, useLayoutEffect as St, useMemo as Bt, useEffect as Tt } from "react";
|
|
9
9
|
import { IconButtonDots as Ct } from "../components/IconButton/index.mjs";
|
|
10
10
|
import { TextFieldSearch as H } from "../components/TextField/index.mjs";
|
|
11
|
-
import { c as j } from "./AnalyticalWidget-
|
|
11
|
+
import { c as j } from "./AnalyticalWidget-BSpo7GCr.mjs";
|
|
12
12
|
import { c as _t, q as kt } from "./utils-D4eJY8pa.mjs";
|
|
13
13
|
const ce = ({
|
|
14
14
|
dropdownProps: t,
|
|
@@ -54,7 +54,7 @@ const ce = ({
|
|
|
54
54
|
...h
|
|
55
55
|
})).withConfig({
|
|
56
56
|
displayName: "FiltersButton__FiltersActionsFiltersButton"
|
|
57
|
-
})(["position:relative;white-space:nowrap;"]), It = bt(() => import("./ListOfFilters-
|
|
57
|
+
})(["position:relative;white-space:nowrap;"]), It = bt(() => import("./ListOfFilters-DngSRGOp.mjs").then((t) => t.a)), Rt = c(It).attrs(({
|
|
58
58
|
paddingTop: t,
|
|
59
59
|
...e
|
|
60
60
|
}) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),C=require("@salutejs/plasma-icons"),d=require("styled-components"),z=require("../components/Box/index.cjs"),K=require("./Table-CrJFfavU.cjs"),v=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),E=require("../components/TextField/index.cjs"),M=require("./AnalyticalWidget-B6czTLSw.cjs"),P=require("./utils-DvDFSlCG.cjs"),Y=({dropdownProps:t,iconSize:i,...l})=>{const n=e.jsx(g.IconButton,{view:"secondary",size:"s",...l,children:e.jsx(C.IconDotsVerticalCenteredOutline,{size:i??"s"})});return t?e.jsx(g.Dropdown,{...t,children:n}):n},q=({visible:t,topLeft:i})=>e.jsx(z.Box,{$css:{position:"absolute",top:i??0,right:i??0,width:"8px",aspectRatio:"1",borderRadius:"50%",transition:K.DEFAULT_TABLE_TRANSITION,backgroundColor:"transparent",transform:"scale(0)",...t&&{backgroundColor:v.surfaceNegative,transform:"scale(1)"}}}),N=d(g.Button).attrs(({redSquare:t,hideLabel:i=!1,size:l,iconSize:n,children:r,...h})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),children:e.jsxs(e.Fragment,{children:[r??(!i&&(h.text??"Ещё фильтры")),i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),e.jsx(q,{visible:t})]}),...h})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),tt=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-DNzfSG-p.cjs")).then(t=>t.ListOfFilters_lazy)),H=d(tt).attrs(({paddingTop:t,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),O=({visible:t,offset:i})=>e.jsx(q,{visible:t,topLeft:i}),$=d(g.Tabs).attrs(t=>({size:"xs",view:"filled",...t})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:t})=>t),V=d(g.TabItem).attrs(t=>({size:"s",view:"default",...t})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:t})=>t),A={borderRadiusM:()=>v.borderRadiusM,shadowDownHardS:()=>v.shadowDownHardS,surfaceSolidCard:()=>v.surfaceSolidCard},et=d(g.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),it=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverContentContainer"})(["background-color:",";border-radius:",";box-shadow:",";min-width:360px;max-width:700px;max-height:80dvh;height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"],A.surfaceSolidCard,A.borderRadiusM,A.shadowDownHardS),st=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),ot=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),nt=d.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]),rt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverMainContent"})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]),lt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverFooter"})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]),R={minHeight:430,minWidth:360,maxWidth:700,maxHeight:typeof window<"u"?window.innerHeight*.8:600,defaultSize:{width:360,height:430},directions:["bottom-right","right","top-right"],icons:{topRight:null,bottomRight:e.jsx(C.IconResizeCorneredFill,{color:v.textTertiary}),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:t,subtitle:i,content:l,state:n,onClose:r,footer:h,redSquare:o=!1,popoverProps:u={},buttonProps:s,renderTarget:a,searchable:w,searchValue:F,onSearchChange:m,searchingProps:b,emptySearchContent:y})=>{const{resizable:c,...B}=u,_=(x=>x===!1?!1:x===!0||x==null?R:typeof x=="object"&&x!==null?{...R,...x}:R)(c),[I,k]=p.useState(!1),[S,T]=n??[I,k],Z=p.useCallback(()=>{T(!1),r==null||r()},[r,T]),J=p.useCallback(x=>{T(x),x||r==null||r()},[r,T]),W=p.useCallback(()=>{T(!S)},[S,T]);return e.jsx(et,{opened:S,onToggle:J,target:a?a({onClick:W,isOpen:S,isRedDotVisible:o,RedDot:O}):e.jsx(N,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var L;(L=s==null?void 0:s.onClick)==null||L.call(s,x),W()}}),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:_,...B,children:e.jsxs(it,{children:[e.jsxs(st,{children:[e.jsxs(ot,{children:[e.jsxs(nt,{children:[e.jsx(g.BodyM,{bold:!0,children:t}),i&&e.jsx(g.BodyXS,{color:v.textSecondary,children:i})]}),e.jsx(g.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:"8px"},children:e.jsx(C.IconClose,{size:"xs"})})]}),w&&e.jsx(E.TextFieldSearch,{value:F,onChange:x=>m==null?void 0:m(x.target.value),placeholder:"Поиск",...b})]}),e.jsx(rt,{children:y||l}),h&&e.jsx(lt,{children:h})]})})},at=d(g.LinkButton).attrs(t=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:e.jsx(C.IconClose,{size:"xs",color:"inherit"}),style:{...t.style,visibility:t.isVisible?"visible":"hidden",pointerEvents:t.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:t})=>t),ct=d(g.SegmentItem).attrs(t=>({size:"s",view:"primary",...t})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:t})=>t),dt=d(g.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:t})=>t?v.surfaceTransparentSecondary:"none",({hasBackground:t})=>t?"10px 14px":"auto",({hasBackground:t})=>t?"10px":"auto"),X=p.forwardRef(({hasBackground:t,size:i,...l},n)=>e.jsx(dt,{hasBackground:t,ref:n,size:t?"m":i,...l})),ut=({...t})=>e.jsx(X,{size:"m",toggleSize:"s",hasBackground:!0,...t}),ht=(t,i)=>{if(!t&&!i)return;const l=t&&{$css:t.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return d.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pt=d(z.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=d.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>v.borderRadiusL),ft=d(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xt=d(z.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:t,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:h,ref:o,...u}={},onResize:s})=>{const a=p.useRef(null),w=p.useRef(null),F=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const m=a.current,b=w.current,y=F.current;if(!m||!b)return;const c={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},B=()=>{const _=m.getBoundingClientRect().width,I=b.getBoundingClientRect().width,k=y?y.getBoundingClientRect().width:0,S=I;c.containerWidth=_,c.mainBlockWidth=I,c.buttonsBlockWidth=k,c.availableMainBlockWidth=S,s({...c})},j=P.createSafeResizeObserver(()=>{B()});return j.observe(m),j.observe(b),y&&j.observe(y),B(),()=>{j.disconnect()}},[s]),e.jsx(pt,{ref:a,...r,children:e.jsxs(G,{children:[e.jsxs(xt,{$css:ht(n,h),...u,ref:P.mergeRefs(o,w),children:[t,l&&e.jsx(ft,{ref:F,children:l})]}),i]})})};f.FiltersButton=N;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=H;f.TextFieldSearch=E.TextFieldSearch;f.Tabs=$;f.TabItem=V;f.SegmentItem=ct;f.Tooltip=M.TooltipList;f.TooltipList=M.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=at;f.SwitcherFilter=ut;f.RedDot=O;function D(t,i,l){const{visible:n=[],inOverlay:r=[],hidden:h=[],modifications:o={},customActions:u={}}=l,s=new Set(n),a=new Set(r),w=new Set(h),F=t.filter(c=>s.has(c.id)),m=t.filter(c=>a.has(c.id)),b=t.filter(c=>w.has(c.id)),y=[];return n.forEach(c=>{y.push({type:"show",targetId:c,payload:null})}),r.forEach(c=>{y.push({type:"moveToOverlay",targetId:c,payload:null})}),h.forEach(c=>{y.push({type:"hide",targetId:c,payload:null})}),Object.entries(o).forEach(([c,B])=>{y.push({type:"modify",targetId:c,payload:B})}),{visibleItems:F,overlayItems:m,hiddenItems:b,modifications:o,actions:y,activeBreakpoint:i,hasOverlayItems:m.length>0,hasModifications:Object.keys(o).length>0,customActions:u}}const gt=({items:t,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,a])=>({breakpoint:Number(s),config:a})).sort((s,a)=>a.breakpoint-s.breakpoint),u=o.find(({breakpoint:s})=>i>=s);if(!u){const s=o[o.length-1];return D(t,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return D(t,u.breakpoint,u.config)},[t,i,l]),r=p.useCallback((o,u)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&u?s.width=`${u*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),h=p.useCallback((o,u)=>o.some(s=>{const a=u[s.id];return a===void 0?!1:Array.isArray(a)?a.length>0:typeof a=="boolean"?a===!0:typeof a=="string"?a!=="":typeof a=="number"?a!==0:!!a}),[]);return{...n,getItemStyle:r,hasActiveFilters:h}},yt=()=>d.css(v.bodyXS),mt=d.div.withConfig({displayName:"Tooltip__StyledTooltipContent"})(["color:",";"," & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>v.inverseTextPrimary,()=>yt()),vt=({groupLabel:t,items:i})=>e.jsxs(mt,{children:[e.jsx("span",{children:t}),e.jsx("ul",{children:i.map(l=>e.jsx("li",{children:l}))})]}),bt=({groupLabel:t,items:i,children:l,...n})=>{const[r,h]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){h(!0);const u=setTimeout(()=>{h(!1)},0);return()=>clearTimeout(u)}},[o]),e.jsx(g.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:e.jsx(vt,{groupLabel:t,items:i}),size:"s",...n,children:l},`tooltip-${r}`)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=N;exports.FiltersActionsListOfFilters=H;exports.FiltersActionsTabItem=V;exports.FiltersActionsTabs=$;exports.FiltersActionsTooltip=bt;exports.RedDot=O;exports.Switch=X;exports.useAdaptiveFilters=gt;
|
|
1
|
+
"use strict";const g=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),C=require("@salutejs/plasma-icons"),d=require("styled-components"),z=require("../components/Box/index.cjs"),K=require("./Table-C2ehPQDQ.cjs"),v=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),E=require("../components/TextField/index.cjs"),M=require("./AnalyticalWidget-D_g7b36w.cjs"),P=require("./utils-DvDFSlCG.cjs"),Y=({dropdownProps:t,iconSize:i,...l})=>{const n=e.jsx(g.IconButton,{view:"secondary",size:"s",...l,children:e.jsx(C.IconDotsVerticalCenteredOutline,{size:i??"s"})});return t?e.jsx(g.Dropdown,{...t,children:n}):n},q=({visible:t,topLeft:i})=>e.jsx(z.Box,{$css:{position:"absolute",top:i??0,right:i??0,width:"8px",aspectRatio:"1",borderRadius:"50%",transition:K.DEFAULT_TABLE_TRANSITION,backgroundColor:"transparent",transform:"scale(0)",...t&&{backgroundColor:v.surfaceNegative,transform:"scale(1)"}}}),N=d(g.Button).attrs(({redSquare:t,hideLabel:i=!1,size:l,iconSize:n,children:r,...h})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),children:e.jsxs(e.Fragment,{children:[r??(!i&&(h.text??"Ещё фильтры")),i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),e.jsx(q,{visible:t})]}),...h})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),tt=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-DEkjOH7o.cjs")).then(t=>t.ListOfFilters_lazy)),H=d(tt).attrs(({paddingTop:t,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),O=({visible:t,offset:i})=>e.jsx(q,{visible:t,topLeft:i}),$=d(g.Tabs).attrs(t=>({size:"xs",view:"filled",...t})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:t})=>t),V=d(g.TabItem).attrs(t=>({size:"s",view:"default",...t})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:t})=>t),A={borderRadiusM:()=>v.borderRadiusM,shadowDownHardS:()=>v.shadowDownHardS,surfaceSolidCard:()=>v.surfaceSolidCard},et=d(g.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),it=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverContentContainer"})(["background-color:",";border-radius:",";box-shadow:",";min-width:360px;max-width:700px;max-height:80dvh;height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"],A.surfaceSolidCard,A.borderRadiusM,A.shadowDownHardS),st=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),ot=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),nt=d.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]),rt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverMainContent"})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]),lt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverFooter"})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]),R={minHeight:430,minWidth:360,maxWidth:700,maxHeight:typeof window<"u"?window.innerHeight*.8:600,defaultSize:{width:360,height:430},directions:["bottom-right","right","top-right"],icons:{topRight:null,bottomRight:e.jsx(C.IconResizeCorneredFill,{color:v.textTertiary}),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:t,subtitle:i,content:l,state:n,onClose:r,footer:h,redSquare:o=!1,popoverProps:u={},buttonProps:s,renderTarget:a,searchable:w,searchValue:F,onSearchChange:m,searchingProps:b,emptySearchContent:y})=>{const{resizable:c,...B}=u,_=(x=>x===!1?!1:x===!0||x==null?R:typeof x=="object"&&x!==null?{...R,...x}:R)(c),[I,k]=p.useState(!1),[S,T]=n??[I,k],Z=p.useCallback(()=>{T(!1),r==null||r()},[r,T]),J=p.useCallback(x=>{T(x),x||r==null||r()},[r,T]),W=p.useCallback(()=>{T(!S)},[S,T]);return e.jsx(et,{opened:S,onToggle:J,target:a?a({onClick:W,isOpen:S,isRedDotVisible:o,RedDot:O}):e.jsx(N,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var L;(L=s==null?void 0:s.onClick)==null||L.call(s,x),W()}}),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:_,...B,children:e.jsxs(it,{children:[e.jsxs(st,{children:[e.jsxs(ot,{children:[e.jsxs(nt,{children:[e.jsx(g.BodyM,{bold:!0,children:t}),i&&e.jsx(g.BodyXS,{color:v.textSecondary,children:i})]}),e.jsx(g.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:"8px"},children:e.jsx(C.IconClose,{size:"xs"})})]}),w&&e.jsx(E.TextFieldSearch,{value:F,onChange:x=>m==null?void 0:m(x.target.value),placeholder:"Поиск",...b})]}),e.jsx(rt,{children:y||l}),h&&e.jsx(lt,{children:h})]})})},at=d(g.LinkButton).attrs(t=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:e.jsx(C.IconClose,{size:"xs",color:"inherit"}),style:{...t.style,visibility:t.isVisible?"visible":"hidden",pointerEvents:t.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:t})=>t),ct=d(g.SegmentItem).attrs(t=>({size:"s",view:"primary",...t})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:t})=>t),dt=d(g.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:t})=>t?v.surfaceTransparentSecondary:"none",({hasBackground:t})=>t?"10px 14px":"auto",({hasBackground:t})=>t?"10px":"auto"),X=p.forwardRef(({hasBackground:t,size:i,...l},n)=>e.jsx(dt,{hasBackground:t,ref:n,size:t?"m":i,...l})),ut=({...t})=>e.jsx(X,{size:"m",toggleSize:"s",hasBackground:!0,...t}),ht=(t,i)=>{if(!t&&!i)return;const l=t&&{$css:t.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return d.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pt=d(z.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=d.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>v.borderRadiusL),ft=d(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xt=d(z.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:t,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:h,ref:o,...u}={},onResize:s})=>{const a=p.useRef(null),w=p.useRef(null),F=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const m=a.current,b=w.current,y=F.current;if(!m||!b)return;const c={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},B=()=>{const _=m.getBoundingClientRect().width,I=b.getBoundingClientRect().width,k=y?y.getBoundingClientRect().width:0,S=I;c.containerWidth=_,c.mainBlockWidth=I,c.buttonsBlockWidth=k,c.availableMainBlockWidth=S,s({...c})},j=P.createSafeResizeObserver(()=>{B()});return j.observe(m),j.observe(b),y&&j.observe(y),B(),()=>{j.disconnect()}},[s]),e.jsx(pt,{ref:a,...r,children:e.jsxs(G,{children:[e.jsxs(xt,{$css:ht(n,h),...u,ref:P.mergeRefs(o,w),children:[t,l&&e.jsx(ft,{ref:F,children:l})]}),i]})})};f.FiltersButton=N;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=H;f.TextFieldSearch=E.TextFieldSearch;f.Tabs=$;f.TabItem=V;f.SegmentItem=ct;f.Tooltip=M.TooltipList;f.TooltipList=M.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=at;f.SwitcherFilter=ut;f.RedDot=O;function D(t,i,l){const{visible:n=[],inOverlay:r=[],hidden:h=[],modifications:o={},customActions:u={}}=l,s=new Set(n),a=new Set(r),w=new Set(h),F=t.filter(c=>s.has(c.id)),m=t.filter(c=>a.has(c.id)),b=t.filter(c=>w.has(c.id)),y=[];return n.forEach(c=>{y.push({type:"show",targetId:c,payload:null})}),r.forEach(c=>{y.push({type:"moveToOverlay",targetId:c,payload:null})}),h.forEach(c=>{y.push({type:"hide",targetId:c,payload:null})}),Object.entries(o).forEach(([c,B])=>{y.push({type:"modify",targetId:c,payload:B})}),{visibleItems:F,overlayItems:m,hiddenItems:b,modifications:o,actions:y,activeBreakpoint:i,hasOverlayItems:m.length>0,hasModifications:Object.keys(o).length>0,customActions:u}}const gt=({items:t,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,a])=>({breakpoint:Number(s),config:a})).sort((s,a)=>a.breakpoint-s.breakpoint),u=o.find(({breakpoint:s})=>i>=s);if(!u){const s=o[o.length-1];return D(t,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return D(t,u.breakpoint,u.config)},[t,i,l]),r=p.useCallback((o,u)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&u?s.width=`${u*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),h=p.useCallback((o,u)=>o.some(s=>{const a=u[s.id];return a===void 0?!1:Array.isArray(a)?a.length>0:typeof a=="boolean"?a===!0:typeof a=="string"?a!=="":typeof a=="number"?a!==0:!!a}),[]);return{...n,getItemStyle:r,hasActiveFilters:h}},yt=()=>d.css(v.bodyXS),mt=d.div.withConfig({displayName:"Tooltip__StyledTooltipContent"})(["color:",";"," & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>v.inverseTextPrimary,()=>yt()),vt=({groupLabel:t,items:i})=>e.jsxs(mt,{children:[e.jsx("span",{children:t}),e.jsx("ul",{children:i.map(l=>e.jsx("li",{children:l}))})]}),bt=({groupLabel:t,items:i,children:l,...n})=>{const[r,h]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){h(!0);const u=setTimeout(()=>{h(!1)},0);return()=>clearTimeout(u)}},[o]),e.jsx(g.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:e.jsx(vt,{groupLabel:t,items:i}),size:"s",...n,children:l},`tooltip-${r}`)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=N;exports.FiltersActionsListOfFilters=H;exports.FiltersActionsTabItem=V;exports.FiltersActionsTabs=$;exports.FiltersActionsTooltip=bt;exports.RedDot=O;exports.Switch=X;exports.useAdaptiveFilters=gt;
|