codexly-ui 0.14.3 → 0.14.4
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/fesm2022/codexly-ui.mjs +67 -19
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +15 -3
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -290,7 +290,7 @@ declare class ClxCardComponent {
|
|
|
290
290
|
* product-cart-style layout) regardless of variant/color. */
|
|
291
291
|
readonly border: _angular_core.InputSignal<boolean>;
|
|
292
292
|
/** Per-instance border-radius override — falls back to the theme's global borderRadius when unset. */
|
|
293
|
-
readonly radius: _angular_core.InputSignal<"sm" | "md" | "lg" | "
|
|
293
|
+
readonly radius: _angular_core.InputSignal<"sm" | "md" | "lg" | "none" | "xl" | "full" | undefined>;
|
|
294
294
|
/** Auto-generated header icon (Material Symbols name) — shown in a rounded primary-subtle
|
|
295
295
|
* square next to headerTitle. Ignored when a manual [clxCardHeader] block is projected. */
|
|
296
296
|
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
@@ -505,7 +505,7 @@ declare class ClxProgressBarComponent {
|
|
|
505
505
|
readonly variant: _angular_core.InputSignal<ClxProgressBarVariant>;
|
|
506
506
|
readonly label: _angular_core.InputSignal<string>;
|
|
507
507
|
readonly showValue: _angular_core.InputSignal<boolean>;
|
|
508
|
-
readonly valueFormat: _angular_core.InputSignal<"
|
|
508
|
+
readonly valueFormat: _angular_core.InputSignal<"value" | "percent" | "fraction">;
|
|
509
509
|
protected readonly _pct: _angular_core.Signal<number>;
|
|
510
510
|
protected readonly _pbSize: _angular_core.Signal<ClxProgressBarSize>;
|
|
511
511
|
protected readonly _trackH: _angular_core.Signal<string>;
|
|
@@ -1057,6 +1057,12 @@ declare class ClxNumberComponent implements ControlValueAccessor {
|
|
|
1057
1057
|
/** Disabled state for standalone use (without FormControl) */
|
|
1058
1058
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1059
1059
|
readonly _value: _angular_core.WritableSignal<number>;
|
|
1060
|
+
/** What the native input actually shows while the user is typing — kept separate from _value so
|
|
1061
|
+
* a trailing "." or "," (valid mid-edit, not yet a complete number) isn't stomped by re-rendering
|
|
1062
|
+
* the parsed numeric value on every keystroke; see _handleInput's own comment. Resynced from
|
|
1063
|
+
* _value only on programmatic changes (writeValue, the value() input, +/-, blur), never while the
|
|
1064
|
+
* user is actively typing a valid partial number. */
|
|
1065
|
+
readonly _displayText: _angular_core.WritableSignal<string>;
|
|
1060
1066
|
private readonly _cvaDisabled;
|
|
1061
1067
|
private readonly _cardDisabled;
|
|
1062
1068
|
private _cvaConnected;
|
|
@@ -1090,6 +1096,12 @@ declare class ClxNumberComponent implements ControlValueAccessor {
|
|
|
1090
1096
|
registerOnChange(fn: (v: number) => void): void;
|
|
1091
1097
|
registerOnTouched(fn: () => void): void;
|
|
1092
1098
|
setDisabledState(disabled: boolean): void;
|
|
1099
|
+
/** Allows only digits, a single decimal separator (. or ,) and a leading minus — anything else
|
|
1100
|
+
* typed (letters, a second dot, a stray minus mid-string) is dropped. This is the type="text"
|
|
1101
|
+
* replacement for the browser's own type="number" filtering, needed because the native one keys
|
|
1102
|
+
* off the BROWSER's locale for which decimal separator it accepts and silently rejects the other,
|
|
1103
|
+
* blocking that key outright for users whose input doesn't match. */
|
|
1104
|
+
private _sanitizeTyped;
|
|
1093
1105
|
protected _handleInput(event: Event): void;
|
|
1094
1106
|
protected _handleBlur(): void;
|
|
1095
1107
|
/** Number of decimal places implied by step() (e.g. 0.1 -> 1, 0.01 -> 2, 1 -> 0) — used to round
|
|
@@ -1938,7 +1950,7 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
|
|
|
1938
1950
|
protected readonly _color: _angular_core.Signal<ClxColorInput>;
|
|
1939
1951
|
readonly size: _angular_core.InputSignal<ClxEditorSize | undefined>;
|
|
1940
1952
|
protected readonly _editorSize: _angular_core.Signal<ClxEditorSize>;
|
|
1941
|
-
readonly status: _angular_core.InputSignal<"
|
|
1953
|
+
readonly status: _angular_core.InputSignal<"default" | "success" | "error">;
|
|
1942
1954
|
readonly statusMessage: _angular_core.InputSignal<string>;
|
|
1943
1955
|
readonly hint: _angular_core.InputSignal<string>;
|
|
1944
1956
|
readonly disabled: _angular_core.InputSignal<boolean>;
|