@zambon-dev/ui 1.11.0 → 1.11.1
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/CHANGELOG.md +48 -1
- package/fesm2022/zambon-dev-ui-framework.mjs +6 -4
- package/fesm2022/zambon-dev-ui-framework.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-library.mjs +121 -37
- package/fesm2022/zambon-dev-ui-library.mjs.map +1 -1
- package/fesm2022/zambon-dev-ui-shared.mjs +1 -0
- package/fesm2022/zambon-dev-ui-shared.mjs.map +1 -1
- package/i18n/framework/en.json +1 -0
- package/i18n/framework/pt.json +1 -0
- package/package.json +1 -1
- package/types/zambon-dev-ui-library.d.ts +51 -0
package/i18n/framework/en.json
CHANGED
package/i18n/framework/pt.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zambon-dev/ui",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "Angular 22 component library and application shell: form controls, a virtual-scroll data grid, modals, ribbon, sidebar, tabbed navigation, view base classes and authentication layouts, themed with Tailwind CSS 4 tokens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -269,6 +269,11 @@ export type GridConfigs = {
|
|
|
269
269
|
/** How tightly a data grid sets its rows. See `DataGridConfigs.density`. */
|
|
270
270
|
export type DataGridDensity = 'comfortable' | 'compact';
|
|
271
271
|
export type DataGridConfigs = GridConfigs & {
|
|
272
|
+
/**
|
|
273
|
+
* Hidden header text for an `actions` column whose `headerName` is empty, so screen readers can
|
|
274
|
+
* name the column. A translation key or plain text. Defaults to `Actions`.
|
|
275
|
+
*/
|
|
276
|
+
actionsColumnText?: string;
|
|
272
277
|
/**
|
|
273
278
|
* How tightly the grid sets its rows. `compact` uses 32px rows and tighter cell padding, for
|
|
274
279
|
* dense screens. A `rowHeight` other than the default 41.6px still wins, in either density.
|
|
@@ -771,6 +776,8 @@ export declare class CatalogSelectComponent extends BaseComponent implements OnI
|
|
|
771
776
|
protected get formDisplayControlName(): string;
|
|
772
777
|
protected get isInvalid(): boolean;
|
|
773
778
|
protected get isTouched(): boolean;
|
|
779
|
+
/** Shared by the field's label and its input, which this component renders in its own template. */
|
|
780
|
+
protected get inputId(): string;
|
|
774
781
|
protected get listboxId(): string;
|
|
775
782
|
/**
|
|
776
783
|
* Whether the button that empties the field is offered.
|
|
@@ -1415,6 +1422,8 @@ export declare class DataGridComponent extends BaseComponent implements OnInit,
|
|
|
1415
1422
|
protected get allRowsSelected(): boolean;
|
|
1416
1423
|
/** Whether some, but not all, loaded rows are selected: the select-all checkbox is indeterminate. */
|
|
1417
1424
|
protected get someRowsSelected(): boolean;
|
|
1425
|
+
/** Names an `actions` column that has no heading of its own, for screen readers only. */
|
|
1426
|
+
protected get actionsColumnText(): string;
|
|
1418
1427
|
protected get selectAllText(): string;
|
|
1419
1428
|
protected get selectionColWidth(): string;
|
|
1420
1429
|
/**
|
|
@@ -1783,6 +1792,8 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
1783
1792
|
readonly invalid: InputSignal<boolean>;
|
|
1784
1793
|
/** Accessible name of the date text field, when no visible label names it. Defaults to none. */
|
|
1785
1794
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
1795
|
+
/** `id` of the text field, so a `<label for>` can name it. `lib-form-input` sets it for its group's label. No `id` by default. */
|
|
1796
|
+
readonly inputId: InputSignal<string | undefined>;
|
|
1786
1797
|
/** Emits when a text field of the input loses focus. */
|
|
1787
1798
|
readonly blurred: OutputEmitterRef<void>;
|
|
1788
1799
|
/** Emits when a text field of the input gains focus. */
|
|
@@ -1886,6 +1897,11 @@ export declare class DateInputComponent implements ControlValueAccessor, Validat
|
|
|
1886
1897
|
"required": false;
|
|
1887
1898
|
"isSignal": true;
|
|
1888
1899
|
};
|
|
1900
|
+
"inputId": {
|
|
1901
|
+
"alias": "inputId";
|
|
1902
|
+
"required": false;
|
|
1903
|
+
"isSignal": true;
|
|
1904
|
+
};
|
|
1889
1905
|
}, {
|
|
1890
1906
|
"blurred": "blurred";
|
|
1891
1907
|
"focused": "focused";
|
|
@@ -1909,6 +1925,11 @@ export declare class FormInputComponent extends BaseComponent implements OnInit
|
|
|
1909
1925
|
readonly disabledControlName: InputSignal<string | undefined>;
|
|
1910
1926
|
/** Styles a read-only input like a disabled one. Defaults to `true`. */
|
|
1911
1927
|
readonly displayReadOnlyAsDisabled: InputSignal<boolean>;
|
|
1928
|
+
/**
|
|
1929
|
+
* `id` of the native input or textarea, so a `<label for>` can name it. `lib-form-input-group`
|
|
1930
|
+
* sets it for its own label. No `id` by default.
|
|
1931
|
+
*/
|
|
1932
|
+
readonly inputId: InputSignal<string | undefined>;
|
|
1912
1933
|
/** Shows the field in its error style. Defaults to `false`. */
|
|
1913
1934
|
readonly invalid: InputSignal<boolean>;
|
|
1914
1935
|
/** Disables the input when it shows `fixedValue` (no `controlName`). Has no effect on a form control. Defaults to `true`. */
|
|
@@ -2027,6 +2048,11 @@ export declare class FormInputComponent extends BaseComponent implements OnInit
|
|
|
2027
2048
|
"required": false;
|
|
2028
2049
|
"isSignal": true;
|
|
2029
2050
|
};
|
|
2051
|
+
"inputId": {
|
|
2052
|
+
"alias": "inputId";
|
|
2053
|
+
"required": false;
|
|
2054
|
+
"isSignal": true;
|
|
2055
|
+
};
|
|
2030
2056
|
"invalid": {
|
|
2031
2057
|
"alias": "invalid";
|
|
2032
2058
|
"required": false;
|
|
@@ -2110,6 +2136,11 @@ export declare class FormInputGroupComponent extends BaseComponent implements On
|
|
|
2110
2136
|
readonly fixedValue: InputSignal<any>;
|
|
2111
2137
|
/** Display format passed to the inner `lib-form-input`: a date pattern or a number digits string. */
|
|
2112
2138
|
readonly format: InputSignal<string | undefined>;
|
|
2139
|
+
/**
|
|
2140
|
+
* `id` of the native input, which the label names with `for`. Defaults to a generated id. A
|
|
2141
|
+
* custom `template` must put this id on its own input for the label to name it.
|
|
2142
|
+
*/
|
|
2143
|
+
readonly inputId: InputSignal<string | undefined>;
|
|
2113
2144
|
/** Text of the label, as a translation key. Defaults to empty. */
|
|
2114
2145
|
readonly label: InputSignal<string>;
|
|
2115
2146
|
/** Passed to the inner `lib-form-input`; disables it only when it shows a fixed value. Defaults to `true`. */
|
|
@@ -2141,6 +2172,14 @@ export declare class FormInputGroupComponent extends BaseComponent implements On
|
|
|
2141
2172
|
readonly validations: InputSignal<{
|
|
2142
2173
|
[id: string]: string;
|
|
2143
2174
|
}>;
|
|
2175
|
+
private static instances;
|
|
2176
|
+
/**
|
|
2177
|
+
* What the label's `for` and the input's `id` share. It used to be the control name, which no
|
|
2178
|
+
* input carried, so the label named nothing: a click on it did not focus the field and a screen
|
|
2179
|
+
* reader announced the field without its label.
|
|
2180
|
+
*/
|
|
2181
|
+
protected readonly resolvedInputId: Signal<string>;
|
|
2182
|
+
private readonly generatedInputId;
|
|
2144
2183
|
protected readonly formGroupDirective: FormGroupDirective;
|
|
2145
2184
|
protected readonly formGroupName: FormGroupName;
|
|
2146
2185
|
protected formService: FormService;
|
|
@@ -2191,6 +2230,11 @@ export declare class FormInputGroupComponent extends BaseComponent implements On
|
|
|
2191
2230
|
"required": false;
|
|
2192
2231
|
"isSignal": true;
|
|
2193
2232
|
};
|
|
2233
|
+
"inputId": {
|
|
2234
|
+
"alias": "inputId";
|
|
2235
|
+
"required": false;
|
|
2236
|
+
"isSignal": true;
|
|
2237
|
+
};
|
|
2194
2238
|
"label": {
|
|
2195
2239
|
"alias": "label";
|
|
2196
2240
|
"required": false;
|
|
@@ -2744,6 +2788,8 @@ export declare class NumberInputComponent implements ControlValueAccessor, Valid
|
|
|
2744
2788
|
readonly invalid: InputSignal<boolean>;
|
|
2745
2789
|
/** Accessible name of the field, when no visible label names it. Defaults to none. */
|
|
2746
2790
|
readonly ariaLabel: InputSignal<string | undefined>;
|
|
2791
|
+
/** `id` of the text field, so a `<label for>` can name it. `lib-form-input` sets it for its group's label. No `id` by default. */
|
|
2792
|
+
readonly inputId: InputSignal<string | undefined>;
|
|
2747
2793
|
/** Emits when the field loses focus. */
|
|
2748
2794
|
readonly blurred: OutputEmitterRef<void>;
|
|
2749
2795
|
/** Emits when the field gains focus. */
|
|
@@ -2853,6 +2899,11 @@ export declare class NumberInputComponent implements ControlValueAccessor, Valid
|
|
|
2853
2899
|
"required": false;
|
|
2854
2900
|
"isSignal": true;
|
|
2855
2901
|
};
|
|
2902
|
+
"inputId": {
|
|
2903
|
+
"alias": "inputId";
|
|
2904
|
+
"required": false;
|
|
2905
|
+
"isSignal": true;
|
|
2906
|
+
};
|
|
2856
2907
|
}, {
|
|
2857
2908
|
"blurred": "blurred";
|
|
2858
2909
|
"focused": "focused";
|