@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
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { BodyM as
|
|
2
|
-
import {
|
|
3
|
-
import { ModalDFConfirmation as
|
|
4
|
-
import { a as ie, d as
|
|
5
|
-
import { useState as
|
|
6
|
-
import
|
|
7
|
-
import { IconTableRowAdd as
|
|
8
|
-
import
|
|
9
|
-
import { s as
|
|
10
|
-
import { surfaceSolidCard as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { ErrorPage as
|
|
14
|
-
const
|
|
15
|
-
const r = await o(
|
|
1
|
+
import { BodyM as xe, BodyS as Ee, NumberInput as Pe, Button as _e, IconButton as Ae, Popover as Ve, Select as Fe, Spinner as je, H3 as Re } from "@salutejs/sdds-finai";
|
|
2
|
+
import { jsx as m, jsxs as ne, Fragment as De } from "react/jsx-runtime";
|
|
3
|
+
import { ModalDFConfirmation as Le } from "../ModalDFConfirmation/index.mjs";
|
|
4
|
+
import { a as ie, d as K, u as ze, b as qe, c as Ge, C as ke, e as Xe, f as Ke } from "../../chunks/Table-Bj2se1hR.mjs";
|
|
5
|
+
import { useState as V, useCallback as Ue, useEffect as M, useMemo as F, useRef as We, useId as He, useReducer as Je } from "react";
|
|
6
|
+
import Me from "swr";
|
|
7
|
+
import { IconTableRowAdd as $e, IconTrashOutline as Ye } from "@salutejs/plasma-icons";
|
|
8
|
+
import Qe from "swr/mutation";
|
|
9
|
+
import { s as U } from "../../constants/index.mjs";
|
|
10
|
+
import { surfaceSolidCard as Ze, textSecondary as et, textPrimary as tt } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
11
|
+
import Be from "styled-components";
|
|
12
|
+
import { u as nt } from "../../chunks/utils-C5SQhoON.mjs";
|
|
13
|
+
import { ErrorPage as ot } from "../../layouts/ErrorPage/index.mjs";
|
|
14
|
+
const te = async (o, t) => {
|
|
15
|
+
const r = await o(t);
|
|
16
16
|
if (!r.ok) {
|
|
17
|
-
const
|
|
18
|
-
throw
|
|
17
|
+
const i = new Error(), n = await r.json();
|
|
18
|
+
throw i.status = r.status, i.info = n, i.message = `An error occurred while fetching the data.
|
|
19
19
|
|
|
20
|
-
${JSON.stringify(
|
|
20
|
+
${JSON.stringify(n, void 0, 2)}`, i;
|
|
21
21
|
}
|
|
22
22
|
return r.json();
|
|
23
|
-
},
|
|
23
|
+
}, me = class me {
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
let
|
|
27
|
-
const
|
|
25
|
+
me.get = async (t, r) => te(r, t);
|
|
26
|
+
let fe = me;
|
|
27
|
+
const J = class J {
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
J.createOne = (t, r) => te(r, {
|
|
30
30
|
method: "POST",
|
|
31
|
-
body: JSON.stringify(
|
|
32
|
-
}),
|
|
31
|
+
body: JSON.stringify(t)
|
|
32
|
+
}), J.deleteOne = (t, r) => te(r, {
|
|
33
33
|
method: "POST",
|
|
34
|
-
body: JSON.stringify(
|
|
34
|
+
body: JSON.stringify(t),
|
|
35
35
|
pathParams: "delete"
|
|
36
|
-
}),
|
|
36
|
+
}), J.updateOne = (t, r) => te(r, {
|
|
37
37
|
method: "PUT",
|
|
38
|
-
body: JSON.stringify(
|
|
38
|
+
body: JSON.stringify(t)
|
|
39
39
|
});
|
|
40
|
-
let
|
|
40
|
+
let W = J;
|
|
41
41
|
const H = {
|
|
42
42
|
sort: "sort",
|
|
43
43
|
page: "page",
|
|
@@ -46,9 +46,9 @@ const H = {
|
|
|
46
46
|
*/
|
|
47
47
|
pageSize: "pageSize",
|
|
48
48
|
q: "q"
|
|
49
|
-
},
|
|
49
|
+
}, Ne = {
|
|
50
50
|
height: "500px"
|
|
51
|
-
},
|
|
51
|
+
}, Vt = [{
|
|
52
52
|
ansiSqlType: "Real",
|
|
53
53
|
semanticType: "FLOAT",
|
|
54
54
|
jsType: "number"
|
|
@@ -84,997 +84,739 @@ const H = {
|
|
|
84
84
|
ansiSqlType: "Boolean",
|
|
85
85
|
semanticType: "BOOLEAN",
|
|
86
86
|
jsType: "boolean"
|
|
87
|
-
}],
|
|
88
|
-
const r = o == null ? void 0 : o[
|
|
89
|
-
return !r || !
|
|
90
|
-
}, $ = (o) => (
|
|
91
|
-
const
|
|
92
|
-
return
|
|
93
|
-
}, ""),
|
|
94
|
-
container: `${
|
|
95
|
-
bottomBlock: `${
|
|
96
|
-
title: `${
|
|
97
|
-
description: `${
|
|
98
|
-
arrowSelector: `${
|
|
99
|
-
},
|
|
100
|
-
spaceX6: () =>
|
|
101
|
-
spaceX8: () =>
|
|
102
|
-
spaceX4: () =>
|
|
103
|
-
spaceX2: () =>
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
I.container,
|
|
108
|
-
() => Ye,
|
|
109
|
-
I.container,
|
|
110
|
-
G.spaceX6,
|
|
111
|
-
G.spaceX8,
|
|
112
|
-
I.title,
|
|
113
|
-
G.spaceX2,
|
|
114
|
-
I.description,
|
|
115
|
-
() => Qe,
|
|
116
|
-
I.bottomBlock,
|
|
117
|
-
G.spaceX6,
|
|
118
|
-
G.spaceX4
|
|
119
|
-
), on = ({
|
|
87
|
+
}], ye = (o, t) => {
|
|
88
|
+
const r = o == null ? void 0 : o[t.shift()];
|
|
89
|
+
return !r || !t.length ? r : ye(r, t);
|
|
90
|
+
}, $ = (o) => (t) => o.split(",").reduce((n, s) => {
|
|
91
|
+
const a = ye(t, s.split(".")) ?? "";
|
|
92
|
+
return n + a;
|
|
93
|
+
}, ""), G = "AddRowsIconButtonWithPopover", N = {
|
|
94
|
+
container: `${G}_container`,
|
|
95
|
+
bottomBlock: `${G}_bottomBlock`,
|
|
96
|
+
title: `${G}_title`,
|
|
97
|
+
description: `${G}_description`,
|
|
98
|
+
arrowSelector: `${G}_popover-arrow:before`
|
|
99
|
+
}, X = {
|
|
100
|
+
spaceX6: () => U.x6,
|
|
101
|
+
spaceX8: () => U.x8,
|
|
102
|
+
spaceX4: () => U.x4,
|
|
103
|
+
spaceX2: () => U.x2
|
|
104
|
+
}, rt = Be(Ve).withConfig({
|
|
105
|
+
displayName: "AddRowsIconButtonWithPopover__PopoverStyled"
|
|
106
|
+
})(["& .", ",& .", "{background-color:", ";}.", "{padding:", " 14px;border-radius:", ";.", "{margin-bottom:", ";}.", "{color:", ";}.", "{margin-top:", ";display:flex;gap:", ";}}"], N.arrowSelector, N.container, () => Ze, N.container, X.spaceX6, X.spaceX8, N.title, X.spaceX2, N.description, () => et, N.bottomBlock, X.spaceX6, X.spaceX4), st = ({
|
|
120
107
|
onSubmit: o
|
|
121
108
|
}) => {
|
|
122
|
-
const [
|
|
123
|
-
return /* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
lineNumber: 64,
|
|
137
|
-
columnNumber: 7
|
|
138
|
-
}, void 0),
|
|
139
|
-
placement: "bottom",
|
|
140
|
-
offset: [0, 8],
|
|
141
|
-
trigger: "click",
|
|
142
|
-
hasArrow: !0,
|
|
143
|
-
closeOnOverlayClick: !0,
|
|
144
|
-
closeOnEsc: !0,
|
|
145
|
-
isFocusTrapped: !0,
|
|
146
|
-
children: /* @__PURE__ */ d.jsxDEV("div", { className: I.container, children: [
|
|
147
|
-
/* @__PURE__ */ d.jsxDEV(Ie, { bold: !0, className: I.title, children: "Добавить строки" }, void 0, !1, {
|
|
148
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
149
|
-
lineNumber: 77,
|
|
150
|
-
columnNumber: 9
|
|
151
|
-
}, void 0),
|
|
152
|
-
/* @__PURE__ */ d.jsxDEV(Ee, { className: I.description, children: "Введите необходимое количество" }, void 0, !1, {
|
|
153
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
154
|
-
lineNumber: 80,
|
|
155
|
-
columnNumber: 9
|
|
156
|
-
}, void 0),
|
|
157
|
-
/* @__PURE__ */ d.jsxDEV("div", { className: I.bottomBlock, children: [
|
|
158
|
-
/* @__PURE__ */ d.jsxDEV(
|
|
159
|
-
Ve,
|
|
160
|
-
{
|
|
161
|
-
view: "secondary",
|
|
162
|
-
size: "s",
|
|
163
|
-
value: s,
|
|
164
|
-
min: 0,
|
|
165
|
-
onChange: (i, c) => {
|
|
166
|
-
c !== void 0 && t(+c);
|
|
167
|
-
},
|
|
168
|
-
width: 140
|
|
169
|
-
},
|
|
170
|
-
void 0,
|
|
171
|
-
!1,
|
|
172
|
-
{
|
|
173
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
174
|
-
lineNumber: 84,
|
|
175
|
-
columnNumber: 11
|
|
176
|
-
},
|
|
177
|
-
void 0
|
|
178
|
-
),
|
|
179
|
-
/* @__PURE__ */ d.jsxDEV(
|
|
180
|
-
Be,
|
|
181
|
-
{
|
|
182
|
-
size: "s",
|
|
183
|
-
view: "accent",
|
|
184
|
-
onClick: () => {
|
|
185
|
-
o(s), r(!1);
|
|
186
|
-
},
|
|
187
|
-
children: "Добавить"
|
|
188
|
-
},
|
|
189
|
-
void 0,
|
|
190
|
-
!1,
|
|
191
|
-
{
|
|
192
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
193
|
-
lineNumber: 96,
|
|
194
|
-
columnNumber: 11
|
|
195
|
-
},
|
|
196
|
-
void 0
|
|
197
|
-
)
|
|
198
|
-
] }, void 0, !0, {
|
|
199
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
200
|
-
lineNumber: 83,
|
|
201
|
-
columnNumber: 9
|
|
202
|
-
}, void 0)
|
|
203
|
-
] }, void 0, !0, {
|
|
204
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
205
|
-
lineNumber: 76,
|
|
206
|
-
columnNumber: 7
|
|
207
|
-
}, void 0)
|
|
208
|
-
},
|
|
209
|
-
void 0,
|
|
210
|
-
!1,
|
|
211
|
-
{
|
|
212
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/AddRowsIconButtonWithPopover.tsx",
|
|
213
|
-
lineNumber: 58,
|
|
214
|
-
columnNumber: 5
|
|
215
|
-
},
|
|
216
|
-
void 0
|
|
217
|
-
);
|
|
218
|
-
}, se = {
|
|
109
|
+
const [t, r] = V(!1), [i, n] = V(1);
|
|
110
|
+
return /* @__PURE__ */ m(rt, { opened: t, usePortal: !0, onToggle: (s) => r(s), role: "presentation", target: /* @__PURE__ */ m(Ae, { size: "xs", view: "clear", children: /* @__PURE__ */ m($e, { color: "inherit" }) }), placement: "bottom", offset: [0, 8], trigger: "click", hasArrow: !0, closeOnOverlayClick: !0, closeOnEsc: !0, isFocusTrapped: !0, children: /* @__PURE__ */ ne("div", { className: N.container, children: [
|
|
111
|
+
/* @__PURE__ */ m(xe, { bold: !0, className: N.title, children: "Добавить строки" }),
|
|
112
|
+
/* @__PURE__ */ m(Ee, { className: N.description, children: "Введите необходимое количество" }),
|
|
113
|
+
/* @__PURE__ */ ne("div", { className: N.bottomBlock, children: [
|
|
114
|
+
/* @__PURE__ */ m(Pe, { view: "secondary", size: "s", value: i, min: 0, onChange: (s, a) => {
|
|
115
|
+
a !== void 0 && n(+a);
|
|
116
|
+
}, width: 140 }),
|
|
117
|
+
/* @__PURE__ */ m(_e, { size: "s", view: "accent", onClick: () => {
|
|
118
|
+
o(i), r(!1);
|
|
119
|
+
}, children: "Добавить" })
|
|
120
|
+
] })
|
|
121
|
+
] }) });
|
|
122
|
+
}, ce = {
|
|
219
123
|
header: "Удалить строку?",
|
|
220
124
|
body: "Если удалить строку, восстановить ее и продолжить с ней работу будет невозможно.",
|
|
221
|
-
mainButton: {
|
|
222
|
-
|
|
125
|
+
mainButton: {
|
|
126
|
+
view: "negative",
|
|
127
|
+
text: "Удалить"
|
|
128
|
+
},
|
|
129
|
+
secondaryButton: {
|
|
130
|
+
view: "secondary",
|
|
131
|
+
text: "Отменить"
|
|
132
|
+
}
|
|
223
133
|
}, ae = {
|
|
224
134
|
opened: !1,
|
|
225
135
|
mainButtonOnClick: () => {
|
|
226
136
|
},
|
|
227
137
|
secondaryButtonOnClick: () => {
|
|
228
138
|
}
|
|
229
|
-
},
|
|
230
|
-
const
|
|
231
|
-
return delete
|
|
139
|
+
}, A = "NEW_ROW_KEY_XXXXXXXXX", Oe = (o) => !!(o != null && o[A]), ee = (o) => {
|
|
140
|
+
const t = K(o);
|
|
141
|
+
return delete t[A], t;
|
|
232
142
|
};
|
|
233
|
-
function
|
|
143
|
+
function it({
|
|
234
144
|
tableConfigBackendSubRows: o,
|
|
235
|
-
tableConfigBackendEditing:
|
|
145
|
+
tableConfigBackendEditing: t,
|
|
236
146
|
tableConfigColumnsConfig: r,
|
|
237
|
-
setRowsState:
|
|
238
|
-
fetcher:
|
|
239
|
-
onRowMutationError:
|
|
147
|
+
setRowsState: i,
|
|
148
|
+
fetcher: n,
|
|
149
|
+
onRowMutationError: s
|
|
240
150
|
}) {
|
|
241
151
|
const {
|
|
242
|
-
rowUniqIdKey:
|
|
152
|
+
rowUniqIdKey: a,
|
|
243
153
|
rowEditable: e,
|
|
244
|
-
defaultEnabled:
|
|
245
|
-
showToggleEnabledButton:
|
|
246
|
-
saving:
|
|
247
|
-
} =
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
return f[g] = _, f;
|
|
260
|
-
});
|
|
261
|
-
},
|
|
262
|
-
[s]
|
|
263
|
-
);
|
|
264
|
-
J(() => {
|
|
265
|
-
R(h);
|
|
154
|
+
defaultEnabled: l,
|
|
155
|
+
showToggleEnabledButton: u,
|
|
156
|
+
saving: c
|
|
157
|
+
} = t ?? {}, d = (c == null ? void 0 : c.type) ?? "onRowChange", p = !!t, h = !!(t != null && t.defaultEnabled), [C, x] = V([]), [E, j] = V(!!(t != null && t.defaultEnabled)), [T, P] = V(ae), O = Ue((y, S) => {
|
|
158
|
+
const w = (b) => typeof S == "function" ? S(b) : S;
|
|
159
|
+
i((b) => {
|
|
160
|
+
const g = b.findIndex(y);
|
|
161
|
+
if (g === -1)
|
|
162
|
+
return b;
|
|
163
|
+
const f = [...b], v = f[g], R = w(v);
|
|
164
|
+
return f[g] = R, f;
|
|
165
|
+
});
|
|
166
|
+
}, [i]);
|
|
167
|
+
M(() => {
|
|
168
|
+
j(h);
|
|
266
169
|
}, [h]);
|
|
267
|
-
const
|
|
268
|
-
(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
), O = (T) => (T == null ? void 0 : T[D]) === (f == null ? void 0 : f[D]);
|
|
291
|
-
if (!x) {
|
|
292
|
-
N(O, f);
|
|
293
|
-
return;
|
|
294
|
-
}
|
|
295
|
-
try {
|
|
296
|
-
N(
|
|
297
|
-
O,
|
|
298
|
-
(W) => ie(W)
|
|
299
|
-
);
|
|
300
|
-
const T = await U.createOne(
|
|
301
|
-
ee(f),
|
|
302
|
-
t
|
|
303
|
-
);
|
|
304
|
-
N(O, ee(T));
|
|
305
|
-
} catch (T) {
|
|
306
|
-
N(
|
|
307
|
-
O,
|
|
308
|
-
(W) => X(W)
|
|
309
|
-
), i == null || i(T);
|
|
310
|
-
}
|
|
170
|
+
const z = o == null ? void 0 : o.subRowsKey, q = JSON.stringify(e), D = F(() => {
|
|
171
|
+
if (!p || !a)
|
|
172
|
+
return null;
|
|
173
|
+
const y = $(a);
|
|
174
|
+
return {
|
|
175
|
+
editing: {
|
|
176
|
+
rowKeyGetter: y,
|
|
177
|
+
...q && {
|
|
178
|
+
rowEditable(S) {
|
|
179
|
+
const w = JSON.parse(q);
|
|
180
|
+
return $(w.keyInRow)(S) === w.editableValue;
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
async onRowsChange(S, w) {
|
|
184
|
+
if (d === "onRowChange") {
|
|
185
|
+
const b = w.rows[0], g = w.indexes[0];
|
|
186
|
+
if (!b || g === void 0 || g === -1)
|
|
187
|
+
return;
|
|
188
|
+
const f = b.after, v = b.before;
|
|
189
|
+
if (Oe(f)) {
|
|
190
|
+
const I = r == null ? void 0 : r.every((k) => (f == null ? void 0 : f[k.key]) !== void 0), B = (k) => (k == null ? void 0 : k[A]) === (f == null ? void 0 : f[A]);
|
|
191
|
+
if (!I) {
|
|
192
|
+
O(B, f);
|
|
311
193
|
return;
|
|
312
194
|
}
|
|
313
|
-
const _ = (x) => b(x) === b(v);
|
|
314
195
|
try {
|
|
315
|
-
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
x,
|
|
321
|
-
t
|
|
322
|
-
);
|
|
323
|
-
N(
|
|
324
|
-
_,
|
|
325
|
-
X(O.after)
|
|
326
|
-
);
|
|
327
|
-
} catch (x) {
|
|
328
|
-
N(_, (O) => X(O)), i == null || i(x);
|
|
196
|
+
O(B, (L) => ie(L));
|
|
197
|
+
const k = await W.createOne(ee(f), n);
|
|
198
|
+
O(B, ee(k));
|
|
199
|
+
} catch (k) {
|
|
200
|
+
O(B, (L) => K(L)), s == null || s(k);
|
|
329
201
|
}
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
const R = (I) => y(I) === y(v);
|
|
205
|
+
try {
|
|
206
|
+
O(R, (k) => ie(k));
|
|
207
|
+
const I = {
|
|
208
|
+
before: ee(v),
|
|
209
|
+
after: ee(f)
|
|
210
|
+
}, B = await W.updateOne(I, n);
|
|
211
|
+
O(R, K(B.after));
|
|
212
|
+
} catch (I) {
|
|
213
|
+
O(R, (B) => K(B)), s == null || s(I);
|
|
330
214
|
}
|
|
331
|
-
},
|
|
332
|
-
...L && { subRowsKey: L },
|
|
333
|
-
defaultEnabled: u,
|
|
334
|
-
showToggleEnabledButton: l,
|
|
335
|
-
async onToggleEnableEditing(y) {
|
|
336
|
-
y || s((p) => p.filter((w) => !w[D])), R(y);
|
|
337
215
|
}
|
|
216
|
+
},
|
|
217
|
+
...z && {
|
|
218
|
+
subRowsKey: z
|
|
219
|
+
},
|
|
220
|
+
defaultEnabled: l,
|
|
221
|
+
showToggleEnabledButton: u,
|
|
222
|
+
async onToggleEnableEditing(S) {
|
|
223
|
+
S || i((w) => w.filter((b) => !b[A])), j(S);
|
|
338
224
|
}
|
|
339
|
-
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}, [l, p, n, s, q, a, d, i, u, z, r, O]), {
|
|
228
|
+
isMutating: Y,
|
|
229
|
+
trigger: Q
|
|
230
|
+
} = Qe("saving", async () => n({
|
|
231
|
+
method: "PUT",
|
|
232
|
+
body: JSON.stringify(C)
|
|
233
|
+
}), {
|
|
234
|
+
onError(y, S, w) {
|
|
340
235
|
},
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
t,
|
|
345
|
-
i,
|
|
346
|
-
z,
|
|
347
|
-
c,
|
|
348
|
-
m,
|
|
349
|
-
s,
|
|
350
|
-
l,
|
|
351
|
-
L,
|
|
352
|
-
r,
|
|
353
|
-
N
|
|
354
|
-
]
|
|
355
|
-
), { isMutating: Y, trigger: Q } = $e(
|
|
356
|
-
"saving",
|
|
357
|
-
async () => t({ method: "PUT", body: JSON.stringify(S) }),
|
|
358
|
-
{ onError(b, y, p) {
|
|
359
|
-
}, onSuccess(b, y, p) {
|
|
360
|
-
} }
|
|
361
|
-
), Z = V && m === "onSubmit" ? {
|
|
236
|
+
onSuccess(y, S, w) {
|
|
237
|
+
}
|
|
238
|
+
}), Z = E && d === "onSubmit" ? {
|
|
362
239
|
text: "Сохранить",
|
|
363
240
|
isLoading: Y,
|
|
364
|
-
disabled:
|
|
241
|
+
disabled: C.length === 0,
|
|
365
242
|
onClick: () => {
|
|
366
243
|
Q();
|
|
367
244
|
}
|
|
368
245
|
} : null;
|
|
369
246
|
return {
|
|
370
|
-
editing:
|
|
247
|
+
editing: D,
|
|
371
248
|
saveButton: Z,
|
|
372
|
-
...
|
|
249
|
+
...E && {
|
|
373
250
|
createOneRowButton: {
|
|
374
251
|
value: "createOneRow",
|
|
375
|
-
CustomIconRender: () => /* @__PURE__ */
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
void 0,
|
|
386
|
-
!1,
|
|
387
|
-
{
|
|
388
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/features/editing.tsx",
|
|
389
|
-
lineNumber: 288,
|
|
390
|
-
columnNumber: 5
|
|
391
|
-
},
|
|
392
|
-
this
|
|
393
|
-
)
|
|
252
|
+
CustomIconRender: () => /* @__PURE__ */ m(st, { onSubmit: (y) => {
|
|
253
|
+
if (y > 0) {
|
|
254
|
+
const S = Array.from({
|
|
255
|
+
length: y
|
|
256
|
+
}, (w, b) => ({
|
|
257
|
+
[A]: crypto.randomUUID()
|
|
258
|
+
}));
|
|
259
|
+
i((w) => [...S, ...w]);
|
|
260
|
+
}
|
|
261
|
+
} })
|
|
394
262
|
},
|
|
395
263
|
getDeleteOneRowRowInstrument: ({
|
|
396
|
-
row:
|
|
264
|
+
row: y
|
|
397
265
|
}) => ({
|
|
398
266
|
value: "delete",
|
|
399
267
|
label: "Удалить строку",
|
|
400
|
-
contentLeft: /* @__PURE__ */
|
|
401
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/features/editing.tsx",
|
|
402
|
-
lineNumber: 308,
|
|
403
|
-
columnNumber: 18
|
|
404
|
-
}, this),
|
|
268
|
+
contentLeft: /* @__PURE__ */ m(Ye, { size: "xs", color: "inherit" }),
|
|
405
269
|
async onItemSelect() {
|
|
406
|
-
var
|
|
407
|
-
const
|
|
408
|
-
if (!
|
|
270
|
+
var b;
|
|
271
|
+
const S = (b = D == null ? void 0 : D.editing) == null ? void 0 : b.rowKeyGetter;
|
|
272
|
+
if (!S)
|
|
409
273
|
return;
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
(f) => f.filter((v) => v[D] !== b[D])
|
|
414
|
-
);
|
|
274
|
+
const w = async () => {
|
|
275
|
+
if (Oe(y)) {
|
|
276
|
+
i((f) => f.filter((v) => v[A] !== y[A]));
|
|
415
277
|
return;
|
|
416
278
|
}
|
|
417
|
-
const g = (f) =>
|
|
279
|
+
const g = (f) => S(f) === S(y);
|
|
418
280
|
try {
|
|
419
|
-
|
|
281
|
+
O(g, ie(y)), await W.deleteOne(y, n), i((f) => f.filter((v) => !g(v)));
|
|
420
282
|
} catch (f) {
|
|
421
|
-
|
|
283
|
+
O(g, K(y)), s == null || s(f);
|
|
422
284
|
}
|
|
423
285
|
};
|
|
424
|
-
|
|
286
|
+
P({
|
|
425
287
|
opened: !0,
|
|
426
288
|
mainButtonOnClick: () => {
|
|
427
|
-
|
|
289
|
+
w(), P(ae);
|
|
428
290
|
},
|
|
429
291
|
secondaryButtonOnClick: () => {
|
|
430
|
-
|
|
292
|
+
P(ae);
|
|
431
293
|
}
|
|
432
294
|
});
|
|
433
295
|
}
|
|
434
296
|
})
|
|
435
297
|
},
|
|
436
|
-
modalDeletePropsState:
|
|
298
|
+
modalDeletePropsState: T
|
|
437
299
|
};
|
|
438
300
|
}
|
|
439
|
-
const
|
|
301
|
+
const le = (o) => Object.fromEntries(o.map((t) => [t.key, ""])), ct = ({
|
|
440
302
|
tableConfigBackendFiltering: o,
|
|
441
|
-
dispatchParams:
|
|
303
|
+
dispatchParams: t,
|
|
442
304
|
columnsConfig: r
|
|
443
305
|
}) => {
|
|
444
|
-
const
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}, [
|
|
448
|
-
const e =
|
|
449
|
-
() =>
|
|
306
|
+
const i = !!o, n = r ?? [], [s, a] = V(le(n));
|
|
307
|
+
M(() => {
|
|
308
|
+
a(le(n));
|
|
309
|
+
}, [n.length]);
|
|
310
|
+
const e = F(
|
|
311
|
+
() => le(n),
|
|
450
312
|
// удаления колонок нет - поэтому можно полагаться на длину - (ссылка меняется каждый раз после запроса)
|
|
451
313
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
452
|
-
[
|
|
453
|
-
),
|
|
454
|
-
return
|
|
455
|
-
|
|
456
|
-
}, [
|
|
314
|
+
[n.length]
|
|
315
|
+
), l = nt(s, 1e3);
|
|
316
|
+
return M(() => {
|
|
317
|
+
t(["filters", l]);
|
|
318
|
+
}, [l, t]), F(() => !i || !(Object.keys(e).length === Object.keys(s).length) ? null : {
|
|
457
319
|
filtering: {
|
|
458
|
-
state: [
|
|
320
|
+
state: [s, a],
|
|
459
321
|
manualFiltering: !0,
|
|
460
322
|
clearedValue: e
|
|
461
323
|
}
|
|
462
|
-
}, [e,
|
|
324
|
+
}, [e, s, i]);
|
|
463
325
|
};
|
|
464
|
-
function
|
|
465
|
-
const
|
|
466
|
-
return typeof o != "number" &&
|
|
326
|
+
function ve(o) {
|
|
327
|
+
const t = Number(o);
|
|
328
|
+
return typeof o != "number" && t === 0 || Number.isNaN(t) ? null : t;
|
|
467
329
|
}
|
|
468
|
-
function
|
|
330
|
+
function at({
|
|
469
331
|
tableConfigBackendPagination: o,
|
|
470
|
-
params:
|
|
332
|
+
params: t,
|
|
471
333
|
dispatchParams: r
|
|
472
334
|
}) {
|
|
473
335
|
const {
|
|
474
|
-
defaultPage:
|
|
475
|
-
defaultPageSize:
|
|
476
|
-
total:
|
|
477
|
-
pageSizeList:
|
|
336
|
+
defaultPage: i,
|
|
337
|
+
defaultPageSize: n,
|
|
338
|
+
total: s,
|
|
339
|
+
pageSizeList: a
|
|
478
340
|
} = o ?? {};
|
|
479
|
-
return
|
|
480
|
-
if (!
|
|
341
|
+
return F(() => {
|
|
342
|
+
if (!i || !n || !s)
|
|
481
343
|
return null;
|
|
482
|
-
const e =
|
|
344
|
+
const e = ve(t.get(H.page)) ?? i, l = ve(t.get(H.pageSize)) ?? n;
|
|
483
345
|
return {
|
|
484
346
|
pagination: {
|
|
485
|
-
count:
|
|
347
|
+
count: s,
|
|
486
348
|
value: e,
|
|
487
|
-
perPage:
|
|
488
|
-
...
|
|
489
|
-
perPageList:
|
|
349
|
+
perPage: l,
|
|
350
|
+
...a && {
|
|
351
|
+
perPageList: a
|
|
490
352
|
},
|
|
491
|
-
onChange: (
|
|
492
|
-
if (typeof
|
|
353
|
+
onChange: (u, c, d) => {
|
|
354
|
+
if (typeof u != "number")
|
|
493
355
|
return;
|
|
494
|
-
const
|
|
495
|
-
if (
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
if (+e >
|
|
499
|
-
const
|
|
500
|
-
|
|
356
|
+
const p = e !== u, h = !!l && !!c && +l !== c, C = {};
|
|
357
|
+
if (p && (C.page = u, C.pageSize = c), h) {
|
|
358
|
+
C.pageSize = c;
|
|
359
|
+
const x = s ? Math.ceil(s / c) : 0;
|
|
360
|
+
if (+e > x) {
|
|
361
|
+
const E = x;
|
|
362
|
+
C.page = E;
|
|
501
363
|
}
|
|
502
364
|
}
|
|
503
|
-
Object.keys(
|
|
365
|
+
Object.keys(C).length && (r(["pagination", C]), d());
|
|
504
366
|
}
|
|
505
367
|
}
|
|
506
368
|
};
|
|
507
|
-
}, [
|
|
369
|
+
}, [i, n, r, s, t]);
|
|
508
370
|
}
|
|
509
|
-
const
|
|
371
|
+
const lt = {
|
|
510
372
|
debounceDelay: 1e3
|
|
511
373
|
};
|
|
512
|
-
function
|
|
374
|
+
function ut({
|
|
513
375
|
tableConfigBackendSearching: o,
|
|
514
|
-
dispatchParams:
|
|
376
|
+
dispatchParams: t
|
|
515
377
|
}) {
|
|
516
378
|
const {
|
|
517
379
|
enabled: r,
|
|
518
|
-
type:
|
|
519
|
-
defaultSearchQuery:
|
|
520
|
-
showSearchBlock:
|
|
521
|
-
debounceDelay:
|
|
380
|
+
type: i,
|
|
381
|
+
defaultSearchQuery: n,
|
|
382
|
+
showSearchBlock: s,
|
|
383
|
+
debounceDelay: a,
|
|
522
384
|
isDebounceActive: e,
|
|
523
|
-
searchClasses:
|
|
524
|
-
placeholder:
|
|
385
|
+
searchClasses: l,
|
|
386
|
+
placeholder: u
|
|
525
387
|
} = o ?? {};
|
|
526
|
-
return
|
|
388
|
+
return F(() => {
|
|
527
389
|
if (!r)
|
|
528
390
|
return null;
|
|
529
|
-
const
|
|
530
|
-
defaultSearchQuery:
|
|
531
|
-
showSearchBlock:
|
|
532
|
-
debounceDelay:
|
|
391
|
+
const c = {
|
|
392
|
+
defaultSearchQuery: n,
|
|
393
|
+
showSearchBlock: s,
|
|
394
|
+
debounceDelay: a,
|
|
533
395
|
isDebounceActive: e,
|
|
534
|
-
searchClasses:
|
|
535
|
-
placeholder:
|
|
396
|
+
searchClasses: l,
|
|
397
|
+
placeholder: u
|
|
536
398
|
};
|
|
537
|
-
return
|
|
399
|
+
return i === "frontend" ? {
|
|
538
400
|
searching: {
|
|
539
401
|
enabled: !0,
|
|
540
402
|
manualSearching: !1,
|
|
541
|
-
...
|
|
403
|
+
...c
|
|
542
404
|
}
|
|
543
405
|
} : {
|
|
544
406
|
searching: {
|
|
545
407
|
enabled: !0,
|
|
546
408
|
manualSearching: !0,
|
|
547
|
-
onDebouncedChange(
|
|
548
|
-
|
|
409
|
+
onDebouncedChange(d) {
|
|
410
|
+
t(["q", d]);
|
|
549
411
|
},
|
|
550
|
-
...
|
|
551
|
-
debounceDelay:
|
|
412
|
+
...c,
|
|
413
|
+
debounceDelay: c.debounceDelay ?? lt.debounceDelay
|
|
552
414
|
}
|
|
553
415
|
};
|
|
554
|
-
}, [r,
|
|
416
|
+
}, [r, n, s, a, e, l, u, i, t]);
|
|
555
417
|
}
|
|
556
|
-
const
|
|
557
|
-
function
|
|
418
|
+
const oe = "sortKey", ge = "sortOrder";
|
|
419
|
+
function dt(o, t) {
|
|
558
420
|
return o ? {
|
|
559
421
|
columnKey: o,
|
|
560
|
-
direction:
|
|
422
|
+
direction: t ? t.toUpperCase() : "ASC"
|
|
561
423
|
} : null;
|
|
562
424
|
}
|
|
563
|
-
function
|
|
425
|
+
function ft({
|
|
564
426
|
params: o,
|
|
565
|
-
dispatchParams:
|
|
427
|
+
dispatchParams: t,
|
|
566
428
|
tableConfigBackendSorting: r
|
|
567
429
|
}) {
|
|
568
|
-
const
|
|
569
|
-
const
|
|
570
|
-
return [
|
|
571
|
-
let h =
|
|
572
|
-
typeof
|
|
430
|
+
const i = !!r, n = (r == null ? void 0 : r.type) === "backend", s = o.get(oe), a = o.get(ge), e = V([]), l = F(() => {
|
|
431
|
+
const c = dt(s, a), d = c ? [c] : [];
|
|
432
|
+
return [d, (p) => {
|
|
433
|
+
let h = d;
|
|
434
|
+
typeof p == "function" ? h = p(d) : h = p, t([oe, h]);
|
|
573
435
|
}];
|
|
574
|
-
}, [
|
|
575
|
-
return
|
|
436
|
+
}, [t, s, a]), u = i && (n ? l : e);
|
|
437
|
+
return u ? {
|
|
576
438
|
sorting: {
|
|
577
|
-
state:
|
|
578
|
-
manualSorting:
|
|
439
|
+
state: u,
|
|
440
|
+
manualSorting: n
|
|
579
441
|
}
|
|
580
442
|
} : null;
|
|
581
443
|
}
|
|
582
|
-
function
|
|
444
|
+
function gt(o) {
|
|
583
445
|
const {
|
|
584
|
-
subRowsKey:
|
|
446
|
+
subRowsKey: t,
|
|
585
447
|
rowUniqIdKey: r
|
|
586
|
-
} = o ?? {},
|
|
587
|
-
return
|
|
448
|
+
} = o ?? {}, i = !!o;
|
|
449
|
+
return F(() => !i || t === void 0 || r === void 0 ? null : {
|
|
588
450
|
subRows: {
|
|
589
|
-
getSubRows(
|
|
590
|
-
let
|
|
591
|
-
|
|
592
|
-
const
|
|
593
|
-
return Array.isArray(
|
|
451
|
+
getSubRows(n) {
|
|
452
|
+
let s = [t];
|
|
453
|
+
t.includes(".") && (s = t.split("."));
|
|
454
|
+
const a = ye(n, s);
|
|
455
|
+
return Array.isArray(a) ? a : void 0;
|
|
594
456
|
},
|
|
595
457
|
rowKeyGetter: $(r)
|
|
596
458
|
}
|
|
597
|
-
}, [
|
|
459
|
+
}, [i, r, t]);
|
|
598
460
|
}
|
|
599
|
-
function
|
|
600
|
-
const [r,
|
|
461
|
+
function yt(o, t) {
|
|
462
|
+
const [r, i] = t;
|
|
601
463
|
switch (r) {
|
|
602
464
|
case "sortKey": {
|
|
603
|
-
const
|
|
604
|
-
return
|
|
465
|
+
const n = new URLSearchParams(o), [s] = i;
|
|
466
|
+
return s ? (n.set(oe, s.columnKey), n.set(ge, s.direction.toLowerCase())) : (n.delete(oe), n.delete(ge)), n;
|
|
605
467
|
}
|
|
606
468
|
case "pagination": {
|
|
607
|
-
const
|
|
608
|
-
return Object.entries(
|
|
609
|
-
|
|
610
|
-
}),
|
|
469
|
+
const n = new URLSearchParams(o);
|
|
470
|
+
return Object.entries(i).forEach(([s, a]) => {
|
|
471
|
+
a && n.set(s, a.toString());
|
|
472
|
+
}), n;
|
|
611
473
|
}
|
|
612
474
|
case "q": {
|
|
613
|
-
const
|
|
614
|
-
return
|
|
475
|
+
const n = new URLSearchParams(o);
|
|
476
|
+
return n.set(H.q, i), n;
|
|
615
477
|
}
|
|
616
478
|
case "filters": {
|
|
617
|
-
const
|
|
618
|
-
return Object.entries(
|
|
479
|
+
const n = new URLSearchParams(o);
|
|
480
|
+
return Object.entries(i).forEach(([a, e]) => {
|
|
619
481
|
if (!((e == null ? void 0 : e.trim()) ?? "")) {
|
|
620
|
-
|
|
482
|
+
n.delete(a);
|
|
621
483
|
return;
|
|
622
484
|
}
|
|
623
|
-
|
|
624
|
-
}), o.get(H.page) &&
|
|
485
|
+
n.set(a, e);
|
|
486
|
+
}), o.get(H.page) && n.set(H.page, "1"), n;
|
|
625
487
|
}
|
|
626
488
|
default:
|
|
627
489
|
return o;
|
|
628
490
|
}
|
|
629
491
|
}
|
|
630
|
-
const
|
|
492
|
+
const mt = {
|
|
631
493
|
true: !0,
|
|
632
494
|
false: !1
|
|
633
|
-
},
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
];
|
|
643
|
-
function yn({
|
|
495
|
+
}, St = [{
|
|
496
|
+
value: "true",
|
|
497
|
+
label: "true"
|
|
498
|
+
}, {
|
|
499
|
+
value: "false",
|
|
500
|
+
label: "false"
|
|
501
|
+
}];
|
|
502
|
+
function wt({
|
|
644
503
|
row: o,
|
|
645
|
-
column:
|
|
504
|
+
column: t,
|
|
646
505
|
// columnConfig,
|
|
647
506
|
onRowChange: r
|
|
648
507
|
}) {
|
|
649
|
-
const
|
|
650
|
-
return
|
|
508
|
+
const i = ze(), n = o[t.key], s = n === void 0 ? n : n.toString(), a = We(null), e = qe();
|
|
509
|
+
return M(() => {
|
|
651
510
|
setTimeout(() => {
|
|
652
|
-
var
|
|
653
|
-
(
|
|
511
|
+
var l, u;
|
|
512
|
+
(u = (l = a.current) == null ? void 0 : l.click) == null || u.call(l);
|
|
654
513
|
}, 0);
|
|
655
|
-
}, []), /* @__PURE__ */
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
value: i,
|
|
662
|
-
size: Le[s.rowSize].input,
|
|
663
|
-
onChange: (u) => {
|
|
664
|
-
typeof u == "string" && r(
|
|
665
|
-
{ ...o, [n.key]: gn[u] },
|
|
666
|
-
!0
|
|
667
|
-
);
|
|
668
|
-
},
|
|
669
|
-
items: bn
|
|
670
|
-
},
|
|
671
|
-
void 0,
|
|
672
|
-
!1,
|
|
673
|
-
{
|
|
674
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/ui/selectBooleanEditor.tsx",
|
|
675
|
-
lineNumber: 60,
|
|
676
|
-
columnNumber: 5
|
|
677
|
-
},
|
|
678
|
-
this
|
|
679
|
-
);
|
|
514
|
+
}, []), /* @__PURE__ */ m(Fe, { ref: a, portal: e, listWidth: "200px", value: s, size: Ge[i.rowSize].input, onChange: (l) => {
|
|
515
|
+
typeof l == "string" && r({
|
|
516
|
+
...o,
|
|
517
|
+
[t.key]: mt[l]
|
|
518
|
+
}, !0);
|
|
519
|
+
}, items: St });
|
|
680
520
|
}
|
|
681
|
-
const
|
|
521
|
+
const bt = {
|
|
682
522
|
Boolean: {
|
|
683
|
-
component: (o) => /* @__PURE__ */
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}, void 0)
|
|
523
|
+
component: (o) => /* @__PURE__ */ m(wt, { ...o })
|
|
524
|
+
},
|
|
525
|
+
Text: {
|
|
526
|
+
component: "inputString"
|
|
688
527
|
},
|
|
689
|
-
Text: { component: "inputString" },
|
|
690
528
|
// Numbers
|
|
691
|
-
"Integer/Int/Int4": {
|
|
692
|
-
|
|
693
|
-
|
|
529
|
+
"Integer/Int/Int4": {
|
|
530
|
+
component: "inputNumber"
|
|
531
|
+
},
|
|
532
|
+
"Numeric/decimal": {
|
|
533
|
+
component: "inputNumber"
|
|
534
|
+
},
|
|
535
|
+
Real: {
|
|
536
|
+
component: "inputNumber"
|
|
537
|
+
},
|
|
694
538
|
// Dates
|
|
695
|
-
Date: {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
539
|
+
Date: {
|
|
540
|
+
component: "inputString"
|
|
541
|
+
},
|
|
542
|
+
Time: {
|
|
543
|
+
component: "inputString"
|
|
544
|
+
},
|
|
545
|
+
"Timestamp with timezone": {
|
|
546
|
+
component: "inputString"
|
|
547
|
+
},
|
|
548
|
+
"Timestamp without timezone": {
|
|
549
|
+
component: "inputString"
|
|
550
|
+
}
|
|
551
|
+
}, ue = (o, t) => {
|
|
700
552
|
if (!o)
|
|
701
|
-
return
|
|
702
|
-
...
|
|
703
|
-
error: {
|
|
553
|
+
return t ? {
|
|
554
|
+
...bt[t],
|
|
555
|
+
error: {
|
|
556
|
+
value: () => !1
|
|
557
|
+
},
|
|
704
558
|
editable: !0
|
|
705
559
|
} : void 0;
|
|
706
|
-
const {
|
|
707
|
-
|
|
708
|
-
|
|
560
|
+
const {
|
|
561
|
+
error: r,
|
|
562
|
+
editable: i,
|
|
563
|
+
...n
|
|
564
|
+
} = o, s = r ? {
|
|
565
|
+
value: (l) => $(r.value.keyInRow)(l) === r.value.errorValue
|
|
566
|
+
} : void 0, a = i ? (l) => i ? $(i.keyInRow)(l) === i.editableValue : !1 : void 0;
|
|
709
567
|
return {
|
|
710
|
-
...
|
|
711
|
-
|
|
712
|
-
|
|
568
|
+
...s && {
|
|
569
|
+
error: s
|
|
570
|
+
},
|
|
571
|
+
...a && {
|
|
572
|
+
editable: a
|
|
573
|
+
},
|
|
574
|
+
...n
|
|
713
575
|
};
|
|
714
|
-
},
|
|
715
|
-
const {
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
]
|
|
725
|
-
|
|
726
|
-
const i = Object.entries(r).map((e) => {
|
|
727
|
-
const u = e[0];
|
|
728
|
-
switch (u) {
|
|
576
|
+
}, ht = (o, t) => o.map((r) => {
|
|
577
|
+
const {
|
|
578
|
+
columnType: i
|
|
579
|
+
} = r, n = [];
|
|
580
|
+
t != null && t.filtering && n.push(["filtering", {
|
|
581
|
+
component: "input",
|
|
582
|
+
filter: "includes",
|
|
583
|
+
keyInFilterState: r.key
|
|
584
|
+
}]);
|
|
585
|
+
const s = Object.entries(r).map((e) => {
|
|
586
|
+
const l = e[0];
|
|
587
|
+
switch (l) {
|
|
729
588
|
case "subRow": {
|
|
730
|
-
let
|
|
731
|
-
const
|
|
732
|
-
if (!
|
|
733
|
-
return [
|
|
589
|
+
let u = null;
|
|
590
|
+
const c = e[1];
|
|
591
|
+
if (!c)
|
|
592
|
+
return [l, c];
|
|
734
593
|
const {
|
|
735
|
-
contentFormat:
|
|
736
|
-
keyOfColumnInSubRow:
|
|
594
|
+
contentFormat: d,
|
|
595
|
+
keyOfColumnInSubRow: p,
|
|
737
596
|
editingCell: h,
|
|
738
|
-
...
|
|
739
|
-
} =
|
|
740
|
-
return
|
|
741
|
-
...
|
|
742
|
-
...
|
|
743
|
-
contentFormat:
|
|
597
|
+
...C
|
|
598
|
+
} = c, x = h ? ue(h, i) : void 0;
|
|
599
|
+
return u = {
|
|
600
|
+
...C,
|
|
601
|
+
...d && {
|
|
602
|
+
contentFormat: d
|
|
744
603
|
},
|
|
745
|
-
...
|
|
746
|
-
editingCell:
|
|
604
|
+
...x && {
|
|
605
|
+
editingCell: x
|
|
747
606
|
},
|
|
748
|
-
...
|
|
749
|
-
keyOfColumnInSubRow: (
|
|
750
|
-
var
|
|
751
|
-
return typeof
|
|
607
|
+
...p && {
|
|
608
|
+
keyOfColumnInSubRow: (E) => {
|
|
609
|
+
var T, P;
|
|
610
|
+
return typeof c.keyOfColumnInSubRow == "string" || typeof c.keyOfColumnInSubRow == "number" ? c.keyOfColumnInSubRow : ((T = c.keyOfColumnInSubRow) == null ? void 0 : T[E]) ?? ((P = c.keyOfColumnInSubRow) == null ? void 0 : P.default) ?? "";
|
|
752
611
|
}
|
|
753
612
|
}
|
|
754
|
-
}, [
|
|
613
|
+
}, [l, u];
|
|
755
614
|
}
|
|
756
615
|
case "searching": {
|
|
757
|
-
const
|
|
758
|
-
return
|
|
759
|
-
valueInRow(
|
|
760
|
-
return
|
|
616
|
+
const u = e[1];
|
|
617
|
+
return u ? [l, {
|
|
618
|
+
valueInRow(d) {
|
|
619
|
+
return d == null ? void 0 : d[u.keyInRow];
|
|
761
620
|
}
|
|
762
|
-
}] : [
|
|
621
|
+
}] : [l, u];
|
|
763
622
|
}
|
|
764
623
|
case "summaryCell": {
|
|
765
|
-
const
|
|
766
|
-
return !
|
|
624
|
+
const u = "renderSummaryCell", c = e[1];
|
|
625
|
+
return !c || !c.key && !c.text ? [u, void 0] : [u, ({
|
|
626
|
+
row: p
|
|
627
|
+
}) => c.text !== void 0 ? c.text : c.key ? p[c.key] : null];
|
|
767
628
|
}
|
|
768
629
|
case "columnType": {
|
|
769
|
-
const
|
|
770
|
-
if (!
|
|
771
|
-
return
|
|
772
|
-
const
|
|
773
|
-
if (!!
|
|
774
|
-
return
|
|
775
|
-
const h = "editingCell",
|
|
776
|
-
|
|
777
|
-
s
|
|
778
|
-
);
|
|
779
|
-
return t.push([h, S]), a;
|
|
630
|
+
const u = e[1], c = [l, u];
|
|
631
|
+
if (!u)
|
|
632
|
+
return c;
|
|
633
|
+
const d = r.editingCell;
|
|
634
|
+
if (!!d)
|
|
635
|
+
return c;
|
|
636
|
+
const h = "editingCell", C = ue(d, i);
|
|
637
|
+
return n.push([h, C]), c;
|
|
780
638
|
}
|
|
781
639
|
case "editingCell": {
|
|
782
|
-
const
|
|
783
|
-
return [
|
|
640
|
+
const u = e[1], c = ue(u, i);
|
|
641
|
+
return [l, c];
|
|
784
642
|
}
|
|
785
643
|
default:
|
|
786
644
|
return e;
|
|
787
645
|
}
|
|
788
646
|
});
|
|
789
|
-
return Object.fromEntries(
|
|
790
|
-
|
|
791
|
-
...t,
|
|
792
|
-
...i
|
|
793
|
-
]
|
|
794
|
-
);
|
|
795
|
-
}), hn = (o) => {
|
|
647
|
+
return Object.fromEntries([...n, ...s]);
|
|
648
|
+
}), pt = (o) => {
|
|
796
649
|
const {
|
|
797
650
|
data: {
|
|
798
|
-
main:
|
|
651
|
+
main: t,
|
|
799
652
|
topSummary: r,
|
|
800
|
-
bottomSummary:
|
|
653
|
+
bottomSummary: i
|
|
801
654
|
},
|
|
802
|
-
meta: {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
);
|
|
655
|
+
meta: {
|
|
656
|
+
tableConfig: n,
|
|
657
|
+
columns: s
|
|
658
|
+
}
|
|
659
|
+
} = o, a = ht(s, n);
|
|
807
660
|
return {
|
|
808
|
-
rows:
|
|
809
|
-
columnsConfig:
|
|
810
|
-
tableConfigBackend:
|
|
661
|
+
rows: t,
|
|
662
|
+
columnsConfig: a,
|
|
663
|
+
tableConfigBackend: n,
|
|
811
664
|
topSummaryRows: r,
|
|
812
|
-
bottomSummaryRows:
|
|
665
|
+
bottomSummaryRows: i
|
|
813
666
|
};
|
|
814
|
-
},
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
() => ze,
|
|
818
|
-
() => Ce.white,
|
|
819
|
-
() => Oe.height,
|
|
820
|
-
() => K.x6
|
|
821
|
-
), le = ({
|
|
667
|
+
}, Ie = Be.div.withConfig({
|
|
668
|
+
displayName: "TableOtherView__StyledDiv"
|
|
669
|
+
})(["&{border:1px solid ", ";border-radius:", "px;background-color:", ";height:", ";display:flex;justify-content:center;align-items:center;flex-direction:column;& .spinner{margin-bottom:", ";}}"], () => ke.border, () => Xe, () => ke.white, () => Ne.height, () => U.x6), de = ({
|
|
822
670
|
view: o,
|
|
823
|
-
...
|
|
824
|
-
}) => o === "loading" ? /* @__PURE__ */
|
|
825
|
-
/* @__PURE__ */
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableOtherView.tsx",
|
|
832
|
-
lineNumber: 38,
|
|
833
|
-
columnNumber: 9
|
|
834
|
-
}, void 0)
|
|
835
|
-
] }, void 0, !0, {
|
|
836
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableOtherView.tsx",
|
|
837
|
-
lineNumber: 36,
|
|
838
|
-
columnNumber: 7
|
|
839
|
-
}, void 0) : /* @__PURE__ */ d.jsxDEV(ve, { ...n, children: /* @__PURE__ */ d.jsxDEV(
|
|
840
|
-
nn,
|
|
841
|
-
{
|
|
842
|
-
unknownStatus: {
|
|
843
|
-
title: "Похоже, таблица не загружается",
|
|
844
|
-
description: "Попробуйте обновить страницу или зайдите позже"
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
void 0,
|
|
848
|
-
!1,
|
|
849
|
-
{
|
|
850
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableOtherView.tsx",
|
|
851
|
-
lineNumber: 44,
|
|
852
|
-
columnNumber: 7
|
|
853
|
-
},
|
|
854
|
-
void 0
|
|
855
|
-
) }, void 0, !1, {
|
|
856
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableOtherView.tsx",
|
|
857
|
-
lineNumber: 43,
|
|
858
|
-
columnNumber: 5
|
|
859
|
-
}, void 0), Pn = ({
|
|
671
|
+
...t
|
|
672
|
+
}) => o === "loading" ? /* @__PURE__ */ ne(Ie, { ...t, children: [
|
|
673
|
+
/* @__PURE__ */ m(je, { view: "default", className: "spinner", size: "xl" }),
|
|
674
|
+
/* @__PURE__ */ m(Re, { color: tt, children: "Загрузка таблицы" })
|
|
675
|
+
] }) : /* @__PURE__ */ m(Ie, { ...t, children: /* @__PURE__ */ m(ot, { unknownStatus: {
|
|
676
|
+
title: "Похоже, таблица не загружается",
|
|
677
|
+
description: "Попробуйте обновить страницу или зайдите позже"
|
|
678
|
+
} }) }), Ft = ({
|
|
860
679
|
fetcher: o,
|
|
861
|
-
stylesBeforeLoad:
|
|
680
|
+
stylesBeforeLoad: t,
|
|
862
681
|
onRowMutationError: r
|
|
863
682
|
}) => {
|
|
864
|
-
var
|
|
865
|
-
const
|
|
866
|
-
fn,
|
|
867
|
-
void 0,
|
|
868
|
-
() => new URLSearchParams()
|
|
869
|
-
), c = t.toString(), {
|
|
683
|
+
var k, L, Se, we, be, he, pe, Ce, Te;
|
|
684
|
+
const i = He(), [n, s] = Je(yt, void 0, () => new URLSearchParams()), a = n.toString(), {
|
|
870
685
|
data: e,
|
|
871
|
-
isValidating:
|
|
872
|
-
isLoading:
|
|
873
|
-
error:
|
|
874
|
-
} =
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
), h = !!((T = e == null ? void 0 : e.tableConfigBackend) != null && T.editing);
|
|
891
|
-
J(() => {
|
|
892
|
-
h && e != null && e.rows && e != null && e.rows && k(e.rows);
|
|
686
|
+
isValidating: l,
|
|
687
|
+
isLoading: u,
|
|
688
|
+
error: c
|
|
689
|
+
} = Me(() => i + a, async () => {
|
|
690
|
+
const _ = await fe.get({
|
|
691
|
+
params: a
|
|
692
|
+
}, o);
|
|
693
|
+
return pt(_);
|
|
694
|
+
}, {
|
|
695
|
+
keepPreviousData: !0,
|
|
696
|
+
staleTime: 3e3,
|
|
697
|
+
revalidateOnFocus: !1
|
|
698
|
+
}), [d, p] = V(() => {
|
|
699
|
+
var _;
|
|
700
|
+
return (_ = e == null ? void 0 : e.tableConfigBackend) != null && _.editing ? e != null && e.rows ? e.rows : [] : [];
|
|
701
|
+
}), h = !!((k = e == null ? void 0 : e.tableConfigBackend) != null && k.editing);
|
|
702
|
+
M(() => {
|
|
703
|
+
h && e != null && e.rows && e != null && e.rows && p(e.rows);
|
|
893
704
|
}, [e == null ? void 0 : e.rows, h]);
|
|
894
705
|
const {
|
|
895
|
-
editing:
|
|
896
|
-
saveButton:
|
|
897
|
-
createOneRowButton:
|
|
898
|
-
getDeleteOneRowRowInstrument:
|
|
899
|
-
modalDeletePropsState:
|
|
900
|
-
} =
|
|
901
|
-
tableConfigBackendSubRows: (
|
|
902
|
-
tableConfigBackendEditing: (
|
|
706
|
+
editing: C,
|
|
707
|
+
saveButton: x,
|
|
708
|
+
createOneRowButton: E,
|
|
709
|
+
getDeleteOneRowRowInstrument: j,
|
|
710
|
+
modalDeletePropsState: T
|
|
711
|
+
} = it({
|
|
712
|
+
tableConfigBackendSubRows: (L = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : L.subRows,
|
|
713
|
+
tableConfigBackendEditing: (Se = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : Se.editing,
|
|
903
714
|
tableConfigColumnsConfig: e == null ? void 0 : e.columnsConfig,
|
|
904
|
-
setRowsState:
|
|
715
|
+
setRowsState: p,
|
|
905
716
|
rowsFromBackend: (e == null ? void 0 : e.rows) ?? [],
|
|
906
717
|
fetcher: o,
|
|
907
718
|
onRowMutationError: r
|
|
908
|
-
}),
|
|
909
|
-
tableConfigBackendSearching: (
|
|
910
|
-
dispatchParams:
|
|
911
|
-
}),
|
|
912
|
-
tableConfigBackendFiltering: (
|
|
913
|
-
dispatchParams:
|
|
719
|
+
}), P = ut({
|
|
720
|
+
tableConfigBackendSearching: (we = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : we.searching,
|
|
721
|
+
dispatchParams: s
|
|
722
|
+
}), O = ct({
|
|
723
|
+
tableConfigBackendFiltering: (be = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : be.filtering,
|
|
724
|
+
dispatchParams: s,
|
|
914
725
|
columnsConfig: e == null ? void 0 : e.columnsConfig
|
|
915
|
-
}),
|
|
916
|
-
tableConfigBackendPagination: (
|
|
917
|
-
params:
|
|
918
|
-
dispatchParams:
|
|
919
|
-
}),
|
|
920
|
-
tableConfigBackendSorting: (
|
|
921
|
-
params:
|
|
922
|
-
dispatchParams:
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
726
|
+
}), z = at({
|
|
727
|
+
tableConfigBackendPagination: (he = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : he.pagination,
|
|
728
|
+
params: n,
|
|
729
|
+
dispatchParams: s
|
|
730
|
+
}), q = ft({
|
|
731
|
+
tableConfigBackendSorting: (pe = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : pe.sorting,
|
|
732
|
+
params: n,
|
|
733
|
+
dispatchParams: s
|
|
734
|
+
}), D = gt((Ce = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : Ce.subRows), Y = F(() => j ? {
|
|
735
|
+
getRowDropdownConfig: (_) => ({
|
|
736
|
+
items: [j(_)],
|
|
737
|
+
dropdownProps: {
|
|
738
|
+
useItemContentAsButtonContent: !0
|
|
739
|
+
}
|
|
929
740
|
}),
|
|
930
741
|
showInControl: !1,
|
|
931
742
|
openedState: [!0, () => {
|
|
932
743
|
}]
|
|
933
|
-
} : null, [
|
|
934
|
-
if (!(e != null && e.rows) &&
|
|
935
|
-
return /* @__PURE__ */
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
return /* @__PURE__ */ d.jsxDEV(
|
|
943
|
-
le,
|
|
944
|
-
{
|
|
945
|
-
view: "error",
|
|
946
|
-
style: { ...n, ...Q }
|
|
947
|
-
},
|
|
948
|
-
void 0,
|
|
949
|
-
!1,
|
|
950
|
-
{
|
|
951
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableContract.tsx",
|
|
952
|
-
lineNumber: 167,
|
|
953
|
-
columnNumber: 7
|
|
954
|
-
},
|
|
955
|
-
void 0
|
|
956
|
-
);
|
|
744
|
+
} : null, [j]);
|
|
745
|
+
if (!(e != null && e.rows) && u)
|
|
746
|
+
return /* @__PURE__ */ m(de, { view: "loading", style: t });
|
|
747
|
+
const Q = (Te = e == null ? void 0 : e.tableConfigBackend) == null ? void 0 : Te.containerStyle;
|
|
748
|
+
if (!(e != null && e.rows) || c)
|
|
749
|
+
return /* @__PURE__ */ m(de, { view: "error", style: {
|
|
750
|
+
...t,
|
|
751
|
+
...Q
|
|
752
|
+
} });
|
|
957
753
|
if (!(e != null && e.rows))
|
|
958
|
-
return /* @__PURE__ */
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
!1,
|
|
966
|
-
{
|
|
967
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableContract.tsx",
|
|
968
|
-
lineNumber: 175,
|
|
969
|
-
columnNumber: 7
|
|
970
|
-
},
|
|
971
|
-
void 0
|
|
972
|
-
);
|
|
973
|
-
const Z = [
|
|
974
|
-
...E ? [E] : []
|
|
975
|
-
], oe = [
|
|
976
|
-
...V ? [V] : []
|
|
977
|
-
], re = oe.length > 0, b = Z.length > 0, y = b || re, {
|
|
978
|
-
rows: p,
|
|
979
|
-
columnsConfig: w,
|
|
754
|
+
return /* @__PURE__ */ m(de, { view: "error", style: {
|
|
755
|
+
...t,
|
|
756
|
+
...Q
|
|
757
|
+
} });
|
|
758
|
+
const Z = [...x ? [x] : []], re = [...E ? [E] : []], se = re.length > 0, y = Z.length > 0, S = y || se, {
|
|
759
|
+
rows: w,
|
|
760
|
+
columnsConfig: b,
|
|
980
761
|
tableConfigBackend: g,
|
|
981
762
|
topSummaryRows: f,
|
|
982
763
|
bottomSummaryRows: v
|
|
983
|
-
} = e,
|
|
764
|
+
} = e, R = {
|
|
984
765
|
containerStyle: {
|
|
985
766
|
...g == null ? void 0 : g.containerStyle,
|
|
986
|
-
height: (g == null ? void 0 : g.height) ??
|
|
767
|
+
height: (g == null ? void 0 : g.height) ?? Ne.height
|
|
987
768
|
}
|
|
988
|
-
},
|
|
989
|
-
...
|
|
769
|
+
}, I = {
|
|
770
|
+
...D,
|
|
771
|
+
...q,
|
|
990
772
|
...z,
|
|
991
|
-
...
|
|
992
|
-
...
|
|
993
|
-
...
|
|
994
|
-
...N,
|
|
773
|
+
...P,
|
|
774
|
+
...C,
|
|
775
|
+
...O,
|
|
995
776
|
// styles
|
|
996
|
-
...
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
/* @__PURE__ */ d.jsxDEV(
|
|
1004
|
-
qe,
|
|
1005
|
-
{
|
|
1006
|
-
tableConfig: {
|
|
1007
|
-
isLoading: {
|
|
1008
|
-
boolean: u,
|
|
1009
|
-
skeletonRowsCount: p.length ?? 10
|
|
1010
|
-
},
|
|
1011
|
-
...y && {
|
|
1012
|
-
controlBlock: {
|
|
1013
|
-
enableAdaptiveCompress: !1,
|
|
1014
|
-
...b && {
|
|
1015
|
-
rightSideInner: Z
|
|
1016
|
-
},
|
|
1017
|
-
...re && {
|
|
1018
|
-
customFeatures: oe
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
...Y && {
|
|
1023
|
-
rowInstruments: Y
|
|
1024
|
-
},
|
|
1025
|
-
...O,
|
|
1026
|
-
...x
|
|
1027
|
-
},
|
|
1028
|
-
columnConfig: w,
|
|
1029
|
-
rows: S ? m : p,
|
|
1030
|
-
topSummaryRows: f,
|
|
1031
|
-
bottomSummaryRows: v
|
|
777
|
+
...R
|
|
778
|
+
}, B = g ? Object.fromEntries(Object.entries(g).filter(([_]) => !I[_])) : {};
|
|
779
|
+
return /* @__PURE__ */ ne(De, { children: [
|
|
780
|
+
/* @__PURE__ */ m(Ke, { tableConfig: {
|
|
781
|
+
isLoading: {
|
|
782
|
+
boolean: l,
|
|
783
|
+
skeletonRowsCount: w.length ?? 10
|
|
1032
784
|
},
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
columnNumber: 7
|
|
1039
|
-
},
|
|
1040
|
-
void 0
|
|
1041
|
-
),
|
|
1042
|
-
/* @__PURE__ */ d.jsxDEV(
|
|
1043
|
-
_e,
|
|
1044
|
-
{
|
|
1045
|
-
opened: C == null ? void 0 : C.opened,
|
|
1046
|
-
content: {
|
|
1047
|
-
...se,
|
|
1048
|
-
mainButton: {
|
|
1049
|
-
...se.mainButton,
|
|
1050
|
-
onClick: C == null ? void 0 : C.mainButtonOnClick
|
|
785
|
+
...S && {
|
|
786
|
+
controlBlock: {
|
|
787
|
+
enableAdaptiveCompress: !1,
|
|
788
|
+
...y && {
|
|
789
|
+
rightSideInner: Z
|
|
1051
790
|
},
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
onClick: C == null ? void 0 : C.secondaryButtonOnClick
|
|
791
|
+
...se && {
|
|
792
|
+
customFeatures: re
|
|
1055
793
|
}
|
|
1056
794
|
}
|
|
1057
795
|
},
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
{
|
|
1061
|
-
fileName: "/home/runner/work/dais-ui/dais-ui/packages/ui-kit/src/components/TableContract/TableContract.tsx",
|
|
1062
|
-
lineNumber: 262,
|
|
1063
|
-
columnNumber: 7
|
|
796
|
+
...Y && {
|
|
797
|
+
rowInstruments: Y
|
|
1064
798
|
},
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
799
|
+
...B,
|
|
800
|
+
...I
|
|
801
|
+
}, columnConfig: b, rows: C ? d : w, topSummaryRows: f, bottomSummaryRows: v }),
|
|
802
|
+
/* @__PURE__ */ m(Le, { opened: T == null ? void 0 : T.opened, content: {
|
|
803
|
+
...ce,
|
|
804
|
+
mainButton: {
|
|
805
|
+
...ce.mainButton,
|
|
806
|
+
onClick: T == null ? void 0 : T.mainButtonOnClick
|
|
807
|
+
},
|
|
808
|
+
secondaryButton: {
|
|
809
|
+
...ce.secondaryButton,
|
|
810
|
+
onClick: T == null ? void 0 : T.secondaryButtonOnClick
|
|
811
|
+
}
|
|
812
|
+
} })
|
|
813
|
+
] });
|
|
1072
814
|
};
|
|
1073
815
|
export {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
816
|
+
Vt as DATA_TYPES,
|
|
817
|
+
fe as DataViewApi,
|
|
818
|
+
W as EditingApi,
|
|
1077
819
|
H as Q_PARAMS,
|
|
1078
|
-
|
|
1079
|
-
|
|
820
|
+
Ft as TableContract,
|
|
821
|
+
te as fetcherWrapper
|
|
1080
822
|
};
|