@astronox/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +66 -0
- package/package.json +77 -0
- package/src/client/clipboard.ts +7 -0
- package/src/client/focus.ts +17 -0
- package/src/client/index.ts +3 -0
- package/src/client/scroll.ts +15 -0
- package/src/components/actions/ActionListItem/ActionListItem.astro +78 -0
- package/src/components/actions/ActionListItem/ActionListItem.css +43 -0
- package/src/components/actions/Button/Button.astro +100 -0
- package/src/components/actions/Button/Button.css +165 -0
- package/src/components/actions/CardAction/CardAction.astro +97 -0
- package/src/components/actions/CardAction/CardAction.css +188 -0
- package/src/components/actions/MediaTrigger/MediaTrigger.astro +55 -0
- package/src/components/actions/MediaTrigger/MediaTrigger.css +175 -0
- package/src/components/actions/ScrollToTop/ScrollToTop.astro +36 -0
- package/src/components/actions/ScrollToTop/ScrollToTop.css +19 -0
- package/src/components/actions/ScrollToTop/scrollToTopController.ts +32 -0
- package/src/components/content/CardBody/CardBody.astro +31 -0
- package/src/components/content/CardBody/CardBody.css +74 -0
- package/src/components/content/CardFooter/CardFooter.astro +58 -0
- package/src/components/content/CardFooter/CardFooter.css +102 -0
- package/src/components/content/CardHeader/CardHeader.astro +96 -0
- package/src/components/content/CardHeader/CardHeader.css +164 -0
- package/src/components/content/CardLink/CardLink.astro +138 -0
- package/src/components/content/CardLink/CardLink.css +362 -0
- package/src/components/content/CodeBlock/CodeBlock.astro +102 -0
- package/src/components/content/CodeBlock/CodeBlock.css +85 -0
- package/src/components/content/CodeBlock/codeBlockController.ts +60 -0
- package/src/components/content/CodeBlock/contracts.ts +8 -0
- package/src/components/content/InlineDefinition/InlineDefinition.astro +31 -0
- package/src/components/content/InlineDefinition/InlineDefinition.css +9 -0
- package/src/components/content/MarkdownContent/MarkdownContent.astro +32 -0
- package/src/components/content/MarkdownContent/MarkdownContent.css +358 -0
- package/src/components/content/MarkdownContent/MarkdownInline.astro +44 -0
- package/src/components/content/MarkdownContent/MarkdownNode.astro +280 -0
- package/src/components/content/MarkdownContent/MarkdownSymbol.astro +47 -0
- package/src/components/content/MarkdownContent/contracts.ts +181 -0
- package/src/components/data-display/BadgeList/BadgeList.astro +54 -0
- package/src/components/data-display/BadgeList/BadgeList.css +29 -0
- package/src/components/data-display/IconList/IconList.astro +64 -0
- package/src/components/data-display/IconList/IconList.css +55 -0
- package/src/components/data-display/MetricTile/MetricTile.astro +68 -0
- package/src/components/data-display/MetricTile/MetricTile.css +103 -0
- package/src/components/data-display/MetricTile/MetricTileContent.astro +70 -0
- package/src/components/data-display/MetricTile/metricTileController.ts +9 -0
- package/src/components/data-display/Tag/Tag.astro +67 -0
- package/src/components/data-display/Tag/Tag.css +134 -0
- package/src/components/data-display/Tag/TagAffix.astro +33 -0
- package/src/components/data-display/TextPair/TextPair.astro +63 -0
- package/src/components/data-display/TextPair/TextPair.css +99 -0
- package/src/components/feedback/Spinner/Spinner.astro +32 -0
- package/src/components/feedback/Spinner/Spinner.css +37 -0
- package/src/components/feedback/Tooltip/Tooltip.astro +66 -0
- package/src/components/feedback/Tooltip/Tooltip.css +67 -0
- package/src/components/feedback/Tooltip/tooltipController.ts +371 -0
- package/src/components/forms/FieldError/FieldError.astro +31 -0
- package/src/components/forms/FieldError/FieldError.css +12 -0
- package/src/components/forms/FieldError/fieldErrorState.ts +21 -0
- package/src/components/forms/FieldLabel/FieldLabel.astro +32 -0
- package/src/components/forms/FieldLabel/FieldLabel.css +17 -0
- package/src/components/forms/TextInput/TextInput.astro +79 -0
- package/src/components/forms/TextInput/TextInput.css +121 -0
- package/src/components/forms/TextInput/textInputController.ts +53 -0
- package/src/components/icons/ArrowDownIcon.astro +26 -0
- package/src/components/icons/ArrowLeftIcon.astro +26 -0
- package/src/components/icons/ArrowRightIcon.astro +26 -0
- package/src/components/icons/ArrowUpDownIcon.astro +26 -0
- package/src/components/icons/ArrowUpIcon.astro +26 -0
- package/src/components/icons/BulletIcon.astro +21 -0
- package/src/components/icons/BurnIcon.astro +24 -0
- package/src/components/icons/CircleSymbolIcon.css +66 -0
- package/src/components/icons/ClearIcon.astro +28 -0
- package/src/components/icons/CloseIcon.astro +21 -0
- package/src/components/icons/CopyIcon.astro +30 -0
- package/src/components/icons/CurrencyIcon.css +9 -0
- package/src/components/icons/DayIcon.astro +33 -0
- package/src/components/icons/DollarIcon.astro +28 -0
- package/src/components/icons/DownloadIcon.astro +22 -0
- package/src/components/icons/EnterFullscreenIcon.astro +22 -0
- package/src/components/icons/EqualIcon.astro +25 -0
- package/src/components/icons/ExitFullscreenIcon.astro +22 -0
- package/src/components/icons/ExternalLinkIcon.astro +22 -0
- package/src/components/icons/FieldIcon.astro +28 -0
- package/src/components/icons/GrassIcon.astro +29 -0
- package/src/components/icons/InfoIcon.astro +24 -0
- package/src/components/icons/MinusIcon.astro +21 -0
- package/src/components/icons/MountainIcon.astro +31 -0
- package/src/components/icons/NightIcon.astro +32 -0
- package/src/components/icons/PlayIcon.astro +22 -0
- package/src/components/icons/PlusIcon.astro +21 -0
- package/src/components/icons/PoisonIcon.astro +24 -0
- package/src/components/icons/RibbonIcon.astro +25 -0
- package/src/components/icons/SlashIcon.astro +22 -0
- package/src/components/icons/SlowIcon.astro +25 -0
- package/src/components/icons/StarIcon.astro +28 -0
- package/src/components/icons/StunIcon.astro +22 -0
- package/src/components/icons/TableSortIcon.astro +34 -0
- package/src/components/icons/WaterIcon.astro +30 -0
- package/src/components/index.ts +83 -0
- package/src/components/media/CanvasFrame/CanvasFrame.astro +130 -0
- package/src/components/media/CanvasFrame/CanvasFrame.css +59 -0
- package/src/components/media/CanvasFrame/canvasFrameController.ts +104 -0
- package/src/components/media/EmbedFrame/EmbedFrame.astro +147 -0
- package/src/components/media/EmbedFrame/EmbedFrame.css +51 -0
- package/src/components/media/EmbedFrame/embedFrameController.ts +66 -0
- package/src/components/media/MediaFrame/MediaFrame.astro +34 -0
- package/src/components/media/MediaFrame/MediaFrame.css +66 -0
- package/src/components/navigation/Breadcrumbs/Breadcrumbs.astro +55 -0
- package/src/components/navigation/Breadcrumbs/Breadcrumbs.css +89 -0
- package/src/components/navigation/DesktopNavigation.astro +92 -0
- package/src/components/navigation/DesktopNavigation.css +99 -0
- package/src/components/navigation/Header.astro +73 -0
- package/src/components/navigation/Header.css +20 -0
- package/src/components/navigation/MobileNavigation.astro +124 -0
- package/src/components/navigation/MobileNavigation.css +177 -0
- package/src/components/navigation/NavigationBrand.astro +63 -0
- package/src/components/navigation/NavigationBrand.css +52 -0
- package/src/components/navigation/NavigationControl.css +166 -0
- package/src/components/navigation/NavigationItemContent.astro +24 -0
- package/src/components/navigation/NavigationLink.astro +121 -0
- package/src/components/navigation/NavigationLinks.astro +27 -0
- package/src/components/navigation/NavigationMenuList.astro +37 -0
- package/src/components/navigation/NavigationMenuList.css +6 -0
- package/src/components/navigation/SkipLink/SkipLink.astro +18 -0
- package/src/components/navigation/SkipLink/SkipLink.css +26 -0
- package/src/components/navigation/SubNavigation/SubNavigation.astro +124 -0
- package/src/components/navigation/SubNavigation/SubNavigation.css +211 -0
- package/src/components/navigation/mobileNavigationController.ts +122 -0
- package/src/components/navigation/navigationState.ts +35 -0
- package/src/components/navigation/navigationTypes.ts +18 -0
- package/src/components/seo/SeoHead.astro +194 -0
- package/src/components/widgetTypes.ts +3 -0
- package/src/composition/Grid/Grid.astro +82 -0
- package/src/composition/Grid/Grid.css +314 -0
- package/src/composition/GridItem/GridItem.astro +50 -0
- package/src/composition/GridItem/GridItem.css +95 -0
- package/src/composition/Inline/Inline.astro +48 -0
- package/src/composition/Inline/Inline.css +65 -0
- package/src/composition/Stack/Stack.astro +37 -0
- package/src/composition/Stack/Stack.css +31 -0
- package/src/composition/SurfaceGroup/SurfaceGroup.astro +44 -0
- package/src/composition/SurfaceGroup/SurfaceGroup.css +76 -0
- package/src/composition/SurfaceGroup/stickySurfaceGroupController.ts +89 -0
- package/src/composition/index.ts +6 -0
- package/src/config/index.ts +2 -0
- package/src/config/pageMeta.ts +55 -0
- package/src/config/siteConfig.ts +90 -0
- package/src/data/collectionValidation.ts +61 -0
- package/src/data/index.ts +1 -0
- package/src/display/contracts.ts +284 -0
- package/src/display/index.ts +1 -0
- package/src/index.ts +6 -0
- package/src/layouts/BaseLayout.astro +74 -0
- package/src/layouts/PageSurface.astro +15 -0
- package/src/layouts/PageSurface.css +24 -0
- package/src/layouts/index.ts +2 -0
- package/src/patterns/CircuitPuzzle/CircuitPuzzle.astro +93 -0
- package/src/patterns/CircuitPuzzle/CircuitPuzzle.css +118 -0
- package/src/patterns/CircuitPuzzle/circuitPuzzleController.ts +205 -0
- package/src/patterns/CircuitPuzzle/contracts.ts +42 -0
- package/src/patterns/Combobox/Combobox.astro +462 -0
- package/src/patterns/Combobox/Combobox.css +403 -0
- package/src/patterns/Combobox/comboboxController.ts +788 -0
- package/src/patterns/Combobox/contracts.ts +18 -0
- package/src/patterns/Dropdown/Dropdown.astro +127 -0
- package/src/patterns/Dropdown/Dropdown.css +100 -0
- package/src/patterns/Dropdown/dropdownController.ts +157 -0
- package/src/patterns/Fullscreen/FullscreenControl.astro +103 -0
- package/src/patterns/Fullscreen/FullscreenControl.css +49 -0
- package/src/patterns/Fullscreen/fullscreenController.ts +73 -0
- package/src/patterns/GlitchOverlay/GlitchOverlay.astro +50 -0
- package/src/patterns/GlitchOverlay/GlitchOverlay.css +234 -0
- package/src/patterns/GlitchOverlay/glitchOverlayController.ts +152 -0
- package/src/patterns/GuidedFlow/GuidedFlow.astro +60 -0
- package/src/patterns/GuidedFlow/GuidedFlow.css +82 -0
- package/src/patterns/GuidedFlow/contracts.ts +3 -0
- package/src/patterns/GuidedFlow/guidedFlowController.ts +49 -0
- package/src/patterns/MagneticFieldPuzzle/MagneticFieldPuzzle.astro +217 -0
- package/src/patterns/MagneticFieldPuzzle/MagneticFieldPuzzle.css +383 -0
- package/src/patterns/MagneticFieldPuzzle/contracts.ts +81 -0
- package/src/patterns/MagneticFieldPuzzle/magneticFieldPuzzleController.ts +802 -0
- package/src/patterns/MagneticFieldPuzzle/simulation.ts +244 -0
- package/src/patterns/MapViewport/MapViewport.astro +296 -0
- package/src/patterns/MapViewport/MapViewport.css +257 -0
- package/src/patterns/MapViewport/contracts.ts +79 -0
- package/src/patterns/MapViewport/geometry.ts +80 -0
- package/src/patterns/MapViewport/mapViewportController.ts +636 -0
- package/src/patterns/Modal/Modal.astro +64 -0
- package/src/patterns/Modal/Modal.css +87 -0
- package/src/patterns/Modal/ModalClose.astro +37 -0
- package/src/patterns/Modal/ModalOpen.astro +36 -0
- package/src/patterns/Modal/modalController.ts +118 -0
- package/src/patterns/PuzzleGrid/PuzzleGrid.astro +22 -0
- package/src/patterns/PuzzleGrid/PuzzleGrid.css +149 -0
- package/src/patterns/PuzzleGrid/contracts.ts +2 -0
- package/src/patterns/PuzzleGrid/selectionDismissal.ts +27 -0
- package/src/patterns/PuzzleGrid/state.ts +25 -0
- package/src/patterns/SpriteProjectilePreview/SpriteProjectilePreview.astro +65 -0
- package/src/patterns/SpriteProjectilePreview/SpriteProjectilePreview.css +35 -0
- package/src/patterns/SpriteProjectilePreview/contracts.ts +33 -0
- package/src/patterns/SpriteProjectilePreview/spriteProjectilePreviewController.ts +586 -0
- package/src/patterns/StageFlow/StageFlow.astro +57 -0
- package/src/patterns/StageFlow/StageFlow.css +54 -0
- package/src/patterns/StageFlow/StageFlowAlternative.astro +23 -0
- package/src/patterns/StageFlow/StageFlowArrow.astro +22 -0
- package/src/patterns/StageFlow/StageFlowConnector.astro +7 -0
- package/src/patterns/StageFlow/StageFlowConnector.css +4 -0
- package/src/patterns/StageFlow/StageFlowStage.astro +51 -0
- package/src/patterns/StageFlow/StageFlowStage.css +106 -0
- package/src/patterns/StageFlow/StageFlowStep.astro +24 -0
- package/src/patterns/StageFlow/StageFlowStep.css +19 -0
- package/src/patterns/StageFlow/StageFlowSymbol.css +28 -0
- package/src/patterns/Table/Table.astro +176 -0
- package/src/patterns/Table/Table.css +70 -0
- package/src/patterns/Table/TableBody.astro +185 -0
- package/src/patterns/Table/TableBody.css +262 -0
- package/src/patterns/Table/TableCell.astro +59 -0
- package/src/patterns/Table/TableCell.css +99 -0
- package/src/patterns/Table/TableCellValue.astro +86 -0
- package/src/patterns/Table/TableFooter.astro +32 -0
- package/src/patterns/Table/TableFooter.css +31 -0
- package/src/patterns/Table/TableHeader.astro +118 -0
- package/src/patterns/Table/TableHeader.css +209 -0
- package/src/patterns/Table/TablePagination.astro +70 -0
- package/src/patterns/Table/TablePagination.css +133 -0
- package/src/patterns/Table/TableSkeleton.astro +36 -0
- package/src/patterns/Table/TableSkeleton.css +81 -0
- package/src/patterns/Table/tableCellController.ts +11 -0
- package/src/patterns/Table/tableFilterController.ts +206 -0
- package/src/patterns/Table/tableHeaderOverflowController.ts +105 -0
- package/src/patterns/Table/tableLayout.ts +113 -0
- package/src/patterns/Table/tableProgressiveController.ts +319 -0
- package/src/patterns/Table/tableRowNavigationController.ts +91 -0
- package/src/patterns/Table/tableScrollController.ts +192 -0
- package/src/patterns/Table/tableSortController.ts +272 -0
- package/src/patterns/index.ts +46 -0
- package/src/primitives/index.ts +4 -0
- package/src/primitives/layout/Separator/Separator.astro +29 -0
- package/src/primitives/layout/Separator/Separator.css +20 -0
- package/src/primitives/media/AmbientAudio/AmbientAudio.astro +28 -0
- package/src/primitives/media/Media/Media.astro +122 -0
- package/src/primitives/media/Media/Media.css +161 -0
- package/src/primitives/text/TextBlock/TextBlock.astro +46 -0
- package/src/primitives/text/TextBlock/TextBlock.css +21 -0
- package/src/seo/StaticRedirect.astro +32 -0
- package/src/seo/index.ts +6 -0
- package/src/seo/pageSeo.ts +99 -0
- package/src/seo/robots.ts +16 -0
- package/src/seo/sitemap.ts +38 -0
- package/src/seo/structuredData.ts +133 -0
- package/src/seo/url.ts +64 -0
- package/src/styles/base.css +148 -0
- package/src/styles/interaction.css +108 -0
- package/src/styles/style.css +93 -0
- package/src/styles/tokens.css +256 -0
- package/src/theme/contracts.ts +7 -0
- package/src/theme/index.ts +1 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
.table-body {
|
|
2
|
+
--surface-border-width: var(--nox-border-width);
|
|
3
|
+
--surface-border-color: var(--nox-border);
|
|
4
|
+
--surface-radius: var(--nox-radius-md);
|
|
5
|
+
--surface-background: var(--nox-surface);
|
|
6
|
+
--table-body-row-border-color: var(--surface-border-color);
|
|
7
|
+
--table-body-row-border-width: var(--nox-border-width);
|
|
8
|
+
|
|
9
|
+
container-type: inline-size;
|
|
10
|
+
min-width: 0;
|
|
11
|
+
overflow-x: auto;
|
|
12
|
+
overflow-y: hidden;
|
|
13
|
+
overscroll-behavior-inline: contain;
|
|
14
|
+
border: var(--surface-border-width) solid var(--surface-border-color);
|
|
15
|
+
border-radius: var(--surface-radius);
|
|
16
|
+
background: var(--surface-background);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.table-body__table {
|
|
20
|
+
display: grid;
|
|
21
|
+
inline-size: max-content;
|
|
22
|
+
min-inline-size: 100%;
|
|
23
|
+
border-collapse: collapse;
|
|
24
|
+
border-spacing: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.table-body__rows {
|
|
28
|
+
display: grid;
|
|
29
|
+
inline-size: auto;
|
|
30
|
+
min-inline-size: 100%;
|
|
31
|
+
grid-template-columns: var(--table-column-template);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.table[data-table-layout='index'] .table-body__table {
|
|
35
|
+
inline-size: 100%;
|
|
36
|
+
min-inline-size: var(--table-index-min-inline-size);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.table[data-table-layout='index'] .table-body__rows {
|
|
40
|
+
inline-size: 100%;
|
|
41
|
+
min-inline-size: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.table[data-table-layout='index'][data-table-index-overflow]
|
|
45
|
+
.table-body__table {
|
|
46
|
+
inline-size: max-content;
|
|
47
|
+
min-inline-size: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.table[data-table-layout='index'][data-table-index-overflow]
|
|
51
|
+
.table-body__cell {
|
|
52
|
+
overflow: visible;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.table[data-table-inline-overflow='wrap'] .table-body {
|
|
56
|
+
overflow-x: hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.table[data-table-inline-overflow='wrap'] .table-body__table,
|
|
60
|
+
.table[data-table-inline-overflow='wrap'] .table-body__rows {
|
|
61
|
+
inline-size: 100%;
|
|
62
|
+
min-inline-size: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.table-body__sizing-row {
|
|
66
|
+
display: grid;
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
grid-column: 1 / -1;
|
|
69
|
+
grid-template-columns: subgrid;
|
|
70
|
+
block-size: 0;
|
|
71
|
+
min-block-size: 0;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.table-body__sizing-cell {
|
|
76
|
+
display: grid;
|
|
77
|
+
min-width: 0;
|
|
78
|
+
align-items: center;
|
|
79
|
+
padding-inline: var(--table-cell-padding-inline);
|
|
80
|
+
border: 0;
|
|
81
|
+
font-size: var(--nox-font-size-xs);
|
|
82
|
+
font-weight: var(--nox-font-weight-strong);
|
|
83
|
+
letter-spacing: var(--table-header-letter-spacing);
|
|
84
|
+
line-height: 1.2;
|
|
85
|
+
text-transform: uppercase;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.table-body__sizing-cell:first-child {
|
|
90
|
+
padding-inline-start: var(--table-edge-padding-inline);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.table-body__sizing-cell:last-child {
|
|
94
|
+
padding-inline-end: var(--table-edge-padding-inline);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.table-body__sizing-content {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
inline-size: max-content;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: var(--table-sort-gap);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.table-body__sizing-content > svg {
|
|
105
|
+
inline-size: var(--table-sort-icon-size);
|
|
106
|
+
block-size: var(--table-sort-icon-size);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.table-body__row[data-table-state] {
|
|
110
|
+
grid-template-columns: subgrid;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.table-body[data-table-row-sizing='fill'] {
|
|
114
|
+
display: grid;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.table-body[data-table-row-sizing='fill'] .table-body__table,
|
|
118
|
+
.table-body[data-table-row-sizing='fill'] .table-body__rows {
|
|
119
|
+
min-block-size: 100%;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.table-body[data-table-row-sizing='fill'] .table-body__table {
|
|
123
|
+
display: grid;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.table-body[data-table-row-sizing='fill'] .table-body__rows {
|
|
127
|
+
align-content: stretch;
|
|
128
|
+
grid-template-rows: 0;
|
|
129
|
+
grid-auto-rows: minmax(min-content, 1fr);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.table-body__row {
|
|
133
|
+
--table-primary-link-color: var(--nox-text);
|
|
134
|
+
--table-row-intrinsic-block-size: var(--table-row-min-block-size);
|
|
135
|
+
|
|
136
|
+
display: grid;
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
grid-template-columns: subgrid;
|
|
139
|
+
inline-size: auto;
|
|
140
|
+
border-block-end: 0;
|
|
141
|
+
contain-intrinsic-block-size: auto var(--table-row-intrinsic-block-size);
|
|
142
|
+
content-visibility: visible;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.table-body__row:has(~ .table-body__row:not([hidden])) {
|
|
146
|
+
border-block-end: var(--table-body-row-border-width) solid
|
|
147
|
+
var(--table-body-row-border-color);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.table-body__row[data-table-state] {
|
|
151
|
+
grid-template-columns: subgrid;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.table-body__row[hidden] {
|
|
155
|
+
display: none;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.table[data-table-layout='index']
|
|
159
|
+
.table-body__row:not([data-table-state]) {
|
|
160
|
+
block-size: var(--table-index-row-block-size);
|
|
161
|
+
min-block-size: var(--table-index-row-block-size);
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.table-body__row[data-table-row-href] {
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.table-body__row[data-table-row-href]:focus-within {
|
|
170
|
+
--table-primary-link-color: var(--nox-link-hover);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.table-body__cell {
|
|
174
|
+
display: grid;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
min-height: var(--table-row-min-block-size);
|
|
177
|
+
align-items: center;
|
|
178
|
+
padding: var(--table-cell-padding-block) var(--table-cell-padding-inline);
|
|
179
|
+
border: 0;
|
|
180
|
+
line-height: 1.35;
|
|
181
|
+
text-align: start;
|
|
182
|
+
vertical-align: middle;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.table-body__cell[data-align='center'] {
|
|
186
|
+
justify-items: center;
|
|
187
|
+
text-align: center;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.table-body__cell[data-align='end'] {
|
|
191
|
+
justify-items: end;
|
|
192
|
+
text-align: end;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.table-body__cell:first-child {
|
|
196
|
+
padding-inline-start: var(--table-edge-padding-inline);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.table-body__cell:last-child {
|
|
200
|
+
padding-inline-end: var(--table-edge-padding-inline);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.table[data-table-layout='index']
|
|
204
|
+
.table-body__row:not([data-table-state])
|
|
205
|
+
.table-body__cell {
|
|
206
|
+
block-size: 100%;
|
|
207
|
+
min-height: 0;
|
|
208
|
+
overflow: hidden;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.table[data-table-layout='index']
|
|
212
|
+
.table-body__cell[data-table-column-role='primary']
|
|
213
|
+
~ .table-body__cell {
|
|
214
|
+
justify-items: center;
|
|
215
|
+
text-align: center;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.table[data-table-layout='index']
|
|
219
|
+
.table-body__cell[data-table-column-role='primary']
|
|
220
|
+
~ .table-body__cell
|
|
221
|
+
.table-cell {
|
|
222
|
+
justify-items: center;
|
|
223
|
+
text-align: center;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.table[data-table-column-density='compact']
|
|
227
|
+
.table-body__cell[data-table-column-role='value'] {
|
|
228
|
+
font-size: var(--nox-font-size-sm);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.table-body__cell[data-table-state] {
|
|
232
|
+
min-height: 5rem;
|
|
233
|
+
grid-column: 1 / -1;
|
|
234
|
+
justify-items: center;
|
|
235
|
+
color: var(--nox-text-muted);
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.table-body__visually-hidden {
|
|
240
|
+
position: absolute;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
width: 1px;
|
|
243
|
+
height: 1px;
|
|
244
|
+
clip: rect(0 0 0 0);
|
|
245
|
+
white-space: nowrap;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@media (hover: hover) and (pointer: fine) {
|
|
249
|
+
.table-body__row[data-table-row-href]:hover {
|
|
250
|
+
--table-primary-link-color: var(--nox-link-hover);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@container (width < 36rem) {
|
|
255
|
+
.table-body__row {
|
|
256
|
+
--table-row-intrinsic-block-size: var(--table-row-narrow-min-block-size);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.table-body__cell {
|
|
260
|
+
min-height: var(--table-row-narrow-min-block-size);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { TableCell } from '../../display/contracts';
|
|
3
|
+
import Tooltip from '../../components/feedback/Tooltip/Tooltip.astro';
|
|
4
|
+
import TableCellValue from './TableCellValue.astro';
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
cell?: TableCell;
|
|
8
|
+
rowHref?: string;
|
|
9
|
+
truncate?: boolean;
|
|
10
|
+
wrap?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const { cell, rowHref, truncate = false, wrap = false }: Props = Astro.props;
|
|
14
|
+
const tooltip = cell?.tooltip?.trim();
|
|
15
|
+
const layout =
|
|
16
|
+
cell?.kind === 'text' || cell?.kind === 'link' ? cell.layout : undefined;
|
|
17
|
+
|
|
18
|
+
const rootAttributes = cell
|
|
19
|
+
? {
|
|
20
|
+
class: 'table-cell',
|
|
21
|
+
'data-table-cell-layout': layout,
|
|
22
|
+
'data-table-cell-kind': cell.kind,
|
|
23
|
+
'data-wrap': wrap ? true : undefined,
|
|
24
|
+
}
|
|
25
|
+
: undefined;
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
{
|
|
29
|
+
cell ? (
|
|
30
|
+
tooltip ? (
|
|
31
|
+
<Tooltip
|
|
32
|
+
activation="hover"
|
|
33
|
+
alignTo="boundary"
|
|
34
|
+
content={tooltip}
|
|
35
|
+
triggerScope="ancestor"
|
|
36
|
+
>
|
|
37
|
+
<div {...rootAttributes}>
|
|
38
|
+
<TableCellValue
|
|
39
|
+
cell={cell}
|
|
40
|
+
rowHref={rowHref}
|
|
41
|
+
truncate={truncate}
|
|
42
|
+
wrap={wrap}
|
|
43
|
+
/>
|
|
44
|
+
</div>
|
|
45
|
+
</Tooltip>
|
|
46
|
+
) : (
|
|
47
|
+
<div {...rootAttributes}>
|
|
48
|
+
<TableCellValue
|
|
49
|
+
cell={cell}
|
|
50
|
+
rowHref={rowHref}
|
|
51
|
+
truncate={truncate}
|
|
52
|
+
wrap={wrap}
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
)
|
|
56
|
+
) : (
|
|
57
|
+
<span class="table-cell__empty">—</span>
|
|
58
|
+
)
|
|
59
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
.table-cell {
|
|
2
|
+
display: grid;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
min-inline-size: 0;
|
|
5
|
+
gap: var(--nox-space-1);
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.table-cell:not([data-wrap]):not([data-table-cell-layout='split']) {
|
|
10
|
+
inline-size: max-content;
|
|
11
|
+
min-inline-size: max-content;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.table-cell[data-table-cell-layout='split'] {
|
|
15
|
+
inline-size: 100%;
|
|
16
|
+
min-inline-size: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.table-cell[data-wrap] {
|
|
20
|
+
inline-size: 100%;
|
|
21
|
+
min-inline-size: 0;
|
|
22
|
+
white-space: normal;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.table[data-table-layout='index'] .table-cell {
|
|
26
|
+
inline-size: 100%;
|
|
27
|
+
min-inline-size: 0;
|
|
28
|
+
max-inline-size: 100%;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.table[data-table-layout='index'][data-table-index-overflow] .table-cell {
|
|
33
|
+
inline-size: max-content;
|
|
34
|
+
max-inline-size: none;
|
|
35
|
+
overflow: visible;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.table-cell[data-table-cell-kind='tags']:not([data-wrap])
|
|
39
|
+
> [data-composition='inline'] {
|
|
40
|
+
inline-size: max-content;
|
|
41
|
+
min-inline-size: max-content;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.table-cell[data-table-cell-kind='tags']:not([data-wrap])
|
|
45
|
+
> [data-composition='inline']
|
|
46
|
+
> [data-widget='tag'] {
|
|
47
|
+
flex: none;
|
|
48
|
+
max-inline-size: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.table-cell__link {
|
|
52
|
+
--text-pair-primary-color: currentColor;
|
|
53
|
+
|
|
54
|
+
display: block;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
inline-size: 100%;
|
|
57
|
+
max-inline-size: 100%;
|
|
58
|
+
border-radius: var(--nox-radius-sm);
|
|
59
|
+
color: var(--table-primary-link-color, var(--nox-text));
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
transition: color var(--nox-motion-duration-sm)
|
|
62
|
+
var(--nox-motion-easing-standard);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.table-cell__empty {
|
|
66
|
+
color: var(--nox-text-muted);
|
|
67
|
+
font-size: var(--nox-font-size-sm);
|
|
68
|
+
font-weight: var(--nox-font-weight-medium);
|
|
69
|
+
line-height: 1.35;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.table-cell__media {
|
|
73
|
+
--media-object-inline-size: 100%;
|
|
74
|
+
--media-object-block-size: auto;
|
|
75
|
+
--media-object-radius: var(--nox-radius-sm);
|
|
76
|
+
|
|
77
|
+
display: grid;
|
|
78
|
+
inline-size: 4rem;
|
|
79
|
+
block-size: 4rem;
|
|
80
|
+
max-inline-size: 100%;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.table-cell__media[data-media-presentation-size='compact'] {
|
|
84
|
+
inline-size: var(--nox-compact-media-responsive-size);
|
|
85
|
+
block-size: var(--nox-compact-media-responsive-size);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (hover: hover) and (pointer: fine) {
|
|
89
|
+
.table-cell__link:hover {
|
|
90
|
+
color: var(--nox-link-hover);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@container (width < 36rem) {
|
|
95
|
+
.table-cell__media:not([data-media-presentation-size='compact']) {
|
|
96
|
+
inline-size: 3.25rem;
|
|
97
|
+
block-size: 3.25rem;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { DisplayTextValue, TableCell } from '../../display/contracts';
|
|
3
|
+
import BadgeList from '../../components/data-display/BadgeList/BadgeList.astro';
|
|
4
|
+
import IconList from '../../components/data-display/IconList/IconList.astro';
|
|
5
|
+
import TextPair from '../../components/data-display/TextPair/TextPair.astro';
|
|
6
|
+
import Media from '../../primitives/media/Media/Media.astro';
|
|
7
|
+
import Inline from '../../composition/Inline/Inline.astro';
|
|
8
|
+
import Tag from '../../components/data-display/Tag/Tag.astro';
|
|
9
|
+
|
|
10
|
+
type Props = {
|
|
11
|
+
cell: TableCell;
|
|
12
|
+
rowHref?: string;
|
|
13
|
+
truncate?: boolean;
|
|
14
|
+
wrap: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const { cell, rowHref, truncate = false, wrap }: Props = Astro.props;
|
|
18
|
+
|
|
19
|
+
const formatValue = (value: DisplayTextValue): string => String(value);
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
{
|
|
23
|
+
cell.kind === 'text' ? (
|
|
24
|
+
<TextPair
|
|
25
|
+
primary={formatValue(cell.value)}
|
|
26
|
+
primaryColor={cell.primaryColor}
|
|
27
|
+
primarySize={cell.primarySize}
|
|
28
|
+
primaryWeight={cell.primaryWeight ?? 'regular'}
|
|
29
|
+
secondary={cell.description}
|
|
30
|
+
secondaryWeight={cell.secondaryWeight}
|
|
31
|
+
layout={cell.layout}
|
|
32
|
+
truncate={truncate}
|
|
33
|
+
/>
|
|
34
|
+
) : null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
{
|
|
38
|
+
cell.kind === 'link' ? (
|
|
39
|
+
<a
|
|
40
|
+
class="table-cell__link"
|
|
41
|
+
href={cell.href}
|
|
42
|
+
data-table-row-primary-link={cell.href === rowHref ? true : undefined}
|
|
43
|
+
>
|
|
44
|
+
<TextPair
|
|
45
|
+
primary={cell.label}
|
|
46
|
+
primaryColor={cell.primaryColor}
|
|
47
|
+
primarySize={cell.primarySize}
|
|
48
|
+
primaryWeight={cell.primaryWeight}
|
|
49
|
+
secondary={cell.description}
|
|
50
|
+
secondaryWeight={cell.secondaryWeight}
|
|
51
|
+
layout={cell.layout}
|
|
52
|
+
truncate={truncate}
|
|
53
|
+
/>
|
|
54
|
+
</a>
|
|
55
|
+
) : null
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
{
|
|
59
|
+
cell.kind === 'media' ? (
|
|
60
|
+
<Media
|
|
61
|
+
class="table-cell__media"
|
|
62
|
+
data-media-presentation-size={cell.size ?? 'default'}
|
|
63
|
+
media={cell.media}
|
|
64
|
+
fit="contain"
|
|
65
|
+
size="fill"
|
|
66
|
+
/>
|
|
67
|
+
) : null
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
{cell.kind === 'badges' ? <BadgeList badges={cell.badges} /> : null}
|
|
71
|
+
|
|
72
|
+
{
|
|
73
|
+
cell.kind === 'icons' ? (
|
|
74
|
+
<IconList items={cell.items} label={cell.label} size={cell.size} />
|
|
75
|
+
) : null
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
{
|
|
79
|
+
cell.kind === 'tags' ? (
|
|
80
|
+
<Inline align="center" gap="sm" wrap={wrap}>
|
|
81
|
+
{cell.tags.map((tag) => (
|
|
82
|
+
<Tag {...tag} size="sm" />
|
|
83
|
+
))}
|
|
84
|
+
</Inline>
|
|
85
|
+
) : null
|
|
86
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types';
|
|
3
|
+
import type { Tone } from '../../theme/contracts';
|
|
4
|
+
|
|
5
|
+
type TableFooterPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
6
|
+
|
|
7
|
+
type Props = HTMLAttributes<'div'> & {
|
|
8
|
+
padding?: TableFooterPadding;
|
|
9
|
+
tone?: Tone;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const {
|
|
13
|
+
class: className,
|
|
14
|
+
'data-tone': dataTone,
|
|
15
|
+
padding = 'md',
|
|
16
|
+
tone,
|
|
17
|
+
...attrs
|
|
18
|
+
}: Props = Astro.props;
|
|
19
|
+
const resolvedTone = tone ?? dataTone;
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
<div
|
|
23
|
+
{...attrs}
|
|
24
|
+
class:list={['table-footer', className]}
|
|
25
|
+
data-widget="table-footer"
|
|
26
|
+
data-padding={padding}
|
|
27
|
+
data-table-footer
|
|
28
|
+
data-tone={resolvedTone}
|
|
29
|
+
data-surface
|
|
30
|
+
>
|
|
31
|
+
<slot />
|
|
32
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.table-footer {
|
|
2
|
+
--surface-border-width: var(--nox-border-width);
|
|
3
|
+
--surface-border-color: var(--nox-border);
|
|
4
|
+
--surface-radius: var(--nox-radius-md);
|
|
5
|
+
--surface-background: var(--nox-surface-muted);
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
block-size: var(--table-section-block-size, 3rem);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
border: var(--surface-border-width) solid var(--surface-border-color);
|
|
12
|
+
border-radius: var(--surface-radius);
|
|
13
|
+
overflow: clip;
|
|
14
|
+
background: var(--surface-background);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.table-footer[data-padding='none'] {
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.table-footer[data-padding='sm'] {
|
|
22
|
+
padding: var(--nox-space-2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.table-footer[data-padding='md'] {
|
|
26
|
+
padding: var(--nox-space-3);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.table-footer[data-padding='lg'] {
|
|
30
|
+
padding: var(--nox-space-4);
|
|
31
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types';
|
|
3
|
+
import type { TableColumn } from '../../display/contracts';
|
|
4
|
+
import type { Tone } from '../../theme/contracts';
|
|
5
|
+
import TableSortIcon from '../../components/icons/TableSortIcon.astro';
|
|
6
|
+
import { getTableHeaderAlignment } from './tableLayout';
|
|
7
|
+
|
|
8
|
+
type Props = HTMLAttributes<'div'> & {
|
|
9
|
+
'data-tone'?: Tone;
|
|
10
|
+
columns: readonly TableColumn[];
|
|
11
|
+
sortMessages?: {
|
|
12
|
+
sortBy: string;
|
|
13
|
+
sortAscending: string;
|
|
14
|
+
sortDescending: string;
|
|
15
|
+
sortNone: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
class: className,
|
|
21
|
+
columns,
|
|
22
|
+
'data-tone': dataTone,
|
|
23
|
+
sortMessages,
|
|
24
|
+
...attrs
|
|
25
|
+
}: Props = Astro.props;
|
|
26
|
+
const hasSortableColumns = columns.some((column) => column.sort);
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<div
|
|
30
|
+
{...attrs}
|
|
31
|
+
class:list={['table-header', className]}
|
|
32
|
+
data-widget="table-header"
|
|
33
|
+
data-table-header
|
|
34
|
+
data-table-header-overflow
|
|
35
|
+
data-surface
|
|
36
|
+
data-table-scrollport="header"
|
|
37
|
+
data-scrollbar="hidden"
|
|
38
|
+
data-tone={dataTone}
|
|
39
|
+
aria-hidden={hasSortableColumns ? undefined : 'true'}
|
|
40
|
+
>
|
|
41
|
+
<div class="table-header__row">
|
|
42
|
+
{
|
|
43
|
+
columns.map((column) => (
|
|
44
|
+
<div
|
|
45
|
+
class="table-header__cell"
|
|
46
|
+
data-align={getTableHeaderAlignment(column)}
|
|
47
|
+
data-table-column-role={column.role}
|
|
48
|
+
data-table-sortable={column.sort ? true : undefined}
|
|
49
|
+
>
|
|
50
|
+
{column.sort ? (
|
|
51
|
+
<button
|
|
52
|
+
class="table-header__sort"
|
|
53
|
+
type="button"
|
|
54
|
+
data-table-sort-column={column.id}
|
|
55
|
+
data-table-sort-direction="none"
|
|
56
|
+
data-table-sort-label={column.label}
|
|
57
|
+
data-table-sort-type={column.sort.type}
|
|
58
|
+
data-table-sort-tie-breaker={column.sort.tieBreaker}
|
|
59
|
+
aria-label={sortMessages?.sortBy.replace('{label}', column.label)}
|
|
60
|
+
aria-pressed="false"
|
|
61
|
+
data-table-sort-ascending-label={sortMessages?.sortAscending}
|
|
62
|
+
data-table-sort-descending-label={sortMessages?.sortDescending}
|
|
63
|
+
data-table-sort-none-label={sortMessages?.sortNone}
|
|
64
|
+
>
|
|
65
|
+
<span
|
|
66
|
+
class="table-header__label"
|
|
67
|
+
data-table-header-overflow-label
|
|
68
|
+
data-table-header-overflow-text={column.label}
|
|
69
|
+
aria-hidden="true"
|
|
70
|
+
>
|
|
71
|
+
<span
|
|
72
|
+
class="table-header__label-text"
|
|
73
|
+
data-table-header-overflow-text-node
|
|
74
|
+
>
|
|
75
|
+
{column.label}
|
|
76
|
+
</span>
|
|
77
|
+
<span class="table-header__overflow-marker">.</span>
|
|
78
|
+
</span>
|
|
79
|
+
<TableSortIcon
|
|
80
|
+
class="table-header__sort-icon"
|
|
81
|
+
aria-hidden="true"
|
|
82
|
+
/>
|
|
83
|
+
</button>
|
|
84
|
+
) : column.hiddenLabel ? (
|
|
85
|
+
<span class="table-header__visually-hidden">{column.label}</span>
|
|
86
|
+
) : (
|
|
87
|
+
<span
|
|
88
|
+
class="table-header__label"
|
|
89
|
+
data-table-header-overflow-label
|
|
90
|
+
data-table-header-overflow-text={column.label}
|
|
91
|
+
aria-hidden={hasSortableColumns ? 'true' : undefined}
|
|
92
|
+
>
|
|
93
|
+
<span
|
|
94
|
+
class="table-header__label-text"
|
|
95
|
+
data-table-header-overflow-text-node
|
|
96
|
+
>
|
|
97
|
+
{column.label}
|
|
98
|
+
</span>
|
|
99
|
+
<span class="table-header__overflow-marker">.</span>
|
|
100
|
+
</span>
|
|
101
|
+
)}
|
|
102
|
+
</div>
|
|
103
|
+
))
|
|
104
|
+
}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<script>
|
|
109
|
+
import { initTableHeaderOverflow } from './tableHeaderOverflowController';
|
|
110
|
+
|
|
111
|
+
for (const root of document.querySelectorAll(
|
|
112
|
+
'[data-table-header-overflow]',
|
|
113
|
+
)) {
|
|
114
|
+
if (root instanceof HTMLElement) {
|
|
115
|
+
initTableHeaderOverflow(root);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</script>
|