@cngx/common 0.1.0-rc.6 → 0.1.0-rc.7
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/chart/README.md +85 -0
- package/command/README.md +157 -0
- package/data/README.md +23 -0
- package/fesm2022/cngx-common-a11y.mjs +247 -85
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +37 -37
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-card.mjs +13 -9
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +3404 -1392
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +144 -0
- package/fesm2022/cngx-common-command.mjs.map +1 -0
- package/fesm2022/cngx-common-data.mjs +304 -213
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +369 -100
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +138 -24
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +1089 -459
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +113 -61
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-popover.mjs +430 -54
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +107 -49
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +1170 -752
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +1086 -0
- package/fesm2022/cngx-common-timeline.mjs.map +1 -0
- package/fesm2022/cngx-common.mjs +2 -2
- package/fesm2022/cngx-common.mjs.map +1 -1
- package/package.json +11 -1
- package/stepper/README.md +1 -1
- package/theming/components/cngx-accordion.css +3 -0
- package/theming/components/cngx-badge.css +22 -0
- package/theming/components/cngx-bottom-sheet.css +14 -2
- package/theming/components/cngx-breadcrumb.css +8 -0
- package/theming/components/cngx-button-toggle.css +44 -2
- package/theming/components/cngx-data-grid.css +66 -0
- package/theming/components/cngx-dialog.css +12 -0
- package/theming/components/cngx-divider.css +12 -0
- package/theming/components/cngx-listbox.css +27 -0
- package/theming/components/cngx-menu.css +36 -0
- package/theming/components/cngx-ripple.css +1 -1
- package/theming/components/cngx-tooltip.css +11 -0
- package/types/cngx-common-a11y.d.ts +63 -17
- package/types/cngx-common-audio.d.ts +32 -32
- package/types/cngx-common-card.d.ts +10 -3
- package/types/cngx-common-chart.d.ts +1281 -141
- package/types/cngx-common-command.d.ts +167 -0
- package/types/cngx-common-data.d.ts +264 -98
- package/types/cngx-common-dialog.d.ts +214 -25
- package/types/cngx-common-display.d.ts +83 -13
- package/types/cngx-common-interactive.d.ts +708 -174
- package/types/cngx-common-layout.d.ts +48 -1
- package/types/cngx-common-popover.d.ts +120 -3
- package/types/cngx-common-stepper.d.ts +55 -5
- package/types/cngx-common-tabs.d.ts +386 -25
- package/types/cngx-common-timeline.d.ts +1059 -0
- package/types/cngx-common.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, Directive, signal, inject, ElementRef, contentChildren, afterRenderEffect, Renderer2, effect, DestroyRef, output, LOCALE_ID, InjectionToken, TemplateRef, contentChild, makeEnvironmentProviders,
|
|
2
|
+
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component, computed, Directive, signal, inject, ElementRef, contentChildren, afterRenderEffect, Renderer2, effect, DestroyRef, output, booleanAttribute, isDevMode, afterNextRender, LOCALE_ID, InjectionToken, TemplateRef, contentChild, makeEnvironmentProviders, untracked } from '@angular/core';
|
|
3
3
|
import { nextUid } from '@cngx/core/utils';
|
|
4
4
|
import { NgTemplateOutlet } from '@angular/common';
|
|
5
5
|
|
|
@@ -275,7 +275,7 @@ class CngxAvatar {
|
|
|
275
275
|
[attr.aria-label]="status()"
|
|
276
276
|
></span>
|
|
277
277
|
}
|
|
278
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-avatar-size{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-font-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.92 .01 240);}@property --cngx-avatar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.28 0 0);}@property --cngx-avatar-circle-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-avatar-square-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-avatar-size-xs{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-size-sm{syntax: \"*\"; inherits: false; initial-value: 2rem;}@property --cngx-avatar-size-md{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-size-lg{syntax: \"*\"; inherits: false; initial-value: 3rem;}@property --cngx-avatar-size-xl{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-avatar-font-size-xs{syntax: \"*\"; inherits: false; initial-value: .625rem;}@property --cngx-avatar-font-size-sm{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-avatar-font-size-md{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-font-size-lg{syntax: \"*\"; inherits: false; initial-value: 1.125rem;}@property --cngx-avatar-font-size-xl{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-status-size{syntax: \"*\"; inherits: false; initial-value: .65em;}@property --cngx-avatar-status-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-avatar-status-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-online{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .18 145);}@property --cngx-avatar-status-offline{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-busy{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-avatar-status-away{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}}[data-color-scheme=dark],.dark{--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}[data-color-scheme=light],.light{--cngx-avatar-bg: oklch(.92 .01 240);--cngx-avatar-color: oklch(.28 0 0);--cngx-avatar-status-border: oklch(1 0 0)}}@layer cngx.components{@scope(.cngx-avatar){:scope{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto;-webkit-user-select:none;user-select:none;overflow:visible;line-height:1;font-weight:600;width:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));height:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));font-size:var(--cngx-avatar-font-size, var(--cngx-avatar-font-size-md, 1rem));background:var(--cngx-avatar-bg, var(--cngx-color-border, oklch(.92 .01 240)));color:var(--cngx-avatar-color, var(--cngx-color-text, oklch(.28 0 0)))}:scope.cngx-avatar--circle{border-radius:var(--cngx-avatar-circle-radius, var(--cngx-radius-pill, 999px))}:scope.cngx-avatar--square{border-radius:var(--cngx-avatar-square-radius, 6px)}:scope.cngx-avatar--xs{--cngx-avatar-size: var(--cngx-avatar-size-xs, 1.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xs, .625rem)}:scope.cngx-avatar--sm{--cngx-avatar-size: var(--cngx-avatar-size-sm, 2rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-sm, .75rem)}:scope.cngx-avatar--md{--cngx-avatar-size: var(--cngx-avatar-size-md, 2.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-md, 1rem)}:scope.cngx-avatar--lg{--cngx-avatar-size: var(--cngx-avatar-size-lg, 3rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-lg, 1.125rem)}:scope.cngx-avatar--xl{--cngx-avatar-size: var(--cngx-avatar-size-xl, 4rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xl, 1.5rem)}.cngx-avatar__img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.cngx-avatar__initials{text-transform:uppercase}.cngx-avatar__status{position:absolute;
|
|
278
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-avatar-size{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-font-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.92 .01 240);}@property --cngx-avatar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.28 0 0);}@property --cngx-avatar-circle-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-avatar-square-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-avatar-size-xs{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-size-sm{syntax: \"*\"; inherits: false; initial-value: 2rem;}@property --cngx-avatar-size-md{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-size-lg{syntax: \"*\"; inherits: false; initial-value: 3rem;}@property --cngx-avatar-size-xl{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-avatar-font-size-xs{syntax: \"*\"; inherits: false; initial-value: .625rem;}@property --cngx-avatar-font-size-sm{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-avatar-font-size-md{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-font-size-lg{syntax: \"*\"; inherits: false; initial-value: 1.125rem;}@property --cngx-avatar-font-size-xl{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-status-size{syntax: \"*\"; inherits: false; initial-value: .65em;}@property --cngx-avatar-status-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-avatar-status-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-online{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .18 145);}@property --cngx-avatar-status-offline{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-busy{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-avatar-status-away{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}}[data-color-scheme=dark],.dark{--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}[data-color-scheme=light],.light{--cngx-avatar-bg: oklch(.92 .01 240);--cngx-avatar-color: oklch(.28 0 0);--cngx-avatar-status-border: oklch(1 0 0)}}@layer cngx.components{@scope(.cngx-avatar){:scope{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto;-webkit-user-select:none;user-select:none;overflow:visible;line-height:1;font-weight:600;width:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));height:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));font-size:var(--cngx-avatar-font-size, var(--cngx-avatar-font-size-md, 1rem));background:var(--cngx-avatar-bg, var(--cngx-color-border, oklch(.92 .01 240)));color:var(--cngx-avatar-color, var(--cngx-color-text, oklch(.28 0 0)))}:scope.cngx-avatar--circle{border-radius:var(--cngx-avatar-circle-radius, var(--cngx-radius-pill, 999px))}:scope.cngx-avatar--square{border-radius:var(--cngx-avatar-square-radius, 6px)}:scope.cngx-avatar--xs{--cngx-avatar-size: var(--cngx-avatar-size-xs, 1.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xs, .625rem)}:scope.cngx-avatar--sm{--cngx-avatar-size: var(--cngx-avatar-size-sm, 2rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-sm, .75rem)}:scope.cngx-avatar--md{--cngx-avatar-size: var(--cngx-avatar-size-md, 2.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-md, 1rem)}:scope.cngx-avatar--lg{--cngx-avatar-size: var(--cngx-avatar-size-lg, 3rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-lg, 1.125rem)}:scope.cngx-avatar--xl{--cngx-avatar-size: var(--cngx-avatar-size-xl, 4rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xl, 1.5rem)}.cngx-avatar__img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.cngx-avatar__initials{text-transform:uppercase}.cngx-avatar__status{position:absolute;inset-inline-end:-2px;bottom:-2px;width:var(--cngx-avatar-status-size, .65em);height:var(--cngx-avatar-status-size, .65em);border-radius:var(--cngx-radius-pill, 999px);border:2px solid var(--cngx-avatar-status-border, var(--cngx-color-surface, oklch(1 0 0)));background:var(--cngx-avatar-status-bg, oklch(.68 .01 240))}.cngx-avatar__status--online{background:var(--cngx-avatar-status-online, var(--cngx-color-success, oklch(.68 .18 145)))}.cngx-avatar__status--offline{background:var(--cngx-avatar-status-offline, oklch(.68 .01 240))}.cngx-avatar__status--busy{background:var(--cngx-avatar-status-busy, var(--cngx-color-danger, oklch(.62 .22 25)))}.cngx-avatar__status--away{background:var(--cngx-avatar-status-away, var(--cngx-color-warning, oklch(.72 .18 70)))}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
279
279
|
}
|
|
280
280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAvatar, decorators: [{
|
|
281
281
|
type: Component,
|
|
@@ -312,7 +312,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
312
312
|
[attr.aria-label]="status()"
|
|
313
313
|
></span>
|
|
314
314
|
}
|
|
315
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-avatar-size{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-font-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.92 .01 240);}@property --cngx-avatar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.28 0 0);}@property --cngx-avatar-circle-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-avatar-square-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-avatar-size-xs{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-size-sm{syntax: \"*\"; inherits: false; initial-value: 2rem;}@property --cngx-avatar-size-md{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-size-lg{syntax: \"*\"; inherits: false; initial-value: 3rem;}@property --cngx-avatar-size-xl{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-avatar-font-size-xs{syntax: \"*\"; inherits: false; initial-value: .625rem;}@property --cngx-avatar-font-size-sm{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-avatar-font-size-md{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-font-size-lg{syntax: \"*\"; inherits: false; initial-value: 1.125rem;}@property --cngx-avatar-font-size-xl{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-status-size{syntax: \"*\"; inherits: false; initial-value: .65em;}@property --cngx-avatar-status-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-avatar-status-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-online{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .18 145);}@property --cngx-avatar-status-offline{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-busy{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-avatar-status-away{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}}[data-color-scheme=dark],.dark{--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}[data-color-scheme=light],.light{--cngx-avatar-bg: oklch(.92 .01 240);--cngx-avatar-color: oklch(.28 0 0);--cngx-avatar-status-border: oklch(1 0 0)}}@layer cngx.components{@scope(.cngx-avatar){:scope{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto;-webkit-user-select:none;user-select:none;overflow:visible;line-height:1;font-weight:600;width:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));height:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));font-size:var(--cngx-avatar-font-size, var(--cngx-avatar-font-size-md, 1rem));background:var(--cngx-avatar-bg, var(--cngx-color-border, oklch(.92 .01 240)));color:var(--cngx-avatar-color, var(--cngx-color-text, oklch(.28 0 0)))}:scope.cngx-avatar--circle{border-radius:var(--cngx-avatar-circle-radius, var(--cngx-radius-pill, 999px))}:scope.cngx-avatar--square{border-radius:var(--cngx-avatar-square-radius, 6px)}:scope.cngx-avatar--xs{--cngx-avatar-size: var(--cngx-avatar-size-xs, 1.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xs, .625rem)}:scope.cngx-avatar--sm{--cngx-avatar-size: var(--cngx-avatar-size-sm, 2rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-sm, .75rem)}:scope.cngx-avatar--md{--cngx-avatar-size: var(--cngx-avatar-size-md, 2.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-md, 1rem)}:scope.cngx-avatar--lg{--cngx-avatar-size: var(--cngx-avatar-size-lg, 3rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-lg, 1.125rem)}:scope.cngx-avatar--xl{--cngx-avatar-size: var(--cngx-avatar-size-xl, 4rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xl, 1.5rem)}.cngx-avatar__img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.cngx-avatar__initials{text-transform:uppercase}.cngx-avatar__status{position:absolute;
|
|
315
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-avatar-size{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-font-size{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.92 .01 240);}@property --cngx-avatar-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.28 0 0);}@property --cngx-avatar-circle-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-avatar-square-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-avatar-size-xs{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-size-sm{syntax: \"*\"; inherits: false; initial-value: 2rem;}@property --cngx-avatar-size-md{syntax: \"*\"; inherits: false; initial-value: 2.5rem;}@property --cngx-avatar-size-lg{syntax: \"*\"; inherits: false; initial-value: 3rem;}@property --cngx-avatar-size-xl{syntax: \"*\"; inherits: false; initial-value: 4rem;}@property --cngx-avatar-font-size-xs{syntax: \"*\"; inherits: false; initial-value: .625rem;}@property --cngx-avatar-font-size-sm{syntax: \"*\"; inherits: false; initial-value: .75rem;}@property --cngx-avatar-font-size-md{syntax: \"*\"; inherits: false; initial-value: 1rem;}@property --cngx-avatar-font-size-lg{syntax: \"*\"; inherits: false; initial-value: 1.125rem;}@property --cngx-avatar-font-size-xl{syntax: \"*\"; inherits: false; initial-value: 1.5rem;}@property --cngx-avatar-status-size{syntax: \"*\"; inherits: false; initial-value: .65em;}@property --cngx-avatar-status-border{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-avatar-status-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-online{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .18 145);}@property --cngx-avatar-status-offline{syntax: \"<color>\"; inherits: true; initial-value: oklch(.68 .01 240);}@property --cngx-avatar-status-busy{syntax: \"<color>\"; inherits: true; initial-value: oklch(.62 .22 25);}@property --cngx-avatar-status-away{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}}[data-color-scheme=dark],.dark{--cngx-avatar-bg: oklch(.36 .01 250);--cngx-avatar-color: oklch(.92 .01 250);--cngx-avatar-status-border: oklch(.2 .01 250)}[data-color-scheme=light],.light{--cngx-avatar-bg: oklch(.92 .01 240);--cngx-avatar-color: oklch(.28 0 0);--cngx-avatar-status-border: oklch(1 0 0)}}@layer cngx.components{@scope(.cngx-avatar){:scope{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:0 0 auto;-webkit-user-select:none;user-select:none;overflow:visible;line-height:1;font-weight:600;width:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));height:var(--cngx-avatar-size, var(--cngx-avatar-size-md, 2.5rem));font-size:var(--cngx-avatar-font-size, var(--cngx-avatar-font-size-md, 1rem));background:var(--cngx-avatar-bg, var(--cngx-color-border, oklch(.92 .01 240)));color:var(--cngx-avatar-color, var(--cngx-color-text, oklch(.28 0 0)))}:scope.cngx-avatar--circle{border-radius:var(--cngx-avatar-circle-radius, var(--cngx-radius-pill, 999px))}:scope.cngx-avatar--square{border-radius:var(--cngx-avatar-square-radius, 6px)}:scope.cngx-avatar--xs{--cngx-avatar-size: var(--cngx-avatar-size-xs, 1.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xs, .625rem)}:scope.cngx-avatar--sm{--cngx-avatar-size: var(--cngx-avatar-size-sm, 2rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-sm, .75rem)}:scope.cngx-avatar--md{--cngx-avatar-size: var(--cngx-avatar-size-md, 2.5rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-md, 1rem)}:scope.cngx-avatar--lg{--cngx-avatar-size: var(--cngx-avatar-size-lg, 3rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-lg, 1.125rem)}:scope.cngx-avatar--xl{--cngx-avatar-size: var(--cngx-avatar-size-xl, 4rem);--cngx-avatar-font-size: var(--cngx-avatar-font-size-xl, 1.5rem)}.cngx-avatar__img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.cngx-avatar__initials{text-transform:uppercase}.cngx-avatar__status{position:absolute;inset-inline-end:-2px;bottom:-2px;width:var(--cngx-avatar-status-size, .65em);height:var(--cngx-avatar-status-size, .65em);border-radius:var(--cngx-radius-pill, 999px);border:2px solid var(--cngx-avatar-status-border, var(--cngx-color-surface, oklch(1 0 0)));background:var(--cngx-avatar-status-bg, oklch(.68 .01 240))}.cngx-avatar__status--online{background:var(--cngx-avatar-status-online, var(--cngx-color-success, oklch(.68 .18 145)))}.cngx-avatar__status--offline{background:var(--cngx-avatar-status-offline, oklch(.68 .01 240))}.cngx-avatar__status--busy{background:var(--cngx-avatar-status-busy, var(--cngx-color-danger, oklch(.62 .22 25)))}.cngx-avatar__status--away{background:var(--cngx-avatar-status-away, var(--cngx-color-warning, oklch(.72 .18 70)))}}}\n"] }]
|
|
316
316
|
}], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }] } });
|
|
317
317
|
|
|
318
318
|
/**
|
|
@@ -384,7 +384,7 @@ class CngxAvatarGroup {
|
|
|
384
384
|
@if (hiddenCount() > 0) {
|
|
385
385
|
<span class="cngx-avatar-group__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
|
|
386
386
|
}
|
|
387
|
-
`, isInline: true, styles: [".cngx-avatar-group{display:inline-flex;align-items:center}.cngx-avatar-group>.cngx-avatar,.cngx-avatar-group__overflow{border:var(--cngx-avatar-group-ring-width, 2px) solid var(--cngx-avatar-group-ring-color, var(--cngx-color-surface, oklch(1 0 0)))}.cngx-avatar-group>.cngx-avatar:not(:first-child),.cngx-avatar-group__overflow{margin-inline-start:var(--cngx-avatar-group-overlap, -.5rem)}.cngx-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--cngx-avatar-group-pill-size, 2.5rem);block-size:var(--cngx-avatar-group-pill-size, 2.5rem);border-radius:50%;background:var(--cngx-avatar-group-pill-bg, var(--cngx-color-muted, oklch(.92 .005 250)));color:var(--cngx-avatar-group-pill-color, var(--cngx-color-text, oklch(.2 .01 250)));font-size:var(--cngx-avatar-group-pill-font-size, .8125rem);font-weight:600;line-height:1}.cngx-avatar-group--square .cngx-avatar-group__overflow{border-radius:var(--cngx-radius-md, .375rem)}.cngx-avatar-group--xs{--cngx-avatar-group-pill-size: 1.5rem;--cngx-avatar-group-overlap: -.375rem;--cngx-avatar-group-pill-font-size: .625rem}.cngx-avatar-group--sm{--cngx-avatar-group-pill-size: 2rem;--cngx-avatar-group-overlap: -.5rem;--cngx-avatar-group-pill-font-size: .75rem}.cngx-avatar-group--md{--cngx-avatar-group-pill-size: 2.5rem;--cngx-avatar-group-overlap: -.625rem;--cngx-avatar-group-pill-font-size: .8125rem}.cngx-avatar-group--lg{--cngx-avatar-group-pill-size: 3rem;--cngx-avatar-group-overlap: -.75rem;--cngx-avatar-group-pill-font-size: .875rem}.cngx-avatar-group--xl{--cngx-avatar-group-pill-size: 4rem;--cngx-avatar-group-overlap: -1rem;--cngx-avatar-group-pill-font-size: 1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
387
|
+
`, isInline: true, styles: [".cngx-avatar-group{display:inline-flex;align-items:center}.cngx-avatar-group>.cngx-avatar,.cngx-avatar-group__overflow{border:var(--cngx-avatar-group-ring-width, 2px) solid var(--cngx-avatar-group-ring-color, var(--cngx-color-surface, oklch(1 0 0)))}.cngx-avatar-group>.cngx-avatar:not(:first-child),.cngx-avatar-group__overflow{margin-inline-start:var(--cngx-avatar-group-overlap, -.5rem)}.cngx-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--cngx-avatar-group-pill-size, 2.5rem);block-size:var(--cngx-avatar-group-pill-size, 2.5rem);border-radius:50%;background:var(--cngx-avatar-group-pill-bg, var(--cngx-color-muted, oklch(.92 .005 250)));color:var(--cngx-avatar-group-pill-color, var(--cngx-color-text, oklch(.2 .01 250)));font-size:var(--cngx-avatar-group-pill-font-size, .8125rem);font-weight:600;line-height:1;unicode-bidi:var(--cngx-avatar-group-overflow-bidi, isolate);direction:var(--cngx-avatar-group-overflow-direction, ltr)}.cngx-avatar-group--square .cngx-avatar-group__overflow{border-radius:var(--cngx-radius-md, .375rem)}.cngx-avatar-group--xs{--cngx-avatar-group-pill-size: 1.5rem;--cngx-avatar-group-overlap: -.375rem;--cngx-avatar-group-pill-font-size: .625rem}.cngx-avatar-group--sm{--cngx-avatar-group-pill-size: 2rem;--cngx-avatar-group-overlap: -.5rem;--cngx-avatar-group-pill-font-size: .75rem}.cngx-avatar-group--md{--cngx-avatar-group-pill-size: 2.5rem;--cngx-avatar-group-overlap: -.625rem;--cngx-avatar-group-pill-font-size: .8125rem}.cngx-avatar-group--lg{--cngx-avatar-group-pill-size: 3rem;--cngx-avatar-group-overlap: -.75rem;--cngx-avatar-group-pill-font-size: .875rem}.cngx-avatar-group--xl{--cngx-avatar-group-pill-size: 4rem;--cngx-avatar-group-overlap: -1rem;--cngx-avatar-group-pill-font-size: 1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
388
388
|
}
|
|
389
389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxAvatarGroup, decorators: [{
|
|
390
390
|
type: Component,
|
|
@@ -403,7 +403,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
403
403
|
@if (hiddenCount() > 0) {
|
|
404
404
|
<span class="cngx-avatar-group__overflow" aria-hidden="true">+{{ hiddenCount() }}</span>
|
|
405
405
|
}
|
|
406
|
-
`, styles: [".cngx-avatar-group{display:inline-flex;align-items:center}.cngx-avatar-group>.cngx-avatar,.cngx-avatar-group__overflow{border:var(--cngx-avatar-group-ring-width, 2px) solid var(--cngx-avatar-group-ring-color, var(--cngx-color-surface, oklch(1 0 0)))}.cngx-avatar-group>.cngx-avatar:not(:first-child),.cngx-avatar-group__overflow{margin-inline-start:var(--cngx-avatar-group-overlap, -.5rem)}.cngx-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--cngx-avatar-group-pill-size, 2.5rem);block-size:var(--cngx-avatar-group-pill-size, 2.5rem);border-radius:50%;background:var(--cngx-avatar-group-pill-bg, var(--cngx-color-muted, oklch(.92 .005 250)));color:var(--cngx-avatar-group-pill-color, var(--cngx-color-text, oklch(.2 .01 250)));font-size:var(--cngx-avatar-group-pill-font-size, .8125rem);font-weight:600;line-height:1}.cngx-avatar-group--square .cngx-avatar-group__overflow{border-radius:var(--cngx-radius-md, .375rem)}.cngx-avatar-group--xs{--cngx-avatar-group-pill-size: 1.5rem;--cngx-avatar-group-overlap: -.375rem;--cngx-avatar-group-pill-font-size: .625rem}.cngx-avatar-group--sm{--cngx-avatar-group-pill-size: 2rem;--cngx-avatar-group-overlap: -.5rem;--cngx-avatar-group-pill-font-size: .75rem}.cngx-avatar-group--md{--cngx-avatar-group-pill-size: 2.5rem;--cngx-avatar-group-overlap: -.625rem;--cngx-avatar-group-pill-font-size: .8125rem}.cngx-avatar-group--lg{--cngx-avatar-group-pill-size: 3rem;--cngx-avatar-group-overlap: -.75rem;--cngx-avatar-group-pill-font-size: .875rem}.cngx-avatar-group--xl{--cngx-avatar-group-pill-size: 4rem;--cngx-avatar-group-overlap: -1rem;--cngx-avatar-group-pill-font-size: 1rem}\n"] }]
|
|
406
|
+
`, styles: [".cngx-avatar-group{display:inline-flex;align-items:center}.cngx-avatar-group>.cngx-avatar,.cngx-avatar-group__overflow{border:var(--cngx-avatar-group-ring-width, 2px) solid var(--cngx-avatar-group-ring-color, var(--cngx-color-surface, oklch(1 0 0)))}.cngx-avatar-group>.cngx-avatar:not(:first-child),.cngx-avatar-group__overflow{margin-inline-start:var(--cngx-avatar-group-overlap, -.5rem)}.cngx-avatar-group__overflow{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;inline-size:var(--cngx-avatar-group-pill-size, 2.5rem);block-size:var(--cngx-avatar-group-pill-size, 2.5rem);border-radius:50%;background:var(--cngx-avatar-group-pill-bg, var(--cngx-color-muted, oklch(.92 .005 250)));color:var(--cngx-avatar-group-pill-color, var(--cngx-color-text, oklch(.2 .01 250)));font-size:var(--cngx-avatar-group-pill-font-size, .8125rem);font-weight:600;line-height:1;unicode-bidi:var(--cngx-avatar-group-overflow-bidi, isolate);direction:var(--cngx-avatar-group-overflow-direction, ltr)}.cngx-avatar-group--square .cngx-avatar-group__overflow{border-radius:var(--cngx-radius-md, .375rem)}.cngx-avatar-group--xs{--cngx-avatar-group-pill-size: 1.5rem;--cngx-avatar-group-overlap: -.375rem;--cngx-avatar-group-pill-font-size: .625rem}.cngx-avatar-group--sm{--cngx-avatar-group-pill-size: 2rem;--cngx-avatar-group-overlap: -.5rem;--cngx-avatar-group-pill-font-size: .75rem}.cngx-avatar-group--md{--cngx-avatar-group-pill-size: 2.5rem;--cngx-avatar-group-overlap: -.625rem;--cngx-avatar-group-pill-font-size: .8125rem}.cngx-avatar-group--lg{--cngx-avatar-group-pill-size: 3rem;--cngx-avatar-group-overlap: -.75rem;--cngx-avatar-group-pill-font-size: .875rem}.cngx-avatar-group--xl{--cngx-avatar-group-pill-size: 4rem;--cngx-avatar-group-overlap: -1rem;--cngx-avatar-group-pill-font-size: 1rem}\n"] }]
|
|
407
407
|
}], ctorParameters: () => [], propDecorators: { max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], avatars: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => CngxAvatar), { isSignal: true }] }] } });
|
|
408
408
|
|
|
409
409
|
/**
|
|
@@ -655,7 +655,7 @@ class CngxChip {
|
|
|
655
655
|
</ng-content>
|
|
656
656
|
</button>
|
|
657
657
|
}
|
|
658
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-chip-inner-gap{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-chip-padding-block{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-chip-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .12);}@property --cngx-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-border{syntax: \"*\"; inherits: false; initial-value: 0 solid transparent;}@property --cngx-chip-font-size{syntax: \"*\"; inherits: false; initial-value: .875em;}@property --cngx-chip-transition{syntax: \"*\"; inherits: false; initial-value: background-color .15s ease,color .15s ease,border-color .15s ease;}@property --cngx-chip-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .2);}@property --cngx-chip-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-focus-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-chip-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .38;}@property --cngx-chip-selected-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .32);}@property --cngx-chip-selected-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .12 240 / .16);}@property --cngx-chip-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .12 240);}@property --cngx-chip-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145 / .16);}@property --cngx-chip-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 145);}@property --cngx-chip-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .15 75 / .18);}@property --cngx-chip-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 75);}@property --cngx-chip-danger-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25 / .18);}@property --cngx-chip-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .2 25);}@property --cngx-chip-remove-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-chip-remove-opacity-hover{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-chip-remove-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-chip-remove-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}}[data-color-scheme=dark],.dark{--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}[data-color-scheme=light],.light{--cngx-chip-info-color: oklch(.45 .12 240);--cngx-chip-success-color: oklch(.45 .15 145);--cngx-chip-warning-color: oklch(.5 .15 75);--cngx-chip-danger-color: oklch(.5 .2 25)}}@layer cngx.components{@scope(.cngx-chip){:scope{display:inline-flex;align-items:center;line-height:1.25;max-width:100%;box-sizing:border-box;--cngx-chip-inner-gap: var(--cngx-space-xs);--cngx-chip-padding-block: var(--cngx-space-xs);--cngx-chip-padding-inline: var(--cngx-space-sm);gap:var(--cngx-chip-inner-gap, var(--cngx-space-xs, 4px));padding-block:var(--cngx-chip-padding-block, 2px);padding-inline:var(--cngx-chip-padding-inline, var(--cngx-space-sm, 8px));border-radius:var(--cngx-chip-radius, var(--cngx-radius-pill, 999px));background:var(--cngx-chip-bg, oklch(.66 .19 50 / .12));color:var(--cngx-chip-color, inherit);border:var(--cngx-chip-border, 0 solid transparent);font-size:var(--cngx-chip-font-size, var(--cngx-font-size-sm, .8125rem));transition:var( --cngx-chip-transition, background-color .15s ease, color .15s ease, border-color .15s ease )}:scope[role=button],:scope[tabindex],:scope:has(.cngx-chip__remove){cursor:pointer}:scope[role=button]:hover,:scope[tabindex]:hover,:scope:has(.cngx-chip__remove):hover{background:var(--cngx-chip-hover-bg, oklch(.66 .19 50 / .2));color:var(--cngx-chip-hover-color, inherit)}:scope:focus-visible{outline:var( --cngx-chip-focus-outline, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-chip-focus-outline-offset, 2px)}:scope[aria-selected=true],:scope[aria-pressed=true]{background:var(--cngx-chip-selected-bg, oklch(.66 .19 50 / .32));color:var(--cngx-chip-selected-color, inherit)}:scope[aria-disabled=true],:scope:disabled{opacity:var(--cngx-chip-disabled-opacity, .38);cursor:not-allowed;pointer-events:none}:scope[data-color=info]{background:var(--cngx-chip-info-bg);color:var(--cngx-chip-info-color)}:scope[data-color=success]{background:var(--cngx-chip-success-bg);color:var(--cngx-chip-success-color)}:scope[data-color=warning]{background:var(--cngx-chip-warning-bg);color:var(--cngx-chip-warning-color)}:scope[data-color=danger]{background:var(--cngx-chip-danger-bg);color:var(--cngx-chip-danger-color)}.cngx-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cngx-chip__remove{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0 2px;font:inherit;line-height:1;flex:0 0 auto;opacity:var(--cngx-chip-remove-opacity, .7);border-radius:var(--cngx-chip-remove-radius, var(--cngx-radius-sm, 2px))}.cngx-chip__remove:hover{opacity:var(--cngx-chip-remove-opacity-hover, 1)}.cngx-chip__remove:focus-visible{outline:var(--cngx-chip-remove-focus-width, 2px) solid var(--cngx-chip-remove-focus-color, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:var(--cngx-chip-remove-focus-offset, 1px)}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
658
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-chip-inner-gap{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-chip-padding-block{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-chip-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .12);}@property --cngx-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-border{syntax: \"*\"; inherits: false; initial-value: 0 solid transparent;}@property --cngx-chip-font-size{syntax: \"*\"; inherits: false; initial-value: .875em;}@property --cngx-chip-transition{syntax: \"*\"; inherits: false; initial-value: background-color .15s ease,color .15s ease,border-color .15s ease;}@property --cngx-chip-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .2);}@property --cngx-chip-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-focus-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-chip-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .38;}@property --cngx-chip-selected-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .32);}@property --cngx-chip-selected-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .12 240 / .16);}@property --cngx-chip-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .12 240);}@property --cngx-chip-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145 / .16);}@property --cngx-chip-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 145);}@property --cngx-chip-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .15 75 / .18);}@property --cngx-chip-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 75);}@property --cngx-chip-danger-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25 / .18);}@property --cngx-chip-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .2 25);}@property --cngx-chip-remove-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-chip-remove-opacity-hover{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-chip-remove-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-chip-remove-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}}[data-color-scheme=dark],.dark{--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}[data-color-scheme=light],.light{--cngx-chip-info-color: oklch(.45 .12 240);--cngx-chip-success-color: oklch(.45 .15 145);--cngx-chip-warning-color: oklch(.5 .15 75);--cngx-chip-danger-color: oklch(.5 .2 25)}}@layer cngx.components{@scope(.cngx-chip){:scope{display:inline-flex;align-items:center;line-height:1.25;max-width:100%;box-sizing:border-box;--cngx-chip-inner-gap: var(--cngx-space-xs);--cngx-chip-padding-block: var(--cngx-space-xs);--cngx-chip-padding-inline: var(--cngx-space-sm);gap:var(--cngx-chip-inner-gap, var(--cngx-space-xs, 4px));padding-block:var(--cngx-chip-padding-block, 2px);padding-inline:var(--cngx-chip-padding-inline, var(--cngx-space-sm, 8px));border-radius:var(--cngx-chip-radius, var(--cngx-radius-pill, 999px));background:var(--cngx-chip-bg, oklch(.66 .19 50 / .12));color:var(--cngx-chip-color, inherit);border:var(--cngx-chip-border, 0 solid transparent);font-size:var(--cngx-chip-font-size, var(--cngx-font-size-sm, .8125rem));transition:var( --cngx-chip-transition, background-color .15s ease, color .15s ease, border-color .15s ease )}:scope[role=button],:scope[tabindex],:scope:has(.cngx-chip__remove){cursor:pointer;justify-content:center;min-block-size:var(--cngx-target-min, 0px);min-inline-size:var(--cngx-target-min, 0px)}:scope[role=button]:hover,:scope[tabindex]:hover,:scope:has(.cngx-chip__remove):hover{background:var(--cngx-chip-hover-bg, oklch(.66 .19 50 / .2));color:var(--cngx-chip-hover-color, inherit)}:scope:focus-visible{outline:var( --cngx-chip-focus-outline, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-chip-focus-outline-offset, 2px)}:scope[aria-selected=true],:scope[aria-pressed=true]{background:var(--cngx-chip-selected-bg, oklch(.66 .19 50 / .32));color:var(--cngx-chip-selected-color, inherit)}:scope[aria-disabled=true],:scope:disabled{opacity:var(--cngx-chip-disabled-opacity, .38);cursor:not-allowed;pointer-events:none}:scope[data-color=info]{background:var(--cngx-chip-info-bg);color:var(--cngx-chip-info-color)}:scope[data-color=success]{background:var(--cngx-chip-success-bg);color:var(--cngx-chip-success-color)}:scope[data-color=warning]{background:var(--cngx-chip-warning-bg);color:var(--cngx-chip-warning-color)}:scope[data-color=danger]{background:var(--cngx-chip-danger-bg);color:var(--cngx-chip-danger-color)}.cngx-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cngx-chip__remove{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0 2px;font:inherit;line-height:1;flex:0 0 auto;opacity:var(--cngx-chip-remove-opacity, .7);border-radius:var(--cngx-chip-remove-radius, var(--cngx-radius-sm, 2px));display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}.cngx-chip__remove:hover{opacity:var(--cngx-chip-remove-opacity-hover, 1)}.cngx-chip__remove:focus-visible{outline:var(--cngx-chip-remove-focus-width, 2px) solid var(--cngx-chip-remove-focus-color, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:var(--cngx-chip-remove-focus-offset, 1px)}}}@media(forced-colors:active){.cngx-chip{border:1px solid ButtonBorder}.cngx-chip[aria-selected=true],.cngx-chip[aria-pressed=true]{background:Highlight!important;color:HighlightText!important;border-color:Highlight!important}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
659
659
|
}
|
|
660
660
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxChip, decorators: [{
|
|
661
661
|
type: Component,
|
|
@@ -692,9 +692,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
692
692
|
</ng-content>
|
|
693
693
|
</button>
|
|
694
694
|
}
|
|
695
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-chip-inner-gap{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-chip-padding-block{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-chip-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .12);}@property --cngx-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-border{syntax: \"*\"; inherits: false; initial-value: 0 solid transparent;}@property --cngx-chip-font-size{syntax: \"*\"; inherits: false; initial-value: .875em;}@property --cngx-chip-transition{syntax: \"*\"; inherits: false; initial-value: background-color .15s ease,color .15s ease,border-color .15s ease;}@property --cngx-chip-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .2);}@property --cngx-chip-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-focus-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-chip-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .38;}@property --cngx-chip-selected-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .32);}@property --cngx-chip-selected-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .12 240 / .16);}@property --cngx-chip-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .12 240);}@property --cngx-chip-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145 / .16);}@property --cngx-chip-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 145);}@property --cngx-chip-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .15 75 / .18);}@property --cngx-chip-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 75);}@property --cngx-chip-danger-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25 / .18);}@property --cngx-chip-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .2 25);}@property --cngx-chip-remove-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-chip-remove-opacity-hover{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-chip-remove-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-chip-remove-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}}[data-color-scheme=dark],.dark{--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}[data-color-scheme=light],.light{--cngx-chip-info-color: oklch(.45 .12 240);--cngx-chip-success-color: oklch(.45 .15 145);--cngx-chip-warning-color: oklch(.5 .15 75);--cngx-chip-danger-color: oklch(.5 .2 25)}}@layer cngx.components{@scope(.cngx-chip){:scope{display:inline-flex;align-items:center;line-height:1.25;max-width:100%;box-sizing:border-box;--cngx-chip-inner-gap: var(--cngx-space-xs);--cngx-chip-padding-block: var(--cngx-space-xs);--cngx-chip-padding-inline: var(--cngx-space-sm);gap:var(--cngx-chip-inner-gap, var(--cngx-space-xs, 4px));padding-block:var(--cngx-chip-padding-block, 2px);padding-inline:var(--cngx-chip-padding-inline, var(--cngx-space-sm, 8px));border-radius:var(--cngx-chip-radius, var(--cngx-radius-pill, 999px));background:var(--cngx-chip-bg, oklch(.66 .19 50 / .12));color:var(--cngx-chip-color, inherit);border:var(--cngx-chip-border, 0 solid transparent);font-size:var(--cngx-chip-font-size, var(--cngx-font-size-sm, .8125rem));transition:var( --cngx-chip-transition, background-color .15s ease, color .15s ease, border-color .15s ease )}:scope[role=button],:scope[tabindex],:scope:has(.cngx-chip__remove){cursor:pointer}:scope[role=button]:hover,:scope[tabindex]:hover,:scope:has(.cngx-chip__remove):hover{background:var(--cngx-chip-hover-bg, oklch(.66 .19 50 / .2));color:var(--cngx-chip-hover-color, inherit)}:scope:focus-visible{outline:var( --cngx-chip-focus-outline, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-chip-focus-outline-offset, 2px)}:scope[aria-selected=true],:scope[aria-pressed=true]{background:var(--cngx-chip-selected-bg, oklch(.66 .19 50 / .32));color:var(--cngx-chip-selected-color, inherit)}:scope[aria-disabled=true],:scope:disabled{opacity:var(--cngx-chip-disabled-opacity, .38);cursor:not-allowed;pointer-events:none}:scope[data-color=info]{background:var(--cngx-chip-info-bg);color:var(--cngx-chip-info-color)}:scope[data-color=success]{background:var(--cngx-chip-success-bg);color:var(--cngx-chip-success-color)}:scope[data-color=warning]{background:var(--cngx-chip-warning-bg);color:var(--cngx-chip-warning-color)}:scope[data-color=danger]{background:var(--cngx-chip-danger-bg);color:var(--cngx-chip-danger-color)}.cngx-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cngx-chip__remove{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0 2px;font:inherit;line-height:1;flex:0 0 auto;opacity:var(--cngx-chip-remove-opacity, .7);border-radius:var(--cngx-chip-remove-radius, var(--cngx-radius-sm, 2px))}.cngx-chip__remove:hover{opacity:var(--cngx-chip-remove-opacity-hover, 1)}.cngx-chip__remove:focus-visible{outline:var(--cngx-chip-remove-focus-width, 2px) solid var(--cngx-chip-remove-focus-color, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:var(--cngx-chip-remove-focus-offset, 1px)}}}\n"] }]
|
|
695
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-chip-inner-gap{syntax: \"<length>\"; inherits: false; initial-value: 4px;}@property --cngx-chip-padding-block{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-padding-inline{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-chip-radius{syntax: \"<length>\"; inherits: false; initial-value: 999px;}@property --cngx-chip-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .12);}@property --cngx-chip-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-border{syntax: \"*\"; inherits: false; initial-value: 0 solid transparent;}@property --cngx-chip-font-size{syntax: \"*\"; inherits: false; initial-value: .875em;}@property --cngx-chip-transition{syntax: \"*\"; inherits: false; initial-value: background-color .15s ease,color .15s ease,border-color .15s ease;}@property --cngx-chip-hover-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .2);}@property --cngx-chip-hover-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-focus-outline{syntax: \"*\"; inherits: false; initial-value: 2px solid oklch(.66 .19 50);}@property --cngx-chip-focus-outline-offset{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .38;}@property --cngx-chip-selected-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50 / .32);}@property --cngx-chip-selected-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-chip-info-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .12 240 / .16);}@property --cngx-chip-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .12 240);}@property --cngx-chip-success-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .15 145 / .16);}@property --cngx-chip-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 145);}@property --cngx-chip-warning-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .15 75 / .18);}@property --cngx-chip-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 75);}@property --cngx-chip-danger-bg{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25 / .18);}@property --cngx-chip-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .2 25);}@property --cngx-chip-remove-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-chip-remove-opacity-hover{syntax: \"<number>\"; inherits: false; initial-value: 1;}@property --cngx-chip-remove-radius{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-width{syntax: \"<length>\"; inherits: false; initial-value: 2px;}@property --cngx-chip-remove-focus-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-chip-remove-focus-offset{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}}[data-color-scheme=dark],.dark{--cngx-chip-info-color: oklch(.85 .13 250);--cngx-chip-success-color: oklch(.85 .13 145);--cngx-chip-warning-color: oklch(.88 .14 75);--cngx-chip-danger-color: oklch(.82 .15 25)}[data-color-scheme=light],.light{--cngx-chip-info-color: oklch(.45 .12 240);--cngx-chip-success-color: oklch(.45 .15 145);--cngx-chip-warning-color: oklch(.5 .15 75);--cngx-chip-danger-color: oklch(.5 .2 25)}}@layer cngx.components{@scope(.cngx-chip){:scope{display:inline-flex;align-items:center;line-height:1.25;max-width:100%;box-sizing:border-box;--cngx-chip-inner-gap: var(--cngx-space-xs);--cngx-chip-padding-block: var(--cngx-space-xs);--cngx-chip-padding-inline: var(--cngx-space-sm);gap:var(--cngx-chip-inner-gap, var(--cngx-space-xs, 4px));padding-block:var(--cngx-chip-padding-block, 2px);padding-inline:var(--cngx-chip-padding-inline, var(--cngx-space-sm, 8px));border-radius:var(--cngx-chip-radius, var(--cngx-radius-pill, 999px));background:var(--cngx-chip-bg, oklch(.66 .19 50 / .12));color:var(--cngx-chip-color, inherit);border:var(--cngx-chip-border, 0 solid transparent);font-size:var(--cngx-chip-font-size, var(--cngx-font-size-sm, .8125rem));transition:var( --cngx-chip-transition, background-color .15s ease, color .15s ease, border-color .15s ease )}:scope[role=button],:scope[tabindex],:scope:has(.cngx-chip__remove){cursor:pointer;justify-content:center;min-block-size:var(--cngx-target-min, 0px);min-inline-size:var(--cngx-target-min, 0px)}:scope[role=button]:hover,:scope[tabindex]:hover,:scope:has(.cngx-chip__remove):hover{background:var(--cngx-chip-hover-bg, oklch(.66 .19 50 / .2));color:var(--cngx-chip-hover-color, inherit)}:scope:focus-visible{outline:var( --cngx-chip-focus-outline, 2px solid var(--cngx-color-primary, oklch(.66 .19 50)) );outline-offset:var(--cngx-chip-focus-outline-offset, 2px)}:scope[aria-selected=true],:scope[aria-pressed=true]{background:var(--cngx-chip-selected-bg, oklch(.66 .19 50 / .32));color:var(--cngx-chip-selected-color, inherit)}:scope[aria-disabled=true],:scope:disabled{opacity:var(--cngx-chip-disabled-opacity, .38);cursor:not-allowed;pointer-events:none}:scope[data-color=info]{background:var(--cngx-chip-info-bg);color:var(--cngx-chip-info-color)}:scope[data-color=success]{background:var(--cngx-chip-success-bg);color:var(--cngx-chip-success-color)}:scope[data-color=warning]{background:var(--cngx-chip-warning-bg);color:var(--cngx-chip-warning-color)}:scope[data-color=danger]{background:var(--cngx-chip-danger-bg);color:var(--cngx-chip-danger-color)}.cngx-chip__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.cngx-chip__remove{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0 2px;font:inherit;line-height:1;flex:0 0 auto;opacity:var(--cngx-chip-remove-opacity, .7);border-radius:var(--cngx-chip-remove-radius, var(--cngx-radius-sm, 2px));display:inline-flex;align-items:center;justify-content:center;min-inline-size:var(--cngx-target-min, 0px);min-block-size:var(--cngx-target-min, 0px)}.cngx-chip__remove:hover{opacity:var(--cngx-chip-remove-opacity-hover, 1)}.cngx-chip__remove:focus-visible{outline:var(--cngx-chip-remove-focus-width, 2px) solid var(--cngx-chip-remove-focus-color, var(--cngx-color-primary, oklch(.66 .19 50)));outline-offset:var(--cngx-chip-remove-focus-offset, 1px)}}}@media(forced-colors:active){.cngx-chip{border:1px solid ButtonBorder}.cngx-chip[aria-selected=true],.cngx-chip[aria-pressed=true]{background:Highlight!important;color:HighlightText!important;border-color:Highlight!important}}\n"] }]
|
|
696
696
|
}], propDecorators: { removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], removeAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "removeAriaLabel", required: false }] }], remove: [{ type: i0.Output, args: ["remove"] }] } });
|
|
697
697
|
|
|
698
|
+
/** Tone glyph rendered inside the decorative dot - the non-colour signal. */
|
|
699
|
+
const TONE_GLYPH = {
|
|
700
|
+
success: '✓',
|
|
701
|
+
warning: '!',
|
|
702
|
+
danger: '✕',
|
|
703
|
+
info: 'i',
|
|
704
|
+
neutral: '•',
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* Semantic health indicator - a decorative tone dot paired with a visible
|
|
708
|
+
* label. Distinct from `CngxBadge` (count overlay), `CngxChip` (interactive)
|
|
709
|
+
* and `CngxTag` (labeled token): its single job is to communicate a status
|
|
710
|
+
* (operational / degraded / down / info).
|
|
711
|
+
*
|
|
712
|
+
* Colour is never the only signal (Pillar 2): the tone drives the dot colour
|
|
713
|
+
* *and* a tone glyph, so a colour-blind reader still distinguishes the states,
|
|
714
|
+
* and the visible `label` carries the meaning for assistive tech (the dot is
|
|
715
|
+
* `aria-hidden`). Set `live` for a status that changes in place.
|
|
716
|
+
*
|
|
717
|
+
* ### Basic
|
|
718
|
+
* ```html
|
|
719
|
+
* <cngx-status tone="success" label="Operational" />
|
|
720
|
+
* ```
|
|
721
|
+
*
|
|
722
|
+
* ### Live-updating
|
|
723
|
+
* ```html
|
|
724
|
+
* <cngx-status tone="danger" label="Outage" live="assertive" />
|
|
725
|
+
* ```
|
|
726
|
+
*
|
|
727
|
+
* ### Dot-only (bare coloured dot + label)
|
|
728
|
+
* ```html
|
|
729
|
+
* <cngx-status tone="success" label="Operational" [glyph]="false" />
|
|
730
|
+
* ```
|
|
731
|
+
* `[glyph]="false"` drops the glyph for a GitHub-style coloured dot. Keep a
|
|
732
|
+
* visible `label`: without the glyph, colour is the dot's only signal, which a
|
|
733
|
+
* sighted colour-blind reader cannot resolve (a dev-mode warning enforces this).
|
|
734
|
+
*
|
|
735
|
+
* @category common/display
|
|
736
|
+
* @docsKind primary
|
|
737
|
+
* @wcag AA
|
|
738
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/display/status/status.component.ts
|
|
739
|
+
* @since 0.1.0
|
|
740
|
+
* @relatedTo CngxBadge, CngxTag, CngxChip
|
|
741
|
+
*
|
|
742
|
+
* <example-url>http://localhost:4200/#/common/display/status/tone-matrix</example-url>
|
|
743
|
+
* <example-url>http://localhost:4200/#/common/display/status/dot-only</example-url>
|
|
744
|
+
*/
|
|
745
|
+
class CngxStatus {
|
|
746
|
+
elRef = inject((ElementRef));
|
|
747
|
+
/** Semantic health. Drives both the dot colour and the tone glyph. */
|
|
748
|
+
tone = input('neutral', ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
749
|
+
/** Visible status text. Carries the meaning for assistive tech. */
|
|
750
|
+
label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
751
|
+
/**
|
|
752
|
+
* Politeness of the live region. `off` (default) for a static status;
|
|
753
|
+
* `polite` / `assertive` for a status that changes in place.
|
|
754
|
+
*/
|
|
755
|
+
live = input('off', ...(ngDevMode ? [{ debugName: "live" }] : /* istanbul ignore next */ []));
|
|
756
|
+
/**
|
|
757
|
+
* Show the tone glyph inside the dot. `false` renders a bare coloured dot
|
|
758
|
+
* (GitHub-style) - sound only when a visible `label` carries the meaning,
|
|
759
|
+
* since colour alone fails a sighted colour-blind reader (Pillar 2).
|
|
760
|
+
*/
|
|
761
|
+
glyph = input(true, { ...(ngDevMode ? { debugName: "glyph" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
762
|
+
/** @internal Tone glyph char bound into the decorative dot. */
|
|
763
|
+
glyphChar = computed(() => TONE_GLYPH[this.tone()], ...(ngDevMode ? [{ debugName: "glyphChar" }] : /* istanbul ignore next */ []));
|
|
764
|
+
constructor() {
|
|
765
|
+
if (isDevMode()) {
|
|
766
|
+
afterNextRender(() => {
|
|
767
|
+
const el = this.elRef.nativeElement;
|
|
768
|
+
if (!this.label() && !el.getAttribute('aria-label') && !el.getAttribute('aria-labelledby')) {
|
|
769
|
+
console.warn('cngx-status: no `label` and no external `aria-label`/`aria-labelledby`; ' +
|
|
770
|
+
'the status has no accessible name and reads only as a coloured dot. ' +
|
|
771
|
+
'Set [label] or an aria-label on the host.');
|
|
772
|
+
}
|
|
773
|
+
if (!this.glyph() && !this.label()) {
|
|
774
|
+
console.warn('cngx-status: [glyph]="false" with no visible `label`; a bare coloured ' +
|
|
775
|
+
'dot is colour-only for a sighted colour-blind reader even with an ' +
|
|
776
|
+
'aria-label. Set [label] or show the glyph.');
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStatus, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
782
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxStatus, isStandalone: true, selector: "cngx-status", inputs: { tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, live: { classPropertyName: "live", publicName: "live", isSignal: true, isRequired: false, transformFunction: null }, glyph: { classPropertyName: "glyph", publicName: "glyph", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-status--success": "tone() === 'success'", "class.cngx-status--warning": "tone() === 'warning'", "class.cngx-status--danger": "tone() === 'danger'", "class.cngx-status--info": "tone() === 'info'", "class.cngx-status--neutral": "tone() === 'neutral'", "attr.aria-live": "live()" }, classAttribute: "cngx-status" }, ngImport: i0, template: `
|
|
783
|
+
<span class="cngx-status__dot" aria-hidden="true">@if (glyph()) { {{ glyphChar() }} }</span>
|
|
784
|
+
@if (label()) {
|
|
785
|
+
<span class="cngx-status__label">{{ label() }}</span>
|
|
786
|
+
}
|
|
787
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-status-gap{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-status-dot-size{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-status-glyph-size{syntax: \"*\"; inherits: true; initial-value: .7em;}@property --cngx-status-dot-fg{syntax: \"<color>\"; inherits: true; initial-value: white;}@property --cngx-status-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-status-weight{syntax: \"<number>\"; inherits: true; initial-value: 500;}@property --cngx-status-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .18 145);}@property --cngx-status-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.75 .15 85);}@property --cngx-status-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25);}@property --cngx-status-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .14 250);}@property --cngx-status-neutral-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .02 290);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-status-success-color: oklch(.78 .16 145);--cngx-status-warning-color: oklch(.82 .13 85);--cngx-status-danger-color: oklch(.75 .18 25);--cngx-status-info-color: oklch(.72 .12 250);--cngx-status-neutral-color: oklch(.7 .02 290)}}[data-color-scheme=dark],.dark{--cngx-status-success-color: oklch(.78 .16 145);--cngx-status-warning-color: oklch(.82 .13 85);--cngx-status-danger-color: oklch(.75 .18 25);--cngx-status-info-color: oklch(.72 .12 250);--cngx-status-neutral-color: oklch(.7 .02 290)}[data-color-scheme=light],.light{--cngx-status-success-color: oklch(.65 .18 145);--cngx-status-warning-color: oklch(.75 .15 85);--cngx-status-danger-color: oklch(.65 .22 25);--cngx-status-info-color: oklch(.6 .14 250);--cngx-status-neutral-color: oklch(.6 .02 290)}}@layer cngx.components{@scope(.cngx-status){:scope{--cngx-status-gap: var(--cngx-space-sm);display:inline-flex;align-items:center;gap:var(--cngx-status-gap, 6px);font-size:var(--cngx-status-size, .8125rem);font-weight:var(--cngx-status-weight, 500)}.cngx-status__dot{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-status-dot-size, 16px);block-size:var(--cngx-status-dot-size, 16px);border-radius:50%;font-size:var(--cngx-status-glyph-size, .7em);line-height:1;color:var(--cngx-status-dot-fg, white);background:var(--cngx-status-neutral-color, oklch(.6 .02 290))}:scope.cngx-status--success .cngx-status__dot{background:var(--cngx-status-success-color, var(--cngx-color-success, oklch(.65 .18 145)))}:scope.cngx-status--warning .cngx-status__dot{background:var(--cngx-status-warning-color, oklch(.75 .15 85))}:scope.cngx-status--danger .cngx-status__dot{background:var(--cngx-status-danger-color, var(--cngx-color-danger, oklch(.65 .22 25)))}:scope.cngx-status--info .cngx-status__dot{background:var(--cngx-status-info-color, oklch(.6 .14 250))}:scope.cngx-status--neutral .cngx-status__dot{background:var(--cngx-status-neutral-color, oklch(.6 .02 290))}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
788
|
+
}
|
|
789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStatus, decorators: [{
|
|
790
|
+
type: Component,
|
|
791
|
+
args: [{ selector: 'cngx-status', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
792
|
+
class: 'cngx-status',
|
|
793
|
+
'[class.cngx-status--success]': "tone() === 'success'",
|
|
794
|
+
'[class.cngx-status--warning]': "tone() === 'warning'",
|
|
795
|
+
'[class.cngx-status--danger]': "tone() === 'danger'",
|
|
796
|
+
'[class.cngx-status--info]': "tone() === 'info'",
|
|
797
|
+
'[class.cngx-status--neutral]': "tone() === 'neutral'",
|
|
798
|
+
'[attr.aria-live]': 'live()',
|
|
799
|
+
}, template: `
|
|
800
|
+
<span class="cngx-status__dot" aria-hidden="true">@if (glyph()) { {{ glyphChar() }} }</span>
|
|
801
|
+
@if (label()) {
|
|
802
|
+
<span class="cngx-status__label">{{ label() }}</span>
|
|
803
|
+
}
|
|
804
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-status-gap{syntax: \"<length>\"; inherits: true; initial-value: 6px;}@property --cngx-status-dot-size{syntax: \"<length>\"; inherits: true; initial-value: 16px;}@property --cngx-status-glyph-size{syntax: \"*\"; inherits: true; initial-value: .7em;}@property --cngx-status-dot-fg{syntax: \"<color>\"; inherits: true; initial-value: white;}@property --cngx-status-size{syntax: \"*\"; inherits: true; initial-value: .8125rem;}@property --cngx-status-weight{syntax: \"<number>\"; inherits: true; initial-value: 500;}@property --cngx-status-success-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .18 145);}@property --cngx-status-warning-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.75 .15 85);}@property --cngx-status-danger-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.65 .22 25);}@property --cngx-status-info-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .14 250);}@property --cngx-status-neutral-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.6 .02 290);}@media(prefers-color-scheme:dark){:root:not([data-color-scheme=light]):not(.light){--cngx-status-success-color: oklch(.78 .16 145);--cngx-status-warning-color: oklch(.82 .13 85);--cngx-status-danger-color: oklch(.75 .18 25);--cngx-status-info-color: oklch(.72 .12 250);--cngx-status-neutral-color: oklch(.7 .02 290)}}[data-color-scheme=dark],.dark{--cngx-status-success-color: oklch(.78 .16 145);--cngx-status-warning-color: oklch(.82 .13 85);--cngx-status-danger-color: oklch(.75 .18 25);--cngx-status-info-color: oklch(.72 .12 250);--cngx-status-neutral-color: oklch(.7 .02 290)}[data-color-scheme=light],.light{--cngx-status-success-color: oklch(.65 .18 145);--cngx-status-warning-color: oklch(.75 .15 85);--cngx-status-danger-color: oklch(.65 .22 25);--cngx-status-info-color: oklch(.6 .14 250);--cngx-status-neutral-color: oklch(.6 .02 290)}}@layer cngx.components{@scope(.cngx-status){:scope{--cngx-status-gap: var(--cngx-space-sm);display:inline-flex;align-items:center;gap:var(--cngx-status-gap, 6px);font-size:var(--cngx-status-size, .8125rem);font-weight:var(--cngx-status-weight, 500)}.cngx-status__dot{display:inline-flex;align-items:center;justify-content:center;flex:none;inline-size:var(--cngx-status-dot-size, 16px);block-size:var(--cngx-status-dot-size, 16px);border-radius:50%;font-size:var(--cngx-status-glyph-size, .7em);line-height:1;color:var(--cngx-status-dot-fg, white);background:var(--cngx-status-neutral-color, oklch(.6 .02 290))}:scope.cngx-status--success .cngx-status__dot{background:var(--cngx-status-success-color, var(--cngx-color-success, oklch(.65 .18 145)))}:scope.cngx-status--warning .cngx-status__dot{background:var(--cngx-status-warning-color, oklch(.75 .15 85))}:scope.cngx-status--danger .cngx-status__dot{background:var(--cngx-status-danger-color, var(--cngx-color-danger, oklch(.65 .22 25)))}:scope.cngx-status--info .cngx-status__dot{background:var(--cngx-status-info-color, oklch(.6 .14 250))}:scope.cngx-status--neutral .cngx-status__dot{background:var(--cngx-status-neutral-color, oklch(.6 .02 290))}}}\n"] }]
|
|
805
|
+
}], ctorParameters: () => [], propDecorators: { tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }], glyph: [{ type: i0.Input, args: [{ isSignal: true, alias: "glyph", required: false }] }] } });
|
|
806
|
+
|
|
698
807
|
/**
|
|
699
808
|
* An inline, wrapping metadata line - a flex row of projected {@link CngxMeta}
|
|
700
809
|
* pairs separated by a consistent gap. It carries the shared muted colour + gap
|
|
@@ -745,7 +854,7 @@ class CngxMeta {
|
|
|
745
854
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxMeta, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
746
855
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxMeta, isStandalone: true, selector: "cngx-meta", inputs: { term: { classPropertyName: "term", publicName: "term", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cngx-meta" }, exportAs: ["cngxMeta"], ngImport: i0, template: `@if (term(); as t) {
|
|
747
856
|
<span class="cngx-meta__term">{{ t }}</span>
|
|
748
|
-
}<span class="cngx-meta__value"><ng-content /></span>`, isInline: true, styles: [".cngx-meta{--cngx-meta-gap: var(--cngx-space-xs, .35em);display:inline-flex;align-items:baseline;gap:var(--cngx-meta-gap, .35em);min-inline-size:0}.cngx-meta__term{font-weight:var(--cngx-meta-term-weight, 600);color:var(--cngx-meta-term-color, inherit)}.cngx-meta__value{min-inline-size:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
857
|
+
}<span class="cngx-meta__value"><ng-content /></span>`, isInline: true, styles: [".cngx-meta{--cngx-meta-gap: var(--cngx-space-xs, .35em);display:inline-flex;align-items:baseline;gap:var(--cngx-meta-gap, .35em);min-inline-size:0}.cngx-meta__term{font-weight:var(--cngx-meta-term-weight, 600);color:var(--cngx-meta-term-color, inherit)}.cngx-meta__value{min-inline-size:0;unicode-bidi:var(--cngx-meta-value-bidi, isolate)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
749
858
|
}
|
|
750
859
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxMeta, decorators: [{
|
|
751
860
|
type: Component,
|
|
@@ -753,7 +862,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
753
862
|
<span class="cngx-meta__term">{{ t }}</span>
|
|
754
863
|
}<span class="cngx-meta__value"><ng-content /></span>`, host: {
|
|
755
864
|
class: 'cngx-meta',
|
|
756
|
-
}, styles: [".cngx-meta{--cngx-meta-gap: var(--cngx-space-xs, .35em);display:inline-flex;align-items:baseline;gap:var(--cngx-meta-gap, .35em);min-inline-size:0}.cngx-meta__term{font-weight:var(--cngx-meta-term-weight, 600);color:var(--cngx-meta-term-color, inherit)}.cngx-meta__value{min-inline-size:0}\n"] }]
|
|
865
|
+
}, styles: [".cngx-meta{--cngx-meta-gap: var(--cngx-space-xs, .35em);display:inline-flex;align-items:baseline;gap:var(--cngx-meta-gap, .35em);min-inline-size:0}.cngx-meta__term{font-weight:var(--cngx-meta-term-weight, 600);color:var(--cngx-meta-term-color, inherit)}.cngx-meta__value{min-inline-size:0;unicode-bidi:var(--cngx-meta-value-bidi, isolate)}\n"] }]
|
|
757
866
|
}], propDecorators: { term: [{ type: i0.Input, args: [{ isSignal: true, alias: "term", required: false }] }] } });
|
|
758
867
|
|
|
759
868
|
/**
|
|
@@ -982,7 +1091,7 @@ class CngxRadioIndicator {
|
|
|
982
1091
|
<ng-container *ngTemplateOutlet="dotGlyph() ?? defaultDotGlyph" />
|
|
983
1092
|
}
|
|
984
1093
|
</span>
|
|
985
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-radio-indicator-size{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-radio-indicator-bg{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-radio-indicator-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1.5px;}@property --cngx-radio-indicator-checked-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-radio-indicator-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-radio-indicator-transition{syntax: \"*\"; inherits: false; initial-value: border-color .12s ease,background-color .12s ease;}@property --cngx-radio-indicator-size-sm{syntax: \"*\"; inherits: true; initial-value: .875em;}@property --cngx-radio-indicator-size-md{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-size-lg{syntax: \"*\"; inherits: true; initial-value: 1.25em;}:root{--cngx-radio-indicator-checked-color: var(--cngx-color-primary)}}@layer cngx.components{@scope(.cngx-radio-indicator){:scope{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;flex:0 0 auto;color:var(--cngx-radio-indicator-color, currentColor)}:scope.cngx-radio-indicator--sm{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-sm, .875em)}:scope.cngx-radio-indicator--md{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-md, 1em)}:scope.cngx-radio-indicator--lg{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-lg, 1.25em)}.cngx-radio-indicator__circle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:inherit;line-height:1;width:var(--cngx-radio-indicator-size, 1em);height:var(--cngx-radio-indicator-size, 1em);border:var(--cngx-radio-indicator-border-width, 1.5px) solid currentColor;background:var(--cngx-radio-indicator-bg, transparent);transition:var( --cngx-radio-indicator-transition, border-color .12s ease, background-color .12s ease )}:scope.cngx-radio-indicator--checked .cngx-radio-indicator__circle{border-color:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-radio-indicator__dot{display:inline-block;border-radius:50%;width:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );height:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );background:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) );transition:var(--cngx-radio-indicator-transition, transform .12s ease)}:scope.cngx-radio-indicator--disabled{opacity:var(--cngx-radio-indicator-disabled-opacity, .5)}@media(prefers-reduced-motion:reduce){.cngx-radio-indicator__circle,.cngx-radio-indicator__dot{transition:none}}}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1094
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-radio-indicator-size{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-radio-indicator-bg{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-radio-indicator-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1.5px;}@property --cngx-radio-indicator-checked-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-radio-indicator-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-radio-indicator-transition{syntax: \"*\"; inherits: false; initial-value: border-color .12s ease,background-color .12s ease;}@property --cngx-radio-indicator-size-sm{syntax: \"*\"; inherits: true; initial-value: .875em;}@property --cngx-radio-indicator-size-md{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-size-lg{syntax: \"*\"; inherits: true; initial-value: 1.25em;}:root{--cngx-radio-indicator-checked-color: var(--cngx-color-primary)}}@layer cngx.components{@scope(.cngx-radio-indicator){:scope{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;flex:0 0 auto;color:var(--cngx-radio-indicator-color, currentColor)}:scope.cngx-radio-indicator--sm{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-sm, .875em)}:scope.cngx-radio-indicator--md{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-md, 1em)}:scope.cngx-radio-indicator--lg{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-lg, 1.25em)}.cngx-radio-indicator__circle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:inherit;line-height:1;width:var(--cngx-radio-indicator-size, 1em);height:var(--cngx-radio-indicator-size, 1em);border:var(--cngx-radio-indicator-border-width, 1.5px) solid currentColor;background:var(--cngx-radio-indicator-bg, transparent);transition:var( --cngx-radio-indicator-transition, border-color .12s ease, background-color .12s ease )}:scope.cngx-radio-indicator--checked .cngx-radio-indicator__circle{border-color:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-radio-indicator__dot{display:inline-block;border-radius:50%;width:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );height:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );background:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) );transition:var(--cngx-radio-indicator-transition, transform .12s ease)}:scope.cngx-radio-indicator--disabled{opacity:var(--cngx-radio-indicator-disabled-opacity, .5)}@media(prefers-reduced-motion:reduce){.cngx-radio-indicator__circle,.cngx-radio-indicator__dot{transition:none}}}}@media(forced-colors:active){.cngx-radio-indicator__dot{background:CanvasText}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
986
1095
|
}
|
|
987
1096
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxRadioIndicator, decorators: [{
|
|
988
1097
|
type: Component,
|
|
@@ -1004,7 +1113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1004
1113
|
<ng-container *ngTemplateOutlet="dotGlyph() ?? defaultDotGlyph" />
|
|
1005
1114
|
}
|
|
1006
1115
|
</span>
|
|
1007
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-radio-indicator-size{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-radio-indicator-bg{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-radio-indicator-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1.5px;}@property --cngx-radio-indicator-checked-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-radio-indicator-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-radio-indicator-transition{syntax: \"*\"; inherits: false; initial-value: border-color .12s ease,background-color .12s ease;}@property --cngx-radio-indicator-size-sm{syntax: \"*\"; inherits: true; initial-value: .875em;}@property --cngx-radio-indicator-size-md{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-size-lg{syntax: \"*\"; inherits: true; initial-value: 1.25em;}:root{--cngx-radio-indicator-checked-color: var(--cngx-color-primary)}}@layer cngx.components{@scope(.cngx-radio-indicator){:scope{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;flex:0 0 auto;color:var(--cngx-radio-indicator-color, currentColor)}:scope.cngx-radio-indicator--sm{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-sm, .875em)}:scope.cngx-radio-indicator--md{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-md, 1em)}:scope.cngx-radio-indicator--lg{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-lg, 1.25em)}.cngx-radio-indicator__circle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:inherit;line-height:1;width:var(--cngx-radio-indicator-size, 1em);height:var(--cngx-radio-indicator-size, 1em);border:var(--cngx-radio-indicator-border-width, 1.5px) solid currentColor;background:var(--cngx-radio-indicator-bg, transparent);transition:var( --cngx-radio-indicator-transition, border-color .12s ease, background-color .12s ease )}:scope.cngx-radio-indicator--checked .cngx-radio-indicator__circle{border-color:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-radio-indicator__dot{display:inline-block;border-radius:50%;width:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );height:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );background:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) );transition:var(--cngx-radio-indicator-transition, transform .12s ease)}:scope.cngx-radio-indicator--disabled{opacity:var(--cngx-radio-indicator-disabled-opacity, .5)}@media(prefers-reduced-motion:reduce){.cngx-radio-indicator__circle,.cngx-radio-indicator__dot{transition:none}}}}\n"] }]
|
|
1116
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-radio-indicator-size{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-color{syntax: \"*\"; inherits: true; initial-value: currentColor;}@property --cngx-radio-indicator-bg{syntax: \"*\"; inherits: true; initial-value: transparent;}@property --cngx-radio-indicator-border-width{syntax: \"<length>\"; inherits: true; initial-value: 1.5px;}@property --cngx-radio-indicator-checked-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.66 .19 50);}@property --cngx-radio-indicator-disabled-opacity{syntax: \"<number>\"; inherits: false; initial-value: .5;}@property --cngx-radio-indicator-transition{syntax: \"*\"; inherits: false; initial-value: border-color .12s ease,background-color .12s ease;}@property --cngx-radio-indicator-size-sm{syntax: \"*\"; inherits: true; initial-value: .875em;}@property --cngx-radio-indicator-size-md{syntax: \"*\"; inherits: true; initial-value: 1em;}@property --cngx-radio-indicator-size-lg{syntax: \"*\"; inherits: true; initial-value: 1.25em;}:root{--cngx-radio-indicator-checked-color: var(--cngx-color-primary)}}@layer cngx.components{@scope(.cngx-radio-indicator){:scope{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;flex:0 0 auto;color:var(--cngx-radio-indicator-color, currentColor)}:scope.cngx-radio-indicator--sm{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-sm, .875em)}:scope.cngx-radio-indicator--md{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-md, 1em)}:scope.cngx-radio-indicator--lg{--cngx-radio-indicator-size: var(--cngx-radio-indicator-size-lg, 1.25em)}.cngx-radio-indicator__circle{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:inherit;line-height:1;width:var(--cngx-radio-indicator-size, 1em);height:var(--cngx-radio-indicator-size, 1em);border:var(--cngx-radio-indicator-border-width, 1.5px) solid currentColor;background:var(--cngx-radio-indicator-bg, transparent);transition:var( --cngx-radio-indicator-transition, border-color .12s ease, background-color .12s ease )}:scope.cngx-radio-indicator--checked .cngx-radio-indicator__circle{border-color:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) )}.cngx-radio-indicator__dot{display:inline-block;border-radius:50%;width:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );height:var( --cngx-radio-indicator-dot-size, calc(var(--cngx-radio-indicator-size, 1em) * .5) );background:var( --cngx-radio-indicator-checked-color, var(--cngx-color-primary, oklch(.66 .19 50)) );transition:var(--cngx-radio-indicator-transition, transform .12s ease)}:scope.cngx-radio-indicator--disabled{opacity:var(--cngx-radio-indicator-disabled-opacity, .5)}@media(prefers-reduced-motion:reduce){.cngx-radio-indicator__circle,.cngx-radio-indicator__dot{transition:none}}}}@media(forced-colors:active){.cngx-radio-indicator__dot{background:CanvasText}}\n"] }]
|
|
1008
1117
|
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], dotGlyph: [{ type: i0.Input, args: [{ isSignal: true, alias: "dotGlyph", required: false }] }] } });
|
|
1009
1118
|
|
|
1010
1119
|
/**
|
|
@@ -1093,13 +1202,13 @@ class CngxTime {
|
|
|
1093
1202
|
return rtf.format(Math.round(delta), 'years');
|
|
1094
1203
|
}
|
|
1095
1204
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTime, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1096
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxTime, isStandalone: true, selector: "cngx-time", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cngx-time" }, exportAs: ["cngxTime"], ngImport: i0, template: `<time [attr.datetime]="iso()">{{ formatted() }}</time>`, isInline: true, styles: [".cngx-time{display:inline;font-family:var(--cngx-time-font, inherit);font-size:var(--cngx-time-size, inherit);font-variant-numeric:var(--cngx-time-numeric, tabular-nums);color:var(--cngx-time-color, inherit)}.cngx-time time{font:inherit;color:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1205
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.4", type: CngxTime, isStandalone: true, selector: "cngx-time", inputs: { date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: true, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "cngx-time" }, exportAs: ["cngxTime"], ngImport: i0, template: `<time [attr.datetime]="iso()">{{ formatted() }}</time>`, isInline: true, styles: [".cngx-time{display:inline;font-family:var(--cngx-time-font, inherit);font-size:var(--cngx-time-size, inherit);font-variant-numeric:var(--cngx-time-numeric, tabular-nums);color:var(--cngx-time-color, inherit);unicode-bidi:var(--cngx-time-bidi, isolate)}.cngx-time time{font:inherit;color:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1097
1206
|
}
|
|
1098
1207
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxTime, decorators: [{
|
|
1099
1208
|
type: Component,
|
|
1100
1209
|
args: [{ selector: 'cngx-time', exportAs: 'cngxTime', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1101
1210
|
class: 'cngx-time',
|
|
1102
|
-
}, template: `<time [attr.datetime]="iso()">{{ formatted() }}</time>`, styles: [".cngx-time{display:inline;font-family:var(--cngx-time-font, inherit);font-size:var(--cngx-time-size, inherit);font-variant-numeric:var(--cngx-time-numeric, tabular-nums);color:var(--cngx-time-color, inherit)}.cngx-time time{font:inherit;color:inherit}\n"] }]
|
|
1211
|
+
}, template: `<time [attr.datetime]="iso()">{{ formatted() }}</time>`, styles: [".cngx-time{display:inline;font-family:var(--cngx-time-font, inherit);font-size:var(--cngx-time-size, inherit);font-variant-numeric:var(--cngx-time-numeric, tabular-nums);color:var(--cngx-time-color, inherit);unicode-bidi:var(--cngx-time-bidi, isolate)}.cngx-time time{font:inherit;color:inherit}\n"] }]
|
|
1103
1212
|
}], propDecorators: { date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: true }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }] } });
|
|
1104
1213
|
|
|
1105
1214
|
const SEGMENT_COUNT = 4;
|
|
@@ -1247,7 +1356,7 @@ const CNGX_TAG_CONFIG = new InjectionToken('CNGX_TAG_CONFIG', {
|
|
|
1247
1356
|
* (per-instance Input → `provideTagConfigAt` → `provideTagConfig`
|
|
1248
1357
|
* → library defaults).
|
|
1249
1358
|
*
|
|
1250
|
-
* Equivalent to `inject(CNGX_TAG_CONFIG)`
|
|
1359
|
+
* Equivalent to `inject(CNGX_TAG_CONFIG)` - the helper exists so
|
|
1251
1360
|
* consumers don't need to import the token directly. Mirrors
|
|
1252
1361
|
* `injectSelectConfig` in `@cngx/forms/select`.
|
|
1253
1362
|
*
|
|
@@ -1270,7 +1379,7 @@ function injectTagConfig() {
|
|
|
1270
1379
|
* Wraps a `contentChild` directive query in a 3-stage slot-resolution
|
|
1271
1380
|
* cascade:
|
|
1272
1381
|
*
|
|
1273
|
-
* 1. Instance directive (highest)
|
|
1382
|
+
* 1. Instance directive (highest) - consumer-projected
|
|
1274
1383
|
* `<ng-template cngxTag*>` template.
|
|
1275
1384
|
* 2. `CNGX_TAG_CONFIG.templates[<key>]` (app-wide cascade via
|
|
1276
1385
|
* `provideTagConfig` / `provideTagConfigAt`).
|
|
@@ -1279,7 +1388,7 @@ function injectTagConfig() {
|
|
|
1279
1388
|
* label fallback).
|
|
1280
1389
|
*
|
|
1281
1390
|
* `inject(CNGX_TAG_CONFIG, { optional: true })` mirrors the select-
|
|
1282
|
-
* shared helper exactly
|
|
1391
|
+
* shared helper exactly - `providedIn: 'root'` always resolves so
|
|
1283
1392
|
* the optional flag is defensive, not load-bearing.
|
|
1284
1393
|
*
|
|
1285
1394
|
* **Why a copy and not an import from `@cngx/forms/select/shared`.**
|
|
@@ -1289,7 +1398,7 @@ function injectTagConfig() {
|
|
|
1289
1398
|
* select call site and belongs in a separate utils-consolidation
|
|
1290
1399
|
* plan (see
|
|
1291
1400
|
* `.internal/architektur/plans/tag-family-architectural-a-plus-pass-plan.md`,
|
|
1292
|
-
* "Architectural decisions (locked)"
|
|
1401
|
+
* "Architectural decisions (locked)" - `injectResolvedTemplate
|
|
1293
1402
|
* location` row).
|
|
1294
1403
|
*
|
|
1295
1404
|
* @internal
|
|
@@ -1497,6 +1606,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1497
1606
|
* @selector cngx-tag
|
|
1498
1607
|
* @since 0.1.0
|
|
1499
1608
|
* @relatedTo CngxTagGroup, CngxChip, CngxBadge, CngxTagLabel
|
|
1609
|
+
* @slot cngxTagLabel Replaces the tag's text body.
|
|
1610
|
+
* @slot cngxTagPrefix Content before the label, typically an icon or swatch.
|
|
1611
|
+
* @slot cngxTagSuffix Content after the label, typically a remove affordance.
|
|
1500
1612
|
* <example-url>http://localhost:4200/#/common/display/tag/app-wide-defaults-via-providetagconfig</example-url>
|
|
1501
1613
|
* <example-url>http://localhost:4200/#/common/display/tag/color-palette</example-url>
|
|
1502
1614
|
* <example-url>http://localhost:4200/#/common/display/tag/composition-with-cngxicon</example-url>
|
|
@@ -1668,7 +1780,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1668
1780
|
}], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], truncate: [{ type: i0.Input, args: [{ isSignal: true, alias: "truncate", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], labelSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTagLabel), { isSignal: true }] }], prefixSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTagPrefix), { isSignal: true }] }], suffixSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxTagSuffix), { isSignal: true }] }] } });
|
|
1669
1781
|
|
|
1670
1782
|
/**
|
|
1671
|
-
* Reduces a list of feature objects into a partial config
|
|
1783
|
+
* Reduces a list of feature objects into a partial config - last
|
|
1672
1784
|
* write wins per sub-tree. Inner objects are spread-merged so
|
|
1673
1785
|
* partial overrides (e.g. just `variant` without `color`) compose
|
|
1674
1786
|
* cleanly with prior writes.
|
|
@@ -1770,7 +1882,7 @@ function provideTagConfig(...features) {
|
|
|
1770
1882
|
*
|
|
1771
1883
|
* Unlike `provideTagConfig` (root-only), `provideTagConfigAt` injects
|
|
1772
1884
|
* the parent injector's `CNGX_TAG_CONFIG` value (resolves through
|
|
1773
|
-
* the priority chain
|
|
1885
|
+
* the priority chain - root provider, library defaults, or another
|
|
1774
1886
|
* `provideTagConfigAt` further up) and deep-merges the supplied
|
|
1775
1887
|
* features on top. This produces cumulative cascade behaviour:
|
|
1776
1888
|
* descendant tag instances see the merged config, sibling sub-trees
|
|
@@ -1813,7 +1925,7 @@ function provideTagConfigAt(...features) {
|
|
|
1813
1925
|
/**
|
|
1814
1926
|
* Override the default `CngxTag` input values (`variant`, `color`,
|
|
1815
1927
|
* `size`, `truncate`, `maxWidth`). Per-instance bindings still win
|
|
1816
|
-
* over the cascade
|
|
1928
|
+
* over the cascade - this only sets the *fallback* per directive.
|
|
1817
1929
|
*
|
|
1818
1930
|
* ```ts
|
|
1819
1931
|
* provideTagConfig(
|
|
@@ -1872,12 +1984,12 @@ function withTagColors(payload) {
|
|
|
1872
1984
|
}
|
|
1873
1985
|
/**
|
|
1874
1986
|
* Register app-wide template overrides for the five Tag-family
|
|
1875
|
-
* slots. Resolved in tier 2 of the slot cascade
|
|
1987
|
+
* slots. Resolved in tier 2 of the slot cascade - instance
|
|
1876
1988
|
* directives still win, the host's `<ng-template>` default body is
|
|
1877
1989
|
* the floor.
|
|
1878
1990
|
*
|
|
1879
1991
|
* **Staging note.** This factory ships ahead of a documented second
|
|
1880
|
-
* consumer
|
|
1992
|
+
* consumer - the headless `CngxTag` + `CngxTagGroup` are the only
|
|
1881
1993
|
* current consumers. The staging is intentional and tracked in
|
|
1882
1994
|
* `display-accepted-debt.md §2` (Material organism deferral): a
|
|
1883
1995
|
* future `cngx-mat-tag` / `cngx-mat-tag-group` wrapper inherits the
|
|
@@ -2061,6 +2173,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2061
2173
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/display/tag-group/tag-group.component.ts
|
|
2062
2174
|
* @since 0.1.0
|
|
2063
2175
|
* @relatedTo CngxTag, CngxTagGroupHeader, CngxTagGroupAccessory, CNGX_TAG_GROUP
|
|
2176
|
+
* @slot cngxTagGroupHeader Replaces the group's heading row.
|
|
2177
|
+
* @slot cngxTagGroupAccessory Trailing control beside the header, e.g. a clear-all button.
|
|
2064
2178
|
* <example-url>http://localhost:4200/#/common/display/tag/app-wide-defaults-via-providetagconfig</example-url>
|
|
2065
2179
|
* <example-url>http://localhost:4200/#/common/display/tag/color-palette</example-url>
|
|
2066
2180
|
* <example-url>http://localhost:4200/#/common/display/tag/composition-with-cngxicon</example-url>
|
|
@@ -2237,7 +2351,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2237
2351
|
* @module @cngx/common/display
|
|
2238
2352
|
*
|
|
2239
2353
|
* Display-only atoms: no behavior, no state beyond presentational flags.
|
|
2240
|
-
* Icons, avatars, badges, dividers
|
|
2354
|
+
* Icons, avatars, badges, dividers - building blocks that render content
|
|
2241
2355
|
* without reacting to user input. For interactive atoms (ripple, async-click,
|
|
2242
2356
|
* nav badges) see `@cngx/common/interactive`.
|
|
2243
2357
|
*/
|
|
@@ -2246,5 +2360,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
2246
2360
|
* Generated bundle index. Do not edit.
|
|
2247
2361
|
*/
|
|
2248
2362
|
|
|
2249
|
-
export { CNGX_TAG_CONFIG, CNGX_TAG_GROUP, CngxAvatar, CngxAvatarGroup, CngxBadge, CngxCheckboxIndicator, CngxChip, CngxDivider, CngxIcon, CngxMeta, CngxMetaList, CngxPasswordStrengthMeter, CngxRadioIndicator, CngxSegmentedProgress, CngxTag, CngxTagGroup, CngxTagGroupAccessory, CngxTagGroupHeader, CngxTagLabel, CngxTagPrefix, CngxTagSuffix, CngxTime, injectTagConfig, provideTagConfig, provideTagConfigAt, withTagColors, withTagDefaults, withTagGroupDefaults, withTagSlots };
|
|
2363
|
+
export { CNGX_TAG_CONFIG, CNGX_TAG_GROUP, CngxAvatar, CngxAvatarGroup, CngxBadge, CngxCheckboxIndicator, CngxChip, CngxDivider, CngxIcon, CngxMeta, CngxMetaList, CngxPasswordStrengthMeter, CngxRadioIndicator, CngxSegmentedProgress, CngxStatus, CngxTag, CngxTagGroup, CngxTagGroupAccessory, CngxTagGroupHeader, CngxTagLabel, CngxTagPrefix, CngxTagSuffix, CngxTime, injectTagConfig, provideTagConfig, provideTagConfigAt, withTagColors, withTagDefaults, withTagGroupDefaults, withTagSlots };
|
|
2250
2364
|
//# sourceMappingURL=cngx-common-display.mjs.map
|