@daisforge/ui 1.12.2 → 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-CBi-2MtJ.mjs → AnalyticalWidget-DnHHyjnv.mjs} +144 -144
- package/chunks/{ApprovalCenter-ClCoA3cr.mjs → ApprovalCenter-BREfTiqK.mjs} +1 -1
- package/chunks/{ApprovalCenter-oACSjXxE.cjs → ApprovalCenter-BRUYlLoC.cjs} +1 -1
- package/chunks/{BlockTitle-DTaIqiFF.mjs → BlockTitle-BNm60_dx.mjs} +1 -1
- package/chunks/{BlockTitle-CylSY2DM.cjs → BlockTitle-CCvkcUe_.cjs} +1 -1
- package/chunks/{FiltersActions-D1aQXh5d.cjs → FiltersActions-49uNOjLq.cjs} +1 -1
- package/chunks/{FiltersActions-C3yWFtQT.mjs → FiltersActions-Be9uBM67.mjs} +3 -3
- package/chunks/{GridDND-BP_H26We.cjs → GridDND-BAHGzR5e.cjs} +1 -1
- package/chunks/{GridDND-rVSi0xX1.mjs → GridDND-rY1o5ItA.mjs} +1 -1
- package/chunks/ListOfFilters-BQyYeGQG.cjs +1 -0
- package/chunks/ListOfFilters-DRrawM8s.mjs +260 -0
- package/chunks/{MassActions-D4nb1_gx.mjs → MassActions-ByZr-Wjd.mjs} +2 -2
- package/chunks/{MassActions-BCgI08G9.cjs → MassActions-CxF6wvlS.cjs} +1 -1
- package/chunks/{PageTitle-B0tuR3fU.mjs → PageTitle-BLBN06Xe.mjs} +1 -1
- package/chunks/{PageTitle-BC0PnHgQ.cjs → PageTitle-j-pmmoZ9.cjs} +1 -1
- 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-Bj2se1hR.mjs → Table-XpsCe-vS.mjs} +1161 -1161
- package/chunks/TableCanvas-AwmzU0Jc.cjs +30 -0
- package/chunks/{TableCanvas-Y53zQ7M0.mjs → TableCanvas-BnwR-C1X.mjs} +2561 -2548
- package/chunks/TableGlide-BAH73oGi.cjs +1 -0
- package/chunks/{TableGlide-CuBMIM6Q.mjs → TableGlide-o9aqEk4d.mjs} +2184 -2126
- 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/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +1 -1
- 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/Combobox/index.cjs +1 -1
- package/components/Combobox/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/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/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 +1 -1
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/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 +1 -1
- 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 +1 -1
- package/components/TableContract/index.mjs +1 -1
- 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/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +1 -1
- package/components/TourWidget/index.mjs +1 -1
- 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 +1 -1
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +1 -1
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +1 -1
- package/index.cjs +1 -1
- package/index.mjs +11 -11
- 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/package.json +6 -6
- package/chunks/AnalyticalWidget-fBDe37Ur.cjs +0 -43
- package/chunks/ListOfFilters-DgInAZFi.cjs +0 -1
- package/chunks/ListOfFilters-IEPKSKxx.mjs +0 -243
- package/chunks/Stories--_pE4YtR.mjs +0 -668
- package/chunks/Stories-Dvh6rMeV.cjs +0 -1
- package/chunks/Table-CnWVNNoW.cjs +0 -31
- package/chunks/TableCanvas-eYhmqTbp.cjs +0 -30
- package/chunks/TableGlide-CvMz7x7a.cjs +0 -1
package/index.mjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { Accordion as t, AccordionItem as n, Attach as i, Avatar as o, AvatarGroup as v, Badge as s, BodyL as c, BodyM as l, BodyS as u, BodyXS as D, BodyXXS as g, Breadcrumbs as d, Button as S, ButtonBase as T, ButtonGroup as A, Calendar as f, CalendarBase as h, CalendarBaseRange as p, CalendarDouble as L, CalendarDoubleRange as H, Card as k, CardContent as M, CardInnerContent as O, Carousel as x, CarouselItem as P, Cell as m, CellTextbox as y, CellTextboxLabel as I, CellTextboxSubtitle as B, CellTextboxTitle as N, Checkbox as C, Chip as G, ChipGroup as W, CodeField as R, CodeInput as b, Col as _, Counter as w, DatePickerRange as F, DateTimePicker as E, Divider as Y, Drawer as U, DrawerContent as X, DrawerFooter as V, DrawerHeader as K, Dropdown as q, Dropzone as Q, DsplL as j, DsplM as z, DsplS as J, EmbedIconButton as Z, Flow as $, Grid as ee, H1 as re, H2 as ae, H3 as te, H4 as ne, H5 as ie, IconButton as oe, IconTabItem as ve, Image as se, Indicator as ce, InformationWrapper as le, LineSkeleton as ue, Link as De, LinkButton as ge, List as de, ListItem as Se, Mask as Te, Modal as Ae, Note as fe, NotificationsProvider as he, NumberInput as pe, Overlay as Le, Pagination as He, Popover as ke, Popup as Me, PopupProvider as Oe, Portal as xe, Price as Pe, Progress as me, ProgressBarCircular as ye, RadioGroup as Ie, Radiobox as Be, Range as Ne, Rating as Ce, RectSkeleton as Ge, Row as We, SSRProvider as Re, SegmentGroup as be, SegmentIconItem as _e, SegmentItem as we, SegmentProvider as Fe, Select as Ee, Sheet as Ye, Slider as Ue, Spinner as Xe, Steps as Ve, TabItem as Ke, Table as qe, Tabs as Qe, TabsContext as je, TabsController as ze, TextFieldGroup as Je, TextL as Ze, TextM as $e, TextS as er, TextSkeleton as rr, TextXS as ar, TimePicker as tr, Toast as nr, ToastProvider as ir, Toolbar as or, ToolbarDivider as vr, Tooltip as sr, Tour as cr, Tree as lr, ViewContainer as ur, addFocus as Dr, closeNotification as gr, counterTokens as dr, datePickerClasses as Sr, datePickerTokens as Tr, dateTimePickerClasses as Ar, dateTimePickerTokens as fr, dividerTokens as hr, informationWrapperClasses as pr, informationWrapperTokens as Lr, mediaQuery as Hr, modalClasses as kr, noteClasses as Mr, noteTokens as Or, numberFormatter as xr, numberInputClasses as Pr, numberInputTokens as mr, popupClasses as yr, priceClasses as Ir, rangeTokens as Br, ratingClasses as Nr, ratingTokens as Cr, sheetClasses as Gr, textFieldTokens as Wr, toolbarTokens as Rr, usePopupContext as br, useSegment as _r, useToast as wr, withSkeleton as Fr } from "@salutejs/sdds-finai";
|
|
2
2
|
import { AiAgentPopover as Yr } from "./components/AiAgentPopover/index.mjs";
|
|
3
|
-
import { A as Xr, c as Vr, T as Kr, a as qr, b as Qr } from "./chunks/AnalyticalWidget-
|
|
4
|
-
import { A as zr } from "./chunks/ApprovalCenter-
|
|
3
|
+
import { A as Xr, c as Vr, T as Kr, a as qr, b as Qr } from "./chunks/AnalyticalWidget-DnHHyjnv.mjs";
|
|
4
|
+
import { A as zr } from "./chunks/ApprovalCenter-BREfTiqK.mjs";
|
|
5
5
|
import { Autocomplete as Zr } from "./components/Autocomplete/index.mjs";
|
|
6
6
|
import { AutocompleteSearch as ea } from "./components/AutocompleteSearch/index.mjs";
|
|
7
7
|
import { BlockGradientScroll as aa } from "./components/BlockGradientScroll/index.mjs";
|
|
8
|
-
import { B as na, b as ia } from "./chunks/BlockTitle-
|
|
8
|
+
import { B as na, b as ia } from "./chunks/BlockTitle-BNm60_dx.mjs";
|
|
9
9
|
import { Box as va } from "./components/Box/index.mjs";
|
|
10
10
|
import { Collapse as ca } from "./components/Collapse/index.mjs";
|
|
11
|
-
import { C as ua, g as Da, h as ga, S as da, i as Sa, j as Ta, D as Aa, k as fa, l as ha, m as pa, n as La, F as Ha, p as ka, H as Ma, q as Oa, r as xa, L as Pa, s as ma, M as ya, N as Ia, R as Ba, c as Na, e as Ca, f as Ga, t as Wa, v as Ra, w as ba, x as _a, y as wa, z as Fa, B as Ea, E as Ya, G as Ua, I as Xa, J as Va, K as Ka, O as qa, P as Qa, Q as ja, U as za, V as Ja, W as Za, b as $a, u as et, X as rt } from "./chunks/Table-
|
|
11
|
+
import { C as ua, g as Da, h as ga, S as da, i as Sa, j as Ta, D as Aa, k as fa, l as ha, m as pa, n as La, F as Ha, p as ka, H as Ma, q as Oa, r as xa, L as Pa, s as ma, M as ya, N as Ia, R as Ba, c as Na, e as Ca, f as Ga, t as Wa, v as Ra, w as ba, x as _a, y as wa, z as Fa, B as Ea, E as Ya, G as Ua, I as Xa, J as Va, K as Ka, O as qa, P as Qa, Q as ja, U as za, V as Ja, W as Za, b as $a, u as et, X as rt } from "./chunks/Table-XpsCe-vS.mjs";
|
|
12
12
|
import { DatePicker as tt } from "./components/DatePicker/index.mjs";
|
|
13
13
|
import { DrawerDF as it, DrawerDFContent as ot, DrawerDFFooter as vt, DrawerDFHeader as st, drawerDFClassNames as ct } from "./components/DrawerDF/index.mjs";
|
|
14
14
|
import { EmbeddedButton as ut, Popover as Dt, Tooltip as gt } from "@salutejs/sdds-finai/beta";
|
|
15
15
|
import { E as St, e as Tt } from "./chunks/EmptyState-Bct6Wrxv.mjs";
|
|
16
|
-
import { G as ft, a as ht, f as pt, b as Lt, g as Ht } from "./chunks/GridDND-
|
|
16
|
+
import { G as ft, a as ht, f as pt, b as Lt, g as Ht } from "./chunks/GridDND-rY1o5ItA.mjs";
|
|
17
17
|
import { IconButtonDots as Mt, IconButtonFilter as Ot, iconButtonFilterClassNames as xt } from "./components/IconButton/index.mjs";
|
|
18
18
|
import { IconSvgSprite as mt } from "./components/IconSvgSprite/index.mjs";
|
|
19
19
|
import { L as It, a as Bt, t as Nt } from "./chunks/LeftPanel-bKmeEOHx.mjs";
|
|
20
|
-
import { L as Gt, i as Wt, l as Rt, u as bt } from "./chunks/ListOfFilters-
|
|
21
|
-
import { A as wt, a as Ft, b as Et, C as Yt, c as Ut, d as Xt, e as Vt, D as Kt, E as qt, I as Qt, f as jt, g as zt, M as Jt, h as Zt, i as $t, P as en, j as rn, R as an, T as tn } from "./chunks/MassActions-
|
|
20
|
+
import { L as Gt, i as Wt, l as Rt, u as bt } from "./chunks/ListOfFilters-DRrawM8s.mjs";
|
|
21
|
+
import { A as wt, a as Ft, b as Et, C as Yt, c as Ut, d as Xt, e as Vt, D as Kt, E as qt, I as Qt, f as jt, g as zt, M as Jt, h as Zt, i as $t, P as en, j as rn, R as an, T as tn } from "./chunks/MassActions-ByZr-Wjd.mjs";
|
|
22
22
|
import { MassActionsStatic as on } from "./components/MassActionsStatic/index.mjs";
|
|
23
23
|
import { ModalDF as sn, ModalDFBackIconButton as cn, ModalDFContent as ln, ModalDFDivider as un, ModalDFDotsIconButton as Dn, ModalDFFooter as gn, ModalDFHeader as dn, ModalDFLeft as Sn, ModalDFMain as Tn, ModalDFServiceButtons as An, modalDFClassNames as fn } from "./components/ModalDF/index.mjs";
|
|
24
24
|
import { ModalDFConfirmation as pn, ModalDFConfirmationFooter as Ln } from "./components/ModalDFConfirmation/index.mjs";
|
|
25
25
|
import { Notification as kn, addNotification as Mn } from "./components/Notification/index.mjs";
|
|
26
26
|
import { NumberFormat as xn } from "./components/NumberFormat/index.mjs";
|
|
27
27
|
import { NumberFormatAmount as mn } from "./components/NumberFormatAmount/index.mjs";
|
|
28
|
-
import { P as In, p as Bn } from "./chunks/PageTitle-
|
|
28
|
+
import { P as In, p as Bn } from "./chunks/PageTitle-BLBN06Xe.mjs";
|
|
29
29
|
import { PopoverDF as Cn, PopoverDFBody as Gn, PopoverDFFooter as Wn, PopoverDFHeader as Rn } from "./components/PopoverDF/index.mjs";
|
|
30
30
|
import { PopupDF as _n, PopupDFBody as wn, PopupDFFooter as Fn, PopupDFHeader as En } from "./components/PopupDF/index.mjs";
|
|
31
31
|
import { S as Un, s as Xn, a as Vn } from "./chunks/SplitView-C8de8YKV.mjs";
|
|
32
|
-
import { S as qn, a as Qn, s as jn } from "./chunks/Stories
|
|
33
|
-
import { T as Jn } from "./chunks/TableCanvas-
|
|
32
|
+
import { S as qn, a as Qn, s as jn } from "./chunks/Stories-COpgkk_M.mjs";
|
|
33
|
+
import { T as Jn } from "./chunks/TableCanvas-BnwR-C1X.mjs";
|
|
34
34
|
import "@glideappsfinal/glide-data-grid";
|
|
35
35
|
import { DATA_TYPES as $n, DataViewApi as ei, EditingApi as ri, Q_PARAMS as ai, TableContract as ti, fetcherWrapper as ni } from "./components/TableContract/index.mjs";
|
|
36
36
|
import { TableTabs as oi, TableTabsContext as vi, tableTabsClassNames as si, useTableTabsContext as ci } from "./components/TableTabs/index.mjs";
|
|
@@ -54,7 +54,7 @@ import { FormTextField as go } from "./formComponents/FormTextField/index.mjs";
|
|
|
54
54
|
import { getIsRequired as To, getPriorityRequired as Ao, getRuleValue as fo, hasValidationRule as ho, useChangedFormContext as po } from "./formComponents/utils/index.mjs";
|
|
55
55
|
import { C as Ho } from "./chunks/Container-CV4sT-bB.mjs";
|
|
56
56
|
import { ErrorPage as Mo, STATUSES as Oo, UNKNOWN_STATUS_OBJ as xo, errorPageClassNames as Po } from "./layouts/ErrorPage/index.mjs";
|
|
57
|
-
import { b as yo, c as Io, d as Bo, a as No, e as Co, f as Go, R as Wo, S as Ro, u as bo } from "./chunks/FiltersActions-
|
|
57
|
+
import { b as yo, c as Io, d as Bo, a as No, e as Co, f as Go, R as Wo, S as Ro, u as bo } from "./chunks/FiltersActions-Be9uBM67.mjs";
|
|
58
58
|
import { LAYOUT_SPACING as wo, LAYOUT_VARIANTS as Fo, Layout as Eo, LayoutDfClassNames as Yo } from "./layouts/Layout/index.mjs";
|
|
59
59
|
import { PageLayout as Xo } from "./layouts/PageLayout/index.mjs";
|
|
60
60
|
import { compatible as Ko, standard as qo } from "@salutejs/plasma-typo";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/FiltersActions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../chunks/FiltersActions-49uNOjLq.cjs");exports.useAdaptiveFilters=e.useAdaptiveFilters;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../chunks/FiltersActions-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../chunks/FiltersActions-49uNOjLq.cjs");exports.FiltersActions=t.FiltersActions;exports.FiltersActionsDotsIconButton=t.FiltersActionsDotsIconButton;exports.FiltersActionsFiltersButton=t.FiltersActionsFiltersButton;exports.FiltersActionsListOfFilters=t.FiltersActionsListOfFilters;exports.FiltersActionsTabItem=t.FiltersActionsTabItem;exports.FiltersActionsTabs=t.FiltersActionsTabs;exports.RedDot=t.RedDot;exports.useAdaptiveFilters=t.useAdaptiveFilters;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as i, c as e, d as o, a, e as r, f as l, R as n, u as F } from "../../chunks/FiltersActions-
|
|
1
|
+
import { b as i, c as e, d as o, a, e as r, f as l, R as n, u as F } from "../../chunks/FiltersActions-Be9uBM67.mjs";
|
|
2
2
|
export {
|
|
3
3
|
i as FiltersActions,
|
|
4
4
|
e as FiltersActionsDotsIconButton,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daisforge/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"module": "./index.mjs",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"registry": "https://registry.npmjs.org/"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@glideappsfinal/glide-data-grid": "^6.
|
|
35
|
-
"@salutejs/plasma-icons": "^1.
|
|
36
|
-
"@salutejs/plasma-typo": "^0.
|
|
37
|
-
"@salutejs/sdds-finai": "^0.
|
|
38
|
-
"@salutejs/sdds-themes": "^0.
|
|
34
|
+
"@glideappsfinal/glide-data-grid": "^6.1.8",
|
|
35
|
+
"@salutejs/plasma-icons": "^1.244.0",
|
|
36
|
+
"@salutejs/plasma-typo": "^0.48.0",
|
|
37
|
+
"@salutejs/sdds-finai": "^0.351.0",
|
|
38
|
+
"@salutejs/sdds-themes": "^0.73.0",
|
|
39
39
|
"canvas-hypertxt": "^1.0.3",
|
|
40
40
|
"lodash.clonedeep": "^4.5.0",
|
|
41
41
|
"lodash.isequal": "^4.5.0",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";const z=require("../components/IconButton/index.cjs"),a=require("@salutejs/sdds-finai"),i=require("react/jsx-runtime"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),n=require("styled-components"),y=require("./utils-DKi1rqLX.cjs"),h=require("react"),J=require("../components/Collapse/index.cjs"),D=require("@salutejs/plasma-icons"),K=n(a.Chip).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChip"})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),Q=n(a.ChipGroup).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChipGroup"})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);"]),O=({chips:e,commonView:t="default",commonSize:o="xs",opened:s=!1,...d})=>{const g=y.useDebouncedValue(s,300,!1);return i.jsx(J.Collapse,{isOpen:g,unMountOnClose:!0,children:i.jsx(Q,{view:t,size:o,isCommonChipStyles:!1,...d,children:e.map(({key:l,view:S,...c},v)=>h.createElement(K,{size:"xs",appearance:"transparent",...c,key:l??`${c==null?void 0:c.name}-${v}`}))})})},Z=n.div.withConfig({displayName:"TooltipList__StyledTooltipContent"})(["color:",";",";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>r.inverseTextPrimary,()=>n.css(r.bodyXS)),tt=({groupLabel:e,items:t})=>i.jsxs(Z,{children:[i.jsx("span",{children:e}),i.jsx("ul",{children:t.map((o,s)=>i.jsx("li",{children:o},`${o}-${s}`))})]}),et=n.div.withConfig({displayName:"TooltipList__FullWidthWrapper"})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]),it=({groupLabel:e,items:t,children:o,fullWidth:s,...d})=>{const g=t.length>0,l=i.jsx(a.Tooltip,{usePortal:!0,size:"s",mouseEnterDelay:500,...d,trigger:g?d.trigger??"hover":"none",text:g?i.jsx(tt,{groupLabel:e,items:t}):null,opened:g?d.opened:!1,children:o});return s?i.jsx(et,{children:l}):l},nt={l:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"}},m:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}},s:{xl:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}}},at={l:{topSlot:!0,middleSlot:!0},m:{topSlot:!0,middleSlot:!1},s:{topSlot:!0,middleSlot:!1}},m={root:"analytical-widget",header:"analytical-widget__header",popoverInfo:"analytical-widget__popover-info",topSlot:"analytical-widget__top-slot",middleSlot:"analytical-widget__middle-slot",contentSlot:"analytical-widget__content",headerActions:"analytical-widget__header-actions"},lt={BodyL:a.BodyL,BodyM:a.BodyM,BodyS:a.BodyS,BodyXS:a.BodyXS,BodyXXS:a.BodyXXS,DsplL:a.DsplL,DsplM:a.DsplM,DsplS:a.DsplS,H1:a.H1,H2:a.H2,H3:a.H3,H4:a.H4,H5:a.H5,TextL:a.TextL,TextM:a.TextM,TextS:a.TextS,TextXS:a.TextXS};function $({variant:e,children:t,refTypography:o,...s}){const d=lt[e];return i.jsx(d,{...s,ref:o,children:t})}$.displayName="Typography";const L="typography-with-auto-tooltip-root";let A=!1,w=null,R=0;function G(){if(typeof document>"u")return;const e=document.getElementById(L);e&&e.querySelectorAll("[id^='plasma-popover-root']:empty").forEach(t=>t.remove())}function dt(){A||(A=!0,w=setTimeout(()=>{A=!1,w=null,G()},0))}function ot(){w&&(clearTimeout(w),w=null),A=!1}function rt(){w&&(clearTimeout(w),w=null),A=!1,G()}function st(){if(!(typeof document>"u")){if(R+=1,R===1){const e=document.createElement("div");e.id=L,document.body.appendChild(e)}return()=>{if(R-=1,R===0){const e=document.getElementById(L);e&&(e.querySelectorAll("[id^='plasma-popover-root']").length>0||e.remove())}}}}function ct(){return{schedule:dt,flush:rt,cancel:ot,getContainerId:()=>L,createContainer:st}}const pt=n(a.Tooltip).withConfig({displayName:"TypographyWithAutoTooltipstyled__StyledTooltip"})(["&.popover-target{width:100%;}"]),ht=n.div.withConfig({displayName:"TypographyWithAutoTooltipstyled__StyleTooltipWrapper"})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]),k=({tooltipText:e,tooltipProps:t,lines:o=1,className:s,children:d,...g})=>{const{mouseEnterDelay:l=500,mouseLeaveDelay:S=0,...c}=t||{},v=h.useRef(null),[T,j]=h.useState(!1),C=h.useRef(),{schedule:u,getContainerId:W,createContainer:N}=ct(),I=h.useCallback(()=>{if(!v.current)return!1;const p=v.current;if(o>1)return p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth;if(p.scrollWidth>p.clientWidth)return!0;try{const x=document.createRange();x.selectNodeContents(p);const V=x.getBoundingClientRect().width,U=p.getBoundingClientRect().width;return x.detach(),V>U}catch{return!1}},[o]),B=h.useCallback(()=>{I()&&(C.current=setTimeout(()=>{j(!0)},l))},[I,l]),_=h.useCallback(()=>{clearTimeout(C.current),setTimeout(()=>{j(!1),u()},S)},[S,u]),{variant:M,bold:E,size:b,...f}=g,P={variant:M,...E!==void 0&&{bold:E},...b!==void 0&&{size:b},...f,refTypography:v,onMouseEnter:p=>{var x;(x=f.onMouseEnter)==null||x.call(f,p)},onMouseLeave:p=>{var x;(x=f.onMouseLeave)==null||x.call(f,p)},style:{...y.truncateText({lines:o}),...f.style||{}},children:d},X=i.jsx($,{...P,children:d});return h.useEffect(()=>N(),[N]),h.useEffect(()=>()=>{clearTimeout(C.current),u()},[u]),i.jsx(ht,{className:s,onMouseEnter:B,onMouseLeave:_,children:T?i.jsx(pt,{opened:T,text:e??"",target:X,frame:W(),...c}):X})},yt=()=>n.css(r.bodyMBold),F=()=>n.css(r.bodyM),gt=n.header.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeader"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.","){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"],m.popoverInfo),ut=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLeftSlot"})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]),mt=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleContainer"})(["margin:0;display:flex;flex-shrink:1;min-width:0;"]);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitle"})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';",";color:",";"],()=>yt(),()=>r.textPrimary);const xt=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),ft=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]),wt=n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledAfterTitle"})(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';"," color:",";text-transform:uppercase;"],()=>F(),()=>r.textTertiary),St=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsContainer"})(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]),vt=n.div.attrs({className:m.headerActions}).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsWrapper"})(["position:absolute;display:flex;left:0;top:0;transform:translateX( ","px );padding-left:","px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,"," 0%,"," 15%,"," 40%,"," 100% );"],e=>e.$translateX?e.$translateX:0,e=>e.$translateX?20:0,r.surfaceClear,r.surfaceClear,r.surfaceSolidCard,r.surfaceSolidCard);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitle"})([""," flex-shrink:1;margin:0;min-width:0;color:",";"],()=>F(),()=>r.textSecondary);n($).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"})(["color:",";"],()=>r.textSecondary);const Wt=n(a.Link).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleLink"})(["display:flex;min-width:0;flex-shrink:1;"]);n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"})(["flex-shrink:1;margin:0;min-width:0;"]);const Ct=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledRightSlot"})(["align-self:start;"]),Tt=n(a.IconButton).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLinkIconButton"})(["&&{width:24px;height:24px;color:",";}"],()=>r.textSecondary),q=({title:e,titleTooltipProps:t})=>i.jsx(xt,{tooltipText:e,tooltipProps:{placement:"top",...t},variant:"BodyM",bold:!0,style:{color:r.textPrimary,wordBreak:"normal"},lines:1,children:e}),Y=({title:e,titleTooltipProps:t,badge:o,badgeStyles:s,subtitle:d,subtitleTooltipProps:g,infoTooltipText:l,infoTooltipProps:S,href:c,hrefProps:v,rightSlot:T,className:j,titleLinkProps:C})=>{const u=h.useRef(null),W=h.useRef(null),[N,I]=h.useState(0);return h.useLayoutEffect(()=>{const B=()=>{if(u.current&&W.current){const M=u.current.offsetWidth,b=W.current.offsetWidth-M;I(b>0?-b-4:0)}},_=y.createSafeResizeObserver(B);return u.current&&_.observe(u.current),W.current&&_.observe(W.current),B(),()=>_.disconnect()},[]),i.jsxs(gt,{className:y.mergeClasses(m.header,j),children:[i.jsxs(ut,{children:[i.jsxs(mt,{children:[e&&C?i.jsx(Wt,{underline:"none",...C,children:i.jsx(q,{title:e,titleTooltipProps:t})}):i.jsx(q,{title:e,titleTooltipProps:t}),o&&i.jsx(wt,{style:s,children:o}),i.jsx(St,{ref:u,children:i.jsxs(vt,{ref:W,$translateX:N,children:[l&&i.jsx(a.Tooltip,{trigger:"hover",placement:"top",text:l,target:i.jsx(a.EmbedIconButton,{children:i.jsx(D.IconInfoCircleOutline,{size:"xs",style:{cursor:"pointer",color:r.textSecondary}})}),className:y.mergeClasses(m.popoverInfo),...S}),c&&i.jsx(a.Link,{href:c,style:{flexShrink:0},size:"xs",...v,children:i.jsx(Tt,{view:"clear",size:"xs",children:i.jsx(D.IconArrowDiagRightUp,{size:"xs"})})})]})})]}),d&&i.jsx(ft,{variant:"BodyXS",tooltipText:d,style:{color:r.textSecondary,wordBreak:"normal"},tooltipProps:{placement:"top",...g},lines:1,children:d})]}),T&&i.jsx(Ct,{children:T})]})},_t=e=>{const t=nt[e];return{xl:`
|
|
2
|
-
--analytical-widget-padding: ${t.xl.padding};
|
|
3
|
-
--analytical-widget-br: ${t.xl.borderRadius};
|
|
4
|
-
--analytical-widget-min-height: ${t.xl.minHeight};
|
|
5
|
-
--analytical-widget-min-width: ${t.xl.minWidth||"unset"};
|
|
6
|
-
--analytical-widget-max-width: ${t.xl.maxWidth||"unset"};
|
|
7
|
-
|
|
8
|
-
width: ${t.xl.width};
|
|
9
|
-
min-height: var(--analytical-widget-min-height);
|
|
10
|
-
height: 100%;
|
|
11
|
-
min-width: var(--analytical-widget-min-width);
|
|
12
|
-
max-width: var(--analytical-widget-max-width);
|
|
13
|
-
padding: var(--analytical-widget-padding);
|
|
14
|
-
border-radius: var(--analytical-widget-br);
|
|
15
|
-
`,lg:`
|
|
16
|
-
--analytical-widget-padding: ${t.lg.padding};
|
|
17
|
-
--analytical-widget-br: ${t.lg.borderRadius};
|
|
18
|
-
--analytical-widget-min-height: ${t.lg.minHeight};
|
|
19
|
-
--analytical-widget-min-width: ${t.lg.minWidth||"unset"};
|
|
20
|
-
--analytical-widget-max-width: ${t.lg.maxWidth||"unset"};
|
|
21
|
-
|
|
22
|
-
width: ${t.lg.width};
|
|
23
|
-
min-height: var(--analytical-widget-min-height);
|
|
24
|
-
height: 100%;
|
|
25
|
-
min-width: var(--analytical-widget-min-width);
|
|
26
|
-
max-width: var(--analytical-widget-max-width);
|
|
27
|
-
padding: var(--analytical-widget-padding);
|
|
28
|
-
border-radius: var(--analytical-widget-br);
|
|
29
|
-
`,md:`
|
|
30
|
-
--analytical-widget-padding: ${t.md.padding};
|
|
31
|
-
--analytical-widget-br: ${t.md.borderRadius};
|
|
32
|
-
--analytical-widget-min-height: ${t.md.minHeight};
|
|
33
|
-
--analytical-widget-min-width: ${t.md.minWidth||"unset"};
|
|
34
|
-
--analytical-widget-max-width: ${t.md.maxWidth||"unset"};
|
|
35
|
-
|
|
36
|
-
width: ${t.md.width};
|
|
37
|
-
min-height: var(--analytical-widget-min-height);
|
|
38
|
-
height: 100%;
|
|
39
|
-
min-width: var(--analytical-widget-min-width);
|
|
40
|
-
max-width: var(--analytical-widget-max-width);
|
|
41
|
-
padding: var(--analytical-widget-padding);
|
|
42
|
-
border-radius: var(--analytical-widget-br);
|
|
43
|
-
`}},bt=n.article.withConfig({displayName:"AnalyticalWidgetstyled__StyledWidget"})(["--analytical-widget-bg:",";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.","{opacity:1;}}"," ",""],r.surfaceSolidCard,m.headerActions,({$size:e})=>{const t=_t(e);return n.css([""," "," "," "],y.media.exact(0,1439)(t.md),y.media.exact(1440,1919)(t.lg),y.media.exact(1920,1e5)(t.xl))},({$css:e})=>e),At=n(a.BodyM).withConfig({displayName:"AnalyticalWidgetstyled__StyledTopSlot"})(["overflow:hidden;"]),Ht=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledMiddleSlot"})(["overflow:hidden;padding-top:4px;"]),jt=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledContent"})(["position:relative;flex:1;min-height:30px;margin-top:4px;overflow-y:",";"],({scrollable:e})=>e?"auto":"visible"),H=({size:e="l",scrollable:t=!0,headerSlot:o,topSlot:s,middleSlot:d,contentSlot:g,classes:l,$css:S})=>{const c=at[e];return i.jsxs(bt,{$size:e,$css:S,className:y.mergeClasses(m.root,l==null?void 0:l.root),children:[i.jsx("div",{style:{minHeight:"32px"},children:o}),c.topSlot&&s||c.middleSlot&&d?i.jsxs("div",{children:[c.topSlot&&s&&i.jsx(At,{className:y.mergeClasses(m.topSlot,l==null?void 0:l.topSlot),children:s}),c.middleSlot&&d&&i.jsx(Ht,{className:y.mergeClasses(m.middleSlot,l==null?void 0:l.middleSlot),children:d})]}):null,i.jsx(jt,{scrollable:t,className:y.mergeClasses(m.contentSlot,l==null?void 0:l.contentSlot),children:g})]})};H.Header=Y;H.FilterIconButton=z.IconButtonFilter;H.DotsIconButton=z.IconButtonDots;H.Chips=O;exports.AnalyticalWidget=H;exports.AnalyticalWidgetChipsGroup=O;exports.AnalyticalWidgetHeader=Y;exports.TooltipList=it;exports.Typography=$;exports.TypographyWithAutoTooltip=k;exports.analyticalWidgetClassNames=m;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const _=require("react"),f=require("react/jsx-runtime"),A=require("../components/Box/index.cjs"),w=require("@salutejs/sdds-finai"),$=require("../components/Collapse/index.cjs"),D=require("./Table-CnWVNNoW.cjs"),T=require("@salutejs/plasma-icons"),F=require("./utils-DKi1rqLX.cjs"),E=require("styled-components"),k=require("@salutejs/sdds-themes/tokens/sdds_finai"),W=require("./FiltersActions-D1aQXh5d.cjs"),C="list-of-filters",p={chipsGroup:`${C}__chip-group`,chipsGroupLabel:`${C}__chip-group__label`,chipsGroupCount:`${C}__chip-group__count`,chip:`${C}__chip`,clearButtonBlock:`${C}__clear-button-block`,chipsContainer:`${C}__chips-container`,container:`${C}__container`},N=s=>"groupId"in s,I=()=>E.css(k.bodyS),G=250,M=E(w.ChipGroup).withConfig({displayName:"ChipOrGroup__StyledChipGroup"})(["&{border-radius:",";padding:4px 2px;"," align-items:center;&.","{gap:4px;& .",":first-child,& ."," + .","{margin-left:4px;}& .","{display:inline-block;min-width:0;max-width:","px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& .","{color:",";margin-left:4px;}& ."," svg{color:"," !important;}}}"],()=>k.borderRadiusS,()=>I(),p.chipsGroup,p.chip,p.chipsGroupLabel,p.chip,p.chipsGroupLabel,G,p.chipsGroupCount,()=>k.textPrimary,p.chip,()=>k.onLightTextSecondary),V=({itemOrGroup:s,maxLengthInGroup:n=2,ellipsisLabel:x=!1,chipStyle:o,renderGroupLabel:d,renderChipLabel:l})=>{if(N(s)){const h=s,m=h.items.slice(0,n),u=h.items.length-m.length,r=d?d(h):h.groupLabel;return f.jsxs(M,{className:p.chipsGroup,size:"xs",gap:"wide",view:"default",isCommonChipStyles:!1,children:[x?f.jsx("span",{className:p.chipsGroupLabel,title:r,children:r}):r,m.map(e=>f.jsx(w.Chip,{className:p.chip,title:"Удалить фильтр",view:"default",text:l?l(h,e):e.label.toString(),size:"xs",pilled:!0,onClick:e.onClick,style:{maxWidth:180,...D.overflowDotsStyle,...o&&o(h,e)},appearance:"transparent"},e.id)),u>0&&f.jsx(W.FiltersActionsTooltip,{groupLabel:r,items:h.items.map(e=>l?l(h,e):e.label.toString()),children:f.jsxs("span",{className:p.chipsGroupCount,children:["+",u]})})]})}return f.jsx(w.Chip,{className:p.chip,title:"Удалить фильтр",view:"default",text:l?l(null,s):s.label.toString(),size:"xs",pilled:!0,onClick:s.onClick,style:{maxWidth:150,...D.overflowDotsStyle,...o&&o(s,void 0)},appearance:"transparent"})},H=(s,n,x)=>{var c,t;const o=_.useRef(null),d=!!o.current,[l,h]=_.useState(0),m=o.current,u=(c=o.current)==null?void 0:c.firstChild,r=(t=o.current)==null?void 0:t.lastChild,e=(m&&u&&r&&m.offsetWidth-u.offsetWidth-r.offsetWidth-n*2-x*2)??void 0;return _.useEffect(()=>{const i=o.current;let y=0;function L(){y=(i==null?void 0:i.offsetWidth)??0,h(y)}L();const S=F.createSafeResizeObserver(L);return s&&i&&S.observe(i),()=>{S.disconnect()}},[s,d]),{refForContainer:o,maxWidthForCenterElement:e}},P={xs:{height:32,paddingInline:0}},B=1,q=`${B}px solid ${()=>D.COLORS.border}`,K=E(w.Tabs).withConfig({displayName:"ListOfFilters__StyledTabs"})({"&":{"& .tabs-clip-scroll":{overflowY:"hidden"},"& button.tab-item-animated":{marginLeft:"8px","&:first-of-type":{marginLeft:"0px"}}}}),U=({opened:s,items:n,clearAll:x,size:o="xs",paddingTop:d=0,maxLengthInGroup:l=2,ellipsisLabel:h=!1,sizeOnOpen:m,leftSlot:u,paddingInline:r,maxHeight:e,chipStyle:c,renderGroupLabel:t,renderChipLabel:i,showResetAllFiltersButton:y=!0,extraCss:L={}})=>{const S=P[o],z=r??S.paddingInline,b=e??S.height,{refForContainer:v}=H(s,z,B);return F.useDebouncedValue(s,200),f.jsx($.Collapse,{isOpen:s,sizeOnOpen:m??b+d,unMountOnClose:!0,children:f.jsxs(A.Box,{ref:v,className:p.container,$css:{display:"flex",borderInline:q,borderTop:q,paddingInline:z,maxHeight:b,marginTop:d,flexDirection:"row-reverse",...L},children:[f.jsx(A.Box,{$css:"display: inline;",children:u??null}),f.jsx(K,{className:p.chipsContainer,view:"clear",size:"xs",style:{height:b-B,flex:1,minWidth:0,overflow:"hidden"},children:!!n.length&&n.map((a,g)=>{let j;return"groupId"in a&&(j=a.groupId??g),"id"in a&&(j=a.id??g),f.jsx(w.TabItem,{view:"clear",onClick:O=>O.preventDefault(),children:f.jsx(V,{maxLengthInGroup:l,ellipsisLabel:h,itemOrGroup:a,chipStyle:c,renderGroupLabel:t,renderChipLabel:i})},j)})}),f.jsx(A.Box,{className:p.clearButtonBlock,$css:"display: inline-flex; margin-left: auto;",children:y&&f.jsx(w.Button,{view:"clear",size:"xs",text:"Сбросить все",disabled:!n.length,contentLeft:f.jsx(T.IconClose,{size:"xs",color:"inherit"}),onClick:x})})]})})},R=_.memo(U),Z=s=>s==null?"":s instanceof Date?s.toLocaleDateString():Array.isArray(s)?s.map(n=>n instanceof Date?n.toLocaleDateString():String(n??"")).join(", "):String(s),X=({filters:s,filtersInfo:n,options:x,updateFilters:o,order:d})=>{const{labelFromValueMaps:l}=_.useMemo(()=>{const u={};for(const r of Object.entries(x)){const[e,c]=r;u[e]=new Map(c.map(t=>[String(t.value),t.label]))}return{labelFromValueMaps:u}},[x]),h=_.useCallback(()=>{for(const u of Object.entries(n)){const[r,e]=u;o(r,e.clearedValue)}},[n,o]);return{..._.useMemo(()=>{const u=Object.entries(s).reduce((e,c)=>{var v;const t=c[0],i=c[1],y=Array.isArray(i);if(!(y&&i.length||!y&&i&&i!==!1)||i===n[t].clearedValue)return e;if(typeof i=="boolean"){const a={id:t,label:n[t].label,onClick:()=>{o(t,n[t].clearedValue)}};return e.push(a),e}const b={groupId:t,groupLabel:n[t].label,items:[]};if(y)b.items=i.map(a=>{var g,j;return{id:a,label:((j=(g=l==null?void 0:l[t])==null?void 0:g.get)==null?void 0:j.call(g,a))??a.toString(),onClick:()=>{o(t,i.filter(O=>O!==a))}}});else{const a=l==null?void 0:l[t],g=((v=a==null?void 0:a.get)==null?void 0:v.call(a,i))??Z(i);b.items=[{id:i.toString(),label:g,onClick:()=>{o(t,"clearedValue"in n[t]?n[t].clearedValue:"")}}]}return e.push(b),e},[]);let r=u;if(d&&d!=="default"){if(typeof d=="function")r=d(u);else if(Array.isArray(d)){const e=new Map;u.forEach(c=>{const t="groupId"in c?c.groupId:String(c.id);e.set(t,c)}),r=[],d.forEach(c=>{const t=e.get(c);t&&(r.push(t),e.delete(c))}),e.size>0&&Array.from(e.keys()).sort().forEach(t=>{const i=e.get(t);i&&r.push(i)})}}return{filterListOpened:u.length>0,filterList:r}},[s,n,l,o,d]),clearAll:h,labelFromValueMaps:l}},Y=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));exports.ListOfFilters=R;exports.ListOfFilters_lazy=Y;exports.isGroup=N;exports.listOfFiltersClassNames=p;exports.useFiltersList=X;
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { useRef as W, useState as R, useEffect as T, memo as j, useMemo as E, useCallback as I } from "react";
|
|
2
|
-
import { jsxs as A, jsx as h } from "react/jsx-runtime";
|
|
3
|
-
import { Box as z } from "../components/Box/index.mjs";
|
|
4
|
-
import { Chip as O, ChipGroup as V, TabItem as F, Button as G, Tabs as M } from "@salutejs/sdds-finai";
|
|
5
|
-
import { Collapse as H } from "../components/Collapse/index.mjs";
|
|
6
|
-
import { o as N, C as P } from "./Table-Bj2se1hR.mjs";
|
|
7
|
-
import { IconClose as q } from "@salutejs/plasma-icons";
|
|
8
|
-
import { c as K, u as U } from "./utils-C5SQhoON.mjs";
|
|
9
|
-
import B, { css as Z } from "styled-components";
|
|
10
|
-
import { borderRadiusS as X, textPrimary as Y, onLightTextSecondary as J, bodyS as Q } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
11
|
-
import { F as tt } from "./FiltersActions-C3yWFtQT.mjs";
|
|
12
|
-
const x = "list-of-filters", f = {
|
|
13
|
-
chipsGroup: `${x}__chip-group`,
|
|
14
|
-
chipsGroupLabel: `${x}__chip-group__label`,
|
|
15
|
-
chipsGroupCount: `${x}__chip-group__count`,
|
|
16
|
-
chip: `${x}__chip`,
|
|
17
|
-
clearButtonBlock: `${x}__clear-button-block`,
|
|
18
|
-
chipsContainer: `${x}__chips-container`,
|
|
19
|
-
container: `${x}__container`
|
|
20
|
-
}, et = (i) => "groupId" in i, it = () => Z(Q), st = 250, nt = B(V).withConfig({
|
|
21
|
-
displayName: "ChipOrGroup__StyledChipGroup"
|
|
22
|
-
})(["&{border-radius:", ";padding:4px 2px;", " align-items:center;&.", "{gap:4px;& .", ":first-child,& .", " + .", "{margin-left:4px;}& .", "{display:inline-block;min-width:0;max-width:", "px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& .", "{color:", ";margin-left:4px;}& .", " svg{color:", " !important;}}}"], () => X, () => it(), f.chipsGroup, f.chip, f.chipsGroupLabel, f.chip, f.chipsGroupLabel, st, f.chipsGroupCount, () => Y, f.chip, () => J), ot = ({
|
|
23
|
-
itemOrGroup: i,
|
|
24
|
-
maxLengthInGroup: n = 2,
|
|
25
|
-
ellipsisLabel: m = !1,
|
|
26
|
-
chipStyle: o,
|
|
27
|
-
renderGroupLabel: u,
|
|
28
|
-
renderChipLabel: l
|
|
29
|
-
}) => {
|
|
30
|
-
if (et(i)) {
|
|
31
|
-
const d = i, b = d.items.slice(0, n), p = d.items.length - b.length, r = u ? u(d) : d.groupLabel;
|
|
32
|
-
return /* @__PURE__ */ A(nt, { className: f.chipsGroup, size: "xs", gap: "wide", view: "default", isCommonChipStyles: !1, children: [
|
|
33
|
-
m ? /* @__PURE__ */ h("span", { className: f.chipsGroupLabel, title: r, children: r }) : r,
|
|
34
|
-
b.map((t) => /* @__PURE__ */ h(O, { className: f.chip, title: "Удалить фильтр", view: "default", text: l ? l(d, t) : t.label.toString(), size: "xs", pilled: !0, onClick: t.onClick, style: {
|
|
35
|
-
maxWidth: 180,
|
|
36
|
-
...N,
|
|
37
|
-
...o && o(d, t)
|
|
38
|
-
}, appearance: "transparent" }, t.id)),
|
|
39
|
-
p > 0 && /* @__PURE__ */ h(tt, { groupLabel: r, items: d.items.map((t) => l ? l(d, t) : t.label.toString()), children: /* @__PURE__ */ A("span", { className: f.chipsGroupCount, children: [
|
|
40
|
-
"+",
|
|
41
|
-
p
|
|
42
|
-
] }) })
|
|
43
|
-
] });
|
|
44
|
-
}
|
|
45
|
-
return /* @__PURE__ */ h(O, { className: f.chip, title: "Удалить фильтр", view: "default", text: l ? l(null, i) : i.label.toString(), size: "xs", pilled: !0, onClick: i.onClick, style: {
|
|
46
|
-
maxWidth: 150,
|
|
47
|
-
...N,
|
|
48
|
-
...o && o(i, void 0)
|
|
49
|
-
}, appearance: "transparent" });
|
|
50
|
-
}, rt = (i, n, m) => {
|
|
51
|
-
var a, e;
|
|
52
|
-
const o = W(null), u = !!o.current, [l, d] = R(0), b = o.current, p = (a = o.current) == null ? void 0 : a.firstChild, r = (e = o.current) == null ? void 0 : e.lastChild, t = (b && p && r && b.offsetWidth - p.offsetWidth - r.offsetWidth - n * 2 - m * 2) ?? void 0;
|
|
53
|
-
return T(() => {
|
|
54
|
-
const s = o.current;
|
|
55
|
-
let y = 0;
|
|
56
|
-
function w() {
|
|
57
|
-
y = (s == null ? void 0 : s.offsetWidth) ?? 0, d(y);
|
|
58
|
-
}
|
|
59
|
-
w();
|
|
60
|
-
const _ = K(w);
|
|
61
|
-
return i && s && _.observe(s), () => {
|
|
62
|
-
_.disconnect();
|
|
63
|
-
};
|
|
64
|
-
}, [i, u]), {
|
|
65
|
-
refForContainer: o,
|
|
66
|
-
maxWidthForCenterElement: t
|
|
67
|
-
};
|
|
68
|
-
}, lt = {
|
|
69
|
-
xs: {
|
|
70
|
-
height: 32,
|
|
71
|
-
paddingInline: 0
|
|
72
|
-
}
|
|
73
|
-
}, D = 1, $ = `${D}px solid ${() => P.border}`, at = B(M).withConfig({
|
|
74
|
-
displayName: "ListOfFilters__StyledTabs"
|
|
75
|
-
})({
|
|
76
|
-
"&": {
|
|
77
|
-
"& .tabs-clip-scroll": {
|
|
78
|
-
overflowY: "hidden"
|
|
79
|
-
},
|
|
80
|
-
"& button.tab-item-animated": {
|
|
81
|
-
marginLeft: "8px",
|
|
82
|
-
"&:first-of-type": {
|
|
83
|
-
marginLeft: "0px"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}), ct = ({
|
|
88
|
-
opened: i,
|
|
89
|
-
items: n,
|
|
90
|
-
clearAll: m,
|
|
91
|
-
size: o = "xs",
|
|
92
|
-
paddingTop: u = 0,
|
|
93
|
-
maxLengthInGroup: l = 2,
|
|
94
|
-
ellipsisLabel: d = !1,
|
|
95
|
-
sizeOnOpen: b,
|
|
96
|
-
leftSlot: p,
|
|
97
|
-
paddingInline: r,
|
|
98
|
-
maxHeight: t,
|
|
99
|
-
chipStyle: a,
|
|
100
|
-
renderGroupLabel: e,
|
|
101
|
-
renderChipLabel: s,
|
|
102
|
-
showResetAllFiltersButton: y = !0,
|
|
103
|
-
extraCss: w = {}
|
|
104
|
-
}) => {
|
|
105
|
-
const _ = lt[o], k = r ?? _.paddingInline, C = t ?? _.height, {
|
|
106
|
-
refForContainer: L
|
|
107
|
-
} = rt(i, k, D);
|
|
108
|
-
return U(i, 200), /* @__PURE__ */ h(H, { isOpen: i, sizeOnOpen: b ?? C + u, unMountOnClose: !0, children: /* @__PURE__ */ A(z, { ref: L, className: f.container, $css: {
|
|
109
|
-
display: "flex",
|
|
110
|
-
borderInline: $,
|
|
111
|
-
borderTop: $,
|
|
112
|
-
paddingInline: k,
|
|
113
|
-
maxHeight: C,
|
|
114
|
-
marginTop: u,
|
|
115
|
-
// transition: `all ${DURATION}s ease`,
|
|
116
|
-
flexDirection: "row-reverse",
|
|
117
|
-
...w
|
|
118
|
-
}, children: [
|
|
119
|
-
/* @__PURE__ */ h(z, { $css: "display: inline;", children: p ?? null }),
|
|
120
|
-
/* @__PURE__ */ h(at, { className: f.chipsContainer, view: "clear", size: "xs", style: {
|
|
121
|
-
height: C - D,
|
|
122
|
-
flex: 1,
|
|
123
|
-
// Добавляем стили вместо maxWidthForCenterElement
|
|
124
|
-
minWidth: 0,
|
|
125
|
-
// Добавляем стили вместо maxWidthForCenterElement
|
|
126
|
-
overflow: "hidden"
|
|
127
|
-
// Добавляем стили вместо maxWidthForCenterElement
|
|
128
|
-
// width: maxWidthForCenterElement, // убираем. в splitView вызывает "дерганье"
|
|
129
|
-
}, children: !!n.length && n.map((c, g) => {
|
|
130
|
-
let S;
|
|
131
|
-
return "groupId" in c && (S = c.groupId ?? g), "id" in c && (S = c.id ?? g), /* @__PURE__ */ h(F, { view: "clear", onClick: (v) => v.preventDefault(), children: /* @__PURE__ */ h(ot, { maxLengthInGroup: l, ellipsisLabel: d, itemOrGroup: c, chipStyle: a, renderGroupLabel: e, renderChipLabel: s }) }, S);
|
|
132
|
-
}) }),
|
|
133
|
-
/* @__PURE__ */ h(z, { className: f.clearButtonBlock, $css: "display: inline-flex; margin-left: auto;", children: y && /* @__PURE__ */ h(G, { view: "clear", size: "xs", text: "Сбросить все", disabled: !n.length, contentLeft: /* @__PURE__ */ h(q, { size: "xs", color: "inherit" }), onClick: m }) })
|
|
134
|
-
] }) });
|
|
135
|
-
}, pt = j(ct), ut = (i) => i == null ? "" : i instanceof Date ? i.toLocaleDateString() : Array.isArray(i) ? i.map((n) => n instanceof Date ? n.toLocaleDateString() : String(n ?? "")).join(", ") : String(i), wt = ({
|
|
136
|
-
filters: i,
|
|
137
|
-
filtersInfo: n,
|
|
138
|
-
options: m,
|
|
139
|
-
updateFilters: o,
|
|
140
|
-
order: u
|
|
141
|
-
}) => {
|
|
142
|
-
const {
|
|
143
|
-
labelFromValueMaps: l
|
|
144
|
-
} = E(() => {
|
|
145
|
-
const p = {};
|
|
146
|
-
for (const r of Object.entries(m)) {
|
|
147
|
-
const [t, a] = r;
|
|
148
|
-
p[t] = new Map(a.map((e) => [String(e.value), e.label]));
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
labelFromValueMaps: p
|
|
152
|
-
};
|
|
153
|
-
}, [m]), d = I(() => {
|
|
154
|
-
for (const p of Object.entries(n)) {
|
|
155
|
-
const [r, t] = p;
|
|
156
|
-
o(r, t.clearedValue);
|
|
157
|
-
}
|
|
158
|
-
}, [n, o]);
|
|
159
|
-
return {
|
|
160
|
-
...E(() => {
|
|
161
|
-
const p = Object.entries(i).reduce((t, a) => {
|
|
162
|
-
var L;
|
|
163
|
-
const e = a[0], s = a[1], y = Array.isArray(s);
|
|
164
|
-
if (!(y && s.length || !y && s && s !== !1) || s === n[e].clearedValue)
|
|
165
|
-
return t;
|
|
166
|
-
if (typeof s == "boolean") {
|
|
167
|
-
const c = {
|
|
168
|
-
id: e,
|
|
169
|
-
label: n[e].label,
|
|
170
|
-
onClick: () => {
|
|
171
|
-
o(e, n[e].clearedValue);
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
return t.push(c), t;
|
|
175
|
-
}
|
|
176
|
-
const C = {
|
|
177
|
-
groupId: e,
|
|
178
|
-
groupLabel: n[e].label,
|
|
179
|
-
items: []
|
|
180
|
-
};
|
|
181
|
-
if (y)
|
|
182
|
-
C.items = s.map((c) => {
|
|
183
|
-
var g, S;
|
|
184
|
-
return {
|
|
185
|
-
id: c,
|
|
186
|
-
label: ((S = (g = l == null ? void 0 : l[e]) == null ? void 0 : g.get) == null ? void 0 : S.call(g, c)) ?? c.toString(),
|
|
187
|
-
onClick: () => {
|
|
188
|
-
o(e, s.filter((v) => v !== c));
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
});
|
|
192
|
-
else {
|
|
193
|
-
const c = l == null ? void 0 : l[e], g = (
|
|
194
|
-
// если это - single select, combobox; (имеют свои label), то otherLabelOptions имеется.
|
|
195
|
-
((L = c == null ? void 0 : c.get) == null ? void 0 : L.call(c, s)) ?? ut(s)
|
|
196
|
-
);
|
|
197
|
-
C.items = [{
|
|
198
|
-
id: s.toString(),
|
|
199
|
-
label: g,
|
|
200
|
-
onClick: () => {
|
|
201
|
-
o(e, "clearedValue" in n[e] ? n[e].clearedValue : "");
|
|
202
|
-
}
|
|
203
|
-
}];
|
|
204
|
-
}
|
|
205
|
-
return t.push(C), t;
|
|
206
|
-
}, []);
|
|
207
|
-
let r = p;
|
|
208
|
-
if (u && u !== "default") {
|
|
209
|
-
if (typeof u == "function")
|
|
210
|
-
r = u(p);
|
|
211
|
-
else if (Array.isArray(u)) {
|
|
212
|
-
const t = /* @__PURE__ */ new Map();
|
|
213
|
-
p.forEach((a) => {
|
|
214
|
-
const e = "groupId" in a ? a.groupId : String(a.id);
|
|
215
|
-
t.set(e, a);
|
|
216
|
-
}), r = [], u.forEach((a) => {
|
|
217
|
-
const e = t.get(a);
|
|
218
|
-
e && (r.push(e), t.delete(a));
|
|
219
|
-
}), t.size > 0 && Array.from(t.keys()).sort().forEach((e) => {
|
|
220
|
-
const s = t.get(e);
|
|
221
|
-
s && r.push(s);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
return {
|
|
226
|
-
filterListOpened: p.length > 0,
|
|
227
|
-
filterList: r
|
|
228
|
-
};
|
|
229
|
-
}, [i, n, l, o, u]),
|
|
230
|
-
clearAll: d,
|
|
231
|
-
labelFromValueMaps: l
|
|
232
|
-
};
|
|
233
|
-
}, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
234
|
-
__proto__: null,
|
|
235
|
-
default: pt
|
|
236
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
237
|
-
export {
|
|
238
|
-
pt as L,
|
|
239
|
-
Lt as a,
|
|
240
|
-
et as i,
|
|
241
|
-
f as l,
|
|
242
|
-
wt as u
|
|
243
|
-
};
|