@semcore/data-table 16.0.0-prerelease.2 → 16.0.0-prerelease.21
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/CHANGELOG.md +25 -1
- package/lib/cjs/components/Body/Body.js +439 -0
- package/lib/cjs/components/Body/Body.js.map +1 -0
- package/lib/cjs/components/Body/Body.types.js +2 -0
- package/lib/cjs/components/Body/Body.types.js.map +1 -0
- package/lib/cjs/components/Body/Cell.js +195 -0
- package/lib/cjs/components/Body/Cell.js.map +1 -0
- package/lib/cjs/components/Body/Cell.types.js +2 -0
- package/lib/cjs/components/Body/Cell.types.js.map +1 -0
- package/lib/cjs/components/Body/MergedCells.js +29 -0
- package/lib/cjs/components/Body/MergedCells.js.map +1 -0
- package/lib/cjs/components/Body/Row.js +252 -0
- package/lib/cjs/components/Body/Row.js.map +1 -0
- package/lib/cjs/components/Body/Row.types.js +4 -0
- package/lib/cjs/components/Body/Row.types.js.map +1 -0
- package/lib/cjs/components/Body/style.shadow.css +263 -0
- package/lib/cjs/components/DataTable/DataTable.js +1025 -0
- package/lib/cjs/components/DataTable/DataTable.js.map +1 -0
- package/lib/cjs/{types.js → components/DataTable/DataTable.types.js} +1 -1
- package/lib/cjs/components/DataTable/DataTable.types.js.map +1 -0
- package/lib/cjs/components/DataTable/dataTable.shadow.css +17 -0
- package/lib/cjs/components/Head/Column.js +311 -0
- package/lib/cjs/components/Head/Column.js.map +1 -0
- package/lib/cjs/components/Head/Column.types.js +2 -0
- package/lib/cjs/components/Head/Column.types.js.map +1 -0
- package/lib/cjs/components/Head/Group.js +116 -0
- package/lib/cjs/components/Head/Group.js.map +1 -0
- package/lib/cjs/components/Head/Group.type.js +2 -0
- package/lib/cjs/components/Head/Group.type.js.map +1 -0
- package/lib/cjs/components/Head/Head.js +207 -0
- package/lib/cjs/components/Head/Head.js.map +1 -0
- package/lib/cjs/components/Head/Head.types.js +2 -0
- package/lib/cjs/components/Head/Head.types.js.map +1 -0
- package/lib/cjs/components/Head/style.shadow.css +180 -0
- package/lib/cjs/index.js +25 -15
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/scroll-shadows.shadow.css +45 -5
- package/lib/cjs/translations/en.json +6 -1
- package/lib/es6/components/Body/Body.js +432 -0
- package/lib/es6/components/Body/Body.js.map +1 -0
- package/lib/es6/components/Body/Body.types.js +2 -0
- package/lib/es6/components/Body/Body.types.js.map +1 -0
- package/lib/es6/components/Body/Cell.js +188 -0
- package/lib/es6/components/Body/Cell.js.map +1 -0
- package/lib/es6/components/Body/Cell.types.js +2 -0
- package/lib/es6/components/Body/Cell.types.js.map +1 -0
- package/lib/es6/components/Body/MergedCells.js +20 -0
- package/lib/es6/components/Body/MergedCells.js.map +1 -0
- package/lib/es6/components/Body/Row.js +245 -0
- package/lib/es6/components/Body/Row.js.map +1 -0
- package/lib/es6/components/Body/Row.types.js +2 -0
- package/lib/es6/components/Body/Row.types.js.map +1 -0
- package/lib/es6/components/Body/style.shadow.css +263 -0
- package/lib/es6/components/DataTable/DataTable.js +1013 -0
- package/lib/es6/components/DataTable/DataTable.js.map +1 -0
- package/lib/es6/components/DataTable/DataTable.types.js +2 -0
- package/lib/es6/components/DataTable/DataTable.types.js.map +1 -0
- package/lib/es6/components/DataTable/dataTable.shadow.css +17 -0
- package/lib/es6/components/Head/Column.js +304 -0
- package/lib/es6/components/Head/Column.js.map +1 -0
- package/lib/es6/components/Head/Column.types.js +2 -0
- package/lib/es6/components/Head/Column.types.js.map +1 -0
- package/lib/es6/components/Head/Group.js +109 -0
- package/lib/es6/components/Head/Group.js.map +1 -0
- package/lib/es6/components/Head/Group.type.js +2 -0
- package/lib/es6/components/Head/Group.type.js.map +1 -0
- package/lib/es6/components/Head/Head.js +201 -0
- package/lib/es6/components/Head/Head.js.map +1 -0
- package/lib/es6/components/Head/Head.types.js +2 -0
- package/lib/es6/components/Head/Head.types.js.map +1 -0
- package/lib/es6/components/Head/style.shadow.css +180 -0
- package/lib/es6/index.js +5 -2
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/scroll-shadows.shadow.css +45 -5
- package/lib/es6/translations/en.json +6 -1
- package/lib/esm/components/Body/Body.mjs +394 -0
- package/lib/esm/components/Body/Cell.mjs +186 -0
- package/lib/esm/components/Body/MergedCells.mjs +23 -0
- package/lib/esm/components/Body/Row.mjs +224 -0
- package/lib/esm/components/Body/style.shadow.css +263 -0
- package/lib/esm/components/DataTable/DataTable.mjs +944 -0
- package/lib/esm/components/DataTable/dataTable.shadow.css +17 -0
- package/lib/esm/components/Head/Column.mjs +296 -0
- package/lib/esm/components/Head/Group.mjs +103 -0
- package/lib/esm/components/Head/Head.mjs +181 -0
- package/lib/esm/components/Head/style.shadow.css +180 -0
- package/lib/esm/index.mjs +9 -6
- package/lib/esm/style/scroll-shadows.shadow.css +47 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
- package/lib/esm/translations/de.json.mjs +5 -4
- package/lib/esm/translations/en.json.mjs +10 -4
- package/lib/esm/translations/es.json.mjs +5 -4
- package/lib/esm/translations/fr.json.mjs +5 -4
- package/lib/esm/translations/it.json.mjs +5 -4
- package/lib/esm/translations/ja.json.mjs +5 -4
- package/lib/esm/translations/ko.json.mjs +5 -4
- package/lib/esm/translations/nl.json.mjs +5 -4
- package/lib/esm/translations/pl.json.mjs +5 -4
- package/lib/esm/translations/pt.json.mjs +5 -4
- package/lib/esm/translations/sv.json.mjs +5 -4
- package/lib/esm/translations/tr.json.mjs +5 -4
- package/lib/esm/translations/vi.json.mjs +5 -4
- package/lib/esm/translations/zh.json.mjs +5 -4
- package/lib/types/components/Body/Body.d.ts +8 -0
- package/lib/types/components/Body/Body.types.d.ts +57 -0
- package/lib/types/components/Body/Cell.d.ts +3 -0
- package/lib/types/components/Body/Cell.types.d.ts +20 -0
- package/lib/types/components/Body/MergedCells.d.ts +14 -0
- package/lib/types/components/Body/Row.d.ts +3 -0
- package/lib/types/components/Body/Row.types.d.ts +43 -0
- package/lib/types/components/DataTable/DataTable.d.ts +13 -0
- package/lib/types/components/DataTable/DataTable.types.d.ts +125 -0
- package/lib/types/components/Head/Column.d.ts +30 -0
- package/lib/types/components/Head/Column.types.d.ts +71 -0
- package/lib/types/components/Head/Group.d.ts +15 -0
- package/lib/types/components/Head/Group.type.d.ts +16 -0
- package/lib/types/components/Head/Head.d.ts +98 -0
- package/lib/types/components/Head/Head.types.d.ts +40 -0
- package/lib/types/index.d.ts +10 -2
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +5 -0
- package/package.json +11 -6
- package/vite.config.ts +0 -3
- package/lib/cjs/Body.js +0 -475
- package/lib/cjs/Body.js.map +0 -1
- package/lib/cjs/DataTable.js +0 -622
- package/lib/cjs/DataTable.js.map +0 -1
- package/lib/cjs/Head.js +0 -399
- package/lib/cjs/Head.js.map +0 -1
- package/lib/cjs/style/data-table.shadow.css +0 -394
- package/lib/cjs/types.js.map +0 -1
- package/lib/cjs/utils.js +0 -57
- package/lib/cjs/utils.js.map +0 -1
- package/lib/es6/Body.js +0 -468
- package/lib/es6/Body.js.map +0 -1
- package/lib/es6/DataTable.js +0 -614
- package/lib/es6/DataTable.js.map +0 -1
- package/lib/es6/Head.js +0 -391
- package/lib/es6/Head.js.map +0 -1
- package/lib/es6/style/data-table.shadow.css +0 -394
- package/lib/es6/types.js +0 -2
- package/lib/es6/types.js.map +0 -1
- package/lib/es6/utils.js +0 -48
- package/lib/es6/utils.js.map +0 -1
- package/lib/esm/Body.mjs +0 -320
- package/lib/esm/DataTable.mjs +0 -439
- package/lib/esm/Head.mjs +0 -258
- package/lib/esm/utils.mjs +0 -37
- package/lib/types/Body.d.ts +0 -61
- package/lib/types/DataTable.d.ts +0 -205
- package/lib/types/Head.d.ts +0 -45
- package/lib/types/types.d.ts +0 -73
- package/lib/types/utils.d.ts +0 -4
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
6
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
7
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
+
import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Box, Collapse } from "@semcore/base-components";
|
|
12
|
+
import { Body } from "./Body.mjs";
|
|
13
|
+
import { ACCORDION, SELECT_ALL } from "../DataTable/DataTable.mjs";
|
|
14
|
+
import { MergedRowsCell, MergedColumnsCell } from "./MergedCells.mjs";
|
|
15
|
+
import Checkbox from "@semcore/checkbox";
|
|
16
|
+
/*!__reshadow-styles__:"./style.shadow.css"*/
|
|
17
|
+
var style = (
|
|
18
|
+
/*__reshadow_css_start__*/
|
|
19
|
+
(sstyled.insert(
|
|
20
|
+
/*__inner_css_start__*/
|
|
21
|
+
'.___SBody_1sflu_gg_,.___SRowGroup_1sflu_gg_,.___SRow_1sflu_gg_{display:contents}.___SBody_1sflu_gg_.__compact_1sflu_gg_ .___SCell_1sflu_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px)}.___SBody_1sflu_gg_.__compact_1sflu_gg_ .___SCell_1sflu_gg_[data-aria-level]{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + (var(--intergalactic-spacing-5x, 20px)*(var(--data-aria-level_1sflu) - 1)))}.___SCell_1sflu_gg_.__gridArea_1sflu_gg_,.___SCollapseRow_1sflu_gg_.__gridArea_1sflu_gg_,.___SRow_1sflu_gg_.__gridArea_1sflu_gg_{grid-area:var(--gridArea_1sflu)}.___SCollapseRow_1sflu_gg_ .___SCell_1sflu_gg_{display:block}.___SRow_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_.__expanded_1sflu_gg_._accordionType_cell_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_).__withAccordion_1sflu_gg_,.___SRow_1sflu_gg_.__expanded_1sflu_gg_._accordionType_row_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-active, #e6e7ed)}.___SCollapseRow_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_.__expanded_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-accordion, #f4f5f9)}@media (hover:hover){.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_._theme_muted_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]._theme_muted_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_._theme_muted_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_._theme_muted_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_._theme_muted_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_._theme_muted_1sflu_gg_,.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-hover, #f0f0f4)}.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_._theme_info_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]._theme_info_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_._theme_info_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_._theme_info_1sflu_gg_,.___SRow_1sflu_gg_._theme_info_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_._theme_info_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-selected-hover, #c4e5fe)}.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_._theme_success_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]._theme_success_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_._theme_success_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_._theme_success_1sflu_gg_,.___SRow_1sflu_gg_._theme_success_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_._theme_success_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-new-hover, #9ef2c9)}.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_._theme_warning_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]._theme_warning_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_._theme_warning_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_._theme_warning_1sflu_gg_,.___SRow_1sflu_gg_._theme_warning_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_._theme_warning_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-warning-hover, #ffdca2)}.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_._theme_danger_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_[data-grouped-by=rowgroup]._theme_danger_1sflu_gg_,.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_._theme_danger_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRowGroup_1sflu_gg_:has(.___SCell_1sflu_gg_[data-grouped-by=rowgroup]:hover)>.___SRow_1sflu_gg_>.___SCell_1sflu_gg_._theme_danger_1sflu_gg_,.___SRow_1sflu_gg_._theme_danger_1sflu_gg_:hover>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_),.___SRow_1sflu_gg_:hover>.___SCell_1sflu_gg_._theme_danger_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-critical-hover, #ffd7df)}}.___SRow_1sflu_gg_._theme_muted_1sflu_gg_ .___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-unread, #f4f5f9)}.___SRow_1sflu_gg_._theme_muted_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-active, #e6e7ed)}.___SRow_1sflu_gg_._theme_info_1sflu_gg_ .___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-selected, #e9f7ff)}.___SRow_1sflu_gg_._theme_info_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-selected-active, #c4e5fe)}.___SRow_1sflu_gg_._theme_success_1sflu_gg_ .___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-new, #dbfee8)}.___SRow_1sflu_gg_._theme_success_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-new-active, #9ef2c9)}.___SRow_1sflu_gg_._theme_warning_1sflu_gg_ .___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-warning, #fff3d9)}.___SRow_1sflu_gg_._theme_warning_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-warning-active, #ffdca2)}.___SRow_1sflu_gg_._theme_danger_1sflu_gg_ .___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-critical, #fff0f7)}.___SRow_1sflu_gg_._theme_danger_1sflu_gg_.__active_1sflu_gg_>.___SCell_1sflu_gg_:not(.__theme_1sflu_gg_){background-color:var(--intergalactic-table-td-cell-critical-active, #ffd7df)}.___SCell_1sflu_gg_{display:flex;height:100%;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);color:var(--intergalactic-text-primary, #191b23);box-sizing:border-box;border-bottom:1px solid var(--intergalactic-border-secondary, #e0e1e9);overflow:hidden;white-space:pre-wrap;word-break:break-word;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;transition:width calc(var(--intergalactic-duration-extra-fast, 100)*1ms) ease-in-out;outline:0}.___SCell_1sflu_gg_ .___SAccordionToggle_1sflu_gg_{margin-right:var(--intergalactic-spacing-3x, 12px);margin-top:var(--intergalactic-spacing-05x, 2px);height:-moz-fit-content;height:fit-content}.___SCell_1sflu_gg_ .___SAccordionToggle_1sflu_gg_ svg{transition:transform calc(var(--intergalactic-duration-accordion, 200)*1ms) ease-out}.___SCell_1sflu_gg_ .___SAccordionToggle_1sflu_gg_.__expanded_1sflu_gg_ svg{transform:rotate(90deg)}.___SCheckboxCell_1sflu_gg_,.___SRow_1sflu_gg_._accordionType_cell_1sflu_gg_>.___SCell_1sflu_gg_.__withAccordion_1sflu_gg_,.___SRow_1sflu_gg_._accordionType_row_1sflu_gg_>.___SCell_1sflu_gg_{cursor:pointer}.___SCell_1sflu_gg_._use_primary_1sflu_gg_{padding:var(--intergalactic-spacing-3x, 12px);min-height:45px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SCell_1sflu_gg_._use_primary_1sflu_gg_[data-aria-level]{padding-left:calc(var(--intergalactic-spacing-3x, 12px) + ((var(--intergalactic-spacing-5x, 20px) + var(--intergalactic-spacing-2x, 8px))*(var(--data-aria-level_1sflu) - 1)))}.___SCell_1sflu_gg_._use_secondary_1sflu_gg_{padding:var(--intergalactic-spacing-2x, 8px);min-height:37px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SCell_1sflu_gg_._use_secondary_1sflu_gg_[data-aria-level]{padding-left:calc(var(--intergalactic-spacing-2x, 8px) + ((var(--intergalactic-spacing-5x, 20px) + var(--intergalactic-spacing-2x, 8px))*(var(--data-aria-level_1sflu) - 1)))}.___SCell_1sflu_gg_._borders_both_1sflu_gg_,.___SCell_1sflu_gg_._borders_left_1sflu_gg_{border-left:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SCell_1sflu_gg_._borders_both_1sflu_gg_,.___SCell_1sflu_gg_._borders_right_1sflu_gg_{border-right:1px solid var(--intergalactic-border-secondary, #e0e1e9)}.___SCell_1sflu_gg_.__fixed_1sflu_gg_{position:sticky;z-index:2}.___SCell_1sflu_gg_._theme_muted_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-unread, #f4f5f9)}.___SCell_1sflu_gg_._theme_info_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-selected, #e9f7ff)}.___SCell_1sflu_gg_._theme_success_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-new, #dbfee8)}.___SCell_1sflu_gg_._theme_warning_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-warning, #fff3d9)}.___SCell_1sflu_gg_._theme_danger_1sflu_gg_{background-color:var(--intergalactic-table-td-cell-critical, #fff0f7)}.___SSpinContainer_1sflu_gg_{position:absolute;left:0;right:0;bottom:0;top:0;display:flex;align-items:center;justify-content:center;background-color:var(--intergalactic-overlay-limitation-secondary, rgba(255, 255, 255, 0.85))}.___SSpinContainer_1sflu_gg_.__headerHeight_1sflu_gg_{top:var(--headerHeight_1sflu)}.___SEmptyData_1sflu_gg_{grid-column:1/-1}.___SRow_1sflu_gg_._sideIndents_wide_1sflu_gg_ .___SCell_1sflu_gg_:first-child{padding-left:var(--intergalactic-spacing-5x, 20px)}.___SRow_1sflu_gg_._sideIndents_wide_1sflu_gg_ .___SCell_1sflu_gg_:last-child{padding-right:var(--intergalactic-spacing-5x, 20px)}',
|
|
22
|
+
/*__inner_css_end__*/
|
|
23
|
+
"1sflu_gg_"
|
|
24
|
+
), /*__reshadow_css_end__*/
|
|
25
|
+
{
|
|
26
|
+
"__SBody": "___SBody_1sflu_gg_",
|
|
27
|
+
"__SRow": "___SRow_1sflu_gg_",
|
|
28
|
+
"__SRowGroup": "___SRowGroup_1sflu_gg_",
|
|
29
|
+
"_gridArea": "__gridArea_1sflu_gg_",
|
|
30
|
+
"__SCell": "___SCell_1sflu_gg_",
|
|
31
|
+
"__SCollapseRow": "___SCollapseRow_1sflu_gg_",
|
|
32
|
+
"--gridArea": "--gridArea_1sflu",
|
|
33
|
+
"_active": "__active_1sflu_gg_",
|
|
34
|
+
"_theme": "__theme_1sflu_gg_",
|
|
35
|
+
"_expanded": "__expanded_1sflu_gg_",
|
|
36
|
+
"_accordionType_row": "_accordionType_row_1sflu_gg_",
|
|
37
|
+
"_accordionType_cell": "_accordionType_cell_1sflu_gg_",
|
|
38
|
+
"_withAccordion": "__withAccordion_1sflu_gg_",
|
|
39
|
+
"_theme_muted": "_theme_muted_1sflu_gg_",
|
|
40
|
+
"_theme_info": "_theme_info_1sflu_gg_",
|
|
41
|
+
"_theme_success": "_theme_success_1sflu_gg_",
|
|
42
|
+
"_theme_warning": "_theme_warning_1sflu_gg_",
|
|
43
|
+
"_theme_danger": "_theme_danger_1sflu_gg_",
|
|
44
|
+
"__SCheckboxCell": "___SCheckboxCell_1sflu_gg_",
|
|
45
|
+
"_borders_both": "_borders_both_1sflu_gg_",
|
|
46
|
+
"_borders_left": "_borders_left_1sflu_gg_",
|
|
47
|
+
"_borders_right": "_borders_right_1sflu_gg_",
|
|
48
|
+
"_fixed": "__fixed_1sflu_gg_",
|
|
49
|
+
"__SSpinContainer": "___SSpinContainer_1sflu_gg_",
|
|
50
|
+
"_headerHeight": "__headerHeight_1sflu_gg_",
|
|
51
|
+
"--headerHeight": "--headerHeight_1sflu",
|
|
52
|
+
"__SEmptyData": "___SEmptyData_1sflu_gg_",
|
|
53
|
+
"_compact": "__compact_1sflu_gg_",
|
|
54
|
+
"--data-aria-level": "--data-aria-level_1sflu",
|
|
55
|
+
"__SAccordionToggle": "___SAccordionToggle_1sflu_gg_",
|
|
56
|
+
"_use_primary": "_use_primary_1sflu_gg_",
|
|
57
|
+
"_use_secondary": "_use_secondary_1sflu_gg_",
|
|
58
|
+
"_sideIndents_wide": "_sideIndents_wide_1sflu_gg_"
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
var RowRoot = /* @__PURE__ */ function(_Component) {
|
|
62
|
+
_inherits(RowRoot2, _Component);
|
|
63
|
+
var _super = _createSuper(RowRoot2);
|
|
64
|
+
function RowRoot2() {
|
|
65
|
+
var _this;
|
|
66
|
+
_classCallCheck(this, RowRoot2);
|
|
67
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
68
|
+
args[_key] = arguments[_key];
|
|
69
|
+
}
|
|
70
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
71
|
+
_defineProperty(_assertThisInitialized(_this), "cellIndex", -1);
|
|
72
|
+
_defineProperty(_assertThisInitialized(_this), "handleSelectRow", function(value, event) {
|
|
73
|
+
var _this$asProps = _this.asProps, row = _this$asProps.row, rowIndex = _this$asProps.rowIndex, onSelectRow = _this$asProps.onSelectRow;
|
|
74
|
+
onSelectRow === null || onSelectRow === void 0 ? void 0 : onSelectRow(value, rowIndex, row, event);
|
|
75
|
+
});
|
|
76
|
+
_defineProperty(_assertThisInitialized(_this), "handleClickCheckbox", function(value) {
|
|
77
|
+
return function(event) {
|
|
78
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
79
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
80
|
+
var _this$asProps2 = _this.asProps, row = _this$asProps2.row, rowIndex = _this$asProps2.rowIndex, onSelectRow = _this$asProps2.onSelectRow;
|
|
81
|
+
onSelectRow === null || onSelectRow === void 0 ? void 0 : onSelectRow(value, rowIndex, row, event);
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "handleBackFromAccordion", function(e) {
|
|
85
|
+
if (e.key === "Escape") {
|
|
86
|
+
_this.asProps.onBackFromAccordion(_this.cellIndex);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
return _this;
|
|
90
|
+
}
|
|
91
|
+
_createClass(RowRoot2, [{
|
|
92
|
+
key: "cellHasAccordion",
|
|
93
|
+
value: function cellHasAccordion(cellValue) {
|
|
94
|
+
return !(cellValue instanceof MergedRowsCell || cellValue instanceof MergedColumnsCell) && Boolean(cellValue === null || cellValue === void 0 ? void 0 : cellValue[ACCORDION]);
|
|
95
|
+
}
|
|
96
|
+
}, {
|
|
97
|
+
key: "render",
|
|
98
|
+
value: function render() {
|
|
99
|
+
var _ref = this.asProps, _ref2, _this2 = this, _scrollAreaRef$curren, _row$ACCORDION;
|
|
100
|
+
var SRow = Box;
|
|
101
|
+
var SCollapseRow = Collapse;
|
|
102
|
+
var SCell = Body.Cell;
|
|
103
|
+
var SCheckboxCell = Body.Cell;
|
|
104
|
+
var _this$asProps3 = this.asProps, columns = _this$asProps3.columns, row = _this$asProps3.row, styles = _this$asProps3.styles, rowIndex = _this$asProps3.rowIndex, ariaRowIndex = _this$asProps3.ariaRowIndex, gridRowIndex = _this$asProps3.gridRowIndex, expanded = _this$asProps3.expanded, accordionDataGridArea = _this$asProps3.accordionDataGridArea;
|
|
105
|
+
_this$asProps3.expandedRows;
|
|
106
|
+
_this$asProps3.onExpandRow;
|
|
107
|
+
var _this$asProps3$ariaL = _this$asProps3["aria-level"], ariaLevel = _this$asProps3$ariaL === void 0 ? 1 : _this$asProps3$ariaL, scrollAreaRef = _this$asProps3.scrollAreaRef, selectedRows = _this$asProps3.selectedRows, uid = _this$asProps3.uid, getFixedStyle = _this$asProps3.getFixedStyle;
|
|
108
|
+
var accordion = row[ACCORDION];
|
|
109
|
+
var accordionType = accordion ? "row" : void 0;
|
|
110
|
+
if (!accordion) {
|
|
111
|
+
var cells = Object.values(row);
|
|
112
|
+
var cellWithAccordionIndex = cells.findIndex(function(value) {
|
|
113
|
+
return _this2.cellHasAccordion(value);
|
|
114
|
+
});
|
|
115
|
+
this.cellIndex = cellWithAccordionIndex;
|
|
116
|
+
var cellWithAccordion = cells[cellWithAccordionIndex];
|
|
117
|
+
accordion = cellWithAccordion === null || cellWithAccordion === void 0 ? void 0 : cellWithAccordion[ACCORDION];
|
|
118
|
+
accordionType = "cell";
|
|
119
|
+
}
|
|
120
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SRow, _ref2.cn("SRow", _objectSpread({}, assignProps({
|
|
121
|
+
"role": "row",
|
|
122
|
+
"aria-rowindex": ariaRowIndex,
|
|
123
|
+
"accordionType": accordionType,
|
|
124
|
+
"theme": selectedRows !== null && selectedRows !== void 0 && selectedRows.includes(rowIndex) ? "info" : void 0
|
|
125
|
+
}, _ref))), columns.map(function(column, i) {
|
|
126
|
+
if (selectedRows && i === 0) {
|
|
127
|
+
var _ref3;
|
|
128
|
+
var checked = selectedRows.includes(rowIndex);
|
|
129
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SCheckboxCell, _ref3.cn("SCheckboxCell", {
|
|
130
|
+
"key": i,
|
|
131
|
+
"row": row,
|
|
132
|
+
"rowIndex": rowIndex,
|
|
133
|
+
"column": {
|
|
134
|
+
name: SELECT_ALL.toString()
|
|
135
|
+
},
|
|
136
|
+
"columnIndex": 0,
|
|
137
|
+
"gridRowIndex": gridRowIndex,
|
|
138
|
+
"onClick": _this2.handleClickCheckbox(!checked)
|
|
139
|
+
}), /* @__PURE__ */ React.createElement(Checkbox, _ref3.cn("Checkbox", {
|
|
140
|
+
"checked": checked,
|
|
141
|
+
"aria-labelledby": "".concat(uid, "_").concat(ariaRowIndex, "_1"),
|
|
142
|
+
"onChange": _this2.handleSelectRow
|
|
143
|
+
})));
|
|
144
|
+
}
|
|
145
|
+
var index = i;
|
|
146
|
+
var cellValue = row[column.name];
|
|
147
|
+
if (cellValue === void 0) {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
var style2 = {};
|
|
151
|
+
if (column.fixed) {
|
|
152
|
+
var _getFixedStyle = getFixedStyle(column), _getFixedStyle2 = _slicedToArray(_getFixedStyle, 2), name = _getFixedStyle2[0], value = _getFixedStyle2[1];
|
|
153
|
+
if (name !== void 0 && value !== void 0) {
|
|
154
|
+
style2[name] = value;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return /* @__PURE__ */ React.createElement(Body.Cell, {
|
|
158
|
+
key: index,
|
|
159
|
+
id: "".concat(uid, "_").concat(ariaRowIndex, "_").concat(index),
|
|
160
|
+
accordionId: "".concat(uid, "_").concat(ariaRowIndex + 1),
|
|
161
|
+
"data-aria-level": index === 0 ? ariaLevel : void 0,
|
|
162
|
+
row,
|
|
163
|
+
rowIndex,
|
|
164
|
+
gridRowIndex,
|
|
165
|
+
columnIndex: index,
|
|
166
|
+
style: style2,
|
|
167
|
+
column,
|
|
168
|
+
withAccordion: _this2.cellHasAccordion(cellValue)
|
|
169
|
+
});
|
|
170
|
+
})), /* @__PURE__ */ React.isValidElement(accordion) && /* @__PURE__ */ React.createElement(SCollapseRow, _ref2.cn("SCollapseRow", {
|
|
171
|
+
"key": rowIndex,
|
|
172
|
+
"role": "row",
|
|
173
|
+
"aria-rowindex": ariaRowIndex + 1,
|
|
174
|
+
"id": "".concat(uid, "_").concat(ariaRowIndex + 1),
|
|
175
|
+
"visible": expanded,
|
|
176
|
+
"interactive": true,
|
|
177
|
+
"gridArea": accordionDataGridArea,
|
|
178
|
+
"duration": 200,
|
|
179
|
+
"zIndex": 5
|
|
180
|
+
}), /* @__PURE__ */ React.createElement(SCell, _ref2.cn("SCell", {
|
|
181
|
+
"aria-colindex": 1,
|
|
182
|
+
"aria-level": ariaLevel + 1,
|
|
183
|
+
"aria-setsize": 1,
|
|
184
|
+
"aria-posinset": 1,
|
|
185
|
+
"row": row,
|
|
186
|
+
"rowIndex": rowIndex + 1,
|
|
187
|
+
"columnIndex": 1,
|
|
188
|
+
"column": {
|
|
189
|
+
name: ACCORDION
|
|
190
|
+
},
|
|
191
|
+
"position": "sticky",
|
|
192
|
+
"left": 0,
|
|
193
|
+
"w": (_scrollAreaRef$curren = scrollAreaRef.current) === null || _scrollAreaRef$curren === void 0 ? void 0 : _scrollAreaRef$curren.clientWidth,
|
|
194
|
+
"onKeyDown": this.handleBackFromAccordion
|
|
195
|
+
}), accordion)), row[ACCORDION] && Array.isArray(row[ACCORDION]) && expanded && ((_row$ACCORDION = row[ACCORDION]) === null || _row$ACCORDION === void 0 ? void 0 : _row$ACCORDION.map(function(subrow, i) {
|
|
196
|
+
return /* @__PURE__ */ React.createElement(Row, {
|
|
197
|
+
key: i,
|
|
198
|
+
row: subrow,
|
|
199
|
+
columns,
|
|
200
|
+
rows: row[ACCORDION],
|
|
201
|
+
rowIndex,
|
|
202
|
+
"aria-posinset": i + 1,
|
|
203
|
+
"aria-level": ariaLevel + 1,
|
|
204
|
+
ariaRowIndex: ariaRowIndex + 1 + i,
|
|
205
|
+
gridRowIndex: gridRowIndex + 1 + i,
|
|
206
|
+
expanded: true,
|
|
207
|
+
getFixedStyle
|
|
208
|
+
});
|
|
209
|
+
})));
|
|
210
|
+
}
|
|
211
|
+
}]);
|
|
212
|
+
return RowRoot2;
|
|
213
|
+
}(Component);
|
|
214
|
+
_defineProperty(RowRoot, "displayName", "Row");
|
|
215
|
+
_defineProperty(RowRoot, "style", style);
|
|
216
|
+
_defineProperty(RowRoot, "defaultProps", {
|
|
217
|
+
"aria-level": void 0
|
|
218
|
+
});
|
|
219
|
+
var Row = createComponent(RowRoot, {}, {
|
|
220
|
+
parent: Body
|
|
221
|
+
});
|
|
222
|
+
export {
|
|
223
|
+
Row
|
|
224
|
+
};
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
SBody, SRow, SRowGroup {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
SBody[compact] {
|
|
6
|
+
SCell {
|
|
7
|
+
padding: var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-2x, 8px);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
SCell[data-aria-level] {
|
|
11
|
+
padding-left: calc(var(--intergalactic-spacing-2x, 8px) + (var(--intergalactic-spacing-5x, 20px) * (var(--data-aria-level) - 1)));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
SRow[gridArea], SCell[gridArea], SCollapseRow[gridArea] {
|
|
16
|
+
grid-area: var(--gridArea);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
SCollapseRow SCell {
|
|
20
|
+
display: block;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* DEFAULT THEME */
|
|
24
|
+
SRow[active] > SCell:not([theme]) {
|
|
25
|
+
/* The color is hardcoded because need hex(in figma rgba) */
|
|
26
|
+
/* disable-tokens-validator */
|
|
27
|
+
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
SRow[expanded][accordionType='row'] > SCell:not([theme]) {
|
|
31
|
+
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
SRow[expanded][accordionType='cell'] > SCell:not([theme])[withAccordion] {
|
|
35
|
+
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
SCollapseRow > SCell:not([theme]), SRow[expanded] > SCell:not([theme]) {
|
|
39
|
+
background-color: var(--intergalactic-table-td-cell-accordion, #f4f5f9);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* we need a media query here because of the postcssHoverMediaFeature plugin. it doesn't handle this type of selectors correctly */
|
|
43
|
+
@media (hover: hover) {
|
|
44
|
+
SRow:hover > SCell:not([theme]),
|
|
45
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell:not([theme]),
|
|
46
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
47
|
+
background-color: var(--intergalactic-table-td-cell-hover, #f0f0f4);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* MUTED THEME */
|
|
51
|
+
SRow:hover > SCell[theme='muted'],
|
|
52
|
+
SRow[theme='muted']:hover > SCell:not([theme]),
|
|
53
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='muted'],
|
|
54
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='muted'] > SCell:not([theme]),
|
|
55
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='muted'],
|
|
56
|
+
SRowGroup:has(SCell:hover) > SRow[theme='muted'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
57
|
+
/* The color is hardcoded because need hex(in figma rgba) */
|
|
58
|
+
/* disable-tokens-validator */
|
|
59
|
+
background-color: var(--intergalactic-table-td-cell-hover, #f0f0f4);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* INFO THEME */
|
|
63
|
+
SRow:hover > SCell[theme='info'],
|
|
64
|
+
SRow[theme='info']:hover > SCell:not([theme]),
|
|
65
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='info'],
|
|
66
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='info'] > SCell:not([theme]),
|
|
67
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='info'],
|
|
68
|
+
SRowGroup:has(SCell:hover) > SRow[theme='info'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
69
|
+
background-color: var(--intergalactic-table-td-cell-selected-hover, #c4e5fe);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* SUCCESS THEME */
|
|
73
|
+
SRow:hover > SCell[theme='success'],
|
|
74
|
+
SRow[theme='success']:hover > SCell:not([theme]),
|
|
75
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='success'],
|
|
76
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='success'] > SCell:not([theme]),
|
|
77
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='success'],
|
|
78
|
+
SRowGroup:has(SCell:hover) > SRow[theme='success'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
79
|
+
background-color: var(--intergalactic-table-td-cell-new-hover, #9ef2c9);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* WARNING THEME */
|
|
83
|
+
SRow:hover > SCell[theme='warning'],
|
|
84
|
+
SRow[theme='warning']:hover > SCell:not([theme]),
|
|
85
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='warning'],
|
|
86
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='warning'] > SCell:not([theme]),
|
|
87
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='warning'],
|
|
88
|
+
SRowGroup:has(SCell:hover) > SRow[theme='warning'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
89
|
+
background-color: var(--intergalactic-table-td-cell-warning-hover, #ffdca2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* DANGER THEME */
|
|
93
|
+
SRow:hover > SCell[theme='danger'],
|
|
94
|
+
SRow[theme='danger']:hover > SCell:not([theme]),
|
|
95
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow > SCell[theme='danger'],
|
|
96
|
+
SRowGroup:has(SCell[data-grouped-by='rowgroup']:hover) > SRow[theme='danger'] > SCell:not([theme]),
|
|
97
|
+
SRowGroup:has(SCell:hover) > SRow > SCell[data-grouped-by='rowgroup'][theme='danger'],
|
|
98
|
+
SRowGroup:has(SCell:hover) > SRow[theme='danger'] > SCell[data-grouped-by='rowgroup']:not([theme]) {
|
|
99
|
+
background-color: var(--intergalactic-table-td-cell-critical-hover, #ffd7df);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* MUTED THEME */
|
|
104
|
+
SRow[theme='muted'] SCell:not([theme]) {
|
|
105
|
+
background-color: var(--intergalactic-table-td-cell-unread, #f4f5f9);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
SRow[theme='muted'][active] > SCell:not([theme]) {
|
|
109
|
+
/* The color is hardcoded because need hex(in figma rgba) */
|
|
110
|
+
/* disable-tokens-validator */
|
|
111
|
+
background-color: var(--intergalactic-table-td-cell-active, #e6e7ed);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* INFO THEME */
|
|
115
|
+
SRow[theme='info'] SCell:not([theme]) {
|
|
116
|
+
background-color: var(--intergalactic-table-td-cell-selected, #e9f7ff);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
SRow[theme='info'][active] > SCell:not([theme]) {
|
|
120
|
+
background-color: var(--intergalactic-table-td-cell-selected-active, #c4e5fe);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* SUCCESS THEME */
|
|
124
|
+
SRow[theme='success'] SCell:not([theme]) {
|
|
125
|
+
background-color: var(--intergalactic-table-td-cell-new, #dbfee8);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
SRow[theme='success'][active] > SCell:not([theme]) {
|
|
129
|
+
background-color: var(--intergalactic-table-td-cell-new-active, #9ef2c9);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* WARNING THEME */
|
|
133
|
+
SRow[theme='warning'] SCell:not([theme]) {
|
|
134
|
+
background-color: var(--intergalactic-table-td-cell-warning, #fff3d9);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
SRow[theme='warning'][active] > SCell:not([theme]) {
|
|
138
|
+
background-color: var(--intergalactic-table-td-cell-warning-active, #ffdca2);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* DANGER THEME */
|
|
142
|
+
SRow[theme='danger'] SCell:not([theme]) {
|
|
143
|
+
background-color: var(--intergalactic-table-td-cell-critical, #fff0f7);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
SRow[theme='danger'][active] > SCell:not([theme]) {
|
|
147
|
+
background-color: var(--intergalactic-table-td-cell-critical-active, #ffd7df);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
SCell {
|
|
151
|
+
display: flex;
|
|
152
|
+
height: 100%;
|
|
153
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
154
|
+
line-height: var(--intergalactic-lh-200, 142%);
|
|
155
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
border-bottom: 1px solid var(--intergalactic-border-secondary, #e0e1e9);
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
white-space: pre-wrap;
|
|
160
|
+
word-break: break-word;
|
|
161
|
+
font-variant-numeric: tabular-nums;
|
|
162
|
+
transition: width calc(var(--intergalactic-duration-extra-fast, 100) * 1ms) ease-in-out;
|
|
163
|
+
outline: none;
|
|
164
|
+
|
|
165
|
+
SAccordionToggle {
|
|
166
|
+
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
167
|
+
margin-top: var(--intergalactic-spacing-05x, 2px);
|
|
168
|
+
height: fit-content;
|
|
169
|
+
|
|
170
|
+
svg {
|
|
171
|
+
transition: transform calc(var(--intergalactic-duration-accordion, 200) * 1ms) ease-out;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&[expanded] svg {
|
|
175
|
+
transform: rotate(90deg);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
SRow[accordionType='row'] > SCell, SRow[accordionType='cell'] > SCell[withAccordion], SCheckboxCell {
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
SCell[use='primary'] {
|
|
185
|
+
padding: var(--intergalactic-spacing-3x, 12px);
|
|
186
|
+
min-height: 45px;
|
|
187
|
+
background-color: var(--intergalactic-bg-primary-neutral, #ffffff);
|
|
188
|
+
|
|
189
|
+
&[data-aria-level] {
|
|
190
|
+
padding-left: calc(var(--intergalactic-spacing-3x, 12px) + ((var(--intergalactic-spacing-5x, 20px) + var(--intergalactic-spacing-2x, 8px)) * (var(--data-aria-level) - 1)));
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
SCell[use='secondary'] {
|
|
195
|
+
padding: var(--intergalactic-spacing-2x, 8px);
|
|
196
|
+
min-height: 37px;
|
|
197
|
+
background-color: var(--intergalactic-bg-primary-neutral, #ffffff);
|
|
198
|
+
|
|
199
|
+
&[data-aria-level] {
|
|
200
|
+
padding-left: calc(var(--intergalactic-spacing-2x, 8px) + ((var(--intergalactic-spacing-5x, 20px) + var(--intergalactic-spacing-2x, 8px)) * (var(--data-aria-level) - 1)));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
SCell[borders='both'], SCell[borders='left'] {
|
|
205
|
+
border-left: 1px solid var(--intergalactic-border-secondary, #e0e1e9);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
SCell[borders='both'], SCell[borders='right'] {
|
|
209
|
+
border-right: 1px solid var(--intergalactic-border-secondary, #e0e1e9);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
SCell[fixed] {
|
|
213
|
+
position: sticky;
|
|
214
|
+
z-index: 2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
SCell[theme='muted'] {
|
|
218
|
+
background-color: var(--intergalactic-table-td-cell-unread, #f4f5f9);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
SCell[theme='info'] {
|
|
222
|
+
background-color: var(--intergalactic-table-td-cell-selected, #e9f7ff);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
SCell[theme='success'] {
|
|
226
|
+
background-color: var(--intergalactic-table-td-cell-new, #dbfee8);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
SCell[theme='warning'] {
|
|
230
|
+
background-color: var(--intergalactic-table-td-cell-warning, #fff3d9);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
SCell[theme='danger'] {
|
|
234
|
+
background-color: var(--intergalactic-table-td-cell-critical, #fff0f7);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
SSpinContainer {
|
|
238
|
+
position: absolute;
|
|
239
|
+
left: 0;
|
|
240
|
+
right: 0;
|
|
241
|
+
bottom: 0;
|
|
242
|
+
top: 0;
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
background-color: var(--intergalactic-overlay-limitation-secondary, rgba(255, 255, 255, 0.85));
|
|
247
|
+
}
|
|
248
|
+
SSpinContainer[headerHeight] {
|
|
249
|
+
top: var(--headerHeight);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
SEmptyData {
|
|
253
|
+
grid-column: 1 / -1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
SRow[sideIndents='wide'] {
|
|
257
|
+
SCell:first-child {
|
|
258
|
+
padding-left: var(--intergalactic-spacing-5x, 20px);
|
|
259
|
+
}
|
|
260
|
+
SCell:last-child {
|
|
261
|
+
padding-right: var(--intergalactic-spacing-5x, 20px);
|
|
262
|
+
}
|
|
263
|
+
}
|