@daisforge/ui 1.12.1 → 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 +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +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-BYKPeWME.mjs +0 -16941
- package/chunks/TableCanvas-ZmjSKk64.cjs +0 -30
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { useState as M } from "react";
|
|
3
|
+
import { Controller as w } from "react-hook-form";
|
|
4
|
+
import { getRuleValue as Y, getPriorityRequired as p, hasValidationRule as $, useChangedFormContext as O, getIsRequired as ue } from "../formComponents/utils/index.mjs";
|
|
5
|
+
import { DatePicker as se } from "../components/DatePicker/index.mjs";
|
|
6
|
+
import { EmbedIconButton as me, DatePickerRange as ce } from "@salutejs/sdds-finai";
|
|
7
|
+
import ee from "styled-components";
|
|
8
|
+
import { IconCalendarOutline as le } from "@salutejs/plasma-icons";
|
|
9
|
+
const de = {
|
|
10
|
+
"янв.": 0,
|
|
11
|
+
"фев.": 1,
|
|
12
|
+
"мар.": 2,
|
|
13
|
+
март: 2,
|
|
14
|
+
марта: 2,
|
|
15
|
+
"апр.": 3,
|
|
16
|
+
май: 4,
|
|
17
|
+
мая: 4,
|
|
18
|
+
"июн.": 5,
|
|
19
|
+
июня: 5,
|
|
20
|
+
июнь: 5,
|
|
21
|
+
"июл.": 6,
|
|
22
|
+
июля: 6,
|
|
23
|
+
июль: 6,
|
|
24
|
+
"авг.": 7,
|
|
25
|
+
"сен.": 8,
|
|
26
|
+
"окт.": 9,
|
|
27
|
+
"ноя.": 10,
|
|
28
|
+
"дек.": 11
|
|
29
|
+
}, fe = {
|
|
30
|
+
января: 0,
|
|
31
|
+
январь: 0,
|
|
32
|
+
февраля: 1,
|
|
33
|
+
февраль: 1,
|
|
34
|
+
марта: 2,
|
|
35
|
+
март: 2,
|
|
36
|
+
апреля: 3,
|
|
37
|
+
апрель: 3,
|
|
38
|
+
мая: 4,
|
|
39
|
+
май: 4,
|
|
40
|
+
июня: 5,
|
|
41
|
+
июнь: 5,
|
|
42
|
+
июля: 6,
|
|
43
|
+
июль: 6,
|
|
44
|
+
августа: 7,
|
|
45
|
+
август: 7,
|
|
46
|
+
сентября: 8,
|
|
47
|
+
сентябрь: 8,
|
|
48
|
+
октября: 9,
|
|
49
|
+
октябрь: 9,
|
|
50
|
+
ноября: 10,
|
|
51
|
+
ноябрь: 10,
|
|
52
|
+
декабря: 11,
|
|
53
|
+
декабрь: 11
|
|
54
|
+
}, te = {
|
|
55
|
+
...de,
|
|
56
|
+
...fe
|
|
57
|
+
}, ge = (e) => Object.keys(e).map((t) => t.replace(".", "\\.")).join("|"), X = `(${ge(te)})`, De = [["MMMM", X, "month-text"], ["MMM", X, "month-text"], ["YYYY", "(\\d{4})", "year"], ["DD", "(\\d{2})", "day"], ["YY", "(\\d{2})", "year"], ["MM", "(\\d{2})", "month-num"]], ye = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Z = /* @__PURE__ */ new Map(), ve = (e) => {
|
|
58
|
+
let t = e, o = "^";
|
|
59
|
+
const f = [];
|
|
60
|
+
for (; t.length > 0; ) {
|
|
61
|
+
let n = !1;
|
|
62
|
+
for (const [m, c, l] of De)
|
|
63
|
+
if (t.startsWith(m)) {
|
|
64
|
+
o += c, f.push(l), t = t.slice(m.length), n = !0;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
n || (o += ye(t.charAt(0)), t = t.slice(1));
|
|
68
|
+
}
|
|
69
|
+
return o += "$", {
|
|
70
|
+
regex: new RegExp(o),
|
|
71
|
+
tokens: f
|
|
72
|
+
};
|
|
73
|
+
}, Te = (e) => {
|
|
74
|
+
let t = Z.get(e);
|
|
75
|
+
return t || (t = ve(e), Z.set(e, t)), t;
|
|
76
|
+
}, be = (e) => e < 100 ? 2e3 + e : e, re = ({
|
|
77
|
+
date: e,
|
|
78
|
+
format: t
|
|
79
|
+
}) => {
|
|
80
|
+
const {
|
|
81
|
+
regex: o,
|
|
82
|
+
tokens: f
|
|
83
|
+
} = Te(t), n = e.match(o);
|
|
84
|
+
if (!n)
|
|
85
|
+
return "";
|
|
86
|
+
try {
|
|
87
|
+
let m = 1, c = 0, l = (/* @__PURE__ */ new Date()).getFullYear(), g = !1;
|
|
88
|
+
for (let u = 0; u < f.length; u++) {
|
|
89
|
+
const s = n[u + 1];
|
|
90
|
+
if (!s)
|
|
91
|
+
return "";
|
|
92
|
+
switch (f[u]) {
|
|
93
|
+
case "day":
|
|
94
|
+
if (m = Number(s), Number.isNaN(m))
|
|
95
|
+
return "";
|
|
96
|
+
break;
|
|
97
|
+
case "month-num":
|
|
98
|
+
if (c = Number(s) - 1, Number.isNaN(c))
|
|
99
|
+
return "";
|
|
100
|
+
g = !0;
|
|
101
|
+
break;
|
|
102
|
+
case "month-text": {
|
|
103
|
+
const k = te[s];
|
|
104
|
+
if (typeof k != "number")
|
|
105
|
+
return "";
|
|
106
|
+
c = k, g = !0;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
case "year":
|
|
110
|
+
if (l = be(Number(s)), Number.isNaN(l))
|
|
111
|
+
return "";
|
|
112
|
+
break;
|
|
113
|
+
default:
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return g ? new Date(l, c, m).toISOString() : "";
|
|
118
|
+
} catch {
|
|
119
|
+
return "";
|
|
120
|
+
}
|
|
121
|
+
}, ae = ({
|
|
122
|
+
min: e,
|
|
123
|
+
max: t,
|
|
124
|
+
required: o,
|
|
125
|
+
invalidFormatMessage: f,
|
|
126
|
+
format: n
|
|
127
|
+
}) => {
|
|
128
|
+
const m = t && Y({
|
|
129
|
+
rule: t,
|
|
130
|
+
typeValue: "number"
|
|
131
|
+
}), c = e && Y({
|
|
132
|
+
rule: e,
|
|
133
|
+
typeValue: "number"
|
|
134
|
+
});
|
|
135
|
+
return (l) => {
|
|
136
|
+
let g, u = null;
|
|
137
|
+
typeof l == "string" && n && (g = re({
|
|
138
|
+
date: l,
|
|
139
|
+
format: n
|
|
140
|
+
}), g && (u = new Date(g))), (l instanceof Date || typeof l == "string" && !n) && (u = new Date(l));
|
|
141
|
+
const s = u && !Number.isNaN(u.getTime()) ? u.getTime() : null;
|
|
142
|
+
return s !== null ? typeof c == "number" && s <= c ? typeof e == "object" && "message" in e ? e == null ? void 0 : e.message : !1 : typeof m == "number" && s >= m ? typeof t == "object" && "message" in t ? t == null ? void 0 : t.message : !1 : !0 : l && typeof l == "string" && l.length ? f : o ? typeof o == "object" && "message" in o ? o == null ? void 0 : o.message : !1 : !0;
|
|
143
|
+
};
|
|
144
|
+
}, Ne = ee(se).withConfig({
|
|
145
|
+
displayName: "DatePickerStyled"
|
|
146
|
+
})(["width:100%;"]), _e = ({
|
|
147
|
+
name: e,
|
|
148
|
+
options: t,
|
|
149
|
+
portal: o,
|
|
150
|
+
label: f,
|
|
151
|
+
onChange: n,
|
|
152
|
+
textHint: m,
|
|
153
|
+
format: c = "DD.MM.YYYY",
|
|
154
|
+
invalidFormatMessage: l = "Формат даты указан не верно",
|
|
155
|
+
size: g = "s",
|
|
156
|
+
requiredPlacement: u = "right",
|
|
157
|
+
maskWithFormat: s = !0,
|
|
158
|
+
offset: V = [0, 2],
|
|
159
|
+
leftHelper: k,
|
|
160
|
+
defaultDate: oe,
|
|
161
|
+
ref: ne,
|
|
162
|
+
min: S,
|
|
163
|
+
max: x,
|
|
164
|
+
opened: B,
|
|
165
|
+
required: P,
|
|
166
|
+
...r
|
|
167
|
+
}) => {
|
|
168
|
+
const [H, _] = M(B ?? !1), a = {
|
|
169
|
+
...t,
|
|
170
|
+
required: p({
|
|
171
|
+
options: t,
|
|
172
|
+
ruleName: "required"
|
|
173
|
+
}) ? t == null ? void 0 : t.required : P
|
|
174
|
+
}, R = {
|
|
175
|
+
min: (() => {
|
|
176
|
+
if (S) {
|
|
177
|
+
const b = S.getTime();
|
|
178
|
+
return typeof (a == null ? void 0 : a.min) == "object" && "message" in a.min ? {
|
|
179
|
+
value: b,
|
|
180
|
+
message: a.min.message
|
|
181
|
+
} : b;
|
|
182
|
+
}
|
|
183
|
+
return $({
|
|
184
|
+
options: a,
|
|
185
|
+
ruleName: "min"
|
|
186
|
+
}) ? a == null ? void 0 : a.min : void 0;
|
|
187
|
+
})(),
|
|
188
|
+
max: (() => {
|
|
189
|
+
if (x) {
|
|
190
|
+
const b = x.getTime();
|
|
191
|
+
return typeof (a == null ? void 0 : a.max) == "object" && "message" in a.max ? {
|
|
192
|
+
value: b,
|
|
193
|
+
message: a.max.message
|
|
194
|
+
} : b;
|
|
195
|
+
}
|
|
196
|
+
return $({
|
|
197
|
+
options: a,
|
|
198
|
+
ruleName: "max"
|
|
199
|
+
}) ? a == null ? void 0 : a.max : void 0;
|
|
200
|
+
})(),
|
|
201
|
+
required: a == null ? void 0 : a.required,
|
|
202
|
+
invalidFormatMessage: l,
|
|
203
|
+
format: c
|
|
204
|
+
}, z = ae(R), G = O({
|
|
205
|
+
...a,
|
|
206
|
+
validate: (b) => {
|
|
207
|
+
const i = a == null ? void 0 : a.validate;
|
|
208
|
+
if (i)
|
|
209
|
+
return i(b);
|
|
210
|
+
const v = z(b);
|
|
211
|
+
return v !== !0 ? v : !0;
|
|
212
|
+
}
|
|
213
|
+
}), {
|
|
214
|
+
control: W,
|
|
215
|
+
rules: K,
|
|
216
|
+
remOptions: A,
|
|
217
|
+
clearErrors: C
|
|
218
|
+
} = G, E = (x == null ? void 0 : x.getTime()) ?? Y({
|
|
219
|
+
rule: a == null ? void 0 : a.max,
|
|
220
|
+
typeValue: "number"
|
|
221
|
+
}), L = (S == null ? void 0 : S.getTime()) ?? Y({
|
|
222
|
+
rule: a == null ? void 0 : a.min,
|
|
223
|
+
typeValue: "number"
|
|
224
|
+
});
|
|
225
|
+
return /* @__PURE__ */ I(w, { control: W, name: e, rules: K, ...A, render: ({
|
|
226
|
+
field: {
|
|
227
|
+
name: b,
|
|
228
|
+
ref: i,
|
|
229
|
+
onBlur: v,
|
|
230
|
+
onChange: D,
|
|
231
|
+
...d
|
|
232
|
+
},
|
|
233
|
+
fieldState: {
|
|
234
|
+
error: y
|
|
235
|
+
}
|
|
236
|
+
}) => {
|
|
237
|
+
const F = d == null ? void 0 : d.value, Q = F != null && F !== "" ? F : "";
|
|
238
|
+
return /* @__PURE__ */ I(Ne, { ...d, label: f, ref: i, maskWithFormat: s, value: Q, format: c, frame: o, max: E && new Date(E) || void 0, min: L && new Date(L) || void 0, offset: V, opened: H, required: !!a.required || void 0, requiredPlacement: u, hasRequiredIndicator: !!a.required || void 0, includeEdgeDates: !0, size: g, usePortal: !!o, valueError: !!y, onChange: (N) => {
|
|
239
|
+
if (typeof N == "object" && N && "target" in N) {
|
|
240
|
+
const h = N, j = {
|
|
241
|
+
target: {
|
|
242
|
+
value: h.target.value,
|
|
243
|
+
name: h.target.name,
|
|
244
|
+
originalDate: h.target.originalDate,
|
|
245
|
+
isoDate: h.target.isoDate
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
n == null || n(j), D(j);
|
|
249
|
+
} else {
|
|
250
|
+
const h = N;
|
|
251
|
+
n == null || n(h), D(h);
|
|
252
|
+
}
|
|
253
|
+
}, onCommitDate: (N) => {
|
|
254
|
+
C(e), D(N), _(!1);
|
|
255
|
+
}, onToggle: (N) => _(N), leftHelper: y != null && y.message || m ? (y == null ? void 0 : y.message) || m : void 0, ...r });
|
|
256
|
+
} });
|
|
257
|
+
}, ke = ({
|
|
258
|
+
datePickerSize: e
|
|
259
|
+
}) => /* @__PURE__ */ I(me, { size: e === "xs" ? "s" : "m", view: "secondary", style: {
|
|
260
|
+
marginRight: e === "xs" ? "8px" : "12px",
|
|
261
|
+
marginTop: "2px"
|
|
262
|
+
}, children: /* @__PURE__ */ I(le, { color: "inherit", size: e === "xs" ? "xs" : "s" }) }), Fe = ({
|
|
263
|
+
required: e,
|
|
264
|
+
validateRange: t,
|
|
265
|
+
externalValidates: o
|
|
266
|
+
}) => (f, n) => {
|
|
267
|
+
const {
|
|
268
|
+
dateFrom: m,
|
|
269
|
+
dateTo: c
|
|
270
|
+
} = f;
|
|
271
|
+
if (!ue({
|
|
272
|
+
required: e
|
|
273
|
+
}))
|
|
274
|
+
return !0;
|
|
275
|
+
let g = "поле обязательно";
|
|
276
|
+
if (typeof e == "string" ? g = e : typeof e == "object" && e.message && (g = e.message), !m && !c)
|
|
277
|
+
return g;
|
|
278
|
+
if (m && !c || !m && c)
|
|
279
|
+
return "Заполните обе даты диапазона";
|
|
280
|
+
const u = t(f, n);
|
|
281
|
+
if (typeof u == "string")
|
|
282
|
+
return u;
|
|
283
|
+
if (typeof o == "function")
|
|
284
|
+
return o(f, n);
|
|
285
|
+
if (o) {
|
|
286
|
+
for (const s in o)
|
|
287
|
+
if (Object.prototype.hasOwnProperty.call(o, s)) {
|
|
288
|
+
const V = o[s];
|
|
289
|
+
if (V) {
|
|
290
|
+
const k = V(f, n);
|
|
291
|
+
if (typeof k == "string")
|
|
292
|
+
return k;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
return !0;
|
|
297
|
+
}, he = ({
|
|
298
|
+
min: e,
|
|
299
|
+
max: t,
|
|
300
|
+
required: o,
|
|
301
|
+
invalidFormatMessage: f,
|
|
302
|
+
format: n
|
|
303
|
+
}) => {
|
|
304
|
+
const m = ae({
|
|
305
|
+
min: e,
|
|
306
|
+
max: t,
|
|
307
|
+
required: o,
|
|
308
|
+
invalidFormatMessage: f,
|
|
309
|
+
format: n
|
|
310
|
+
});
|
|
311
|
+
return (c) => {
|
|
312
|
+
const {
|
|
313
|
+
dateFrom: l = void 0,
|
|
314
|
+
dateTo: g = void 0
|
|
315
|
+
} = c || {}, u = m(l);
|
|
316
|
+
if (typeof u == "string")
|
|
317
|
+
return u;
|
|
318
|
+
const s = m(g);
|
|
319
|
+
return typeof s == "string" ? s : !0;
|
|
320
|
+
};
|
|
321
|
+
}, Ve = ee(ce).withConfig({
|
|
322
|
+
displayName: "FormDatePickerRangeStyled__DatePickerRangeStyled"
|
|
323
|
+
})(["width:100%;&:where(.popover-target >:first-child,.popover-target,.popover-wrapper){width:100%;}"]), Ae = ({
|
|
324
|
+
name: e,
|
|
325
|
+
options: t,
|
|
326
|
+
portal: o,
|
|
327
|
+
label: f,
|
|
328
|
+
onChange: n,
|
|
329
|
+
textHint: m,
|
|
330
|
+
format: c = "DD.MM.YYYY",
|
|
331
|
+
invalidFormatMessage: l = "Формат даты указан не верно",
|
|
332
|
+
ref: g,
|
|
333
|
+
min: u,
|
|
334
|
+
max: s,
|
|
335
|
+
onChangeFirstValue: V,
|
|
336
|
+
onChangeSecondValue: k,
|
|
337
|
+
defaultFirstDate: oe,
|
|
338
|
+
defaultSecondDate: ne,
|
|
339
|
+
required: S,
|
|
340
|
+
...x
|
|
341
|
+
}) => {
|
|
342
|
+
const [B, P] = M(!1), r = {
|
|
343
|
+
...t,
|
|
344
|
+
required: p({
|
|
345
|
+
options: t,
|
|
346
|
+
ruleName: "required"
|
|
347
|
+
}) ? t == null ? void 0 : t.required : S
|
|
348
|
+
}, H = {
|
|
349
|
+
min: (() => {
|
|
350
|
+
if (u) {
|
|
351
|
+
const i = u.getTime();
|
|
352
|
+
return typeof (r == null ? void 0 : r.min) == "object" && "message" in r.min ? {
|
|
353
|
+
value: i,
|
|
354
|
+
message: r.min.message
|
|
355
|
+
} : i;
|
|
356
|
+
}
|
|
357
|
+
return $({
|
|
358
|
+
options: r,
|
|
359
|
+
ruleName: "min"
|
|
360
|
+
}) ? r == null ? void 0 : r.min : void 0;
|
|
361
|
+
})(),
|
|
362
|
+
max: (() => {
|
|
363
|
+
if (s) {
|
|
364
|
+
const i = s.getTime();
|
|
365
|
+
return typeof (r == null ? void 0 : r.max) == "object" && "message" in r.max ? {
|
|
366
|
+
value: i,
|
|
367
|
+
message: r.max.message
|
|
368
|
+
} : i;
|
|
369
|
+
}
|
|
370
|
+
return $({
|
|
371
|
+
options: r,
|
|
372
|
+
ruleName: "max"
|
|
373
|
+
}) ? r == null ? void 0 : r.max : void 0;
|
|
374
|
+
})(),
|
|
375
|
+
required: r == null ? void 0 : r.required,
|
|
376
|
+
invalidFormatMessage: l
|
|
377
|
+
}, _ = he({
|
|
378
|
+
...H,
|
|
379
|
+
format: c
|
|
380
|
+
}), a = Fe({
|
|
381
|
+
required: r == null ? void 0 : r.required,
|
|
382
|
+
validateRange: _,
|
|
383
|
+
externalValidates: r == null ? void 0 : r.validate
|
|
384
|
+
}), R = O({
|
|
385
|
+
...r,
|
|
386
|
+
validate: (i) => {
|
|
387
|
+
const v = i ? {
|
|
388
|
+
dateFrom: i.dateFrom,
|
|
389
|
+
dateTo: i.dateTo
|
|
390
|
+
} : {
|
|
391
|
+
dateFrom: void 0,
|
|
392
|
+
dateTo: void 0
|
|
393
|
+
};
|
|
394
|
+
return a(v, R.getValues());
|
|
395
|
+
}
|
|
396
|
+
}), {
|
|
397
|
+
control: z,
|
|
398
|
+
rules: G,
|
|
399
|
+
remOptions: W,
|
|
400
|
+
clearErrors: K
|
|
401
|
+
} = R, A = (s == null ? void 0 : s.getTime()) ?? Y({
|
|
402
|
+
rule: r == null ? void 0 : r.max,
|
|
403
|
+
typeValue: "number"
|
|
404
|
+
}), C = (u == null ? void 0 : u.getTime()) ?? Y({
|
|
405
|
+
rule: r == null ? void 0 : r.min,
|
|
406
|
+
typeValue: "number"
|
|
407
|
+
}), E = (i, v, D, d) => {
|
|
408
|
+
if (!i)
|
|
409
|
+
return;
|
|
410
|
+
if (v) {
|
|
411
|
+
R.setError(`${e}`, {
|
|
412
|
+
type: "custom",
|
|
413
|
+
message: "Ошибка значения"
|
|
414
|
+
}), P(!1);
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
const y = R.getValues(e) || {};
|
|
418
|
+
re({
|
|
419
|
+
date: typeof i == "string" ? i : i.toDateString(),
|
|
420
|
+
format: c
|
|
421
|
+
}) && D({
|
|
422
|
+
...y,
|
|
423
|
+
[d]: i
|
|
424
|
+
});
|
|
425
|
+
}, L = (i, v, D) => E(i, v, D, "dateFrom"), b = (i, v, D) => E(i, v, D, "dateTo");
|
|
426
|
+
return /* @__PURE__ */ I(w, { control: z, name: e, rules: G, ...W, render: ({
|
|
427
|
+
field: {
|
|
428
|
+
value: i,
|
|
429
|
+
ref: v,
|
|
430
|
+
...D
|
|
431
|
+
},
|
|
432
|
+
fieldState: {
|
|
433
|
+
error: d
|
|
434
|
+
}
|
|
435
|
+
}) => {
|
|
436
|
+
var j, J;
|
|
437
|
+
const {
|
|
438
|
+
dateFrom: y,
|
|
439
|
+
dateTo: F
|
|
440
|
+
} = i || {
|
|
441
|
+
dateFrom: "",
|
|
442
|
+
dateTo: ""
|
|
443
|
+
}, Q = y != null && y !== "" ? y : "", N = F != null && F !== "" ? F : "", h = (d == null ? void 0 : d.message) || ((j = d == null ? void 0 : d.dateFrom) == null ? void 0 : j.message) || ((J = d == null ? void 0 : d.dateTo) == null ? void 0 : J.message);
|
|
444
|
+
return /* @__PURE__ */ I(
|
|
445
|
+
Ve,
|
|
446
|
+
{
|
|
447
|
+
...D,
|
|
448
|
+
ref: v,
|
|
449
|
+
isDoubleCalendar: !0,
|
|
450
|
+
closeOnOverlayClick: !0,
|
|
451
|
+
contentRight: /* @__PURE__ */ I(ke, { datePickerSize: x.size }),
|
|
452
|
+
value: [Q, N],
|
|
453
|
+
firstValueError: !!d,
|
|
454
|
+
format: c,
|
|
455
|
+
frame: o,
|
|
456
|
+
label: f,
|
|
457
|
+
max: A && new Date(A) || void 0,
|
|
458
|
+
min: C && new Date(C) || void 0,
|
|
459
|
+
name: e,
|
|
460
|
+
opened: B,
|
|
461
|
+
maskWithFormat: !0,
|
|
462
|
+
required: !!r.required || void 0,
|
|
463
|
+
requiredPlacement: "right",
|
|
464
|
+
hasRequiredIndicator: !!r.required || void 0,
|
|
465
|
+
secondValueError: !!d,
|
|
466
|
+
usePortal: !!o,
|
|
467
|
+
onChange: ({
|
|
468
|
+
target: T
|
|
469
|
+
}) => {
|
|
470
|
+
"value" in T && (n == null || n(T.value || ""), d && K(e));
|
|
471
|
+
},
|
|
472
|
+
onChangeFirstValue: (T, q = "") => {
|
|
473
|
+
const U = {
|
|
474
|
+
...R.getValues(e) || {},
|
|
475
|
+
dateFrom: q
|
|
476
|
+
};
|
|
477
|
+
D.onChange(U), V == null || V(T);
|
|
478
|
+
},
|
|
479
|
+
onChangeSecondValue: (T, q = "") => {
|
|
480
|
+
const U = {
|
|
481
|
+
...R.getValues(e) || {},
|
|
482
|
+
dateTo: q
|
|
483
|
+
};
|
|
484
|
+
D.onChange(U), k == null || k(T);
|
|
485
|
+
},
|
|
486
|
+
onCommitSecondDate: (T, q) => b(T, q.error, D.onChange),
|
|
487
|
+
onCommitFirstDate: (T, q) => L(T, q.error, D.onChange),
|
|
488
|
+
onToggle: (T) => {
|
|
489
|
+
P(T);
|
|
490
|
+
},
|
|
491
|
+
leftHelper: h || m ? h || m : void 0,
|
|
492
|
+
...x
|
|
493
|
+
}
|
|
494
|
+
);
|
|
495
|
+
} });
|
|
496
|
+
};
|
|
497
|
+
var xe = /* @__PURE__ */ ((e) => (e.DATE_IS_SMALLER = "Дата меньше минимальной", e.DATE_IS_BIGGER = "Дата больше максимальной", e.DATE_FORMAT_IS_INVALID = "Формат даты указан не верно", e.DATE_IS_REQUIRED = "Выбор даты обязателен", e))(xe || {});
|
|
498
|
+
export {
|
|
499
|
+
xe as D,
|
|
500
|
+
_e as F,
|
|
501
|
+
Ae as a,
|
|
502
|
+
Fe as v
|
|
503
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { jsxs as B, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useSegment as M, SegmentGroup as R, SegmentItem as k, BodyXS as D, SegmentProvider as O } from "@salutejs/sdds-finai";
|
|
3
|
+
import { getIsRequired as X, useChangedFormContext as J } from "../formComponents/utils/index.mjs";
|
|
4
|
+
import { Controller as K } from "react-hook-form";
|
|
5
|
+
import { A as L } from "./utils-C5SQhoON.mjs";
|
|
6
|
+
import Q from "lodash.isequal";
|
|
7
|
+
import { useEffect as W } from "react";
|
|
8
|
+
import { TextField as Y } from "../components/TextField/index.mjs";
|
|
9
|
+
import P from "styled-components";
|
|
10
|
+
const $ = {
|
|
11
|
+
hiddenInput: "form-segment__hidden-input"
|
|
12
|
+
}, Z = P.div.withConfig({
|
|
13
|
+
displayName: "styled__SegmentGroupContainer"
|
|
14
|
+
})(["width:100%;display:flex;flex-direction:column;gap:8px;"]), U = P(Y).withConfig({
|
|
15
|
+
displayName: "styled__HiddenTextField"
|
|
16
|
+
})(["&&.", "{.input-wrapper,.input-wrapper *{pointer-events:none;max-height:0;overflow:hidden;padding:0;margin:0;}}& > div{margin-bottom:0;}"], $.hiddenInput);
|
|
17
|
+
function tt(t, e) {
|
|
18
|
+
return t == null || t === "" ? [] : Array.isArray(t) ? t.map(String) : e ? [String(t)] : [String(t)];
|
|
19
|
+
}
|
|
20
|
+
function et(t, e) {
|
|
21
|
+
return e ? t : t.length > 0 ? [t[0] ?? ""] : [];
|
|
22
|
+
}
|
|
23
|
+
function rt(t) {
|
|
24
|
+
const e = {};
|
|
25
|
+
return t.forEach((r) => {
|
|
26
|
+
e[r] = (e[r] || 0) + 1;
|
|
27
|
+
}), t.filter((r) => e[r] <= 1);
|
|
28
|
+
}
|
|
29
|
+
function nt(t) {
|
|
30
|
+
return t == null || t === "" ? [] : Array.isArray(t) ? t.map(String) : [String(t)];
|
|
31
|
+
}
|
|
32
|
+
function it({
|
|
33
|
+
value: t,
|
|
34
|
+
onRHFChange: e,
|
|
35
|
+
onUserChange: r,
|
|
36
|
+
selectionMode: i = "single",
|
|
37
|
+
label: m,
|
|
38
|
+
titleCaption: u,
|
|
39
|
+
hintText: y,
|
|
40
|
+
hintTrigger: x = "hover",
|
|
41
|
+
hintHasArrow: w = !0,
|
|
42
|
+
optionsRequired: A,
|
|
43
|
+
groupProps: F,
|
|
44
|
+
errorMessage: d,
|
|
45
|
+
items: C,
|
|
46
|
+
singleSelectedRequired: p,
|
|
47
|
+
showError: I = !0
|
|
48
|
+
}) {
|
|
49
|
+
const c = i === "multiple", {
|
|
50
|
+
selectedSegmentItems: o
|
|
51
|
+
} = M();
|
|
52
|
+
W(() => {
|
|
53
|
+
const a = tt(t, c);
|
|
54
|
+
if (!Q([...a].sort(), [...o].sort())) {
|
|
55
|
+
const l = p ? o : rt(o), s = et(l, c);
|
|
56
|
+
e(s), r == null || r(s);
|
|
57
|
+
}
|
|
58
|
+
}, [o, p]);
|
|
59
|
+
const {
|
|
60
|
+
$mode: N,
|
|
61
|
+
className: q,
|
|
62
|
+
style: E,
|
|
63
|
+
ref: G,
|
|
64
|
+
name: f,
|
|
65
|
+
disabled: T,
|
|
66
|
+
onBlur: V,
|
|
67
|
+
...g
|
|
68
|
+
} = F, _ = Array.isArray(t) ? t.join(", ") : String(t ?? ""), h = g.size ?? "s";
|
|
69
|
+
return /* @__PURE__ */ B(Z, { $mode: N, className: q, style: E, children: [
|
|
70
|
+
(m || u) && /* @__PURE__ */ n(U, { required: X(A), label: m, value: _, hintHasArrow: w, hintText: y ?? "", hintTrigger: x, className: $.hiddenInput, titleCaption: u, size: h }),
|
|
71
|
+
/* @__PURE__ */ n("input", { type: "hidden", name: f, value: String(t), ref: G, disabled: T, onBlur: V }),
|
|
72
|
+
/* @__PURE__ */ n(R, { ...g, selectionMode: i, children: C.map((a) => {
|
|
73
|
+
const {
|
|
74
|
+
value: S,
|
|
75
|
+
...l
|
|
76
|
+
} = a, s = String(S);
|
|
77
|
+
return /* @__PURE__ */ n(
|
|
78
|
+
k,
|
|
79
|
+
{
|
|
80
|
+
value: s,
|
|
81
|
+
type: "button",
|
|
82
|
+
...l
|
|
83
|
+
},
|
|
84
|
+
s
|
|
85
|
+
);
|
|
86
|
+
}) }),
|
|
87
|
+
I && d && /* @__PURE__ */ n(D, { color: L("negative"), children: d })
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
const ot = (t) => {
|
|
91
|
+
const {
|
|
92
|
+
name: e,
|
|
93
|
+
options: r,
|
|
94
|
+
onChange: i,
|
|
95
|
+
singleSelectedRequired: m,
|
|
96
|
+
selectionMode: u = "single",
|
|
97
|
+
// пропсы группы
|
|
98
|
+
view: y,
|
|
99
|
+
size: x = "s",
|
|
100
|
+
pilled: w,
|
|
101
|
+
hasBackground: A,
|
|
102
|
+
stretch: F,
|
|
103
|
+
orientation: d,
|
|
104
|
+
className: C,
|
|
105
|
+
style: p,
|
|
106
|
+
// items (сегменты)
|
|
107
|
+
items: I,
|
|
108
|
+
// label/hint
|
|
109
|
+
label: c,
|
|
110
|
+
titleCaption: o,
|
|
111
|
+
hintText: N,
|
|
112
|
+
hintTrigger: q,
|
|
113
|
+
hintHasArrow: E,
|
|
114
|
+
showError: G = !0
|
|
115
|
+
} = t, f = J(r), {
|
|
116
|
+
control: T,
|
|
117
|
+
rules: V,
|
|
118
|
+
remOptions: g
|
|
119
|
+
} = f;
|
|
120
|
+
return /* @__PURE__ */ n(K, { control: T, name: e, rules: V, ...g, render: ({
|
|
121
|
+
field: {
|
|
122
|
+
onChange: _,
|
|
123
|
+
value: h,
|
|
124
|
+
ref: a,
|
|
125
|
+
onBlur: S,
|
|
126
|
+
disabled: l,
|
|
127
|
+
name: s,
|
|
128
|
+
...z
|
|
129
|
+
},
|
|
130
|
+
fieldState: {
|
|
131
|
+
error: j
|
|
132
|
+
}
|
|
133
|
+
}) => {
|
|
134
|
+
const b = {
|
|
135
|
+
...z,
|
|
136
|
+
name: e,
|
|
137
|
+
className: C,
|
|
138
|
+
style: p,
|
|
139
|
+
disabled: l,
|
|
140
|
+
size: x,
|
|
141
|
+
view: y,
|
|
142
|
+
pilled: w,
|
|
143
|
+
hasBackground: A,
|
|
144
|
+
stretch: F,
|
|
145
|
+
// важно: у SDDS горизонталь — дефолт, поэтому передаём только 'vertical'
|
|
146
|
+
orientation: d === "vertical" ? "vertical" : void 0,
|
|
147
|
+
$mode: d === "vertical" ? "column" : "row",
|
|
148
|
+
ref: a,
|
|
149
|
+
onBlur: S
|
|
150
|
+
}, H = nt(h);
|
|
151
|
+
return /* @__PURE__ */ n(
|
|
152
|
+
O,
|
|
153
|
+
{
|
|
154
|
+
defaultSelected: H,
|
|
155
|
+
singleSelectedRequired: m,
|
|
156
|
+
...z,
|
|
157
|
+
children: /* @__PURE__ */ n(it, { value: h, onRHFChange: (v) => _(v), onUserChange: (v) => {
|
|
158
|
+
i == null || i(v, f);
|
|
159
|
+
}, label: c, titleCaption: o, hintText: N, hintTrigger: q, hintHasArrow: E, optionsRequired: r, errorMessage: j == null ? void 0 : j.message, groupProps: b, selectionMode: u, items: I, singleSelectedRequired: m, showError: G })
|
|
160
|
+
},
|
|
161
|
+
`segment-${e}-${H.join("|")}`
|
|
162
|
+
);
|
|
163
|
+
} });
|
|
164
|
+
};
|
|
165
|
+
ot.displayName = "FormSegmentGroup";
|
|
166
|
+
export {
|
|
167
|
+
ot as F
|
|
168
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("@salutejs/sdds-finai"),R=require("../formComponents/utils/index.cjs"),M=require("react-hook-form"),D=require("./utils-DKi1rqLX.cjs"),O=require("lodash.isequal"),X=require("react"),J=require("../components/TextField/index.cjs"),$=require("styled-components"),b={hiddenInput:"form-segment__hidden-input"},K=$.div.withConfig({displayName:"styled__SegmentGroupContainer"})(["width:100%;display:flex;flex-direction:column;gap:8px;"]),L=$(J.TextField).withConfig({displayName:"styled__HiddenTextField"})(["&&.","{.input-wrapper,.input-wrapper *{pointer-events:none;max-height:0;overflow:hidden;padding:0;margin:0;}}& > div{margin-bottom:0;}"],b.hiddenInput);function Q(e,t){return e==null||e===""?[]:Array.isArray(e)?e.map(String):t?[String(e)]:[String(e)]}function W(e,t){return t?e:e.length>0?[e[0]??""]:[]}function Y(e){const t={};return e.forEach(n=>{t[n]=(t[n]||0)+1}),e.filter(n=>t[n]<=1)}function Z(e){return e==null||e===""?[]:Array.isArray(e)?e.map(String):[String(e)]}function U({value:e,onRHFChange:t,onUserChange:n,selectionMode:i="single",label:u,titleCaption:m,hintText:y,hintTrigger:q="hover",hintHasArrow:F=!0,optionsRequired:j,groupProps:w,errorMessage:c,items:A,singleSelectedRequired:p,showError:C=!0}){const g=i==="multiple",{selectedSegmentItems:o}=a.useSegment();X.useEffect(()=>{const d=Q(e,g);if(!O([...d].sort(),[...o].sort())){const l=p?o:Y(o),s=W(l,g);t(s),n==null||n(s)}},[o,p]);const{$mode:I,className:G,style:N,ref:T,name:f,disabled:E,onBlur:V,...S}=w,_=Array.isArray(e)?e.join(", "):String(e??""),h=S.size??"s";return r.jsxs(K,{$mode:I,className:G,style:N,children:[(u||m)&&r.jsx(L,{required:R.getIsRequired(j),label:u,value:_,hintHasArrow:F,hintText:y??"",hintTrigger:q,className:b.hiddenInput,titleCaption:m,size:h}),r.jsx("input",{type:"hidden",name:f,value:String(e),ref:T,disabled:E,onBlur:V}),r.jsx(a.SegmentGroup,{...S,selectionMode:i,children:A.map(d=>{const{value:x,...l}=d,s=String(x);return r.jsx(a.SegmentItem,{value:s,type:"button",...l},s)})}),C&&c&&r.jsx(a.BodyXS,{color:D.getViewColor("negative"),children:c})]})}const B=e=>{const{name:t,options:n,onChange:i,singleSelectedRequired:u,selectionMode:m="single",view:y,size:q="s",pilled:F,hasBackground:j,stretch:w,orientation:c,className:A,style:p,items:C,label:g,titleCaption:o,hintText:I,hintTrigger:G,hintHasArrow:N,showError:T=!0}=e,f=R.useChangedFormContext(n),{control:E,rules:V,remOptions:S}=f;return r.jsx(M.Controller,{control:E,name:t,rules:V,...S,render:({field:{onChange:_,value:h,ref:d,onBlur:x,disabled:l,name:s,...z},fieldState:{error:H}})=>{const k={...z,name:t,className:A,style:p,disabled:l,size:q,view:y,pilled:F,hasBackground:j,stretch:w,orientation:c==="vertical"?"vertical":void 0,$mode:c==="vertical"?"column":"row",ref:d,onBlur:x},P=Z(h);return r.jsx(a.SegmentProvider,{defaultSelected:P,singleSelectedRequired:u,...z,children:r.jsx(U,{value:h,onRHFChange:v=>_(v),onUserChange:v=>{i==null||i(v,f)},label:g,titleCaption:o,hintText:I,hintTrigger:G,hintHasArrow:N,optionsRequired:n,errorMessage:H==null?void 0:H.message,groupProps:k,selectionMode:m,items:C,singleSelectedRequired:u,showError:T})},`segment-${t}-${P.join("|")}`)}})};B.displayName="FormSegmentGroup";exports.FormSegmentGroup=B;
|