@economic/taco 2.21.3 → 2.22.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Report/Report.d.ts +21 -0
- package/dist/components/Report/components/Cell/Cell.d.ts +0 -1
- package/dist/components/Report/components/Cell/DisplayCell.d.ts +1 -1
- package/dist/components/Report/components/Cell/util.d.ts +1 -1
- package/dist/components/Report/components/Row/DisplayRow.d.ts +2 -9
- package/dist/components/Report/components/Toolbar/components/Filters/components/Placeholder.d.ts +5 -5
- package/dist/components/Report/listeners/useTableRowActiveListener.d.ts +3 -0
- package/dist/components/Report/styles/util.d.ts +2 -2
- package/dist/components/Report/types.d.ts +1 -3
- package/dist/components/Report/useReport.d.ts +2 -7
- package/dist/components/Table3/types.d.ts +1 -1
- package/dist/esm/index.css +501 -9
- package/dist/esm/packages/taco/src/components/Card/Card.js +1 -1
- package/dist/esm/packages/taco/src/components/Card/Card.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js +1 -1
- package/dist/esm/packages/taco/src/components/Group/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +37 -7
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/util.js +3 -1
- package/dist/esm/packages/taco/src/components/Input/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Report/Report.js +70 -0
- package/dist/esm/packages/taco/src/components/Report/Report.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js +61 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/Body.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/util.js +22 -0
- package/dist/esm/packages/taco/src/components/Report/components/Body/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js +32 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/Cell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js +23 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/DisplayCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js +58 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/GroupedCell.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js +69 -0
- package/dist/esm/packages/taco/src/components/Report/components/Cell/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js +34 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Footer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js +39 -0
- package/dist/esm/packages/taco/src/components/Report/components/Footer/Summary.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js +194 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/Header.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js +28 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Goto.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js +150 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Menu.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js +60 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/Resizer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js +41 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/components/SortIndicator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/components/Header/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js +90 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Actions.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js +59 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Expansion.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js +118 -0
- package/dist/esm/packages/taco/src/components/Report/components/Internal/Selection.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js +102 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/DisplayRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/Row.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js +10 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/RowContext.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js +62 -0
- package/dist/esm/packages/taco/src/components/Report/components/Row/SkeletonRow.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js +63 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js +50 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/Filters.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js +136 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js +95 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Filter.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js +49 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js +110 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js +118 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Placeholder.js +41 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/components/Placeholder.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js +7 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Filters/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js +123 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/Print.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js +88 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Print/PrintDialog.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js +95 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Search/Search.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js +105 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/HideOrOrderPopover.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js +103 -0
- package/dist/esm/packages/taco/src/components/Report/components/Toolbar/components/Settings/Settings.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js +24 -0
- package/dist/esm/packages/taco/src/components/Report/listeners/useTableRowActiveListener.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js +44 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useColumnPinningStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js +54 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useCssGridStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js +20 -0
- package/dist/esm/packages/taco/src/components/Report/styles/useStylesheet.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/styles/util.js +61 -0
- package/dist/esm/packages/taco/src/components/Report/styles/util.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/useReport.js +51 -0
- package/dist/esm/packages/taco/src/components/Report/useReport.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/util/rows.js +10 -0
- package/dist/esm/packages/taco/src/components/Report/util/rows.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js +39 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableGlobalShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js +162 -0
- package/dist/esm/packages/taco/src/components/Report/util/useTableRenderer.js.map +1 -0
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js +3 -2
- package/dist/esm/packages/taco/src/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +2 -2
- package/dist/esm/packages/taco/src/components/Select2/components/Create.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Edit.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Option.js +1 -1
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +6 -7
- package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table/hooks/plugins/useRowActions.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +7 -2
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +6 -6
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +7 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +2 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +6 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +3 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Summary.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js +9 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Menu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/Actions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +2 -0
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/ColumnSettings.js +3 -3
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +4 -8
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/components/FilterComparator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js +19 -14
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintButton.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js +6 -5
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/PrintIFrame.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +18 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js +8 -14
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useColumnFreezing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSettings.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js +5 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/listeners/useSettingsStateListener.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +15 -15
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js +20 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTablePreset.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js +2 -0
- package/dist/esm/packages/taco/src/components/Table3/util/columns.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js +1 -1
- package/dist/esm/packages/taco/src/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/packages/taco/src/hooks/useBoundaryOverflowDetection.js +1 -1
- package/dist/esm/packages/taco/src/index.js +7 -6
- package/dist/esm/packages/taco/src/index.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Button.js +2 -1
- package/dist/esm/packages/taco/src/primitives/Button.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnFreezing.js +21 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableColumnFreezing.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFooter.js +8 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableFooter.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js +16 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTablePrinting.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRef.js +17 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRef.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActions.js +11 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowActions.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowExpansion.js +9 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowExpansion.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGroups.js +9 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableRowGroups.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSearch.js +38 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSearch.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSettings.js +28 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/features/useTableSettings.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowHeightListener.js +14 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableRowHeightListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSearchListener.js +15 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSearchListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js +26 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/listeners/useTableSettingsListener.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js +117 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/useTable.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js +30 -3
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/columns.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/filtering.js +131 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/filtering.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js +131 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/presets.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/search.js +43 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/search.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js +22 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/settings.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js +270 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/setup.js.map +1 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/sorting.js +18 -0
- package/dist/esm/packages/taco/src/primitives/Table/useTable/util/sorting.js.map +1 -0
- package/dist/esm/packages/taco/src/utils/dom.js +5 -1
- package/dist/esm/packages/taco/src/utils/dom.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/keyboard.js +3 -5
- package/dist/esm/packages/taco/src/utils/keyboard.js.map +1 -1
- package/dist/index.css +501 -9
- package/dist/index.d.ts +1 -0
- package/dist/primitives/Table/types.d.ts +2 -2
- package/dist/primitives/Table/useTable/features/useTablePrinting.d.ts +1 -1
- package/dist/primitives/Table/useTable/util/settings.d.ts +1 -1
- package/dist/primitives/Table/useTable/util/sorting.d.ts +1 -1
- package/dist/taco.cjs.development.js +6381 -2732
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/dist/utils/dom.d.ts +1 -0
- package/dist/utils/keyboard.d.ts +0 -1
- package/package.json +2 -2
- package/types.json +6050 -4979
- package/dist/components/Report/features/useReportExport.d.ts +0 -3
package/dist/index.css
CHANGED
@@ -522,6 +522,490 @@
|
|
522
522
|
@apply -mt-px py-0 px-2;
|
523
523
|
}
|
524
524
|
|
525
|
+
table[data-taco='report'] {
|
526
|
+
/* reset table */
|
527
|
+
@apply border-separate border-spacing-0;
|
528
|
+
/* z-indexes & layout */
|
529
|
+
@apply relative isolate h-full w-full grow overflow-auto;
|
530
|
+
/* styling */
|
531
|
+
@apply border-grey-300 rounded border bg-white outline-none;
|
532
|
+
/* grid */
|
533
|
+
@apply grid;
|
534
|
+
/* print */
|
535
|
+
@apply print:float-left print:h-max print:w-full print:overflow-visible print:border-0;
|
536
|
+
}
|
537
|
+
|
538
|
+
table[data-taco='report'] thead {
|
539
|
+
/* z-indexes & layout */
|
540
|
+
@apply sticky top-0 isolate z-20;
|
541
|
+
/* grid */
|
542
|
+
@apply col-span-full grid auto-rows-min grid-cols-[subgrid];
|
543
|
+
}
|
544
|
+
|
545
|
+
/* header column separator */
|
546
|
+
|
547
|
+
table[data-taco='report'] thead:hover th:not(:last-child):after {
|
548
|
+
@apply bg-grey-300 absolute bottom-2 right-0 top-2 w-px content-[''];
|
549
|
+
}
|
550
|
+
|
551
|
+
table[data-taco='report'] thead tr:first-child {
|
552
|
+
@apply rounded-t;
|
553
|
+
}
|
554
|
+
|
555
|
+
table[data-taco='report'] thead tr:first-child th:first-child {
|
556
|
+
@apply rounded-tl;
|
557
|
+
}
|
558
|
+
|
559
|
+
table[data-taco='report'] thead tr:first-child th:last-child {
|
560
|
+
@apply rounded-tr;
|
561
|
+
}
|
562
|
+
|
563
|
+
table[data-taco='report'] thead tr:last-child {
|
564
|
+
@apply border-grey-300 border-b-2;
|
565
|
+
}
|
566
|
+
|
567
|
+
/* bottom border for column groups */
|
568
|
+
|
569
|
+
table[data-taco='report'] thead tr:not(:last-child) th:before {
|
570
|
+
@apply bg-grey-300 absolute bottom-0 left-2 right-2 h-[2px] content-[''];
|
571
|
+
}
|
572
|
+
|
573
|
+
table[data-taco='report'] tfoot {
|
574
|
+
/* z-indexes & layout */
|
575
|
+
@apply sticky bottom-0 isolate z-20;
|
576
|
+
/* grid */
|
577
|
+
@apply col-span-full grid auto-rows-min grid-cols-[subgrid];
|
578
|
+
}
|
579
|
+
|
580
|
+
table[data-taco='report'] tbody {
|
581
|
+
/* z-indexes & layout */
|
582
|
+
@apply isolate z-10;
|
583
|
+
/* grid */
|
584
|
+
@apply col-span-full grid auto-rows-min grid-cols-[subgrid];
|
585
|
+
/* printing - override virtualiser bottom spacing */
|
586
|
+
@apply print:!h-auto print:!pb-0;
|
587
|
+
}
|
588
|
+
|
589
|
+
table[data-taco='report'] tr {
|
590
|
+
/* styling */
|
591
|
+
@apply relative bg-white outline-none;
|
592
|
+
/* grid */
|
593
|
+
@apply col-span-full grid auto-rows-min grid-cols-[subgrid];
|
594
|
+
}
|
595
|
+
|
596
|
+
/* botom border for column groups */
|
597
|
+
|
598
|
+
table[data-taco='report'] tr:last-child th:before {
|
599
|
+
@apply left-0 right-0;
|
600
|
+
}
|
601
|
+
|
602
|
+
/* row groups */
|
603
|
+
|
604
|
+
table[data-taco='report'] tr[data-row-group] {
|
605
|
+
@apply bg-grey-100 sticky top-[calc(var(--table-header-group-depth)_*_42px)] z-20 mt-10 print:mt-0;
|
606
|
+
}
|
607
|
+
|
608
|
+
table[data-taco='report'] tr[data-row-group]:first-child {
|
609
|
+
@apply mt-0;
|
610
|
+
}
|
611
|
+
|
612
|
+
table[data-taco='report'] tr[data-row-group]:not(:first-child):before {
|
613
|
+
content: '';
|
614
|
+
@apply bg-grey-100 border-grey-300 absolute -top-full left-0 right-0 mt-px h-10 border-t print:top-0 print:h-[2px] print:border-t-2;
|
615
|
+
}
|
616
|
+
|
617
|
+
table[data-taco='report'] tr[data-row-group] td {
|
618
|
+
@apply -mt-px border-b-2 border-t-0 font-bold;
|
619
|
+
}
|
620
|
+
|
621
|
+
table[data-taco='report'] tr:first-child td {
|
622
|
+
@apply !border-t-0;
|
623
|
+
}
|
624
|
+
|
625
|
+
table[data-taco='report'] th {
|
626
|
+
/* layout */
|
627
|
+
@apply relative flex h-10 items-center justify-start px-[var(--table-cell-padding-x)];
|
628
|
+
/* styling */
|
629
|
+
@apply border-grey-300 bg-white font-bold;
|
630
|
+
}
|
631
|
+
|
632
|
+
table[data-taco='report'] th:not([data-cell-placeholder='true']):hover {
|
633
|
+
@apply bg-grey-100;
|
634
|
+
}
|
635
|
+
|
636
|
+
table[data-taco='report'] th[aria-sort]:hover {
|
637
|
+
@apply cursor-pointer;
|
638
|
+
}
|
639
|
+
|
640
|
+
table[data-taco='report'] td {
|
641
|
+
/* layout */
|
642
|
+
@apply flex justify-start px-[var(--table-cell-padding-x)] py-[var(--table-cell-padding-y)];
|
643
|
+
/* styling */
|
644
|
+
@apply border-grey-300 border-b bg-white outline-none;
|
645
|
+
/* word breaking */
|
646
|
+
@apply break-word hyphens-auto whitespace-pre-line;
|
647
|
+
}
|
648
|
+
|
649
|
+
table[data-taco='report'][data-table-row-height='short'] td {
|
650
|
+
@apply min-h-[33px];
|
651
|
+
}
|
652
|
+
|
653
|
+
table[data-taco='report'][data-table-row-height='medium'] td {
|
654
|
+
@apply min-h-[41px];
|
655
|
+
}
|
656
|
+
|
657
|
+
table[data-taco='report'] [data-cell-align='left'] {
|
658
|
+
@apply justify-start text-left;
|
659
|
+
}
|
660
|
+
|
661
|
+
table[data-taco='report'] [data-cell-align='center'] {
|
662
|
+
@apply justify-center text-center;
|
663
|
+
}
|
664
|
+
|
665
|
+
table[data-taco='report'] [data-cell-align='right'] {
|
666
|
+
@apply justify-end text-right;
|
667
|
+
}
|
668
|
+
|
669
|
+
table[data-taco='report'] [data-cell-pinned] {
|
670
|
+
@apply sticky;
|
671
|
+
}
|
672
|
+
|
673
|
+
table[data-taco='report'] th[data-cell-pinned] {
|
674
|
+
@apply z-30;
|
675
|
+
}
|
676
|
+
|
677
|
+
table[data-taco='report'] td[data-cell-pinned] {
|
678
|
+
@apply z-10;
|
679
|
+
}
|
680
|
+
|
681
|
+
table[data-taco='report'] td:not([data-cell-truncate='true']) {
|
682
|
+
@apply break-word hyphens-auto whitespace-pre-line;
|
683
|
+
}
|
684
|
+
|
685
|
+
/* FOOTER */
|
686
|
+
table[data-taco='report'] tfoot td {
|
687
|
+
@apply border-b-0 font-bold;
|
688
|
+
}
|
689
|
+
|
690
|
+
table[data-taco='report'] tfoot td:before {
|
691
|
+
@apply bg-grey-300 absolute left-0 right-0 top-0 h-[2px] content-[''];
|
692
|
+
}
|
693
|
+
|
694
|
+
/* OTHER */
|
695
|
+
|
696
|
+
/* resizing */
|
697
|
+
table[data-taco='report'][data-table-resizing='true'] {
|
698
|
+
@apply select-none;
|
699
|
+
}
|
700
|
+
table[data-taco='report'][data-table-resizing='true'] th,
|
701
|
+
table[data-taco='report'][data-table-resizing='true'] td,
|
702
|
+
table[data-taco='report'][data-table-resizing='true'] tbody tr {
|
703
|
+
@apply pointer-events-none;
|
704
|
+
}
|
705
|
+
|
706
|
+
/* components in cells */
|
707
|
+
table[data-taco='report'] td[data-cell-align='right'] [data-taco='input'],
|
708
|
+
table[data-taco='report'] td[data-cell-align='right'] [data-taco='textarea'] {
|
709
|
+
@apply text-right;
|
710
|
+
}
|
711
|
+
|
712
|
+
table[data-taco='report'] td [data-taco='textarea'] {
|
713
|
+
@apply resize-none overflow-y-hidden focus:resize-y;
|
714
|
+
}
|
715
|
+
|
716
|
+
table[data-taco='report'] td[data-cell-truncate='true'] [data-taco='textarea'] {
|
717
|
+
@apply focus:absolute focus:overflow-y-auto;
|
718
|
+
}
|
719
|
+
|
720
|
+
/* font sizing */
|
721
|
+
table[data-taco='report'][data-table-font-size='small'] {
|
722
|
+
@apply text-xs;
|
723
|
+
}
|
724
|
+
|
725
|
+
table[data-taco='report'][data-table-font-size='medium'] {
|
726
|
+
@apply text-sm;
|
727
|
+
}
|
728
|
+
|
729
|
+
table[data-taco='report'][data-table-font-size='large'] {
|
730
|
+
@apply text-base;
|
731
|
+
}
|
732
|
+
|
733
|
+
/* small font size */
|
734
|
+
table[data-taco='report'][data-table-font-size='small'] td > [data-taco='button'],
|
735
|
+
table[data-taco='report'][data-table-font-size='small'] td > [data-taco='icon-button'] {
|
736
|
+
@apply !-my-2;
|
737
|
+
}
|
738
|
+
|
739
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='spinner'] {
|
740
|
+
@apply !h-4 !w-4;
|
741
|
+
}
|
742
|
+
|
743
|
+
table[data-taco='report'][data-table-font-size='small'] td > [data-taco='icon'],
|
744
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='spinner'] {
|
745
|
+
@apply !-my-[3px];
|
746
|
+
}
|
747
|
+
|
748
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='badge'],
|
749
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='badge-icon'],
|
750
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='icon'],
|
751
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='spinner'] {
|
752
|
+
@apply !-my-0.5 !text-xs;
|
753
|
+
}
|
754
|
+
|
755
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='tag'] {
|
756
|
+
@apply !-my-0.5 h-5;
|
757
|
+
}
|
758
|
+
|
759
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='select2-container'],
|
760
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='Select2'],
|
761
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='input'],
|
762
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='textarea'] {
|
763
|
+
@apply !-mx-[7px] !-my-[4px] !min-h-[theme(spacing.6)] !w-[calc(100%_+_14px)] text-xs focus:z-10;
|
764
|
+
}
|
765
|
+
|
766
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='Select2'],
|
767
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='input'],
|
768
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='textarea'] {
|
769
|
+
@apply !px-1.5;
|
770
|
+
}
|
771
|
+
|
772
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='select2-container'] [data-taco='Select2'] {
|
773
|
+
@apply !m-auto !w-full;
|
774
|
+
}
|
775
|
+
|
776
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='Select2'] [data-taco='tag'],
|
777
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='Select2'] [data-taco='scrollarea'] {
|
778
|
+
@apply !my-0;
|
779
|
+
}
|
780
|
+
|
781
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='textarea'] {
|
782
|
+
@apply !py-[3px];
|
783
|
+
}
|
784
|
+
|
785
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='input-container'] [data-affix-type='postfix'] button {
|
786
|
+
@apply z-10 !-mr-[15px] !h-6 !min-h-[theme(spacing.6)] !w-6 !min-w-[theme(spacing.6)];
|
787
|
+
}
|
788
|
+
|
789
|
+
table[data-taco='report'][data-table-font-size='small']
|
790
|
+
td
|
791
|
+
[data-taco='input-container']
|
792
|
+
[data-affix-type='postfix']
|
793
|
+
[data-taco='icon'] {
|
794
|
+
@apply !h-4 !w-4;
|
795
|
+
}
|
796
|
+
|
797
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='checkbox'],
|
798
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='checkbox-container'],
|
799
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='switch'],
|
800
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='switch-container'] {
|
801
|
+
@apply !-my-0.5;
|
802
|
+
}
|
803
|
+
|
804
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='checkbox-container'] [data-taco='checkbox'],
|
805
|
+
table[data-taco='report'][data-table-font-size='small'] td [data-taco='switch-container'] [data-taco='switch'] {
|
806
|
+
@apply !my-0;
|
807
|
+
}
|
808
|
+
|
809
|
+
/* medium font size */
|
810
|
+
table[data-taco='report'][data-table-font-size='medium'] td > [data-taco='button'],
|
811
|
+
table[data-taco='report'][data-table-font-size='medium'] td > [data-taco='icon-button'] {
|
812
|
+
@apply !-my-1.5;
|
813
|
+
}
|
814
|
+
|
815
|
+
table[data-taco='report'][data-table-font-size='medium'] td > [data-taco='icon'] {
|
816
|
+
@apply !-my-0.5;
|
817
|
+
}
|
818
|
+
|
819
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='tag'] {
|
820
|
+
@apply !-my-0.5;
|
821
|
+
}
|
822
|
+
|
823
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='select2-container'],
|
824
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='Select2'],
|
825
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='input'],
|
826
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='textarea'] {
|
827
|
+
@apply !-mx-[9px] !-my-[6px] !min-h-[theme(spacing.8)] !w-[calc(100%_+_16px)] focus:z-10;
|
828
|
+
}
|
829
|
+
|
830
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='select2-container'] [data-taco='Select2'] {
|
831
|
+
@apply !m-auto !w-full;
|
832
|
+
}
|
833
|
+
|
834
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='Select2'] [data-taco='tag'] {
|
835
|
+
@apply !my-0;
|
836
|
+
}
|
837
|
+
|
838
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='Select2'] {
|
839
|
+
@apply !px-2;
|
840
|
+
}
|
841
|
+
|
842
|
+
table[data-taco='report'][data-table-font-size='medium'] td[data-cell-truncate='true'] [data-taco='textarea'] {
|
843
|
+
@apply !pb-[5px];
|
844
|
+
}
|
845
|
+
|
846
|
+
table[data-taco='report'][data-table-font-size='medium'] td [data-taco='input-container'] [data-affix-type='postfix'] button {
|
847
|
+
@apply z-10 !-mr-4;
|
848
|
+
}
|
849
|
+
|
850
|
+
/* large font size */
|
851
|
+
table[data-taco='report'][data-table-font-size='large'] td > [data-taco='button'],
|
852
|
+
table[data-taco='report'][data-table-font-size='large'] td > [data-taco='icon-button'] {
|
853
|
+
@apply !-my-1;
|
854
|
+
}
|
855
|
+
|
856
|
+
table[data-taco='report'][data-table-font-size='large'] td > [data-taco='icon'] {
|
857
|
+
@apply !-my-0.5;
|
858
|
+
}
|
859
|
+
|
860
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='select2-container'],
|
861
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='Select2'],
|
862
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='input'],
|
863
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='textarea'] {
|
864
|
+
@apply !-mx-[11px] !-mb-[7.5px] !-mt-[8.5px] !w-[calc(100%_+_22px)] focus:z-10;
|
865
|
+
}
|
866
|
+
|
867
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='select2-container'] [data-taco='Select2'] {
|
868
|
+
@apply !m-auto !w-full;
|
869
|
+
}
|
870
|
+
|
871
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='Select2'] {
|
872
|
+
@apply !px-2.5;
|
873
|
+
}
|
874
|
+
|
875
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='Select2'] [data-taco='tag'] {
|
876
|
+
@apply !my-0 !mt-px;
|
877
|
+
}
|
878
|
+
|
879
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='textarea'] {
|
880
|
+
@apply !py-[7.5px];
|
881
|
+
}
|
882
|
+
|
883
|
+
table[data-taco='report'][data-table-font-size='large'] td:not([data-cell-truncate='true']) > [data-taco='textarea'] {
|
884
|
+
@apply !pb-[8.5px];
|
885
|
+
}
|
886
|
+
|
887
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='input'],
|
888
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='Select2'],
|
889
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='textarea'] {
|
890
|
+
@apply h-10 px-2.5 text-base;
|
891
|
+
}
|
892
|
+
|
893
|
+
table[data-taco='report'][data-table-font-size='large'] td [data-taco='input-container'] [data-affix-type='postfix'] button {
|
894
|
+
@apply !-mr-[19px] !h-10 !w-10;
|
895
|
+
}
|
896
|
+
|
897
|
+
table[data-taco='report'][data-table-font-size='large']
|
898
|
+
td
|
899
|
+
[data-taco='input-container']
|
900
|
+
[data-affix-type='postfix']
|
901
|
+
[data-taco='icon'] {
|
902
|
+
@apply !h-6 !w-6;
|
903
|
+
}
|
904
|
+
|
905
|
+
/* row/cell backgrounds -- we have to be specific so that nested tables don't inherit */
|
906
|
+
|
907
|
+
/* normal rows */
|
908
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true']) > td {
|
909
|
+
@apply bg-white;
|
910
|
+
}
|
911
|
+
/* search highlighting */
|
912
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true']) > td[data-cell-highlighted='true'] {
|
913
|
+
@apply bg-[#e9f2ff];
|
914
|
+
}
|
915
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true']) > td[data-cell-highlighted='current'] {
|
916
|
+
@apply !bg-[#bfd9ff];
|
917
|
+
}
|
918
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true'])[data-row-group] > td {
|
919
|
+
@apply bg-grey-100;
|
920
|
+
}
|
921
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true']):hover > td,
|
922
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true'])[data-row-active='true'] > td,
|
923
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true'])[data-row-active='true']:hover > td {
|
924
|
+
--table-row-actions-shadow: theme(colors.grey.100);
|
925
|
+
@apply bg-grey-100;
|
926
|
+
}
|
927
|
+
/* search highlighting */
|
928
|
+
table[data-taco='report'] > tbody > tr:not([data-row-selected='true']):hover > td[data-cell-highlighted='true'], table[data-taco='report'] > tbody > tr:not([data-row-selected='true'])[data-row-active='true'] > td[data-cell-highlighted='true'], table[data-taco='report'] > tbody > tr:not([data-row-selected='true'])[data-row-active='true']:hover > td[data-cell-highlighted='true'] {
|
929
|
+
@apply bg-[#e2ebf8];
|
930
|
+
}
|
931
|
+
/* normal rows when focus is inside the table */
|
932
|
+
table[data-taco='report']:focus-within > tbody > tr[data-row-active='true']:not([data-row-selected='true']) > td {
|
933
|
+
--table-row-actions-shadow: theme(colors.grey.200);
|
934
|
+
@apply !bg-grey-200;
|
935
|
+
}
|
936
|
+
|
937
|
+
/* normal rows when hover is paused */
|
938
|
+
table[data-taco='report'][data-table-pause-hover='true'] > tbody > tr:not([data-row-selected='true']):hover:not([data-row-active='true']) > td {
|
939
|
+
--table-row-actions-shadow: theme(colors.white);
|
940
|
+
@apply !bg-white;
|
941
|
+
}
|
942
|
+
table[data-taco='report'][data-table-pause-hover='true'] > tbody > tr:not([data-row-selected='true']):hover[data-row-active='true'] > td {
|
943
|
+
--table-row-actions-shadow: theme(colors.grey.200);
|
944
|
+
@apply !bg-grey-200;
|
945
|
+
}
|
946
|
+
|
947
|
+
/* selected rows */
|
948
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true'] > td {
|
949
|
+
@apply bg-blue-100;
|
950
|
+
}
|
951
|
+
/* search highlighting */
|
952
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true'] > td[data-cell-highlighted='true'] {
|
953
|
+
@apply bg-[#d0e4ff];
|
954
|
+
}
|
955
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true'] > td[data-cell-highlighted='current'] {
|
956
|
+
@apply !bg-[#b6d4ff];
|
957
|
+
}
|
958
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true']:hover > td,
|
959
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true'] > td,
|
960
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true']:hover > td {
|
961
|
+
--table-row-actions-shadow: #d6e3f6;
|
962
|
+
@apply bg-[#D6E3F6];
|
963
|
+
}
|
964
|
+
/* search highlighting */
|
965
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true']:hover > td[data-cell-highlighted='true'], table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true'] > td[data-cell-highlighted='true'], table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true']:hover > td[data-cell-highlighted='true'] {
|
966
|
+
@apply bg-[#cadef9];
|
967
|
+
}
|
968
|
+
table[data-taco='report'] > tbody > tr[data-row-selected='true']:hover > td[data-cell-highlighted='current'], table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true'] > td[data-cell-highlighted='current'], table[data-taco='report'] > tbody > tr[data-row-selected='true'][data-row-active='true']:hover > td[data-cell-highlighted='current'] {
|
969
|
+
@apply !bg-[#b4d2fd];
|
970
|
+
}
|
971
|
+
/* selected rows when focus is inside the table */
|
972
|
+
table[data-taco='report']:focus-within > tbody > tr[data-row-active='true'][data-row-selected='true'] > td {
|
973
|
+
--table-row-actions-shadow: #ccd8eb;
|
974
|
+
@apply bg-[#CCD8EB];
|
975
|
+
}
|
976
|
+
/* selected rows when hover is paused */
|
977
|
+
table[data-taco='report'][data-table-pause-hover='true'] > tbody > tr[data-row-selected='true']:hover:not([data-row-active='true']) > td {
|
978
|
+
--table-row-actions-shadow: theme(colors.blue.100);
|
979
|
+
@apply !bg-blue-100;
|
980
|
+
}
|
981
|
+
table[data-taco='report'][data-table-pause-hover='true'] > tbody > tr[data-row-selected='true']:hover[data-row-active='true'] > td {
|
982
|
+
--table-row-actions-shadow: #ccd8eb;
|
983
|
+
@apply !bg-[#CCD8EB];
|
984
|
+
}
|
985
|
+
|
986
|
+
/* row metadata */
|
987
|
+
|
988
|
+
table[data-taco='report'] tbody tr[data-row-meta-layout='heading']:not([data-row-group='true']) td {
|
989
|
+
@apply !border-b-0 border-t font-bold;
|
990
|
+
}
|
991
|
+
|
992
|
+
table[data-taco='report'] tbody tr[data-row-group='true'] + tr[data-row-meta-layout='heading'] td {
|
993
|
+
@apply !border-t-0;
|
994
|
+
}
|
995
|
+
|
996
|
+
table[data-taco='report'] tbody tr[data-row-meta-layout='summary']:not([data-row-group='true']) td {
|
997
|
+
@apply !border-b-0 font-bold;
|
998
|
+
}
|
999
|
+
|
1000
|
+
table[data-taco='report'] tbody tr[data-row-meta-layout='item']:not([data-row-group='true']) td {
|
1001
|
+
@apply !border-b-0;
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
/* printing */
|
1005
|
+
table[data-taco='report'] [data-cell-id^='__'] {
|
1006
|
+
@apply print:hidden;
|
1007
|
+
}
|
1008
|
+
|
525
1009
|
/* rows */
|
526
1010
|
.yt-table__row {
|
527
1011
|
@apply border-grey-300 flex border-b;
|
@@ -856,7 +1340,7 @@
|
|
856
1340
|
|
857
1341
|
[data-font-size='small'] [role='cell'] [data-taco='Select2'],
|
858
1342
|
[data-font-size='small'] [role='cell'] [data-taco='input-container'] {
|
859
|
-
@apply !-my-[
|
1343
|
+
@apply !-my-[2px];
|
860
1344
|
}
|
861
1345
|
|
862
1346
|
/* from validation */
|
@@ -869,9 +1353,14 @@
|
|
869
1353
|
}
|
870
1354
|
/*---*/
|
871
1355
|
|
1356
|
+
[data-font-size='small'] [role='cell'] [data-taco='textarea'] {
|
1357
|
+
@apply py-px leading-4;
|
1358
|
+
}
|
1359
|
+
|
872
1360
|
[data-font-size='small'] [role='cell'] [data-taco='input'],
|
873
1361
|
[data-font-size='small'] [role='cell'] [data-taco='Select2'],
|
874
|
-
[data-font-size='small'] [role='cell'] [data-taco='textarea']
|
1362
|
+
[data-font-size='small'] [role='cell'] [data-taco='textarea'],
|
1363
|
+
[data-font-size='small'] [role='cell'] [data-taco='combobox'] {
|
875
1364
|
@apply h-6 min-h-[theme(spacing.6)] px-1.5 text-xs;
|
876
1365
|
}
|
877
1366
|
|
@@ -931,7 +1420,7 @@
|
|
931
1420
|
|
932
1421
|
[data-font-size='medium'] [role='cell'] [data-taco='Select2'],
|
933
1422
|
[data-font-size='medium'] [role='cell'] [data-taco='input-container'] {
|
934
|
-
@apply !-my-[
|
1423
|
+
@apply !-my-[4px];
|
935
1424
|
}
|
936
1425
|
|
937
1426
|
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself and remove 1px border-width */
|
@@ -940,7 +1429,7 @@
|
|
940
1429
|
@apply px-[calc(var(--table3-cell-padding-x)_-_8px_-_1px)];
|
941
1430
|
}
|
942
1431
|
|
943
|
-
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
1432
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
944
1433
|
because it should take all the available space in the cell */
|
945
1434
|
|
946
1435
|
[data-font-size='medium'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
@@ -958,8 +1447,7 @@
|
|
958
1447
|
[data-font-size='medium'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='input-container'],
|
959
1448
|
[data-font-size='medium'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='Select2'],
|
960
1449
|
[data-font-size='medium'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='input-container'] {
|
961
|
-
@apply !-mt-1.5;
|
962
|
-
@apply !mb-0;
|
1450
|
+
@apply !-mt-1.5 !mb-0;
|
963
1451
|
}
|
964
1452
|
|
965
1453
|
/* large font size */
|
@@ -978,7 +1466,11 @@
|
|
978
1466
|
|
979
1467
|
[data-font-size='large'] [role='cell'] [data-taco='Select2'],
|
980
1468
|
[data-font-size='large'] [role='cell'] [data-taco='input-container'] {
|
981
|
-
@apply !-my-[
|
1469
|
+
@apply !-my-[6.5px];
|
1470
|
+
}
|
1471
|
+
|
1472
|
+
[data-font-size='large'] [role='cell'] [data-taco='textarea'] {
|
1473
|
+
@apply py-[9.5px];
|
982
1474
|
}
|
983
1475
|
|
984
1476
|
[data-font-size='large'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='Select2'],
|
@@ -1009,7 +1501,7 @@
|
|
1009
1501
|
@apply px-[calc(var(--table3-cell-padding-x)_-_10px_-_1px)];
|
1010
1502
|
}
|
1011
1503
|
|
1012
|
-
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
1504
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper and remove 1px border-width,
|
1013
1505
|
because it should take all the available space in the cell */
|
1014
1506
|
|
1015
1507
|
[data-font-size='large'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
@@ -1023,7 +1515,7 @@
|
|
1023
1515
|
@apply !mx-[calc(var(--table3-cell-padding-x)_-_5px)] !mt-px;
|
1024
1516
|
}
|
1025
1517
|
|
1026
|
-
/* Icon inside column header button uses em values therefore text-sm is required to prevent icon
|
1518
|
+
/* Icon inside column header button uses em values therefore text-sm is required to prevent icon
|
1027
1519
|
from overflowing button's boundaries */
|
1028
1520
|
[data-font-size='large'] [role='columnheader'] button {
|
1029
1521
|
@apply !text-sm;
|
package/dist/index.d.ts
CHANGED
@@ -33,6 +33,7 @@ export * from './components/Progress/Progress';
|
|
33
33
|
export * from './components/Provider/Provider';
|
34
34
|
export * from './components/Provider/Localization';
|
35
35
|
export * from './components/RadioGroup/RadioGroup';
|
36
|
+
export * from './components/Report/Report';
|
36
37
|
export * from './components/SearchInput/SearchInput';
|
37
38
|
export * from './components/SearchInput2/SearchInput2';
|
38
39
|
export * from './components/Select/Select';
|
@@ -158,13 +158,13 @@ declare type useTableCommonProps<TType = unknown> = TableFeatureProps & {
|
|
158
158
|
onChangeSettings?: TableSettingsHandler;
|
159
159
|
onChangeSort?: TableSortHandler;
|
160
160
|
};
|
161
|
-
interface useTableClientProps<TType = unknown> extends useTableCommonProps<TType> {
|
161
|
+
export interface useTableClientProps<TType = unknown> extends useTableCommonProps<TType> {
|
162
162
|
length?: never;
|
163
163
|
loadAll?: never;
|
164
164
|
loadPage?: never;
|
165
165
|
pageSize?: never;
|
166
166
|
}
|
167
|
-
interface useTableServerProps<TType = unknown> extends useTableCommonProps<TType> {
|
167
|
+
export interface useTableServerProps<TType = unknown> extends useTableCommonProps<TType> {
|
168
168
|
length: number | undefined;
|
169
169
|
loadAll: TableServerLoadAllHandler;
|
170
170
|
loadPage: TableServerLoadPageHandler;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare function useTablePrinting(isEnabled
|
2
|
+
export declare function useTablePrinting(isEnabled?: boolean, defaultIsWarningVisible?: boolean): {
|
3
3
|
isEnabled: boolean;
|
4
4
|
isPrinting: boolean;
|
5
5
|
setIsPrinting: React.Dispatch<React.SetStateAction<boolean>>;
|
@@ -4,7 +4,7 @@ export declare function getSettings<TType = unknown>(table: ReactTable<TType>):
|
|
4
4
|
columnPinning: import("@tanstack/react-table").ColumnPinningState;
|
5
5
|
columnSizing: Record<string, number>;
|
6
6
|
columnVisibility: Record<string, boolean> | undefined;
|
7
|
-
excludeUnmatchedRecordsInSearch:
|
7
|
+
excludeUnmatchedRecordsInSearch: any;
|
8
8
|
fontSize: "small" | "medium" | "large" | undefined;
|
9
9
|
grouping: import("@tanstack/react-table").GroupingState | undefined;
|
10
10
|
rowHeight: "medium" | "short" | "tall" | "extra-tall" | undefined;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { TableColumnDataType, TableColumnSortFn } from '../../types';
|
2
|
-
export declare function getSortingFn<TType = unknown>(dataType?: TableColumnDataType, customFnOrBuiltIn?: TableColumnSortFn<TType>): "
|
2
|
+
export declare function getSortingFn<TType = unknown>(dataType?: TableColumnDataType, customFnOrBuiltIn?: TableColumnSortFn<TType>): "auto" | "alphanumeric" | "alphanumericCaseSensitive" | "datetime" | "text" | "textCaseSensitive" | "basic" | ((rowA: any, rowB: any, columnId: any) => 0 | 1 | -1);
|