@daisforge/ui 1.12.0 → 1.12.2
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-CBi-2MtJ.mjs +528 -0
- package/chunks/AnalyticalWidget-fBDe37Ur.cjs +43 -0
- package/chunks/ApprovalCenter-ClCoA3cr.mjs +176 -0
- package/chunks/ApprovalCenter-oACSjXxE.cjs +1 -0
- package/chunks/BlockTitle-CylSY2DM.cjs +1 -0
- package/chunks/BlockTitle-DTaIqiFF.mjs +85 -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-C3yWFtQT.mjs +429 -0
- package/chunks/FiltersActions-D1aQXh5d.cjs +1 -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-BP_H26We.cjs +1 -0
- package/chunks/GridDND-rVSi0xX1.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-DgInAZFi.cjs +1 -0
- package/chunks/ListOfFilters-IEPKSKxx.mjs +243 -0
- package/chunks/MassActions-BCgI08G9.cjs +1 -0
- package/chunks/MassActions-D4nb1_gx.mjs +966 -0
- package/chunks/PageTitle-B0tuR3fU.mjs +123 -0
- package/chunks/PageTitle-BC0PnHgQ.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories--_pE4YtR.mjs +668 -0
- package/chunks/Stories-Dvh6rMeV.cjs +1 -0
- package/chunks/Table-Bj2se1hR.mjs +7757 -0
- package/chunks/Table-CnWVNNoW.cjs +31 -0
- package/chunks/TableCanvas-Y53zQ7M0.mjs +11857 -0
- package/chunks/TableCanvas-eYhmqTbp.cjs +30 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-CuBMIM6Q.mjs} +1417 -1554
- package/chunks/TableGlide-CvMz7x7a.cjs +1 -0
- 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/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/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/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 +2 -2
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-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 +3 -3
- 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/TableSettingsWithTabs.d.ts +25 -2
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.d.ts +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +3 -2
- 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/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +4 -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/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/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 +1 -1
- 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-D-sndY82.cjs +0 -30
- package/chunks/TableCanvas-D4Bck7wv.mjs +0 -16900
- 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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Breadcrumbs as C, IconButton as w } from "@salutejs/sdds-finai";
|
|
2
|
+
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { a as S } from "./AnalyticalWidget-CBi-2MtJ.mjs";
|
|
4
|
+
import { IconChevronLeft as P } from "@salutejs/plasma-icons";
|
|
5
|
+
import { textSecondary as $ } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
6
|
+
import { d as R, s as z } from "./utils-C5SQhoON.mjs";
|
|
7
|
+
import { forwardRef as I } from "react";
|
|
8
|
+
import { s } from "../constants/index.mjs";
|
|
9
|
+
import a from "styled-components";
|
|
10
|
+
const o = "PageTitle__", i = {
|
|
11
|
+
root: `${o}root`,
|
|
12
|
+
breadcrumbs: `${o}breadcrumbs`,
|
|
13
|
+
content: `${o}content`,
|
|
14
|
+
leftBlock: `${o}left-block`,
|
|
15
|
+
titleBlock: `${o}title-block`,
|
|
16
|
+
title: `${o}title`,
|
|
17
|
+
subtitle: `${o}subtitle`,
|
|
18
|
+
titleSlot: `${o}title-slot`,
|
|
19
|
+
rightBlock: `${o}right-block`,
|
|
20
|
+
backIconButton: `${o}back-icon-block`
|
|
21
|
+
}, j = a.div.attrs({
|
|
22
|
+
className: i.root
|
|
23
|
+
}).withConfig({
|
|
24
|
+
displayName: "PageTitlestyled__StyledRoot"
|
|
25
|
+
})(["width:100%;display:flex;flex-direction:column;gap:", ";"], () => s.x8), A = a.div.attrs({
|
|
26
|
+
className: i.breadcrumbs
|
|
27
|
+
}).withConfig({
|
|
28
|
+
displayName: "PageTitlestyled__StyledBreadcrumbs"
|
|
29
|
+
})([""]), L = a.div.attrs({
|
|
30
|
+
className: i.content
|
|
31
|
+
}).withConfig({
|
|
32
|
+
displayName: "PageTitlestyled__StyledContent"
|
|
33
|
+
})(["display:flex;justify-content:space-between;align-items:flex-start;gap:", ";"], () => s.x12), H = a.div.attrs({
|
|
34
|
+
className: i.leftBlock
|
|
35
|
+
}).withConfig({
|
|
36
|
+
displayName: "PageTitlestyled__StyledLeftBlock"
|
|
37
|
+
})(["display:flex;align-items:flex-start;gap:", ";flex:1;min-width:0;"], () => s.x8), E = a.div.attrs({
|
|
38
|
+
className: i.titleBlock
|
|
39
|
+
}).withConfig({
|
|
40
|
+
displayName: "PageTitlestyled__StyledTitleBlock"
|
|
41
|
+
})(["display:flex;flex-direction:column;gap:", ";flex-shrink:1;min-width:0;"], () => s.x2), W = a.div.attrs({
|
|
42
|
+
className: i.backIconButton
|
|
43
|
+
}).withConfig({
|
|
44
|
+
displayName: "PageTitlestyled__StyledBackButtonContainer"
|
|
45
|
+
})(["margin-top:", ";"], ({
|
|
46
|
+
$isAdaptive1280: t
|
|
47
|
+
}) => t ? "1px" : "6px"), q = a.div.attrs({
|
|
48
|
+
className: i.title
|
|
49
|
+
}).withConfig({
|
|
50
|
+
displayName: "PageTitlestyled__StyledTitle"
|
|
51
|
+
})([""]), D = a.div.attrs({
|
|
52
|
+
className: i.subtitle
|
|
53
|
+
}).withConfig({
|
|
54
|
+
displayName: "PageTitlestyled__StyledSubtitle"
|
|
55
|
+
})([""]), F = a.div.attrs({
|
|
56
|
+
className: i.titleSlot
|
|
57
|
+
}).withConfig({
|
|
58
|
+
displayName: "PageTitlestyled__StyledTitleSlot"
|
|
59
|
+
})(["margin-top:3px;"]), G = a.div.attrs({
|
|
60
|
+
className: i.rightBlock
|
|
61
|
+
}).withConfig({
|
|
62
|
+
displayName: "PageTitlestyled__StyledRightBlock"
|
|
63
|
+
})(["display:flex;align-items:flex-end;flex-shrink:0;align-self:flex-end;"]), J = (t) => ({
|
|
64
|
+
buttonSize: t ? "xs" : "s"
|
|
65
|
+
}), y = (t, e) => typeof t == "function" ? t(e) : t, K = ({
|
|
66
|
+
isAdaptive1280: t,
|
|
67
|
+
...e
|
|
68
|
+
}) => /* @__PURE__ */ l(W, { $isAdaptive1280: t, children: /* @__PURE__ */ l(w, { size: "xs", view: "secondary", className: i.backIconButton, pin: "circle-circle", ...e, children: /* @__PURE__ */ l(P, { size: "xs", color: "inherit" }) }) }), M = ({
|
|
69
|
+
breadcrumbs: t
|
|
70
|
+
}) => {
|
|
71
|
+
if (!t)
|
|
72
|
+
return null;
|
|
73
|
+
const e = {
|
|
74
|
+
size: "m",
|
|
75
|
+
...t
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ l(A, { children: /* @__PURE__ */ l(C, { ...e }) });
|
|
78
|
+
}, O = ({
|
|
79
|
+
title: t,
|
|
80
|
+
titleTypographyProps: e
|
|
81
|
+
}) => t ? /* @__PURE__ */ l(q, { children: /* @__PURE__ */ l(S, { variant: "H2", bold: !0, tooltipText: (e && "tooltipText" in e ? e.tooltipText : void 0) ?? t, ...e, children: t }) }) : null, Q = ({
|
|
82
|
+
subtitle: t,
|
|
83
|
+
subtitleTypographyProps: e
|
|
84
|
+
}) => t ? /* @__PURE__ */ l(D, { children: /* @__PURE__ */ l(S, { variant: "BodyS", color: $, tooltipText: (e && "tooltipText" in e ? e.tooltipText : void 0) ?? t, ...e, children: t }) }) : null, U = I(({
|
|
85
|
+
title: t,
|
|
86
|
+
titleTypographyProps: e,
|
|
87
|
+
subtitle: c,
|
|
88
|
+
subtitleTypographyProps: p,
|
|
89
|
+
titleSlot: x,
|
|
90
|
+
rightSlot: h,
|
|
91
|
+
disableMediaAdaptive: u = !1,
|
|
92
|
+
breadcrumbs: d,
|
|
93
|
+
$css: T,
|
|
94
|
+
className: B,
|
|
95
|
+
showBackButton: k,
|
|
96
|
+
onBackClick: N,
|
|
97
|
+
..._
|
|
98
|
+
}, b) => {
|
|
99
|
+
const {
|
|
100
|
+
down: v
|
|
101
|
+
} = R(), r = !u && v("xl"), m = J(r), f = y(x, m), g = y(h, m);
|
|
102
|
+
return /* @__PURE__ */ n(j, { ref: b, $css: T, className: z(i.root, B), ..._, children: [
|
|
103
|
+
d && /* @__PURE__ */ l(M, { breadcrumbs: d }),
|
|
104
|
+
/* @__PURE__ */ n(L, { children: [
|
|
105
|
+
/* @__PURE__ */ n(H, { children: [
|
|
106
|
+
k && /* @__PURE__ */ l(K, { isAdaptive1280: r, onClick: N }),
|
|
107
|
+
(t || c) && /* @__PURE__ */ n(E, { children: [
|
|
108
|
+
/* @__PURE__ */ l(O, { title: t, titleTypographyProps: e }),
|
|
109
|
+
/* @__PURE__ */ l(Q, { subtitle: c, subtitleTypographyProps: p })
|
|
110
|
+
] }),
|
|
111
|
+
f && /* @__PURE__ */ l(F, { children: f })
|
|
112
|
+
] }),
|
|
113
|
+
g && /* @__PURE__ */ l(G, { children: g })
|
|
114
|
+
] })
|
|
115
|
+
] });
|
|
116
|
+
});
|
|
117
|
+
U.displayName = "PageTitle";
|
|
118
|
+
export {
|
|
119
|
+
U as P,
|
|
120
|
+
J as g,
|
|
121
|
+
i as p,
|
|
122
|
+
y as r
|
|
123
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),f=require("./AnalyticalWidget-fBDe37Ur.cjs"),w=require("@salutejs/plasma-icons"),$=require("@salutejs/sdds-themes/tokens/sdds_finai"),m=require("./utils-DKi1rqLX.cjs"),q=require("react"),o=require("../constants/index.cjs"),n=require("styled-components"),s="PageTitle__",i={root:`${s}root`,breadcrumbs:`${s}breadcrumbs`,content:`${s}content`,leftBlock:`${s}left-block`,titleBlock:`${s}title-block`,title:`${s}title`,subtitle:`${s}subtitle`,titleSlot:`${s}title-slot`,rightBlock:`${s}right-block`,backIconButton:`${s}back-icon-block`},R=n.div.attrs({className:i.root}).withConfig({displayName:"PageTitlestyled__StyledRoot"})(["width:100%;display:flex;flex-direction:column;gap:",";"],()=>o.s.x8),z=n.div.attrs({className:i.breadcrumbs}).withConfig({displayName:"PageTitlestyled__StyledBreadcrumbs"})([""]),I=n.div.attrs({className:i.content}).withConfig({displayName:"PageTitlestyled__StyledContent"})(["display:flex;justify-content:space-between;align-items:flex-start;gap:",";"],()=>o.s.x12),A=n.div.attrs({className:i.leftBlock}).withConfig({displayName:"PageTitlestyled__StyledLeftBlock"})(["display:flex;align-items:flex-start;gap:",";flex:1;min-width:0;"],()=>o.s.x8),L=n.div.attrs({className:i.titleBlock}).withConfig({displayName:"PageTitlestyled__StyledTitleBlock"})(["display:flex;flex-direction:column;gap:",";flex-shrink:1;min-width:0;"],()=>o.s.x2),W=n.div.attrs({className:i.backIconButton}).withConfig({displayName:"PageTitlestyled__StyledBackButtonContainer"})(["margin-top:",";"],({$isAdaptive1280:t})=>t?"1px":"6px"),H=n.div.attrs({className:i.title}).withConfig({displayName:"PageTitlestyled__StyledTitle"})([""]),E=n.div.attrs({className:i.subtitle}).withConfig({displayName:"PageTitlestyled__StyledSubtitle"})([""]),F=n.div.attrs({className:i.titleSlot}).withConfig({displayName:"PageTitlestyled__StyledTitleSlot"})(["margin-top:3px;"]),D=n.div.attrs({className:i.rightBlock}).withConfig({displayName:"PageTitlestyled__StyledRightBlock"})(["display:flex;align-items:flex-end;flex-shrink:0;align-self:flex-end;"]),S=t=>({buttonSize:t?"xs":"s"}),a=(t,l)=>typeof t=="function"?t(l):t,G=({isAdaptive1280:t,...l})=>e.jsx(W,{$isAdaptive1280:t,children:e.jsx(u.IconButton,{size:"xs",view:"secondary",className:i.backIconButton,pin:"circle-circle",...l,children:e.jsx(w.IconChevronLeft,{size:"xs",color:"inherit"})})}),J=({breadcrumbs:t})=>{if(!t)return null;const l={size:"m",...t};return e.jsx(z,{children:e.jsx(u.Breadcrumbs,{...l})})},K=({title:t,titleTypographyProps:l})=>t?e.jsx(H,{children:e.jsx(f.TypographyWithAutoTooltip,{variant:"H2",bold:!0,tooltipText:(l&&"tooltipText"in l?l.tooltipText:void 0)??t,...l,children:t})}):null,M=({subtitle:t,subtitleTypographyProps:l})=>t?e.jsx(E,{children:e.jsx(f.TypographyWithAutoTooltip,{variant:"BodyS",color:$.textSecondary,tooltipText:(l&&"tooltipText"in l?l.tooltipText:void 0)??t,...l,children:t})}):null,T=q.forwardRef(({title:t,titleTypographyProps:l,subtitle:c,subtitleTypographyProps:h,titleSlot:p,rightSlot:B,disableMediaAdaptive:k=!1,breadcrumbs:d,$css:N,className:_,showBackButton:j,onBackClick:b,...C},v)=>{const{down:P}=m.useBreakpoint(),r=!k&&P("xl"),x=S(r),g=a(p,x),y=a(B,x);return e.jsxs(R,{ref:v,$css:N,className:m.mCls(i.root,_),...C,children:[d&&e.jsx(J,{breadcrumbs:d}),e.jsxs(I,{children:[e.jsxs(A,{children:[j&&e.jsx(G,{isAdaptive1280:r,onClick:b}),(t||c)&&e.jsxs(L,{children:[e.jsx(K,{title:t,titleTypographyProps:l}),e.jsx(M,{subtitle:c,subtitleTypographyProps:h})]}),g&&e.jsx(F,{children:g})]}),y&&e.jsx(D,{children:y})]})]})});T.displayName="PageTitle";exports.PageTitle=T;exports.getPageTitleSlotSizes=S;exports.pageTitleClassNames=i;exports.renderPageTitleSlot=a;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { jsx as W, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { t as G, e as V, w as J, b as y, d as K, s as Q, q as Y } from "./utils-C5SQhoON.mjs";
|
|
3
|
+
import { useState as F, useEffect as $, useCallback as T, useRef as L, useMemo as X } from "react";
|
|
4
|
+
import { ModalDF as Z } from "../components/ModalDF/index.mjs";
|
|
5
|
+
import { s as E } from "../constants/index.mjs";
|
|
6
|
+
import { surfaceSolidSecondary as R, outlineSolidSecondary as tt, outlineSolidSecondaryHover as N, surfaceSolidCard as et, shadowDownSoftS as it } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
7
|
+
import rt from "styled-components";
|
|
8
|
+
const nt = ({
|
|
9
|
+
children: e,
|
|
10
|
+
isFullScreened: t,
|
|
11
|
+
fullScreenedModalDFProps: i
|
|
12
|
+
}) => {
|
|
13
|
+
if (!t)
|
|
14
|
+
return e;
|
|
15
|
+
const o = typeof (i == null ? void 0 : i.fullScreen) == "object" ? i.fullScreen : void 0;
|
|
16
|
+
return /* @__PURE__ */ W(Z, { opened: !0, closeOnOverlayClick: !1, ...i, fullScreen: {
|
|
17
|
+
...o,
|
|
18
|
+
defaultEnabled: !0
|
|
19
|
+
}, children: e });
|
|
20
|
+
}, ot = ({
|
|
21
|
+
sidebarIsClosed: e,
|
|
22
|
+
isResizingRef: t,
|
|
23
|
+
onTransitionEndExt: i
|
|
24
|
+
}) => {
|
|
25
|
+
const [o, a] = F(() => e);
|
|
26
|
+
$(() => {
|
|
27
|
+
e && a(!0);
|
|
28
|
+
}, [e]);
|
|
29
|
+
const d = T((c) => {
|
|
30
|
+
i && i(c), !e && !t.current && o && a(!1);
|
|
31
|
+
}, [o, t, i, e]);
|
|
32
|
+
return {
|
|
33
|
+
isClosingOrClosedOrOpening: o,
|
|
34
|
+
onTransitionEnd: d
|
|
35
|
+
};
|
|
36
|
+
}, u = "SplitView__", n = {
|
|
37
|
+
container: `${u}container`,
|
|
38
|
+
separator: `${u}separator`,
|
|
39
|
+
separatorButton: `${u}separator-button`,
|
|
40
|
+
mainBlock: `${u}main-block`,
|
|
41
|
+
sidebarBlock: `${u}sidebar-block`,
|
|
42
|
+
sidebarBlockIsResizing: `${u}sidebar-block-is-resizing`,
|
|
43
|
+
sidebarIsClosingOrClosedOrOpening: `${u}sidebar-is-closing-closed-opening`,
|
|
44
|
+
sidebarBlockFullScreenContentContainer: `${u}sidebar-block__full-screen-content-container`,
|
|
45
|
+
sidebarBlockInModal: `${u}sidebar-block-in-modal`
|
|
46
|
+
}, M = 32, _ = 12, r = {
|
|
47
|
+
mainWidthVar: "--main-width",
|
|
48
|
+
separatorWidthVar: "--separator-width",
|
|
49
|
+
sidebarWidthVar: "--sidebar-width",
|
|
50
|
+
sidebarWidthInPxVar: "--sidebar-width-in-px",
|
|
51
|
+
gapBetweenBlocksDefaultWidth: M,
|
|
52
|
+
separatorButtonDefaultWidth: _,
|
|
53
|
+
separatorDefaultWidth: M + _,
|
|
54
|
+
// SIZES DEFAULT
|
|
55
|
+
sidebarWidths: {
|
|
56
|
+
minWidthPx: 600,
|
|
57
|
+
adaptive1280MinWidthPx: 440,
|
|
58
|
+
maxWidthPercent: 70,
|
|
59
|
+
defaultWidthPercent: 30
|
|
60
|
+
}
|
|
61
|
+
}, j = (e, t) => e / 100 * t, at = (e, t) => e / t * 100, st = ({
|
|
62
|
+
setSizes: e,
|
|
63
|
+
isResizingRef: t,
|
|
64
|
+
containerRef: i,
|
|
65
|
+
sidebarMinWidthPx: o,
|
|
66
|
+
sidebarMaxWidthPercent: a,
|
|
67
|
+
onResize: d
|
|
68
|
+
}) => {
|
|
69
|
+
const c = T(() => {
|
|
70
|
+
var s;
|
|
71
|
+
document.body.style.cursor = "col-resize", t.current = !0, (s = i.current) == null || s.classList.toggle(n.sidebarBlockIsResizing, !0);
|
|
72
|
+
}, [i, t]);
|
|
73
|
+
return $(() => {
|
|
74
|
+
const s = () => {
|
|
75
|
+
var l;
|
|
76
|
+
document.body.style.cursor = "auto", t.current = !1, (l = i.current) == null || l.classList.toggle(n.sidebarBlockIsResizing, !1);
|
|
77
|
+
}, w = G((l) => {
|
|
78
|
+
if (!t.current || !i.current)
|
|
79
|
+
return;
|
|
80
|
+
l.preventDefault();
|
|
81
|
+
const g = l.clientX, m = i.current.getBoundingClientRect(), p = m.width - r.separatorDefaultWidth, b = (m.right - g - r.separatorButtonDefaultWidth / 2) / p * 100, v = at(o, p), x = V(v, b, a), f = 100 - x, k = x * p / 100, B = f * p / 100, P = {
|
|
82
|
+
main: f,
|
|
83
|
+
mainPx: B,
|
|
84
|
+
sidebar: x,
|
|
85
|
+
sidebarPx: k
|
|
86
|
+
};
|
|
87
|
+
e(P), d == null || d(P);
|
|
88
|
+
}, 150);
|
|
89
|
+
return window.addEventListener("mousemove", w), window.addEventListener("mouseup", s), () => {
|
|
90
|
+
window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", s);
|
|
91
|
+
};
|
|
92
|
+
}, [i, t, d, e, a, o]), {
|
|
93
|
+
startResizing: c
|
|
94
|
+
};
|
|
95
|
+
}, dt = ({
|
|
96
|
+
setSizes: e,
|
|
97
|
+
containerRef: t,
|
|
98
|
+
sidebarMinWidthPx: i,
|
|
99
|
+
sidebarMaxWidthPercent: o,
|
|
100
|
+
onResize: a
|
|
101
|
+
}) => {
|
|
102
|
+
$(() => {
|
|
103
|
+
const c = J((h) => {
|
|
104
|
+
const l = h.contentRect.width - r.separatorDefaultWidth;
|
|
105
|
+
e((g) => {
|
|
106
|
+
const m = j(g.sidebar, l), C = j(o, l), p = V(i, m, C), b = {
|
|
107
|
+
...g,
|
|
108
|
+
sidebarPx: p
|
|
109
|
+
};
|
|
110
|
+
return a == null || a(b), b;
|
|
111
|
+
});
|
|
112
|
+
}, 1e3), s = new ResizeObserver((h) => {
|
|
113
|
+
h.forEach(c);
|
|
114
|
+
});
|
|
115
|
+
return t.current && s.observe(t.current), () => {
|
|
116
|
+
s.disconnect();
|
|
117
|
+
};
|
|
118
|
+
}, [t, e, o, i]);
|
|
119
|
+
}, S = {
|
|
120
|
+
spaceX4: () => E.x4,
|
|
121
|
+
spaceX16: () => E.x16
|
|
122
|
+
}, ct = (e, t, i, o = r.sidebarWidths.minWidthPx) => {
|
|
123
|
+
const a = t ? {
|
|
124
|
+
...e,
|
|
125
|
+
main: 100,
|
|
126
|
+
separator: `${i ?? 0}px`,
|
|
127
|
+
sidebar: 0
|
|
128
|
+
} : {
|
|
129
|
+
...e,
|
|
130
|
+
separator: `${r.separatorDefaultWidth}px`
|
|
131
|
+
}, {
|
|
132
|
+
main: d,
|
|
133
|
+
sidebar: c,
|
|
134
|
+
sidebarPx: s,
|
|
135
|
+
separator: h
|
|
136
|
+
} = a;
|
|
137
|
+
return {
|
|
138
|
+
[r.mainWidthVar]: `${d}fr`,
|
|
139
|
+
[r.sidebarWidthVar]: c === 0 ? "minmax(0px, 0fr)" : `minmax(${o}px, ${c}fr)`,
|
|
140
|
+
[r.separatorWidthVar]: h,
|
|
141
|
+
...s !== void 0 && {
|
|
142
|
+
[r.sidebarWidthInPxVar]: `${s}px`
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}, lt = `
|
|
146
|
+
border-top-right-radius: ${S.spaceX4};
|
|
147
|
+
border-bottom-right-radius: ${S.spaceX4};
|
|
148
|
+
`, pt = rt.div.attrs({
|
|
149
|
+
className: n.container
|
|
150
|
+
}).withConfig({
|
|
151
|
+
displayName: "SplitViewstyled__StyledDiv"
|
|
152
|
+
})(["*{box-sizing:border-box;}display:grid;position:relative;z-index:0;grid-template-columns:var(", ") var(", ") var(", ");transition:grid-template-columns 0.2s ease-in-out,margin-right 0.2s ease-in-out;flex-grow:1;& .", "{overflow-x:hidden;}& .", ",& .", "{--split-view-header-height:", ";--split-view-bottom-gap:var(--page-layout-padding-bottom,32px);", " position:sticky;top:var(--split-view-header-height);height:calc( 100vh - var(--split-view-header-height) - var(--split-view-bottom-gap) );overflow-x:hidden;}& .", "{align-self:start;z-index:1;& .", "{margin-left:", "px;position:relative;border:none;padding:0;width:", "px;height:100%;background-color:", ";border-radius:", " 0 0 ", ";&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:", ";border-radius:95px;background-color:", ";}&:hover{&::before{background-color:", ";}}cursor:col-resize;text-indent:100%;white-space:nowrap;overflow:hidden;}}&.", "{& .", ":before{background-color:", ";}}.", "{z-index:0;align-self:start;background-color:", ";box-shadow:", ";", ";}.", " > *{width:var(", ");}", " ", ""], r.mainWidthVar, r.separatorWidthVar, r.sidebarWidthVar, n.mainBlock, n.separator, n.sidebarBlock, ({
|
|
153
|
+
$headerHeight: e
|
|
154
|
+
}) => e !== void 0 ? `${e}px` : "var(--global-header-height, 72px)", y.down("l")`
|
|
155
|
+
--split-view-bottom-gap: var(--page-layout-padding-bottom, 24px);
|
|
156
|
+
`, n.separator, n.separatorButton, r.gapBetweenBlocksDefaultWidth, r.separatorDefaultWidth - r.gapBetweenBlocksDefaultWidth, () => R, S.spaceX4, S.spaceX4, S.spaceX16, () => tt, () => N, n.sidebarBlockIsResizing, n.separatorButton, () => N, n.sidebarBlock, () => et, () => it, y.up("xl")(lt), n.sidebarIsClosingOrClosedOrOpening, r.sidebarWidthInPxVar, ({
|
|
157
|
+
$insidePageLayout: e,
|
|
158
|
+
$sidebarIsClosed: t
|
|
159
|
+
}) => e && (t ? "margin-right: 0;" : `
|
|
160
|
+
margin-right: calc(-1 * var(--page-layout-padding-inline, 32px));
|
|
161
|
+
|
|
162
|
+
${y.down("l")`
|
|
163
|
+
margin-right: calc(-1 * var(--page-layout-padding-inline, 24px));
|
|
164
|
+
`}
|
|
165
|
+
`), ({
|
|
166
|
+
$css: e
|
|
167
|
+
}) => e), ut = (e) => ({
|
|
168
|
+
avatarSize: e ? "m" : "l"
|
|
169
|
+
}), ht = (e, t) => t ?? (e ? r.sidebarWidths.adaptive1280MinWidthPx : r.sidebarWidths.minWidthPx), mt = (e, t) => typeof e == "function" ? e(t) : e, Ct = ({
|
|
170
|
+
mainContent: e,
|
|
171
|
+
sidebar: t,
|
|
172
|
+
//
|
|
173
|
+
style: i,
|
|
174
|
+
refContainer: o,
|
|
175
|
+
$css: a,
|
|
176
|
+
onTransitionEnd: d,
|
|
177
|
+
onResize: c,
|
|
178
|
+
headerHeight: s,
|
|
179
|
+
insidePageLayout: h = !1,
|
|
180
|
+
disableMediaAdaptive: w = !1,
|
|
181
|
+
...l
|
|
182
|
+
}) => {
|
|
183
|
+
const g = L(!1), m = L(null), {
|
|
184
|
+
down: C
|
|
185
|
+
} = K(), p = !w && C("xl"), {
|
|
186
|
+
minWidthPx: b,
|
|
187
|
+
maxWidthPercent: v = r.sidebarWidths.maxWidthPercent,
|
|
188
|
+
defaultWidthPercent: D = r.sidebarWidths.defaultWidthPercent
|
|
189
|
+
} = t ?? {}, x = t == null ? void 0 : t.content, f = ht(p, b), k = X(() => ut(p), [p]), B = X(() => mt(x, k), [x, k]), [P, z] = F(() => {
|
|
190
|
+
const I = V(0, D, Math.min(v, 100));
|
|
191
|
+
return {
|
|
192
|
+
main: 100 - I,
|
|
193
|
+
sidebar: I
|
|
194
|
+
};
|
|
195
|
+
}), O = !(t != null && t.isOpened), {
|
|
196
|
+
startResizing: U
|
|
197
|
+
} = st({
|
|
198
|
+
setSizes: z,
|
|
199
|
+
containerRef: m,
|
|
200
|
+
isResizingRef: g,
|
|
201
|
+
sidebarMaxWidthPercent: v,
|
|
202
|
+
sidebarMinWidthPx: f,
|
|
203
|
+
onResize: c
|
|
204
|
+
});
|
|
205
|
+
dt({
|
|
206
|
+
setSizes: z,
|
|
207
|
+
containerRef: m,
|
|
208
|
+
sidebarMaxWidthPercent: v,
|
|
209
|
+
sidebarMinWidthPx: f,
|
|
210
|
+
onResize: c
|
|
211
|
+
});
|
|
212
|
+
const {
|
|
213
|
+
isClosingOrClosedOrOpening: q,
|
|
214
|
+
onTransitionEnd: A
|
|
215
|
+
} = ot({
|
|
216
|
+
sidebarIsClosed: O,
|
|
217
|
+
isResizingRef: g,
|
|
218
|
+
onTransitionEndExt: d
|
|
219
|
+
});
|
|
220
|
+
return /* @__PURE__ */ H(pt, { ref: Y(m, o), style: {
|
|
221
|
+
...ct(P, O, t == null ? void 0 : t.paddingLeftOnClosed, f),
|
|
222
|
+
...i
|
|
223
|
+
}, $css: a, $headerHeight: s, $insidePageLayout: h, $sidebarIsClosed: O, onTransitionEnd: A, ...l, children: [
|
|
224
|
+
/* @__PURE__ */ W("div", { className: n.mainBlock, children: e }),
|
|
225
|
+
/* @__PURE__ */ W("div", { className: n.separator, children: /* @__PURE__ */ W("button", { className: n.separatorButton, type: "button", onMouseDown: U, children: "Разделитель" }) }),
|
|
226
|
+
/* @__PURE__ */ W("div", { className: Q(n.sidebarBlock, q && n.sidebarIsClosingOrClosedOrOpening, (t == null ? void 0 : t.isFullScreened) && n.sidebarBlockInModal), children: /* @__PURE__ */ W(nt, { isFullScreened: t == null ? void 0 : t.isFullScreened, fullScreenedModalDFProps: t == null ? void 0 : t.fullScreenedModalDFProps, children: B }) })
|
|
227
|
+
] });
|
|
228
|
+
};
|
|
229
|
+
export {
|
|
230
|
+
Ct as S,
|
|
231
|
+
r as a,
|
|
232
|
+
ut as b,
|
|
233
|
+
ht as g,
|
|
234
|
+
mt as r,
|
|
235
|
+
n as s
|
|
236
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const W=require("react/jsx-runtime"),u=require("./utils-DKi1rqLX.cjs"),l=require("react"),H=require("../components/ModalDF/index.cjs"),L=require("../constants/index.cjs"),S=require("@salutejs/sdds-themes/tokens/sdds_finai"),U=require("styled-components"),A=({children:e,isFullScreened:t,fullScreenedModalDFProps:i})=>{if(!t)return e;const s=typeof(i==null?void 0:i.fullScreen)=="object"?i.fullScreen:void 0;return W.jsx(H.ModalDF,{opened:!0,closeOnOverlayClick:!1,...i,fullScreen:{...s,defaultEnabled:!0},children:e})},G=({sidebarIsClosed:e,isResizingRef:t,onTransitionEndExt:i})=>{const[s,o]=l.useState(()=>e);l.useEffect(()=>{e&&o(!0)},[e]);const d=l.useCallback(c=>{i&&i(c),!e&&!t.current&&s&&o(!1)},[s,t,i,e]);return{isClosingOrClosedOrOpening:s,onTransitionEnd:d}},m="SplitView__",r={container:`${m}container`,separator:`${m}separator`,separatorButton:`${m}separator-button`,mainBlock:`${m}main-block`,sidebarBlock:`${m}sidebar-block`,sidebarBlockIsResizing:`${m}sidebar-block-is-resizing`,sidebarIsClosingOrClosedOrOpening:`${m}sidebar-is-closing-closed-opening`,sidebarBlockFullScreenContentContainer:`${m}sidebar-block__full-screen-content-container`,sidebarBlockInModal:`${m}sidebar-block-in-modal`},j=32,E=12,n={mainWidthVar:"--main-width",separatorWidthVar:"--separator-width",sidebarWidthVar:"--sidebar-width",sidebarWidthInPxVar:"--sidebar-width-in-px",gapBetweenBlocksDefaultWidth:j,separatorButtonDefaultWidth:E,separatorDefaultWidth:j+E,sidebarWidths:{minWidthPx:600,adaptive1280MinWidthPx:440,maxWidthPercent:70,defaultWidthPercent:30}},M=(e,t)=>e/100*t,J=(e,t)=>e/t*100,K=({setSizes:e,isResizingRef:t,containerRef:i,sidebarMinWidthPx:s,sidebarMaxWidthPercent:o,onResize:d})=>{const c=l.useCallback(()=>{var a;document.body.style.cursor="col-resize",t.current=!0,(a=i.current)==null||a.classList.toggle(r.sidebarBlockIsResizing,!0)},[i,t]);return l.useEffect(()=>{const a=()=>{var p;document.body.style.cursor="auto",t.current=!1,(p=i.current)==null||p.classList.toggle(r.sidebarBlockIsResizing,!1)},g=p=>{if(!t.current||!i.current)return;p.preventDefault();const x=p.clientX,b=i.current.getBoundingClientRect(),h=b.width-n.separatorDefaultWidth,f=(b.right-x-n.separatorButtonDefaultWidth/2)/h*100,k=J(s,h),y=o,w=u.clamp(k,f,y),v=100-w,B=w*h/100,$=v*h/100,O={main:v,mainPx:$,sidebar:w,sidebarPx:B};e(O),d==null||d(O)},C=u.throttleWithLastCall(g,150);return window.addEventListener("mousemove",C),window.addEventListener("mouseup",a),()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",a)}},[i,t,d,e,o,s]),{startResizing:c}},Q=({setSizes:e,containerRef:t,sidebarMinWidthPx:i,sidebarMaxWidthPercent:s,onResize:o})=>{l.useEffect(()=>{const d=g=>{const p=g.contentRect.width-n.separatorDefaultWidth;e(x=>{const b=M(x.sidebar,p),V=M(s,p),h=u.clamp(i,b,V),f={...x,sidebarPx:h};return o==null||o(f),f})},c=u.debounce(d,1e3),a=new ResizeObserver(g=>{g.forEach(c)});return t.current&&a.observe(t.current),()=>{a.disconnect()}},[t,e,s,i])},P={spaceX4:()=>L.s.x4,spaceX16:()=>L.s.x16},Y=(e,t,i,s=n.sidebarWidths.minWidthPx)=>{const o=t?{...e,main:100,separator:`${i??0}px`,sidebar:0}:{...e,separator:`${n.separatorDefaultWidth}px`},{main:d,sidebar:c,sidebarPx:a,separator:g}=o;return{[n.mainWidthVar]:`${d}fr`,[n.sidebarWidthVar]:c===0?"minmax(0px, 0fr)":`minmax(${s}px, ${c}fr)`,[n.separatorWidthVar]:g,...a!==void 0&&{[n.sidebarWidthInPxVar]:`${a}px`}}},Z=`
|
|
2
|
+
border-top-right-radius: ${P.spaceX4};
|
|
3
|
+
border-bottom-right-radius: ${P.spaceX4};
|
|
4
|
+
`,R=U.div.attrs({className:r.container}).withConfig({displayName:"SplitViewstyled__StyledDiv"})(["*{box-sizing:border-box;}display:grid;position:relative;z-index:0;grid-template-columns:var(",") var(",") var(",");transition:grid-template-columns 0.2s ease-in-out,margin-right 0.2s ease-in-out;flex-grow:1;& .","{overflow-x:hidden;}& .",",& .","{--split-view-header-height:",";--split-view-bottom-gap:var(--page-layout-padding-bottom,32px);"," position:sticky;top:var(--split-view-header-height);height:calc( 100vh - var(--split-view-header-height) - var(--split-view-bottom-gap) );overflow-x:hidden;}& .","{align-self:start;z-index:1;& .","{margin-left:","px;position:relative;border:none;padding:0;width:","px;height:100%;background-color:",";border-radius:"," 0 0 ",";&::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:",";border-radius:95px;background-color:",";}&:hover{&::before{background-color:",";}}cursor:col-resize;text-indent:100%;white-space:nowrap;overflow:hidden;}}&.","{& .",":before{background-color:",";}}.","{z-index:0;align-self:start;background-color:",";box-shadow:",";",";}."," > *{width:var(",");}"," ",""],n.mainWidthVar,n.separatorWidthVar,n.sidebarWidthVar,r.mainBlock,r.separator,r.sidebarBlock,({$headerHeight:e})=>e!==void 0?`${e}px`:"var(--global-header-height, 72px)",u.media.down("l")`
|
|
5
|
+
--split-view-bottom-gap: var(--page-layout-padding-bottom, 24px);
|
|
6
|
+
`,r.separator,r.separatorButton,n.gapBetweenBlocksDefaultWidth,n.separatorDefaultWidth-n.gapBetweenBlocksDefaultWidth,()=>S.surfaceSolidSecondary,P.spaceX4,P.spaceX4,P.spaceX16,()=>S.outlineSolidSecondary,()=>S.outlineSolidSecondaryHover,r.sidebarBlockIsResizing,r.separatorButton,()=>S.outlineSolidSecondaryHover,r.sidebarBlock,()=>S.surfaceSolidCard,()=>S.shadowDownSoftS,u.media.up("xl")(Z),r.sidebarIsClosingOrClosedOrOpening,n.sidebarWidthInPxVar,({$insidePageLayout:e,$sidebarIsClosed:t})=>e&&(t?"margin-right: 0;":`
|
|
7
|
+
margin-right: calc(-1 * var(--page-layout-padding-inline, 32px));
|
|
8
|
+
|
|
9
|
+
${u.media.down("l")`
|
|
10
|
+
margin-right: calc(-1 * var(--page-layout-padding-inline, 24px));
|
|
11
|
+
`}
|
|
12
|
+
`),({$css:e})=>e),X=e=>({avatarSize:e?"m":"l"}),N=(e,t)=>t??(e?n.sidebarWidths.adaptive1280MinWidthPx:n.sidebarWidths.minWidthPx),q=(e,t)=>typeof e=="function"?e(t):e,tt=({mainContent:e,sidebar:t,style:i,refContainer:s,$css:o,onTransitionEnd:d,onResize:c,headerHeight:a,insidePageLayout:g=!1,disableMediaAdaptive:C=!1,...p})=>{const x=l.useRef(!1),b=l.useRef(null),{down:V}=u.useBreakpoint(),h=!C&&V("xl"),{minWidthPx:f,maxWidthPercent:k=n.sidebarWidths.maxWidthPercent,defaultWidthPercent:y=n.sidebarWidths.defaultWidthPercent}=t??{},w=t==null?void 0:t.content,v=N(h,f),B=l.useMemo(()=>X(h),[h]),$=l.useMemo(()=>q(w,B),[w,B]),[O,z]=l.useState(()=>{const I=u.clamp(0,y,Math.min(k,100));return{main:100-I,sidebar:I}}),D=!(t!=null&&t.isOpened),{startResizing:_}=K({setSizes:z,containerRef:b,isResizingRef:x,sidebarMaxWidthPercent:k,sidebarMinWidthPx:v,onResize:c});Q({setSizes:z,containerRef:b,sidebarMaxWidthPercent:k,sidebarMinWidthPx:v,onResize:c});const{isClosingOrClosedOrOpening:F,onTransitionEnd:T}=G({sidebarIsClosed:D,isResizingRef:x,onTransitionEndExt:d});return W.jsxs(R,{ref:u.mergeRefs(b,s),style:{...Y(O,D,t==null?void 0:t.paddingLeftOnClosed,v),...i},$css:o,$headerHeight:a,$insidePageLayout:g,$sidebarIsClosed:D,onTransitionEnd:T,...p,children:[W.jsx("div",{className:r.mainBlock,children:e}),W.jsx("div",{className:r.separator,children:W.jsx("button",{className:r.separatorButton,type:"button",onMouseDown:_,children:"Разделитель"})}),W.jsx("div",{className:u.mCls(r.sidebarBlock,F&&r.sidebarIsClosingOrClosedOrOpening,(t==null?void 0:t.isFullScreened)&&r.sidebarBlockInModal),children:W.jsx(A,{isFullScreened:t==null?void 0:t.isFullScreened,fullScreenedModalDFProps:t==null?void 0:t.fullScreenedModalDFProps,children:$})})]})};exports.SplitView=tt;exports.getSplitViewSidebarMinWidthPx=N;exports.getSplitViewSlotSizes=X;exports.renderSplitViewContent=q;exports.splitViewClassNames=r;exports.splitViewConstants=n;
|