codexly-ui 0.6.11 → 0.6.13
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/assets/styles/_theme.css +6 -0
- package/fesm2022/codexly-ui.mjs +159 -39
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +112 -64
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Signal, InjectionToken, OnDestroy, ElementRef, AfterViewInit, AfterContentInit, OnInit, QueryList, TemplateRef,
|
|
2
|
+
import { Signal, InjectionToken, OnDestroy, ElementRef, AfterViewInit, AfterContentInit, OnInit, Provider, QueryList, TemplateRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
3
|
import * as codexly_ui from 'codexly-ui';
|
|
4
4
|
import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
|
|
5
5
|
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
@@ -240,11 +240,21 @@ declare class ClxCardComponent {
|
|
|
240
240
|
readonly shadow: _angular_core.InputSignal<ClxCardShadow | undefined>;
|
|
241
241
|
readonly hover: _angular_core.InputSignal<boolean>;
|
|
242
242
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
243
|
+
/** Auto-generated header icon (Material Symbols name) — shown in a rounded primary-subtle
|
|
244
|
+
* square next to headerTitle. Ignored when a manual [clxCardHeader] block is projected. */
|
|
245
|
+
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
246
|
+
/** Auto-generated header title — set this (without projecting [clxCardHeader]) to get the
|
|
247
|
+
* standard icon+title(+subtitle) card header used across the app, instead of hand-rolling it. */
|
|
248
|
+
readonly headerTitle: _angular_core.InputSignal<string | undefined>;
|
|
249
|
+
/** Optional secondary line under headerTitle. */
|
|
250
|
+
readonly headerSubtitle: _angular_core.InputSignal<string | undefined>;
|
|
243
251
|
protected readonly _color: _angular_core.Signal<ClxColorInput>;
|
|
244
252
|
private readonly _headerSlot;
|
|
253
|
+
private readonly _headerActionsSlot;
|
|
245
254
|
private readonly _bodySlot;
|
|
246
255
|
private readonly _footerSlot;
|
|
247
256
|
protected readonly _hasHeader: _angular_core.Signal<boolean>;
|
|
257
|
+
protected readonly _hasHeaderActions: _angular_core.Signal<boolean>;
|
|
248
258
|
protected readonly _hasBody: _angular_core.Signal<boolean>;
|
|
249
259
|
protected readonly _hasFooter: _angular_core.Signal<boolean>;
|
|
250
260
|
/** Blocks interaction only — applied to body/footer so the header (e.g. an enable/disable switch) stays clickable. */
|
|
@@ -253,7 +263,7 @@ declare class ClxCardComponent {
|
|
|
253
263
|
protected readonly _footerClass: _angular_core.Signal<string>;
|
|
254
264
|
protected readonly _hostClass: _angular_core.Signal<string>;
|
|
255
265
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxCardComponent, never>;
|
|
256
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxCardComponent, "clx-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "hover": { "alias": "hover"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_headerSlot", "_bodySlot", "_footerSlot"], ["[clxCardHeader]", "[clxCardBody]", "*", "[clxCardFooter]"], true, never>;
|
|
266
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxCardComponent, "clx-card", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "hover": { "alias": "hover"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "headerTitle": { "alias": "headerTitle"; "required": false; "isSignal": true; }; "headerSubtitle": { "alias": "headerSubtitle"; "required": false; "isSignal": true; }; }, {}, ["_headerSlot", "_headerActionsSlot", "_bodySlot", "_footerSlot"], ["[clxCardHeader]", "[clxCardHeaderActions]", "[clxCardBody]", "*", "[clxCardFooter]"], true, never>;
|
|
257
267
|
}
|
|
258
268
|
|
|
259
269
|
declare class ClxCardHeaderDirective {
|
|
@@ -261,6 +271,13 @@ declare class ClxCardHeaderDirective {
|
|
|
261
271
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClxCardHeaderDirective, "[clxCardHeader]", never, {}, {}, never, never, true, never>;
|
|
262
272
|
}
|
|
263
273
|
|
|
274
|
+
/** Optional trailing slot next to the auto-generated icon+title header (see ClxCardComponent's
|
|
275
|
+
* `icon`/`headerTitle` inputs) — for a button, badge or switch shown to the right of the title. */
|
|
276
|
+
declare class ClxCardHeaderActionsDirective {
|
|
277
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxCardHeaderActionsDirective, never>;
|
|
278
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClxCardHeaderActionsDirective, "[clxCardHeaderActions]", never, {}, {}, never, never, true, never>;
|
|
279
|
+
}
|
|
280
|
+
|
|
264
281
|
declare class ClxCardBodyDirective {
|
|
265
282
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxCardBodyDirective, never>;
|
|
266
283
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClxCardBodyDirective, "[clxCardBody]", never, {}, {}, never, never, true, never>;
|
|
@@ -1792,12 +1809,78 @@ declare class ClxBrandComponent {
|
|
|
1792
1809
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxBrandComponent, "clx-brand", never, { "logo": { "alias": "logo"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1793
1810
|
}
|
|
1794
1811
|
|
|
1812
|
+
type ClxFontFamily = 'Roboto' | 'Inter' | 'Poppins' | 'Plus Jakarta Sans' | 'Nunito' | 'DM Sans' | 'Geist' | 'Lato' | 'Montserrat' | 'Open Sans' | 'Work Sans' | 'Manrope' | 'Sora' | 'Outfit' | 'Rubik' | 'Source Sans 3' | 'Space Grotesk' | 'Merriweather' | 'Playfair Display' | 'Lora' | 'PT Serif' | 'Caveat' | 'Dancing Script' | 'Cinzel' | 'Berkshire Swash' | 'JetBrains Mono' | 'Orbitron' | 'UnifrakturMaguntia' | 'Pirata One' | 'Press Start 2P' | 'Bungee';
|
|
1813
|
+
interface ClxFontOption {
|
|
1814
|
+
label: string;
|
|
1815
|
+
value: ClxFontFamily;
|
|
1816
|
+
googleUrl: string;
|
|
1817
|
+
}
|
|
1818
|
+
declare const CLX_FONT_CATALOG: ClxFontOption[];
|
|
1819
|
+
interface ClxNavZoneStyle {
|
|
1820
|
+
color?: ClxColorInput;
|
|
1821
|
+
size?: Extract<ClxSize, 'xs' | 'sm' | 'md'>;
|
|
1822
|
+
/** Which theme weight token this zone reads — 'label' (lighter) or 'emphasis' (heavier) */
|
|
1823
|
+
weight?: 'label' | 'emphasis';
|
|
1824
|
+
}
|
|
1825
|
+
interface ClxThemeConfig {
|
|
1826
|
+
/** Default accent color for all components (buttons, inputs, checkboxes…) */
|
|
1827
|
+
primaryColor: ClxColorInput;
|
|
1828
|
+
/** Color used for secondary actions (cancel, close buttons) */
|
|
1829
|
+
secondaryColor: ClxColorInput;
|
|
1830
|
+
/** Color used for destructive actions and error states */
|
|
1831
|
+
dangerColor: ClxColorInput;
|
|
1832
|
+
/** Color used for success confirmations */
|
|
1833
|
+
successColor: ClxColorInput;
|
|
1834
|
+
/** Color used for warnings */
|
|
1835
|
+
warningColor: ClxColorInput;
|
|
1836
|
+
/** Neutral color for surfaces, nav idle states */
|
|
1837
|
+
neutralColor: ClxColorInput;
|
|
1838
|
+
/** Base text color applied across the app */
|
|
1839
|
+
textColor: ClxColorInput;
|
|
1840
|
+
/** Sidebar nav-group label style override — falls back to neutralColor/xs/label when unset */
|
|
1841
|
+
sidebarGroup?: ClxNavZoneStyle;
|
|
1842
|
+
/** Sidebar top-level menu style override — falls back to primaryColor/sm/emphasis when unset */
|
|
1843
|
+
sidebarMenu?: ClxNavZoneStyle;
|
|
1844
|
+
/** Sidebar menu-item style override — falls back to primaryColor/sm/label when unset */
|
|
1845
|
+
sidebarItem?: ClxNavZoneStyle;
|
|
1846
|
+
/** Default border-radius style applied to all components */
|
|
1847
|
+
borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1848
|
+
/** Default size for all form/interactive components */
|
|
1849
|
+
defaultSize: Extract<ClxSize, 'sm' | 'md' | 'lg'>;
|
|
1850
|
+
/** Default shape for buttons, badges, tags */
|
|
1851
|
+
defaultShape: Extract<ClxShape, 'rounded' | 'pill'>;
|
|
1852
|
+
/** Body font family — must be one of CLX_FONT_CATALOG values */
|
|
1853
|
+
fontFamily: ClxFontFamily;
|
|
1854
|
+
/** Overall type-weight intensity — shifts both label and emphasis weights together */
|
|
1855
|
+
fontWeight: ClxFontWeightIntensity;
|
|
1856
|
+
}
|
|
1857
|
+
type ClxFontWeightIntensity = 'light' | 'normal' | 'bold';
|
|
1858
|
+
interface ClxFontWeightPair {
|
|
1859
|
+
label: number;
|
|
1860
|
+
emphasis: number;
|
|
1861
|
+
}
|
|
1862
|
+
declare const CLX_FONT_WEIGHT_MAP: Record<ClxFontWeightIntensity, ClxFontWeightPair>;
|
|
1863
|
+
declare const CLX_RADIUS_MAP: Record<ClxThemeConfig['borderRadius'], string>;
|
|
1864
|
+
/** Returns the Tailwind class for a form-control radius */
|
|
1865
|
+
declare function resolveRadius(r: ClxThemeConfig['borderRadius']): string;
|
|
1866
|
+
/** Returns the Tailwind class for a surface/container radius (card, panel, dropzone) */
|
|
1867
|
+
declare function resolveContainerRadius(r: ClxThemeConfig['borderRadius']): string;
|
|
1868
|
+
declare const CLX_THEME_DEFAULTS: ClxThemeConfig;
|
|
1869
|
+
declare const CLX_THEME_CONFIG: InjectionToken<ClxThemeConfig>;
|
|
1870
|
+
declare function provideCodexlyTheme(config: Partial<ClxThemeConfig>): Provider;
|
|
1871
|
+
|
|
1795
1872
|
declare class ClxMenuComponent implements AfterViewInit {
|
|
1796
1873
|
private readonly _themeSvc;
|
|
1797
1874
|
readonly label: _angular_core.InputSignal<string>;
|
|
1798
1875
|
readonly icon: _angular_core.InputSignal<string>;
|
|
1799
|
-
|
|
1800
|
-
|
|
1876
|
+
/** Per-instance override — any field left unset falls back to the theme's sidebarMenu style */
|
|
1877
|
+
readonly style: _angular_core.InputSignal<ClxNavZoneStyle | undefined>;
|
|
1878
|
+
protected readonly _resolved: _angular_core.Signal<{
|
|
1879
|
+
color: codexly_ui.ClxColorInput;
|
|
1880
|
+
size: "xs" | "sm" | "md";
|
|
1881
|
+
weight: "label" | "emphasis";
|
|
1882
|
+
}>;
|
|
1883
|
+
protected readonly _color: _angular_core.Signal<codexly_ui.ClxColorInput>;
|
|
1801
1884
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
1802
1885
|
readonly active: _angular_core.InputSignal<boolean>;
|
|
1803
1886
|
readonly routerLink: _angular_core.InputSignal<string | any[]>;
|
|
@@ -1816,7 +1899,7 @@ declare class ClxMenuComponent implements AfterViewInit {
|
|
|
1816
1899
|
protected readonly NAV_CHILDREN_LIST = "ml-6 py-1 space-y-0.5";
|
|
1817
1900
|
protected _toggle(): void;
|
|
1818
1901
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxMenuComponent, never>;
|
|
1819
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxMenuComponent, "clx-menu", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "
|
|
1902
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxMenuComponent, "clx-menu", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
1820
1903
|
}
|
|
1821
1904
|
|
|
1822
1905
|
declare class ClxMenuItemComponent {
|
|
@@ -1824,7 +1907,8 @@ declare class ClxMenuItemComponent {
|
|
|
1824
1907
|
readonly label: _angular_core.InputSignal<string>;
|
|
1825
1908
|
readonly icon: _angular_core.InputSignal<string>;
|
|
1826
1909
|
readonly active: _angular_core.InputSignal<boolean>;
|
|
1827
|
-
|
|
1910
|
+
/** Per-instance override — any field left unset falls back to the theme's sidebarItem style */
|
|
1911
|
+
readonly style: _angular_core.InputSignal<ClxNavZoneStyle | undefined>;
|
|
1828
1912
|
readonly nested: _angular_core.InputSignal<boolean>;
|
|
1829
1913
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
1830
1914
|
readonly routerLink: _angular_core.InputSignal<string | any[]>;
|
|
@@ -1832,22 +1916,25 @@ declare class ClxMenuItemComponent {
|
|
|
1832
1916
|
exact: boolean;
|
|
1833
1917
|
}>;
|
|
1834
1918
|
readonly itemClick: _angular_core.OutputEmitterRef<void>;
|
|
1835
|
-
private readonly
|
|
1919
|
+
private readonly _resolved;
|
|
1836
1920
|
private readonly _geom;
|
|
1837
1921
|
protected readonly _iconCls: _angular_core.Signal<string>;
|
|
1838
1922
|
protected readonly _idleCls: _angular_core.Signal<string>;
|
|
1839
1923
|
protected readonly _activeCls: _angular_core.Signal<string>;
|
|
1840
1924
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxMenuItemComponent, never>;
|
|
1841
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxMenuItemComponent, "clx-menu-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "
|
|
1925
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxMenuItemComponent, "clx-menu-item", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "nested": { "alias": "nested"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
1842
1926
|
}
|
|
1843
1927
|
|
|
1844
1928
|
declare class ClxNavGroupComponent {
|
|
1929
|
+
private readonly _themeSvc;
|
|
1845
1930
|
readonly label: _angular_core.InputSignal<string>;
|
|
1846
1931
|
readonly collapsed: _angular_core.InputSignal<boolean>;
|
|
1847
|
-
|
|
1932
|
+
/** Per-instance override — any field left unset falls back to the theme's sidebarGroup style */
|
|
1933
|
+
readonly style: _angular_core.InputSignal<ClxNavZoneStyle | undefined>;
|
|
1934
|
+
private readonly _resolved;
|
|
1848
1935
|
readonly labelClass: _angular_core.Signal<string>;
|
|
1849
1936
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxNavGroupComponent, never>;
|
|
1850
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxNavGroupComponent, "clx-nav-group", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "
|
|
1937
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxNavGroupComponent, "clx-nav-group", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1851
1938
|
}
|
|
1852
1939
|
|
|
1853
1940
|
interface ClxProfileMenuItem {
|
|
@@ -2942,52 +3029,6 @@ declare class ClxCartSummaryDrawer {
|
|
|
2942
3029
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxCartSummaryDrawer, "clx-cart-summary-drawer", never, {}, {}, never, never, true, never>;
|
|
2943
3030
|
}
|
|
2944
3031
|
|
|
2945
|
-
type ClxFontFamily = 'Roboto' | 'Inter' | 'Poppins' | 'Plus Jakarta Sans' | 'Nunito' | 'DM Sans' | 'Geist' | 'Lato' | 'Montserrat' | 'Open Sans' | 'Work Sans' | 'Manrope' | 'Sora' | 'Outfit' | 'Rubik' | 'Source Sans 3' | 'Space Grotesk' | 'Merriweather' | 'Playfair Display' | 'Lora' | 'PT Serif' | 'Caveat' | 'Dancing Script' | 'Cinzel' | 'Berkshire Swash' | 'JetBrains Mono' | 'Orbitron' | 'UnifrakturMaguntia' | 'Pirata One' | 'Press Start 2P' | 'Bungee';
|
|
2946
|
-
interface ClxFontOption {
|
|
2947
|
-
label: string;
|
|
2948
|
-
value: ClxFontFamily;
|
|
2949
|
-
googleUrl: string;
|
|
2950
|
-
}
|
|
2951
|
-
declare const CLX_FONT_CATALOG: ClxFontOption[];
|
|
2952
|
-
interface ClxThemeConfig {
|
|
2953
|
-
/** Default accent color for all components (buttons, inputs, checkboxes…) */
|
|
2954
|
-
primaryColor: ClxColorInput;
|
|
2955
|
-
/** Color used for secondary actions (cancel, close buttons) */
|
|
2956
|
-
secondaryColor: ClxColorInput;
|
|
2957
|
-
/** Color used for destructive actions and error states */
|
|
2958
|
-
dangerColor: ClxColorInput;
|
|
2959
|
-
/** Color used for success confirmations */
|
|
2960
|
-
successColor: ClxColorInput;
|
|
2961
|
-
/** Color used for warnings */
|
|
2962
|
-
warningColor: ClxColorInput;
|
|
2963
|
-
/** Neutral color for surfaces, nav idle states */
|
|
2964
|
-
neutralColor: ClxColorInput;
|
|
2965
|
-
/** Base text color applied across the app */
|
|
2966
|
-
textColor: ClxColorInput;
|
|
2967
|
-
/** Sidebar nav-group label color override — falls back to neutralColor when unset */
|
|
2968
|
-
sidebarGroupColor?: ClxColorInput;
|
|
2969
|
-
/** Sidebar top-level menu color override — falls back to primaryColor when unset */
|
|
2970
|
-
sidebarMenuColor?: ClxColorInput;
|
|
2971
|
-
/** Sidebar menu-item color override — falls back to primaryColor when unset */
|
|
2972
|
-
sidebarItemColor?: ClxColorInput;
|
|
2973
|
-
/** Default border-radius style applied to all components */
|
|
2974
|
-
borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
2975
|
-
/** Default size for all form/interactive components */
|
|
2976
|
-
defaultSize: Extract<ClxSize, 'sm' | 'md' | 'lg'>;
|
|
2977
|
-
/** Default shape for buttons, badges, tags */
|
|
2978
|
-
defaultShape: Extract<ClxShape, 'rounded' | 'pill'>;
|
|
2979
|
-
/** Body font family — must be one of CLX_FONT_CATALOG values */
|
|
2980
|
-
fontFamily: ClxFontFamily;
|
|
2981
|
-
}
|
|
2982
|
-
declare const CLX_RADIUS_MAP: Record<ClxThemeConfig['borderRadius'], string>;
|
|
2983
|
-
/** Returns the Tailwind class for a form-control radius */
|
|
2984
|
-
declare function resolveRadius(r: ClxThemeConfig['borderRadius']): string;
|
|
2985
|
-
/** Returns the Tailwind class for a surface/container radius (card, panel, dropzone) */
|
|
2986
|
-
declare function resolveContainerRadius(r: ClxThemeConfig['borderRadius']): string;
|
|
2987
|
-
declare const CLX_THEME_DEFAULTS: ClxThemeConfig;
|
|
2988
|
-
declare const CLX_THEME_CONFIG: InjectionToken<ClxThemeConfig>;
|
|
2989
|
-
declare function provideCodexlyTheme(config: Partial<ClxThemeConfig>): Provider;
|
|
2990
|
-
|
|
2991
3032
|
declare const CLX_TEXT_LABEL = "text-clx-text-label";
|
|
2992
3033
|
declare const CLX_TEXT_HINT = "text-clx-text-subtle";
|
|
2993
3034
|
declare const CLX_TEXT_DISABLED = "text-clx-text-subtle";
|
|
@@ -3083,6 +3124,11 @@ declare class ClxAnimateGroupDirective {
|
|
|
3083
3124
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClxAnimateGroupDirective, "[clxAnimateGroup]", ["clxAnimateGroup"], { "stagger": { "alias": "stagger"; "required": false; "isSignal": true; }; }, {}, ["children"], never, true, never>;
|
|
3084
3125
|
}
|
|
3085
3126
|
|
|
3127
|
+
interface ClxResolvedNavZoneStyle {
|
|
3128
|
+
color: ClxColorInput;
|
|
3129
|
+
size: Extract<ClxSize, 'xs' | 'sm' | 'md'>;
|
|
3130
|
+
weight: 'label' | 'emphasis';
|
|
3131
|
+
}
|
|
3086
3132
|
type ClxThemeMode = 'light' | 'dark' | 'system';
|
|
3087
3133
|
declare class ClxThemeService {
|
|
3088
3134
|
private readonly _isBrowser;
|
|
@@ -3093,12 +3139,13 @@ declare class ClxThemeService {
|
|
|
3093
3139
|
readonly mode: _angular_core.Signal<ClxThemeMode>;
|
|
3094
3140
|
readonly config: _angular_core.Signal<ClxThemeConfig>;
|
|
3095
3141
|
readonly isDark: _angular_core.Signal<boolean>;
|
|
3096
|
-
/**
|
|
3097
|
-
readonly
|
|
3098
|
-
/**
|
|
3099
|
-
readonly
|
|
3100
|
-
/**
|
|
3101
|
-
readonly
|
|
3142
|
+
/** Resolved style for clx-nav-group labels — falls back to neutralColor/xs/label */
|
|
3143
|
+
readonly sidebarGroupStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3144
|
+
/** Resolved style for top-level clx-menu — falls back to primaryColor/sm/emphasis */
|
|
3145
|
+
readonly sidebarMenuStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3146
|
+
/** Resolved style for clx-menu-item — falls back to primaryColor/sm/label */
|
|
3147
|
+
readonly sidebarItemStyle: _angular_core.Signal<ClxResolvedNavZoneStyle>;
|
|
3148
|
+
private _resolveNavZoneStyle;
|
|
3102
3149
|
constructor();
|
|
3103
3150
|
setMode(mode: ClxThemeMode): void;
|
|
3104
3151
|
setConfig(patch: Partial<ClxThemeConfig>): void;
|
|
@@ -3106,6 +3153,7 @@ declare class ClxThemeService {
|
|
|
3106
3153
|
private _applyColorVar;
|
|
3107
3154
|
private _applyTextColor;
|
|
3108
3155
|
private _applyFont;
|
|
3156
|
+
private _applyFontWeight;
|
|
3109
3157
|
private _loadMode;
|
|
3110
3158
|
private _getSystemDark;
|
|
3111
3159
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxThemeService, never>;
|
|
@@ -3194,5 +3242,5 @@ declare class ClxToastService {
|
|
|
3194
3242
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ClxToastService>;
|
|
3195
3243
|
}
|
|
3196
3244
|
|
|
3197
|
-
export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
|
|
3198
|
-
export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption, ClxInputSize, ClxInputStatus, ClxInputType, ClxListItem, ClxListSize, ClxListVariant, ClxModalButtonOptions, ClxModalConfig, ClxModalRef, ClxModalSize, ClxNumberSize, ClxNumberVariant, ClxPageChangeEvent, ClxPageSizeChangeEvent, ClxPaginationSize, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxReview, ClxRippleItem, ClxSelectOption, ClxSelectSize, ClxShade, ClxShape, ClxSize, ClxSkeletonVariant, ClxSliderSize, ClxSpecOption, ClxSpecType, ClxSpinnerColor, ClxSpinnerVariant, ClxStatMetric, ClxStepperOrientation, ClxStepperSize, ClxStepperStatus, ClxStepperStep, ClxTabItem, ClxTableColumn, ClxTablePageEvent, ClxTableSelectionEvent, ClxTableSort, ClxTableSortEvent, ClxTagShape, ClxTagSize, ClxTagVariant, ClxTextareaResize, ClxTextareaSize, ClxTextareaStatus, ClxThemeConfig, ClxThemeMode, ClxTimelineLineStyle, ClxTimelineMode, ClxTimelineSize, ClxTimepickerSize, ClxTimepickerStatus, ClxToastAction, ClxToastEntry, ClxToastOptions, ClxToastPosition, ClxToastType, ClxTooltipPosition, ClxTooltipSize, ClxTreeExpandEvent, ClxTreeNode, ClxTreeSelectEvent, ClxTreeSize, ClxTreeVariant, ClxTrendDirection, ClxUploadError, ClxUploadItemAction, ClxUploadItemActionResolver, ClxUploadPreviewItem, ClxUploadSize, ClxVariation, ClxWishlistItem, ClxWishlistPageChangeEvent, ClxWizardColor, ClxWizardOrientation, ClxWizardStepStatus, SparkPoint };
|
|
3245
|
+
export { CLX_ADDON_BORDER, CLX_ADDON_TEXT, CLX_ALERT_OPTIONS, CLX_ALERT_RESOLVE, CLX_BG_ADDON, CLX_BG_DISABLED, CLX_BG_ICON_WRAP, CLX_BG_SECTION, CLX_BG_SURFACE, CLX_BORDER_DEFAULT, CLX_BORDER_DISABLED, CLX_BORDER_MEDIUM, CLX_COLOR_HEX, CLX_COLOR_HEX_100, CLX_COLOR_MAP, CLX_FONT_CATALOG, CLX_FONT_WEIGHT_MAP, CLX_MODAL_ANIM_CONFIG, CLX_MODAL_DATA, CLX_MODAL_REF, CLX_OPTION_DISABLED, CLX_PLACEHOLDER, CLX_RADIO_GROUP, CLX_RADIUS_MAP, CLX_TEXT_BODY, CLX_TEXT_DISABLED, CLX_TEXT_HEADING, CLX_TEXT_HINT, CLX_TEXT_IDLE, CLX_TEXT_INPUT, CLX_TEXT_LABEL, CLX_TEXT_OPTION, CLX_TEXT_SUBTITLE, CLX_TEXT_TITLE, CLX_THEME_CONFIG, CLX_THEME_DEFAULTS, CLX_TOAST_DEFAULTS, ClxAlertComponent, ClxAlertService, ClxAnimateDirective, ClxAnimateGroupDirective, ClxAnimateService, ClxAppLayoutComponent, ClxAvatarComponent, ClxBadgeComponent, ClxBrandComponent, ClxButtonComponent, ClxButtonGroupComponent, ClxCardBodyDirective, ClxCardComponent, ClxCardFooterDirective, ClxCardHeaderActionsDirective, ClxCardHeaderDirective, ClxCarouselComponent, ClxCarouselDirective, ClxCartComponent, ClxCartSummaryDrawer, ClxCellDirective, ClxCheckboxComponent, ClxColorPickerComponent, ClxColumnDefDirective, ClxDateRangePickerComponent, ClxDatepickerComponent, ClxDrawerComponent, ClxDrawerService, ClxEditorComponent, ClxEditorLinkModalComponent, ClxFabComponent, ClxFilterPanelComponent, ClxHeaderCellDirective, ClxIconComponent, ClxInputComponent, ClxListComponent, ClxListItemComponent, ClxMenuComponent, ClxMenuItemComponent, ClxModalComponent, ClxModalService, ClxNavGroupComponent, ClxNumberComponent, ClxPageEmptyComponent, ClxPageNotFoundComponent, ClxPageServerErrorComponent, ClxPageUnauthorizedComponent, ClxPaginationComponent, ClxProductComponent, ClxProductDetailComponent, ClxProfileComponent, ClxProgressBarComponent, ClxRadioComponent, ClxRadioGroupComponent, ClxRatingComponent, ClxSelectComponent, ClxSkeletonComponent, ClxSliderComponent, ClxSpinnerComponent, ClxStatCardComponent, ClxStepComponent, ClxStepperComponent, ClxSwitchComponent, ClxTabDirective, ClxTableComponent, ClxTabsComponent, ClxTagComponent, ClxTextareaComponent, ClxThemeService, ClxTimelineComponent, ClxTimelineItemComponent, ClxTimepickerComponent, ClxToastComponent, ClxToastContainerComponent, ClxToastService, ClxTooltipComponent, ClxTooltipDirective, ClxTreeComponent, ClxUploadComponent, ClxWishlistComponent, ClxWizardComponent, TIMEPICKER_SIZE_MAP, parseColorInput, provideCodexlyTheme, resolveColor, resolveContainerRadius, resolveRadius };
|
|
3246
|
+
export type { ClxAlertButtonOptions, ClxAlertOptions, ClxAlertResult, ClxAlertType, ClxAnimateAttentionSeeker, ClxAnimateBackEntrance, ClxAnimateBackExit, ClxAnimateBouncingEntrance, ClxAnimateBouncingExit, ClxAnimateConfig, ClxAnimateDefaults, ClxAnimateEvent, ClxAnimateFadingEntrance, ClxAnimateFadingExit, ClxAnimateFlipper, ClxAnimateLightspeed, ClxAnimateName, ClxAnimateRotatingEntrance, ClxAnimateRotatingExit, ClxAnimateSlidingEntrance, ClxAnimateSlidingExit, ClxAnimateSpecial, ClxAnimateTrigger, ClxAnimateZoomingEntrance, ClxAnimateZoomingExit, ClxAvatarContentType, ClxBadgeVariant, ClxButtonColor, ClxButtonGroupShape, ClxButtonVariant, ClxCardPadding, ClxCardShadow, ClxCardVariant, ClxCarouselAspectRatio, ClxCarouselConfig, ClxCartItem, ClxCartSummaryData, ClxCellContext, ClxCheckboxVariant, ClxColor, ClxColorInput, ClxColorPickerFormat, ClxColorPickerSize, ClxColorResolved, ClxColorTokens, ClxCouponResult, ClxDateRange, ClxDateRangePickerSize, ClxDateRangePickerStatus, ClxDatepickerSize, ClxDatepickerStatus, ClxDrawerButtonOptions, ClxDrawerConfig, ClxDrawerRef, ClxDrawerSize, ClxEditorSize, ClxEditorTool, ClxEditorToolbarGroup, ClxExistingFile, ClxFabItem, ClxFabPosition, ClxFilterChangeEvent, ClxFilterField, ClxFilterFieldType, ClxFilterOption, ClxFilterValue, ClxFilterValues, ClxFontFamily, ClxFontOption, ClxFontWeightIntensity, ClxFontWeightPair, ClxInputSize, ClxInputStatus, ClxInputType, ClxListItem, ClxListSize, ClxListVariant, ClxModalButtonOptions, ClxModalConfig, ClxModalRef, ClxModalSize, ClxNavZoneStyle, ClxNumberSize, ClxNumberVariant, ClxPageChangeEvent, ClxPageSizeChangeEvent, ClxPaginationSize, ClxProduct, ClxProductDescription, ClxProductDetailData, ClxProductLayout, ClxProductSize, ClxProductSpec, ClxProfileMenuItem, ClxProgressBarSize, ClxProgressBarVariant, ClxRadioVariant, ClxResolvedNavZoneStyle, ClxReview, ClxRippleItem, ClxSelectOption, ClxSelectSize, ClxShade, ClxShape, ClxSize, ClxSkeletonVariant, ClxSliderSize, ClxSpecOption, ClxSpecType, ClxSpinnerColor, ClxSpinnerVariant, ClxStatMetric, ClxStepperOrientation, ClxStepperSize, ClxStepperStatus, ClxStepperStep, ClxTabItem, ClxTableColumn, ClxTablePageEvent, ClxTableSelectionEvent, ClxTableSort, ClxTableSortEvent, ClxTagShape, ClxTagSize, ClxTagVariant, ClxTextareaResize, ClxTextareaSize, ClxTextareaStatus, ClxThemeConfig, ClxThemeMode, ClxTimelineLineStyle, ClxTimelineMode, ClxTimelineSize, ClxTimepickerSize, ClxTimepickerStatus, ClxToastAction, ClxToastEntry, ClxToastOptions, ClxToastPosition, ClxToastType, ClxTooltipPosition, ClxTooltipSize, ClxTreeExpandEvent, ClxTreeNode, ClxTreeSelectEvent, ClxTreeSize, ClxTreeVariant, ClxTrendDirection, ClxUploadError, ClxUploadItemAction, ClxUploadItemActionResolver, ClxUploadPreviewItem, ClxUploadSize, ClxVariation, ClxWishlistItem, ClxWishlistPageChangeEvent, ClxWizardColor, ClxWizardOrientation, ClxWizardStepStatus, SparkPoint };
|