@sme.up/ketchup2 2.9.0 → 2.11.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/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button/button-types.d.ts +2 -2
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +15 -6
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +10 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +13 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
- package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text-types.d.ts +3 -1
- package/dist/basic-components/text/text-types.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +49 -4
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +160 -16
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +206 -38
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
- package/dist/components/data-table/footer/footer-types.d.ts +23 -6
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +37 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +15 -8
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
- package/dist/context/interaction-context.d.ts +16 -0
- package/dist/context/interaction-context.d.ts.map +1 -0
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/badge/badge-assets.d.ts +1 -0
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +5 -0
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +50 -1
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +14 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25778 -68770
- package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +40 -4
- package/dist/locale/it/translation.json.d.ts +40 -4
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +16 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +40 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/floating-layer.d.ts +11 -0
- package/dist/utils/floating-layer.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts +7 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +20 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +7 -5
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-CuEby436.js +0 -5
- package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
- package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
- package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
- package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
- package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts/echarts-graph.d.ts +0 -4
- package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
- package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
- /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-actions-utils.test.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/cell-actions/cell-actions-utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-actions.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/cell-actions/cell-actions.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAGvD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAoBlD,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
/** Tabs of the column menu. */
|
|
3
|
+
export type ColumnMenuTab = "actions" | "extraColumns" | "formulas";
|
|
4
|
+
/** Quick action listed in the first tab. */
|
|
5
|
+
export interface ColumnMenuAction {
|
|
6
|
+
/** Stable value identifying the action */
|
|
7
|
+
value: string;
|
|
8
|
+
/** Visible label */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Material icon name */
|
|
11
|
+
icon?: string;
|
|
12
|
+
onSelect: () => void;
|
|
13
|
+
}
|
|
14
|
+
export interface ColumnMenuProps {
|
|
15
|
+
/** Column title, shown at the top of the panel */
|
|
16
|
+
title: string;
|
|
17
|
+
/** Quick actions of the first tab */
|
|
18
|
+
actions?: ColumnMenuAction[];
|
|
19
|
+
/** Content appended under the quick actions (consumer provided) */
|
|
20
|
+
actionsContent?: React.ReactNode;
|
|
21
|
+
/** Content of the extra columns tab */
|
|
22
|
+
extraColumns?: React.ReactNode;
|
|
23
|
+
/** Content of the formulas tab */
|
|
24
|
+
formulas?: React.ReactNode;
|
|
25
|
+
/** Confirms the selections of the panel */
|
|
26
|
+
onApply?: () => void;
|
|
27
|
+
/** Closes the panel without applying */
|
|
28
|
+
onCancel?: () => void;
|
|
29
|
+
/** Panel element, positioned by `useFloating` */
|
|
30
|
+
targetRef?: React.Ref<HTMLDivElement>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=column-menu-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-menu-types.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/column-menu/column-menu-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,cAAc,GAAG,UAAU,CAAA;AAEnE,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,qCAAqC;IACrC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAChC,uCAAuC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC9B,kCAAkC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iDAAiD;IACjD,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;CACtC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColumnMenuProps } from './column-menu-types';
|
|
3
|
+
/**
|
|
4
|
+
* Single panel for the column commands, opened by the three dots of the header
|
|
5
|
+
* or by the right click on the column (title or filter).
|
|
6
|
+
*
|
|
7
|
+
* The tabs share the panel, so the column keeps a single entry point instead of
|
|
8
|
+
* one floating layer per command group.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ColumnMenu: React.FC<ColumnMenuProps>;
|
|
11
|
+
//# sourceMappingURL=column-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-menu.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/column-menu/column-menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAe9B,OAAO,KAAK,EAAE,eAAe,EAAiB,MAAM,qBAAqB,CAAA;AAQzE;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoGhD,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { DataColumn } from '../../../types/data-structures';
|
|
2
3
|
import { InternalDataTable } from '../data-table-types';
|
|
3
4
|
/**
|
|
@@ -7,10 +8,18 @@ import { InternalDataTable } from '../data-table-types';
|
|
|
7
8
|
*/
|
|
8
9
|
export declare function getVisibleColumns(columns: string): string[];
|
|
9
10
|
/**
|
|
10
|
-
* Sets
|
|
11
|
+
* Sets the columns order and visibility from the visibleColumns array:
|
|
12
|
+
* columns are rendered in the given order, the missing ones are hidden.
|
|
11
13
|
* @param data The input DataTable
|
|
12
|
-
* @param visibleColumns The array of visible columns
|
|
14
|
+
* @param visibleColumns The array of visible columns, in render order
|
|
13
15
|
* @returns A new DataTable with updated columns
|
|
14
16
|
*/
|
|
15
17
|
export declare function setColumnsVisibility(data: InternalDataTable, visibleColumns: string[]): DataColumn[];
|
|
18
|
+
/**
|
|
19
|
+
* Width style of a DataTable cell. A forced width (ColsWidth, resize, fixed
|
|
20
|
+
* modes) pins the column, `max-width` included, since in the auto table layout
|
|
21
|
+
* a cell's content would otherwise widen it. A content-sized column only gets
|
|
22
|
+
* the widest width seen so far as a floor.
|
|
23
|
+
*/
|
|
24
|
+
export declare const getColumnWidthStyle: (width: number | undefined, isAuto?: boolean) => React.CSSProperties;
|
|
16
25
|
//# sourceMappingURL=columns-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columns-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/columns/columns-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,YAEhD;AAED
|
|
1
|
+
{"version":3,"file":"columns-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/columns/columns-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,YAEhD;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,iBAAiB,EACvB,cAAc,EAAE,MAAM,EAAE,GACvB,UAAU,EAAE,CAWd;AAED;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,GAAG,SAAS,EACzB,gBAAc,KACb,KAAK,CAAC,aAK0C,CAAA"}
|
|
@@ -10,6 +10,29 @@ interface UseColumnWidthsProps {
|
|
|
10
10
|
*/
|
|
11
11
|
colsWidth?: string;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Reads the width every column needs, in fit-content mode, where the table
|
|
15
|
+
* uses the native auto layout and the header cell width is the column width.
|
|
16
|
+
*
|
|
17
|
+
* The header width alone is not enough: a row is one line high, so the items
|
|
18
|
+
* of a wrapping cell (chips) land on lines that are never shown, and if the
|
|
19
|
+
* column is too narrow even the first line is cut. Such a column must fit its
|
|
20
|
+
* items on a single line instead. An image cell instead is sized by the row
|
|
21
|
+
* height it fills, at the image aspect ratio.
|
|
22
|
+
*/
|
|
23
|
+
export declare const readColumnWidths: (root: HTMLElement) => Record<string, number>;
|
|
24
|
+
/**
|
|
25
|
+
* Column widths of the DataTable.
|
|
26
|
+
*
|
|
27
|
+
* - `fixed` / `fit-grid`: computed widths, forced on every cell.
|
|
28
|
+
* - `fit-content`: the browser sizes the columns from the rendered cells (native
|
|
29
|
+
* `<table>` auto layout, as Perspective's regular-table does). The widest
|
|
30
|
+
* width seen per column is remembered and used as a `min-width` floor, so a
|
|
31
|
+
* column does not shrink when its widest cell scrolls out of the window.
|
|
32
|
+
*
|
|
33
|
+
* `ColsWidth` and user resizes always force the width of their columns.
|
|
34
|
+
* The third tuple item lists the columns sized by their content.
|
|
35
|
+
*/
|
|
36
|
+
export declare const useColumnWidths: ({ columns, rows, containerRef, sizingMode, colsWidth, }: UseColumnWidthsProps) => [Record<string, number>, React.Dispatch<React.SetStateAction<Record<string, number>>>, ReadonlySet<string>];
|
|
14
37
|
export {};
|
|
15
38
|
//# sourceMappingURL=useColumnWidths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnWidths.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/columns/useColumnWidths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useColumnWidths.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/columns/useColumnWidths.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAEpE,UAAU,oBAAoB;IAC5B,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACjD,UAAU,EAAE,OAAO,GAAG,UAAU,GAAG,aAAa,CAAA;IAChD;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAmFD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,WAAW,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CA8BzE,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,yDAM7B,oBAAoB,KAAG,CACxB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAC5D,WAAW,CAAC,MAAM,CAAC,CAuKpB,CAAA"}
|
|
@@ -11,14 +11,63 @@ export type DataTableCellClickPayload = {
|
|
|
11
11
|
column?: DataColumn;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* Payload of a row drop on a data table.
|
|
15
|
+
* `row`, `column` and `cell` are omitted when the drop happens outside a cell
|
|
16
|
+
* (empty table, header, group row).
|
|
17
|
+
*/
|
|
18
|
+
export type DataTableDropTarget = {
|
|
19
|
+
row?: DataRow;
|
|
20
|
+
column?: DataColumn;
|
|
21
|
+
cell?: DataCell;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* MIME marking a drag started from a data table row, so a table only accepts
|
|
25
|
+
* drags coming from another table.
|
|
26
|
+
*/
|
|
27
|
+
export declare const DATA_TABLE_ROW_DRAG_MIME = "application/x-smp-datarow";
|
|
28
|
+
/** Whether the given drag comes from a data table row. */
|
|
29
|
+
export declare const isDataRowDrag: (event: React.DragEvent) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Row (cell) density of the data table.
|
|
32
|
+
* `Dense` maps to the small row token, `Medium` to the base one, `Wide` to the large one.
|
|
16
33
|
*/
|
|
17
|
-
export
|
|
34
|
+
export type DataTableDensity = "Dense" | "Medium" | "Wide";
|
|
35
|
+
/**
|
|
36
|
+
* @description Slice of the props whose value is persisted by the framework
|
|
37
|
+
* between unmounts and restored on remount. This slice *is* the
|
|
38
|
+
* `DataTableState` shape: a prop added here automatically joins the persisted
|
|
39
|
+
* state, and `createState` (single writer of `DataTableState`) stops compiling
|
|
40
|
+
* until it produces the new field, so the state cannot drift from the props.
|
|
41
|
+
*/
|
|
42
|
+
export interface DataTableStateProps {
|
|
18
43
|
/**
|
|
19
|
-
* This
|
|
44
|
+
* @description Optional grouping configuration for the table rows. This prop should be following COL_1,H|COL_2 syntax: that means to group by COL_1 and COL_2 columns but to hide COL_1. Any other character than 'H' will be interpreted as 'visible'.
|
|
45
|
+
* Grouped columns are the first sort criteria, from the outermost group to the innermost one and ascending by default: the groups order themselves, then the column sorting applies inside them.
|
|
20
46
|
*/
|
|
21
|
-
readonly
|
|
47
|
+
readonly DftGroup?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @description Determines what groups of a table are expanded. If a group does not appear, it means it is collapsed. A value 'undefined' will be interpreted as all expanded.
|
|
50
|
+
*/
|
|
51
|
+
readonly expandedGroups?: Set<string>;
|
|
52
|
+
/**
|
|
53
|
+
* @description Optional, it defines the default sorting of the table.
|
|
54
|
+
* Format: "COL1,D|COL2|COL3,A" where D=descending, A=ascending (default).
|
|
55
|
+
* Multiple criteria are applied in the given order: the first has priority.
|
|
56
|
+
*/
|
|
57
|
+
readonly DftSort?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @description Optional, it defines the totals of the table.
|
|
60
|
+
* `*ALL` applies the function to every compatible column.
|
|
61
|
+
* @pattern `Funzione(Campo)|Funzione(Campo)|..`
|
|
62
|
+
*/
|
|
63
|
+
readonly DftTotal?: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @description Slice of the props describing what the table renders: the Smeup
|
|
67
|
+
* datatable itself and the data surrounding it (toolbar buttons, incremental
|
|
68
|
+
* loading, extra columns selection).
|
|
69
|
+
*/
|
|
70
|
+
export interface DataTableDataProps {
|
|
22
71
|
/**
|
|
23
72
|
* @description The data to be displayed in the table.
|
|
24
73
|
*/
|
|
@@ -29,13 +78,55 @@ export interface DataTableProps {
|
|
|
29
78
|
*/
|
|
30
79
|
readonly buttons?: DataNode[];
|
|
31
80
|
/**
|
|
32
|
-
* @description
|
|
81
|
+
* @description Commands shown as cell actions: a three-dots button revealed
|
|
82
|
+
* on cell hover. A command without object and value applies to every cell,
|
|
83
|
+
* one with a `t`/`p` object to the cells of that class, one with a value only
|
|
84
|
+
* to the cells of that class and value. The commands are expected to be
|
|
85
|
+
* already filtered by the component user.
|
|
86
|
+
*/
|
|
87
|
+
readonly cellActions?: DataNode[];
|
|
88
|
+
/**
|
|
89
|
+
* @description True when the data source holds records that are not loaded
|
|
90
|
+
* yet.
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
readonly hasMore?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @description Disables the load buttons while a fetch is in progress.
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
readonly loadingMore?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* @description Persisted extra columns selection per source column.
|
|
101
|
+
* Allows webup.js to control which nodes are checked in the TreePicker,
|
|
102
|
+
* surviving re-mounts of the DataTableComponent.
|
|
103
|
+
*/
|
|
104
|
+
readonly extraColumnsSelection?: Record<string, DataNode[]>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @description Slice of the props configuring the table: rendering and layout
|
|
108
|
+
* options, feature toggles, selection/dragging controls and component
|
|
109
|
+
* plumbing. Legacy Smeup/AS400 props keep their CapitalizedCamelCase names.
|
|
110
|
+
*/
|
|
111
|
+
export interface DataTableSetupProps {
|
|
112
|
+
/**
|
|
113
|
+
* This ref object is used to call methods on component exposed using useImperativeHandle.
|
|
114
|
+
*/
|
|
115
|
+
readonly imperativeHandle?: React.RefObject<DataTableImperativeHandle>;
|
|
116
|
+
/**
|
|
117
|
+
* @description The list of the initial visible columns, in render order
|
|
33
118
|
*/
|
|
34
119
|
readonly Columns?: string;
|
|
35
120
|
/**
|
|
36
|
-
* @description The height of each line in the table.
|
|
121
|
+
* @description The height of each line in the table. Ignored when `Density` is set.
|
|
122
|
+
*/
|
|
123
|
+
readonly lineHeight?: number;
|
|
124
|
+
/**
|
|
125
|
+
* @description Row (cell) density, driven by the data table row height tokens. It sizes both the rendered rows and the virtualization item height.
|
|
126
|
+
* Values are matched case-insensitively, so the AS400 payload (`dense`) works too.
|
|
127
|
+
* @default "Medium"
|
|
37
128
|
*/
|
|
38
|
-
readonly
|
|
129
|
+
readonly Density?: DataTableDensity;
|
|
39
130
|
/**
|
|
40
131
|
* @description The total height of the table. Plain numbers are treated as px
|
|
41
132
|
*/
|
|
@@ -44,16 +135,11 @@ export interface DataTableProps {
|
|
|
44
135
|
* @description The symbol of decimal separator from AS400
|
|
45
136
|
*/
|
|
46
137
|
readonly decimalSeparator?: string;
|
|
47
|
-
/**
|
|
48
|
-
* @description Optional grouping configuration for the table rows. This prop should be following COL_1,H|COL_2 syntax: that means to group by COL_1 and COL_2 columns but to hide COL_1. Any other character than 'H' will be interpreted as 'visible'.
|
|
49
|
-
*/
|
|
50
|
-
readonly DftGroup?: string;
|
|
51
|
-
/**
|
|
52
|
-
* @description Determines what groups of a table are expanded. If a group does not appear, it means it is collapsed. A value 'undefined' will be interpreted as all collapsed.
|
|
53
|
-
*/
|
|
54
|
-
readonly expandedGroups?: Set<string>;
|
|
55
138
|
/**
|
|
56
139
|
* @description The column sizing mode. It can be "fixed", "fit-grid" or "fit-content".
|
|
140
|
+
* With "fit-content" the browser sizes each column from the rendered cells
|
|
141
|
+
* (native table layout); a column keeps the widest width it reached while
|
|
142
|
+
* scrolling. ColsWidth and user resizes force the width of their columns.
|
|
57
143
|
*/
|
|
58
144
|
readonly columnSizingMode?: ColumnSizingMode;
|
|
59
145
|
/**
|
|
@@ -88,22 +174,12 @@ export interface DataTableProps {
|
|
|
88
174
|
* @description Optional when true, it enables the data-table multiselection
|
|
89
175
|
*/
|
|
90
176
|
readonly MultiSelect?: YesNo;
|
|
91
|
-
/**
|
|
92
|
-
* @description Optional, it defines the totals of the table.
|
|
93
|
-
* @pattern `Funzione(Campo)|Funzione(Campo)|..`
|
|
94
|
-
*/
|
|
95
|
-
readonly DftTotal?: string;
|
|
96
177
|
/**
|
|
97
178
|
* @description Enables or disables the display of totals in the footer and group rows.
|
|
98
179
|
* When "No", the totals row is hidden even if DftTotal is provided.
|
|
99
180
|
* @default "Yes"
|
|
100
181
|
*/
|
|
101
182
|
readonly ShowTotals?: YesNo;
|
|
102
|
-
/**
|
|
103
|
-
* @description Optional, it defines the default sorting of the table.
|
|
104
|
-
* Format: "COL1,D|COL2|COL3,A" where D=descending, A=ascending (default).
|
|
105
|
-
*/
|
|
106
|
-
readonly DftSort?: string;
|
|
107
183
|
/**
|
|
108
184
|
* @description Enables or disables column sorting via header click.
|
|
109
185
|
*/
|
|
@@ -113,6 +189,54 @@ export interface DataTableProps {
|
|
|
113
189
|
* @default "No"
|
|
114
190
|
*/
|
|
115
191
|
readonly AltRowCol?: YesNo;
|
|
192
|
+
/**
|
|
193
|
+
* @description Fixes the given number of columns to the **left**
|
|
194
|
+
* @default "0"
|
|
195
|
+
*/
|
|
196
|
+
readonly FixedLCol?: string;
|
|
197
|
+
/**
|
|
198
|
+
* @description Fixes the given number of columns to the **right**
|
|
199
|
+
* @default "0"
|
|
200
|
+
*/
|
|
201
|
+
readonly FixedRCol?: string;
|
|
202
|
+
/**
|
|
203
|
+
* @description Fixes the given number of rows to the **top**
|
|
204
|
+
* @default "0"
|
|
205
|
+
*/
|
|
206
|
+
readonly FixedTRow?: string;
|
|
207
|
+
/**
|
|
208
|
+
* @description 1-based index of the row to highlight and center in the
|
|
209
|
+
* viewport when the table renders; near the end of the data it scrolls as
|
|
210
|
+
* far as the rows allow. Providing it (or `onSelectedRowChange`) enables
|
|
211
|
+
* the single row selection: clicking a row highlights it.
|
|
212
|
+
* The index refers to the rows as they are rendered (after sorting,
|
|
213
|
+
* filtering and grouping), the same space used by `MultiSelect`.
|
|
214
|
+
*/
|
|
215
|
+
readonly SelectRow?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Enables row dragging with the native HTML5 drag and drop.
|
|
218
|
+
* @default "No"
|
|
219
|
+
*/
|
|
220
|
+
readonly Drag?: YesNo;
|
|
221
|
+
/**
|
|
222
|
+
* Content to render in the header context menu floating panel, keyed by column name.
|
|
223
|
+
* Opens on right-click or Shift+F11 on a column header.
|
|
224
|
+
*/
|
|
225
|
+
contextMenuContent?: (columnName: string) => React.ReactNode;
|
|
226
|
+
/**
|
|
227
|
+
* @description Enables the extra columns feature (add columns button in header menu).
|
|
228
|
+
* @default true
|
|
229
|
+
*/
|
|
230
|
+
readonly enableExtraColumns?: boolean;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* @description Slice of the event callbacks emitted by the data table.
|
|
234
|
+
*/
|
|
235
|
+
export interface DataTableCallbacks {
|
|
236
|
+
/** Called when the user clicks the "load more" button. */
|
|
237
|
+
readonly onLoadMore?: () => void;
|
|
238
|
+
/** Called when the user clicks the "load all" button. The button is hidden when omitted. */
|
|
239
|
+
readonly onLoadAll?: () => void;
|
|
116
240
|
/**
|
|
117
241
|
*
|
|
118
242
|
* @param row The clicked row
|
|
@@ -133,19 +257,33 @@ export interface DataTableProps {
|
|
|
133
257
|
*/
|
|
134
258
|
onMultiSelectionChange?: (selectedRows: DataRow[]) => void;
|
|
135
259
|
/**
|
|
136
|
-
*
|
|
260
|
+
* Called when the user clicks a row, with the row and its rendered index.
|
|
261
|
+
* @param row The clicked row
|
|
262
|
+
* @param index The index of the row as rendered
|
|
137
263
|
*/
|
|
138
|
-
|
|
264
|
+
onSelectedRowChange?: (row: DataRow, index: number) => void;
|
|
139
265
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
266
|
+
* Called by the column menu when the user asks for the totals matrix of a
|
|
267
|
+
* grouping column: building the matrix belongs to the component user.
|
|
268
|
+
* The action is offered only on grouped columns, when the table has totals.
|
|
269
|
+
* @param columnName The grouping column the matrix is built on
|
|
142
270
|
*/
|
|
143
|
-
|
|
271
|
+
readonly onTotalsMatrix?: (columnName: string) => void;
|
|
144
272
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
273
|
+
* Called when a row drag starts, with the rows being dragged: the whole
|
|
274
|
+
* selection when the dragged row is part of it, otherwise just that row.
|
|
147
275
|
*/
|
|
148
|
-
|
|
276
|
+
onRowDragStart?: (rows: DataRow[]) => void;
|
|
277
|
+
/**
|
|
278
|
+
* Called when rows are dropped on the table. Providing it enables the drop.
|
|
279
|
+
* The dragged rows are not part of the payload: the transport between the
|
|
280
|
+
* source and the target belongs to the component user.
|
|
281
|
+
*/
|
|
282
|
+
onRowDrop?: (target: DataTableDropTarget) => void;
|
|
283
|
+
/**
|
|
284
|
+
* onContextMenu function on appbar components
|
|
285
|
+
*/
|
|
286
|
+
onContextMenu?: onContextMenuType;
|
|
149
287
|
/**
|
|
150
288
|
* @description Callback to load the extra columns tree (first level, expand, or search).
|
|
151
289
|
* webup.js provides this; in ketchup2 standalone it can be mocked.
|
|
@@ -174,15 +312,32 @@ export interface DataTableProps {
|
|
|
174
312
|
*/
|
|
175
313
|
onStateChange?: (state: DataTableState) => void;
|
|
176
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @interface DataTableProps
|
|
317
|
+
* @description Defines the props for the DataTable component.
|
|
318
|
+
* Composed from the persisted state, data, setup and callback slices: the
|
|
319
|
+
* composition is type-level only, the shape passed to the component stays flat
|
|
320
|
+
* and the Smeup-facing prop names are unchanged.
|
|
321
|
+
*/
|
|
322
|
+
export interface DataTableProps extends DataTableStateProps, DataTableDataProps, DataTableSetupProps, DataTableCallbacks {
|
|
323
|
+
}
|
|
177
324
|
/**
|
|
178
325
|
* Contains the informations to be persisted between component unmounts. A state should reflect component changes that occurred after rendering the component to allow framework to store them, and possibly, to restore them.
|
|
326
|
+
* It coincides with the `DataTableStateProps` slice: a prop introduced in that
|
|
327
|
+
* slice automatically becomes part of the persisted state.
|
|
179
328
|
*/
|
|
180
|
-
export type DataTableState =
|
|
329
|
+
export type DataTableState = DataTableStateProps;
|
|
181
330
|
/**
|
|
182
331
|
* An object that component user passes to allow calling imperative methods on: this can be thought as a component that exposes some APIs with this interface.
|
|
183
332
|
*/
|
|
184
333
|
export interface DataTableImperativeHandle {
|
|
185
334
|
setState: (state: DataTableState) => void;
|
|
335
|
+
/** Expands every group row. */
|
|
336
|
+
expandAll: () => void;
|
|
337
|
+
/** Collapses every group row. */
|
|
338
|
+
collapseAll: () => void;
|
|
339
|
+
/** Expands (positive modifier) or collapses (negative modifier) the groups one nesting level. */
|
|
340
|
+
setGroupExpansionByDepth: (modifier: number) => void;
|
|
186
341
|
}
|
|
187
342
|
/**
|
|
188
343
|
* @interface InternalDataTable
|
|
@@ -196,13 +351,13 @@ export interface InternalDataTable {
|
|
|
196
351
|
/**
|
|
197
352
|
* @description The rows of the data table, adapted for internal processing.
|
|
198
353
|
*/
|
|
199
|
-
rows:
|
|
354
|
+
rows: InternalRows[];
|
|
200
355
|
}
|
|
201
356
|
/**
|
|
202
357
|
* @interface internalRows
|
|
203
358
|
* @description Defines the structure of a row within the internal data table representation.
|
|
204
359
|
*/
|
|
205
|
-
export interface
|
|
360
|
+
export interface InternalRows {
|
|
206
361
|
/**
|
|
207
362
|
* @description An optional unique identifier for the row.
|
|
208
363
|
*/
|
|
@@ -231,10 +386,15 @@ export interface internalRows {
|
|
|
231
386
|
* @description The expanded or collapsed state of the group.
|
|
232
387
|
*/
|
|
233
388
|
isExpanded?: boolean;
|
|
389
|
+
/**
|
|
390
|
+
* @description Indicates whether this internal row is the full-width row
|
|
391
|
+
* holding the load more / load all buttons.
|
|
392
|
+
*/
|
|
393
|
+
isLoader?: boolean;
|
|
234
394
|
/**
|
|
235
395
|
* @description The child rows for expandable/collapsible groups.
|
|
236
396
|
*/
|
|
237
|
-
children?:
|
|
397
|
+
children?: InternalRows[];
|
|
238
398
|
/**
|
|
239
399
|
* @description The original data rows associated with this internal row, particularly for groups.
|
|
240
400
|
*/
|
|
@@ -242,6 +402,14 @@ export interface internalRows {
|
|
|
242
402
|
}
|
|
243
403
|
type ColumnSizingMode = "fixed" | "fit-grid" | "fit-content";
|
|
244
404
|
export declare const DATA_TABLE_DEFAULT_HEIGHT = "400px";
|
|
405
|
+
/**
|
|
406
|
+
* Row heights in px, one per data table density.
|
|
407
|
+
* Virtualization needs numbers while tokens are CSS only: this matrix mirrors
|
|
408
|
+
* `--smp-datatable-rowHeight*` in `src/styles/alias.css`.
|
|
409
|
+
*/
|
|
410
|
+
export declare const DATATABLE_ROW_HEIGHT: Record<DataTableDensity, number>;
|
|
411
|
+
/** Normalizes an incoming density value (AS400 sends it lowercase). */
|
|
412
|
+
export declare const toDataTableDensity: (value?: string) => DataTableDensity | undefined;
|
|
245
413
|
/**
|
|
246
414
|
* Sort direction mode.
|
|
247
415
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-types.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACT,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AAErG;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"data-table-types.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table-types.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACT,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,2DAA2D,CAAA;AAErG;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,MAAM,CAAC,EAAE,UAAU,CAAA;CACpB,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB,8BAA8B,CAAA;AAEnE,0DAA0D;AAC1D,eAAO,MAAM,aAAa,GAAI,OAAO,KAAK,CAAC,SAAS,KAAG,OACiB,CAAA;AAExE;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE1D;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAErC;;;;OAIG;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BAAgB,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAA;AAE5D,eAAO,MAAM,yBAAyB,UAAU,CAAA;AAEhD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAIjE,CAAA;AAED,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,MAAM,KACb,gBAAgB,GAAG,SAGnB,CAAA;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,GAAG,GAAG,GAAG,CAAA;AAEhC;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,QAAQ,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AA0B9B,OAAO,EAKL,KAAK,cAAc,EAIpB,MAAM,oBAAoB,CAAA;AAkE3B,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwrCvD,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldOption, FilterGroup, Filter,
|
|
1
|
+
import { FieldOption, FilterGroup, Filter, FilterValue, SingleFilter } from '../../../functional-components/filter-group/filter-builder-types';
|
|
2
2
|
import { DataColumn, DataRow } from '../../../types/data-structures';
|
|
3
3
|
declare const DatesComparation: {
|
|
4
4
|
EQ: {
|
|
@@ -94,14 +94,31 @@ export declare const functionByStringLabel: (label: StringsComparationLabel) =>
|
|
|
94
94
|
* @returns comparison function ((number, number) => boolean); (() => null) if the label is not among those registered.
|
|
95
95
|
*/
|
|
96
96
|
export declare const functionByNumberLabel: (label: NumberComparationLabel) => ((a: number, b: number) => boolean | null);
|
|
97
|
+
/**
|
|
98
|
+
* Name of the synthetic column carrying the generated row actions. It is the
|
|
99
|
+
* only marker of an action column: such a column is not a data column, so it
|
|
100
|
+
* gets no filter, sort, totals nor column menu.
|
|
101
|
+
*/
|
|
102
|
+
export declare const ACTIONS_COLUMN_NAME = "__ACTIONS";
|
|
103
|
+
export declare const isActionColumn: (name: string) => boolean;
|
|
97
104
|
/**
|
|
98
105
|
* Convert columns into FieldOptions ( options )
|
|
99
106
|
*/
|
|
100
|
-
export declare function createFieldOptions(columns: DataColumn[],
|
|
107
|
+
export declare function createFieldOptions(columns: DataColumn[], rows?: DataRow[]): FieldOption[];
|
|
101
108
|
/**
|
|
102
109
|
* Extract all the filters for a specific columns
|
|
103
110
|
*/
|
|
104
111
|
export declare function extractColumnFilters(filters: FilterGroup, columnName: string): FilterGroup;
|
|
112
|
+
/**
|
|
113
|
+
* Returns the first single filter set on a column, if any.
|
|
114
|
+
* Used by the quick filter input in the column header.
|
|
115
|
+
*/
|
|
116
|
+
export declare function getColumnFilter(filters: FilterGroup, columnName: string): SingleFilter | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Sets the value of a single filter, keeping its field, operator and type.
|
|
119
|
+
* An empty value removes the filter.
|
|
120
|
+
*/
|
|
121
|
+
export declare function setColumnFilterValue(filters: FilterGroup, target: SingleFilter, value: FilterValue): FilterGroup;
|
|
105
122
|
/**
|
|
106
123
|
* Update filters for a specific column inside the principal FilterGroup
|
|
107
124
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-filter-utils.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/filtering/data-table-filter-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"data-table-filter-utils.d.ts","sourceRoot":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