@ndwnu/design-system 5.0.0 → 5.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/components/card/index.d.ts +2 -2
- package/components/form-field/picker-button/picker-button.component.d.ts +1 -0
- package/components/index.d.ts +1 -0
- package/components/layout/layout.component.d.ts +5 -2
- package/components/main-navigation/main-navigation.imports.d.ts +1 -1
- package/components/pill/pill.model.d.ts +1 -1
- package/components/summary-card/index.d.ts +10 -0
- package/components/summary-card/summary-card-action/summary-card-action.component.d.ts +11 -0
- package/components/summary-card/summary-card-actions/summary-card-actions.component.d.ts +9 -0
- package/components/summary-card/summary-card-avatar/summary-card-avatar.component.d.ts +8 -0
- package/components/summary-card/summary-card-content/summary-card-content.component.d.ts +5 -0
- package/components/summary-card/summary-card-header/summary-card-header.component.d.ts +5 -0
- package/components/summary-card/summary-card-subtitle/summary-card-subtitle.component.d.ts +5 -0
- package/components/summary-card/summary-card-tag/summary-card-tag.component.d.ts +5 -0
- package/components/summary-card/summary-card-tags/summary-card-tags.component.d.ts +5 -0
- package/components/summary-card/summary-card.component.d.ts +5 -0
- package/components/summary-card/summary-card.model.d.ts +2 -0
- package/core/style/styles.css +186 -0
- package/core/style/styles.scss +186 -0
- package/esm2022/components/alert/alert.component.mjs +3 -3
- package/esm2022/components/badge/badge.component.mjs +2 -2
- package/esm2022/components/banner/banner.component.mjs +3 -3
- package/esm2022/components/breadcrumb-group/breadcrumb-group.component.mjs +3 -3
- package/esm2022/components/form-field/clear-search-button/clear-search-button.component.mjs +3 -3
- package/esm2022/components/form-field/input-button/input-button.component.mjs +3 -3
- package/esm2022/components/form-field/picker-button/picker-button.component.mjs +10 -5
- package/esm2022/components/index.mjs +2 -1
- package/esm2022/components/layout/layout.component.mjs +7 -4
- package/esm2022/components/pill/pill.component.mjs +3 -2
- package/esm2022/components/pill/pill.model.mjs +10 -2
- package/esm2022/components/summary-card/index.mjs +11 -0
- package/esm2022/components/summary-card/summary-card-action/summary-card-action.component.mjs +23 -0
- package/esm2022/components/summary-card/summary-card-actions/summary-card-actions.component.mjs +26 -0
- package/esm2022/components/summary-card/summary-card-avatar/summary-card-avatar.component.mjs +25 -0
- package/esm2022/components/summary-card/summary-card-content/summary-card-content.component.mjs +19 -0
- package/esm2022/components/summary-card/summary-card-header/summary-card-header.component.mjs +13 -0
- package/esm2022/components/summary-card/summary-card-subtitle/summary-card-subtitle.component.mjs +11 -0
- package/esm2022/components/summary-card/summary-card-tag/summary-card-tag.component.mjs +20 -0
- package/esm2022/components/summary-card/summary-card-tags/summary-card-tags.component.mjs +20 -0
- package/esm2022/components/summary-card/summary-card.component.mjs +14 -0
- package/esm2022/components/summary-card/summary-card.model.mjs +2 -0
- package/esm2022/components/tooltip/tooltip.component.mjs +2 -2
- package/fesm2022/ndwnu-design-system.mjs +184 -22
- package/fesm2022/ndwnu-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardContentComponent } from './card-content';
|
|
2
2
|
export * from './card-content';
|
|
3
3
|
export * from './card-footer';
|
|
4
4
|
export * from './card-header';
|
|
5
5
|
export * from './card.component';
|
|
6
|
-
export declare const CARD_COMPONENTS: (typeof
|
|
6
|
+
export declare const CARD_COMPONENTS: (typeof CardContentComponent)[];
|
|
@@ -6,6 +6,7 @@ export declare class PickerButtonComponent {
|
|
|
6
6
|
readonly input: import("@angular/core").InputSignal<InputDirective | undefined>;
|
|
7
7
|
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
8
8
|
readonly required: import("@angular/core").InputSignal<InputType | undefined>;
|
|
9
|
+
private readonly platform;
|
|
9
10
|
protected readonly icon: import("@angular/core").Signal<string | undefined>;
|
|
10
11
|
protected onClick(): void;
|
|
11
12
|
private getIcon;
|
package/components/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { MenuItem } from '../main-navigation';
|
|
1
|
+
import { MenuItem, NdwBrand } from '../main-navigation';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class LayoutComponent {
|
|
4
4
|
applicationName: import("@angular/core").InputSignal<string>;
|
|
5
5
|
topMenuItems: import("@angular/core").InputSignal<MenuItem[]>;
|
|
6
6
|
bottomMenuItems: import("@angular/core").InputSignal<MenuItem[] | undefined>;
|
|
7
|
+
brand: import("@angular/core").InputSignal<NdwBrand>;
|
|
8
|
+
isCollapsible: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
isExpanded: import("@angular/core").InputSignal<boolean>;
|
|
7
10
|
menuFooterTexts: import("@angular/core").InputSignal<string[] | undefined>;
|
|
8
11
|
version: import("@angular/core").InputSignal<string | undefined>;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "ndw-layout", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "menuFooterTexts": { "alias": "menuFooterTexts"; "required": false; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutComponent, "ndw-layout", never, { "applicationName": { "alias": "applicationName"; "required": true; "isSignal": true; }; "topMenuItems": { "alias": "topMenuItems"; "required": true; "isSignal": true; }; "bottomMenuItems": { "alias": "bottomMenuItems"; "required": false; "isSignal": true; }; "brand": { "alias": "brand"; "required": false; "isSignal": true; }; "isCollapsible": { "alias": "isCollapsible"; "required": false; "isSignal": true; }; "isExpanded": { "alias": "isExpanded"; "required": false; "isSignal": true; }; "menuFooterTexts": { "alias": "menuFooterTexts"; "required": false; "isSignal": true; }; "version": { "alias": "version"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
11
14
|
}
|
|
@@ -6,4 +6,4 @@ import { BadgeComponent } from '../badge';
|
|
|
6
6
|
import { IconComponent } from '../icon';
|
|
7
7
|
import { MainNavigationMenuComponent } from '../main-navigation-menu';
|
|
8
8
|
import { TooltipDirective } from '../tooltip';
|
|
9
|
-
export declare const MAIN_NAVIGATION_IMPORTS: (typeof
|
|
9
|
+
export declare const MAIN_NAVIGATION_IMPORTS: (typeof BadgeComponent | typeof IconComponent | typeof NgTemplateOutlet | typeof RouterLink | typeof NgClass | typeof TooltipDirective | typeof MainNavigationMenuComponent | typeof CdkPortalOutlet | typeof OverlayModule)[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './summary-card.model';
|
|
2
|
+
export * from './summary-card.component';
|
|
3
|
+
export * from './summary-card-actions/summary-card-actions.component';
|
|
4
|
+
export * from './summary-card-action/summary-card-action.component';
|
|
5
|
+
export * from './summary-card-avatar/summary-card-avatar.component';
|
|
6
|
+
export * from './summary-card-content/summary-card-content.component';
|
|
7
|
+
export * from './summary-card-header/summary-card-header.component';
|
|
8
|
+
export * from './summary-card-tags/summary-card-tags.component';
|
|
9
|
+
export * from './summary-card-tag/summary-card-tag.component';
|
|
10
|
+
export * from './summary-card-subtitle/summary-card-subtitle.component';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SummaryCardActionComponent {
|
|
4
|
+
readonly iconName: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
6
|
+
readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
|
|
7
|
+
readonly action: import("@angular/core").OutputEmitterRef<void>;
|
|
8
|
+
readonly template: import("@angular/core").Signal<TemplateRef<Element>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardActionComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardActionComponent, "ndw-summary-card-action", never, { "iconName": { "alias": "iconName"; "required": true; "isSignal": true; }; "label": { "alias": "label"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "action": "action"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SummaryActionsView } from '../summary-card.model';
|
|
2
|
+
import { SummaryCardActionComponent } from '../summary-card-action/summary-card-action.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SummaryCardActionsComponent {
|
|
5
|
+
readonly view: import("@angular/core").InputSignal<SummaryActionsView>;
|
|
6
|
+
readonly actions: import("@angular/core").Signal<readonly SummaryCardActionComponent[]>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardActionsComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardActionsComponent, "ndw-summary-card-actions", never, { "view": { "alias": "view"; "required": false; "isSignal": true; }; }, {}, ["actions"], never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SummaryVariant } from '../summary-card.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SummaryCardAvatarComponent {
|
|
4
|
+
readonly variant: import("@angular/core").InputSignal<SummaryVariant>;
|
|
5
|
+
protected readonly variantClass: import("@angular/core").Signal<string>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardAvatarComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardAvatarComponent, "ndw-summary-card-avatar", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardContentComponent, "ndw-summary-card-content", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardHeaderComponent, "ndw-summary-card-header", never, {}, {}, never, ["ndw-pill", "*", "ndw-summary-card-subtitle", "ndw-summary-card-actions"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardSubtitleComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardSubtitleComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardSubtitleComponent, "ndw-summary-card-subtitle", never, {}, {}, never, ["ndw-icon", "*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardTagComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardTagComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardTagComponent, "ndw-summary-card-tag", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardTagsComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardTagsComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardTagsComponent, "ndw-summary-card-tags", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SummaryCardComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SummaryCardComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SummaryCardComponent, "ndw-summary-card", never, {}, {}, never, ["ndw-summary-card-avatar", "ndw-summary-card-header", "ndw-summary-card-content", "ndw-summary-card-tags"], true, never>;
|
|
5
|
+
}
|
package/core/style/styles.css
CHANGED
|
@@ -1172,3 +1172,189 @@ textarea[ndwInput] {
|
|
|
1172
1172
|
display: grid;
|
|
1173
1173
|
padding: var(--ndw-spacing-sm);
|
|
1174
1174
|
}
|
|
1175
|
+
|
|
1176
|
+
.ndw-summary-card {
|
|
1177
|
+
display: block;
|
|
1178
|
+
}
|
|
1179
|
+
.ndw-summary-card__wrapper {
|
|
1180
|
+
position: relative;
|
|
1181
|
+
overflow: hidden;
|
|
1182
|
+
display: grid;
|
|
1183
|
+
gap: var(--ndw-spacing-md);
|
|
1184
|
+
height: 100%;
|
|
1185
|
+
align-items: start;
|
|
1186
|
+
box-sizing: border-box;
|
|
1187
|
+
}
|
|
1188
|
+
.ndw-summary-card__wrapper:has(ndw-summary-card-avatar) {
|
|
1189
|
+
grid-template-columns: max-content 1fr;
|
|
1190
|
+
}
|
|
1191
|
+
.ndw-summary-card__wrapper:has(a:focus:not(:active)) {
|
|
1192
|
+
outline: var(--ndw-border-size-sm) solid var(--ndw-color-secondary-500);
|
|
1193
|
+
}
|
|
1194
|
+
.ndw-summary-card__content {
|
|
1195
|
+
display: grid;
|
|
1196
|
+
gap: var(--ndw-spacing-xs);
|
|
1197
|
+
}
|
|
1198
|
+
.ndw-summary-card .ndw-summary-card-tags {
|
|
1199
|
+
display: flex;
|
|
1200
|
+
flex-wrap: wrap;
|
|
1201
|
+
gap: var(--ndw-spacing-xs);
|
|
1202
|
+
}
|
|
1203
|
+
.ndw-summary-card .ndw-summary-card-tag {
|
|
1204
|
+
display: flex;
|
|
1205
|
+
flex-wrap: nowrap;
|
|
1206
|
+
gap: var(--ndw-spacing-2xs);
|
|
1207
|
+
align-items: center;
|
|
1208
|
+
border: 1px solid var(--ndw-color-grey-100);
|
|
1209
|
+
border-radius: var(--ndw-border-radius-xs);
|
|
1210
|
+
padding: var(--ndw-spacing-2xs);
|
|
1211
|
+
color: var(--ndw-color-grey-500);
|
|
1212
|
+
font-size: var(--ndw-font-size-xs);
|
|
1213
|
+
}
|
|
1214
|
+
.ndw-summary-card .ndw-summary-card-tag ndw-icon {
|
|
1215
|
+
font-size: var(--ndw-font-size-sm);
|
|
1216
|
+
}
|
|
1217
|
+
.ndw-summary-card .ndw-summary-card-tag img {
|
|
1218
|
+
display: block;
|
|
1219
|
+
height: var(--ndw-font-size-sm);
|
|
1220
|
+
}
|
|
1221
|
+
.ndw-summary-card .ndw-summary-card-subtitle {
|
|
1222
|
+
display: grid;
|
|
1223
|
+
grid-template-columns: max-content 1fr;
|
|
1224
|
+
align-items: center;
|
|
1225
|
+
gap: var(--ndw-spacing-3xs);
|
|
1226
|
+
color: var(--ndw-color-grey-500);
|
|
1227
|
+
font-size: var(--ndw-font-size-xs);
|
|
1228
|
+
}
|
|
1229
|
+
.ndw-summary-card .ndw-summary-card-subtitle ndw-icon {
|
|
1230
|
+
font-size: var(--ndw-font-size-sm);
|
|
1231
|
+
}
|
|
1232
|
+
.ndw-summary-card .ndw-summary-card-subtitle__text {
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
text-overflow: ellipsis;
|
|
1235
|
+
white-space: nowrap;
|
|
1236
|
+
}
|
|
1237
|
+
.ndw-summary-card .ndw-summary-card-header {
|
|
1238
|
+
display: flex;
|
|
1239
|
+
gap: var(--ndw-spacing-xs);
|
|
1240
|
+
}
|
|
1241
|
+
.ndw-summary-card .ndw-summary-card-header__wrapper {
|
|
1242
|
+
display: grid;
|
|
1243
|
+
gap: var(--ndw-spacing-2xs);
|
|
1244
|
+
justify-items: left;
|
|
1245
|
+
}
|
|
1246
|
+
.ndw-summary-card .ndw-summary-card-header__title {
|
|
1247
|
+
width: 100%;
|
|
1248
|
+
white-space: nowrap;
|
|
1249
|
+
overflow: hidden;
|
|
1250
|
+
text-overflow: ellipsis;
|
|
1251
|
+
margin: 0;
|
|
1252
|
+
font-size: var(--ndw-base-font-size);
|
|
1253
|
+
font-weight: var(--ndw-font-weight-bold);
|
|
1254
|
+
font-family: var(--ndw-font-family-heading);
|
|
1255
|
+
}
|
|
1256
|
+
.ndw-summary-card .ndw-summary-card-header__title a {
|
|
1257
|
+
color: inherit;
|
|
1258
|
+
text-decoration: none;
|
|
1259
|
+
font-family: var(--ndw-font-family-heading);
|
|
1260
|
+
}
|
|
1261
|
+
.ndw-summary-card .ndw-summary-card-header__title a:hover {
|
|
1262
|
+
text-decoration: underline;
|
|
1263
|
+
}
|
|
1264
|
+
.ndw-summary-card .ndw-summary-card-header__title a:after {
|
|
1265
|
+
content: "";
|
|
1266
|
+
position: absolute;
|
|
1267
|
+
inset: 0;
|
|
1268
|
+
}
|
|
1269
|
+
.ndw-summary-card .ndw-summary-card-header__title a:focus {
|
|
1270
|
+
outline: 0;
|
|
1271
|
+
}
|
|
1272
|
+
.ndw-summary-card .ndw-summary-card-content {
|
|
1273
|
+
overflow: hidden;
|
|
1274
|
+
text-overflow: ellipsis;
|
|
1275
|
+
display: -webkit-box;
|
|
1276
|
+
-webkit-line-clamp: 2;
|
|
1277
|
+
-webkit-box-orient: vertical;
|
|
1278
|
+
font-family: var(--ndw-font-family-body);
|
|
1279
|
+
font-size: var(--ndw-font-size-sm);
|
|
1280
|
+
color: var(--ndw-color-grey-500);
|
|
1281
|
+
}
|
|
1282
|
+
.ndw-summary-card .ndw-summary-card-avatar {
|
|
1283
|
+
display: grid;
|
|
1284
|
+
place-content: center;
|
|
1285
|
+
position: relative;
|
|
1286
|
+
width: 30px;
|
|
1287
|
+
aspect-ratio: 1/1;
|
|
1288
|
+
border-radius: 50%;
|
|
1289
|
+
font-size: var(--ndw-font-size-sm);
|
|
1290
|
+
}
|
|
1291
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--default {
|
|
1292
|
+
color: var(--ndw-color-grey-700);
|
|
1293
|
+
background-color: var(--ndw-color-grey-300);
|
|
1294
|
+
}
|
|
1295
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--orange {
|
|
1296
|
+
color: var(--ndw-color-primary-700);
|
|
1297
|
+
background-color: var(--ndw-color-primary-050);
|
|
1298
|
+
}
|
|
1299
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--blue {
|
|
1300
|
+
color: var(--ndw-color-info-500);
|
|
1301
|
+
background-color: var(--ndw-color-info-100);
|
|
1302
|
+
}
|
|
1303
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--green {
|
|
1304
|
+
color: var(--ndw-color-positive-500);
|
|
1305
|
+
background-color: var(--ndw-color-positive-100);
|
|
1306
|
+
}
|
|
1307
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--red {
|
|
1308
|
+
color: var(--ndw-color-critical-500);
|
|
1309
|
+
background-color: var(--ndw-color-critical-100);
|
|
1310
|
+
}
|
|
1311
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--yellow {
|
|
1312
|
+
color: var(--ndw-color-warning-500);
|
|
1313
|
+
background-color: var(--ndw-color-warning-100);
|
|
1314
|
+
}
|
|
1315
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--purple {
|
|
1316
|
+
color: var(--ndw-color-alternative-500);
|
|
1317
|
+
background-color: var(--ndw-color-alternative-100);
|
|
1318
|
+
}
|
|
1319
|
+
.ndw-summary-card .ndw-summary-card-avatar > img {
|
|
1320
|
+
display: block;
|
|
1321
|
+
width: 100%;
|
|
1322
|
+
height: 100%;
|
|
1323
|
+
object-fit: cover;
|
|
1324
|
+
border-radius: 50%;
|
|
1325
|
+
}
|
|
1326
|
+
.ndw-summary-card .ndw-summary-card-avatar ndw-icon {
|
|
1327
|
+
font-size: var(--ndw-font-size-lg);
|
|
1328
|
+
}
|
|
1329
|
+
.ndw-summary-card .ndw-summary-card-actions {
|
|
1330
|
+
flex: 1;
|
|
1331
|
+
justify-items: right;
|
|
1332
|
+
}
|
|
1333
|
+
.ndw-summary-card .ndw-summary-card-actions--auto {
|
|
1334
|
+
container-type: inline-size;
|
|
1335
|
+
}
|
|
1336
|
+
.ndw-summary-card .ndw-summary-card-actions .actions {
|
|
1337
|
+
gap: var(--ndw-spacing-2xs);
|
|
1338
|
+
}
|
|
1339
|
+
.ndw-summary-card .ndw-summary-card-actions .actions--popover {
|
|
1340
|
+
display: grid;
|
|
1341
|
+
}
|
|
1342
|
+
.ndw-summary-card .ndw-summary-card-actions .actions--visible, .ndw-summary-card .ndw-summary-card-actions .actions--auto {
|
|
1343
|
+
display: flex;
|
|
1344
|
+
}
|
|
1345
|
+
.ndw-summary-card .ndw-summary-card-actions .popover-wrapper {
|
|
1346
|
+
display: block;
|
|
1347
|
+
}
|
|
1348
|
+
@container (width > 140px) {
|
|
1349
|
+
.ndw-summary-card .ndw-summary-card-actions .popover-wrapper {
|
|
1350
|
+
display: none;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
.ndw-summary-card .ndw-summary-card-actions .regular-wrapper {
|
|
1354
|
+
display: none;
|
|
1355
|
+
}
|
|
1356
|
+
@container (width > 140px) {
|
|
1357
|
+
.ndw-summary-card .ndw-summary-card-actions .regular-wrapper {
|
|
1358
|
+
display: block;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
package/core/style/styles.scss
CHANGED
|
@@ -1172,3 +1172,189 @@ textarea[ndwInput] {
|
|
|
1172
1172
|
display: grid;
|
|
1173
1173
|
padding: var(--ndw-spacing-sm);
|
|
1174
1174
|
}
|
|
1175
|
+
|
|
1176
|
+
.ndw-summary-card {
|
|
1177
|
+
display: block;
|
|
1178
|
+
}
|
|
1179
|
+
.ndw-summary-card__wrapper {
|
|
1180
|
+
position: relative;
|
|
1181
|
+
overflow: hidden;
|
|
1182
|
+
display: grid;
|
|
1183
|
+
gap: var(--ndw-spacing-md);
|
|
1184
|
+
height: 100%;
|
|
1185
|
+
align-items: start;
|
|
1186
|
+
box-sizing: border-box;
|
|
1187
|
+
}
|
|
1188
|
+
.ndw-summary-card__wrapper:has(ndw-summary-card-avatar) {
|
|
1189
|
+
grid-template-columns: max-content 1fr;
|
|
1190
|
+
}
|
|
1191
|
+
.ndw-summary-card__wrapper:has(a:focus:not(:active)) {
|
|
1192
|
+
outline: var(--ndw-border-size-sm) solid var(--ndw-color-secondary-500);
|
|
1193
|
+
}
|
|
1194
|
+
.ndw-summary-card__content {
|
|
1195
|
+
display: grid;
|
|
1196
|
+
gap: var(--ndw-spacing-xs);
|
|
1197
|
+
}
|
|
1198
|
+
.ndw-summary-card .ndw-summary-card-tags {
|
|
1199
|
+
display: flex;
|
|
1200
|
+
flex-wrap: wrap;
|
|
1201
|
+
gap: var(--ndw-spacing-xs);
|
|
1202
|
+
}
|
|
1203
|
+
.ndw-summary-card .ndw-summary-card-tag {
|
|
1204
|
+
display: flex;
|
|
1205
|
+
flex-wrap: nowrap;
|
|
1206
|
+
gap: var(--ndw-spacing-2xs);
|
|
1207
|
+
align-items: center;
|
|
1208
|
+
border: 1px solid var(--ndw-color-grey-100);
|
|
1209
|
+
border-radius: var(--ndw-border-radius-xs);
|
|
1210
|
+
padding: var(--ndw-spacing-2xs);
|
|
1211
|
+
color: var(--ndw-color-grey-500);
|
|
1212
|
+
font-size: var(--ndw-font-size-xs);
|
|
1213
|
+
}
|
|
1214
|
+
.ndw-summary-card .ndw-summary-card-tag ndw-icon {
|
|
1215
|
+
font-size: var(--ndw-font-size-sm);
|
|
1216
|
+
}
|
|
1217
|
+
.ndw-summary-card .ndw-summary-card-tag img {
|
|
1218
|
+
display: block;
|
|
1219
|
+
height: var(--ndw-font-size-sm);
|
|
1220
|
+
}
|
|
1221
|
+
.ndw-summary-card .ndw-summary-card-subtitle {
|
|
1222
|
+
display: grid;
|
|
1223
|
+
grid-template-columns: max-content 1fr;
|
|
1224
|
+
align-items: center;
|
|
1225
|
+
gap: var(--ndw-spacing-3xs);
|
|
1226
|
+
color: var(--ndw-color-grey-500);
|
|
1227
|
+
font-size: var(--ndw-font-size-xs);
|
|
1228
|
+
}
|
|
1229
|
+
.ndw-summary-card .ndw-summary-card-subtitle ndw-icon {
|
|
1230
|
+
font-size: var(--ndw-font-size-sm);
|
|
1231
|
+
}
|
|
1232
|
+
.ndw-summary-card .ndw-summary-card-subtitle__text {
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
text-overflow: ellipsis;
|
|
1235
|
+
white-space: nowrap;
|
|
1236
|
+
}
|
|
1237
|
+
.ndw-summary-card .ndw-summary-card-header {
|
|
1238
|
+
display: flex;
|
|
1239
|
+
gap: var(--ndw-spacing-xs);
|
|
1240
|
+
}
|
|
1241
|
+
.ndw-summary-card .ndw-summary-card-header__wrapper {
|
|
1242
|
+
display: grid;
|
|
1243
|
+
gap: var(--ndw-spacing-2xs);
|
|
1244
|
+
justify-items: left;
|
|
1245
|
+
}
|
|
1246
|
+
.ndw-summary-card .ndw-summary-card-header__title {
|
|
1247
|
+
width: 100%;
|
|
1248
|
+
white-space: nowrap;
|
|
1249
|
+
overflow: hidden;
|
|
1250
|
+
text-overflow: ellipsis;
|
|
1251
|
+
margin: 0;
|
|
1252
|
+
font-size: var(--ndw-base-font-size);
|
|
1253
|
+
font-weight: var(--ndw-font-weight-bold);
|
|
1254
|
+
font-family: var(--ndw-font-family-heading);
|
|
1255
|
+
}
|
|
1256
|
+
.ndw-summary-card .ndw-summary-card-header__title a {
|
|
1257
|
+
color: inherit;
|
|
1258
|
+
text-decoration: none;
|
|
1259
|
+
font-family: var(--ndw-font-family-heading);
|
|
1260
|
+
}
|
|
1261
|
+
.ndw-summary-card .ndw-summary-card-header__title a:hover {
|
|
1262
|
+
text-decoration: underline;
|
|
1263
|
+
}
|
|
1264
|
+
.ndw-summary-card .ndw-summary-card-header__title a:after {
|
|
1265
|
+
content: "";
|
|
1266
|
+
position: absolute;
|
|
1267
|
+
inset: 0;
|
|
1268
|
+
}
|
|
1269
|
+
.ndw-summary-card .ndw-summary-card-header__title a:focus {
|
|
1270
|
+
outline: 0;
|
|
1271
|
+
}
|
|
1272
|
+
.ndw-summary-card .ndw-summary-card-content {
|
|
1273
|
+
overflow: hidden;
|
|
1274
|
+
text-overflow: ellipsis;
|
|
1275
|
+
display: -webkit-box;
|
|
1276
|
+
-webkit-line-clamp: 2;
|
|
1277
|
+
-webkit-box-orient: vertical;
|
|
1278
|
+
font-family: var(--ndw-font-family-body);
|
|
1279
|
+
font-size: var(--ndw-font-size-sm);
|
|
1280
|
+
color: var(--ndw-color-grey-500);
|
|
1281
|
+
}
|
|
1282
|
+
.ndw-summary-card .ndw-summary-card-avatar {
|
|
1283
|
+
display: grid;
|
|
1284
|
+
place-content: center;
|
|
1285
|
+
position: relative;
|
|
1286
|
+
width: 30px;
|
|
1287
|
+
aspect-ratio: 1/1;
|
|
1288
|
+
border-radius: 50%;
|
|
1289
|
+
font-size: var(--ndw-font-size-sm);
|
|
1290
|
+
}
|
|
1291
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--default {
|
|
1292
|
+
color: var(--ndw-color-grey-700);
|
|
1293
|
+
background-color: var(--ndw-color-grey-300);
|
|
1294
|
+
}
|
|
1295
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--orange {
|
|
1296
|
+
color: var(--ndw-color-primary-700);
|
|
1297
|
+
background-color: var(--ndw-color-primary-050);
|
|
1298
|
+
}
|
|
1299
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--blue {
|
|
1300
|
+
color: var(--ndw-color-info-500);
|
|
1301
|
+
background-color: var(--ndw-color-info-100);
|
|
1302
|
+
}
|
|
1303
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--green {
|
|
1304
|
+
color: var(--ndw-color-positive-500);
|
|
1305
|
+
background-color: var(--ndw-color-positive-100);
|
|
1306
|
+
}
|
|
1307
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--red {
|
|
1308
|
+
color: var(--ndw-color-critical-500);
|
|
1309
|
+
background-color: var(--ndw-color-critical-100);
|
|
1310
|
+
}
|
|
1311
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--yellow {
|
|
1312
|
+
color: var(--ndw-color-warning-500);
|
|
1313
|
+
background-color: var(--ndw-color-warning-100);
|
|
1314
|
+
}
|
|
1315
|
+
.ndw-summary-card .ndw-summary-card-avatar.ndw-summary-card-avatar--purple {
|
|
1316
|
+
color: var(--ndw-color-alternative-500);
|
|
1317
|
+
background-color: var(--ndw-color-alternative-100);
|
|
1318
|
+
}
|
|
1319
|
+
.ndw-summary-card .ndw-summary-card-avatar > img {
|
|
1320
|
+
display: block;
|
|
1321
|
+
width: 100%;
|
|
1322
|
+
height: 100%;
|
|
1323
|
+
object-fit: cover;
|
|
1324
|
+
border-radius: 50%;
|
|
1325
|
+
}
|
|
1326
|
+
.ndw-summary-card .ndw-summary-card-avatar ndw-icon {
|
|
1327
|
+
font-size: var(--ndw-font-size-lg);
|
|
1328
|
+
}
|
|
1329
|
+
.ndw-summary-card .ndw-summary-card-actions {
|
|
1330
|
+
flex: 1;
|
|
1331
|
+
justify-items: right;
|
|
1332
|
+
}
|
|
1333
|
+
.ndw-summary-card .ndw-summary-card-actions--auto {
|
|
1334
|
+
container-type: inline-size;
|
|
1335
|
+
}
|
|
1336
|
+
.ndw-summary-card .ndw-summary-card-actions .actions {
|
|
1337
|
+
gap: var(--ndw-spacing-2xs);
|
|
1338
|
+
}
|
|
1339
|
+
.ndw-summary-card .ndw-summary-card-actions .actions--popover {
|
|
1340
|
+
display: grid;
|
|
1341
|
+
}
|
|
1342
|
+
.ndw-summary-card .ndw-summary-card-actions .actions--visible, .ndw-summary-card .ndw-summary-card-actions .actions--auto {
|
|
1343
|
+
display: flex;
|
|
1344
|
+
}
|
|
1345
|
+
.ndw-summary-card .ndw-summary-card-actions .popover-wrapper {
|
|
1346
|
+
display: block;
|
|
1347
|
+
}
|
|
1348
|
+
@container (width > 140px) {
|
|
1349
|
+
.ndw-summary-card .ndw-summary-card-actions .popover-wrapper {
|
|
1350
|
+
display: none;
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
.ndw-summary-card .ndw-summary-card-actions .regular-wrapper {
|
|
1354
|
+
display: none;
|
|
1355
|
+
}
|
|
1356
|
+
@container (width > 140px) {
|
|
1357
|
+
.ndw-summary-card .ndw-summary-card-actions .regular-wrapper {
|
|
1358
|
+
display: block;
|
|
1359
|
+
}
|
|
1360
|
+
}
|