@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,429 @@
|
|
|
1
|
+
import { IconButton as E, Dropdown as J, Button as K, TabItem as Q, Tabs as Y, BodyM as tt, BodyXS as et, Popover as it, LinkButton as ot, SegmentItem as nt, Switch as st, Tooltip as rt } from "@salutejs/sdds-finai";
|
|
2
|
+
import { jsx as o, jsxs as y, Fragment as lt } from "react/jsx-runtime";
|
|
3
|
+
import { IconDotsVerticalCenteredOutline as at, IconSettingsFilter as W, IconClose as P, IconResizeCorneredFill as dt } from "@salutejs/plasma-icons";
|
|
4
|
+
import c, { css as D } from "styled-components";
|
|
5
|
+
import { Box as A } from "../components/Box/index.mjs";
|
|
6
|
+
import { D as ct } from "./Table-Bj2se1hR.mjs";
|
|
7
|
+
import { surfaceNegative as pt, textSecondary as ht, surfaceSolidCard as ft, borderRadiusM as ut, shadowDownHardS as mt, textTertiary as gt, surfaceTransparentSecondary as yt, borderRadiusL as xt, inverseTextPrimary as vt, bodyXS as wt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
8
|
+
import { lazy as bt, useState as M, useCallback as T, forwardRef as Ft, useRef as I, useLayoutEffect as St, useMemo as Bt, useEffect as Tt } from "react";
|
|
9
|
+
import { IconButtonDots as Ct } from "../components/IconButton/index.mjs";
|
|
10
|
+
import { TextFieldSearch as H } from "../components/TextField/index.mjs";
|
|
11
|
+
import { c as j } from "./AnalyticalWidget-CBi-2MtJ.mjs";
|
|
12
|
+
import { c as _t, q as kt } from "./utils-C5SQhoON.mjs";
|
|
13
|
+
const ce = ({
|
|
14
|
+
dropdownProps: t,
|
|
15
|
+
iconSize: e,
|
|
16
|
+
...l
|
|
17
|
+
}) => {
|
|
18
|
+
const s = /* @__PURE__ */ o(E, { view: "secondary", size: "s", ...l, children: /* @__PURE__ */ o(at, { size: e ?? "s" }) });
|
|
19
|
+
return t ? /* @__PURE__ */ o(J, { ...t, children: s }) : s;
|
|
20
|
+
}, $ = ({
|
|
21
|
+
visible: t,
|
|
22
|
+
topLeft: e
|
|
23
|
+
}) => /* @__PURE__ */ o(A, { $css: {
|
|
24
|
+
position: "absolute",
|
|
25
|
+
top: e ?? 0,
|
|
26
|
+
right: e ?? 0,
|
|
27
|
+
width: "8px",
|
|
28
|
+
aspectRatio: "1",
|
|
29
|
+
borderRadius: "50%",
|
|
30
|
+
transition: ct,
|
|
31
|
+
backgroundColor: "transparent",
|
|
32
|
+
transform: "scale(0)",
|
|
33
|
+
...t && {
|
|
34
|
+
backgroundColor: pt,
|
|
35
|
+
transform: "scale(1)"
|
|
36
|
+
}
|
|
37
|
+
} }), V = c(K).attrs(({
|
|
38
|
+
redSquare: t,
|
|
39
|
+
hideLabel: e = !1,
|
|
40
|
+
size: l,
|
|
41
|
+
iconSize: s,
|
|
42
|
+
children: r,
|
|
43
|
+
...h
|
|
44
|
+
}) => ({
|
|
45
|
+
view: "secondary",
|
|
46
|
+
size: l ?? "s",
|
|
47
|
+
type: "button",
|
|
48
|
+
contentLeft: !e && /* @__PURE__ */ o(W, { size: s ?? "s" }),
|
|
49
|
+
children: /* @__PURE__ */ y(lt, { children: [
|
|
50
|
+
r ?? (!e && (h.text ?? "Ещё фильтры")),
|
|
51
|
+
e && /* @__PURE__ */ o(W, { size: s ?? "s" }),
|
|
52
|
+
/* @__PURE__ */ o($, { visible: t })
|
|
53
|
+
] }),
|
|
54
|
+
...h
|
|
55
|
+
})).withConfig({
|
|
56
|
+
displayName: "FiltersButton__FiltersActionsFiltersButton"
|
|
57
|
+
})(["position:relative;white-space:nowrap;"]), It = bt(() => import("./ListOfFilters-IEPKSKxx.mjs").then((t) => t.a)), Rt = c(It).attrs(({
|
|
58
|
+
paddingTop: t,
|
|
59
|
+
...e
|
|
60
|
+
}) => ({
|
|
61
|
+
paddingTop: 8,
|
|
62
|
+
...e
|
|
63
|
+
})).withConfig({
|
|
64
|
+
displayName: "ListOfFilters__FiltersActionsListOfFilters"
|
|
65
|
+
})([""]), U = ({
|
|
66
|
+
visible: t,
|
|
67
|
+
offset: e
|
|
68
|
+
}) => /* @__PURE__ */ o($, { visible: t, topLeft: e }), zt = c(Y).attrs((t) => ({
|
|
69
|
+
size: "xs",
|
|
70
|
+
view: "filled",
|
|
71
|
+
...t
|
|
72
|
+
})).withConfig({
|
|
73
|
+
displayName: "Tabs__FiltersActionsTabs"
|
|
74
|
+
})(["&{margin:-2px;", "}"], ({
|
|
75
|
+
$css: t
|
|
76
|
+
}) => t), At = c(Q).attrs((t) => ({
|
|
77
|
+
size: "s",
|
|
78
|
+
view: "default",
|
|
79
|
+
...t
|
|
80
|
+
})).withConfig({
|
|
81
|
+
displayName: "Tabs__FiltersActionsTabItem"
|
|
82
|
+
})(["&{", "}"], ({
|
|
83
|
+
$css: t
|
|
84
|
+
}) => t), R = {
|
|
85
|
+
borderRadiusM: () => ut,
|
|
86
|
+
shadowDownHardS: () => mt,
|
|
87
|
+
surfaceSolidCard: () => ft
|
|
88
|
+
}, Nt = c(it).withConfig({
|
|
89
|
+
displayName: "FiltersButtonWithPopover__StyledPopover"
|
|
90
|
+
})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]), Ot = c.div.withConfig({
|
|
91
|
+
displayName: "FiltersButtonWithPopover__PopoverContentContainer"
|
|
92
|
+
})(["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;"], R.surfaceSolidCard, R.borderRadiusM, R.shadowDownHardS), Wt = c.div.withConfig({
|
|
93
|
+
displayName: "FiltersButtonWithPopover__PopoverHeader"
|
|
94
|
+
})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]), Lt = c.div.withConfig({
|
|
95
|
+
displayName: "FiltersButtonWithPopover__PopoverHeaderTop"
|
|
96
|
+
})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]), Et = c.div.withConfig({
|
|
97
|
+
displayName: "FiltersButtonWithPopover__HeaderText"
|
|
98
|
+
})(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]), Pt = c.div.withConfig({
|
|
99
|
+
displayName: "FiltersButtonWithPopover__PopoverMainContent"
|
|
100
|
+
})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]), Dt = c.div.withConfig({
|
|
101
|
+
displayName: "FiltersButtonWithPopover__PopoverFooter"
|
|
102
|
+
})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]), z = {
|
|
103
|
+
minHeight: 430,
|
|
104
|
+
minWidth: 360,
|
|
105
|
+
maxWidth: 700,
|
|
106
|
+
maxHeight: typeof window < "u" ? window.innerHeight * 0.8 : 600,
|
|
107
|
+
defaultSize: {
|
|
108
|
+
width: 360,
|
|
109
|
+
height: 430
|
|
110
|
+
},
|
|
111
|
+
directions: ["bottom-right", "right", "top-right"],
|
|
112
|
+
icons: {
|
|
113
|
+
topRight: null,
|
|
114
|
+
bottomRight: /* @__PURE__ */ o(dt, { color: gt }),
|
|
115
|
+
bottomLeft: null,
|
|
116
|
+
topLeft: null
|
|
117
|
+
},
|
|
118
|
+
hiddenIcons: ["bottom-left", "top-left", "top-right"]
|
|
119
|
+
}, X = ({
|
|
120
|
+
title: t,
|
|
121
|
+
subtitle: e,
|
|
122
|
+
content: l,
|
|
123
|
+
state: s,
|
|
124
|
+
onClose: r,
|
|
125
|
+
footer: h,
|
|
126
|
+
redSquare: n = !1,
|
|
127
|
+
popoverProps: p = {},
|
|
128
|
+
buttonProps: i,
|
|
129
|
+
renderTarget: a,
|
|
130
|
+
searchable: v,
|
|
131
|
+
searchValue: w,
|
|
132
|
+
onSearchChange: g,
|
|
133
|
+
searchingProps: x,
|
|
134
|
+
emptySearchContent: m
|
|
135
|
+
}) => {
|
|
136
|
+
const {
|
|
137
|
+
resizable: d,
|
|
138
|
+
...b
|
|
139
|
+
} = p, _ = ((u) => u === !1 ? !1 : u === !0 || u == null ? z : typeof u == "object" && u !== null ? {
|
|
140
|
+
...z,
|
|
141
|
+
...u
|
|
142
|
+
} : z)(d), [C, k] = M(!1), [F, S] = s ?? [C, k], Z = T(() => {
|
|
143
|
+
S(!1), r == null || r();
|
|
144
|
+
}, [r, S]), q = T((u) => {
|
|
145
|
+
S(u), u || r == null || r();
|
|
146
|
+
}, [r, S]), N = T(() => {
|
|
147
|
+
S(!F);
|
|
148
|
+
}, [F, S]);
|
|
149
|
+
return (
|
|
150
|
+
// @ts-expect-error TS2769: libs allows ref: string, but styled-components doesn't. Safe to ignore.
|
|
151
|
+
/* @__PURE__ */ o(Nt, { opened: F, onToggle: q, target: a ? a({
|
|
152
|
+
onClick: N,
|
|
153
|
+
isOpen: F,
|
|
154
|
+
isRedDotVisible: n,
|
|
155
|
+
RedDot: U
|
|
156
|
+
}) : /* @__PURE__ */ o(
|
|
157
|
+
V,
|
|
158
|
+
{
|
|
159
|
+
redSquare: n,
|
|
160
|
+
hideLabel: !1,
|
|
161
|
+
iconSize: "s",
|
|
162
|
+
...i,
|
|
163
|
+
onClick: (u) => {
|
|
164
|
+
var O;
|
|
165
|
+
(O = i == null ? void 0 : i.onClick) == null || O.call(i, u), N();
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
), placement: "bottom-start", offset: [0, 2], trigger: "click", hasArrow: !1, closeOnOverlayClick: !0, closeOnEsc: !0, isFocusTrapped: !0, usePortal: !0, animated: !0, resizable: _, ...b, children: /* @__PURE__ */ y(Ot, { children: [
|
|
169
|
+
/* @__PURE__ */ y(Wt, { children: [
|
|
170
|
+
/* @__PURE__ */ y(Lt, { children: [
|
|
171
|
+
/* @__PURE__ */ y(Et, { children: [
|
|
172
|
+
/* @__PURE__ */ o(tt, { bold: !0, children: t }),
|
|
173
|
+
e && /* @__PURE__ */ o(et, { color: ht, children: e })
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ o(E, { onClick: Z, size: "xs", view: "secondary", pin: "circle-circle", title: "Закрыть", style: {
|
|
176
|
+
marginBottom: "8px"
|
|
177
|
+
}, children: /* @__PURE__ */ o(P, { size: "xs" }) })
|
|
178
|
+
] }),
|
|
179
|
+
v && /* @__PURE__ */ o(H, { value: w, onChange: (u) => g == null ? void 0 : g(u.target.value), placeholder: "Поиск", ...x })
|
|
180
|
+
] }),
|
|
181
|
+
/* @__PURE__ */ o(Pt, { children: m || l }),
|
|
182
|
+
h && /* @__PURE__ */ o(Dt, { children: h })
|
|
183
|
+
] }) })
|
|
184
|
+
);
|
|
185
|
+
}, Mt = c(ot).attrs((t) => ({
|
|
186
|
+
view: "default",
|
|
187
|
+
size: "s",
|
|
188
|
+
text: "Сбросить фильтры",
|
|
189
|
+
contentLeft: /* @__PURE__ */ o(P, { size: "xs", color: "inherit" }),
|
|
190
|
+
style: {
|
|
191
|
+
...t.style,
|
|
192
|
+
visibility: t.isVisible ? "visible" : "hidden",
|
|
193
|
+
pointerEvents: t.isVisible ? "auto" : "none"
|
|
194
|
+
}
|
|
195
|
+
})).withConfig({
|
|
196
|
+
displayName: "ResetAllFiltersButton"
|
|
197
|
+
})(["", ""], ({
|
|
198
|
+
$css: t
|
|
199
|
+
}) => t), Ht = c(nt).attrs((t) => ({
|
|
200
|
+
size: "s",
|
|
201
|
+
view: "primary",
|
|
202
|
+
...t
|
|
203
|
+
})).withConfig({
|
|
204
|
+
displayName: "Segments__FiltersActionsSegmentItem"
|
|
205
|
+
})(["&{", "}"], ({
|
|
206
|
+
$css: t
|
|
207
|
+
}) => t), jt = c(st).withConfig({
|
|
208
|
+
displayName: "styled__StyledSwitch"
|
|
209
|
+
})(["background:", ";padding:", ";border-radius:", ";max-height:48px;"], ({
|
|
210
|
+
hasBackground: t
|
|
211
|
+
}) => t ? yt : "none", ({
|
|
212
|
+
hasBackground: t
|
|
213
|
+
}) => t ? "10px 14px" : "auto", ({
|
|
214
|
+
hasBackground: t
|
|
215
|
+
}) => t ? "10px" : "auto"), $t = Ft(({
|
|
216
|
+
hasBackground: t,
|
|
217
|
+
size: e,
|
|
218
|
+
...l
|
|
219
|
+
}, s) => /* @__PURE__ */ o(jt, { hasBackground: t, ref: s, size: t ? "m" : e, ...l })), Vt = ({
|
|
220
|
+
...t
|
|
221
|
+
}) => /* @__PURE__ */ o($t, { size: "m", toggleSize: "s", hasBackground: !0, ...t }), Ut = (t, e) => {
|
|
222
|
+
if (!t && !e)
|
|
223
|
+
return;
|
|
224
|
+
const l = t && {
|
|
225
|
+
$css: t.split(" ").map((s, r) => ({
|
|
226
|
+
[`& > *:nth-child(${r + 1})`]: {
|
|
227
|
+
width: s
|
|
228
|
+
}
|
|
229
|
+
})).reduce((s, r) => ({
|
|
230
|
+
...s,
|
|
231
|
+
...r
|
|
232
|
+
}), {})
|
|
233
|
+
};
|
|
234
|
+
return D(["", ";", ";"], () => l && l.$css, () => e && e);
|
|
235
|
+
}, Xt = c(A).withConfig({
|
|
236
|
+
displayName: "styled__StyledContainer"
|
|
237
|
+
})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]), G = c.div.withConfig({
|
|
238
|
+
displayName: "styled__StyledCard"
|
|
239
|
+
})(["padding-block:8px;border-radius:", ";"], () => xt), Gt = c(G).withConfig({
|
|
240
|
+
displayName: "styled__StyledButtonsBlock"
|
|
241
|
+
})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]), Zt = c(A).withConfig({
|
|
242
|
+
displayName: "styled__StyledMainBlock"
|
|
243
|
+
})(["display:flex;gap:8px;align-items:center;max-height:40px;"]), f = ({
|
|
244
|
+
mainBlock: t,
|
|
245
|
+
listOfFilters: e,
|
|
246
|
+
activeButtonsBlock: l,
|
|
247
|
+
mainBlockElementsWidth: s,
|
|
248
|
+
containerProps: r,
|
|
249
|
+
mainBlockProps: {
|
|
250
|
+
$css: h,
|
|
251
|
+
ref: n,
|
|
252
|
+
...p
|
|
253
|
+
} = {},
|
|
254
|
+
onResize: i
|
|
255
|
+
}) => {
|
|
256
|
+
const a = I(null), v = I(null), w = I(null);
|
|
257
|
+
return St(() => {
|
|
258
|
+
if (!i)
|
|
259
|
+
return;
|
|
260
|
+
const g = a.current, x = v.current, m = w.current;
|
|
261
|
+
if (!g || !x)
|
|
262
|
+
return;
|
|
263
|
+
const d = {
|
|
264
|
+
containerWidth: 0,
|
|
265
|
+
mainBlockWidth: 0,
|
|
266
|
+
buttonsBlockWidth: 0,
|
|
267
|
+
availableMainBlockWidth: 0
|
|
268
|
+
}, b = () => {
|
|
269
|
+
const _ = g.getBoundingClientRect().width, C = x.getBoundingClientRect().width, k = m ? m.getBoundingClientRect().width : 0, F = C;
|
|
270
|
+
d.containerWidth = _, d.mainBlockWidth = C, d.buttonsBlockWidth = k, d.availableMainBlockWidth = F, i({
|
|
271
|
+
...d
|
|
272
|
+
});
|
|
273
|
+
}, B = _t(() => {
|
|
274
|
+
b();
|
|
275
|
+
});
|
|
276
|
+
return B.observe(g), B.observe(x), m && B.observe(m), b(), () => {
|
|
277
|
+
B.disconnect();
|
|
278
|
+
};
|
|
279
|
+
}, [i]), /* @__PURE__ */ o(Xt, { ref: a, ...r, children: /* @__PURE__ */ y(G, { children: [
|
|
280
|
+
/* @__PURE__ */ y(Zt, { $css: Ut(s, h), ...p, ref: kt(n, v), children: [
|
|
281
|
+
t,
|
|
282
|
+
l && /* @__PURE__ */ o(Gt, { ref: w, children: l })
|
|
283
|
+
] }),
|
|
284
|
+
e
|
|
285
|
+
] }) });
|
|
286
|
+
};
|
|
287
|
+
f.FiltersButton = V;
|
|
288
|
+
f.DotsIconButton = Ct;
|
|
289
|
+
f.ListOfFilters = Rt;
|
|
290
|
+
f.TextFieldSearch = H;
|
|
291
|
+
f.Tabs = zt;
|
|
292
|
+
f.TabItem = At;
|
|
293
|
+
f.SegmentItem = Ht;
|
|
294
|
+
f.Tooltip = j;
|
|
295
|
+
f.TooltipList = j;
|
|
296
|
+
f.FilterPopover = X;
|
|
297
|
+
f.FiltersButtonWithPopover = X;
|
|
298
|
+
f.ResetAllFiltersButton = Mt;
|
|
299
|
+
f.SwitcherFilter = Vt;
|
|
300
|
+
f.RedDot = U;
|
|
301
|
+
function L(t, e, l) {
|
|
302
|
+
const {
|
|
303
|
+
visible: s = [],
|
|
304
|
+
inOverlay: r = [],
|
|
305
|
+
hidden: h = [],
|
|
306
|
+
modifications: n = {},
|
|
307
|
+
customActions: p = {}
|
|
308
|
+
} = l, i = new Set(s), a = new Set(r), v = new Set(h), w = t.filter((d) => i.has(d.id)), g = t.filter((d) => a.has(d.id)), x = t.filter((d) => v.has(d.id)), m = [];
|
|
309
|
+
return s.forEach((d) => {
|
|
310
|
+
m.push({
|
|
311
|
+
type: "show",
|
|
312
|
+
targetId: d,
|
|
313
|
+
payload: null
|
|
314
|
+
});
|
|
315
|
+
}), r.forEach((d) => {
|
|
316
|
+
m.push({
|
|
317
|
+
type: "moveToOverlay",
|
|
318
|
+
targetId: d,
|
|
319
|
+
payload: null
|
|
320
|
+
});
|
|
321
|
+
}), h.forEach((d) => {
|
|
322
|
+
m.push({
|
|
323
|
+
type: "hide",
|
|
324
|
+
targetId: d,
|
|
325
|
+
payload: null
|
|
326
|
+
});
|
|
327
|
+
}), Object.entries(n).forEach(([d, b]) => {
|
|
328
|
+
m.push({
|
|
329
|
+
type: "modify",
|
|
330
|
+
targetId: d,
|
|
331
|
+
payload: b
|
|
332
|
+
});
|
|
333
|
+
}), {
|
|
334
|
+
visibleItems: w,
|
|
335
|
+
overlayItems: g,
|
|
336
|
+
hiddenItems: x,
|
|
337
|
+
modifications: n,
|
|
338
|
+
actions: m,
|
|
339
|
+
activeBreakpoint: e,
|
|
340
|
+
hasOverlayItems: g.length > 0,
|
|
341
|
+
hasModifications: Object.keys(n).length > 0,
|
|
342
|
+
customActions: p
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
const pe = ({
|
|
346
|
+
items: t,
|
|
347
|
+
width: e,
|
|
348
|
+
breakpoints: l
|
|
349
|
+
}) => {
|
|
350
|
+
const s = Bt(() => {
|
|
351
|
+
const n = Object.entries(l).map(([i, a]) => ({
|
|
352
|
+
breakpoint: Number(i),
|
|
353
|
+
config: a
|
|
354
|
+
})).sort((i, a) => a.breakpoint - i.breakpoint), p = n.find(({
|
|
355
|
+
breakpoint: i
|
|
356
|
+
}) => e >= i);
|
|
357
|
+
if (!p) {
|
|
358
|
+
const i = n[n.length - 1];
|
|
359
|
+
return L(t, (i == null ? void 0 : i.breakpoint) || 0, (i == null ? void 0 : i.config) || {
|
|
360
|
+
visible: [],
|
|
361
|
+
inOverlay: [],
|
|
362
|
+
hidden: []
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
return L(t, p.breakpoint, p.config);
|
|
366
|
+
}, [t, e, l]), r = T((n, p) => {
|
|
367
|
+
if (!n)
|
|
368
|
+
return {};
|
|
369
|
+
const i = {
|
|
370
|
+
...n.style
|
|
371
|
+
};
|
|
372
|
+
return n.width ? i.width = n.width : n.widthPercent && p ? i.width = `${p * n.widthPercent / 100}px` : n.widthPercent && (i.width = `${n.widthPercent}%`), i;
|
|
373
|
+
}, []), h = T((n, p) => n.some((i) => {
|
|
374
|
+
const a = p[i.id];
|
|
375
|
+
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;
|
|
376
|
+
}), []);
|
|
377
|
+
return {
|
|
378
|
+
...s,
|
|
379
|
+
getItemStyle: r,
|
|
380
|
+
hasActiveFilters: h
|
|
381
|
+
};
|
|
382
|
+
}, qt = () => D(wt), Jt = c.div.withConfig({
|
|
383
|
+
displayName: "Tooltip__StyledTooltipContent"
|
|
384
|
+
})(["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;}}"], () => vt, () => qt()), Kt = ({
|
|
385
|
+
groupLabel: t,
|
|
386
|
+
items: e
|
|
387
|
+
}) => /* @__PURE__ */ y(Jt, { children: [
|
|
388
|
+
/* @__PURE__ */ o("span", { children: t }),
|
|
389
|
+
/* @__PURE__ */ o("ul", { children: e.map((l) => /* @__PURE__ */ o("li", { children: l })) })
|
|
390
|
+
] }), he = ({
|
|
391
|
+
groupLabel: t,
|
|
392
|
+
items: e,
|
|
393
|
+
children: l,
|
|
394
|
+
...s
|
|
395
|
+
}) => {
|
|
396
|
+
const [r, h] = M(!1), n = e.length > 0;
|
|
397
|
+
return Tt(() => {
|
|
398
|
+
if (!n) {
|
|
399
|
+
h(!0);
|
|
400
|
+
const p = setTimeout(() => {
|
|
401
|
+
h(!1);
|
|
402
|
+
}, 0);
|
|
403
|
+
return () => clearTimeout(p);
|
|
404
|
+
}
|
|
405
|
+
}, [n]), /* @__PURE__ */ o(
|
|
406
|
+
rt,
|
|
407
|
+
{
|
|
408
|
+
usePortal: !0,
|
|
409
|
+
trigger: n ? (s == null ? void 0 : s.trigger) ?? "hover" : "none",
|
|
410
|
+
text: /* @__PURE__ */ o(Kt, { groupLabel: t, items: e }),
|
|
411
|
+
size: "s",
|
|
412
|
+
...s,
|
|
413
|
+
children: l
|
|
414
|
+
},
|
|
415
|
+
`tooltip-${r}`
|
|
416
|
+
);
|
|
417
|
+
};
|
|
418
|
+
export {
|
|
419
|
+
he as F,
|
|
420
|
+
U as R,
|
|
421
|
+
$t as S,
|
|
422
|
+
Rt as a,
|
|
423
|
+
f as b,
|
|
424
|
+
ce as c,
|
|
425
|
+
V as d,
|
|
426
|
+
At as e,
|
|
427
|
+
zt as f,
|
|
428
|
+
pe as u
|
|
429
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const g=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),C=require("@salutejs/plasma-icons"),d=require("styled-components"),z=require("../components/Box/index.cjs"),K=require("./Table-CnWVNNoW.cjs"),v=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),E=require("../components/TextField/index.cjs"),M=require("./AnalyticalWidget-fBDe37Ur.cjs"),P=require("./utils-DKi1rqLX.cjs"),Y=({dropdownProps:t,iconSize:i,...l})=>{const n=e.jsx(g.IconButton,{view:"secondary",size:"s",...l,children:e.jsx(C.IconDotsVerticalCenteredOutline,{size:i??"s"})});return t?e.jsx(g.Dropdown,{...t,children:n}):n},q=({visible:t,topLeft:i})=>e.jsx(z.Box,{$css:{position:"absolute",top:i??0,right:i??0,width:"8px",aspectRatio:"1",borderRadius:"50%",transition:K.DEFAULT_TABLE_TRANSITION,backgroundColor:"transparent",transform:"scale(0)",...t&&{backgroundColor:v.surfaceNegative,transform:"scale(1)"}}}),N=d(g.Button).attrs(({redSquare:t,hideLabel:i=!1,size:l,iconSize:n,children:r,...h})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),children:e.jsxs(e.Fragment,{children:[r??(!i&&(h.text??"Ещё фильтры")),i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),e.jsx(q,{visible:t})]}),...h})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),tt=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-DgInAZFi.cjs")).then(t=>t.ListOfFilters_lazy)),H=d(tt).attrs(({paddingTop:t,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),O=({visible:t,offset:i})=>e.jsx(q,{visible:t,topLeft:i}),$=d(g.Tabs).attrs(t=>({size:"xs",view:"filled",...t})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:t})=>t),V=d(g.TabItem).attrs(t=>({size:"s",view:"default",...t})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:t})=>t),A={borderRadiusM:()=>v.borderRadiusM,shadowDownHardS:()=>v.shadowDownHardS,surfaceSolidCard:()=>v.surfaceSolidCard},et=d(g.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),it=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverContentContainer"})(["background-color:",";border-radius:",";box-shadow:",";min-width:360px;max-width:700px;max-height:80dvh;height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"],A.surfaceSolidCard,A.borderRadiusM,A.shadowDownHardS),st=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),ot=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),nt=d.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]),rt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverMainContent"})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]),lt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverFooter"})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]),R={minHeight:430,minWidth:360,maxWidth:700,maxHeight:typeof window<"u"?window.innerHeight*.8:600,defaultSize:{width:360,height:430},directions:["bottom-right","right","top-right"],icons:{topRight:null,bottomRight:e.jsx(C.IconResizeCorneredFill,{color:v.textTertiary}),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:t,subtitle:i,content:l,state:n,onClose:r,footer:h,redSquare:o=!1,popoverProps:u={},buttonProps:s,renderTarget:a,searchable:w,searchValue:F,onSearchChange:m,searchingProps:b,emptySearchContent:y})=>{const{resizable:c,...B}=u,_=(x=>x===!1?!1:x===!0||x==null?R:typeof x=="object"&&x!==null?{...R,...x}:R)(c),[I,k]=p.useState(!1),[S,T]=n??[I,k],Z=p.useCallback(()=>{T(!1),r==null||r()},[r,T]),J=p.useCallback(x=>{T(x),x||r==null||r()},[r,T]),W=p.useCallback(()=>{T(!S)},[S,T]);return e.jsx(et,{opened:S,onToggle:J,target:a?a({onClick:W,isOpen:S,isRedDotVisible:o,RedDot:O}):e.jsx(N,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var L;(L=s==null?void 0:s.onClick)==null||L.call(s,x),W()}}),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:_,...B,children:e.jsxs(it,{children:[e.jsxs(st,{children:[e.jsxs(ot,{children:[e.jsxs(nt,{children:[e.jsx(g.BodyM,{bold:!0,children:t}),i&&e.jsx(g.BodyXS,{color:v.textSecondary,children:i})]}),e.jsx(g.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:"8px"},children:e.jsx(C.IconClose,{size:"xs"})})]}),w&&e.jsx(E.TextFieldSearch,{value:F,onChange:x=>m==null?void 0:m(x.target.value),placeholder:"Поиск",...b})]}),e.jsx(rt,{children:y||l}),h&&e.jsx(lt,{children:h})]})})},at=d(g.LinkButton).attrs(t=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:e.jsx(C.IconClose,{size:"xs",color:"inherit"}),style:{...t.style,visibility:t.isVisible?"visible":"hidden",pointerEvents:t.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:t})=>t),ct=d(g.SegmentItem).attrs(t=>({size:"s",view:"primary",...t})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:t})=>t),dt=d(g.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:t})=>t?v.surfaceTransparentSecondary:"none",({hasBackground:t})=>t?"10px 14px":"auto",({hasBackground:t})=>t?"10px":"auto"),X=p.forwardRef(({hasBackground:t,size:i,...l},n)=>e.jsx(dt,{hasBackground:t,ref:n,size:t?"m":i,...l})),ut=({...t})=>e.jsx(X,{size:"m",toggleSize:"s",hasBackground:!0,...t}),ht=(t,i)=>{if(!t&&!i)return;const l=t&&{$css:t.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return d.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pt=d(z.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=d.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>v.borderRadiusL),ft=d(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xt=d(z.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:t,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:h,ref:o,...u}={},onResize:s})=>{const a=p.useRef(null),w=p.useRef(null),F=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const m=a.current,b=w.current,y=F.current;if(!m||!b)return;const c={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},B=()=>{const _=m.getBoundingClientRect().width,I=b.getBoundingClientRect().width,k=y?y.getBoundingClientRect().width:0,S=I;c.containerWidth=_,c.mainBlockWidth=I,c.buttonsBlockWidth=k,c.availableMainBlockWidth=S,s({...c})},j=P.createSafeResizeObserver(()=>{B()});return j.observe(m),j.observe(b),y&&j.observe(y),B(),()=>{j.disconnect()}},[s]),e.jsx(pt,{ref:a,...r,children:e.jsxs(G,{children:[e.jsxs(xt,{$css:ht(n,h),...u,ref:P.mergeRefs(o,w),children:[t,l&&e.jsx(ft,{ref:F,children:l})]}),i]})})};f.FiltersButton=N;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=H;f.TextFieldSearch=E.TextFieldSearch;f.Tabs=$;f.TabItem=V;f.SegmentItem=ct;f.Tooltip=M.TooltipList;f.TooltipList=M.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=at;f.SwitcherFilter=ut;f.RedDot=O;function D(t,i,l){const{visible:n=[],inOverlay:r=[],hidden:h=[],modifications:o={},customActions:u={}}=l,s=new Set(n),a=new Set(r),w=new Set(h),F=t.filter(c=>s.has(c.id)),m=t.filter(c=>a.has(c.id)),b=t.filter(c=>w.has(c.id)),y=[];return n.forEach(c=>{y.push({type:"show",targetId:c,payload:null})}),r.forEach(c=>{y.push({type:"moveToOverlay",targetId:c,payload:null})}),h.forEach(c=>{y.push({type:"hide",targetId:c,payload:null})}),Object.entries(o).forEach(([c,B])=>{y.push({type:"modify",targetId:c,payload:B})}),{visibleItems:F,overlayItems:m,hiddenItems:b,modifications:o,actions:y,activeBreakpoint:i,hasOverlayItems:m.length>0,hasModifications:Object.keys(o).length>0,customActions:u}}const gt=({items:t,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,a])=>({breakpoint:Number(s),config:a})).sort((s,a)=>a.breakpoint-s.breakpoint),u=o.find(({breakpoint:s})=>i>=s);if(!u){const s=o[o.length-1];return D(t,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return D(t,u.breakpoint,u.config)},[t,i,l]),r=p.useCallback((o,u)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&u?s.width=`${u*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),h=p.useCallback((o,u)=>o.some(s=>{const a=u[s.id];return a===void 0?!1:Array.isArray(a)?a.length>0:typeof a=="boolean"?a===!0:typeof a=="string"?a!=="":typeof a=="number"?a!==0:!!a}),[]);return{...n,getItemStyle:r,hasActiveFilters:h}},yt=()=>d.css(v.bodyXS),mt=d.div.withConfig({displayName:"Tooltip__StyledTooltipContent"})(["color:",";"," & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>v.inverseTextPrimary,()=>yt()),vt=({groupLabel:t,items:i})=>e.jsxs(mt,{children:[e.jsx("span",{children:t}),e.jsx("ul",{children:i.map(l=>e.jsx("li",{children:l}))})]}),bt=({groupLabel:t,items:i,children:l,...n})=>{const[r,h]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){h(!0);const u=setTimeout(()=>{h(!1)},0);return()=>clearTimeout(u)}},[o]),e.jsx(g.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:e.jsx(vt,{groupLabel:t,items:i}),size:"s",...n,children:l},`tooltip-${r}`)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=N;exports.FiltersActionsListOfFilters=H;exports.FiltersActionsTabItem=V;exports.FiltersActionsTabs=$;exports.FiltersActionsTooltip=bt;exports.RedDot=O;exports.Switch=X;exports.useAdaptiveFilters=gt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const I=require("react/jsx-runtime"),Z=require("react"),M=require("react-hook-form"),y=require("../formComponents/utils/index.cjs"),oe=require("../components/DatePicker/index.cjs"),w=require("@salutejs/sdds-finai"),O=require("styled-components"),se=require("@salutejs/plasma-icons"),ce={"янв.":0,"фев.":1,"мар.":2,март:2,марта:2,"апр.":3,май:4,мая:4,"июн.":5,июня:5,июнь:5,"июл.":6,июля:6,июль:6,"авг.":7,"сен.":8,"окт.":9,"ноя.":10,"дек.":11},me={января:0,январь:0,февраля:1,февраль:1,марта:2,март:2,апреля:3,апрель:3,мая:4,май:4,июня:5,июнь:5,июля:6,июль:6,августа:7,август:7,сентября:8,сентябрь:8,октября:9,октябрь:9,ноября:10,ноябрь:10,декабря:11,декабрь:11},p={...ce,...me},le=e=>Object.keys(e).map(t=>t.replace(".","\\.")).join("|"),J=`(${le(p)})`,de=[["MMMM",J,"month-text"],["MMM",J,"month-text"],["YYYY","(\\d{4})","year"],["DD","(\\d{2})","day"],["YY","(\\d{2})","year"],["MM","(\\d{2})","month-num"]],ge=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),X=new Map,fe=e=>{let t=e,n="^";const g=[];for(;t.length>0;){let u=!1;for(const[c,m,l]of de)if(t.startsWith(c)){n+=m,g.push(l),t=t.slice(c.length),u=!0;break}u||(n+=ge(t.charAt(0)),t=t.slice(1))}return n+="$",{regex:new RegExp(n),tokens:g}},De=e=>{let t=X.get(e);return t||(t=fe(e),X.set(e,t)),t},ye=e=>e<100?2e3+e:e,ee=({date:e,format:t})=>{const{regex:n,tokens:g}=De(t),u=e.match(n);if(!u)return"";try{let c=1,m=0,l=new Date().getFullYear(),f=!1;for(let o=0;o<g.length;o++){const s=u[o+1];if(!s)return"";switch(g[o]){case"day":if(c=Number(s),Number.isNaN(c))return"";break;case"month-num":if(m=Number(s)-1,Number.isNaN(m))return"";f=!0;break;case"month-text":{const V=p[s];if(typeof V!="number")return"";m=V,f=!0;break}case"year":if(l=ye(Number(s)),Number.isNaN(l))return"";break;default:break}}return f?new Date(l,m,c).toISOString():""}catch{return""}},te=({min:e,max:t,required:n,invalidFormatMessage:g,format:u})=>{const c=t&&y.getRuleValue({rule:t,typeValue:"number"}),m=e&&y.getRuleValue({rule:e,typeValue:"number"});return l=>{let f,o=null;typeof l=="string"&&u&&(f=ee({date:l,format:u}),f&&(o=new Date(f))),(l instanceof Date||typeof l=="string"&&!u)&&(o=new Date(l));const s=o&&!Number.isNaN(o.getTime())?o.getTime():null;return s!==null?typeof m=="number"&&s<=m?typeof e=="object"&&"message"in e?e==null?void 0:e.message:!1:typeof c=="number"&&s>=c?typeof t=="object"&&"message"in t?t==null?void 0:t.message:!1:!0:l&&typeof l=="string"&&l.length?g:n?typeof n=="object"&&"message"in n?n==null?void 0:n.message:!1:!0}},ve=O(oe.DatePicker).withConfig({displayName:"DatePickerStyled"})(["width:100%;"]),Te=({name:e,options:t,portal:n,label:g,onChange:u,textHint:c,format:m="DD.MM.YYYY",invalidFormatMessage:l="Формат даты указан не верно",size:f="s",requiredPlacement:o="right",maskWithFormat:s=!0,offset:q=[0,2],leftHelper:V,defaultDate:ne,ref:ue,min:j,max:x,opened:L,required:Y,...r})=>{const[$,_]=Z.useState(L??!1),a={...t,required:y.getPriorityRequired({options:t,ruleName:"required"})?t==null?void 0:t.required:Y},h={min:(()=>{if(j){const R=j.getTime();return typeof(a==null?void 0:a.min)=="object"&&"message"in a.min?{value:R,message:a.min.message}:R}return y.hasValidationRule({options:a,ruleName:"min"})?a==null?void 0:a.min:void 0})(),max:(()=>{if(x){const R=x.getTime();return typeof(a==null?void 0:a.max)=="object"&&"message"in a.max?{value:R,message:a.max.message}:R}return y.hasValidationRule({options:a,ruleName:"max"})?a==null?void 0:a.max:void 0})(),required:a==null?void 0:a.required,invalidFormatMessage:l,format:m},B=te(h),z=y.useChangedFormContext({...a,validate:R=>{const i=a==null?void 0:a.validate;if(i)return i(R);const T=B(R);return T!==!0?T:!0}}),{control:G,rules:U,remOptions:A,clearErrors:C}=z,P=(x==null?void 0:x.getTime())??y.getRuleValue({rule:a==null?void 0:a.max,typeValue:"number"}),H=(j==null?void 0:j.getTime())??y.getRuleValue({rule:a==null?void 0:a.min,typeValue:"number"});return I.jsx(M.Controller,{control:G,name:e,rules:U,...A,render:({field:{name:R,ref:i,onBlur:T,onChange:D,...d},fieldState:{error:v}})=>{const k=d==null?void 0:d.value,W=k!=null&&k!==""?k:"";return I.jsx(ve,{...d,label:g,ref:i,maskWithFormat:s,value:W,format:m,frame:n,max:P&&new Date(P)||void 0,min:H&&new Date(H)||void 0,offset:q,opened:$,required:!!a.required||void 0,requiredPlacement:o,hasRequiredIndicator:!!a.required||void 0,includeEdgeDates:!0,size:f,usePortal:!!n,valueError:!!v,onChange:N=>{if(typeof N=="object"&&N&&"target"in N){const F=N,E={target:{value:F.target.value,name:F.target.name,originalDate:F.target.originalDate,isoDate:F.target.isoDate}};u==null||u(E),D(E)}else{const F=N;u==null||u(F),D(F)}},onCommitDate:N=>{C(e),D(N),_(!1)},onToggle:N=>_(N),leftHelper:v!=null&&v.message||c?(v==null?void 0:v.message)||c:void 0,...r})}})},be=({datePickerSize:e})=>I.jsx(w.EmbedIconButton,{size:e==="xs"?"s":"m",view:"secondary",style:{marginRight:e==="xs"?"8px":"12px",marginTop:"2px"},children:I.jsx(se.IconCalendarOutline,{color:"inherit",size:e==="xs"?"xs":"s"})}),re=({required:e,validateRange:t,externalValidates:n})=>(g,u)=>{const{dateFrom:c,dateTo:m}=g;if(!y.getIsRequired({required:e}))return!0;let f="поле обязательно";if(typeof e=="string"?f=e:typeof e=="object"&&e.message&&(f=e.message),!c&&!m)return f;if(c&&!m||!c&&m)return"Заполните обе даты диапазона";const o=t(g,u);if(typeof o=="string")return o;if(typeof n=="function")return n(g,u);if(n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const q=n[s];if(q){const V=q(g,u);if(typeof V=="string")return V}}}return!0},Re=({min:e,max:t,required:n,invalidFormatMessage:g,format:u})=>{const c=te({min:e,max:t,required:n,invalidFormatMessage:g,format:u});return m=>{const{dateFrom:l=void 0,dateTo:f=void 0}=m||{},o=c(l);if(typeof o=="string")return o;const s=c(f);return typeof s=="string"?s:!0}},Ne=O(w.DatePickerRange).withConfig({displayName:"FormDatePickerRangeStyled__DatePickerRangeStyled"})(["width:100%;&:where(.popover-target >:first-child,.popover-target,.popover-wrapper){width:100%;}"]),Ve=({name:e,options:t,portal:n,label:g,onChange:u,textHint:c,format:m="DD.MM.YYYY",invalidFormatMessage:l="Формат даты указан не верно",ref:f,min:o,max:s,onChangeFirstValue:q,onChangeSecondValue:V,defaultFirstDate:ne,defaultSecondDate:ue,required:j,...x})=>{const[L,Y]=Z.useState(!1),r={...t,required:y.getPriorityRequired({options:t,ruleName:"required"})?t==null?void 0:t.required:j},$={min:(()=>{if(o){const i=o.getTime();return typeof(r==null?void 0:r.min)=="object"&&"message"in r.min?{value:i,message:r.min.message}:i}return y.hasValidationRule({options:r,ruleName:"min"})?r==null?void 0:r.min:void 0})(),max:(()=>{if(s){const i=s.getTime();return typeof(r==null?void 0:r.max)=="object"&&"message"in r.max?{value:i,message:r.max.message}:i}return y.hasValidationRule({options:r,ruleName:"max"})?r==null?void 0:r.max:void 0})(),required:r==null?void 0:r.required,invalidFormatMessage:l},_=Re({...$,format:m}),a=re({required:r==null?void 0:r.required,validateRange:_,externalValidates:r==null?void 0:r.validate}),h=y.useChangedFormContext({...r,validate:i=>{const T=i?{dateFrom:i.dateFrom,dateTo:i.dateTo}:{dateFrom:void 0,dateTo:void 0};return a(T,h.getValues())}}),{control:B,rules:z,remOptions:G,clearErrors:U}=h,A=(s==null?void 0:s.getTime())??y.getRuleValue({rule:r==null?void 0:r.max,typeValue:"number"}),C=(o==null?void 0:o.getTime())??y.getRuleValue({rule:r==null?void 0:r.min,typeValue:"number"}),P=(i,T,D,d)=>{if(!i)return;if(T){h.setError(`${e}`,{type:"custom",message:"Ошибка значения"}),Y(!1);return}const v=h.getValues(e)||{};ee({date:typeof i=="string"?i:i.toDateString(),format:m})&&D({...v,[d]:i})},H=(i,T,D)=>P(i,T,D,"dateFrom"),R=(i,T,D)=>P(i,T,D,"dateTo");return I.jsx(M.Controller,{control:B,name:e,rules:z,...G,render:({field:{value:i,ref:T,...D},fieldState:{error:d}})=>{var E,Q;const{dateFrom:v,dateTo:k}=i||{dateFrom:"",dateTo:""},W=v!=null&&v!==""?v:"",N=k!=null&&k!==""?k:"",F=(d==null?void 0:d.message)||((E=d==null?void 0:d.dateFrom)==null?void 0:E.message)||((Q=d==null?void 0:d.dateTo)==null?void 0:Q.message);return I.jsx(Ne,{...D,ref:T,isDoubleCalendar:!0,closeOnOverlayClick:!0,contentRight:I.jsx(be,{datePickerSize:x.size}),value:[W,N],firstValueError:!!d,format:m,frame:n,label:g,max:A&&new Date(A)||void 0,min:C&&new Date(C)||void 0,name:e,opened:L,maskWithFormat:!0,required:!!r.required||void 0,requiredPlacement:"right",hasRequiredIndicator:!!r.required||void 0,secondValueError:!!d,usePortal:!!n,onChange:({target:b})=>{"value"in b&&(u==null||u(b.value||""),d&&U(e))},onChangeFirstValue:(b,S="")=>{const K={...h.getValues(e)||{},dateFrom:S};D.onChange(K),q==null||q(b)},onChangeSecondValue:(b,S="")=>{const K={...h.getValues(e)||{},dateTo:S};D.onChange(K),V==null||V(b)},onCommitSecondDate:(b,S)=>R(b,S.error,D.onChange),onCommitFirstDate:(b,S)=>H(b,S.error,D.onChange),onToggle:b=>{Y(b)},leftHelper:F||c?F||c:void 0,...x})}})};var ae=(e=>(e.DATE_IS_SMALLER="Дата меньше минимальной",e.DATE_IS_BIGGER="Дата больше максимальной",e.DATE_FORMAT_IS_INVALID="Формат даты указан не верно",e.DATE_IS_REQUIRED="Выбор даты обязателен",e))(ae||{});exports.DatePickerErrorEnum=ae;exports.FormDatePicker=Te;exports.FormDatePickerRange=Ve;exports.validateRequiredHoс=re;
|