@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8
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/README.md +112 -1
- package/a11y/README.md +87 -0
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +103 -2
- package/feedback/README.md +42 -0
- package/fesm2022/cngx-ui-a11y.mjs +452 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +116 -38
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +115 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +207 -66
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +857 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1095 -521
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +501 -182
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +22 -21
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +718 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +217 -76
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +40 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +548 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +748 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +16 -21
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +29 -27
- package/overlay/README.md +9 -4
- package/package.json +32 -1
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/skeleton/README.md +2 -0
- package/speak/README.md +3 -2
- package/stepper/README.md +15 -3
- package/timeline/README.md +350 -0
- package/toc/README.md +186 -0
- package/types/cngx-ui-a11y.d.ts +394 -0
- package/types/cngx-ui-accordion.d.ts +100 -30
- package/types/cngx-ui-action-button.d.ts +47 -3
- package/types/cngx-ui-breadcrumb.d.ts +159 -58
- package/types/cngx-ui-chart-panel.d.ts +382 -0
- package/types/cngx-ui-collection.d.ts +159 -58
- package/types/cngx-ui-command-palette.d.ts +565 -0
- package/types/cngx-ui-context-menu.d.ts +559 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +664 -73
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +32 -4
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +218 -23
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +416 -132
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +18 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +411 -0
- package/types/cngx-ui-stepper.d.ts +81 -29
- package/types/cngx-ui-tabs.d.ts +22 -6
- package/types/cngx-ui-timeline.d.ts +495 -0
- package/types/cngx-ui-toc.d.ts +581 -0
- package/types/cngx-ui.d.ts +8 -5
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { InjectionToken, inject, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { createLanguageSection } from '@cngx/core/i18n';
|
|
4
|
+
import { createFilledOverrideMerge } from '@cngx/core/utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The English speak section: the single source of the speak button's English
|
|
8
|
+
* copy. `CNGX_SPEAK_I18N` defaults to it.
|
|
9
|
+
*
|
|
10
|
+
* @category ui/speak/i18n
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
* @relatedTo CNGX_SPEAK_I18N
|
|
13
|
+
*/
|
|
14
|
+
const CNGX_SPEAK_LANGUAGE_EN = {
|
|
15
|
+
readAloud: 'Read aloud',
|
|
16
|
+
stopSpeaking: 'Stop speaking',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** The English speak section with the active pack's speak section on top, shared app-wide. */
|
|
20
|
+
const speakBundleFromPack = createLanguageSection('speak', CNGX_SPEAK_LANGUAGE_EN);
|
|
21
|
+
/**
|
|
22
|
+
* DI token for the speak i18n bundle. `providedIn: 'root'`: the `speak`
|
|
23
|
+
* section of the active language pack over the English defaults. The value is
|
|
24
|
+
* a `Signal`, shared by every reader under one injector.
|
|
25
|
+
*
|
|
26
|
+
* @category ui/speak/i18n
|
|
27
|
+
* @wcag AA
|
|
28
|
+
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-i18n.ts
|
|
29
|
+
* @since 0.1.0
|
|
30
|
+
* @relatedTo CngxSpeakButton
|
|
31
|
+
*/
|
|
32
|
+
const CNGX_SPEAK_I18N = new InjectionToken('CngxSpeakI18n', {
|
|
33
|
+
providedIn: 'root',
|
|
34
|
+
factory: speakBundleFromPack,
|
|
35
|
+
});
|
|
36
|
+
/** @internal */
|
|
37
|
+
function defineSpeakI18nFeature(fn) {
|
|
38
|
+
return Object.assign(fn, { _target: 'i18n' });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Override i18n labels via a partial bundle - unset keys, and keys set to
|
|
42
|
+
* `null` or `undefined`, keep the language pack's copy, or the English
|
|
43
|
+
* default, so the button never loses its accessible name. Pass a `Signal` of a
|
|
44
|
+
* partial bundle to switch languages at runtime.
|
|
45
|
+
*
|
|
46
|
+
* @category ui/speak/i18n
|
|
47
|
+
* @since 0.1.0
|
|
48
|
+
*/
|
|
49
|
+
function withSpeakI18nLabels(overrides) {
|
|
50
|
+
return defineSpeakI18nFeature((bundle) => createFilledOverrideMerge(bundle, overrides));
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Provider for the speak i18n bundle. Returns a plain `Provider`, so it also
|
|
54
|
+
* scopes a subtree through `viewProviders`.
|
|
55
|
+
*
|
|
56
|
+
* ```ts
|
|
57
|
+
* bootstrapApplication(AppComponent, {
|
|
58
|
+
* providers: [
|
|
59
|
+
* provideSpeakI18n(withSpeakI18nLabels({ readAloud: 'Vorlesen', stopSpeaking: 'Vorlesen beenden' })),
|
|
60
|
+
* ],
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @category ui/speak/i18n
|
|
65
|
+
* @since 0.1.0
|
|
66
|
+
*/
|
|
67
|
+
function provideSpeakI18n(...features) {
|
|
68
|
+
return {
|
|
69
|
+
provide: CNGX_SPEAK_I18N,
|
|
70
|
+
useFactory: () => features.reduce((bundle, feat) => feat(bundle), speakBundleFromPack()),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Inject the resolved speak i18n bundle signal.
|
|
75
|
+
*
|
|
76
|
+
* @category ui/speak/i18n
|
|
77
|
+
* @since 0.1.0
|
|
78
|
+
*/
|
|
79
|
+
function injectSpeakI18n() {
|
|
80
|
+
return inject(CNGX_SPEAK_I18N);
|
|
81
|
+
}
|
|
3
82
|
|
|
4
83
|
/**
|
|
5
84
|
* Ready-made speaker button that connects to a {@link CngxSpeak} directive
|
|
@@ -30,14 +109,29 @@ import { input, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@a
|
|
|
30
109
|
* <example-url>http://localhost:4200/#/ui/speak/speak-button/styled-speaker-icon</example-url>
|
|
31
110
|
*/
|
|
32
111
|
class CngxSpeakButton {
|
|
112
|
+
i18n = injectSpeakI18n();
|
|
33
113
|
/** The `CngxSpeak` directive instance to connect to. */
|
|
34
114
|
speakRef = input.required(...(ngDevMode ? [{ debugName: "speakRef" }] : /* istanbul ignore next */ []));
|
|
115
|
+
/**
|
|
116
|
+
* Accessible label while idle - the action the button offers. Unbound,
|
|
117
|
+
* `CNGX_SPEAK_I18N.readAloud` applies.
|
|
118
|
+
*/
|
|
119
|
+
readAloudLabel = input(undefined, ...(ngDevMode ? [{ debugName: "readAloudLabel" }] : /* istanbul ignore next */ []));
|
|
120
|
+
/**
|
|
121
|
+
* Accessible label while speaking - the action the button offers to
|
|
122
|
+
* interrupt playback. Unbound, `CNGX_SPEAK_I18N.stopSpeaking` applies.
|
|
123
|
+
*/
|
|
124
|
+
stopLabel = input(undefined, ...(ngDevMode ? [{ debugName: "stopLabel" }] : /* istanbul ignore next */ []));
|
|
125
|
+
/** @internal - the label for the current playback state. */
|
|
126
|
+
resolvedLabel = computed(() => this.speakRef().speaking()
|
|
127
|
+
? (this.stopLabel() ?? this.i18n().stopSpeaking)
|
|
128
|
+
: (this.readAloudLabel() ?? this.i18n().readAloud), ...(ngDevMode ? [{ debugName: "resolvedLabel" }] : /* istanbul ignore next */ []));
|
|
35
129
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxSpeakButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxSpeakButton, isStandalone: true, selector: "cngx-speak-button", inputs: { speakRef: { classPropertyName: "speakRef", publicName: "speakRef", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "class.cngx-speak-button--speaking": "speakRef().speaking()" }, classAttribute: "cngx-speak-button" }, ngImport: i0, template: `
|
|
130
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.4", type: CngxSpeakButton, isStandalone: true, selector: "cngx-speak-button", inputs: { speakRef: { classPropertyName: "speakRef", publicName: "speakRef", isSignal: true, isRequired: true, transformFunction: null }, readAloudLabel: { classPropertyName: "readAloudLabel", publicName: "readAloudLabel", isSignal: true, isRequired: false, transformFunction: null }, stopLabel: { classPropertyName: "stopLabel", publicName: "stopLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.cngx-speak-button--speaking": "speakRef().speaking()", "hidden": "!speakRef().supported" }, classAttribute: "cngx-speak-button" }, ngImport: i0, template: `
|
|
37
131
|
<button
|
|
38
132
|
type="button"
|
|
39
133
|
class="cngx-speak-button__btn"
|
|
40
|
-
[attr.aria-label]="
|
|
134
|
+
[attr.aria-label]="resolvedLabel()"
|
|
41
135
|
(click)="speakRef().toggle()"
|
|
42
136
|
>
|
|
43
137
|
@if (speakRef().speaking()) {
|
|
@@ -66,18 +160,23 @@ class CngxSpeakButton {
|
|
|
66
160
|
</svg>
|
|
67
161
|
}
|
|
68
162
|
</button>
|
|
69
|
-
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-speak-btn-size{syntax: \"<length>\"; inherits: false; initial-value: 36px;}@property --cngx-speak-btn-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 18px;}@property --cngx-speak-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-speak-btn-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-speak-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 0 0);}@property --cngx-speak-btn-transition{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-speak-btn-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-speak-btn-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.72 .18 70);}}@layer cngx.components{@scope(.cngx-speak-button){:scope{display:inline-flex}.cngx-speak-button__btn{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-speak-btn-size, 36px);height:var(--cngx-speak-btn-size, 36px);padding:0;border:var(--cngx-speak-btn-border-width, 1px) solid var(--cngx-color-border, oklch(.87 0 0));border-radius:var(--cngx-speak-btn-radius, 8px);background:var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0)));color:var(--cngx-speak-btn-color, oklch(.45 0 0));cursor:pointer;transition:color var(--cngx-speak-btn-transition, .15s),background var(--cngx-speak-btn-transition, .15s),border-color var(--cngx-speak-btn-transition, .15s);flex-shrink:0}.cngx-speak-button__btn:hover{color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));border-color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));background:var( --cngx-speak-btn-hover-bg, var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0))) )}:scope.cngx-speak-button--speaking .cngx-speak-button__btn{color:var(--cngx-speak-btn-speaking-color, oklch(1 0 0));background:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) );border-color:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) )}.cngx-speak-button__icon{width:var(--cngx-speak-btn-icon-size, 18px);height:var(--cngx-speak-btn-icon-size, 18px);transform:translate(1px)}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
163
|
+
`, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-speak-btn-size{syntax: \"<length>\"; inherits: false; initial-value: 36px;}@property --cngx-speak-btn-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 18px;}@property --cngx-speak-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-speak-btn-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-speak-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 0 0);}@property --cngx-speak-btn-transition{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-speak-button){--cngx-speak-btn-transition: var(--cngx-duration-fast)}@property --cngx-speak-btn-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-speak-btn-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.72 .18 70);}}@layer cngx.components{@scope(.cngx-speak-button){:scope{display:inline-flex}.cngx-speak-button__btn{display:inline-flex;align-items:center;justify-content:center;width:max(var(--cngx-speak-btn-size, 36px),var(--cngx-target-min, 0px));height:max(var(--cngx-speak-btn-size, 36px),var(--cngx-target-min, 0px));padding:0;border:var(--cngx-speak-btn-border-width, 1px) solid var(--cngx-color-border, oklch(.87 0 0));border-radius:var(--cngx-speak-btn-radius, 8px);background:var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0)));color:var(--cngx-speak-btn-color, oklch(.45 0 0));cursor:pointer;transition:color var(--cngx-speak-btn-transition, .15s),background var(--cngx-speak-btn-transition, .15s),border-color var(--cngx-speak-btn-transition, .15s);flex-shrink:0}.cngx-speak-button__btn:hover{color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));border-color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));background:var( --cngx-speak-btn-hover-bg, var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0))) )}:scope.cngx-speak-button--speaking .cngx-speak-button__btn{color:var(--cngx-speak-btn-speaking-color, oklch(1 0 0));background:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) );border-color:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) )}.cngx-speak-button__icon{width:var(--cngx-speak-btn-icon-size, 18px);height:var(--cngx-speak-btn-icon-size, 18px);transform:translate(1px)}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
70
164
|
}
|
|
71
165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxSpeakButton, decorators: [{
|
|
72
166
|
type: Component,
|
|
73
167
|
args: [{ selector: 'cngx-speak-button', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
74
168
|
class: 'cngx-speak-button',
|
|
75
169
|
'[class.cngx-speak-button--speaking]': 'speakRef().speaking()',
|
|
170
|
+
// Speech synthesis is a hard capability - with no engine the button can
|
|
171
|
+
// only ever be a dead control, so it leaves the layout and the a11y tree
|
|
172
|
+
// entirely rather than sit disabled. `supported` is set once at
|
|
173
|
+
// construction, so this gate never flips at runtime.
|
|
174
|
+
'[hidden]': '!speakRef().supported',
|
|
76
175
|
}, template: `
|
|
77
176
|
<button
|
|
78
177
|
type="button"
|
|
79
178
|
class="cngx-speak-button__btn"
|
|
80
|
-
[attr.aria-label]="
|
|
179
|
+
[attr.aria-label]="resolvedLabel()"
|
|
81
180
|
(click)="speakRef().toggle()"
|
|
82
181
|
>
|
|
83
182
|
@if (speakRef().speaking()) {
|
|
@@ -106,8 +205,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
106
205
|
</svg>
|
|
107
206
|
}
|
|
108
207
|
</button>
|
|
109
|
-
`, styles: ["@layer cngx.tokens{@property --cngx-speak-btn-size{syntax: \"<length>\"; inherits: false; initial-value: 36px;}@property --cngx-speak-btn-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 18px;}@property --cngx-speak-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-speak-btn-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-speak-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 0 0);}@property --cngx-speak-btn-transition{syntax: \"<time>\"; inherits: false; initial-value: .15s;}@property --cngx-speak-btn-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-speak-btn-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.72 .18 70);}}@layer cngx.components{@scope(.cngx-speak-button){:scope{display:inline-flex}.cngx-speak-button__btn{display:inline-flex;align-items:center;justify-content:center;width:var(--cngx-speak-btn-size, 36px);height:var(--cngx-speak-btn-size, 36px);padding:0;border:var(--cngx-speak-btn-border-width, 1px) solid var(--cngx-color-border, oklch(.87 0 0));border-radius:var(--cngx-speak-btn-radius, 8px);background:var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0)));color:var(--cngx-speak-btn-color, oklch(.45 0 0));cursor:pointer;transition:color var(--cngx-speak-btn-transition, .15s),background var(--cngx-speak-btn-transition, .15s),border-color var(--cngx-speak-btn-transition, .15s);flex-shrink:0}.cngx-speak-button__btn:hover{color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));border-color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));background:var( --cngx-speak-btn-hover-bg, var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0))) )}:scope.cngx-speak-button--speaking .cngx-speak-button__btn{color:var(--cngx-speak-btn-speaking-color, oklch(1 0 0));background:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) );border-color:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) )}.cngx-speak-button__icon{width:var(--cngx-speak-btn-icon-size, 18px);height:var(--cngx-speak-btn-icon-size, 18px);transform:translate(1px)}}}\n"] }]
|
|
110
|
-
}], propDecorators: { speakRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "speakRef", required: true }] }] } });
|
|
208
|
+
`, styles: ["@layer cngx.tokens{@property --cngx-speak-btn-size{syntax: \"<length>\"; inherits: false; initial-value: 36px;}@property --cngx-speak-btn-icon-size{syntax: \"<length>\"; inherits: false; initial-value: 18px;}@property --cngx-speak-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 8px;}@property --cngx-speak-btn-border-width{syntax: \"<length>\"; inherits: false; initial-value: 1px;}@property --cngx-speak-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 0 0);}@property --cngx-speak-btn-transition{syntax: \"<time>\"; inherits: false; initial-value: .15s;}:where(.cngx-speak-button){--cngx-speak-btn-transition: var(--cngx-duration-fast)}@property --cngx-speak-btn-active-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.72 .18 70);}@property --cngx-speak-btn-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-speak-btn-speaking-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.72 .18 70);}}@layer cngx.components{@scope(.cngx-speak-button){:scope{display:inline-flex}.cngx-speak-button__btn{display:inline-flex;align-items:center;justify-content:center;width:max(var(--cngx-speak-btn-size, 36px),var(--cngx-target-min, 0px));height:max(var(--cngx-speak-btn-size, 36px),var(--cngx-target-min, 0px));padding:0;border:var(--cngx-speak-btn-border-width, 1px) solid var(--cngx-color-border, oklch(.87 0 0));border-radius:var(--cngx-speak-btn-radius, 8px);background:var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0)));color:var(--cngx-speak-btn-color, oklch(.45 0 0));cursor:pointer;transition:color var(--cngx-speak-btn-transition, .15s),background var(--cngx-speak-btn-transition, .15s),border-color var(--cngx-speak-btn-transition, .15s);flex-shrink:0}.cngx-speak-button__btn:hover{color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));border-color:var(--cngx-speak-btn-active-color, oklch(.72 .18 70));background:var( --cngx-speak-btn-hover-bg, var(--cngx-speak-btn-bg, var(--cngx-color-surface, oklch(1 0 0))) )}:scope.cngx-speak-button--speaking .cngx-speak-button__btn{color:var(--cngx-speak-btn-speaking-color, oklch(1 0 0));background:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) );border-color:var( --cngx-speak-btn-speaking-bg, var(--cngx-speak-btn-active-color, oklch(.72 .18 70)) )}.cngx-speak-button__icon{width:var(--cngx-speak-btn-icon-size, 18px);height:var(--cngx-speak-btn-icon-size, 18px);transform:translate(1px)}}}\n"] }]
|
|
209
|
+
}], propDecorators: { speakRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "speakRef", required: true }] }], readAloudLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "readAloudLabel", required: false }] }], stopLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "stopLabel", required: false }] }] } });
|
|
111
210
|
|
|
112
211
|
/**
|
|
113
212
|
* @module @cngx/ui/speak
|
|
@@ -117,5 +216,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
117
216
|
* Generated bundle index. Do not edit.
|
|
118
217
|
*/
|
|
119
218
|
|
|
120
|
-
export { CngxSpeakButton };
|
|
219
|
+
export { CNGX_SPEAK_I18N, CNGX_SPEAK_LANGUAGE_EN, CngxSpeakButton, injectSpeakI18n, provideSpeakI18n, withSpeakI18nLabels };
|
|
121
220
|
//# sourceMappingURL=cngx-ui-speak.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cngx-ui-speak.mjs","sources":["../../../projects/ui/speak/speak-button.ts","../../../projects/ui/speak/public-api.ts","../../../projects/ui/speak/cngx-ui-speak.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, ViewEncapsulation } from '@angular/core';\nimport { type CngxSpeak } from '@cngx/common';\n\n/**\n * Ready-made speaker button that connects to a {@link CngxSpeak} directive\n * via an explicit `[speakRef]` input - no ancestor injection.\n *\n * Ships with a speaker/stop SVG icon and CSS custom properties for full\n * theming control. Include `speak-button-theme.scss` for automatic Material\n * theme integration.\n *\n * ### Basic usage\n * ```html\n * <span [cngxSpeak]=\"text\" #tts=\"cngxSpeak\">{{ text }}</span>\n * <cngx-speak-button [speakRef]=\"tts\" />\n * ```\n *\n * ### Material theme integration\n * ```scss\n * @use '@cngx/themes/material/speak-button-theme' as speak;\n * @include speak.theme($theme);\n * ```\n *\n * @category ui/speak\n * @docsKind primary\n * @wcag AAA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-button.ts\n * @since 0.1.0\n * @relatedTo CngxSpeak\n * <example-url>http://localhost:4200/#/ui/speak/speak-button/styled-speaker-icon</example-url>\n */\n@Component({\n selector: 'cngx-speak-button',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'cngx-speak-button',\n '[class.cngx-speak-button--speaking]': 'speakRef().speaking()',\n },\n styleUrls: ['./speak-button.css'],\n template: `\n <button\n type=\"button\"\n class=\"cngx-speak-button__btn\"\n [attr.aria-label]=\"speakRef().speaking() ? 'Stop speaking' : 'Read aloud'\"\n (click)=\"speakRef().toggle()\"\n >\n @if (speakRef().speaking()) {\n <svg\n class=\"cngx-speak-button__icon\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2\" />\n </svg>\n } @else {\n <svg\n class=\"cngx-speak-button__icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\" />\n <path d=\"M15.54 8.46a5 5 0 010 7.07\" />\n <path d=\"M19.07 4.93a10 10 0 010 14.14\" />\n </svg>\n }\n </button>\n `,\n})\nexport class CngxSpeakButton {\n /** The `CngxSpeak` directive instance to connect to. */\n readonly speakRef = input.required<CngxSpeak>();\n}\n","/**\n * @module @cngx/ui/speak\n */\n\nexport { CngxSpeakButton } from './speak-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MA8CU,eAAe,CAAA;;AAEjB,IAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,8EAAa;uGAFpC,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAf,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mCAAA,EAAA,uBAAA,EAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAnChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2gFAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAEU,eAAe,EAAA,UAAA,EAAA,CAAA;kBA7C3B,SAAS;+BACE,mBAAmB,EAAA,UAAA,EACjB,IAAI,EAAA,eAAA,EACC,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,KAAK,EAAE,mBAAmB;AAC1B,wBAAA,qCAAqC,EAAE,uBAAuB;qBAC/D,EAAA,QAAA,EAES;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,2gFAAA,CAAA,EAAA;;;AC1EH;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"cngx-ui-speak.mjs","sources":["../../../projects/ui/speak/i18n/speak-language-section.ts","../../../projects/ui/speak/speak-i18n.ts","../../../projects/ui/speak/speak-button.ts","../../../projects/ui/speak/public-api.ts","../../../projects/ui/speak/cngx-ui-speak.ts"],"sourcesContent":["/**\n * The speak section of a {@link CngxLanguagePack}: the accessible names of\n * `CngxSpeakButton`. It feeds `CNGX_SPEAK_I18N`; a key set through\n * `withSpeakI18nLabels` still wins.\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n * @relatedTo CNGX_SPEAK_I18N, withSpeakI18nLabels\n */\nexport interface CngxSpeakLanguageSection {\n /** Accessible name of the speak button while idle. */\n readonly readAloud: string;\n /** Accessible name of the speak button while speaking. */\n readonly stopSpeaking: string;\n}\n\n/**\n * The English speak section: the single source of the speak button's English\n * copy. `CNGX_SPEAK_I18N` defaults to it.\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n * @relatedTo CNGX_SPEAK_I18N\n */\nexport const CNGX_SPEAK_LANGUAGE_EN: CngxSpeakLanguageSection = {\n readAloud: 'Read aloud',\n stopSpeaking: 'Stop speaking',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly speak: CngxSpeakLanguageSection;\n }\n}\n","import { inject, InjectionToken, type Provider, type Signal } from '@angular/core';\nimport { createLanguageSection } from '@cngx/core/i18n';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport {\n CNGX_SPEAK_LANGUAGE_EN,\n type CngxSpeakLanguageSection,\n} from './i18n/speak-language-section';\n\n/**\n * Speak i18n surface: the `speak` section of the language pack (English\n * without one); override single keys via {@link provideSpeakI18n}. Reactive\n * from birth: the token carries a `Signal`, and {@link withSpeakI18nLabels}\n * accepts a `Signal` of a partial bundle.\n *\n * `CngxSpeakButton` reads both keys inside a `computed()` while its\n * `readAloudLabel` / `stopLabel` inputs are unbound, so the label follows a\n * language switch.\n *\n * @category ui/speak/i18n\n */\nexport type CngxSpeakI18n = CngxSpeakLanguageSection;\n\n/** The English speak section with the active pack's speak section on top, shared app-wide. */\nconst speakBundleFromPack = createLanguageSection('speak', CNGX_SPEAK_LANGUAGE_EN);\n\n/**\n * DI token for the speak i18n bundle. `providedIn: 'root'`: the `speak`\n * section of the active language pack over the English defaults. The value is\n * a `Signal`, shared by every reader under one injector.\n *\n * @category ui/speak/i18n\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-i18n.ts\n * @since 0.1.0\n * @relatedTo CngxSpeakButton\n */\nexport const CNGX_SPEAK_I18N = new InjectionToken<Signal<CngxSpeakI18n>>('CngxSpeakI18n', {\n providedIn: 'root',\n factory: speakBundleFromPack,\n});\n\n/**\n * Branded feature-fn for {@link provideSpeakI18n}.\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n */\nexport type CngxSpeakI18nFeature = ((bundle: Signal<CngxSpeakI18n>) => Signal<CngxSpeakI18n>) & {\n readonly _target: 'i18n';\n};\n\n/** @internal */\nfunction defineSpeakI18nFeature(\n fn: (bundle: Signal<CngxSpeakI18n>) => Signal<CngxSpeakI18n>,\n): CngxSpeakI18nFeature {\n return Object.assign(fn, { _target: 'i18n' as const });\n}\n\n/**\n * Override i18n labels via a partial bundle - unset keys, and keys set to\n * `null` or `undefined`, keep the language pack's copy, or the English\n * default, so the button never loses its accessible name. Pass a `Signal` of a\n * partial bundle to switch languages at runtime.\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n */\nexport function withSpeakI18nLabels(\n overrides: Partial<CngxSpeakI18n> | Signal<Partial<CngxSpeakI18n>>,\n): CngxSpeakI18nFeature {\n return defineSpeakI18nFeature((bundle) => createFilledOverrideMerge(bundle, overrides));\n}\n\n/**\n * Provider for the speak i18n bundle. Returns a plain `Provider`, so it also\n * scopes a subtree through `viewProviders`.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideSpeakI18n(withSpeakI18nLabels({ readAloud: 'Vorlesen', stopSpeaking: 'Vorlesen beenden' })),\n * ],\n * });\n * ```\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n */\nexport function provideSpeakI18n(...features: readonly CngxSpeakI18nFeature[]): Provider {\n return {\n provide: CNGX_SPEAK_I18N,\n useFactory: () =>\n features.reduce<Signal<CngxSpeakI18n>>((bundle, feat) => feat(bundle), speakBundleFromPack()),\n };\n}\n\n/**\n * Inject the resolved speak i18n bundle signal.\n *\n * @category ui/speak/i18n\n * @since 0.1.0\n */\nexport function injectSpeakI18n(): Signal<CngxSpeakI18n> {\n return inject(CNGX_SPEAK_I18N);\n}\n","import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';\nimport { type CngxSpeak } from '@cngx/common';\n\nimport { injectSpeakI18n } from './speak-i18n';\n\n/**\n * Ready-made speaker button that connects to a {@link CngxSpeak} directive\n * via an explicit `[speakRef]` input - no ancestor injection.\n *\n * Ships with a speaker/stop SVG icon and CSS custom properties for full\n * theming control. Include `speak-button-theme.scss` for automatic Material\n * theme integration.\n *\n * ### Basic usage\n * ```html\n * <span [cngxSpeak]=\"text\" #tts=\"cngxSpeak\">{{ text }}</span>\n * <cngx-speak-button [speakRef]=\"tts\" />\n * ```\n *\n * ### Material theme integration\n * ```scss\n * @use '@cngx/themes/material/speak-button-theme' as speak;\n * @include speak.theme($theme);\n * ```\n *\n * @category ui/speak\n * @docsKind primary\n * @wcag AAA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/speak/speak-button.ts\n * @since 0.1.0\n * @relatedTo CngxSpeak\n * <example-url>http://localhost:4200/#/ui/speak/speak-button/styled-speaker-icon</example-url>\n */\n@Component({\n selector: 'cngx-speak-button',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'cngx-speak-button',\n '[class.cngx-speak-button--speaking]': 'speakRef().speaking()',\n // Speech synthesis is a hard capability - with no engine the button can\n // only ever be a dead control, so it leaves the layout and the a11y tree\n // entirely rather than sit disabled. `supported` is set once at\n // construction, so this gate never flips at runtime.\n '[hidden]': '!speakRef().supported',\n },\n styleUrls: ['./speak-button.css'],\n template: `\n <button\n type=\"button\"\n class=\"cngx-speak-button__btn\"\n [attr.aria-label]=\"resolvedLabel()\"\n (click)=\"speakRef().toggle()\"\n >\n @if (speakRef().speaking()) {\n <svg\n class=\"cngx-speak-button__icon\"\n viewBox=\"0 0 24 24\"\n fill=\"currentColor\"\n aria-hidden=\"true\"\n >\n <rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2\" />\n </svg>\n } @else {\n <svg\n class=\"cngx-speak-button__icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M11 5L6 9H2v6h4l5 4V5z\" />\n <path d=\"M15.54 8.46a5 5 0 010 7.07\" />\n <path d=\"M19.07 4.93a10 10 0 010 14.14\" />\n </svg>\n }\n </button>\n `,\n})\nexport class CngxSpeakButton {\n private readonly i18n = injectSpeakI18n();\n\n /** The `CngxSpeak` directive instance to connect to. */\n readonly speakRef = input.required<CngxSpeak>();\n\n /**\n * Accessible label while idle - the action the button offers. Unbound,\n * `CNGX_SPEAK_I18N.readAloud` applies.\n */\n readonly readAloudLabel = input<string | undefined>(undefined);\n\n /**\n * Accessible label while speaking - the action the button offers to\n * interrupt playback. Unbound, `CNGX_SPEAK_I18N.stopSpeaking` applies.\n */\n readonly stopLabel = input<string | undefined>(undefined);\n\n /** @internal - the label for the current playback state. */\n protected readonly resolvedLabel = computed(() =>\n this.speakRef().speaking()\n ? (this.stopLabel() ?? this.i18n().stopSpeaking)\n : (this.readAloudLabel() ?? this.i18n().readAloud),\n );\n}\n","/**\n * @module @cngx/ui/speak\n */\n\nexport { CngxSpeakButton } from './speak-button';\nexport {\n CNGX_SPEAK_I18N,\n injectSpeakI18n,\n provideSpeakI18n,\n withSpeakI18nLabels,\n type CngxSpeakI18n,\n type CngxSpeakI18nFeature,\n} from './speak-i18n';\nexport {\n CNGX_SPEAK_LANGUAGE_EN,\n type CngxSpeakLanguageSection,\n} from './i18n/speak-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"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"}
|