@daisforge/ui 1.15.0 → 1.16.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-BSpo7GCr.mjs → AnalyticalWidget-BWcBjoNh.mjs} +113 -113
- package/chunks/{AnalyticalWidget-D_g7b36w.cjs → AnalyticalWidget-z2HzQ4aA.cjs} +2 -2
- package/chunks/{ApprovalCenter-B0yUrIFR.mjs → ApprovalCenter-BqN8Zjol.mjs} +2 -2
- package/chunks/{ApprovalCenter-BeD-ALq3.cjs → ApprovalCenter-CGs7n-2C.cjs} +1 -1
- package/chunks/{BlockTitle-D-4agd3o.mjs → BlockTitle-BM2EE1b1.mjs} +2 -2
- package/chunks/{BlockTitle-BcV_T7TJ.cjs → BlockTitle-o2QTRA7D.cjs} +1 -1
- package/chunks/{Container-CJX4h6tb.cjs → Container-CrB1jwqH.cjs} +1 -1
- package/chunks/{Container-BlAaXm8V.mjs → Container-Cy8w2JOq.mjs} +1 -1
- package/chunks/{EmptyState-BB3duGQw.mjs → EmptyState-B205JfZA.mjs} +1 -1
- package/chunks/{EmptyState-Du-RIjie.cjs → EmptyState-CcxlsZm0.cjs} +1 -1
- package/chunks/{FiltersActions-DlV5c-6Y.mjs → FiltersActions-C5OGUDDx.mjs} +4 -4
- package/chunks/{FiltersActions-Dw5QqWa8.cjs → FiltersActions-CKimtYsU.cjs} +1 -1
- package/chunks/{FormSegmentGroup-DcOPPn3M.cjs → FormSegmentGroup-CCCqRgCG.cjs} +1 -1
- package/chunks/{FormSegmentGroup-9b3w4_KU.mjs → FormSegmentGroup-E1JurEt7.mjs} +1 -1
- package/chunks/{GridDND-BhSmT9qp.mjs → GridDND-D9T2wqLt.mjs} +2 -2
- package/chunks/{GridDND-D7-FwG3y.cjs → GridDND-DkL6-TgS.cjs} +1 -1
- package/chunks/{LeftPanel-Ciehaz28.cjs → LeftPanel-B3-ySDMW.cjs} +1 -1
- package/chunks/{LeftPanel-DuIinlBm.mjs → LeftPanel-HZu3ECqD.mjs} +1 -1
- package/chunks/{ListOfFilters-DEkjOH7o.cjs → ListOfFilters-B8XF6KiI.cjs} +1 -1
- package/chunks/{ListOfFilters-DngSRGOp.mjs → ListOfFilters-BEDW_v5t.mjs} +3 -3
- package/chunks/{MassActions-Cphn-d4v.cjs → MassActions-BHNmuh3s.cjs} +1 -1
- package/chunks/{MassActions-CA35MxqC.mjs → MassActions-C66ulAuq.mjs} +3 -3
- package/chunks/{PageTitle-S-pY5lbg.cjs → PageTitle-BEdQpyZh.cjs} +1 -1
- package/chunks/{PageTitle-BjLWtqbD.mjs → PageTitle-BVbWaV52.mjs} +2 -2
- package/chunks/{SplitView-Dm62AAZj.mjs → SplitView-DYHeCnl9.mjs} +1 -1
- package/chunks/{SplitView-DdLshcIk.cjs → SplitView-UKIBuvTi.cjs} +1 -1
- package/chunks/Stories-DVh7iByM.cjs +1 -0
- package/chunks/{Stories-BCtwdhv0.mjs → Stories-lNAuXVJN.mjs} +260 -245
- package/chunks/{Table-C2ehPQDQ.cjs → Table-C-lLZklk.cjs} +5 -5
- package/chunks/{Table-DBKZzRuR.mjs → Table-C_1QGsh8.mjs} +16 -11
- package/chunks/{TableCanvas-1y-yKIq1.mjs → TableCanvas--g37wjRi.mjs} +3537 -3474
- package/chunks/TableCanvas-uzBMXlx6.cjs +30 -0
- package/chunks/{TableGlide-DGKw3w0G.mjs → TableGlide-Cjcw7Wur.mjs} +912 -819
- package/chunks/TableGlide-DTBZ1jNA.cjs +1 -0
- package/chunks/styles-BBVEBDDw.mjs +132 -0
- package/chunks/styles-C-pJNMSQ.cjs +2 -0
- package/chunks/{utils-DvDFSlCG.cjs → utils-CUW5bd8S.cjs} +5 -5
- package/chunks/{utils-D4eJY8pa.mjs → utils-YKicAHp0.mjs} +38 -38
- package/chunks/vendor-BzEO8Fvp.cjs +6043 -0
- package/chunks/vendor-DBRfVjyT.mjs +6054 -0
- package/components/AiAgentPopover/index.cjs +1 -1
- package/components/AiAgentPopover/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.types.d.ts +2 -2
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetTitle.types.d.ts +2 -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 +2 -2
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/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/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +1 -1
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- 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 +1 -1
- 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/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +1 -1
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +2 -2
- 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/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/AnimatedCounter.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/types/utils.type.d.ts +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/AnimatedCounter.d.ts +1 -0
- 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-filtering/use-focus-search-input.d.ts +2 -0
- 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/TablePopoverContext.d.ts +3 -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-rows-grouping/types.d.ts +2 -0
- 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 +1 -1
- package/components/TableContract/index.mjs +2 -2
- 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/activeTheme.type.d.ts +1 -1
- package/components/TableGlide/theming/custom-colors.d.ts +3 -3
- package/components/TableGlide/theming/glide-colors.d.ts +9 -9
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/ui/FormDatePickerRangeStyled.d.ts +2 -0
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +1 -1
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/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 +1787 -1629
- 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 +1 -1
- package/layouts/FiltersActions/FiltersActions.d.ts +2 -2
- package/layouts/FiltersActions/components/Segments.d.ts +2 -2
- 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 +1 -1
- package/layouts/Layout/index.mjs +1 -1
- package/layouts/PageLayout/index.cjs +1 -1
- package/layouts/PageLayout/index.mjs +1 -1
- package/mcp-data/component-index.json +136 -30
- package/mixins/index.cjs +2 -2
- package/mixins/index.mjs +36 -36
- package/package.json +5 -5
- package/styles/DefaultGlobalStyle.d.ts +2 -0
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.d.ts +2 -0
- package/themes/index.mjs +8 -6
- package/tokens/color/index.cjs +1 -1
- package/tokens/color/index.d.ts +1 -1
- package/tokens/color/index.mjs +1225 -1127
- package/tokens/gradient/index.cjs +1 -1
- package/tokens/gradient/index.d.ts +1 -1
- package/tokens/gradient/index.mjs +126 -70
- package/tokens/index.cjs +1 -1
- package/tokens/index.mjs +1433 -1277
- package/tokens/shadow/index.cjs +1 -1
- package/tokens/shadow/index.d.ts +1 -1
- package/tokens/shadow/index.mjs +9 -7
- 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/getActiveTheme.d.ts +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/Stories-CkjLhZAi.cjs +0 -1
- package/chunks/TableCanvas-CE8Fv99t.cjs +0 -30
- package/chunks/TableGlide-CGAh5x3Q.cjs +0 -1
- package/chunks/styles-BMXAIiBk.mjs +0 -128
- package/chunks/styles-DwCVRGsC.cjs +0 -2
- package/chunks/vendor-BauZZ2hr.mjs +0 -1955
- package/chunks/vendor-C47eH0xy.cjs +0 -1950
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import On, { GridCellKind as Rt, CompactSelection as
|
|
1
|
+
import On, { GridCellKind as Rt, CompactSelection as P } from "@glideappsfinal/glide-data-grid";
|
|
2
2
|
import { bodyM as Nn, bodyS as Wn, bodyXXS as Gn } from "@salutejs/sdds-themes/tokens/sdds_finai";
|
|
3
3
|
import { split as $n } from "canvas-hypertxt";
|
|
4
|
-
import ue, { isValidElement as
|
|
4
|
+
import ue, { isValidElement as no, useLayoutEffect as pi, useRef as rt, useCallback as U, useEffect as xt, useMemo as R, useState as st } from "react";
|
|
5
5
|
import { renderToString as Un } from "react-dom/server";
|
|
6
6
|
import { jsx as Dt, jsxs as Xn } from "react/jsx-runtime";
|
|
7
7
|
import "@glideappsfinal/glide-data-grid/dist/index.css";
|
|
8
|
-
import { z as
|
|
8
|
+
import { z as fr, t as Yn, n as Vn, q as gr } from "./utils-YKicAHp0.mjs";
|
|
9
9
|
import { createPortal as Me } from "react-dom";
|
|
10
|
-
import
|
|
10
|
+
import so from "styled-components";
|
|
11
11
|
const j = {
|
|
12
12
|
small: {
|
|
13
13
|
rowHeight: 20,
|
|
@@ -31,7 +31,7 @@ const j = {
|
|
|
31
31
|
small: j.small.rowHeight,
|
|
32
32
|
medium: j.medium.rowHeight,
|
|
33
33
|
big: j.big.rowHeight
|
|
34
|
-
},
|
|
34
|
+
}, vh = {
|
|
35
35
|
kind: Rt.Text,
|
|
36
36
|
data: "",
|
|
37
37
|
displayData: "",
|
|
@@ -56,7 +56,7 @@ const j = {
|
|
|
56
56
|
}, si = {
|
|
57
57
|
"padding-block": "0px",
|
|
58
58
|
"padding-inline": "0px"
|
|
59
|
-
}, Yt = (r) => `${r}px`,
|
|
59
|
+
}, Yt = (r) => `${r}px`, ph = {
|
|
60
60
|
small: {
|
|
61
61
|
rowHeight: oi("small"),
|
|
62
62
|
cell: {
|
|
@@ -133,7 +133,7 @@ const j = {
|
|
|
133
133
|
"bold-line-height": "0.75rem"
|
|
134
134
|
}
|
|
135
135
|
}, jn = 16;
|
|
136
|
-
function
|
|
136
|
+
function Cr(r, t = jn) {
|
|
137
137
|
const e = parseFloat(r);
|
|
138
138
|
return Number.isFinite(e) ? r.endsWith("rem") ? e * t : e : 0;
|
|
139
139
|
}
|
|
@@ -143,13 +143,13 @@ const Jn = (r, t = !1) => {
|
|
|
143
143
|
}, Qn = (r, t = !1) => {
|
|
144
144
|
const e = t ? r["bold-font-size"] : r["font-size"], i = t ? r["bold-line-height"] : r["line-height"];
|
|
145
145
|
return {
|
|
146
|
-
fontSize:
|
|
147
|
-
lineHeightPx:
|
|
146
|
+
fontSize: Cr(e),
|
|
147
|
+
lineHeightPx: Cr(i)
|
|
148
148
|
};
|
|
149
|
-
},
|
|
149
|
+
}, ao = (r) => Object.entries(Zn).reduce((t, [e, i]) => {
|
|
150
150
|
const o = e;
|
|
151
151
|
return t.push([o, r(i)], [`${o}Bold`, r(i, !0)]), t;
|
|
152
|
-
}, []), yi = Object.fromEntries(
|
|
152
|
+
}, []), yi = Object.fromEntries(ao(Jn)), co = Object.fromEntries(ao(Qn)), ts = {
|
|
153
153
|
flexGrow: 0,
|
|
154
154
|
flexShrink: 1,
|
|
155
155
|
flexBasis: 0,
|
|
@@ -164,7 +164,7 @@ const Jn = (r, t = !1) => {
|
|
|
164
164
|
bottom: 0,
|
|
165
165
|
left: 0
|
|
166
166
|
};
|
|
167
|
-
class
|
|
167
|
+
class lo {
|
|
168
168
|
constructor(t = ts) {
|
|
169
169
|
this.size = {
|
|
170
170
|
width: 0,
|
|
@@ -185,11 +185,11 @@ class co {
|
|
|
185
185
|
}, this.id = t.id, this.metadata = t.metadata;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
class is extends
|
|
188
|
+
class is extends lo {
|
|
189
189
|
build() {
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
class
|
|
192
|
+
class Lt extends lo {
|
|
193
193
|
constructor(t, e, i = {}) {
|
|
194
194
|
super({}), this.children = [], this.direction = "row", this.wrap = "nowrap", this.columnGap = 0, this.rowGap = 0, this.justifyContent = "flex-start", this.alignItems = "stretch", this.alignContent = "stretch", this.padding = {
|
|
195
195
|
top: 0,
|
|
@@ -199,7 +199,7 @@ class Pt extends co {
|
|
|
199
199
|
}, this.size.width = t, this.size.height = e, this.id = i.id, i.direction !== void 0 && (this.direction = i.direction), i.wrap !== void 0 && (this.wrap = i.wrap), i.columnGap !== void 0 && (this.columnGap = i.columnGap), i.rowGap !== void 0 && (this.rowGap = i.rowGap), i.justifyContent !== void 0 && (this.justifyContent = i.justifyContent), i.alignItems !== void 0 && (this.alignItems = i.alignItems), i.alignContent !== void 0 && (this.alignContent = i.alignContent), this.padding = rs(i.padding);
|
|
200
200
|
}
|
|
201
201
|
addChild(t, e) {
|
|
202
|
-
if (t instanceof
|
|
202
|
+
if (t instanceof Lt) {
|
|
203
203
|
const o = t;
|
|
204
204
|
if (e) {
|
|
205
205
|
const n = o.style;
|
|
@@ -376,17 +376,17 @@ class Pt extends co {
|
|
|
376
376
|
for (let v = l; v !== u; v += f) {
|
|
377
377
|
const C = t[v];
|
|
378
378
|
if (C !== void 0) {
|
|
379
|
-
const
|
|
379
|
+
const w = C.style, m = C.size, x = C.position;
|
|
380
380
|
if (i) {
|
|
381
381
|
const H = this.direction === "row" ? g : e.main - g - m.width;
|
|
382
|
-
|
|
382
|
+
x.x = a + H;
|
|
383
383
|
} else {
|
|
384
384
|
const H = this.direction === "column" ? g : e.main - g - m.height;
|
|
385
|
-
|
|
385
|
+
x.y = c + H;
|
|
386
386
|
}
|
|
387
|
-
const
|
|
387
|
+
const F = w.alignSelf !== "auto" ? w.alignSelf : this.alignItems, A = this.getCrossSize(C, o, i);
|
|
388
388
|
let y = 0;
|
|
389
|
-
|
|
389
|
+
F === "flex-end" ? y = o - A : F === "center" && (y = (o - A) * 0.5), i ? (x.y = c + h + y, g += m.width + s) : (x.x = a + h + y, g += m.height + s);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
}
|
|
@@ -414,16 +414,16 @@ class Pt extends co {
|
|
|
414
414
|
} = this.distributeMainAxisSizes(u, i, e), {
|
|
415
415
|
leading: v,
|
|
416
416
|
between: C
|
|
417
|
-
} = this.calculateJustifySpacing(u.length, f, i, g),
|
|
417
|
+
} = this.calculateJustifySpacing(u.length, f, i, g), w = this.getFinalLineHeight(
|
|
418
418
|
u,
|
|
419
419
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
420
420
|
n[l],
|
|
421
421
|
e
|
|
422
422
|
);
|
|
423
|
-
this.positionChildren(u, i, e,
|
|
423
|
+
this.positionChildren(u, i, e, w, v, C, c, h, d), d += w + a;
|
|
424
424
|
}
|
|
425
425
|
for (const l of t)
|
|
426
|
-
l instanceof
|
|
426
|
+
l instanceof Lt && l.build();
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
function rs(r) {
|
|
@@ -439,7 +439,7 @@ function rs(r) {
|
|
|
439
439
|
left: r.left ?? 0
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class ho extends Lt {
|
|
443
443
|
constructor(t, e, i = {}) {
|
|
444
444
|
super(t, e, i);
|
|
445
445
|
}
|
|
@@ -456,7 +456,7 @@ class lo extends Pt {
|
|
|
456
456
|
e[n] = {
|
|
457
457
|
position: o.position,
|
|
458
458
|
size: o.size
|
|
459
|
-
}, o instanceof
|
|
459
|
+
}, o instanceof Lt && this._collectLayout(o, e, i);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
}
|
|
@@ -467,7 +467,7 @@ const oe = {
|
|
|
467
467
|
justifyContent: "flex-start",
|
|
468
468
|
alignItems: "stretch"
|
|
469
469
|
};
|
|
470
|
-
function
|
|
470
|
+
function uo(r) {
|
|
471
471
|
const t = r;
|
|
472
472
|
return {
|
|
473
473
|
id: r.id,
|
|
@@ -478,18 +478,18 @@ function ho(r) {
|
|
|
478
478
|
alignItems: t.alignItems ?? oe.alignItems
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function fo(r, t) {
|
|
482
482
|
if (t != null && t.length)
|
|
483
483
|
for (const e of t)
|
|
484
484
|
if (e.children && e.children.length > 0) {
|
|
485
|
-
const i = new
|
|
486
|
-
r.addChild(i, e),
|
|
485
|
+
const i = new Lt(e.width ?? 0, e.height ?? 0, uo(e));
|
|
486
|
+
r.addChild(i, e), fo(i, e.children);
|
|
487
487
|
} else
|
|
488
488
|
r.addChild(e);
|
|
489
489
|
}
|
|
490
|
-
const
|
|
491
|
-
const t = r.width ?? 0, e = r.height ?? 0, i =
|
|
492
|
-
return
|
|
490
|
+
const mh = (r) => {
|
|
491
|
+
const t = r.width ?? 0, e = r.height ?? 0, i = uo(r), o = new ho(t, e, i);
|
|
492
|
+
return fo(o, r.children), o.getLayout();
|
|
493
493
|
}, Ue = class Ue {
|
|
494
494
|
constructor(t) {
|
|
495
495
|
this.debugColor = "magenta", this.parent = null, this.children = [], this.rect = {
|
|
@@ -703,7 +703,7 @@ class os {
|
|
|
703
703
|
* Добавляет дочерний элемент-контейнер в flex-дерево.
|
|
704
704
|
*/
|
|
705
705
|
addContainerChild(t, e) {
|
|
706
|
-
const i = new
|
|
706
|
+
const i = new Lt(0, 0, t.flexOptions);
|
|
707
707
|
i.size.width = t.rect.width, i.size.height = t.rect.height, e.addChild(i, this.defaultFlexStyle), this.build(t, i);
|
|
708
708
|
}
|
|
709
709
|
/**
|
|
@@ -737,7 +737,7 @@ class ns {
|
|
|
737
737
|
} = e, h = c !== null ? c.rect : n;
|
|
738
738
|
a = this.updateNodePosition(e, i, h ?? e.rect);
|
|
739
739
|
const d = o ?? e.children.filter((u) => !u.isAbsolute()), l = d.length > 0;
|
|
740
|
-
if (l && i instanceof
|
|
740
|
+
if (l && i instanceof Lt) {
|
|
741
741
|
const u = this.reconcileChildLayouts(t, d, i, n);
|
|
742
742
|
if (a = a || u, this.isContainer(e) && !s) {
|
|
743
743
|
const f = this.updateContainerFromContent(e, i);
|
|
@@ -793,19 +793,19 @@ class ns {
|
|
|
793
793
|
} else {
|
|
794
794
|
let c = 0;
|
|
795
795
|
for (let C = 0; C < s; C += 1) {
|
|
796
|
-
const
|
|
797
|
-
m > a && (a = m),
|
|
796
|
+
const w = n[C], m = w.position.x + w.size.width, x = w.position.y + w.size.height;
|
|
797
|
+
m > a && (a = m), x > c && (c = x);
|
|
798
798
|
}
|
|
799
799
|
const h = a > 0 ? a + o.right : 0, d = t.style.width;
|
|
800
800
|
let l = !1, u = !1, f = !1;
|
|
801
801
|
if (d !== "100%") {
|
|
802
|
-
const C = typeof d == "number" ? d : 0,
|
|
803
|
-
|
|
802
|
+
const C = typeof d == "number" ? d : 0, w = h > C ? h : C;
|
|
803
|
+
w > t.rect.width + Ie && (t.rect.width = w, l = !0, u = !0);
|
|
804
804
|
}
|
|
805
805
|
const g = c > 0 ? c + o.bottom : 0, v = t.style.height;
|
|
806
806
|
if (v !== "100%") {
|
|
807
|
-
const C = typeof v == "number" ? v : 0,
|
|
808
|
-
|
|
807
|
+
const C = typeof v == "number" ? v : 0, w = g > C ? g : C;
|
|
808
|
+
w > t.rect.height + Ie && (t.rect.height = w, l = !0, f = !0);
|
|
809
809
|
}
|
|
810
810
|
return l && this.syncFlexNodeSizeFromRect(t, e, u, f), l;
|
|
811
811
|
}
|
|
@@ -1019,12 +1019,12 @@ class ki {
|
|
|
1019
1019
|
return o.addGap(i, e), o.getSize();
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
const ss = 3,
|
|
1022
|
+
const ss = 3, go = {
|
|
1023
1023
|
top: 0,
|
|
1024
1024
|
right: 0,
|
|
1025
1025
|
bottom: 0,
|
|
1026
1026
|
left: 0
|
|
1027
|
-
}, as = (r) => r === void 0 || r === "row" || r === "row-reverse", cs = (r) => r === void 0 ?
|
|
1027
|
+
}, as = (r) => r === void 0 || r === "row" || r === "row-reverse", cs = (r) => r === void 0 ? go : typeof r == "number" ? {
|
|
1028
1028
|
top: r,
|
|
1029
1029
|
right: r,
|
|
1030
1030
|
bottom: r,
|
|
@@ -1037,7 +1037,7 @@ const ss = 3, fo = {
|
|
|
1037
1037
|
};
|
|
1038
1038
|
class yt extends jt {
|
|
1039
1039
|
constructor(t, e = {}, i = "transparent") {
|
|
1040
|
-
super(t), this.cachedPadding =
|
|
1040
|
+
super(t), this.cachedPadding = go, this.cachedIsRow = !0, this.cachedGap = 0, this.optionsCacheValid = !1, this.flexOptionsValue = e, this.positionResolver = new It(), this.flexTreeBuilder = new os(), this.layoutReconciler = new ns(this.positionResolver), this.invalidateOptionsCache(), this.backgroundColor = i;
|
|
1041
1041
|
}
|
|
1042
1042
|
get flexOptions() {
|
|
1043
1043
|
return this.flexOptionsValue;
|
|
@@ -1113,7 +1113,7 @@ class yt extends jt {
|
|
|
1113
1113
|
i.length > 0 && this.layoutPhase1Flexbox(t, i, e), o.length > 0 && this.isPositioningContext() && this.layoutPhase2Absolute(t, o), this.clearLayoutDirty();
|
|
1114
1114
|
}
|
|
1115
1115
|
layoutPhase1Flexbox(t, e, i = !1) {
|
|
1116
|
-
const o = new
|
|
1116
|
+
const o = new ho(this.rect.width, this.rect.height, this.flexOptionsValue);
|
|
1117
1117
|
this.flexTreeBuilder.build(this, o, e);
|
|
1118
1118
|
let n = 0, s;
|
|
1119
1119
|
do
|
|
@@ -1169,7 +1169,7 @@ const ls = {
|
|
|
1169
1169
|
maxX: Math.max(r.maxX, t.rect.x + t.rect.width),
|
|
1170
1170
|
maxY: Math.max(r.maxY, t.rect.y + t.rect.height)
|
|
1171
1171
|
}), us = (r) => r.minX === 1 / 0 || r.maxX === -1 / 0;
|
|
1172
|
-
class
|
|
1172
|
+
class yh extends yt {
|
|
1173
1173
|
performLayout(t) {
|
|
1174
1174
|
const e = this.layoutChildren(t);
|
|
1175
1175
|
if (!e) {
|
|
@@ -1194,7 +1194,7 @@ class mh extends yt {
|
|
|
1194
1194
|
this.backgroundColor && this.backgroundColor !== "transparent" && t.fillRect(this.rect.x, this.rect.y, this.rect.width, this.rect.height, this.backgroundColor), this.borderWidth > 0 && this.borderColor && this.borderColor !== "transparent" && t.strokeRect(this.rect.x + this.borderWidth / 2, this.rect.y + this.borderWidth / 2, this.rect.width - this.borderWidth, this.rect.height - this.borderWidth, this.borderColor, this.borderWidth), super.onPaint(t, e);
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
class
|
|
1197
|
+
class Co {
|
|
1198
1198
|
constructor(t = {}) {
|
|
1199
1199
|
this.options = t, this.hoveredNode = null, this.activePortalNode = null, this.currentCursor = "default", this.bounds = null;
|
|
1200
1200
|
}
|
|
@@ -1380,7 +1380,7 @@ class Cs {
|
|
|
1380
1380
|
function vs(r, t) {
|
|
1381
1381
|
return r.zIndex !== t.zIndex ? r.zIndex - t.zIndex : r.order - t.order;
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const vr = typeof Path2D < "u" && typeof CanvasRenderingContext2D.prototype.roundRect == "function";
|
|
1384
1384
|
class Mi {
|
|
1385
1385
|
constructor() {
|
|
1386
1386
|
this.commands = [], this.orderCounter = 0, this.currentZIndex = 0;
|
|
@@ -1576,15 +1576,15 @@ class Mi {
|
|
|
1576
1576
|
radius: a,
|
|
1577
1577
|
gradientStops: c,
|
|
1578
1578
|
angle: h
|
|
1579
|
-
} = e, d = (h - 90) * Math.PI / 180, l = Math.cos(d), u = Math.sin(d), f = n / 2, g = s / 2, v = i + f, C = o + g, m = (Math.abs(l * n) + Math.abs(u * s)) / 2,
|
|
1580
|
-
for (const
|
|
1581
|
-
H.addColorStop(
|
|
1579
|
+
} = e, d = (h - 90) * Math.PI / 180, l = Math.cos(d), u = Math.sin(d), f = n / 2, g = s / 2, v = i + f, C = o + g, m = (Math.abs(l * n) + Math.abs(u * s)) / 2, x = v - l * m, F = C - u * m, A = v + l * m, y = C + u * m, H = t.createLinearGradient(x, F, A, y);
|
|
1580
|
+
for (const E of c)
|
|
1581
|
+
H.addColorStop(E.offset, E.color);
|
|
1582
1582
|
if (t.fillStyle = H, a > 0)
|
|
1583
|
-
if (
|
|
1583
|
+
if (vr)
|
|
1584
1584
|
t.beginPath(), t.roundRect(i, o, n, s, a), t.fill();
|
|
1585
1585
|
else {
|
|
1586
|
-
const
|
|
1587
|
-
t.beginPath(), t.moveTo(i +
|
|
1586
|
+
const E = a, L = i + n, O = o + s;
|
|
1587
|
+
t.beginPath(), t.moveTo(i + E, o), t.lineTo(L - E, o), t.quadraticCurveTo(L, o, L, o + E), t.lineTo(L, O - E), t.quadraticCurveTo(L, O, L - E, O), t.lineTo(i + E, O), t.quadraticCurveTo(i, O, i, O - E), t.lineTo(i, o + E), t.quadraticCurveTo(i, o, i + E, o), t.closePath(), t.fill();
|
|
1588
1588
|
}
|
|
1589
1589
|
else
|
|
1590
1590
|
t.fillRect(i, o, n, s);
|
|
@@ -1603,7 +1603,7 @@ class Mi {
|
|
|
1603
1603
|
strokeStyle: h,
|
|
1604
1604
|
lineWidth: d
|
|
1605
1605
|
} = e;
|
|
1606
|
-
if (
|
|
1606
|
+
if (vr)
|
|
1607
1607
|
t.beginPath(), t.roundRect(i, o, n, s, a);
|
|
1608
1608
|
else {
|
|
1609
1609
|
const l = a, u = i + n, f = o + s;
|
|
@@ -1612,12 +1612,12 @@ class Mi {
|
|
|
1612
1612
|
c && (t.fillStyle = c, t.fill()), h && (t.strokeStyle = h, d !== void 0 && (t.lineWidth = d), t.stroke());
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
|
-
const
|
|
1615
|
+
const Fh = new Mi();
|
|
1616
1616
|
class bh {
|
|
1617
1617
|
constructor(t, e) {
|
|
1618
1618
|
this.eventHandlers = /* @__PURE__ */ new Map(), this.batcher = new Mi(), this.canvas = t, this.ctx = t.getContext("2d", {
|
|
1619
1619
|
alpha: !1
|
|
1620
|
-
}), this.rootNode = e, this.hoverController = new
|
|
1620
|
+
}), this.rootNode = e, this.hoverController = new Co({
|
|
1621
1621
|
onCursorChange: (i) => {
|
|
1622
1622
|
var o;
|
|
1623
1623
|
return (o = this.onCursorChange) == null ? void 0 : o.call(this, i);
|
|
@@ -1825,7 +1825,7 @@ function ps(r) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const pr = {
|
|
1829
1829
|
bgColor: "#060A0C",
|
|
1830
1830
|
bgColorHover: "#13181B",
|
|
1831
1831
|
borderColor: "transparent",
|
|
@@ -1840,7 +1840,7 @@ const vr = {
|
|
|
1840
1840
|
*/
|
|
1841
1841
|
iconColorHover: "#F2F5F893"
|
|
1842
1842
|
}, Ri = {
|
|
1843
|
-
default:
|
|
1843
|
+
default: pr,
|
|
1844
1844
|
primary: {
|
|
1845
1845
|
bgColor: "#060A0C",
|
|
1846
1846
|
bgColorHover: "#111C22",
|
|
@@ -1908,7 +1908,7 @@ const vr = {
|
|
|
1908
1908
|
iconColor: "#FFFFFF",
|
|
1909
1909
|
iconColorHover: "#F2F5F893"
|
|
1910
1910
|
},
|
|
1911
|
-
black:
|
|
1911
|
+
black: pr,
|
|
1912
1912
|
white: {
|
|
1913
1913
|
bgColor: "#FFFFFF",
|
|
1914
1914
|
bgColorHover: "#FFFFFF",
|
|
@@ -1924,15 +1924,15 @@ const vr = {
|
|
|
1924
1924
|
*/
|
|
1925
1925
|
iconColorHover: "#13181B93"
|
|
1926
1926
|
}
|
|
1927
|
-
}, ge = 4, Ce = 4, ms = 16,
|
|
1928
|
-
function
|
|
1929
|
-
if (r.charCodeAt(0) ===
|
|
1927
|
+
}, ge = 4, Ce = 4, ms = 16, vo = 20, po = 4, Pt = 1, mo = 6, xh = 4, Oi = "s", Ni = "default", yo = "#d32f2f", Ne = "#ffffff", ys = "rgba(30, 136, 229, 0.08)", mr = "#ffffff", Fs = "#E8EEF2", bs = "#D5DFE6", yr = "#8A959D", Fo = "|", xs = "#", ws = 35, bo = 15, Fi = /* @__PURE__ */ new Map(), bi = /* @__PURE__ */ new Map();
|
|
1928
|
+
function xo(r, t) {
|
|
1929
|
+
if (r.charCodeAt(0) === ws) {
|
|
1930
1930
|
const e = parseInt(r.slice(1), 16), i = Math.min(255, (e >> 16 & 255) + t), o = Math.min(255, (e >> 8 & 255) + t), n = Math.min(255, (e & 255) + t);
|
|
1931
|
-
return `${
|
|
1931
|
+
return `${xs}${(i << 16 | o << 8 | n).toString(16).padStart(6, "0")}`;
|
|
1932
1932
|
}
|
|
1933
1933
|
return r;
|
|
1934
1934
|
}
|
|
1935
|
-
function
|
|
1935
|
+
function Fr(r, t) {
|
|
1936
1936
|
const e = Math.min(1, Math.max(0, t));
|
|
1937
1937
|
if (r.charCodeAt(0) !== 35)
|
|
1938
1938
|
throw new Error("Only HEX color format is supported");
|
|
@@ -1946,30 +1946,30 @@ function yr(r, t) {
|
|
|
1946
1946
|
return `rgba(${o}, ${n}, ${s}, ${e})`;
|
|
1947
1947
|
}
|
|
1948
1948
|
function Ss(r, t) {
|
|
1949
|
-
const e = `${r}${
|
|
1950
|
-
let i =
|
|
1951
|
-
return i === void 0 && (i =
|
|
1949
|
+
const e = `${r}${Fo}${t}`;
|
|
1950
|
+
let i = Fi.get(e);
|
|
1951
|
+
return i === void 0 && (i = xo(r, t), Fi.set(e, i)), i;
|
|
1952
1952
|
}
|
|
1953
1953
|
function wo(r, t, e) {
|
|
1954
|
-
const i = `${e}${
|
|
1955
|
-
let o =
|
|
1956
|
-
return o === void 0 && (r.font = e, o = r.measureText(t).width,
|
|
1954
|
+
const i = `${e}${Fo}${t}`;
|
|
1955
|
+
let o = bi.get(i);
|
|
1956
|
+
return o === void 0 && (r.font = e, o = r.measureText(t).width, bi.set(i, o)), o;
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function So(r, t, e, i, o, n) {
|
|
1959
1959
|
if (r !== "auto")
|
|
1960
1960
|
return r;
|
|
1961
1961
|
let s = 0;
|
|
1962
1962
|
return o && (s += e + i), n && (s += e + i), t + s + 4;
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Ao(r, t, e, i, o) {
|
|
1965
1965
|
let n = r;
|
|
1966
1966
|
return i && (n += t + e), o && (n += t + e), n;
|
|
1967
1967
|
}
|
|
1968
1968
|
function wh() {
|
|
1969
|
-
|
|
1969
|
+
Fi.clear(), bi.clear();
|
|
1970
1970
|
}
|
|
1971
|
-
const As =
|
|
1972
|
-
function
|
|
1971
|
+
const As = xo(yo, bo);
|
|
1972
|
+
function Eo(r, t, e, i) {
|
|
1973
1973
|
if (e)
|
|
1974
1974
|
return {
|
|
1975
1975
|
bgColor: r.bgCell,
|
|
@@ -1981,19 +1981,19 @@ function Ao(r, t, e, i) {
|
|
|
1981
1981
|
case "primary":
|
|
1982
1982
|
return br(r, i);
|
|
1983
1983
|
case "secondary":
|
|
1984
|
-
return
|
|
1984
|
+
return Ts(r, i);
|
|
1985
1985
|
case "danger":
|
|
1986
1986
|
return Ds(i);
|
|
1987
1987
|
default:
|
|
1988
1988
|
return br(r, i);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function Es(r, t, e, i, o) {
|
|
1992
1992
|
const {
|
|
1993
1993
|
accentColor: n
|
|
1994
1994
|
} = r, s = r.accentFg || Ne, a = r.accentFg || Ne, c = 0.4;
|
|
1995
1995
|
if (t || e) {
|
|
1996
|
-
const u = o ?
|
|
1996
|
+
const u = o ? Fr(n, c) : n;
|
|
1997
1997
|
return {
|
|
1998
1998
|
bgColor: u,
|
|
1999
1999
|
borderColor: u,
|
|
@@ -2001,7 +2001,7 @@ function Ts(r, t, e, i, o) {
|
|
|
2001
2001
|
iconColor: a
|
|
2002
2002
|
};
|
|
2003
2003
|
}
|
|
2004
|
-
const h = "#485056B0", d = "white", l = o ?
|
|
2004
|
+
const h = "#485056B0", d = "white", l = o ? Fr(h, c) : h;
|
|
2005
2005
|
return {
|
|
2006
2006
|
bgColor: d,
|
|
2007
2007
|
borderColor: l,
|
|
@@ -2020,7 +2020,7 @@ function br(r, t) {
|
|
|
2020
2020
|
iconColor: r.accentFg || Ne
|
|
2021
2021
|
};
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Ts(r, t) {
|
|
2024
2024
|
return {
|
|
2025
2025
|
bgColor: t ? r.accentLight || ys : r.bgCell,
|
|
2026
2026
|
borderColor: r.accentColor,
|
|
@@ -2029,20 +2029,20 @@ function Es(r, t) {
|
|
|
2029
2029
|
};
|
|
2030
2030
|
}
|
|
2031
2031
|
function Ds(r) {
|
|
2032
|
-
const t = r ? As :
|
|
2032
|
+
const t = r ? As : yo;
|
|
2033
2033
|
return {
|
|
2034
2034
|
bgColor: t,
|
|
2035
2035
|
borderColor: t,
|
|
2036
|
-
textColor:
|
|
2037
|
-
iconColor:
|
|
2036
|
+
textColor: mr,
|
|
2037
|
+
iconColor: mr
|
|
2038
2038
|
};
|
|
2039
2039
|
}
|
|
2040
2040
|
function To(r, t, e) {
|
|
2041
2041
|
return t ? {
|
|
2042
|
-
bgColor:
|
|
2043
|
-
borderColor:
|
|
2044
|
-
textColor:
|
|
2045
|
-
iconColor:
|
|
2042
|
+
bgColor: Fs,
|
|
2043
|
+
borderColor: bs,
|
|
2044
|
+
textColor: yr,
|
|
2045
|
+
iconColor: yr
|
|
2046
2046
|
} : {
|
|
2047
2047
|
bgColor: e ? r.bgColorHover : r.bgColor,
|
|
2048
2048
|
borderColor: r.borderColor,
|
|
@@ -2050,12 +2050,12 @@ function To(r, t, e) {
|
|
|
2050
2050
|
iconColor: e && r.iconColorHover ? r.iconColorHover : r.iconColor
|
|
2051
2051
|
};
|
|
2052
2052
|
}
|
|
2053
|
-
const Zt = -1,
|
|
2053
|
+
const Zt = -1, xr = 0, ut = {
|
|
2054
2054
|
colIndex: Zt,
|
|
2055
2055
|
rowIndex: Zt
|
|
2056
2056
|
}, Q = {
|
|
2057
|
-
x:
|
|
2058
|
-
y:
|
|
2057
|
+
x: xr,
|
|
2058
|
+
y: xr
|
|
2059
2059
|
}, Is = 2;
|
|
2060
2060
|
function ai(r) {
|
|
2061
2061
|
const {
|
|
@@ -2085,7 +2085,7 @@ function de(r, t) {
|
|
|
2085
2085
|
} = r;
|
|
2086
2086
|
return e >= wr && i >= wr ? `${e}${He}${i}` : `${t.x}${He}${t.y}${He}${t.width}${He}${t.height}`;
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function Sr(r) {
|
|
2089
2089
|
const {
|
|
2090
2090
|
posX: t
|
|
2091
2091
|
} = r, {
|
|
@@ -2110,7 +2110,7 @@ function xr(r) {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
return null;
|
|
2112
2112
|
}
|
|
2113
|
-
function
|
|
2113
|
+
function Ar(r, t) {
|
|
2114
2114
|
const e = r.x, i = r.y, o = t.x, n = t.y;
|
|
2115
2115
|
return e >= o && e <= o + t.width && i >= n && i <= n + t.height ? (Q.x = e - o, Q.y = i - n, Q) : r;
|
|
2116
2116
|
}
|
|
@@ -2123,7 +2123,7 @@ function Hs(r, t, e) {
|
|
|
2123
2123
|
if (r >= n - 1 && r <= n + i + 1 && t >= s - 1 && t <= s + o + 1)
|
|
2124
2124
|
return Q.x = r - n, Q.y = t - s, Q;
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function Do(r, t, e) {
|
|
2127
2127
|
const i = e.x, o = e.y;
|
|
2128
2128
|
return r >= i && r <= i + e.width && t >= o && t <= o + e.height;
|
|
2129
2129
|
}
|
|
@@ -2148,17 +2148,17 @@ function Qt(r, t) {
|
|
|
2148
2148
|
function ci() {
|
|
2149
2149
|
return typeof window < "u" ? Math.ceil(window.devicePixelRatio) : 1;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function Ls(r) {
|
|
2152
2152
|
let t = 0;
|
|
2153
2153
|
for (let e = 0; e < r.length; e++)
|
|
2154
2154
|
t = (t << 5) - t + r.charCodeAt(e), t |= 0;
|
|
2155
2155
|
return t.toString(36);
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function Er(r, t) {
|
|
2158
2158
|
let e = r;
|
|
2159
2159
|
return t && (e = e.replace(/currentColor/g, t), !e.includes("fill=") && !e.includes("stroke=") && (e = e.replace("<svg", `<svg fill="${t}"`))), `data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`;
|
|
2160
2160
|
}
|
|
2161
|
-
class
|
|
2161
|
+
class Ps {
|
|
2162
2162
|
constructor() {
|
|
2163
2163
|
this.iconRegistry = /* @__PURE__ */ new Map(), this.svgDataUrlCache = /* @__PURE__ */ new Map(), this.spriteCache = /* @__PURE__ */ new Map(), this.pendingLoads = /* @__PURE__ */ new Set(), this.loadListeners = /* @__PURE__ */ new Set(), this.inFlightCount = 0, this.stats = {
|
|
2164
2164
|
requests: 0,
|
|
@@ -2304,15 +2304,15 @@ class Ls {
|
|
|
2304
2304
|
const i = e ?? "", o = this.iconRegistry.get(t);
|
|
2305
2305
|
if (o) {
|
|
2306
2306
|
const s = `r:${t}:${i}`;
|
|
2307
|
-
return this.svgDataUrlCache.has(s) || this.svgDataUrlCache.set(s,
|
|
2307
|
+
return this.svgDataUrlCache.has(s) || this.svgDataUrlCache.set(s, Er(o, e)), {
|
|
2308
2308
|
key: s,
|
|
2309
2309
|
url: this.svgDataUrlCache.get(s)
|
|
2310
2310
|
};
|
|
2311
2311
|
}
|
|
2312
2312
|
const n = t.trimStart();
|
|
2313
2313
|
if (n.startsWith("<svg")) {
|
|
2314
|
-
const s = `s:${
|
|
2315
|
-
return this.svgDataUrlCache.has(s) || this.svgDataUrlCache.set(s,
|
|
2314
|
+
const s = `s:${Ls(n)}:${i}`;
|
|
2315
|
+
return this.svgDataUrlCache.has(s) || this.svgDataUrlCache.set(s, Er(n, e)), {
|
|
2316
2316
|
key: s,
|
|
2317
2317
|
url: this.svgDataUrlCache.get(s)
|
|
2318
2318
|
};
|
|
@@ -2344,11 +2344,11 @@ class Ls {
|
|
|
2344
2344
|
this.loadListeners.forEach((t) => t());
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
const Bt = new
|
|
2347
|
+
const Bt = new Ps();
|
|
2348
2348
|
function Bs(r) {
|
|
2349
2349
|
return Bt.onLoad(r);
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Sh(r, t = {}) {
|
|
2352
2352
|
Bt.register(r, t);
|
|
2353
2353
|
}
|
|
2354
2354
|
function zs(r, t, e) {
|
|
@@ -2363,10 +2363,10 @@ function ks(r, t, e, i, o, n) {
|
|
|
2363
2363
|
function Ms(r, t) {
|
|
2364
2364
|
return Bt.getImageDirect(r);
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function Ah() {
|
|
2367
2367
|
return Bt.getStats();
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function Eh() {
|
|
2370
2370
|
Bt.clearSpriteCache();
|
|
2371
2371
|
}
|
|
2372
2372
|
const Th = ks;
|
|
@@ -2381,61 +2381,61 @@ function vt(r, t, e, i, o, n) {
|
|
|
2381
2381
|
const a = Ms(t);
|
|
2382
2382
|
a && r.drawImage(a, e, i, o, o);
|
|
2383
2383
|
}
|
|
2384
|
-
function Rs(r, t, e, i, o, n, s, a = "primary", c = !1, h = !1, d, l, u, f =
|
|
2385
|
-
const g = ge, v = o - g * 2, C = Math.min(v - Ce, ms),
|
|
2384
|
+
function Rs(r, t, e, i, o, n, s, a = "primary", c = !1, h = !1, d, l, u, f = mo) {
|
|
2385
|
+
const g = ge, v = o - g * 2, C = Math.min(v - Ce, ms), w = s.baseFontFull, m = u ? wo(u, n, w) : 0, x = So(i, m, C, f, d, l), F = e + g, A = Qt(h, {
|
|
2386
2386
|
x: t,
|
|
2387
2387
|
y: e,
|
|
2388
|
-
width:
|
|
2388
|
+
width: x,
|
|
2389
2389
|
height: o
|
|
2390
|
-
}), y =
|
|
2391
|
-
r.roundedRect(t,
|
|
2390
|
+
}), y = Eo(s, a, c, A), H = t + x * 0.5, E = F + v * 0.5;
|
|
2391
|
+
r.roundedRect(t, F, x, v, po, {
|
|
2392
2392
|
fillStyle: y.bgColor,
|
|
2393
2393
|
strokeStyle: y.borderColor,
|
|
2394
|
-
lineWidth:
|
|
2394
|
+
lineWidth: Pt
|
|
2395
2395
|
});
|
|
2396
|
-
const
|
|
2397
|
-
let O = H -
|
|
2396
|
+
const L = Ao(m, C, f, d, l);
|
|
2397
|
+
let O = H - L * 0.5;
|
|
2398
2398
|
if (d) {
|
|
2399
|
-
const at =
|
|
2399
|
+
const at = E - C * 0.5;
|
|
2400
2400
|
vt(r, d, O, at, C, y.textColor), O += C + f;
|
|
2401
2401
|
}
|
|
2402
|
-
if (r.fillText(n, O,
|
|
2403
|
-
const at = O + m + f, G =
|
|
2402
|
+
if (r.fillText(n, O, E, w, y.textColor, "middle", "left"), l) {
|
|
2403
|
+
const at = O + m + f, G = E - C * 0.5;
|
|
2404
2404
|
vt(r, l, at, G, C, y.textColor);
|
|
2405
2405
|
}
|
|
2406
2406
|
return {
|
|
2407
2407
|
x: t,
|
|
2408
|
-
y:
|
|
2409
|
-
width:
|
|
2408
|
+
y: F,
|
|
2409
|
+
width: x,
|
|
2410
2410
|
height: v,
|
|
2411
|
-
actualWidth:
|
|
2411
|
+
actualWidth: x
|
|
2412
2412
|
};
|
|
2413
2413
|
}
|
|
2414
|
-
function Os(r, t, e, i, o, n = Ni, s = Oi, a = !1, c = !1, h, d, l, u =
|
|
2415
|
-
const g = ot[s], v = f ? f[n] : Ri[n], C = `${g.fontSize}px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`,
|
|
2414
|
+
function Os(r, t, e, i, o, n = Ni, s = Oi, a = !1, c = !1, h, d, l, u = mo, f) {
|
|
2415
|
+
const g = ot[s], v = f ? f[n] : Ri[n], C = `${g.fontSize}px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`, w = l ? wo(l, o, C) : 0, m = So(i, w, g.iconSize, u, h, d), x = Qt(c, {
|
|
2416
2416
|
x: t,
|
|
2417
2417
|
y: e,
|
|
2418
2418
|
width: m,
|
|
2419
2419
|
height: g.height
|
|
2420
|
-
}),
|
|
2421
|
-
|
|
2422
|
-
fillStyle:
|
|
2423
|
-
strokeStyle:
|
|
2424
|
-
lineWidth:
|
|
2425
|
-
}) :
|
|
2426
|
-
fillStyle:
|
|
2427
|
-
strokeStyle:
|
|
2428
|
-
lineWidth:
|
|
2420
|
+
}), F = To(v, a, x), A = t + m * 0.5, y = e + g.height * 0.5;
|
|
2421
|
+
F.bgColor !== "transparent" ? r.roundedRect(t, e, m, g.height, g.borderRadius, {
|
|
2422
|
+
fillStyle: F.bgColor,
|
|
2423
|
+
strokeStyle: F.borderColor !== "transparent" ? F.borderColor : void 0,
|
|
2424
|
+
lineWidth: F.borderColor !== "transparent" ? Pt : 0
|
|
2425
|
+
}) : F.borderColor !== "transparent" && r.roundedRect(t, e, m, g.height, g.borderRadius, {
|
|
2426
|
+
fillStyle: F.bgColor,
|
|
2427
|
+
strokeStyle: F.borderColor,
|
|
2428
|
+
lineWidth: Pt
|
|
2429
2429
|
});
|
|
2430
|
-
const H =
|
|
2431
|
-
let
|
|
2430
|
+
const H = Ao(w, g.iconSize, u, h, d);
|
|
2431
|
+
let E = A - H * 0.5;
|
|
2432
2432
|
if (h) {
|
|
2433
|
-
const
|
|
2434
|
-
vt(r, h,
|
|
2433
|
+
const L = y - g.iconSize * 0.5;
|
|
2434
|
+
vt(r, h, E, L, g.iconSize, F.textColor), E += g.iconSize + u;
|
|
2435
2435
|
}
|
|
2436
|
-
if (r.fillText(o,
|
|
2437
|
-
const
|
|
2438
|
-
vt(r, d,
|
|
2436
|
+
if (r.fillText(o, E, y, C, F.textColor, "middle", "left"), d) {
|
|
2437
|
+
const L = E + w + u, O = y - g.iconSize * 0.5;
|
|
2438
|
+
vt(r, d, L, O, g.iconSize, F.textColor);
|
|
2439
2439
|
}
|
|
2440
2440
|
return {
|
|
2441
2441
|
x: t,
|
|
@@ -2480,36 +2480,36 @@ function $s(r, t, e, i, o = Ni, n = Oi, s = !1, a = !1, c) {
|
|
|
2480
2480
|
y: e,
|
|
2481
2481
|
width: l,
|
|
2482
2482
|
height: l
|
|
2483
|
-
}), g = d, v = t + l * 0.5, C = e + l * 0.5,
|
|
2483
|
+
}), g = d, v = t + l * 0.5, C = e + l * 0.5, w = v - u * 0.5, m = C - u * 0.5;
|
|
2484
2484
|
g.bgColor !== "transparent" ? r.roundedRect(t, e, l, l, h.borderRadius, {
|
|
2485
2485
|
fillStyle: g.bgColor,
|
|
2486
2486
|
strokeStyle: g.borderColor !== "transparent" ? g.borderColor : void 0,
|
|
2487
|
-
lineWidth: g.borderColor !== "transparent" ?
|
|
2487
|
+
lineWidth: g.borderColor !== "transparent" ? Pt : 0
|
|
2488
2488
|
}) : g.borderColor !== "transparent" && r.roundedRect(t, e, l, l, h.borderRadius, {
|
|
2489
2489
|
fillStyle: g.bgColor,
|
|
2490
2490
|
strokeStyle: g.borderColor,
|
|
2491
|
-
lineWidth:
|
|
2491
|
+
lineWidth: Pt
|
|
2492
2492
|
});
|
|
2493
|
-
const
|
|
2494
|
-
return vt(r, i,
|
|
2493
|
+
const x = (c == null ? void 0 : c.iconColor) ?? g.iconColor, F = (c == null ? void 0 : c.iconColorHovered) ?? (c == null ? void 0 : c.iconColor) ?? g.iconColorHovered, A = s ? Ws(x, 40) : f ? F : x;
|
|
2494
|
+
return vt(r, i, w, m, u, A), {
|
|
2495
2495
|
x: t,
|
|
2496
2496
|
y: e,
|
|
2497
2497
|
width: l,
|
|
2498
2498
|
height: l
|
|
2499
2499
|
};
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
const d = ge, l = o - d * 2, u = Math.min(l - Ce,
|
|
2501
|
+
function Io(r, t, e, i, o, n, s, a = "primary", c = !1, h = !1) {
|
|
2502
|
+
const d = ge, l = o - d * 2, u = Math.min(l - Ce, vo), f = i === "auto" ? u : i, g = e + d, v = Qt(h, {
|
|
2503
2503
|
x: t,
|
|
2504
2504
|
y: e,
|
|
2505
2505
|
width: f,
|
|
2506
2506
|
height: o
|
|
2507
|
-
}), C =
|
|
2508
|
-
return r.roundedRect(t, g, f, l,
|
|
2507
|
+
}), C = Eo(s, a, c, v), w = t + f * 0.5, m = g + l * 0.5, x = w - u * 0.5, F = m - u * 0.5;
|
|
2508
|
+
return r.roundedRect(t, g, f, l, po, {
|
|
2509
2509
|
fillStyle: C.bgColor,
|
|
2510
2510
|
strokeStyle: C.borderColor,
|
|
2511
|
-
lineWidth:
|
|
2512
|
-
}), vt(r, n,
|
|
2511
|
+
lineWidth: Pt
|
|
2512
|
+
}), vt(r, n, x, F, u, C.iconColor), {
|
|
2513
2513
|
x: t,
|
|
2514
2514
|
y: g,
|
|
2515
2515
|
width: f,
|
|
@@ -2526,11 +2526,11 @@ function Us(r, t, e, i, o = Ni, n = Oi, s = !1, a = !1) {
|
|
|
2526
2526
|
return u.bgColor !== "transparent" ? r.roundedRect(t, e, d, d, c.borderRadius, {
|
|
2527
2527
|
fillStyle: u.bgColor,
|
|
2528
2528
|
strokeStyle: u.borderColor !== "transparent" ? u.borderColor : void 0,
|
|
2529
|
-
lineWidth: u.borderColor !== "transparent" ?
|
|
2529
|
+
lineWidth: u.borderColor !== "transparent" ? Pt : 0
|
|
2530
2530
|
}) : u.borderColor !== "transparent" && r.roundedRect(t, e, d, d, c.borderRadius, {
|
|
2531
2531
|
fillStyle: u.bgColor,
|
|
2532
2532
|
strokeStyle: u.borderColor,
|
|
2533
|
-
lineWidth:
|
|
2533
|
+
lineWidth: Pt
|
|
2534
2534
|
}), vt(r, i, v, C, c.iconSize, u.iconColor), {
|
|
2535
2535
|
x: t,
|
|
2536
2536
|
y: e,
|
|
@@ -2610,7 +2610,7 @@ function Xs(r) {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
};
|
|
2612
2612
|
}
|
|
2613
|
-
const Ys = "|",
|
|
2613
|
+
const Ys = "|", Le = 6, Dr = /* @__PURE__ */ new Map(), Ir = {
|
|
2614
2614
|
xs: 10,
|
|
2615
2615
|
s: 12,
|
|
2616
2616
|
m: 14,
|
|
@@ -2622,9 +2622,9 @@ class Vs extends St {
|
|
|
2622
2622
|
super(t), this.view = "default", this.size = "s", this.transparent = !1, this.clear = !1, this.pilled = !1, this.viewColors = {}, this.text = e, i && (i.view !== void 0 && (this.view = i.view), i.size !== void 0 && (this.size = i.size), i.transparent !== void 0 && (this.transparent = i.transparent), i.clear !== void 0 && (this.clear = i.clear), i.pilled !== void 0 && (this.pilled = i.pilled), this.leftIcon = i.leftIcon, this.rightIcon = i.rightIcon, this.customColor = i.customColor, this.customBackgroundColor = i.customBackgroundColor, (o = i.theme) != null && o.tokens && (this.viewColors = Xs(i.theme.tokens)));
|
|
2623
2623
|
}
|
|
2624
2624
|
measure(t) {
|
|
2625
|
-
const e = Tr[this.size], i =
|
|
2625
|
+
const e = Tr[this.size], i = Ir[this.size], o = `${e.fontSize}px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`, n = Hr(t, o, this.text);
|
|
2626
2626
|
let s = 0;
|
|
2627
|
-
this.leftIcon && (s += i +
|
|
2627
|
+
this.leftIcon && (s += i + Le), this.rightIcon && (s += i + Le), this.rect.width = n + s + e.paddingX * 2, this.rect.height = e.height;
|
|
2628
2628
|
}
|
|
2629
2629
|
onPaint(t, e) {
|
|
2630
2630
|
const {
|
|
@@ -2632,7 +2632,7 @@ class Vs extends St {
|
|
|
2632
2632
|
y: o,
|
|
2633
2633
|
width: n,
|
|
2634
2634
|
height: s
|
|
2635
|
-
} = this.rect, a = Tr[this.size], c =
|
|
2635
|
+
} = this.rect, a = Tr[this.size], c = Ir[this.size], h = this.viewColors[this.view];
|
|
2636
2636
|
if (!h)
|
|
2637
2637
|
return;
|
|
2638
2638
|
const d = `${a.fontSize}px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`;
|
|
@@ -2647,20 +2647,20 @@ class Vs extends St {
|
|
|
2647
2647
|
let g = i + a.paddingX;
|
|
2648
2648
|
if (this.leftIcon) {
|
|
2649
2649
|
const v = f - c / 2;
|
|
2650
|
-
vt(t, this.leftIcon, g, v, c, u), g += c +
|
|
2650
|
+
vt(t, this.leftIcon, g, v, c, u), g += c + Le;
|
|
2651
2651
|
}
|
|
2652
2652
|
if (t.fillText(this.text, g, f, d, u, "middle"), this.rightIcon) {
|
|
2653
|
-
const v =
|
|
2654
|
-
vt(t, this.rightIcon, C,
|
|
2653
|
+
const v = Hr(e, d, this.text), C = g + v + Le, w = f - c / 2;
|
|
2654
|
+
vt(t, this.rightIcon, C, w, c, u);
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function Hr(r, t, e) {
|
|
2659
2659
|
const i = `${t}${Ys}${e}`;
|
|
2660
|
-
let o =
|
|
2661
|
-
return o === void 0 && (r.font = t, o = r.measureText(e).width,
|
|
2660
|
+
let o = Dr.get(i);
|
|
2661
|
+
return o === void 0 && (r.font = t, o = r.measureText(e).width, Dr.set(i, o)), o;
|
|
2662
2662
|
}
|
|
2663
|
-
const Ks = "default", qs = "s", li = "pointer",
|
|
2663
|
+
const Ks = "default", qs = "s", li = "pointer", Pe = 8, Zs = {
|
|
2664
2664
|
accentColor: "#1e88e5",
|
|
2665
2665
|
accentLight: "rgba(30, 136, 229, 0.16)",
|
|
2666
2666
|
accentFg: "#ffffff",
|
|
@@ -2668,7 +2668,7 @@ const Ks = "default", qs = "s", li = "pointer", Le = 8, Zs = {
|
|
|
2668
2668
|
borderColor: "#e0e0e0",
|
|
2669
2669
|
textLight: "#9e9e9e",
|
|
2670
2670
|
baseFontFull: "13px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
|
|
2671
|
-
},
|
|
2671
|
+
}, Lr = /* @__PURE__ */ new Map();
|
|
2672
2672
|
class js extends St {
|
|
2673
2673
|
constructor(t, e, i) {
|
|
2674
2674
|
var o;
|
|
@@ -2691,7 +2691,7 @@ class js extends St {
|
|
|
2691
2691
|
measure(t) {
|
|
2692
2692
|
const e = ot[this.size], i = `${e.fontSize}px -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif`, o = Js(t, this.text, i);
|
|
2693
2693
|
let n = 0;
|
|
2694
|
-
this.leftIcon && (n += e.iconSize +
|
|
2694
|
+
this.leftIcon && (n += e.iconSize + Pe), this.rightIcon && (n += e.iconSize + Pe), this.rect.width = o + n + e.paddingX * 2, this.rect.height = e.height;
|
|
2695
2695
|
}
|
|
2696
2696
|
onPaint(t, e) {
|
|
2697
2697
|
const {
|
|
@@ -2700,10 +2700,10 @@ class js extends St {
|
|
|
2700
2700
|
width: n
|
|
2701
2701
|
} = this.rect;
|
|
2702
2702
|
if (this.useNewApi)
|
|
2703
|
-
Os(t, i, o, n, this.text, this.view, this.size, this.disabled, this.isHovered, this.leftIcon, this.rightIcon, e,
|
|
2703
|
+
Os(t, i, o, n, this.text, this.view, this.size, this.disabled, this.isHovered, this.leftIcon, this.rightIcon, e, Pe, this.viewColors);
|
|
2704
2704
|
else {
|
|
2705
2705
|
const s = ot[this.size];
|
|
2706
|
-
Rs(t, i, o, n, s.height, this.text, Zs, this.variant, this.disabled, this.isHovered, this.leftIcon, this.rightIcon, e,
|
|
2706
|
+
Rs(t, i, o, n, s.height, this.text, Zs, this.variant, this.disabled, this.isHovered, this.leftIcon, this.rightIcon, e, Pe);
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
2709
|
onMouseEnter() {
|
|
@@ -2715,10 +2715,10 @@ class js extends St {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
function Js(r, t, e) {
|
|
2717
2717
|
const i = `${e}|${t}`;
|
|
2718
|
-
let o =
|
|
2719
|
-
return o === void 0 && (r.font = e, o = r.measureText(t).width,
|
|
2718
|
+
let o = Lr.get(i);
|
|
2719
|
+
return o === void 0 && (r.font = e, o = r.measureText(t).width, Lr.set(i, o)), o;
|
|
2720
2720
|
}
|
|
2721
|
-
const Pr = 16,
|
|
2721
|
+
const Pr = 16, Br = "black", zr = 0, Qs = Math.PI / 2, ta = 1.8, Kt = {
|
|
2722
2722
|
startX: -3.5,
|
|
2723
2723
|
startY: -4.25,
|
|
2724
2724
|
middleX: 2.75,
|
|
@@ -2726,9 +2726,9 @@ const Pr = 16, Lr = "black", Br = 0, Qs = Math.PI / 2, ta = 1.8, Kt = {
|
|
|
2726
2726
|
endX: -3.5,
|
|
2727
2727
|
endY: 4.25
|
|
2728
2728
|
};
|
|
2729
|
-
class
|
|
2729
|
+
class Dh extends St {
|
|
2730
2730
|
constructor(t, e = {}) {
|
|
2731
|
-
super(t), this.rotation =
|
|
2731
|
+
super(t), this.rotation = zr, this.color = Br, this.rotation = e.rotation ?? zr, this.color = e.color ?? Br, this.rect.width = Pr, this.rect.height = Pr;
|
|
2732
2732
|
}
|
|
2733
2733
|
measure(t) {
|
|
2734
2734
|
}
|
|
@@ -2752,7 +2752,7 @@ const ea = 28, ia = "default", ra = "s", oa = "pointer", na = 20, sa = {
|
|
|
2752
2752
|
borderColor: "#e0e0e0",
|
|
2753
2753
|
textLight: "#9e9e9e"
|
|
2754
2754
|
};
|
|
2755
|
-
class
|
|
2755
|
+
class _r extends St {
|
|
2756
2756
|
constructor(t, e, i) {
|
|
2757
2757
|
super(t), this.view = ia, this.buttonSize = ra, this.isHovered = !1, this.useNewApi = !1, this.getDisabled = () => this.disabled ? "default" : oa, this.icon = e, this.size = (i == null ? void 0 : i.size) ?? "auto", this.variant = (i == null ? void 0 : i.variant) ?? "primary", this.disabled = (i == null ? void 0 : i.disabled) ?? !1, super.style = {
|
|
2758
2758
|
...super.style,
|
|
@@ -2778,7 +2778,7 @@ class zr extends St {
|
|
|
2778
2778
|
const e = ot[this.buttonSize], i = this.overrideSquareSize ?? e.height;
|
|
2779
2779
|
this.rect.height = i, this.rect.width = i;
|
|
2780
2780
|
} else {
|
|
2781
|
-
const e =
|
|
2781
|
+
const e = kr(this.size);
|
|
2782
2782
|
this.rect.height = e.height, this.rect.width = e.width;
|
|
2783
2783
|
}
|
|
2784
2784
|
}
|
|
@@ -2801,7 +2801,7 @@ class zr extends St {
|
|
|
2801
2801
|
t.strokeRect(l, u, d, d, "cyan", 1);
|
|
2802
2802
|
}
|
|
2803
2803
|
} else
|
|
2804
|
-
|
|
2804
|
+
Io(t, i, o, n, s, this.icon, sa, this.variant, this.disabled, this.isHovered);
|
|
2805
2805
|
}
|
|
2806
2806
|
onMouseEnter() {
|
|
2807
2807
|
this.isHovered = !0;
|
|
@@ -2819,13 +2819,13 @@ class zr extends St {
|
|
|
2819
2819
|
width: s,
|
|
2820
2820
|
height: s
|
|
2821
2821
|
};
|
|
2822
|
-
return
|
|
2822
|
+
return Mr(t, e, a);
|
|
2823
2823
|
}
|
|
2824
|
-
const i =
|
|
2825
|
-
return
|
|
2824
|
+
const i = kr(this.size, this.rect.height), o = aa(this.rect.x, this.rect.y, i);
|
|
2825
|
+
return Mr(t, e, o);
|
|
2826
2826
|
}
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function kr(r, t) {
|
|
2829
2829
|
const e = typeof r == "number" ? r : t ?? ea, i = 0, o = ge, n = Math.min(e - o * 2 - Ce, na), s = typeof r == "number" ? r : n + i * 2;
|
|
2830
2830
|
return {
|
|
2831
2831
|
height: e,
|
|
@@ -2843,7 +2843,7 @@ function aa(r, t, e) {
|
|
|
2843
2843
|
height: e.height - e.paddingY * 2
|
|
2844
2844
|
};
|
|
2845
2845
|
}
|
|
2846
|
-
function
|
|
2846
|
+
function Mr(r, t, e) {
|
|
2847
2847
|
return r >= e.x && r <= e.x + e.width && t >= e.y && t <= e.y + e.height;
|
|
2848
2848
|
}
|
|
2849
2849
|
const ca = 16, la = "transparent";
|
|
@@ -2898,7 +2898,7 @@ class va extends St {
|
|
|
2898
2898
|
const e = ot[this.buttonSize];
|
|
2899
2899
|
this.rect.height = e.height, this.rect.width = e.height;
|
|
2900
2900
|
} else {
|
|
2901
|
-
const e =
|
|
2901
|
+
const e = Rr(this.size);
|
|
2902
2902
|
this.rect.height = e.height, this.rect.width = e.width;
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
@@ -2909,7 +2909,7 @@ class va extends St {
|
|
|
2909
2909
|
width: n,
|
|
2910
2910
|
height: s
|
|
2911
2911
|
} = this.rect;
|
|
2912
|
-
this.useNewApi ? Us(t, i, o, this.icon, this.view, this.buttonSize, this.disabled, this.isHovered) :
|
|
2912
|
+
this.useNewApi ? Us(t, i, o, this.icon, this.view, this.buttonSize, this.disabled, this.isHovered) : Io(t, i, o, n, s, this.icon, Ca, this.variant, this.disabled, this.isHovered);
|
|
2913
2913
|
}
|
|
2914
2914
|
onMouseEnter() {
|
|
2915
2915
|
this.isHovered = !0;
|
|
@@ -2927,13 +2927,13 @@ class va extends St {
|
|
|
2927
2927
|
width: n.height,
|
|
2928
2928
|
height: n.height
|
|
2929
2929
|
};
|
|
2930
|
-
return
|
|
2930
|
+
return Or(t, e, s);
|
|
2931
2931
|
}
|
|
2932
|
-
const i =
|
|
2933
|
-
return
|
|
2932
|
+
const i = Rr(this.size, this.rect.height), o = pa(this.rect.x, this.rect.y, i);
|
|
2933
|
+
return Or(t, e, o);
|
|
2934
2934
|
}
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2936
|
+
function Rr(r, t) {
|
|
2937
2937
|
const e = typeof r == "number" ? r : t ?? ua, i = 0, o = ge, n = Math.min(e - o * 2 - Ce, ga), s = typeof r == "number" ? r : n + i * 2;
|
|
2938
2938
|
return {
|
|
2939
2939
|
height: e,
|
|
@@ -2951,7 +2951,7 @@ function pa(r, t, e) {
|
|
|
2951
2951
|
height: e.height - e.paddingY * 2
|
|
2952
2952
|
};
|
|
2953
2953
|
}
|
|
2954
|
-
function
|
|
2954
|
+
function Or(r, t, e) {
|
|
2955
2955
|
return r >= e.x && r <= e.x + e.width && t >= e.y && t <= e.y + e.height;
|
|
2956
2956
|
}
|
|
2957
2957
|
const ne = "transparent", ma = 0;
|
|
@@ -2979,14 +2979,14 @@ class ya extends St {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
|
-
const
|
|
2983
|
-
function
|
|
2984
|
-
r.size >=
|
|
2982
|
+
const Ho = "|", Fa = 2, ba = 1e4, xi = /* @__PURE__ */ new Map(), wi = /* @__PURE__ */ new Map();
|
|
2983
|
+
function Lo(r, t, e) {
|
|
2984
|
+
r.size >= ba && r.clear(), r.set(t, e);
|
|
2985
2985
|
}
|
|
2986
|
-
function
|
|
2987
|
-
return `${r}${
|
|
2986
|
+
function xa(r, t) {
|
|
2987
|
+
return `${r}${Ho}${t}`;
|
|
2988
2988
|
}
|
|
2989
|
-
function
|
|
2989
|
+
function wa({
|
|
2990
2990
|
text: r,
|
|
2991
2991
|
font: t,
|
|
2992
2992
|
maxWidth: e,
|
|
@@ -2994,12 +2994,12 @@ function xa({
|
|
|
2994
2994
|
ellipsis: o,
|
|
2995
2995
|
forceEllipsis: n
|
|
2996
2996
|
}) {
|
|
2997
|
-
return [t, r, e.toFixed(
|
|
2997
|
+
return [t, r, e.toFixed(Fa), i, o, n ? "force" : "normal"].join(Ho);
|
|
2998
2998
|
}
|
|
2999
2999
|
function Si(r, t, e) {
|
|
3000
|
-
const i =
|
|
3001
|
-
let o =
|
|
3002
|
-
return o === void 0 && (r.font = e, o = r.measureText(t).width,
|
|
3000
|
+
const i = xa(e, t);
|
|
3001
|
+
let o = xi.get(i);
|
|
3002
|
+
return o === void 0 && (r.font = e, o = r.measureText(t).width, Lo(xi, i, o)), o;
|
|
3003
3003
|
}
|
|
3004
3004
|
function Sa(r) {
|
|
3005
3005
|
const t = typeof Intl < "u" ? Intl.Segmenter : void 0;
|
|
@@ -3049,14 +3049,14 @@ function Ai(r) {
|
|
|
3049
3049
|
didTruncate: e.length > 0,
|
|
3050
3050
|
width: 0
|
|
3051
3051
|
};
|
|
3052
|
-
const h =
|
|
3052
|
+
const h = wa({
|
|
3053
3053
|
text: e,
|
|
3054
3054
|
font: i,
|
|
3055
3055
|
maxWidth: c,
|
|
3056
3056
|
textOverflow: n,
|
|
3057
3057
|
ellipsis: s,
|
|
3058
3058
|
forceEllipsis: a
|
|
3059
|
-
}), d =
|
|
3059
|
+
}), d = wi.get(h);
|
|
3060
3060
|
if (d)
|
|
3061
3061
|
return d;
|
|
3062
3062
|
const l = Si(t, e, i);
|
|
@@ -3069,9 +3069,9 @@ function Ai(r) {
|
|
|
3069
3069
|
text: e,
|
|
3070
3070
|
didTruncate: !0,
|
|
3071
3071
|
width: l
|
|
3072
|
-
} : u = Aa(t, e, i, c, s),
|
|
3072
|
+
} : u = Aa(t, e, i, c, s), Lo(wi, h, u), u;
|
|
3073
3073
|
}
|
|
3074
|
-
function
|
|
3074
|
+
function Nr({
|
|
3075
3075
|
ctx: r,
|
|
3076
3076
|
lines: t,
|
|
3077
3077
|
font: e,
|
|
@@ -3098,10 +3098,10 @@ function Or({
|
|
|
3098
3098
|
didClamp: d
|
|
3099
3099
|
};
|
|
3100
3100
|
}
|
|
3101
|
-
function
|
|
3102
|
-
|
|
3101
|
+
function Ea() {
|
|
3102
|
+
xi.clear(), wi.clear();
|
|
3103
3103
|
}
|
|
3104
|
-
const
|
|
3104
|
+
const Ta = "14px sans-serif", Da = "black", Ia = 1, Ha = 14, La = "visible", Pa = "clip", Ba = "…", za = /(\d*\.?\d+)px/, Ft = "|", _a = 30, ka = `${Ft}precise-wrap`, Ma = 1e4, Ra = 5e3, Oa = /[\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F\u200D\uFE0E\uFE0F\u2600-\u27BF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/, Ei = /* @__PURE__ */ new Map(), Ti = /* @__PURE__ */ new Map(), Di = /* @__PURE__ */ new Map();
|
|
3105
3105
|
let ui = null;
|
|
3106
3106
|
function Na() {
|
|
3107
3107
|
return ui === null && typeof document < "u" && (ui = document.createElement("canvas").getContext("2d")), ui;
|
|
@@ -3110,20 +3110,20 @@ function Po(r, t, e, i) {
|
|
|
3110
3110
|
r.size >= i && r.clear(), r.set(t, e);
|
|
3111
3111
|
}
|
|
3112
3112
|
function Wa(r, t, e, i) {
|
|
3113
|
-
return `${r}${
|
|
3113
|
+
return `${r}${Ft}${t}${Ft}${e ?? ""}${Ft}${i ?? ""}`;
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ga(r, t) {
|
|
3116
|
-
return `${r}${
|
|
3116
|
+
return `${r}${Ft}${t}`;
|
|
3117
3117
|
}
|
|
3118
3118
|
function $a(r, t, e) {
|
|
3119
|
-
return `${r}${
|
|
3119
|
+
return `${r}${Ft}${t}${Ft}${e}`;
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3122
|
-
return `${r}${
|
|
3121
|
+
function Bo(r, t, e, i) {
|
|
3122
|
+
return `${r}${Ft}${t}${Ft}${e}${Ft}${i}`;
|
|
3123
3123
|
}
|
|
3124
|
-
class
|
|
3124
|
+
class zo extends jt {
|
|
3125
3125
|
constructor(t, e, i) {
|
|
3126
|
-
super(t), this.font =
|
|
3126
|
+
super(t), this.font = Ta, this.color = Da, this.wordWrap = !1, this.lineHeight = Ia, this.overflow = La, this.textOverflow = Pa, this.ellipsis = Ba, this.lastMeasureKey = "", this.cachedLines = null, this.cachedLinesKey = "", this.lastPaintedTextWidth = 0, this.text = e, i && (i.font && (this.font = i.font), i.fontSize !== void 0 && (this.fontSize = i.fontSize), i.lineHeightPx !== void 0 && (this.lineHeightPx = i.lineHeightPx), i.color && (this.color = i.color), i.wordWrap !== void 0 && (this.wordWrap = i.wordWrap), i.lineHeight !== void 0 && (this.lineHeight = i.lineHeight, this.lineHeightPx = void 0), i.overflow !== void 0 && (this.overflow = i.overflow), i.textOverflow !== void 0 && (this.textOverflow = i.textOverflow), i.ellipsis !== void 0 && (this.ellipsis = i.ellipsis), i.maxLines !== void 0 && (this.maxLines = i.maxLines), i.autoTooltip !== void 0 && (this.autoTooltip = i.autoTooltip));
|
|
3127
3127
|
}
|
|
3128
3128
|
measure(t) {
|
|
3129
3129
|
const {
|
|
@@ -3135,13 +3135,13 @@ class Bo extends jt {
|
|
|
3135
3135
|
fontSize: a
|
|
3136
3136
|
} = this, {
|
|
3137
3137
|
lineHeightPx: c
|
|
3138
|
-
} =
|
|
3138
|
+
} = Wr(e, n, a, this.lineHeightPx);
|
|
3139
3139
|
this.isSingleLineClampEnabled() ? this.measureSingleLineClamp(t, e, i, c, s) : o ? this.measureWordWrap(t, e, i, c, s) : this.measureSingleLine(t, e, i, c, s);
|
|
3140
3140
|
}
|
|
3141
3141
|
measureWordWrap(t, e, i, o, n) {
|
|
3142
|
-
const s =
|
|
3142
|
+
const s = Gr(this.style.width, n.width);
|
|
3143
3143
|
if (s > 0) {
|
|
3144
|
-
const a = this.getResolvedMaxLines(), h = !(this.overflow === "hidden" && a !== void 0 && a > 1 && Xa(i)), d =
|
|
3144
|
+
const a = this.getResolvedMaxLines(), h = !(this.overflow === "hidden" && a !== void 0 && a > 1 && Xa(i)), d = Bo(e, i, s, h);
|
|
3145
3145
|
(d !== this.cachedLinesKey || this.cachedLines === null) && (this.cachedLines = Ua(t, i, e, s, h), this.cachedLinesKey = d), n.width = s;
|
|
3146
3146
|
const l = a !== void 0 && this.overflow === "hidden" ? Math.min(this.cachedLines.length, a) : this.cachedLines.length;
|
|
3147
3147
|
n.height = l * o;
|
|
@@ -3149,7 +3149,7 @@ class Bo extends jt {
|
|
|
3149
3149
|
n.width = Be(t, i, e), n.height = o, this.cachedLines = null;
|
|
3150
3150
|
}
|
|
3151
3151
|
measureSingleLineClamp(t, e, i, o, n) {
|
|
3152
|
-
const s =
|
|
3152
|
+
const s = Gr(this.style.width, n.width);
|
|
3153
3153
|
s > 0 ? (n.width = s, n.height = o) : (n.width = Be(t, i, e), n.height = o), this.cachedLines = null;
|
|
3154
3154
|
}
|
|
3155
3155
|
measureSingleLine(t, e, i, o, n) {
|
|
@@ -3208,7 +3208,7 @@ class Bo extends jt {
|
|
|
3208
3208
|
const e = this.cachedLines;
|
|
3209
3209
|
if (e !== null && e.length > 0) {
|
|
3210
3210
|
const i = this.getResolvedMaxLines();
|
|
3211
|
-
return i === void 0 ? !1 :
|
|
3211
|
+
return i === void 0 ? !1 : Nr({
|
|
3212
3212
|
ctx: t,
|
|
3213
3213
|
lines: e,
|
|
3214
3214
|
font: this.font,
|
|
@@ -3251,7 +3251,7 @@ class Bo extends jt {
|
|
|
3251
3251
|
paintMultiline(t, e, i, o, n, s) {
|
|
3252
3252
|
const {
|
|
3253
3253
|
lineHeightPx: a
|
|
3254
|
-
} =
|
|
3254
|
+
} = Wr(i, this.lineHeight, this.fontSize, this.lineHeightPx), c = this.getResolvedMaxLines(), h = this.isMultilineClampEnabled() && c !== void 0 ? Nr({
|
|
3255
3255
|
ctx: e,
|
|
3256
3256
|
lines: n,
|
|
3257
3257
|
font: i,
|
|
@@ -3286,26 +3286,26 @@ class Bo extends jt {
|
|
|
3286
3286
|
this.lastPaintedTextWidth = Be(e, i, o), t.fillText(i, s.x, a, o, n, "middle");
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3289
|
+
function Wr(r, t, e, i) {
|
|
3290
3290
|
const o = Wa(r, t, e, i);
|
|
3291
|
-
let n =
|
|
3291
|
+
let n = Ei.get(o);
|
|
3292
3292
|
if (n === void 0) {
|
|
3293
3293
|
const s = za.exec(r), a = e ?? (s && s[1] !== void 0 ? Number(s[1]) : Ha);
|
|
3294
3294
|
n = {
|
|
3295
3295
|
fontSize: a,
|
|
3296
3296
|
lineHeightPx: i ?? a * t
|
|
3297
|
-
},
|
|
3297
|
+
}, Ei.set(o, n);
|
|
3298
3298
|
}
|
|
3299
3299
|
return n;
|
|
3300
3300
|
}
|
|
3301
3301
|
function Be(r, t, e) {
|
|
3302
3302
|
const i = Ga(e, t);
|
|
3303
|
-
let o =
|
|
3304
|
-
return o === void 0 && (r.font = e, o = r.measureText(t).width, Po(
|
|
3303
|
+
let o = Ti.get(i);
|
|
3304
|
+
return o === void 0 && (r.font = e, o = r.measureText(t).width, Po(Ti, i, o, Ma)), o;
|
|
3305
3305
|
}
|
|
3306
3306
|
function Ua(r, t, e, i, o) {
|
|
3307
3307
|
r.font = e;
|
|
3308
|
-
const n = Math.max(i, _a), s =
|
|
3308
|
+
const n = Math.max(i, _a), s = Bo(e, t, n, o);
|
|
3309
3309
|
let a = Di.get(s);
|
|
3310
3310
|
if (!a) {
|
|
3311
3311
|
const c = o ? e : `${e}${ka}`;
|
|
@@ -3313,7 +3313,7 @@ function Ua(r, t, e, i, o) {
|
|
|
3313
3313
|
}
|
|
3314
3314
|
return a;
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function Gr(r, t) {
|
|
3317
3317
|
return typeof r == "number" && r > 0 ? r : t > 0 ? t : 0;
|
|
3318
3318
|
}
|
|
3319
3319
|
function Xa(r) {
|
|
@@ -3326,7 +3326,7 @@ function Ya(r) {
|
|
|
3326
3326
|
return t.lines && Array.isArray(t.lines) ? t.lines : [];
|
|
3327
3327
|
}
|
|
3328
3328
|
function Va() {
|
|
3329
|
-
|
|
3329
|
+
Ei.clear(), Ti.clear(), Di.clear(), Ea();
|
|
3330
3330
|
}
|
|
3331
3331
|
const ce = {
|
|
3332
3332
|
250: 15.625,
|
|
@@ -3340,8 +3340,8 @@ const ce = {
|
|
|
3340
3340
|
12: 0.75,
|
|
3341
3341
|
8: 0.5,
|
|
3342
3342
|
0: 0
|
|
3343
|
-
},
|
|
3344
|
-
let
|
|
3343
|
+
}, $r = 16, se = 16, _o = 90, Ur = "rgba(8, 8, 8, 0.08)", Ka = 4e3, qa = 1920, Za = "linear-gradient( 90deg, rgba(8, 8, 8, 0.09) 0%, rgba(8, 8, 8, 0.08) 6.25%, rgba(8, 8, 8, 0.05) 12.5%, rgba(8, 8, 8, 0.01) 25%, rgba(8, 8, 8, 0.05) 37.5%, rgba(8, 8, 8, 0.08) 43.75%, rgba(8, 8, 8, 0.09) 50%, rgba(8, 8, 8, 0.08) 56.25%, rgba(8, 8, 8, 0.05) 62.5%, rgba(8, 8, 8, 0.01) 75%, rgba(8, 8, 8, 0.05) 87.5%, rgba(8, 8, 8, 0.08) 93.75%, rgba(8, 8, 8, 0.09) 100% )", ja = "linear-gradient( 90deg, rgba(8, 8, 8, 0.36) 0%, rgba(8, 8, 8, 0.32) 6.25%, rgba(8, 8, 8, 0.20) 12.5%, rgba(8, 8, 8, 0.04) 25%, rgba(8, 8, 8, 0.20) 37.5%, rgba(8, 8, 8, 0.32) 43.75%, rgba(8, 8, 8, 0.36) 50%, rgba(8, 8, 8, 0.08) 56.25%, rgba(8, 8, 8, 0.20) 62.5%, rgba(8, 8, 8, 0.04) 75%, rgba(8, 8, 8, 0.20) 87.5%, rgba(8, 8, 8, 0.32) 93.75%, rgba(8, 8, 8, 0.36) 100% )";
|
|
3344
|
+
let Xr = null;
|
|
3345
3345
|
const Ja = {
|
|
3346
3346
|
right: 90,
|
|
3347
3347
|
left: 270,
|
|
@@ -3358,7 +3358,7 @@ const Ja = {
|
|
|
3358
3358
|
};
|
|
3359
3359
|
class Qa extends St {
|
|
3360
3360
|
constructor(t, e) {
|
|
3361
|
-
super(t), this._gradientStops = null, this._gradientAngle =
|
|
3361
|
+
super(t), this._gradientStops = null, this._gradientAngle = _o;
|
|
3362
3362
|
const i = (e == null ? void 0 : e.customGradientColor) ?? (e != null && e.lighter ? ja : Za), o = rc(i);
|
|
3363
3363
|
o && (this._gradientStops = o.stops, this._gradientAngle = o.angle), this.borderRadius = tc(e == null ? void 0 : e.roundness), this.animated = (e == null ? void 0 : e.animated) ?? !0, this.shimmerDuration = (e == null ? void 0 : e.shimmerDuration) ?? Ka;
|
|
3364
3364
|
}
|
|
@@ -3385,8 +3385,8 @@ class Qa extends St {
|
|
|
3385
3385
|
} = this;
|
|
3386
3386
|
if (!a || a.length < 2) {
|
|
3387
3387
|
c > 0 ? t.roundedRect(i, o, n, s, c, {
|
|
3388
|
-
fillStyle:
|
|
3389
|
-
}) : t.fillRect(i, o, n, s,
|
|
3388
|
+
fillStyle: Ur
|
|
3389
|
+
}) : t.fillRect(i, o, n, s, Ur);
|
|
3390
3390
|
return;
|
|
3391
3391
|
}
|
|
3392
3392
|
const h = t.getAnimationContext(), d = h == null ? void 0 : h.frameTime;
|
|
@@ -3394,33 +3394,33 @@ class Qa extends St {
|
|
|
3394
3394
|
t.linearGradientRect(i, o, n, s, c, a, this._gradientAngle);
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
|
-
|
|
3398
|
-
const u = (d -
|
|
3397
|
+
Xr ?? (Xr = d);
|
|
3398
|
+
const u = (d - Xr) % this.shimmerDuration / this.shimmerDuration;
|
|
3399
3399
|
t.custom((g) => {
|
|
3400
3400
|
g.save(), g.beginPath(), c > 0 ? g.roundRect(i, o, n, s, c) : g.rect(i, o, n, s), g.clip();
|
|
3401
3401
|
const {
|
|
3402
3402
|
startX: v,
|
|
3403
3403
|
startY: C,
|
|
3404
|
-
endX:
|
|
3404
|
+
endX: w,
|
|
3405
3405
|
endY: m
|
|
3406
|
-
} = oc(i, o, s, u),
|
|
3407
|
-
for (const
|
|
3408
|
-
|
|
3409
|
-
g.fillStyle =
|
|
3406
|
+
} = oc(i, o, s, u), x = g.createLinearGradient(v, C, w, m);
|
|
3407
|
+
for (const F of a)
|
|
3408
|
+
x.addColorStop(F.offset, F.color);
|
|
3409
|
+
g.fillStyle = x, g.fillRect(i, o, n, s), g.restore();
|
|
3410
3410
|
}), (f = h == null ? void 0 : h.requestAnimationFrame) == null || f.call(h);
|
|
3411
3411
|
}
|
|
3412
3412
|
}
|
|
3413
|
-
function
|
|
3413
|
+
function Yr(r) {
|
|
3414
3414
|
return r in ce;
|
|
3415
3415
|
}
|
|
3416
3416
|
function tc(r) {
|
|
3417
3417
|
if (r === void 0)
|
|
3418
|
-
return ce[
|
|
3418
|
+
return ce[$r] * se;
|
|
3419
3419
|
if (typeof r == "number")
|
|
3420
|
-
return
|
|
3420
|
+
return Yr(r) ? ce[r] * se : r;
|
|
3421
3421
|
const t = r.trim(), e = Number(t);
|
|
3422
3422
|
if (!Number.isNaN(e))
|
|
3423
|
-
return
|
|
3423
|
+
return Yr(e) ? ce[e] * se : e;
|
|
3424
3424
|
const i = t.match(/^(-?\d+(?:\.\d+)?)px$/i);
|
|
3425
3425
|
if (i) {
|
|
3426
3426
|
const [, n] = i;
|
|
@@ -3431,7 +3431,7 @@ function tc(r) {
|
|
|
3431
3431
|
const [, n] = o;
|
|
3432
3432
|
return parseFloat(n) * se;
|
|
3433
3433
|
}
|
|
3434
|
-
return ce[
|
|
3434
|
+
return ce[$r] * se;
|
|
3435
3435
|
}
|
|
3436
3436
|
function ec(r) {
|
|
3437
3437
|
var i;
|
|
@@ -3462,7 +3462,7 @@ function rc(r) {
|
|
|
3462
3462
|
const [s] = i;
|
|
3463
3463
|
if (i.length < 2 || !s)
|
|
3464
3464
|
return null;
|
|
3465
|
-
let a =
|
|
3465
|
+
let a = _o, c = 0;
|
|
3466
3466
|
const h = s.match(/^(-?\d+(?:\.\d+)?)(deg|rad|turn|grad)?$/i);
|
|
3467
3467
|
if (h != null && h[1]) {
|
|
3468
3468
|
const [, u, f = "deg"] = h;
|
|
@@ -3479,7 +3479,7 @@ function rc(r) {
|
|
|
3479
3479
|
const g = f.trim().match(/^(#[0-9a-fA-F]{3,8}|rgba?\s*\([^)]+\)|hsla?\s*\([^)]+\)|[a-zA-Z]+)(?:\s+(-?\d+(?:\.\d+)?)(%))?$/);
|
|
3480
3480
|
if (!(g != null && g[1]))
|
|
3481
3481
|
continue;
|
|
3482
|
-
const [, v, C,
|
|
3482
|
+
const [, v, C, w] = g, m = w === "%" ? parseFloat(C) / 100 : l.length > 1 ? u / (l.length - 1) : 0;
|
|
3483
3483
|
d.push({
|
|
3484
3484
|
offset: Math.max(0, Math.min(1, m)),
|
|
3485
3485
|
color: v
|
|
@@ -3558,7 +3558,7 @@ function sc(r) {
|
|
|
3558
3558
|
};
|
|
3559
3559
|
}
|
|
3560
3560
|
const ac = "default", di = "pointer", cc = 0.4, lc = 2, hc = 1;
|
|
3561
|
-
class uc extends
|
|
3561
|
+
class uc extends zo {
|
|
3562
3562
|
constructor(t, e, i) {
|
|
3563
3563
|
var o;
|
|
3564
3564
|
super(t, e, i), this.view = ac, this.disabled = !1, this.isHovered = !1, this.isActive = !1, this.hasCustomColor = !1, super.style = {
|
|
@@ -3645,17 +3645,17 @@ class uc extends Bo {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
let le = 0;
|
|
3647
3647
|
const We = /* @__PURE__ */ new Set();
|
|
3648
|
-
function
|
|
3648
|
+
function Ih() {
|
|
3649
3649
|
le++, le === 1 && We.forEach((t) => t(!0));
|
|
3650
3650
|
let r = !1;
|
|
3651
3651
|
return () => {
|
|
3652
3652
|
r || (r = !0, le--, le === 0 && We.forEach((t) => t(!1)));
|
|
3653
3653
|
};
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function Hh() {
|
|
3656
3656
|
return le > 0;
|
|
3657
3657
|
}
|
|
3658
|
-
function
|
|
3658
|
+
function Lh(r) {
|
|
3659
3659
|
return We.add(r), () => {
|
|
3660
3660
|
We.delete(r);
|
|
3661
3661
|
};
|
|
@@ -3683,7 +3683,7 @@ function Hi(r, t) {
|
|
|
3683
3683
|
});
|
|
3684
3684
|
t ? t.dispatchEvent(e) : window.dispatchEvent(e);
|
|
3685
3685
|
}
|
|
3686
|
-
function
|
|
3686
|
+
function Vr(r) {
|
|
3687
3687
|
const t = Jt.get(r);
|
|
3688
3688
|
t !== void 0 && (window.clearTimeout(t), Jt.delete(r));
|
|
3689
3689
|
}
|
|
@@ -3702,7 +3702,7 @@ function Re(r, t, e) {
|
|
|
3702
3702
|
if (typeof window > "u")
|
|
3703
3703
|
return;
|
|
3704
3704
|
const i = gc(t), o = `${i}:${Cc(r.source, r.originId)}`;
|
|
3705
|
-
r.visible ? (vc(i), Hi(r, t)) : e ? (
|
|
3705
|
+
r.visible ? (vc(i), Hi(r, t)) : e ? (Vr(o), Hi(r, t)) : (Vr(o), pc(o, r, t));
|
|
3706
3706
|
}
|
|
3707
3707
|
function Ph(r, t) {
|
|
3708
3708
|
if (typeof window > "u")
|
|
@@ -3717,9 +3717,9 @@ function Ph(r, t) {
|
|
|
3717
3717
|
};
|
|
3718
3718
|
}
|
|
3719
3719
|
const mc = "cell";
|
|
3720
|
-
class
|
|
3720
|
+
class wt {
|
|
3721
3721
|
constructor(t, e) {
|
|
3722
|
-
this.bounds = null, this.batcher = new Mi(), this.portalEventTarget = null, this.tooltipContext = void 0, this.rootNode = t, this.hoverController = new
|
|
3722
|
+
this.bounds = null, this.batcher = new Mi(), this.portalEventTarget = null, this.tooltipContext = void 0, this.rootNode = t, this.hoverController = new Co({
|
|
3723
3723
|
onCursorChange: (i) => {
|
|
3724
3724
|
var o;
|
|
3725
3725
|
return (o = this.onCursorChange) == null ? void 0 : o.call(this, i);
|
|
@@ -3883,14 +3883,14 @@ function yc(r, t, e, i) {
|
|
|
3883
3883
|
...i
|
|
3884
3884
|
};
|
|
3885
3885
|
}
|
|
3886
|
-
function
|
|
3886
|
+
function ko(r) {
|
|
3887
3887
|
var e;
|
|
3888
3888
|
const t = r;
|
|
3889
3889
|
return !!(t && t.kind === Rt.Custom && ((e = t.data) == null ? void 0 : e.kind) === Wi);
|
|
3890
3890
|
}
|
|
3891
|
-
const ze = 5,
|
|
3892
|
-
function
|
|
3893
|
-
for (const [e, i] of
|
|
3891
|
+
const ze = 5, Fc = [["hoverX", "hoverY"], ["mouseX", "mouseY"], ["pointerX", "pointerY"], ["posX", "posY"], ["x", "y"]], bc = "default", xc = "pointer";
|
|
3892
|
+
function wc(r, t) {
|
|
3893
|
+
for (const [e, i] of Fc) {
|
|
3894
3894
|
const o = r[e], n = r[i];
|
|
3895
3895
|
if (typeof o == "number" && typeof n == "number" && !Number.isNaN(o) && !Number.isNaN(n)) {
|
|
3896
3896
|
if (Sc(o, n, t))
|
|
@@ -3912,8 +3912,8 @@ function Sc(r, t, e) {
|
|
|
3912
3912
|
function Ac(r, t, e) {
|
|
3913
3913
|
return r >= -ze && r <= e.width + ze && t >= -ze && t <= e.height + ze;
|
|
3914
3914
|
}
|
|
3915
|
-
function
|
|
3916
|
-
if ((r == null ? void 0 : r.canvasRoot) instanceof
|
|
3915
|
+
function Ec(r, t, e) {
|
|
3916
|
+
if ((r == null ? void 0 : r.canvasRoot) instanceof wt) {
|
|
3917
3917
|
const i = e ? "nativeEvent" in e ? e.nativeEvent : e : void 0;
|
|
3918
3918
|
return r.canvasRoot.dispatchPointerEvent("click", t.x, t.y, i);
|
|
3919
3919
|
}
|
|
@@ -3922,13 +3922,13 @@ function Tc(r, t, e) {
|
|
|
3922
3922
|
suppressGridDefault: !1
|
|
3923
3923
|
};
|
|
3924
3924
|
}
|
|
3925
|
-
function
|
|
3925
|
+
function Tc(r, t) {
|
|
3926
3926
|
if (r != null && r.clickHandlers && Array.isArray(r.clickHandlers)) {
|
|
3927
3927
|
for (const {
|
|
3928
3928
|
area: e,
|
|
3929
3929
|
handler: i
|
|
3930
3930
|
} of r.clickHandlers)
|
|
3931
|
-
if (
|
|
3931
|
+
if (Do(t.x, t.y, e))
|
|
3932
3932
|
return i(), !0;
|
|
3933
3933
|
}
|
|
3934
3934
|
return !1;
|
|
@@ -3939,51 +3939,51 @@ function Dc(r, t, e, i, o, n) {
|
|
|
3939
3939
|
} = r.data;
|
|
3940
3940
|
return s ? !!s(t.x, t.y, e, i, o, n ?? void 0) : !1;
|
|
3941
3941
|
}
|
|
3942
|
-
const
|
|
3942
|
+
const Li = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new Map();
|
|
3943
3943
|
function Ic(r, t, e) {
|
|
3944
3944
|
const i = {
|
|
3945
3945
|
...e ?? {}
|
|
3946
3946
|
};
|
|
3947
|
-
return delete i.hoveredAreas,
|
|
3947
|
+
return delete i.hoveredAreas, Mo.set(r, i), t.data.renderData = i, i;
|
|
3948
3948
|
}
|
|
3949
3949
|
function fe(r, t) {
|
|
3950
|
-
return t.data.renderData ??
|
|
3950
|
+
return t.data.renderData ?? Mo.get(r);
|
|
3951
3951
|
}
|
|
3952
3952
|
function Hc(r, t) {
|
|
3953
3953
|
var i, o;
|
|
3954
|
-
(((i =
|
|
3954
|
+
(((i = Li.get(r)) == null ? void 0 : i.hovered) ?? !1) !== t && (Li.set(r, {
|
|
3955
3955
|
hovered: t
|
|
3956
|
-
}), t ? (o = r.onMouseEnter) == null || o.call(r) :
|
|
3956
|
+
}), t ? (o = r.onMouseEnter) == null || o.call(r) : Lc(r));
|
|
3957
3957
|
}
|
|
3958
|
-
function
|
|
3958
|
+
function Lc(r) {
|
|
3959
3959
|
const {
|
|
3960
3960
|
renderData: t
|
|
3961
3961
|
} = r;
|
|
3962
|
-
(t == null ? void 0 : t.canvasRoot) instanceof
|
|
3962
|
+
(t == null ? void 0 : t.canvasRoot) instanceof wt && t.canvasRoot.forcePortalHide();
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function Pc(r) {
|
|
3965
3965
|
var t;
|
|
3966
|
-
return (t =
|
|
3966
|
+
return (t = Li.get(r)) == null ? void 0 : t.hovered;
|
|
3967
3967
|
}
|
|
3968
3968
|
function Bc(r, t, e, i) {
|
|
3969
3969
|
var o;
|
|
3970
|
-
if (r instanceof
|
|
3970
|
+
if (r instanceof wt)
|
|
3971
3971
|
if (t) {
|
|
3972
3972
|
if (e.event) {
|
|
3973
3973
|
const s = "nativeEvent" in e.event ? e.event.nativeEvent : e.event;
|
|
3974
3974
|
r.dispatchPointerEvent("mousemove", t.x, t.y, s);
|
|
3975
3975
|
}
|
|
3976
3976
|
const n = r.computeCursor(t.x, t.y);
|
|
3977
|
-
n && n !==
|
|
3977
|
+
n && n !== bc && ((o = i.overrideCursor) == null || o.call(i, n));
|
|
3978
3978
|
} else
|
|
3979
3979
|
r.handleMouseLeave(), r.forcePortalHide();
|
|
3980
3980
|
}
|
|
3981
3981
|
function zc(r, t, e, i, o) {
|
|
3982
3982
|
var c;
|
|
3983
|
-
const n = !!(t && e.some((h) =>
|
|
3984
|
-
a !== s && Hc(r, a), n && !i && ((c = o.overrideCursor) == null || c.call(o,
|
|
3983
|
+
const n = !!(t && e.some((h) => Do(t.x, t.y, h))), s = Pc(r) ?? !1, a = !!t;
|
|
3984
|
+
a !== s && Hc(r, a), n && !i && ((c = o.overrideCursor) == null || c.call(o, xc));
|
|
3985
3985
|
}
|
|
3986
|
-
function
|
|
3986
|
+
function Ro({
|
|
3987
3987
|
cell: r,
|
|
3988
3988
|
rect: t,
|
|
3989
3989
|
relativePoint: e,
|
|
@@ -3992,12 +3992,12 @@ function Mo({
|
|
|
3992
3992
|
rowIndex: n,
|
|
3993
3993
|
event: s
|
|
3994
3994
|
}) {
|
|
3995
|
-
const a =
|
|
3995
|
+
const a = Ec(i, e, s);
|
|
3996
3996
|
return a.propagationStopped ? {
|
|
3997
3997
|
handled: !0,
|
|
3998
3998
|
propagationStopped: !0,
|
|
3999
3999
|
suppressGridDefault: a.suppressGridDefault
|
|
4000
|
-
} :
|
|
4000
|
+
} : Tc(i, e) ? {
|
|
4001
4001
|
handled: !0,
|
|
4002
4002
|
propagationStopped: !1,
|
|
4003
4003
|
suppressGridDefault: a.suppressGridDefault
|
|
@@ -4011,7 +4011,7 @@ function Mo({
|
|
|
4011
4011
|
suppressGridDefault: a.suppressGridDefault
|
|
4012
4012
|
};
|
|
4013
4013
|
}
|
|
4014
|
-
function
|
|
4014
|
+
function Oo(r) {
|
|
4015
4015
|
const t = r.selection === "keep", e = r.cellClick === "stop", i = r.editor === "never", o = r.contextMenu === "keep-selection" ? "manual-keep-selection" : r.contextMenu === "none" ? "none" : "normal";
|
|
4016
4016
|
return {
|
|
4017
4017
|
suppressEarlyGridSelect: t,
|
|
@@ -4044,17 +4044,17 @@ function kc({
|
|
|
4044
4044
|
renderData: r,
|
|
4045
4045
|
relativePoint: t
|
|
4046
4046
|
}) {
|
|
4047
|
-
const e = (r == null ? void 0 : r.canvasRoot) instanceof
|
|
4047
|
+
const e = (r == null ? void 0 : r.canvasRoot) instanceof wt ? r.canvasRoot.getInteractionAtPoint(t.x, t.y) : void 0;
|
|
4048
4048
|
return e ? {
|
|
4049
4049
|
handled: !0,
|
|
4050
|
-
suppressEarlyGridSelect:
|
|
4050
|
+
suppressEarlyGridSelect: Oo(e).suppressEarlyGridSelect,
|
|
4051
4051
|
interaction: e
|
|
4052
4052
|
} : {
|
|
4053
4053
|
handled: !1,
|
|
4054
4054
|
suppressEarlyGridSelect: !1
|
|
4055
4055
|
};
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function No(r = {}) {
|
|
4058
4058
|
return {
|
|
4059
4059
|
kind: Rt.Custom,
|
|
4060
4060
|
isMatch: (t) => {
|
|
@@ -4065,10 +4065,10 @@ function Oo(r = {}) {
|
|
|
4065
4065
|
needsHoverPosition: !0,
|
|
4066
4066
|
onSelect: (t) => {
|
|
4067
4067
|
var u;
|
|
4068
|
-
const e = t.cell, i = t.bounds, o =
|
|
4068
|
+
const e = t.cell, i = t.bounds, o = Sr(t);
|
|
4069
4069
|
if (!o)
|
|
4070
4070
|
return;
|
|
4071
|
-
const n =
|
|
4071
|
+
const n = Ar(o, i), s = ai(t), a = de(s, i), c = fe(a, e), h = kc({
|
|
4072
4072
|
renderData: c,
|
|
4073
4073
|
relativePoint: n
|
|
4074
4074
|
}), d = t.location ?? [s.colIndex, s.rowIndex], l = h.interaction && r.beginOrGetInteractionSession ? r.beginOrGetInteractionSession({
|
|
@@ -4084,16 +4084,16 @@ function Oo(r = {}) {
|
|
|
4084
4084
|
},
|
|
4085
4085
|
onClick: (t) => {
|
|
4086
4086
|
var u, f;
|
|
4087
|
-
const e = t.cell, i = t.bounds, o =
|
|
4087
|
+
const e = t.cell, i = t.bounds, o = Sr(t);
|
|
4088
4088
|
if (!o)
|
|
4089
4089
|
return;
|
|
4090
|
-
const n =
|
|
4090
|
+
const n = Ar(o, i), s = ai(t), a = de(s, i), c = fe(a, e), h = t.location ?? [s.colIndex, s.rowIndex], l = ((u = r.consumeCanvasClickResult) == null ? void 0 : u.call(r, {
|
|
4091
4091
|
cell: h,
|
|
4092
4092
|
relativePoint: n,
|
|
4093
4093
|
...t.button !== void 0 ? {
|
|
4094
4094
|
button: t.button
|
|
4095
4095
|
} : {}
|
|
4096
|
-
})) ??
|
|
4096
|
+
})) ?? Ro({
|
|
4097
4097
|
cell: e,
|
|
4098
4098
|
rect: i,
|
|
4099
4099
|
relativePoint: n,
|
|
@@ -4122,7 +4122,7 @@ function Oo(r = {}) {
|
|
|
4122
4122
|
event: t.event,
|
|
4123
4123
|
frameTime: t.frameTime,
|
|
4124
4124
|
requestAnimationFrame: t.requestAnimationFrame
|
|
4125
|
-
}, l = Hs(t.hoverX, t.hoverY, o) ??
|
|
4125
|
+
}, l = Hs(t.hoverX, t.hoverY, o) ?? wc(d, o);
|
|
4126
4126
|
i.save();
|
|
4127
4127
|
const u = fe(h, e), f = s(i, o, a, l == null ? void 0 : l.x, l == null ? void 0 : l.y, {
|
|
4128
4128
|
...d,
|
|
@@ -4136,7 +4136,7 @@ function Oo(r = {}) {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
4138
|
}
|
|
4139
|
-
const
|
|
4139
|
+
const Bh = No(), Ge = /* @__PURE__ */ new Map();
|
|
4140
4140
|
function Mc(r) {
|
|
4141
4141
|
const t = Rc(r), e = Ge.get(t);
|
|
4142
4142
|
if (e)
|
|
@@ -4160,18 +4160,18 @@ function Rc(r) {
|
|
|
4160
4160
|
return `${e}:${s}`;
|
|
4161
4161
|
}
|
|
4162
4162
|
function Ht(r) {
|
|
4163
|
-
return
|
|
4163
|
+
return no(r);
|
|
4164
4164
|
}
|
|
4165
|
-
function
|
|
4165
|
+
function bt(r) {
|
|
4166
4166
|
return typeof r == "string" ? r : Ht(r) ? Mc(r) : "";
|
|
4167
4167
|
}
|
|
4168
|
-
function
|
|
4168
|
+
function zh() {
|
|
4169
4169
|
Ge.clear();
|
|
4170
4170
|
}
|
|
4171
|
-
function
|
|
4171
|
+
function _h() {
|
|
4172
4172
|
return Ge.size;
|
|
4173
4173
|
}
|
|
4174
|
-
const
|
|
4174
|
+
const Kr = (r) => {
|
|
4175
4175
|
if (r === void 0)
|
|
4176
4176
|
return;
|
|
4177
4177
|
if (typeof r == "number")
|
|
@@ -4188,7 +4188,7 @@ const Vr = (r) => {
|
|
|
4188
4188
|
const o = Number(t);
|
|
4189
4189
|
if (!Number.isNaN(o))
|
|
4190
4190
|
return o;
|
|
4191
|
-
},
|
|
4191
|
+
}, qr = {
|
|
4192
4192
|
small: {
|
|
4193
4193
|
radius: 4,
|
|
4194
4194
|
stroke: 1.5
|
|
@@ -4203,27 +4203,27 @@ const Vr = (r) => {
|
|
|
4203
4203
|
}
|
|
4204
4204
|
};
|
|
4205
4205
|
function Oc(r, t, e, i, o, n, s, a, c, h, d = !1, l = !1) {
|
|
4206
|
-
const f = s - 0, v = Math.min(f - 0,
|
|
4206
|
+
const f = s - 0, v = Math.min(f - 0, vo), C = n === "auto" ? v : n, w = e + 0, m = (c == null ? void 0 : c.rowSize) || "medium", x = !i && !o, F = Qt(l, {
|
|
4207
4207
|
x: t,
|
|
4208
4208
|
y: e,
|
|
4209
4209
|
width: C,
|
|
4210
4210
|
height: s
|
|
4211
|
-
}), A =
|
|
4212
|
-
return r.roundedRect(t,
|
|
4211
|
+
}), A = Es(c, i, o, F, d), y = t + C * 0.5, H = w + f * 0.5, E = y - v * 0.5, L = H - v * 0.5;
|
|
4212
|
+
return r.roundedRect(t, w, C, f, qr[m].radius, {
|
|
4213
4213
|
fillStyle: A.bgColor,
|
|
4214
4214
|
strokeStyle: A.borderColor,
|
|
4215
|
-
lineWidth:
|
|
4216
|
-
}), vt(r, a,
|
|
4215
|
+
lineWidth: x ? qr[m].stroke : void 0
|
|
4216
|
+
}), vt(r, a, E, L, v, A.iconColor), {
|
|
4217
4217
|
x: t,
|
|
4218
|
-
y:
|
|
4218
|
+
y: w,
|
|
4219
4219
|
width: C,
|
|
4220
4220
|
height: f
|
|
4221
4221
|
};
|
|
4222
4222
|
}
|
|
4223
|
-
const Nc = 28, Wc = "default", Gc = "s",
|
|
4223
|
+
const Nc = 28, Wc = "default", Gc = "s", Zr = "pointer", $c = 20, Pi = {
|
|
4224
4224
|
indeterminateIcon: '<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="none"><path stroke-linecap="round" stroke-width="2" stroke="currentColor" d="m5.09449,9.0315l8,0"></path></svg>',
|
|
4225
4225
|
checkedIcon: '<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="currentColor" d="m5.70711,8.15582c-0.39053,-0.39052 -1.02369,-0.39052 -1.41422,0c-0.39052,0.39053 -0.39052,1.02369 0,1.41422l3.70666,3.70666l6.71095,-6.70248c0.3908,-0.39027 0.3912,-1.02344 0.0009,-1.41421c-0.3903,-0.39077 -1.02344,-0.39117 -1.41421,-0.00089l-5.29674,5.29004l-2.29334,-2.29334z"></path></svg>'
|
|
4226
|
-
}, Uc = Object.values(
|
|
4226
|
+
}, Uc = Object.values(Pi), Xc = {
|
|
4227
4227
|
accentColor: "#1e88e5",
|
|
4228
4228
|
accentFg: "#ffffff"
|
|
4229
4229
|
};
|
|
@@ -4231,7 +4231,7 @@ class Yc extends St {
|
|
|
4231
4231
|
constructor(t, e, i = !1, o = !1, n) {
|
|
4232
4232
|
super(t), this.view = Wc, this.buttonSize = Gc, this.isHovered = !1, this.useNewApi = !1, this.icon = e, this.checked = i, this.indeterminate = o, this.size = (n == null ? void 0 : n.size) ?? "auto", this.theme = n == null ? void 0 : n.theme, this.view = (n == null ? void 0 : n.view) ?? "primary", this.disabled = (n == null ? void 0 : n.disabled) ?? !1, super.style = {
|
|
4233
4233
|
...super.style,
|
|
4234
|
-
cursor: this.disabled ? "auto" :
|
|
4234
|
+
cursor: this.disabled ? "auto" : Zr
|
|
4235
4235
|
}, !this.disabled && (n != null && n.onClick) && (this.onClick = (s) => {
|
|
4236
4236
|
var a;
|
|
4237
4237
|
return (a = n.onClick) == null ? void 0 : a.call(n, s);
|
|
@@ -4245,7 +4245,7 @@ class Yc extends St {
|
|
|
4245
4245
|
}
|
|
4246
4246
|
get style() {
|
|
4247
4247
|
const t = super.style;
|
|
4248
|
-
return t.cursor || (t.cursor =
|
|
4248
|
+
return t.cursor || (t.cursor = Zr), t;
|
|
4249
4249
|
}
|
|
4250
4250
|
measure(t) {
|
|
4251
4251
|
if (this.useNewApi) {
|
|
@@ -4309,7 +4309,7 @@ const Kc = ({
|
|
|
4309
4309
|
}, e) => (t == null ? void 0 : t(e)) ?? r, pt = (r) => {
|
|
4310
4310
|
const t = (e) => null;
|
|
4311
4311
|
return t.__canvasType = r, t;
|
|
4312
|
-
},
|
|
4312
|
+
}, kh = ue.memo(({
|
|
4313
4313
|
cellId: r,
|
|
4314
4314
|
renderContent: t,
|
|
4315
4315
|
nodeRegistry: e,
|
|
@@ -4350,7 +4350,7 @@ const Kc = ({
|
|
|
4350
4350
|
* // Option 2: Convert manually if needed
|
|
4351
4351
|
* const checkSvg = Canvas.icon(<IconCheck />)
|
|
4352
4352
|
*/
|
|
4353
|
-
icon:
|
|
4353
|
+
icon: bt
|
|
4354
4354
|
};
|
|
4355
4355
|
function dt(r, t) {
|
|
4356
4356
|
if (r)
|
|
@@ -4363,7 +4363,7 @@ function Bi({
|
|
|
4363
4363
|
idPrefix: t = "root",
|
|
4364
4364
|
theme: e
|
|
4365
4365
|
}) {
|
|
4366
|
-
const i = [], o =
|
|
4366
|
+
const i = [], o = Wo(r, t, 0, i, e);
|
|
4367
4367
|
if (i.length > 0) {
|
|
4368
4368
|
const n = /* @__PURE__ */ new Map();
|
|
4369
4369
|
for (const {
|
|
@@ -4386,7 +4386,7 @@ function Bi({
|
|
|
4386
4386
|
function zi(r) {
|
|
4387
4387
|
return r == null ? "" : typeof r == "string" || typeof r == "number" ? String(r) : Array.isArray(r) ? r.map(zi).join("") : "";
|
|
4388
4388
|
}
|
|
4389
|
-
function
|
|
4389
|
+
function jr(r, t, e) {
|
|
4390
4390
|
const i = r.fontMetrics, o = r.fonts;
|
|
4391
4391
|
if (i === void 0 || o === void 0)
|
|
4392
4392
|
return {};
|
|
@@ -4401,13 +4401,13 @@ function Zr(r, t, e) {
|
|
|
4401
4401
|
} : {}
|
|
4402
4402
|
};
|
|
4403
4403
|
}
|
|
4404
|
-
function
|
|
4404
|
+
function Wo(r, t, e, i, o) {
|
|
4405
4405
|
if (!r || !ue.isValidElement(r))
|
|
4406
4406
|
throw new Error("Invalid element. Use Canvas.* components.");
|
|
4407
4407
|
const n = r.type, s = n.__canvasType;
|
|
4408
4408
|
if (!s)
|
|
4409
4409
|
throw new Error(`Unknown canvas component. Use Canvas.* components. Got: ${(n == null ? void 0 : n.name) || n}`);
|
|
4410
|
-
const a = r.props, h = (r.key != null ? String(r.key) : null) ?? e, d = a.id ?? `${t}-${s.toLowerCase()}-${h}`, l = (g) => Ht(g) ?
|
|
4410
|
+
const a = r.props, h = (r.key != null ? String(r.key) : null) ?? e, d = a.id ?? `${t}-${s.toLowerCase()}-${h}`, l = (g) => Ht(g) ? bt(g) : g;
|
|
4411
4411
|
if (s === "Icon" && a.icon)
|
|
4412
4412
|
i.push({
|
|
4413
4413
|
icon: l(a.icon),
|
|
@@ -4471,8 +4471,8 @@ function No(r, t, e, i, o) {
|
|
|
4471
4471
|
} = a;
|
|
4472
4472
|
return f && u instanceof yt && ue.Children.toArray(f).forEach((v, C) => {
|
|
4473
4473
|
if (ue.isValidElement(v)) {
|
|
4474
|
-
const
|
|
4475
|
-
u.addChild(
|
|
4474
|
+
const w = Wo(v, d, C, i, o);
|
|
4475
|
+
u.addChild(w);
|
|
4476
4476
|
}
|
|
4477
4477
|
}), u;
|
|
4478
4478
|
}
|
|
@@ -4492,20 +4492,20 @@ function sl(r, t, e, i) {
|
|
|
4492
4492
|
zIndex: g,
|
|
4493
4493
|
onClick: v,
|
|
4494
4494
|
onMouseEnter: C,
|
|
4495
|
-
onMouseLeave:
|
|
4495
|
+
onMouseLeave: w,
|
|
4496
4496
|
onMouseDown: m,
|
|
4497
|
-
backgroundColor:
|
|
4498
|
-
__backgroundColorResolver:
|
|
4497
|
+
backgroundColor: x,
|
|
4498
|
+
__backgroundColorResolver: F,
|
|
4499
4499
|
portalHoverEnabled: A,
|
|
4500
4500
|
...y
|
|
4501
4501
|
} = o, H = {
|
|
4502
4502
|
...y,
|
|
4503
4503
|
columnGap: a ?? s ?? 0,
|
|
4504
4504
|
rowGap: c ?? s ?? 0
|
|
4505
|
-
},
|
|
4506
|
-
h && (
|
|
4507
|
-
const
|
|
4508
|
-
return
|
|
4505
|
+
}, E = new yt(t, H, Kc(o, i));
|
|
4506
|
+
h && (E.position = h), d !== void 0 && (E.left = d), l !== void 0 && (E.top = l), u !== void 0 && (E.right = u), f !== void 0 && (E.bottom = f);
|
|
4507
|
+
const L = dt(v), O = dt(C), at = dt(w), G = dt(m);
|
|
4508
|
+
return L && (E.onClick = L), O && (E.onMouseEnter = O), at && (E.onMouseLeave = at), G && (E.onMouseDown = G), E;
|
|
4509
4509
|
}
|
|
4510
4510
|
case "Text": {
|
|
4511
4511
|
const {
|
|
@@ -4522,13 +4522,13 @@ function sl(r, t, e, i) {
|
|
|
4522
4522
|
position: g,
|
|
4523
4523
|
left: v,
|
|
4524
4524
|
top: C,
|
|
4525
|
-
right:
|
|
4525
|
+
right: w,
|
|
4526
4526
|
bottom: m,
|
|
4527
|
-
portalHoverEnabled:
|
|
4528
|
-
} = e,
|
|
4527
|
+
portalHoverEnabled: x
|
|
4528
|
+
} = e, F = zi(o), A = i.fontFamily || '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
|
|
4529
4529
|
let y;
|
|
4530
4530
|
n ? y = /["']|sans-serif|serif|monospace/i.test(n) ? n : `${n} ${A}` : y = i.baseFontStyle ? `${i.baseFontStyle} ${A}` : `13px ${A}`;
|
|
4531
|
-
const H =
|
|
4531
|
+
const H = jr(i, n, c), E = new zo(t, F, {
|
|
4532
4532
|
font: y,
|
|
4533
4533
|
...H,
|
|
4534
4534
|
color: s,
|
|
@@ -4540,7 +4540,7 @@ function sl(r, t, e, i) {
|
|
|
4540
4540
|
maxLines: u,
|
|
4541
4541
|
autoTooltip: f
|
|
4542
4542
|
});
|
|
4543
|
-
return g && (
|
|
4543
|
+
return g && (E.position = g), v !== void 0 && (E.left = v), C !== void 0 && (E.top = C), w !== void 0 && (E.right = w), m !== void 0 && (E.bottom = m), E;
|
|
4544
4544
|
}
|
|
4545
4545
|
case "Icon": {
|
|
4546
4546
|
const {
|
|
@@ -4557,13 +4557,13 @@ function sl(r, t, e, i) {
|
|
|
4557
4557
|
onMouseEnter: g,
|
|
4558
4558
|
onMouseLeave: v,
|
|
4559
4559
|
onMouseDown: C
|
|
4560
|
-
} = e,
|
|
4560
|
+
} = e, w = Ht(o) ? bt(o) : o, m = new ha(t, w, {
|
|
4561
4561
|
size: n,
|
|
4562
4562
|
color: s
|
|
4563
4563
|
});
|
|
4564
4564
|
a && (m.backgroundColor = a), c && (m.position = c), h !== void 0 && (m.left = h), d !== void 0 && (m.top = d), l !== void 0 && (m.right = l), u !== void 0 && (m.bottom = u);
|
|
4565
|
-
const
|
|
4566
|
-
return
|
|
4565
|
+
const x = dt(f), F = dt(g), A = dt(v), y = dt(C);
|
|
4566
|
+
return x && (m.onClick = x), F && (m.onMouseEnter = F), A && (m.onMouseLeave = A), y && (m.onMouseDown = y), m;
|
|
4567
4567
|
}
|
|
4568
4568
|
case "Button": {
|
|
4569
4569
|
const {
|
|
@@ -4580,20 +4580,20 @@ function sl(r, t, e, i) {
|
|
|
4580
4580
|
right: g,
|
|
4581
4581
|
bottom: v,
|
|
4582
4582
|
onClick: C
|
|
4583
|
-
} = e,
|
|
4583
|
+
} = e, w = typeof o == "string" ? o : "", m = Ht(c) ? bt(c) : c, x = Ht(h) ? bt(h) : h, F = new js(t, w, {
|
|
4584
4584
|
variant: n,
|
|
4585
4585
|
view: s,
|
|
4586
4586
|
size: a,
|
|
4587
4587
|
leftIcon: m,
|
|
4588
|
-
rightIcon:
|
|
4588
|
+
rightIcon: x,
|
|
4589
4589
|
disabled: d,
|
|
4590
4590
|
theme: i
|
|
4591
4591
|
});
|
|
4592
|
-
if (l && (
|
|
4592
|
+
if (l && (F.position = l), u !== void 0 && (F.left = u), f !== void 0 && (F.top = f), g !== void 0 && (F.right = g), v !== void 0 && (F.bottom = v), !d) {
|
|
4593
4593
|
const A = dt(C);
|
|
4594
|
-
A && (
|
|
4594
|
+
A && (F.onClick = A);
|
|
4595
4595
|
}
|
|
4596
|
-
return
|
|
4596
|
+
return F;
|
|
4597
4597
|
}
|
|
4598
4598
|
case "EmbedIconButton":
|
|
4599
4599
|
case "IconButton": {
|
|
@@ -4611,8 +4611,8 @@ function sl(r, t, e, i) {
|
|
|
4611
4611
|
top: g,
|
|
4612
4612
|
right: v,
|
|
4613
4613
|
bottom: C,
|
|
4614
|
-
onClick:
|
|
4615
|
-
} = e, m = Ht(o) ?
|
|
4614
|
+
onClick: w
|
|
4615
|
+
} = e, m = Ht(o) ? bt(o) : o, x = r === "IconButton" ? va : _r, F = new x(t, m, {
|
|
4616
4616
|
size: n,
|
|
4617
4617
|
variant: s,
|
|
4618
4618
|
view: a,
|
|
@@ -4621,18 +4621,18 @@ function sl(r, t, e, i) {
|
|
|
4621
4621
|
overrideIconSize: d,
|
|
4622
4622
|
disabled: l
|
|
4623
4623
|
});
|
|
4624
|
-
if (
|
|
4624
|
+
if (F instanceof _r) {
|
|
4625
4625
|
const {
|
|
4626
4626
|
iconColor: A,
|
|
4627
4627
|
iconColorHovered: y
|
|
4628
4628
|
} = e;
|
|
4629
|
-
A !== void 0 && (
|
|
4629
|
+
A !== void 0 && (F.iconColor = A), y !== void 0 && (F.iconColorHovered = y);
|
|
4630
4630
|
}
|
|
4631
|
-
if (u && (
|
|
4632
|
-
const A = dt(
|
|
4633
|
-
A && (
|
|
4631
|
+
if (u && (F.position = u), f !== void 0 && (F.left = f), g !== void 0 && (F.top = g), v !== void 0 && (F.right = v), C !== void 0 && (F.bottom = C), !l) {
|
|
4632
|
+
const A = dt(w);
|
|
4633
|
+
A && (F.onClick = A);
|
|
4634
4634
|
}
|
|
4635
|
-
return
|
|
4635
|
+
return F;
|
|
4636
4636
|
}
|
|
4637
4637
|
case "Checkbox": {
|
|
4638
4638
|
const {
|
|
@@ -4649,7 +4649,7 @@ function sl(r, t, e, i) {
|
|
|
4649
4649
|
right: g,
|
|
4650
4650
|
bottom: v,
|
|
4651
4651
|
onClick: C
|
|
4652
|
-
} = e,
|
|
4652
|
+
} = e, w = bt(o ? Pi.checkedIcon : Pi.indeterminateIcon), m = new Yc(t, w, o, n, {
|
|
4653
4653
|
size: s,
|
|
4654
4654
|
theme: a ?? i,
|
|
4655
4655
|
view: c,
|
|
@@ -4657,8 +4657,8 @@ function sl(r, t, e, i) {
|
|
|
4657
4657
|
disabled: d
|
|
4658
4658
|
});
|
|
4659
4659
|
if (l && (m.position = l), u !== void 0 && (m.left = u), f !== void 0 && (m.top = f), g !== void 0 && (m.right = g), v !== void 0 && (m.bottom = v), !d) {
|
|
4660
|
-
const
|
|
4661
|
-
|
|
4660
|
+
const x = dt(C);
|
|
4661
|
+
x && (m.onClick = x);
|
|
4662
4662
|
}
|
|
4663
4663
|
return m;
|
|
4664
4664
|
}
|
|
@@ -4690,22 +4690,22 @@ function sl(r, t, e, i) {
|
|
|
4690
4690
|
left: g,
|
|
4691
4691
|
top: v,
|
|
4692
4692
|
right: C,
|
|
4693
|
-
bottom:
|
|
4693
|
+
bottom: w,
|
|
4694
4694
|
portalHoverEnabled: m,
|
|
4695
|
-
pilled:
|
|
4696
|
-
} = e,
|
|
4695
|
+
pilled: x
|
|
4696
|
+
} = e, F = Ht(h) ? bt(h) : h, A = Ht(d) ? bt(d) : d, y = new Vs(t, o, {
|
|
4697
4697
|
view: n,
|
|
4698
4698
|
size: s,
|
|
4699
4699
|
transparent: a,
|
|
4700
4700
|
clear: c,
|
|
4701
|
-
leftIcon:
|
|
4701
|
+
leftIcon: F,
|
|
4702
4702
|
rightIcon: A,
|
|
4703
|
-
pilled:
|
|
4703
|
+
pilled: x,
|
|
4704
4704
|
customColor: l,
|
|
4705
4705
|
customBackgroundColor: u,
|
|
4706
4706
|
theme: i
|
|
4707
4707
|
});
|
|
4708
|
-
return f && (y.position = f), g !== void 0 && (y.left = g), v !== void 0 && (y.top = v), C !== void 0 && (y.right = C),
|
|
4708
|
+
return f && (y.position = f), g !== void 0 && (y.left = g), v !== void 0 && (y.top = v), C !== void 0 && (y.right = C), w !== void 0 && (y.bottom = w), y;
|
|
4709
4709
|
}
|
|
4710
4710
|
case "Skeleton": {
|
|
4711
4711
|
const {
|
|
@@ -4718,7 +4718,7 @@ function sl(r, t, e, i) {
|
|
|
4718
4718
|
shimmerDuration: d,
|
|
4719
4719
|
style: l,
|
|
4720
4720
|
portalHoverEnabled: u
|
|
4721
|
-
} = e, f =
|
|
4721
|
+
} = e, f = Kr(o), g = Kr(n), v = {
|
|
4722
4722
|
...l,
|
|
4723
4723
|
...f !== void 0 ? {
|
|
4724
4724
|
width: f
|
|
@@ -4750,17 +4750,17 @@ function sl(r, t, e, i) {
|
|
|
4750
4750
|
textOverflow: g,
|
|
4751
4751
|
ellipsis: v,
|
|
4752
4752
|
maxLines: C,
|
|
4753
|
-
position:
|
|
4753
|
+
position: w,
|
|
4754
4754
|
left: m,
|
|
4755
|
-
top:
|
|
4756
|
-
right:
|
|
4755
|
+
top: x,
|
|
4756
|
+
right: F,
|
|
4757
4757
|
bottom: A,
|
|
4758
4758
|
onClick: y,
|
|
4759
4759
|
portalHoverEnabled: H
|
|
4760
|
-
} = e,
|
|
4760
|
+
} = e, E = zi(o), L = i.fontFamily || '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';
|
|
4761
4761
|
let O;
|
|
4762
|
-
h ? O = /["']|sans-serif|serif|monospace/i.test(h) ? h : `${h} ${
|
|
4763
|
-
const at =
|
|
4762
|
+
h ? O = /["']|sans-serif|serif|monospace/i.test(h) ? h : `${h} ${L}` : O = i.baseFontStyle ? `${i.baseFontStyle} ${L}` : `13px ${L}`;
|
|
4763
|
+
const at = jr(i, h, u), G = new uc(t, E, {
|
|
4764
4764
|
font: O,
|
|
4765
4765
|
...at,
|
|
4766
4766
|
color: d,
|
|
@@ -4776,7 +4776,7 @@ function sl(r, t, e, i) {
|
|
|
4776
4776
|
disabled: c,
|
|
4777
4777
|
theme: i
|
|
4778
4778
|
});
|
|
4779
|
-
if (
|
|
4779
|
+
if (w && (G.position = w), m !== void 0 && (G.left = m), x !== void 0 && (G.top = x), F !== void 0 && (G.right = F), A !== void 0 && (G.bottom = A), !c) {
|
|
4780
4780
|
const tt = dt(y);
|
|
4781
4781
|
tt && G.setOnClick(tt);
|
|
4782
4782
|
}
|
|
@@ -4823,7 +4823,7 @@ function fl(r = {}) {
|
|
|
4823
4823
|
function gl(r) {
|
|
4824
4824
|
return dl().then(() => fl(r));
|
|
4825
4825
|
}
|
|
4826
|
-
function
|
|
4826
|
+
function Go({
|
|
4827
4827
|
dataEditorRef: r,
|
|
4828
4828
|
rowCount: t,
|
|
4829
4829
|
columnCount: e,
|
|
@@ -4840,7 +4840,7 @@ function Wo({
|
|
|
4840
4840
|
});
|
|
4841
4841
|
a.length > 0 && o.updateCells(a);
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4843
|
+
function $o(r) {
|
|
4844
4844
|
let t = null;
|
|
4845
4845
|
return () => {
|
|
4846
4846
|
t === null && (t = requestAnimationFrame(() => {
|
|
@@ -4848,7 +4848,7 @@ function Go(r) {
|
|
|
4848
4848
|
}));
|
|
4849
4849
|
};
|
|
4850
4850
|
}
|
|
4851
|
-
function
|
|
4851
|
+
function Mh() {
|
|
4852
4852
|
const r = rt(null), t = U(() => (r.current || (r.current = new Cs()), r.current), []);
|
|
4853
4853
|
return {
|
|
4854
4854
|
registry: t(),
|
|
@@ -4862,8 +4862,8 @@ function Cl({
|
|
|
4862
4862
|
headerAndGroupHeaderRowsCount: i
|
|
4863
4863
|
}) {
|
|
4864
4864
|
pi(() => {
|
|
4865
|
-
const o =
|
|
4866
|
-
Va(),
|
|
4865
|
+
const o = $o(() => {
|
|
4866
|
+
Va(), Go({
|
|
4867
4867
|
dataEditorRef: r,
|
|
4868
4868
|
rowCount: t,
|
|
4869
4869
|
columnCount: e,
|
|
@@ -4879,9 +4879,9 @@ function vl({
|
|
|
4879
4879
|
columnCount: e,
|
|
4880
4880
|
headerAndGroupHeaderRowsCount: i
|
|
4881
4881
|
}) {
|
|
4882
|
-
|
|
4883
|
-
const o =
|
|
4884
|
-
|
|
4882
|
+
xt(() => {
|
|
4883
|
+
const o = $o(() => {
|
|
4884
|
+
Go({
|
|
4885
4885
|
dataEditorRef: r,
|
|
4886
4886
|
rowCount: t,
|
|
4887
4887
|
columnCount: e,
|
|
@@ -4917,21 +4917,21 @@ function pl(r) {
|
|
|
4917
4917
|
const t = r;
|
|
4918
4918
|
return !!(t != null && t.kind);
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function Rh(r) {
|
|
4921
4921
|
return typeof r == "object" && r !== null && !Array.isArray(r);
|
|
4922
4922
|
}
|
|
4923
|
-
function
|
|
4923
|
+
function Uo(r) {
|
|
4924
4924
|
return typeof r != "object" && !Array.isArray(r) || r === null;
|
|
4925
4925
|
}
|
|
4926
4926
|
function ml(r) {
|
|
4927
4927
|
return r == null || typeof r == "boolean";
|
|
4928
4928
|
}
|
|
4929
4929
|
const Gi = (r) => {
|
|
4930
|
-
if (!r || !
|
|
4930
|
+
if (!r || !no(r))
|
|
4931
4931
|
return !1;
|
|
4932
4932
|
const t = r.type;
|
|
4933
4933
|
return !!(t != null && t.__canvasType);
|
|
4934
|
-
},
|
|
4934
|
+
}, Xo = (r) => typeof r == "string", Jr = (r) => Xo(r) ? !0 : Gi(r), Oh = (r) => Xo(r) ? !0 : Gi(r), Qr = ({
|
|
4935
4935
|
jsxElement: r,
|
|
4936
4936
|
canvasCellCache: t,
|
|
4937
4937
|
cellInfo: e,
|
|
@@ -4943,13 +4943,13 @@ const Gi = (r) => {
|
|
|
4943
4943
|
...r,
|
|
4944
4944
|
...i
|
|
4945
4945
|
};
|
|
4946
|
-
if (
|
|
4946
|
+
if (Uo(r))
|
|
4947
4947
|
return ml(r) ? he(i) : _i(String(r), i);
|
|
4948
4948
|
if (!Gi(r)) {
|
|
4949
|
-
const
|
|
4950
|
-
return _i(
|
|
4949
|
+
const w = "передан НЕ CanvasEl";
|
|
4950
|
+
return _i(w, {
|
|
4951
4951
|
...i,
|
|
4952
|
-
data:
|
|
4952
|
+
data: w
|
|
4953
4953
|
});
|
|
4954
4954
|
}
|
|
4955
4955
|
const {
|
|
@@ -4961,29 +4961,29 @@ const Gi = (r) => {
|
|
|
4961
4961
|
id: h
|
|
4962
4962
|
} = c, d = i.getPortalEventTarget;
|
|
4963
4963
|
let l = null;
|
|
4964
|
-
const u = `cell-${n}-${s}`, f = (
|
|
4965
|
-
let H = (y == null ? void 0 : y.canvasRoot) instanceof
|
|
4964
|
+
const u = `cell-${n}-${s}`, f = (w, m, x, F, A, y) => {
|
|
4965
|
+
let H = (y == null ? void 0 : y.canvasRoot) instanceof wt ? y.canvasRoot : l;
|
|
4966
4966
|
{
|
|
4967
4967
|
if (!r)
|
|
4968
4968
|
return {};
|
|
4969
4969
|
const O = Bi({
|
|
4970
4970
|
element: r,
|
|
4971
4971
|
idPrefix: `cell-${n}-${s}-${h}`,
|
|
4972
|
-
theme:
|
|
4972
|
+
theme: x
|
|
4973
4973
|
});
|
|
4974
|
-
H ? (H.setRootNode(O), H.setOriginId(u)) : H = new
|
|
4974
|
+
H ? (H.setRootNode(O), H.setOriginId(u)) : H = new wt(O, u), l = H;
|
|
4975
4975
|
}
|
|
4976
4976
|
if (!H)
|
|
4977
4977
|
return {};
|
|
4978
|
-
const
|
|
4979
|
-
x:
|
|
4978
|
+
const E = F !== void 0 && A !== void 0 ? {
|
|
4979
|
+
x: F,
|
|
4980
4980
|
y: A
|
|
4981
4981
|
} : void 0;
|
|
4982
4982
|
H.rootNode.style = {
|
|
4983
4983
|
width: m.width,
|
|
4984
4984
|
height: m.height
|
|
4985
|
-
}, o || (o =
|
|
4986
|
-
const
|
|
4985
|
+
}, o || (o = w.canvas.getBoundingClientRect());
|
|
4986
|
+
const L = {
|
|
4987
4987
|
x: o.left + m.x,
|
|
4988
4988
|
y: o.top + m.y,
|
|
4989
4989
|
width: m.width,
|
|
@@ -4994,7 +4994,7 @@ const Gi = (r) => {
|
|
|
4994
4994
|
row: e.row,
|
|
4995
4995
|
ctxs: e.ctxs,
|
|
4996
4996
|
refTable: i.refTable
|
|
4997
|
-
}), H.render(
|
|
4997
|
+
}), H.render(w, m, E, L, {
|
|
4998
4998
|
frameTime: y == null ? void 0 : y.frameTime,
|
|
4999
4999
|
requestAnimationFrame: y == null ? void 0 : y.requestAnimationFrame
|
|
5000
5000
|
}), l = H, {
|
|
@@ -5005,10 +5005,10 @@ const Gi = (r) => {
|
|
|
5005
5005
|
...v
|
|
5006
5006
|
} = i, C = c.copyData ? typeof c.copyData == "function" ? c.copyData(a) : c.copyData : g;
|
|
5007
5007
|
return yc(f, void 0, C, v);
|
|
5008
|
-
},
|
|
5008
|
+
}, Yo = (r, t, e) => r ? t >= r.x && t < r.x + r.width && e >= r.y && e < r.y + r.height : !1, yl = (r) => {
|
|
5009
5009
|
const t = r.findIndex((e) => !e.isServiceColumn);
|
|
5010
5010
|
return t === -1 ? r.length : t;
|
|
5011
|
-
},
|
|
5011
|
+
}, Fl = (r, t) => {
|
|
5012
5012
|
if (!r)
|
|
5013
5013
|
return;
|
|
5014
5014
|
const e = Math.max(r.x, t), i = Math.max(0, r.x + r.width - e);
|
|
@@ -5020,7 +5020,7 @@ const Gi = (r) => {
|
|
|
5020
5020
|
height: r.height
|
|
5021
5021
|
};
|
|
5022
5022
|
};
|
|
5023
|
-
function
|
|
5023
|
+
function bl({
|
|
5024
5024
|
cellsSelectionMode: r,
|
|
5025
5025
|
selection: t,
|
|
5026
5026
|
baseTheme: e,
|
|
@@ -5064,7 +5064,7 @@ function Fl({
|
|
|
5064
5064
|
}), l(), h.length > 0 ? h : void 0;
|
|
5065
5065
|
}, [r, t, e.selectionActiveBg, e.selectionActiveCheckboxBg, e.selectionServiceActiveBg, e.errorOutlineColor, e.accentColor, i, o, n, s, a, c]);
|
|
5066
5066
|
}
|
|
5067
|
-
function
|
|
5067
|
+
function xl({
|
|
5068
5068
|
baseRegions: r,
|
|
5069
5069
|
selectedColumnIndexes: t,
|
|
5070
5070
|
headerSelectedRowIndexes: e,
|
|
@@ -5081,21 +5081,21 @@ function wl({
|
|
|
5081
5081
|
const l = t.length > 0, u = e.length > 0, f = i !== void 0, g = ((n == null ? void 0 : n.length) ?? 0) > 0;
|
|
5082
5082
|
if (!l && !u && !f && !g)
|
|
5083
5083
|
return r;
|
|
5084
|
-
const v = h - c, C = [...r ?? []],
|
|
5085
|
-
const [
|
|
5086
|
-
if (
|
|
5084
|
+
const v = h - c, C = [...r ?? []], w = (m, x) => {
|
|
5085
|
+
const [F, ...A] = [...m].sort((L, O) => L - O);
|
|
5086
|
+
if (F === void 0)
|
|
5087
5087
|
return;
|
|
5088
|
-
let y =
|
|
5089
|
-
const
|
|
5088
|
+
let y = F, H = F;
|
|
5089
|
+
const E = (L, O) => {
|
|
5090
5090
|
C.push({
|
|
5091
5091
|
color: d.accentColor,
|
|
5092
|
-
range:
|
|
5092
|
+
range: x(L, O),
|
|
5093
5093
|
style: "solid-outline"
|
|
5094
5094
|
});
|
|
5095
5095
|
};
|
|
5096
|
-
for (const
|
|
5097
|
-
|
|
5098
|
-
|
|
5096
|
+
for (const L of A)
|
|
5097
|
+
L === H + 1 || (E(y, H), y = L), H = L;
|
|
5098
|
+
E(y, H);
|
|
5099
5099
|
};
|
|
5100
5100
|
if (l) {
|
|
5101
5101
|
c > 0 && C.push({
|
|
@@ -5119,10 +5119,10 @@ function wl({
|
|
|
5119
5119
|
},
|
|
5120
5120
|
style: "no-outline"
|
|
5121
5121
|
});
|
|
5122
|
-
|
|
5122
|
+
w(t, (m, x) => ({
|
|
5123
5123
|
x: m,
|
|
5124
5124
|
y: 0,
|
|
5125
|
-
width:
|
|
5125
|
+
width: x - m + 1,
|
|
5126
5126
|
height: a
|
|
5127
5127
|
}));
|
|
5128
5128
|
}
|
|
@@ -5150,15 +5150,15 @@ function wl({
|
|
|
5150
5150
|
},
|
|
5151
5151
|
style: "no-outline"
|
|
5152
5152
|
});
|
|
5153
|
-
|
|
5153
|
+
w(e, (m, x) => ({
|
|
5154
5154
|
x: c,
|
|
5155
5155
|
y: m,
|
|
5156
5156
|
width: v,
|
|
5157
|
-
height:
|
|
5157
|
+
height: x - m + 1
|
|
5158
5158
|
}));
|
|
5159
5159
|
}
|
|
5160
5160
|
if (i !== void 0 && v > 0) {
|
|
5161
|
-
const m = s != null && s.has(i) ? d.selectionActiveCheckboxBg : d.selectionCheckboxBg,
|
|
5161
|
+
const m = s != null && s.has(i) ? d.selectionActiveCheckboxBg : d.selectionCheckboxBg, x = (A, y) => {
|
|
5162
5162
|
y > 0 && C.push({
|
|
5163
5163
|
color: m,
|
|
5164
5164
|
range: {
|
|
@@ -5171,26 +5171,26 @@ function wl({
|
|
|
5171
5171
|
});
|
|
5172
5172
|
};
|
|
5173
5173
|
if (!(o && i >= o.y && i < o.y + o.height))
|
|
5174
|
-
|
|
5174
|
+
x(c, v);
|
|
5175
5175
|
else {
|
|
5176
5176
|
const A = Math.max(o.x, c), y = o.x + o.width;
|
|
5177
|
-
|
|
5177
|
+
x(c, A - c), x(y, h - y);
|
|
5178
5178
|
}
|
|
5179
5179
|
}
|
|
5180
5180
|
if (g && n && c > 0) {
|
|
5181
5181
|
const m = /* @__PURE__ */ new Set();
|
|
5182
|
-
for (const
|
|
5183
|
-
const
|
|
5184
|
-
if (!(
|
|
5185
|
-
for (let y =
|
|
5182
|
+
for (const x of n) {
|
|
5183
|
+
const F = Math.max(x.x, c);
|
|
5184
|
+
if (!(x.x + x.width - F <= 0 || x.height <= 0))
|
|
5185
|
+
for (let y = x.y; y < x.y + x.height; y += 1)
|
|
5186
5186
|
m.add(y);
|
|
5187
5187
|
}
|
|
5188
|
-
for (const
|
|
5188
|
+
for (const x of m)
|
|
5189
5189
|
C.push({
|
|
5190
5190
|
color: d.selectionServiceActiveBg,
|
|
5191
5191
|
range: {
|
|
5192
5192
|
x: 0,
|
|
5193
|
-
y:
|
|
5193
|
+
y: x,
|
|
5194
5194
|
width: c,
|
|
5195
5195
|
height: 1
|
|
5196
5196
|
},
|
|
@@ -5201,11 +5201,11 @@ function wl({
|
|
|
5201
5201
|
}, [r, t, e, i, o, n, s, a, c, h, d.selectionActiveBg, d.selectionActiveCheckboxBg, d.selectionCheckboxBg, d.selectionServiceActiveBg, d.accentColor]);
|
|
5202
5202
|
}
|
|
5203
5203
|
const ke = {
|
|
5204
|
-
columns:
|
|
5205
|
-
rows:
|
|
5204
|
+
columns: P.empty(),
|
|
5205
|
+
rows: P.empty(),
|
|
5206
5206
|
current: void 0
|
|
5207
5207
|
};
|
|
5208
|
-
function
|
|
5208
|
+
function wl({
|
|
5209
5209
|
cellsSelectionMode: r,
|
|
5210
5210
|
gridSelection: t,
|
|
5211
5211
|
onGridSelectionChange: e,
|
|
@@ -5223,7 +5223,7 @@ function xl({
|
|
|
5223
5223
|
rangeSelect: d
|
|
5224
5224
|
};
|
|
5225
5225
|
}
|
|
5226
|
-
const qt = /* @__PURE__ */ new Set(),
|
|
5226
|
+
const qt = /* @__PURE__ */ new Set(), to = ({
|
|
5227
5227
|
start: r,
|
|
5228
5228
|
length: t
|
|
5229
5229
|
}) => {
|
|
@@ -5259,7 +5259,7 @@ function Sl({
|
|
|
5259
5259
|
isActiveDataCell: (u, f) => !1,
|
|
5260
5260
|
isActiveHeaderColumn: (u) => !1
|
|
5261
5261
|
};
|
|
5262
|
-
const a =
|
|
5262
|
+
const a = Fl(o.range, n), c = a !== void 0, h = e === "cell" && a !== void 0 && a.width === 1 && a.height === 1;
|
|
5263
5263
|
if (!c)
|
|
5264
5264
|
return {
|
|
5265
5265
|
hasAnyActiveSelection: !1,
|
|
@@ -5279,10 +5279,10 @@ function Sl({
|
|
|
5279
5279
|
isActiveDataCell: (u, f) => !1,
|
|
5280
5280
|
isActiveHeaderColumn: (u) => !1
|
|
5281
5281
|
};
|
|
5282
|
-
const d = a != null && a.height && a.height > 0 ?
|
|
5282
|
+
const d = a != null && a.height && a.height > 0 ? to({
|
|
5283
5283
|
start: a.y,
|
|
5284
5284
|
length: a.height
|
|
5285
|
-
}) : qt, l = a != null && a.width && a.width > 0 ?
|
|
5285
|
+
}) : qt, l = a != null && a.width && a.width > 0 ? to({
|
|
5286
5286
|
start: a.x,
|
|
5287
5287
|
length: a.width
|
|
5288
5288
|
}) : qt;
|
|
@@ -5304,7 +5304,7 @@ function Sl({
|
|
|
5304
5304
|
},
|
|
5305
5305
|
isActiveRow: (u) => d.has(u),
|
|
5306
5306
|
isCheckboxSelectedRow: (u) => (i == null ? void 0 : i.has(u)) ?? !1,
|
|
5307
|
-
isActiveDataCell: (u, f) =>
|
|
5307
|
+
isActiveDataCell: (u, f) => Yo(a, u, f),
|
|
5308
5308
|
isActiveHeaderColumn: (u) => r[u] ? l.has(u) : !1
|
|
5309
5309
|
};
|
|
5310
5310
|
}, [r, e, i, t]);
|
|
@@ -5322,14 +5322,14 @@ function Al({
|
|
|
5322
5322
|
commitActiveRow: a
|
|
5323
5323
|
};
|
|
5324
5324
|
}
|
|
5325
|
-
function
|
|
5325
|
+
function El({
|
|
5326
5326
|
columns: r
|
|
5327
5327
|
}) {
|
|
5328
|
-
const [t, e] = st(() =>
|
|
5328
|
+
const [t, e] = st(() => P.empty()), i = R(() => t.toArray().filter((h) => {
|
|
5329
5329
|
var d;
|
|
5330
5330
|
return !((d = r[h]) != null && d.isServiceColumn);
|
|
5331
5331
|
}), [t, r]), o = R(() => new Set(i), [i]), n = rt(void 0), [s, a] = st(!1), c = U(() => {
|
|
5332
|
-
e(
|
|
5332
|
+
e(P.empty());
|
|
5333
5333
|
}, []);
|
|
5334
5334
|
return {
|
|
5335
5335
|
selectedColumns: t,
|
|
@@ -5342,11 +5342,11 @@ function Tl({
|
|
|
5342
5342
|
clearColumnSelection: c
|
|
5343
5343
|
};
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5346
|
-
const [r, t] = st(() =>
|
|
5345
|
+
function Tl() {
|
|
5346
|
+
const [r, t] = st(() => P.empty()), e = R(() => r.toArray(), [r]), i = rt(r);
|
|
5347
5347
|
i.current = r;
|
|
5348
|
-
const o = rt(!1), n = rt(
|
|
5349
|
-
|
|
5348
|
+
const o = rt(!1), n = rt(P.empty()), s = rt(!1);
|
|
5349
|
+
xt(() => {
|
|
5350
5350
|
const c = (d) => {
|
|
5351
5351
|
o.current = d.ctrlKey || d.metaKey, n.current = i.current, s.current = !0;
|
|
5352
5352
|
}, h = () => {
|
|
@@ -5357,7 +5357,7 @@ function El() {
|
|
|
5357
5357
|
};
|
|
5358
5358
|
}, []);
|
|
5359
5359
|
const a = U(() => {
|
|
5360
|
-
t(
|
|
5360
|
+
t(P.empty());
|
|
5361
5361
|
}, []);
|
|
5362
5362
|
return {
|
|
5363
5363
|
selectedRows: r,
|
|
@@ -5390,20 +5390,20 @@ function Dl({
|
|
|
5390
5390
|
const {
|
|
5391
5391
|
selectedColumns: v,
|
|
5392
5392
|
setSelectedColumns: C,
|
|
5393
|
-
selectedColumnIndexes:
|
|
5393
|
+
selectedColumnIndexes: w,
|
|
5394
5394
|
selectedColumnSet: m,
|
|
5395
|
-
lastSelectedColumnRef:
|
|
5396
|
-
isNativeColumnSelection:
|
|
5395
|
+
lastSelectedColumnRef: x,
|
|
5396
|
+
isNativeColumnSelection: F,
|
|
5397
5397
|
setIsNativeColumnSelection: A
|
|
5398
|
-
} =
|
|
5398
|
+
} = El({
|
|
5399
5399
|
columns: r
|
|
5400
5400
|
}), {
|
|
5401
5401
|
setSelectedRows: y,
|
|
5402
5402
|
headerSelectedRowIndexes: H,
|
|
5403
|
-
ctrlGestureRef:
|
|
5404
|
-
ctrlBaseRowsRef:
|
|
5403
|
+
ctrlGestureRef: E,
|
|
5404
|
+
ctrlBaseRowsRef: L,
|
|
5405
5405
|
pointerGestureRef: O
|
|
5406
|
-
} =
|
|
5406
|
+
} = Tl(), {
|
|
5407
5407
|
activeRow: at,
|
|
5408
5408
|
commitActiveRow: G
|
|
5409
5409
|
} = Al({
|
|
@@ -5424,8 +5424,8 @@ function Dl({
|
|
|
5424
5424
|
const K = Y.x + Y.width - M;
|
|
5425
5425
|
return K <= 0 ? {
|
|
5426
5426
|
current: void 0,
|
|
5427
|
-
rows:
|
|
5428
|
-
columns:
|
|
5427
|
+
rows: P.empty(),
|
|
5428
|
+
columns: P.empty()
|
|
5429
5429
|
} : {
|
|
5430
5430
|
...k,
|
|
5431
5431
|
current: {
|
|
@@ -5442,15 +5442,15 @@ function Dl({
|
|
|
5442
5442
|
const N = k.current;
|
|
5443
5443
|
if (n && tt >= 0 && N && N.cell[0] === tt) {
|
|
5444
5444
|
const Y = a, K = N.range.y, ct = K + Math.max(N.range.height, 1);
|
|
5445
|
-
if (
|
|
5445
|
+
if (E.current) {
|
|
5446
5446
|
const W = ct - K <= 1;
|
|
5447
|
-
let et =
|
|
5447
|
+
let et = L.current;
|
|
5448
5448
|
if (et.length === 0 && t.current && t.current.cell[0] === tt) {
|
|
5449
5449
|
const gt = t.current.range;
|
|
5450
|
-
et =
|
|
5450
|
+
et = P.empty().add([gt.y, gt.y + Math.max(gt.height, 1)]), L.current = et;
|
|
5451
5451
|
}
|
|
5452
5452
|
let lt;
|
|
5453
|
-
W ? lt = et.hasIndex(K) ? et.remove(K) : et.add(K) : lt = et.add([K, ct]), C(
|
|
5453
|
+
W ? lt = et.hasIndex(K) ? et.remove(K) : et.add(K) : lt = et.add([K, ct]), C(P.empty()), y(lt), G(void 0), A(!1), h({
|
|
5454
5454
|
...k,
|
|
5455
5455
|
current: {
|
|
5456
5456
|
...N,
|
|
@@ -5464,12 +5464,12 @@ function Dl({
|
|
|
5464
5464
|
}), l == null || l({
|
|
5465
5465
|
current: void 0,
|
|
5466
5466
|
rows: lt,
|
|
5467
|
-
columns:
|
|
5467
|
+
columns: P.empty()
|
|
5468
5468
|
});
|
|
5469
5469
|
return;
|
|
5470
5470
|
}
|
|
5471
5471
|
const ft = Math.max(r.length - Y, 0);
|
|
5472
|
-
C(
|
|
5472
|
+
C(P.empty()), y(P.empty()), G(void 0), A(!1), h({
|
|
5473
5473
|
...k,
|
|
5474
5474
|
current: {
|
|
5475
5475
|
...N,
|
|
@@ -5484,13 +5484,13 @@ function Dl({
|
|
|
5484
5484
|
return;
|
|
5485
5485
|
}
|
|
5486
5486
|
const M = Ot(k);
|
|
5487
|
-
(M.current !== void 0 || M.rows.length > 0) && (C(
|
|
5488
|
-
}, [r, t, h, Ot, tt, n, a, i, l, G,
|
|
5489
|
-
C(
|
|
5487
|
+
(M.current !== void 0 || M.rows.length > 0) && (C(P.empty()), y(P.empty())), A(!1), i === "row" ? O.current && M.current && G(M.current.cell[1]) : G(void 0), h(M);
|
|
5488
|
+
}, [r, t, h, Ot, tt, n, a, i, l, G, E, L, O, C, y, A]), Ye = U(() => {
|
|
5489
|
+
C(P.empty()), y(P.empty()), G(void 0), A(!1), d();
|
|
5490
5490
|
}, [d, G, C, y, A]), te = R(() => {
|
|
5491
5491
|
var N;
|
|
5492
|
-
const k = new Set(
|
|
5493
|
-
if (
|
|
5492
|
+
const k = new Set(w);
|
|
5493
|
+
if (F && t.current) {
|
|
5494
5494
|
const {
|
|
5495
5495
|
x: M,
|
|
5496
5496
|
width: Y
|
|
@@ -5502,12 +5502,12 @@ function Dl({
|
|
|
5502
5502
|
var Y;
|
|
5503
5503
|
return (Y = r[M]) == null ? void 0 : Y.id;
|
|
5504
5504
|
}).filter((M) => !!M);
|
|
5505
|
-
}, [
|
|
5505
|
+
}, [w, F, t, r]), zt = (e === "range-cell" || e === "multi-range-cell") && !F && !(t.current !== void 0 && t.current.cell[0] < a), Ve = U((k, N) => {
|
|
5506
5506
|
if (s && tt >= 0 && k === tt && e !== "disabled") {
|
|
5507
5507
|
const W = a, et = Math.max(r.length - W, 0);
|
|
5508
5508
|
if (et === 0 || c === 0)
|
|
5509
5509
|
return;
|
|
5510
|
-
C(
|
|
5510
|
+
C(P.empty()), y(P.empty()), G(void 0), A(!0), h({
|
|
5511
5511
|
current: {
|
|
5512
5512
|
cell: [W, 0],
|
|
5513
5513
|
range: {
|
|
@@ -5518,8 +5518,8 @@ function Dl({
|
|
|
5518
5518
|
},
|
|
5519
5519
|
rangeStack: []
|
|
5520
5520
|
},
|
|
5521
|
-
rows:
|
|
5522
|
-
columns:
|
|
5521
|
+
rows: P.empty(),
|
|
5522
|
+
columns: P.empty()
|
|
5523
5523
|
});
|
|
5524
5524
|
return;
|
|
5525
5525
|
}
|
|
@@ -5531,24 +5531,24 @@ function Dl({
|
|
|
5531
5531
|
const Y = N.shiftKey;
|
|
5532
5532
|
if (N.ctrlKey || N.metaKey) {
|
|
5533
5533
|
let W = v;
|
|
5534
|
-
if (W.length === 0 &&
|
|
5534
|
+
if (W.length === 0 && F && t.current) {
|
|
5535
5535
|
const lt = t.current.range;
|
|
5536
5536
|
W = W.add([lt.x, lt.x + lt.width]);
|
|
5537
5537
|
}
|
|
5538
5538
|
const et = W.hasIndex(k) ? W.remove(k) : W.add(k);
|
|
5539
|
-
|
|
5539
|
+
x.current = k, C(et), y(P.empty()), G(void 0), A(!1), h({
|
|
5540
5540
|
current: void 0,
|
|
5541
|
-
rows:
|
|
5542
|
-
columns:
|
|
5541
|
+
rows: P.empty(),
|
|
5542
|
+
columns: P.empty()
|
|
5543
5543
|
}), l == null || l({
|
|
5544
5544
|
current: void 0,
|
|
5545
|
-
rows:
|
|
5545
|
+
rows: P.empty(),
|
|
5546
5546
|
columns: et
|
|
5547
5547
|
});
|
|
5548
5548
|
return;
|
|
5549
5549
|
}
|
|
5550
5550
|
let ct, ft;
|
|
5551
|
-
Y &&
|
|
5551
|
+
Y && x.current !== void 0 ? (ct = Math.min(x.current, k), ft = Math.max(x.current, k)) : (ct = k, ft = k, x.current = k), C(P.empty()), y(P.empty()), G(void 0), A(!0), h({
|
|
5552
5552
|
current: {
|
|
5553
5553
|
cell: [ct, 0],
|
|
5554
5554
|
range: {
|
|
@@ -5559,16 +5559,16 @@ function Dl({
|
|
|
5559
5559
|
},
|
|
5560
5560
|
rangeStack: []
|
|
5561
5561
|
},
|
|
5562
|
-
rows:
|
|
5563
|
-
columns:
|
|
5562
|
+
rows: P.empty(),
|
|
5563
|
+
columns: P.empty()
|
|
5564
5564
|
});
|
|
5565
|
-
}, [o, s, tt, e, a, r, t,
|
|
5565
|
+
}, [o, s, tt, e, a, r, t, F, v, c, h, l, G, x, C, y, A]), ve = U((k) => {
|
|
5566
5566
|
const N = new Set(k), M = r.map((W, et) => !W.isServiceColumn && N.has(W.id) ? et : -1).filter((W) => W >= 0);
|
|
5567
|
-
if (y(
|
|
5568
|
-
C(
|
|
5567
|
+
if (y(P.empty()), G(void 0), M.length === 0) {
|
|
5568
|
+
C(P.empty()), A(!1), h({
|
|
5569
5569
|
current: void 0,
|
|
5570
|
-
rows:
|
|
5571
|
-
columns:
|
|
5570
|
+
rows: P.empty(),
|
|
5571
|
+
columns: P.empty()
|
|
5572
5572
|
});
|
|
5573
5573
|
return;
|
|
5574
5574
|
}
|
|
@@ -5576,8 +5576,8 @@ function Dl({
|
|
|
5576
5576
|
if (Y === void 0 || K === void 0)
|
|
5577
5577
|
return;
|
|
5578
5578
|
const ct = K - Y === M.length - 1;
|
|
5579
|
-
if (
|
|
5580
|
-
C(
|
|
5579
|
+
if (x.current = K, ct) {
|
|
5580
|
+
C(P.empty()), A(!0), h({
|
|
5581
5581
|
current: {
|
|
5582
5582
|
cell: [Y, 0],
|
|
5583
5583
|
range: {
|
|
@@ -5588,22 +5588,22 @@ function Dl({
|
|
|
5588
5588
|
},
|
|
5589
5589
|
rangeStack: []
|
|
5590
5590
|
},
|
|
5591
|
-
rows:
|
|
5592
|
-
columns:
|
|
5591
|
+
rows: P.empty(),
|
|
5592
|
+
columns: P.empty()
|
|
5593
5593
|
});
|
|
5594
5594
|
return;
|
|
5595
5595
|
}
|
|
5596
|
-
let ft =
|
|
5596
|
+
let ft = P.empty();
|
|
5597
5597
|
M.forEach((W) => {
|
|
5598
5598
|
ft = ft.add(W);
|
|
5599
5599
|
}), C(ft), A(!1), h({
|
|
5600
5600
|
current: void 0,
|
|
5601
|
-
rows:
|
|
5602
|
-
columns:
|
|
5601
|
+
rows: P.empty(),
|
|
5602
|
+
columns: P.empty()
|
|
5603
5603
|
});
|
|
5604
|
-
}, [r, c, h, C, y, A, G,
|
|
5604
|
+
}, [r, c, h, C, y, A, G, x]);
|
|
5605
5605
|
return {
|
|
5606
|
-
selectedColumnIndexes:
|
|
5606
|
+
selectedColumnIndexes: w,
|
|
5607
5607
|
selectedColumnKeysAll: te,
|
|
5608
5608
|
selectColumnsByKeys: ve,
|
|
5609
5609
|
selectedColumnSet: m,
|
|
@@ -5626,11 +5626,11 @@ function Il(r, t, e, i) {
|
|
|
5626
5626
|
}
|
|
5627
5627
|
const Hl = (r) => {
|
|
5628
5628
|
const t = typeof r == "number", [e, i] = st(() => t ? r : 56);
|
|
5629
|
-
return
|
|
5629
|
+
return xt(() => {
|
|
5630
5630
|
t && Il(i, e, r, 300);
|
|
5631
5631
|
}, [r]), t ? e : r;
|
|
5632
5632
|
};
|
|
5633
|
-
function
|
|
5633
|
+
function Vo({
|
|
5634
5634
|
cell: r,
|
|
5635
5635
|
glideCell: t,
|
|
5636
5636
|
rect: e,
|
|
@@ -5638,7 +5638,7 @@ function Yo({
|
|
|
5638
5638
|
relativePoint: o,
|
|
5639
5639
|
mouseArgs: n
|
|
5640
5640
|
}) {
|
|
5641
|
-
const s = (i == null ? void 0 : i.canvasRoot) instanceof
|
|
5641
|
+
const s = (i == null ? void 0 : i.canvasRoot) instanceof wt ? i.canvasRoot.getInteractionAtPoint(o.x, o.y) : void 0;
|
|
5642
5642
|
if (s)
|
|
5643
5643
|
return {
|
|
5644
5644
|
cell: r,
|
|
@@ -5652,7 +5652,7 @@ function Yo({
|
|
|
5652
5652
|
} : {}
|
|
5653
5653
|
};
|
|
5654
5654
|
}
|
|
5655
|
-
function
|
|
5655
|
+
function Ll({
|
|
5656
5656
|
dataEditor: r,
|
|
5657
5657
|
getCellContent: t,
|
|
5658
5658
|
clientX: e,
|
|
@@ -5663,7 +5663,7 @@ function Pl({
|
|
|
5663
5663
|
if (!n || n.kind !== "cell")
|
|
5664
5664
|
return;
|
|
5665
5665
|
const s = [n.location[0], n.location[1]], a = t(s);
|
|
5666
|
-
if (!
|
|
5666
|
+
if (!ko(a))
|
|
5667
5667
|
return;
|
|
5668
5668
|
const c = n.bounds, h = de({
|
|
5669
5669
|
colIndex: s[0],
|
|
@@ -5672,7 +5672,7 @@ function Pl({
|
|
|
5672
5672
|
x: n.localEventX,
|
|
5673
5673
|
y: n.localEventY
|
|
5674
5674
|
};
|
|
5675
|
-
return
|
|
5675
|
+
return Vo({
|
|
5676
5676
|
cell: s,
|
|
5677
5677
|
mouseArgs: n,
|
|
5678
5678
|
glideCell: a,
|
|
@@ -5681,14 +5681,14 @@ function Pl({
|
|
|
5681
5681
|
relativePoint: l
|
|
5682
5682
|
});
|
|
5683
5683
|
}
|
|
5684
|
-
function
|
|
5684
|
+
function Pl({
|
|
5685
5685
|
eventTarget: r,
|
|
5686
5686
|
dataEditorRef: t,
|
|
5687
5687
|
getCellContent: e,
|
|
5688
5688
|
interactionSessionStore: i,
|
|
5689
5689
|
onCellContextMenuExternal: o
|
|
5690
5690
|
}) {
|
|
5691
|
-
|
|
5691
|
+
xt(() => {
|
|
5692
5692
|
if (!r)
|
|
5693
5693
|
return;
|
|
5694
5694
|
const n = (s) => {
|
|
@@ -5698,7 +5698,7 @@ function Ll({
|
|
|
5698
5698
|
const a = s;
|
|
5699
5699
|
if (a.clientX === 0 && a.clientY === 0)
|
|
5700
5700
|
return;
|
|
5701
|
-
const c =
|
|
5701
|
+
const c = Ll({
|
|
5702
5702
|
dataEditor: t.current,
|
|
5703
5703
|
getCellContent: e,
|
|
5704
5704
|
clientX: a.clientX,
|
|
@@ -5748,7 +5748,7 @@ function zl(r) {
|
|
|
5748
5748
|
}, [r]);
|
|
5749
5749
|
}
|
|
5750
5750
|
const Oe = 350;
|
|
5751
|
-
function
|
|
5751
|
+
function eo(r) {
|
|
5752
5752
|
return Math.round(r);
|
|
5753
5753
|
}
|
|
5754
5754
|
function _l({
|
|
@@ -5756,19 +5756,19 @@ function _l({
|
|
|
5756
5756
|
relativePoint: t,
|
|
5757
5757
|
button: e
|
|
5758
5758
|
}) {
|
|
5759
|
-
return [r[0], r[1], e ?? "unknown",
|
|
5759
|
+
return [r[0], r[1], e ?? "unknown", eo(t.x), eo(t.y)].join(":");
|
|
5760
5760
|
}
|
|
5761
5761
|
function $e(r, t) {
|
|
5762
5762
|
return r[0] === t[0] && r[1] === t[1];
|
|
5763
5763
|
}
|
|
5764
|
-
function
|
|
5764
|
+
function Ko(r, t) {
|
|
5765
5765
|
return Math.abs(r.x - t.x) <= 1 && Math.abs(r.y - t.y) <= 1;
|
|
5766
5766
|
}
|
|
5767
5767
|
function kl(r, t) {
|
|
5768
|
-
return !$e(r.cell, t.cell) || r.button !== void 0 && t.button !== void 0 && r.button !== t.button ? !1 :
|
|
5768
|
+
return !$e(r.cell, t.cell) || r.button !== void 0 && t.button !== void 0 && r.button !== t.button ? !1 : Ko(r.relativePoint, t.relativePoint);
|
|
5769
5769
|
}
|
|
5770
5770
|
function Ml(r, t) {
|
|
5771
|
-
return Date.now() - r.startedAt > (t.maxAgeMs ?? Oe) || !$e(r.cell, t.cell) || r.button !== void 0 && t.button !== void 0 && r.button !== t.button ? !1 :
|
|
5771
|
+
return Date.now() - r.startedAt > (t.maxAgeMs ?? Oe) || !$e(r.cell, t.cell) || r.button !== void 0 && t.button !== void 0 && r.button !== t.button ? !1 : Ko(r.relativePoint, t.relativePoint);
|
|
5772
5772
|
}
|
|
5773
5773
|
function Rl() {
|
|
5774
5774
|
let r, t = 1;
|
|
@@ -5787,7 +5787,7 @@ function Rl() {
|
|
|
5787
5787
|
interaction: i.interaction,
|
|
5788
5788
|
// Decision рассчитывается один раз на session, чтобы разные фазы одного
|
|
5789
5789
|
// gesture не приняли разные policy-решения из-за повторного hit-test.
|
|
5790
|
-
decision:
|
|
5790
|
+
decision: Oo(i.interaction),
|
|
5791
5791
|
consumedPhases: /* @__PURE__ */ new Set(),
|
|
5792
5792
|
startedAt: i.startedAt ?? Date.now(),
|
|
5793
5793
|
source: i.source,
|
|
@@ -5862,7 +5862,7 @@ function Nl(r = {}) {
|
|
|
5862
5862
|
);
|
|
5863
5863
|
return R(() => {
|
|
5864
5864
|
const e = [];
|
|
5865
|
-
return t && e.push(
|
|
5865
|
+
return t && e.push(No({
|
|
5866
5866
|
beginOrGetInteractionSession: r.beginOrGetInteractionSession,
|
|
5867
5867
|
consumeCanvasClickResult: r.consumeCanvasClickResult
|
|
5868
5868
|
})), e.length > 0 ? e : void 0;
|
|
@@ -5881,12 +5881,12 @@ function Wl(r) {
|
|
|
5881
5881
|
underlay: i
|
|
5882
5882
|
};
|
|
5883
5883
|
}
|
|
5884
|
-
const
|
|
5884
|
+
const io = "[useGlideElements]";
|
|
5885
5885
|
function Gl(r, t) {
|
|
5886
5886
|
const [e, i] = st(null), [o, n] = st(null), [s, a] = st(null), c = rt(null);
|
|
5887
|
-
|
|
5887
|
+
xt(() => {
|
|
5888
5888
|
const d = r == null ? void 0 : r.current;
|
|
5889
|
-
if (
|
|
5889
|
+
if (fr(io, "useEffect fired", {
|
|
5890
5890
|
hasWrapper: !!d,
|
|
5891
5891
|
fullScreened: t
|
|
5892
5892
|
}), !d)
|
|
@@ -5897,7 +5897,7 @@ function Gl(r, t) {
|
|
|
5897
5897
|
scroller: g,
|
|
5898
5898
|
underlay: v
|
|
5899
5899
|
} = Wl(d);
|
|
5900
|
-
return
|
|
5900
|
+
return fr(io, "tryFind", {
|
|
5901
5901
|
containerFound: !!f,
|
|
5902
5902
|
scrollerFound: !!g,
|
|
5903
5903
|
underlayFound: !!v
|
|
@@ -5941,7 +5941,7 @@ function $l(r) {
|
|
|
5941
5941
|
};
|
|
5942
5942
|
}
|
|
5943
5943
|
function Ul(r, t) {
|
|
5944
|
-
|
|
5944
|
+
xt(() => {
|
|
5945
5945
|
if (!t)
|
|
5946
5946
|
return;
|
|
5947
5947
|
const e = r.current;
|
|
@@ -5988,28 +5988,28 @@ function Xl(r, t) {
|
|
|
5988
5988
|
);
|
|
5989
5989
|
}, []);
|
|
5990
5990
|
return U((f) => {
|
|
5991
|
-
var
|
|
5991
|
+
var w, m, x;
|
|
5992
5992
|
c == null || c(f), h == null || h(f.kind === "cell" ? f.location[1] : void 0);
|
|
5993
|
-
const g = (a == null ? void 0 : a.current) ?? null, v = (
|
|
5993
|
+
const g = (a == null ? void 0 : a.current) ?? null, v = (w = f.location) == null ? void 0 : w[0], C = v != null ? e[v] : void 0;
|
|
5994
5994
|
if (f.kind === "header") {
|
|
5995
5995
|
if (!(C != null && C.headerCellTooltip)) {
|
|
5996
5996
|
l(g);
|
|
5997
5997
|
return;
|
|
5998
5998
|
}
|
|
5999
|
-
const
|
|
6000
|
-
d.current ===
|
|
5999
|
+
const F = `header-tooltip-${v}`;
|
|
6000
|
+
d.current === F || l(g);
|
|
6001
6001
|
const y = (m = t.current) == null ? void 0 : m.getBounds(v, -1);
|
|
6002
6002
|
if (!y)
|
|
6003
6003
|
return;
|
|
6004
|
-
d.current =
|
|
6004
|
+
d.current = F, Re({
|
|
6005
6005
|
visible: !0,
|
|
6006
6006
|
x: y.x,
|
|
6007
6007
|
y: y.y,
|
|
6008
6008
|
width: y.width,
|
|
6009
6009
|
height: y.height,
|
|
6010
6010
|
source: "header",
|
|
6011
|
-
originId:
|
|
6012
|
-
nodeId:
|
|
6011
|
+
originId: F,
|
|
6012
|
+
nodeId: F,
|
|
6013
6013
|
priority: 0,
|
|
6014
6014
|
tooltipContext: {
|
|
6015
6015
|
column: C,
|
|
@@ -6022,22 +6022,22 @@ function Xl(r, t) {
|
|
|
6022
6022
|
return;
|
|
6023
6023
|
}
|
|
6024
6024
|
if (f.kind === "cell") {
|
|
6025
|
-
const
|
|
6025
|
+
const F = f.location[1], A = i[F];
|
|
6026
6026
|
if (!C || !A || !C.cellTooltip) {
|
|
6027
6027
|
l(g);
|
|
6028
6028
|
return;
|
|
6029
6029
|
}
|
|
6030
|
-
const y = `col-tooltip-${v}-${
|
|
6030
|
+
const y = `col-tooltip-${v}-${F}`;
|
|
6031
6031
|
d.current === y || l(g);
|
|
6032
|
-
const
|
|
6033
|
-
if (!
|
|
6032
|
+
const E = (x = t.current) == null ? void 0 : x.getBounds(v, F);
|
|
6033
|
+
if (!E)
|
|
6034
6034
|
return;
|
|
6035
6035
|
d.current = y, Re({
|
|
6036
6036
|
visible: !0,
|
|
6037
|
-
x:
|
|
6038
|
-
y:
|
|
6039
|
-
width:
|
|
6040
|
-
height:
|
|
6037
|
+
x: E.x,
|
|
6038
|
+
y: E.y,
|
|
6039
|
+
width: E.width,
|
|
6040
|
+
height: E.height,
|
|
6041
6041
|
source: "cell",
|
|
6042
6042
|
originId: y,
|
|
6043
6043
|
nodeId: y,
|
|
@@ -6048,7 +6048,7 @@ function Xl(r, t) {
|
|
|
6048
6048
|
ctxs: o,
|
|
6049
6049
|
refTable: n,
|
|
6050
6050
|
colInd: v,
|
|
6051
|
-
rowInd:
|
|
6051
|
+
rowInd: F,
|
|
6052
6052
|
theme: s
|
|
6053
6053
|
}
|
|
6054
6054
|
}, g);
|
|
@@ -6071,8 +6071,8 @@ function Yl({
|
|
|
6071
6071
|
}, [e, i]), h = rt(c);
|
|
6072
6072
|
h.current = c;
|
|
6073
6073
|
const d = U((u) => {
|
|
6074
|
-
var
|
|
6075
|
-
if ((
|
|
6074
|
+
var w;
|
|
6075
|
+
if ((w = a.current) == null || w.call(a), a.current = null, !u)
|
|
6076
6076
|
return;
|
|
6077
6077
|
if (!r) {
|
|
6078
6078
|
s(0);
|
|
@@ -6085,8 +6085,8 @@ function Yl({
|
|
|
6085
6085
|
if (!g || !v)
|
|
6086
6086
|
return;
|
|
6087
6087
|
const C = () => {
|
|
6088
|
-
const m = g.scrollTop,
|
|
6089
|
-
s(-1 *
|
|
6088
|
+
const m = g.scrollTop, x = Math.min(m, h.current);
|
|
6089
|
+
s(-1 * x), v.style.overflowY = "visible", v.style.transform = `translateY(-${x}px)`;
|
|
6090
6090
|
};
|
|
6091
6091
|
g.addEventListener("scroll", C), a.current = () => {
|
|
6092
6092
|
g.removeEventListener("scroll", C), v.style.transform = "", v.style.overflowY = "";
|
|
@@ -6100,11 +6100,11 @@ function Yl({
|
|
|
6100
6100
|
mergedExperimental: l
|
|
6101
6101
|
};
|
|
6102
6102
|
}
|
|
6103
|
-
const Ci =
|
|
6103
|
+
const Ci = so.div.withConfig({
|
|
6104
6104
|
displayName: "styled__StyledOverlayPortal"
|
|
6105
|
-
})(["[id^='gdg-overlay-']{position:fixed;z-index:9001;margin-left:calc(-1 * var(--gdg-portal-offset-x,0px));margin-top:calc(-1 * var(--gdg-portal-offset-y,0px));}"]), Vl =
|
|
6105
|
+
})(["[id^='gdg-overlay-']{position:fixed;z-index:9001;margin-left:calc(-1 * var(--gdg-portal-offset-x,0px));margin-top:calc(-1 * var(--gdg-portal-offset-y,0px));}"]), Vl = so(On).withConfig({
|
|
6106
6106
|
displayName: "styled__StyledGlideDataEditor"
|
|
6107
|
-
})([""]),
|
|
6107
|
+
})([""]), $i = {
|
|
6108
6108
|
// Text tokens (--text-*)
|
|
6109
6109
|
textPrimary: "#13181BF5",
|
|
6110
6110
|
textPrimaryHover: "#13181B93",
|
|
@@ -6344,58 +6344,136 @@ const Ci = no.div.withConfig({
|
|
|
6344
6344
|
dataLime: "#7FC400",
|
|
6345
6345
|
dataTeal: "#00B082"
|
|
6346
6346
|
}, ql = {
|
|
6347
|
-
|
|
6347
|
+
...$i,
|
|
6348
|
+
textPrimary: "#14191DF5",
|
|
6349
|
+
textPrimaryHover: "#151A1E93",
|
|
6350
|
+
textPrimaryActive: "#151A1EC4",
|
|
6351
|
+
textSecondary: "#475158B0",
|
|
6352
|
+
textSecondaryHover: "#465058FF",
|
|
6353
|
+
textSecondaryActive: "#465058D3",
|
|
6354
|
+
textTertiary: "#707F897A",
|
|
6355
|
+
textTertiaryHover: "#707F89FF",
|
|
6356
|
+
textTertiaryActive: "#707F8993",
|
|
6357
|
+
textParagraph: "#14191DCC",
|
|
6358
|
+
textParagraphHover: "#151A1E7A",
|
|
6359
|
+
textParagraphActive: "#151A1EA3",
|
|
6360
|
+
textAccent: "#0087CD",
|
|
6361
|
+
textAccentHover: "#00A3F5FF",
|
|
6362
|
+
textAccentActive: "#006DA3FF",
|
|
6363
|
+
textPositive: "#219532",
|
|
6364
|
+
textPositiveHover: "#28B83EFF",
|
|
6365
|
+
textPositiveActive: "#1A7527FF",
|
|
6366
|
+
textWarning: "#E15400",
|
|
6367
|
+
textWarningHover: "#FF640AFF",
|
|
6368
|
+
textWarningActive: "#B84300FF",
|
|
6369
|
+
textNegative: "#D60033",
|
|
6370
|
+
textNegativeHover: "#FF003BFF",
|
|
6371
|
+
textNegativeActive: "#AD0028FF",
|
|
6372
|
+
inverseTextPrimary: "#F3F7FAF5",
|
|
6373
|
+
onDarkTextPrimary: "#F3F7FAF5",
|
|
6374
|
+
onDarkTextPrimaryHover: "#F4F8FA93",
|
|
6375
|
+
onDarkTextPrimaryActive: "#F4F8FAC4",
|
|
6376
|
+
onLightTextPrimary: "#14191DF5",
|
|
6377
|
+
onLightTextPrimaryHover: "#151A1E93",
|
|
6378
|
+
onLightTextPrimaryActive: "#151A1EC4",
|
|
6379
|
+
surfaceAccentMinor: "#EFF8FF",
|
|
6380
|
+
surfaceSolidDefault: "#060A0D",
|
|
6381
|
+
surfaceSolidTertiary: "#CFDBE4",
|
|
6382
|
+
surfaceAccent: "#1F9EEB",
|
|
6383
|
+
surfaceAccentHover: "#3AA9EEFF",
|
|
6384
|
+
surfaceAccentActive: "#1492E1FF",
|
|
6385
|
+
surfaceTransparentSecondary: "#A8B6BF38",
|
|
6386
|
+
surfaceTransparentSecondaryHover: "#A7B5BE47",
|
|
6387
|
+
surfaceTransparentSecondaryActive: "#A7B5BE4D",
|
|
6388
|
+
surfaceTransparentTertiary: "#8B98A247",
|
|
6389
|
+
surfaceTransparentDeep: "#30383EC7",
|
|
6390
|
+
surfacePositive: "#21A038",
|
|
6391
|
+
surfacePositiveHover: "#24B23EFF",
|
|
6392
|
+
surfacePositiveActive: "#1D9032FF",
|
|
6393
|
+
surfaceWarning: "#E15400",
|
|
6394
|
+
surfaceWarningHover: "#F55A00FF",
|
|
6395
|
+
surfaceWarningActive: "#CC4B00FF",
|
|
6396
|
+
surfaceNegative: "#F81C42",
|
|
6397
|
+
surfaceNegativeHover: "#F94361FF",
|
|
6398
|
+
surfaceNegativeActive: "#F70830FF",
|
|
6399
|
+
surfaceTransparentAccent: "#0090DA1F",
|
|
6400
|
+
surfaceTransparentPositive: "#21A0381F",
|
|
6401
|
+
surfaceTransparentWarning: "#E154001F",
|
|
6402
|
+
surfaceTransparentNegative: "#F81C421F",
|
|
6403
|
+
onLightSurfaceSolidDefault: "#060A0D",
|
|
6404
|
+
onLightSurfaceTransparentDeep: "#30383EC7",
|
|
6405
|
+
onDarkSurfaceSolidDefault: "#F6F9FB",
|
|
6406
|
+
outlineAccent: "#0087CD",
|
|
6407
|
+
outlineSolidPrimary: "#CFDBE4",
|
|
6408
|
+
dataBlueMinor: "#D3EBFF",
|
|
6409
|
+
dataBlueMinorActive: "#C2E3FFFF",
|
|
6410
|
+
dataBlue: "#1F9EEB",
|
|
6411
|
+
dataOrange: "#F3621C",
|
|
6412
|
+
dataOrangeMinor: "#F79772",
|
|
6413
|
+
dataPink: "#FC8CA6"
|
|
6348
6414
|
}, Zl = {
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6415
|
+
...$i
|
|
6416
|
+
}, jl = {
|
|
6417
|
+
light: $i,
|
|
6418
|
+
dark: Zl,
|
|
6419
|
+
highContrastLight: Kl,
|
|
6420
|
+
betaCoreLight: ql
|
|
6421
|
+
}, Jl = (r = "light") => jl[r], Ct = {
|
|
6353
6422
|
bgEditableCell: {
|
|
6354
6423
|
light: "#FFF6E5",
|
|
6355
6424
|
dark: "#211807",
|
|
6356
|
-
highContrastLight: "#F1DDB8"
|
|
6425
|
+
highContrastLight: "#F1DDB8",
|
|
6426
|
+
betaCoreLight: "#FFF6E5"
|
|
6357
6427
|
},
|
|
6358
6428
|
bgEditableCellHovered: {
|
|
6359
6429
|
light: "#FFF4E0",
|
|
6360
6430
|
dark: "#2A1F09",
|
|
6361
|
-
highContrastLight: "#E8D4AD"
|
|
6431
|
+
highContrastLight: "#E8D4AD",
|
|
6432
|
+
betaCoreLight: "#FFF4E0"
|
|
6362
6433
|
},
|
|
6363
6434
|
selectionCheckboxBg: {
|
|
6364
6435
|
light: "#ECF6FC",
|
|
6365
6436
|
dark: "#ECF6FC",
|
|
6366
|
-
highContrastLight: "#CFE5F2"
|
|
6437
|
+
highContrastLight: "#CFE5F2",
|
|
6438
|
+
betaCoreLight: "#EFF8FF"
|
|
6367
6439
|
},
|
|
6368
6440
|
selectionActiveBg: {
|
|
6369
6441
|
light: "#E2F1FB",
|
|
6370
6442
|
dark: "#E2F1FB",
|
|
6371
|
-
highContrastLight: "#BFDDF4"
|
|
6443
|
+
highContrastLight: "#BFDDF4",
|
|
6444
|
+
betaCoreLight: "#E2F1FB"
|
|
6372
6445
|
},
|
|
6373
6446
|
selectionActiveCheckboxBg: {
|
|
6374
6447
|
light: "#D1E9F8",
|
|
6375
6448
|
dark: "#D1E9F8",
|
|
6376
|
-
highContrastLight: "#9BCAEA"
|
|
6449
|
+
highContrastLight: "#9BCAEA",
|
|
6450
|
+
betaCoreLight: "#D1E9F8"
|
|
6377
6451
|
},
|
|
6378
6452
|
selectionServiceBg: {
|
|
6379
6453
|
light: "#ECF6FC",
|
|
6380
6454
|
dark: "#ECF6FC",
|
|
6381
|
-
highContrastLight: "#CFE5F2"
|
|
6455
|
+
highContrastLight: "#CFE5F2",
|
|
6456
|
+
betaCoreLight: "#EFF8FF"
|
|
6382
6457
|
},
|
|
6383
6458
|
selectionServiceActiveBg: {
|
|
6384
6459
|
light: "#D4E7F2",
|
|
6385
6460
|
dark: "#D4E7F2",
|
|
6386
|
-
highContrastLight: "#B9D6E7"
|
|
6461
|
+
highContrastLight: "#B9D6E7",
|
|
6462
|
+
betaCoreLight: "#D4E7F2"
|
|
6387
6463
|
},
|
|
6388
6464
|
errorOutlineColor: {
|
|
6389
6465
|
light: "#FF3D51",
|
|
6390
6466
|
dark: "#FF3D51",
|
|
6391
|
-
highContrastLight: "#E9203F"
|
|
6467
|
+
highContrastLight: "#E9203F",
|
|
6468
|
+
betaCoreLight: "#F81C42"
|
|
6392
6469
|
},
|
|
6393
6470
|
// Фон строки под курсором (hoverEffects.row) — аналог rowHoverColor
|
|
6394
6471
|
// (surfaceSolidPrimary) старой Table.
|
|
6395
6472
|
bgRowHovered: {
|
|
6396
6473
|
light: "#F7F9FB",
|
|
6397
6474
|
dark: "#F7F9FB",
|
|
6398
|
-
highContrastLight: "#E8EEF2"
|
|
6475
|
+
highContrastLight: "#E8EEF2",
|
|
6476
|
+
betaCoreLight: "#F7F9FB"
|
|
6399
6477
|
},
|
|
6400
6478
|
// Служебные колонки (нумерация/чекбокс/инструменты) в hovered-строке —
|
|
6401
6479
|
// то же затемнение, что у сервис-зоны под активным диапазоном
|
|
@@ -6403,21 +6481,23 @@ const Ci = no.div.withConfig({
|
|
|
6403
6481
|
bgServiceRowHovered: {
|
|
6404
6482
|
light: "#D4E7F2",
|
|
6405
6483
|
dark: "#D4E7F2",
|
|
6406
|
-
highContrastLight: "#B9D6E7"
|
|
6484
|
+
highContrastLight: "#B9D6E7",
|
|
6485
|
+
betaCoreLight: "#D4E7F2"
|
|
6407
6486
|
},
|
|
6408
6487
|
// Checkbox-selected строка под курсором: вся строка темнеет
|
|
6409
6488
|
// (как hover шапки — bgHeaderHovered), вместо серого hover.
|
|
6410
6489
|
bgSelectedRowHovered: {
|
|
6411
6490
|
light: "#DEECF5",
|
|
6412
6491
|
dark: "#DEECF5",
|
|
6413
|
-
highContrastLight: "#C2DCEB"
|
|
6492
|
+
highContrastLight: "#C2DCEB",
|
|
6493
|
+
betaCoreLight: "#DEECF5"
|
|
6414
6494
|
}
|
|
6415
|
-
},
|
|
6495
|
+
}, Ql = (r) => ({
|
|
6416
6496
|
/**
|
|
6417
6497
|
* Токены для canvas-рендереров (бейджи, статусы, кнопки внутри ячеек).
|
|
6418
6498
|
* Пример: theme.tokens.textSecondary
|
|
6419
6499
|
*/
|
|
6420
|
-
tokens:
|
|
6500
|
+
tokens: Jl(r),
|
|
6421
6501
|
/**
|
|
6422
6502
|
* Строки шрифтов для компонентов.
|
|
6423
6503
|
* Пример: theme.fonts.bodyS
|
|
@@ -6426,7 +6506,7 @@ const Ci = no.div.withConfig({
|
|
|
6426
6506
|
/**
|
|
6427
6507
|
* Числовые метрики тех же шрифтов для canvas layout.
|
|
6428
6508
|
*/
|
|
6429
|
-
fontMetrics:
|
|
6509
|
+
fontMetrics: co,
|
|
6430
6510
|
bgEditableCell: Ct.bgEditableCell[r],
|
|
6431
6511
|
bgEditableCellHovered: Ct.bgEditableCellHovered[r],
|
|
6432
6512
|
selectionCheckboxBg: Ct.selectionCheckboxBg[r],
|
|
@@ -6442,69 +6522,82 @@ const Ci = no.div.withConfig({
|
|
|
6442
6522
|
accentColor: {
|
|
6443
6523
|
light: "#0b7ecb",
|
|
6444
6524
|
dark: "#0b7ecb",
|
|
6445
|
-
highContrastLight: "#0058A2"
|
|
6525
|
+
highContrastLight: "#0058A2",
|
|
6526
|
+
betaCoreLight: "#0087CD"
|
|
6446
6527
|
},
|
|
6447
6528
|
accentLight: {
|
|
6448
6529
|
light: "#E2F1FB",
|
|
6449
6530
|
dark: "#E2F1FB",
|
|
6450
|
-
highContrastLight: "#DAE8F1"
|
|
6531
|
+
highContrastLight: "#DAE8F1",
|
|
6532
|
+
betaCoreLight: "#E2F1FB"
|
|
6451
6533
|
},
|
|
6452
6534
|
textDark: {
|
|
6453
6535
|
light: "#13181BF5",
|
|
6454
6536
|
dark: "#13181BF5",
|
|
6455
|
-
highContrastLight: "#13181BF5"
|
|
6537
|
+
highContrastLight: "#13181BF5",
|
|
6538
|
+
betaCoreLight: "#14191DF5"
|
|
6456
6539
|
},
|
|
6457
6540
|
textHeader: {
|
|
6458
6541
|
light: "#13181BF5",
|
|
6459
6542
|
dark: "#13181BF5",
|
|
6460
|
-
highContrastLight: "#13181BF5"
|
|
6543
|
+
highContrastLight: "#13181BF5",
|
|
6544
|
+
betaCoreLight: "#14191DF5"
|
|
6461
6545
|
},
|
|
6462
6546
|
textHeaderSelected: {
|
|
6463
6547
|
light: "#13181BF5",
|
|
6464
6548
|
dark: "#13181BF5",
|
|
6465
|
-
highContrastLight: "#13181BF5"
|
|
6549
|
+
highContrastLight: "#13181BF5",
|
|
6550
|
+
betaCoreLight: "#14191DF5"
|
|
6466
6551
|
},
|
|
6467
6552
|
textGroupHeader: {
|
|
6468
6553
|
light: "#13181BF5",
|
|
6469
6554
|
dark: "#13181BF5",
|
|
6470
|
-
highContrastLight: "#13181BF5"
|
|
6555
|
+
highContrastLight: "#13181BF5",
|
|
6556
|
+
betaCoreLight: "#14191DF5"
|
|
6471
6557
|
},
|
|
6472
6558
|
bgCell: {
|
|
6473
6559
|
light: "#FFFFFF",
|
|
6474
6560
|
dark: "#FFFFFF",
|
|
6475
|
-
highContrastLight: "#FFFFFF"
|
|
6561
|
+
highContrastLight: "#FFFFFF",
|
|
6562
|
+
betaCoreLight: "#FFFFFF"
|
|
6476
6563
|
},
|
|
6477
6564
|
bgHeader: {
|
|
6478
6565
|
light: "#ECF6FCFF",
|
|
6479
6566
|
dark: "#ECF6FCFF",
|
|
6480
|
-
highContrastLight: "#CFE5F2FF"
|
|
6567
|
+
highContrastLight: "#CFE5F2FF",
|
|
6568
|
+
betaCoreLight: "#EFF8FF"
|
|
6481
6569
|
},
|
|
6482
6570
|
bgHeaderHasFocus: {
|
|
6483
6571
|
light: "#ECF6FCFF",
|
|
6484
6572
|
dark: "#ECF6FCFF",
|
|
6485
|
-
highContrastLight: "#B9D6E7"
|
|
6573
|
+
highContrastLight: "#B9D6E7",
|
|
6574
|
+
betaCoreLight: "#EFF8FF"
|
|
6486
6575
|
},
|
|
6487
6576
|
bgHeaderHovered: {
|
|
6488
6577
|
light: "#DEECF5",
|
|
6489
6578
|
dark: "#DEECF5",
|
|
6490
|
-
highContrastLight: "#C2DCEB"
|
|
6579
|
+
highContrastLight: "#C2DCEB",
|
|
6580
|
+
betaCoreLight: "#DEECF5"
|
|
6491
6581
|
},
|
|
6492
6582
|
borderColor: {
|
|
6493
6583
|
light: "#D5DFE6",
|
|
6494
6584
|
dark: "#D5DFE6",
|
|
6495
|
-
highContrastLight: "#C4CFD7"
|
|
6585
|
+
highContrastLight: "#C4CFD7",
|
|
6586
|
+
betaCoreLight: "#CFDBE4"
|
|
6496
6587
|
},
|
|
6497
6588
|
bgGroupHeader: {
|
|
6498
6589
|
light: "#ECF6FCFF",
|
|
6499
6590
|
dark: "#ECF6FCFF",
|
|
6500
|
-
highContrastLight: "#CFE5F2FF"
|
|
6591
|
+
highContrastLight: "#CFE5F2FF",
|
|
6592
|
+
betaCoreLight: "#EFF8FF"
|
|
6501
6593
|
},
|
|
6502
6594
|
bgGroupHeaderHovered: {
|
|
6503
6595
|
light: "#DEECF5",
|
|
6504
6596
|
dark: "#DEECF5",
|
|
6505
|
-
highContrastLight: "#C2DCEB"
|
|
6597
|
+
highContrastLight: "#C2DCEB",
|
|
6598
|
+
betaCoreLight: "#DEECF5"
|
|
6506
6599
|
}
|
|
6507
|
-
},
|
|
6600
|
+
}, th = (r) => ({
|
|
6508
6601
|
accentColor: nt.accentColor[r],
|
|
6509
6602
|
accentLight: nt.accentLight[r],
|
|
6510
6603
|
textDark: nt.textDark[r],
|
|
@@ -6518,12 +6611,12 @@ const Ci = no.div.withConfig({
|
|
|
6518
6611
|
borderColor: nt.borderColor[r],
|
|
6519
6612
|
bgGroupHeader: nt.bgGroupHeader[r],
|
|
6520
6613
|
bgGroupHeaderHovered: nt.bgGroupHeaderHovered[r]
|
|
6521
|
-
}),
|
|
6614
|
+
}), ro = {
|
|
6522
6615
|
small: "bodyXXS",
|
|
6523
6616
|
medium: "bodyS",
|
|
6524
6617
|
big: "bodyM"
|
|
6525
|
-
},
|
|
6526
|
-
const t = yi[
|
|
6618
|
+
}, eh = (r = "big") => {
|
|
6619
|
+
const t = yi[ro[r]], e = co[ro[r]], i = `${e.fontSize}px`, o = e.lineHeightPx, n = qn[r], {
|
|
6527
6620
|
cellHorizontalPadding: s,
|
|
6528
6621
|
cellVerticalPadding: a
|
|
6529
6622
|
} = n;
|
|
@@ -6538,26 +6631,26 @@ const Ci = no.div.withConfig({
|
|
|
6538
6631
|
activeSizes: n
|
|
6539
6632
|
};
|
|
6540
6633
|
}, qo = (r = "big", t = "light") => ({
|
|
6634
|
+
...th(t),
|
|
6635
|
+
...eh(r),
|
|
6541
6636
|
...Ql(t),
|
|
6542
|
-
...th(r),
|
|
6543
|
-
...Jl(t),
|
|
6544
6637
|
rowSize: r
|
|
6545
|
-
}),
|
|
6638
|
+
}), Nh = qo(), oo = (r, t) => {
|
|
6546
6639
|
if (r == null)
|
|
6547
6640
|
return null;
|
|
6548
6641
|
const e = typeof r == "number" ? r : r(t);
|
|
6549
6642
|
return [t.colInd, t.colInd + e];
|
|
6550
6643
|
};
|
|
6551
|
-
function
|
|
6644
|
+
function ih(...r) {
|
|
6552
6645
|
}
|
|
6553
|
-
const
|
|
6646
|
+
const rh = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "string") : typeof r == "string" ? [r] : [], Wh = ({
|
|
6554
6647
|
columns: r,
|
|
6555
6648
|
rows: t,
|
|
6556
6649
|
bottomSummaryRows: e,
|
|
6557
6650
|
rowHeight: i,
|
|
6558
6651
|
width: o,
|
|
6559
6652
|
rowSize: n = "medium",
|
|
6560
|
-
ctxs: s =
|
|
6653
|
+
ctxs: s = rh,
|
|
6561
6654
|
freezeColumns: a,
|
|
6562
6655
|
onColumnResize: c,
|
|
6563
6656
|
renderGroupHeader: h,
|
|
@@ -6568,15 +6661,15 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6568
6661
|
onItemHovered: g,
|
|
6569
6662
|
unstickyHeader: v,
|
|
6570
6663
|
resizableColumn: C = !0,
|
|
6571
|
-
minColumnWidth:
|
|
6664
|
+
minColumnWidth: w = 56,
|
|
6572
6665
|
maxColumnWidth: m,
|
|
6573
|
-
maxColumnAutoWidth:
|
|
6574
|
-
containerRef:
|
|
6666
|
+
maxColumnAutoWidth: x,
|
|
6667
|
+
containerRef: F,
|
|
6575
6668
|
containerClassName: A,
|
|
6576
6669
|
containerStyle: y,
|
|
6577
6670
|
renderOverlayFeatures: H,
|
|
6578
|
-
hideGrid:
|
|
6579
|
-
contentStateNode:
|
|
6671
|
+
hideGrid: E,
|
|
6672
|
+
contentStateNode: L,
|
|
6580
6673
|
fullScreened: O,
|
|
6581
6674
|
editorOverlayPortal: at,
|
|
6582
6675
|
highlightActiveType: G = "disabled",
|
|
@@ -6615,35 +6708,35 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6615
6708
|
// TODO: внешний getGroupDetails пока не прокидываем (см. композицию ниже).
|
|
6616
6709
|
// getGroupDetails: getGroupDetailsExternal,
|
|
6617
6710
|
onMouseMove: pe,
|
|
6618
|
-
portalElementRef:
|
|
6711
|
+
portalElementRef: oh,
|
|
6619
6712
|
// на всякий вытащили, чтобы в составе resProps не перезаписал внутреннюю логику.
|
|
6620
6713
|
...Nt
|
|
6621
6714
|
}) => {
|
|
6622
|
-
var
|
|
6623
|
-
const
|
|
6715
|
+
var or, nr;
|
|
6716
|
+
const Ui = Vn(), B = R(() => qo(n, Ui), [n, Ui]), Zo = R(() => {
|
|
6624
6717
|
const p = typeof i == "number" ? i : void 0;
|
|
6625
6718
|
if (p)
|
|
6626
6719
|
return p;
|
|
6627
|
-
const
|
|
6628
|
-
return S ? (
|
|
6629
|
-
const I = t[
|
|
6720
|
+
const b = Kn[n], S = typeof i == "function" ? i : void 0;
|
|
6721
|
+
return S ? (T) => {
|
|
6722
|
+
const I = t[T];
|
|
6630
6723
|
if (!I)
|
|
6631
|
-
return p ??
|
|
6724
|
+
return p ?? b;
|
|
6632
6725
|
const z = S(I, {
|
|
6633
6726
|
rowSizeName: n,
|
|
6634
|
-
rowSizeValue:
|
|
6635
|
-
},
|
|
6636
|
-
return typeof z == "number" && !Number.isNaN(z) ? z :
|
|
6637
|
-
} :
|
|
6638
|
-
}, [t, i, n]), Wt = (e == null ? void 0 : e.length) ?? 0, jo = Hl(Zo), [me, Jo] = st(/* @__PURE__ */ new Map()), Qo = U((p,
|
|
6727
|
+
rowSizeValue: b
|
|
6728
|
+
}, T);
|
|
6729
|
+
return typeof z == "number" && !Number.isNaN(z) ? z : b;
|
|
6730
|
+
} : b;
|
|
6731
|
+
}, [t, i, n]), Wt = (e == null ? void 0 : e.length) ?? 0, jo = Hl(Zo), [me, Jo] = st(/* @__PURE__ */ new Map()), Qo = U((p, b, S, T) => {
|
|
6639
6732
|
const I = p;
|
|
6640
|
-
I.id && (c == null || c(I,
|
|
6733
|
+
I.id && (c == null || c(I, b, S, T), Jo((D) => (D.set(I.id, b), new Map(D))));
|
|
6641
6734
|
}, [c]), Gt = R(() => me.size === 0 ? r : r.map((p) => me.has(p.id) ? {
|
|
6642
6735
|
...p,
|
|
6643
6736
|
width: me.get(p.id),
|
|
6644
6737
|
grow: 0
|
|
6645
|
-
} : p), [r, me]), [
|
|
6646
|
-
|
|
6738
|
+
} : p), [r, me]), [Xi, nh] = st(0), Ke = R(() => /* @__PURE__ */ new WeakMap(), []), qe = rt(null), At = rt(null);
|
|
6739
|
+
xt(() => {
|
|
6647
6740
|
var p;
|
|
6648
6741
|
(zt == null ? void 0 : zt.current) !== void 0 && ((p = At.current) == null || p.focus());
|
|
6649
6742
|
}, [zt]);
|
|
@@ -6651,12 +6744,12 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6651
6744
|
interactionSessionStore: ht,
|
|
6652
6745
|
beginOrGetInteractionSession: tn,
|
|
6653
6746
|
consumeCanvasClickResult: en
|
|
6654
|
-
} = Ol(),
|
|
6747
|
+
} = Ol(), Yi = zl(ht), {
|
|
6655
6748
|
selection: mt,
|
|
6656
6749
|
handleGridSelectionChange: rn,
|
|
6657
6750
|
handleSelectionCleared: on,
|
|
6658
6751
|
rangeSelect: nn
|
|
6659
|
-
} =
|
|
6752
|
+
} = wl({
|
|
6660
6753
|
cellsSelectionMode: tt,
|
|
6661
6754
|
gridSelection: zt,
|
|
6662
6755
|
onGridSelectionChange: Ve,
|
|
@@ -6668,14 +6761,14 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6668
6761
|
checkboxSelectedRowIndexes: W
|
|
6669
6762
|
}), sn = R(() => K ? (p) => K(p, p !== void 0 ? t[p] : void 0) : void 0, [K, t]), {
|
|
6670
6763
|
selectedColumnIndexes: an,
|
|
6671
|
-
selectedColumnKeysAll:
|
|
6764
|
+
selectedColumnKeysAll: Vi,
|
|
6672
6765
|
selectColumnsByKeys: ye,
|
|
6673
|
-
selectedColumnSet:
|
|
6674
|
-
headerSelectedRowIndexes:
|
|
6766
|
+
selectedColumnSet: Fe,
|
|
6767
|
+
headerSelectedRowIndexes: Ki,
|
|
6675
6768
|
activeRow: cn,
|
|
6676
|
-
numberingColumnIndex:
|
|
6769
|
+
numberingColumnIndex: qi,
|
|
6677
6770
|
drawFocusRing: ln,
|
|
6678
|
-
selectColumnFromHeader:
|
|
6771
|
+
selectColumnFromHeader: Zi,
|
|
6679
6772
|
handleGridSelectionWithColumnReset: hn,
|
|
6680
6773
|
handleSelectionClearedWithColumns: un
|
|
6681
6774
|
} = Dl({
|
|
@@ -6695,68 +6788,68 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6695
6788
|
onHighlightActiveRowChange: sn,
|
|
6696
6789
|
isHighlightActiveRowControlled: ct
|
|
6697
6790
|
});
|
|
6698
|
-
|
|
6699
|
-
k == null || k(
|
|
6700
|
-
}, [
|
|
6791
|
+
xt(() => {
|
|
6792
|
+
k == null || k(Vi);
|
|
6793
|
+
}, [Vi, k]), xt(() => {
|
|
6701
6794
|
if (!N)
|
|
6702
6795
|
return;
|
|
6703
6796
|
ye(N);
|
|
6704
6797
|
const p = setTimeout(() => M == null ? void 0 : M(), 0);
|
|
6705
6798
|
return () => clearTimeout(p);
|
|
6706
6799
|
}, [N, Gt, ye, M]);
|
|
6707
|
-
const
|
|
6800
|
+
const be = Ki.length > 0, xe = R(() => {
|
|
6708
6801
|
var S;
|
|
6709
|
-
const p = /* @__PURE__ */ new Set(),
|
|
6710
|
-
if (
|
|
6711
|
-
const
|
|
6712
|
-
for (const I of
|
|
6713
|
-
const D = Math.max(I.x,
|
|
6802
|
+
const p = /* @__PURE__ */ new Set(), b = (S = mt.current) == null ? void 0 : S.rangeStack;
|
|
6803
|
+
if (b) {
|
|
6804
|
+
const T = it.firstDataColumnIndex;
|
|
6805
|
+
for (const I of b) {
|
|
6806
|
+
const D = Math.max(I.x, T);
|
|
6714
6807
|
for (let z = D; z < I.x + I.width; z += 1)
|
|
6715
6808
|
p.add(z);
|
|
6716
6809
|
}
|
|
6717
6810
|
}
|
|
6718
6811
|
return p;
|
|
6719
|
-
}, [mt, it.firstDataColumnIndex]), V = R(() => Gt.map((p,
|
|
6812
|
+
}, [mt, it.firstDataColumnIndex]), V = R(() => Gt.map((p, b) => {
|
|
6720
6813
|
const S = {
|
|
6721
6814
|
...p.themeOverride ?? {}
|
|
6722
6815
|
};
|
|
6723
|
-
let
|
|
6724
|
-
return p.isServiceColumn && (S.bgCell = B.selectionServiceBg,
|
|
6816
|
+
let T = Object.keys(S).length > 0;
|
|
6817
|
+
return p.isServiceColumn && (S.bgCell = B.selectionServiceBg, T = !0), b === qi && (S.accentLight = "transparent", S.accentColor = "transparent", T = !0), it.isActiveHeaderColumn(b) && (S.bgHeader = B.selectionServiceActiveBg, S.bgHeaderHasFocus = B.selectionServiceActiveBg, T = !0), Fe.has(b) && (S.bgHeader = B.selectionServiceActiveBg, S.bgHeaderHasFocus = B.selectionServiceActiveBg, T = !0), xe.has(b) && (S.bgHeader = B.selectionServiceActiveBg, S.bgHeaderHasFocus = B.selectionServiceActiveBg, T = !0), be && !p.isServiceColumn && (S.bgHeader = B.selectionServiceActiveBg, S.bgHeaderHasFocus = B.selectionServiceActiveBg, T = !0), T ? {
|
|
6725
6818
|
...p,
|
|
6726
6819
|
themeOverride: S
|
|
6727
6820
|
} : p;
|
|
6728
|
-
}), [Gt, it,
|
|
6821
|
+
}), [Gt, it, Fe, xe, be, qi, B.selectionServiceBg, B.selectionServiceActiveBg]), dn = R(() => {
|
|
6729
6822
|
var S;
|
|
6730
|
-
const p = (S = mt.current) == null ? void 0 : S.range,
|
|
6731
|
-
return V.forEach((
|
|
6732
|
-
|
|
6823
|
+
const p = (S = mt.current) == null ? void 0 : S.range, b = [];
|
|
6824
|
+
return V.forEach((T, I) => {
|
|
6825
|
+
T.isServiceColumn || !T.isErrorCell || t.forEach((D, z) => {
|
|
6733
6826
|
var _;
|
|
6734
|
-
(_ =
|
|
6827
|
+
(_ = T.isErrorCell) != null && _.call(T, D) && (Yo(p, I, z) || b.push({
|
|
6735
6828
|
x: I,
|
|
6736
6829
|
y: z,
|
|
6737
6830
|
width: 1,
|
|
6738
6831
|
height: 1
|
|
6739
6832
|
}));
|
|
6740
6833
|
});
|
|
6741
|
-
}),
|
|
6742
|
-
}, [V, t, mt.current]),
|
|
6743
|
-
var
|
|
6744
|
-
|
|
6745
|
-
const
|
|
6834
|
+
}), b;
|
|
6835
|
+
}, [V, t, mt.current]), we = U(([p, b], S) => {
|
|
6836
|
+
var Te, lr, De, hr;
|
|
6837
|
+
ih(Xi);
|
|
6838
|
+
const T = (S == null ? void 0 : S.applyCanvasEditorActivation) !== !1, I = (Tt) => T ? Yi([p, b], Tt) : Tt, D = !!e && b > t.length - 1, z = t[b], _ = V[p];
|
|
6746
6839
|
if (!_)
|
|
6747
6840
|
return he();
|
|
6748
6841
|
if (D) {
|
|
6749
|
-
const
|
|
6750
|
-
renderSummaryCell:
|
|
6842
|
+
const Tt = e[b - t.length], {
|
|
6843
|
+
renderSummaryCell: ur,
|
|
6751
6844
|
colSpan: kn
|
|
6752
6845
|
} = _;
|
|
6753
|
-
if (!
|
|
6846
|
+
if (!ur || !Tt)
|
|
6754
6847
|
return he();
|
|
6755
6848
|
const ri = {
|
|
6756
|
-
row:
|
|
6849
|
+
row: Tt,
|
|
6757
6850
|
column: _,
|
|
6758
6851
|
colInd: p,
|
|
6759
|
-
rowInd:
|
|
6852
|
+
rowInd: b,
|
|
6760
6853
|
ctxs: s,
|
|
6761
6854
|
theme: B,
|
|
6762
6855
|
hovered: {
|
|
@@ -6767,13 +6860,13 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6767
6860
|
cellActive: !1,
|
|
6768
6861
|
rowActive: !1
|
|
6769
6862
|
}
|
|
6770
|
-
}, Mn =
|
|
6863
|
+
}, Mn = ur(ri), dr = oo(kn, ri), Rn = {
|
|
6771
6864
|
data: "",
|
|
6772
|
-
...
|
|
6773
|
-
span:
|
|
6865
|
+
...dr && {
|
|
6866
|
+
span: dr
|
|
6774
6867
|
}
|
|
6775
6868
|
};
|
|
6776
|
-
return I(
|
|
6869
|
+
return I(Qr({
|
|
6777
6870
|
jsxElement: Mn,
|
|
6778
6871
|
canvasCellCache: Ke,
|
|
6779
6872
|
cellInfo: ri,
|
|
@@ -6790,28 +6883,28 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6790
6883
|
row: z,
|
|
6791
6884
|
column: _,
|
|
6792
6885
|
colInd: p,
|
|
6793
|
-
rowInd:
|
|
6886
|
+
rowInd: b,
|
|
6794
6887
|
ctxs: s,
|
|
6795
6888
|
theme: B,
|
|
6796
6889
|
hovered: {
|
|
6797
|
-
cellHover: (q == null ? void 0 : q.colInd) === p && (q == null ? void 0 : q.rowInd) ===
|
|
6798
|
-
rowHover: (q == null ? void 0 : q.rowInd) ===
|
|
6890
|
+
cellHover: (q == null ? void 0 : q.colInd) === p && (q == null ? void 0 : q.rowInd) === b,
|
|
6891
|
+
rowHover: (q == null ? void 0 : q.rowInd) === b
|
|
6799
6892
|
},
|
|
6800
6893
|
active: {
|
|
6801
6894
|
// Источник активного состояния тот же, что используется для визуальной подсветки таблицы.
|
|
6802
|
-
cellActive: it.isActiveDataCell(p,
|
|
6803
|
-
rowActive: it.isActiveRow(
|
|
6895
|
+
cellActive: it.isActiveDataCell(p, b),
|
|
6896
|
+
rowActive: it.isActiveRow(b)
|
|
6804
6897
|
}
|
|
6805
6898
|
}, {
|
|
6806
6899
|
renderCell: Z,
|
|
6807
6900
|
id: J,
|
|
6808
6901
|
colSpan: $,
|
|
6809
|
-
editable:
|
|
6902
|
+
editable: Et,
|
|
6810
6903
|
contentAlign: Mt,
|
|
6811
6904
|
columnThemeOverride: Ae
|
|
6812
|
-
} = _,
|
|
6813
|
-
data: ((
|
|
6814
|
-
...
|
|
6905
|
+
} = _, Ee = ((lr = (Te = z[J]) == null ? void 0 : Te.toString) == null ? void 0 : lr.call(Te)) ?? "NOT FOUND", sr = oo($, X), ar = Et ? typeof Et == "boolean" ? Et : Et(z) : !1, ei = typeof Ae == "function" ? Ae(X) : void 0, ii = {
|
|
6906
|
+
data: ((hr = (De = z[J]) == null ? void 0 : De.toString) == null ? void 0 : hr.call(De)) ?? "NOT FOUND",
|
|
6907
|
+
...ar ? {
|
|
6815
6908
|
readonly: !1,
|
|
6816
6909
|
allowOverlay: !0
|
|
6817
6910
|
} : {
|
|
@@ -6825,77 +6918,77 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6825
6918
|
},
|
|
6826
6919
|
themeOverride: {
|
|
6827
6920
|
...ei,
|
|
6828
|
-
...
|
|
6921
|
+
...ar && {
|
|
6829
6922
|
bgCell: B.bgEditableCell
|
|
6830
6923
|
}
|
|
6831
6924
|
},
|
|
6832
6925
|
contentAlign: Mt,
|
|
6833
|
-
...
|
|
6834
|
-
span:
|
|
6926
|
+
...sr && {
|
|
6927
|
+
span: sr
|
|
6835
6928
|
}
|
|
6836
6929
|
};
|
|
6837
6930
|
if (!Z) {
|
|
6838
|
-
const
|
|
6839
|
-
return
|
|
6931
|
+
const Tt = String(Ee);
|
|
6932
|
+
return Uo(Tt) ? I(_i(Tt, ii)) : I(he(ii));
|
|
6840
6933
|
}
|
|
6841
|
-
const
|
|
6934
|
+
const cr = ei ? {
|
|
6842
6935
|
...X,
|
|
6843
6936
|
theme: {
|
|
6844
6937
|
...B,
|
|
6845
6938
|
...ei
|
|
6846
6939
|
}
|
|
6847
|
-
} : X, _n = Z(
|
|
6848
|
-
return I(
|
|
6940
|
+
} : X, _n = Z(cr);
|
|
6941
|
+
return I(Qr({
|
|
6849
6942
|
jsxElement: _n,
|
|
6850
6943
|
canvasCellCache: Ke,
|
|
6851
|
-
cellInfo:
|
|
6944
|
+
cellInfo: cr,
|
|
6852
6945
|
options: {
|
|
6853
6946
|
...ii,
|
|
6854
6947
|
getPortalEventTarget: () => (f == null ? void 0 : f.current) ?? null,
|
|
6855
6948
|
refTable: l
|
|
6856
6949
|
}
|
|
6857
6950
|
}));
|
|
6858
|
-
}, [
|
|
6951
|
+
}, [Xi, e, t, V, s, B, it, Ke, f, Yi]), fn = U((p, b) => {
|
|
6859
6952
|
var $;
|
|
6860
|
-
const S =
|
|
6953
|
+
const S = we(p, {
|
|
6861
6954
|
applyCanvasEditorActivation: !1
|
|
6862
6955
|
});
|
|
6863
|
-
if (!
|
|
6864
|
-
gt == null || gt(p,
|
|
6956
|
+
if (!ko(S)) {
|
|
6957
|
+
gt == null || gt(p, b);
|
|
6865
6958
|
return;
|
|
6866
6959
|
}
|
|
6867
|
-
let
|
|
6868
|
-
const I =
|
|
6869
|
-
|
|
6870
|
-
|
|
6960
|
+
let T = !1;
|
|
6961
|
+
const I = b.preventDefault;
|
|
6962
|
+
b.preventDefault = () => {
|
|
6963
|
+
T = !0, I();
|
|
6871
6964
|
};
|
|
6872
6965
|
const D = de({
|
|
6873
6966
|
colIndex: p[0],
|
|
6874
6967
|
rowIndex: p[1]
|
|
6875
|
-
},
|
|
6876
|
-
x:
|
|
6877
|
-
y:
|
|
6878
|
-
}, q =
|
|
6968
|
+
}, b.bounds), z = fe(D, S), _ = {
|
|
6969
|
+
x: b.localEventX,
|
|
6970
|
+
y: b.localEventY
|
|
6971
|
+
}, q = Vo({
|
|
6879
6972
|
cell: p,
|
|
6880
6973
|
glideCell: S,
|
|
6881
|
-
rect:
|
|
6974
|
+
rect: b.bounds,
|
|
6882
6975
|
renderData: z,
|
|
6883
6976
|
relativePoint: _
|
|
6884
6977
|
}), X = q ? ht.beginOrGet({
|
|
6885
6978
|
cell: p,
|
|
6886
6979
|
relativePoint: _,
|
|
6887
6980
|
interaction: q.interaction,
|
|
6888
|
-
button:
|
|
6981
|
+
button: b.button,
|
|
6889
6982
|
source: "click"
|
|
6890
6983
|
}) : ht.beginOrGet({
|
|
6891
6984
|
cell: p,
|
|
6892
6985
|
relativePoint: _,
|
|
6893
6986
|
interaction: gs(),
|
|
6894
|
-
button:
|
|
6987
|
+
button: b.button,
|
|
6895
6988
|
source: "click"
|
|
6896
|
-
}), Z =
|
|
6989
|
+
}), Z = Ro({
|
|
6897
6990
|
cell: S,
|
|
6898
|
-
rect:
|
|
6991
|
+
rect: b.bounds,
|
|
6899
6992
|
relativePoint: _,
|
|
6900
6993
|
renderData: z,
|
|
6901
6994
|
rowData: t[p[1]],
|
|
@@ -6908,28 +7001,28 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6908
7001
|
suppressExternalCellClick: Z.propagationStopped,
|
|
6909
7002
|
suppressGridDefaultForClick: Z.suppressGridDefault
|
|
6910
7003
|
};
|
|
6911
|
-
if (X && (ht.consumePhase(X, "cell-click"), ht.storeClickResult(X, Z)),
|
|
7004
|
+
if (X && (ht.consumePhase(X, "cell-click"), ht.storeClickResult(X, Z)), b.button === 0 && (($ = J.editorRequest) == null ? void 0 : $.target) === "self" && ht.armEditorRequest(X, J.editorRequest), J.suppressGridDefaultForClick && (b.preventDefault(), X != null && X.decision.editorRequest && ht.clear()), J.suppressExternalCellClick || gt == null || gt(p, b), T || b.button === 1) {
|
|
6912
7005
|
ht.clear();
|
|
6913
7006
|
return;
|
|
6914
7007
|
}
|
|
6915
|
-
}, [
|
|
6916
|
-
ht.isMatchingRecent("contextmenu-capture", p) || ee == null || ee(p,
|
|
7008
|
+
}, [we, ht, gt, t]), gn = U((p, b) => {
|
|
7009
|
+
ht.isMatchingRecent("contextmenu-capture", p) || ee == null || ee(p, b);
|
|
6917
7010
|
}, [ht, ee]), Cn = Nl({
|
|
6918
7011
|
beginOrGetInteractionSession: tn,
|
|
6919
7012
|
consumeCanvasClickResult: en
|
|
6920
|
-
}), $t = rt(null), Ut = rt(null), ie = R(() => /* @__PURE__ */ new Map(), []),
|
|
7013
|
+
}), $t = rt(null), Ut = rt(null), ie = R(() => /* @__PURE__ */ new Map(), []), ji = R(() => /* @__PURE__ */ new Map(), []), Ze = rt(null), kt = rt(null), vn = R(() => gr(kt, F), [F]), {
|
|
6921
7014
|
drawHeader: pn,
|
|
6922
7015
|
onHeaderClicked: mn
|
|
6923
7016
|
} = R(() => ({
|
|
6924
|
-
drawHeader: (S,
|
|
6925
|
-
var
|
|
7017
|
+
drawHeader: (S, T) => {
|
|
7018
|
+
var Ee;
|
|
6926
7019
|
const {
|
|
6927
7020
|
ctx: I,
|
|
6928
7021
|
rect: D,
|
|
6929
7022
|
columnIndex: z
|
|
6930
7023
|
} = S, _ = V[z];
|
|
6931
7024
|
if (!_ || !_.renderHeaderCell)
|
|
6932
|
-
return
|
|
7025
|
+
return T();
|
|
6933
7026
|
const q = {
|
|
6934
7027
|
column: _,
|
|
6935
7028
|
drawArgs: S,
|
|
@@ -6937,8 +7030,8 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6937
7030
|
theme: B
|
|
6938
7031
|
};
|
|
6939
7032
|
let X = _.renderHeaderCell(q);
|
|
6940
|
-
if (!
|
|
6941
|
-
return
|
|
7033
|
+
if (!Jr(X))
|
|
7034
|
+
return T();
|
|
6942
7035
|
typeof X == "string" && (X = /* @__PURE__ */ Dt(_e.Container, { style: {
|
|
6943
7036
|
width: "100%"
|
|
6944
7037
|
}, alignItems: "center", children: /* @__PURE__ */ Dt(_e.Text, { children: X }) }));
|
|
@@ -6951,7 +7044,7 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6951
7044
|
ie.has(_.id) ? ($ = ie.get(_.id), $ == null || $.setRootNode(J), $ != null && $.rootNode && ($.rootNode.style = {
|
|
6952
7045
|
width: D.width,
|
|
6953
7046
|
height: D.height
|
|
6954
|
-
})) : ($ = new
|
|
7047
|
+
})) : ($ = new wt(J, Z), $.rootNode.style = {
|
|
6955
7048
|
width: D.width,
|
|
6956
7049
|
height: D.height
|
|
6957
7050
|
}, ie.set(_.id, $)), $ == null || $.setPortalEventTarget((f == null ? void 0 : f.current) ?? null), $ == null || $.setTooltipContext({
|
|
@@ -6959,26 +7052,26 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6959
7052
|
ctxs: s,
|
|
6960
7053
|
refTable: l
|
|
6961
7054
|
});
|
|
6962
|
-
const
|
|
7055
|
+
const Et = ((Ee = $t.current) == null ? void 0 : Ee.id) === _.id ? $t.current : void 0, Mt = I.canvas.getBoundingClientRect(), Ae = {
|
|
6963
7056
|
x: Mt.left + D.x,
|
|
6964
7057
|
y: Mt.top + D.y,
|
|
6965
7058
|
width: D.width,
|
|
6966
7059
|
height: D.height
|
|
6967
7060
|
};
|
|
6968
|
-
return $ == null ? void 0 : $.render(I, D,
|
|
7061
|
+
return $ == null ? void 0 : $.render(I, D, Et, Ae);
|
|
6969
7062
|
},
|
|
6970
|
-
onHeaderClicked: (S,
|
|
7063
|
+
onHeaderClicked: (S, T) => {
|
|
6971
7064
|
const I = V[S];
|
|
6972
7065
|
if (I) {
|
|
6973
7066
|
if (I.renderHeaderCell) {
|
|
6974
7067
|
const D = ie.get(I.id);
|
|
6975
7068
|
if (D) {
|
|
6976
|
-
const z = D.getInteractionAtPoint(
|
|
6977
|
-
if (D.dispatchPointerEvent("click",
|
|
7069
|
+
const z = D.getInteractionAtPoint(T.localEventX, T.localEventY);
|
|
7070
|
+
if (D.dispatchPointerEvent("click", T.localEventX, T.localEventY), z)
|
|
6978
7071
|
return;
|
|
6979
7072
|
}
|
|
6980
7073
|
}
|
|
6981
|
-
|
|
7074
|
+
Zi(S, T);
|
|
6982
7075
|
}
|
|
6983
7076
|
}
|
|
6984
7077
|
}), [
|
|
@@ -6989,14 +7082,14 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
6989
7082
|
f,
|
|
6990
7083
|
At,
|
|
6991
7084
|
// onHeaderClicked: column-select делегирован useTableSelectionSystem
|
|
6992
|
-
|
|
6993
|
-
]), yn = U((p,
|
|
7085
|
+
Zi
|
|
7086
|
+
]), yn = U((p, b) => {
|
|
6994
7087
|
const S = V[p];
|
|
6995
7088
|
if (!Ot || !S) {
|
|
6996
|
-
_t == null || _t(p,
|
|
7089
|
+
_t == null || _t(p, b);
|
|
6997
7090
|
return;
|
|
6998
7091
|
}
|
|
6999
|
-
const
|
|
7092
|
+
const T = vi(S.group), I = Math.max(0, T.indexOf(b.group)), D = T.slice(0, I + 1).join("\0"), z = (Z) => {
|
|
7000
7093
|
const J = V[Z];
|
|
7001
7094
|
return J !== void 0 && vi(J.group).slice(0, I + 1).join("\0") === D;
|
|
7002
7095
|
};
|
|
@@ -7010,13 +7103,13 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7010
7103
|
const J = V[Z];
|
|
7011
7104
|
J && !J.isServiceColumn && X.push(J.id);
|
|
7012
7105
|
}
|
|
7013
|
-
X.length > 0 && ye(X), _t == null || _t(p,
|
|
7014
|
-
}, [Ot, V, ye, _t]),
|
|
7106
|
+
X.length > 0 && ye(X), _t == null || _t(p, b);
|
|
7107
|
+
}, [Ot, V, ye, _t]), Ji = R(() => {
|
|
7015
7108
|
const p = /* @__PURE__ */ new Map();
|
|
7016
|
-
V.forEach((S,
|
|
7109
|
+
V.forEach((S, T) => {
|
|
7017
7110
|
if (S.isServiceColumn)
|
|
7018
7111
|
return;
|
|
7019
|
-
const I = it.isActiveHeaderColumn(
|
|
7112
|
+
const I = it.isActiveHeaderColumn(T) || Fe.has(T) || xe.has(T) || be;
|
|
7020
7113
|
vi(S.group).forEach((D) => {
|
|
7021
7114
|
if (D === "")
|
|
7022
7115
|
return;
|
|
@@ -7024,38 +7117,38 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7024
7117
|
p.set(D, (z ?? !0) && I);
|
|
7025
7118
|
});
|
|
7026
7119
|
});
|
|
7027
|
-
const
|
|
7028
|
-
return p.forEach((S,
|
|
7029
|
-
S &&
|
|
7030
|
-
}),
|
|
7031
|
-
}, [V, it,
|
|
7032
|
-
const
|
|
7120
|
+
const b = /* @__PURE__ */ new Set();
|
|
7121
|
+
return p.forEach((S, T) => {
|
|
7122
|
+
S && b.add(T);
|
|
7123
|
+
}), b;
|
|
7124
|
+
}, [V, it, Fe, xe, be]), Fn = U((p) => {
|
|
7125
|
+
const b = d == null ? void 0 : d.get(p), S = {
|
|
7033
7126
|
name: p,
|
|
7034
|
-
...
|
|
7035
|
-
spanAlign:
|
|
7127
|
+
...b && {
|
|
7128
|
+
spanAlign: b
|
|
7036
7129
|
}
|
|
7037
7130
|
};
|
|
7038
|
-
return
|
|
7131
|
+
return Ji.has(p) ? {
|
|
7039
7132
|
...S,
|
|
7040
7133
|
overrideTheme: {
|
|
7041
7134
|
bgGroupHeader: B.selectionServiceActiveBg,
|
|
7042
7135
|
bgGroupHeaderHovered: B.bgHeaderHovered
|
|
7043
7136
|
}
|
|
7044
7137
|
} : S;
|
|
7045
|
-
}, [d,
|
|
7138
|
+
}, [d, Ji, B.selectionServiceActiveBg, B.bgHeaderHovered]), {
|
|
7046
7139
|
glideContainer: je,
|
|
7047
|
-
isReady:
|
|
7048
|
-
renderInContainer:
|
|
7049
|
-
} = Gl(kt, O),
|
|
7050
|
-
Ul(kt,
|
|
7140
|
+
isReady: bn,
|
|
7141
|
+
renderInContainer: xn
|
|
7142
|
+
} = Gl(kt, O), Qi = at === "inside";
|
|
7143
|
+
Ul(kt, Qi), Pl({
|
|
7051
7144
|
eventTarget: je ?? kt.current,
|
|
7052
7145
|
dataEditorRef: At,
|
|
7053
|
-
getCellContent:
|
|
7146
|
+
getCellContent: we,
|
|
7054
7147
|
interactionSessionStore: ht,
|
|
7055
7148
|
onCellContextMenuExternal: ee
|
|
7056
7149
|
});
|
|
7057
7150
|
const {
|
|
7058
|
-
unstickyCallbackRef:
|
|
7151
|
+
unstickyCallbackRef: tr,
|
|
7059
7152
|
mergedExperimental: Je
|
|
7060
7153
|
} = Yl({
|
|
7061
7154
|
enabled: v,
|
|
@@ -7063,39 +7156,39 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7063
7156
|
headerHeight: Nt.headerHeight,
|
|
7064
7157
|
groupHeaderHeight: Nt.groupHeaderHeight,
|
|
7065
7158
|
experimental: Nt.experimental
|
|
7066
|
-
}),
|
|
7159
|
+
}), wn = R(() => gr(At, l, tr), [l, tr]), Sn = R(() => te === void 0 ? Je : {
|
|
7067
7160
|
...Je,
|
|
7068
7161
|
enableLowDprHairline: te
|
|
7069
|
-
}, [te, Je]),
|
|
7162
|
+
}, [te, Je]), er = U((...p) => {
|
|
7070
7163
|
var I;
|
|
7071
|
-
const
|
|
7072
|
-
if (!
|
|
7164
|
+
const b = At.current;
|
|
7165
|
+
if (!b)
|
|
7073
7166
|
return;
|
|
7074
7167
|
const S = /* @__PURE__ */ new Set();
|
|
7075
7168
|
p.forEach((D) => {
|
|
7076
7169
|
typeof D == "number" && D >= 0 && D < t.length && S.add(D);
|
|
7077
7170
|
});
|
|
7078
|
-
const
|
|
7171
|
+
const T = [];
|
|
7079
7172
|
S.forEach((D) => {
|
|
7080
7173
|
V.forEach((z, _) => {
|
|
7081
|
-
|
|
7174
|
+
T.push({
|
|
7082
7175
|
cell: [_, D]
|
|
7083
7176
|
});
|
|
7084
7177
|
});
|
|
7085
|
-
}),
|
|
7178
|
+
}), T.length > 0 && ((I = b.updateCells) == null || I.call(b, T));
|
|
7086
7179
|
}, [V, t.length]), Se = U((p) => {
|
|
7087
|
-
const
|
|
7088
|
-
(
|
|
7089
|
-
}, [
|
|
7180
|
+
const b = qe.current;
|
|
7181
|
+
(b == null ? void 0 : b.colInd) === (p == null ? void 0 : p.colInd) && (b == null ? void 0 : b.rowInd) === (p == null ? void 0 : p.rowInd) || (qe.current = p, er(b == null ? void 0 : b.rowInd, p == null ? void 0 : p.rowInd));
|
|
7182
|
+
}, [er]), An = U((p) => {
|
|
7090
7183
|
pe == null || pe(p), p.kind === "cell" ? (() => {
|
|
7091
|
-
const S = p.location[0],
|
|
7184
|
+
const S = p.location[0], T = p.location[1], I = t[T], D = V[S];
|
|
7092
7185
|
if (!I || !D || D.isServiceColumn) {
|
|
7093
7186
|
Se(null);
|
|
7094
7187
|
return;
|
|
7095
7188
|
}
|
|
7096
7189
|
Se({
|
|
7097
7190
|
colInd: S,
|
|
7098
|
-
rowInd:
|
|
7191
|
+
rowInd: T
|
|
7099
7192
|
});
|
|
7100
7193
|
})() : Se(null), p.kind === "group-header" ? (() => {
|
|
7101
7194
|
if (typeof p.group != "string") {
|
|
@@ -7109,7 +7202,7 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7109
7202
|
};
|
|
7110
7203
|
})() : Ut.current = null, p.kind === "header" ? (() => {
|
|
7111
7204
|
var D, z;
|
|
7112
|
-
const S = p.location[0],
|
|
7205
|
+
const S = p.location[0], T = p.location[1], I = V[S];
|
|
7113
7206
|
if (!I || !(I != null && I.renderHeaderCell)) {
|
|
7114
7207
|
$t.current = null;
|
|
7115
7208
|
return;
|
|
@@ -7119,38 +7212,38 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7119
7212
|
x: p.localEventX,
|
|
7120
7213
|
y: p.localEventY
|
|
7121
7214
|
}, (z = (D = At.current) == null ? void 0 : D.updateCells) == null || z.call(D, [{
|
|
7122
|
-
cell: [S,
|
|
7215
|
+
cell: [S, T]
|
|
7123
7216
|
}]);
|
|
7124
7217
|
})() : $t.current = null, $t.current = null, Ut.current = null;
|
|
7125
|
-
}, [V, pe, t, Se]),
|
|
7218
|
+
}, [V, pe, t, Se]), ir = {
|
|
7126
7219
|
dataEditorRef: At,
|
|
7127
7220
|
rowCount: t.length,
|
|
7128
7221
|
columnCount: V.length,
|
|
7129
7222
|
headerAndGroupHeaderRowsCount: 1 + (Nt.groupHeaderHeight ?? []).length
|
|
7130
7223
|
/* 1 - это сам header */
|
|
7131
7224
|
};
|
|
7132
|
-
vl(
|
|
7133
|
-
const
|
|
7225
|
+
vl(ir), Cl(ir);
|
|
7226
|
+
const En = R(() => u ? (b, S) => {
|
|
7134
7227
|
var D, z;
|
|
7135
|
-
const
|
|
7136
|
-
typeof
|
|
7137
|
-
} : void 0, [V, u]),
|
|
7228
|
+
const T = (D = V[b]) == null ? void 0 : D.id, I = (z = V[S]) == null ? void 0 : z.id;
|
|
7229
|
+
typeof T != "string" || typeof I != "string" || u(T, I);
|
|
7230
|
+
} : void 0, [V, u]), Tn = R(() => {
|
|
7138
7231
|
if (h)
|
|
7139
|
-
return (p,
|
|
7232
|
+
return (p, b) => {
|
|
7140
7233
|
var Mt;
|
|
7141
7234
|
const S = h(p);
|
|
7142
7235
|
if (S === "default")
|
|
7143
|
-
return
|
|
7236
|
+
return b();
|
|
7144
7237
|
if ("defaultWithCustomGroupName" in S)
|
|
7145
|
-
return
|
|
7238
|
+
return b(S.defaultWithCustomGroupName);
|
|
7146
7239
|
const {
|
|
7147
7240
|
groupName: I,
|
|
7148
7241
|
rect: D,
|
|
7149
7242
|
ctx: z
|
|
7150
7243
|
} = p;
|
|
7151
7244
|
let _ = S;
|
|
7152
|
-
if (!
|
|
7153
|
-
return
|
|
7245
|
+
if (!Jr(_))
|
|
7246
|
+
return b();
|
|
7154
7247
|
typeof _ == "string" && (_ = /* @__PURE__ */ Dt(_e.Container, { style: {
|
|
7155
7248
|
width: "100%"
|
|
7156
7249
|
}, alignItems: "center", children: /* @__PURE__ */ Dt(_e.Text, { children: _ }) }));
|
|
@@ -7158,34 +7251,34 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7158
7251
|
element: _,
|
|
7159
7252
|
idPrefix: q,
|
|
7160
7253
|
theme: B
|
|
7161
|
-
}), Z = new
|
|
7254
|
+
}), Z = new wt(X, q);
|
|
7162
7255
|
Z.rootNode.style = {
|
|
7163
7256
|
width: D.width,
|
|
7164
7257
|
height: D.height
|
|
7165
|
-
}, Z.setPortalEventTarget((f == null ? void 0 : f.current) ?? null),
|
|
7166
|
-
const J = ((Mt = Ut.current) == null ? void 0 : Mt.id) === q ? Ut.current : void 0, $ = z.canvas.getBoundingClientRect(),
|
|
7258
|
+
}, Z.setPortalEventTarget((f == null ? void 0 : f.current) ?? null), ji.set(q, Z);
|
|
7259
|
+
const J = ((Mt = Ut.current) == null ? void 0 : Mt.id) === q ? Ut.current : void 0, $ = z.canvas.getBoundingClientRect(), Et = {
|
|
7167
7260
|
x: $.left + D.x,
|
|
7168
7261
|
y: $.top + D.y,
|
|
7169
7262
|
width: D.width,
|
|
7170
7263
|
height: D.height
|
|
7171
7264
|
};
|
|
7172
|
-
return Z.render(z, D, J,
|
|
7265
|
+
return Z.render(z, D, J, Et);
|
|
7173
7266
|
};
|
|
7174
|
-
}, [
|
|
7175
|
-
Dn((
|
|
7267
|
+
}, [ji, h, B, f]), Qe = lt == null ? void 0 : lt.row, re = !!Qe, rr = typeof Qe == "object" ? Qe.color : void 0, [Xt, Dn] = st(void 0), In = U((p) => {
|
|
7268
|
+
Dn((b) => b === p ? b : p);
|
|
7176
7269
|
}, []), Hn = R(() => {
|
|
7177
|
-
const p = !!(W != null && W.size),
|
|
7178
|
-
if (!Wt && !p &&
|
|
7270
|
+
const p = !!(W != null && W.size), b = re ? Xt : void 0;
|
|
7271
|
+
if (!Wt && !p && b === void 0)
|
|
7179
7272
|
return;
|
|
7180
|
-
const S =
|
|
7181
|
-
return (
|
|
7273
|
+
const S = rr ?? B.bgRowHovered;
|
|
7274
|
+
return (T) => T > t.length - 1 ? {
|
|
7182
7275
|
bgCell: B.bgHeader
|
|
7183
|
-
} : W != null && W.has(
|
|
7184
|
-
bgCell:
|
|
7185
|
-
} :
|
|
7276
|
+
} : W != null && W.has(T) ? {
|
|
7277
|
+
bgCell: T === b ? B.bgSelectedRowHovered : B.selectionCheckboxBg
|
|
7278
|
+
} : T === b ? {
|
|
7186
7279
|
bgCell: S
|
|
7187
7280
|
} : {};
|
|
7188
|
-
}, [t.length, Wt, B.bgHeader, B.selectionCheckboxBg, B.bgRowHovered, B.bgSelectedRowHovered, W, re, Xt,
|
|
7281
|
+
}, [t.length, Wt, B.bgHeader, B.selectionCheckboxBg, B.bgRowHovered, B.bgSelectedRowHovered, W, re, Xt, rr]), Ln = Xl({
|
|
7189
7282
|
columnsLast: V,
|
|
7190
7283
|
rows: t,
|
|
7191
7284
|
ctxs: s,
|
|
@@ -7194,7 +7287,7 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7194
7287
|
portalEventTargetRef: f,
|
|
7195
7288
|
externalOnItemHovered: g,
|
|
7196
7289
|
onHoverRowChange: re ? In : void 0
|
|
7197
|
-
}, At),
|
|
7290
|
+
}, At), Pn = bl({
|
|
7198
7291
|
cellsSelectionMode: tt,
|
|
7199
7292
|
selection: mt,
|
|
7200
7293
|
baseTheme: B,
|
|
@@ -7204,13 +7297,13 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7204
7297
|
checkboxSelectedRowIndexes: W,
|
|
7205
7298
|
errorCellRanges: dn,
|
|
7206
7299
|
highlightRegionsExternal: ft
|
|
7207
|
-
}), ti =
|
|
7208
|
-
baseRegions:
|
|
7300
|
+
}), ti = xl({
|
|
7301
|
+
baseRegions: Pn,
|
|
7209
7302
|
selectedColumnIndexes: an,
|
|
7210
|
-
headerSelectedRowIndexes:
|
|
7303
|
+
headerSelectedRowIndexes: Ki,
|
|
7211
7304
|
activeRow: cn,
|
|
7212
|
-
activeRange: (
|
|
7213
|
-
selectionRangeStack: (
|
|
7305
|
+
activeRange: (or = mt.current) == null ? void 0 : or.range,
|
|
7306
|
+
selectionRangeStack: (nr = mt.current) == null ? void 0 : nr.rangeStack,
|
|
7214
7307
|
checkboxAvailableRowIndexes: et,
|
|
7215
7308
|
totalRows: t.length + Wt,
|
|
7216
7309
|
firstDataCol: it.leadingServiceColumnsCount,
|
|
@@ -7235,20 +7328,20 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7235
7328
|
...ti ?? []
|
|
7236
7329
|
];
|
|
7237
7330
|
}, [ti, it.leadingServiceColumnsCount, re, Xt, t.length, B.bgServiceRowHovered]), zn = R(() => {
|
|
7238
|
-
if (!(!y && !
|
|
7331
|
+
if (!(!y && !L && !E))
|
|
7239
7332
|
return {
|
|
7240
7333
|
...y,
|
|
7241
|
-
...
|
|
7334
|
+
...L ? {
|
|
7242
7335
|
position: "relative"
|
|
7243
7336
|
} : void 0,
|
|
7244
|
-
...
|
|
7337
|
+
...E ? {
|
|
7245
7338
|
height: "100%",
|
|
7246
7339
|
minHeight: 0
|
|
7247
7340
|
} : void 0
|
|
7248
7341
|
};
|
|
7249
|
-
}, [y,
|
|
7342
|
+
}, [y, L, E]);
|
|
7250
7343
|
return /* @__PURE__ */ Xn("div", { ref: vn, className: A, style: zn, children: [
|
|
7251
|
-
|
|
7344
|
+
Qi ? Me(/* @__PURE__ */ Dt(
|
|
7252
7345
|
Ci,
|
|
7253
7346
|
{
|
|
7254
7347
|
ref: Ze,
|
|
@@ -7257,10 +7350,10 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7257
7350
|
}
|
|
7258
7351
|
), (kt == null ? void 0 : kt.current) ?? document.body) : Me(/* @__PURE__ */ Dt(Ci, { id: "portal", ref: Ze }), document.body),
|
|
7259
7352
|
Me(/* @__PURE__ */ Dt(Ci, { id: "portal2" }), document.body),
|
|
7260
|
-
!
|
|
7353
|
+
!E && /* @__PURE__ */ Dt(
|
|
7261
7354
|
Vl,
|
|
7262
7355
|
{
|
|
7263
|
-
ref:
|
|
7356
|
+
ref: wn,
|
|
7264
7357
|
className: "gdg-table",
|
|
7265
7358
|
portalElementRef: Ze,
|
|
7266
7359
|
theme: B,
|
|
@@ -7269,15 +7362,15 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7269
7362
|
onGroupHeaderClicked: yn,
|
|
7270
7363
|
onMouseMove: An,
|
|
7271
7364
|
drawHeader: pn,
|
|
7272
|
-
drawGroupHeader:
|
|
7273
|
-
getGroupDetails:
|
|
7274
|
-
getCellContent:
|
|
7365
|
+
drawGroupHeader: Tn,
|
|
7366
|
+
getGroupDetails: Fn,
|
|
7367
|
+
getCellContent: we,
|
|
7275
7368
|
columns: V,
|
|
7276
7369
|
rows: t.length + Wt,
|
|
7277
7370
|
freezeTrailingRows: Wt,
|
|
7278
7371
|
freezeColumns: a,
|
|
7279
|
-
minColumnWidth:
|
|
7280
|
-
maxColumnAutoWidth:
|
|
7372
|
+
minColumnWidth: w,
|
|
7373
|
+
maxColumnAutoWidth: x,
|
|
7281
7374
|
maxColumnWidth: m,
|
|
7282
7375
|
columnSelect: "none",
|
|
7283
7376
|
columnSelectionBlending: "exclusive",
|
|
@@ -7286,7 +7379,7 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7286
7379
|
onGridSelectionChange: hn,
|
|
7287
7380
|
onSelectionCleared: un,
|
|
7288
7381
|
width: o ?? "100%",
|
|
7289
|
-
onColumnMoved:
|
|
7382
|
+
onColumnMoved: En,
|
|
7290
7383
|
onColumnResize: C ? Qo : void 0,
|
|
7291
7384
|
customRenderers: Cn,
|
|
7292
7385
|
rowHeight: jo,
|
|
@@ -7297,7 +7390,7 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7297
7390
|
headerHeight: mi,
|
|
7298
7391
|
onCellClicked: fn,
|
|
7299
7392
|
onCellContextMenu: gn,
|
|
7300
|
-
onItemHovered:
|
|
7393
|
+
onItemHovered: Ln,
|
|
7301
7394
|
...Nt,
|
|
7302
7395
|
experimental: Sn,
|
|
7303
7396
|
keybindings: {
|
|
@@ -7308,172 +7401,172 @@ const ih = {}, vi = (r) => Array.isArray(r) ? r.filter((t) => typeof t == "strin
|
|
|
7308
7401
|
onPaste: !1
|
|
7309
7402
|
}
|
|
7310
7403
|
),
|
|
7311
|
-
|
|
7312
|
-
|
|
7404
|
+
L,
|
|
7405
|
+
bn && je && (H == null ? void 0 : H({
|
|
7313
7406
|
containerElement: je,
|
|
7314
|
-
renderInContainer:
|
|
7407
|
+
renderInContainer: xn
|
|
7315
7408
|
}))
|
|
7316
7409
|
] });
|
|
7317
7410
|
};
|
|
7318
7411
|
export {
|
|
7319
|
-
|
|
7412
|
+
mr as $,
|
|
7320
7413
|
fs as A,
|
|
7321
7414
|
cs as B,
|
|
7322
7415
|
_e as C,
|
|
7323
7416
|
Kn as D,
|
|
7324
|
-
|
|
7325
|
-
|
|
7417
|
+
Er as E,
|
|
7418
|
+
Lt as F,
|
|
7326
7419
|
Bt as G,
|
|
7327
7420
|
ks as H,
|
|
7328
|
-
|
|
7421
|
+
Ps as I,
|
|
7329
7422
|
Th as J,
|
|
7330
7423
|
ci as K,
|
|
7331
7424
|
ns as L,
|
|
7332
7425
|
Ms as M,
|
|
7333
7426
|
zs as N,
|
|
7334
|
-
|
|
7427
|
+
Ah as O,
|
|
7335
7428
|
It as P,
|
|
7336
|
-
|
|
7337
|
-
|
|
7429
|
+
Ls as Q,
|
|
7430
|
+
ho as R,
|
|
7338
7431
|
ki as S,
|
|
7339
|
-
|
|
7432
|
+
Wh as T,
|
|
7340
7433
|
Bs as U,
|
|
7341
7434
|
_s as V,
|
|
7342
|
-
|
|
7343
|
-
|
|
7435
|
+
Sh as W,
|
|
7436
|
+
Eh as X,
|
|
7344
7437
|
ge as Y,
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7438
|
+
Fo as Z,
|
|
7439
|
+
yo as _,
|
|
7440
|
+
ph as a,
|
|
7348
7441
|
Wi as a$,
|
|
7349
7442
|
Ne as a0,
|
|
7350
|
-
|
|
7351
|
-
|
|
7443
|
+
Pt as a1,
|
|
7444
|
+
po as a2,
|
|
7352
7445
|
ms as a3,
|
|
7353
|
-
|
|
7446
|
+
mo as a4,
|
|
7354
7447
|
ys as a5,
|
|
7355
7448
|
Oi as a6,
|
|
7356
|
-
|
|
7449
|
+
xh as a7,
|
|
7357
7450
|
Ni as a8,
|
|
7358
|
-
|
|
7451
|
+
Fs as a9,
|
|
7359
7452
|
To as aA,
|
|
7360
7453
|
Vs as aB,
|
|
7361
7454
|
js as aC,
|
|
7362
|
-
|
|
7363
|
-
|
|
7455
|
+
Dh as aD,
|
|
7456
|
+
_r as aE,
|
|
7364
7457
|
ha as aF,
|
|
7365
7458
|
va as aG,
|
|
7366
7459
|
uc as aH,
|
|
7367
7460
|
ya as aI,
|
|
7368
7461
|
Qa as aJ,
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7462
|
+
zo as aK,
|
|
7463
|
+
bc as aL,
|
|
7464
|
+
xc as aM,
|
|
7465
|
+
Fc as aN,
|
|
7373
7466
|
ze as aO,
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7467
|
+
Bh as aP,
|
|
7468
|
+
No as aQ,
|
|
7469
|
+
wc as aR,
|
|
7470
|
+
Ec as aS,
|
|
7378
7471
|
Bc as aT,
|
|
7379
7472
|
Dc as aU,
|
|
7380
|
-
|
|
7473
|
+
Tc as aV,
|
|
7381
7474
|
Sc as aW,
|
|
7382
7475
|
Ac as aX,
|
|
7383
|
-
|
|
7476
|
+
Ro as aY,
|
|
7384
7477
|
kc as aZ,
|
|
7385
7478
|
zc as a_,
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7479
|
+
bs as aa,
|
|
7480
|
+
yr as ab,
|
|
7481
|
+
ws as ac,
|
|
7482
|
+
xs as ad,
|
|
7390
7483
|
Ce as ae,
|
|
7391
7484
|
bo as af,
|
|
7392
|
-
|
|
7485
|
+
vo as ag,
|
|
7393
7486
|
ot as ah,
|
|
7394
7487
|
Ri as ai,
|
|
7395
7488
|
ps as aj,
|
|
7396
|
-
|
|
7397
|
-
|
|
7489
|
+
So as ak,
|
|
7490
|
+
Ao as al,
|
|
7398
7491
|
wh as am,
|
|
7399
7492
|
Rs as an,
|
|
7400
7493
|
Os as ao,
|
|
7401
7494
|
$s as ap,
|
|
7402
7495
|
vt as aq,
|
|
7403
|
-
|
|
7496
|
+
Io as ar,
|
|
7404
7497
|
Us as as,
|
|
7405
7498
|
wo as at,
|
|
7406
|
-
|
|
7499
|
+
xo as au,
|
|
7407
7500
|
Ss as av,
|
|
7408
|
-
|
|
7501
|
+
Eo as aw,
|
|
7409
7502
|
Ds as ax,
|
|
7410
7503
|
br as ay,
|
|
7411
|
-
|
|
7504
|
+
Ts as az,
|
|
7412
7505
|
_i as b,
|
|
7413
|
-
|
|
7506
|
+
wt as b0,
|
|
7414
7507
|
de as b1,
|
|
7415
7508
|
yc as b2,
|
|
7416
7509
|
ai as b3,
|
|
7417
|
-
|
|
7418
|
-
|
|
7510
|
+
Pc as b4,
|
|
7511
|
+
ko as b5,
|
|
7419
7512
|
Qt as b6,
|
|
7420
|
-
|
|
7513
|
+
Do as b7,
|
|
7421
7514
|
Hs as b8,
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7515
|
+
Sr as b9,
|
|
7516
|
+
xl as bA,
|
|
7517
|
+
wl as bB,
|
|
7425
7518
|
Sl as bC,
|
|
7426
7519
|
Dl as bD,
|
|
7427
7520
|
qo as bE,
|
|
7428
7521
|
mi as bF,
|
|
7429
|
-
|
|
7522
|
+
vh as bG,
|
|
7430
7523
|
qn as bH,
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7524
|
+
Oh as bI,
|
|
7525
|
+
Rh as bJ,
|
|
7526
|
+
Uo as bK,
|
|
7434
7527
|
ml as bL,
|
|
7435
7528
|
Wl as bM,
|
|
7436
7529
|
fe as ba,
|
|
7437
7530
|
Ic as bb,
|
|
7438
|
-
|
|
7531
|
+
Ar as bc,
|
|
7439
7532
|
Hc as bd,
|
|
7440
7533
|
Ii as be,
|
|
7441
|
-
|
|
7534
|
+
zh as bf,
|
|
7442
7535
|
Re as bg,
|
|
7443
|
-
|
|
7444
|
-
|
|
7536
|
+
_h as bh,
|
|
7537
|
+
Hh as bi,
|
|
7445
7538
|
Ht as bj,
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7539
|
+
Ih as bk,
|
|
7540
|
+
Kr as bl,
|
|
7541
|
+
bt as bm,
|
|
7449
7542
|
Mc as bn,
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7543
|
+
$o as bo,
|
|
7544
|
+
Go as bp,
|
|
7545
|
+
Mh as bq,
|
|
7453
7546
|
Cl as br,
|
|
7454
7547
|
vl as bs,
|
|
7455
7548
|
fl as bt,
|
|
7456
7549
|
dl as bu,
|
|
7457
7550
|
gl as bv,
|
|
7458
|
-
|
|
7551
|
+
kh as bw,
|
|
7459
7552
|
Bi as bx,
|
|
7460
|
-
|
|
7461
|
-
|
|
7553
|
+
Yo as by,
|
|
7554
|
+
bl as bz,
|
|
7462
7555
|
he as c,
|
|
7463
7556
|
Gi as d,
|
|
7464
|
-
|
|
7557
|
+
Xo as e,
|
|
7465
7558
|
pl as f,
|
|
7466
|
-
|
|
7559
|
+
Lh as g,
|
|
7467
7560
|
yi as h,
|
|
7468
|
-
|
|
7469
|
-
|
|
7561
|
+
Jr as i,
|
|
7562
|
+
Nh as j,
|
|
7470
7563
|
oi as k,
|
|
7471
7564
|
is as l,
|
|
7472
|
-
|
|
7565
|
+
mh as m,
|
|
7473
7566
|
os as n,
|
|
7474
|
-
|
|
7567
|
+
yh as o,
|
|
7475
7568
|
yt as p,
|
|
7476
|
-
|
|
7569
|
+
Co as q,
|
|
7477
7570
|
rs as r,
|
|
7478
7571
|
Ph as s,
|
|
7479
7572
|
St as t,
|
|
@@ -7482,5 +7575,5 @@ export {
|
|
|
7482
7575
|
bh as w,
|
|
7483
7576
|
Mi as x,
|
|
7484
7577
|
gs as y,
|
|
7485
|
-
|
|
7578
|
+
Fh as z
|
|
7486
7579
|
};
|