From e23873f85844782f44b1a979cf079759c3dd4787 Mon Sep 17 00:00:00 2001 From: Bhushan Khope Date: Mon, 7 Oct 2024 15:08:43 -0400 Subject: [PATCH 1/8] update metadata module --- apps/cde-ui/src/styles.scss | 102 ++++++------ libs/cde-visualization/src/index.ts | 9 +- .../cde-visualization.component.scss | 2 +- .../metadata/metadata.component.html | 147 ++++++++++-------- .../metadata/metadata.component.scss | 94 ++++++----- .../components/metadata/metadata.component.ts | 30 +++- 6 files changed, 218 insertions(+), 166 deletions(-) diff --git a/apps/cde-ui/src/styles.scss b/apps/cde-ui/src/styles.scss index d8ac7521c..739419384 100644 --- a/apps/cde-ui/src/styles.scss +++ b/apps/cde-ui/src/styles.scss @@ -1,7 +1,7 @@ -@use './styles/cta' as cta; -@use './styles/global/resets'; -@use './styles/global/fonts'; -@use './styles/material-theming'; +// @use './styles/cta' as cta; +// @use './styles/global/resets'; +// @use './styles/global/fonts'; +// @use './styles/material-theming'; @use 'light-theme'; @use 'theming'; @@ -10,66 +10,66 @@ // @include theming.theme(light-theme.$theme); // } // Only enabled for the footer at the moment -hra-footer { +body { @include theming.theme(light-theme.$theme); } -input::-webkit-outer-spin-button, -input::-webkit-inner-spin-button { - /* display: none; <- Crashes Chrome on hover */ - -webkit-appearance: none; - margin: 0; /* <-- Apparently some margin are still there even though it's hidden */ -} +// input::-webkit-outer-spin-button, +// input::-webkit-inner-spin-button { +// /* display: none; <- Crashes Chrome on hover */ +// -webkit-appearance: none; +// margin: 0; /* <-- Apparently some margin are still there even though it's hidden */ +// } -input[type='number'] { - -moz-appearance: textfield; /* Firefox */ -} +// input[type='number'] { +// -moz-appearance: textfield; /* Firefox */ +// } -body { - margin: 0; -} +// body { +// margin: 0; +// } -a { - text-decoration: none; -} +// a { +// text-decoration: none; +// } -.cta-filled { - @include cta.filledDefault(); +// .cta-filled { +// @include cta.filledDefault(); - &:hover { - @include cta.filledHover(); - } +// &:hover { +// @include cta.filledHover(); +// } - &:active { - @include cta.filledActive(); - } +// &:active { +// @include cta.filledActive(); +// } - &:focus-visible { - --mdc-filled-button-label-text-color: rgba(32, 30, 61, 1); - color: var(--mdc-filled-button-label-text-color); - } +// &:focus-visible { +// --mdc-filled-button-label-text-color: rgba(32, 30, 61, 1); +// color: var(--mdc-filled-button-label-text-color); +// } - &:focus-visible::after { - @include cta.filledFocus(); - } -} +// &:focus-visible::after { +// @include cta.filledFocus(); +// } +// } -.cta-flat { - @include cta.flatDefault(); +// .cta-flat { +// @include cta.flatDefault(); - &:hover { - @include cta.flatHover(); - } +// &:hover { +// @include cta.flatHover(); +// } - &:active { - @include cta.flatActive(); - } +// &:active { +// @include cta.flatActive(); +// } - &:focus-visible { - @include cta.flatFocus(); - } -} +// &:focus-visible { +// @include cta.flatFocus(); +// } +// } -.selected { - box-shadow: 0 -2px 0 #e00d3a inset; -} +// .selected { +// box-shadow: 0 -2px 0 #e00d3a inset; +// } diff --git a/libs/cde-visualization/src/index.ts b/libs/cde-visualization/src/index.ts index 7c8c4622e..314937db5 100644 --- a/libs/cde-visualization/src/index.ts +++ b/libs/cde-visualization/src/index.ts @@ -5,6 +5,7 @@ import { provideScrolling } from '@hra-ui/design-system/scrolling'; import { InputProps, createCustomElement } from '@hra-ui/webcomponents'; import { ColorPickerModule } from 'ngx-color-picker'; import { CdeVisualizationComponent } from './lib/cde-visualization/cde-visualization.component'; +import { provideDesignSystem } from '@hra-ui/design-system'; export * from './lib/cde-visualization/cde-visualization.component'; export * from './lib/models/color-map'; @@ -30,5 +31,11 @@ export type CdeVisualizationElementConstructor = Awaited - - - {{ panel.expanded ? 'remove' : 'add' }} + + + {{ metadata().sampleExtra ? 'Sample ' : '' }}Metadata - info - -
Visualization metadata for the sample dataset. Sample files may be viewed in Google Sheets.
-
+ more_vert + + + + + + + Visualization metadata for the sample dataset. + +
- - @if (isFieldVisible('title')) { -
- {{ titleLabel() }} -
- @if (metadata().sampleExtra; as extra) { - {{ - metadata().title - }} - } @else { - {{ metadata().title | defaultTo: 'Unknown' }} - } - } -