@daisforge/ui 1.12.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/AnalyticalWidget-29tSeB0C.cjs +43 -0
- package/chunks/AnalyticalWidget-DnHHyjnv.mjs +528 -0
- package/chunks/ApprovalCenter-BREfTiqK.mjs +176 -0
- package/chunks/ApprovalCenter-BRUYlLoC.cjs +1 -0
- package/chunks/BlockTitle-BNm60_dx.mjs +85 -0
- package/chunks/BlockTitle-CCvkcUe_.cjs +1 -0
- package/chunks/Container-CV4sT-bB.mjs +117 -0
- package/chunks/Container-D8Bcg69e.cjs +17 -0
- package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
- package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
- package/chunks/FiltersActions-49uNOjLq.cjs +1 -0
- package/chunks/FiltersActions-Be9uBM67.mjs +429 -0
- package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
- package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
- package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
- package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
- package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
- package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
- package/chunks/GridDND-BAHGzR5e.cjs +1 -0
- package/chunks/GridDND-rY1o5ItA.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-BQyYeGQG.cjs +1 -0
- package/chunks/ListOfFilters-DRrawM8s.mjs +260 -0
- package/chunks/MassActions-ByZr-Wjd.mjs +966 -0
- package/chunks/MassActions-CxF6wvlS.cjs +1 -0
- package/chunks/PageTitle-BLBN06Xe.mjs +123 -0
- package/chunks/PageTitle-j-pmmoZ9.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories-CO4lXbo6.cjs +1 -0
- package/chunks/Stories-COpgkk_M.mjs +673 -0
- package/chunks/Table-JFzBB9zK.cjs +31 -0
- package/chunks/Table-XpsCe-vS.mjs +7757 -0
- package/chunks/TableCanvas-AwmzU0Jc.cjs +30 -0
- package/chunks/TableCanvas-BnwR-C1X.mjs +11870 -0
- package/chunks/TableGlide-BAH73oGi.cjs +1 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-o9aqEk4d.mjs} +2263 -2342
- package/chunks/styles-Dd4uEa27.mjs +128 -0
- package/chunks/styles-kPI9R7DO.cjs +2 -0
- package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
- package/chunks/utils-DKi1rqLX.cjs +25 -0
- package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
- package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
- package/components/AiAgentPopover/index.cjs +2 -2
- package/components/AiAgentPopover/index.mjs +248 -373
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
- package/components/AnalyticalWidget/index.cjs +1 -1
- package/components/AnalyticalWidget/index.mjs +1 -1
- package/components/ApprovalCenter/components/index.cjs +1 -1
- package/components/ApprovalCenter/components/index.mjs +1 -1
- package/components/ApprovalCenter/index.cjs +1 -1
- package/components/ApprovalCenter/index.mjs +1 -1
- package/components/Autocomplete/index.cjs +1 -1
- package/components/Autocomplete/index.mjs +22 -35
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +33 -83
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +41 -53
- package/components/BlockTitle/index.cjs +1 -1
- package/components/BlockTitle/index.mjs +1 -1
- package/components/BlockTitle/utils/index.cjs +1 -1
- package/components/BlockTitle/utils/index.mjs +1 -1
- package/components/Box/index.mjs +17 -7
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +41 -62
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/DatePicker/index.cjs +1 -1
- package/components/DatePicker/index.mjs +21 -59
- package/components/DrawerDF/index.cjs +1 -1
- package/components/DrawerDF/index.mjs +144 -391
- package/components/EmptyState/components/index.cjs +1 -1
- package/components/EmptyState/components/index.mjs +1 -1
- package/components/EmptyState/index.cjs +1 -1
- package/components/EmptyState/index.mjs +1 -1
- package/components/GridDND/index.cjs +1 -1
- package/components/GridDND/index.mjs +1 -1
- package/components/GridDND/utils/index.cjs +1 -1
- package/components/GridDND/utils/index.mjs +1 -1
- package/components/IconButton/index.cjs +1 -1
- package/components/IconButton/index.mjs +49 -112
- package/components/IconSvgSprite/index.cjs +1 -1
- package/components/IconSvgSprite/index.mjs +13 -49
- package/components/LeftPanel/components/index.cjs +1 -1
- package/components/LeftPanel/components/index.mjs +1 -1
- package/components/LeftPanel/hooks/index.cjs +1 -1
- package/components/LeftPanel/hooks/index.mjs +1 -1
- package/components/LeftPanel/index.cjs +1 -1
- package/components/LeftPanel/index.mjs +1 -1
- package/components/LeftPanel/utils/index.cjs +1 -1
- package/components/LeftPanel/utils/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActionsStatic/index.cjs +2 -2
- package/components/MassActionsStatic/index.mjs +13 -34
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +169 -381
- package/components/ModalDFConfirmation/index.cjs +1 -1
- package/components/ModalDFConfirmation/index.mjs +66 -114
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +16 -22
- package/components/NumberFormat/index.cjs +1 -1
- package/components/NumberFormat/index.mjs +24 -37
- package/components/NumberFormatAmount/index.cjs +1 -1
- package/components/NumberFormatAmount/index.mjs +12 -27
- package/components/PageTitle/index.cjs +1 -1
- package/components/PageTitle/index.mjs +1 -1
- package/components/PageTitle/utils/index.cjs +1 -1
- package/components/PageTitle/utils/index.mjs +1 -1
- package/components/PopoverDF/index.cjs +1 -1
- package/components/PopoverDF/index.mjs +125 -261
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +141 -308
- package/components/SplitView/index.cjs +1 -1
- package/components/SplitView/index.mjs +1 -1
- package/components/SplitView/utils/index.cjs +1 -1
- package/components/SplitView/utils/index.mjs +1 -1
- package/components/Stories/Stories.types.d.ts +1 -0
- package/components/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Stories/store/StoriesContext.d.ts +1 -0
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/column-config.type.d.ts +3 -0
- package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +3 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +2 -2
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableContract/index.cjs +2 -2
- package/components/TableContract/index.mjs +540 -798
- package/components/TableGlide/TableGlide.d.ts +1 -1
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/types.d.ts +3 -2
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +136 -305
- package/components/TextArea/index.cjs +1 -1
- package/components/TextArea/index.mjs +26 -40
- package/components/TextField/index.cjs +1 -1
- package/components/TextField/index.mjs +38 -82
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +15 -15
- package/components/TourWidget/index.mjs +176 -371
- package/components/Typography/index.cjs +1 -1
- package/components/Typography/index.mjs +1 -1
- package/components/Widget/index.cjs +1 -1
- package/components/Widget/index.mjs +151 -363
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +63 -68
- package/formComponents/FormCheckbox/index.cjs +1 -1
- package/formComponents/FormCheckbox/index.mjs +27 -55
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +61 -75
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +61 -66
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +56 -68
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +71 -144
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +62 -76
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +25 -53
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +70 -101
- package/index.cjs +1 -1
- package/index.mjs +21 -21
- package/layouts/Container/index.cjs +1 -1
- package/layouts/Container/index.mjs +1 -1
- package/layouts/Container/lib/utils/index.cjs +1 -1
- package/layouts/Container/lib/utils/index.mjs +1 -1
- package/layouts/ErrorPage/index.cjs +1 -1
- package/layouts/ErrorPage/index.mjs +81 -146
- package/layouts/FiltersActions/hooks/index.cjs +1 -1
- package/layouts/FiltersActions/hooks/index.mjs +1 -1
- package/layouts/FiltersActions/index.cjs +1 -1
- package/layouts/FiltersActions/index.mjs +1 -1
- package/layouts/Layout/index.cjs +5 -5
- package/layouts/Layout/index.mjs +78 -115
- package/layouts/PageLayout/index.cjs +2 -2
- package/layouts/PageLayout/index.mjs +15 -32
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +6 -6
- package/shared/ui/Search/index.cjs +1 -1
- package/shared/ui/Search/index.mjs +30 -52
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +33 -48
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.mjs +1 -1
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +1 -1
- package/utils/clickStream/index.cjs +1 -1
- package/utils/clickStream/index.mjs +1 -1
- package/utils/eventBus/index.cjs +1 -1
- package/utils/eventBus/index.mjs +1 -1
- package/utils/hooks/index.cjs +1 -1
- package/utils/hooks/index.mjs +1 -1
- package/utils/index.cjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
- package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
- package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
- package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
- package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
- package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
- package/chunks/Container-ChuCs63G.cjs +0 -17
- package/chunks/Container-D8RdjkGo.mjs +0 -180
- package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
- package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
- package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
- package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
- package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
- package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
- package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
- package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
- package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
- package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
- package/chunks/GridDND-Bycwiynh.mjs +0 -1086
- package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
- package/chunks/LeftPanel-C72uosX_.mjs +0 -303
- package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
- package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
- package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
- package/chunks/MassActions-BbAXi3z9.cjs +0 -1
- package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
- package/chunks/PageTitle-DEsijnDg.cjs +0 -1
- package/chunks/PageTitle-TusD1S2c.mjs +0 -282
- package/chunks/SplitView-BHdftJ9A.cjs +0 -12
- package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
- package/chunks/Stories-CR_EUNO7.mjs +0 -1018
- package/chunks/Stories-CxsYx2OE.cjs +0 -1
- package/chunks/Table--05ONCr1.cjs +0 -31
- package/chunks/Table-l-P3NNUN.mjs +0 -11944
- package/chunks/TableCanvas-BYKPeWME.mjs +0 -16941
- package/chunks/TableCanvas-ZmjSKk64.cjs +0 -30
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const j=require("./vendor-D8Dozc4m.cjs"),X=require("react"),Z=require("react-hook-form"),k=require("../formComponents/utils/index.cjs"),ue=require("../components/DatePicker/index.cjs"),w=require("@salutejs/sdds-finai"),M=require("styled-components"),se=require("@salutejs/plasma-icons"),me={"янв.":0,"фев.":1,"мар.":2,март:2,марта:2,"апр.":3,май:4,мая:4,"июн.":5,июня:5,июнь:5,"июл.":6,июля:6,июль:6,"авг.":7,"сен.":8,"окт.":9,"ноя.":10,"дек.":11},ce={января:0,январь:0,февраля:1,февраль:1,марта:2,март:2,апреля:3,апрель:3,мая:4,май:4,июня:5,июнь:5,июля:6,июль:6,августа:7,август:7,сентября:8,сентябрь:8,октября:9,октябрь:9,ноября:10,ноябрь:10,декабря:11,декабрь:11},O={...me,...ce},le=e=>Object.keys(e).map(t=>t.replace(".","\\.")).join("|"),p=`(${le(O)})`,de=[["MMMM",p,"month-text"],["MMM",p,"month-text"],["YYYY","(\\d{4})","year"],["DD","(\\d{2})","day"],["YY","(\\d{2})","year"],["MM","(\\d{2})","month-num"]],fe=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),J=new Map,ge=e=>{let t=e,i="^";const f=[];for(;t.length>0;){let n=!1;for(const[m,c,l]of de)if(t.startsWith(m)){i+=c,f.push(l),t=t.slice(m.length),n=!0;break}n||(i+=fe(t.charAt(0)),t=t.slice(1))}return i+="$",{regex:new RegExp(i),tokens:f}},De=e=>{let t=J.get(e);return t||(t=ge(e),J.set(e,t)),t},ke=e=>e<100?2e3+e:e,ee=({date:e,format:t})=>{const{regex:i,tokens:f}=De(t),n=e.match(i);if(!n)return"";try{let m=1,c=0,l=new Date().getFullYear(),g=!1;for(let u=0;u<f.length;u++){const s=n[u+1];if(!s)return"";switch(f[u]){case"day":if(m=Number(s),Number.isNaN(m))return"";break;case"month-num":if(c=Number(s)-1,Number.isNaN(c))return"";g=!0;break;case"month-text":{const R=O[s];if(typeof R!="number")return"";c=R,g=!0;break}case"year":if(l=ke(Number(s)),Number.isNaN(l))return"";break;default:break}}return g?new Date(l,c,m).toISOString():""}catch{return""}},te=({min:e,max:t,required:i,invalidFormatMessage:f,format:n})=>{const m=t&&k.getRuleValue({rule:t,typeValue:"number"}),c=e&&k.getRuleValue({rule:e,typeValue:"number"});return l=>{let g,u=null;typeof l=="string"&&n&&(g=ee({date:l,format:n}),g&&(u=new Date(g))),(l instanceof Date||typeof l=="string"&&!n)&&(u=new Date(l));const s=u&&!Number.isNaN(u.getTime())?u.getTime():null;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:i?typeof i=="object"&&"message"in i?i==null?void 0:i.message:!1:!0}},ve=M(ue.DatePicker).withConfig({displayName:"DatePickerStyled"})(["width:100%;"]),ye=({name:e,options:t,portal:i,label:f,onChange:n,textHint:m,format:c="DD.MM.YYYY",invalidFormatMessage:l="Формат даты указан не верно",size:g="s",requiredPlacement:u="right",maskWithFormat:s=!0,offset:V=[0,2],leftHelper:R,defaultDate:ie,ref:ne,min:E,max:h,opened:H,required:C,...r})=>{const[L,Y]=X.useState(H??!1),a={...t,required:k.getPriorityRequired({options:t,ruleName:"required"})?t==null?void 0:t.required:C},P={min:(()=>{if(E){const b=E.getTime();return typeof(a==null?void 0:a.min)=="object"&&"message"in a.min?{value:b,message:a.min.message}:b}return k.hasValidationRule({options:a,ruleName:"min"})?a==null?void 0:a.min:void 0})(),max:(()=>{if(h){const b=h.getTime();return typeof(a==null?void 0:a.max)=="object"&&"message"in a.max?{value:b,message:a.max.message}:b}return k.hasValidationRule({options:a,ruleName:"max"})?a==null?void 0:a.max:void 0})(),required:a==null?void 0:a.required,invalidFormatMessage:l,format:c},$=te(P),z=k.useChangedFormContext({...a,validate:b=>{const o=a==null?void 0:a.validate;if(o)return o(b);const y=$(b);return y!==!0?y:!0}}),{control:G,rules:U,remOptions:_,clearErrors:A}=z,I=(h==null?void 0:h.getTime())??k.getRuleValue({rule:a==null?void 0:a.max,typeValue:"number"}),B=(E==null?void 0:E.getTime())??k.getRuleValue({rule:a==null?void 0:a.min,typeValue:"number"});return j.jsxDevRuntimeExports.jsxDEV(Z.Controller,{control:G,name:e,rules:U,..._,render:({field:{name:b,ref:o,onBlur:y,onChange:D,...d},fieldState:{error:v}})=>{const F=d==null?void 0:d.value,W=F!=null&&F!==""?F:"";return j.jsxDevRuntimeExports.jsxDEV(ve,{...d,label:f,ref:o,maskWithFormat:s,value:W,format:c,frame:i,max:I&&new Date(I)||void 0,min:B&&new Date(B)||void 0,offset:V,opened:L,required:!!a.required||void 0,requiredPlacement:u,hasRequiredIndicator:!!a.required||void 0,includeEdgeDates:!0,size:g,usePortal:!!i,valueError:!!v,onChange:x=>{if(typeof x=="object"&&x&&"target"in x){const T=x,S={target:{value:T.target.value,name:T.target.name,originalDate:T.target.originalDate,isoDate:T.target.isoDate}};n==null||n(S),D(S)}else{const T=x;n==null||n(T),D(T)}},onCommitDate:x=>{A(e),D(x),Y(!1)},onToggle:x=>Y(x),leftHelper:v!=null&&v.message||m?(v==null?void 0:v.message)||m:void 0,...r},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePicker/FormDatePicker.tsx",lineNumber:165,columnNumber:11},void 0)}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePicker/FormDatePicker.tsx",lineNumber:142,columnNumber:5},void 0)},Ne=({datePickerSize:e})=>j.jsxDevRuntimeExports.jsxDEV(w.EmbedIconButton,{size:e==="xs"?"s":"m",view:"secondary",style:{marginRight:e==="xs"?"8px":"12px",marginTop:"2px"},children:j.jsxDevRuntimeExports.jsxDEV(se.IconCalendarOutline,{color:"inherit",size:e==="xs"?"xs":"s"},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/lib/ui/RightIconButton.tsx",lineNumber:19,columnNumber:5},void 0)},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/lib/ui/RightIconButton.tsx",lineNumber:11,columnNumber:1},void 0),re=({required:e,validateRange:t,externalValidates:i})=>(f,n)=>{const{dateFrom:m,dateTo:c}=f;if(!k.getIsRequired({required:e}))return!0;let g="поле обязательно";if(typeof e=="string"?g=e:typeof e=="object"&&e.message&&(g=e.message),!m&&!c)return g;if(m&&!c||!m&&c)return"Заполните обе даты диапазона";const u=t(f,n);if(typeof u=="string")return u;if(typeof i=="function")return i(f,n);if(i){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const V=i[s];if(V){const R=V(f,n);if(typeof R=="string")return R}}}return!0},be=({min:e,max:t,required:i,invalidFormatMessage:f,format:n})=>{const m=te({min:e,max:t,required:i,invalidFormatMessage:f,format:n});return c=>{const{dateFrom:l=void 0,dateTo:g=void 0}=c||{},u=m(l);if(typeof u=="string")return u;const s=m(g);return typeof s=="string"?s:!0}},xe=M(w.DatePickerRange).withConfig({displayName:"FormDatePickerRangeStyled__DatePickerRangeStyled"})(["width:100%;&:where(.popover-target >:first-child,.popover-target,.popover-wrapper){width:100%;}"]),Re=({name:e,options:t,portal:i,label:f,onChange:n,textHint:m,format:c="DD.MM.YYYY",invalidFormatMessage:l="Формат даты указан не верно",ref:g,min:u,max:s,onChangeFirstValue:V,onChangeSecondValue:R,defaultFirstDate:ie,defaultSecondDate:ne,required:E,...h})=>{const[H,C]=X.useState(!1),r={...t,required:k.getPriorityRequired({options:t,ruleName:"required"})?t==null?void 0:t.required:E},L={min:(()=>{if(u){const o=u.getTime();return typeof(r==null?void 0:r.min)=="object"&&"message"in r.min?{value:o,message:r.min.message}:o}return k.hasValidationRule({options:r,ruleName:"min"})?r==null?void 0:r.min:void 0})(),max:(()=>{if(s){const o=s.getTime();return typeof(r==null?void 0:r.max)=="object"&&"message"in r.max?{value:o,message:r.max.message}:o}return k.hasValidationRule({options:r,ruleName:"max"})?r==null?void 0:r.max:void 0})(),required:r==null?void 0:r.required,invalidFormatMessage:l},Y=be({...L,format:c}),a=re({required:r==null?void 0:r.required,validateRange:Y,externalValidates:r==null?void 0:r.validate}),P=k.useChangedFormContext({...r,validate:o=>{const y=o?{dateFrom:o.dateFrom,dateTo:o.dateTo}:{dateFrom:void 0,dateTo:void 0};return a(y,P.getValues())}}),{control:$,rules:z,remOptions:G,clearErrors:U}=P,_=(s==null?void 0:s.getTime())??k.getRuleValue({rule:r==null?void 0:r.max,typeValue:"number"}),A=(u==null?void 0:u.getTime())??k.getRuleValue({rule:r==null?void 0:r.min,typeValue:"number"}),I=(o,y,D,d)=>{if(!o)return;if(y){P.setError(`${e}`,{type:"custom",message:"Ошибка значения"}),C(!1);return}const v=P.getValues(e)||{};ee({date:typeof o=="string"?o:o.toDateString(),format:c})&&D({...v,[d]:o})},B=(o,y,D)=>I(o,y,D,"dateFrom"),b=(o,y,D)=>I(o,y,D,"dateTo");return j.jsxDevRuntimeExports.jsxDEV(Z.Controller,{control:$,name:e,rules:z,...G,render:({field:{value:o,ref:y,...D},fieldState:{error:d}})=>{var S,Q;const{dateFrom:v,dateTo:F}=o||{dateFrom:"",dateTo:""},W=v!=null&&v!==""?v:"",x=F!=null&&F!==""?F:"",T=(d==null?void 0:d.message)||((S=d==null?void 0:d.dateFrom)==null?void 0:S.message)||((Q=d==null?void 0:d.dateTo)==null?void 0:Q.message);return j.jsxDevRuntimeExports.jsxDEV(xe,{...D,ref:y,isDoubleCalendar:!0,closeOnOverlayClick:!0,contentRight:j.jsxDevRuntimeExports.jsxDEV(Ne,{datePickerSize:h.size},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",lineNumber:252,columnNumber:27},void 0),value:[W,x],firstValueError:!!d,format:c,frame:i,label:f,max:_&&new Date(_)||void 0,min:A&&new Date(A)||void 0,name:e,opened:H,maskWithFormat:!0,required:!!r.required||void 0,requiredPlacement:"right",hasRequiredIndicator:!!r.required||void 0,secondValueError:!!d,usePortal:!!i,onChange:({target:N})=>{"value"in N&&(n==null||n(N.value||""),d&&U(e))},onChangeFirstValue:(N,q="")=>{const K={...P.getValues(e)||{},dateFrom:q};D.onChange(K),V==null||V(N)},onChangeSecondValue:(N,q="")=>{const K={...P.getValues(e)||{},dateTo:q};D.onChange(K),R==null||R(N)},onCommitSecondDate:(N,q)=>b(N,q.error,D.onChange),onCommitFirstDate:(N,q)=>B(N,q.error,D.onChange),onToggle:N=>{C(N)},leftHelper:T||m?T||m:void 0,...h},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",lineNumber:247,columnNumber:11},void 0)}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",lineNumber:220,columnNumber:5},void 0)};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=ye;exports.FormDatePickerRange=Re;exports.validateRequiredHoс=re;
|
|
@@ -1,538 +0,0 @@
|
|
|
1
|
-
import { j } from "./vendor-BG4P-329.mjs";
|
|
2
|
-
import { useState as Z } from "react";
|
|
3
|
-
import { Controller as w } from "react-hook-form";
|
|
4
|
-
import { getRuleValue as I, getPriorityRequired as M, hasValidationRule as L, useChangedFormContext as O, getIsRequired as se } from "../formComponents/utils/index.mjs";
|
|
5
|
-
import { DatePicker as me } from "../components/DatePicker/index.mjs";
|
|
6
|
-
import { EmbedIconButton as ue, 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("|"), J = `(${ge(te)})`, 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"]], ke = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), X = /* @__PURE__ */ new Map(), ye = (e) => {
|
|
58
|
-
let t = e, i = "^";
|
|
59
|
-
const f = [];
|
|
60
|
-
for (; t.length > 0; ) {
|
|
61
|
-
let o = !1;
|
|
62
|
-
for (const [u, c, l] of De)
|
|
63
|
-
if (t.startsWith(u)) {
|
|
64
|
-
i += c, f.push(l), t = t.slice(u.length), o = !0;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
o || (i += ke(t.charAt(0)), t = t.slice(1));
|
|
68
|
-
}
|
|
69
|
-
return i += "$", {
|
|
70
|
-
regex: new RegExp(i),
|
|
71
|
-
tokens: f
|
|
72
|
-
};
|
|
73
|
-
}, Ne = (e) => {
|
|
74
|
-
let t = X.get(e);
|
|
75
|
-
return t || (t = ye(e), X.set(e, t)), t;
|
|
76
|
-
}, be = (e) => e < 100 ? 2e3 + e : e, re = ({
|
|
77
|
-
date: e,
|
|
78
|
-
format: t
|
|
79
|
-
}) => {
|
|
80
|
-
const {
|
|
81
|
-
regex: i,
|
|
82
|
-
tokens: f
|
|
83
|
-
} = Ne(t), o = e.match(i);
|
|
84
|
-
if (!o)
|
|
85
|
-
return "";
|
|
86
|
-
try {
|
|
87
|
-
let u = 1, c = 0, l = (/* @__PURE__ */ new Date()).getFullYear(), g = !1;
|
|
88
|
-
for (let s = 0; s < f.length; s++) {
|
|
89
|
-
const m = o[s + 1];
|
|
90
|
-
if (!m)
|
|
91
|
-
return "";
|
|
92
|
-
switch (f[s]) {
|
|
93
|
-
case "day":
|
|
94
|
-
if (u = Number(m), Number.isNaN(u))
|
|
95
|
-
return "";
|
|
96
|
-
break;
|
|
97
|
-
case "month-num":
|
|
98
|
-
if (c = Number(m) - 1, Number.isNaN(c))
|
|
99
|
-
return "";
|
|
100
|
-
g = !0;
|
|
101
|
-
break;
|
|
102
|
-
case "month-text": {
|
|
103
|
-
const F = te[m];
|
|
104
|
-
if (typeof F != "number")
|
|
105
|
-
return "";
|
|
106
|
-
c = F, g = !0;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
case "year":
|
|
110
|
-
if (l = be(Number(m)), Number.isNaN(l))
|
|
111
|
-
return "";
|
|
112
|
-
break;
|
|
113
|
-
default:
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return g ? new Date(l, c, u).toISOString() : "";
|
|
118
|
-
} catch {
|
|
119
|
-
return "";
|
|
120
|
-
}
|
|
121
|
-
}, ae = ({
|
|
122
|
-
min: e,
|
|
123
|
-
max: t,
|
|
124
|
-
required: i,
|
|
125
|
-
invalidFormatMessage: f,
|
|
126
|
-
format: o
|
|
127
|
-
}) => {
|
|
128
|
-
const u = t && I({
|
|
129
|
-
rule: t,
|
|
130
|
-
typeValue: "number"
|
|
131
|
-
}), c = e && I({
|
|
132
|
-
rule: e,
|
|
133
|
-
typeValue: "number"
|
|
134
|
-
});
|
|
135
|
-
return (l) => {
|
|
136
|
-
let g, s = null;
|
|
137
|
-
typeof l == "string" && o && (g = re({
|
|
138
|
-
date: l,
|
|
139
|
-
format: o
|
|
140
|
-
}), g && (s = new Date(g))), (l instanceof Date || typeof l == "string" && !o) && (s = new Date(l));
|
|
141
|
-
const m = s && !Number.isNaN(s.getTime()) ? s.getTime() : null;
|
|
142
|
-
return m !== null ? typeof c == "number" && m <= c ? typeof e == "object" && "message" in e ? e == null ? void 0 : e.message : !1 : typeof u == "number" && m >= u ? typeof t == "object" && "message" in t ? t == null ? void 0 : t.message : !1 : !0 : l && typeof l == "string" && l.length ? f : i ? typeof i == "object" && "message" in i ? i == null ? void 0 : i.message : !1 : !0;
|
|
143
|
-
};
|
|
144
|
-
}, ve = ee(me).withConfig({
|
|
145
|
-
displayName: "DatePickerStyled"
|
|
146
|
-
})(["width:100%;"]), Ce = ({
|
|
147
|
-
name: e,
|
|
148
|
-
options: t,
|
|
149
|
-
portal: i,
|
|
150
|
-
label: f,
|
|
151
|
-
onChange: o,
|
|
152
|
-
textHint: u,
|
|
153
|
-
format: c = "DD.MM.YYYY",
|
|
154
|
-
invalidFormatMessage: l = "Формат даты указан не верно",
|
|
155
|
-
size: g = "s",
|
|
156
|
-
requiredPlacement: s = "right",
|
|
157
|
-
maskWithFormat: m = !0,
|
|
158
|
-
offset: h = [0, 2],
|
|
159
|
-
leftHelper: F,
|
|
160
|
-
defaultDate: ie,
|
|
161
|
-
ref: oe,
|
|
162
|
-
min: V,
|
|
163
|
-
max: P,
|
|
164
|
-
opened: $,
|
|
165
|
-
required: Y,
|
|
166
|
-
...r
|
|
167
|
-
}) => {
|
|
168
|
-
const [H, C] = Z($ ?? !1), a = {
|
|
169
|
-
...t,
|
|
170
|
-
required: M({ options: t, ruleName: "required" }) ? t == null ? void 0 : t.required : Y
|
|
171
|
-
}, R = {
|
|
172
|
-
min: (() => {
|
|
173
|
-
if (V) {
|
|
174
|
-
const b = V.getTime();
|
|
175
|
-
return typeof (a == null ? void 0 : a.min) == "object" && "message" in a.min ? { value: b, message: a.min.message } : b;
|
|
176
|
-
}
|
|
177
|
-
return L({ options: a, ruleName: "min" }) ? a == null ? void 0 : a.min : void 0;
|
|
178
|
-
})(),
|
|
179
|
-
max: (() => {
|
|
180
|
-
if (P) {
|
|
181
|
-
const b = P.getTime();
|
|
182
|
-
return typeof (a == null ? void 0 : a.max) == "object" && "message" in a.max ? { value: b, message: a.max.message } : b;
|
|
183
|
-
}
|
|
184
|
-
return L({ options: a, ruleName: "max" }) ? a == null ? void 0 : a.max : void 0;
|
|
185
|
-
})(),
|
|
186
|
-
required: a == null ? void 0 : a.required,
|
|
187
|
-
invalidFormatMessage: l,
|
|
188
|
-
format: c
|
|
189
|
-
}, p = ae(R), z = O({
|
|
190
|
-
...a,
|
|
191
|
-
validate: (b) => {
|
|
192
|
-
const n = a == null ? void 0 : a.validate;
|
|
193
|
-
if (n)
|
|
194
|
-
return n(b);
|
|
195
|
-
const y = p(b);
|
|
196
|
-
return y !== !0 ? y : !0;
|
|
197
|
-
}
|
|
198
|
-
}), { control: G, rules: W, remOptions: _, clearErrors: A } = z, S = (P == null ? void 0 : P.getTime()) ?? I({ rule: a == null ? void 0 : a.max, typeValue: "number" }), B = (V == null ? void 0 : V.getTime()) ?? I({ rule: a == null ? void 0 : a.min, typeValue: "number" });
|
|
199
|
-
return /* @__PURE__ */ j.jsxDEV(
|
|
200
|
-
w,
|
|
201
|
-
{
|
|
202
|
-
control: G,
|
|
203
|
-
name: e,
|
|
204
|
-
rules: W,
|
|
205
|
-
..._,
|
|
206
|
-
render: ({
|
|
207
|
-
field: {
|
|
208
|
-
name: b,
|
|
209
|
-
ref: n,
|
|
210
|
-
onBlur: y,
|
|
211
|
-
onChange: D,
|
|
212
|
-
...d
|
|
213
|
-
},
|
|
214
|
-
fieldState: { error: k }
|
|
215
|
-
}) => {
|
|
216
|
-
const T = d == null ? void 0 : d.value, K = T != null && T !== "" ? T : "";
|
|
217
|
-
return /* @__PURE__ */ j.jsxDEV(
|
|
218
|
-
ve,
|
|
219
|
-
{
|
|
220
|
-
...d,
|
|
221
|
-
label: f,
|
|
222
|
-
ref: n,
|
|
223
|
-
maskWithFormat: m,
|
|
224
|
-
value: K,
|
|
225
|
-
format: c,
|
|
226
|
-
frame: i,
|
|
227
|
-
max: S && new Date(S) || void 0,
|
|
228
|
-
min: B && new Date(B) || void 0,
|
|
229
|
-
offset: h,
|
|
230
|
-
opened: H,
|
|
231
|
-
required: !!a.required || void 0,
|
|
232
|
-
requiredPlacement: s,
|
|
233
|
-
hasRequiredIndicator: !!a.required || void 0,
|
|
234
|
-
includeEdgeDates: !0,
|
|
235
|
-
size: g,
|
|
236
|
-
usePortal: !!i,
|
|
237
|
-
valueError: !!k,
|
|
238
|
-
onChange: (v) => {
|
|
239
|
-
if (typeof v == "object" && v && "target" in v) {
|
|
240
|
-
const x = v, q = {
|
|
241
|
-
target: {
|
|
242
|
-
value: x.target.value,
|
|
243
|
-
name: x.target.name,
|
|
244
|
-
originalDate: x.target.originalDate,
|
|
245
|
-
isoDate: x.target.isoDate
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
o == null || o(q), D(q);
|
|
249
|
-
} else {
|
|
250
|
-
const x = v;
|
|
251
|
-
o == null || o(x), D(x);
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
onCommitDate: (v) => {
|
|
255
|
-
A(e), D(v), C(!1);
|
|
256
|
-
},
|
|
257
|
-
onToggle: (v) => C(v),
|
|
258
|
-
leftHelper: k != null && k.message || u ? (k == null ? void 0 : k.message) || u : void 0,
|
|
259
|
-
...r
|
|
260
|
-
},
|
|
261
|
-
void 0,
|
|
262
|
-
!1,
|
|
263
|
-
{
|
|
264
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePicker/FormDatePicker.tsx",
|
|
265
|
-
lineNumber: 165,
|
|
266
|
-
columnNumber: 11
|
|
267
|
-
},
|
|
268
|
-
void 0
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
void 0,
|
|
273
|
-
!1,
|
|
274
|
-
{
|
|
275
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePicker/FormDatePicker.tsx",
|
|
276
|
-
lineNumber: 142,
|
|
277
|
-
columnNumber: 5
|
|
278
|
-
},
|
|
279
|
-
void 0
|
|
280
|
-
);
|
|
281
|
-
}, Fe = ({
|
|
282
|
-
datePickerSize: e
|
|
283
|
-
}) => /* @__PURE__ */ j.jsxDEV(
|
|
284
|
-
ue,
|
|
285
|
-
{
|
|
286
|
-
size: e === "xs" ? "s" : "m",
|
|
287
|
-
view: "secondary",
|
|
288
|
-
style: {
|
|
289
|
-
marginRight: e === "xs" ? "8px" : "12px",
|
|
290
|
-
marginTop: "2px"
|
|
291
|
-
},
|
|
292
|
-
children: /* @__PURE__ */ j.jsxDEV(
|
|
293
|
-
le,
|
|
294
|
-
{
|
|
295
|
-
color: "inherit",
|
|
296
|
-
size: e === "xs" ? "xs" : "s"
|
|
297
|
-
},
|
|
298
|
-
void 0,
|
|
299
|
-
!1,
|
|
300
|
-
{
|
|
301
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/lib/ui/RightIconButton.tsx",
|
|
302
|
-
lineNumber: 19,
|
|
303
|
-
columnNumber: 5
|
|
304
|
-
},
|
|
305
|
-
void 0
|
|
306
|
-
)
|
|
307
|
-
},
|
|
308
|
-
void 0,
|
|
309
|
-
!1,
|
|
310
|
-
{
|
|
311
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/lib/ui/RightIconButton.tsx",
|
|
312
|
-
lineNumber: 11,
|
|
313
|
-
columnNumber: 1
|
|
314
|
-
},
|
|
315
|
-
void 0
|
|
316
|
-
), Te = ({
|
|
317
|
-
required: e,
|
|
318
|
-
validateRange: t,
|
|
319
|
-
externalValidates: i
|
|
320
|
-
}) => (f, o) => {
|
|
321
|
-
const {
|
|
322
|
-
dateFrom: u,
|
|
323
|
-
dateTo: c
|
|
324
|
-
} = f;
|
|
325
|
-
if (!se({
|
|
326
|
-
required: e
|
|
327
|
-
}))
|
|
328
|
-
return !0;
|
|
329
|
-
let g = "поле обязательно";
|
|
330
|
-
if (typeof e == "string" ? g = e : typeof e == "object" && e.message && (g = e.message), !u && !c)
|
|
331
|
-
return g;
|
|
332
|
-
if (u && !c || !u && c)
|
|
333
|
-
return "Заполните обе даты диапазона";
|
|
334
|
-
const s = t(f, o);
|
|
335
|
-
if (typeof s == "string")
|
|
336
|
-
return s;
|
|
337
|
-
if (typeof i == "function")
|
|
338
|
-
return i(f, o);
|
|
339
|
-
if (i) {
|
|
340
|
-
for (const m in i)
|
|
341
|
-
if (Object.prototype.hasOwnProperty.call(i, m)) {
|
|
342
|
-
const h = i[m];
|
|
343
|
-
if (h) {
|
|
344
|
-
const F = h(f, o);
|
|
345
|
-
if (typeof F == "string")
|
|
346
|
-
return F;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
return !0;
|
|
351
|
-
}, xe = ({
|
|
352
|
-
min: e,
|
|
353
|
-
max: t,
|
|
354
|
-
required: i,
|
|
355
|
-
invalidFormatMessage: f,
|
|
356
|
-
format: o
|
|
357
|
-
}) => {
|
|
358
|
-
const u = ae({
|
|
359
|
-
min: e,
|
|
360
|
-
max: t,
|
|
361
|
-
required: i,
|
|
362
|
-
invalidFormatMessage: f,
|
|
363
|
-
format: o
|
|
364
|
-
});
|
|
365
|
-
return (c) => {
|
|
366
|
-
const {
|
|
367
|
-
dateFrom: l = void 0,
|
|
368
|
-
dateTo: g = void 0
|
|
369
|
-
} = c || {}, s = u(l);
|
|
370
|
-
if (typeof s == "string")
|
|
371
|
-
return s;
|
|
372
|
-
const m = u(g);
|
|
373
|
-
return typeof m == "string" ? m : !0;
|
|
374
|
-
};
|
|
375
|
-
}, he = ee(ce).withConfig({ displayName: "FormDatePickerRangeStyled__DatePickerRangeStyled" })(["width:100%;&:where(.popover-target >:first-child,.popover-target,.popover-wrapper){width:100%;}"]), _e = ({
|
|
376
|
-
name: e,
|
|
377
|
-
options: t,
|
|
378
|
-
portal: i,
|
|
379
|
-
label: f,
|
|
380
|
-
onChange: o,
|
|
381
|
-
textHint: u,
|
|
382
|
-
format: c = "DD.MM.YYYY",
|
|
383
|
-
invalidFormatMessage: l = "Формат даты указан не верно",
|
|
384
|
-
ref: g,
|
|
385
|
-
min: s,
|
|
386
|
-
max: m,
|
|
387
|
-
onChangeFirstValue: h,
|
|
388
|
-
onChangeSecondValue: F,
|
|
389
|
-
defaultFirstDate: ie,
|
|
390
|
-
defaultSecondDate: oe,
|
|
391
|
-
required: V,
|
|
392
|
-
...P
|
|
393
|
-
}) => {
|
|
394
|
-
const [$, Y] = Z(!1), r = {
|
|
395
|
-
...t,
|
|
396
|
-
required: M({ options: t, ruleName: "required" }) ? t == null ? void 0 : t.required : V
|
|
397
|
-
}, H = {
|
|
398
|
-
min: (() => {
|
|
399
|
-
if (s) {
|
|
400
|
-
const n = s.getTime();
|
|
401
|
-
return typeof (r == null ? void 0 : r.min) == "object" && "message" in r.min ? { value: n, message: r.min.message } : n;
|
|
402
|
-
}
|
|
403
|
-
return L({ options: r, ruleName: "min" }) ? r == null ? void 0 : r.min : void 0;
|
|
404
|
-
})(),
|
|
405
|
-
max: (() => {
|
|
406
|
-
if (m) {
|
|
407
|
-
const n = m.getTime();
|
|
408
|
-
return typeof (r == null ? void 0 : r.max) == "object" && "message" in r.max ? { value: n, message: r.max.message } : n;
|
|
409
|
-
}
|
|
410
|
-
return L({ options: r, ruleName: "max" }) ? r == null ? void 0 : r.max : void 0;
|
|
411
|
-
})(),
|
|
412
|
-
required: r == null ? void 0 : r.required,
|
|
413
|
-
invalidFormatMessage: l
|
|
414
|
-
}, C = xe({ ...H, format: c }), a = Te({
|
|
415
|
-
required: r == null ? void 0 : r.required,
|
|
416
|
-
validateRange: C,
|
|
417
|
-
externalValidates: r == null ? void 0 : r.validate
|
|
418
|
-
}), R = O({
|
|
419
|
-
...r,
|
|
420
|
-
validate: (n) => {
|
|
421
|
-
const y = n ? {
|
|
422
|
-
dateFrom: n.dateFrom,
|
|
423
|
-
dateTo: n.dateTo
|
|
424
|
-
} : { dateFrom: void 0, dateTo: void 0 };
|
|
425
|
-
return a(y, R.getValues());
|
|
426
|
-
}
|
|
427
|
-
}), { control: p, rules: z, remOptions: G, clearErrors: W } = R, _ = (m == null ? void 0 : m.getTime()) ?? I({ rule: r == null ? void 0 : r.max, typeValue: "number" }), A = (s == null ? void 0 : s.getTime()) ?? I({ rule: r == null ? void 0 : r.min, typeValue: "number" }), S = (n, y, D, d) => {
|
|
428
|
-
if (!n)
|
|
429
|
-
return;
|
|
430
|
-
if (y) {
|
|
431
|
-
R.setError(`${e}`, {
|
|
432
|
-
type: "custom",
|
|
433
|
-
message: "Ошибка значения"
|
|
434
|
-
}), Y(!1);
|
|
435
|
-
return;
|
|
436
|
-
}
|
|
437
|
-
const k = R.getValues(e) || {};
|
|
438
|
-
re({
|
|
439
|
-
date: typeof n == "string" ? n : n.toDateString(),
|
|
440
|
-
format: c
|
|
441
|
-
}) && D({
|
|
442
|
-
...k,
|
|
443
|
-
[d]: n
|
|
444
|
-
});
|
|
445
|
-
}, B = (n, y, D) => S(n, y, D, "dateFrom"), b = (n, y, D) => S(n, y, D, "dateTo");
|
|
446
|
-
return /* @__PURE__ */ j.jsxDEV(
|
|
447
|
-
w,
|
|
448
|
-
{
|
|
449
|
-
control: p,
|
|
450
|
-
name: e,
|
|
451
|
-
rules: z,
|
|
452
|
-
...G,
|
|
453
|
-
render: ({
|
|
454
|
-
field: { value: n, ref: y, ...D },
|
|
455
|
-
fieldState: { error: d }
|
|
456
|
-
}) => {
|
|
457
|
-
var q, U;
|
|
458
|
-
const { dateFrom: k, dateTo: T } = n || { dateFrom: "", dateTo: "" }, K = k != null && k !== "" ? k : "", v = T != null && T !== "" ? T : "", x = (d == null ? void 0 : d.message) || ((q = d == null ? void 0 : d.dateFrom) == null ? void 0 : q.message) || ((U = d == null ? void 0 : d.dateTo) == null ? void 0 : U.message);
|
|
459
|
-
return /* @__PURE__ */ j.jsxDEV(
|
|
460
|
-
he,
|
|
461
|
-
{
|
|
462
|
-
...D,
|
|
463
|
-
ref: y,
|
|
464
|
-
isDoubleCalendar: !0,
|
|
465
|
-
closeOnOverlayClick: !0,
|
|
466
|
-
contentRight: /* @__PURE__ */ j.jsxDEV(Fe, { datePickerSize: P.size }, void 0, !1, {
|
|
467
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",
|
|
468
|
-
lineNumber: 252,
|
|
469
|
-
columnNumber: 27
|
|
470
|
-
}, void 0),
|
|
471
|
-
value: [K, v],
|
|
472
|
-
firstValueError: !!d,
|
|
473
|
-
format: c,
|
|
474
|
-
frame: i,
|
|
475
|
-
label: f,
|
|
476
|
-
max: _ && new Date(_) || void 0,
|
|
477
|
-
min: A && new Date(A) || void 0,
|
|
478
|
-
name: e,
|
|
479
|
-
opened: $,
|
|
480
|
-
maskWithFormat: !0,
|
|
481
|
-
required: !!r.required || void 0,
|
|
482
|
-
requiredPlacement: "right",
|
|
483
|
-
hasRequiredIndicator: !!r.required || void 0,
|
|
484
|
-
secondValueError: !!d,
|
|
485
|
-
usePortal: !!i,
|
|
486
|
-
onChange: ({ target: N }) => {
|
|
487
|
-
"value" in N && (o == null || o(N.value || ""), d && W(e));
|
|
488
|
-
},
|
|
489
|
-
onChangeFirstValue: (N, E = "") => {
|
|
490
|
-
const Q = {
|
|
491
|
-
...R.getValues(e) || {},
|
|
492
|
-
dateFrom: E
|
|
493
|
-
};
|
|
494
|
-
D.onChange(Q), h == null || h(N);
|
|
495
|
-
},
|
|
496
|
-
onChangeSecondValue: (N, E = "") => {
|
|
497
|
-
const Q = {
|
|
498
|
-
...R.getValues(e) || {},
|
|
499
|
-
dateTo: E
|
|
500
|
-
};
|
|
501
|
-
D.onChange(Q), F == null || F(N);
|
|
502
|
-
},
|
|
503
|
-
onCommitSecondDate: (N, E) => b(N, E.error, D.onChange),
|
|
504
|
-
onCommitFirstDate: (N, E) => B(N, E.error, D.onChange),
|
|
505
|
-
onToggle: (N) => {
|
|
506
|
-
Y(N);
|
|
507
|
-
},
|
|
508
|
-
leftHelper: x || u ? x || u : void 0,
|
|
509
|
-
...P
|
|
510
|
-
},
|
|
511
|
-
void 0,
|
|
512
|
-
!1,
|
|
513
|
-
{
|
|
514
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",
|
|
515
|
-
lineNumber: 247,
|
|
516
|
-
columnNumber: 11
|
|
517
|
-
},
|
|
518
|
-
void 0
|
|
519
|
-
);
|
|
520
|
-
}
|
|
521
|
-
},
|
|
522
|
-
void 0,
|
|
523
|
-
!1,
|
|
524
|
-
{
|
|
525
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormDatePickers/FormDatePickerRange/FormDatePickerRange.tsx",
|
|
526
|
-
lineNumber: 220,
|
|
527
|
-
columnNumber: 5
|
|
528
|
-
},
|
|
529
|
-
void 0
|
|
530
|
-
);
|
|
531
|
-
};
|
|
532
|
-
var Pe = /* @__PURE__ */ ((e) => (e.DATE_IS_SMALLER = "Дата меньше минимальной", e.DATE_IS_BIGGER = "Дата больше максимальной", e.DATE_FORMAT_IS_INVALID = "Формат даты указан не верно", e.DATE_IS_REQUIRED = "Выбор даты обязателен", e))(Pe || {});
|
|
533
|
-
export {
|
|
534
|
-
Pe as D,
|
|
535
|
-
Ce as F,
|
|
536
|
-
_e as a,
|
|
537
|
-
Te as v
|
|
538
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./vendor-D8Dozc4m.cjs"),d=require("@salutejs/sdds-finai"),_=require("../formComponents/utils/index.cjs"),B=require("react-hook-form"),M=require("./utils-C93a2mD7.cjs"),O=require("lodash.isequal"),X=require("react"),J=require("../components/TextField/index.cjs"),H=require("styled-components"),z={hiddenInput:"form-segment__hidden-input"},K=H.div.withConfig({displayName:"styled__SegmentGroupContainer"})(["width:100%;display:flex;flex-direction:column;gap:8px;"]),L=H(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;}"],z.hiddenInput);function Q(e,n){return e==null||e===""?[]:Array.isArray(e)?e.map(String):n?[String(e)]:[String(e)]}function W(e,n){return n?e:e.length>0?[e[0]??""]:[]}function Y(e){const n={};return e.forEach(r=>{n[r]=(n[r]||0)+1}),e.filter(r=>n[r]<=1)}function Z(e){return e==null||e===""?[]:Array.isArray(e)?e.map(String):[String(e)]}function U({value:e,onRHFChange:n,onUserChange:r,selectionMode:i="single",label:m,titleCaption:c,hintText:N,hintTrigger:k="hover",hintHasArrow:F=!0,optionsRequired:C,groupProps:E,errorMessage:u,items:b,singleSelectedRequired:p,showError:v=!0}){const g=i==="multiple",{selectedSegmentItems:o}=d.useSegment();X.useEffect(()=>{const a=Q(e,g);if(!O([...a].sort(),[...o].sort())){const l=p?o:Y(o),s=W(l,g);n(s),r==null||r(s)}},[o,p]);const{$mode:w,className:y,style:j,ref:D,name:f,disabled:q,onBlur:V,...x}=E,R=Array.isArray(e)?e.join(", "):String(e??""),S=x.size??"s";return t.jsxDevRuntimeExports.jsxDEV(K,{$mode:w,className:y,style:j,children:[(m||c)&&t.jsxDevRuntimeExports.jsxDEV(L,{required:_.getIsRequired(C),label:m,value:R,hintHasArrow:F,hintText:N??"",hintTrigger:k,className:z.hiddenInput,titleCaption:c,size:S},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:74,columnNumber:7},this),t.jsxDevRuntimeExports.jsxDEV("input",{type:"hidden",name:f,value:String(e),ref:D,disabled:q,onBlur:V},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:87,columnNumber:7},this),t.jsxDevRuntimeExports.jsxDEV(d.SegmentGroup,{...x,selectionMode:i,children:b.map(a=>{const{value:h,...l}=a,s=String(h);return t.jsxDevRuntimeExports.jsxDEV(d.SegmentItem,{value:s,type:"button",...l},s,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:101,columnNumber:13},this)})},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:95,columnNumber:7},this),v&&u&&t.jsxDevRuntimeExports.jsxDEV(d.BodyXS,{color:M.getViewColor("negative"),children:u},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/SegmentControlled.tsx",lineNumber:72,columnNumber:5},this)}const P=e=>{const{name:n,options:r,onChange:i,singleSelectedRequired:m,selectionMode:c="single",view:N,size:k="s",pilled:F,hasBackground:C,stretch:E,orientation:u,className:b,style:p,items:v,label:g,titleCaption:o,hintText:w,hintTrigger:y,hintHasArrow:j,showError:D=!0}=e,f=_.useChangedFormContext(r),{control:q,rules:V,remOptions:x}=f;return t.jsxDevRuntimeExports.jsxDEV(B.Controller,{control:q,name:n,rules:V,...x,render:({field:{onChange:R,value:S,ref:a,onBlur:h,disabled:l,name:s,...I},fieldState:{error:A}})=>{const $={...I,name:n,className:b,style:p,disabled:l,size:k,view:N,pilled:F,hasBackground:C,stretch:E,orientation:u==="vertical"?"vertical":void 0,$mode:u==="vertical"?"column":"row",ref:a,onBlur:h},T=Z(S);return t.jsxDevRuntimeExports.jsxDEV(d.SegmentProvider,{defaultSelected:T,singleSelectedRequired:m,...I,children:t.jsxDevRuntimeExports.jsxDEV(U,{value:S,onRHFChange:G=>R(G),onUserChange:G=>{i==null||i(G,f)},label:g,titleCaption:o,hintText:w,hintTrigger:y,hintHasArrow:j,optionsRequired:r,errorMessage:A==null?void 0:A.message,groupProps:$,selectionMode:c,items:v,singleSelectedRequired:m,showError:D},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/FormSegmentGroup.tsx",lineNumber:90,columnNumber:13},void 0)},`segment-${n}-${T.join("|")}`,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/FormSegmentGroup.tsx",lineNumber:83,columnNumber:11},void 0)}},void 0,!1,{fileName:"/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/formComponents/FormSegments/FormSegmentGroup.tsx",lineNumber:44,columnNumber:5},void 0)};P.displayName="FormSegmentGroup";exports.FormSegmentGroup=P;
|