@daisforge/ui 1.12.1 → 1.13.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-29tSeB0C.cjs +43 -0
- package/chunks/AnalyticalWidget-DnHHyjnv.mjs +528 -0
- package/chunks/ApprovalCenter-BREfTiqK.mjs +176 -0
- package/chunks/ApprovalCenter-BRUYlLoC.cjs +1 -0
- package/chunks/BlockTitle-BNm60_dx.mjs +85 -0
- package/chunks/BlockTitle-CCvkcUe_.cjs +1 -0
- package/chunks/Container-CV4sT-bB.mjs +117 -0
- package/chunks/Container-D8Bcg69e.cjs +17 -0
- package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
- package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
- package/chunks/FiltersActions-49uNOjLq.cjs +1 -0
- package/chunks/FiltersActions-Be9uBM67.mjs +429 -0
- package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
- package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
- package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
- package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
- package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
- package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
- package/chunks/GridDND-BAHGzR5e.cjs +1 -0
- package/chunks/GridDND-rY1o5ItA.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-BQyYeGQG.cjs +1 -0
- package/chunks/ListOfFilters-DRrawM8s.mjs +260 -0
- package/chunks/MassActions-ByZr-Wjd.mjs +966 -0
- package/chunks/MassActions-CxF6wvlS.cjs +1 -0
- package/chunks/PageTitle-BLBN06Xe.mjs +123 -0
- package/chunks/PageTitle-j-pmmoZ9.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories-CO4lXbo6.cjs +1 -0
- package/chunks/Stories-COpgkk_M.mjs +673 -0
- package/chunks/Table-JFzBB9zK.cjs +31 -0
- package/chunks/Table-XpsCe-vS.mjs +7757 -0
- package/chunks/TableCanvas-AwmzU0Jc.cjs +30 -0
- package/chunks/TableCanvas-BnwR-C1X.mjs +11870 -0
- package/chunks/TableGlide-BAH73oGi.cjs +1 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-o9aqEk4d.mjs} +2263 -2342
- package/chunks/styles-Dd4uEa27.mjs +128 -0
- package/chunks/styles-kPI9R7DO.cjs +2 -0
- package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
- package/chunks/utils-DKi1rqLX.cjs +25 -0
- package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
- package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
- package/components/AiAgentPopover/index.cjs +2 -2
- package/components/AiAgentPopover/index.mjs +248 -373
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
- package/components/AnalyticalWidget/index.cjs +1 -1
- package/components/AnalyticalWidget/index.mjs +1 -1
- package/components/ApprovalCenter/components/index.cjs +1 -1
- package/components/ApprovalCenter/components/index.mjs +1 -1
- package/components/ApprovalCenter/index.cjs +1 -1
- package/components/ApprovalCenter/index.mjs +1 -1
- package/components/Autocomplete/index.cjs +1 -1
- package/components/Autocomplete/index.mjs +22 -35
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +33 -83
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +41 -53
- 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/Box/index.mjs +17 -7
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +41 -62
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/DatePicker/index.cjs +1 -1
- package/components/DatePicker/index.mjs +21 -59
- package/components/DrawerDF/index.cjs +1 -1
- package/components/DrawerDF/index.mjs +144 -391
- 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 +49 -112
- package/components/IconSvgSprite/index.cjs +1 -1
- package/components/IconSvgSprite/index.mjs +13 -49
- package/components/LeftPanel/components/index.cjs +1 -1
- package/components/LeftPanel/components/index.mjs +1 -1
- package/components/LeftPanel/hooks/index.cjs +1 -1
- package/components/LeftPanel/hooks/index.mjs +1 -1
- package/components/LeftPanel/index.cjs +1 -1
- package/components/LeftPanel/index.mjs +1 -1
- package/components/LeftPanel/utils/index.cjs +1 -1
- package/components/LeftPanel/utils/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActionsStatic/index.cjs +2 -2
- package/components/MassActionsStatic/index.mjs +13 -34
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +169 -381
- package/components/ModalDFConfirmation/index.cjs +1 -1
- package/components/ModalDFConfirmation/index.mjs +66 -114
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +16 -22
- package/components/NumberFormat/index.cjs +1 -1
- package/components/NumberFormat/index.mjs +24 -37
- package/components/NumberFormatAmount/index.cjs +1 -1
- package/components/NumberFormatAmount/index.mjs +12 -27
- 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 +125 -261
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +141 -308
- package/components/SplitView/index.cjs +1 -1
- package/components/SplitView/index.mjs +1 -1
- package/components/SplitView/utils/index.cjs +1 -1
- package/components/SplitView/utils/index.mjs +1 -1
- package/components/Stories/Stories.types.d.ts +1 -0
- package/components/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Stories/store/StoriesContext.d.ts +1 -0
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/column-config.type.d.ts +3 -0
- package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +3 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +2 -2
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableContract/index.cjs +2 -2
- package/components/TableContract/index.mjs +540 -798
- package/components/TableGlide/TableGlide.d.ts +1 -1
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/types.d.ts +3 -2
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +136 -305
- package/components/TextArea/index.cjs +1 -1
- package/components/TextArea/index.mjs +26 -40
- package/components/TextField/index.cjs +1 -1
- package/components/TextField/index.mjs +38 -82
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +15 -15
- package/components/TourWidget/index.mjs +176 -371
- 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 +151 -363
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +63 -68
- package/formComponents/FormCheckbox/index.cjs +1 -1
- package/formComponents/FormCheckbox/index.mjs +27 -55
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +61 -75
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +61 -66
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +56 -68
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +71 -144
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +62 -76
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +25 -53
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +70 -101
- package/index.cjs +1 -1
- package/index.mjs +21 -21
- 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 +81 -146
- 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 +5 -5
- package/layouts/Layout/index.mjs +78 -115
- package/layouts/PageLayout/index.cjs +2 -2
- package/layouts/PageLayout/index.mjs +15 -32
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +6 -6
- package/shared/ui/Search/index.cjs +1 -1
- package/shared/ui/Search/index.mjs +30 -52
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +33 -48
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/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.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
- package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
- package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
- package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
- package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
- package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
- package/chunks/Container-ChuCs63G.cjs +0 -17
- package/chunks/Container-D8RdjkGo.mjs +0 -180
- package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
- package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
- package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
- package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
- package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
- package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
- package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
- package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
- package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
- package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
- package/chunks/GridDND-Bycwiynh.mjs +0 -1086
- package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
- package/chunks/LeftPanel-C72uosX_.mjs +0 -303
- package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
- package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
- package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
- package/chunks/MassActions-BbAXi3z9.cjs +0 -1
- package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
- package/chunks/PageTitle-DEsijnDg.cjs +0 -1
- package/chunks/PageTitle-TusD1S2c.mjs +0 -282
- package/chunks/SplitView-BHdftJ9A.cjs +0 -12
- package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
- package/chunks/Stories-CR_EUNO7.mjs +0 -1018
- package/chunks/Stories-CxsYx2OE.cjs +0 -1
- package/chunks/Table--05ONCr1.cjs +0 -31
- package/chunks/Table-l-P3NNUN.mjs +0 -11944
- package/chunks/TableCanvas-BYKPeWME.mjs +0 -16941
- package/chunks/TableCanvas-ZmjSKk64.cjs +0 -30
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const h=require("@salutejs/sdds-finai"),t=require("./vendor-D8Dozc4m.cjs"),E=require("@salutejs/plasma-icons"),c=require("styled-components"),C=require("../components/Box/index.cjs"),K=require("./Table--05ONCr1.cjs"),g=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),O=require("../components/TextField/index.cjs"),L=require("./AnalyticalWidget-xgvWcsXx.cjs"),P=require("./utils-C93a2mD7.cjs"),Y=({dropdownProps:e,iconSize:i,...l})=>{const n=t.jsxDevRuntimeExports.jsxDEV(h.IconButton,{view:"secondary",size:"s",...l,children:t.jsxDevRuntimeExports.jsxDEV(E.IconDotsVerticalCenteredOutline,{size:i??"s"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",lineNumber:22,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",lineNumber:21,columnNumber:3},void 0);return e?t.jsxDevRuntimeExports.jsxDEV(h.Dropdown,{...e,children:n},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",lineNumber:30,columnNumber:10},void 0):n},M=({visible:e,topLeft:i})=>t.jsxDevRuntimeExports.jsxDEV(C.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)",...e&&{backgroundColor:g.surfaceNegative,transform:"scale(1)"}}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Circle.tsx",lineNumber:13,columnNumber:1},void 0),I=c(h.Button).attrs(({redSquare:e,hideLabel:i=!1,size:l,iconSize:n,children:r,...m})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&t.jsxDevRuntimeExports.jsxDEV(E.IconSettingsFilter,{size:n??"s"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",lineNumber:26,columnNumber:32},void 0),children:t.jsxDevRuntimeExports.jsxDEV(t.jsxDevRuntimeExports.Fragment,{children:[r??(!i&&(m.text??"Ещё фильтры")),i&&t.jsxDevRuntimeExports.jsxDEV(E.IconSettingsFilter,{size:n??"s"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",lineNumber:30,columnNumber:23},void 0),t.jsxDevRuntimeExports.jsxDEV(M,{visible:e},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",lineNumber:31,columnNumber:9},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",lineNumber:28,columnNumber:5},void 0),...m})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),ee=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-B3bM1n4w.cjs")).then(e=>e.ListOfFilters_lazy)),q=c(ee).attrs(({paddingTop:e,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),_=({visible:e,offset:i})=>t.jsxDevRuntimeExports.jsxDEV(M,{visible:e,topLeft:i},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/RedDot.tsx",lineNumber:24,columnNumber:1},void 0),H=c(h.Tabs).attrs(e=>({size:"xs",view:"filled",...e})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:e})=>e),$=c(h.TabItem).attrs(e=>({size:"s",view:"default",...e})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:e})=>e),T={borderRadiusM:()=>g.borderRadiusM,shadowDownHardS:()=>g.shadowDownHardS,surfaceSolidCard:()=>g.surfaceSolidCard},te=c(h.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),ie=c.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;"],T.surfaceSolidCard,T.borderRadiusM,T.shadowDownHardS),se=c.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),oe=c.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),ne=c.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]),re=c.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;"]),le=c.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;"]),S={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:t.jsxDevRuntimeExports.jsxDEV(E.IconResizeCorneredFill,{color:g.textTertiary},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:213,columnNumber:18},void 0),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:e,subtitle:i,content:l,state:n,onClose:r,footer:m,redSquare:o=!1,popoverProps:d={},buttonProps:s,renderTarget:u,searchable:y,searchValue:N,onSearchChange:b,searchingProps:k,emptySearchContent:v})=>{const{resizable:a,...F}=d,B=(x=>x===!1?!1:x===!0||x==null?S:typeof x=="object"&&x!==null?{...S,...x}:S)(a),[A,R]=p.useState(!1),[w,D]=n??[A,R],Z=p.useCallback(()=>{D(!1),r==null||r()},[r,D]),J=p.useCallback(x=>{D(x),x||r==null||r()},[r,D]),V=p.useCallback(()=>{D(!w)},[w,D]);return t.jsxDevRuntimeExports.jsxDEV(te,{opened:w,onToggle:J,target:u?u({onClick:V,isOpen:w,isRedDotVisible:o,RedDot:_}):t.jsxDevRuntimeExports.jsxDEV(I,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var W;(W=s==null?void 0:s.onClick)==null||W.call(s,x),V()}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:313,columnNumber:7},void 0),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:B,...F,children:t.jsxDevRuntimeExports.jsxDEV(ie,{children:[t.jsxDevRuntimeExports.jsxDEV(se,{children:[t.jsxDevRuntimeExports.jsxDEV(oe,{children:[t.jsxDevRuntimeExports.jsxDEV(ne,{children:[t.jsxDevRuntimeExports.jsxDEV(h.BodyM,{bold:!0,children:e},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:343,columnNumber:15},void 0),i&&t.jsxDevRuntimeExports.jsxDEV(h.BodyXS,{color:g.textSecondary,children:i},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:344,columnNumber:28},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:342,columnNumber:13},void 0),t.jsxDevRuntimeExports.jsxDEV(h.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:"8px"},children:t.jsxDevRuntimeExports.jsxDEV(E.IconClose,{size:"xs"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:356,columnNumber:15},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:346,columnNumber:13},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:341,columnNumber:11},void 0),y&&t.jsxDevRuntimeExports.jsxDEV(O.TextFieldSearch,{value:N,onChange:x=>b==null?void 0:b(x.target.value),placeholder:"Поиск",...k},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:360,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:340,columnNumber:9},void 0),t.jsxDevRuntimeExports.jsxDEV(re,{children:v||l},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:370,columnNumber:9},void 0),m&&t.jsxDevRuntimeExports.jsxDEV(le,{children:m},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:373,columnNumber:20},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:338,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",lineNumber:301,columnNumber:5},void 0)},ue=c(h.LinkButton).attrs(e=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:t.jsxDevRuntimeExports.jsxDEV(E.IconClose,{size:"xs",color:"inherit"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/ResetAllFiltersButton.tsx",lineNumber:18,columnNumber:18},void 0),style:{...e.style,visibility:e.isVisible?"visible":"hidden",pointerEvents:e.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:e})=>e),ae=c(h.SegmentItem).attrs(e=>({size:"s",view:"primary",...e})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:e})=>e),ce=c(h.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:e})=>e?g.surfaceTransparentSecondary:"none",({hasBackground:e})=>e?"10px 14px":"auto",({hasBackground:e})=>e?"10px":"auto"),X=p.forwardRef(({hasBackground:e,size:i,...l},n)=>t.jsxDevRuntimeExports.jsxDEV(ce,{hasBackground:e,ref:n,size:e?"m":i,...l},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Switch/Switch.tsx",lineNumber:8,columnNumber:3},void 0)),de=({...e})=>t.jsxDevRuntimeExports.jsxDEV(X,{size:"m",toggleSize:"s",hasBackground:!0,...e},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/SwitcherFilter.tsx",lineNumber:6,columnNumber:1},void 0),me=(e,i)=>{if(!e&&!i)return;const l=e&&{$css:e.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return c.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pe=c(C.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=c.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>g.borderRadiusL),fe=c(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xe=c(C.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:e,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:m,ref:o,...d}={},onResize:s})=>{const u=p.useRef(null),y=p.useRef(null),N=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const b=u.current,k=y.current,v=N.current;if(!b||!k)return;const a={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},F=()=>{const B=b.getBoundingClientRect().width,A=k.getBoundingClientRect().width,R=v?v.getBoundingClientRect().width:0,w=A;a.containerWidth=B,a.mainBlockWidth=A,a.buttonsBlockWidth=R,a.availableMainBlockWidth=w,s({...a})},j=P.createSafeResizeObserver(()=>{F()});return j.observe(b),j.observe(k),v&&j.observe(v),F(),()=>{j.disconnect()}},[s]),t.jsxDevRuntimeExports.jsxDEV(pe,{ref:u,...r,children:t.jsxDevRuntimeExports.jsxDEV(G,{children:[t.jsxDevRuntimeExports.jsxDEV(xe,{$css:me(n,m),...d,ref:P.mergeRefs(o,y),children:[e,l&&t.jsxDevRuntimeExports.jsxDEV(fe,{ref:N,children:l},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",lineNumber:153,columnNumber:11},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",lineNumber:146,columnNumber:9},void 0),i]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",lineNumber:145,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",lineNumber:144,columnNumber:5},void 0)};f.FiltersButton=I;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=q;f.TextFieldSearch=O.TextFieldSearch;f.Tabs=H;f.TabItem=$;f.SegmentItem=ae;f.Tooltip=L.TooltipList;f.TooltipList=L.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=ue;f.SwitcherFilter=de;f.RedDot=_;function z(e,i,l){const{visible:n=[],inOverlay:r=[],hidden:m=[],modifications:o={},customActions:d={}}=l,s=new Set(n),u=new Set(r),y=new Set(m),N=e.filter(a=>s.has(a.id)),b=e.filter(a=>u.has(a.id)),k=e.filter(a=>y.has(a.id)),v=[];return n.forEach(a=>{v.push({type:"show",targetId:a,payload:null})}),r.forEach(a=>{v.push({type:"moveToOverlay",targetId:a,payload:null})}),m.forEach(a=>{v.push({type:"hide",targetId:a,payload:null})}),Object.entries(o).forEach(([a,F])=>{v.push({type:"modify",targetId:a,payload:F})}),{visibleItems:N,overlayItems:b,hiddenItems:k,modifications:o,actions:v,activeBreakpoint:i,hasOverlayItems:b.length>0,hasModifications:Object.keys(o).length>0,customActions:d}}const he=({items:e,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,u])=>({breakpoint:Number(s),config:u})).sort((s,u)=>u.breakpoint-s.breakpoint),d=o.find(({breakpoint:s})=>i>=s);if(!d){const s=o[o.length-1];return z(e,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return z(e,d.breakpoint,d.config)},[e,i,l]),r=p.useCallback((o,d)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&d?s.width=`${d*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),m=p.useCallback((o,d)=>o.some(s=>{const u=d[s.id];return u===void 0?!1:Array.isArray(u)?u.length>0:typeof u=="boolean"?u===!0:typeof u=="string"?u!=="":typeof u=="number"?u!==0:!!u}),[]);return{...n,getItemStyle:r,hasActiveFilters:m}},ve=()=>c.css(g.bodyXS),be=c.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;}}"],()=>g.inverseTextPrimary,()=>ve()),ge=({groupLabel:e,items:i})=>t.jsxDevRuntimeExports.jsxDEV(be,{children:[t.jsxDevRuntimeExports.jsxDEV("span",{children:e},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:40,columnNumber:5},void 0),t.jsxDevRuntimeExports.jsxDEV("ul",{children:i.map(l=>t.jsxDevRuntimeExports.jsxDEV("li",{children:l},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:43,columnNumber:5},void 0))},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:41,columnNumber:5},void 0)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:39,columnNumber:1},void 0),ke=({groupLabel:e,items:i,children:l,...n})=>{const[r,m]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){m(!0);const d=setTimeout(()=>{m(!1)},0);return()=>clearTimeout(d)}},[o]),t.jsxDevRuntimeExports.jsxDEV(h.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:t.jsxDevRuntimeExports.jsxDEV(ge,{groupLabel:e,items:i},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:92,columnNumber:13},void 0),size:"s",...n,children:l},`tooltip-${r}`,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",lineNumber:88,columnNumber:5},void 0)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=I;exports.FiltersActionsListOfFilters=q;exports.FiltersActionsTabItem=$;exports.FiltersActionsTabs=H;exports.FiltersActionsTooltip=ke;exports.RedDot=_;exports.Switch=X;exports.useAdaptiveFilters=he;
|
|
@@ -1,637 +0,0 @@
|
|
|
1
|
-
import { IconButton as W, Dropdown as q, Button as J, TabItem as K, Tabs as Q, BodyM as Y, BodyXS as ee, Popover as ie, LinkButton as te, SegmentItem as se, Switch as oe, Tooltip as ne } from "@salutejs/sdds-finai";
|
|
2
|
-
import { j as i } from "./vendor-BG4P-329.mjs";
|
|
3
|
-
import { IconDotsVerticalCenteredOutline as re, IconSettingsFilter as _, IconClose as R, IconResizeCorneredFill as le } from "@salutejs/plasma-icons";
|
|
4
|
-
import c, { css as P } from "styled-components";
|
|
5
|
-
import { Box as j } from "../components/Box/index.mjs";
|
|
6
|
-
import { D as ae } from "./Table-l-P3NNUN.mjs";
|
|
7
|
-
import { surfaceNegative as ue, textSecondary as ce, surfaceSolidCard as de, borderRadiusM as me, shadowDownHardS as pe, textTertiary as fe, surfaceTransparentSecondary as he, borderRadiusL as xe, inverseTextPrimary as ge, bodyXS as be } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
8
|
-
import { lazy as ke, useState as z, useCallback as w, forwardRef as ye, useRef as S, useLayoutEffect as Ne, useMemo as ve, useEffect as Fe } from "react";
|
|
9
|
-
import { IconButtonDots as we } from "../components/IconButton/index.mjs";
|
|
10
|
-
import { TextFieldSearch as O } from "../components/TextField/index.mjs";
|
|
11
|
-
import { c as L } from "./AnalyticalWidget-Ca_EuSTO.mjs";
|
|
12
|
-
import { c as Be, q as Ae } from "./utils-BNelzuI-.mjs";
|
|
13
|
-
const ai = ({
|
|
14
|
-
dropdownProps: e,
|
|
15
|
-
iconSize: t,
|
|
16
|
-
...l
|
|
17
|
-
}) => {
|
|
18
|
-
const n = /* @__PURE__ */ i.jsxDEV(W, { view: "secondary", size: "s", ...l, children: /* @__PURE__ */ i.jsxDEV(re, { size: t ?? "s" }, void 0, !1, {
|
|
19
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",
|
|
20
|
-
lineNumber: 22,
|
|
21
|
-
columnNumber: 7
|
|
22
|
-
}, void 0) }, void 0, !1, {
|
|
23
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",
|
|
24
|
-
lineNumber: 21,
|
|
25
|
-
columnNumber: 3
|
|
26
|
-
}, void 0);
|
|
27
|
-
return e ? /* @__PURE__ */ i.jsxDEV(q, { ...e, children: n }, void 0, !1, {
|
|
28
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/DotsIconButton.tsx",
|
|
29
|
-
lineNumber: 30,
|
|
30
|
-
columnNumber: 10
|
|
31
|
-
}, void 0) : n;
|
|
32
|
-
}, M = ({
|
|
33
|
-
visible: e,
|
|
34
|
-
topLeft: t
|
|
35
|
-
}) => /* @__PURE__ */ i.jsxDEV(
|
|
36
|
-
j,
|
|
37
|
-
{
|
|
38
|
-
$css: {
|
|
39
|
-
position: "absolute",
|
|
40
|
-
top: t ?? 0,
|
|
41
|
-
right: t ?? 0,
|
|
42
|
-
width: "8px",
|
|
43
|
-
aspectRatio: "1",
|
|
44
|
-
borderRadius: "50%",
|
|
45
|
-
transition: ae,
|
|
46
|
-
backgroundColor: "transparent",
|
|
47
|
-
transform: "scale(0)",
|
|
48
|
-
...e && {
|
|
49
|
-
backgroundColor: ue,
|
|
50
|
-
transform: "scale(1)"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
void 0,
|
|
55
|
-
!1,
|
|
56
|
-
{
|
|
57
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Circle.tsx",
|
|
58
|
-
lineNumber: 13,
|
|
59
|
-
columnNumber: 1
|
|
60
|
-
},
|
|
61
|
-
void 0
|
|
62
|
-
), H = c(J).attrs(
|
|
63
|
-
({
|
|
64
|
-
redSquare: e,
|
|
65
|
-
hideLabel: t = !1,
|
|
66
|
-
size: l,
|
|
67
|
-
iconSize: n,
|
|
68
|
-
children: r,
|
|
69
|
-
...m
|
|
70
|
-
}) => ({
|
|
71
|
-
view: "secondary",
|
|
72
|
-
size: l ?? "s",
|
|
73
|
-
type: "button",
|
|
74
|
-
contentLeft: !t && /* @__PURE__ */ i.jsxDEV(_, { size: n ?? "s" }, void 0, !1, {
|
|
75
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",
|
|
76
|
-
lineNumber: 26,
|
|
77
|
-
columnNumber: 32
|
|
78
|
-
}, void 0),
|
|
79
|
-
children: /* @__PURE__ */ i.jsxDEV(i.Fragment, { children: [
|
|
80
|
-
r ?? (!t && (m.text ?? "Ещё фильтры")),
|
|
81
|
-
t && /* @__PURE__ */ i.jsxDEV(_, { size: n ?? "s" }, void 0, !1, {
|
|
82
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",
|
|
83
|
-
lineNumber: 30,
|
|
84
|
-
columnNumber: 23
|
|
85
|
-
}, void 0),
|
|
86
|
-
/* @__PURE__ */ i.jsxDEV(M, { visible: e }, void 0, !1, {
|
|
87
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",
|
|
88
|
-
lineNumber: 31,
|
|
89
|
-
columnNumber: 9
|
|
90
|
-
}, void 0)
|
|
91
|
-
] }, void 0, !0, {
|
|
92
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButton.tsx",
|
|
93
|
-
lineNumber: 28,
|
|
94
|
-
columnNumber: 5
|
|
95
|
-
}, void 0),
|
|
96
|
-
...m
|
|
97
|
-
})
|
|
98
|
-
).withConfig({ displayName: "FiltersButton__FiltersActionsFiltersButton" })(["position:relative;white-space:nowrap;"]), De = ke(() => import("./ListOfFilters-CPJGgMMc.mjs").then((e) => e.a)), Se = c(De).attrs(({
|
|
99
|
-
paddingTop: e,
|
|
100
|
-
...t
|
|
101
|
-
}) => ({
|
|
102
|
-
paddingTop: 8,
|
|
103
|
-
...t
|
|
104
|
-
})).withConfig({
|
|
105
|
-
displayName: "ListOfFilters__FiltersActionsListOfFilters"
|
|
106
|
-
})([""]), $ = ({ visible: e, offset: t }) => /* @__PURE__ */ i.jsxDEV(M, { visible: e, topLeft: t }, void 0, !1, {
|
|
107
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/RedDot.tsx",
|
|
108
|
-
lineNumber: 24,
|
|
109
|
-
columnNumber: 1
|
|
110
|
-
}, void 0), Ee = c(Q).attrs((e) => ({
|
|
111
|
-
size: "xs",
|
|
112
|
-
view: "filled",
|
|
113
|
-
...e
|
|
114
|
-
})).withConfig({ displayName: "Tabs__FiltersActionsTabs" })(
|
|
115
|
-
["&{margin:-2px;", "}"],
|
|
116
|
-
({ $css: e }) => e
|
|
117
|
-
), Te = c(K).attrs((e) => ({
|
|
118
|
-
size: "s",
|
|
119
|
-
view: "default",
|
|
120
|
-
...e
|
|
121
|
-
})).withConfig({ displayName: "Tabs__FiltersActionsTabItem" })(
|
|
122
|
-
["&{", "}"],
|
|
123
|
-
({ $css: e }) => e
|
|
124
|
-
), E = {
|
|
125
|
-
borderRadiusM: () => me,
|
|
126
|
-
shadowDownHardS: () => pe,
|
|
127
|
-
surfaceSolidCard: () => de
|
|
128
|
-
}, je = c(ie).withConfig({ displayName: "FiltersButtonWithPopover__StyledPopover" })(["& .popover-root{box-shadow:none;}& .resizable-container{}"]), Ce = c.div.withConfig({ displayName: "FiltersButtonWithPopover__PopoverContentContainer" })(
|
|
129
|
-
["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;"],
|
|
130
|
-
E.surfaceSolidCard,
|
|
131
|
-
E.borderRadiusM,
|
|
132
|
-
E.shadowDownHardS
|
|
133
|
-
), Ve = c.div.withConfig({ displayName: "FiltersButtonWithPopover__PopoverHeader" })(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]), _e = c.div.withConfig({ displayName: "FiltersButtonWithPopover__PopoverHeaderTop" })(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]), Ie = c.div.withConfig({ displayName: "FiltersButtonWithPopover__HeaderText" })(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]), We = c.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;"]), Re = c.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;"]), T = {
|
|
134
|
-
minHeight: 430,
|
|
135
|
-
minWidth: 360,
|
|
136
|
-
maxWidth: 700,
|
|
137
|
-
maxHeight: typeof window < "u" ? window.innerHeight * 0.8 : 600,
|
|
138
|
-
defaultSize: { width: 360, height: 430 },
|
|
139
|
-
directions: ["bottom-right", "right", "top-right"],
|
|
140
|
-
icons: {
|
|
141
|
-
topRight: null,
|
|
142
|
-
bottomRight: /* @__PURE__ */ i.jsxDEV(le, { color: fe }, void 0, !1, {
|
|
143
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
144
|
-
lineNumber: 213,
|
|
145
|
-
columnNumber: 18
|
|
146
|
-
}, void 0),
|
|
147
|
-
bottomLeft: null,
|
|
148
|
-
topLeft: null
|
|
149
|
-
},
|
|
150
|
-
hiddenIcons: ["bottom-left", "top-left", "top-right"]
|
|
151
|
-
}, U = ({
|
|
152
|
-
title: e,
|
|
153
|
-
subtitle: t,
|
|
154
|
-
content: l,
|
|
155
|
-
state: n,
|
|
156
|
-
onClose: r,
|
|
157
|
-
footer: m,
|
|
158
|
-
redSquare: o = !1,
|
|
159
|
-
popoverProps: d = {},
|
|
160
|
-
buttonProps: s,
|
|
161
|
-
renderTarget: a,
|
|
162
|
-
searchable: b,
|
|
163
|
-
searchValue: k,
|
|
164
|
-
onSearchChange: x,
|
|
165
|
-
searchingProps: g,
|
|
166
|
-
emptySearchContent: h
|
|
167
|
-
}) => {
|
|
168
|
-
const { resizable: u, ...y } = d, A = ((f) => f === !1 ? !1 : f === !0 || f == null ? T : typeof f == "object" && f !== null ? { ...T, ...f } : T)(u), [B, D] = z(!1), [N, v] = n ?? [
|
|
169
|
-
B,
|
|
170
|
-
D
|
|
171
|
-
], G = w(() => {
|
|
172
|
-
v(!1), r == null || r();
|
|
173
|
-
}, [r, v]), Z = w(
|
|
174
|
-
(f) => {
|
|
175
|
-
v(f), f || r == null || r();
|
|
176
|
-
},
|
|
177
|
-
[r, v]
|
|
178
|
-
), C = w(() => {
|
|
179
|
-
v(!N);
|
|
180
|
-
}, [N, v]);
|
|
181
|
-
return (
|
|
182
|
-
// @ts-expect-error TS2769: libs allows ref: string, but styled-components doesn't. Safe to ignore.
|
|
183
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
184
|
-
je,
|
|
185
|
-
{
|
|
186
|
-
opened: N,
|
|
187
|
-
onToggle: Z,
|
|
188
|
-
target: a ? a({
|
|
189
|
-
onClick: C,
|
|
190
|
-
isOpen: N,
|
|
191
|
-
isRedDotVisible: o,
|
|
192
|
-
RedDot: $
|
|
193
|
-
}) : /* @__PURE__ */ i.jsxDEV(
|
|
194
|
-
H,
|
|
195
|
-
{
|
|
196
|
-
redSquare: o,
|
|
197
|
-
hideLabel: !1,
|
|
198
|
-
iconSize: "s",
|
|
199
|
-
...s,
|
|
200
|
-
onClick: (f) => {
|
|
201
|
-
var V;
|
|
202
|
-
(V = s == null ? void 0 : s.onClick) == null || V.call(s, f), C();
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
void 0,
|
|
206
|
-
!1,
|
|
207
|
-
{
|
|
208
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
209
|
-
lineNumber: 313,
|
|
210
|
-
columnNumber: 7
|
|
211
|
-
},
|
|
212
|
-
void 0
|
|
213
|
-
),
|
|
214
|
-
placement: "bottom-start",
|
|
215
|
-
offset: [0, 2],
|
|
216
|
-
trigger: "click",
|
|
217
|
-
hasArrow: !1,
|
|
218
|
-
closeOnOverlayClick: !0,
|
|
219
|
-
closeOnEsc: !0,
|
|
220
|
-
isFocusTrapped: !0,
|
|
221
|
-
usePortal: !0,
|
|
222
|
-
animated: !0,
|
|
223
|
-
resizable: A,
|
|
224
|
-
...y,
|
|
225
|
-
children: /* @__PURE__ */ i.jsxDEV(Ce, { children: [
|
|
226
|
-
/* @__PURE__ */ i.jsxDEV(Ve, { children: [
|
|
227
|
-
/* @__PURE__ */ i.jsxDEV(_e, { children: [
|
|
228
|
-
/* @__PURE__ */ i.jsxDEV(Ie, { children: [
|
|
229
|
-
/* @__PURE__ */ i.jsxDEV(Y, { bold: !0, children: e }, void 0, !1, {
|
|
230
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
231
|
-
lineNumber: 343,
|
|
232
|
-
columnNumber: 15
|
|
233
|
-
}, void 0),
|
|
234
|
-
t && /* @__PURE__ */ i.jsxDEV(ee, { color: ce, children: t }, void 0, !1, {
|
|
235
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
236
|
-
lineNumber: 344,
|
|
237
|
-
columnNumber: 28
|
|
238
|
-
}, void 0)
|
|
239
|
-
] }, void 0, !0, {
|
|
240
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
241
|
-
lineNumber: 342,
|
|
242
|
-
columnNumber: 13
|
|
243
|
-
}, void 0),
|
|
244
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
245
|
-
W,
|
|
246
|
-
{
|
|
247
|
-
onClick: G,
|
|
248
|
-
size: "xs",
|
|
249
|
-
view: "secondary",
|
|
250
|
-
pin: "circle-circle",
|
|
251
|
-
title: "Закрыть",
|
|
252
|
-
style: {
|
|
253
|
-
marginBottom: "8px"
|
|
254
|
-
},
|
|
255
|
-
children: /* @__PURE__ */ i.jsxDEV(R, { size: "xs" }, void 0, !1, {
|
|
256
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
257
|
-
lineNumber: 356,
|
|
258
|
-
columnNumber: 15
|
|
259
|
-
}, void 0)
|
|
260
|
-
},
|
|
261
|
-
void 0,
|
|
262
|
-
!1,
|
|
263
|
-
{
|
|
264
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
265
|
-
lineNumber: 346,
|
|
266
|
-
columnNumber: 13
|
|
267
|
-
},
|
|
268
|
-
void 0
|
|
269
|
-
)
|
|
270
|
-
] }, void 0, !0, {
|
|
271
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
272
|
-
lineNumber: 341,
|
|
273
|
-
columnNumber: 11
|
|
274
|
-
}, void 0),
|
|
275
|
-
b && /* @__PURE__ */ i.jsxDEV(
|
|
276
|
-
O,
|
|
277
|
-
{
|
|
278
|
-
value: k,
|
|
279
|
-
onChange: (f) => x == null ? void 0 : x(f.target.value),
|
|
280
|
-
placeholder: "Поиск",
|
|
281
|
-
...g
|
|
282
|
-
},
|
|
283
|
-
void 0,
|
|
284
|
-
!1,
|
|
285
|
-
{
|
|
286
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
287
|
-
lineNumber: 360,
|
|
288
|
-
columnNumber: 11
|
|
289
|
-
},
|
|
290
|
-
void 0
|
|
291
|
-
)
|
|
292
|
-
] }, void 0, !0, {
|
|
293
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
294
|
-
lineNumber: 340,
|
|
295
|
-
columnNumber: 9
|
|
296
|
-
}, void 0),
|
|
297
|
-
/* @__PURE__ */ i.jsxDEV(We, { children: h || l }, void 0, !1, {
|
|
298
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
299
|
-
lineNumber: 370,
|
|
300
|
-
columnNumber: 9
|
|
301
|
-
}, void 0),
|
|
302
|
-
m && /* @__PURE__ */ i.jsxDEV(Re, { children: m }, void 0, !1, {
|
|
303
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
304
|
-
lineNumber: 373,
|
|
305
|
-
columnNumber: 20
|
|
306
|
-
}, void 0)
|
|
307
|
-
] }, void 0, !0, {
|
|
308
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
309
|
-
lineNumber: 338,
|
|
310
|
-
columnNumber: 7
|
|
311
|
-
}, void 0)
|
|
312
|
-
},
|
|
313
|
-
void 0,
|
|
314
|
-
!1,
|
|
315
|
-
{
|
|
316
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/FiltersButtonWithPopover.tsx",
|
|
317
|
-
lineNumber: 301,
|
|
318
|
-
columnNumber: 5
|
|
319
|
-
},
|
|
320
|
-
void 0
|
|
321
|
-
)
|
|
322
|
-
);
|
|
323
|
-
}, Pe = c(te).attrs(
|
|
324
|
-
(e) => ({
|
|
325
|
-
view: "default",
|
|
326
|
-
size: "s",
|
|
327
|
-
text: "Сбросить фильтры",
|
|
328
|
-
contentLeft: /* @__PURE__ */ i.jsxDEV(R, { size: "xs", color: "inherit" }, void 0, !1, {
|
|
329
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/ResetAllFiltersButton.tsx",
|
|
330
|
-
lineNumber: 18,
|
|
331
|
-
columnNumber: 18
|
|
332
|
-
}, void 0),
|
|
333
|
-
style: {
|
|
334
|
-
...e.style,
|
|
335
|
-
visibility: e.isVisible ? "visible" : "hidden",
|
|
336
|
-
pointerEvents: e.isVisible ? "auto" : "none"
|
|
337
|
-
}
|
|
338
|
-
})
|
|
339
|
-
).withConfig({ displayName: "ResetAllFiltersButton" })(
|
|
340
|
-
["", ""],
|
|
341
|
-
({ $css: e }) => e
|
|
342
|
-
), ze = c(se).attrs((e) => ({
|
|
343
|
-
size: "s",
|
|
344
|
-
view: "primary",
|
|
345
|
-
...e
|
|
346
|
-
})).withConfig({ displayName: "Segments__FiltersActionsSegmentItem" })(
|
|
347
|
-
["&{", "}"],
|
|
348
|
-
({ $css: e }) => e
|
|
349
|
-
), Oe = c(oe).withConfig({
|
|
350
|
-
displayName: "styled__StyledSwitch"
|
|
351
|
-
})(["background:", ";padding:", ";border-radius:", ";max-height:48px;"], ({
|
|
352
|
-
hasBackground: e
|
|
353
|
-
}) => e ? he : "none", ({
|
|
354
|
-
hasBackground: e
|
|
355
|
-
}) => e ? "10px 14px" : "auto", ({
|
|
356
|
-
hasBackground: e
|
|
357
|
-
}) => e ? "10px" : "auto"), Le = ye(
|
|
358
|
-
({ hasBackground: e, size: t, ...l }, n) => /* @__PURE__ */ i.jsxDEV(
|
|
359
|
-
Oe,
|
|
360
|
-
{
|
|
361
|
-
hasBackground: e,
|
|
362
|
-
ref: n,
|
|
363
|
-
size: e ? "m" : t,
|
|
364
|
-
...l
|
|
365
|
-
},
|
|
366
|
-
void 0,
|
|
367
|
-
!1,
|
|
368
|
-
{
|
|
369
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/Switch/Switch.tsx",
|
|
370
|
-
lineNumber: 8,
|
|
371
|
-
columnNumber: 3
|
|
372
|
-
},
|
|
373
|
-
void 0
|
|
374
|
-
)
|
|
375
|
-
), Me = ({ ...e }) => /* @__PURE__ */ i.jsxDEV(Le, { size: "m", toggleSize: "s", hasBackground: !0, ...e }, void 0, !1, {
|
|
376
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/SwitcherFilter.tsx",
|
|
377
|
-
lineNumber: 6,
|
|
378
|
-
columnNumber: 1
|
|
379
|
-
}, void 0), He = (e, t) => {
|
|
380
|
-
if (!e && !t)
|
|
381
|
-
return;
|
|
382
|
-
const l = e && {
|
|
383
|
-
$css: e.split(" ").map((n, r) => ({
|
|
384
|
-
[`& > *:nth-child(${r + 1})`]: {
|
|
385
|
-
width: n
|
|
386
|
-
}
|
|
387
|
-
})).reduce((n, r) => ({
|
|
388
|
-
...n,
|
|
389
|
-
...r
|
|
390
|
-
}), {})
|
|
391
|
-
};
|
|
392
|
-
return P(["", ";", ";"], () => l && l.$css, () => t && t);
|
|
393
|
-
}, $e = c(j).withConfig({
|
|
394
|
-
displayName: "styled__StyledContainer"
|
|
395
|
-
})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]), X = c.div.withConfig({
|
|
396
|
-
displayName: "styled__StyledCard"
|
|
397
|
-
})(["padding-block:8px;border-radius:", ";"], () => xe), Ue = c(X).withConfig({
|
|
398
|
-
displayName: "styled__StyledButtonsBlock"
|
|
399
|
-
})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]), Xe = c(j).withConfig({
|
|
400
|
-
displayName: "styled__StyledMainBlock"
|
|
401
|
-
})(["display:flex;gap:8px;align-items:center;max-height:40px;"]), p = ({
|
|
402
|
-
mainBlock: e,
|
|
403
|
-
listOfFilters: t,
|
|
404
|
-
activeButtonsBlock: l,
|
|
405
|
-
mainBlockElementsWidth: n,
|
|
406
|
-
containerProps: r,
|
|
407
|
-
mainBlockProps: { $css: m, ref: o, ...d } = {},
|
|
408
|
-
onResize: s
|
|
409
|
-
}) => {
|
|
410
|
-
const a = S(null), b = S(null), k = S(null);
|
|
411
|
-
return Ne(() => {
|
|
412
|
-
if (!s)
|
|
413
|
-
return;
|
|
414
|
-
const x = a.current, g = b.current, h = k.current;
|
|
415
|
-
if (!x || !g)
|
|
416
|
-
return;
|
|
417
|
-
const u = {
|
|
418
|
-
containerWidth: 0,
|
|
419
|
-
mainBlockWidth: 0,
|
|
420
|
-
buttonsBlockWidth: 0,
|
|
421
|
-
availableMainBlockWidth: 0
|
|
422
|
-
}, y = () => {
|
|
423
|
-
const A = x.getBoundingClientRect().width, B = g.getBoundingClientRect().width, D = h ? h.getBoundingClientRect().width : 0, N = B;
|
|
424
|
-
u.containerWidth = A, u.mainBlockWidth = B, u.buttonsBlockWidth = D, u.availableMainBlockWidth = N, s({ ...u });
|
|
425
|
-
}, F = Be(() => {
|
|
426
|
-
y();
|
|
427
|
-
});
|
|
428
|
-
return F.observe(x), F.observe(g), h && F.observe(h), y(), () => {
|
|
429
|
-
F.disconnect();
|
|
430
|
-
};
|
|
431
|
-
}, [s]), /* @__PURE__ */ i.jsxDEV($e, { ref: a, ...r, children: /* @__PURE__ */ i.jsxDEV(X, { children: [
|
|
432
|
-
/* @__PURE__ */ i.jsxDEV(
|
|
433
|
-
Xe,
|
|
434
|
-
{
|
|
435
|
-
$css: He(n, m),
|
|
436
|
-
...d,
|
|
437
|
-
ref: Ae(o, b),
|
|
438
|
-
children: [
|
|
439
|
-
e,
|
|
440
|
-
l && /* @__PURE__ */ i.jsxDEV(Ue, { ref: k, children: l }, void 0, !1, {
|
|
441
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",
|
|
442
|
-
lineNumber: 153,
|
|
443
|
-
columnNumber: 11
|
|
444
|
-
}, void 0)
|
|
445
|
-
]
|
|
446
|
-
},
|
|
447
|
-
void 0,
|
|
448
|
-
!0,
|
|
449
|
-
{
|
|
450
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",
|
|
451
|
-
lineNumber: 146,
|
|
452
|
-
columnNumber: 9
|
|
453
|
-
},
|
|
454
|
-
void 0
|
|
455
|
-
),
|
|
456
|
-
t
|
|
457
|
-
] }, void 0, !0, {
|
|
458
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",
|
|
459
|
-
lineNumber: 145,
|
|
460
|
-
columnNumber: 7
|
|
461
|
-
}, void 0) }, void 0, !1, {
|
|
462
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/FiltersActions.tsx",
|
|
463
|
-
lineNumber: 144,
|
|
464
|
-
columnNumber: 5
|
|
465
|
-
}, void 0);
|
|
466
|
-
};
|
|
467
|
-
p.FiltersButton = H;
|
|
468
|
-
p.DotsIconButton = we;
|
|
469
|
-
p.ListOfFilters = Se;
|
|
470
|
-
p.TextFieldSearch = O;
|
|
471
|
-
p.Tabs = Ee;
|
|
472
|
-
p.TabItem = Te;
|
|
473
|
-
p.SegmentItem = ze;
|
|
474
|
-
p.Tooltip = L;
|
|
475
|
-
p.TooltipList = L;
|
|
476
|
-
p.FilterPopover = U;
|
|
477
|
-
p.FiltersButtonWithPopover = U;
|
|
478
|
-
p.ResetAllFiltersButton = Pe;
|
|
479
|
-
p.SwitcherFilter = Me;
|
|
480
|
-
p.RedDot = $;
|
|
481
|
-
function I(e, t, l) {
|
|
482
|
-
const {
|
|
483
|
-
visible: n = [],
|
|
484
|
-
inOverlay: r = [],
|
|
485
|
-
hidden: m = [],
|
|
486
|
-
modifications: o = {},
|
|
487
|
-
customActions: d = {}
|
|
488
|
-
} = l, s = new Set(n), a = new Set(r), b = new Set(m), k = e.filter((u) => s.has(u.id)), x = e.filter((u) => a.has(u.id)), g = e.filter((u) => b.has(u.id)), h = [];
|
|
489
|
-
return n.forEach((u) => {
|
|
490
|
-
h.push({ type: "show", targetId: u, payload: null });
|
|
491
|
-
}), r.forEach((u) => {
|
|
492
|
-
h.push({ type: "moveToOverlay", targetId: u, payload: null });
|
|
493
|
-
}), m.forEach((u) => {
|
|
494
|
-
h.push({ type: "hide", targetId: u, payload: null });
|
|
495
|
-
}), Object.entries(o).forEach(([u, y]) => {
|
|
496
|
-
h.push({
|
|
497
|
-
type: "modify",
|
|
498
|
-
targetId: u,
|
|
499
|
-
payload: y
|
|
500
|
-
});
|
|
501
|
-
}), {
|
|
502
|
-
visibleItems: k,
|
|
503
|
-
overlayItems: x,
|
|
504
|
-
hiddenItems: g,
|
|
505
|
-
modifications: o,
|
|
506
|
-
actions: h,
|
|
507
|
-
activeBreakpoint: t,
|
|
508
|
-
hasOverlayItems: x.length > 0,
|
|
509
|
-
hasModifications: Object.keys(o).length > 0,
|
|
510
|
-
customActions: d
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
const ui = ({
|
|
514
|
-
items: e,
|
|
515
|
-
width: t,
|
|
516
|
-
breakpoints: l
|
|
517
|
-
}) => {
|
|
518
|
-
const n = ve(() => {
|
|
519
|
-
const o = Object.entries(l).map(([s, a]) => ({ breakpoint: Number(s), config: a })).sort((s, a) => a.breakpoint - s.breakpoint), d = o.find(
|
|
520
|
-
({ breakpoint: s }) => t >= s
|
|
521
|
-
);
|
|
522
|
-
if (!d) {
|
|
523
|
-
const s = o[o.length - 1];
|
|
524
|
-
return I(
|
|
525
|
-
e,
|
|
526
|
-
(s == null ? void 0 : s.breakpoint) || 0,
|
|
527
|
-
(s == null ? void 0 : s.config) || {
|
|
528
|
-
visible: [],
|
|
529
|
-
inOverlay: [],
|
|
530
|
-
hidden: []
|
|
531
|
-
}
|
|
532
|
-
);
|
|
533
|
-
}
|
|
534
|
-
return I(
|
|
535
|
-
e,
|
|
536
|
-
d.breakpoint,
|
|
537
|
-
d.config
|
|
538
|
-
);
|
|
539
|
-
}, [e, t, l]), r = w(
|
|
540
|
-
(o, d) => {
|
|
541
|
-
if (!o)
|
|
542
|
-
return {};
|
|
543
|
-
const s = { ...o.style };
|
|
544
|
-
return o.width ? s.width = o.width : o.widthPercent && d ? s.width = `${d * o.widthPercent / 100}px` : o.widthPercent && (s.width = `${o.widthPercent}%`), s;
|
|
545
|
-
},
|
|
546
|
-
[]
|
|
547
|
-
), m = w(
|
|
548
|
-
(o, d) => o.some((s) => {
|
|
549
|
-
const a = d[s.id];
|
|
550
|
-
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;
|
|
551
|
-
}),
|
|
552
|
-
[]
|
|
553
|
-
);
|
|
554
|
-
return {
|
|
555
|
-
...n,
|
|
556
|
-
getItemStyle: r,
|
|
557
|
-
hasActiveFilters: m
|
|
558
|
-
};
|
|
559
|
-
}, Ge = () => P(be), Ze = c.div.withConfig({ displayName: "Tooltip__StyledTooltipContent" })(
|
|
560
|
-
["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;}}"],
|
|
561
|
-
() => ge,
|
|
562
|
-
() => Ge()
|
|
563
|
-
), qe = ({
|
|
564
|
-
groupLabel: e,
|
|
565
|
-
items: t
|
|
566
|
-
}) => /* @__PURE__ */ i.jsxDEV(Ze, { children: [
|
|
567
|
-
/* @__PURE__ */ i.jsxDEV("span", { children: e }, void 0, !1, {
|
|
568
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
569
|
-
lineNumber: 40,
|
|
570
|
-
columnNumber: 5
|
|
571
|
-
}, void 0),
|
|
572
|
-
/* @__PURE__ */ i.jsxDEV("ul", { children: t.map(
|
|
573
|
-
(l) => /* @__PURE__ */ i.jsxDEV("li", { children: l }, void 0, !1, {
|
|
574
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
575
|
-
lineNumber: 43,
|
|
576
|
-
columnNumber: 5
|
|
577
|
-
}, void 0)
|
|
578
|
-
) }, void 0, !1, {
|
|
579
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
580
|
-
lineNumber: 41,
|
|
581
|
-
columnNumber: 5
|
|
582
|
-
}, void 0)
|
|
583
|
-
] }, void 0, !0, {
|
|
584
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
585
|
-
lineNumber: 39,
|
|
586
|
-
columnNumber: 1
|
|
587
|
-
}, void 0), ci = ({
|
|
588
|
-
groupLabel: e,
|
|
589
|
-
items: t,
|
|
590
|
-
children: l,
|
|
591
|
-
...n
|
|
592
|
-
}) => {
|
|
593
|
-
const [r, m] = z(!1), o = t.length > 0;
|
|
594
|
-
return Fe(() => {
|
|
595
|
-
if (!o) {
|
|
596
|
-
m(!0);
|
|
597
|
-
const d = setTimeout(() => {
|
|
598
|
-
m(!1);
|
|
599
|
-
}, 0);
|
|
600
|
-
return () => clearTimeout(d);
|
|
601
|
-
}
|
|
602
|
-
}, [o]), /* @__PURE__ */ i.jsxDEV(
|
|
603
|
-
ne,
|
|
604
|
-
{
|
|
605
|
-
usePortal: !0,
|
|
606
|
-
trigger: o ? (n == null ? void 0 : n.trigger) ?? "hover" : "none",
|
|
607
|
-
text: /* @__PURE__ */ i.jsxDEV(qe, { groupLabel: e, items: t }, void 0, !1, {
|
|
608
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
609
|
-
lineNumber: 92,
|
|
610
|
-
columnNumber: 13
|
|
611
|
-
}, void 0),
|
|
612
|
-
size: "s",
|
|
613
|
-
...n,
|
|
614
|
-
children: l
|
|
615
|
-
},
|
|
616
|
-
`tooltip-${r}`,
|
|
617
|
-
!1,
|
|
618
|
-
{
|
|
619
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/layouts/FiltersActions/components/Tooltip.tsx",
|
|
620
|
-
lineNumber: 88,
|
|
621
|
-
columnNumber: 5
|
|
622
|
-
},
|
|
623
|
-
void 0
|
|
624
|
-
);
|
|
625
|
-
};
|
|
626
|
-
export {
|
|
627
|
-
ci as F,
|
|
628
|
-
$ as R,
|
|
629
|
-
Le as S,
|
|
630
|
-
Se as a,
|
|
631
|
-
p as b,
|
|
632
|
-
ai as c,
|
|
633
|
-
H as d,
|
|
634
|
-
Te as e,
|
|
635
|
-
Ee as f,
|
|
636
|
-
ui as u
|
|
637
|
-
};
|