@nanahoshi/mona-ui 0.24.10 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/chart/README.md +223 -77
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +11 -10
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +37 -20
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +239 -47
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +184 -31
- package/fesm2022/nanahoshi-mona-ui-button.mjs +47 -11
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +17 -13
- package/fesm2022/nanahoshi-mona-ui-card.mjs +54 -30
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +1909 -666
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +112 -31
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +131 -89
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +59 -19
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +118 -41
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +243 -212
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +155 -86
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +161 -131
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +12 -11
- package/fesm2022/nanahoshi-mona-ui-common.mjs +18 -1
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +25 -24
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +202 -33
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +31 -10
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs → nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs → nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs} +7 -7
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs} +27 -29
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +146 -5
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +7 -7
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +183 -47
- package/fesm2022/nanahoshi-mona-ui-label.mjs +111 -15
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +111 -5
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +100 -6
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +105 -5
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +103 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +90 -5
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +14 -13
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +13 -12
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +192 -56
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +60 -29
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +334 -37
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +84 -30
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +274 -108
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +127 -37
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +595 -170
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +323 -166
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +167 -82
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +273 -165
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +219 -132
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +84 -32
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +337 -116
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +10 -12
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +21 -8
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +444 -88
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +10 -9
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +15 -14
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +17 -3
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1 -1
- package/i18n/catalogs/en-US.messages.json +90 -5
- package/locales/ar-sa/ar-sa.messages.json +90 -5
- package/locales/de-de/de-de.messages.json +90 -5
- package/locales/es-es/es-es.messages.json +90 -5
- package/locales/fr-fr/fr-fr.messages.json +91 -6
- package/locales/id-id/id-id.messages.json +90 -5
- package/locales/it-it/it-it.messages.json +90 -5
- package/locales/ja-jp/ja-jp.messages.json +90 -5
- package/locales/ko-kr/ko-kr.messages.json +90 -5
- package/locales/pt-br/pt-br.messages.json +90 -5
- package/locales/ru-ru/ru-ru.messages.json +90 -5
- package/locales/tr-tr/tr-tr.messages.json +90 -5
- package/locales/zh-cn/zh-cn.messages.json +90 -5
- package/locales/zh-tw/zh-tw.messages.json +90 -5
- package/package.json +2 -1
- package/styles.css +156 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +18 -11
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +62 -14
- package/types/nanahoshi-mona-ui-button-group.d.ts +86 -16
- package/types/nanahoshi-mona-ui-button.d.ts +26 -3
- package/types/nanahoshi-mona-ui-calendar.d.ts +1 -0
- package/types/nanahoshi-mona-ui-card.d.ts +22 -6
- package/types/nanahoshi-mona-ui-chart.d.ts +519 -527
- package/types/nanahoshi-mona-ui-check-box.d.ts +54 -13
- package/types/nanahoshi-mona-ui-chip.d.ts +31 -18
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +21 -5
- package/types/nanahoshi-mona-ui-collapsible.d.ts +20 -11
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +62 -36
- package/types/nanahoshi-mona-ui-color-palette.d.ts +65 -27
- package/types/nanahoshi-mona-ui-color-picker.d.ts +64 -23
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-common.d.ts +28 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +1 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +51 -7
- package/types/nanahoshi-mona-ui-fieldset.d.ts +18 -4
- package/types/nanahoshi-mona-ui-grid.d.ts +0 -1
- package/types/nanahoshi-mona-ui-i18n.d.ts +130 -3
- package/types/nanahoshi-mona-ui-internal.d.ts +95 -14
- package/types/nanahoshi-mona-ui-label.d.ts +17 -2
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +85 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +85 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +1 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -0
- package/types/nanahoshi-mona-ui-otp-input.d.ts +49 -12
- package/types/nanahoshi-mona-ui-placeholder.d.ts +2 -1
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +21 -9
- package/types/nanahoshi-mona-ui-radio-button.d.ts +165 -20
- package/types/nanahoshi-mona-ui-rating.d.ts +21 -6
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +59 -27
- package/types/nanahoshi-mona-ui-segmented.d.ts +52 -24
- package/types/nanahoshi-mona-ui-sidebar.d.ts +104 -41
- package/types/nanahoshi-mona-ui-skeleton.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +99 -35
- package/types/nanahoshi-mona-ui-spinner.d.ts +9 -5
- package/types/nanahoshi-mona-ui-splitter.d.ts +31 -10
- package/types/nanahoshi-mona-ui-stepper.d.ts +58 -12
- package/types/nanahoshi-mona-ui-switch.d.ts +32 -10
- package/types/nanahoshi-mona-ui-tabs.d.ts +75 -20
- package/types/nanahoshi-mona-ui-text-area.d.ts +7 -7
- package/types/nanahoshi-mona-ui-text-box.d.ts +2 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +392 -15
- package/types/nanahoshi-mona-ui-time-picker.d.ts +1 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +1 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +7 -1
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Signal, EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
1
3
|
import * as _nanahoshi_mona_ui_theme from '@nanahoshi/mona-ui/theme';
|
|
2
|
-
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
4
4
|
|
|
5
5
|
type BuiltInThemeName = "anna" | "luna" | "mona";
|
|
6
6
|
type ThemeName = string;
|
|
7
7
|
type ThemeVariant = "light" | "dark";
|
|
8
|
+
/** A variant, or `"system"` to follow the operating system's light or dark setting. */
|
|
9
|
+
type ThemeVariantPreference = ThemeVariant | "system";
|
|
10
|
+
/** A registered theme and the variants it has. */
|
|
11
|
+
interface ThemeAvailability {
|
|
12
|
+
readonly name: ThemeName;
|
|
13
|
+
readonly variants: readonly ThemeVariant[];
|
|
14
|
+
}
|
|
15
|
+
/** What's asked for: a theme and a variant, which can be `"system"`. */
|
|
16
|
+
interface ThemePreference {
|
|
17
|
+
readonly name: ThemeName;
|
|
18
|
+
readonly variant: ThemeVariantPreference;
|
|
19
|
+
}
|
|
20
|
+
/** What's in effect: a theme and the variant it came to. */
|
|
8
21
|
interface ThemeSelection {
|
|
9
22
|
readonly name: ThemeName;
|
|
10
23
|
readonly variant: ThemeVariant;
|
|
@@ -31,8 +44,8 @@ interface ThemeProfile {
|
|
|
31
44
|
readonly custom?: ThemeVariables;
|
|
32
45
|
readonly effects: ThemeEffects;
|
|
33
46
|
readonly motion: ThemeMotion;
|
|
34
|
-
readonly shape: ThemeShape;
|
|
35
47
|
readonly shadows: ThemeShadows;
|
|
48
|
+
readonly shape: ThemeShape;
|
|
36
49
|
}
|
|
37
50
|
interface ThemeProfileOverrides {
|
|
38
51
|
readonly colors?: ThemeColors;
|
|
@@ -40,8 +53,8 @@ interface ThemeProfileOverrides {
|
|
|
40
53
|
readonly custom?: ThemeVariables;
|
|
41
54
|
readonly effects?: Partial<ThemeEffects>;
|
|
42
55
|
readonly motion?: Partial<ThemeMotion>;
|
|
43
|
-
readonly shape?: Partial<ThemeShape>;
|
|
44
56
|
readonly shadows?: ThemeShadows;
|
|
57
|
+
readonly shape?: Partial<ThemeShape>;
|
|
45
58
|
}
|
|
46
59
|
type ThemeFamilyVariants = Readonly<{
|
|
47
60
|
readonly dark: ThemeProfile;
|
|
@@ -61,7 +74,12 @@ interface ThemeOverrideRegistration {
|
|
|
61
74
|
readonly theme: ThemeName;
|
|
62
75
|
}
|
|
63
76
|
interface ThemeOptions {
|
|
64
|
-
readonly initialTheme:
|
|
77
|
+
readonly initialTheme: ThemePreference;
|
|
78
|
+
/**
|
|
79
|
+
* Remembers the theme under this key, in `THEME_STORAGE`, and restores it in place of `initialTheme`. Nothing is
|
|
80
|
+
* stored without one. A runtime color palette isn't part of what's remembered.
|
|
81
|
+
*/
|
|
82
|
+
readonly persistKey?: string;
|
|
65
83
|
}
|
|
66
84
|
interface ThemeColorPaletteSeeds {
|
|
67
85
|
readonly error?: string;
|
|
@@ -95,12 +113,20 @@ declare function flattenThemeProfile(profile: ThemeProfile): ThemeVariables;
|
|
|
95
113
|
declare class ThemeService {
|
|
96
114
|
#private;
|
|
97
115
|
/** The consumer-provided seeds for the active runtime color palette, or `null` when provider defaults are active. */
|
|
98
|
-
readonly colorPaletteSeeds:
|
|
99
|
-
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
|
|
116
|
+
readonly colorPaletteSeeds: Signal<ThemeColorPaletteSeeds | null>;
|
|
117
|
+
/** What was asked for, which is where `"system"` shows. `selection` says what that came to. */
|
|
118
|
+
readonly preference: Signal<ThemePreference>;
|
|
119
|
+
readonly profile: Signal<ThemeProfile>;
|
|
120
|
+
/** The theme and variant in effect. It's always `light` or `dark`, whatever was asked for. */
|
|
121
|
+
readonly selection: Signal<ThemeSelection>;
|
|
122
|
+
readonly themeName: Signal<string>;
|
|
123
|
+
readonly themeVariant: Signal<ThemeVariant>;
|
|
103
124
|
constructor();
|
|
125
|
+
/**
|
|
126
|
+
* The registered themes and the variants each one has. A custom `ThemeStrategy` reports them through its
|
|
127
|
+
* optional `availableThemes()`, and this is empty for one that doesn't.
|
|
128
|
+
*/
|
|
129
|
+
availableThemes(): readonly ThemeAvailability[];
|
|
104
130
|
/** Removes the runtime color palette and restores the registered profile and provider overrides. */
|
|
105
131
|
clearColorPalette(): void;
|
|
106
132
|
/**
|
|
@@ -110,11 +136,308 @@ declare class ThemeService {
|
|
|
110
136
|
setColorPalette(seeds: ThemeColorPaletteSeeds): void;
|
|
111
137
|
/** Updates only the runtime primary seed while retaining any other active runtime seeds. */
|
|
112
138
|
setPrimaryColor(primary: string): void;
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
139
|
+
/**
|
|
140
|
+
* Switches the theme, and remembers it if a `persistKey` was given. `"system"` follows the operating system's
|
|
141
|
+
* setting from then on, and takes the variant a theme has when it only has one.
|
|
142
|
+
* @throws if the theme isn't registered, or doesn't have the variant asked for
|
|
143
|
+
*/
|
|
144
|
+
setTheme(preference: ThemePreference): void;
|
|
145
|
+
/** Whether `setTheme` would accept this. A saved choice can be checked with it before it's restored. */
|
|
146
|
+
supportsVariant(name: ThemeName, variant: ThemeVariant): boolean;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
148
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
116
149
|
}
|
|
117
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Where the theme is remembered. Supplied through `THEME_STORAGE`, and only ever consulted when
|
|
153
|
+
* `provideThemeOptions()` was given a `persistKey`.
|
|
154
|
+
*/
|
|
155
|
+
interface ThemeStorage {
|
|
156
|
+
/**
|
|
157
|
+
* The remembered preference for `key`, or `null` when nothing has been stored under it, including when this
|
|
158
|
+
* storage can't answer, such as on the server. A `null` leaves the theme on `initialTheme`.
|
|
159
|
+
*/
|
|
160
|
+
read(key: string): ThemePreference | null;
|
|
161
|
+
/** Records the preference for `key`. Failing to store it must not throw. */
|
|
162
|
+
write(key: string, preference: ThemePreference): void;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare const annaTheme: Readonly<{
|
|
166
|
+
name: string;
|
|
167
|
+
variants: {
|
|
168
|
+
dark: Readonly<{
|
|
169
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
170
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
171
|
+
custom: Readonly<{
|
|
172
|
+
"--mona-indicator-color": "var(--color-primary-border)";
|
|
173
|
+
"--mona-indicator-foreground": "#161718";
|
|
174
|
+
}>;
|
|
175
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
176
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
177
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
178
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
179
|
+
}>;
|
|
180
|
+
};
|
|
181
|
+
}>;
|
|
182
|
+
|
|
183
|
+
declare const builtInThemes: Readonly<{
|
|
184
|
+
anna: Readonly<{
|
|
185
|
+
name: string;
|
|
186
|
+
variants: {
|
|
187
|
+
dark: Readonly<{
|
|
188
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
189
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
190
|
+
custom: Readonly<{
|
|
191
|
+
"--mona-indicator-color": "var(--color-primary-border)";
|
|
192
|
+
"--mona-indicator-foreground": "#161718";
|
|
193
|
+
}>;
|
|
194
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
195
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
196
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
197
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
198
|
+
}>;
|
|
199
|
+
};
|
|
200
|
+
}>;
|
|
201
|
+
luna: Readonly<{
|
|
202
|
+
name: string;
|
|
203
|
+
variants: {
|
|
204
|
+
light: Readonly<{
|
|
205
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
206
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
207
|
+
motion: Readonly<{
|
|
208
|
+
"--mona-motion-fast": "180ms";
|
|
209
|
+
"--mona-motion-standard": "320ms";
|
|
210
|
+
}>;
|
|
211
|
+
effects: Readonly<{
|
|
212
|
+
"--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)";
|
|
213
|
+
"--mona-effect-control-fallback-background-color": "#f3f4f5";
|
|
214
|
+
"--mona-effect-control-background-image": "none";
|
|
215
|
+
"--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)";
|
|
216
|
+
"--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)";
|
|
217
|
+
"--mona-effect-raised-fallback-background-color": "#fbfbfb";
|
|
218
|
+
"--mona-effect-raised-background-image": "none";
|
|
219
|
+
"--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)";
|
|
220
|
+
"--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)";
|
|
221
|
+
"--mona-effect-overlay-fallback-background-color": "#f9f9fa";
|
|
222
|
+
"--mona-effect-overlay-background-image": "none";
|
|
223
|
+
"--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)";
|
|
224
|
+
}>;
|
|
225
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
226
|
+
custom: Readonly<{
|
|
227
|
+
"--mona-date-popup-calendar-backdrop-filter": "none";
|
|
228
|
+
"--mona-date-popup-calendar-background": "transparent";
|
|
229
|
+
"--mona-date-popup-calendar-background-image": "none";
|
|
230
|
+
"--mona-dropdown-popup-list-background": "transparent";
|
|
231
|
+
"--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)";
|
|
232
|
+
"--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)";
|
|
233
|
+
"--mona-menu-item-hover-foreground": "var(--color-foreground)";
|
|
234
|
+
"--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)";
|
|
235
|
+
"--mona-menubar-background-image": "var(--mona-effect-control-background-image)";
|
|
236
|
+
}>;
|
|
237
|
+
components: Readonly<{
|
|
238
|
+
"--mona-calendar-background": "var(--mona-effect-raised-background-color)";
|
|
239
|
+
"--mona-calendar-shadow": "var(--shadow-raised)";
|
|
240
|
+
"--mona-list-background": "var(--color-surface)";
|
|
241
|
+
"--mona-list-disabled-background": "var(--color-disabled-background)";
|
|
242
|
+
"--mona-list-group-background": "rgb(37 37 37 / 0.05)";
|
|
243
|
+
"--mona-list-group-border-width": "1px";
|
|
244
|
+
"--mona-list-group-font-weight": "650";
|
|
245
|
+
"--mona-menubar-background": "var(--mona-effect-control-background-color)";
|
|
246
|
+
"--mona-menubar-shadow": "var(--shadow-control)";
|
|
247
|
+
"--mona-pager-background": "var(--mona-effect-raised-background-color)";
|
|
248
|
+
"--mona-slider-handle-border-color": "var(--color-border-control)";
|
|
249
|
+
}>;
|
|
250
|
+
}>;
|
|
251
|
+
dark: Readonly<{
|
|
252
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
253
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
254
|
+
motion: Readonly<{
|
|
255
|
+
"--mona-motion-fast": "180ms";
|
|
256
|
+
"--mona-motion-standard": "320ms";
|
|
257
|
+
}>;
|
|
258
|
+
effects: Readonly<{
|
|
259
|
+
"--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)";
|
|
260
|
+
"--mona-effect-control-fallback-background-color": "#252527";
|
|
261
|
+
"--mona-effect-control-background-image": "none";
|
|
262
|
+
"--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)";
|
|
263
|
+
"--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)";
|
|
264
|
+
"--mona-effect-raised-fallback-background-color": "#202022";
|
|
265
|
+
"--mona-effect-raised-background-image": "none";
|
|
266
|
+
"--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)";
|
|
267
|
+
"--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)";
|
|
268
|
+
"--mona-effect-overlay-fallback-background-color": "#262628";
|
|
269
|
+
"--mona-effect-overlay-background-image": "none";
|
|
270
|
+
"--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)";
|
|
271
|
+
}>;
|
|
272
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
273
|
+
custom: Readonly<{
|
|
274
|
+
"--mona-date-popup-calendar-backdrop-filter": "none";
|
|
275
|
+
"--mona-date-popup-calendar-background": "transparent";
|
|
276
|
+
"--mona-date-popup-calendar-background-image": "none";
|
|
277
|
+
"--mona-dropdown-popup-list-background": "transparent";
|
|
278
|
+
"--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)";
|
|
279
|
+
"--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)";
|
|
280
|
+
"--mona-menubar-background-image": "var(--mona-effect-control-background-image)";
|
|
281
|
+
}>;
|
|
282
|
+
components: Readonly<{
|
|
283
|
+
"--mona-calendar-background": "var(--mona-effect-raised-background-color)";
|
|
284
|
+
"--mona-calendar-shadow": "var(--shadow-raised)";
|
|
285
|
+
"--mona-list-background": "var(--color-surface)";
|
|
286
|
+
"--mona-list-disabled-background": "var(--color-disabled-background)";
|
|
287
|
+
"--mona-list-group-background": "rgb(255 255 255 / 0.04)";
|
|
288
|
+
"--mona-list-group-border-width": "1px";
|
|
289
|
+
"--mona-list-group-font-weight": "650";
|
|
290
|
+
"--mona-menubar-background": "var(--mona-effect-control-background-color)";
|
|
291
|
+
"--mona-menubar-shadow": "var(--shadow-control)";
|
|
292
|
+
"--mona-pager-background": "var(--mona-effect-raised-background-color)";
|
|
293
|
+
"--mona-slider-handle-border-color": "var(--color-border-control)";
|
|
294
|
+
}>;
|
|
295
|
+
}>;
|
|
296
|
+
};
|
|
297
|
+
}>;
|
|
298
|
+
mona: Readonly<{
|
|
299
|
+
name: string;
|
|
300
|
+
variants: {
|
|
301
|
+
light: Readonly<{
|
|
302
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
303
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
304
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
305
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
306
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
307
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
308
|
+
}>;
|
|
309
|
+
dark: Readonly<{
|
|
310
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
311
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
312
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
313
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
314
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
315
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
316
|
+
}>;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
319
|
+
}>;
|
|
320
|
+
|
|
321
|
+
declare const lunaTheme: Readonly<{
|
|
322
|
+
name: string;
|
|
323
|
+
variants: {
|
|
324
|
+
light: Readonly<{
|
|
325
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
326
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
327
|
+
motion: Readonly<{
|
|
328
|
+
"--mona-motion-fast": "180ms";
|
|
329
|
+
"--mona-motion-standard": "320ms";
|
|
330
|
+
}>;
|
|
331
|
+
effects: Readonly<{
|
|
332
|
+
"--mona-effect-control-background-color": "rgb(243 244 245 / 0.78)";
|
|
333
|
+
"--mona-effect-control-fallback-background-color": "#f3f4f5";
|
|
334
|
+
"--mona-effect-control-background-image": "none";
|
|
335
|
+
"--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)";
|
|
336
|
+
"--mona-effect-raised-background-color": "rgb(252 252 252 / 0.76)";
|
|
337
|
+
"--mona-effect-raised-fallback-background-color": "#fbfbfb";
|
|
338
|
+
"--mona-effect-raised-background-image": "none";
|
|
339
|
+
"--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)";
|
|
340
|
+
"--mona-effect-overlay-background-color": "rgb(249 249 250 / 0.72)";
|
|
341
|
+
"--mona-effect-overlay-fallback-background-color": "#f9f9fa";
|
|
342
|
+
"--mona-effect-overlay-background-image": "none";
|
|
343
|
+
"--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)";
|
|
344
|
+
}>;
|
|
345
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
346
|
+
custom: Readonly<{
|
|
347
|
+
"--mona-date-popup-calendar-backdrop-filter": "none";
|
|
348
|
+
"--mona-date-popup-calendar-background": "transparent";
|
|
349
|
+
"--mona-date-popup-calendar-background-image": "none";
|
|
350
|
+
"--mona-dropdown-popup-list-background": "transparent";
|
|
351
|
+
"--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)";
|
|
352
|
+
"--mona-menu-item-hover-background": "rgb(37 37 37 / 0.06)";
|
|
353
|
+
"--mona-menu-item-hover-foreground": "var(--color-foreground)";
|
|
354
|
+
"--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)";
|
|
355
|
+
"--mona-menubar-background-image": "var(--mona-effect-control-background-image)";
|
|
356
|
+
}>;
|
|
357
|
+
components: Readonly<{
|
|
358
|
+
"--mona-calendar-background": "var(--mona-effect-raised-background-color)";
|
|
359
|
+
"--mona-calendar-shadow": "var(--shadow-raised)";
|
|
360
|
+
"--mona-list-background": "var(--color-surface)";
|
|
361
|
+
"--mona-list-disabled-background": "var(--color-disabled-background)";
|
|
362
|
+
"--mona-list-group-background": "rgb(37 37 37 / 0.05)";
|
|
363
|
+
"--mona-list-group-border-width": "1px";
|
|
364
|
+
"--mona-list-group-font-weight": "650";
|
|
365
|
+
"--mona-menubar-background": "var(--mona-effect-control-background-color)";
|
|
366
|
+
"--mona-menubar-shadow": "var(--shadow-control)";
|
|
367
|
+
"--mona-pager-background": "var(--mona-effect-raised-background-color)";
|
|
368
|
+
"--mona-slider-handle-border-color": "var(--color-border-control)";
|
|
369
|
+
}>;
|
|
370
|
+
}>;
|
|
371
|
+
dark: Readonly<{
|
|
372
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
373
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
374
|
+
motion: Readonly<{
|
|
375
|
+
"--mona-motion-fast": "180ms";
|
|
376
|
+
"--mona-motion-standard": "320ms";
|
|
377
|
+
}>;
|
|
378
|
+
effects: Readonly<{
|
|
379
|
+
"--mona-effect-control-background-color": "rgb(37 37 39 / 0.74)";
|
|
380
|
+
"--mona-effect-control-fallback-background-color": "#252527";
|
|
381
|
+
"--mona-effect-control-background-image": "none";
|
|
382
|
+
"--mona-effect-control-backdrop-filter": "blur(16px) saturate(110%)";
|
|
383
|
+
"--mona-effect-raised-background-color": "rgb(32 32 34 / 0.78)";
|
|
384
|
+
"--mona-effect-raised-fallback-background-color": "#202022";
|
|
385
|
+
"--mona-effect-raised-background-image": "none";
|
|
386
|
+
"--mona-effect-raised-backdrop-filter": "blur(22px) saturate(112%)";
|
|
387
|
+
"--mona-effect-overlay-background-color": "rgb(38 38 40 / 0.74)";
|
|
388
|
+
"--mona-effect-overlay-fallback-background-color": "#262628";
|
|
389
|
+
"--mona-effect-overlay-background-image": "none";
|
|
390
|
+
"--mona-effect-overlay-backdrop-filter": "blur(28px) saturate(115%)";
|
|
391
|
+
}>;
|
|
392
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
393
|
+
custom: Readonly<{
|
|
394
|
+
"--mona-date-popup-calendar-backdrop-filter": "none";
|
|
395
|
+
"--mona-date-popup-calendar-background": "transparent";
|
|
396
|
+
"--mona-date-popup-calendar-background-image": "none";
|
|
397
|
+
"--mona-dropdown-popup-list-background": "transparent";
|
|
398
|
+
"--mona-input-addon-background": "color-mix(in srgb, var(--color-input-background), var(--color-foreground) 8%)";
|
|
399
|
+
"--mona-menubar-backdrop-filter": "var(--mona-effect-control-backdrop-filter)";
|
|
400
|
+
"--mona-menubar-background-image": "var(--mona-effect-control-background-image)";
|
|
401
|
+
}>;
|
|
402
|
+
components: Readonly<{
|
|
403
|
+
"--mona-calendar-background": "var(--mona-effect-raised-background-color)";
|
|
404
|
+
"--mona-calendar-shadow": "var(--shadow-raised)";
|
|
405
|
+
"--mona-list-background": "var(--color-surface)";
|
|
406
|
+
"--mona-list-disabled-background": "var(--color-disabled-background)";
|
|
407
|
+
"--mona-list-group-background": "rgb(255 255 255 / 0.04)";
|
|
408
|
+
"--mona-list-group-border-width": "1px";
|
|
409
|
+
"--mona-list-group-font-weight": "650";
|
|
410
|
+
"--mona-menubar-background": "var(--mona-effect-control-background-color)";
|
|
411
|
+
"--mona-menubar-shadow": "var(--shadow-control)";
|
|
412
|
+
"--mona-pager-background": "var(--mona-effect-raised-background-color)";
|
|
413
|
+
"--mona-slider-handle-border-color": "var(--color-border-control)";
|
|
414
|
+
}>;
|
|
415
|
+
}>;
|
|
416
|
+
};
|
|
417
|
+
}>;
|
|
418
|
+
|
|
419
|
+
declare const monaTheme: Readonly<{
|
|
420
|
+
name: string;
|
|
421
|
+
variants: {
|
|
422
|
+
light: Readonly<{
|
|
423
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
424
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
425
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
426
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
427
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
428
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
429
|
+
}>;
|
|
430
|
+
dark: Readonly<{
|
|
431
|
+
colors: Readonly<Record<`--color-${string}`, string>>;
|
|
432
|
+
components: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeComponentVariable, string>>;
|
|
433
|
+
effects: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeEffectVariable, string>>;
|
|
434
|
+
motion: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeMotionVariable, string>>;
|
|
435
|
+
shape: Readonly<Record<_nanahoshi_mona_ui_theme.ThemeShapeVariable, string>>;
|
|
436
|
+
shadows: Readonly<Record<`--shadow-${string}`, string>>;
|
|
437
|
+
}>;
|
|
438
|
+
};
|
|
439
|
+
}>;
|
|
440
|
+
|
|
118
441
|
/**
|
|
119
442
|
* Builds the sidebar's own colour roles. The sidebar is a persistent chrome region rather than page
|
|
120
443
|
* content, so it is given a surface of its own instead of borrowing the page's — which is what lets a
|
|
@@ -130,12 +453,66 @@ declare function createSidebarColorRoles(seeds: SidebarColorRoleSeeds): ThemeCol
|
|
|
130
453
|
declare function provideThemeFamily(registration: ThemeFamilyRegistration): EnvironmentProviders;
|
|
131
454
|
declare function provideThemeOverrides(registration: ThemeOverrideRegistration): EnvironmentProviders;
|
|
132
455
|
declare function provideThemeOptions(options: ThemeOptions): EnvironmentProviders;
|
|
456
|
+
/**
|
|
457
|
+
* Generates a light and a dark palette from the seeds, and applies whichever the theme has.
|
|
458
|
+
*/
|
|
133
459
|
declare function provideThemeColorPalette(registration: ThemeColorPaletteRegistration): EnvironmentProviders;
|
|
460
|
+
/**
|
|
461
|
+
* Applies the theme to an element in place of `<html>`, for an application embedded in part of a page. Overlays
|
|
462
|
+
* render outside any such element, so the overlay container gets the theme too. Each application has its own
|
|
463
|
+
* overlay container, so two embedded applications can have two themes.
|
|
464
|
+
* @param root the element, or a factory for it that runs in an injection context. It has to exist at startup.
|
|
465
|
+
*/
|
|
466
|
+
declare function provideThemeRoot(root: HTMLElement | (() => HTMLElement | null)): EnvironmentProviders;
|
|
467
|
+
/**
|
|
468
|
+
* Replaces where the theme is remembered, which is `localStorage` by default. Only used when
|
|
469
|
+
* `provideThemeOptions()` has a `persistKey`. Supply something the server can read too, such as a cookie, to have a
|
|
470
|
+
* server-rendered application render the remembered theme rather than correcting it on hydration.
|
|
471
|
+
* @param storage the storage, or a factory for it that runs in an injection context
|
|
472
|
+
*/
|
|
473
|
+
declare function provideThemeStorage(storage: ThemeStorage | (() => ThemeStorage)): EnvironmentProviders;
|
|
134
474
|
|
|
135
475
|
interface ThemeStrategy {
|
|
476
|
+
/** The registered themes and their variants, for `ThemeService.availableThemes()`. */
|
|
477
|
+
availableThemes?(): readonly ThemeAvailability[];
|
|
478
|
+
resolve(selection: ThemeSelection): ThemeProfile;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare class DefaultThemeStrategy implements ThemeStrategy {
|
|
482
|
+
#private;
|
|
483
|
+
constructor(registrations: readonly ThemeFamilyRegistration[], overrides: readonly ThemeOverrideRegistration[]);
|
|
484
|
+
availableThemes(): readonly ThemeAvailability[];
|
|
136
485
|
resolve(selection: ThemeSelection): ThemeProfile;
|
|
137
486
|
}
|
|
138
487
|
|
|
488
|
+
/**
|
|
489
|
+
* The default `ThemeStorage`: `localStorage`, as JSON, under the `persistKey`.
|
|
490
|
+
*
|
|
491
|
+
* Reads report `null` anywhere `localStorage` can't answer, and writes are dropped there. That covers the
|
|
492
|
+
* server, a browser that refuses it, and a full quota. `ThemeService` checks what comes back, so a value that
|
|
493
|
+
* isn't a preference, or names a theme that's gone, counts as nothing stored.
|
|
494
|
+
*
|
|
495
|
+
* A server-rendered application gets `initialTheme` in its markup and the remembered theme on hydration, which
|
|
496
|
+
* shows as a flash. Storage that the server can read too, such as a cookie, avoids it; supply it through
|
|
497
|
+
* `provideThemeStorage()`.
|
|
498
|
+
*/
|
|
499
|
+
declare class LocalStorageThemeStorage implements ThemeStorage {
|
|
500
|
+
#private;
|
|
501
|
+
/** Takes the value of `PLATFORM_ID`, which is a string in practice though typed loosely. */
|
|
502
|
+
constructor(platformId: string | object);
|
|
503
|
+
read(key: string): ThemePreference | null;
|
|
504
|
+
write(key: string, preference: ThemePreference): void;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* The element the theme is written to. Defaults to `<html>`. Replace it with `provideThemeRoot()`.
|
|
509
|
+
*/
|
|
510
|
+
declare const THEME_ROOT: InjectionToken<HTMLElement | null>;
|
|
511
|
+
/**
|
|
512
|
+
* Where the theme is remembered when `provideThemeOptions()` has a `persistKey`. Defaults to `localStorage`.
|
|
513
|
+
* Replace it with `provideThemeStorage()`.
|
|
514
|
+
*/
|
|
515
|
+
declare const THEME_STORAGE: InjectionToken<ThemeStorage>;
|
|
139
516
|
declare const THEME_STRATEGY: InjectionToken<ThemeStrategy>;
|
|
140
517
|
|
|
141
518
|
/**
|
|
@@ -144,5 +521,5 @@ declare const THEME_STRATEGY: InjectionToken<ThemeStrategy>;
|
|
|
144
521
|
*/
|
|
145
522
|
declare function generateThemeColorPalette(seeds: ThemeColorPaletteSeeds): GeneratedThemeColorPalette;
|
|
146
523
|
|
|
147
|
-
export { THEME_STRATEGY, ThemeService, createSidebarColorRoles, flattenThemeProfile, generateThemeColorPalette, provideThemeColorPalette, provideThemeFamily, provideThemeOptions, provideThemeOverrides };
|
|
148
|
-
export type { BuiltInThemeName, GeneratedThemeColorPalette, SidebarColorRoleSeeds, ThemeColorPaletteRegistration, ThemeColorPaletteSeeds, ThemeColorVariable, ThemeColors, ThemeComponentVariable, ThemeComponents, ThemeEffectLevel, ThemeEffectVariable, ThemeEffects, ThemeFamilyRegistration, ThemeFamilyVariants, ThemeMotion, ThemeMotionVariable, ThemeName, ThemeOptions, ThemeOverrideRegistration, ThemeProfile, ThemeProfileOverrides, ThemeSelection, ThemeShadowVariable, ThemeShadows, ThemeShape, ThemeShapeVariable, ThemeStrategy, ThemeVariable, ThemeVariables, ThemeVariant };
|
|
524
|
+
export { DefaultThemeStrategy, LocalStorageThemeStorage, THEME_ROOT, THEME_STORAGE, THEME_STRATEGY, ThemeService, annaTheme, builtInThemes, createSidebarColorRoles, flattenThemeProfile, generateThemeColorPalette, lunaTheme, monaTheme, provideThemeColorPalette, provideThemeFamily, provideThemeOptions, provideThemeOverrides, provideThemeRoot, provideThemeStorage };
|
|
525
|
+
export type { BuiltInThemeName, GeneratedThemeColorPalette, SidebarColorRoleSeeds, ThemeAvailability, ThemeColorPaletteRegistration, ThemeColorPaletteSeeds, ThemeColorVariable, ThemeColors, ThemeComponentVariable, ThemeComponents, ThemeEffectLevel, ThemeEffectVariable, ThemeEffects, ThemeFamilyRegistration, ThemeFamilyVariants, ThemeMotion, ThemeMotionVariable, ThemeName, ThemeOptions, ThemeOverrideRegistration, ThemePreference, ThemeProfile, ThemeProfileOverrides, ThemeSelection, ThemeShadowVariable, ThemeShadows, ThemeShape, ThemeShapeVariable, ThemeStorage, ThemeStrategy, ThemeVariable, ThemeVariables, ThemeVariant, ThemeVariantPreference };
|
|
@@ -25,6 +25,7 @@ type TimePickerVariantInput = Omit<TimePickerBaseVariantInput, "focused">;
|
|
|
25
25
|
declare class TimePickerComponent implements FormValueControl<Date | null>, TimePickerVariantInput {
|
|
26
26
|
#private;
|
|
27
27
|
protected readonly baseClass: Signal<string>;
|
|
28
|
+
protected readonly effectiveDisabled: Signal<boolean>;
|
|
28
29
|
protected readonly effectiveFormat: Signal<string>;
|
|
29
30
|
protected readonly effectiveHourFormat: Signal<HourFormat>;
|
|
30
31
|
protected readonly expanded: Signal<boolean>;
|
|
@@ -44,6 +44,7 @@ declare class TimeSelectorComponent implements FormValueControl<Date | null>, Ti
|
|
|
44
44
|
protected readonly baseClass: Signal<string>;
|
|
45
45
|
protected readonly computedPopupHeight: Signal<number>;
|
|
46
46
|
/** The clock in use: the `hourFormat` input, or the locale's own when it isn't set. */
|
|
47
|
+
protected readonly effectiveDisabled: Signal<boolean>;
|
|
47
48
|
protected readonly effectiveHourFormat: Signal<HourFormat>;
|
|
48
49
|
protected readonly focusedList: _angular_core.WritableSignal<TimeListType>;
|
|
49
50
|
protected readonly footerClass: Signal<string>;
|
|
@@ -68,6 +68,12 @@ declare class TooltipComponent implements TooltipVariantInputs {
|
|
|
68
68
|
|
|
69
69
|
declare class TooltipDirective implements TooltipVariantInputs {
|
|
70
70
|
#private;
|
|
71
|
+
/**
|
|
72
|
+
* @description Reads the tooltip's text from the matched element, in place of its `title`, which then stays where
|
|
73
|
+
* it is. An empty result shows nothing.
|
|
74
|
+
* @default null
|
|
75
|
+
*/
|
|
76
|
+
readonly contentOf: _angular_core.InputSignal<((element: HTMLElement) => string) | null>;
|
|
71
77
|
/**
|
|
72
78
|
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
|
|
73
79
|
* closes.
|
|
@@ -124,7 +130,7 @@ declare class TooltipDirective implements TooltipVariantInputs {
|
|
|
124
130
|
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
125
131
|
constructor();
|
|
126
132
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
127
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "monaTooltip": { "alias": "monaTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
|
|
133
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "contentOf": { "alias": "contentOf"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "monaTooltip": { "alias": "monaTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
|
|
128
134
|
}
|
|
129
135
|
|
|
130
136
|
/**
|